21 params.
addClassDescription(
"Lagrange multiplier kernel for EqualGradientLagrangeInterface.");
22 params.
addRequiredParam<
unsigned int>(
"component",
"Gradient component to constrain");
24 "The gradient constrained variable on this side of the interface.");
25 params.
addParam<Real>(
"jacobian_fill",
27 "Compensate on diagonal Jacobian fill term when "
28 "using a NullKernel on the Lagrange multiplier "
35 _component(getParam<unsigned
int>(
"component")),
36 _grad_element_value(getVar(
"element_var", 0)->gradSln()),
37 _element_jvar(getVar(
"element_var", 0)->number()),
38 _neighbor_jvar(_neighbor_var.number()),
39 _jacobian_fill(getParam<Real>(
"jacobian_fill"))
registerMooseObject("PhaseFieldApp", EqualGradientLagrangeMultiplier)
void ErrorVector unsigned int
Lagrange multiplier "FaceKernel" that is used in conjunction with EqualGradientLagrangeInterface.
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override
const Real _jacobian_fill
compensate Jacobian fill term from NullKernel
unsigned int _element_jvar
EqualGradientLagrangeMultiplier(const InputParameters ¶meters)
const VariableGradient & _grad_element_value
variable to control gradient on the primary side of the interface
const unsigned int _component
x,y,z component of the gradient to constrain
virtual Real computeQpResidual(Moose::DGResidualType type) override
static InputParameters validParams()
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
const TemplateVariablePhiGradient & _grad_phi_neighbor
const TemplateVariablePhiGradient & _grad_phi
const TemplateVariableGradient & _grad_neighbor_value
static InputParameters validParams()
const TemplateVariableTestValue & _test
const std::string & type() const