18 #include "libmesh/string_to_enum.h" 29 _u_primary(_primary_var.adSlnNeighbor()),
30 _u_secondary(_var.adDofValues())
65 std::vector<ADReal> primary_residual(
_test_primary.size(), 0);
84 mooseAssert(
false,
"Should not be used");
92 mooseAssert(
false,
"Should not be used");
virtual void computeJacobian() override
Computes the jacobian for the current element.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType)
This is the virtual method that derived classes should override for computing the Jacobian...
void addResiduals(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided incoming residuals corresponding to the provided dof indices.
VariableTestValue _test_secondary
Shape function on the secondary side. This will always only have one entry and that entry will always...
MooseVariable & _var
secondary node variable
void addJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided residual derivatives into the Jacobian for the provided dof indices.
const std::vector< dof_id_type > & dofIndices() const final
Get local DoF indices.
virtual ADReal computeQpResidual(Moose::ConstraintType type)=0
This is the virtual method that derived classes should override for computing the residual...
std::vector< Real > _residuals
MooseVariable & _primary_var
Primary side variable.
Assembly & _assembly
Reference to this Kernel's assembly object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const std::vector< dof_id_type > & dofIndicesNeighbor() const final
Get neighbor DOF indices for currently selected element.
static InputParameters validParams()
virtual void computeResidual() override
Computes the Nodal residual.
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType, unsigned int)
This is the virtual method that derived classes should override for computing the off-diag Jacobian...
ADNodeElemConstraint(const InputParameters ¶meters)
static InputParameters validParams()
A NodeElemConstraintBase is used when you need to create constraints between a secondary node and a p...
void scalingFactor(const std::vector< Real > &factor)
Set the scaling factor for this variable.
const VariableTestValue & _test_primary
Side test function.