antioch-0.4.0
|
#include <ascii_parser.h>
Public Member Functions | |
NASAEvaluator (const NASAThermoMixture< CoeffType, NASAFit > &cea_mixture) | |
~NASAEvaluator () | |
const NASAThermoMixture < CoeffType, NASAFit > & | cea_mixture () const |
template<typename StateType > | |
StateType | cp (const TempCache< 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 TempCache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType > | |
cv (const TempCache< StateType > &cache, unsigned int species) const ANTIOCH_AUTOFUNC(StateType | |
this | cp (cache, species)-this-> chem_mixture().R(species)) template< typename StateType, typename VectorStateType >typename enable_if_c< has_size< VectorStateType >::value, StateType >::typecv(const TempCache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType > | |
h (const TempCache< StateType > &cache, unsigned int species) const ANTIOCH_AUTOFUNC(StateType | |
this | chem_mixture ().R(species)*cache.T *this-> h_over_RT(cache, species)) template< typename StateType, typename VectorStateType >typename enable_if_c< has_size< VectorStateType >::value, void >::typeh(const TempCache< StateType > &cache, VectorStateType &h) const |
template<typename StateType > | |
StateType | h_RT_minus_s_R (const TempCache< 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 TempCache< StateType > &cache, VectorStateType &h_RT_minus_s_R) const |
template<typename StateType > | |
StateType | dh_RT_minus_s_R_dT (const TempCache< StateType > &cache, unsigned int species) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | dh_RT_minus_s_R_dT (const TempCache< StateType > &cache, VectorStateType &h_RT_minus_s_R) const |
template<typename StateType > | |
StateType | cp_over_R (const TempCache< StateType > &cache, unsigned int species) const |
Cp over R, directly from the curve fit. More... | |
template<typename StateType > | |
StateType | cv_over_R (const TempCache< StateType > &cache, unsigned int species) const |
Cv over R, from ideal gas,. More... | |
template<typename StateType > | |
StateType | h_over_RT (const TempCache< StateType > &cache, unsigned int species) const |
h over RT, directly from the curve fit More... | |
template<typename StateType > | |
StateType | s_over_R (const TempCache< StateType > &cache, unsigned int species) const |
s over R, directly from the curve fit More... | |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, StateType >::type | cp (const TempCache< StateType > &cache, const VectorStateType &mass_fractions) const |
template<typename StateType , typename VectorStateType > | |
enable_if_c< has_size < VectorStateType >::value, void >::type | h_RT_minus_s_R (const TempCache< 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 TempCache< StateType > &cache, VectorStateType &dh_RT_minus_s_R_dT) const |
Protected Member Functions | |
unsigned int | n_species () const |
Convenience function. More... | |
const ChemicalMixture < CoeffType > & | chem_mixture () const |
Convenience function. More... | |
Protected Attributes | |
const NASAThermoMixture < CoeffType, NASAFit > & | _nasa_mixture |
Private Member Functions | |
NASAEvaluator () | |
Default constructor. More... | |
Definition at line 62 of file ascii_parser.h.
Antioch::NASAEvaluator< CoeffType, NASAFit >::NASAEvaluator | ( | const NASAThermoMixture< CoeffType, NASAFit > & | cea_mixture | ) |
Definition at line 151 of file nasa_evaluator.h.
Antioch::NASAEvaluator< CoeffType, NASAFit >::~NASAEvaluator | ( | ) |
Definition at line 158 of file nasa_evaluator.h.
|
private |
Default constructor.
Private to force to user to supply a NASAThermoMixture object.
|
inline |
Definition at line 166 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture.
this Antioch::NASAEvaluator< CoeffType, NASAFit >::chem_mixture | ( | ) | -> h_over_RT(cache, species)) template< typename StateType, typename VectorStateType >typename enable_if_c< has_size< VectorStateType >::value, void >::typeh(const TempCache< StateType > &cache, VectorStateType &h) const |
|
inlineprotected |
Convenience function.
Definition at line 180 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture.
|
inline |
We currently need different specializations for scalar vs vector inputs here.
Definition at line 189 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, Antioch::NASAEvaluator< CoeffType, NASAFit >::chem_mixture(), Antioch::constant_clone(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp_over_R(), Antioch::if_else(), and Antioch::TempCache< StateType >::T.
Referenced by Antioch::NASAThermoMixture< CoeffType, NASAFit >::add_curve_fit(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cv(), test_cp(), and tester().
enable_if_c< has_size<VectorStateType>::value, StateType >::type Antioch::NASAEvaluator< CoeffType, NASAFit >::cp | ( | const TempCache< StateType > & | cache, |
const VectorStateType & | mass_fractions | ||
) | const |
this Antioch::NASAEvaluator< CoeffType, NASAFit >::cp | ( | cache | , |
species | |||
) | -> chem_mixture().R(species)) template< typename StateType, typename VectorStateType >typename enable_if_c< has_size< VectorStateType >::value, StateType >::typecv(const TempCache< StateType > &cache, const VectorStateType &mass_fractions) const |
|
inline |
Definition at line 210 of file nasa_evaluator.h.
References antioch_assert_equal_to, antioch_assert_greater, Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
|
inline |
Cp over R, directly from the curve fit.
Definition at line 250 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::cp().
|
inline |
Definition at line 376 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::chem_mixture(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::cp().
|
inline |
Cv over R, from ideal gas,.
Definition at line 264 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
Referenced by tester().
|
inline |
Definition at line 339 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT().
enable_if_c< has_size<VectorStateType>::value, void >::type Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT | ( | const TempCache< StateType > & | cache, |
VectorStateType & | h_RT_minus_s_R | ||
) | const |
|
inline |
Definition at line 356 of file nasa_evaluator.h.
References antioch_assert_equal_to, Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
|
inline |
Definition at line 233 of file nasa_evaluator.h.
References antioch_assert_equal_to, Antioch::NASAEvaluator< CoeffType, NASAFit >::chem_mixture(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_over_RT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species(), and Antioch::TempCache< StateType >::T.
Referenced by test_h().
|
inline |
h over RT, directly from the curve fit
Definition at line 276 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species(), and Antioch::TempCache< StateType >::T.
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::h(), and test_g().
|
inline |
We currently need different specializations for scalar vs vector inputs here.
Definition at line 303 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), and test_type().
enable_if_c< has_size<VectorStateType>::value, void >::type Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R | ( | const TempCache< StateType > & | cache, |
VectorStateType & | h_RT_minus_s_R | ||
) | const |
|
inline |
Definition at line 320 of file nasa_evaluator.h.
References antioch_assert_equal_to, Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species().
|
inlineprotected |
Convenience function.
Definition at line 173 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture.
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cv_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_over_RT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::s_over_R().
|
inline |
s over R, directly from the curve fit
Definition at line 289 of file nasa_evaluator.h.
References Antioch::NASAEvaluator< CoeffType, NASAFit >::_nasa_mixture, antioch_assert_less, Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species(), and Antioch::TempCache< StateType >::T.
Referenced by test_g(), and test_s().
|
protected |
Definition at line 133 of file nasa_evaluator.h.
Referenced by Antioch::NASAEvaluator< CoeffType, NASAFit >::cea_mixture(), Antioch::NASAEvaluator< CoeffType, NASAFit >::chem_mixture(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cp_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::cv_over_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::dh_RT_minus_s_R_dT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_over_RT(), Antioch::NASAEvaluator< CoeffType, NASAFit >::h_RT_minus_s_R(), Antioch::NASAEvaluator< CoeffType, NASAFit >::n_species(), and Antioch::NASAEvaluator< CoeffType, NASAFit >::s_over_R().