Repository navigation
Examples: slip walls, wall thermal and species transport validation - #2413
sbryngelson wants to merge 1 commit into
Conversation
Slip immersed walls: 2D_ibm_slip_cylinder (gas mass of a fixed slip cylinder in a periodic box with and without ib_mass_relax; near-wall error of an exact steady vortex for the curvature term, TSC weights and ib_slip_ccst), checker, page and one registered test. Species transport: 1D_diffusion_verification (trace-species diffusion and conduction against the erfc solution, a multicomponent mixing layer against an independent solver, and the transport_dt stability threshold), checker, reference solver, page and three registered tests. Wall thermal models: lumped-cylinder cooling in 2D_ibm_cylinder_drag_nu (--thermal_bc 3) with a checker, and 2D_ibm_cold_wall_transient (heat absorbed by a cold cylinder with and without patch_ib%wall_column against a body-fitted 1D reference), page and one registered test.
|
Hand tests of the five registered tests at 2c36adb (the files tested are those of this commit).
Largest difference of min(absolute, relative) over all golden entries, against the committed golden:
The A100 and the AMD CPU agree on the cold-wall case to 1.4e-8; the Intel Ice Lake build differs from both by 2.0e-2 (density 1e-3 relative), which sets the 5e-2 tolerance. The cause is not identified. Tighten it when the CI lanes show which result they follow. Other hand checks on the A100 (NVHPC 25.11):
Single-precision lane: the chemistry tests are skipped by the harness, and the slip test is skipped in AI-assisted (Claude Code). |
|
Claude Code Review Head SHA: 2c36adb Files changed:
Findings:
|
Contribution Policy
All contributions are expected to demonstrate:
If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.
Summary
Three validation families in one PR (examples, checker scripts, documentation pages, registered tests; no
src/change):examples/2D_ibm_slip_cylinder,docs/documentation/validation_slip_walls.md): the gas mass of a fixed slip cylinder in a periodic box with and withoutib_mass_relax, and the near-wall pressure and velocity error of an exact steady vortex for the curvature term, TSC image-point weights andib_slip_ccst. Slip walls in a shock curtain and in close approach are documented as not working.examples/1D_diffusion_verification,docs/documentation/validation_species_transport.md): trace-species diffusion and conduction against the erfc solution (second order), a multicomponent mixing layer against an independent 1D solver (after Chemistry: second-order face composition in the diffusion correction flux #2205), and the stability threshold ofchem_params%transport_dtfor both transport models.examples/2D_ibm_cylinder_drag_nulumped cooling,examples/2D_ibm_cold_wall_transient,docs/documentation/validation_wall_thermal.md): the lumped cylinder against the decay time of its fixed-wall Nusselt number, and the heat a cold cylinder absorbs from hot gas with and withoutpatch_ib(1)%wall_column(IBM: opt-in sub-grid wall conduction column for isothermal walls (patch_ib%wall_column) #2329) against a body-fitted 1D reference.What each adds beyond master:
ib_mass_relaxentry and tests the option on a unit-box case that does not discriminate; this adds a checker and a CI-size test, the exact-vortex study of the curvature term, TSC and CCST (first-band errors reproduce the earlier measurements to three digits), and the two failure modes (slip curtain, close approach).1D_multispecies_diffusion(not a test, no reference) and thetransport_dtunit case; this adds second-order verification against exact and independent references, the re-run of the mixing-layer order study after Chemistry: second-order face composition in the diffusion correction flux #2205, and the threshold scan.2D_ibm_lumped_wallchecks the bookkeeping of the lumped update only; this checks it against a Nusselt-number time constant. The wall column has a regression test on the reacting-surface example; this checks its heat against a reference.Evidence
All numbers were re-measured on
masterat 0cdfdf0 (GNU 13, one rank, double precision); the full tables are on the three pages.Re-measured on current master against earlier measurements
ib_ip_interp = 2andib_slip_ccstib_mass_relax0 / 1transport_dtthresholdTwo numbers left the bands of the earlier measurements and are stated as measured: the lumped cooling gap is -9 to -16 % at the short decay times that fit the compute budget (it shrinks with the decay time; see the page), and the mixing-layer species error does not reach second order.
Per-test cross-architecture spread (largest of min(absolute, relative) difference over all golden entries against the committed golden, which is GNU 13 double on the AMD host CPU of an MI300A node):
All five tests pass on both A100 builds (
./mfc.sh test --gpu acc, no MPI), and the slip budget agrees between 1 and 2 ranks on the A100 to 4e-16 in the gas mass. Chemistry cases are skipped in the single-precision lane, and the slip test is skipped there too (single precision moves near-zero momentum entries by 2e-4, above the lane's 1e-4; added to the skip list intoolchain/mfc/test/test.py). The cold-wall test needs a loose tolerance because the Intel Ice Lake build differs from the AMD CPU and the A100 by 2e-2 (density 1e-3 relative); the cause is not identified and the tolerance should be tightened when CI shows which result the runners follow.Defect found, not fixed here (needs its own issue). On an NVIDIA A100 (NVHPC 25.11 and 25.5, OpenACC, with and without MPI)
ib_mass_relax = 1does nothing for a fixed slip body when noib_state_wrtorib_heat_wrtis set: the mass change ofexamples/2D_ibm_slip_cylinderis +1.6e-3 in 100 steps with and without the option, identical to every digit, where a CPU run gives -4e-15. Addingib_state_wrt = Tto the same case gives -3.7e-15 on the A100, so the failure is in the relaxation-only path (ib_mass_onlyinm_ibm.fpp). Reproducer:./mfc.sh run examples/2D_ibm_slip_cylinder/case.py -t pre_process simulation post_process -n 1 --gpu acc -- --mass_relax 1against--mass_relax 0, thenpython3 examples/2D_ibm_slip_cylinder/check_slip.py examples/2D_ibm_slip_cylinder --case-args '--mass_relax 1'. The existing testIBM -> Fixed Circle -> Slip -> ib_mass_relaxpasses on the A100 with the option set to 0 as well, so it does not detect this.Scope
src/change. A defect found on the NVIDIA GPU is documented (see below) and not fixed here.--mass_relax 1case is not registered as a test, because on an NVIDIA GPU it does nothing (below).pre_processandsimulation(analytic initial condition) and is not in the suite.Test plan
./mfc.sh test --only 9466C5D1 DC0037CC 510F7782 824745F5 D5EAC17E(species erf, heat erf, unity-Lewis transport-limited dt, slip mass budget, cold wall with wall column).This PR was made with Claude Code (AI).