The wellbore simulator uses the AUSM⁺-up (Advection Upstream Splitting Method) flux scheme for computing numerical fluxes at cell interfaces. Based on Liou (2006) with area-weighted extensions from Sacconi & Mahgerefteh (2020).
The numerical flux at each cell interface is determined by a split Mach number. Left and right states each contribute through the M4± polynomials. A pressure-difference dissipation term scaled by Kp improves stability at low Mach numbers.
In a static wellbore column with gravity, neighbouring cells have different pressures due to the hydrostatic gradient. Without correction, the Kp dissipation term sees this difference and generates spurious mass flux.
The well-balanced modification extrapolates cell-centre pressures to the shared face using the hydrostatic increment ΔP=21(ρL+ρR)gΔzsinθ:
The fourth-order Mach polynomials smoothly split the interface Mach number into left- and right-running contributions. For supersonic flow (∣M∣≥1) they reduce to simple upwinding. The subsonic branch uses β to control blending: