-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from OPM/development
Support to generate the benchmark data
- Loading branch information
Showing
121 changed files
with
2,639 additions
and
1,445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
include README.md | ||
include LICENSE | ||
include src/pyopmcsp11/core/* | ||
include src/pyopmcsp11/templates/co2/* | ||
include src/pyopmcsp11/templates/common/* | ||
include src/pyopmcsp11/templates/reference_mesh/* | ||
include src/pyopmcsp11/utils/* | ||
include src/pyopmcsp11/visualization/* | ||
include src/pyopmspe11/core/* | ||
include src/pyopmspe11/templates/co2/* | ||
include src/pyopmspe11/templates/common/* | ||
include src/pyopmspe11/templates/reference_mesh/* | ||
include src/pyopmspe11/utils/* | ||
include src/pyopmspe11/visualization/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CURRENT_DIRECTORY="$PWD" | ||
|
||
# OPM modules | ||
for repo in common grid models simulators | ||
do | ||
git clone https://github.com/OPM/opm-$repo.git | ||
done | ||
|
||
mkdir build | ||
|
||
for repo in common grid models | ||
do | ||
mkdir build/opm-$repo | ||
cd build/opm-$repo | ||
cmake -DUSE_MPI=1 -DOPM_ENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$CURRENT_DIRECTORY/build/opm-common;$CURRENT_DIRECTORY/build/opm-grid" $CURRENT_DIRECTORY/opm-$repo | ||
make -j5 | ||
cd ../.. | ||
done | ||
|
||
mkdir build/opm-simulators | ||
cd build/opm-simulators | ||
cmake -DUSE_MPI=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$CURRENT_DIRECTORY/build/opm-common;$CURRENT_DIRECTORY/build/opm-grid;$CURRENT_DIRECTORY/build/opm-models" $CURRENT_DIRECTORY/opm-simulators | ||
make -j5 flow | ||
cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Running in a docker | ||
|
||
Docker container allows to run opm inside an encapsulated environment. To use it either pull the public [docker image](https://hub.docker.com/r/jafranc/opm-u22-spe11spe) | ||
|
||
``` | ||
docker pull jafranc/opm-u22-spe11csp | ||
``` | ||
|
||
or build it from the source _omp-spe11csp-ubuntu.Dockerfile_ located at _./dockers_ with command: | ||
|
||
``` | ||
cd dockers | ||
docker build --build-arg IMG=ubuntu --build-arg VERSION=jammy -t <tag-docker> -f omp-spe11csp-ubuntu.Dockerfile . | ||
``` | ||
|
||
Then using `docker images`, the created or pulled image should be visible. Running the data generator and simulation for a case is then done by | ||
|
||
``` | ||
docker run -e SPE_CASE=<a,b or c> -v <host-path-to-result>:/opt/spe11csp/output_csp11<a,b or c> <tag-docker> | ||
``` | ||
|
||
Then you can inspect what has been produced at \<host-path-to-result\>. \<tag-docker\> being the tag you choose when building the image or if pulled from _docker://_ , _jafranc/opm-u22-spe11csp:latest_. Eventually \<a,b or c\> will set a variable in the docker container generating and running the simulation either for csp SPE 11th case a (2D surface conditions), case b (2D reservoir conditions) or c (3D extruded reservoir conditions). | ||
|
||
Results can be visualized using [ResInsight](https://resinsight.org/) or other viewers. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
================ | ||
About pyopmcsp11 | ||
About pyopmspe11 | ||
================ | ||
|
||
.. image:: ./figs/about.png | ||
:scale: 65% | ||
|
||
This **pyopmcsp11** 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>`_ | ||
This **pyopmspe11** 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>`_ [project no. 331841]. | ||
This is work in progress. `Here <https://www.spe.org/en/csp/>`_ is the link to the csp11 details. | ||
This is work in progress. `Here <https://www.spe.org/en/csp/>`_ is the link to the spe11 details. | ||
Contributions are more than welcome using the fork and pull request approach. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
===================== | ||
pyopmcsp11 Python API | ||
pyopmspe11 Python API | ||
===================== | ||
|
||
The main script for the **pyopmcsp11** executable is located in the core folder. | ||
The main script for the **pyopmspe11** executable is located in the core folder. | ||
The reference_mesh folder contains `Gmsh <https://gmsh.info>`_ files to obtain the | ||
coordinates used for the location of the different facies and generation of the corner-point grid. | ||
The scripts in the utils folder process the input configuration | ||
file, creates the geological model, and write the input files by using the files in the templates folder. | ||
The visualization folder contains files for the postprocessing of the results (currently only | ||
to plot 2D spatial maps for the last time step simulated.) | ||
The visualization folder contains files for the postprocessing of the results. | ||
|
||
.. figure:: figs/contents.png | ||
|
||
Files in the pyopmcsp11 package. | ||
Files in the pyopmspe11 package. | ||
|
||
.. include:: modules.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.