19 params.
addParam<Real>(
"value", 0.0,
"Boundary value of the variable");
22 "in a weak sense by penalizing differences between the current "
23 "solution and the Dirichlet data.");
28 :
IntegratedBC(parameters), _p(getParam<Real>(
"penalty")), _v(getParam<Real>(
"value"))
registerMooseObject("MooseApp", PenaltyDirichletBC)
unsigned int _qp
quadrature point index
unsigned int _i
i-th, j-th index for enumerating test and shape functions
Base class for deriving any boundary condition of a integrated type.
const VariableValue & _u
the values of the unknown variable this BC is acting on
static InputParameters validParams()
const VariablePhiValue & _phi
shape function values (in QPs)
const VariableTestValue & _test
test function values (in QPs)
Weakly enforce a Dirichlet BC using a penalty term.
static InputParameters validParams()
PenaltyDirichletBC(const InputParameters ¶meters)
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.