GRINS-0.8.0
List of all members | Public Member Functions | Private Member Functions
GRINSTesting::NASA9ThermoTestBase Class Reference

#include <nasa_thermo_test_base.h>

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

Public Member Functions

 NASA9ThermoTestBase ()
 
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 282 of file nasa_thermo_test_base.h.

Constructor & Destructor Documentation

GRINSTesting::NASA9ThermoTestBase::NASA9ThermoTestBase ( )
inline

Member Function Documentation

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

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 295 of file nasa_thermo_test_base.h.

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

296  {
297  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
299  coeffs[0],
300  coeffs[1],
301  coeffs[2],
302  coeffs[3],
303  coeffs[4],
304  coeffs[5],
305  coeffs[6])*this->R_species(species_idx);
306  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa9_cp_R_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4, libMesh::Real a5, libMesh::Real a6)
libMesh::Real R_species(unsigned int idx)
virtual libMesh::Real GRINSTesting::NASA9ThermoTestBase::h_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 308 of file nasa_thermo_test_base.h.

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

309  {
310  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
312  coeffs[0],
313  coeffs[1],
314  coeffs[2],
315  coeffs[3],
316  coeffs[4],
317  coeffs[5],
318  coeffs[6],
319  coeffs[7])*this->R_species(species_idx)*T;
320  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa9_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 a6, libMesh::Real a7)
libMesh::Real R_species(unsigned int idx)
virtual libMesh::Real GRINSTesting::NASA9ThermoTestBase::h_RT_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 336 of file nasa_thermo_test_base.h.

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

337  {
338  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
340  coeffs[0],
341  coeffs[1],
342  coeffs[2],
343  coeffs[3],
344  coeffs[4],
345  coeffs[5],
346  coeffs[6],
347  coeffs[7]);
348  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa9_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 a6, libMesh::Real a7)
void GRINSTesting::NASA9ThermoTestBase::init_N2_coeffs ( )
inlineprivate

Definition at line 352 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_N2_200_1000_coeffs.

Referenced by NASA9ThermoTestBase().

353  {
354  _N2_200_1000_coeffs.resize(9);
355 
356  _N2_200_1000_coeffs[0] = 2.21037122e+04;
357  _N2_200_1000_coeffs[1] = -3.81846145e+02;
358  _N2_200_1000_coeffs[2] = 6.08273815e+00;
359  _N2_200_1000_coeffs[3] = -8.53091381e-03;
360  _N2_200_1000_coeffs[4] = 1.38464610e-05;
361  _N2_200_1000_coeffs[5] = -9.62579293e-09;
362  _N2_200_1000_coeffs[6] = 2.51970560e-12;
363  _N2_200_1000_coeffs[7] = 7.10845911e+02;
364  _N2_200_1000_coeffs[8] = -1.07600320e+01;
365  }
std::vector< libMesh::Real > _N2_200_1000_coeffs
void GRINSTesting::NASA9ThermoTestBase::init_N_coeffs ( )
inlineprivate

Definition at line 412 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_N_200_1000_coeffs.

Referenced by NASA9ThermoTestBase().

413  {
414  _N_200_1000_coeffs.resize(9);
415 
416  _N_200_1000_coeffs[0] = 0.0;
417  _N_200_1000_coeffs[1] = 0.0;
418  _N_200_1000_coeffs[2] = 2.5;
419  _N_200_1000_coeffs[3] = 0.0;
420  _N_200_1000_coeffs[4] = 0.0;
421  _N_200_1000_coeffs[5] = 0.0;
422  _N_200_1000_coeffs[6] = 0.0;
423  _N_200_1000_coeffs[7] = 5.61046378e+04;
424  _N_200_1000_coeffs[8] = 4.19390932e+00;
425  }
std::vector< libMesh::Real > _N_200_1000_coeffs
void GRINSTesting::NASA9ThermoTestBase::init_NO_coeffs ( )
inlineprivate

Definition at line 397 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_NO_200_1000_coeffs.

