https://mooseframework.inl.gov
Functions
HeatTransferUtils Namespace Reference

Functions

template<typename T1 , typename T2 , typename T3 , typename T4 >
auto reynolds (const T1 &rho, const T2 &vel, const T3 &L, const T4 &mu)
 Compute Reynolds number. More...
 
template<typename T1 , typename T2 , typename T3 >
auto prandtl (const T1 &cp, const T2 &mu, const T3 &k)
 Compute Prandtl number. More...
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
auto grashof (const T1 &beta, const T2 &T_s, const T3 &T_bulk, const T4 &L, const T5 &rho, const T6 &mu, Real gravity_magnitude)
 Compute Grashof number. More...
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
auto laplace (const T1 &sigma, const T2 &rho, const T3 &L, const T4 &mu)
 Compute Laplace number. More...
 
template<typename T1 , typename T2 , typename T3 >
auto thermalDiffusivity (const T1 &k, const T2 &rho, const T3 &cp)
 Compute thermal diffusivity. More...
 
template<typename T1 , typename T2 , typename T3 >
auto peclet (const T1 &vel, const T2 &L, const T3 &diffusivity)
 Compute Peclet number. More...
 

Function Documentation

◆ grashof()

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
auto HeatTransferUtils::grashof ( const T1 &  beta,
const T2 &  T_s,
const T3 &  T_bulk,
const T4 &  L,
const T5 &  rho,
const T6 &  mu,
Real  gravity_magnitude 
)

Compute Grashof number.

Parameters
betaThermal expansion coefficient [1/K]
T_sSurface temperature [K]
T_bulkBulk temperature [K]
LCharacteristic length [m]
rhoDensity [kg/m^3]
muDynamic viscosity [Pa-s]
gravity_magnitudeGravitational acceleration magnitude
Returns
Grashof number

Definition at line 62 of file HeatTransferUtils.h.

Referenced by ConjugateHTNumbersFunctorMaterialTempl< is_ad >::ConjugateHTNumbersFunctorMaterialTempl(), and TEST().

69 {
70  return gravity_magnitude * beta * std::abs(T_s - T_bulk) * std::pow(L, 3) * (rho * rho) /
71  (mu * mu);
72 }
static const std::string mu
Definition: NS.h:123
MooseUnits pow(const MooseUnits &, int)

◆ laplace()

template<typename T1 , typename T2 , typename T3 , typename T4 >
auto HeatTransferUtils::laplace ( const T1 &  sigma,
const T2 &  rho,
const T3 &  L,
const T4 &  mu 
)

Compute Laplace number.

Parameters
sigmaSurface tension [N/m]
rhoDensity [kg/m^3]
LCharacteristic length [m]
muDynamic viscosity [Pa-s]
Returns
Laplace number

Definition at line 85 of file HeatTransferUtils.h.

Referenced by TEST().

86 {
87  return sigma * rho * L / (mu * mu);
88 }
static const std::string mu
Definition: NS.h:123

◆ peclet()

template<typename T1 , typename T2 , typename T3 >
auto HeatTransferUtils::peclet ( const T1 &  vel,
const T2 &  L,
const T3 &  diffusivity 
)

Compute Peclet number.

Parameters
velVelocity [m/s]
LCharacteristic length [m]
diffusivityDiffusivity
Returns
Peclet number

Definition at line 115 of file HeatTransferUtils.h.

Referenced by THM::Peclet(), and TEST().

116 {
117  return std::fabs(vel) * L / diffusivity;
118 }

◆ prandtl()

template<typename T1 , typename T2 , typename T3 >
auto HeatTransferUtils::prandtl ( const T1 &  cp,
const T2 &  mu,
const T3 &  k 
)

Compute Prandtl number.

Parameters
cpIsobaric specific heat [J/K]
muDynamic viscosity [Pa-s]
kThermal conductivity [W/m-K]
Returns
Prandtl number

Definition at line 43 of file HeatTransferUtils.h.

Referenced by GeneralFluidProps::computeQpProperties(), ConjugateHTNumbersFunctorMaterialTempl< is_ad >::ConjugateHTNumbersFunctorMaterialTempl(), GeneralFunctorFluidPropsTempl< is_ad >::GeneralFunctorFluidPropsTempl(), THM::Prandtl(), and TEST().

44 {
45  return cp * mu / k;
46 }
static const std::string cp
Definition: NS.h:121
static const std::string mu
Definition: NS.h:123
static const std::string k
Definition: NS.h:130

◆ reynolds()

template<typename T1 , typename T2 , typename T3 , typename T4 >
auto HeatTransferUtils::reynolds ( const T1 &  rho,
const T2 &  vel,
const T3 &  L,
const T4 &  mu 
)

Compute Reynolds number.

Parameters
rhoDensity [kg/m^3]
velVelocity [m/s]
LCharacteristic length [m]
muDynamic viscosity [Pa-s]
Returns
Reynolds number

Definition at line 28 of file HeatTransferUtils.h.

Referenced by GeneralFluidProps::computeQpProperties(), GeneralFunctorFluidPropsTempl< is_ad >::GeneralFunctorFluidPropsTempl(), THM::Reynolds(), and TEST().

29 {
30  return rho * std::fabs(vel) * L / mu;
31 }
static const std::string mu
Definition: NS.h:123

◆ thermalDiffusivity()

template<typename T1 , typename T2 , typename T3 >
auto HeatTransferUtils::thermalDiffusivity ( const T1 &  k,
const T2 &  rho,
const T3 &  cp 
)

Compute thermal diffusivity.

Parameters
kThermal conductivity [W/m-K]
rhoDensity [kg/m^3]
cpIsobaric specific heat [J/K]
Returns
Thermal diffusivity

Definition at line 100 of file HeatTransferUtils.h.

Referenced by THM::Peclet(), and TEST().

101 {
102  return k / (rho * cp);
103 }
static const std::string cp
Definition: NS.h:121
static const std::string k
Definition: NS.h:130