Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Generated by python scripts/validate.py. The same checks run in tests/test_validation.py. The reference column names the exact result or published value each number is compared with.

162 / 162 checks pass.

Continuum fluid properties, dimensionless CFD scaling, and von Neumann stability

CheckReferenceengcfdExpectedResult
water_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency412059.2471412059.2471pass
air_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency2805.3835292805.383529pass
steam_473K thermal Peclet identity Pe_T == Re * Prdimensional consistency1646.2275451646.227545pass
glycerol_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency644304.6316644304.6316pass
engine_oil_313K thermal Peclet identity Pe_T == Re * Prdimensional consistency716860716860pass
liquid_sodium_673K thermal Peclet identity Pe_T == Re * Prdimensional consistency907.8572614907.8572614pass
mercury_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency13648.1421713648.14217pass
co2_supercritical thermal Peclet identity Pe_T == Re * Prdimensional consistency1994435.0361994435.036pass
ethanol_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency688167.6647688167.6647pass
methane_298K thermal Peclet identity Pe_T == Re * Prdimensional consistency2573.2821112573.282111pass
Liquid sodium (673 K) liquid-metal Prandtl regime (Pr < 0.01)transport property regime11pass
Mercury (298 K) liquid-metal Prandtl regime (Pr < 0.03)transport property regime11pass
Water (298 K) ambient Prandtl number Pr ~ 6.13NIST thermophysical data6.130296546.13pass
Air (298 K) diatomic gas Prandtl number Pr ~ 0.73NIST thermophysical data0.73017372550.73pass
Glycerol (298 K) high-viscosity Prandtl regime (Pr > 5000)transport property regime11pass
Explicit FTCS pure advection unconditional instability |G(pi/2)| == sqrt(1 + CFL^2)von Neumann Fourier analysis1.1180339891.118033989pass
1st-order Upwind exact unit amplification |G(theta)| == 1 at CFL = 1.0exact shift property2.220446049e-160pass
1st-order Upwind CFL <= 1 stability at CFL = 0.7Courant-Friedrichs-Lewy (1928)11pass
1st-order Upwind CFL > 1 instability at CFL = 1.2Courant-Friedrichs-Lewy (1928)11pass
Lax-Wendroff Nyquist damping |G(pi)| == |1 - 2*CFL^2| at CFL = 0.5Lax & Wendroff (1960)0.50.5pass
Lax-Wendroff von Neumann stability at CFL = 0.9Lax & Wendroff (1960)11pass
Lax-Wendroff von Neumann instability at CFL = 1.1Lax & Wendroff (1960)11pass

Finite-volume meshes, harmonic interface conductance, and discrete Gauss theorem

CheckReferenceengcfdExpectedResult
Uniform 1-D FVM cell-volume sum equals domain length Lexact partition of unity2.52.5pass
Two-sided tanh-stretched FVM mesh exact global volume conservationVinokur stretching2.52.5pass
One-sided tanh-stretched FVM mesh exact global volume conservationVinokur stretching2.52.5pass
Two-sided tanh mesh boundary-cell symmetry dV_0 == dV_{N-1}symmetric wall clustering-1.110223025e-160pass
Boundary-layer tanh mesh concentrates finest cells at walls (stretching_ratio > 5)boundary-layer resolution11pass
Steady 1-D FVM volumetric-source diffusion matches analytical parabola q0x(L-x)/(2*k)Poisson heat conduction1.250000013e-050pass
Steady 1-D FVM local cell-by-cell flux conservation |F_{i+1/2} - F_{i-1/2} - q_i*dx_i| == 0finite-volume conservation7.105427358e-140pass
Steady 1-D FVM global boundary heat-flux sum F_right - F_left == q0 * Lintegral energy balance1010pass
Linear conduction on non-uniform tanh FVM mesh is exact at all cell centroids2nd-order FVM linearity preservation1.350031198e-130pass
Patankar harmonic-mean FVM reproduces exact series heat flux across 100:1 composite jumpseries resistance of two layers198.019802198.019802pass
Composite-wall FVM face fluxes are spatially uniform across all N+1 faces (q=0)constant steady heat flux6.252776075e-130pass
Insulated-left Neumann FVM enforces exact zero left boundary flux J_left == 0natural FVM flux BC00pass
Insulated-left heated slab exits total generated heat J_right == q0 * Lglobal energy conservation88pass
Insulated-left heated slab peak temperature phi(0) == phi(L) + q0L^2/(2k)analytical conduction302302pass
2-D FVM discrete Gauss theorem exact telescoping on smooth flux fielddivergence theorem00pass
2-D FVM discrete Gauss theorem exact telescoping on arbitrary random face fluxesalgebraic conservation9.124645484e-160pass
2-D FVM discrete divergence of uniform vector field vanishes identicallyfree-stream preservation00pass
2-D FVM net boundary flux of uniform vector field vanishes identicallyclosed-surface identity00pass

