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: CONTRIBUTING.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,14 @@ Contributions are more than welcome using the fork and pull request approach
13
13
1. Work on your own fork of the main repo
14
14
1. In the main repo execute:
15
15
1.**pip install -r dev-requirements.txt** (this installs the [_dev-requirements.txt_](https://github.com/cssr-tools/pyopmnearwell/blob/main/dev-requirements.txt))
16
+
1.**pip install tensorflow** (this install [_tensorflow_](https://www.tensorflow.org) for the machine learning near well funcitonality; tensorflow is not yet available for Python 3.14, then Python 3.12 or Python 3.13 are currently needed to run the tests)
16
17
1.**black src/ tests/** (this formats the code)
17
18
1.**pylint src/ tests/** (this analyses the code, and might rise issues that need to be fixed before the pull request)
18
19
1.**mypy --ignore-missing-imports src/ tests/** (this is a static checker, and might rise issues that need to be fixed before the pull request)
19
20
1.**pytest --cov=pyopmnearwell --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**)
20
21
1.**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 copy all content from the docs/_build/html/ folder and replace the files in the [_docs_](https://github.com/cssr-tools/pyopmnearwell/tree/main/docs) folder)
21
-
* Tip: See the [_CI.yml_](https://github.com/cssr-tools/pyopmnearwell/blob/main/.github/workflows/CI.yml) script and the [_Actions_](https://github.com/cssr-tools/pyopmnearwell/actions) for installation of pyopmnearwell, OPM Flow (binary packages), and dependencies, as well as the execution of the six previous steps in Ubuntu 24.10.
22
+
* Tip for Linux users: See the [_CI.yml_](https://github.com/cssr-tools/pyopmnearwell/blob/main/.github/workflows/CI.yml) script and the [_Actions_](https://github.com/cssr-tools/pyopmnearwell/actions) for installation of pyopmnearwell, OPM Flow (binary packages), and dependencies, as well as the execution of the seven previous steps in Ubuntu 24.04 using Python 3.12.
23
+
* Tip for macOS users: See the [_ci_pycopm_macos_.yml_](https://github.com/daavid00/OPM-Flow_macOS/blob/main/.github/workflows/ci_pycopm_macos.yml) script and the [_OPM-Flow_macOS Actions_](https://github.com/cssr-tools/pycopm/actions) for installation of pycopm (a related tool to pyopmnearwell), OPM Flow (source build), and dependencies in macOS 26 using Python 3.13. In addition, you need to add the directory containing the OPM Flow executable to your system's PATH environment variable (e.g., export PATH=$PATH:/Users/yourname/pyopmnearwell/build/opm-simulators/bin).
22
24
1. Squash your commits into a single commit (see this [_nice tutorial_](https://gist.github.com/lpranam/4ae996b0a4bc37448dc80356efbca7fa) if you are not familiar with this)
23
25
1. Push your commit and make a pull request
24
26
1. The maintainers will review the pull request, and if the contribution is accepted, then it will be merge to the main repo
@@ -32,4 +34,5 @@ Contributions are more than welcome using the fork and pull request approach
32
34
33
35
1. The preferred approach to seek support is to raise an Issue as described in the previous lines.
34
36
1. We will try to answer as soon as possible, but also any user is more than welcome to answer.
35
-
- An alternative approach is to send an email to any of the [_mantainers_](https://github.com/cssr-tools/pyopmnearwell/blob/main/pyproject.toml).
37
+
- An alternative approach is to send an email to any of the [_mantainers_](https://github.com/cssr-tools/pyopmnearwell/blob/main/pyproject.toml).
If you are interested in a specific version (e.g., v2025.04) or in modifying the source code, then you can clone the repository and install the Python requirements in a virtual environment with the following commands:
23
+
If you are interested in a specific version (e.g., v2025.10) or in modifying the source code, then you can clone the repository and install the Python requirements in a virtual environment with the following commands:
# For a specific version (e.g., v2025.04), or skip this step (i.e., edge version)
31
-
git checkout v2025.04
30
+
# For a specific version (e.g., v2025.10), or skip this step (i.e., edge version)
31
+
git checkout v2025.10
32
32
# Create virtual environment
33
33
python3 -m venv vpyopmnearwell
34
34
# Activate virtual environment
@@ -41,7 +41,7 @@ pip install -e .
41
41
pip install -r dev-requirements.txt
42
42
```
43
43
44
-
See the [_installation_](https://cssr-tools.github.io/pyopmnearwell/installation.html) for further details on building OPM Flow from the master branches in Linux, Windows, and macOS, as well as the opm and tensorflow Python packages and LaTeX dependencies.
44
+
See the [_installation_](https://cssr-tools.github.io/pyopmnearwell/installation.html) for further details on building OPM Flow from the master branches in Linux, Windows (via [_WSL_](https://learn.microsoft.com/en-us/windows/wsl/)), and macOS, as well as the [_tensorflow_](https://www.tensorflow.org) Python package for the machine larning near well functionality.
45
45
46
46
## Running pyopmnearwell
47
47
You can run _pyopmnearwell_ as a single command line:
@@ -62,10 +62,10 @@ See the [_examples_](https://cssr-tools.github.io/pyopmnearwell/examples.html) i
62
62
## Publications
63
63
The following is a list of manuscripts in which _pyopmnearwell_ is used:
64
64
65
-
1. Landa-Marbán, D., Zamani, N., Sandve, T.H., Gasda, S.E., 2024. Impact of Intermittency on Salt Precipitation During CO2 Injection, presented at SPE Norway Subsurface Conference, Bergen, Norway, April 2024. doi: 10.2118/218477-MS.
66
-
1. von Schultzendorff, P., Sandve, T.H., Kane, B., Landa-Marbán, D., Both, J.W., Nordbotten, J.M., 2024. A Machine-Learned Near-Well Model in OPM Flow, presented at ECMOR 2024, European Association of Geoscientists & Engineers, Sep. 2024, pp. 1–23. doi: 10.3997/2214-4609.202437033.
67
-
1. Lliguizaca, J.R., Landa-Marbán, D., Gasda, S.E., Sandve, T.H., Alcorn, Z.P., 2024. Data-Driven Predictions of CO2 EOR Numerical Studies Using Machine Learning in an Open-Source Framework, presented at SPE Norway Subsurface Conference, Bergen, Norway, April 2024. doi: 10.2118/218441-MS.
68
-
1. Mushabe, R., Minougou, J.D., Landa-Marbán, D., Kane, B., Sandve, T.H., To appear. Predicting Ultimate Hydrogen Production and Residual Volume during Cyclic Underground Hydrogen Storage in Porous Media using Machine Learning.
65
+
1. Landa-Marbán, D., Zamani, N., Sandve, T.H., Gasda, S.E., 2024. Impact of Intermittency on Salt Precipitation During CO2 Injection, presented at SPE Norway Subsurface Conference, Bergen, Norway, April 2024. https://doi.org/10.2118/218477-MS.
66
+
1. von Schultzendorff, P., Sandve, T.H., Kane, B., Landa-Marbán, D., Both, J.W., Nordbotten, J.M., 2024. A Machine-Learned Near-Well Model in OPM Flow, presented at ECMOR 2024, European Association of Geoscientists & Engineers, Sep. 2024, pp. 1–23. https://doi.org/10.3997/2214-4609.202437033.
67
+
1. Lliguizaca, J.R., Landa-Marbán, D., Gasda, S.E., Sandve, T.H., Alcorn, Z.P., 2024. Data-Driven Predictions of CO2 EOR Numerical Studies Using Machine Learning in an Open-Source Framework, presented at SPE Norway Subsurface Conference, Bergen, Norway, April 2024. https://doi.org/10.2118/218441-MS.
68
+
1. Mushabe, R., Minougou, J.D., Landa-Marbán, D., Kane, B., Sandve, T.H., 2025. Predicting Ultimate Hydrogen Production and Residual Volume during Cyclic Underground Hydrogen Storage in Porous Media using Machine Learning. ESAIM: Proceedings and Surveys, 81, pp. 145-167. https://doi.org/10.1051/proc/202581145.
69
69
70
70
## About pyopmnearwell
71
71
The pyopmnearwell package is being funded by the [_HPC Simulation Software for the Gigatonne Storage Challenge project_](https://www.norceresearch.no/en/projects/hpc-simulation-software-for-the-gigatonne-storage-challenge)[project number 622059] and [_Center for Sustainable Subsurface Resources (CSSR)_](https://cssr.no)
Copy file name to clipboardExpand all lines: docs/_sources/configuration_file.rst.txt
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,4 +171,5 @@ Additional parameters
171
171
172
172
For different models than the co2store, new variables are used from the ones explained here. Then, in each of the
173
173
configuration files, a short description of the variable is added, e.g., for the saltprec model, then the poro-perm
174
-
relationship and the parameters per different facies can be set, see `saltprec.toml <https://github.com/cssr-tools/pyopmnearwell/blob/main/examples/saltprec.toml>`_.
174
+
relationship and the parameters per different facies can be set, see `saltprec.toml <https://github.com/cssr-tools/pyopmnearwell/blob/main/examples/saltprec.toml>`_, and for
175
+
biofilm effects in hydrogen storage, then the parameters for the biofilm can be set, see `h2biofilm.toml <https://github.com/cssr-tools/pyopmnearwell/blob/main/examples/h2biofilm.toml>`_.
0 commit comments