GRINS-0.6.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity > Class Template Reference

Wrapper class for evaluating Wilke transport properties using Antioch. More...

#include <antioch_wilke_transport_evaluator.h>

Inheritance diagram for GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >:
Inheritance graph
[legend]
Collaboration diagram for GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >:
Collaboration graph
[legend]

Public Member Functions

 AntiochWilkeTransportEvaluator (const AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity > &mixture)
 
virtual ~AntiochWilkeTransportEvaluator ()
 
libMesh::Real mu (const CachedValues &cache, unsigned int qp)
 
libMesh::Real k (const CachedValues &cache, unsigned int qp)
 
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)
 
libMesh::Real mu (const libMesh::Real T, const std::vector< libMesh::Real > &Y)
 
libMesh::Real k (const libMesh::Real T, const std::vector< libMesh::Real > &Y)
 
void D (const libMesh::Real rho, const libMesh::Real cp, const libMesh::Real k, std::vector< libMesh::Real > &D)
 
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)
 
libMesh::Real cp (const libMesh::Real &T, const std::vector< libMesh::Real > &Y)
 
template<>
libMesh::Real cp (const CachedValues &cache, unsigned int qp)
 
template<>
libMesh::Real cp (const CachedValues &cache, unsigned int qp)
 
template<>
libMesh::Real cp (const libMesh::Real &T, const std::vector< libMesh::Real > &Y)
 
template<>
libMesh::Real cp (const libMesh::Real &T, const std::vector< libMesh::Real > &Y)
 
libMesh::Real cv (const CachedValues &cache, unsigned int qp)
 
template<>
libMesh::Real cv (const CachedValues &cache, unsigned int qp)
 
template<>
libMesh::Real cv (const CachedValues &cache, unsigned int qp)
 
libMesh::Real h_s (const CachedValues &cache, unsigned int qp, unsigned int species)
 
void h_s (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &h_s)
 
libMesh::Real h_s (const libMesh::Real &T, unsigned int species)
 
template<>
libMesh::Real h_s (const libMesh::Real &T, unsigned int species)
 
template<>
libMesh::Real h_s (const libMesh::Real &T, unsigned int species)
 
template<>
libMesh::Real h_s (const CachedValues &cache, unsigned int qp, unsigned int species)
 
template<>
libMesh::Real h_s (const CachedValues &cache, unsigned int qp, unsigned int species)
 
template<>
void h_s (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &h_s)
 
template<>
void h_s (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &h_s)
 
void omega_dot (const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot)
 
void omega_dot (const libMesh::Real &T, libMesh::Real rho, const std::vector< libMesh::Real > mass_fractions, std::vector< libMesh::Real > &omega_dot)
 

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

boost::scoped_ptr< Antioch::WilkeEvaluator< Viscosity, Conductivity > > _wilke_evaluator
 
const Diffusivity & _diffusivity
 
const AntiochMixture_chem
 
boost::scoped_ptr< Thermo > _thermo
 
boost::scoped_ptr< AntiochKinetics_kinetics
 
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
 

Private Member Functions

 AntiochWilkeTransportEvaluator ()
 

Detailed Description

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
class GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >

Wrapper class for evaluating Wilke transport 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 54 of file antioch_wilke_transport_evaluator.h.

Constructor & Destructor Documentation

template<typename Thermo , typename Viscosity , typename Conductivity , typename Diffusivity >
GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportEvaluator ( const AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity > &  mixture)

Definition at line 39 of file antioch_wilke_transport_evaluator.C.

40  : AntiochEvaluator<Thermo>( mixture ),
41  _wilke_evaluator( new Antioch::WilkeEvaluator<Viscosity,Conductivity>( mixture.wilke_mixture(), mixture.viscosity(), mixture.conductivity() ) ),
42  _diffusivity( mixture.diffusivity() )
43  {
44  return;
45  }
boost::scoped_ptr< Antioch::WilkeEvaluator< Viscosity, Conductivity > > _wilke_evaluator
template<typename T , typename V , typename C , typename D >
GRINS::AntiochWilkeTransportEvaluator< T, V, C, D >::~AntiochWilkeTransportEvaluator ( )
virtual

Definition at line 48 of file antioch_wilke_transport_evaluator.C.

