38 #include "libmesh/getpot.h"
42 template<
typename ImpType>
43 SharedPtr<NeumannBCAbstract>
46 const std::string& material,
47 const std::string& reaction,
48 SharedPtr<CatalycityBase>& gamma_ptr,
50 std::string& thermochem_lib )
53 std::vector<VariableIndex> species_vars;
54 this->extract_species_vars( fe_var, species_vars );
56 libmesh_assert_equal_to( fe_var.
active_var_names().size(), species_vars.size() );
61 return _wall_impl.build_catalytic_wall(input,reaction,gamma_ptr,species_vars,
62 material,T_var,p0,thermochem_lib);
65 template<
typename ImpType>
72 template<
typename ImpType>
74 std::string& material )
const
77 libMesh::cast_ref<const SpeciesMassFractionsVariable&>(fe_var);
79 material = species_fe_var.
material();
82 template<
typename ImpType>
90 libMesh::cast_ref<const PrimitiveTempFEVariables&>(temp_fe_var_base);
92 std::vector<VariableIndex> temp_var = temp_fe_var.
var_indices();
94 libmesh_assert_equal_to( temp_var.size(), 1 );
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
VariableIndex extract_temp_var() const
void extract_species_vars(const FEVariablesBase &fe_var, std::vector< VariableIndex > &species_vars) const
static std::string temperature_section()
void extract_material(const FEVariablesBase &fe_var, std::string &material) const
static FEVariablesBase & get_variable(const std::string &var_name)
const std::vector< std::string > & active_var_names() const
Return the var names that are active from this class.
SharedPtr< NeumannBCAbstract > build_catalytic_wall_common(const GetPot &input, const FEVariablesBase &fe_var, const std::string &material, const std::string &reaction, SharedPtr< CatalycityBase > &gamma_ptr, libMesh::Real p0, std::string &thermochem_lib)
const std::string & material() const
const std::vector< VariableIndex > & var_indices() const