20 params.addRequiredParam<
unsigned int>(
21 "component",
"The displacement component corresponding the variable this BC acts on.");
22 params.addRequiredCoupledVar(
"disp_x",
"Displacement in the x direction");
23 params.addCoupledVar(
"disp_y",
"Displacement in the y direction");
24 params.addCoupledVar(
"disp_z",
"Displacement in the z direction");
26 params.addParam<Real>(
"coefficient", 1.0,
"The viscosity coefficient");
32 : IntegratedBC(parameters),
33 _component(getParam<unsigned int>(
"component")),
34 _coefficient(getParam<Real>(
"coefficient")),
35 _disp_x_var(coupled(
"disp_x")),
36 _disp_y_var(isCoupled(
"disp_y") ? coupled(
"disp_y") : 0),
37 _disp_z_var(isCoupled(
"disp_z") ? coupled(
"disp_z") : 0),
39 _disp_x_dot(coupledDot(
"disp_x")),
40 _disp_y_dot(isCoupled(
"disp_y") ? coupledDot(
"disp_y") : _zero),
41 _disp_z_dot(isCoupled(
"disp_z") ? coupledDot(
"disp_z") : _zero)
50 return _test[_i][_qp] *
_coefficient * _normals[_qp] * velocity;
56 RealVectorValue velocity;
59 return _test[_i][_qp] *
_coefficient * _normals[_qp] * velocity;
65 RealVectorValue velocity;
75 velocity(
component) = _phi[_j][_qp] / _dt;
77 return -_test[_i][_qp] * _normals[_qp] * velocity;