19 "in a weak sense by penalizing differences between the current "
20 "solution and the Dirichlet value on nodesets.");
23 params.
addParam<Real>(
"value", 0.0,
"Boundary value of the variable");
30 :
NodalKernel(parameters), _p(getParam<Real>(
"penalty")), _v(getParam<Real>(
"value"))
registerMooseObject("MooseApp", PenaltyDirichletNodalKernel)
unsigned int _qp
Quadrature point index.
Base class for creating nodal kernels with hand-coded Jacobians.
static InputParameters validParams()
Class constructor.
const VariableValue & _u
Value of the unknown variable this is acting on.
PenaltyDirichletNodalKernel(const InputParameters ¶meters)
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
static InputParameters validParams()