Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for time interpolation (summary to report data) #18

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pip install -r dev-requirements.txt

See the [_CI.yml_](https://github.com/OPM/pyopmspe11/blob/main/.github/workflows/CI.yml) script for installation of OPM Flow (binary packages) and the pyopmspe11 package. If you are a Linux user (including the windows subsystem for Linux), then you could try to build Flow from the master branches with mpi support, by running the script `./build_opm-flow_mpi.bash`, which in turn should build flow in the folder ./build/opm-simulators/bin/flow.

For macOS users with the latest chips (M1/M2, guessing also M3?), the resdata Python package is not available via pip install. Then before installation, remove resdata from the `requierements.txt`, then proceed with the Python requirements installation, install the OPM Flow dependencies (using macports or brew), and once inside the vpyopmspe11 Python environment, run the `./build_opm-flow_macOS.bash`, and deactivate and activate the virtual environment (this script builds OPM Flow as well as the opm Python package, and it exports the required PYTHONPATH).
For macOS users with the latest chips (M1/M2, guessing also M3?), the resdata Python package might not available via pip install, depending on the Python version (e.g., it is not found using Python 3.9, but it is installed using Python 3.10). If you face this issue, then before installation, remove resdata from the `requirements.txt`, then proceed with the Python requirements installation, install the OPM Flow dependencies (using macports or brew), and once inside the vpyopmspe11 Python environment, run the `./build_opm-flow_macOS.bash`, and deactivate and activate the virtual environment (this script builds OPM Flow as well as the opm Python package, and it exports the required PYTHONPATH).

## Running pyopmspe11
You can run _pyopmspe11_ as a single command line:
Expand Down
16 changes: 8 additions & 8 deletions examples/finner_grids/spe11a.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
mpirun -np 23 flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
mpirun -np 23 flow --linear-solver=cprw --newton-min-iterations=1 --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11a master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 1500 PENMAX1 9.5e4 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 300 PENMAX2 9.5e4 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 100 PENMAX3 9.5e4 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 25 PENMAX4 9.5e4 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 10 PENMAX5 9.5e4 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 1 PENMAX6 9.5e4 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 9.5e4 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 1500 PENMAX1 9.5e4 NPOINTS1 1000
SWI2 0.14 SNI2 0.1 PEN2 300 PENMAX2 9.5e4 NPOINTS2 1000
SWI3 0.12 SNI3 0.1 PEN3 100 PENMAX3 9.5e4 NPOINTS3 1000
SWI4 0.12 SNI4 0.1 PEN4 25 PENMAX4 9.5e4 NPOINTS4 1000
SWI5 0.12 SNI5 0.1 PEN5 10 PENMAX5 9.5e4 NPOINTS5 1000
SWI6 0.10 SNI6 0.1 PEN6 1 PENMAX6 9.5e4 NPOINTS6 1000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 9.5e4 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-]"""
Expand Down
16 changes: 8 additions & 8 deletions examples/finner_grids/spe11b.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
mpirun -np 23 flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
mpirun -np 23 flow --linear-solver=cprw --newton-min-iterations=1 --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11b master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 1000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 1000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 1000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 1000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 1000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 1000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-], thconr [W m-1 K-1]"""
Expand Down
16 changes: 8 additions & 8 deletions examples/finner_grids/spe11c.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
mpirun -np 71 flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
mpirun -np 71 flow --linear-solver=cprw --newton-min-iterations=1 --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11c master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 1000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 1000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 1000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 1000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 1000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 1000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-], thconr [W m-1 K-1]"""
Expand Down
16 changes: 8 additions & 8 deletions examples/hello_world/spe11a.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
flow --linear-solver=cprw --enable-tuning=true --newton-min-iterations=1 --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11a master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 1500 PENMAX1 9.5e4 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 300 PENMAX2 9.5e4 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 100 PENMAX3 9.5e4 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 25 PENMAX4 9.5e4 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 10 PENMAX5 9.5e4 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 1 PENMAX6 9.5e4 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 9.5e4 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 1500 PENMAX1 9.5e4 NPOINTS1 100
SWI2 0.14 SNI2 0.1 PEN2 300 PENMAX2 9.5e4 NPOINTS2 100
SWI3 0.12 SNI3 0.1 PEN3 100 PENMAX3 9.5e4 NPOINTS3 100
SWI4 0.12 SNI4 0.1 PEN4 25 PENMAX4 9.5e4 NPOINTS4 100
SWI5 0.12 SNI5 0.1 PEN5 10 PENMAX5 9.5e4 NPOINTS5 100
SWI6 0.10 SNI6 0.1 PEN6 1 PENMAX6 9.5e4 NPOINTS6 100
SWI7 0 SNI7 0 PEN7 0 PENMAX7 9.5e4 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-]"""
Expand Down
18 changes: 9 additions & 9 deletions examples/hello_world/spe11b.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
flow --linear-solver=cprw --enable-tuning=true --newton-min-iterations=1 --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11b master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 100
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 100
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 100
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 100
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 100
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 100
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-], thconr [W m-1 K-1]"""
Expand All @@ -49,6 +49,6 @@ PERM7 1e-5 PORO7 1e-6 THCONR7 2.00

"""Define the injection values ([hours] for spe11a; [years] for spe11b/c)"""
"""injection time, time step size to write results, maximum solver time step, injected fluid (0 water, 1 co2) (well1), injection rate [kg/s] (well1), temperature [C] (well1), injected fluid (0 water, 1 co2) (well2), ..."""
995 995 1 0 0 10 0 0 10
995 995 50 0 0 10 0 0 10
5 5 1 0 0 10 0 0 10
25 5 1 1 0.035 10 1 0.035 10
18 changes: 9 additions & 9 deletions examples/hello_world/spe11c.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Set the full path to the flow executable and flags"""
flow --linear-solver=cprw --enable-tuning=true --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99
flow --linear-solver=cprw --enable-tuning=true --newton-min-iterations=1 --enable-opm-rst-file=true --output-extra-convergence-info=steps,iterations --enable-well-operability-check=false --min-time-step-before-shutting-problematic-wells-in-days=1e-99

