How jamalbaylit/petres works
Petres is a Python library for static reservoir modeling: users build or import grids, model structural surfaces and cell properties, then inspect or export the result. The README documents grid generation, boundary-based cell deactivation, well-top structural modeling, property modeling and Eclipse GRDECL support. The graph preserves those capabilities alongside interpolation and 2D/3D visualization. Some relationships are documented only at capability level; dashed edges with null evidence mark unverified links, and unsampled implementations are represented by their exact tree paths.
Main entry points: cornerpoint.py Corner-point grid · matplotlib/viewer.py 2D visualization · properties.py Cell properties · pyvista/viewer.py 3D visualization
Components 20
Grid modeling
- Corner-point grid
src/petres/grids/cornerpoint.py - Grid builder
src/petres/grids/builders/cornerpoint.py - Pillars and rectilinear grids
src/petres/grids/pillars.py
Structural modeling
- Boundary polygons
src/petres/models/boundary.py - Well data
src/petres/models/wells.py - Horizon surfaces
src/petres/models/horizon.py - Zone surfaces
src/petres/models/zone.py - Field model
src/petres/models/field.py
Properties and interpolation
- Cell properties
src/petres/grids/properties.py - Interpolator API
src/petres/interpolators/base.py - IDW interpolation
src/petres/interpolators/spatial/inverse_distance.py - Kriging
src/petres/interpolators/spatial/kriging.py - RBF interpolation
src/petres/interpolators/spatial/radial_basis.py
Eclipse exchange
- GRDECL import
src/petres/eclipse/grids/read.py - GRDECL export
src/petres/eclipse/grids/write.py - GRDECL metadata
src/petres/eclipse/grids/metadata.py
Visualization
- 2D visualization
src/petres/viewers/viewer2d/matplotlib/viewer.py - 3D visualization
src/petres/viewers/viewer3d/pyvista/viewer.py - 3D rendering layers
src/petres/viewers/viewer3d/pyvista/layers
Other components
- Reservoir engineer
Connections 26
- Reservoir engineer → Corner-point grid: constructs
- Reservoir engineer → GRDECL import: imports grid
- Corner-point grid → Grid builder: uses builder
src/petres/grids/cornerpoint.py - Corner-point grid → Cell properties: creates properties
src/petres/grids/cornerpoint.py - Corner-point grid → Well data: uses well model
src/petres/grids/cornerpoint.py - Corner-point grid → Boundary polygons: uses boundary
src/petres/grids/cornerpoint.py - Corner-point grid → Zone surfaces: uses zone model
src/petres/grids/cornerpoint.py - Corner-point grid → GRDECL import: reads GRDECL
src/petres/grids/cornerpoint.py - Corner-point grid → GRDECL export: writes GRDECL
src/petres/grids/cornerpoint.py - GRDECL export → GRDECL metadata: writes metadata
src/petres/eclipse/grids/write.py - Well data → Horizon surfaces: supplies well tops
- Horizon surfaces → Zone surfaces: supports zone modeling
- Boundary polygons → Corner-point grid: deactivates cells
src/petres/grids/cornerpoint.py - Interpolator API → Kriging: provides API
src/petres/interpolators/spatial/kriging.py - Cell properties → IDW interpolation: interpolates values
- Cell properties → Kriging: interpolates values
- Cell properties → RBF interpolation: interpolates values
- GRDECL import → Corner-point grid: creates grid
src/petres/grids/cornerpoint.py - Reservoir engineer → 2D visualization: views model
- Reservoir engineer → 3D visualization: views model
- 3D visualization → Corner-point grid: renders grid
src/petres/viewers/viewer3d/pyvista/viewer.py - 3D visualization → 3D rendering layers: dispatches rendering
src/petres/viewers/viewer3d/pyvista/viewer.py - 2D visualization → Well data: renders well data
src/petres/viewers/viewer2d/matplotlib/viewer.py - 2D visualization → Boundary polygons: renders boundaries
src/petres/viewers/viewer2d/matplotlib/viewer.py - 2D visualization → Horizon surfaces: renders horizons
src/petres/viewers/viewer2d/matplotlib/viewer.py - 2D visualization → Zone surfaces: renders zones
src/petres/viewers/viewer2d/matplotlib/viewer.py