SURATMAN
Excel Usage
=SURATMAN(L, rho, mu, sigma)
L(float, required): Characteristic length [m]rho(float, required): Density of fluid [kg/m^3]mu(float, required): Viscosity of fluid [Pa*s]sigma(float, required): Surface tension [N/m]
Returns (float): Suratman number [-]
Examples
Example 1: Simple example
Inputs:
| L | rho | mu | sigma |
|---|---|---|---|
| 0.0001 | 1000 | 0.001 | 0.1 |
Excel formula:
=SURATMAN(0.0001, 1000, 0.001, 0.1)
Expected output:
10000
Example 2: Larger characteristic length
Inputs:
| L | rho | mu | sigma |
|---|---|---|---|
| 0.001 | 1000 | 0.001 | 0.1 |
Excel formula:
=SURATMAN(0.001, 1000, 0.001, 0.1)
Expected output:
100000
Example 3: Lower viscosity fluid
Inputs:
| L | rho | mu | sigma |
|---|---|---|---|
| 0.0001 | 1000 | 0.0001 | 0.1 |
Excel formula:
=SURATMAN(0.0001, 1000, 0.0001, 0.1)
Expected output:
1000000
Example 4: High surface tension
Inputs:
| L | rho | mu | sigma |
|---|---|---|---|
| 0.0001 | 1000 | 0.001 | 0.5 |
Excel formula:
=SURATMAN(0.0001, 1000, 0.001, 0.5)
Expected output:
50000
Python Code
from fluids.core import Suratman as fluids_Suratman
def suratman(L, rho, mu, sigma):
"""
Calculate the Suratman number.
See: https://fluids.readthedocs.io/fluids.core.html#fluids.core.Suratman
This example function is provided as-is without any representation of accuracy.
Args:
L (float): Characteristic length [m]
rho (float): Density of fluid [kg/m^3]
mu (float): Viscosity of fluid [Pa*s]
sigma (float): Surface tension [N/m]
Returns:
float: Suratman number [-]
"""
try:
L_val = float(L)
rho_val = float(rho)
mu_val = float(mu)
sigma_val = float(sigma)
if mu_val == 0:
return "Error: Viscosity must be non-zero"
result = fluids_Suratman(L_val, rho_val, mu_val, sigma_val)
return float(result)
except Exception as e:
return f"Error: {str(e)}"