STANTON

Excel Usage

=STANTON(h, V, rho, Cp)
  • h (float, required): Heat transfer coefficient [W/m^2/K]
  • V (float, required): Velocity [m/s]
  • rho (float, required): Density [kg/m^3]
  • Cp (float, required): Heat capacity [J/kg/K]

Returns (float): Stanton number [-]

Examples

Example 1: Example from docstring

Inputs:

h V rho Cp
5000 5 800 2000

Excel formula:

=STANTON(5000, 5, 800, 2000)

Expected output:

0.000625

Example 2: Higher heat transfer coefficient increases Stanton number

Inputs:

h V rho Cp
10000 5 800 2000

Excel formula:

=STANTON(10000, 5, 800, 2000)

Expected output:

0.00125

Example 3: Lower velocity increases Stanton number

Inputs:

h V rho Cp
5000 2.5 800 2000

Excel formula:

=STANTON(5000, 2.5, 800, 2000)

Expected output:

0.00125

Example 4: Higher density decreases Stanton number

Inputs:

h V rho Cp
5000 5 1600 2000

Excel formula:

=STANTON(5000, 5, 1600, 2000)

Expected output:

0.0003125

Python Code

from fluids.core import Stanton as fluids_Stanton

def stanton(h, V, rho, Cp):
    """
    Calculate the Stanton number.

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

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

    Args:
        h (float): Heat transfer coefficient [W/m^2/K]
        V (float): Velocity [m/s]
        rho (float): Density [kg/m^3]
        Cp (float): Heat capacity [J/kg/K]

    Returns:
        float: Stanton number [-]
    """
    try:
        h_val = float(h)
        V_val = float(V)
        rho_val = float(rho)
        Cp_val = float(Cp)
    except Exception:
        return "Error: All parameters must be numeric values."

    if V_val == 0 or rho_val == 0 or Cp_val == 0:
        return "Error: V, rho, and Cp must not be zero."

    try:
        result = fluids_Stanton(h_val, V_val, rho_val, Cp_val)
        return float(result)
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator