www.mooseframework.org
ContactSlipDamper.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 CONTACTSLIPDAMPER_H
9 #define CONTACTSLIPDAMPER_H
10 
11 // Moose Includes
12 #include "GeneralDamper.h"
13 
14 // Forward Declarations
15 class ContactSlipDamper;
16 class AuxiliarySystem;
17 class DisplacedProblem;
18 class PenetrationLocator;
19 
20 template <>
21 InputParameters validParams<ContactSlipDamper>();
22 
28 class ContactSlipDamper : public GeneralDamper
29 {
30 public:
31  ContactSlipDamper(const InputParameters & parameters);
32 
33  virtual void timestepSetup();
34 
35 protected:
36  AuxiliarySystem & _aux_sys;
37  MooseSharedPointer<DisplacedProblem> _displaced_problem;
38 
42  virtual Real computeDamping(const NumericVector<Number> & solution,
43  const NumericVector<Number> & update);
44 
49  bool operateOnThisInteraction(const PenetrationLocator & pen_loc);
50 
51  std::set<std::pair<int, int>> _interactions;
52 
63 
65  typedef std::map<std::pair<unsigned int, unsigned int>, PenetrationLocator *>::iterator
67 };
68 
69 #endif // CONTACTSLIPDAMPER_H
virtual Real computeDamping(const NumericVector< Number > &solution, const NumericVector< Number > &update)
Compute the amount of damping.
std::set< std::pair< int, int > > _interactions
virtual void timestepSetup()
Simple constant damper.
MooseSharedPointer< DisplacedProblem > _displaced_problem
std::map< std::pair< unsigned int, unsigned int >, PenetrationLocator * >::iterator pl_iterator
Convenient typedef for frequently used iterator.
InputParameters validParams< ContactSlipDamper >()
ContactSlipDamper(const InputParameters &parameters)
AuxiliarySystem & _aux_sys
bool operateOnThisInteraction(const PenetrationLocator &pen_loc)
Determine whether the damper should operate on the interaction corresponding to the supplied Penetrat...