23 "equations, added to the right hand side.");
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")),
41 _rho_0(getParam<
Real>(
"reference_rho")),
const ElemInfo * _current_elem_info
const unsigned int _index
Index x|y|z of the momentum equation component.
virtual Real computeRightHandSideContribution() override
static InputParameters validParams()
Moose::StateArg determineState() const
const Elem * elem() const
static InputParameters validParams()
static const std::string density
virtual Real computeMatrixContribution() override
Kernel that adds the the gravity term in the momentum equations with variable density (assuming we ar...
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
LinearFVMomentumBuoyancy(const InputParameters ¶ms)
Class constructor.
const Real _rho_0
the reference density
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("NavierStokesApp", LinearFVMomentumBuoyancy)
const RealVectorValue _gravity
The gravity vector.
Real _current_elem_volume
const Moose::Functor< Real > & _rho
the density