www.mooseframework.org
NodalDamper.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 NODALDAMPER_H
16 #define NODALDAMPER_H
17 
18 // Moose Includes
19 #include "Damper.h"
21 #include "MooseTypes.h"
22 #include "MooseVariableBase.h"
23 
24 // Forward Declarations
25 class NodalDamper;
26 class SubProblem;
27 class SystemBase;
28 class MooseVariable;
29 class Assembly;
30 
31 template <>
33 
37 class NodalDamper : public Damper, protected MaterialPropertyInterface
38 {
39 public:
41 
45  Real computeDamping();
46 
50  MooseVariable * getVariable() { return &_var; }
51 
52 protected:
58  virtual Real computeQpDamping() = 0;
59 
63 
66 
69 
71  const Node *& _current_node;
72 
74  unsigned int _qp;
75 
79  const VariableValue & _u;
80 };
81 
82 #endif // NODALDAMPER_H
Keeps track of stuff related to assembling.
Definition: Assembly.h:63
Class for stuff related to variables.
Definition: MooseVariable.h:43
virtual Real computeQpDamping()=0
This MUST be overridden by a child damper.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableValue & _u
Holds the current solution at the current node.
Definition: NodalDamper.h:79
Base class for a system (of equations)
Definition: SystemBase.h:91
VariableValue & _u_increment
The current Newton increment.
Definition: NodalDamper.h:77
InputParameters validParams< NodalDamper >()
Definition: NodalDamper.C:28
THREAD_ID _tid
Thread ID.
Definition: NodalDamper.h:61
Base class for deriving nodal dampers.
Definition: NodalDamper.h:37
unsigned int _qp
Quadrature point index.
Definition: NodalDamper.h:74
CoordinateSystemType
Definition: MooseTypes.h:212
Assembly & _assembly
Definition: NodalDamper.h:62
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition: NodalDamper.h:50
MooseVariable & _var
Non-linear variable this damper works on.
Definition: NodalDamper.h:68
Generic class for solving transient nonlinear problems.
Definition: SubProblem.h:53
An interface for accessing Materials.
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition: NodalDamper.h:65
const Node *& _current_node
Current node.
Definition: NodalDamper.h:71
Base class for deriving dampers.
Definition: Damper.h:35
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Real computeDamping()
Computes this Damper&#39;s damping for one node.
Definition: NodalDamper.C:52
unsigned int THREAD_ID
Definition: MooseTypes.h:79
NodalDamper(const InputParameters &parameters)
Definition: NodalDamper.C:37