25 #include "grins_config.h"
27 #ifdef GRINS_HAVE_CPPUNIT
29 #include <cppunit/extensions/HelperMacros.h>
30 #include <cppunit/TestCase.h>
32 #include "grins_test_paths.h"
49 unsigned int& N_idx,
unsigned int& O_idx,
51 std::vector<unsigned int>& active_species )
59 active_species.resize(5);
60 active_species[0] = N2_idx;
61 active_species[1] = O2_idx;
62 active_species[2] = NO_idx;
63 active_species[3] = N_idx;
64 active_species[4] = O_idx;
183 #ifdef GRINS_HAVE_ANTIOCH
202 std::string input_file = std::string(GRINS_TEST_SRCDIR)+
"/input_files/antioch.in";
213 std::vector<libMesh::Real> Y(5);
246 std::string input_file = std::string(GRINS_TEST_SRCDIR)+
"/input_files/antioch.in";
256 std::vector<libMesh::Real> Y(5);
273 #endif // GRINS_HAVE_ANTIOCH
276 #ifdef GRINS_HAVE_CANTERA
295 std::string input_file = std::string(GRINS_TEST_SRCDIR)+
"/input_files/cantera_chem_thermo.in";
306 std::vector<libMesh::Real> Y(5);
313 this->test_cp_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
319 this->test_h_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
339 std::string input_file = std::string(GRINS_TEST_SRCDIR)+
"/input_files/cantera_chem_thermo.in";
349 std::cout <<
"Running Cantera test_omega_dot()" << std::endl;
351 std::vector<libMesh::Real> Y(5);
360 this->test_omega_dot_common<GRINS::CanteraMixture,GRINS::CanteraEvaluator>
368 #endif // GRINS_HAVE_CANTERA
372 #endif // GRINS_HAVE_CPPUNIT
libMesh::UniquePtr< GRINS::CanteraMixture > _cantera_mixture
void init_antioch(const std::string &input_file, const std::string &material_name)
CPPUNIT_TEST_SUITE(CanteraAirNASA9KineticsTest)
Wrapper class for evaluating chemistry and thermo properties using Antioch.
CPPUNIT_TEST_SUITE_REGISTRATION(AntiochAirNASA9ThermoTest)
CPPUNIT_TEST_SUITE(AntiochAirNASA9KineticsTest)
CPPUNIT_TEST_SUITE(CanteraAirNASA9ThermoTest)
std::vector< std::vector< libMesh::Real > > _product_stoich_coeffs
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)
CPPUNIT_TEST(test_omega_dot)
std::vector< libMesh::Real > _temp_exp_coeffs
static libMesh::Real epsilon()
Convenience function.
CPPUNIT_TEST(test_omega_dot)
std::vector< libMesh::Real > _preexp_coeffs
std::vector< std::vector< libMesh::Real > > _three_body_coeffs
std::vector< std::vector< libMesh::Real > > _reactant_stoich_coeffs
std::vector< unsigned int > _active_species
CPPUNIT_TEST_SUITE(AntiochAirNASA9ThermoTest)
std::vector< bool > _is_three_body_rxn
void init_cantera(const std::string &input_file, const std::string &material_name)
libMesh::UniquePtr< GRINS::AntiochMixture< Antioch::CEACurveFit< libMesh::Real > > > _antioch_mixture
std::vector< libMesh::Real > _Ea_coeffs
unsigned int _n_reactions