Peclet convection-diffusion schemes and high-resolution Sweby TVD flux limiters

CheckReferenceengcfdExpectedResult
Scharfetter-Gummel exponential FVM nodal exactness at Pe = 0.1exact exponential profile2.109423747e-150pass
Scharfetter-Gummel exponential FVM nodal exactness at Pe = 2.0exact exponential profile3.330669074e-160pass
Scharfetter-Gummel exponential FVM nodal exactness at Pe = 20.0exact exponential profile1.110223025e-160pass
Scharfetter-Gummel exponential FVM nodal exactness at Pe = 100.0exact exponential profile7.21644966e-160pass
Scharfetter-Gummel exponential FVM nodal exactness at Pe = 400.0exact exponential profile1.619526995e-180pass
Central differencing produces unphysical wiggles for Pe_cell = 5 > 2cell-Peclet barrier11pass
upwind FVM scheme preserves discrete maximum principle at Pe_cell = 5M-matrix positivity11pass
hybrid FVM scheme preserves discrete maximum principle at Pe_cell = 5M-matrix positivity11pass
power_law FVM scheme preserves discrete maximum principle at Pe_cell = 5M-matrix positivity11pass
exponential FVM scheme preserves discrete maximum principle at Pe_cell = 5M-matrix positivity11pass
Patankar power-law reduces false diffusion error vs. 1st-order upwind (Pe=30)Patankar (1981)11pass
Patankar power-law reduces false diffusion error vs. 1st-order upwind (Pe=60)Patankar (1981)11pass
2-D steady FVM convection-diffusion satisfies discrete maximum principle (10 <= phi <= 80)elliptic-convective maximum principle11pass
2-D steady FVM preserves uniform constant scalar state phi == 25conservation consistency00pass
Sweby 2nd-order TVD admissibility & psi(1)==1 for minmod limiterSweby (1984)11pass
Sweby 2nd-order TVD admissibility & psi(1)==1 for van_leer limiterSweby (1984)11pass
Sweby 2nd-order TVD admissibility & psi(1)==1 for superbee limiterSweby (1984)11pass
Sweby 2nd-order TVD admissibility & psi(1)==1 for mc limiterSweby (1984)11pass
Linear Lax-Wendroff (psi=1) violates Sweby TVD bounds (Godunov theorem)Godunov (1959)11pass
Linear Beam-Warming (psi=r) violates Sweby TVD bounds (Godunov theorem)Godunov (1959)11pass
1-D periodic minmod advection strictly non-increasing TV(q^{n+1}) <= TV(q^n) & exact massHarten (1983) TVD theorem11pass
1-D periodic van_leer advection strictly non-increasing TV(q^{n+1}) <= TV(q^n) & exact massHarten (1983) TVD theorem11pass
1-D periodic superbee advection strictly non-increasing TV(q^{n+1}) <= TV(q^n) & exact massHarten (1983) TVD theorem11pass
1-D Lax-Wendroff square-wave advection amplifies total variation via dispersive ripplesGibbs dispersion overshoot11pass
2-D Strang-split TVD vortex advection exact mass conservationconservative directional splitting00pass
2-D Strang-split van Leer advection preserves non-negativity (min q >= 0)positivity preservation11pass

Elliptic Poisson solvers (SOR, CG, Fast Sine) and Geometric Multigrid V-Cycles

