22 params.addRequiredParam<UserObjectName>(
NS::fluid,
"Fluid properties userobject");
23 params.addClassDescription(
"Computes fluid properties using a (P, T) formulation");
26 params.addRequiredRangeCheckedParam<
Real>(
27 "characteristic_length",
28 "characteristic_length > 0.0 ",
29 "characteristic length for Reynolds number calculation");
37 _d(getParam<
Real>(
"characteristic_length")),
47 _cp(declareADProperty<
Real>(
NS::
cp)),
51 _cv(declareADProperty<
Real>(
NS::
cv)),
53 _mu(declareADProperty<
Real>(
NS::
mu)),
57 _k(declareADProperty<
Real>(
NS::
k)),
93 static constexpr
Real small_number = 1e-8;
MaterialProperty< Real > & _dPr_dT
Derivative of Prandtl number with respect to temperature.
static const std::string cv
ADMaterialProperty< Real > & _cv
Isochoric specific heat capacity.
static const std::string speed
ADMaterialProperty< Real > & _mu
Dynamic viscosity.
static const std::string Reynolds
Real prandtlPropertyDerivative(const Real &mu, const Real &cp, const Real &k, const Real &dmu, const Real &dcp, const Real &dk)
Computes the derivative of the Prandtl number, $Pr{ C_p}{k}$, with respect to an arbitrary variale $$...
MaterialProperty< Real > & _dPr_dp
Derivative of Prandtl number with respect to pressure.
const ADMaterialProperty< Real > & _speed
const ADMaterialProperty< Real > & _pressure
variables
ADMaterialProperty< Real > & _cp
Isobaric specific heat capacity.
static const std::string density
ADMaterialProperty< Real > & _Re_h
Hydraulic Reynolds number.
static const std::string fluid
MaterialProperty< Real > & _dRe_dT
Derivative of pore Reynolds number with respect to temperature.
ADMaterialProperty< Real > & _Re_i
Interstitial Reynolds number.
MaterialProperty< Real > & _dmu_dp
Derivative of dynamic viscosity with respect to pressure.
static const std::string porosity
static const std::string Prandtl
static const std::string cp
static InputParameters validParams()
static const std::string T_fluid
static InputParameters validParams()
GeneralFluidProps(const InputParameters ¶meters)
static const std::string mu
static const std::string Reynolds_hydraulic
MaterialProperty< Real > & _drho_dT
Derivative of density with respect to temperature.
Computes fluid properties in (P, T) formulation.
MaterialProperty< Real > & _dRe_dp
Derivative of pore Reynolds number with respect to pressure.
Common class for single phase fluid properties.
ADMaterialProperty< Real > & _Re
Pore (particle) Reynolds number.
const Real _d
Characteristic length $d$ used in computing the Reynolds number $Re=/$.
const SinglePhaseFluidProperties & _fluid
Real reynoldsPropertyDerivative(const Real &Re, const Real &rho, const Real &mu, const Real &drho, const Real &dmu)
Computes the derivative of the Reynolds number, $Re { Vd}{}$, with respect to an arbitrary variable $...
auto reynolds(const T1 &rho, const T2 &vel, const T3 &L, const T4 &mu)
Compute Reynolds number.
MaterialProperty< Real > & _dcp_dT
Derivative of isobaric specific heat with respect to temperature.
auto prandtl(const T1 &cp, const T2 &mu, const T3 &k)
Compute Prandtl number.
const ADMaterialProperty< Real > & _T_fluid
MaterialProperty< Real > & _dk_dp
Derivative of thermal conductivity with respect to pressure.
MaterialProperty< Real > & _drho_dp
Derivative of density with respect to pressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADMaterialProperty< Real > & _Pr
Prandtl number.
static const std::string pressure
const VariableValue & _eps
Porosity.
ADMaterialProperty< Real > & _k
Thermal conductivity.
registerMooseObject("NavierStokesApp", GeneralFluidProps)
MaterialProperty< Real > & _dk_dT
Derivative of thermal conductivity with respect to temperature.
const ADMaterialProperty< Real > & _rho
MaterialProperty< Real > & _dcp_dp
Derivative of isobaric specific heat with respect to pressure.
static const std::string k
MaterialProperty< Real > & _dmu_dT
Derivative of dynamic viscosity with respect to temperature.
static const std::string Reynolds_interstitial
virtual void computeQpProperties() override