Skip to content

opm⚓︎

Wrap OPM-flow

ebos ⚓︎

Bases: eclipse

Class for running OPM ebos with Eclipse input files. Inherits eclipse parent class for setting up and running simulations, and reading the results.

call_sim(folder=None, wait_for_proc=False) ⚓︎

Call OPM flow simulator via shell.

Parameters:

Name Type Description Default
folder str

Folder with runfiles.

None
wait_for_proc bool

Determines whether to wait for the process to be done or not.

False
Changelog
  • RJL 27/08-19

check_sim_end(finished_member=None) ⚓︎

Check in RPT file for "End of simulation" to see if OPM ebos is done.

Changelog
  • RJL 27/08-19

flow ⚓︎

Bases: eclipse

Class for running OPM flow with Eclipse input files. Inherits eclipse parent class for setting up and running simulations, and reading the results.

SLURM_HPC_run(n_e, venv, filename, **kwargs) ⚓︎

HPC run manager for SLURM.

This function will start num_runs of sim.call_sim() using job arrays in SLURM.

are_jobs_done(job_id) ⚓︎

Check if all job array tasks are completed using sacct.

call_sim(folder=None, wait_for_proc=False) ⚓︎

Call OPM flow simulator via shell.

Parameters:

Name Type Description Default
folder str

Folder with runfiles.

None
wait_for_proc bool

Boolean determining if we wait for the process to be done or not.

False
Changelog
  • ST 18/10-18

check_sim_end(finished_member=None) ⚓︎

Check in RPT file for "End of simulation" to see if OPM flow is done.

Changelog
  • ST 19/10-18

wait_for_jobs(job_id, wait_time=10) ⚓︎

Wait until all job array tasks are completed.