https://mooseframework.inl.gov
FVPorosityTimeDerivative.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 #include "NS.h"
12 
14 
17 {
19  params.addClassDescription("A time derivative multiplied by a porosity material property");
20  params.addParam<MaterialPropertyName>(NS::porosity, NS::porosity, "The porosity");
21  return params;
22 }
23 
25  : FVTimeKernel(parameters), _eps(getMaterialProperty<Real>(NS::porosity))
26 {
27 }
28 
29 ADReal
31 {
33 }
FVPorosityTimeDerivative(const InputParameters &parameters)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
DualNumber< Real, DNDerivativeType, true > ADReal
static const std::string porosity
Definition: NS.h:104
static InputParameters validParams()
const MaterialProperty< Real > & _eps
The porosity.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _qp
registerMooseObject("NavierStokesApp", FVPorosityTimeDerivative)
void addClassDescription(const std::string &doc_string)
ADReal computeQpResidual() override
Applies a residual equal to .