30 #include "libmesh/const_function.h"
34 libMesh::UniquePtr<libMesh::FunctionBase<libMesh::Number> >
37 std::vector<std::string>& var_names,
38 const std::string& section )
41 libmesh_assert_equal_to(var_names.size(), 1 );
43 std::string bc_id_string = StringUtilities::T_to_string<BoundaryID>( *(
_bc_ids->begin()) );
45 std::string input_var = section+
"/T_wall_"+bc_id_string;
47 if( !input.have_variable(input_var) )
48 libmesh_error_msg(
"ERROR: Could not find input variable "+input_var+
"!");
50 libMesh::Number value = input(input_var, 0.0);
52 return libMesh::UniquePtr<libMesh::FunctionBase<libMesh::Number> >(
new libMesh::ConstFunction<libMesh::Number>(value) );
static const std::set< BoundaryID > * _bc_ids
BoundaryID for constructing a particular boundary condition.
IsothermalDirichletOldStyleBCFactory grins_factory_isothermal_wall_old_style("isothermal_wall_old_style")
virtual libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > build_func(const GetPot &input, MultiphysicsSystem &system, std::vector< std::string > &var_names, const std::string §ion)
Builds the FunctionBase object for boundary condition.
Interface with libMesh for solving Multiphysics problems.
IsothermalDirichletOldStyleBCFactory grins_factory_isothermal_old_style("isothermal_old_style")