23 "equations, added to the right hand side.");
25 params.
addRequiredParam<RealVectorValue>(
"gravity",
"Gravitational acceleration vector.");
27 params.
addRequiredParam<Real>(
"reference_rho",
"The value for the reference density");
28 MooseEnum momentum_component(
"x=0 y=1 z=2");
32 "The component of the momentum equation that this kernel applies to.");
39 _index(getParam<
MooseEnum>(
"momentum_component")),
40 _rho(getFunctor<Real>(
NS::density)),
41 _rho_0(getParam<Real>(
"reference_rho")),
42 _gravity(getParam<RealVectorValue>(
"gravity"))
registerMooseObject("NavierStokesApp", LinearFVMomentumBuoyancy)
const Elem * elem() const
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
const ElemInfo * _current_elem_info
static InputParameters validParams()
Real _current_elem_volume
Kernel that adds the the gravity term in the momentum equations with variable density (assuming we ar...
const RealVectorValue _gravity
The gravity vector.
const Moose::Functor< Real > & _rho
the density
const unsigned int _index
Index x|y|z of the momentum equation component.
virtual Real computeMatrixContribution() override
LinearFVMomentumBuoyancy(const InputParameters ¶ms)
Class constructor.
const Real _rho_0
the reference density
static InputParameters validParams()
virtual Real computeRightHandSideContribution() override
Moose::StateArg determineState() const
static const std::string density