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");
32 mooseError(
"INSFVMomentumPressureFlux may only be used with a Navier-Stokes velocity, "
33 "of variable type INSFVSuperficialVelocityVariable.");
42 const bool use_elem = (face_type == FaceInfo::VarFaceNeighbors::ELEM) ||
43 (face_type == FaceInfo::VarFaceNeighbors::BOTH);
59 epsilon()(neighbor, state) *
_p(neighbor, state),
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", INSFVMomentumPressureFlux)
static InputParameters validParams()
bool onBoundary(const FaceInfo &fi) const
MooseVariableFV< Real > & _var
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 FaceInfo * _face_info
VarFaceNeighbors faceType(const std::pair< unsigned int, unsigned int > &var_sys) const
const Elem & elem() const
const Elem * neighborPtr() const
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
A flux kernel using the divergence theorem for the pressure gradient term in the momentum equation.
INSFVMomentumPressureFlux(const InputParameters ¶ms)
virtual const Moose::FunctorBase< ADReal > & epsilon() const
static InputParameters validParams()
virtual ADReal computeQpResidual() override
const Moose::Functor< ADReal > & _p
The pressure.
All objects that contribute to pressure-based (e.g.
const unsigned int _index
index x|y|z
static InputParameters validParams()
void mooseError(Args &&... args) const
unsigned int number() const
unsigned int number() const
Moose::StateArg determineState() const
void interpolate(InterpMethod m, T &result, const T2 &value1, const T3 &value2, const FaceInfo &fi, const bool one_is_elem)
static const std::string pressure