https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADCoupledTimeDerivative.C
Go to the documentation of this file.
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
11
13
16{
17 auto params = ADKernelValue::validParams();
18 params.addClassDescription("Time derivative Kernel that acts on a coupled variable. Weak form: "
19 "$(\\psi_i, \\frac{\\partial v_h}{\\partial t})$.");
20 params.addRequiredCoupledVar("v", "Coupled variable");
21 return params;
22}
23
25 : ADKernelValue(parameters), _v_dot(adCoupledDot("v"))
26{
27}
28
registerMooseObject("MooseApp", ADCoupledTimeDerivative)
DualNumber< Real, DNDerivativeType, true > ADReal
This calculates the time derivative for a coupled variable.
ADCoupledTimeDerivative(const InputParameters &parameters)
static InputParameters validParams()
const ADVariableValue & _v_dot
virtual ADReal precomputeQpResidual() override
Called before forming the residual for an element.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
unsigned int _qp
The current quadrature point index.
Definition KernelBase.h:43