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

Public Member Functions

 CPPUNIT_TEST_SUITE (AntiochAirNASA9ThermoTest)
 
 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::AntiochTestBase
void init_antioch (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::AntiochTestBase
libMesh::UniquePtr< GRINS::AntiochMixture_antioch_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 185 of file air_5sp.C.

Member Function Documentation

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

Definition at line 200 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::AntiochTestBase::init_antioch().

201  {
202  std::string input_file = std::string(GRINS_TEST_SRCDIR)+"/input_files/antioch.in";
203  this->init_antioch(input_file, "TestMaterial");
204 
206  _active_species );
207 
208  //this->check_indices(*_antioch_mixture);
209  }
void init_antioch(const std::string &input_file, const std::string &material_name)
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 GRINSTesting::AntiochAirNASA9ThermoTest::test_cp ( )
inline

Definition at line 211 of file air_5sp.C.

References GRINSTesting::AntiochTestBase::_antioch_mixture, GRINSTesting::SpeciesTestBase::_N2_idx, GRINSTesting::SpeciesTestBase::_N_idx, GRINSTesting::SpeciesTestBase::_NO_idx, GRINSTesting::SpeciesTestBase::_O2_idx, GRINSTesting::SpeciesTestBase::_O_idx, and GRINSTesting::TestingUtils::epsilon().

212  {
213  std::vector<libMesh::Real> Y(5);
214  Y[_N2_idx] = 0.15;
215  Y[_O2_idx] = 0.35;
216  Y[_NO_idx] = 0.25;
217  Y[_O_idx] = 0.2;
218  Y[_N_idx] = 0.05;
219 
220  this->test_cp_common<GRINS::AntiochMixture,GRINS::AntiochEvaluator<Antioch::CEAEvaluator<libMesh::Real> > >
222  }
static libMesh::Real epsilon()
Convenience function.
Definition: testing_utils.h:50
libMesh::UniquePtr< GRINS::AntiochMixture > _antioch_mixture
void GRINSTesting::AntiochAirNASA9ThermoTest::test_hs ( )
inline

Definition at line 224 of file air_5sp.C.

References GRINSTesting::AntiochTestBase::_antioch_mixture, and GRINSTesting::TestingUtils::epsilon().

225  {
226  this->test_h_common<GRINS::AntiochMixture,GRINS::AntiochEvaluator<Antioch::CEAEvaluator<libMesh::Real> > >
228  }
static libMesh::Real epsilon()
Convenience function.
Definition: testing_utils.h:50
libMesh::UniquePtr< GRINS::AntiochMixture > _antioch_mixture

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