MORTON

Excel Usage

=MORTON(rhol, rhog, mul, sigma, g)
  • rhol (float, required): Density of liquid phase [kg/m^3]
  • rhog (float, required): Density of gas phase [kg/m^3]
  • mul (float, required): Viscosity of liquid phase [Pa*s]
  • sigma (float, required): Surface tension between liquid-gas phase [N/m]
  • g (float, optional, default: 9.80665): Acceleration due to gravity [m/s^2]

Returns (float): Morton number [-]

Examples

Example 1: Water-air system

Inputs:

rhol rhog mul sigma
1077 76.5 0.00427 0.023

Excel formula:

=MORTON(1077, 76.5, 0.00427, 0.023)

Expected output:

2.311e-7

Example 2: High surface tension case

Inputs:

rhol rhog mul sigma
1000 1 0.001 0.1

Excel formula:

=MORTON(1000, 1, 0.001, 0.1)

Expected output:

0

Example 3: Low viscosity liquid

Inputs:

rhol rhog mul sigma
800 2 0.0001 0.03

Excel formula:

=MORTON(800, 2, 0.0001, 0.03)

Expected output:

0

Example 4: Custom gravity value

Inputs:

rhol rhog mul sigma g
1000 10 0.002 0.05 3.71

Excel formula:

=MORTON(1000, 10, 0.002, 0.05, 3.71)

Expected output:

0

Python Code

from fluids.core import Morton as fluids_Morton

def morton(rhol, rhog, mul, sigma, g=9.80665):
    """
    Calculate the Morton number.

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

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

    Args:
        rhol (float): Density of liquid phase [kg/m^3]
        rhog (float): Density of gas phase [kg/m^3]
        mul (float): Viscosity of liquid phase [Pa*s]
        sigma (float): Surface tension between liquid-gas phase [N/m]
        g (float, optional): Acceleration due to gravity [m/s^2] Default is 9.80665.

    Returns:
        float: Morton number [-]
    """
    try:
      rhol_val = float(rhol)
      rhog_val = float(rhog)
      mul_val = float(mul)
      sigma_val = float(sigma)
      g_val = float(g)

      if rhol_val <= 0 or mul_val <= 0 or sigma_val <= 0 or g_val <= 0:
        return "Error: Density, viscosity, surface tension, and gravity must be positive"

      result = fluids_Morton(rhol_val, rhog_val, mul_val, sigma_val, g_val)
      return float(result)
    except Exception as e:
      return f"Error: {str(e)}"

Online Calculator