www.mooseframework.org
TimeDerivativeNodalKernel.C
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 
16 
17 template <>
20 {
22  return params;
23 }
24 
26  : TimeNodalKernel(parameters)
27 {
28 }
29 
30 Real
32 {
33  return _u_dot[_qp];
34 }
35 
36 Real
38 {
39  return _du_dot_du[_qp];
40 }
Represents a simple ODE of du/dt - rate = 0.
TimeDerivativeNodalKernel(const InputParameters &parameters)
Constructor (Comment here for :-)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< NodalKernel >()
Definition: NodalKernel.C:24
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
InputParameters validParams< TimeDerivativeNodalKernel >()
const VariableValue & _du_dot_du
Derivative of u_dot with respect to u.
Definition: NodalKernel.h:161
const VariableValue & _u_dot
Time derivative of the variable this is acting on.
Definition: NodalKernel.h:158
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
unsigned int _qp
Quadrature point index.
Definition: NodalKernel.h:152