LEGACY_S_PIPE_PAIR
Backward-compatible wrapper for the two-pipe conduction shape factor. It preserves older naming while returning the same geometry-dependent factor.
This factor is used in:
Q = Sk(T_1 - T_2)
Excel Usage
=LEGACY_S_PIPE_PAIR(D_one, D_two, W, L)
D_one(float, required): Diameter of one pipe (m).D_two(float, required): Diameter of the other pipe (m).W(float, required): Center-to-center distance (m).L(float, optional, default: 1): Pipe length (m).
Returns (float): Shape factor (m).
Example 1: Example pipe pair
Inputs:
| D_one | D_two | W | L |
|---|---|---|---|
| 0.1 | 0.2 | 1 | 1 |
Excel formula:
=LEGACY_S_PIPE_PAIR(0.1, 0.2, 1, 1)
Expected output:
1.18871
Example 2: Wider spacing and longer length
Inputs:
| D_one | D_two | W | L |
|---|---|---|---|
| 0.15 | 0.25 | 1.5 | 2 |
Excel formula:
=LEGACY_S_PIPE_PAIR(0.15, 0.25, 1.5, 2)
Expected output:
2.29685
Example 3: Short length spacing
Inputs:
| D_one | D_two | W | L |
|---|---|---|---|
| 0.08 | 0.12 | 0.6 | 0.8 |
Excel formula:
=LEGACY_S_PIPE_PAIR(0.08, 0.12, 0.6, 0.8)
Expected output:
1.00611
Example 4: Moderate geometry values
Inputs:
| D_one | D_two | W | L |
|---|---|---|---|
| 0.2 | 0.3 | 1.2 | 1.5 |
Excel formula:
=LEGACY_S_PIPE_PAIR(0.2, 0.3, 1.2, 1.5)
Expected output:
2.0753
Python Code
Show Code
from ht.conduction import S_isothermal_pipe_to_isothermal_pipe as ht_S_isothermal_pipe_to_isothermal_pipe
def legacy_S_pipe_pair(D_one, D_two, W, L=1):
"""
Deprecated alias for S_pipe_to_pipe.
See: https://ht.readthedocs.io/en/latest/ht.conduction.html
This example function is provided as-is without any representation of accuracy.
Args:
D_one (float): Diameter of one pipe (m).
D_two (float): Diameter of the other pipe (m).
W (float): Center-to-center distance (m).
L (float, optional): Pipe length (m). Default is 1.
Returns:
float: Shape factor (m).
"""
try:
return ht_S_isothermal_pipe_to_isothermal_pipe(
D1=D_one,
D2=D_two,
W=W,
L=L,
)
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Diameter of one pipe (m).
Diameter of the other pipe (m).
Center-to-center distance (m).
Pipe length (m).