GRINS-0.8.0
List of all members | Public Member Functions
GRINSTesting::AirKineticsTestBase Class Reference
Inheritance diagram for GRINSTesting::AirKineticsTestBase:
Inheritance graph
[legend]
Collaboration diagram for GRINSTesting::AirKineticsTestBase:
Collaboration graph
[legend]

Public Member Functions

void init_air_kinetics ()
 
- Public Member Functions inherited from GRINSTesting::KineticsTestBase
template<typename ThermoMixture , typename ThermoEvaluator >
void test_omega_dot_common (ThermoMixture &mixture, NASAThermoTestBase &thermo_funcs, const std::vector< libMesh::Real > &Y, libMesh::Real rel_tol)
 
- Public Member Functions inherited from GRINSTesting::SpeciesTestBase
 SpeciesTestBase ()
 
libMesh::Real molar_mass (unsigned int idx)
 
libMesh::Real R_species (unsigned int idx)
 
- Public Member Functions inherited from GRINSTesting::AirTestBase
void init_air_test (unsigned int &N2_idx, unsigned int &O2_idx, unsigned int &N_idx, unsigned int &O_idx, unsigned int &NO_idx, std::vector< unsigned int > &active_species)
 

Additional Inherited Members

- Protected Attributes inherited from GRINSTesting::KineticsTestBase
unsigned int _n_reactions
 
std::vector< libMesh::Real > _Ea_coeffs
 
std::vector< libMesh::Real > _preexp_coeffs
 
std::vector< libMesh::Real > _temp_exp_coeffs
 
std::vector< std::vector< libMesh::Real > > _three_body_coeffs
 
std::vector< bool > _is_three_body_rxn
 
std::vector< std::vector< libMesh::Real > > _reactant_stoich_coeffs
 
std::vector< std::vector< libMesh::Real > > _product_stoich_coeffs
 
- Protected Attributes inherited from GRINSTesting::SpeciesTestBase
unsigned int _N2_idx
 
unsigned int _O2_idx
 
unsigned int _O_idx
 
unsigned int _N_idx
 
unsigned int _NO_idx
 
std::vector< unsigned int > _active_species
 

Detailed Description

Definition at line 82 of file air_5sp.C.

Member Function Documentation

void GRINSTesting::AirKineticsTestBase::init_air_kinetics ( )
inline

Definition at line 87 of file air_5sp.C.

References GRINSTesting::SpeciesTestBase::_active_species, GRINSTesting::KineticsTestBase::_Ea_coeffs, GRINSTesting::KineticsTestBase::_is_three_body_rxn, GRINSTesting::SpeciesTestBase::_N2_idx, GRINSTesting::SpeciesTestBase::_N_idx, GRINSTesting::KineticsTestBase::_n_reactions, GRINSTesting::SpeciesTestBase::_NO_idx, GRINSTesting::SpeciesTestBase::_O2_idx, GRINSTesting::SpeciesTestBase::_O_idx, GRINSTesting::KineticsTestBase::_preexp_coeffs, GRINSTesting::KineticsTestBase::_product_stoich_coeffs, GRINSTesting::KineticsTestBase::_reactant_stoich_coeffs, GRINSTesting::KineticsTestBase::_temp_exp_coeffs, GRINSTesting::KineticsTestBase::_three_body_coeffs, and GRINSTesting::AirTestBase::init_air_test().

Referenced by GRINSTesting::AntiochAirNASA9KineticsTest::setUp(), and GRINSTesting::CanteraAirNASA9KineticsTest::setUp().

