14 #include "libmesh/ignore_warnings.h" 15 #include "mfem/miniapps/common/mesh_extras.hpp" 16 #include "libmesh/restore_warnings.h" 22 params.
addClassDescription(
"Base class for applying boundary conditions to MFEM problems.");
26 params.
addParam<std::vector<BoundaryName>>(
29 "The list of boundaries (ids) from the mesh where this boundary condition applies. " 30 "Defaults to applying BC on all boundaries.");
31 params.
addParam<VariableName>(
"variable",
"Variable on which to apply the boundary condition");
37 _test_var_name(getParam<VariableName>(
"variable")),
38 _boundary_names(getParam<
std::vector<BoundaryName>>(
"boundary")),
39 _bdr_attributes(_boundary_names.size())
static InputParameters validParams()
static InputParameters validParams()
MFEMBoundaryCondition(const InputParameters ¶meters)
mfem::Array< int > _bdr_markers
const VariableName & _test_var_name
MFEMProblem & getMFEMProblem()
Returns a reference to the MFEMProblem instance.
const std::vector< BoundaryName > & _boundary_names
mfem::Array< int > _bdr_attributes