GRINS-0.7.0
List of all members | Public Member Functions | Private Member Functions
GRINSTesting::NASA7ThermoTestBase Class Reference

#include <nasa_thermo_test_base.h>

Inheritance diagram for GRINSTesting::NASA7ThermoTestBase:
Inheritance graph
[legend]
Collaboration diagram for GRINSTesting::NASA7ThermoTestBase:
Collaboration graph
[legend]

Public Member Functions

 NASA7ThermoTestBase ()
 
virtual libMesh::Real cp_exact (unsigned int species_idx, libMesh::Real T)
 
virtual libMesh::Real h_exact (unsigned int species_idx, libMesh::Real T)
 
virtual libMesh::Real s_R_exact (unsigned int species_idx, libMesh::Real T)
 
virtual libMesh::Real h_RT_exact (unsigned int species_idx, libMesh::Real T)
 
- Public Member Functions inherited from GRINSTesting::NASAThermoTestBase
template<typename ThermoMixture , typename ThermoEvaluator >
void test_cp_common (ThermoMixture &mixture, const std::vector< libMesh::Real > &Y, libMesh::Real rel_tol)
 
template<typename ThermoMixture , typename ThermoEvaluator >
void test_h_common (ThermoMixture &mixture, 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)
 

Private Member Functions

void init_N2_coeffs ()
 
void init_O2_coeffs ()
 
void init_O_coeffs ()
 
void init_NO_coeffs ()
 
void init_N_coeffs ()
 

Additional Inherited Members

- Protected Member Functions inherited from GRINSTesting::NASAThermoTestBase
const std::vector< libMesh::Real > & nasa_coeffs (unsigned int idx)
 
- Protected Attributes inherited from GRINSTesting::NASAThermoTestBase
std::vector< libMesh::Real > _N2_200_1000_coeffs
 
std::vector< libMesh::Real > _O2_200_1000_coeffs
 
std::vector< libMesh::Real > _O_200_1000_coeffs
 
std::vector< libMesh::Real > _NO_200_1000_coeffs
 
std::vector< libMesh::Real > _N_200_1000_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 153 of file nasa_thermo_test_base.h.

Constructor & Destructor Documentation

GRINSTesting::NASA7ThermoTestBase::NASA7ThermoTestBase ( )
inline

Member Function Documentation

virtual libMesh::Real GRINSTesting::NASA7ThermoTestBase::cp_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 166 of file nasa_thermo_test_base.h.

References GRINSTesting::ThermochemTestCommon::nasa7_cp_R_exact(), GRINSTesting::NASAThermoTestBase::nasa_coeffs(), and GRINSTesting::SpeciesTestBase::R_species().

167  {
168  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
170  coeffs[0],
171  coeffs[1],
172  coeffs[2],
173  coeffs[3],
174  coeffs[4])*this->R_species(species_idx);
175  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa7_cp_R_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4)
libMesh::Real R_species(unsigned int idx)
virtual libMesh::Real GRINSTesting::NASA7ThermoTestBase::h_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 177 of file nasa_thermo_test_base.h.

References GRINSTesting::ThermochemTestCommon::nasa7_h_RT_exact(), GRINSTesting::NASAThermoTestBase::nasa_coeffs(), and GRINSTesting::SpeciesTestBase::R_species().

178  {
179  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
181  coeffs[0],
182  coeffs[1],
183  coeffs[2],
184  coeffs[3],
185  coeffs[4],
186  coeffs[5])*this->R_species(species_idx)*T;
187  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa7_h_RT_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4, libMesh::Real a5)
libMesh::Real R_species(unsigned int idx)
virtual libMesh::Real GRINSTesting::NASA7ThermoTestBase::h_RT_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 201 of file nasa_thermo_test_base.h.

References GRINSTesting::ThermochemTestCommon::nasa7_h_RT_exact(), and GRINSTesting::NASAThermoTestBase::nasa_coeffs().

202  {
203  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
205  coeffs[0],
206  coeffs[1],
207  coeffs[2],
208  coeffs[3],
209  coeffs[4],
210  coeffs[5]);
211  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa7_h_RT_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4, libMesh::Real a5)
void GRINSTesting::NASA7ThermoTestBase::init_N2_coeffs ( )
inlineprivate

Definition at line 215 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_N2_200_1000_coeffs.

Referenced by NASA7ThermoTestBase().

