SciELO - Scientific Electronic Library Online

 
vol.10Reduction of Aerodynamic Resistance of Heavy Vehicles and Effect on Fuel Economy índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados

Articulo

Indicadores

Links relacionados

  • En proceso de indezaciónCitado por Google
  • En proceso de indezaciónSimilares en Google

Compartir


R&D Journal

versión On-line ISSN 2309-8988
versión impresa ISSN 0257-9669

R&D j. (Matieland, Online) vol.10  Stellenbosch, Cape Town  1994

 

Optimization of pipe networks using standardized pipes

 

 

E.H. Mathews; H.F. Brenkman; P.A.J. Köhler

Department of Mechanical and Aeronautical Engineering, University of Pretoria, Pretoria, 0002 Republic of South Africa and concultants to Transfer of Energy, Momentum and Mass International (Pty) Ltd

 

 


ABSTRACT

Large pipe networks are frequently encountered in engineering applications. Numerical optimization of these designs is therefore relevant. As pipes are usually only available in standard sizes, the optimization must be done for discrete pipe sizes. In this paper a discrete coordinate descent and a continuous gradient search technique are combined to solve this discrete non-linear optimization problem.


 

 

Nomenclature

aiPressure head coefficient

bi Flow coefficient

CInequality error function

CcCapital cost ($)

Cd Energy demand rate ($/kW)

CeEnergy rate ($/kWh)

Ci Pipe cost factor ($/kg)

Cp Pump energy cost ($)

Ct Total cost ($)

DPipe diameter (m)

DpPump rotor diameter (m)

dDesign life time (years)

f Friction factor

gGravitational constant (9.81 m/s2)

H(x)Error flow function in x

hStatic head (m)

I Interest rate (%/100)

Kf Dimensionless flow coefficient

KhDimensionless pressure head coefficient (calculated from empirical data)

kDamper coefficient

kxArbitrary constant

LPipe length (m)

Penalty function in x

MiMass of pipe section (kg)

mPump mass flow (kg/s)

npPump speed (rpm)

PPressure (Pa)

PpPressure drop over pump (Pa)

PWEF Present worth escalation factor

QVolume flow rate (m3/s)

QpPump volumetric flow rate (m3W/s)

epPump efficiency

em Pump motor efficiency

PopPump energy (kW)

RedReynolds number for pipes

TTotal operating hours in a year

VFluid speed (m/s)

xVariable representing pipe diameter (m)

h Head loss (m)

P Pressure drop (Pa)

Interior roughness of pipe (m)

ρFluid density (kg/m3)

 

Introduction

Pipe networks are common in all engineering fields. For example, every town council has to provide water and a sewerage system for its residents. The petroleum and power generation industries use complex pipe networks.[1] In the field of mechanical engineering, pipe networks are found inter alia in the aircraft and car industries. Applications here vary from fuel distribution networks to hydraulic systems. [2]

Many of the above networks can be expensive to build and operate.[3] The most prominent cost for the developer is usually the capital invested to build the pipe network. However, it should be the objective of any designer to minimize not only the capital cost but also the operating cost of a pipe network.

Pipe networks are designed to conform to certain specifications. For instance, the outlet flows are often specified, as well as the bounds for the fluid speed, absolute pressure and diameters.[3; 4] The fluid speed usually has an upper bound to prevent excessive noise. A lower bound is only necessary when slurry is pumped, e.g. for a coal pipeline. This is to prevent settling of the mixture. The absolute pressure is often limited to a certain value to prevent cavitation, while an upper bound prevents the pipe from bursting. The bounds for the diameters are set according to space requirements and availability. Along with all these complications, pipes are usually made in standardized diameters. All these aspects make the design process difficult and time-consuming.

To obtain a workable design the engineer continually has to match compromises and decisions. Furthermore, the efforts of the engineer often do not guarantee a cost-effective design. A practical optimization and design tool is therefore a necessity.[3] The objective of this paper was to develop a computer algorithm for the discrete optimization of pipe networks. With the help of this optimization tool the engineer can produce a practical and cost-effective solution for the design problem.

Several algorithms can be used to solve the discrete non-linear optimization problem.[5] One possibility is to., calculate the network cost and flow conditions for every possible combination of pipe diameters. This method has the advantage that it always finds the global minimum and is relatively easy to implement. It is, however, computer intensive and can restrict the size of network that can be optimized.

An alternative is to simply round off the solution obtained from a non-discrete optimization technique. This method does not guarantee an optimum working solution. [6] For most network design problems, however, the rounded off solution will in all probability not differ very much from the optimum solution. A boundary rounding procedure has been recommended for the discrete optimization of air-conditioning duct networks. By this procedure, the lower nominal size is selected when the initial size is close to the lower size at the range between available sizes. Otherwise, the upper nominal size should be selected.

