www.mooseframework.org
ElementDamper.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 ELEMENTDAMPER_H
16 #define ELEMENTDAMPER_H
17 
18 // Moose Includes
19 #include "Damper.h"
21 #include "MooseTypes.h"
22 #include "MooseVariableBase.h"
23 
24 // Forward Declarations
25 class ElementDamper;
26 class SubProblem;
27 class SystemBase;
28 class MooseVariable;
29 class Assembly;
30 
31 template <>
33 
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 Elem *& _current_elem;
72 
74  unsigned int _qp;
78  QBase *& _qrule;
81 
85  const VariableValue & _u;
88 };
89 
90 #endif // ELEMENTDAMPER_H
QBase *& _qrule
Quadrature rule.
Definition: ElementDamper.h:78
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition: ElementDamper.h:65
const MooseArray< Point > & _q_point
Quadrature points.
Definition: ElementDamper.h:76
Keeps track of stuff related to assembling.
Definition: Assembly.h:63
Class for stuff related to variables.
Definition: MooseVariable.h:43
ElementDamper(const InputParameters &parameters)
Definition: ElementDamper.C:37
const VariableValue & _u
Holds the current solution at the current quadrature point.
Definition: ElementDamper.h:85
unsigned int _qp
Quadrature point index.
Definition: ElementDamper.h:74
const Elem *& _current_elem
Current element.
Definition: ElementDamper.h:71
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for a system (of equations)
Definition: SystemBase.h:91
VariableValue & _u_increment
The current Newton increment.
Definition: ElementDamper.h:83
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
Definition: ElementDamper.h:80
THREAD_ID _tid
Thread ID.
Definition: ElementDamper.h:61
CoordinateSystemType
Definition: MooseTypes.h:212
Base class for deriving element dampers.
Definition: ElementDamper.h:37
InputParameters validParams< ElementDamper >()
Definition: ElementDamper.C:28
Generic class for solving transient nonlinear problems.
Definition: SubProblem.h:53
An interface for accessing Materials.
virtual Real computeQpDamping()=0
This MUST be overridden by a child damper.
MooseVariable & _var
Non-linear variable this damper works on.
Definition: ElementDamper.h:68
Base class for deriving dampers.
Definition: Damper.h:35
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition: ElementDamper.h:50
Assembly & _assembly
Definition: ElementDamper.h:62
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point.
Definition: ElementDamper.h:87
Real computeDamping()
Computes this Damper&#39;s damping for one element.
Definition: ElementDamper.C:58
unsigned int THREAD_ID
Definition: MooseTypes.h:79