CheckReferenceengcfdExpectedResult
2-D Fast Sine Transform recovers discrete Poisson eigenmode to machine precisionexact spectral diagonalization5.551115123e-160pass
Discrete 5-point Poisson solution converges at 2nd order to analytical (pi^2 + 4*pi^2)^-1O(h^2) truncation accuracy0.0027274952560pass
Red-Black optimal SOR matches exact DST Poisson solutionYoung (1950) SOR theory5.435651929e-130pass
Matrix-free Dirichlet CG matches exact DST Poisson solutionHestenes & Stiefel (1952)5.551115123e-160pass
Geometric Multigrid V-cycle matches exact DST Poisson solutionBrandt (1977) multigrid7.438494265e-150pass
Jacobi relaxation converges toward exact discrete Poisson solutionclassical relaxation2.025741686e-090pass
Young optimal SOR requires < 15% of Jacobi iterations on 33x33 gridO(N) vs. O(N^2) iteration count11pass
Young optimal relaxation parameter lies in (1, 2) (omega_opt ~ 1.82 on 33x33)Young (1954)11pass
Pure-Neumann CG projects solution onto zero-mean gauge == 0solvability condition00pass
Pure-Neumann CG drives discrete residual below 1e-11Krylov convergence11pass
Multigrid V(2,2) mesh-independent convergence factor rho < 0.12 on 17x17 gridO(N) multigrid optimality11pass
Multigrid V(2,2) mesh-independent convergence factor rho < 0.12 on 33x33 gridO(N) multigrid optimality11pass
Multigrid V(2,2) mesh-independent convergence factor rho < 0.12 on 65x65 gridO(N) multigrid optimality11pass
Multigrid V(2,2) mesh-independent convergence factor rho < 0.12 on 129x129 gridO(N) multigrid optimality11pass
Multigrid V(2,2) reduces broadband random residual by > 10^9 in <= 12 cycles (65x65)multi-scale error smoothing11pass
Multigrid V(2,2) reduces broadband random residual by > 10^9 in <= 12 cycles (129x129)multi-scale error smoothing11pass

Nonlinear hyperbolic conservation laws, Cole-Hopf Burgers, dam break, and Sod shock tube

CheckReferenceengcfdExpectedResult
Cole-Hopf closed-form solution satisfies viscous Burgers PDE u_t + uu_x == nuu_xxHopf (1950); Cole (1951)3.926293318e-110pass
Cole-Hopf periodic wave has zero net momentum integralantisymmetry00pass
Conservative Godunov FVM tracks exact Cole-Hopf viscous Burgers profilenonlinear PDE convergence0.00019300565640pass
Conservative Rusanov FVM tracks exact Cole-Hopf viscous Burgers profilenonlinear PDE convergence0.00019566124980pass
Periodic Burgers FVM conserves total momentum impulse to machine precisionconservative telescoping flux8.719671245e-170pass
Conservative Godunov Burgers shock propagates at exact Rankine-Hugoniot speed s = 1.0Rankine-Hugoniot theorem1.11.1pass
Non-conservative u*u_x discretization stalls shock behind Rankine-Hugoniot positionHou & LeFloch (1994)11pass
Stoker dam-break bore satisfies Rankine-Hugoniot mass jump s*(h* - h_R) == h* * u*Rankine-Hugoniot condition2.5139219992.513921999pass
Stoker dam-break bore satisfies Rankine-Hugoniot momentum jumpRankine-Hugoniot condition10.4720268110.47202681pass
1-D HLL shallow-water solver matches exact Stoker dam-break water depth (L1 < 0.015)Harten, Lax & van Leer (1983)0.007029687790pass
1-D HLL shallow-water solver preserves strictly positive water depth h > 0positivity preservation11pass
Exact Sod shock tube star pressure p* == 0.303130178exact Riemann solution; Sod (1978)0.30313017810.303130178pass
Exact Sod shock tube contact velocity u* == 0.927452620exact Riemann solution; Sod (1978)0.927452620.92745262pass
Exact Sod shock tube post-rarefaction density rho*_L == 0.426319428exact Riemann solution; Sod (1978)0.42631942820.426319428pass
Exact Sod shock tube post-shock density rho*_R == 0.265573712exact Riemann solution; Sod (1978)0.26557371170.265573712pass
Exact Sod shock tube right shock speed S_R == 1.752155732exact Riemann solution; Sod (1978)1.7521557321.752155732pass
Sod right shock Rankine-Hugoniot mass flux jumpcompressible Rankine-Hugoniot0.24630703470.2463070347pass
Sod right shock Rankine-Hugoniot momentum flux jumpcompressible Rankine-Hugoniot0.43156828280.4315682828pass
Sod right shock Rankine-Hugoniot energy flux jumpcompressible Rankine-Hugoniot1.0899188321.089918832pass
Sod left rarefaction fan preserves exact entropy p* / (rho*_L)^gamma == p_L / rho_L^gammaisentropic Riemann invariant11pass
MUSCL-HLL 1-D Euler solver matches exact Sod density (L1 < 0.012)Sod (1978)0.0031467591240pass
MUSCL-HLL 1-D Euler solver matches exact Sod pressure (L1 < 0.012)Sod (1978)0.0021889792440pass
2nd-order MUSCL-minmod reduces Sod shock/contact L1 error vs. 1st-order Godunov/HLLvan Leer (1979) MUSCL11pass
MUSCL-HLL 1-D Euler solver maintains positive density and pressure throughout tubethermodynamic admissibility11pass

