LEGACY_S_PIPE_ECC
Backward-compatible wrapper for the eccentric-pipe conduction shape factor. It preserves legacy naming while returning the same geometric factor used in simplified steady conduction analysis.
The heat-rate relation is:
Q = Sk(T_1 - T_2)
Excel Usage
=LEGACY_S_PIPE_ECC(D_one, D_two, Z, L)
D_one(float, required): Diameter of inner pipe (m).D_two(float, required): Diameter of outer pipe (m).Z(float, required): Offset between pipe centers (m).L(float, optional, default: 1): Pipe length (m).
Returns (float): Shape factor (m).
Example 1: Example eccentric pipes
Inputs:
| D_one | D_two | Z | L |
|---|---|---|---|
| 0.1 | 0.4 | 0.05 | 10 |
Excel formula:
=LEGACY_S_PIPE_ECC(0.1, 0.4, 0.05, 10)
Expected output:
47.7098
Example 2: Unit length eccentric pipes
Inputs:
| D_one | D_two | Z |
|---|---|---|
| 0.2 | 0.6 | 0.08 |
Excel formula:
=LEGACY_S_PIPE_ECC(0.2, 0.6, 0.08)
Expected output:
6.19483
Example 3: Larger offset with longer length
Inputs:
| D_one | D_two | Z | L |
|---|---|---|---|
| 0.15 | 0.5 | 0.12 | 5 |
Excel formula:
=LEGACY_S_PIPE_ECC(0.15, 0.5, 0.12, 5)
Expected output:
34.9225
Example 4: Small diameter pipes
Inputs:
| D_one | D_two | Z | L |
|---|---|---|---|
| 0.05 | 0.2 | 0.03 | 2 |
Excel formula:
=LEGACY_S_PIPE_ECC(0.05, 0.2, 0.03, 2)
Expected output:
9.78228
Python Code
Show Code
from ht.conduction import S_isothermal_pipe_eccentric_to_isothermal_pipe as ht_S_isothermal_pipe_eccentric_to_isothermal_pipe
def legacy_S_pipe_ecc(D_one, D_two, Z, L=1):
"""
Deprecated alias for S_pipe_ecc_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 inner pipe (m).
D_two (float): Diameter of outer pipe (m).
Z (float): Offset between pipe centers (m).
L (float, optional): Pipe length (m). Default is 1.
Returns:
float: Shape factor (m).
"""
try:
return ht_S_isothermal_pipe_eccentric_to_isothermal_pipe(
D1=D_one,
D2=D_two,
Z=Z,
L=L,
)
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Diameter of inner pipe (m).
Diameter of outer pipe (m).
Offset between pipe centers (m).
Pipe length (m).