www.mooseframework.org
TimeDerivativeNodalKernel.C
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 
11 
13 
16 {
18  params.addClassDescription(
19  "Forms the contribution to the residual and jacobian of the time derivative term from an ODE "
20  "being solved at all nodes.");
21  return params;
22 }
23 
25  : TimeNodalKernel(parameters)
26 {
27 }
28 
29 Real
31 {
32  return _u_dot[_qp];
33 }
34 
35 Real
37 {
38  return _du_dot_du[_qp];
39 }
Represents a simple ODE of du/dt - rate = 0.
static InputParameters validParams()
Constructor (Comment here for :-)
const VariableValue & _du_dot_du
Derivative of u_dot with respect to u.
static InputParameters validParams()
Constructor initializes the rate.
TimeDerivativeNodalKernel(const InputParameters &parameters)
registerMooseObject("MooseApp", TimeDerivativeNodalKernel)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableValue & _u_dot
Time derivative of u.
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
unsigned int _qp
Quadrature point index.