216  {
217  _N2_200_1000_coeffs.resize(7);
218 
219  _N2_200_1000_coeffs[0] = 3.53100528E+00;
220  _N2_200_1000_coeffs[1] = -1.23660987E-04;
221  _N2_200_1000_coeffs[2] = -5.02999437E-07;
222  _N2_200_1000_coeffs[3] = 2.43530612E-09;
223  _N2_200_1000_coeffs[4] = -1.40881235E-12;
224  _N2_200_1000_coeffs[5] = -1.04697628E+03;
225  _N2_200_1000_coeffs[6] = 2.96747468E+00;
226  }
std::vector< libMesh::Real > _N2_200_1000_coeffs
void GRINSTesting::NASA7ThermoTestBase::init_N_coeffs ( )
inlineprivate

Definition at line 267 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_N_200_1000_coeffs.

Referenced by NASA7ThermoTestBase().

268  {
269  _N_200_1000_coeffs.resize(7);
270 
271  _N_200_1000_coeffs[0] = 2.50000000E+00;
272  _N_200_1000_coeffs[1] = 0.0;
273  _N_200_1000_coeffs[2] = 0.0;
274  _N_200_1000_coeffs[3] = 0.0;
275  _N_200_1000_coeffs[4] = 0.0;
276  _N_200_1000_coeffs[5] = 5.61046378E+04;
277  _N_200_1000_coeffs[6] = 4.19390932E+00;
278  }
std::vector< libMesh::Real > _N_200_1000_coeffs
void GRINSTesting::NASA7ThermoTestBase::init_NO_coeffs ( )
inlineprivate

Definition at line 254 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_NO_200_1000_coeffs.

Referenced by NASA7ThermoTestBase().

255  {
256  _NO_200_1000_coeffs.resize(7);
257 
258  _NO_200_1000_coeffs[0] = 4.21859896E+00;
259  _NO_200_1000_coeffs[1] = -4.63988124E-03;
260  _NO_200_1000_coeffs[2] = 1.10443049E-05;
261  _NO_200_1000_coeffs[3] = -9.34055507E-09;
262  _NO_200_1000_coeffs[4] = 2.80554874E-12;
263  _NO_200_1000_coeffs[5] = 9.84509964E+03;
264  _NO_200_1000_coeffs[6] = 2.28061001E+00;
265  }
std::vector< libMesh::Real > _NO_200_1000_coeffs
void GRINSTesting::NASA7ThermoTestBase::init_O2_coeffs ( )
inlineprivate

Definition at line 228 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_O2_200_1000_coeffs.

Referenced by NASA7ThermoTestBase().

229  {
230  _O2_200_1000_coeffs.resize(7);
231 
232  _O2_200_1000_coeffs[0] = 3.78245636E+00;
233  _O2_200_1000_coeffs[1] = -2.99673415E-03;
234  _O2_200_1000_coeffs[2] = 9.84730200E-06;
235  _O2_200_1000_coeffs[3] = -9.68129508E-09;
236  _O2_200_1000_coeffs[4] = 3.24372836E-12;
237  _O2_200_1000_coeffs[5] = -1.06394356E+03;
238  _O2_200_1000_coeffs[6] = 3.65767573E+00;
239  }
std::vector< libMesh::Real > _O2_200_1000_coeffs
void GRINSTesting::NASA7ThermoTestBase::init_O_coeffs ( )
inlineprivate

Definition at line 241 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_O_200_1000_coeffs.

Referenced by NASA7ThermoTestBase().

242  {
243  _O_200_1000_coeffs.resize(7);
244 
245  _O_200_1000_coeffs[0] = 3.16826710E+00;
246  _O_200_1000_coeffs[1] = -3.27931884E-03;
247  _O_200_1000_coeffs[2] = 6.64306396E-06;
248  _O_200_1000_coeffs[3] = -6.12806624E-09;
249  _O_200_1000_coeffs[4] = 2.11265971E-12;
250  _O_200_1000_coeffs[5] = 2.91222592E+04;
251  _O_200_1000_coeffs[6] = 2.05193346E+00;
252  }
std::vector< libMesh::Real > _O_200_1000_coeffs
virtual libMesh::Real GRINSTesting::NASA7ThermoTestBase::s_R_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 189 of file nasa_thermo_test_base.h.

References GRINSTesting::ThermochemTestCommon::nasa7_s_R_exact(), and GRINSTesting::NASAThermoTestBase::nasa_coeffs().

190  {
191  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
193  coeffs[0],
194  coeffs[1],
195  coeffs[2],
196  coeffs[3],
197  coeffs[4],
198  coeffs[6]);
199  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa7_s_R_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4, libMesh::Real a6)

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

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