"""Set the model parameters"""
spe11c master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
Expand All @@ -24,13 +24,13 @@ penmax * math.erf(pen * ((s_w-swi) / (1.-swi)) ** (-(1.0 / 1.5)) * math.pi**0.5

"""Properties sat functions"""
"""swi [-], sni [-], pen [Pa], penmax [Pa], npoints [-]"""
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 200000
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 200000
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 200000
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 200000
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 200000
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 200000
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2
SWI1 0.32 SNI1 0.1 PEN1 193531.39 PENMAX1 3e7 NPOINTS1 100
SWI2 0.14 SNI2 0.1 PEN2 8654.99 PENMAX2 3e7 NPOINTS2 100
SWI3 0.12 SNI3 0.1 PEN3 6120.00 PENMAX3 3e7 NPOINTS3 100
SWI4 0.12 SNI4 0.1 PEN4 3870.63 PENMAX4 3e7 NPOINTS4 100
SWI5 0.12 SNI5 0.1 PEN5 3060.00 PENMAX5 3e7 NPOINTS5 100
SWI6 0.10 SNI6 0.1 PEN6 2560.18 PENMAX6 3e7 NPOINTS6 100
SWI7 0 SNI7 0 PEN7 0 PENMAX7 3e7 NPOINTS7 2

"""Properties rock"""
"""K [mD], phi [-], thconr [W m-1 K-1]"""
Expand All @@ -49,6 +49,6 @@ PERM7 1e-5 PORO7 1e-6 THCONR7 2.00

"""Define the injection values ([hours] for spe11a; [years] for spe11b/c)"""
"""injection time, time step size to write results, maximum solver time step, injected fluid (0 water, 1 co2) (well1), injection rate [kg/s] (well1), temperature [C] (well1), injected fluid (0 water, 1 co2) (well2), ..."""
995 995 5 0 0 10 0 0 10
995 995 50 0 0 10 0 0 10
5 5 5 0 0 10 0 0 10
25 5 5 1 50 10 1 50 10
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ mako
matplotlib
pandas
resdata
scipy
shapely
144 changes: 84 additions & 60 deletions src/pyopmspe11/core/pyopmspe11.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,78 +16,27 @@

def pyopmspe11():
"""Main function"""
parser = argparse.ArgumentParser(
description="Main script to run the spe11s with OPM Flow."
)
parser.add_argument(
"-i",
"--input",
default="input.txt",
help="The base name of the input file ('input.txt' by default).",
)
parser.add_argument(
"-m",
"--mode",
default="deck_flow",
help="Run the whole framework ('all'), only create decks ('deck'), "
"only run flow ('flow'), only write benchmark data ('data'), "
"only create plots ('plot'), deck and run ('deck_flow'), "
"deck, run, and plot (deck_flow_plot), or deck, run, and data "
"(deck_flow_data) ('deck_flow' by default).",
)
parser.add_argument(
"-c",
"--compare",
default="",
help="Generate a common plot for the current folders ('' by default).",
)
parser.add_argument(
"-o",
"--output",
default="output",
help="The base name of the output folder ('output' by default).",
)
parser.add_argument(
"-t",
"--time",
default="5",
help="Time interval for the spatial maps (spe11a [h]; spe11b/c [y]) ('24' by default).",
)
parser.add_argument(
"-r",
"--resolution",
default="100,10,50",
help="Number of x, y, and z elements to write the data ('100,10,50' by default).",
)
parser.add_argument(
"-g",
"--generate",
default="performance_sparse",
help="Write only the 'dense', 'sparse', 'performance', 'dense_performance', "
"'performance_sparse', 'dense_sparse', or 'all'",
)
parser.add_argument(
"-u",
"--use",
default="resdata",
help="Using the 'opm' or 'resdata' python package (resdata by default).",
)
cmdargs = vars(parser.parse_known_args()[0])
cmdargs = load_parser()
file = cmdargs["input"].strip() # Name of the input file
dic = {"fol": cmdargs["output"].strip()} # Name for the output folder
dic["generate"] = cmdargs["generate"].strip() # What data to write
dic["exe"] = os.getcwd() # Path to the folder of the input.txt file
dic["mode"] = cmdargs["mode"].strip() # Parts of the workflow to run
dic["pat"] = os.path.dirname(__file__)[:-5] # Path to the pyopmspe11 folder
dic["compare"] = cmdargs["compare"].strip() # Make common figures for comparison
dic["use"] = cmdargs["use"] # OPM or resdata python package
dic["use"] = cmdargs["use"].strip() # OPM or resdata python package
dic["load"] = cmdargs[
"load"
].strip() # Summary or restart data for the sparse data interpolation
dic["resolution"] = cmdargs[
"resolution"
].strip() # Spatial resolution to write the data
dic["time_data"] = float(
cmdargs["time"].strip()
) # Temporal resolution to write the data

) # Temporal resolution to write the dense data
dic["dt_data"] = float(
cmdargs["write"].strip()
) # Temporal resolution to write the sparse and performance data
# If the compare plots are generated, then we exit right afterwards
if dic["compare"]:
plot_results(dic)
Expand Down Expand Up @@ -141,6 +90,81 @@ def pyopmspe11():
plotting(dic)


