13#include "metaphysicl/raw_type.h"
67template <
typename CppType>
75template <
typename CppType>
80 return a[0] +
T * (
a[1] +
T * (
a[2] +
T * (
a[3] +
T *
a[4])));
84template <
typename CppType>
89 return a[0] +
T * (
a[1] / 2 +
T * (
a[2] / 3 +
T * (
a[3] / 4 +
T *
a[4] / 5))) +
a[5] /
T;
96template <
typename CppType>
102 return a[0] * log(
T) +
T * (
a[1] +
T * (
a[2] / 2 +
T * (
a[3] / 3 +
T *
a[4] / 4))) +
a[6];
Standard-state thermodynamic properties of ideal-gas species from NASA 7-coefficient polynomials.
CppType hOverRT(const SpeciesData &data, const CppType &T)
Standard-state molar enthalpy divided by the gas constant and temperature, h/(RT)
const SpeciesData & speciesData(const std::string &name)
Data of a built-in species.
CppType cpOverR(const SpeciesData &data, const CppType &T)
Standard-state molar isobaric heat capacity divided by the gas constant, cp/R.
const Coefficients & coefficients(const SpeciesData &data, const CppType &T)
Coefficients of the polynomial that applies at a temperature.
CppType sOverR(const SpeciesData &data, const CppType &T)
Standard-state molar entropy divided by the gas constant, s/R, at the reference pressure of the data ...
constexpr Real reference_pressure
Pressure at which the standard-state entropy of the built-in species applies [Pa].
std::array< Real, 7 > Coefficients
Coefficients a_0, ..., a_6 of the polynomial for one temperature interval.
std::string speciesNames()
Names of the built-in species, separated by spaces.
NASA 7-coefficient data of one species.
Real T_max
Upper end of the temperature range of the fit [K].
Real T_mid
Temperature where the low- and high-temperature polynomials meet [K].
std::string name
Species name, e.g. "H2O".
Real T_min
Lower end of the temperature range of the fit [K].
Coefficients low
Coefficients for T <= T_mid.
Real molar_mass
Molar mass [kg/mol].
Coefficients high
Coefficients for T > T_mid.