23 "equations, added to the right hand side.");
26 params.
addParam<MooseFunctorName>(
"alpha_name",
28 "The name of the thermal expansion coefficient" 29 "this is of the form rho = rho_ref*(1-alpha (T-T_ref))");
32 MooseEnum momentum_component(
"x=0 y=1 z=2");
36 "The component of the momentum equation that this kernel applies to.");
42 _index(getParam<
MooseEnum>(
"momentum_component")),
43 _temperature_var(getTemperatureVariable(
NS::
T_fluid)),
45 _alpha(getFunctor<
Real>(
"alpha_name")),
46 _ref_temperature(getParam<
Real>(
"ref_temperature")),
49 if (!
_rho.isConstant())
61 "The fluid temperature variable should be of type MooseLinearVariableFVReal!");
const ElemInfo * _current_elem_info
LinearFVMomentumBoussinesq(const InputParameters ¶ms)
Class constructor.
const unsigned int _index
Index x|y|z of the momentum equation component.
void paramError(const std::string ¶m, Args... args) const
registerMooseObject("NavierStokesApp", LinearFVMomentumBoussinesq)
Moose::StateArg determineState() const
const Elem * elem() const
static const std::string alpha_boussinesq
static InputParameters validParams()
static const std::string density
static InputParameters validParams()
virtual const MooseVariableFieldBase & getVariable(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
static const std::string T_fluid
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.
Real getElemValue(const ElemInfo &elem_info, const StateArg &state) const
const RealVectorValue _gravity
The gravity vector.
FEProblemBase & _fe_problem
Real _current_elem_volume
const Real _ref_temperature
Reference temperature at which the reference value of the density (_rho) was measured.