Examples#

Deck-based examples are the recommended and actively developed path. The legacy configuration example is retained for existing Norne and Drogon studies.

Warning

For new applications, start with Hello World: generic deck workflow and the deck-based examples. TOML workflows are legacy and model-specific.

Visualization and reproducibility#

For additional examples demonstrating the applicability of pycopm, see the tests.

ResInsight and plopm are used for the visualization of the results.

Note

You can install plopm by executing in the terminal:

pip install git+https://github.com/cssr-tools/plopm.git

There are binary packages for Linux and Windows to install Resinsight, see the ResInsight Documentation. For macOS users, you could try to install it using brew by executing:

brew tap cssr-tools/opm
brew trust cssr-tools/opm
brew install cssr-tools/opm/resinsight -y

Then, you should be able to open resinsight by typing in the terminal resinsight. If you have issues installing ResInsight, ParaView can be also used. However, you need to add the flag --enable-vtk-output=true to OPM Flow.

Tip

For the figures in the following examples we show screenshots from ResInsight and PNGs figures from plopm. To generate the results, we add a link to a bash file that can be run from the main pycopm repository as:

. ./tests/scripts/name_of_script.sh

Deck workflow scope#

The current development of pycopm focuses on creating tailored models (grid refinement, grid coarsening, submodels, and transformations) by using input decks. While in the Hello world example these four different options are demonstrated, for the latter examples the focus is on the grid coarsening functionality, and the SPE10 also shows the submodel functionality.

Legacy configuration workflows

Existing Norne and Drogon TOML and ERT studies.

Legacy configuration workflows
Smeaheia

Coarsen the Smeaheia simulation model.

Smeaheia
Drogon

Prepare, coarsen, conserve fluids in place, compare, and animate Drogon.

Drogon
Norne

Preserve the Norne geometry with directional coarsening.

Norne
SPE10

Coarsen SPE10 Model 2 and extract a well-centred submodel.

SPE10
Dual coarsening

Compare standard and net/non-net-aware coarsening.

Dual coarsening
Graphical abstract

Reproduce the coarsening, submodel, refinement, and transformation illustrations.

Graphical abstract

The complete former Hello World example is now the Hello World: generic deck workflow.