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