Incompressible Navier-Stokes, Chorin projection, MAC grid, and Ghia Re=100 cavity

CheckReferenceengcfdExpectedResult
Planar Poiseuille no-slip wall condition u(0) == u(H) == 0no-slip boundary00pass
Planar Poiseuille centerline peak velocity u_max == 1.5 * u_meanHagen-Poiseuille66pass
Combined Couette-Poiseuille global momentum balance tau_bot - tau_top == -H * dP/dxcontrol-volume force balance1.61.6pass
Impulsively started Couette flow relaxes to exact linear shear U_wall*(1 - y/H)Rayleigh-Stokes startup1.056932319e-130pass
Impulsive Couette satisfies moving-wall & stationary-wall BCs for t > 0Dirichlet BCs5.520019392e-170pass
Analytical Taylor-Green kinetic energy decays as E(0)exp(-4nu*t)Taylor & Green (1937)0.23077908660.2307790866pass
Chorin projection enforces discrete incompressibility |div_h(u)| < 1e-14 (16x16)Chorin (1968)3.330669074e-160pass
Chorin projection enforces discrete incompressibility |div_h(u)| < 1e-14 (32x32)Chorin (1968)3.330669074e-160pass
Chorin Taylor-Green solver matches exact velocity field on 32x32 gridunsteady Navier-Stokes5.975066517e-050pass
Chorin Taylor-Green solver achieves 2nd-order convergence (p ~ 2.0)spatial convergence order11pass
Collocated central gradient is blind to (-1)^i pressure checkerboard (grad == 0)identity00pass
Staggered MAC face gradient detects (-1)^i pressure checkerboard (|dp| == 2)Harlow & Welch (1965)22pass
2-D staggered MAC Helmholtz-Hodge projection drives cell divergence < 1e-10Harlow & Welch (1965)8.455458556e-130pass
Ghia Re=100 cavity primary vortex minimum streamfunction psi_min ~ -0.1034Ghia, Ghia & Shin (1982)-0.1027234128-0.1034pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.0625)Ghia, Ghia & Shin (1982) Table I-0.04126940433-0.04192pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.0703)Ghia, Ghia & Shin (1982) Table I-0.04579393508-0.04775pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.1016)Ghia, Ghia & Shin (1982) Table I-0.06333910171-0.06434pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.1719)Ghia, Ghia & Shin (1982) Table I-0.1000998234-0.1015pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.2813)Ghia, Ghia & Shin (1982) Table I-0.1552341496-0.15662pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.4531)Ghia, Ghia & Shin (1982) Table I-0.2115086083-0.2109pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.5000)Ghia, Ghia & Shin (1982) Table I-0.2071941793-0.20581pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.6172)Ghia, Ghia & Shin (1982) Table I-0.1385895341-0.13641pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.7344)Ghia, Ghia & Shin (1982) Table I0.0025624618210.00332pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.8516)Ghia, Ghia & Shin (1982) Table I0.23428805730.23151pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.9531)Ghia, Ghia & Shin (1982) Table I0.68842765580.68717pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.9609)Ghia, Ghia & Shin (1982) Table I0.73888230490.73722pass
Ghia Re=100 cavity vertical centerline u(0.5, y=0.9688)Ghia, Ghia & Shin (1982) Table I0.79000799690.78871pass
Ghia Re=100 cavity horizontal centerline v(x=0.0703, 0.5)Ghia, Ghia & Shin (1982) Table II0.1013902780.10091pass
Ghia Re=100 cavity horizontal centerline v(x=0.0781, 0.5)Ghia, Ghia & Shin (1982) Table II0.10972301690.1089pass
Ghia Re=100 cavity horizontal centerline v(x=0.0938, 0.5)Ghia, Ghia & Shin (1982) Table II0.12417205060.12317pass
Ghia Re=100 cavity horizontal centerline v(x=0.1563, 0.5)Ghia, Ghia & Shin (1982) Table II0.1620839250.16077pass
Ghia Re=100 cavity horizontal centerline v(x=0.2266, 0.5)Ghia, Ghia & Shin (1982) Table II0.17645127650.17507pass
Ghia Re=100 cavity horizontal centerline v(x=0.2344, 0.5)Ghia, Ghia & Shin (1982) Table II0.17679376620.17527pass
Ghia Re=100 cavity horizontal centerline v(x=0.5000, 0.5)Ghia, Ghia & Shin (1982) Table II0.056944720470.05454pass
Ghia Re=100 cavity horizontal centerline v(x=0.8047, 0.5)Ghia, Ghia & Shin (1982) Table II-0.2492689495-0.24533pass
Ghia Re=100 cavity horizontal centerline v(x=0.8594, 0.5)Ghia, Ghia & Shin (1982) Table II-0.2303539476-0.22445pass
Ghia Re=100 cavity horizontal centerline v(x=0.9063, 0.5)Ghia, Ghia & Shin (1982) Table II-0.1746871925-0.16914pass
Ghia Re=100 cavity horizontal centerline v(x=0.9453, 0.5)Ghia, Ghia & Shin (1982) Table II-0.1069548637-0.10313pass
Ghia Re=100 cavity horizontal centerline v(x=0.9531, 0.5)Ghia, Ghia & Shin (1982) Table II-0.0921939621-0.08864pass
Ghia Re=100 cavity horizontal centerline v(x=0.9609, 0.5)Ghia, Ghia & Shin (1982) Table II-0.07690144789-0.07391pass

