GRINS-0.8.0
|
Wrapper class for evaluating chemistry and thermo properties using Antioch. More...
#include <antioch_evaluator.h>
Public Member Functions | |
AntiochEvaluator (const AntiochMixture< KineticsThermoCurveFit > &mixture) | |
virtual | ~AntiochEvaluator () |
libMesh::Real | M (unsigned int species) const |
libMesh::Real | M_mix (const std::vector< libMesh::Real > &mass_fractions) const |
libMesh::Real | R (unsigned int species) const |
libMesh::Real | R_mix (const std::vector< libMesh::Real > &mass_fractions) const |
libMesh::Real | X (unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const |
void | X (libMesh::Real M, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &mole_fractions) const |
unsigned int | species_index (const std::string &species_name) const |
std::string | species_name (unsigned int species_index) const |
libMesh::Real | cp (const libMesh::Real &T, const libMesh::Real P, const std::vector< libMesh::Real > &Y) |
libMesh::Real | cv (const libMesh::Real &T, const libMesh::Real P, const std::vector< libMesh::Real > &Y) |
libMesh::Real | h_s (const libMesh::Real &T, unsigned int species) |
void | omega_dot (const libMesh::Real &T, libMesh::Real rho, const std::vector< libMesh::Real > mass_fractions, std::vector< libMesh::Real > &omega_dot) |
template<> | |
libMesh::Real | cp (const libMesh::Real &T, const libMesh::Real, const std::vector< libMesh::Real > &Y) |
template<> | |
libMesh::Real | cv (const libMesh::Real &T, const libMesh::Real, const std::vector< libMesh::Real > &Y) |
template<> | |
libMesh::Real | h_s (const libMesh::Real &T, unsigned int species) |
template<> | |
libMesh::Real | cp (const libMesh::Real &T, const libMesh::Real, const std::vector< libMesh::Real > &Y) |
template<> | |
libMesh::Real | cv (const libMesh::Real &T, const libMesh::Real, const std::vector< libMesh::Real > &Y) |
template<> | |
libMesh::Real | h_s (const libMesh::Real &T, unsigned int species) |
Protected Member Functions | |
void | check_and_reset_temp_cache (const libMesh::Real &T) |
Helper method for managing _temp_cache. More... | |
void | build_thermo (const AntiochMixture< KineticsThermoCurveFit > &mixture) |
Protected Attributes | |
const AntiochMixture< KineticsThermoCurveFit > & | _chem |
libMesh::UniquePtr< Thermo > | _thermo |
Primary thermo object. More... | |
libMesh::UniquePtr< Antioch::NASAEvaluator< libMesh::Real, KineticsThermoCurveFit > > | _nasa_evaluator |
For some Thermo types, we also need to cache a NASAEvaluator. More... | |
libMesh::UniquePtr< AntiochKinetics< KineticsThermoCurveFit > > | _kinetics |
libMesh::Real | _clipped_T |
const libMesh::Real | _minimum_T |
libMesh::UniquePtr< Antioch::TempCache< libMesh::Real > > | _temp_cache |
Private Member Functions | |
AntiochEvaluator () | |
void | specialized_build_thermo (const AntiochMixture< KineticsThermoCurveFit > &mixture, libMesh::UniquePtr< Antioch::StatMechThermodynamics< libMesh::Real > > &thermo, thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >) |
void | specialized_build_thermo (const AntiochMixture< KineticsThermoCurveFit > &mixture, libMesh::UniquePtr< Antioch::IdealGasMicroThermo< Antioch::NASAEvaluator< libMesh::Real, KineticsThermoCurveFit >, libMesh::Real > > &thermo, thermo_type< Antioch::IdealGasMicroThermo< Antioch::NASAEvaluator< libMesh::Real, KineticsThermoCurveFit >, libMesh::Real > >) |
Wrapper class for evaluating chemistry and thermo properties using Antioch.
This class is expected to be constructed after threads have been forked and will only live during the lifetime of the thread. By default, Antioch is working in SI units. Note that this documentation will always be built regardless if Antioch is included in the GRINS build or not. Check configure output to confirm that Antioch was included in the build.
Definition at line 56 of file antioch_evaluator.h.
GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::AntiochEvaluator | ( | const AntiochMixture< KineticsThermoCurveFit > & | mixture | ) |
Definition at line 44 of file antioch_evaluator.C.
References GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::build_thermo().
|
inlinevirtual |
Definition at line 62 of file antioch_evaluator.h.
|
private |
|
inlineprotected |
Definition at line 125 of file antioch_evaluator.h.
Referenced by GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::AntiochEvaluator().
|
inlineprotected |
Helper method for managing _temp_cache.
T MUST be pass-by-reference because of the structure of Antioch::TempCache!
Definition at line 220 of file antioch_evaluator.h.
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::IdealGasMicroThermo< Antioch::NASAEvaluator< libMesh::Real, Antioch::CEACurveFit< libMesh::Real > >, libMesh::Real > >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 67 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | P, | ||
const std::vector< libMesh::Real > & | Y | ||
) |
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::StatMechThermodynamics< libMesh::Real > >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 95 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::IdealGasMicroThermo< Antioch::NASAEvaluator< libMesh::Real, Antioch::CEACurveFit< libMesh::Real > >, libMesh::Real > >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 77 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | P, | ||
const std::vector< libMesh::Real > & | Y | ||
) |
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::StatMechThermodynamics< libMesh::Real > >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 103 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::IdealGasMicroThermo< Antioch::NASAEvaluator< libMesh::Real, Antioch::CEACurveFit< libMesh::Real > >, libMesh::Real > >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
Definition at line 87 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Antioch::StatMechThermodynamics< libMesh::Real > >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
Definition at line 111 of file antioch_evaluator.C.
|
inline |
Definition at line 153 of file antioch_evaluator.h.
|
inline |
Definition at line 162 of file antioch_evaluator.h.
void GRINS::AntiochEvaluator< KineticsThermoCurveFit, Thermo >::omega_dot | ( | const libMesh::Real & | T, |
libMesh::Real | rho, | ||
const std::vector< libMesh::Real > | mass_fractions, | ||
std::vector< libMesh::Real > & | omega_dot | ||
) |
Definition at line 55 of file antioch_evaluator.C.
|
inline |
Definition at line 170 of file antioch_evaluator.h.
|
inline |
Definition at line 179 of file antioch_evaluator.h.
|
inlineprivate |
Definition at line 132 of file antioch_evaluator.h.
Referenced by GRINS::AntiochEvaluator< Antioch::CEACurveFit< libMesh::Real >, Thermo >::build_thermo().
|
inlineprivate |
Definition at line 139 of file antioch_evaluator.h.
|
inline |
Definition at line 205 of file antioch_evaluator.h.
|
inline |
Definition at line 213 of file antioch_evaluator.h.
|
inline |
Definition at line 186 of file antioch_evaluator.h.
|
inline |
Definition at line 195 of file antioch_evaluator.h.
|
protected |
Definition at line 96 of file antioch_evaluator.h.
|
protected |
Definition at line 108 of file antioch_evaluator.h.
|
protected |
Definition at line 104 of file antioch_evaluator.h.
|
protected |
Definition at line 112 of file antioch_evaluator.h.
|
protected |
For some Thermo types, we also need to cache a NASAEvaluator.
Definition at line 102 of file antioch_evaluator.h.
|
protected |
Definition at line 114 of file antioch_evaluator.h.
|
protected |
Primary thermo object.
Definition at line 99 of file antioch_evaluator.h.