read_grdecl#
- read_grdecl( ) ExplicitStructuredGrid[source]#
Read a GRDECL file (
'.GRDECL').- Parameters:
- Returns:
pyvista.ExplicitStructuredGridOutput explicit structured grid.
Examples#
Download Python source code | Download Jupyter notebook
Read a '.GRDECL' file.
>>> import pyvista as pv
>>> grid = pv.read('file.GRDECL')
Unused keywords contained in the file are stored in pyvista.DataObject.user_dict:
>>> grid.user_dict
{"MAPUNITS": ..., "GRIDUNIT": ..., ...}