www.mooseframework.org
ConstantRate.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 CONSTANTRATE_H
16 #define CONSTANTRATE_H
17 
18 #include "NodalKernel.h"
19 
20 // Forward Declarations
21 class ConstantRate;
22 
23 template <>
25 
29 class ConstantRate : public NodalKernel
30 {
31 public:
36 
37 protected:
38  virtual Real computeQpResidual() override;
39 
40  virtual Real computeQpJacobian() override;
41 
43  const Real & _rate;
44 };
45 
46 #endif
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
Definition: ConstantRate.C:33
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
Definition: ConstantRate.C:39
InputParameters validParams< ConstantRate >()
Definition: ConstantRate.C:19
ConstantRate(const InputParameters &parameters)
Constructor initializes the rate.
Definition: ConstantRate.C:27
const Real & _rate
The rate.
Definition: ConstantRate.h:43
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Represents the rate in a simple ODE of du/dt = rate.
Definition: ConstantRate.h:29
Base class for creating new types of boundary conditions.
Definition: NodalKernel.h:50