GRINS-0.6.0
|
Wrapper class for storing state for computing thermochemistry and transport properties using Cantera. More...
#include <cantera_mixture.h>
Public Types | |
typedef CanteraMixture | ChemistryParent |
This is basically dummy, but is needed for template games elsewhere. More... | |
Public Member Functions | |
CanteraMixture (const GetPot &input) | |
~CanteraMixture () | |
Cantera::IdealGasMix & | get_chemistry () |
const Cantera::IdealGasMix & | get_chemistry () const |
Cantera::Transport & | get_transport () |
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 | n_species () const |
unsigned int | species_index (const std::string &species_name) const |
std::string | species_name (unsigned int species_index) const |
const CanteraMixture & | chemistry () const |
Protected Attributes | |
boost::scoped_ptr< Cantera::IdealGasMix > | _cantera_gas |
boost::scoped_ptr< Cantera::Transport > | _cantera_transport |
Private Member Functions | |
CanteraMixture () | |
Wrapper class for storing state for computing thermochemistry and transport properties using Cantera.
This class is expected to be constructed before threads have been forked and will live during the whole program. 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 62 of file cantera_mixture.h.
This is basically dummy, but is needed for template games elsewhere.
Definition at line 96 of file cantera_mixture.h.
GRINS::CanteraMixture::CanteraMixture | ( | const GetPot & | input | ) |
Definition at line 38 of file cantera_mixture.C.
References _cantera_gas, and _cantera_transport.
GRINS::CanteraMixture::~CanteraMixture | ( | ) |
Definition at line 68 of file cantera_mixture.C.
|
private |
|
inline |
Definition at line 171 of file cantera_mixture.h.
|
inline |
Definition at line 112 of file cantera_mixture.h.
References _cantera_gas.
Referenced by main().
|
inline |
Definition at line 118 of file cantera_mixture.h.
References _cantera_gas.
|
inline |
Definition at line 124 of file cantera_mixture.h.
References _cantera_transport.
|
inline |
Definition at line 130 of file cantera_mixture.h.
References _cantera_gas.
Referenced by GRINS::CanteraEvaluator::M(), M_mix(), and X().
libMesh::Real GRINS::CanteraMixture::M_mix | ( | const std::vector< libMesh::Real > & | mass_fractions | ) | const |
Definition at line 73 of file cantera_mixture.C.
References _cantera_gas, and M().
Referenced by GRINS::CanteraEvaluator::M_mix(), and main().
|
inline |
Definition at line 153 of file cantera_mixture.h.
References _cantera_gas.
Referenced by main().
|
inline |
Definition at line 137 of file cantera_mixture.h.
References _cantera_gas.
Referenced by GRINS::CanteraThermodynamics::h(), GRINS::CanteraEvaluator::R(), and R_mix().
libMesh::Real GRINS::CanteraMixture::R_mix | ( | const std::vector< libMesh::Real > & | mass_fractions | ) | const |
Definition at line 86 of file cantera_mixture.C.
References _cantera_gas, and R().
Referenced by main(), and GRINS::CanteraEvaluator::R_mix().
|
inline |
Definition at line 159 of file cantera_mixture.h.
References _cantera_gas.
Referenced by GRINS::CanteraEvaluator::species_index().
|
inline |
Definition at line 165 of file cantera_mixture.h.
References _cantera_gas.
Referenced by main(), and GRINS::CanteraEvaluator::species_name().
|
inline |
Definition at line 145 of file cantera_mixture.h.
References M().
Referenced by main(), GRINS::CanteraEvaluator::X(), and X().
void GRINS::CanteraMixture::X | ( | libMesh::Real | M, |
const std::vector< libMesh::Real > & | mass_fractions, | ||
std::vector< libMesh::Real > & | mole_fractions | ||
) | const |
Definition at line 99 of file cantera_mixture.C.
References _cantera_gas, and X().
|
protected |
Definition at line 100 of file cantera_mixture.h.
Referenced by CanteraMixture(), get_chemistry(), M(), M_mix(), n_species(), R(), R_mix(), species_index(), species_name(), and X().
|
protected |
Definition at line 102 of file cantera_mixture.h.
Referenced by CanteraMixture(), and get_transport().