www.mooseframework.org
ConstantDamper.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef CONSTANTDAMPER_H
16 #define CONSTANTDAMPER_H
17 
18 // Moose Includes
19 #include "GeneralDamper.h"
20 
21 // Forward Declarations
22 class ConstantDamper;
23 
24 template <>
26 
33 {
34 public:
36 
37 protected:
41  virtual Real computeDamping(const NumericVector<Number> & solution,
42  const NumericVector<Number> & update) override;
43 
45  Real _damping;
46 };
47 
48 #endif // CONSTANTDAMPER_H
virtual Real computeDamping(const NumericVector< Number > &solution, const NumericVector< Number > &update) override
Return the constant damping value.
Base class for deriving general dampers.
Definition: GeneralDamper.h:34
ConstantDamper(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real _damping
The constant amount of the Newton update to take.
Simple constant damper.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
InputParameters validParams< ConstantDamper >()