WEBER

Excel Usage

=WEBER(V, L, rho, sigma)
  • V (float, required): Velocity of fluid [m/s]
  • L (float, required): Characteristic length (typically bubble diameter) [m]
  • rho (float, required): Density of fluid [kg/m^3]
  • sigma (float, required): Surface tension [N/m]

Returns (float): Weber number [-]

Examples

Example 1: Example from documentation

Inputs:

V L rho sigma
0.18 0.001 900 0.01

Excel formula:

=WEBER(0.18, 0.001, 900, 0.01)

Expected output:

2.916

Example 2: Higher velocity case

Inputs:

V L rho sigma
0.5 0.002 1000 0.072

Excel formula:

=WEBER(0.5, 0.002, 1000, 0.072)

Expected output:

6.94444

Example 3: Water with larger bubble

Inputs:

V L rho sigma
0.1 0.005 998 0.0728

Excel formula:

=WEBER(0.1, 0.005, 998, 0.0728)

Expected output:

0.68544

Example 4: Oil with small bubble

Inputs:

V L rho sigma
0.25 0.0005 850 0.035

Excel formula:

=WEBER(0.25, 0.0005, 850, 0.035)

Expected output:

0.75893

Python Code

from fluids.core import Weber as fluids_Weber

def weber(V, L, rho, sigma):
    """
    Calculate the Weber number.

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

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

    Args:
        V (float): Velocity of fluid [m/s]
        L (float): Characteristic length (typically bubble diameter) [m]
        rho (float): Density of fluid [kg/m^3]
        sigma (float): Surface tension [N/m]

    Returns:
        float: Weber number [-]
    """
    try:
        V_val = float(V)
        L_val = float(L)
        rho_val = float(rho)
        sigma_val = float(sigma)
    except Exception:
        return "Error: V, L, rho, and sigma must be numeric values."

    # Validate physical meaning
    if V_val < 0:
        return "Error: Velocity must be non-negative."
    if L_val <= 0:
        return "Error: Characteristic length must be positive."
    if rho_val <= 0:
        return "Error: Density must be positive."
    if sigma_val <= 0:
        return "Error: Surface tension must be positive."

    try:
        result = fluids_Weber(V_val, L_val, rho_val, sigma_val)
        return float(result)
    except Exception as e:
        return f"Error: Failed to calculate Weber number: {str(e)}"

Online Calculator