rodlift¶
Sucker-rod pumping, multiphase well flow and black-oil fluid properties in Python.
rodlift is an open-source library for production engineering. It provides the standard industry correlations as plain, vectorised, typed Python functions — each citing its original publication — and composes them into higher-level models.
Pre-alpha
Fluid properties and multiphase-flow correlations are available. Pressure traverses and the rod-pump simulator are in progress.
Design principles¶
- SI units everywhere in the public API, with explicit converters for oilfield
units in
rodlift.units. - Published physics. Every correlation implements the equations of its paper.
- Vectorised. Functions accept scalars or NumPy arrays.
- Validated. Each function is checked against an independent reference implementation (see Validation) and against physical invariants with property-based tests.
- Typed. The package ships
py.typedand passesmypy --strict.
Roadmap¶
- Fluid properties (PVT) — available
- Multiphase-flow correlations — available
- Pressure and temperature traverses
- Sucker-rod pumping simulator