Tutorial#

Learn pyopmspe11 by creating and modifying an SPE11B case. Start by generating an OPM Flow deck, then run the simulation, write benchmark data, create standard figures, change the physical model and grid, and compare results.

Before starting, complete the Installation. OPM Flow is required from Lesson 2 onward; see OPM Flow.

Tip

Lessons 1 through 4 can be run as one workflow with -m all:

pyopmspe11 -i my_spe11b.toml -o my_spe11b -m all -g all -r 50,1,15 -t 5 -w 1

Reproduce the tutorial#

Run the complete tutorial from the repository root:

. ./tests/scripts/docs_tutorial.sh

View tutorial script

1. Generate the first deck

Copy an example configuration and generate OPM Flow input files.

Generate the first deck
2. Run OPM Flow

Configure the Flow command and run the simulation.

Run OPM Flow
3. Generate benchmark data

Write dense, sparse, performance, and spatial-performance CSV files.

Generate benchmark data
4. Create benchmark plots

Generate the standard figures from the benchmark CSV files.

Create benchmark plots
5. Modify the physical model

Compare immiscible, isothermal, convective, and complete models.

Modify the physical model
6. Modify the grid

Change the grid type, dimensions, and refinement.

Modify the grid
7. Compare results

Compare completed runs and continue to advanced workflows.

Compare results