rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
GammaLawThermo_test.cpp File Reference

Unit tests for the calorically perfect ThermoAccessor. More...

#include "thermo/GammaLawThermo.h"
#include <gtest/gtest.h>
#include <cmath>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Detailed Description

Unit tests for the calorically perfect ThermoAccessor.

This accessor is the reference the pure-array validation cases are built on, so an error in it reads as an error in the scheme. Its four closed forms are checked here against the relations they come from – Dalton's law pool by pool, the frozen two-pool sound speed of PHYSICS.md appendix A.4, and the two inversions, each against its own forward direction.

The inversions are what the Python suite cannot easily isolate. densityFromPressure() and heavyTemperature() are only ever called from inside hydroStep()'s per-sub-cycle round trip, where a wrong one shows up as a drifting profile rather than as a failed identity.

Definition in file GammaLawThermo_test.cpp.