SCHMIDT

Excel Usage

=SCHMIDT(D, mu, nu, rho)
  • D (float, required): Diffusivity of a species [m^2/s]
  • mu (float, optional, default: null): Dynamic viscosity [Pa*s]
  • nu (float, optional, default: null): Kinematic viscosity [m^2/s]
  • rho (float, optional, default: null): Density [kg/m^3]

Returns (float): Schmidt number [-]

Examples

Example 1: Schmidt number with dynamic viscosity and density

Inputs:

D mu rho
0.000002 0.00000461 800

Excel formula:

=SCHMIDT(0.000002, 0.00000461, 800)

Expected output:

0.00288

Example 2: Schmidt number with kinematic viscosity

Inputs:

D nu
1e-9 6e-7

Excel formula:

=SCHMIDT(1e-9, 6e-7)

Expected output:

600

Example 3: Schmidt number with larger diffusivity

Inputs:

D mu rho
0.000005 0.00001 900

Excel formula:

=SCHMIDT(0.000005, 0.00001, 900)

Expected output:

0.00222

Example 4: Schmidt number with small diffusivity

Inputs:

D nu
5e-10 0.000001

Excel formula:

=SCHMIDT(5e-10, 0.000001)

Expected output:

2000

Python Code

from fluids.core import Schmidt as fluids_Schmidt

def schmidt(D, mu=None, nu=None, rho=None):
    """
    Calculate the Schmidt number.

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

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

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

    Returns:
        float: Schmidt number [-]
    """
    try:
      if D is None:
        return "Error: D (diffusivity) is a required parameter"

      D_val = float(D)

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

Online Calculator