GRINS-0.6.0
|
Wrapper class for evaluating thermo properties using Cantera. More...
#include <cantera_thermo.h>
Public Member Functions | |
CanteraThermodynamics (CanteraMixture &mixture) | |
~CanteraThermodynamics () | |
libMesh::Real | cp (const CachedValues &cache, unsigned int qp) const |
libMesh::Real | cv (const CachedValues &cache, unsigned int qp) const |
libMesh::Real | h (const CachedValues &cache, unsigned int qp, unsigned int species) const |
void | h (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &h) const |
libMesh::Real | h (const libMesh::Real &T, unsigned int species) const |
Protected Attributes | |
CanteraMixture & | _cantera_mixture |
Cantera::IdealGasMix & | _cantera_gas |
Private Member Functions | |
CanteraThermodynamics () | |
Wrapper class for evaluating thermo properties using Cantera.
This class is expected to be constructed after threads have been forked and will only live during the lifetime of the thread. Note that this documentation will always be built regardless if Cantera is included in the GRINS build or not. Check configure output to confirm that Cantera was included in the build if you wish to use it.
Definition at line 61 of file cantera_thermo.h.
GRINS::CanteraThermodynamics::CanteraThermodynamics | ( | CanteraMixture & | mixture | ) |
Definition at line 43 of file cantera_thermo.C.
GRINS::CanteraThermodynamics::~CanteraThermodynamics | ( | ) |
Definition at line 50 of file cantera_thermo.C.
|
private |
libMesh::Real GRINS::CanteraThermodynamics::cp | ( | const CachedValues & | cache, |
unsigned int | qp | ||
) | const |
Definition at line 55 of file cantera_thermo.C.
References _cantera_gas, GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, GRINS::Cache::TEMPERATURE, and GRINS::Cache::THERMO_PRESSURE.
Referenced by GRINS::CanteraEvaluator::cp(), and main().
libMesh::Real GRINS::CanteraThermodynamics::cv | ( | const CachedValues & | cache, |
unsigned int | qp | ||
) | const |
Definition at line 87 of file cantera_thermo.C.
References _cantera_gas, GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, GRINS::Cache::TEMPERATURE, and GRINS::Cache::THERMO_PRESSURE.
Referenced by GRINS::CanteraEvaluator::cv(), and main().
libMesh::Real GRINS::CanteraThermodynamics::h | ( | const CachedValues & | cache, |
unsigned int | qp, | ||
unsigned int | species | ||
) | const |
Definition at line 119 of file cantera_thermo.C.
References _cantera_gas, _cantera_mixture, GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, GRINS::CanteraMixture::R(), GRINS::Cache::TEMPERATURE, and GRINS::Cache::THERMO_PRESSURE.
Referenced by GRINS::CanteraEvaluator::h_s(), and main().
void GRINS::CanteraThermodynamics::h | ( | const CachedValues & | cache, |
unsigned int | qp, | ||
std::vector< libMesh::Real > & | h | ||
) | const |
Definition at line 152 of file cantera_thermo.C.
References _cantera_gas, _cantera_mixture, GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, GRINS::CanteraMixture::R(), GRINS::Cache::TEMPERATURE, and GRINS::Cache::THERMO_PRESSURE.
libMesh::Real GRINS::CanteraThermodynamics::h | ( | const libMesh::Real & | T, |
unsigned int | species | ||
) | const |
Definition at line 189 of file cantera_thermo.C.
References _cantera_gas, _cantera_mixture, and GRINS::CanteraMixture::R().
|
protected |
Definition at line 82 of file cantera_thermo.h.
|
protected |
Definition at line 80 of file cantera_thermo.h.
Referenced by h().