|
| | TEST_CASE ("IdealGasThermal: standard quiescent air") |
| |
| | TEST_CASE ("IdealGasThermal: Mach 2 flow") |
| |
| | TEST_CASE ("Cons2Prim and Prim2Cons round-trip: 3D") |
| |
| | TEST_CASE ("Cons2Prim and Prim2Cons round-trip: 2D") |
| |
| | TEST_CASE ("Prim2Cons: known state verification") |
| |
| | TEST_CASE ("PrimitiveGetP0T0: quiescent gas") |
| |
| | TEST_CASE ("PrimitiveGetP0T0: p0 > p for moving gas") |
| |
| | TEST_CASE ("EulerGas eigenvectors: L*R = I for 3D") |
| |
| | TEST_CASE ("GasInviscidFlux: x-direction, quiescent gas") |
| |
| | TEST_CASE ("GasInviscidFlux: x-direction, moving gas") |
| |
| Eigen::Vector3d | vg (0, 0, 0) |
| |
| | IdealGasThermal (U(4), U(0), velo.squaredNorm(), g_gamma, p_val, asqr, H) |
| |
| | GasInviscidFlux< 3 > (U, velo, vg, p_val, Fx) |
| |
| Eigen::Vector3d | nx (1, 0, 0) |
| |
| | GasInviscidFlux_XY< 3 > (U, velo, vg, nx, p_val, Fn) |
| |
| | for (int i=0;i< 5;i++) |
| |
| | TEST_CASE ("IdealGasUIncrement: zero increment gives zero output") |
| |
| | TEST_CASE ("IdealGasUIncrement: finite-difference verification") |
| |
| | TEST_CASE ("GetRoeAverage: identical states give same state") |
| |
| | TEST_CASE ("GetRoeAverage: density is geometric mean") |
| |
| | TEST_CASE ("GradientCons2Prim: zero gradient produces zero") |
| |
| | TEST_CASE ("GradientCons2Prim: finite-difference verification") |
| |
| | CHECK (alpha==doctest::Approx(0.0).epsilon(1e-14)) |
| |
| | TEST_CASE ("CompressionRatio: alpha in [0,1]") |
| |
| | TEST_CASE ("ViscousFlux: zero gradient produces zero flux") |
| |
Unit tests for ideal-gas thermodynamics and eigenvector routines in Gas.hpp.
Tests cover:
- IdealGasThermal: pressure, speed-of-sound, enthalpy from conservative
- Conservative2Primitive / Primitive2Conservative round-trip (2D and 3D)
- PrimitiveGetP0T0: stagnation quantities
- EulerGasRightEigenVector / LeftEigenVector: L*R = I orthogonality (3D)
- IdealGas_EulerGas{Right,Left}EigenVector convenience wrappers
- IdealGasUIncrement: velocity/pressure increments from conservative increments
- GasInviscidFlux / GasInviscidFlux_XY: inviscid flux computation
- GradientCons2Prim_IdealGas: gradient transformation
- GetRoeAverage: Roe-averaged state properties
- IdealGasGetCompressionRatioPressure: positivity limiter
All functions are pure (no MPI, no mesh). Serial doctest.
Definition in file test_GasThermo.cpp.