The 'Branch and Bound' method, too, was examined. It is described in detail in Wismer & Chattergy.[6] Unfortunately it is difficult to program this method. Another drawback is that it requires a non-discrete optimization algorithm to find a discrete solution.[6] This makes the method time-consuming. The amount of computer memory needed is also not desirable. Furthermore it was unsuccessful when applied to optimizing a five-pipe network and also abandoned.

In this article a combination of a continuous gradient search technique and discrete coordinate descent technique was employed to solve the pipe network design problem.

 

Element theory

A pipe network usually consists of a number of pipes and at least one pump. The behaviour of the elements and the topology of a network must be evaluated before the network can be simulated.

The flow of a fluid through a pipe is described by Bernoulli's equation

For incompressible flow and a constant diameter the equation can be simplified to:

The pipe friction losses can be calculated from equation

The friction factor in equation (3) is given by Colebrook's equation [7]

These equations describe the flow through a single pipe. The pressure increase over a pump is given by

and the dimensionless pressure head coefficient is calculated from

The coefficients in equation (6) are obtained by fitting a polynomial function to empirical data for the specific pump. [4]

The flow coefficient in equation (6) is defined as

Equations (5), (6) and (7) now characterize the pump element.

 

Network theory

A relationship between the element and network properties must be found before a pipe network can be simulated. This is necessary to define the governing equations describing the behaviour of the elements in a network.

Networks are governed by certain laws. Kirchoff [4] defined these laws as

the node law: The sum of the flow through any node in any network is zero.

the loop law: The sum of all the pressure changes in any loop of any network must be zero.

the element law: The flow through any network element in any network must have a relationship with the pressure difference over that element.

The first two laws describe the topological features of a network and the last the physical properties of an element in a network. These laws must be used to compile the necessary equations to solve the design problem. With the help of graph theory these laws were effectively linked together. [8]

 

Simulation and optimization

To calculate the operating cost of a network it is necessary to simulate it. An existing computer algorithm for the simulation of pipe networks [8] is used in this study. This computer algorithm uses a proven method in an iterative process for the calculation of the flow in each element of the network.

When optimizing pipe networks the most prominent problem is that of constraints. A constraint is a certain condition to which the solution of a system must comply. For practical reasons constraints are necessary. The following types of boundary conditions are usually used: specified flow rates at the outlets, minimum pressure in any element of the network and the maximum allowable fluid velocity. The optimization method must be able to optimize within these given constraints.

Some of these constraints are equality constraints and others inequality constraints. The difference will be discussed in the following paragraphs. The optimization method must be able to discern the difference between these two types of constraints.

 

Equality and inequality constraints

When a pipe network is designed, one of the objects might be to design it so that the cost is as small as possible, but with the provision that the specified outlet flow rates (Qspecified) are certain given values. The flow rate forms an equality constraint and it can be expressed as

where x is the diameter. An additional objective in the design process is to minimize the flow rate error H (x) in the equality constraint equation.

Let us now consider inequality constraints. Each pipe has a minimum and maximum allowable diameter. The same principle applies for the absolute pressure in a pipe and the fluid velocity in a pipe. Usually only an upper or lower boundary is considered.

These boundaries can be defined as:

which are then the inequality constraints.

 

Cost

The principal objective in the optimization process is to minimize the cost subject to the equality and inequality constraints.

The cost of a pipe network consists of the capital investment and the energy cost to operate the system over a number of years.

A possible equation for the capital cost (Cc(x)) of the network can be expressed as

The operating cost of the network consists mainly of the energy cost (Cp) of the pumps. In present worth terms it can be presented as in Mathews & Köhler.[8]

The present worth escalation factor (PWEF) [8] can be calculated from

