https://mooseframework.inl.gov
NodalDamper.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
28 {
29 public:
31 
33 
38 
42  bool variableDefinedOnNode(const Node * node) const;
43 
47  MooseVariable * getVariable() { return &_var; }
48 
49 protected:
55  virtual Real computeQpDamping() = 0;
56 
60 
63 
66 
68  const Node * const & _current_node;
69 
71  unsigned int _qp;
72 
76  const VariableValue & _u;
77 };
Keeps track of stuff related to assembling.
Definition: Assembly.h:109
Class for stuff related to variables.
Definition: Adaptivity.h:33
virtual Real computeQpDamping()=0
This MUST be overridden by a child damper.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
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:76
Base class for a system (of equations)
Definition: SystemBase.h:85
const Node *const & _current_node
Current node.
Definition: NodalDamper.h:68
THREAD_ID _tid
Thread ID.
Definition: NodalDamper.h:58
Base class for deriving nodal dampers.
Definition: NodalDamper.h:27
unsigned int _qp
Quadrature point index.
Definition: NodalDamper.h:71
MooseVariableFE< Real > MooseVariable
Definition: NodalDamper.h:20
Assembly & _assembly
Definition: NodalDamper.h:59
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition: NodalDamper.h:47
OutputTools< Real >::VariableValue VariableValue
Definition: MooseTypes.h:343
MooseVariable & _var
Non-linear variable this damper works on.
Definition: NodalDamper.h:65
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
Definition: SubProblem.h:78
CoordinateSystemType
Definition: MooseTypes.h:858
An interface for accessing Materials.
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition: NodalDamper.h:62
Base class for deriving dampers.
Definition: Damper.h:24
Real computeDamping()
Computes this Damper&#39;s damping for one node.
Definition: NodalDamper.C:49
static InputParameters validParams()
Definition: NodalDamper.C:22
bool variableDefinedOnNode(const Node *node) const
Check whether this damper&#39;s variable has DOFs on the given node.
Definition: NodalDamper.C:55
const VariableValue & _u_increment
The current Newton increment.
Definition: NodalDamper.h:74
unsigned int THREAD_ID
Definition: MooseTypes.h:237
NodalDamper(const InputParameters &parameters)
Definition: NodalDamper.C:31