21 "into the Navier-Stokes porous media momentum equation.");
23 MooseEnum momentum_component(
"x=0 y=1 z=2");
27 "The component of the momentum equation that this kernel applies to.");
36 _p(getFunctor<
ADReal>(
NS::pressure)),
37 _eps(getFunctor<
ADReal>(
NS::porosity)),
38 _index(getParam<
MooseEnum>(
"momentum_component"))
42 "PINSFVMomentumPressurePorosityGradient may only be used with a superficial velocity "
43 "variable, of variable type PINSFVSuperficialVelocityVariable.");
51 return -
_p(elem, state) *
_eps.gradient(elem, state)(
_index);
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", PINSFVMomentumPressurePorosityGradient)
static InputParameters validParams()
MooseVariableFV< Real > & _var
const Elem *const & _current_elem
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
void mooseError(Args &&... args) const
const Moose::Functor< ADReal > & _eps
the porosity variable
const Moose::Functor< ADReal > & _p
the pressure
static InputParameters validParams()
ADReal computeQpResidual() override
const unsigned int _index
index x|y|z
PINSFVMomentumPressurePorosityGradient(const InputParameters ¶ms)
Moose::StateArg determineState() const
static const std::string porosity
static const std::string pressure