GRINS-0.8.0
List of all members | Public Member Functions | Protected Attributes
GRINSTesting::SpeciesTestBase Class Reference

#include <species_test_base.h>

Inheritance diagram for GRINSTesting::SpeciesTestBase:
Inheritance graph
[legend]

Public Member Functions

 SpeciesTestBase ()
 
libMesh::Real molar_mass (unsigned int idx)
 
libMesh::Real R_species (unsigned int idx)
 

Protected Attributes

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 38 of file species_test_base.h.

Constructor & Destructor Documentation

GRINSTesting::SpeciesTestBase::SpeciesTestBase ( )
inline

Definition at line 42 of file species_test_base.h.

43  : _N2_idx(libMesh::invalid_uint),
44  _O2_idx(libMesh::invalid_uint),
45  _O_idx(libMesh::invalid_uint),
46  _N_idx(libMesh::invalid_uint),
47  _NO_idx(libMesh::invalid_uint)
48  {}

Member Function Documentation

libMesh::Real GRINSTesting::SpeciesTestBase::molar_mass ( unsigned int  idx)
inline

Definition at line 50 of file species_test_base.h.

References _N2_idx, _N_idx, _NO_idx, _O2_idx, and _O_idx.

Referenced by R_species(), and GRINSTesting::KineticsTestBase::test_omega_dot_common().

51  {
52  libMesh::Real value = 0.0;
53 
54  if(idx == _N2_idx)
55  value = 28.016;
56 
57  else if( idx == _O2_idx)
58  value = 32.0;
59 
60  else if( idx == _NO_idx)
61  value = 30.008;
62 
63  else if(idx == _O_idx)
64  value = 16.0;
65 
66  else if(idx == _N_idx)
67  value = 14.008;
68 
69  else
70  CPPUNIT_FAIL("Invalid idx for molar_mass");
71 
72  return value;
73  }
libMesh::Real GRINSTesting::SpeciesTestBase::R_species ( unsigned int  idx)
inline

Member Data Documentation

std::vector<unsigned int> GRINSTesting::SpeciesTestBase::_active_species
protected
unsigned int GRINSTesting::SpeciesTestBase::_N2_idx
protected
unsigned int GRINSTesting::SpeciesTestBase::_N_idx
protected
unsigned int GRINSTesting::SpeciesTestBase::_NO_idx
protected
unsigned int GRINSTesting::SpeciesTestBase::_O2_idx
protected
unsigned int GRINSTesting::SpeciesTestBase::_O_idx
protected

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