Sensors and tutorials
The same case in both codes, read at the same sensors, then OpenFOAM's own tutorials field by field. The experiment is drawn as a reference.
Engineering quantity agreement
One gauge, both codes, and the experiment
Arrival of the front
The front reaches gauge H1 at the same instant in both codes on every mesh: 0.2420, 0.2440 and 0.2450 s.
The two codes move together with the time step
Halving the Courant limit twice at 398,720 cells raises the P1 first impact peak in both codes. They stay within 0.2% of each other at every limit, where the difference of a quantity between the codes is
| Courant limit | brae | OpenFOAM |
|---|---|---|
| 0.75 (as shipped) | 9,297 Pa | 9,290 Pa |
| 0.375 | 10,368 Pa | 10,385 Pa |
| 0.1875 | 10,972 Pa | 10,976 Pa |
These three pairs are the largest value after a 10 ms mean; the raw step values of these runs were not recorded. The peak moves with the time step by more than the codes differ.
Same algorithm, same answer: OpenFOAM's 42 interFoam tutorials
brae running each case's own linear solvers, against serial OpenFOAM, 30 time steps as shipped. For a field (alpha, p_rgh or U) over the cells of the mesh, the relative difference is
and its median over the 42 tutorials is:
- alpha
- 2.7e-12
- p_rgh
- 1.1e-11
- U
- 1.1e-08
In brae's test suite 39 tutorials are held to bounds between 4e-13 and 4e-06 at pinned tolerances. This is not what a user gets by default: by default brae replaces the case's pressure solver with its own, and that path is a different measurement, given under the limits.
Source of the experiment
K.M.T. Kleefsman, G. Fekken, A.E.P. Veldman, B. Iwanowski, B. Buchner, “A Volume-of-Fluid based simulation method for wave impact problems”, Journal of Computational Physics 206 (2005) 363–393. doi:10.1016/j.jcp.2004.12.007
Experiment carried out at MARIN; measurements from the SPHERIC benchmark archive, test 2 (test_case_2_exp_data.xls; test description by Issa and Violeau, release 1.1, 2006). spheric-sph.org/tests/test-02