www.mooseframework.org
LinearNodalConstraint.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 LINEARNODALCONSTRAINT_H
16 #define LINEARNODALCONSTRAINT_H
17 
18 #include "NodalConstraint.h"
19 
21 
22 template <>
24 
33 {
34 public:
36 
37 protected:
41  virtual Real computeQpResidual(Moose::ConstraintType type) override;
42 
46  virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override;
47 
48  // Holds the master node ids
49  std::vector<unsigned int> _master_node_ids;
50  // Holds the list of slave node ids
51  std::vector<unsigned int> _slave_node_ids;
52  // Holds the slave node set or side set
53  std::string _slave_node_set_id;
54  // Penalty if constraint is not satisfied
55  Real _penalty;
56 };
57 
58 #endif /* LINEARNODALCONSTRAINT_H */
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current slave node.
ConstraintType
Definition: MooseTypes.h:198
std::vector< unsigned int > _master_node_ids
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
InputParameters validParams< LinearNodalConstraint >()
The slave node variable is programmed as a linear combination of the master node variables (i...
std::vector< unsigned int > _slave_node_ids
LinearNodalConstraint(const InputParameters &parameters)
MatType type
ConstraintJacobianType
Definition: MooseTypes.h:204
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53