https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVMomentumBuoyancy.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13
20{
21public:
23
29
30 virtual Real computeMatrixContribution() override;
31
32 virtual Real computeRightHandSideContribution() override;
33
34protected:
36 const unsigned int _index;
40 const Real _rho_0;
42 const RealVectorValue _gravity;
43};
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
const Real _rho_0
the reference density
static InputParameters validParams()
virtual Real computeRightHandSideContribution() override