https://mooseframework.inl.gov
LinearFVMomentumBoussinesq.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 
19 {
20 public:
22 
28 
29  virtual Real computeMatrixContribution() override;
30 
31  virtual Real computeRightHandSideContribution() override;
32 
33 protected:
35  const MooseLinearVariableFV<Real> & getTemperatureVariable(const std::string & vname);
36 
38  const unsigned int _index;
49 };
LinearFVMomentumBoussinesq(const InputParameters &params)
Class constructor.
const unsigned int _index
Index x|y|z of the momentum equation component.
static InputParameters validParams()
Kernel that adds the component of the Boussinesq term in the momentum equations to the right hand sid...
const MooseLinearVariableFV< Real > & getTemperatureVariable(const std::string &vname)
Fluid Temperature.
const Moose::Functor< Real > & _rho
the density
const MooseLinearVariableFV< Real > & _temperature_var
Pointer to the linear finite volume temperature variable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeRightHandSideContribution() override
virtual Real computeMatrixContribution() override
const Moose::Functor< Real > & _alpha
The thermal expansion coefficient.
const RealVectorValue _gravity
The gravity vector.
const Real _ref_temperature
Reference temperature at which the reference value of the density (_rho) was measured.