You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,10 @@ See the [_installation_](https://OPM.github.io/pyopmspe11/installation.html) for
46
46
## Running pyopmspe11
47
47
You can run _pyopmspe11_ as a single command line:
48
48
```
49
-
pyopmspe11 -i configuration_file.txt
49
+
pyopmspe11 -i configuration_file
50
50
```
51
51
Run `pyopmspe11 --help` to see all possible command line
52
-
argument options. Inside the `configuration_file.txt` you provide the path to the flow executable and simulation parameters. See the .txt files in the [_examples_](https://github.com/OPM/pyopmspe11/tree/main/examples), [_benchmark_](https://github.com/OPM/pyopmspe11/tree/main/benchmark), and [_tests_](https://github.com/OPM/pyopmspe11/tree/main/tests/configs) folders.
52
+
argument options. Inside the `configuration_file` you provide the path to the flow executable and simulation parameters. See the .txt and .toml files in the [_examples_](https://github.com/OPM/pyopmspe11/tree/main/examples), [_benchmark_](https://github.com/OPM/pyopmspe11/tree/main/benchmark), and [_tests_](https://github.com/OPM/pyopmspe11/tree/main/tests/configs) folders.
53
53
54
54
## Getting started
55
55
See the [_examples_](https://OPM.github.io/pyopmspe11/examples.html) in the [_documentation_](https://OPM.github.io/pyopmspe11/introduction.html).
If **flow** is not in your path, then write the full path to the executable
14
25
(e.g., /Users/dmar/opm/build/opm-simulators/bin/flow). We also add in the same
@@ -23,9 +34,9 @@ line as many flags as required (see the OPM Flow documentation `here <https://op
23
34
flow simulator to improve/fix convergence and mass issues (i.e., by setting the flag \-\-linear-solver=cprw to change the linear solver,
24
35
by tightening the cnv tolerances (\-\-tolerance-cnv), etc.).
25
36
26
-
****************************
37
+
----------------------------
27
38
Reservoir-related parameters
28
-
****************************
39
+
----------------------------
29
40
30
41
The following input lines in the configuration file are:
31
42
@@ -35,7 +46,7 @@ The following input lines in the configuration file are:
35
46
36
47
"""Set the model parameters"""
37
48
spe11c master #Name of the spe case (spe11a, spe11b, or spe11c) and OPM Flow version (master or release)
38
-
complete gaswater #Name of the co2 model (immiscible, convective [convective requires a Flow version newer than 22-08-2024], or complete) and co2store implementation (gaswater or gasoil [oil properties are set to water internally in OPM flow])
49
+
complete gaswater #Name of the co2 model (immiscible, convective, or complete) and co2store implementation (gaswater or gasoil [oil properties are set to water internally in OPM flow])
39
50
corner-point #Type of grid (cartesian, tensor, or corner-point)
40
51
840050001200#Length, width, and depth [m]
41
52
420#If cartesian, number of x cells [-]; otherwise, variable array of x-refinment
@@ -68,9 +79,9 @@ resulting in 18 levels. Then, the z-refinment in each of these levels is set. Se
68
79
The top figure shows the 7 different facies, while the bottom figure shows the fipnum numbers used to identify
69
80
the boxes (A, B, and C), sensors, and the required regions to report the benchmark data.
70
81
71
-
***********************
82
+
-----------------------
72
83
Soil-related parameters
73
-
***********************
84
+
-----------------------
74
85
The following entries define the properties of the different facies:
75
86
76
87
.. code-block:: python
@@ -108,9 +119,9 @@ The following entries define the properties of the different facies:
108
119
109
120
Visualization in ResInsight of the relative permeability and capillary pressure functions in the facie 1.
110
121
111
-
***********************
122
+
-----------------------
112
123
Well-related parameters
113
-
***********************
124
+
-----------------------
114
125
The last part of the configuration file sets the wells radius, location, and the injection schedule.
115
126
116
127
.. code-block:: python
@@ -133,4 +144,84 @@ The last part of the configuration file sets the wells radius, location, and the
133
144
50010010010101010
134
145
135
146
.. warning::
136
-
Keep the linebreak between the sections (in the current implementation this is used for the reading of the parameters).
147
+
Keep the linebreak between the sections (in the current implementation this is used for the reading of the parameters).
148
+
149
+
.. _toml:
150
+
151
+
====
152
+
toml
153
+
====
154
+
155
+
The previous configuration file can be written using the widely in-use `toml format <https://docs.python.org/3/library/tomllib.html>`_ as:
156
+
157
+
.. code-block:: python
158
+
:linenos:
159
+
160
+
# Set the full path to the flow executable and flags
Copy file name to clipboardExpand all lines: docs/_sources/contributing.rst.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Contribute to the software
25
25
#. **black src/ tests/** (this formats the code)
26
26
#. **pylint src/ tests/** (this analyses the code, and might rise issues that need to be fixed before the pull request)
27
27
#. **mypy --ignore-missing-imports src/ tests/** (this is a static checker, and might rise issues that need to be fixed before the pull request)
28
-
#. **pytest --cov=pyopmspe11 --cov-report term-missing tests/** (this runs locally the tests, and might rise issues that need to be fixed before the pull request)
28
+
#. **pytest --cov=pyopmspe11 --cov-report term-missing tests/** (this runs locally the tests, and might rise issues that need to be fixed before the pull request; to save the files, add the flag **--basetemp=test_outputs**)
29
29
#. **pushd docs & make html** (this generates the documentation, and might rise issues that need to be fixed before the pull request; if the build succeeds and if the contribution changes the documentation, then delete all content from the `docs <https://github.com/cssr-tools/pyopmspe11/tree/main/docs>`_ folder except `Makefile <https://github.com/OPM/pyopmspe11/blob/main/docs/Makefile>`_, `text <https://github.com/OPM/pyopmspe11/blob/main/docs/text>`_, and `.nojekyll <https://github.com/OPM/pyopmspe11/blob/main/docs/.nojekyll>`_, after copy all contents from the docs/_build/html/ folder, and finally paste them in the `docs <https://github.com/cssr-tools/pyopmspe11/tree/main/docs>`_ folder)
0 commit comments