21 "Computes a body force due to gravity in Rhie-Chow based simulations.");
22 params.
addRequiredParam<RealVectorValue>(
"gravity",
"Direction of the gravity vector");
30 _gravity(getParam<RealVectorValue>(
"gravity")),
31 _rho(getFunctor<
ADReal>(
NS::density))
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", INSFVMomentumGravity)
static InputParameters validParams()
const Elem *const & _current_elem
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Imposes a gravitational force on the momentum equation in Rhie-Chow (incompressible) contexts.
const RealVectorValue _gravity
The gravity vector.
ADReal computeQpResidual() override
const Moose::Functor< ADReal > & _rho
The density.
INSFVMomentumGravity(const InputParameters ¶ms)
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.
const unsigned int _index
index x|y|z
static InputParameters validParams()
Moose::StateArg determineState() const
static const std::string density