https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ElementDamper.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;
23class Assembly;
24
25namespace libMesh
26{
27class QBase;
28}
29
34{
35public:
37
39
43 Real computeDamping();
44
48 bool variableDefinedOnElement(const Elem * elem) const;
49
54
55protected:
61 virtual Real computeQpDamping() = 0;
62
66
69
72
74 const Elem * const & _current_elem;
75
77 unsigned int _qp;
81 const libMesh::QBase * const & _qrule;
84
91};
MooseVariableFE< Real > MooseVariable
MooseVariableFE< VectorValue< Real > > VectorMooseVariable
OutputTools< Real >::VariableGradient VariableGradient
Definition MooseTypes.h:349
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
unsigned int THREAD_ID
Definition MooseTypes.h:237
Keeps track of stuff related to assembling.
Definition Assembly.h:110
Base class for deriving dampers.
Definition Damper.h:28
Base class for deriving element dampers.
const VariableValue & _u
Holds the current solution at the current quadrature point.
Assembly & _assembly
MooseVariable * getVariable()
Get the variable this damper is acting on.
const Moose::CoordinateSystemType & _coord_sys
Coordinate system.
const libMesh::QBase *const & _qrule
Quadrature rule.
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point.
const MooseArray< Point > & _q_point
Quadrature points.
MooseVariable & _var
Non-linear variable this damper works on.
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
const Elem *const & _current_elem
Current element.
Real computeDamping()
Computes this Damper's damping for one element.
unsigned int _qp
Quadrature point index.
virtual Real computeQpDamping()=0
This MUST be overridden by a child damper.
static InputParameters validParams()
bool variableDefinedOnElement(const Elem *elem) const
Check whether this damper's variable has DOFs/components on the given element.
THREAD_ID _tid
Thread ID.
const VariableValue & _u_increment
The current Newton increment.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
An interface for accessing Materials.
forward declarations
Definition MooseArray.h:18
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for stuff related to variables.
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
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...