26 #include "grins_config.h"
28 #ifdef GRINS_HAVE_ANTIOCH
42 template<
typename KineticsThermoCurveFit,
typename Thermo>
47 _minimum_T( mixture.minimum_T() ),
48 _temp_cache( new Antioch::TempCache<
libMesh::Real>(1.0) )
53 template<
typename KineticsThermoCurveFit,
typename Thermo>
55 omega_dot(
const libMesh::Real& T, libMesh::Real rho,
56 const std::vector<libMesh::Real> mass_fractions,
57 std::vector<libMesh::Real>& omega_dot )
59 this->check_and_reset_temp_cache(T);
61 _kinetics->omega_dot( *(_temp_cache.get()), rho, mass_fractions, omega_dot );
67 cp(
const libMesh::Real& T,
69 const std::vector<libMesh::Real>& Y )
71 this->check_and_reset_temp_cache(T);
72 return this->_nasa_evaluator->cp( *(_temp_cache.get()), Y );
76 libMesh::Real AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Antioch::IdealGasMicroThermo<Antioch::NASAEvaluator<libMesh::Real,Antioch::CEACurveFit<libMesh::Real> >, libMesh::Real> >::
77 cv(
const libMesh::Real& T,
79 const std::vector<libMesh::Real>& Y )
81 this->check_and_reset_temp_cache(T);
82 return this->_nasa_evaluator->cv( *(_temp_cache.get()), Y );
86 libMesh::Real AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Antioch::IdealGasMicroThermo<Antioch::NASAEvaluator<libMesh::Real,Antioch::CEACurveFit<libMesh::Real> >, libMesh::Real> >::
87 h_s(
const libMesh::Real& T,
unsigned int species )
89 this->check_and_reset_temp_cache(T);
91 return this->_nasa_evaluator->h( *(_temp_cache.get()), species );;
95 libMesh::Real AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Antioch::StatMechThermodynamics<libMesh::Real> >::cp(
const libMesh::Real& T,
97 const std::vector<libMesh::Real>& Y )
99 return this->_thermo->cp( T, T, Y );
103 libMesh::Real AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Antioch::StatMechThermodynamics<libMesh::Real> >::cv(
const libMesh::Real& T,
104 const libMesh::Real ,
105 const std::vector<libMesh::Real>& Y )
107 return this->_thermo->cv( T, T, Y );
111 libMesh::Real AntiochEvaluator<Antioch::CEACurveFit<libMesh::Real>,Antioch::StatMechThermodynamics<libMesh::Real> >::h_s(
const libMesh::Real& T,
unsigned int species )
113 return this->_thermo->h_tot( species, T ) + _chem.h_stat_mech_ref_correction(species);
118 #endif //GRINS_HAVE_ANTIOCH
Wrapper class for evaluating chemistry and thermo properties using Antioch.
Wrapper class for evaluating chemical kinetics using Antioch.
void build_thermo(const AntiochMixture< KineticsThermoCurveFit > &mixture)
void omega_dot(const libMesh::Real &T, libMesh::Real rho, const std::vector< libMesh::Real > mass_fractions, std::vector< libMesh::Real > &omega_dot)
Wrapper class for storing state for Antioch thermo and kinetics.