https://mooseframework.inl.gov
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 
10 #include "PINSFVMomentumPressure.h"
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 
35 ADReal
37 {
40 }
registerMooseObject("NavierStokesApp", PINSFVMomentumPressure)
static InputParameters validParams()
Introduces the coupled pressure term into the Navier-Stokes porous media momentum equation...
PINSFVMomentumPressure(const InputParameters &params)
Moose::StateArg determineState() const
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
ADReal computeQpResidual() override
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
the porosity
ADReal computeQpResidual() override
const Elem *const & _current_elem
static InputParameters validParams()
void mooseError(Args &&... args) const
void addClassDescription(const std::string &doc_string)
MooseVariableFV< Real > & _var