49  {
50  return;
51  }
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportEvaluator ( )
private

Member Function Documentation

template<typename Thermo>
void GRINS::AntiochEvaluator< Thermo >::build_thermo ( const AntiochMixture mixture)
inlineprotectedinherited

Definition at line 126 of file antioch_evaluator.h.

References GRINS::AntiochEvaluator< Thermo >::specialized_build_thermo().

Referenced by GRINS::AntiochEvaluator< Thermo >::AntiochEvaluator().

127  { specialized_build_thermo( mixture, _thermo, thermo_type<Thermo>() ); }
boost::scoped_ptr< Thermo > _thermo
void specialized_build_thermo(const AntiochMixture &mixture, boost::scoped_ptr< Antioch::StatMechThermodynamics< libMesh::Real > > &thermo, thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >)
template<typename Thermo >
void GRINS::AntiochEvaluator< Thermo >::check_and_reset_temp_cache ( const libMesh::Real &  T)
protectedinherited

Helper method for managing _temp_cache.

T MUST be pass-by-reference because of the structure of Antioch::TempCache!

Definition at line 85 of file antioch_evaluator.C.

86  {
87  if( _temp_cache->T != T )
88  {
89  _temp_cache.reset( new Antioch::TempCache<libMesh::Real>(T) );
90  }
91 
92  return;
93  }
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<typename Thermo>
libMesh::Real GRINS::AntiochEvaluator< Thermo >::cp ( const CachedValues cache,
unsigned int  qp 
)
inherited
template<typename Thermo>
libMesh::Real GRINS::AntiochEvaluator< Thermo >::cp ( const libMesh::Real &  T,
const std::vector< libMesh::Real > &  Y 
)
inherited
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::cp ( const CachedValues cache,
unsigned int  qp 
)
inherited

Definition at line 96 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

