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

Public Member Functions

 CPPUNIT_TEST_SUITE (CanteraAirNASA9KineticsTest)
 
 CPPUNIT_TEST (test_omega_dot)
 
 CPPUNIT_TEST_SUITE_END ()
 
void setUp ()
 
void test_omega_dot ()
 
- 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::AirKineticsTestBase
void init_air_kinetics ()
 
- Public Member Functions inherited from GRINSTesting::KineticsTestBase
template<typename ThermoMixture , typename ThermoEvaluator >
void test_omega_dot_common (ThermoMixture &mixture, NASAThermoTestBase &thermo_funcs, const std::vector< libMesh::Real > &Y, 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)
 
- 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)
 

Additional Inherited Members

- Protected Attributes inherited from GRINSTesting::CanteraTestBase
libMesh::UniquePtr< GRINS::CanteraMixture_cantera_mixture
 
- Protected Attributes inherited from GRINSTesting::KineticsTestBase
unsigned int _n_reactions
 
std::vector< libMesh::Real > _Ea_coeffs
 
std::vector< libMesh::Real > _preexp_coeffs
 
std::vector< libMesh::Real > _temp_exp_coeffs
 
std::vector< std::vector< libMesh::Real > > _three_body_coeffs
 
std::vector< bool > _is_three_body_rxn
 
std::vector< std::vector< libMesh::Real > > _reactant_stoich_coeffs
 
std::vector< std::vector< libMesh::Real > > _product_stoich_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 324 of file air_5sp.C.

Member Function Documentation

GRINSTesting::CanteraAirNASA9KineticsTest::CPPUNIT_TEST ( test_omega_dot  )
GRINSTesting::CanteraAirNASA9KineticsTest::CPPUNIT_TEST_SUITE ( CanteraAirNASA9KineticsTest  )
GRINSTesting::CanteraAirNASA9KineticsTest::CPPUNIT_TEST_SUITE_END ( )
void GRINSTesting::CanteraAirNASA9KineticsTest::setUp ( )
inline

Definition at line 337 of file air_5sp.C.

References GRINSTesting::AirKineticsTestBase::init_air_kinetics(), and GRINSTesting::CanteraTestBase::init_cantera().

338  {
339  std::string input_file = std::string(GRINS_TEST_SRCDIR)+"/input_files/cantera_chem_thermo.in";
340  this->init_cantera(input_file, "TestMaterial");
341 
342  this->init_air_kinetics();
343 
344  //this->check_indices(*_antioch_mixture);
345  }
void init_cantera(const std::string &input_file, const std::string &material_name)
void GRINSTesting::CanteraAirNASA9KineticsTest::test_omega_dot ( )
inline

Definition at line 347 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.

348  {
349  std::cout << "Running Cantera test_omega_dot()" << std::endl;
350 
351  std::vector<libMesh::Real> Y(5);
352  Y[_N2_idx] = 0.15;
353  Y[_O2_idx] = 0.35;
354  Y[_NO_idx] = 0.25;
355  Y[_O_idx] = 0.2;
356  Y[_N_idx] = 0.05;
357 
358  AirNASA9Thermo thermo;
359 
360  this->test_omega_dot_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
361  ( *_cantera_mixture, thermo, Y, 3.0e-1 );
362  }
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