Skip to content

Commit

Permalink
Merge pull request #51 from daavid00/documentation
Browse files Browse the repository at this point in the history
Updating the results in the documentation
  • Loading branch information
daavid00 authored May 22, 2024
2 parents 7547731 + 7f9a9a3 commit b95289a
Show file tree
Hide file tree
Showing 58 changed files with 426 additions and 173 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
run-pyopmspe11-local:
timeout-minutes: 30
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ examples/finner_grids/spe11b
examples/finner_grids/spe11c
examples/hello_world/spe11a
examples/hello_world/spe11b
examples/hello_world/spe11c
examples/hello_world/spe11
tests/configs/test_compare
tests/configs/output
tests/configs/spe11a
tests/configs/spe11b
tests/configs/spe11c
tests/configs/check_format.py
Binary file modified docs/_images/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/spe11a_masses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/spe11a_performance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_images/spe11a_performance_detailed.png
Binary file not shown.
Binary file modified docs/_images/spe11a_sparse_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_images/spe11a_tco2_2Dmaps.png
Binary file not shown.
Binary file added docs/_images/spe11b_performance_1m-10m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_images/spe11b_performance_1m.png
Binary file not shown.
Binary file added docs/_images/spe11b_sparse_data_1m-10m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_images/spe11b_sparse_data_1m.png
Binary file not shown.
Binary file modified docs/_images/spe11c.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/spe11c_performance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/spe11c_sparse_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 45 additions & 29 deletions docs/_sources/examples.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,70 +39,86 @@ The following are some of the figures generated in the compare folder:

This example uses a very coarser grid to run fast. See the following section for finer grids.

===============================
SPE11A in a 1 mm Cartesian grid
===============================
======
SPE11A
======

In a 1 mm Cartesian grid for the spe11a `(spe11a1mm.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11a1mm.txt>`_, by executing:
In a 1 mm Cartesian grid for the spe11a `(spe11a1mm.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11a1mm.txt>`_
and in a 1 cmish corner-point grid `(spe11a_cp_1cmish.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11a_cp_1cmish.txt>`_:

.. code-block:: bash
pyopmspe11 -i spe11a1mm.txt -o spe11a1mm -m all -g all -t 1 -r 280,1,120 -w 0.16666666666666666
pyopmspe11 -i spe11a_cp_1cmish.txt -o spe11a_cp_1cmish -m all -g all -t 1 -r 280,1,120 -w 0.16666666666666666
pyopmspe11 -c spe11a
the following are some of the generated figures:
.. figure:: figs/spe11a_masses.png

.. figure:: figs/spe11a_sparse_data.png

Sparse data.
Final CO2 mass in the reporting grid of 1 cm size for (left) spe11a1mm and (right) spe11a_cp_1cmish.

.. figure:: figs/spe11a_performance.png

Performance data.

.. figure:: figs/spe11a_performance_detailed.png

Detailed performance data.
.. figure:: figs/spe11a_sparse_data.png

.. figure:: figs/spe11a_tco2_2Dmaps.png
Sparse data.

Dense data for the CO2 mass (in the 1 cm size, tho the simulations are runned at 1 mm size).
.. note::
For the spe11a1mm, regarding the mob and imm results in the sparse data (blue lines in the boxA and boxB plots), the immobile saturations
were computed as the fraction of mobile saturation that will be immobilized due to future migration, and after
clarification of the definition of immobile saturations for the benchmark (CO2 at saturations for which the nonwetting
relative permeability equals zero), then this has been implemented, and the spe11a_cp_1cmish results (and also the
results in hello world, SPE11B, and SPE11C) follow this definition. Since running the spe11a1mm requires many many days,
then we will rerun the case after feedback from the workshop in June.

==============================
SPE11B in a 1 m Cartesian grid
==============================
======
SPE11B
======

The following are simulation results in a 1 m Cartesian grid `(spe11b1m.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11b1m.txt>`_,
and the animation in the `main page <https://github.com/OPM/pyopmspe11/blob/main>`_ was generated using these results (the inizialization time of 1000 years was
skipped and the results were printed ever 25 years instead of 5 years):
and the animation in the `main page <https://github.com/OPM/pyopmspe11/blob/main>`_ was generated using these results, as well as for a 10 m Cartesian grid
`(spe11b10m.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11b10m.txt>`_ which is the grid resolution for the reporting of dense data in the benchmark:

.. code-block:: bash
pyopmspe11 -i spe11b1m.txt -o spe11b1m -m all -g all -r 840,1,120 -t 5 -w 0.1
pyopmspe11 -i spe11b10m.txt -o spe11b10m -m all -g all -r 840,1,120 -t 5 -w 0.1
pyopmspe11 -c spe11b
.. figure:: figs/spe11b_sparse_data_1m.png
.. figure:: figs/spe11b_sparse_data_1m-10m.png

