https://mooseframework.inl.gov
PWCNSFVMassTimeDerivative.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 porous weakly-compressible "
21  "Navier-Stokes continuity equation.");
22  params.addParam<MooseFunctorName>(NS::porosity, NS::porosity, "the porosity");
23  return params;
24 }
25 
27  : WCNSFVMassTimeDerivative(params), _eps(getFunctor<ADReal>(NS::porosity))
28 {
29 }
30 
31 ADReal
33 {
36 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Moose::StateArg determineState() const
PWCNSFVMassTimeDerivative(const InputParameters &params)
Computes the mass time derivative for the weakly compressible formulation of the mass equation...
DualNumber< Real, DNDerivativeType, true > ADReal
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
static const std::string porosity
Definition: NS.h:104
const Moose::Functor< ADReal > & _eps
const Elem *const & _current_elem
Computes the mass time derivative for the weakly compressible formulation of the mass equation...
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("NavierStokesApp", PWCNSFVMassTimeDerivative)
static InputParameters validParams()