OpenFOAM v2412Reference run (DimensionLab)
Sod shock tube: OpenFOAM rhoCentralFoam reference run
OpenFOAM v2412 rhoCentralFoam (KNP fluxes, van Leer) run of the Sod shock tube at 128 cells fails its gates: rms error of the conserved variables at 128 cells (Athena++ regression bound) 0.0096 (gate 0.011); error ratio 256 to 128 cells (Athena++ convergence rule) 0.84 (gate 0.6). Intel Core i7-6800K CPU, serial, f64, 2026-11-28.
Reference case. This is a run of OpenFOAM v2412, another code, not of a DimensionLab solver. It is shown as a reference for the problem; it is not counted in our solvers' verdicts or totals.
Failed: error ratio 256 to 128 cells (Athena++ convergence rule) 0.84 is above 0.6. Passed: rms error of the conserved variables at 128 cells (Athena++ regression bound) 0.0096 is within 0.011. From 256 cells on, rhoCentralFoam with KNP fluxes and the van Leer limiter oscillates between the contact and the shock, so the conserved-variable error stops falling while the density error still falls.
Results

Density at 128 cells against the exact Riemann solution

Error against resolution with the regression rule

Metrics
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| rms error of the conserved variables at 128 cells (Athena++ regression bound)key | 0.00956 | |x| ≤ 0.011 | 87 % | ✓ pass |
| Mean density error at 128 cells | 0.00413 | not gated | reported only | reported |
| Error ratio 256 to 128 cells (Athena++ convergence rule) | 0.841 | |x| ≤ 0.6 | 140 % | ✕ fail |
| rms error of the conserved variables at 512 cells | 0.00955 | not gated | reported only | reported |
| Athena++ rms error at 128 cells, same case | 0.00957 | not gated | reported only | reported |
Setup
- Code
- OpenFOAM v2412
- Grid and numerics
- 1D [-0.5, 0.5], 128 cells (256 and 512 also run), diaphragm at 0, gamma 1.4, t = 0.25; rhoCentralFoam, KNP central-upwind fluxes, van Leer limiter, Euler step at Courant 0.2
- Hardware
- Intel Core i7-6800K workstation CPU, serial run; f64
References
- Third-party code
C. J. Greenshields, H. G. Weller, L. Gasparini, J. M. Reese, Implementation of semi-discrete, non-staggered central schemes in a colocated, polyhedral, finite volume framework, for high-speed viscous flows, International Journal for Numerical Methods in Fluids 63 (2010) 1-21
doi:10.1002/fld.2069 - Published benchmark
G. A. Sod, A survey of several finite difference methods for systems of nonlinear hyperbolic conservation laws, Journal of Computational Physics 27 (1978) 1-31
doi:10.1016/0021-9991(78)90023-2
Our solvers on this problem
PassKaze · CPUSod shock tube: density against the exact Riemann solution
Density L1 error, 100 cells: 0.0041
31 %riemann problem · shock tube