https://mooseframework.inl.gov
WCNSFVMassTimeDerivative.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 
12 #include "NS.h"
13 
15 
18 {
20  params.addClassDescription("Adds the time derivative term to the weakly-compressible "
21  "Navier-Stokes continuity equation.");
22  params.addRequiredParam<MooseFunctorName>(NS::time_deriv(NS::density),
23  "The time derivative of the density material property");
24  return params;
25 }
26 
28  : FVFunctorTimeKernel(params), _rho_dot(getFunctor<ADReal>(NS::time_deriv(NS::density)))
29 {
30 }
31 
32 ADReal
34 {
36 }
WCNSFVMassTimeDerivative(const InputParameters &params)
Moose::StateArg determineState() const
static const std::string density
Definition: NS.h:33
Computes the mass time derivative for the weakly compressible formulation of the mass equation...
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
static InputParameters validParams()
const Elem *const & _current_elem
const Moose::Functor< ADReal > & _rho_dot
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("NavierStokesApp", WCNSFVMassTimeDerivative)
std::string time_deriv(const std::string &var)
Definition: NS.h:97