www.mooseframework.org
NodalDamper.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>
22 class Assembly;
23 
27 class NodalDamper : public Damper, protected MaterialPropertyInterface
28 {
29 public:
31 
33 
38 
42  MooseVariable * getVariable() { return &_var; }
43 
44 protected:
50  virtual Real computeQpDamping() = 0;
51 
55 
58 
61 
63  const Node * const & _current_node;
64 
66  unsigned int _qp;
67 
71  const VariableValue & _u;
72 };
Keeps track of stuff related to assembling.
Definition: Assembly.h:93
Class for stuff related to variables.
Definition: Adaptivity.h:31
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:71
Base class for a system (of equations)
Definition: SystemBase.h:85
const Node *const & _current_node
Current node.
Definition: NodalDamper.h:63
THREAD_ID _tid
Thread ID.
Definition: NodalDamper.h:53
Base class for deriving nodal dampers.
Definition: NodalDamper.h:27
unsigned int _qp
Quadrature point index.
Definition: NodalDamper.h:66
MooseVariableFE< Real > MooseVariable
Definition: NodalDamper.h:20
Assembly & _assembly
Definition: NodalDamper.h:54
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition: NodalDamper.h:42
MooseVariable & _var
Non-linear variable this damper works on.
Definition: NodalDamper.h:60
forward declarations
Definition: MooseArray.h:17
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.
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition: NodalDamper.h:57
Base class for deriving dampers.
Definition: Damper.h:24
Real computeDamping()
Computes this Damper&#39;s damping for one node.
Definition: NodalDamper.C:46
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
Definition: NodalDamper.C:22
const VariableValue & _u_increment
The current Newton increment.
Definition: NodalDamper.h:69
unsigned int THREAD_ID
Definition: MooseTypes.h:198
NodalDamper(const InputParameters &parameters)
Definition: NodalDamper.C:31