Standard-state thermodynamic properties of ideal-gas species from NASA 7-coefficient polynomials. More...
Classes | |
| struct | SpeciesData |
| NASA 7-coefficient data of one species. More... | |
Typedefs | |
| using | Coefficients = std::array< Real, 7 > |
| Coefficients a_0, ..., a_6 of the polynomial for one temperature interval. | |
Functions | |
| const SpeciesData & | speciesData (const std::string &name) |
| Data of a built-in species. | |
| std::string | speciesNames () |
| Names of the built-in species, separated by spaces. | |
| template<typename CppType > | |
| const Coefficients & | coefficients (const SpeciesData &data, const CppType &T) |
| Coefficients of the polynomial that applies at a temperature. | |
| template<typename CppType > | |
| CppType | cpOverR (const SpeciesData &data, const CppType &T) |
| Standard-state molar isobaric heat capacity divided by the gas constant, cp/R. | |
| template<typename CppType > | |
| CppType | hOverRT (const SpeciesData &data, const CppType &T) |
| Standard-state molar enthalpy divided by the gas constant and temperature, h/(RT) | |
| template<typename CppType > | |
| 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 (reference_pressure for the built-in species) | |
Variables | |
| constexpr Real | reference_pressure = 101325.0 |
| Pressure at which the standard-state entropy of the built-in species applies [Pa]. | |
Standard-state thermodynamic properties of ideal-gas species from NASA 7-coefficient polynomials.
Each species has two polynomials, one for temperatures up to a midpoint temperature and one above it. The evaluators return the dimensionless forms cp/R, h/(RT), and s/R, so that they are independent of the value of the universal gas constant.
| using NASA7::Coefficients = typedef std::array<Real, 7> |
Coefficients a_0, ..., a_6 of the polynomial for one temperature interval.
Definition at line 28 of file NASA7Polynomials.h.
| const Coefficients & NASA7::coefficients | ( | const SpeciesData & | data, |
| const CppType & | T | ||
| ) |
Coefficients of the polynomial that applies at a temperature.
The low-temperature polynomial applies at the midpoint temperature itself, as in Cantera. The temperature range of the fit is not checked.
Definition at line 69 of file NASA7Polynomials.h.
| CppType NASA7::cpOverR | ( | const SpeciesData & | data, |
| const CppType & | T | ||
| ) |
Standard-state molar isobaric heat capacity divided by the gas constant, cp/R.
Definition at line 77 of file NASA7Polynomials.h.
Referenced by NASA7IdealGasFluidProperties::cp_from_T(), NASA7IdealGasFluidProperties::cv_from_T(), NASA7IdealGasFluidProperties::gamma_from_T(), NASA7IdealGasFluidProperties::k_from_T(), NASA7IdealGasFluidProperties::T_from_energy(), NASA7IdealGasFluidProperties::T_from_p_s(), TEST(), and TEST_F().
| CppType NASA7::hOverRT | ( | const SpeciesData & | data, |
| const CppType & | T | ||
| ) |
Standard-state molar enthalpy divided by the gas constant and temperature, h/(RT)
Definition at line 86 of file NASA7Polynomials.h.
Referenced by NASA7IdealGasFluidProperties::e_from_T(), NASA7IdealGasFluidProperties::h_from_T(), NASA7IdealGasFluidProperties::T_from_energy(), and TEST().
| CppType NASA7::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 (reference_pressure for the built-in species)
Definition at line 98 of file NASA7Polynomials.h.
Referenced by NASA7IdealGasFluidProperties::T_from_p_s(), and TEST().
| const SpeciesData & NASA7::speciesData | ( | const std::string & | name | ) |
Data of a built-in species.
| [in] | name | species name: H2, O2, H2O, CH4, CO, CO2, or N2 |
Definition at line 159 of file NASA7Polynomials.C.
Referenced by TEST(), TEST(), TEST_F(), TEST_F(), and TEST_F().
| std::string NASA7::speciesNames | ( | ) |
Names of the built-in species, separated by spaces.
Definition at line 169 of file NASA7Polynomials.C.
Referenced by NASA7IdealGasFluidProperties::validParams().
|
constexpr |
Pressure at which the standard-state entropy of the built-in species applies [Pa].
Definition at line 50 of file NASA7Polynomials.h.
Referenced by NASA7IdealGasFluidProperties::T_from_p_s().