www.mooseframework.org
MultiDContactConstraint.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef MULTIDCONTACTCONSTRAINT_H
9 #define MULTIDCONTACTCONSTRAINT_H
10 
11 // MOOSE includes
12 #include "NodeFaceConstraint.h"
13 
14 #include "ContactMaster.h"
15 
16 // Forward Declarations
18 
19 template <>
20 InputParameters validParams<MultiDContactConstraint>();
21 
26 class MultiDContactConstraint : public NodeFaceConstraint
27 {
28 public:
29  MultiDContactConstraint(const InputParameters & parameters);
31 
32  virtual void timestepSetup();
33  virtual void jacobianSetup();
34 
35  virtual void updateContactSet();
36 
37  virtual Real computeQpSlaveValue();
38 
39  virtual Real computeQpResidual(Moose::ConstraintType type);
40 
41  virtual Real computeQpJacobian(Moose::ConstraintJacobianType type);
42 
43  bool shouldApply();
44 
45 protected:
46  NumericVector<Number> & _residual_copy;
47 
49 
50  const unsigned int _component;
51 
53 
54  Real _penalty;
55 
56  unsigned int _x_var;
57  unsigned int _y_var;
58  unsigned int _z_var;
59 
60  const unsigned int _mesh_dimension;
61 
62  std::vector<unsigned int> _vars;
63 };
64 
65 #endif
NumericVector< Number > & _residual_copy
ContactModel
Definition: ContactMaster.h:14
virtual Real computeQpResidual(Moose::ConstraintType type)
MultiDContactConstraint(const InputParameters &parameters)
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type)
InputParameters validParams< MultiDContactConstraint >()
A MultiDContactConstraint forces the value of a variable to be the same on both sides of an interface...
std::vector< unsigned int > _vars
const unsigned int _mesh_dimension