Field¶
- class Field(path: Path | None = None, logfile=None, loglevel='INFO')[source]¶
Reservoir model.
Contains reservoir model data and data processing tools.
- Parameters:
- property components¶
Model components.
- get_vtk_dataset()[source]¶
Create vtk dataset with data from rock and states components. Grid is represented in unstructured form.
- Returns:
vtk dataset with states and rock data.
- Return type:
vtk.vtkUnstructuredGrid
- load(include_binary=True, verbose=1)[source]¶
Load reservoir model data.
- Parameters:
- Returns:
out – Field with loaded components.
- Return type:
- property logger¶
Logger.
- property name¶
Model filename without extention.
- show(attr=None, thresholding=False, slicing=False, timestamp=None, opacity=0.5, scaling=True, cmap=None, notebook=False, backend=None, theme='default', show_edges=True, faults_color='red', show_labels=True)[source]¶
Field visualization.
- Parameters:
attr (str or None) – Attribute of the grid to show. If None, ACTNUM will be shown.
thresholding (bool) – Show slider for thresholding. Cells with attribute value less than threshold will not be shown. Default False.
slicing (bool) – Show by slices. Default False.
timestamp (int or None) – The timestamp to show. Meaningful only for sequential attributes (States). Has no effect given non-sequential attributes.
opacity (float) – Opacity value between 0 and 1. Default 0.5.
scaling (bool, list or tuple) – The ratio of the axes in case of iterable, if True then it’s (1, 1, 1), if False then no scaling is applied. Default True.
cmap (object) – Matplotlib, Colorcet, cmocean, or custom colormap
notebook (bool) – When True, the resulting plot is placed inline a jupyter notebook. Assumes a jupyter console is active. Automatically enables off_screen.
backend (None or str) – Pyvista backend. Default None.
theme (str) – PyVista theme, e.g. ‘default’, ‘dark’, ‘document’, ‘ParaView’. See https://docs.pyvista.org/examples/02-plot/themes.html for more options.
show_edges (bool) – Shows the edges of a mesh. Default True.
faults_color (str) – Corol to show faults. Default ‘red’.
show_labels (bool) – Show x, y, z axis labels. Default True.