25 #include "grins_config.h"
27 #ifdef GRINS_HAVE_ANTIOCH
36 #include "antioch/default_filename.h"
37 #include "antioch/read_reaction_set_data.h"
41 libMesh::UniquePtr<Antioch::ChemicalMixture<libMesh::Real> >
44 std::vector<std::string> species_list;
47 bool verbose_antioch_read = input(
"Materials/"+material+
"/GasMixture/Antioch/verbose_read",
false);
49 std::string species_data_filename = input(
"Materials/"+material+
"/GasMixture/Antioch/species_data",
"default" );
50 if( species_data_filename == std::string(
"default") )
51 species_data_filename = Antioch::DefaultInstallFilename::chemical_mixture();
53 std::string vibration_data_filename = input(
"Materials/"+material+
"/GasMixture/Antioch/vibration_data",
"default" );
54 if( vibration_data_filename == std::string(
"default") )
55 vibration_data_filename = Antioch::DefaultInstallFilename::vibrational_data();
57 std::string electronic_data_filename = input(
"Materials/"+material+
"/GasMixture/Antioch/electronic_data",
"default" );
58 if( electronic_data_filename == std::string(
"default") )
59 electronic_data_filename = Antioch::DefaultInstallFilename::electronic_data();
62 return libMesh::UniquePtr<Antioch::ChemicalMixture<libMesh::Real> >
63 (
new Antioch::ChemicalMixture<libMesh::Real>( species_list,
65 species_data_filename,
66 vibration_data_filename,
67 electronic_data_filename ) );
70 libMesh::UniquePtr<Antioch::ReactionSet<libMesh::Real> >
72 const Antioch::ChemicalMixture<libMesh::Real> & chem_mix )
74 libMesh::UniquePtr<Antioch::ReactionSet<libMesh::Real> >
75 reaction_set(
new Antioch::ReactionSet<libMesh::Real>(chem_mix) );
79 bool verbose_read = input(
"screen-options/verbose_kinetics_read",
false );
81 Antioch::read_reaction_set_data_xml<libMesh::Real>( kinetics_data_filename, verbose_read, *reaction_set );
88 #endif // GRINS_HAVE_ANTIOCH
libMesh::UniquePtr< Antioch::ReactionSet< libMesh::Real > > build_reaction_set(const GetPot &input, const std::string &material, const Antioch::ChemicalMixture< libMesh::Real > &chem_mix)
static void parse_chemical_species(const GetPot &input, const std::string &material, std::vector< std::string > &species_names)
Helper function for parsing the chemical species.
static std::string parse_chemical_kinetics_datafile_name(const GetPot &input, const std::string &material)
libMesh::UniquePtr< Antioch::ChemicalMixture< libMesh::Real > > build_chem_mix(const GetPot &input, const std::string &material)