Referenced by NASA9ThermoTestBase().

398  {
399  _NO_200_1000_coeffs.resize(9);
400 
401  _NO_200_1000_coeffs[0] = -1.14391658e+04;
402  _NO_200_1000_coeffs[1] = 1.53646774e+02;
403  _NO_200_1000_coeffs[2] = 3.43146865e+00;
404  _NO_200_1000_coeffs[3] = -2.66859213e-03;
405  _NO_200_1000_coeffs[4] = 8.48139877e-06;
406  _NO_200_1000_coeffs[5] = -7.68511079e-09;
407  _NO_200_1000_coeffs[6] = 2.38679758e-12;
408  _NO_200_1000_coeffs[7] = 9.09794974e+03;
409  _NO_200_1000_coeffs[8] = 6.72872795e+00;
410  }
std::vector< libMesh::Real > _NO_200_1000_coeffs
void GRINSTesting::NASA9ThermoTestBase::init_O2_coeffs ( )
inlineprivate

Definition at line 367 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_O2_200_1000_coeffs.

Referenced by NASA9ThermoTestBase().

368  {
369  _O2_200_1000_coeffs.resize(9);
370 
371  _O2_200_1000_coeffs[0] = -3.42556269e+04;
372  _O2_200_1000_coeffs[1] = 4.84699986e+02;
373  _O2_200_1000_coeffs[2] = 1.11901159e+00;
374  _O2_200_1000_coeffs[3] = 4.29388743e-03;
375  _O2_200_1000_coeffs[4] = -6.83627313e-07;
376  _O2_200_1000_coeffs[5] = -2.02337478e-09;
377  _O2_200_1000_coeffs[6] = 1.03904064e-12;
378  _O2_200_1000_coeffs[7] = -3.39145434e+03;
379  _O2_200_1000_coeffs[8] = 1.84969912e+01;
380  }
std::vector< libMesh::Real > _O2_200_1000_coeffs
void GRINSTesting::NASA9ThermoTestBase::init_O_coeffs ( )
inlineprivate

Definition at line 382 of file nasa_thermo_test_base.h.

References GRINSTesting::NASAThermoTestBase::_O_200_1000_coeffs.

Referenced by NASA9ThermoTestBase().

383  {
384  _O_200_1000_coeffs.resize(9);
385 
386  _O_200_1000_coeffs[0] = -7.95361130e+03;
387  _O_200_1000_coeffs[1] = 1.60717779e+02;
388  _O_200_1000_coeffs[2] = 1.96622644e+00;
389  _O_200_1000_coeffs[3] = 1.01367031e-03;
390  _O_200_1000_coeffs[4] = -1.11041542e-06;
391  _O_200_1000_coeffs[5] = 6.51750750e-10;
392  _O_200_1000_coeffs[6] = -1.58477925e-13;
393  _O_200_1000_coeffs[7] = 2.84036244e+04;
394  _O_200_1000_coeffs[8] = 8.40424182e+00;
395  }
std::vector< libMesh::Real > _O_200_1000_coeffs
virtual libMesh::Real GRINSTesting::NASA9ThermoTestBase::s_R_exact ( unsigned int  species_idx,
libMesh::Real  T 
)
inlinevirtual

Implements GRINSTesting::NASAThermoTestBase.

Definition at line 322 of file nasa_thermo_test_base.h.

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

323  {
324  const std::vector<libMesh::Real> coeffs = this->nasa_coeffs(species_idx);
326  coeffs[0],
327  coeffs[1],
328  coeffs[2],
329  coeffs[3],
330  coeffs[4],
331  coeffs[5],
332  coeffs[6],
333  coeffs[8]);
334  }
const std::vector< libMesh::Real > & nasa_coeffs(unsigned int idx)
static libMesh::Real nasa9_s_R_exact(libMesh::Real T, libMesh::Real a0, libMesh::Real a1, libMesh::Real a2, libMesh::Real a3, libMesh::Real a4, libMesh::Real a5, libMesh::Real a6, libMesh::Real a8)

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