|
| | TEST_CASE ("Roe consistency: identical states give exact flux") |
| |
| | TEST_CASE ("HLLC consistency: identical states give exact flux") |
| |
| | TEST_CASE ("HLLEP consistency: identical states give exact flux") |
| |
| Eigen::Vector3d | n (1.0, 0.0, 0.0) |
| |
| | for (auto rs :{Roe_M1, Roe_M3, Roe_M4, Roe_M5, Roe_M6, Roe_M7, Roe_M8}) |
| |
| | TEST_CASE ("Roe symmetry: F(UL,UR,n) = -F(UR,UL,-n)") |
| |
| | TEST_CASE ("Sod shock tube: flux is finite and bounded") |
| |
| | TEST_CASE ("Golden flux values for mixed-state test vector") |
| |
| | for (auto rs :{Roe, HLLC, HLLEP}) |
| |
| | TEST_CASE ("Roe consistency: diagonal normal") |
| |
Unit tests for Riemann solvers in Gas.hpp.
Tests cover:
- Consistency: F(UL, UR) with UL==UR equals the exact physical flux
- Roe flux: default eigScheme=0, plus variants 1-8
- HLLC flux: consistency and symmetry
- HLLEP flux: consistency
- InviscidFlux_IdealGas_Dispatcher: runtime dispatch
- Symmetry: F(UL,UR,n) = -F(UR,UL,-n) for all solvers
- Sod shock tube: UL != UR produces finite, bounded flux
- Golden values for specific test vectors
All functions are pure (no MPI, no mesh). Serial doctest.
Definition in file test_RiemannSolvers.cpp.