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

Functions

Real reynolds (Real rho, Real vel, Real L, Real mu)
 Compute Reynolds number. More...
 
ADReal reynolds (const ADReal &rho, const ADReal &vel, const ADReal &L, const ADReal &mu)
 
Real prandtl (Real cp, Real mu, Real k)
 Compute Prandtl number. More...
 
ADReal prandtl (const ADReal &cp, const ADReal &mu, const ADReal &k)
 
Real grashof (Real beta, Real T_s, Real T_bulk, Real L, Real rho, Real mu, Real gravity_magnitude)
 Compute Grashof number. More...
 
ADReal grashof (const ADReal &beta, const ADReal &T_s, const ADReal &T_bulk, const ADReal &L, const ADReal &rho, const ADReal &mu, const ADReal &gravity_magnitude)
 
Real laplace (Real sigma, Real rho, Real L, Real mu)
 Compute Laplace number. More...
 
ADReal laplace (const ADReal &sigma, const ADReal &rho, const ADReal &L, const ADReal &mu)
 
Real thermalDiffusivity (Real k, Real rho, Real cp)
 Compute thermal diffusivity. More...
 
ADReal thermalDiffusivity (const ADReal &k, const ADReal &rho, const ADReal &cp)
 
Real peclet (Real vel, Real L, Real diffusivity)
 Compute Peclet number. More...
 
ADReal peclet (const ADReal &vel, const ADReal &L, const ADReal &diffusivity)
 
void deprecatedMessage ()
 

Function Documentation

◆ deprecatedMessage()

void fp::deprecatedMessage ( )

Definition at line 17 of file DimensionlessFlowNumbers.C.

Referenced by grashof(), laplace(), peclet(), prandtl(), reynolds(), and thermalDiffusivity().

18 {
19  mooseDoOnce(mooseDeprecated("This function has been moved a different file and namespace. "
20  "Please replace inclusion of DimensionlessFlowNumbers.h "
21  "with inclusion of HeatTransferUtils.h and then replace 'fp::' with "
22  "'HeatTransferUtils::'."));
23 }
void mooseDeprecated(Args &&... args)

◆ grashof() [1/2]

Real fp::grashof ( Real  beta,
Real  T_s,
Real  T_bulk,
Real  L,
Real  rho,
Real  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 54 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

55 {
57  return gravity_magnitude * beta * std::abs(T_s - T_bulk) * std::pow(L, 3) * (rho * rho) /
58  (mu * mu);
59 }
static const std::string mu
Definition: NS.h:123
void deprecatedMessage()
MooseUnits pow(const MooseUnits &, int)

◆ grashof() [2/2]

ADReal fp::grashof ( const ADReal beta,
const ADReal T_s,
const ADReal T_bulk,
const ADReal L,
const ADReal rho,
const ADReal mu,
const ADReal gravity_magnitude 
)

Definition at line 62 of file DimensionlessFlowNumbers.C.

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

◆ laplace() [1/2]

Real fp::laplace ( Real  sigma,
Real  rho,
Real  L,
Real  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 76 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

77 {
79  return sigma * rho * L / (mu * mu);
80 }
static const std::string mu
Definition: NS.h:123
void deprecatedMessage()

◆ laplace() [2/2]

ADReal fp::laplace ( const ADReal sigma,
const ADReal rho,
const ADReal L,
const ADReal mu 
)

Definition at line 83 of file DimensionlessFlowNumbers.C.

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

◆ peclet() [1/2]

Real fp::peclet ( Real  vel,
Real  L,
Real  diffusivity 
)

Compute Peclet number.

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

Definition at line 104 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

105 {
107  return std::fabs(vel) * L / diffusivity;
108 }
void deprecatedMessage()

◆ peclet() [2/2]

ADReal fp::peclet ( const ADReal vel,
const ADReal L,
const ADReal diffusivity 
)

Definition at line 111 of file DimensionlessFlowNumbers.C.

112 {
114  return std::fabs(vel) * L / diffusivity;
115 }
void deprecatedMessage()

◆ prandtl() [1/2]

Real fp::prandtl ( Real  cp,
Real  mu,
Real  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 40 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

41 {
43  return cp * mu / k;
44 }
static const std::string cp
Definition: NS.h:121
static const std::string mu
Definition: NS.h:123
void deprecatedMessage()
static const std::string k
Definition: NS.h:130

◆ prandtl() [2/2]

ADReal fp::prandtl ( const ADReal cp,
const ADReal mu,
const ADReal k 
)

Definition at line 47 of file DimensionlessFlowNumbers.C.

48 {
50  return cp * mu / k;
51 }
static const std::string cp
Definition: NS.h:121
static const std::string mu
Definition: NS.h:123
void deprecatedMessage()
static const std::string k
Definition: NS.h:130

◆ reynolds() [1/2]

Real fp::reynolds ( Real  rho,
Real  vel,
Real  L,
Real  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 26 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

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

◆ reynolds() [2/2]

ADReal fp::reynolds ( const ADReal rho,
const ADReal vel,
const ADReal L,
const ADReal mu 
)

Definition at line 33 of file DimensionlessFlowNumbers.C.

34 {
36  return rho * std::fabs(vel) * L / mu;
37 }
static const std::string mu
Definition: NS.h:123
void deprecatedMessage()

◆ thermalDiffusivity() [1/2]

Real fp::thermalDiffusivity ( Real  k,
Real  rho,
Real  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 90 of file DimensionlessFlowNumbers.C.

Referenced by TEST().

91 {
93  return k / (rho * cp);
94 }
static const std::string cp
Definition: NS.h:121
void deprecatedMessage()
static const std::string k
Definition: NS.h:130

◆ thermalDiffusivity() [2/2]

ADReal fp::thermalDiffusivity ( const ADReal k,
const ADReal rho,
const ADReal cp 
)

Definition at line 97 of file DimensionlessFlowNumbers.C.

98 {
100  return k / (rho * cp);
101 }
static const std::string cp
Definition: NS.h:121
void deprecatedMessage()
static const std::string k
Definition: NS.h:130