SHERWOOD

Excel Usage

=SHERWOOD(K, L, D)
  • K (float, required): Mass transfer coefficient [m/s]
  • L (float, required): Characteristic length [m]
  • D (float, required): Diffusivity of a species [m^2/s]

Returns (float): Sherwood number [-]

Examples

Example 1: Simple example

Inputs:

K L D
1000 1.2 300

Excel formula:

=SHERWOOD(1000, 1.2, 300)

Expected output:

4

Example 2: Small transfer coefficient

Inputs:

K L D
0.1 0.5 0.0001

Excel formula:

=SHERWOOD(0.1, 0.5, 0.0001)

Expected output:

500

Example 3: Large diffusivity value

Inputs:

K L D
500 2 1000

Excel formula:

=SHERWOOD(500, 2, 1000)

Expected output:

1

Example 4: Unit values

Inputs:

K L D
1 1 1

Excel formula:

=SHERWOOD(1, 1, 1)

Expected output:

1

Python Code

from fluids.core import Sherwood as fluids_Sherwood

def sherwood(K, L, D):
    """
    Calculate the Sherwood number.

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

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

    Args:
        K (float): Mass transfer coefficient [m/s]
        L (float): Characteristic length [m]
        D (float): Diffusivity of a species [m^2/s]

    Returns:
        float: Sherwood number [-]
    """
    try:
      K_val = float(K)
      L_val = float(L)
      D_val = float(D)

      if D_val == 0:
        return "Error: Diffusivity must be non-zero"

      result = fluids_Sherwood(K_val, L_val, D_val)
      return float(result)
    except Exception as e:
      return f"Error: {str(e)}"

Online Calculator