Sparse data in the 1 m Cartesian grid.
Sparse data.

.. figure:: figs/spe11b_performance_1m.png
.. figure:: figs/spe11b_performance_1m-10m.png

Performance data in the 1 m Cartesian grid.
Performance data.

=============================
SPE11C in a corner-point grid
=============================
======
SPE11C
======

The following are simulation results in a corner-point grid `(spe11c_cp.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11c_cp.txt>`_ with 21729920 active cells (the inizialization time of 1000 years was skipped):
The following are simulation results in a corner-point grid `(spe11c_cp.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11c_cp.txt>`_ with 21729920 active cells
and in a Cartesian grid with the same resolution as in the benchmark reporting data `(spe11c_168_100_120.txt) <https://github.com/OPM/pyopmspe11/blob/main/examples/finner_grids/spe11c_168_100_120.txt>`_:

.. code-block:: bash
pyopmspe11 -i spe11c_cp.txt -o spe11c_cp -m all -g all -r 168,100,120 -t 0,5,10,15,20,25,30,35,40,45,50,75,100,150,200,250,300,350,400,450,500,600,700,800,900,1000
pyopmspe11 -i spe11c_cp.txt -o spe11c_cp -m all -g all -r 168,100,120 -t 0,5,10,15,20,25,30,35,40,45,50,75,100,150,200,250,300,350,400,450,500,600,700,800,900,1000 -w 0.1
pyopmspe11 -i spe11c_168_100_120.txt -o spe11c_168_100_120 -m all -g all -r 168,100,120 -t 0,5,10,15,20,25,30,35,40,45,50,75,100,150,200,250,300,350,400,450,500,600,700,800,900,1000 -w 0.1
pyopmspe11 -c spe11c
.. figure:: figs/spe11c_sparse_data.png

Sparse data in the corner-point grid.
Sparse data.

.. figure:: figs/spe11c_performance.png

Performance data in the corner-point grid.
Performance data.

.. note::
For the spe11c_cp results (orange lines), currently new simulations with improved tunning are being runned to avoid the significant mass lost during
the injection period, then the results will be updated.

.. image:: ./figs/spe11c.gif
2 changes: 1 addition & 1 deletion docs/_sources/introduction.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where
- \-i, \-\-input: The base name of the :doc:`configuration file <./configuration_file>` ('input.txt' by default).
- \-o, \-\-output: The base name of the :doc:`output folder <./output_folder>` ('output' by default).
- \-m, \-\-mode: Run the whole framework ('all'), only create decks ('deck'), only run flow ('flow'), only write benchmark data ('data'), only create plots ('plot'), deck and run ('deck_flow'), data and plot ('data_plot'), run and data ('flow_data'), or deck, run, and data ('deck_flow_data') ('deck_flow' by default).
- \-g, \-\-generate: Write only the 'dense', 'sparse', 'performance', 'performance-spatial', 'dense_performance', 'dense_sparse', 'performance_sparse', 'dense_performance-spatial', or 'all' ('performance_sparse') by default.
- \-g, \-\-generate: Write only the 'dense', 'sparse', 'performance', 'performance-spatial', 'dense_performance', 'dense_sparse', 'performance_sparse', 'dense_performance-spatial', 'dense_performance_sparse', or 'all' ('performance_sparse') by default.
- \-r, \-\-resolution: Number of x, y, and z elements to map the simulation results to the dense report data ('8,1,5' by default).
- \-t, \-\-time: If one number, time step for the spatial maps (spe11a [h]; spe11b/c [y]) ('5' by default); otherwise, times separated by commas.
- \-u, \-\-use: Using the 'opm' or 'resdata' python package ('resdata' by default).
Expand Down
2 changes: 1 addition & 1 deletion docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<section id="about-pyopmspe11">
<h1>About pyopmspe11<a class="headerlink" href="#about-pyopmspe11" title="Link to this heading"></a></h1>
<a class="reference internal image-reference" href="_images/about.png"><img alt="_images/about.png" src="_images/about.png" style="width: 836.5500000000001px; height: 262.6px;" /></a>
<a class="reference internal image-reference" href="_images/about.png"><img alt="_images/about.png" src="_images/about.png" style="width: 813.8000000000001px; height: 408.2px;" /></a>
<p>This <strong>pyopmspe11</strong> package is being funded by the <a class="reference external" href="https://www.norceresearch.no/en/projects/hpc-simulation-software-for-the-gigatonne-storage-challenge">HPC Simulation Software for the Gigatonne Storage Challenge project</a>
[project number 622059] and <a class="reference external" href="https://cssr.no">Center for Sustainable Subsurface Resources (CSSR)</a> [project no. 331841].
This is work in progress. <a class="reference external" href="https://www.spe.org/en/csp/">Here</a> is the link to the spe11 details.
Expand Down
Loading

0 comments on commit b95289a

Please sign in to comment.