https://mooseframework.inl.gov
FVTimeKernel.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 
10 #include "FVTimeKernel.h"
11 
12 #include "SystemBase.h"
13 
15 
18 {
20  params.addClassDescription(
21  "Residual contribution from time derivative of a variable for the finite volume method.");
22  params.set<MultiMooseEnum>("vector_tags") = "time";
23  params.set<MultiMooseEnum>("matrix_tags") = "system time";
24  return params;
25 }
26 
28  : FVElementalKernel(parameters), _u_dot(_var.adUDot())
29 {
31 }
32 
33 ADReal
35 {
36  return _u_dot[_qp];
37 }
static InputParameters validParams()
Definition: FVTimeKernel.C:17
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
const ADVariableValue & _u_dot
Definition: FVTimeKernel.h:23
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
static InputParameters validParams()
const unsigned int _qp
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...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
registerADMooseObject("MooseApp", FVTimeKernel)
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
Definition: FVTimeKernel.C:34
FVTimeKernel(const InputParameters &parameters)
Definition: FVTimeKernel.C:27
virtual void requireQpComputations() const
Request that quadrature point data be (pre)computed.
MooseVariableFV< Real > & _var