Validation¶
rodlift is validated in two complementary ways.
Reference data¶
Every correlation is compared with golden data produced by an independent,
single-precision reference implementation of the same published equations. The data
files live in tests/reference/
(inputs and outputs in oilfield units) and the per-dataset tolerances in
tests/reference/tolerances.toml. Because the reference runs in single precision,
agreement is expected to a few parts in 10⁵.
| Dataset | Cases |
|---|---|
| Solution GOR (5 correlations) | 600 |
| Bubble-point pressure (5 correlations) | 600 |
| Oil formation volume factor (4 correlations) | 480 |
| Oil compressibility (2 correlations) | 240 |
| Oil viscosity (7 dead-oil × 4 live/undersaturated combinations) | 840 |
| z-factor and gas FVF | 420 |
| Gas viscosity | 120 |
| Water solubility, FVF, viscosity | 240 |
| Liquid viscosity and surface tension | 360 |
| Black-oil model, end to end | 288 |
| Multiphase-flow correlations (24 correlations × ~300 states) | 7,195 |
| Flow-pattern maps (upward, near-horizontal, downward, rough wall) | 5,100 |
Physical invariants¶
Property-based tests (Hypothesis) check, among others, that
- bubble-point pressure is the exact inverse of solution GOR for every correlation;
- solution GOR increases with pressure and oil FVF is never below 1;
- the Dranchuk–Abou-Kassem root satisfies the equation of state to machine precision and z → 1 as pressure → 0;
- the black-oil model is continuous at the bubble point and never dissolves more gas than is produced.