Introduction
This documentation describes the pyopmnearwell package hosted in https://github.com/cssr-tools/pyopmnearwell.
Concept
Simplified and flexible testing framework for near-well simulations via a configuration file using the OPM Flow simulator:
Set the physical model (current ones are co2store, co2eor, h2store, and saltprec).
Choose a specific template inside the folder for the chosen physical model.
Define the grid refinment in the x/y and z directions.
Define the number of different rocks along the z direction.
Define the number of layers (heterogeneity around the well) and its length.
Set the rock and fluid properties.
Define the injection schedule.
Run the simulations.
Inspect the results by looking at the generated figures.
Overview
The current implementation supports the following executable with the argument options:
pyopmnearwell -i input.txt -o output -p resdata -c '' -g all -v 1 -z 10 -s log -m co2store -w 0 -l 1
where
- -i
The base name of the configuration file (‘input.txt’ by default).
- -o
The base name of the output folder (‘output’ by default).
- -p
Using the ‘resdata’ or ‘opm’ Python package to generate the figures (‘resdata’ by default, ‘off’ to skip the plotting).
- -c
Compare the results from different output folders (write any name to actiate, ‘’ by default).
- -g
Run the whole framework (‘all’), only run flow (‘flow’), only write the deck and run flow together in the output folder (‘single’), or only create plots (‘plot’) (‘all’ by default).
- -w
Write cell values, i.e., EGRID, INIT, UNRST (‘1’ by default).
- -z
xlim in meters for the zoomed in plots (20 by default).
- -s
Scale for the x axis in the figures: ‘normal’ or ‘log’ (‘normal’ by default).
- -m
Simulated model (5th row in the configuration file). This is used for the plotting compare method (it gets overwritten by the configuration file) (‘co2store’ by default).
- -w
Set to 1 to print warnings (‘0’ by default).
- -l
Set to 0 to not use LaTeX formatting (‘1’ by default).
Warning
The H2CH4 template in the h2store model folder is under development and it is based on an input deck available in opm-tests. In addition, the templates in the co2eor model are based on an input deck available in opm-publications. Currently the PVT tables in those examples are used, limiting the range of reservoir pressure and temperature, it is in the TODO list to extend this.