www.mooseframework.org
Damper.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 "MooseObject.h"
14 #include "SetupInterface.h"
15 #include "Restartable.h"
16 #include "MeshChangedInterface.h"
17 
18 class SubProblem;
19 class SystemBase;
20 
24 class Damper : public MooseObject,
25  public SetupInterface,
26  public Restartable,
28 {
29 public:
31 
33 
39  void checkMinDamping(const Real cur_damping) const;
40 
41 protected:
44 
46  const Real & _min_damping;
47 };
A class for creating restricted objects.
Definition: Restartable.h:28
static InputParameters validParams()
Definition: Damper.C:16
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for a system (of equations)
Definition: SystemBase.h:85
Damper(const InputParameters &parameters)
Definition: Damper.C:29
Interface for notifications that the mesh has changed.
void checkMinDamping(const Real cur_damping) const
Check whether damping is below the user-specified minimum value, and throw an exception if it is...
Definition: Damper.C:41
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:33
const Real & _min_damping
Minimum allowable value of damping.
Definition: Damper.h:46
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
Definition: SubProblem.h:75
Base class for deriving dampers.
Definition: Damper.h:24
const InputParameters & parameters() const
Get the parameters of the object.
SubProblem & _subproblem
Definition: Damper.h:42
SystemBase & _sys
Definition: Damper.h:43