LEGACY_S_PIPE_PLNS

Backward-compatible wrapper for the shape factor of a pipe between two planes. It preserves older naming while returning the same geometry factor for conduction estimates.

The heat-transfer relation is:

Q = Sk(T_1 - T_2)

Excel Usage

=LEGACY_S_PIPE_PLNS(D, Z, L)
  • D (float, required): Pipe diameter (m).
  • Z (float, required): Distance to each plane (m).
  • L (float, optional, default: 1): Pipe length (m).

Returns (float): Shape factor (m).

Example 1: Example pipe between planes

Inputs:

D Z L
0.1 5 1

Excel formula:

=LEGACY_S_PIPE_PLNS(0.1, 5, 1)

Expected output:

1.29637

Example 2: Unit length with smaller spacing

Inputs:

D Z
0.2 3

Excel formula:

=LEGACY_S_PIPE_PLNS(0.2, 3)

Expected output:

1.72484

Example 3: Larger pipe diameter

Inputs:

D Z L
0.5 10 2

Excel formula:

=LEGACY_S_PIPE_PLNS(0.5, 10, 2)

Expected output:

3.19719

Example 4: Moderate geometry values

Inputs:

D Z L
0.3 6 1.5

Excel formula:

=LEGACY_S_PIPE_PLNS(0.3, 6, 1.5)

Expected output:

2.39789

Python Code

Show Code
from ht.conduction import S_isothermal_pipe_to_two_planes as ht_S_isothermal_pipe_to_two_planes

def legacy_S_pipe_plns(D, Z, L=1):
    """
    Deprecated alias for S_pipe_two_planes.

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

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

    Args:
        D (float): Pipe diameter (m).
        Z (float): Distance to each plane (m).
        L (float, optional): Pipe length (m). Default is 1.

    Returns:
        float: Shape factor (m).
    """
    try:
        return ht_S_isothermal_pipe_to_two_planes(D=D, Z=Z, L=L)
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator

Pipe diameter (m).
Distance to each plane (m).
Pipe length (m).