GRINS-0.7.0
|
Wrapper class for evaluating chemistry and thermo properties using Antioch. More...
#include <antioch_evaluator.h>
Public Member Functions | |
AntiochEvaluator (const AntiochMixture &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 | 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 | 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 | 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 &mixture) |
Protected Attributes | |
const AntiochMixture & | _chem |
libMesh::UniquePtr< Thermo > | _thermo |
libMesh::UniquePtr< AntiochKinetics > | _kinetics |
libMesh::UniquePtr< Antioch::TempCache< libMesh::Real > > | _temp_cache |
Private Member Functions | |
AntiochEvaluator () | |
void | specialized_build_thermo (const AntiochMixture &mixture, libMesh::UniquePtr< Antioch::StatMechThermodynamics< libMesh::Real > > &thermo, thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >) |
void | specialized_build_thermo (const AntiochMixture &mixture, libMesh::UniquePtr< Antioch::CEAEvaluator< libMesh::Real > > &thermo, thermo_type< Antioch::CEAEvaluator< 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 55 of file antioch_evaluator.h.
GRINS::AntiochEvaluator< Thermo >::AntiochEvaluator | ( | const AntiochMixture & | mixture | ) |
Definition at line 43 of file antioch_evaluator.C.
References GRINS::AntiochEvaluator< Thermo >::build_thermo().
|
inlinevirtual |
Definition at line 61 of file antioch_evaluator.h.
|
private |
|
inlineprotected |
Definition at line 113 of file antioch_evaluator.h.
References GRINS::AntiochEvaluator< Thermo >::specialized_build_thermo().
Referenced by GRINS::AntiochEvaluator< 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 199 of file antioch_evaluator.h.
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 62 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 71 of file antioch_evaluator.C.
References GRINS::AntiochEvaluator< Thermo >::cp().
libMesh::Real GRINS::AntiochEvaluator< Thermo >::cp | ( | const libMesh::Real & | T, |
const libMesh::Real | P, | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Referenced by GRINS::AntiochEvaluator< Thermo >::cp(), do_transport_eval(), and test_evaluator().
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 79 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< Thermo >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | P, | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Referenced by GRINS::AntiochEvaluator< Thermo >::cv().
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::cv | ( | const libMesh::Real & | T, |
const libMesh::Real | , | ||
const std::vector< libMesh::Real > & | Y | ||
) |
Definition at line 88 of file antioch_evaluator.C.
References GRINS::AntiochEvaluator< Thermo >::cv().
libMesh::Real GRINS::AntiochEvaluator< Thermo >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
Definition at line 96 of file antioch_evaluator.C.
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::h_s | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) |
Definition at line 104 of file antioch_evaluator.C.
|
inline |
Definition at line 141 of file antioch_evaluator.h.
|
inline |
Definition at line 148 of file antioch_evaluator.h.
void GRINS::AntiochEvaluator< 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 52 of file antioch_evaluator.C.
|
inline |
Definition at line 155 of file antioch_evaluator.h.
|
inline |
Definition at line 162 of file antioch_evaluator.h.
Referenced by do_transport_eval(), and test_evaluator().
|
inlineprivate |
Definition at line 120 of file antioch_evaluator.h.
References GRINS::AntiochChemistry::chemical_mixture().
Referenced by GRINS::AntiochEvaluator< Thermo >::build_thermo().
|
inlineprivate |
Definition at line 128 of file antioch_evaluator.h.
References GRINS::AntiochMixture::cea_mixture().
|
inline |
Definition at line 185 of file antioch_evaluator.h.
|
inline |
Definition at line 192 of file antioch_evaluator.h.
|
inline |
Definition at line 169 of file antioch_evaluator.h.
|
inline |
Definition at line 176 of file antioch_evaluator.h.
|
protected |
Definition at line 95 of file antioch_evaluator.h.
|
protected |
Definition at line 100 of file antioch_evaluator.h.
|
protected |
Definition at line 102 of file antioch_evaluator.h.
|
protected |
Definition at line 98 of file antioch_evaluator.h.