Finite Volume Method — HEM
The wellbore simulator solves the one-dimensional area-weighted conservation laws for transient CO₂ flow using a cell-centred finite volume method. This page describes the Homogeneous Equilibrium Model (HEM) discretisation, following Sacconi & Mahgerefteh (2020). Two-phase regions are treated as a single pseudo-fluid in mechanical and thermodynamic equilibrium (one velocity, one pressure, one temperature).
Governing Equations
For variable cross-section and inclination (angle from horizontal, so a vertical downward well has ), the area-weighted conservation laws read:
with total energy , friction force per unit volume , and wall heat source per unit volume (positive into fluid).
State Vector
The conserved state stored per cell is area-weighted:
Cell-Centred Finite Volume Update
Discretising the wellbore into cells of size , integrating (1)–(3) over cell , and applying the divergence theorem yields the semi-discrete update:
with three contributions on the right-hand side:
- — numerical fluxes at cell faces from the area-weighted AUSM⁺-up scheme. See the AUSM⁺-up Flux Scheme page for splitting polynomials, well-balanced face pressures, and dissipation terms. Higher-order accuracy comes from MUSCL or WENO5 reconstruction of left/right interface states.
- — non-conservative geometric pressure work, contributing to the momentum equation. Evaluated from face pressures consistent with the AUSM⁺-up reconstruction.
- — physical source terms (gravity, friction, heat transfer), assembled below.
Source Terms
In HEM the source vector is
with the closures:
Friction (Darcy–Weisbach with Chen's correlation):
where is the Darcy friction factor from Chen (1979), evaluated from the Reynolds number and relative roughness . Viscosity comes from the equation of state.
Wall heat source: is computed by a transient radial conduction model coupling fluid → tubing → annulus → casing → cement → formation, evaluated per cell from the local wall and formation temperatures.
Both gravity and friction contributions are individually toggleable via input flags.
Closure
The HEM model requires a thermodynamic closure valid across single-phase liquid, single-phase vapour, and the two-phase saturation dome. The simulator obtains this from CoolProp, evaluated either directly per call or via pre-tabulated lookup for performance. Inside the saturation envelope, pressure is fixed at and the mixture density follows from the lever rule on the conserved internal energy.
Time Integration
Time integration is delegated to PETSc TS, with a Newton solver (SNES) for implicit schemes. Step size is adapted from a CFL bound using the maximum interface wave speed returned by the AUSM⁺-up flux routine.
References
- Sacconi, A. & Mahgerefteh, H. (2020). Modelling start-up injection of CO₂ into highly-depleted gas fields. Energy, 191, 116530. doi:10.1016/j.energy.2019.116530
- Chen, N. H. (1979). An explicit equation for friction factor in pipe. Industrial & Engineering Chemistry Fundamentals, 18(3):296–297.
- Liou, M.-S. (2006). A sequel to AUSM, Part II: AUSM⁺-up for all speeds. Journal of Computational Physics, 214(1):137–170. doi:10.1016/j.jcp.2005.09.020