www.mooseframework.org
GluedContactConstraint.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 GLUEDCONTACTCONSTRAINT_H
9 #define GLUEDCONTACTCONSTRAINT_H
10 
11 // MOOSE includes
13 
14 #include "ContactMaster.h"
15 
16 // Forward Declarations
18 
19 template <>
20 InputParameters validParams<GluedContactConstraint>();
21 
27 {
28 public:
29  GluedContactConstraint(const InputParameters & parameters);
31 
32  virtual void timestepSetup();
33  virtual void jacobianSetup();
34 
35  virtual void updateContactSet(bool beginning_of_step = false);
36 
37  virtual Real computeQpSlaveValue();
38 
39  virtual Real computeQpResidual(Moose::ConstraintType type);
40 
41  virtual Real computeQpJacobian(Moose::ConstraintJacobianType type);
42 
48  virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType type, unsigned int jvar);
49 
50  bool shouldApply();
51 
52 protected:
53  const unsigned int _component;
56 
57  const Real _penalty;
59  const Real _tension_release;
61 
62  NumericVector<Number> & _residual_copy;
63 
64  unsigned int _x_var;
65  unsigned int _y_var;
66  unsigned int _z_var;
67 
68  std::vector<unsigned int> _vars;
69 
70  MooseVariable * _nodal_area_var;
71  SystemBase & _aux_system;
72  const NumericVector<Number> * _aux_solution;
73 };
74 
75 #endif
std::vector< unsigned int > _vars
const unsigned int _component
ContactModel
Definition: ContactMaster.h:14
ContactFormulation
Definition: ContactMaster.h:22
virtual void updateContactSet(bool beginning_of_step=false)
A GluedContactConstraint forces the value of a variable to be the same on both sides of an interface...
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType type, unsigned int jvar)
Compute off-diagonal Jacobian entries.
const ContactFormulation _formulation
virtual Real computeQpResidual(Moose::ConstraintType type)
NumericVector< Number > & _residual_copy
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type)
GluedContactConstraint(const InputParameters &parameters)
InputParameters validParams< GluedContactConstraint >()
const NumericVector< Number > * _aux_solution