https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PCNSFVDensityTimeDerivative.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 kernel for which the form is eps * ddt(rho*var).");
20 params.addParam<MaterialPropertyName>(NS::porosity, NS::porosity, "The porosity");
21 params.addRequiredCoupledVar(NS::density, "The density variable.");
22 return params;
23}
24
26 : FVQpTimeKernel(parameters),
27 _eps(getMaterialProperty<Real>(NS::porosity)),
28 _rho_dot(adCoupledDot(NS::density)),
29 _rho(adCoupledValue(NS::density))
30{
31}
32
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PCNSFVDensityTimeDerivative)
const unsigned int _qp
const ADVariableValue & _u
static InputParameters validParams()
const ADVariableValue & _u_dot
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
PCNSFVDensityTimeDerivative(const InputParameters &parameters)
const MaterialProperty< Real > & _eps
The porosity.
static const std::string density
Definition NS.h:34
static const std::string porosity
Definition NS.h:108