Pipe Network Analysis Back
Pipe Flow Network Analyzer

Pipe Network Analysis — Hardy Cross Method

Apply the Hardy Cross iterative method to a 3-loop, 8-pipe network. Adjust roughness, viscosity, and demand flow rates to instantly see converged flow rates, velocities, and head losses in each pipe.

Fluid Parameters
Roughness ε (mm)
mm
Kinematic Viscosity ν (×10⁻⁶ m²/s)
mm²/s
Demand Flow Rates (L/s)
Node B demand Q_B
L/s
Node C demand Q_C
L/s
Node D demand Q_D
L/s
Convergence Results
Results
Iterations
Final ΔQ (L/s)
Max Flow (L/s)
Max Head Loss (m)
Pipe Network Diagram (flow rate/direction)
Flow distribution by pipe
Theory & Key Formulas
$$h_f = \frac{fLv^2}{2gD}$$ $$\Delta Q = -\frac{\sum h_L}{n\displaystyle\sum\!\left|\frac{h_L}{Q}\right|}$$ $$\sum h_L = 0 \quad \text{(each loop)}$$

What is the Hardy Cross Method?

🙋
What exactly is the Hardy Cross method trying to solve? I see a network of pipes, but what's the big problem?
🎓
Basically, it solves for the unknown flows in a pipe network where water can take multiple paths. The big problem is that the flows must balance at every junction and the pressure losses must balance around every closed loop. It's a tricky, interconnected system. In practice, you can't solve it directly with algebra—you need an iterative method, which is what Hardy Cross invented.
🙋
Wait, really? So the simulator is doing those iterations for me? What are those "corrections" it's applying?
🎓
Exactly! The simulator starts with a guess for the flow in each pipe. Then, for each loop, it calculates a flow correction, $\Delta Q$. This correction is added (with the right sign) to every pipe in that loop to make the net head loss around the loop closer to zero. Try changing the demand at Node B with the slider—you'll see the flows instantly rebalance after the simulator runs these hidden iterations.
🙋
So the roughness and viscosity parameters must affect the head loss, right? How do they change the solution?
🎓
Great connection! Yes, the pipe roughness ($\epsilon$) directly affects the friction factor $f$ in the Darcy-Weisbach equation. A rougher pipe means more head loss for the same flow. The kinematic viscosity ($\nu$) matters for determining if the flow is turbulent or laminar, which also changes $f$. Adjust those parameters above and watch how the flow redistributes—smoother pipes or less viscous fluid will allow more flow through longer paths.

Physical Model & Key Equations

The core of the analysis is calculating the head loss due to friction in each pipe, for which the Darcy-Weisbach equation is used.

$$h_f = \frac{fLv^2}{2gD}$$

Here, $h_f$ is the head loss (m), $f$ is the Darcy friction factor (which depends on pipe roughness $\epsilon$, diameter $D$, and the Reynolds number), $L$ is pipe length (m), $v$ is flow velocity (m/s), $g$ is gravity (9.81 m/s²), and $D$ is the pipe diameter (m). This tells us how much pressure is "lost" pushing water through a pipe.

The Hardy Cross method's genius is its iterative correction formula. For each closed loop in the network, we apply this correction to the initially guessed flows.

$$\Delta Q = -\frac{\sum h_L}{n\displaystyle\sum\!\left|\frac{h_L}{Q}\right|}$$

$\Delta Q$ is the flow correction (m³/s) for the loop. $\sum h_L$ is the algebraic sum of head losses around the loop (following a sign convention). $n$ is an exponent (typically 2 for turbulent flow using Darcy-Weisbach). The denominator represents the sum of the absolute values of the derivative of head loss with respect to flow. This correction nudges the system toward the final condition where $\sum h_L = 0$ for every loop.

Frequently Asked Questions

If the initial flow rate setting is inappropriate, convergence will not occur. Manually input a positive initial flow rate (e.g., 1 L/s) for each pipe and adjust so that the flow balance is achieved across the entire loop. Additionally, if the demand flow rate is extremely large, convergence may slow down, so it is recommended to try with a smaller value.
The Darcy friction factor f depends only on viscosity in the laminar flow region (Re < 2000), while roughness has a significant effect in the turbulent flow region. If the results do not change after modification, it is possible that the Reynolds number is low and the flow is in a laminar state. Try increasing the flow rate or reducing the pipe diameter.
Currently, the number of loops is fixed at 3. To change the number of loops, you need to manually edit the internal network matrix and loop definitions. However, increasing the number of loops tends to make convergence unstable, so adjusting the initial flow rates becomes more important.
It can be correct in some cases. The sign of the head loss indicates the flow direction within the pipe, and a negative value means that the flow is in the opposite direction to the assumed direction in the loop. The absolute value of the result represents the loss amount, and the sign should be interpreted together with the flow direction.

Real-World Applications

Municipal Water Distribution: This is the classic use case. Cities use the Hardy Cross method to design and analyze their underground pipe networks, ensuring adequate water pressure reaches all neighborhoods, especially during peak demand like mornings or fires. Engineers model different scenarios by changing nodal demands, just like the QB, QC, QD sliders in the simulator.

HVAC Hydronic Systems: Large building heating and cooling systems use water loops to transfer thermal energy. The Hardy Cross method helps balance the flow through various branches and radiators so that each room gets the designed amount of heated or chilled water, preventing some areas from being too hot or cold.

Industrial Process Piping: In chemical plants or refineries, complex networks carry process fluids. Analyzing these networks ensures pumps are correctly sized and that flow reaches all necessary unit operations at the required pressures, considering the fluid's specific viscosity and pipe material roughness.

Fire Sprinkler System Design: A life-critical application. Engineers must verify that when a sprinkler head activates, there is sufficient water flow and pressure at that point to suppress a fire. The network analysis accounts for simultaneous demand from multiple sprinklers and the friction in the piping.

Common Misconceptions and Points to Note

There are several key points you should be careful about when starting to use the Hardy Cross method. First is the misconception that "initial flow rates can be arbitrary." While they are indeed corrected through iterative calculations, if the initial values are too far from reality, it can take a long time to converge or, rarely, cause divergence. For example, instead of distributing flow evenly to all pipes, a good tip is to assign more flow to the paths that intuitively seem like the "mainstream" from the inflow node to the outflow node.

Next is the units for parameter settings. While they are unified in this simulator, in practice it's common to have a mix, such as pipe diameter in [mm], flow rate in [m³/h], and length in [km]. Make it a habit to always convert to SI units (m, m³/s, Pa, etc.) before calculation. If you get the units wrong, you'll get answers of a completely wrong order of magnitude.

Finally, understand that the result of the Hardy Cross method is an "equilibrium state." This only shows the flow distribution in a steady state, meaning a state that does not change over time. In actual piping, demand fluctuates by time of day, and sudden valve closures cause transient phenomena like "water hammer." The Hardy Cross method cannot handle such dynamic phenomena, so be sure not to misuse it.