98  {
99  const libMesh::Real& T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
100  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
101 
103 
104  return _thermo->cp( *(_temp_cache.get()), Y );
105  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
boost::scoped_ptr< Thermo > _thermo
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::cp ( const CachedValues cache,
unsigned int  qp 
)
inherited

Definition at line 108 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

110  {
111  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
112  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
113 
114  return _thermo->cp( T, T, Y );
115  }
boost::scoped_ptr< Thermo > _thermo
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::cp ( const libMesh::Real &  T,
const std::vector< libMesh::Real > &  Y 
)
inherited

Definition at line 118 of file antioch_evaluator.C.

120  {
122 
123  return _thermo->cp( *(_temp_cache.get()), Y );
124  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
boost::scoped_ptr< Thermo > _thermo
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::cp ( const libMesh::Real &  T,
const std::vector< libMesh::Real > &  Y 
)
inherited

Definition at line 127 of file antioch_evaluator.C.

References GRINS::AntiochEvaluator< Thermo >::cp().

129  {
130  return _thermo->cp( T, T, Y );
131  }
boost::scoped_ptr< Thermo > _thermo
template<typename Thermo>
libMesh::Real GRINS::AntiochEvaluator< Thermo >::cv ( const CachedValues cache,
unsigned int  qp 
)
inherited

Referenced by test_evaluator().

template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::cv ( const CachedValues cache,
unsigned int  qp 
)
inherited

Definition at line 134 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

136  {
137  const libMesh::Real& T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
138  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
139 
141 
142  return _thermo->cv( *(_temp_cache.get()), Y );
143  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
boost::scoped_ptr< Thermo > _thermo
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::cv ( const CachedValues cache,
unsigned int  qp 
)
inherited

Definition at line 160 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

162  {
163  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
164  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
165 
166  return _thermo->cv( T, T, Y );
167  }
boost::scoped_ptr< Thermo > _thermo
template<typename Th , typename V , typename C , typename D >
void GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::D ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  D 
)
Todo:
Find a way to cache these so we don't have to recompute them

Definition at line 83 of file antioch_wilke_transport_evaluator.C.

References GRINS::CachedValues::get_cached_values(), and GRINS::Cache::MIXTURE_DENSITY.

Referenced by do_transport_eval(), and test_evaluator().

85  {
86  const libMesh::Real rho = cache.get_cached_values(Cache::MIXTURE_DENSITY)[qp];
87 
89  const libMesh::Real cp = this->cp(cache,qp);
90  const libMesh::Real k = this->k(cache,qp);
91 
92  this->D(rho,cp,k,D);
93 
94  return;
95  }
void D(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &D)
libMesh::Real cp(const CachedValues &cache, unsigned int qp)
libMesh::Real k(const CachedValues &cache, unsigned int qp)
template<typename Th , typename V , typename C , typename D >
void GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::D ( const libMesh::Real  rho,
const libMesh::Real  cp,
const libMesh::Real  k,
std::vector< libMesh::Real > &  D 
)

Definition at line 112 of file antioch_wilke_transport_evaluator.C.

115  {
116  std::fill( D.begin(), D.end(), _diffusivity.D(rho,cp,k) );
117 
118  return;
119  }
void D(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &D)
libMesh::Real cp(const CachedValues &cache, unsigned int qp)
libMesh::Real k(const CachedValues &cache, unsigned int qp)
template<typename Thermo>
libMesh::Real GRINS::AntiochEvaluator< Thermo >::h_s ( const CachedValues cache,
unsigned int  qp,
unsigned int  species 
)
inherited

Referenced by test_evaluator().

template<typename Thermo>
void GRINS::AntiochEvaluator< Thermo >::h_s ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  h_s 
)
inherited
template<typename Thermo>
libMesh::Real GRINS::AntiochEvaluator< Thermo >::h_s ( const libMesh::Real &  T,
unsigned int  species 
)
inherited
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::h_s ( const libMesh::Real &  T,
unsigned int  species 
)
inherited

Definition at line 146 of file antioch_evaluator.C.

147  {
149 
150  return _thermo->h( *(_temp_cache.get()), species );;
151  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
boost::scoped_ptr< Thermo > _thermo
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::h_s ( const libMesh::Real &  T,
unsigned int  species 
)
inherited

Definition at line 154 of file antioch_evaluator.C.

155  {
156  return _thermo->h_tot( species, T ) + _chem.h_stat_mech_ref_correction(species);
157  }
libMesh::Real h_stat_mech_ref_correction(unsigned int species) const
boost::scoped_ptr< Thermo > _thermo
const AntiochMixture & _chem
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::h_s ( const CachedValues cache,
unsigned int  qp,
unsigned int  species 
)
inherited

Definition at line 170 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), and GRINS::Cache::TEMPERATURE.

173  {
174  const libMesh::Real& T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
175 
176  return this->h_s( T, species );
177  }
libMesh::Real h_s(const CachedValues &cache, unsigned int qp, unsigned int species)
template<>
libMesh::Real GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::h_s ( const CachedValues cache,
unsigned int  qp,
unsigned int  species 
)
inherited

Definition at line 180 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), and GRINS::Cache::TEMPERATURE.

183  {
184  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
185 
186  return this->h_s(T, species);
187  }
libMesh::Real h_s(const CachedValues &cache, unsigned int qp, unsigned int species)
template<>
void GRINS::AntiochEvaluator< Antioch::CEAEvaluator< libMesh::Real > >::h_s ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  h_s 
)
inherited

Definition at line 190 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), and GRINS::Cache::TEMPERATURE.

193  {
194  const libMesh::Real& T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
195 
197 
198  _thermo->h( *(_temp_cache.get()), h_s );
199 
200  return;
201  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
boost::scoped_ptr< Thermo > _thermo
libMesh::Real h_s(const CachedValues &cache, unsigned int qp, unsigned int species)
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<>
void GRINS::AntiochEvaluator< Antioch::StatMechThermodynamics< libMesh::Real > >::h_s ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  h_s 
)
inherited

Definition at line 204 of file antioch_evaluator.C.

207  {
208  for( unsigned int s = 0; s < _chem.n_species(); s++ )
209  {
210  h_s[s] = this->h_s(cache,qp,s);
211  }
212 
213  return;
214  }
unsigned int n_species() const
libMesh::Real h_s(const CachedValues &cache, unsigned int qp, unsigned int species)
const AntiochMixture & _chem
template<typename Th , typename V , typename C , typename D >
libMesh::Real GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::k ( const CachedValues cache,
unsigned int  qp 
)

Definition at line 63 of file antioch_wilke_transport_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

Referenced by do_transport_eval(), and test_evaluator().

