OPM / opm-simulators

OPM Flow and experimental simulators, including components such as well models etc.
http://www.opm-project.org
GNU General Public License v3.0
124 stars 122 forks source link

Adding a CASENAME.PARAM when running flow in Python #5759

Closed Ruslan1541 closed 13 hours ago

Ruslan1541 commented 3 days ago

Hello there!

If I run flow in Python, is it possible to add a CASENAME.PARAM file somewhere to change the simulation parameters?

akva2 commented 3 days ago

This is not currently possible. I have added such support in https://github.com/OPM/opm-simulators/pull/5760

The constructor of the python simulator then takes an 'args' parameter which is a list of standard 'flow' command line parameters. To use a parameter file you'd do something ala

sim = BlackOilSimulator(filename='SPE1CASE1.DATA', args=['--parameter-file=CASENAME.PARAM'])