#piping
2 APIs with this tag
Pressure Vessel API
Thin-walled pressure-vessel engineering maths as an API, computed locally and deterministically. The thin-wall endpoint computes the wall stresses in a cylindrical or spherical vessel under internal pressure: for a cylinder the hoop (circumferential) stress σ_h = p·r/t and the longitudinal stress σ_l = p·r/(2t), which is half the hoop — so cylinders tend to split along their length — together with the von Mises equivalent stress, and for a sphere the single biaxial stress σ = p·r/(2t); it also reports the radius-to-thickness ratio and whether the thin-wall assumption (r/t ≳ 10) holds. The thickness endpoint computes the wall thickness required to keep the hoop stress within an allowable value, t = p·r/(σ_allow·E), with a weld-joint efficiency factor. The burst endpoint computes the theoretical burst pressure of a pipe from Barlow's formula, p = 2·S·t/OD, using the ultimate tensile strength. Pressures and stresses are in pascals (megapascals also returned) and dimensions in metres. Everything is computed locally and deterministically, so it is instant and private. Ideal for mechanical, chemical-plant, piping, boiler and tank-design app developers, ASME-style sizing and safety tools, and engineering education; for code work consult the applicable standards. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is thin-walled vessel stress; for general stress transformation use a Mohr-circle API and for fatigue a fatigue API.
api.oanor.com/pressurevessel-api
Pipe Pressure Drop API
Darcy-Weisbach pipe pressure-drop and head-loss as an API, computed locally and deterministically. The friction endpoint gives the Darcy friction factor: laminar flow uses f = 64/Re, and turbulent flow uses the explicit Swamee-Jain approximation of the Colebrook-White equation, f = 0.25/[log₁₀(ε/3.7D + 5.74/Re⁰·⁹)]², from a Reynolds number (given directly, or computed from velocity, diameter and fluid) and the relative roughness, classifying the flow as laminar, transitional or turbulent. The headloss endpoint computes the major head loss hf = f·(L/D)·v²/(2g) from a friction factor (given or derived) and the pipe length, diameter and velocity, and — given the fluid density — the pressure drop Δp = ρ·g·hf in pascals, kilopascals and bar. The pipe endpoint does the whole calculation end to end: from a flow rate or velocity, the pipe diameter, length, fluid (water, seawater, air, oil and more, or a custom density and viscosity) and roughness material, it returns the velocity, Reynolds number, friction factor, head loss, pressure drop and the pumping power needed to overcome friction. Everything is computed locally and deterministically, so it is instant and private. Ideal for plumbing, HVAC and process-piping tools, hydraulics and pump-sizing apps, irrigation and fire-protection design, and engineering education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is pipe friction pressure drop; for the continuity relation and Reynolds number use a pipe-flow API and for pump power and head use a pump API.
api.oanor.com/darcy-api