64  {
65  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
66  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
67 
68  return this->k( T, Y );
69  }
libMesh::Real k(const CachedValues &cache, unsigned int qp)
template<typename Th , typename V , typename C , typename D >
libMesh::Real GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::k ( const libMesh::Real  T,
const std::vector< libMesh::Real > &  Y 
)

Definition at line 105 of file antioch_wilke_transport_evaluator.C.

107  {
108  return _wilke_evaluator->k( T, Y );
109  }
boost::scoped_ptr< Antioch::WilkeEvaluator< Viscosity, Conductivity > > _wilke_evaluator
template<typename Thermo >
libMesh::Real GRINS::AntiochEvaluator< Thermo >::M ( unsigned int  species) const
inlineinherited

Definition at line 154 of file antioch_evaluator.h.

155  {
156  return _chem.M(species);
157  }
const AntiochMixture & _chem
libMesh::Real M(unsigned int species) const
Species molar mass (molecular weight), [kg/mol].
template<typename Thermo >
libMesh::Real GRINS::AntiochEvaluator< Thermo >::M_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inlineinherited

Definition at line 161 of file antioch_evaluator.h.

162  {
163  return _chem.M_mix(mass_fractions);
164  }
libMesh::Real M_mix(const std::vector< libMesh::Real > &mass_fractions) const
Mixture molar mass (molecular weight), [kg/mol].
const AntiochMixture & _chem
template<typename Th , typename V , typename C , typename D >
libMesh::Real GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::mu ( const CachedValues cache,
unsigned int  qp 
)

Definition at line 54 of file antioch_wilke_transport_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

Referenced by do_transport_eval(), and test_evaluator().

55  {
56  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
57  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
58 
59  return this->mu( T, Y );
60  }
libMesh::Real mu(const CachedValues &cache, unsigned int qp)
template<typename Th , typename V , typename C , typename D >
libMesh::Real GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::mu ( const libMesh::Real  T,
const std::vector< libMesh::Real > &  Y 
)

Definition at line 98 of file antioch_wilke_transport_evaluator.C.

100  {
101  return _wilke_evaluator->mu( T, Y );
102  }
boost::scoped_ptr< Antioch::WilkeEvaluator< Viscosity, Conductivity > > _wilke_evaluator
template<typename Th , typename V , typename C , typename D >
void GRINS::AntiochWilkeTransportEvaluator< Th, V, C, D >::mu_and_k ( const CachedValues cache,
unsigned int  qp,
libMesh::Real &  mu,
libMesh::Real &  k 
)

Definition at line 72 of file antioch_wilke_transport_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, and GRINS::Cache::TEMPERATURE.

Referenced by test_evaluator().

74  {
75  const libMesh::Real T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
76  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
77 
78  _wilke_evaluator->mu_and_k( T, Y, mu, k );
79  return;
80  }
libMesh::Real mu(const CachedValues &cache, unsigned int qp)
boost::scoped_ptr< Antioch::WilkeEvaluator< Viscosity, Conductivity > > _wilke_evaluator
libMesh::Real k(const CachedValues &cache, unsigned int qp)
template<typename Thermo >
void GRINS::AntiochEvaluator< Thermo >::omega_dot ( const CachedValues cache,
unsigned int  qp,
std::vector< libMesh::Real > &  omega_dot 
)
inherited

Definition at line 60 of file antioch_evaluator.C.

References GRINS::CachedValues::get_cached_values(), GRINS::CachedValues::get_cached_vector_values(), GRINS::Cache::MASS_FRACTIONS, GRINS::Cache::MIXTURE_DENSITY, and GRINS::Cache::TEMPERATURE.

Referenced by test_evaluator().

62  {
63  const libMesh::Real& T = cache.get_cached_values(Cache::TEMPERATURE)[qp];
64  const libMesh::Real rho = cache.get_cached_values(Cache::MIXTURE_DENSITY)[qp];
65  const std::vector<libMesh::Real>& Y = cache.get_cached_vector_values(Cache::MASS_FRACTIONS)[qp];
66 
67  this->omega_dot( T, rho, Y, omega_dot );
68 
69  return;
70  }
void omega_dot(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot)
template<typename Thermo >
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 
)
inherited

Definition at line 73 of file antioch_evaluator.C.

