https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
17class SubProblem;
18class SystemBase;
19template <typename>
20class MooseVariableFE;
22class Assembly;
23
28{
29public:
31
33
37 Real computeDamping();
38
42 bool variableDefinedOnNode(const Node * node) const;
43
48
49protected:
55 virtual Real computeQpDamping() = 0;
56
60
63
66
68 const Node * const & _current_node;
69
71 unsigned int _qp;
72
77};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
unsigned int THREAD_ID
Definition MooseTypes.h:237
MooseVariableFE< Real > MooseVariable
Definition NodalDamper.h:21
Keeps track of stuff related to assembling.
Definition Assembly.h:110
Base class for deriving dampers.
Definition Damper.h:28
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
An interface for accessing Materials.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for stuff related to variables.
Base class for deriving nodal dampers.
Definition NodalDamper.h:28
MooseVariable & _var
Non-linear variable this damper works on.
Definition NodalDamper.h:65
THREAD_ID _tid
Thread ID.
Definition NodalDamper.h:58
static InputParameters validParams()
Definition NodalDamper.C:22
bool variableDefinedOnNode(const Node *node) const
Check whether this damper's variable has DOFs on the given node.
Definition NodalDamper.C:55
MooseVariable * getVariable()
Get the variable this damper is acting on.
Definition NodalDamper.h:47
unsigned int _qp
Quadrature point index.
Definition NodalDamper.h:71
Assembly & _assembly
Definition NodalDamper.h:59
const VariableValue & _u_increment
The current Newton increment.
Definition NodalDamper.h:74
Real computeDamping()
Computes this Damper's damping for one node.
Definition NodalDamper.C:49
const Node *const & _current_node
Current node.
Definition NodalDamper.h:68
const VariableValue & _u
Holds the current solution at the current node.
Definition NodalDamper.h:76
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
Definition NodalDamper.h:62
virtual Real computeQpDamping()=0
This MUST be overridden by a child damper.
Generic class for solving transient nonlinear problems.
Definition SubProblem.h:79
Base class for a system (of equations)
Definition SystemBase.h:87
CoordinateSystemType
Definition MooseTypes.h:864