Skip to content

Commit e5d85b3

Browse files
committed
Docs update, and support for resdata in back coupling
1 parent 3397d57 commit e5d85b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1251
-747
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
sudo apt-get install libopm-simulators-bin
3838
sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super
3939
40-
- name: Install test dependecies
40+
- name: Install dependecies
4141
run: |
4242
pip install --upgrade pip setuptools wheel
4343
pip install -r dev-requirements.txt

docs/_images/contents.png

9.27 KB
Loading

docs/_sources/api.rst.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ expreccs Python API
55
The main script for the **expreccs** executable is located in the core folder.
66
The expreccss folder contains mako files to generate the corresponding opm
77
input decks. The scripts in the utils folder process the input configuration
8-
file, runs the reference, regional, and site simulations, and generate images (.png) to show
9-
comparisons between the different runs.
8+
file, runs the reference, regional, and site simulations, in addition to include
9+
routines to project the pressures for given generic geological models. The scripts in the
10+
visualization folder generate images (.png) to show comparisons between the different runs.
1011

1112
.. figure:: figs/contents.png
1213

docs/_sources/configuration_file.rst.txt

+10-5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ The following input lines are:
5151
20000 8000 0 #Sensor position x, y, and z to assess the error over time w.r.t the reference solution [m]
5252
(20-20*mt.sin((2*mt.pi*(x+y)/10000))) #The function for the reservoir surface
5353
1 2.92 #Add hysteresis (1/0) and salinity (value [1E-3 kg-M/kg])
54+
0 #Number of interations for back-coupling.
5455
5556
Here we first set the dimensions of the regional model and the grid size for the discretization,
5657
where the origen is located in the left bottom corner. Then the site model is defined by giving the coordinates
@@ -63,6 +64,10 @@ which allows to consider different rock and saturation function properties, as w
6364
the location of a point of interest to compare results, and the z position of the tops cells as a function of the (x,y) location. The hysteresis option activates the
6465
Killough hysteresis model on the gas relative permeability.
6566

67+
.. note::
68+
The functionality for back-coupling in line 22 is under development, see/run `back-coupling.txt <https://github.com/cssr-tools/expreccs/blob/main/tests/configs/back-coupling.txt>`_
69+
if you are curious.
70+
6671
.. figure:: figs/grids.png
6772

6873
The site location in the regional model (upper left), the fault in the site model (upper right), the number of rock for the different properties
@@ -77,7 +82,7 @@ The following entries define the rock related parameters:
7782

7883
.. code-block:: python
7984
:linenos:
80-
:lineno-start: 23
85+
:lineno-start: 24
8186
8287
"""Set the saturation functions"""
8388
krw * ((sw - swi) / (1.0 - sni -swi)) ** nkrw #Wetting rel perm saturation function [-]
@@ -89,7 +94,7 @@ In this example we consider properties for the sands number 1 to 5 as described
8994

9095
.. code-block:: python
9196
:linenos:
92-
:lineno-start: 28
97+
:lineno-start: 29
9398
9499
"""Properties sat functions"""
95100
"""swi [-], sni [-], krw [-], krn [-], pec [Pa], nkrw [-], nkrn [-], npe [-], threshold cP evaluation"""
@@ -120,7 +125,7 @@ Simillarly for the rock properties:
120125

121126
.. code-block:: python
122127
:linenos:
123-
:lineno-start: 49
128+
:lineno-start: 50
124129
125130
"""Properties rock"""
126131
"""Kxy [mD], Kz [mD], phi [-]"""
@@ -150,7 +155,7 @@ Now we proceed to define the location of the wells:
150155

151156
.. code-block:: python
152157
:linenos:
153-
:lineno-start: 61
158+
:lineno-start: 62
154159
155160
"""Wells position"""
156161
"""x, y, zi, and zf positions [m]"""
@@ -172,7 +177,7 @@ The injection rates are given in the following entries:
172177

