Sizing HVAC ducts in JavaScript using Colebrook-White instead of a friction chart
A developer explains how the traditional HVAC duct-sizing ductulator and friction chart rely on the same underlying equations, which were implemented in about 80 lines of plain JavaScript. The approach uses Darcy-Weisbach for pressure loss and the implicit Colebrook-White equation for the friction factor, starting from the Swamee-Jain approximation refined with Newton's method. The solver works entirely in SI units, converting to imperial only at the interface, and rounds the computed diameter up to a catalogue size. The author notes the web calculator is a port of the C# core of their Ductwise app, validated against golden test vectors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in