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

Wrapper class for evaluating chemical kinetics using Antioch. More...

#include <antioch_kinetics.h>

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

Public Member Functions

 AntiochKinetics (const AntiochMixture &mixture)
 
 ~AntiochKinetics ()
 
void omega_dot (const libMesh::Real &T, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot)
 
void omega_dot (const Antioch::TempCache< libMesh::Real > &temp_cache, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot)
 

Protected Attributes

const AntiochMixture_antioch_mixture
 
Antioch::KineticsEvaluator< libMesh::Real > _antioch_kinetics
 
Antioch::CEAEvaluator< libMesh::Real > _antioch_cea_thermo
 

Private Member Functions

 AntiochKinetics ()
 

Detailed Description

Wrapper class for evaluating chemical kinetics 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 57 of file antioch_kinetics.h.

Constructor & Destructor Documentation

GRINS::AntiochKinetics::AntiochKinetics ( const AntiochMixture mixture)

Definition at line 42 of file antioch_kinetics.C.

43  : _antioch_mixture( mixture ),
44  _antioch_kinetics( mixture.reaction_set(), 0 ),
45  _antioch_cea_thermo( mixture.cea_mixture() )
46  {}
Antioch::KineticsEvaluator< libMesh::Real > _antioch_kinetics
Antioch::CEAEvaluator< libMesh::Real > _antioch_cea_thermo
const AntiochMixture & _antioch_mixture
GRINS::AntiochKinetics::~AntiochKinetics ( )
inline

Definition at line 63 of file antioch_kinetics.h.

63 {};
GRINS::AntiochKinetics::AntiochKinetics ( )
private

Member Function Documentation

void GRINS::AntiochKinetics::omega_dot ( const libMesh::Real &  T,
const libMesh::Real  rho,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  omega_dot 
)

Definition at line 48 of file antioch_kinetics.C.

Referenced by main().

52  {
53  Antioch::TempCache<libMesh::Real> temp_cache(T);
54  this->omega_dot(temp_cache,rho,mass_fractions,omega_dot);
55  }
void omega_dot(const libMesh::Real &T, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot)
void GRINS::AntiochKinetics::omega_dot ( const Antioch::TempCache< libMesh::Real > &  temp_cache,
const libMesh::Real  rho,
const std::vector< libMesh::Real > &  mass_fractions,
std::vector< libMesh::Real > &  omega_dot 
)

Definition at line 57 of file antioch_kinetics.C.

References _antioch_cea_thermo, _antioch_kinetics, _antioch_mixture, GRINS::AntiochChemistry::molar_densities(), and GRINS::AntiochChemistry::n_species().

61  {
62  const unsigned int n_species = _antioch_mixture.n_species();
63 
64  libmesh_assert_equal_to( mass_fractions.size(), n_species );
65  libmesh_assert_equal_to( omega_dot.size(), n_species );
66 
67  std::vector<libMesh::Real> h_RT_minus_s_R(n_species, 0.0);
68  std::vector<libMesh::Real> molar_densities(n_species, 0.0);
69 
70  _antioch_cea_thermo.h_RT_minus_s_R( temp_cache, h_RT_minus_s_R );
71 
72  _antioch_mixture.molar_densities( rho, mass_fractions, molar_densities );
73 
74  _antioch_kinetics.compute_mass_sources( temp_cache.T,
75  molar_densities,
76  h_RT_minus_s_R,
77  omega_dot );
78  }
Antioch::KineticsEvaluator< libMesh::Real > _antioch_kinetics
unsigned int n_species() const
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].
Antioch::CEAEvaluator< libMesh::Real > _antioch_cea_thermo
void omega_dot(const libMesh::Real &T, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot)
const AntiochMixture & _antioch_mixture

Member Data Documentation

Antioch::CEAEvaluator<libMesh::Real> GRINS::AntiochKinetics::_antioch_cea_thermo
protected

Definition at line 81 of file antioch_kinetics.h.

Referenced by omega_dot().

Antioch::KineticsEvaluator<libMesh::Real> GRINS::AntiochKinetics::_antioch_kinetics
protected

Definition at line 79 of file antioch_kinetics.h.

Referenced by omega_dot().

const AntiochMixture& GRINS::AntiochKinetics::_antioch_mixture
protected

Definition at line 77 of file antioch_kinetics.h.

Referenced by omega_dot().


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

Generated on Thu Jun 2 2016 21:52:30 for GRINS-0.7.0 by  doxygen 1.8.10