Skip to content

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.typed and passes mypy --strict.

Roadmap

  1. Fluid properties (PVT) — available
  2. Multiphase-flow correlations — available
  3. Pressure and temperature traverses
  4. Sucker-rod pumping simulator