https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVMatPropTimeKernel.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 "FVMatPropTimeKernel.h"
11#include "NS.h"
12
14
17{
20 "Returns a material property which should correspond to a time derivative.");
21 params.addRequiredParam<MaterialPropertyName>(
22 "mat_prop_time_derivative", "The material property containing the time derivative.");
23 return params;
24}
25
27 : FVTimeKernel(parameters),
28 _mat_prop_time_derivative(getADMaterialProperty<Real>("mat_prop_time_derivative"))
29{
30}
31
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", FVMatPropTimeKernel)
const unsigned int _qp
Applies a residual equal to a supplied material property which is supposed to represent a time deriva...
const ADMaterialProperty< Real > & _mat_prop_time_derivative
static InputParameters validParams()
ADReal computeQpResidual() override
FVMatPropTimeKernel(const InputParameters &parameters)
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)