Mesoscale D2Q9 Lattice Boltzmann Method, Chapman-Enskog viscosity, and Darcy porous flow

CheckReferenceengcfdExpectedResult
D2Q9 quadrature weight normalization sum(w_i) == 1Gauss-Hermite quadrature11pass
D2Q9 1st-moment isotropy sum(w_i * c_ix) == 0lattice symmetry00pass
D2Q9 2nd-moment isotropy sum(w_i * c_ix^2) == c_s^2 = 1/3isothermal sound speed0.33333333330.3333333333pass
D2Q9 2nd-moment isotropy sum(w_i * c_iy^2) == c_s^2 = 1/3isothermal sound speed0.33333333330.3333333333pass
D2Q9 off-diagonal 2nd-moment orthogonality sum(w_i * c_ix * c_iy) == 0lattice symmetry00pass
D2Q9 equilibrium 0th moment conserves density sum(f_i^eq) == rhoChapman-Enskog1.141.14pass
D2Q9 equilibrium 1st moment conserves x-momentum sum(c_ix f_i^eq) == rho*uxChapman-Enskog0.08550.0855pass
D2Q9 equilibrium 1st moment conserves y-momentum sum(c_iy f_i^eq) == rho*uyChapman-Enskog-0.0513-0.0513pass
D2Q9 equilibrium xx momentum flux Pi_xx^eq == c_s^2rho + rhoux^2Euler stress tensor0.38641250.3864125pass
D2Q9 equilibrium yy momentum flux Pi_yy^eq == c_s^2rho + rhouy^2Euler stress tensor0.38230850.3823085pass
D2Q9 equilibrium shear momentum flux Pi_xy^eq == rhouxuyGalilean shear stress-0.0038475-0.0038475pass
Chapman-Enskog viscosity <-> relaxation time tau round-tripnu = (tau - 0.5)/30.820.82pass
D2Q9 Guo-forced halfway bounce-back Poiseuille profile matches exact parabola (< 0.25%)Guo, Zheng & Shi (2002)0.00087123806690pass
D2Q9 magic-TRT/BGK parameter tau = 0.5 + sqrt(3)/4 achieves machine-exact Poiseuille parabolaGinzburg & d’Humieres (2003)4.775706097e-050pass
Stokes-regime LBM Darcy permeability k_Darcy is independent of driving force F_xDarcy’s law (Re << 1)40.9168573740.91287316pass
Increasing solid obstacle radius decreases porous-cell Darcy permeabilityKozeny-Carman porosity scaling11pass