21 params.addClassDescription(
22 "Computes the effective dynamic viscosity mu_eff = mu + mu_t / factor");
23 params.addRequiredParam<MooseFunctorName>(
24 "property_name",
"Name of the functor for the effective dynamic viscosity");
25 params.addRequiredParam<MooseFunctorName>(
NS::mu,
"Name of the dynamic viscosity functor");
26 params.addRequiredParam<MooseFunctorName>(
NS::mu_t,
"Name of the turbulent viscosity functor");
27 params.addRequiredParam<MooseFunctorName>(
NS::mu_t +
"_inverse_factor",
28 "Factor dividing the turbulent viscosity functor");
29 params.addParam<
Real>(
NS::mu_t +
"_extra_inverse_factor",
31 "Additional factor dividing the turbulent viscosity functor");
32 params.addParam<
bool>(
33 "add_dynamic_viscosity",
true,
"Whether add the dynamic viscosity in the expression");
45 _scale_factor_real(getParam<
Real>(
NS::
mu_t +
"_extra_inverse_factor"))
48 if (getParam<bool>(
"add_dynamic_viscosity"))
50 getParam<MooseFunctorName>(
"property_name"),
55 addFunctorProperty<GenericReal<is_ad>>(
56 getParam<MooseFunctorName>(
"property_name"),
Moose::GenericType< Real, is_ad > GenericReal
static const std::string mu_t
Real _scale_factor_real
Factor for dividing the turbulent dynamic viscosity.
static InputParameters validParams()
MooseEnumIterator begin() const
const Moose::Functor< GenericReal< is_ad > > & _mu
Functor for the dynamic viscosity.
const Moose::Functor< GenericReal< is_ad > > & _scale_factor
Functor for dividing the turbulent dynamic viscosity.
MooseEnumIterator end() const
Class used to compute the effective dynamic viscosity, notably in the presence of turbulence...
static const std::string mu
registerMooseObject("NavierStokesApp", FunctorEffectiveDynamicViscosity)
const ExecFlagEnum & _execute_enum
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Moose::FunctorBase< T > & addFunctorProperty(const std::string &name, PolymorphicLambda my_lammy, const std::set< ExecFlagType > &clearance_schedule={EXEC_ALWAYS})
static InputParameters validParams()
const Moose::Functor< GenericReal< is_ad > > & _mu_t
Functor for the turbulent dynamic viscosity.
FunctorEffectiveDynamicViscosityTempl(const InputParameters ¶meters)