GRINS-0.6.0
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GRINS::CanteraEvaluator Class Reference

Wrapper class for evaluating thermochemistry and transport properties using Cantera. More...

#include <cantera_evaluator.h>

Collaboration diagram for GRINS::CanteraEvaluator:
Collaboration graph
[legend]

Public Member Functions

 CanteraEvaluator (CanteraMixture &mixture)
 
 ~CanteraEvaluator ()
 
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 CachedValues &cache, unsigned int qp) const
 
libMesh::Real cv (const CachedValues &cache, unsigned int qp) const
 
libMesh::Real h_s (const CachedValues &cache, unsigned int qp, unsigned int species) const
 
void h_s (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &h) const
 
libMesh::Real h_s (const libMesh::Real &T, unsigned int species)
 
libMesh::Real mu (const CachedValues &cache, unsigned int qp) const
 
libMesh::Real k (const CachedValues &cache, unsigned int qp) const
 
void mu_and_k (const CachedValues &cache, unsigned int qp, libMesh::Real &mu, libMesh::Real &k)
 
void D (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &D) const
 
void omega_dot (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot) const
 
void omega_dot (const libMesh::Real &T, libMesh::Real rho, const std::vector< libMesh::Real > mass_fractions, std::vector< libMesh::Real > &omega_dot)
 
libMesh::Real cp (const libMesh::Real &, const std::vector< libMesh::Real > &)
 
libMesh::Real mu (const libMesh::Real &, const std::vector< libMesh::Real > &)
 
libMesh::Real k (const libMesh::Real &, const std::vector< libMesh::Real > &)
 
void D (const libMesh::Real, const libMesh::Real, const libMesh::Real, std::vector< libMesh::Real > &)
 

Protected Attributes

CanteraMixture_chem
 
CanteraThermodynamics _thermo
 
CanteraTransport _transport
 
CanteraKinetics _kinetics
 

Private Member Functions

 CanteraEvaluator ()
 

Detailed Description

Wrapper class for evaluating thermochemistry and transport 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 48 of file cantera_evaluator.h.

Constructor & Destructor Documentation

GRINS::CanteraEvaluator::CanteraEvaluator ( CanteraMixture mixture)

Definition at line 39 of file cantera_evaluator.C.

40  : _chem( mixture ),
41  _thermo( CanteraThermodynamics(mixture) ),
42  _transport( CanteraTransport(mixture) ),
43  _kinetics( CanteraKinetics(mixture) )
44  {
45  return;
46  }
CanteraTransport _transport
CanteraThermodynamics _thermo
GRINS::CanteraEvaluator::~CanteraEvaluator ( )

Definition at line 48 of file cantera_evaluator.C.

49  {
50  return;
51  }
GRINS::CanteraEvaluator::CanteraEvaluator ( )
private

Member Function Documentation

libMesh::Real GRINS::CanteraEvaluator::cp ( const CachedValues cache,
unsigned int  qp 
) const
inline

Definition at line 201 of file cantera_evaluator.h.

References _thermo, and GRINS::CanteraThermodynamics::cp().

Referenced by main().

202  {
203  return _thermo.cp(cache,qp);
204  }
libMesh::Real cp(const CachedValues &cache, unsigned int qp) const
CanteraThermodynamics _thermo
libMesh::Real GRINS::CanteraEvaluator::cp ( const libMesh::Real &  ,
const std::vector< libMesh::Real > &   
)
inline

Definition at line 103 of file cantera_evaluator.h.

105  {
106  libmesh_not_implemented();
107  return 0.0;
108  }
libMesh::Real GRINS::CanteraEvaluator::cv ( const CachedValues cache,
unsigned int  qp 
) const
inline

Definition at line 207 of file cantera_evaluator.h.

References _thermo, and GRINS::CanteraThermodynamics::cv().

Referenced by main().

208  {
209  return _thermo.cv(cache,qp);
210  }
CanteraThermodynamics _thermo
libMesh::Real cv(const CachedValues &cache, unsigned int qp) const
void GRINS::CanteraEvaluator::D ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  D 
) const
inline

Definition at line 253 of file cantera_evaluator.h.

