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

Public Member Functions

 CPPUNIT_TEST_SUITE (CanteraAirNASA9ThermoTest)
 
 CPPUNIT_TEST (test_cp)
 
 CPPUNIT_TEST (test_hs)
 
 CPPUNIT_TEST_SUITE_END ()
 
void setUp ()
 
void test_cp ()
 
void test_hs ()
 
- Public Member Functions inherited from GRINSTesting::CanteraTestBase
void init_cantera (const std::string &input_file, const std::string &material_name)
 
- 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)
 
- Public Member Functions inherited from GRINSTesting::NASA9ThermoTestBase
 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)
 

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::CanteraTestBase
libMesh::UniquePtr< GRINS::CanteraMixture_cantera_mixture
 
- 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 278 of file air_5sp.C.

Member Function Documentation

GRINSTesting::CanteraAirNASA9ThermoTest::CPPUNIT_TEST ( test_cp  )
GRINSTesting::CanteraAirNASA9ThermoTest::CPPUNIT_TEST ( test_hs  )
GRINSTesting::CanteraAirNASA9ThermoTest::CPPUNIT_TEST_SUITE ( CanteraAirNASA9ThermoTest  )
GRINSTesting::CanteraAirNASA9ThermoTest::CPPUNIT_TEST_SUITE_END ( )
void GRINSTesting::CanteraAirNASA9ThermoTest::setUp ( )
inline

Definition at line 293 of file air_5sp.C.

References GRINSTesting::SpeciesTestBase::_active_species, GRINSTesting::SpeciesTestBase::_N2_idx, GRINSTesting::SpeciesTestBase::_N_idx, GRINSTesting::SpeciesTestBase::_NO_idx, GRINSTesting::SpeciesTestBase::_O2_idx, GRINSTesting::SpeciesTestBase::_O_idx, GRINSTesting::AirTestBase::init_air_test(), and GRINSTesting::CanteraTestBase::init_cantera().

294  {
295  std::string input_file = std::string(GRINS_TEST_SRCDIR)+"/input_files/cantera_chem_thermo.in";
296  this->init_cantera(input_file, "TestMaterial");
297 
299  _active_species );
300 
301  //this->check_indices(*_antioch_mixture);
302  }
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< unsigned int > _active_species
void init_cantera(const std::string &input_file, const std::string &material_name)
void GRINSTesting::CanteraAirNASA9ThermoTest::test_cp ( )
inline

Definition at line 304 of file air_5sp.C.

References GRINSTesting::CanteraTestBase::_cantera_mixture, GRINSTesting::SpeciesTestBase::_N2_idx, GRINSTesting::SpeciesTestBase::_N_idx, GRINSTesting::SpeciesTestBase::_NO_idx, GRINSTesting::SpeciesTestBase::_O2_idx, and GRINSTesting::SpeciesTestBase::_O_idx.

305  {
306  std::vector<libMesh::Real> Y(5);
307  Y[_N2_idx] = 0.15;
308  Y[_O2_idx] = 0.35;
309  Y[_NO_idx] = 0.25;
310  Y[_O_idx] = 0.2;
311  Y[_N_idx] = 0.05;
312 
313  this->test_cp_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
314  ( *_cantera_mixture, Y, 1.0e-4 );
315  }
libMesh::UniquePtr< GRINS::CanteraMixture > _cantera_mixture
void GRINSTesting::CanteraAirNASA9ThermoTest::test_hs ( )
inline

Definition at line 317 of file air_5sp.C.

References GRINSTesting::CanteraTestBase::_cantera_mixture.

318  {
319  this->test_h_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
320  ( *_cantera_mixture, 1.0e-4 );
321  }
libMesh::UniquePtr< GRINS::CanteraMixture > _cantera_mixture

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