https://mooseframework.inl.gov
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 
13 registerMooseObject("NavierStokesApp", FVMatPropTimeKernel);
14 
17 {
19  params.addClassDescription(
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 
32 ADReal
34 {
36 }
static InputParameters validParams()
static InputParameters validParams()
ADReal computeQpResidual() override
DualNumber< Real, DNDerivativeType, true > ADReal
Applies a residual equal to a supplied material property which is supposed to represent a time deriva...
void addRequiredParam(const std::string &name, const std::string &doc_string)
registerMooseObject("NavierStokesApp", FVMatPropTimeKernel)
FVMatPropTimeKernel(const InputParameters &parameters)
const ADMaterialProperty< Real > & _mat_prop_time_derivative
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _qp
void addClassDescription(const std::string &doc_string)