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

Wrapper class for storing state for computing Wilke transport properties using Antioch. More...

#include <antioch_wilke_transport_mixture.h>

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

Public Types

typedef AntiochChemistry ChemistryParent
 

Public Member Functions

 AntiochWilkeTransportMixture (const GetPot &input)
 
virtual ~AntiochWilkeTransportMixture ()
 
const Antioch::WilkeMixture< libMesh::Real > & wilke_mixture () const
 
const Viscosity & viscosity () const
 
const Conductivity & conductivity () const
 
const Diffusivity & diffusivity () const
 
const Antioch::ReactionSet< libMesh::Real > & reaction_set () const
 
const Antioch::CEAThermoMixture< libMesh::Real > & cea_mixture () const
 
libMesh::Real h_stat_mech_ref_correction (unsigned int species) const
 
libMesh::Real M (unsigned int species) const
 Species molar mass (molecular weight), [kg/mol]. More...
 
libMesh::Real M_mix (const std::vector< libMesh::Real > &mass_fractions) const
 Mixture molar mass (molecular weight), [kg/mol]. More...
 
libMesh::Real R (unsigned int species) const
 Species gas constant, [J/kg-K]. More...
 
libMesh::Real R_mix (const std::vector< libMesh::Real > &mass_fractions) const
 Mixture gas constant, [J/kg-K]. More...
 
libMesh::Real X (unsigned int species, libMesh::Real M, libMesh::Real mass_fraction) const
 Species mole fraction, unitless. More...
 
void X (libMesh::Real M, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &mole_fractions) const
 Mole fraction for all species, unitless. More...
 
libMesh::Real molar_density (const unsigned int species, const libMesh::Real rho, const libMesh::Real mass_fraction) const
 Species molar density, [mol/m^3]. More...
 
void molar_densities (const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &molar_densities) const
 Molar density for all species, [mol/m^3]. More...
 
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 Antioch::ChemicalMixture< libMesh::Real > & chemical_mixture () const
 Accessor to underlying Antioch object. More...
 
const AntiochChemistrychemistry () const
 Accessor for this class. More...
 

Protected Member Functions

void build_thermo (const GetPot &input)
 
void build_viscosity (const GetPot &input)
 
void build_conductivity (const GetPot &input)
 
void build_diffusivity (const GetPot &input)
 
void build_stat_mech_ref_correction ()
 

Protected Attributes

Antioch::WilkeMixture< libMesh::Real > _wilke_mixture
 
boost::scoped_ptr< Thermo > _thermo
 
boost::scoped_ptr< Viscosity > _viscosity
 
boost::scoped_ptr< Conductivity > _conductivity
 
boost::scoped_ptr< Diffusivity > _diffusivity
 
boost::scoped_ptr< Antioch::ReactionSet< libMesh::Real > > _reaction_set
 
boost::scoped_ptr< Antioch::CEAThermoMixture< libMesh::Real > > _cea_mixture
 
std::vector< libMesh::Real > _h_stat_mech_ref_correction
 
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
 

Private Member Functions

 AntiochWilkeTransportMixture ()
 
void specialized_build_thermo (const GetPot &, boost::scoped_ptr< Antioch::StatMechThermodynamics< libMesh::Real > > &thermo, thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >)
 
void specialized_build_thermo (const GetPot &, boost::scoped_ptr< Antioch::CEAEvaluator< libMesh::Real > > &thermo, thermo_type< Antioch::CEAEvaluator< libMesh::Real > >)
 
void specialized_build_viscosity (const GetPot &, boost::scoped_ptr< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > > &viscosity, viscosity_type< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > >)
 
void specialized_build_viscosity (const GetPot &, boost::scoped_ptr< Antioch::MixtureViscosity< Antioch::BlottnerViscosity< libMesh::Real > > > &viscosity, viscosity_type< Antioch::MixtureViscosity< Antioch::BlottnerViscosity< libMesh::Real > > >)
 
void specialized_build_conductivity (const GetPot &, boost::scoped_ptr< Antioch::EuckenThermalConductivity< Thermo > > &conductivity, conductivity_type< Antioch::EuckenThermalConductivity< Thermo > >)
 
void specialized_build_diffusivity (const GetPot &input, boost::scoped_ptr< Antioch::ConstantLewisDiffusivity< libMesh::Real > > &diffusivity, diffusivity_type< Antioch::ConstantLewisDiffusivity< libMesh::Real > >)
 

