21 "Material class used to compute a friction factor of the form A * "
22 "f(r, t) + B * g(r, t) * |v_I| with A, B vector constants, f(r, t) and g(r, t) "
23 "functors of space and time, and |v_I| the interstitial speed");
26 "The name of functor storing the friction factor");
35 "A", RealVectorValue(1, 1, 1),
"Coefficient of the A * f(t) term");
37 "B", RealVectorValue(),
"Coefficient of the B * g(t) * |v_I| term");
38 params.
addParam<MooseFunctorName>(
"f",
"Functor f in the A * f(t) term");
39 params.
addParam<MooseFunctorName>(
"g",
"Functor g in the B * g(t) * |v_I| term");
46 _functor_name(getParam<MooseFunctorName>(
"functor_name")),
47 _A(getParam<RealVectorValue>(
"A")),
48 _B(getParam<RealVectorValue>(
"B")),
49 _f(getFunctor<
ADReal>(
"f")),
50 _g(getFunctor<
ADReal>(
"g")),
51 _eps(getFunctor<
ADReal>(
NS::porosity)),
52 _superficial_vel_x(getFunctor<
ADReal>(
NS::superficial_velocity_x)),
53 _superficial_vel_y(getFunctor<
ADReal>(
NS::superficial_velocity_y)),
54 _superficial_vel_z(getFunctor<
ADReal>(
NS::superficial_velocity_z))
57 const unsigned int num_components_specified =
63 num_components_specified,
64 " superficial velocity components were provided for a mesh of dimension ",
67 addFunctorProperty<ADRealVectorValue>(
77 return _A *
_f(r, t) +
_B *
_g(r, t) * speed;
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", LinearFrictionFactorFunctorMaterial)
unsigned int blocksMaxDimension() const
static InputParameters validParams()
Material class used to compute a friction factor of the form A * f(t) + B * g(t) * |v_I| with A,...
static InputParameters validParams()
const Moose::Functor< ADReal > & _superficial_vel_y
const Moose::Functor< ADReal > & _f
const Moose::Functor< ADReal > & _superficial_vel_z
const RealVectorValue _A
A, B, f(t), g(t)
MooseFunctorName _functor_name
name of the functor computed by this material
const Moose::Functor< ADReal > & _eps
Porosity.
const Moose::Functor< ADReal > & _superficial_vel_x
const Moose::Functor< ADReal > & _g
LinearFrictionFactorFunctorMaterial(const InputParameters ¶meters)
const InputParameters & parameters() const
void mooseError(Args &&... args) const
static const std::string superficial_velocity_y
static const std::string superficial_velocity_z
template ADReal computeSpeed< ADReal >(const libMesh::VectorValue< ADReal > &velocity)
static const std::string porosity
static const std::string superficial_velocity_x