https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", WCNSFVMassTimeDerivative)
const Elem *const & _current_elem
static InputParameters validParams()
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Moose::StateArg determineState() const
Computes the mass time derivative for the weakly compressible formulation of the mass equation,...
WCNSFVMassTimeDerivative(const InputParameters &params)
static InputParameters validParams()
const Moose::Functor< ADReal > & _rho_dot
static const std::string density
Definition NS.h:34
std::string time_deriv(const std::string &var)
Definition NS.h:98