173178
.. code-block:: python
174179
:linenos:
175-
:lineno-start: 70
180+
:lineno-start: 71
176181
177182
"""Define the injection values"""
178183
"""injection time [d], time step size to write results regional [d], time step size to write results site/reference [d], maximum time step [d], fluid (0 wetting, 1 non-wetting) well 0, injection rates [kg/day] well 0, fluid ... well n, injection, ...well n, (if 'wells' for BC in site (Line 14); bottom, right, top, and left values (0(prod)/1(inj), pressure [Pa]))"""

docs/_sources/installation.rst.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ install the Python requirements in a virtual environment with the following comm
3333
3434
.. note::
3535

36-
For not macOS users, to install the Python opm package, execute in the terminal **pip install opm**.
36+
Regarding the reading of from OPM Flow output files (i.e., .EGRID, .INIT, .UNRST), it is possible to use the opm python package instead of resdata (e.g., it seems the opm Python package
37+
is faster than resdata to read large simulation files). For not macOS users, to install the Python opm package, execute in the terminal **pip install opm**.
3738
For macOS, see :ref:`macOS`.
3839

3940
OPM Flow
@@ -133,4 +134,4 @@ This builds OPM Flow as well as the opm Python package, and it exports the requi
133134

134135
Regarding the resdata Python package, it might not be available depending on the Python version (e.g., it is not found using Python 3.9, but it is installed using Python 3.10).
135136
Then, it is recommended to use a Python version equal or higher than 3.10; otherwise, remove resdata from the requirements in the `pyproject.toml <https://github.com/cssr-tools/expreccs/blob/main/pyproject.toml>`_,
136-
and the opm Python package will be used (this is the default package for reading the simulation files, see the :ref:`overview`).
137+
and when executing **expreccs** always set the flag **-r opm** (resdata is the default package for reading the simulation files, see the :ref:`overview`).

docs/_sources/introduction.rst.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The current implementation supports the following executable with the argument o
2626

2727
.. code-block:: bash
2828
29-
expreccs -i input.txt -o output -m all -c '' -p 'no' -r opm -u gaswater -t 0 -e ''
29+
expreccs -i input.txt -o output -m all -c '' -p 'no' -r resdata -u gaswater -t 0 -e ''
3030
3131
where
3232

@@ -35,10 +35,10 @@ where
3535
- \-m: Run the whole framework ('all'), only the reference ('reference'), only the site ('site'), or only regional and site models ('noreference') ('all' by default).
3636
- \-c: Generate metric plots for the current outputed folders ('compare') ('' by default).
3737
- \-p: Create nice figures in the postprocessing folder ('no' by default).
38-
- \-r: Using the 'opm' or 'resdata' python package ('opm' by default).
38+
- \-r: Using the 'opm' or 'resdata' python package ('resdata' by default).
3939
- \-u: Using 'gasoil' or 'gaswater' co2store implementation ('gaswater' by default).
4040
- \-t: Grades to rotate the site geological model ('0' by default).
41-
- \-e:: Name of the regional and site folders to project pressures ('' by default).
41+
- \-e: Name of the regional and site folders to project pressures ('' by default).
4242

4343
In the **configuration file** the geological model is defined by generation
4444
of corner-point grids (cpg), adding heterogeinities (e.g., different rock properties, faults), wells, and defining schedules for the

docs/_static/basic.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/

docs/_static/doctools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Base JavaScript utilities for all Sphinx HTML documentation.
66
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/

docs/_static/language_data.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* This script contains the language-specific data used by searchtools.js,
66
* namely the list of stopwords, stemmer, scorer and splitter.
77
*
8-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8+
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
99
* :license: BSD, see LICENSE for details.
1010
*
1111
*/
1212

1313
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
1414

1515

16-
/* Non-minified version is copied as a separate JS file, if available */
16+
/* Non-minified version is copied as a separate JS file, is available */
1717

1818
/**
1919
* Porter Stemmer

0 commit comments

Comments
 (0)