[Opm] GECON equivalent.
Stephen, Karl D
K.D.Stephen at hw.ac.uk
Fri Apr 10 09:57:55 UTC 2020
Hi,
Thanks for the replies.
It would be useful to be able to end the run on ACTIONX as it opens a number of possibilities not captured by the *ECON keywords.
I did try the 'END' option with WECON to begin with as I use this in Eclipse. I did notice that latest version of the manual the manual said:
"Only the default value of NO is supported in OPM Flow." For item 8 however.
WECON shuts off the producer well but not the run. The injectors also continue.
My SCHEDULE section is as below (with two INCLUDE files which contain WCONHIST keywords for the producer in the first file and then an injector is define in the second with WCONHIST for both wells.
I recognised today that WECON only switches off the producer if I include the WCONPROD keyword. If I allow production and injection to continue from the last WCONHIST keyword with no WCONPROD then the WECON keyword has no effect at all.
Am I missing something?
(my model is 11 x 11 x 5 cells)
SCHEDULE
-- Output values of recurrent grid data (eg pressures, saturations)
RPTRST
BASIC=2 /
-- Gas does not redissolve in oil
DRSDT
0.0 /
-- Define well head locations and preferred phase
WELSPECS
-- well group X Y Phase
D10 TEMPL1 11 10 1* 'OIL' 2* /
/
-- Define completion data
COMPDAT
-- well X Y Ztop Zbot Status well ID orientation
D10 9 10 2 5 'OPEN' 1* 1* 0.500 3* Z/
/
-- Use all memory allocated in NSTACK
TUNING
/
/
2* 100 /
-- History match before start of water injection
INCLUDE
'include-files\SCHED-HIST-TO-1-May-2018.INC' /
INCLUDE
'include-files\SCHED-HIST-TO-1-Feb-2020.INC' /
----------------------Forecast below--------------------------
WCONPROD
D10 OPEN LRAT 3* 3300 1* 2300 /
/
WECON
'D10' 400 1* 0.95 1* 1* 'CON' 'YES' /
/
TSTEP
100*31/
END
-----Original Message-----
From: Opm [mailto:opm-bounces at opm-project.org] On Behalf Of OPM User
Sent: 10 April 2020 03:17
To: opm at opm-project.org
Subject: [Opm] GECON equivalent.
Joakim,
Don't do this fix as it is not correct.
The END keyword terminates the reading of the input file, it does not terminate the run. If you want to add this functionality to gracefully stop the run, then implement an OPM Flow keyword ENDRUN or STOP for example.
Karl,
Have you tried using the WECON keyword END option (item eight on the keyword)? So that when the condition is met, set this parameter for all wells.
Of course the correct solution would be to implement the GECON keyword.
OPM User
opmuser0 at gmail.com
> I am guessing that the END overrides the ACTIONX opener for the
> command and ENDACTIO is not found.
Yes you are right; the END keyword is detected during basic parsing and the whole parsing stops prematurely.
> Is there any way to stop the run in this case (conditionally).
No not yet. But:
1. The use case you describe seems a quite natural one, and not too
much work to support. I hope to make the necessary changes in time
for the 2020.04 release. IN the case the simulation is terminated in
this way - should it be with exit(0) - success or exit(1) - failure.
I guess this relevant in the situation the flow is part of a larger
workflow for e.g. history matching which might check the exit
status. We could also add a opm-only keyword - e.g. EXIT which
actually allows you to specify the status.
2. We are close to merge PYACTION which is a new keyword which will
enable action keywords written in Python; that will probably not
make the release though.
Joakim
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
Opm mailing list
Opm at opm-project.org
https://opm-project.org/cgi-bin/mailman/listinfo/opm
________________________________
Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:
1. Heriot-Watt University, a Scottish charity registered under number SC000278
2. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.
More information about the Opm
mailing list