88  {
91 
92  _n_reactions = 5;
93 
94  unsigned int n_species = _active_species.size();
95 
96  // All in cal/mol
97  _Ea_coeffs.resize(_n_reactions);
98  _Ea_coeffs[0] = 224801.3;
99  _Ea_coeffs[1] = 117881.7;
100  _Ea_coeffs[2] = 149943.0;
101  _Ea_coeffs[3] = 85269.6;
102  _Ea_coeffs[4] = 38526.0;
103 
104  // Convert to J/kmol (since this is what GRINS::Constants::R_universal is in)
105  for( unsigned int r = 0; r < _n_reactions; r++ )
106  _Ea_coeffs[r] *= 1000.0*4.1868;
107 
108  // m^3/kmol
109  _preexp_coeffs.resize(_n_reactions);
110  _preexp_coeffs[0] = 7.e+18;
111  _preexp_coeffs[1] = 2.e+18;
112  _preexp_coeffs[2] = 5.e+12;
113  _preexp_coeffs[3] = 5.7e+9;
114  _preexp_coeffs[4] = 8.4e+09;
115 
116  _temp_exp_coeffs.resize(_n_reactions);
117  _temp_exp_coeffs[0] = -1.6;
118  _temp_exp_coeffs[1] = -1.5;
119  _temp_exp_coeffs[2] = 0.0;
120  _temp_exp_coeffs[3] = 0.42;
121  _temp_exp_coeffs[4] = 0.0;
122 
123  _three_body_coeffs.resize(_n_reactions);
124  _is_three_body_rxn.resize(_n_reactions,false);
125  _is_three_body_rxn[0] = true;
126  _three_body_coeffs[0].resize(n_species, 1.0);
127  _three_body_coeffs[0][_N_idx] = 4.2857;
128  _three_body_coeffs[0][_O_idx] = 4.2857;
129 
130  _is_three_body_rxn[1] = true;
131  _three_body_coeffs[1].resize(n_species, 1.0);
132  _three_body_coeffs[1][_N_idx] = 5.0;
133  _three_body_coeffs[1][_O_idx] = 5.0;
134 
135  _is_three_body_rxn[2] = true;
136  _three_body_coeffs[2].resize(n_species, 1.0);
137  _three_body_coeffs[2][_N_idx] = 22.0;
138  _three_body_coeffs[2][_O_idx] = 22.0;
139  _three_body_coeffs[2][_NO_idx] = 22.0;
140 
141  _reactant_stoich_coeffs.resize(_n_reactions);
142  _product_stoich_coeffs.resize(_n_reactions);
143 
144  // N_2 + M <=> 2N + M
145  _reactant_stoich_coeffs[0].resize(n_species, 0.0);
146  _product_stoich_coeffs[0].resize(n_species, 0.0);
148  _product_stoich_coeffs[0][_N_idx] = 2.0;
149 
150  // O_2 + M <=> 2O + M
151  _reactant_stoich_coeffs[1].resize(n_species, 0.0);
152  _product_stoich_coeffs[1].resize(n_species, 0.0);
154  _product_stoich_coeffs[1][_O_idx] = 2.0;
155 
156  // NO + M <=> N + O + M
157  _reactant_stoich_coeffs[2].resize(n_species, 0.0);
158  _product_stoich_coeffs[2].resize(n_species, 0.0);
160  _product_stoich_coeffs[2][_O_idx] = 1.0;
161  _product_stoich_coeffs[2][_N_idx] = 1.0;
162 
163  // N2 + 0 <=> NO + N
164  _reactant_stoich_coeffs[3].resize(n_species, 0.0);
165  _product_stoich_coeffs[3].resize(n_species, 0.0);
169  _product_stoich_coeffs[3][_N_idx] = 1.0;
170 
171  // NO + 0 <=> O2 + N
172  _reactant_stoich_coeffs[4].resize(n_species, 0.0);
173  _product_stoich_coeffs[4].resize(n_species, 0.0);
177  _product_stoich_coeffs[4][_N_idx] = 1.0;
178  }
std::vector< std::vector< libMesh::Real > > _product_stoich_coeffs
void init_air_test(unsigned int &N2_idx, unsigned int &O2_idx, unsigned int &N_idx, unsigned int &O_idx, unsigned int &NO_idx, std::vector< unsigned int > &active_species)
Definition: air_5sp.C:48
std::vector< libMesh::Real > _temp_exp_coeffs
std::vector< libMesh::Real > _preexp_coeffs
std::vector< std::vector< libMesh::Real > > _three_body_coeffs
std::vector< std::vector< libMesh::Real > > _reactant_stoich_coeffs
std::vector< unsigned int > _active_species
std::vector< bool > _is_three_body_rxn
std::vector< libMesh::Real > _Ea_coeffs

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

Generated on Tue Dec 19 2017 12:47:32 for GRINS-0.8.0 by  doxygen 1.8.9.1