https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PINSFVMomentumPressure.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
12#include "NS.h"
13
15
18{
20 params.addClassDescription("Introduces the coupled pressure term $eps \nabla P$ into the "
21 "Navier-Stokes porous media momentum equation.");
22 params.addRequiredParam<MooseFunctorName>(NS::porosity, "Porosity");
23
24 return params;
25}
26
28 : INSFVMomentumPressure(params), _eps(getFunctor<ADReal>(NS::porosity))
29{
30 if (!dynamic_cast<PINSFVSuperficialVelocityVariable *>(&_var))
31 mooseError("PINSFVMomentumPressure may only be used with a superficial velocity "
32 "variable, of variable type PINSFVSuperficialVelocityVariable.");
33}
34
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PINSFVMomentumPressure)
MooseVariableFV< Real > & _var
const Elem *const & _current_elem
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
ADReal computeQpResidual() override
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseError(Args &&... args) const
Introduces the coupled pressure term into the Navier-Stokes porous media momentum equation.
const Moose::Functor< ADReal > & _eps
the porosity
static InputParameters validParams()
PINSFVMomentumPressure(const InputParameters &params)
ADReal computeQpResidual() override
Moose::StateArg determineState() const
static const std::string porosity
Definition NS.h:108