PECLET_HEAT

Excel Usage

=PECLET_HEAT(V, L, rho, Cp, k, alpha)
  • V (float, required): Velocity [m/s]
  • L (float, required): Characteristic length [m]
  • rho (float, optional, default: null): Density [kg/m^3]
  • Cp (float, optional, default: null): Heat capacity [J/kg/K]
  • k (float, optional, default: null): Thermal conductivity [W/m/K]
  • alpha (float, optional, default: null): Thermal diffusivity [m^2/s]

Returns (float): Peclet number (heat) [-]

Examples

Example 1: Peclet heat with density, heat capacity, and thermal conductivity

Inputs:

V L rho Cp k
1.5 2 1000 4000 0.6

Excel formula:

=PECLET_HEAT(1.5, 2, 1000, 4000, 0.6)

Expected output:

20000000

Example 2: Peclet heat with thermal diffusivity

Inputs:

V L alpha
1.5 2 1e-7

Excel formula:

=PECLET_HEAT(1.5, 2, 1e-7)

Expected output:

30000000

Example 3: Peclet heat with higher velocity

Inputs:

V L rho Cp k
5 1.5 900 3500 0.5

Excel formula:

=PECLET_HEAT(5, 1.5, 900, 3500, 0.5)

Expected output:

47250000

Example 4: Peclet heat with small thermal diffusivity

Inputs:

V L alpha
2 0.1 5e-8

Excel formula:

=PECLET_HEAT(2, 0.1, 5e-8)

Expected output:

4000000

Python Code

from fluids.core import Peclet_heat as fluids_Peclet_heat

def peclet_heat(V, L, rho=None, Cp=None, k=None, alpha=None):
    """
    Calculate the Peclet number for heat transfer.

    See: https://fluids.readthedocs.io/fluids.core.html#fluids.core.Peclet_heat

    This example function is provided as-is without any representation of accuracy.

    Args:
        V (float): Velocity [m/s]
        L (float): Characteristic length [m]
        rho (float, optional): Density [kg/m^3] Default is None.
        Cp (float, optional): Heat capacity [J/kg/K] Default is None.
        k (float, optional): Thermal conductivity [W/m/K] Default is None.
        alpha (float, optional): Thermal diffusivity [m^2/s] Default is None.

    Returns:
        float: Peclet number (heat) [-]
    """
    try:
      if V is None or L is None:
        return "Error: V and L are required parameters"

      V_val = float(V)
      L_val = float(L)

      # Check that at least one valid parameter set is provided
      if alpha is not None:
        alpha_val = float(alpha)
        return float(fluids_Peclet_heat(V=V_val, L=L_val, alpha=alpha_val))
      if rho is not None and Cp is not None and k is not None:
        rho_val = float(rho)
        Cp_val = float(Cp)
        k_val = float(k)
        return float(fluids_Peclet_heat(V=V_val, L=L_val, rho=rho_val, Cp=Cp_val, k=k_val))
      return "Error: Either alpha or all of (rho, Cp, k) must be provided"
    except Exception as e:
      return f"Error: {str(e)}"

Online Calculator