# The "Z" method

It is often useful to use simplified approaches to calculate flows and pressures in a network rather than implementing a heavy, complex and expensive fluid mechanics calculation. The so-called "Z" method, or hydraulic impedance method (by electrical analogy) for calculating fluid flows in a system of nodes and branches, is presented here. Pressures play the role of potential while flows represent intensity.

## 1. Governing equation

Between two points of a flow, the Bernoulli equation governing the linear pressure drop, related to the linear friction coefficient $\lambda$as well as singularties (factor $\xi$, see the online course by the CNAM) is the following:

$$\Delta p = \frac{\rho v^2}{2} \times \Big (\frac{\lambda L}{D_h} + \xi \Big ) \text{[Pa]}$$

If we express it as a function of flowrate $Q_v$ in a pipe of sectional area $S$ we obtain

$$v^2 = \frac{2}{\rho} \Delta p \times \Big (\frac{\lambda L}{D_h} + \xi \Big )^{-1} \text{[m²/s²]}$$$$Q_v^2 = \frac{2 S^2}{\rho (\frac{\lambda L}{D_h} + \xi)} \Delta p$$

Following expression then appears for flow rate:

$$Q_v = S\sqrt{\frac{2}{\rho(\frac{\lambda L}{D_h} + \xi)} } \sqrt{\Delta p} \text{ [m3/s]}$$

The so-called "Z" method consists in expressing the pressure drop in the form of $\Delta p = Z \times Q_v^2$, which resembles Ohm's law). In this case it is equivalent to:

$$\Delta p = \frac{\rho(\frac{\lambda L}{D_h} + \xi)}{2S^2} \times Q_v^2 \text{[Pa]}$$

Then the "hydraulic resistance" (or aeraulic) is defined as  $Z$ :

$$Z = \frac{\rho}{2S^2} \Big (\frac{\lambda L}{D_h} + \xi \Big ) \text{[Pa.s²/m}^6\text{]}$$

## 2. Integration of the discharge coefficient $C_d$

A frequently used quantity in aeraulics is the discharge coefficient $C_d$ which gives the reduction in flow caused by the passage of an orifice due to the constriction of the jet, in particular by inertial effects, and viscous friction. It should be noted that the value of this coefficient is questionable - see section 2 of this page.

If we want to convert the discharge coefficient of an opening into a pressure drop, we must go back to the definition of the problem and calculate the equivalent aeraulic resistance $Z$ from the equation between $Q_v$ and $C_d$ :

$$Q_v = C_d S \sqrt{ \frac{2 \Delta p}{\rho}}$$

In order to be able to write "flow equality" in a form allowing the calculation of the equivalent air resistance, the previous equation is transformed into :

$$Q_v^2 = \frac{2 (C_d S)^2 }{\rho}\Delta p$$

Yielding an equivalent $Z$ such that:

$$Z = \frac{\rho}{2 (C_d S)^2 }$$

For serial air resistance it will be sufficient to add the "Z" of each element. For example, the equivalent "Z" combining linear and singular pressure losses $(\lambda, \xi)$ as well as the flow reduction related to a discharge coefficient $C_d$ of an opening is:

$$Z_\text{eq} = \frac{\rho}{2S^2} \Big (\frac{\lambda L}{D_h} + \xi + \frac{1}{C_d^2} \Big )$$

We are therefore able to equate a system governing the balance of pressures and flows: it is now a question of writing it down and solving it!

## 3. Non-linear system of equations

When several nodes are at different pressures  $p_i$ and we want to know the pressure $p$ in the middle point as well as the flow rates $Q_{vi}$ between nodes as presented on following figure.

We must therefore resolve the balances of pressures and flows as well as the conservation of mass (the algebraic sum of flows is zero). This gives us the following non-linear system where $p$ and the $Q_{v i}$ are the unknowns;

\begin{aligned} (p_1 - p) = Z_1 Q_{v1}^2 \\ (p_2 - p) = Z_2 Q_{v2}^2 \\ ... \\ (p_n - p) = Z_n Q_{vn}^2 \\ Q_{v1} + ... +Q_{vn} = 0 \end{aligned}

This raw resolution does not always converge because in some cases there is no solution such that the central pressure is between the bounds of the external pressures. This is due to the fact that the squared flow formulation reduces the space of solutions to those that are positive. However, the problem could be overcome by keeping the same system, provided that $Z_i$ takes the sign of $Q_{vi}$.

Following system, where the flow rates $Q_{vi}$ are not risen to the power of two, is a simple way to leave the sign of solutions free (note the trick of the absolute value of the root):

\begin{aligned} \frac{p_1-p}{\sqrt{|p_1 - p|}} = \sqrt{Z_1} Q_{v1} \\ \frac{p_2-p}{ \sqrt{|p_2 - p|}} = \sqrt{Z_2} Q_{v2} \\ ... \\ \frac{p_n-p}{ \sqrt{|p_n - p|}} = \sqrt{Z_n} Q_{vn} \\Q_{v1} + ... +Q_{vn} = 0 \end{aligned}

The functionfsolveof Scilab solves this kind of non-linear systems advantageously.

An example of an application is given in the figure below: from the wind rose (left), the pressures on the facade of a building are calculated and then the resulting flow rose (right), using the method described in this article.