76  {
78 
79  _kinetics->omega_dot( *(_temp_cache.get()), rho, mass_fractions, omega_dot );
80 
81  return;
82  }
void check_and_reset_temp_cache(const libMesh::Real &T)
Helper method for managing _temp_cache.
void omega_dot(const CachedValues &cache, unsigned int qp, std::vector< libMesh::Real > &omega_dot)
boost::scoped_ptr< AntiochKinetics > _kinetics
boost::scoped_ptr< Antioch::TempCache< libMesh::Real > > _temp_cache
template<typename Thermo >
libMesh::Real GRINS::AntiochEvaluator< Thermo >::R ( unsigned int  species) const
inlineinherited

Definition at line 168 of file antioch_evaluator.h.

169  {
170  return _chem.R(species);
171  }
const AntiochMixture & _chem
libMesh::Real R(unsigned int species) const
Species gas constant, [J/kg-K].
template<typename Thermo >
libMesh::Real GRINS::AntiochEvaluator< Thermo >::R_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inlineinherited

Definition at line 175 of file antioch_evaluator.h.

176  {
177  return _chem.R_mix(mass_fractions);
178  }
libMesh::Real R_mix(const std::vector< libMesh::Real > &mass_fractions) const
Mixture gas constant, [J/kg-K].
const AntiochMixture & _chem
template<typename Thermo >
unsigned int GRINS::AntiochEvaluator< Thermo >::species_index ( const std::string &  species_name) const
inlineinherited

Definition at line 198 of file antioch_evaluator.h.

199  {
201  }
unsigned int species_index(const std::string &species_name) const
std::string species_name(unsigned int species_index) const
const AntiochMixture & _chem
template<typename Thermo >
std::string GRINS::AntiochEvaluator< Thermo >::species_name ( unsigned int  species_index) const
inlineinherited

Definition at line 205 of file antioch_evaluator.h.

206  {
208  }
unsigned int species_index(const std::string &species_name) const
const AntiochMixture & _chem
std::string species_name(unsigned int species_index) const
template<typename Thermo >
libMesh::Real GRINS::AntiochEvaluator< Thermo >::X ( unsigned int  species,
libMesh::Real  M,
libMesh::Real  mass_fraction 
) const
inlineinherited

Definition at line 182 of file antioch_evaluator.h.

183  {
184  return _chem.X(species,M,mass_fraction);
185  }
libMesh::Real M(unsigned int species) const
const AntiochMixture & _chem
libMesh::Real X(unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const
Species mole fraction, unitless.
template<typename Thermo >
void GRINS::AntiochEvaluator< Thermo >::X ( libMesh::Real  M,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  mole_fractions 
) const
inlineinherited

Definition at line 189 of file antioch_evaluator.h.

191  {
192  _chem.X(M,mass_fractions,mole_fractions);
193  return;
194  }
libMesh::Real M(unsigned int species) const
const AntiochMixture & _chem
libMesh::Real X(unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const
Species mole fraction, unitless.

Member Data Documentation

template<typename Thermo>
const AntiochMixture& GRINS::AntiochEvaluator< Thermo >::_chem
protectedinherited

Definition at line 108 of file antioch_evaluator.h.

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
const Diffusivity& GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >::_diffusivity
protected

Definition at line 86 of file antioch_wilke_transport_evaluator.h.

template<typename Thermo>
boost::scoped_ptr<AntiochKinetics> GRINS::AntiochEvaluator< Thermo >::_kinetics
protectedinherited

Definition at line 113 of file antioch_evaluator.h.

template<typename Thermo>
boost::scoped_ptr<Antioch::TempCache<libMesh::Real> > GRINS::AntiochEvaluator< Thermo >::_temp_cache
protectedinherited

Definition at line 115 of file antioch_evaluator.h.

template<typename Thermo>
boost::scoped_ptr<Thermo> GRINS::AntiochEvaluator< Thermo >::_thermo
protectedinherited

Definition at line 111 of file antioch_evaluator.h.

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
boost::scoped_ptr<Antioch::WilkeEvaluator<Viscosity,Conductivity> > GRINS::AntiochWilkeTransportEvaluator< Thermo, Viscosity, Conductivity, Diffusivity >::_wilke_evaluator
protected

Definition at line 84 of file antioch_wilke_transport_evaluator.h.


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

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