36 #include "libmesh/dof_map.h"
37 #include "libmesh/periodic_boundary.h"
43 std::vector<SharedPtr<NeumannBCContainer> >& neumann_bcs )
45 libMesh::UniquePtr<BCBuilder>
48 bc_builder->build_bcs(input,system,neumann_bcs);
55 libMesh::UniquePtr<BCBuilder> bc_builder;
68 bool new_style =
false;
78 const std::set<BoundaryID>& bc_ids,
80 const std::string& section,
81 const std::string& bc_type,
82 libMesh::DofMap& dof_map )
100 libMesh::UniquePtr<libMesh::DirichletBoundary>
103 dof_map.add_dirichlet_boundary( *dbc );
108 const std::set<BoundaryID>& bc_ids,
110 const std::string& section,
111 const std::string& bc_type,
112 std::vector<SharedPtr<NeumannBCContainer> >& neumann_bcs )
130 libMesh::UniquePtr<NeumannBCContainer>
136 neumann_bcs.push_back(nbc.release());
152 libMesh::boundary_id_type slave_id,
153 const libMesh::RealVectorValue& offset_vector,
154 libMesh::DofMap& dof_map )
156 libMesh::PeriodicBoundary bc( offset_vector );
157 bc.myboundary = master_id;
158 bc.pairedboundary = slave_id;
160 dof_map.add_periodic_boundary( bc );
static void set_fe_var(const FEVariablesBase &fe_var)
Active variable for the current boundary condition.
void construct_dbc_core(const GetPot &input, MultiphysicsSystem &system, const std::set< BoundaryID > &bc_ids, const FEVariablesBase &fe_var, const std::string §ion, const std::string &bc_type, libMesh::DofMap &dof_map)
void construct_nbc_core(const GetPot &input, MultiphysicsSystem &system, const std::set< BoundaryID > &bc_ids, const FEVariablesBase &fe_var, const std::string §ion, const std::string &bc_type, std::vector< SharedPtr< NeumannBCContainer > > &neumann_bcs)
static void build_boundary_conditions(const GetPot &input, MultiphysicsSystem &system, std::vector< SharedPtr< NeumannBCContainer > > &neumann_bcs)
bool is_dirichlet_bc_type(const std::string &bc_type)
void add_periodic_bc_to_dofmap(libMesh::boundary_id_type master_id, libMesh::boundary_id_type slave_id, const libMesh::RealVectorValue &offset_vector, libMesh::DofMap &dof_map)
static void set_getpot(const GetPot &input)
static void set_section(const std::string §ion)
Sets the current section of the input file.
static void set_system(MultiphysicsSystem &system)
Manages runtime construction of Dirichlet boundary conditions.
static libMesh::UniquePtr< libMesh::DirichletBoundary > build(const std::string &name)
Use this method to build objects of type Base.
static bool have_bc_type(const std::string &bc_type)
Manages runtime construction of Dirichlet boundary conditions.
Interface with libMesh for solving Multiphysics problems.
static bool is_new_bc_input_style(const GetPot &input)
static libMesh::UniquePtr< BCBuilder > build_builder(const GetPot &input)
static std::string bc_section()
Outer section name for boundary conditions section in input file.
bool is_neumann_bc_type(const std::string &bc_type)
static void set_bc_ids(const std::set< BoundaryID > &bc_ids)
Boundary id for the current boundary condition section.