https://mooseframework.inl.gov
HeatTransferUtils.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseTypes.h"
13 
15 {
16 
26 template <typename T1, typename T2, typename T3, typename T4>
27 auto
28 reynolds(const T1 & rho, const T2 & vel, const T3 & L, const T4 & mu)
29 {
30  return rho * std::fabs(vel) * L / mu;
31 }
32 
41 template <typename T1, typename T2, typename T3>
42 auto
43 prandtl(const T1 & cp, const T2 & mu, const T3 & k)
44 {
45  return cp * mu / k;
46 }
47 
60 template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
61 auto
62 grashof(const T1 & beta,
63  const T2 & T_s,
64  const T3 & T_bulk,
65  const T4 & L,
66  const T5 & rho,
67  const T6 & mu,
68  Real gravity_magnitude)
69 {
70  return gravity_magnitude * beta * std::abs(T_s - T_bulk) * std::pow(L, 3) * (rho * rho) /
71  (mu * mu);
72 }
73 
83 template <typename T1, typename T2, typename T3, typename T4>
84 auto
85 laplace(const T1 & sigma, const T2 & rho, const T3 & L, const T4 & mu)
86 {
87  return sigma * rho * L / (mu * mu);
88 }
89 
98 template <typename T1, typename T2, typename T3>
99 auto
100 thermalDiffusivity(const T1 & k, const T2 & rho, const T3 & cp)
101 {
102  return k / (rho * cp);
103 }
104 
113 template <typename T1, typename T2, typename T3>
114 auto
115 peclet(const T1 & vel, const T2 & L, const T3 & diffusivity)
116 {
117  return std::fabs(vel) * L / diffusivity;
118 }
119 
120 } // namespace HeatTransferUtils
auto peclet(const T1 &vel, const T2 &L, const T3 &diffusivity)
Compute Peclet number.
auto thermalDiffusivity(const T1 &k, const T2 &rho, const T3 &cp)
Compute thermal diffusivity.
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.
static const std::string cp
Definition: NS.h:121
static const std::string mu
Definition: NS.h:123
auto reynolds(const T1 &rho, const T2 &vel, const T3 &L, const T4 &mu)
Compute Reynolds number.
auto prandtl(const T1 &cp, const T2 &mu, const T3 &k)
Compute Prandtl number.
auto laplace(const T1 &sigma, const T2 &rho, const T3 &L, const T4 &mu)
Compute Laplace number.
MooseUnits pow(const MooseUnits &, int)
static const std::string k
Definition: NS.h:130