BEND_ROUNDED

Overview

Calculate the loss coefficient (K) for a rounded pipe bend (elbow) using various methods.

Excel Usage

=BEND_ROUNDED(Di, angle, rc, Re, bend_method)
  • Di (float, required): Inside diameter of pipe [m]
  • angle (float, required): Angle of bend [degrees]
  • rc (float, required): Radius of curvature of the bend [m]
  • Re (float, optional, default: 100000): Reynolds number of the pipe flow [-]
  • bend_method (str, optional, default: “Rennels”): Calculation method

Returns (float): Loss coefficient K for the rounded bend [-]

Examples

Example 1: 90 degree bend with Rennels method

Inputs:

Di angle rc Re
0.1 90 0.15 100000

Excel formula:

=BEND_ROUNDED(0.1, 90, 0.15, 100000)

Expected output:

0.2253

Example 2: 45 degree bend

Inputs:

Di angle rc Re
0.1 45 0.15 100000

Excel formula:

=BEND_ROUNDED(0.1, 45, 0.15, 100000)

Expected output:

0.1552

Example 3: 90 degree bend with Crane method

Inputs:

Di angle rc Re bend_method
0.1 90 0.15 100000 Crane

Excel formula:

=BEND_ROUNDED(0.1, 90, 0.15, 100000, "Crane")

Expected output:

"Error: Cannot specify bothrcandbend_diameters"

Example 4: 90 degree bend with Swamee method

Inputs:

Di angle rc Re bend_method
0.1 90 0.15 100000 Swamee

Excel formula:

=BEND_ROUNDED(0.1, 90, 0.15, 100000, "Swamee")

Expected output:

0.3717

Python Code

from fluids.fittings import bend_rounded as fluids_bend_rounded

def bend_rounded(Di, angle, rc, Re=100000, bend_method='Rennels'):
    """
    Calculate the loss coefficient (K) for a rounded pipe bend (elbow) using various methods.

    See: https://fluids.readthedocs.io/fluids.fittings.html#fluids.fittings.bend_rounded

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

    Args:
        Di (float): Inside diameter of pipe [m]
        angle (float): Angle of bend [degrees]
        rc (float): Radius of curvature of the bend [m]
        Re (float, optional): Reynolds number of the pipe flow [-] Default is 100000.
        bend_method (str, optional): Calculation method Valid options: Rennels, Miller, Crane, Ito, Swamee. Default is 'Rennels'.

    Returns:
        float: Loss coefficient K for the rounded bend [-]
    """
    try:
      try:
        Di = float(Di)
        angle = float(angle)
        rc = float(rc)
        Re = float(Re)
      except (ValueError, TypeError):
        return "Error: Di, angle, rc, and Re must be numbers."

      if Di <= 0:
        return "Error: Di must be positive."
      if angle <= 0 or angle > 180:
        return "Error: Angle must be between 0 and 180 degrees."
      if rc <= 0:
        return "Error: Rc must be positive."
      if Re <= 0:
        return "Error: Re must be positive."

      result = fluids_bend_rounded(Di=Di, angle=angle, rc=rc, Re=Re, method=bend_method)
      return float(result)
    except Exception as e:
      return f"Error: {str(e)}"

Online Calculator