15 ExponentialFrictionMaterial,
26 params.
addParam<MooseFunctorName>(
NS::speed,
"The velocity magnitude of the fluid.");
30 "The name of the output friction factor.");
32 "include_velocity_factor",
34 "If a factor of velocity magnitude should be included in the friction factor. This is " 35 "typically the case for prorous medium Forcheimer friction therms.");
44 _c1(getParam<
Real>(
"c1")),
45 _c2(getParam<
Real>(
"c2")),
46 _friction_factor_name(getParam<
std::string>(
"friction_factor_name")),
47 _include_velocity_factor(getParam<bool>(
"include_velocity_factor"))
51 "To be able to include an additional multiplier in the friction factor, please " 52 "provide the speed of the fluid.");
54 [
this](
const auto & r,
const auto & t) ->
ADReal
registerMooseObject("NavierStokesApp", ExponentialFrictionFunctorMaterial)
const std::string _friction_factor_name
The name of the output friction factor functor.
static const std::string speed
static InputParameters validParams()
const Real _c1
$C_1$ in $f(Re) = C_1 Re^{C_2}$
static const std::string Reynolds
const bool _include_velocity_factor
If a factor of velocity should be included or not.
DualNumber< Real, DNDerivativeType, true > ADReal
const Moose::Functor< ADReal > & _Re
Functor for the Reynolds number.
ExponentialFrictionFunctorMaterial(const InputParameters ¶meters)
Class responsible for generating a friction factor for the friction-based pressure loss terms in the ...
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const Real _c2
$C_2$ in $f(Re) = C_1 Re^{C_2}$
const Moose::Functor< ADReal > *const _speed
Speed (velocity magnitude) of the fluid.
registerMooseObjectRenamed("NavierStokesApp", ExponentialFrictionMaterial, "02/01/2025 00:00", ExponentialFrictionFunctorMaterial)
MooseUnits pow(const MooseUnits &, int)