22 params.
addCoupledVar(
"beta",
"Remapped volume fraction of liquid");
27 params.
addRequiredParam<MaterialPropertyName>(
"Re",
"Reynolds number property name");
28 params.
addRequiredParam<MaterialPropertyName>(
"rho",
"Density of the phase");
29 params.
addRequiredParam<MaterialPropertyName>(
"vel",
"Velocity of the phase");
31 params.
addRequiredParam<MaterialPropertyName>(
"mu",
"Dynamic viscosity of the phase");
41 _Re_name(getParam<MaterialPropertyName>(
"Re")),
43 _rho(getMaterialProperty<
Real>(
"rho")),
44 _drho_dbeta(isCoupled(
"beta") ? &getMaterialPropertyDerivativeTHM<
Real>(
"rho",
"beta")
46 _drho_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"rho",
"arhoA")),
48 _vel(getMaterialProperty<
Real>(
"vel")),
49 _dvel_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"vel",
"arhoA")),
50 _dvel_darhouA(getMaterialPropertyDerivativeTHM<
Real>(
"vel",
"arhouA")),
52 _D_h(getMaterialProperty<
Real>(
"D_h")),
54 _mu(getMaterialProperty<
Real>(
"mu")),
55 _dmu_dbeta(isCoupled(
"beta") ? &getMaterialPropertyDerivative<
Real>(
"mu",
"beta") : nullptr),
56 _dmu_darhoA(getMaterialPropertyDerivative<
Real>(
"mu",
"arhoA")),
57 _dmu_darhouA(getMaterialPropertyDerivative<
Real>(
"mu",
"arhouA")),
58 _dmu_darhoEA(getMaterialPropertyDerivative<
Real>(
"mu",
"arhoEA")),
60 _Re(declareProperty<
Real>(_Re_name)),
61 _dRe_dbeta(isCoupled(
"beta") ? &declarePropertyDerivativeTHM<
Real>(_Re_name,
"beta") : nullptr),
62 _dRe_darhoA(declarePropertyDerivativeTHM<
Real>(_Re_name,
"arhoA")),
63 _dRe_darhouA(declarePropertyDerivativeTHM<
Real>(_Re_name,
"arhouA")),
64 _dRe_darhoEA(declarePropertyDerivativeTHM<
Real>(_Re_name,
"arhoEA"))
78 (*_dRe_dbeta)[
_qp] = dRe_drho * (*_drho_dbeta)[
_qp] + dRe_dmu * (*_dmu_dbeta)[
_qp];
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
const MaterialProperty< Real > & _dmu_darhoA
MaterialProperty< Real > & _Re
Reynolds.
const MaterialProperty< Real > & _dmu_darhoEA
const MaterialProperty< Real > & _vel
Velocity of the phase.
auto Reynolds(const T1 &volume_fraction, const T2 &rho, const T3 &vel, const T4 &D_h, const T5 &mu)
Compute Reynolds number.
const MaterialProperty< Real > & _drho_darhoA
MaterialProperty< Real > & _dRe_darhoEA
const MaterialProperty< Real > & _dmu_darhouA
static InputParameters validParams()
const MaterialProperty< Real > & _dvel_darhoA
MaterialProperty< Real > & _dRe_darhouA
ReynoldsNumberMaterial(const InputParameters ¶meters)
const MaterialProperty< Real > & _rho
Density of the phase.
const MaterialProperty< Real > & _mu
Dynamic viscosity of the phase.
const MaterialProperty< Real > & _dvel_darhouA
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _dRe_darhoA
static InputParameters validParams()
virtual void computeQpProperties()
Computes Reynolds number as a material property.
MooseUnits pow(const MooseUnits &, int)
registerMooseObject("ThermalHydraulicsApp", ReynoldsNumberMaterial)
const MaterialProperty< Real > & _D_h
Hydraulic diameter.