Two pipes, upper and lower, join the two nodes into a loop. The density and speed of the particles reflect the converged flow split, and the head loss is shown on each pipe.
$$h = K\,Q^{2}, \qquad \Delta Q=-\frac{\sum K\,Q^{2}\,\text{sign}}{\sum 2\,K\,|Q|}$$
Head loss h in each pipe (K: resistance, Q: flow in m³/s) and the loop flow correction ΔQ. The correction ΔQ is applied to every pipe in the loop in the same sense, preserving junction continuity while driving the loop head-loss imbalance to zero.
$$Q_1 = Q\,\frac{\sqrt{K_2}}{\sqrt{K_1}+\sqrt{K_2}}, \qquad Q_2 = Q\,\frac{\sqrt{K_1}}{\sqrt{K_1}+\sqrt{K_2}}$$
Converged flows of the two parallel pipes balanced at h₁ = h₂ (closed form). The iteration converges to these values; this tool actually runs the iteration loop and uses the closed form only as a cross-check.
$$\Delta Q=-\frac{K_1 Q_1^{2}-K_2 Q_2^{2}}{2\,(K_1 Q_1 + K_2 Q_2)}$$
The correction applied to the parallel two-pipe loop. Each iteration sets Q₁ += ΔQ, Q₂ −= ΔQ and repeats until |ΔQ| falls below the tolerance (1e-6 m³/s).