def load_parser():
"""Argument options"""
parser = argparse.ArgumentParser(
description="Main script to run the spe11s with OPM Flow."
)
parser.add_argument(
"-i",
"--input",
default="input.txt",
help="The base name of the input file ('input.txt' by default).",
)
parser.add_argument(
"-m",
"--mode",
default="deck_flow",
help="Run the whole framework ('all'), only create decks ('deck'), "
"only run flow ('flow'), only write benchmark data ('data'), "
"only create plots ('plot'), deck and run ('deck_flow'), "
"deck, run, and plot (deck_flow_plot), or deck, run, and data "
"(deck_flow_data) ('deck_flow' by default).",
)
parser.add_argument(
"-c",
"--compare",
default="",
help="Generate a common plot for the current folders ('' by default).",
)
parser.add_argument(
"-o",
"--output",
default="output",
help="The base name of the output folder ('output' by default).",
)
parser.add_argument(
"-t",
"--time",
default="5",
help="Time interval for the spatial maps (spe11a [h]; spe11b/c [y]) ('24' by default).",
)
parser.add_argument(
"-r",
"--resolution",
default="100,10,50",
help="Number of x, y, and z elements to write the data ('100,10,50' by default).",
)
parser.add_argument(
"-g",
"--generate",
default="performance_sparse",
help="Write only the 'dense', 'sparse', 'performance', 'dense_performance', "
"'performance_sparse', 'dense_sparse', or 'all'",
)
parser.add_argument(
"-u",
"--use",
default="resdata",
help="Using the 'opm' or 'resdata' python package (resdata by default).",
)
parser.add_argument(
"-l",
"--load",
default="summary",
help="Use the summary or restart for the interpolation in the sparse data "
"('summary' by default).",
)
parser.add_argument(
"-w",
"--write",
default="0.1",
help="Time interval for the sparse and performance data (spe11a [h]; spe11b/c [y]) "
"('0.1' by default).",
)
return vars(parser.parse_known_args()[0])


def main():
"""Main function"""
pyopmspe11()
Loading
Loading