47 mooseError(
"NodalConstraint do not need computeResidual()");
56 mooseError(
"NodalConstraint do not need computeJacobian()");
ConstraintFormulationType
Type of constraint formulation.
virtual void updateConnectivity()
Built the connectivity for this constraint.
Class for stuff related to variables.
const VariableValue & _u_primary
Holds the current solution at the current quadrature point.
virtual Real computeQpResidual(Moose::ConstraintType type)=0
This is the virtual that derived classes should override for computing the residual on neighboring el...
Base class for all Constraint types.
const VariableValue & _u_secondary
Value of the unknown variable this BC is action on.
virtual void computeResidual() override final
Computes the nodal residual.
static InputParameters validParams()
unsigned int _i
Counter for primary and secondary nodes.
std::vector< dof_id_type > _primary_node_vector
node IDs of the primary node
Enhances MooseVariableInterface interface provide values from neighbor elements.
std::vector< dof_id_type > _connected_nodes
node IDs connected to the primary node (secondary nodes)
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type)=0
This is the virtual that derived classes should override for computing the Jacobian on neighboring el...
std::vector< Real > _weights
When the secondary node is constrained to move as a linear combination of the primary nodes...
Moose::ConstraintFormulationType _formulation
Specifies formulation type used to apply constraints.
const MooseVariable & variable() const override
The variable number that this object operates on.
std::vector< dof_id_type > & getPrimaryNodeId()
Get the list of primary nodes.
const std::string & type() const
Get the type of this class.
virtual void computeJacobian() override final
Computes the jacobian for the current element.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
NodalConstraint(const InputParameters ¶meters)
MooseVariable & _var_secondary
std::vector< dof_id_type > & getSecondaryNodeId()
Get the list of connected secondary nodes.