21 params.addClassDescription(
"Momentum pressure term eps grad_P, as a flux kernel " 22 "using the divergence theoreom, in the " 23 "incompressible Navier-Stokes momentum equation.");
24 params.addRequiredParam<MooseFunctorName>(
NS::pressure,
"The pressure");
31 if (!dynamic_cast<INSFVVelocityVariable *>(&
_var))
32 mooseError(
"INSFVMomentumPressureFlux may only be used with a Navier-Stokes velocity, " 33 "of variable type INSFVSuperficialVelocityVariable.");
59 epsilon()(neighbor, state) *
_p(neighbor, state),
unsigned int number() const
const Elem & elem() const
const FaceInfo * _face_info
registerMooseObject("NavierStokesApp", INSFVMomentumPressureFlux)
Moose::StateArg determineState() const
const unsigned int _index
index x|y|z
virtual ADReal computeQpResidual() override
DualNumber< Real, DNDerivativeType, true > ADReal
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
bool onBoundary(const FaceInfo &fi) const
static InputParameters validParams()
const Elem * neighborPtr() const
A flux kernel using the divergence theorem for the pressure gradient term in the momentum equation...
unsigned int number() const
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.
virtual const Moose::FunctorBase< ADReal > & epsilon() const
static const std::string pressure
void mooseError(Args &&... args) const
Moose::FaceArg singleSidedFaceArg(const FaceInfo *fi=nullptr, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false, const Moose::StateArg *state_limiter=nullptr) const
const Moose::Functor< ADReal > & _p
The pressure.
MooseVariableFV< Real > & _var
static InputParameters validParams()
INSFVMomentumPressureFlux(const InputParameters ¶ms)
void interpolate(InterpMethod m, T &result, const T2 &value1, const T3 &value2, const FaceInfo &fi, const bool one_is_elem)
VarFaceNeighbors faceType(const std::pair< unsigned int, unsigned int > &var_sys) const