Skip to content

Dissipative terms ​

The dissipative terms of FLUME: viscosity and heat conduction (Navier–Stokes) on Euler and MHD, resistivity (Ohmic diffusion) on MHD, and the no-slip walls, verified against exact linear modes and exact steady solutions, through the conservation and the order across 2:1 and forest seams, and run by run between the two backends. Each coefficient is read either as a coefficient or as its dimensionless number (#49 N4); the keys are listed in input, the fluxes in numerics, the walls in boundary conditions.

The legs grow from the contract (DC) through exact linear and steady solutions on uniform grids (VV-1 to VV-6) to the 2:1 AMR and forest seams (VV-7, VV-8), and end with the run-by-run comparison of the two backends. Every leg runs on the CPU and on FNL, on 2 ranks.

CaseTypeWhat it verifies
Ghost probeCevery ghost the dissipative stencils read, on every fill path; filed under infrastructure
Input contractC34 input cases: invalid combinations refused with a message, implied coefficients logged exactly, zero coefficients bitwise inert, dimensional keys converted back exactly
Viscous wavesPorder 4 and 2 of the viscous flux on a shear wave (along x, y and the diagonal), μ and k together on an acoustic wave, against the exact linear mode
Compressible Couette flowPthe no-slip walls (isothermal and moving) and the viscous heating, against the exact steady profile
Becker's viscous shockPthe nonlinear viscous and heat fluxes through a resolved shock, Mach 2 and 3
Ohmic decay and the visco-resistive Alfvén wavePthe Ohmic flux (sign, cross terms, coefficient), μ and η together, the viscous fluxes on MHD
Ohmic heating and the divergence constraintCthe Ohmic energy returned to the gas as heat; no divergence added by the curl form (GLM, EGLM)
Conservation across 2:1 seams and forest seamsCthe dissipative fluxes carried by the reflux and the inter-realm register; forest union equal to the single realm
Accuracy across 2:1 seamsPthe order of the composite grid (second), and the reflux as the carrier of the dissipative seam flux
CPU and FNL agree run by runCevery one of the 72 VV runs equal on the two backends within 10−10 of the physical scales

Run every leg:

bash
cd src/tests/flume/verification/dissipation && ./check.sh                   # DC, CPU
cd src/tests/flume/verification/viscous && ./check.sh                       # VV-1 to VV-8, CPU
FLUME_EXE=$PWD/../../../../../exe/adam_flume_fnl ./check.sh                 # FNL
./check.sh --legs agree                                                     # CPU against FNL

The figures (viscous.png, viscous-fields.png, couette.png) are drawn by make_doc_figures.py from the CPU work directories that viscous/check.sh leaves (no make_doc_runs.sh group):

bash
exe/.regression-venv/bin/python src/tests/flume/verification/make_doc_figures.py --out docs/public/flume \
   --only viscous viscous-fields couette

How it was built ​

The dissipative terms are milestone M4 (#65); its phases P0 and P1 built the ghost probe, and the dimensionless coefficients come from #49 N4.

CaseID
Ghost probeGP
Input contractDC
Viscous wavesVV-1, VV-2
Compressible Couette flowVV-3
Becker's viscous shockVV-4
Ohmic decay and the visco-resistive Alfvén waveVV-5
Ohmic heating and the divergence constraintVV-6
Conservation across 2:1 seams and forest seamsVV-7
Accuracy across 2:1 seamsVV-8
CPU and FNL agree run by runVV agree

The verification catalog places the group in implementation order.