Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 : 10 : #include "ADScalarTimeDerivative.h" 11 : 12 : registerMooseObject("MooseApp", ADScalarTimeDerivative); 13 : 14 : InputParameters 15 14353 : ADScalarTimeDerivative::validParams() 16 : { 17 14353 : InputParameters params = ADScalarTimeKernel::validParams(); 18 14353 : params.addClassDescription( 19 : "Adds the time derivative contribution to the residual for a scalar variable."); 20 14353 : return params; 21 0 : } 22 : 23 44 : ADScalarTimeDerivative::ADScalarTimeDerivative(const InputParameters & parameters) 24 44 : : ADScalarTimeKernel(parameters) 25 : { 26 44 : } 27 : 28 : ADReal 29 436 : ADScalarTimeDerivative::computeQpResidual() 30 : { 31 436 : return _u_dot[_i]; 32 : }