22 params.
addRequiredParam<RealVectorValue>(
"gravity",
"Direction of the gravity vector");
23 params.
addParam<MooseFunctorName>(
"alpha_name",
25 "The name of the thermal expansion coefficient"
26 "this is of the form rho = rho*(1-alpha (T-T_ref))");
27 params.
addRequiredParam<Real>(
"ref_temperature",
"The value for the reference temperature.");
36 _temperature(getFunctor<
ADReal>(
NS::T_fluid)),
37 _gravity(getParam<RealVectorValue>(
"gravity")),
38 _alpha(getFunctor<
ADReal>(
"alpha_name")),
39 _ref_temperature(getParam<Real>(
"ref_temperature")),
40 _rho(getFunctor<
ADReal>(
NS::density))
42 if (!
_rho.isConstant() && !getParam<bool>(
"_override_constant_check"))
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", INSFVMomentumBoussinesq)
static InputParameters validParams()
const Elem *const & _current_elem
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Imposes a Boussinesq force on the momentum equation.
INSFVMomentumBoussinesq(const InputParameters ¶ms)
ADReal computeQpResidual() override
const Moose::Functor< ADReal > & _temperature
Fluid temperature.
static InputParameters validParams()
const Moose::Functor< ADReal > & _alpha
The thermal expansion coefficient.
const RealVectorValue _gravity
The gravity vector.
const Moose::Functor< ADReal > & _rho
the density
const Real _ref_temperature
Reference temperature at which the value of _rho was measured.
All objects that contribute to pressure-based (e.g.
const unsigned int _index
index x|y|z
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
Moose::StateArg determineState() const
static const std::string density
static const std::string T_fluid
static const std::string alpha_boussinesq