References _transport, and GRINS::CanteraTransport::D().

Referenced by main().

255  {
256  return _transport.D(cache,qp,D);
257  }
void D(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &D) const
CanteraTransport _transport
void D(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &D) const
void GRINS::CanteraEvaluator::D ( const libMesh::Real  ,
const libMesh::Real  ,
const libMesh::Real  ,
std::vector< libMesh::Real > &   
)
inline

Definition at line 124 of file cantera_evaluator.h.

128  {
129  libmesh_not_implemented();
130  return;
131  }
libMesh::Real GRINS::CanteraEvaluator::h_s ( const CachedValues cache,
unsigned int  qp,
unsigned int  species 
) const
inline

Definition at line 213 of file cantera_evaluator.h.

References _thermo, and GRINS::CanteraThermodynamics::h().

Referenced by main().

214  {
215  return _thermo.h(cache,qp,species);
216  }
CanteraThermodynamics _thermo
libMesh::Real h(const CachedValues &cache, unsigned int qp, unsigned int species) const
void GRINS::CanteraEvaluator::h_s ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  h 
) const
inline

Definition at line 219 of file cantera_evaluator.h.

References _thermo, and GRINS::CanteraThermodynamics::h().

220  {
221  _thermo.h(cache,qp,h);
222  return;
223  }
CanteraThermodynamics _thermo
libMesh::Real h(const CachedValues &cache, unsigned int qp, unsigned int species) const
libMesh::Real GRINS::CanteraEvaluator::h_s ( const libMesh::Real &  T,
unsigned int  species 
)
inline

Definition at line 226 of file cantera_evaluator.h.

References _thermo, and GRINS::CanteraThermodynamics::h().

227  {
228  return _thermo.h(T,species);
229  }
CanteraThermodynamics _thermo
libMesh::Real h(const CachedValues &cache, unsigned int qp, unsigned int species) const
libMesh::Real GRINS::CanteraEvaluator::k ( const CachedValues cache,
unsigned int  qp 
) const
inline

Definition at line 238 of file cantera_evaluator.h.

References _transport, and GRINS::CanteraTransport::k().

Referenced by main().

239  {
240  return _transport.k(cache,qp);
241  }
CanteraTransport _transport
libMesh::Real k(const CachedValues &cache, unsigned int qp) const
libMesh::Real GRINS::CanteraEvaluator::k ( const libMesh::Real &  ,
const std::vector< libMesh::Real > &   
)
inline

Definition at line 117 of file cantera_evaluator.h.

119  {
120  libmesh_not_implemented();
121  return 0.0;
122  }
libMesh::Real GRINS::CanteraEvaluator::M ( unsigned int  species) const
inline

Definition at line 151 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::M().

152  {
153  return _chem.M(species);
154  }
libMesh::Real M(unsigned int species) const
libMesh::Real GRINS::CanteraEvaluator::M_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inline

Definition at line 157 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::M_mix().

158  {
159  return _chem.M_mix(mass_fractions);
160  }
libMesh::Real M_mix(const std::vector< libMesh::Real > &mass_fractions) const
libMesh::Real GRINS::CanteraEvaluator::mu ( const CachedValues cache,
unsigned int  qp 
) const
inline

Definition at line 232 of file cantera_evaluator.h.

References _transport, and GRINS::CanteraTransport::mu().

Referenced by main().

233  {
234  return _transport.mu(cache,qp);
235  }
CanteraTransport _transport
libMesh::Real mu(const CachedValues &cache, unsigned int qp) const
libMesh::Real GRINS::CanteraEvaluator::mu ( const libMesh::Real &  ,
const std::vector< libMesh::Real > &   
)
inline

Definition at line 110 of file cantera_evaluator.h.

112  {
113  libmesh_not_implemented();
114  return 0.0;
115  }
void GRINS::CanteraEvaluator::mu_and_k ( const CachedValues cache,
unsigned int  qp,
libMesh::Real &  mu,
libMesh::Real &  k 
)
inline

Definition at line 244 of file cantera_evaluator.h.

References _transport, GRINS::CanteraTransport::k(), and GRINS::CanteraTransport::mu().

