22 "EqualValueConstraint enforces solution continuity between secondary and " 23 "primary sides of a mortar interface using lagrange multipliers");
25 "delta", 0,
"0<=delta<=1",
"The coefficient for stabilizing terms");
26 params.
addParam<MaterialPropertyName>(
27 "diff_secondary", 1,
"The diffusivity on the secondary side");
28 params.
addParam<MaterialPropertyName>(
"diff_primary", 1,
"The diffusivity on the primary side");
34 _lower_secondary_volume(_assembly.lowerDElemVolume()),
35 _lower_primary_volume(_assembly.neighborLowerDElemVolume()),
36 _delta(getParam<
Real>(
"delta")),
37 _diff_secondary(getADMaterialProperty<
Real>(
"diff_secondary")),
38 _diff_primary(getADMaterialProperty<
Real>(
"diff_primary")),
39 _stabilize(_delta > TOLERANCE * TOLERANCE)
const Real & _lower_secondary_volume
The secondary face lower dimensional element (not the mortar element!) volume.
const VariableTestValue & _test_secondary
The shape functions corresponding to the secondary interior primal variable.
const VariableTestGradient & _grad_test_primary
The shape function gradients corresponding to the primary interior primal variable.
const Real _delta
The stabilization parameter.
EqualValueConstraint(const InputParameters ¶meters)
const ADVariableGradient & _grad_u_secondary
The primal solution gradient on the secondary side.
const Real & _lower_primary_volume
The primary face lower dimensional element volume (not the mortar element!)
const ADVariableGradient & _grad_u_primary
The primal solution gradient on the primary side.
const ADVariableValue & _lambda
The LM solution.
const VariableTestValue & _test
The shape functions corresponding to the lagrange multiplier variable.
Constrain the value of a variable to be the same on both sides of an interface.
registerMooseObject("MooseApp", EqualValueConstraint)
static InputParameters validParams()
std::vector< Point > _normals
the normals
const ADMaterialProperty< Real > & _diff_primary
The diffusion coefficient on the primary side.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const bool _stabilize
whether to perform stabilization.
const VariableTestGradient & _grad_test_secondary
The shape function gradients corresponding to the secondary interior primal variable.
static InputParameters validParams()
ADReal computeQpResidual(Moose::MortarType mortar_type) final
compute the residual at the quadrature points
const ADVariableValue & _u_primary
The primal solution on the primary side.
const VariableTestValue & _test_primary
The shape functions corresponding to the primary interior primal variable.
const ADMaterialProperty< Real > & _diff_secondary
The diffusion coefficient on the secondary side.
const ADVariableValue & _u_secondary
The primal solution on the secondary side.