www.mooseframework.org
EqualValueBoundaryConstraint.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef EQUALVALUEBOUNDARYCONSTRAINT_H
16 #define EQUALVALUEBOUNDARYCONSTRAINT_H
17 
18 #include "NodalConstraint.h"
19 
21 
22 template <>
24 
26 {
27 public:
29 
33  virtual void meshChanged() override;
34 
35 protected:
40 
44  virtual Real computeQpResidual(Moose::ConstraintType type) override;
45 
49  virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override;
50 
51  // Holds the master node id
52  unsigned int _master_node_id;
53  // Holds the list of slave node ids
54  std::vector<unsigned int> _slave_node_ids;
55  // Holds the slave node set or side set
56  BoundaryName _slave_node_set_id;
57  // Penalty if constraint is not satisfied
58  Real _penalty;
59 };
60 
61 #endif /* EQUALVALUEBOUNDARYCONSTRAINT_H */
InputParameters validParams< EqualValueBoundaryConstraint >()
void updateConstrainedNodes()
Update the sets of nodes with constrained DOFs.
ConstraintType
Definition: MooseTypes.h:198
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 > _slave_node_ids
MatType type
EqualValueBoundaryConstraint(const InputParameters &parameters)
ConstraintJacobianType
Definition: MooseTypes.h:204
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current slave node.