https://mooseframework.inl.gov
EqualValueBoundaryConstraint.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "NodalConstraint.h"
13 
15 {
16 public:
18 
20 
24  virtual void meshChanged() override;
25 
26 protected:
31 
36 
41 
44 
45 private:
50 
54  void pickPrimaryNode();
55 
59  void ghostPrimary();
60 
66 };
void updateConstrainedNodes()
Update the sets of nodes with constrained DOFs.
ConstraintType
Definition: MooseTypes.h:806
dof_id_type getPrimaryNodeIDByCoord() const
Get the primary node ID by searching for the node with coordinates matching _primary_node_coord on th...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
virtual void meshChanged() override
Called on this object when the mesh changes.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void ghostPrimary()
Ghost elements and nodes connected to the primary node.
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:93
void pickPrimaryNode()
Pick the primary node from user input or from the secondary node set.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
EqualValueBoundaryConstraint(const InputParameters &parameters)
void populateSecondaryNodes()
Populate the set of secondary nodes from user input.
ConstraintJacobianType
Definition: MooseTypes.h:845
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
Real _penalty
Penalty if constraint is not satisfied.
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current secondary node.
uint8_t dof_id_type