grokkingstuffHomeBlogProjectsWikiCalculatorsAbout

Fluid mechanics & piping systems

modified2026-07-23statusfinished

Thirteen fluid & piping calculators: viscosity temperature dependence, Bernoulli energy head, pump/motor power, minor-loss K-factors, pipe velocity/diameter sizing, Darcy-Weisbach friction loss, compressed air pressure drop, hydraulic diameter, natural gas piping, pipe packing geometry, thermal expansion, tank fill volume with dipstick table, and a flow-rate unit converter. (For Reynolds number, see the Reynolds & flow regime page.)

Index

Viscosity temperature dependence

[3.2] Sutherland & Andrade equations

$$\mu(T)=\mu_0\left(\frac{T}{T_0}\right)^{3/2}\frac{T_0+S}{T+S}\qquad \nu=\frac{\mu}{\rho}$$

Sutherland's law for gases ($S$ in K: air S≈110 K); Andrade $\mu=Ae^{B/T}$ for liquids. Source: Engineering ToolBox.

Bernoulli pressure & energy line

[3.3] Bernoulli equation

$$p_1+\frac{1}{2}\rho v_1^2+\rho g z_1=p_2+\frac{1}{2}\rho v_2^2+\rho g z_2$$

Solves for the missing state variable along an inviscid streamline. Source: Engineering ToolBox (apps.engineeringtoolbox.com).

Pump power & motor sizing

[3.4] Pump power equations

$$P_{\text{hyd}}=\rho g Q H,\quad P_{\text{shaft}}=\frac{P_{\text{hyd}}}{\eta_{\text{pump}}},\quad P_{\text{elec}}=\frac{P_{\text{shaft}}}{\eta_{\text{motor}}}$$

$H$ = total dynamic head (m). Source: Engineering ToolBox (apps.engineeringtoolbox.com).

Minor loss fitting K-factor

[3.6] Minor loss formula

$$h_L=K\left(\frac{v^2}{2g}\right),\qquad \Delta P=K\left(\frac{1}{2}\rho v^2\right)$$

Typical K-values: 90° elbow 0.3–1.5, tee 0.5–2.0, gate valve (open) 0.2–0.5, globe valve 3.5–10. Source: Engineering ToolBox.

Pipe velocity & diameter sizing

[3.7] Velocity & diameter formulas

$$v=\frac{4Q}{\pi D^2},\qquad D=\sqrt{\frac{4Q}{\pi v}}$$

Recommended: liquids 1–3 m/s, gases 10–20 m/s, steam 25–40 m/s. Source: Engineering ToolBox.

Darcy-Weisbach friction loss

[3.8] Colebrook-White & Darcy-Weisbach

$$\frac{1}{\sqrt{f}}=-2\log_{10}\!\left(\frac{\varepsilon/D}{3.7}+\frac{2.51}{Re\,\sqrt{f}}\right),\quad h_f=f\frac{L}{D}\frac{v^2}{2g}$$

Colebrook solved iteratively (10 rounds from Swamee-Jain seed). Source: Engineering ToolBox.

Compressed air pressure drop

[3.9] Compressed air line losses

$$\Delta P=\frac{c\cdot L\cdot Q^{1.85}}{p\cdot D^{5}}$$

$c\approx 7.57\times10^{-4}$ for US units (psi, ft, cfm). Accounts for gauge pressure. Source: Engineering ToolBox.

Hydraulic diameter (non-circular ducts)

[3.10] Hydraulic diameter

$$D_h=\frac{4A}{P_{\text{wetted}}},\qquad Re_{D_h}=\frac{v D_h}{\nu}$$

For a full circular pipe $D_h=D$. Source: Engineering ToolBox.

Natural gas piping sizing

[3.11] Mueller formula (low-pressure gas)

$$Q=0.623\left(\frac{d^5(p_1^2-p_2^2)}{S\cdot L\cdot\mu^{0.15}}\right)^{0.574}$$

Low-pressure natural gas (<7 kPa). $d$ in mm, $p$ in kPa, $L$ in m, $S$ = specific gravity (≈0.6), $\mu\approx1.1\times10^{-5}$ Pa·s. Source: Engineering ToolBox.

Pipe packing (circles in circle)

[3.12] Circle packing estimate

$$N\approx0.907\left(\frac{D}{d}\right)^2-0.98$$

Approximate maximum count of equal small circles inside a larger circle (conduit fill). Source: Engineering ToolBox.

Linear thermal pipe expansion

[3.13] Thermal expansion

$$\Delta L=\alpha\cdot L\cdot(T_{\text{max}}-T_{\text{install}}),\quad L_{\text{loop}}=K\sqrt{D\cdot\Delta L}$$

Steel $\alpha\approx12\times10^{-6}/$°C, PVC $\alpha\approx80\times10^{-6}/$°C. $K\approx3$ for U-loops. Source: Engineering ToolBox.

Tank fill volume & dipstick table

[3.14] Horizontal cylindrical tank

$$V(h)=L\left[R^2\arccos\!\left(\frac{R-h}{R}\right)-(R-h)\sqrt{2Rh-h^2}\right]$$

Partial-fill volume for flat-ended horizontal cylinders. Source: 1728 Software Systems.

Flow rate unit converter

[3.15] Flow rate conversions

$$Q=\frac{V}{t},\qquad \dot{m}=\rho Q$$

Converts between volumetric and mass flow rate units. Source: 1728 Software Systems.