Skip to content
DimensionLab

OpenFOAM v2412Reference run (DimensionLab)

Square cavity with a 20 W heater: OpenFOAM first law and comparison with OpenLB

OpenFOAM v2412 (buoyantBoussinesqPimpleFoam) closes the heat balance of a closed cavity with a 20 W heater to -9.2e-9 of the source (gate 1.3 %) and each cold wall takes 10.000 W; OpenLB 1.9r0 on the same case gives a mean rise 0.3 % from OpenFOAM's 0.629 K (reported); CPU, f64, 2026-11-17.

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.

Pass

Results

Temperature field at the end

Mean temperature rise vs OpenLB

Mean temperature rise vs OpenLB

Heat balance residual with the frozen bound

Heat balance residual with the frozen bound

Metrics

MetricValueGateAllowance usedResult
Heat balance residual, relative to the 20 W sourcekey-9.24e-9|x| ≤ 0.0131<1 %✓ pass
Stored heat change over the last 60 s (J)1.45e-6 J|x| ≤ 1.2 J<1 %✓ pass
Heat rate at the left cold wall (W, reported)-10 Wnot gatedreported onlyreported
Mean temperature rise relative to OpenLB (reported)-0.00267 relativenot gatedreported onlyreported
Plume peak speed relative to OpenLB (reported)0.00398 relativenot gatedreported onlyreported

Setup

Code
OpenFOAM v2412
Grid and numerics
64 x 64 cells, 1 m square (dx = 15.6 mm), Ra 1e5 fluid (Pr 0.71), laminar, to t = 600 s
Hardware
x86-64 cloud server CPU, one core; f64

References

  • Analytic solution

    First law for a closed cavity: change of stored heat equals the 20 W source plus the wall heat over 540-600 s

  • Third-party code

    OpenFOAM v2412, the OpenFOAM computational fluid dynamics toolbox (ESI-OpenCFD release), used as the solver under test

    www.openfoam.com
  • Third-party code

    OpenLB 1.9r0, open lattice Boltzmann library, run on the same case file for a code-to-code comparison

    www.openlb.net

All reference cases