25 #ifndef GRINS_CATALYCITY_FACTORIES_OLD_STYLE_H
26 #define GRINS_CATALYCITY_FACTORIES_OLD_STYLE_H
52 const std::string& section,
53 const std::string& reactant_str,
54 const std::string& bc_id_string )
56 std::string gamma_str = section+
"/gamma_"+reactant_str+
"_"+bc_id_string;
57 if( !input.have_variable(gamma_str) )
58 libmesh_error_msg(
"ERROR: Could not find input "+gamma_str+
" for ConstantCatalycity!\n");
60 libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
78 const std::string& section,
79 const std::string& reactant_str,
80 const std::string& bc_id_string )
82 std::string gamma_str = section+
"/gamma0_"+reactant_str+
"_"+bc_id_string;
83 if( !input.have_variable(gamma_str) )
84 libmesh_error_msg(
"ERROR: Could not find input "+gamma_str+
" for ArrheniusCatalycity!\n");
86 std::string Ta_str = section+
"/Ta_"+reactant_str+
"_"+bc_id_string;
87 if( !input.have_variable(Ta_str) )
88 libmesh_error_msg(
"ERROR: Could not find input "+Ta_str+
" for ArrheniusCatalycity!\n");
90 libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
91 libMesh::Real Ta = input(Ta_str, std::numeric_limits<libMesh::Real>::max());
110 const std::string& section,
111 const std::string& reactant_str,
112 const std::string& bc_id_string )
114 std::string gamma_str = section+
"/gamma0_"+reactant_str+
"_"+bc_id_string;
115 if( !input.have_variable(gamma_str) )
116 libmesh_error_msg(
"ERROR: Could not find input "+gamma_str+
" for PowerLawCatalycity!\n");
118 std::string Tref_str = section+
"/Tref_"+reactant_str+
"_"+bc_id_string;
119 if( !input.have_variable(Tref_str) )
120 libmesh_error_msg(
"ERROR: Could not find input "+Tref_str+
" for PowerLawCatalycity!\n");
122 std::string alpha_str = section+
"/alpha_"+reactant_str+
"_"+bc_id_string;
123 if( !input.have_variable(alpha_str) )
124 libmesh_error_msg(
"ERROR: Could not find input "+alpha_str+
" for PowerLawCatalycity!\n");
126 libMesh::Real gamma = input(gamma_str, std::numeric_limits<libMesh::Real>::max());
127 libMesh::Real Tref = input(Tref_str, std::numeric_limits<libMesh::Real>::max());
128 libMesh::Real alpha = input(alpha_str, std::numeric_limits<libMesh::Real>::max());
130 return libMesh::UniquePtr<CatalycityBase>(
new PowerLawCatalycity( gamma, Tref, alpha ) );
136 #endif // GRINS_CATALYCITY_FACTORIES_OLD_STYLE_H
virtual libMesh::UniquePtr< CatalycityBase > build_catalycity_old_style(const GetPot &input, const std::string §ion, const std::string &reactant_str, const std::string &bc_id_string)
~PowerLawCatalycityFactoryOldStyle()
ConstantCatalycityFactoryOldStyle(const std::string &physics_name)
~ArrheniusCatalycityFactoryOldStyle()
virtual libMesh::UniquePtr< CatalycityBase > build_catalycity_old_style(const GetPot &input, const std::string §ion, const std::string &reactant_str, const std::string &bc_id_string)
PowerLawCatalycityFactoryOldStyle(const std::string &physics_name)
virtual libMesh::UniquePtr< CatalycityBase > build_catalycity_old_style(const GetPot &input, const std::string §ion, const std::string &reactant_str, const std::string &bc_id_string)
~ConstantCatalycityFactoryOldStyle()
ArrheniusCatalycityFactoryOldStyle(const std::string &physics_name)