The objective function (total cost (Ct(x)) is the sum of the capital cost (Cc(x)) and the pump energy cost (Cp).

It is the objective of our optimization to minimize the total cost function (Ct(x)).

 

Discrete optimization

The object of the cost optimization process is to find a discrete solution for the pipe network subject to certain constraints. In this process there is no guarantee that a combination of standardized pipes can be found having the same outlet flow rate for the network as specified. The use of dampers in the outlet pipes to control the outlet flow rates is therefore a requirement.

This optimization procedure comprises the following:

Optimize the outlet pipes non-discretely

Optimize the interior pipes discretely

Replace each outlet pipe with a standardized pipe and a damper

This procedure will ensure that the outlet flow rates are accurate and that a local minimum is reached.

When optimizing a network the interior and outlet pipes are treated differently. The diameters of the interior pipes can only have discrete values. The outlet pipes can have any size diameter. The results for the outlet pipes are then given as a standardized pipe diameter plus a damper. The computer procedure automatically takes care of this.

To arrive at this optimum solution a penalty function is used in the discrete optimization procedure. A penalty function is a combination of the objective function and the error functions. In this case the objective function is the total cost. The error function of importance here is the error flow rate function. A penalty function is used to optimize a function which is bounded by constraints.

The penalty function is thus given by

The cost term in the penalty function is given by

and the penalty term (error function) by

Pei is the penalty constant and Hi(xi) is the error flow through pipe 'i' with diameter xi. The penalty term forms a constraint which has to be minimized along with the cost.

To understand the optimization procedure it is best to examine Figure 1. This figure represents a two-dimensional system. The function to be optimized depends on two variables. Variable x1is defined as

 

This system is a typical example of a two-pipe network where the pipes are connected in series. Variable x1represents the interior pipe and variable x2 the outlet pipe with its damper.

Let us first shift variable x1in the direction in which the penalty function L(x) decreases until a minimum is reached. After a minimum is reached, variable x2 is manipulated in a similar way. These two (x1and x2) are again manipulated until a local minimum is reached. Notice that the optimization process takes place in the shaded area formed by the constraints.

When a local optimum is reached, all the outlet pipes are replaced with a standardized pipe and a damper. The damping coefficient kdfor the outlet pipes can be calculated from equation (22). This will ensure that the outlet flow rates are as specified for the problem. The subscripts e and p refer to the non-discrete and discrete diameters, respectively.

Figure 2 shows a flow diagram for the above optimization procedure. Note the feedback loops. They ensure that the variables stay within the specified boundaries. The technique is a combination of a discrete coordinate technique for the interior pipes and a continuous gradient search technique for the outlet pipes.

Any set of diameters can be used as a starting point for the optimization proocedure. The only requirement is that they comply with the specified constraints. This is to get a realistic first simulation.

 

Case studies

Two case studies were carried out to verify the discrete optimization procedure. One of the case studies is a pipe network with no loops. The other one is a simple network having one loop.

 

Case study 1

The network for the first case study is given in Figure 3. It consists of 14 interior pipes and 8 outlet pipes. Specifications for this case study are given in Table 1. Two calculations were performed. Firstly, the discrete pipe diameters were calculated that will satisfy the flow requirements but not necessarily minimize the life cycle cost of the network. Secondly, the pipe diameters were calculated that satisfy the flow constraints as well as minimize the life cycle cost. The results of these calculations are given in Table 2. The savings obtained by minimizing the life cycle cost for this study was 28% compared to when only the flow requirements were taken into account.

 

 

 

 

Case study 2

In this case a simple theoretical network with a single loop is examined. Although it is not an existing network against which we could compare the optimization results, it was chosen to show that networks with loops can be optimized. The required outlet flow rates in branches F and G are 0.5 kg/s and 0.25 kg/s, respectively. The other input data are the same as for the previous case study. Figure 4 shows a diagram representing the network. The results of Case study 2 are presented in Table 3.

 

 

 

 

Conclusions

A procedure for the discrete optimization of pipe networks was developed. The procedure was implemented in a user-friendly computer program. The constrained non-linear optimization problem is modified to an unconstrained optimization problem using penalty functions. A combination of a discrete coordinate descent and continuous gradient search technique is then used to solve the unconstrained optimization problem.

Due to the complexity of the optimization problem the modified objective function will contain a large number of local minima. The only way to determine when the global minimum has been reached is to locate all the local minima and then choose the best one of them. The fact that multiple minima exist has been confirmed by using different starting values to the problems. In each case the solutions did not exactly converge to the same values. For each of these solutions the costs were, however, within reasonable limits approximately the same.

Further improvements to the program may include the optimization of networks with valves and reservoirs. The ultimate objective of our work is the development of a user-friendly computer program for application in such diverse fields as water management, the chemical industry, air conditioning, etc.

 

References

[1] Lathey Jr & Moody FJ. The thermal-hydraulics of a boiling water nuclear reactor, 3rd edn. American Nuclear Society, 1984.

[2] Green WL. Aircraft hydraulic systems, An introduction to the analysis of systems and components. John Wiley & Sons, 1985.

[3] Stephenson D. Developments in water science, Pipeline design for water engineers, 2nd edn. Elsevier Scientific Publishing Company, 1981.

[4] Daugherty RL, Franzini JB & Finnemore EJ. Fluid mechanics with engineering applications, Metric edn. McGraw-Hill, 1989.

[5] Rand Afrikaans University. Optimization theory and applications. A Halsted Press Book, 1979.

[6] Wismer DA & Chattergy R. Introduction to nonlinear optimization. North-Holland, New York, 1987.

[7] White FM. Fluid mechanics. McGraw-Hill, 1989.

[8] Mathews EH & Köhler PA J. A numerical optimization procedure for complex pipe network design. International Journal of Numerical Methods for Heat and Fluid Flow, in press.         [ Links ]

 

 

First received December 1993
Final version June 1994

Creative Commons License Todo el contenido de esta revista, excepto dónde está identificado, está bajo una Licencia Creative Commons