https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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{
30}
31
DualNumber< Real, DNDerivativeType, true > ADReal
registerADMooseObject("MooseApp", FVTimeKernel)
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
static InputParameters validParams()
const unsigned int _qp
FVTimeKernel(const InputParameters &parameters)
const ADVariableValue & _u_dot
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.