www.mooseframework.org
EqualValueBoundaryConstraint.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
42  // Holds the primary node id
43  unsigned int _primary_node_id;
44  // Holds the list of secondary node ids
45  std::vector<unsigned int> _secondary_node_ids;
46  // Holds the secondary node set or side set
47  BoundaryName _secondary_node_set_id;
48  // Penalty if constraint is not satisfied
50 };
void updateConstrainedNodes()
Update the sets of nodes with constrained DOFs.
ConstraintType
Definition: MooseTypes.h:670
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...
std::vector< unsigned int > _secondary_node_ids
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
EqualValueBoundaryConstraint(const InputParameters &parameters)
ConstraintJacobianType
Definition: MooseTypes.h:709
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current secondary node.