41 _ndisp(this->coupledComponents(
"displacements")),
43 [this, ¶meters]()
44 {
45 for (
unsigned int i = 0; i <
_ndisp; ++i)
46 _disp_var.push_back(this->coupled(
"displacements", i));
47
48 for (
unsigned int i = 0; i <
_ndisp; ++i)
49 {
51 {
53 i != this->template getParam<unsigned int>("component"))
54 this->paramError(
55 "component",
56 "The component this BC is acting on is now inferred from the position "
57 "of the `variable` in the `displacements` variable list. The explicitly "
58 "specified component value is at odds with teh automatically inferred "
59 "value. The `component` parameter has been deprecated. Please double "
60 "check your input for potential mestakes.");
61 return i;
62 }
63 }
64
65 this->paramError("variable", "The BC variable should be a displacement variable.");
66 }())
67{
68}
typename std::conditional< is_ad, ADIntegratedBC, IntegratedBC >::type PressureBaseParent
Pressure applies a pressure on a given boundary in the direction defined by component.
const unsigned int _ndisp
Number of displacement variables.
std::vector< unsigned int > _disp_var
Variable numbers of coupled displacement variables.
const unsigned int _component
displacement component to apply the bc to