Pipe network analysis

Last updated

In fluid dynamics, pipe network analysis is the analysis of the fluid flow through a hydraulics network, containing several or many interconnected branches. The aim is to determine the flow rates and pressure drops in the individual sections of the network. This is a common problem in hydraulic design.

Contents

Description

To direct water to many users, municipal water supplies often route it through a water supply network. A major part of this network will consist of interconnected pipes. This network creates a special class of problems in hydraulic design, with solution methods typically referred to as pipe network analysis. Water utilities generally make use of specialized software to automatically solve these problems. However, many such problems can also be addressed with simpler methods, like a spreadsheet equipped with a solver, or a modern graphing calculator.

Deterministic network analysis

Once the friction factors of the pipes are obtained (or calculated from pipe friction laws such as the Darcy-Weisbach equation), we can consider how to calculate the flow rates and head losses on the network. Generally the head losses (potential differences) at each node are neglected, and a solution is sought for the steady-state flows on the network, taking into account the pipe specifications (lengths and diameters), pipe friction properties and known flow rates or head losses.

The steady-state flows on the network must satisfy two conditions:

  1. At any junction, the total flow into a junction equals the total flow out of that junction (law of conservation of mass, or continuity law, or Kirchhoff's first law)
  2. Between any two junctions, the head loss is independent of the path taken (law of conservation of energy, or Kirchhoff's second law). This is equivalent mathematically to the statement that on any closed loop in the network, the head loss around the loop must vanish.
PipeNet.jpg

If there are sufficient known flow rates, so that the system of equations given by (1) and (2) above is closed (number of unknowns = number of equations), then a deterministic solution can be obtained.

The classical approach for solving these networks is to use the Hardy Cross method. In this formulation, first you go through and create guess values for the flows in the network. The flows are expressed via the volumetric flow rates Q. The initial guesses for the Q values must satisfy the Kirchhoff laws (1). That is, if Q7 enters a junction and Q6 and Q4 leave the same junction, then the initial guess must satisfy Q7 = Q6 + Q4. After the initial guess is made, then, a loop is considered so that we can evaluate our second condition. Given a starting node, we work our way around the loop in a clockwise fashion, as illustrated by Loop 1. We add up the head losses according to the Darcy–Weisbach equation for each pipe if Q is in the same direction as our loop like Q1, and subtract the head loss if the flow is in the reverse direction, like Q4. In other words, we add the head losses around the loop in the direction of the loop; depending on whether the flow is with or against the loop, some pipes will have head losses and some will have head gains (negative losses).

To satisfy the Kirchhoff's second laws (2), we should end up with 0 about each loop at the steady-state solution. If the actual sum of our head loss is not equal to 0, then we will adjust all the flows in the loop by an amount given by the following formula, where a positive adjustment is in the clockwise direction.

where

The clockwise specifier (c) means only the flows that are moving clockwise in our loop, while the counter-clockwise specifier (cc) is only the flows that are moving counter-clockwise.

This adjustment doesn't solve the problem, since most networks have several loops. It is okay to use this adjustment, however, because the flow changes won't alter condition 1, and therefore, the other loops still satisfy condition 1. However, we should use the results from the first loop before we progress to other loops.

An adaptation of this method is needed to account for water reservoirs attached to the network, which are joined in pairs by the use of 'pseudo-loops' in the Hardy Cross scheme. This is discussed further on the Hardy Cross method site.

The modern method is simply to create a set of conditions from the above Kirchhoff laws (junctions and head-loss criteria). Then, use a Root-finding algorithm to find Q values that satisfy all the equations. The literal friction loss equations use a term called Q2, but we want to preserve any changes in direction. Create a separate equation for each loop where the head losses are added up, but instead of squaring Q, use |QQ instead (with |Q| the absolute value of Q) for the formulation so that any sign changes reflect appropriately in the resulting head-loss calculation.

Probabilistic network analysis

In many situations, especially for real water distribution networks in cities (which can extend between thousands to millions of nodes), the number of known variables (flow rates and/or head losses) required to obtain a deterministic solution will be very large. Many of these variables will not be known, or will involve considerable uncertainty in their specification. Furthermore, in many pipe networks, there may be considerable variability in the flows, which can be described by fluctuations about mean flow rates in each pipe. The above deterministic methods are unable to account for these uncertainties, whether due to lack of knowledge or flow variability.

For these reasons, a probabilistic method for pipe network analysis has recently been developed, [1] based on the maximum entropy method of Jaynes. [2] In this method, a continuous relative entropy function is defined over the unknown parameters. This entropy is then maximized subject to the constraints on the system, including Kirchhoff's laws, pipe friction properties and any specified mean flow rates or head losses, to give a probabilistic statement (probability density function) which describes the system. This can be used to calculate mean values (expectations) of the flow rates, head losses or any other variables of interest in the pipe network. This analysis has been extended using a reduced-parameter entropic formulation, which ensures consistency of the analysis regardless of the graphical representation of the network. [3] A comparison of Bayesian and maximum entropy probabilistic formulations for the analysis of pipe flow networks has also been presented, showing that under certain assumptions (Gaussian priors), the two approaches lead to equivalent predictions of mean flow rates. [4]

Other methods of stochastic optimization of water distribution systems rely on metaheuristic algorithms, such as simulated annealing [5] and genetic algorithms. [6]

See also

Related Research Articles

In fluid dynamics, the Darcy–Weisbach equation is an empirical equation that relates the head loss, or pressure loss, due to friction along a given length of pipe to the average velocity of the fluid flow for an incompressible fluid. The equation is named after Henry Darcy and Julius Weisbach. Currently, there is no formula more accurate or universally applicable than the Darcy-Weisbach supplemented by the Moody diagram or Colebrook equation.

<span class="mw-page-title-main">Water hammer</span> Pressure surge when a fluid is forced to stop or change direction suddenly

Hydraulic shock is a pressure surge or wave caused when a fluid in motion, usually a liquid but sometimes also a gas is forced to stop or change direction suddenly; a momentum change. This phenomenon commonly occurs when a valve closes suddenly at an end of a pipeline system, and a pressure wave propagates in the pipe.

<span class="mw-page-title-main">Bingham plastic</span> Material which is solid at low stress but becomes viscous at high stress

In materials science, a Bingham plastic is a viscoplastic material that behaves as a rigid body at low stresses but flows as a viscous fluid at high stress. It is named after Eugene C. Bingham who proposed its mathematical form.

<span class="mw-page-title-main">Hydraulic analogy</span> Widely used analogy for explaining electrical circuits

Electronic-hydraulic analogies are the representation of electronic circuits by hydraulic circuits. Since electric current is invisible and the processes in play in electronics are often difficult to demonstrate, the various electronic components are represented by hydraulic equivalents. Electricity was originally understood to be a kind of fluid, and the names of certain electric quantities are derived from hydraulic equivalents.

<span class="mw-page-title-main">Hydraulic head</span> Specific measurement of liquid pressure above a vertical datum

Hydraulic head or piezometric head is a specific measurement of liquid pressure above a vertical datum.

The Manning formula or Manning's equation is an empirical formula estimating the average velocity of a liquid flowing in a conduit that does not completely enclose the liquid, i.e., open channel flow. However, this equation is also used for calculation of flow variables in case of flow in partially full conduits, as they also possess a free surface like that of open channel flow. All flow in so-called open channels is driven by gravity.

<span class="mw-page-title-main">Open-channel flow</span> Type of liquid flow within a conduit

In fluid mechanics and hydraulics, open-channel flow is a type of liquid flow within a conduit with a free surface, known as a channel. The other type of flow within a conduit is pipe flow. These two types of flow are similar in many ways but differ in one important respect: open-channel flow has a free surface, whereas pipe flow does not.

The Fanning friction factor, named after John Thomas Fanning, is a dimensionless number used as a local parameter in continuum mechanics calculations. It is defined as the ratio between the local shear stress and the local flow kinetic energy density:

The Hazen–Williams equation is an empirical relationship which relates the flow of water in a pipe with the physical properties of the pipe and the pressure drop caused by friction. It is used in the design of water pipe systems such as fire sprinkler systems, water supply networks, and irrigation systems. It is named after Allen Hazen and Gardner Stewart Williams.

Pressure drop is defined as the difference in total pressure between two points of a fluid carrying network. A pressure drop occurs when frictional forces, caused by the resistance to flow, act on a fluid as it flows through a conduit. This friction converts some of the fluid’s hydraulic energy to thermal energy. Since the thermal energy cannot be converted back to hydraulic energy, the fluid experiences a drop in pressure, as is required by conservation of energy.

<span class="mw-page-title-main">Friction loss</span>

The term friction loss has a number of different meanings, depending on its context.

In fluid dynamics, the Darcy friction factor formulae are equations that allow the calculation of the Darcy friction factor, a dimensionless quantity used in the Darcy–Weisbach equation, for the description of friction losses in pipe flow as well as open-channel flow.

In fluid mechanics, pipe flow is a type of liquid flow within a closed conduit, such as a pipe or tube. The other type of flow within a conduit is open channel flow. These two types of flow are similar in many ways, but differ in one important aspect. Pipe flow does not have a free surface which is found in open-channel flow. Pipe flow, being confined within closed conduit, does not exert direct atmospheric pressure, but does exert hydraulic pressure on the conduit.

<span class="mw-page-title-main">Moody chart</span> Graph used in fluid dynamics

In engineering, the Moody chart or Moody diagram is a graph in non-dimensional form that relates the Darcy–Weisbach friction factor fD, Reynolds number Re, and surface roughness for fully developed flow in a circular pipe. It can be used to predict pressure drop or flow rate down such a pipe.

In nonideal fluid dynamics, the Hagen–Poiseuille equation, also known as the Hagen–Poiseuille law, Poiseuille law or Poiseuille equation, is a physical law that gives the pressure drop in an incompressible and Newtonian fluid in laminar flow flowing through a long cylindrical pipe of constant cross section. It can be successfully applied to air flow in lung alveoli, or the flow through a drinking straw or through a hypodermic needle. It was experimentally derived independently by Jean Léonard Marie Poiseuille in 1838 and Gotthilf Heinrich Ludwig Hagen, and published by Poiseuille in 1840–41 and 1846. The theoretical justification of the Poiseuille law was given by George Stokes in 1845.

The Chézy formula is an semi-empirical resistance equation which estimates mean flow velocity in open channel conduits. The relationship was realized and developed in 1768 by French physicist and engineer Antoine de Chézy (1718–1798) while designing Paris's water canal system. Chézy discovered a similarity parameter that could be used for estimating flow characteristics in one channel based on the measurements of another. The Chézy formula relates the flow of water through an open channel with the channel's dimensions and slope. The Chézy equation is a pioneering formula in the field of fluid mechanics and was expanded and modified by Irish Engineer Robert Manning in 1889. Manning's modifications to the Chézy formula allowed the entire similarity parameter to be calculated by channel characteristics rather than by experimental measurements. Today, the Chézy and Manning equations continue to accurately estimate open channel fluid flow and are standard formulas in all fields that relate to fluid mechanics and hydraulics, including physics, mechanical engineering and civil engineering.

<span class="mw-page-title-main">Hardy Cross method</span> Method for determining flow in pipe network systems

The Hardy Cross method is an iterative method for determining the flow in pipe network systems where the inputs and outputs are known, but the flow inside the network is unknown. The method was first published in November 1936 by its namesake, Hardy Cross, a structural engineering professor at the University of Illinois at Urbana–Champaign. The Hardy Cross method is an adaptation of the Moment distribution method, which was also developed by Hardy Cross as a way to determine the forces in statically indeterminate structures.

<span class="mw-page-title-main">EPANET</span>

EPANET is a public domain, water distribution system modeling software package developed by the United States Environmental Protection Agency's (EPA) Water Supply and Water Resources Division. It performs extended-period simulation of hydraulic and water-quality behavior within pressurized pipe networks and is designed to be "a research tool that improves our understanding of the movement and fate of drinking-water constituents within distribution systems". EPANET first appeared in 1993.

Gas networks simulation or Gas Pipeline Simulation is a process of defining the mathematical model of gas transmission and gas distribution systems, which are usually composed of highly integrated pipe networks operating over a wide range of pressures. Simulation allows to predict the behaviour of gas network systems under different conditions. Such predictions can be effectively used to guide decisions regarding the design and operation of the real system.

<span class="mw-page-title-main">Flow distribution in manifolds</span>

The flow in manifolds is extensively encountered in many industrial processes when it is necessary to distribute a large fluid stream into several parallel streams and then to collect them into one discharge stream, such as fuel cells, plate heat exchanger, radial flow reactor, and irrigation. Manifolds can usually be categorized into one of the following types: dividing, combining, Z-type and U-type manifolds. A key question is the uniformity of the flow distribution and pressure drop.

References

  1. S.H. Waldrip, R.K. Niven, M. Abel, M. Schlegel (2016), Maximum entropy analysis of hydraulic pipe flow networks, J. Hydraulic Eng ASCE, 142(9): 04016028, https://dx.doi.org/10.1061/(ASCE)HY.1943-7900.0001126#sthash.5ecR2Gts.dpuf
  2. Jaynes, E.T. (2003). Probability Theory: The Logic of Science. Cambridge University Press.
  3. Waldrip, S.H., Niven, R.K., Abel, M., Schlegel, M. (2017), Reduced-parameter method for maximum entropy analysis of hydraulic pipe flow networks, J. Hydraulic Eng ASCE, in press
  4. Waldrip, S.H., Niven, R.K. (2017), Comparison between Bayesian and maximum entropy analyses of flow networks, Entropy, 19(2): 58, https://dx.doi.org/10.3390/e19020058
  5. Cunha, Maria da Conceio; Sousa, Joaquim (1999). "Water Distribution Network Design Optimization: Simulated Annealing Approach". Journal of Water Resources Planning and Management. 125 (4): 215–221. doi:10.1061/(asce)0733-9496(1999)125:4(215). ISSN   0733-9496.
  6. Montesinos, Pilar; Garcia‐Guzman, Adela; Ayuso, Jose Luis (1999). "Water distribution network optimization using a modified genetic algorithm". Water Resources Research. 35 (11): 3467–3473. Bibcode:1999WRR....35.3467M. doi:10.1029/1999WR900167. ISSN   1944-7973. S2CID   109781809.

Further reading