246  {
247  mu = _transport.mu(cache,qp);
248  k = _transport.k(cache,qp);
249  return;
250  }
CanteraTransport _transport
libMesh::Real mu(const CachedValues &cache, unsigned int qp) const
libMesh::Real k(const CachedValues &cache, unsigned int qp) const
libMesh::Real mu(const CachedValues &cache, unsigned int qp) const
libMesh::Real k(const CachedValues &cache, unsigned int qp) const
void GRINS::CanteraEvaluator::omega_dot ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  omega_dot 
) const
inline

Definition at line 260 of file cantera_evaluator.h.

References _kinetics, and GRINS::CanteraKinetics::omega_dot().

Referenced by main().

262  {
263  return _kinetics.omega_dot(cache,qp,omega_dot);
264  }
void omega_dot(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot) const
void omega_dot(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot) const
void GRINS::CanteraEvaluator::omega_dot ( const libMesh::Real &  T,
libMesh::Real  rho,
const std::vector< libMesh::Real >  mass_fractions,
std::vector< libMesh::Real > &  omega_dot 
)
inline

Definition at line 267 of file cantera_evaluator.h.

References _kinetics, and GRINS::CanteraKinetics::omega_dot_TRY().

270  {
271  return _kinetics.omega_dot_TRY(T,rho,mass_fractions,omega_dot);
272  }
void omega_dot_TRY(const libMesh::Real &T, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot) const
void omega_dot(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot) const
libMesh::Real GRINS::CanteraEvaluator::R ( unsigned int  species) const
inline

Definition at line 163 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::R().

164  {
165  return _chem.R(species);
166  }
libMesh::Real R(unsigned int species) const
libMesh::Real GRINS::CanteraEvaluator::R_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inline

Definition at line 169 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::R_mix().

170  {
171  return _chem.R_mix(mass_fractions);
172  }
libMesh::Real R_mix(const std::vector< libMesh::Real > &mass_fractions) const
unsigned int GRINS::CanteraEvaluator::species_index ( const std::string &  species_name) const
inline

Definition at line 189 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::species_index().

190  {
192  }
unsigned int species_index(const std::string &species_name) const
std::string species_name(unsigned int species_index) const
std::string GRINS::CanteraEvaluator::species_name ( unsigned int  species_index) const
inline

Definition at line 195 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::species_name().

196  {
198  }
std::string species_name(unsigned int species_index) const
unsigned int species_index(const std::string &species_name) const
libMesh::Real GRINS::CanteraEvaluator::X ( unsigned int  species,
libMesh::Real  M,
libMesh::Real  mass_fraction 
) const
inline

Definition at line 175 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::X().

176  {
177  return _chem.X(species,M,mass_fraction);
178  }
libMesh::Real X(unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const
libMesh::Real M(unsigned int species) const
void GRINS::CanteraEvaluator::X ( libMesh::Real  M,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  mole_fractions 
) const
inline

Definition at line 181 of file cantera_evaluator.h.

References _chem, and GRINS::CanteraMixture::X().

183  {
184  _chem.X(M,mass_fractions,mole_fractions);
185  return;
186  }
libMesh::Real X(unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const
libMesh::Real M(unsigned int species) const

Member Data Documentation

CanteraMixture& GRINS::CanteraEvaluator::_chem
protected

Definition at line 135 of file cantera_evaluator.h.

Referenced by M(), M_mix(), R(), R_mix(), species_index(), species_name(), and X().

CanteraKinetics GRINS::CanteraEvaluator::_kinetics
protected

Definition at line 141 of file cantera_evaluator.h.

Referenced by omega_dot().

CanteraThermodynamics GRINS::CanteraEvaluator::_thermo
protected

Definition at line 137 of file cantera_evaluator.h.

Referenced by cp(), cv(), and h_s().

CanteraTransport GRINS::CanteraEvaluator::_transport
protected

Definition at line 139 of file cantera_evaluator.h.

Referenced by D(), k(), mu(), and mu_and_k().


The documentation for this class was generated from the following files:

Generated on Mon Jun 22 2015 21:32:22 for GRINS-0.6.0 by  doxygen 1.8.9.1