-
Notifications
You must be signed in to change notification settings - Fork 1k
/
TimeDerivativeNodalKernel.C
39 lines (34 loc) · 1.31 KB
/
TimeDerivativeNodalKernel.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#include "TimeDerivativeNodalKernel.h"
template<>
InputParameters validParams<TimeDerivativeNodalKernel>()
{
InputParameters params = validParams<NodalKernel>();
return params;
}
TimeDerivativeNodalKernel::TimeDerivativeNodalKernel(const InputParameters & parameters) :
TimeNodalKernel(parameters)
{
}
Real
TimeDerivativeNodalKernel::computeQpResidual()
{
return _u_dot[_qp];
}
Real
TimeDerivativeNodalKernel::computeQpJacobian()
{
return _du_dot_du[_qp];
}