Skip to content
DimensionLab

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

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 against position and time (x-t map, 101 outputs, 512 cells)

Density at 128 cells against the exact Riemann solution

Density at 128 cells against the exact Riemann solution

Error against resolution with the regression rule

Error against resolution with the regression rule

Metrics

MetricValueGateAllowance usedResult
rms error of the conserved variables at 128 cells (Athena++ regression bound)key0.00956|x| ≤ 0.01187 %✓ pass
Mean density error at 128 cells0.00413not gatedreported onlyreported
Error ratio 256 to 128 cells (Athena++ convergence rule)0.841|x| ≤ 0.6140 %✕ fail
rms error of the conserved variables at 512 cells0.00955not gatedreported onlyreported
Athena++ rms error at 128 cells, same case0.00957not gatedreported onlyreported

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

All reference cases