NTUBES

This function estimates how many tubes fit inside a bundle diameter for a given tube diameter, pitch, pass count, and layout angle. It supports multiple counting methods and returns an integer tube count.

In abstract form, N = f(D_{bundle}, D_o, p, N_{tp}, \theta, \text{method}).

Excel Usage

=NTUBES(DBundle, Do, pitch, Ntp, angle, Ntubes_method)
  • DBundle (float, required): Outer diameter of tube bundle (m).
  • Do (float, required): Tube outer diameter (m).
  • pitch (float, required): Tube pitch (m).
  • Ntp (int, optional, default: 1): Number of tube passes (-).
  • angle (int, optional, default: 30): Tube layout angle (degrees).
  • Ntubes_method (str, optional, default: null): Tube count method selection (-).

Returns (int): Total number of tubes that fit in the bundle (-).

Example 1: Tube count with default method

Inputs:

DBundle Do pitch
1.2 0.025 0.03125

Excel formula:

=NTUBES(1.2, 0.025, 0.03125)

Expected output:

1285

Example 2: Tube count using Perry method

Inputs:

DBundle Do pitch Ntubes_method
1.2 0.025 0.03125 Perry

Excel formula:

=NTUBES(1.2, 0.025, 0.03125, "Perry")

Expected output:

1297

Example 3: Tube count using VDI method

Inputs:

DBundle Do pitch Ntubes_method
1.2 0.025 0.03125 VDI

Excel formula:

=NTUBES(1.2, 0.025, 0.03125, "VDI")

Expected output:

1340

Example 4: Tube count using HEDH method

Inputs:

DBundle Do pitch Ntubes_method
1.2 0.025 0.03125 HEDH

Excel formula:

=NTUBES(1.2, 0.025, 0.03125, "HEDH")

Expected output:

1272

Python Code

Show Code
from ht.hx import Ntubes as hx_Ntubes

def Ntubes(DBundle, Do, pitch, Ntp=1, angle=30, Ntubes_method=None):
    """
    Calculate the number of tubes that fit in a tube bundle.

    See: https://ht.readthedocs.io/en/latest/ht.hx.html

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

    Args:
        DBundle (float): Outer diameter of tube bundle (m).
        Do (float): Tube outer diameter (m).
        pitch (float): Tube pitch (m).
        Ntp (int, optional): Number of tube passes (-). Default is 1.
        angle (int, optional): Tube layout angle (degrees). Default is 30.
        Ntubes_method (str, optional): Tube count method selection (-). Valid options: Phadkeb, HEDH, VDI, Perry. Default is None.

    Returns:
        int: Total number of tubes that fit in the bundle (-).
    """
    try:
        result = hx_Ntubes(DBundle=DBundle, Do=Do, pitch=pitch, Ntp=Ntp, angle=angle, Method=Ntubes_method)
        return int(result)
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator

Outer diameter of tube bundle (m).
Tube outer diameter (m).
Tube pitch (m).
Number of tube passes (-).
Tube layout angle (degrees).
Tube count method selection (-).