Detailed Description

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

Wrapper class for storing state for computing Wilke transport properties using Antioch.

This class is expected to be constructed before threads have been forked and will live during the whole program. 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 72 of file antioch_wilke_transport_mixture.h.

Member Typedef Documentation

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
typedef AntiochChemistry GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::ChemistryParent

Definition at line 88 of file antioch_wilke_transport_mixture.h.

Constructor & Destructor Documentation

template<typename T , typename V , typename C , typename D >
GRINS::AntiochWilkeTransportMixture< T, V, C, D >::AntiochWilkeTransportMixture ( const GetPot &  input)

Definition at line 39 of file antioch_wilke_transport_mixture.C.

References GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_conductivity(), GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_diffusivity(), GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_thermo(), and GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_viscosity().

40  : AntiochMixture(input),
41  _wilke_mixture(*(this->_antioch_gas.get())),
42  _thermo(NULL),
43  _viscosity(NULL),
44  _conductivity(NULL),
45  _diffusivity(NULL)
46  {
47  this->build_thermo( input );
48 
49  this->build_viscosity( input );
50 
51  this->build_conductivity( input );
52 
53  this->build_diffusivity( input );
54 
55  return;
56  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
boost::scoped_ptr< Conductivity > _conductivity
Antioch::WilkeMixture< libMesh::Real > _wilke_mixture
template<typename T , typename V , typename C , typename D >
GRINS::AntiochWilkeTransportMixture< T, V, C, D >::~AntiochWilkeTransportMixture ( )
virtual

Definition at line 59 of file antioch_wilke_transport_mixture.C.

60  {
61  return;
62  }
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportMixture ( )
private

Member Function Documentation

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_conductivity ( const GetPot &  input)
inlineprotected

Definition at line 112 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_conductivity().

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportMixture().

113  { specialized_build_conductivity( input, _conductivity, conductivity_type<Conductivity>() ); }
boost::scoped_ptr< Conductivity > _conductivity
void specialized_build_conductivity(const GetPot &, boost::scoped_ptr< Antioch::EuckenThermalConductivity< Thermo > > &conductivity, conductivity_type< Antioch::EuckenThermalConductivity< Thermo > >)
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_diffusivity ( const GetPot &  input)
inlineprotected

Definition at line 115 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_diffusivity().

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportMixture().

116  { specialized_build_diffusivity( input, _diffusivity, diffusivity_type<Diffusivity>() ); }
void specialized_build_diffusivity(const GetPot &input, boost::scoped_ptr< Antioch::ConstantLewisDiffusivity< libMesh::Real > > &diffusivity, diffusivity_type< Antioch::ConstantLewisDiffusivity< libMesh::Real > >)
void GRINS::AntiochMixture::build_stat_mech_ref_correction ( )
protectedinherited

Definition at line 71 of file antioch_mixture.C.

References GRINS::AntiochChemistry::_antioch_gas, GRINS::AntiochMixture::_h_stat_mech_ref_correction, and GRINS::AntiochChemistry::n_species().

Referenced by GRINS::AntiochMixture::AntiochMixture().

72  {
73  Antioch::StatMechThermodynamics<libMesh::Real> thermo( *(this->_antioch_gas.get()) );
74 
75  _h_stat_mech_ref_correction.resize(this->n_species());
76 
77  for( unsigned int s = 0; s < this->n_species(); s++ )
78  {
79  _h_stat_mech_ref_correction[s] = -thermo.h_tot( s, 298.15 ) + thermo.e_0(s);
80  }
81 
82  return;
83  }
unsigned int n_species() const
std::vector< libMesh::Real > _h_stat_mech_ref_correction
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_thermo ( const GetPot &  input)
inlineprotected

Definition at line 106 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_thermo().

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportMixture().

107  { specialized_build_thermo( input, _thermo, thermo_type<Thermo>() ); }
void specialized_build_thermo(const GetPot &, boost::scoped_ptr< Antioch::StatMechThermodynamics< libMesh::Real > > &thermo, thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >)
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_viscosity ( const GetPot &  input)
inlineprotected

Definition at line 109 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_viscosity().

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::AntiochWilkeTransportMixture().

110  { specialized_build_viscosity( input, _viscosity, viscosity_type<Viscosity>() ); }
void specialized_build_viscosity(const GetPot &, boost::scoped_ptr< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > > &viscosity, viscosity_type< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > >)
const Antioch::CEAThermoMixture< libMesh::Real > & GRINS::AntiochMixture::cea_mixture ( ) const
inlineinherited
const Antioch::ChemicalMixture< libMesh::Real > & GRINS::AntiochChemistry::chemical_mixture ( ) const
inlineinherited

Accessor to underlying Antioch object.

Definition at line 178 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

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

179  {
180  return *_antioch_gas.get();
181  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
const AntiochChemistry & GRINS::AntiochChemistry::chemistry ( ) const
inlineinherited

Accessor for this class.

Definition at line 201 of file antioch_chemistry.h.

202  {
203  return *this;
204  }
template<typename T , typename V , typename Conductivity , typename D >
const Conductivity & GRINS::AntiochWilkeTransportMixture< T, V, Conductivity, D >::conductivity ( ) const
inline

Definition at line 204 of file antioch_wilke_transport_mixture.h.

205  {
206  return *_conductivity.get();
207  }
boost::scoped_ptr< Conductivity > _conductivity
template<typename T , typename V , typename C , typename Diffusivity >
const Diffusivity & GRINS::AntiochWilkeTransportMixture< T, V, C, Diffusivity >::diffusivity ( ) const
inline

Definition at line 211 of file antioch_wilke_transport_mixture.h.

212  {
213  return *_diffusivity.get();
214  }
libMesh::Real GRINS::AntiochMixture::h_stat_mech_ref_correction ( unsigned int  species) const
inlineinherited

Definition at line 107 of file antioch_mixture.h.

References GRINS::AntiochMixture::_h_stat_mech_ref_correction.

108  {
109  return _h_stat_mech_ref_correction[species];
110  }
std::vector< libMesh::Real > _h_stat_mech_ref_correction
libMesh::Real GRINS::AntiochChemistry::M ( unsigned int  species) const
inlineinherited

Species molar mass (molecular weight), [kg/mol].

Definition at line 122 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

123  {
124  return _antioch_gas->M(species);
125  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real GRINS::AntiochChemistry::M_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inlineinherited

Mixture molar mass (molecular weight), [kg/mol].

Definition at line 128 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by main().

129  {
130  return _antioch_gas->M(mass_fractions);
131  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
void GRINS::AntiochChemistry::molar_densities ( const libMesh::Real  rho,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  molar_densities 
) const
inlineinherited

Molar density for all species, [mol/m^3].

Definition at line 192 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by GRINS::AntiochKinetics::omega_dot().

195  {
196  _antioch_gas->molar_densities( rho, mass_fractions, molar_densities );
197  return;
198  }
void molar_densities(const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &molar_densities) const
Molar density for all species, [mol/m^3].
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real GRINS::AntiochChemistry::molar_density ( const unsigned int  species,
const libMesh::Real  rho,
const libMesh::Real  mass_fraction 
) const
inlineinherited

Species molar density, [mol/m^3].

Definition at line 184 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

187  {
188  return _antioch_gas->molar_density( species, rho, mass_fraction );
189  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
unsigned int GRINS::AntiochChemistry::n_species ( ) const
inlineinherited

Definition at line 162 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by GRINS::AntiochChemistry::AntiochChemistry(), GRINS::AntiochMixture::build_stat_mech_ref_correction(), do_transport_eval(), main(), and GRINS::AntiochKinetics::omega_dot().

163  {
164  return _antioch_gas->n_species();
165  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real GRINS::AntiochChemistry::R ( unsigned int  species) const
inlineinherited

Species gas constant, [J/kg-K].

R_universal/M(species)

Definition at line 134 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

135  {
136  return _antioch_gas->R(species);
137  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real GRINS::AntiochChemistry::R_mix ( const std::vector< libMesh::Real > &  mass_fractions) const
inlineinherited

Mixture gas constant, [J/kg-K].

Definition at line 140 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by main(), and test_evaluator().

141  {
142  return _antioch_gas->R(mass_fractions);
143  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
const Antioch::ReactionSet< libMesh::Real > & GRINS::AntiochMixture::reaction_set ( ) const
inlineinherited

Definition at line 95 of file antioch_mixture.h.

References GRINS::AntiochMixture::_reaction_set.

96  {
97  return *_reaction_set.get();
98  }
boost::scoped_ptr< Antioch::ReactionSet< libMesh::Real > > _reaction_set
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_conductivity ( const GetPot &  ,
boost::scoped_ptr< Antioch::EuckenThermalConductivity< Thermo > > &  conductivity,
conductivity_type< Antioch::EuckenThermalConductivity< Thermo > >   
)
inlineprivate

Definition at line 158 of file antioch_wilke_transport_mixture.h.

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_conductivity().

161  {
162  conductivity.reset( new Antioch::EuckenThermalConductivity<Thermo>( *_thermo.get() ) );
163  return;
164  }
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_diffusivity ( const GetPot &  input,
boost::scoped_ptr< Antioch::ConstantLewisDiffusivity< libMesh::Real > > &  diffusivity,
diffusivity_type< Antioch::ConstantLewisDiffusivity< libMesh::Real > >   
)
inlineprivate

Definition at line 166 of file antioch_wilke_transport_mixture.h.

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_diffusivity().

169  {
170  if( !input.have_variable( "Physics/Antioch/Le" ) )
171  {
172  std::cerr << "Error: Must provide Lewis number for constant_lewis diffusivity model."
173  << std::endl;
174 
175  libmesh_error();
176  }
177 
178  const libMesh::Real Le = input( "Physics/Antioch/Le", 0.0 );
179 
180  diffusivity.reset( new Antioch::ConstantLewisDiffusivity<libMesh::Real>( Le ) );
181 
182  return;
183  }
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_thermo ( const GetPot &  ,
boost::scoped_ptr< Antioch::StatMechThermodynamics< libMesh::Real > > &  thermo,
thermo_type< Antioch::StatMechThermodynamics< libMesh::Real > >   
)
inlineprivate

Definition at line 122 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_thermo().

125  {
126  thermo.reset( new Antioch::StatMechThermodynamics<libMesh::Real>( *(this->_antioch_gas.get()) ) );
127  return;
128  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_thermo ( const GetPot &  ,
boost::scoped_ptr< Antioch::CEAEvaluator< libMesh::Real > > &  thermo,
thermo_type< Antioch::CEAEvaluator< libMesh::Real > >   
)
inlineprivate

Definition at line 130 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochMixture::cea_mixture().

133  {
134  thermo.reset( new Antioch::CEAEvaluator<libMesh::Real>( this->cea_mixture() ) );
135  return;
136  }
const Antioch::CEAThermoMixture< libMesh::Real > & cea_mixture() const
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_viscosity ( const GetPot &  ,
boost::scoped_ptr< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > > &  viscosity,
viscosity_type< Antioch::MixtureViscosity< Antioch::SutherlandViscosity< libMesh::Real > > >   
)
inlineprivate

Definition at line 138 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::build_viscosity().

141  {
142  viscosity.reset( new Antioch::MixtureViscosity<Antioch::SutherlandViscosity<libMesh::Real> >( *(this->_antioch_gas.get()) ) );
143 
144  Antioch::read_sutherland_data_ascii_default( *(viscosity.get()) );
145  return;
146  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
void GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_viscosity ( const GetPot &  ,
boost::scoped_ptr< Antioch::MixtureViscosity< Antioch::BlottnerViscosity< libMesh::Real > > > &  viscosity,
viscosity_type< Antioch::MixtureViscosity< Antioch::BlottnerViscosity< libMesh::Real > > >   
)
inlineprivate

Definition at line 148 of file antioch_wilke_transport_mixture.h.

References GRINS::AntiochChemistry::_antioch_gas.

151  {
152  viscosity.reset( new Antioch::MixtureViscosity<Antioch::BlottnerViscosity<libMesh::Real> >( *(this->_antioch_gas.get()) ) );
153 
154  Antioch::read_blottner_data_ascii_default( *(viscosity.get()) );
155  return;
156  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
unsigned int GRINS::AntiochChemistry::species_index ( const std::string &  species_name) const
inlineinherited

Definition at line 168 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

169  {
170 #if ANTIOCH_MAJOR_VERSION < 1 && ANTIOCH_MINOR_VERSION < 3
171  return _antioch_gas->active_species_name_map().find(species_name)->second;
172 #else
173  return _antioch_gas->species_name_map().find(species_name)->second;
174 #endif
175  }
std::string species_name(unsigned int species_index) const
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
std::string GRINS::AntiochChemistry::species_name ( unsigned int  species_index) const
inherited

Definition at line 65 of file antioch_chemistry.C.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by do_transport_eval(), main(), and test_evaluator().

66  {
67  libmesh_assert_less(species_index, _antioch_gas->n_species());
68 
69 #if ANTIOCH_MAJOR_VERSION < 1 && ANTIOCH_MINOR_VERSION < 3
70  std::string name = "dummy";
71 
72  for( std::map<std::string,unsigned int>::const_iterator it = _antioch_gas->active_species_name_map().begin();
73  it != _antioch_gas->active_species_name_map().end(); it++ )
74  {
75  if( it->second == species_index )
76  {
77  name = it->first;
78  }
79  }
80 
81  if( name == std::string("dummy") )
82  {
83  std::cerr << "Error: Could not find a species name for the given index!"
84  << std::endl;
85  libmesh_error();
86  }
87 
88  return name;
89 #else
90  return _antioch_gas->species_inverse_name_map().find(species_index)->second;
91 #endif
92  }
unsigned int species_index(const std::string &species_name) const
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
template<typename T , typename Viscosity , typename C , typename D >
const Viscosity & GRINS::AntiochWilkeTransportMixture< T, Viscosity, C, D >::viscosity ( ) const
inline

Definition at line 197 of file antioch_wilke_transport_mixture.h.

198  {
199  return *_viscosity.get();
200  }
template<typename T , typename V , typename C , typename D >
const Antioch::WilkeMixture< libMesh::Real > & GRINS::AntiochWilkeTransportMixture< T, V, C, D >::wilke_mixture ( ) const
inline

Definition at line 190 of file antioch_wilke_transport_mixture.h.

191  {
192  return _wilke_mixture;
193  }
Antioch::WilkeMixture< libMesh::Real > _wilke_mixture
libMesh::Real GRINS::AntiochChemistry::X ( unsigned int  species,
libMesh::Real  M,
libMesh::Real  mass_fraction 
) const
inlineinherited

Species mole fraction, unitless.

Definition at line 146 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

Referenced by main().

148  {
149  return _antioch_gas->X(species,M,mass_fraction);
150  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real M(unsigned int species) const
Species molar mass (molecular weight), [kg/mol].
void GRINS::AntiochChemistry::X ( libMesh::Real  M,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  mole_fractions 
) const
inlineinherited

Mole fraction for all species, unitless.

Definition at line 153 of file antioch_chemistry.h.

References GRINS::AntiochChemistry::_antioch_gas.

156  {
157  _antioch_gas->X(M,mass_fractions,mole_fractions);
158  return;
159  }
boost::scoped_ptr< Antioch::ChemicalMixture< libMesh::Real > > _antioch_gas
libMesh::Real M(unsigned int species) const
Species molar mass (molecular weight), [kg/mol].

Member Data Documentation

boost::scoped_ptr<Antioch::ChemicalMixture<libMesh::Real> > GRINS::AntiochChemistry::_antioch_gas
protectedinherited
boost::scoped_ptr<Antioch::CEAThermoMixture<libMesh::Real> > GRINS::AntiochMixture::_cea_mixture
protectedinherited
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
boost::scoped_ptr<Conductivity> GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::_conductivity
protected

Definition at line 98 of file antioch_wilke_transport_mixture.h.

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
boost::scoped_ptr<Diffusivity> GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::_diffusivity
protected

Definition at line 100 of file antioch_wilke_transport_mixture.h.

std::vector<libMesh::Real> GRINS::AntiochMixture::_h_stat_mech_ref_correction
protectedinherited
boost::scoped_ptr<Antioch::ReactionSet<libMesh::Real> > GRINS::AntiochMixture::_reaction_set
protectedinherited
template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
boost::scoped_ptr<Thermo> GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::_thermo
protected

Definition at line 94 of file antioch_wilke_transport_mixture.h.

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
boost::scoped_ptr<Viscosity> GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::_viscosity
protected

Definition at line 96 of file antioch_wilke_transport_mixture.h.

template<typename Thermo, typename Viscosity, typename Conductivity, typename Diffusivity>
Antioch::WilkeMixture<libMesh::Real> GRINS::AntiochWilkeTransportMixture< Thermo, Viscosity, Conductivity, Diffusivity >::_wilke_mixture
protected

Definition at line 92 of file antioch_wilke_transport_mixture.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