REYNOLDS

Excel Usage

=REYNOLDS(V, D, rho, mu, nu)
  • V (float, required): Velocity [m/s]
  • D (float, required): Diameter [m]
  • rho (float, optional, default: null): Density [kg/m^3]
  • mu (float, optional, default: null): Dynamic viscosity [Pa*s]
  • nu (float, optional, default: null): Kinematic viscosity [m^2/s]

Returns (float): Reynolds number [-]

Examples

Example 1: Reynolds number with density and dynamic viscosity

Inputs:

V D rho mu
2.5 0.25 1.1613 0.000019

Excel formula:

=REYNOLDS(2.5, 0.25, 1.1613, 0.000019)

Expected output:

38200.65789

Example 2: Reynolds number with kinematic viscosity

Inputs:

V D nu
2.5 0.25 0.00001636

Excel formula:

=REYNOLDS(2.5, 0.25, 0.00001636)

Expected output:

38202.93399

Example 3: Reynolds number with higher velocity

Inputs:

V D rho mu
5 0.5 1000 0.001

Excel formula:

=REYNOLDS(5, 0.5, 1000, 0.001)

Expected output:

2500000

Example 4: Reynolds number for water flow

Inputs:

V D nu
1 0.1 0.000001

Excel formula:

=REYNOLDS(1, 0.1, 0.000001)

Expected output:

100000

Python Code

from fluids.core import Reynolds as fluids_Reynolds

def reynolds(V, D, rho=None, mu=None, nu=None):
    """
    Calculate the Reynolds number.

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

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

    Args:
        V (float): Velocity [m/s]
        D (float): Diameter [m]
        rho (float, optional): Density [kg/m^3] Default is None.
        mu (float, optional): Dynamic viscosity [Pa*s] Default is None.
        nu (float, optional): Kinematic viscosity [m^2/s] Default is None.

    Returns:
        float: Reynolds number [-]
    """
    try:
      if V is None or D is None:
        return "Error: V and D are required parameters"

      V_val = float(V)
      D_val = float(D)

      # Check that at least one valid parameter set is provided
      if rho is not None and mu is not None:
        rho_val = float(rho)
        mu_val = float(mu)
        return float(fluids_Reynolds(V=V_val, D=D_val, rho=rho_val, mu=mu_val))
      if nu is not None:
        nu_val = float(nu)
        return float(fluids_Reynolds(V=V_val, D=D_val, nu=nu_val))
      return "Error: Either (rho and mu) or nu must be provided"
    except Exception as e:
      return f"Error: {str(e)}"

Online Calculator