GRINS-0.8.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, const std::string &material) | |
~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 |
Public Member Functions inherited from GRINS::ParameterUser | |
ParameterUser (const std::string &user_name) | |
virtual | ~ParameterUser () |
virtual void | set_parameter (libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default) |
Each subclass can simultaneously read a parameter value from. More... | |
virtual void | set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
Protected Member Functions | |
std::string | parse_mixture (const GetPot &input, const std::string &material) |
Protected Attributes | |
libMesh::UniquePtr< Cantera::IdealGasMix > | _cantera_gas |
libMesh::UniquePtr< Cantera::Transport > | _cantera_transport |
Private Member Functions | |
CanteraMixture () | |
Additional Inherited Members | |
Static Public Attributes inherited from GRINS::ParameterUser | |
static std::string | zero_vector_function = std::string("{0}") |
A parseable function string with LIBMESH_DIM components, all 0. More... | |
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 65 of file cantera_mixture.h.
This is basically dummy, but is needed for template games elsewhere.
Definition at line 99 of file cantera_mixture.h.
GRINS::CanteraMixture::CanteraMixture | ( | const GetPot & | input, |
const std::string & | material | ||
) |
Definition at line 41 of file cantera_mixture.C.
References _cantera_gas, _cantera_transport, GRINS::MaterialsParsing::parse_chemical_kinetics_datafile_name(), and parse_mixture().
GRINS::CanteraMixture::~CanteraMixture | ( | ) |
Definition at line 71 of file cantera_mixture.C.
|
private |
|
inline |
Definition at line 176 of file cantera_mixture.h.
|
inline |
Definition at line 117 of file cantera_mixture.h.
References _cantera_gas.
|
inline |
Definition at line 123 of file cantera_mixture.h.
References _cantera_gas.
|
inline |
Definition at line 129 of file cantera_mixture.h.
References _cantera_transport.
|
inline |
Definition at line 135 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 99 of file cantera_mixture.C.
References _cantera_gas, and M().
Referenced by GRINS::CanteraEvaluator::M_mix(), and main().
|
inline |
Definition at line 158 of file cantera_mixture.h.
References _cantera_gas.
Referenced by main().
|
protected |
Definition at line 76 of file cantera_mixture.C.
References GRINS::MaterialsParsing::dep_input_warning().
Referenced by CanteraMixture().
|
inline |
Definition at line 142 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 112 of file cantera_mixture.C.
References _cantera_gas, and R().
Referenced by main(), and GRINS::CanteraEvaluator::R_mix().
|
inline |
Definition at line 164 of file cantera_mixture.h.
References _cantera_gas.
Referenced by GRINS::CanteraEvaluator::species_index().
|
inline |
Definition at line 170 of file cantera_mixture.h.
References _cantera_gas.
Referenced by main(), and GRINS::CanteraEvaluator::species_name().
|
inline |
Definition at line 150 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 125 of file cantera_mixture.C.
References _cantera_gas, and X().
|
protected |
Definition at line 103 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 105 of file cantera_mixture.h.
Referenced by CanteraMixture(), and get_transport().