Skip to main content

Crate peteksim

Crate peteksim 

Source
Expand description

peteksim — the SIMULATION layer / product facade of the petek subsurface-modelling suite, consolidated into one crate.

Packaging note (2026-07-05): the three historical published library crates (srs-units, srs-pvt, srs-core) were merged into this single peteksim crate. Today’s boundaries are preserved as modules with the same one-directional import discipline they had as crates:

units → pvt → core
  • units — the one workspace error type (SrsError).
  • pvt — PVT properties (FVF-as-input: pvt::OilFvf, pvt::GasFvf).
  • core — the orchestration spine: the model-first refine loop, the appraisal facade, the analytic box path, and the typed viewer bundles.

The headline Rust API (run_model, the appraisal facade types, the Distribution seam, the view bundles, …) is re-exported at the crate root, so callers reach the common types without needing to know which module they live in.

Re-exports§

pub use units::Result;
pub use units::SrsError;
pub use core::*;

Modules§

core
The core module — orchestration tying grid + volumetrics + uncertainty together.
pvt
The pvt module — PVT properties. MVP scope is FVF-as-input (OilFvf, GasFvf); the gas_fvf (DAK Z) correlation is a later fast-follow that produces the same GasFvf value type, keeping the downstream boundary stable.
units
The workspace error type.