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
If you are interested in modifying the source code, then you can clone the repository and
23
+
install the Python requirements in a virtual environment with the following commands:
17
24
18
25
```bash
19
26
# Clone the repo
@@ -32,7 +39,7 @@ pip install -e .
32
39
pip install -r dev-requirements.txt
33
40
```
34
41
35
-
See the [_CI.yml_](https://github.com/OPM/pycopm/blob/main/.github/workflows/CI.yml) script for installation of OPM Flow (binary packages) and the pycopm 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 (you first need to install the [_OPM-Flow-prerequisites_](https://opm-project.org/?page_id=239)).
42
+
See the [_CI.yml_](https://github.com/OPM/pycopm/blob/main/.github/workflows/CI.yml) script for installation of OPM Flow (binary packages) and the pycopm 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 (you first need to install the [_OPM-Flow-prerequisites_](https://opm-project.org/?page_id=239)).
36
43
37
44
For macOS users, use at least a Python version of 3.10 (due to resdata), and run the `./build_opm-flow_macOS.bash` to build OPM Flow (the [_OPM-Flow-prerequisites_](https://opm-project.org/?page_id=239) can be installed via brew or macports).
Run `pycopm --help` to see all possible command line argument options.
45
52
46
53
## Getting started
47
-
See the [_documentation_](https://cssr-tools.github.io/pycopm/introduction.html).
48
-
49
-
## Citing
50
-
If you use _pycopm_ in your research, please cite the following publication:
51
-
52
-
Sandve, T.H., Lorentzen, R.J., Landa-Marbán, D., Fossum, K., 2024. Closed-loop reservoir management using fast data-calibrated coarse models. In: ECMOR 2024, 1. European Association of Geoscientists & Engineers, 1–14.
54
+
See the [_examples_](https://cssr-tools.github.io/pycopm/examples.html) in the [_documentation_](https://cssr-tools.github.io/pycopm/introduction.html).
Copy file name to clipboardExpand all lines: docs/_sources/about.rst.txt
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@ About pycopm
5
5
.. image:: ./figs/droganim.gif
6
6
:scale:65%
7
7
8
-
The **pycopm**tool for coarsening geological models is being funded by the `Center for Sustainable Subsurface Resources (CSSR) <https://cssr.no>`_ [project no. 331841].
8
+
**pycopm**, a tool for coarsening OPM Flow geological models, is being funded by the `Center for Sustainable Subsurface Resources (CSSR) <https://cssr.no>`_ [project no. 331841].
9
9
This is work in progress.
10
10
Contributions are more than welcome using the fork and pull request approach.
Copy file name to clipboardExpand all lines: docs/_sources/examples.rst.txt
+54-8Lines changed: 54 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,12 @@
2
2
Examples
3
3
********
4
4
5
-
==================
6
-
Configuration file
7
-
==================
5
+
=======================
6
+
Via configuration files
7
+
=======================
8
+
9
+
Drogon
10
+
------
8
11
9
12
The `examples <https://github.com/cssr-tools/pycopm/blob/main/examples>`_ folder contains configuration files
10
13
to perform HM studies in drogon and norne. For example, by executing inside the `example folder for drogon <https://github.com/cssr-tools/pycopm/blob/main/examples/drogon>`_:
@@ -18,16 +21,59 @@ The following are the drogon model from `opm-tests <https://github.com/OPM/opm-t
18
21
.. figure:: figs/drogon_coarser.png
19
22
20
23
21
-
==========
22
-
Input deck
23
-
==========
24
+
==================
25
+
Via OPM Flow decks
26
+
==================
27
+
28
+
SPE10
29
+
-----
24
30
25
31
See/run the `test_generic_deck.py <https://github.com/cssr-tools/pycopm/blob/main/tests/test_generic_deck.py>`_
26
32
for an example where **pycopm** is used to coarse the
27
-
`SPE10_MODEL2 model <https://github.com/OPM/opm-data/tree/master/spe10model2>`_ by downloading the files and running:
33
+
`SPE10_MODEL2 model <https://github.com/OPM/opm-data/tree/master/spe10model2>`_ by downloading the OPM files and running:
28
34
29
35
.. code-block:: bash
30
36
31
37
pycopm -i SPE10_MODEL2.DATA -o coarser -c 4,8,2
32
38
33
-
.. figure:: figs/spe10_model2_coarser.png
39
+
.. figure:: figs/spe10_model2_coarser.png
40
+
41
+
Porosity values for the (left) original and (right) coarsed SPE10 model.
42
+
43
+
Smeaheia
44
+
--------
45
+
46
+
By downloading the `Smeaheia simulation model <https://co2datashare.org/dataset/smeaheia-dataset>`_,
Copy file name to clipboardExpand all lines: docs/_sources/introduction.rst.txt
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,22 @@ Introduction
5
5
.. image:: ./figs/pycopm.gif
6
6
7
7
This documentation describes the content of the **pycopm** package.
8
-
The numerical studies are performed using the `Flow <https://opm-project.org/?page_id=19>`_ simulator.
9
8
10
9
Concept
11
10
-------
12
-
Simplified and flexible framework for coarsening geological models. The initial implementation
13
-
included two available models in `opm-tests <https://github.com/OPM/opm-tests>`_: `norne <https://github.com/OPM/opm-tests/tree/master/norne>`_
11
+
Simplified and flexible framework to create coarser OPM Flow geological models.
12
+
13
+
Roadmap
14
+
-------
15
+
In the initial development of the framework, the focus was two available models in `opm-tests <https://github.com/OPM/opm-tests>`_: `norne <https://github.com/OPM/opm-tests/tree/master/norne>`_
14
16
and `drogon <https://github.com/OPM/opm-tests/tree/master/drogon>`_, where the coarser models are used to perform history matching studies using
15
-
the Ensemble based reservoir tool `ERT <https://ert.readthedocs.io/en/latest/>`_, via a :doc:`configuration file <./configuration_file>`. The current
16
-
available options for parameters to HM are the saturation functions using the LET model and permeabilities. The plan is to extend the functionality to
17
-
set up history matching/optimization studies using either `ERT <https://ert.readthedocs.io/en/latest/>`_, `PET <https://python-ensemble-toolbox.github.io/PET/>`_,
18
-
or `everest <https://github.com/equinor/everest>`_.
17
+
the Ensemble based reservoir tool `ERT <https://ert.readthedocs.io/en/latest/>`_, via a :doc:`configuration file <./configuration_file>`.
18
+
19
+
The current development of **pycopm** focuses on only creating coarser models (i.e., all needed input files to run OPM Flow) by only giving the OPM Flow input files
20
+
(i.e., avoiding the manual work to create templates as it was done for drogon and norne). This allows for flexibility to adapt the generated coarser decks in your
Copy file name to clipboardExpand all lines: docs/_sources/output_folder.rst.txt
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,31 @@
2
2
Output folder
3
3
=============
4
4
5
-
The following screenshot shows the generated ERT configuration file and folders in the selected output folder after executing **pycopm**.
5
+
Via configuration files
6
+
-----------------------
7
+
As described in the :doc:`introduction <./introduction>`, in the early development of **pycopm**
8
+
the focus was on history matching studies using `ERT <https://ert.readthedocs.io/en/latest/>`_ for the
9
+
`norne <https://github.com/OPM/opm-tests/tree/master/norne>`_ and `drogon <https://github.com/OPM/opm-tests/tree/master/drogon>`_ geological models
10
+
via a :doc:`configuration file <./configuration_file>`.
11
+
12
+
The following screenshot shows the generated ERT configuration file and folders in the selected output folder after executing **pycopm**
13
+
on the drogon model.
6
14
7
15
.. figure:: figs/output.png
8
16
9
17
(Left) example of generated files after executing **pycopm** and (right) some of the figures in the postprocessing folder.
10
18
11
19
The generate ert.ert file can be run directly calling ERT for further studies, and some useful plots and files
12
-
are generated in the postprocessing folder. The OPM simulation results can be visualized using `ResInsight <https://resinsight.org>`_ .
13
-
Then after running **pycopm**, one could modify the generated OPM coarser related files in the preprocessing folder to adapt to
14
-
further existing frameworks (e.g., `PET <https://python-ensemble-toolbox.github.io/PET/>`_, `everest <https://github.com/equinor/everest>`_).
20
+
are generated in the postprocessing folder. The OPM simulation results can be visualized using `ResInsight <https://resinsight.org>`_.
21
+
22
+
Via an OPM Flow input deck
23
+
--------------------------
24
+
The current development of **pycopm** focuces on only creating coarser models (i.e., all needed input files to run OPM Flow) by only giving the OPM Flow input files.
25
+
26
+
The following screenshot shows the input deck and generated files in the selected output folder (coarser for this example) after executing **pycopm** on the SPE10 model (see the
0 commit comments