www.mooseframework.org
ElementDamper.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // Moose Includes
13 #include "Damper.h"
15 #include "MooseTypes.h"
16 
17 class SubProblem;
18 class SystemBase;
19 template <typename>
23 class Assembly;
24 
29 {
30 public:
32 
34 
39 
43  MooseVariable * getVariable() { return &_var; }
44 
45 protected:
51  virtual Real computeQpDamping() = 0;
52 
56 
59 
62 
64  const Elem * const & _current_elem;
65 
67  unsigned int _qp;
71  const QBase * const & _qrule;
74 
78  const VariableValue & _u;
81 };
OutputTools< Real >::VariableGradient VariableGradient
Definition: MooseTypes.h:303
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition: ElementDamper.h:58
const QBase *const & _qrule
Quadrature rule.
Definition: ElementDamper.h:71
static InputParameters validParams()
Definition: ElementDamper.C:22
const Elem *const & _current_elem
Current element.
Definition: ElementDamper.h:64
const MooseArray< Point > & _q_point
Quadrature points.
Definition: ElementDamper.h:69
Keeps track of stuff related to assembling.
Definition: Assembly.h:93
Class for stuff related to variables.
Definition: Adaptivity.h:31
ElementDamper(const InputParameters &parameters)
Definition: ElementDamper.C:31
MooseVariableFE< Real > MooseVariable
Definition: ElementDamper.h:20
const VariableValue & _u
Holds the current solution at the current quadrature point.
Definition: ElementDamper.h:78
unsigned int _qp
Quadrature point index.
Definition: ElementDamper.h:67
const VariableValue & _u_increment
The current Newton increment.
Definition: ElementDamper.h:76
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MooseVariableFE< VectorValue< Real > > VectorMooseVariable
Definition: ElementDamper.h:22
Base class for a system (of equations)
Definition: SystemBase.h:84
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
Definition: ElementDamper.h:73
THREAD_ID _tid
Thread ID.
Definition: ElementDamper.h:54
Base class for deriving element dampers.
Definition: ElementDamper.h:28
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
Definition: SubProblem.h:75
CoordinateSystemType
Definition: MooseTypes.h:722
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:61
Base class for deriving dampers.
Definition: Damper.h:24
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition: ElementDamper.h:43
const InputParameters & parameters() const
Get the parameters of the object.
Assembly & _assembly
Definition: ElementDamper.h:55
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point.
Definition: ElementDamper.h:80
Real computeDamping()
Computes this Damper&#39;s damping for one element.
Definition: ElementDamper.C:52
unsigned int THREAD_ID
Definition: MooseTypes.h:198