antioch-0.4.0
|
#include <ascii_parser.h>
Classes | |
class | Cache |
Public Member Functions | |
CEAThermodynamics (const ChemicalMixture< CoeffType > &chem_mixture, const std::string &filename=DefaultFilename::thermo_data()) | |
virtual | ~CEAThermodynamics () |
Destructor. More... | |
void | add_curve_fit (const std::string &species_name, const std::vector< CoeffType > &coeffs) |
void | add_curve_fit (const std::string &species_name, const std::vector< CoeffType > &coeffs, const std::vector< CoeffType > &) |
bool | check () const |
Checks that curve fits have been specified for all species in the mixture. More... | |
template<typename StateType > | |
StateType | cp (const Cache< StateType > &cache, unsigned int species) const |
We currently need different specializations for scalar vs vector inputs here. More... | |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, StateType >::type | cp (const Cache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType > | |
StateType | cv (const Cache< StateType > &cache, unsigned int species) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, StateType >::type | cv (const Cache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType > | |
StateType | h (const Cache< StateType > &cache, unsigned int species) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | h (const Cache< StateType > &cache, VectorStateType &h) const |
template<typename StateType > | |
StateType | h_RT_minus_s_R (const Cache< StateType > &cache, unsigned int species) const |
We currently need different specializations for scalar vs vector inputs here. More... | |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | h_RT_minus_s_R (const Cache< StateType > &cache, VectorStateType &h_RT_minus_s_R) const |
template<typename StateType > | |
StateType | dh_RT_minus_s_R_dT (const Cache< StateType > &cache, unsigned int species) const |
We currently need different specializations for scalar vs vector inputs here. More... | |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | dh_RT_minus_s_R_dT (const Cache< StateType > &cache, VectorStateType &dh_RT_minus_s_R_dT) const |
template<typename StateType > | |
StateType | cp_over_R (const Cache< StateType > &cache, unsigned int species) const |
template<typename StateType > | |
StateType | h_over_RT (const Cache< StateType > &cache, unsigned int species) const |
template<typename StateType > | |
StateType | s_over_R (const Cache< StateType > &cache, unsigned int species) const |
const ChemicalMixture < CoeffType > & | chemical_mixture () const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, StateType >::type | cp (const Cache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | h (const Cache< StateType > &cache, VectorStateType &h) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | h_RT_minus_s_R (const Cache< StateType > &cache, VectorStateType &h_RT_minus_s_R) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | dh_RT_minus_s_R_dT (const Cache< StateType > &cache, VectorStateType &dh_RT_minus_s_R_dT) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, StateType >::type | cv (const Cache< StateType > &cache, const VectorStateType &mass_fractions) const |
Protected Attributes | |
const ChemicalMixture < CoeffType > & | _chem_mixture |
std::vector< CEACurveFit < CoeffType > * > | _species_curve_fits |
std::vector< CoeffType > | _cp_at_200p1 |
Private Member Functions | |
CEAThermodynamics () | |
Default constructor. More... | |
Definition at line 75 of file ascii_parser.h.
|
inline |
deprecated
Definition at line 186 of file cea_thermo.h.
References Antioch::CEAThermodynamics< CoeffType >::_cp_at_200p1, Antioch::CEAThermodynamics< CoeffType >::_species_curve_fits, antioch_deprecated, Antioch::CEAThermodynamics< CoeffType >::cp(), and Antioch::read_cea_mixture_data_ascii().
|
inlinevirtual |
Destructor.
virtual so this can be subclassed by the user.
Definition at line 212 of file cea_thermo.h.
|
private |
Default constructor.
Private to force to user to supply a ChemicalMixture object.
|
inline |
Definition at line 227 of file cea_thermo.h.
References antioch_assert, and antioch_assert_less_equal.
Referenced by Antioch::CEAThermodynamics< CoeffType >::add_curve_fit(), Antioch::read_cea_thermo_data_ascii(), and Antioch::ASCIIParser< NumericType >::read_thermodynamic_data().
|
inline |
Definition at line 95 of file cea_thermo.h.
References Antioch::CEAThermodynamics< CoeffType >::add_curve_fit().
|
inline |
Checks that curve fits have been specified for all species in the mixture.
Definition at line 245 of file cea_thermo.h.
Referenced by Antioch::read_cea_thermo_data_ascii().
|
inline |
Definition at line 572 of file cea_thermo.h.
Referenced by Antioch::read_cea_thermo_data_ascii(), and Antioch::ASCIIParser< NumericType >::read_thermodynamic_data().
|
inline |
We currently need different specializations for scalar vs vector inputs here.
Definition at line 264 of file cea_thermo.h.
References Antioch::constant_clone(), Antioch::if_else(), and Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T.
Referenced by Antioch::CEAThermodynamics< CoeffType >::CEAThermodynamics(), and test_cp().
enable_if_c< has_size<VectorStateType>::value, StateType >::type Antioch::CEAThermodynamics< CoeffType >::cp | ( | const Cache< StateType > & | cache, |
const VectorStateType & | mass_fractions | ||
) | const |
|
inline |
Definition at line 286 of file cea_thermo.h.
References antioch_assert_equal_to, antioch_assert_greater, and cp().
|
inline |
Definition at line 335 of file cea_thermo.h.
References antioch_assert_less, Antioch::if_else(), Antioch::max(), Antioch::min(), Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T2, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T3, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T4, and Antioch::zero_clone().
|
inline |
Definition at line 553 of file cea_thermo.h.
References cp().
enable_if_c< has_size<VectorStateType>::value, StateType >::type Antioch::CEAThermodynamics< CoeffType >::cv | ( | const Cache< StateType > & | cache, |
const VectorStateType & | mass_fractions | ||
) | const |
|
inline |
Definition at line 564 of file cea_thermo.h.
References cp().
|
inline |
We currently need different specializations for scalar vs vector inputs here.
Definition at line 487 of file cea_thermo.h.
References antioch_assert_less, Antioch::if_else(), Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T2, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T3, and Antioch::zero_clone().
Referenced by tester(), and vectester().
enable_if_c< has_size<VectorStateType>::value, void >::type Antioch::CEAThermodynamics< CoeffType >::dh_RT_minus_s_R_dT | ( | const Cache< StateType > & | cache, |
VectorStateType & | dh_RT_minus_s_R_dT | ||
) | const |
|
inline |
Definition at line 534 of file cea_thermo.h.
References antioch_assert_equal_to.
|
inline |
Definition at line 306 of file cea_thermo.h.
References Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T.
enable_if_c< has_size<VectorStateType>::value, void >::type Antioch::CEAThermodynamics< CoeffType >::h | ( | const Cache< StateType > & | cache, |
VectorStateType & | h | ||
) | const |
|
inline |
Definition at line 318 of file cea_thermo.h.
References antioch_assert_equal_to, and Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T.
|
inline |
Definition at line 372 of file cea_thermo.h.
References antioch_assert_less, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::lnT, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T2, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T3, and Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T4.
|
inline |
We currently need different specializations for scalar vs vector inputs here.
Definition at line 420 of file cea_thermo.h.
References antioch_assert_less, Antioch::if_else(), Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T2, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T3, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T4, and Antioch::zero_clone().
Referenced by tester(), tester_N2N(), and vectester().
enable_if_c< has_size<VectorStateType>::value, void >::type Antioch::CEAThermodynamics< CoeffType >::h_RT_minus_s_R | ( | const Cache< StateType > & | cache, |
VectorStateType & | h_RT_minus_s_R | ||
) | const |
|
inline |
Definition at line 468 of file cea_thermo.h.
References antioch_assert_equal_to.
|
inline |
Definition at line 396 of file cea_thermo.h.
References antioch_assert_less, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::lnT, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T2, Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T3, and Antioch::CEAThermodynamics< CoeffType >::Cache< StateType >::T4.
|
protected |
Definition at line 168 of file cea_thermo.h.
|
protected |
Definition at line 172 of file cea_thermo.h.
Referenced by Antioch::CEAThermodynamics< CoeffType >::CEAThermodynamics().
|
protected |
Definition at line 170 of file cea_thermo.h.
Referenced by Antioch::CEAThermodynamics< CoeffType >::CEAThermodynamics().