www.mooseframework.org
SecondDerivativeImplicitEuler.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 #include "SubProblem.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<TimeKernel>();
16  return params;
17 }
18 
20  : TimeKernel(parameters), _u_old(valueOld()), _u_older(valueOlder())
21 {
22 }
23 
24 Real
26 {
27  return _test[_i][_qp] * ((_u[_qp] - 2 * _u_old[_qp] + _u_older[_qp]) / (_dt * _dt));
28 }
29 
30 Real
32 {
33  return _test[_i][_qp] * (_phi[_j][_qp] / (_dt * _dt));
34 }
InputParameters validParams< SecondDerivativeImplicitEuler >()
SecondDerivativeImplicitEuler(const InputParameters &parameters)