Piping Stress & Water-Hammer Surge
ASME B31.3 §304.1.2 pressure-design wall, Barlow hoop/longitudinal stress, §302.3.5(d) thermal-expansion stress range, and a §302.3.6 occasional-load check fed by the Method-of-Lines water-hammer transient's peak surge pressure — a code-formula line-rating screen, not a full pipe-flexibility model.
Where mechanical rating covers a vessel, this rates a pipe run to ASME B31.3 (Process Piping): the pressure-design wall, hoop/longitudinal stress against the material allowable, the thermal-expansion (displacement) stress range against its allowable, and — the panel's real differentiator — an occasional-load check that feeds the water-hammer transient's peak surge pressure straight in as an added longitudinal stress. It's a code-formula line-rating screen (outer diameter + wall you specify directly, not a nominal-pipe-size/schedule lookup table), not a 3-D pipe-flexibility model.
Show the governing equations
Where it actually lives
Open via the right-hand rail's analysis cluster (the waves icon, "Piping & surge") — one panel with two coupled halves: the Method-of-Lines water-hammer transient(length, diameter, wave speed, friction, closure time) on the left, and the B31.3 line rating (design pressure, OD, wall, a real material dropdown — A106-B/A53-B/A333-6/A312-304/A312-316, thermal ΔT, leg span, stress-intensification factor) on the right. Enabling the surge-coupling toggle feeds the transient's peak pressure into the occasional- load check live.
import requests
r = requests.post(
"https://maximalabs.io/api/analysis/piping-stress",
json={
"design_pressure": 2.0e6,
"outer_diameter": 0.219, # m (~8" pipe)
"design_temperature": 420.0,
"thermal_delta_t": 150.0, # enables the §302.3.5(d) expansion check
"pipe_span": 8.0,
"surge_pressure": 3.5e6, # e.g. from the water-hammer panel's peak_pressure
"material": "A106-B",
},
)
rating = r.json()["fields"]
print(rating["hoop_ok"], rating["expansion_ok"], rating["occasional_ok"])Failure / risk flags
pressure_design_ok = falseThe actual wall is thinner than the §304.1.2 pressure-design requirement.hoop_ok / sustained_ok = falseBarlow hoop or sustained longitudinal stress exceeds the material allowable S.expansion_ok = falseThermal-expansion stress range exceeds S_A — add flexibility (loops, expansion joints) or reduce the leg span.occasional_ok = falseSustained + surge-induced longitudinal stress exceeds 1.33·S_h — the water-hammer transient is overstressing the line.