0% found this document useful (0 votes)
382 views60 pages

Duct Design Thesis

Computer aided duct design-thesis

Uploaded by

drjonesg19585102
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
382 views60 pages

Duct Design Thesis

Computer aided duct design-thesis

Uploaded by

drjonesg19585102
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 60
COMPUTER AIDED OPTIMAL DESIGN OF DUCT SYSTEM USING SIMULATED ANNEALING By FAN WANG Bachelor of Engineering 9 University of Aeronautics and Astronautics Beijing, P.R.China 1986 Submitted to the Faculty of the Graduate College of the Oklahoma State University in Partial fulfillment of the requirements for the Degree of MASTER OF SCIENCE May 1991 TABLE OF CONTENTS Chapter I. INTRODUCTION ..... General Technical Background Duct Design Method. T-Method. Other Optimization Method..... Simulated Annealing Method. II, T-METHOD IMPLEMENTATION. ..........00005 Introduction. Beery 5 Objective Function..... aoe T factor : tenes : Condensing.... : Expansion.....ssseeeeeeee III. NUMERICAL STUDY OF DUCT DESIGN METHOD... Introduction.........65 Two Sections Connected in Serial... Two Sections Connected in Parallel... T-Method. . : Equal Friction Method. . Balanced Capacity Method........ Velocity Reduction Method....... Conclusion........eeeeeeeee IV. NUMERICAL PROCEDURE AND ANALYSIS OF OPTIMAL PRESSURE DISTRIBUTION METHOD......... OPD Factor Objective Function. Important Equation..... Optimization Procedure..... Fan Pressure Optimization.. V. DUCT TREE DATA STRUCTURE ‘Tree Presentation....., Data Structure of "DUCT TREE" iv 25 25 27 28 33 34 35 35 35 Traversal of Duct Tree.. Preorder Traversal. Postorder Traversal VI, RESULTS, DISCUSSIONS AND CONCLUSIONS. Results of Simulated Annealing.. Results of Golden Search Method. Comparison of Pressure Losses... Comparison to T-Method.......... Different Starting Point.... Fan Pressure Changes... REFERENCES. APPENDIXS........0e000e5 APPENDIX A - ASHRAE EXAMPLE SCHEMATIC..... APPENDIX D ~ ASHRAE EXAMPLE PROBLEM COMPUTER OUTPUT (OPD METHOD) .. APPENDIX C - FIVE DUCT SECTION PROBLEM COMPUTER OUTPUT (OPD METHOD) . APPENDIX D - ASHRAE EXAMPLE PROBLEM COMPUTER OUTPUT (T-METHOD)... APPENDIX E - FIVE DUCT SECTION PROBLEM COMPUTER OUTPUT (T-METHOD)....... 36 37 38 40 40 47 49 51 52 52 53 57 58 60 64 66 12 LIST OF FIGURES Figure... 1. Condensing a tee.... Pee eee 2. Two Duct Sections Connected in Series.... 3. Two Duct Sections Connected in Parallel...... 4, Five Duct Sections Systems.. 5. ASHRAE Example (V = 7.5 m/s) 00 6. ASHRAE Example (V = 7.5 m/s)........ 7. ASHRAE Example (V = 4.5 m/s).. Pee eert 8. ASHRAE Example (V = 4.5 m/s).... 9. ASHRAE Example Final Calculation (V = 7.5 m/s).. 10. ASHRAE Example Final Calculation (Vv = 4.5 m/s).. 11. Duct Surface Area of Different Design Method.... 12. Pressure Changes of The Duct Sections..... 13. Life Cycle Cost vs. Fan Pressure........ 14, Details of Cost vs Fan Pressure 15. Duct Diameters of Different Method...... vi Page 15 19 20 31 41 42 43 43 44 45 46 47 48 49 50 CHAPTER I INTRODUCTION General One of the important problems related to the design of any ventilating or air conditioning system is being able to provide the best duct work. In order to achieve maximum energy efficiency and minimal duct material cost, the best design methods have to be chosen carefully. There are three methods described by the ASHRAE Handbook of Fundamentals (ASHRAE 1989) -- equal friction, static regain, and the T-method. Other methods mentioned by McQuiston (1989) are the balanced capacity and the velocity reduction methods. Among these standard methods, the T-method is the only method that claims to provide the optimal duct design. The optimized duct design concept is based on minimizing the life cycle cost of the duct system. The duct system optimal design is a form of large scale optimization problem. There are several ways to solve this kind of multi-dimensional problem, but most of them cannot always find the globally optimal point. The T-method uses the ideas of dynamic programming optimization method. If used properly, the dynamic programming method has a good chance of 2 finding the global minimum. Much research related to duct design has been done before by using the dynamic programming method (Shitzer 1979). The method of simulated annealing (Kirkpatrick, 1983) is a relatively new general-purpose method of very large scale optimization, which has been attracting significant attention recently. It offers the possibility of finding the global optimal point. This method has been reported to be used in power distribution systems (Chiang et al., 1990), optical areas (Kim, 1990), image processing areas (Carnevali, 1985), electronics (Kirkpatrick, 1983), and biochemistry areas (Prabhakaran, 1985). It was reported to have solved the travelling salesman problem, and the global wiring problem of silicon chips successfully (Kirkpatrick,1983). Although the T-method has successfully optimized duct network problems, it is unusual for one optimization method to work well for all problems. Also, the T-method has some limitations. For example, the T-method cannot solve problems with the velocity limit constraints and the static pressure limit constraints. This is one of the important reasons to look for alternatives to the T- method. The purpose of this study is to apply the modified simulated annealing method to the duct system optimization problem and compare its results to the T-method. It is therefore necessary to implement the T-method. Technical Background A literature survey was done in the areas of duct design technology and large scale optimization. Duct Design Methods The equal friction method (McQuiston, 1988) is based on making the pressure loss per foot of duct length the same for the entire system. This method will produce a well balanced duct system jf all runs of duct are the same. In most practical systems, this is not the case. The short runs will have to be damped to increase the resistance, which will result in a waste of energy. The balanced capacity method (McQuiston, 1988) involves making the total pressure loss of each path the same under design flow rates. In general, this means that the longest path is sized first, and then the other paths are sized to have the correct pressure loss to match the total pressure at each junction. It is a natural law that all duct systems will balance themselves. The dampers may have to be installed to insure correct flow rates. The system will not be the optimal. In 1940 Carrier et al. (Tsal, 1988) recommended the static regain duct design method. They thought that this method would be better than the equal friction and the velocity reduction methods. The static regain method saves energy by converting “kinetic energy" into static pressure. The duct section nearest the fan is sized first by using some additional criteria, and the remaining ducts are sized 4 to have the same total pressure. McQuiston (1988) classified this method as a high velocity duct design method. This method is based on the Bernoulli-Borda equation below: Vi V5y_ kV V2)? ap=(b-)- SE) (il) Vi, Ve C --- fitting coefficient. velocity of air in the duct (m/s). k -~ gradual/abrupt expansion loss ratio This method was critiqued by Tsal et al. (1988). Other disadvantages were discussed by McQuiston (1988). The velocity reduction method (Tsal, 1986) can be represented below: Vier =UVj, j= 1,2,..)0-1 (12) u --- Reduction factor. V --- Velocity of the air (m/s). j --- The number of duct section. The velocity reduction method is used primarily for variable air volume systems (VAV), which depends on the VAV boxes to balance the system pressure loss. It consisted practically of making sure that the duct closest to the fan has acceptable velocity, and then reducing the velocities of the downstream ducts so that the velocities are reduced gradually. This method is some what heuristic and requires a sound background of duct design experience. 5 The constant velocity method (Tsal, 1986) is a special case of the velocity reduction method, where the reduction factor is 1.0 The velocities of the whole system remain the same. The T-method's starting point is based on this method. I-method The T-method is a special method for duct network optimal design. It uses the ideas of dynamic programming. Because of the complexity of the duct network and its constraints, most of the methods mentioned above are not capable of finding the global minimum of the duct network cost (Tsal, 1987). Dynamic programming has a better chance to find the global minimum. The first trial of using dynamic programming in duct system design optimization was by Tsal et al. in 1968 (Tsal, 1987). Arkin and Shitzer had also published their works about using dynamic programming design of the duct system (Arkin, 1979). Tsal et al. tried to optimize the velocity of the duct by dynamic programming (1986). They took the first partial derivatives of the objective function, which is always the life cycle cost of the duct network, with respect to velocity for each section of the duct network (Tsal, 1986, Equation 20) to form several equations. They calculated the optimum air velocity of each duct section by solving these partial derivative equations. In 1989 when the T-method was introduced, the optimum pressure loss ratio is calculated by taking the partial derivatives of the objective function with respect to pressure losses (Tsal, 1989, Equation 1.24). The system is balanced when the fan pressure is distributed optimally by the ratios of T factors which are calculated by using the partial derivatives of the objective function. T factors are the fan pressure distribution factors introduced by Tsal. T factors are calculated by condensing the system into one node. After the fan is selected the fan pressure is distributed by expanding the system. If the system is not balanced, the iteration is needed. This method seems to find the global minimum of the life cycle cost of the duct network. More detailed discussions are made in the following chapter. There are several ways to optimize the duct network which have been tried before--the Coordinate Descent Method (Tsal, 1987), Lagrange Multipliers Method (Tsal, 1987), Reduced Gradient Method (Abadie,1969), Quadratic Search Method (Leah, 1987), and Dynamic Programming (Bellman, 1957), These methods were well explained by Tsal and Adler (1987). Simulated Annealing Method. Kirkpatrick (1983) developed a stochastic optimization procedure which is analogous to the statistical thermodynamics of the annealing process of the heated metal with the optimization methods. First, the system is heated up, then cooled down, and then the temperature is kept at the annealing point for a long time, so that the atoms will line themselves up to form a pure crystal. The pure crystal often contains less energy and has less defects. By simulating the thermodynamics problem, the introduced pseudo-temperature is the control parameter of the process. When the temperature is high, atoms move in all directions. When the iteration begins, the objective function is allowed to go uphill. The lower the temperature, the longer the iteration will last. Therefore, there is less chance for the system to go in an uphill direction. The possibility for the objective function to go uphill is controlled by the Metropolis Monte Carlo function, The new move is accepted or not with the possibility that its objective function is lower than before, or with the probability exp(-AE/T) if the objective function is higher than before. Simulated annealing provides the possibility of finding the global minimum. CHAPTER II T-METHOD IMPLEMENTATION Introduction The T-method is an optimal fan pressure distribution method. The pressure ratio of two duct sections connected in series are calculated by taking the partial derivative of the objective function with respect to pressure losses. Objective function Tsal (1989) uses life cycle cost as his objective function. E =Ep * WEF) + Es (2.1) where E = life cycle cost of the duct system ($). Ep = annual electric energy cost ($). Es = Initial cost of the duct system ($). PWEF = present worth escalation factor. Electric energy cost: ) ¥ + Ea = Qin FEES Pian & 105 Ne : (2.2) where Qfan = total air flow rate(m3/s). Ec = unit energy cost ($/kWh). Y = system operation time (hr/year). Ed = energy demand cost ($/kWh). Pfan = Fan pressure (Pa.). Nr = fan total efficiency. Ne = motor total efficiency. (2.3) Initial Cost: Es = Sd DL (Round ducts) (2.4) Es = 2 Sq (H+W) L (Rectangular ducts) where Sq = unit duct work cost ($/m2). Present Worth Escalation Factor: (2.5) = [U+AER)/(1+AIR)] 4 -1 PWEF = “"[-[(FPAIR) /(T#AER)] AER = annual escalation rate. AIR = a = amortization period. The objective function can be written in the form of coefficient K, which is the duct characteristic defined by Tsal average interest rate. (1989). The duct characteristic coefficient K can be calculated by (2.6) Ken (02 a4 L (2.7) n parameter is n=1 (Round) n=l (ers (2.8) where _ Height ‘Width (2.9) h -- coefficient n=fL+CD (round) =ELiond, @ jar) B tO (Rectangular) (2.10) where L = length of the duct (m). C = fitting coefficient. f = friction coefficient. Q = air flow volume(m3/s). r = aspect ratio for rectangular duct. Df ---- equivalent-by-friction diameter (m). =-2HW DEW (2.11) Dy --- equivalent-by-velocity diameter (m) Dy = 1.128 ( Hw U2 (2.12) where H = height of the rectar lar duct (m). W = width of the rectangular duct (m). From the above equation Tsal found the final objective function. (Tsal, 1989). E=21(Pian ) +22 K (apy'0-? (2-18) duct characteristic coefficient Intermediate variable z4,z2: ©) ¥_ wer) = Qk ee Tone ne (2.14) p.%? « n= 0.959 m (g) od (2.15) T-method's objective function is reasonable, clear, easy to understand, and easy to take the partial derivatives. T Factor The T-method uses the ideas of the dynamic programming optimization method and other traditional optimization methods. Its optimization relies on the partial derivatives of the objective function. The T-method's objective function can be written as follows, if the duct system has two duct sections connected in series: E=E,+Eo (2.16) E4,E2 = the life cycle cost of each section. The relationship of pressure losses is AP = APy + APo (2.17) AP ,AP2 = pressure loss of each section (Pa.). In order to calculate the optimal fan pressure distribution factor, the partial derivative of the objective function is taken with respect to AP1 and AP9, and set equal to zero. 12 FE <7 0.2.29 Ky (AP)? (AP) (2.18) Ky, Kz ~- intermediate variables (duct characteristic coefficient). From the partial derivative equations above, we can get the optimal pressure loss ratio of two sections connected in series. APL AP2 Ky 0833 2 (2.19) Take the reciprocal of each side and add 1 to each side of equation (2,19). AP2 1 -(eaps* a 1 AP, (2.20) From equation (2.20) pe APL -| Kp | BP, + APy (QE 5 IH een T = T factor of T-Method, the optimal ratio of the pressure losses for two duct sections. The T factor is calculated by taken the partial derivatives of the objective function. It is the heart of the T-method, which is the optimal fan pressure distribution factor of the two sections or 13 equivalent sections connected in series. T factor is calculated by finding the K coefficients of every duct sections. Pressure loss is calculated by the Darcy-Weisbach equation for round and rectangular ducts. Round: 2 =(hi gv? AP (toa, (2.22) Rectangular: a= Gsoy? (2.23) p = Air density (kg/m3). g = constant (1.0 kg-m/(N-s?). Using ). coefficient: Round: AP = 0.811 gp @D* 2.24) Rectangular, 4P = 0.811 gpp @D,* (2.25) To express the diameter in terms of a pressure loss: Dy = 0.959(u p)? Q% (g APy?? (2.26) If two duct sections are connected in parallel, there is no pressure distribution problem, just is a balancing problem. T-method just set the pressure losses of these two sections equal. From previous equations, the equivalent-by-cost diameter Do can be calculated for rectangular duct section. Do = 2(H+W)/r (2.27) So Do = y =n* Dy =1 #4 Dy=n*D, — Round n=1) (2.28) The initial cost of duct E is Es = x°D*L*Sd 5 0.2 *Q0.4 * 0.2 = 0.959(u p)0-2 * Q0-4 * (g APY" nL, (2.29) Then, the K coefficient can be calculated alternately: Ke=np?Q’ i (2.30) K factor or coefficient of each duct section can be calculated by condensing the whole system into one node. Condensing Next is the process of condensing two duct sections connected in series into one node. 0-898 4. 0-888) 1.2 (2.31) Figure 1. Condensing a tee. Condensing a tee is shown in Figure 1 which contains one node, two children in parallel, and one parent in series: Ky gay 90-8994. g0:898)1-2 (2.32) a1(K +R p)9- 299 4, 5 0-899}1-2 (2.33) From equation 2.33 -0.2 E = z1(Pfan ) + z2 K (AP) (2.34) The optimum fan pressure can be calculated by taking the derivative of Equation 2.34 with respect to AP, setting to zero, and solving for pressure loss. Pran(opt) = 0.26 @2 «3 4. APmax (2.35) APmax ----- Maximum additional pressure loss (Pa.). If fan and motor are preselected, the existing fan pressure is treated as optimum. Expansion This step distributes fan pressure through the system proportional to the T coefficients or T factors. Duct pressure loss APi=(P)T; (2.36) . kK, 0-833 Tee coefficient T= gy ied (2.37) = Kg at duct section #i. So Ks =K; We call Ky ; of node #i Kt. Kt is the K for condensed node. K, 0-833 t=) & (2.38) So we can calculate the pressure loss for each node. AP =P*T (2.39) P is the pressure at that node. By knowing AP, we can find out the optimized duct diameter: D = 0.959 (u p)°? Q0-4 (ary? (2.40) 2+) _ ASE? =D for rectangular duct. (2.41) After the D is calculated, the pressure loss of each duct is calculated, then the pressure loss of each path is calculated. If the maximum pressure loss of every path is greater than 4 percent different (Tsal, 1989) (or the other percentage) from the fan pressure, iteration is needed. Using the duct diameter D estimated 17 by previous function, the previous calculation can be done again and again until the pressure loss is balanced. CHAPTER III NUMERICAL STUDY OF DUCT DESIGN METHOD Introduction As discussed before, when air flow of each duct section is specified, the duct design involves two major problems. When two duct sections are connected in parallel, there is a pressure balancing problem. When two duct sections are connected in series (Figure 2), there is a pressure distribution problem. Almost all the duct design methods are concerned with these two problems. The way to calculate the pressure distribution ratios in each method is different and is not always obviously observed. The following Paragraphs are going to discuss how the pressure distribution ratios are calculated by different duct design methods. Iwo Sections Connected in Series Fan pressure can be distributed by introducing the fan pressure distribution factor (FPDF). If two ducts are connected in series (Figure 2), the pressure ratio of these two duct sections can be represented below 19 APL = EPDF AP2 or —APi__ = Fppr* AP) + AP GB.) These two FPDFs are different in number but are the same in meaning. where AP4 = pressure loss of first section (Pa.). AP2 = pressure loss of second section (Pa). 1 2 © ==, ° Se, Figure 2. Two duct sections connected in series. Total pressure loss: AP = AP} + AP2 (3.2) Iwo Sections Connected in Parallel If there are only these two sections in the system, their pressure losses have to be the same (Figure 3). 20 Figure 3. Two duct sections connected in parallel. AP = AP{ = AP2 (3.3) The concept of the imaginary section is based on the idea that one subtree of ducts can be viewed as one large imaginary duct section. The following sections will try to collapse the existing duct design methods, or duct optimization methods into one formula. T-Method T-method is an optimization method which uses the T factor. T factor is the fan pressure distribution factor. The fan pressure distribution factor (FPDF") can have any value between zero and one, and the system will still be balanced. The T-method has its own way to calculate the fan pressure distribution factor, given by equation (2.21). In this section, it will be shown that the T-method for determining the T-factor can also be cast as a method which sets the fan pressure distribution factor equal to a ratio of initial costs. 21 FPDP" = T=—4?i_ = _Eu AP, + AP) Est + Es2 G4) Using the technique shown in equations (2.19) through (2.21) AP; _ Es AP, Es2 (3.5) The mathematical analysis is shown below. The initial cost of one duct section is Es-2°D*L* Sq = 0.959 (4. p)2* Q™* (g APY7nL (3.6) Substituting (3.6) into (3.5) yields APs _ Eg1_ 0.959 (ip)? Qi (g API)? m La AP2 #32 0.959 (412p)°? Q:° (g APa) >” np Lo G.2) AP4, AP2--- Optimal pressure drops of two duct sections connected in series. Equation (3.7) simplifies to AP, _ mG)? QP (APL)? Ly AP2 — ng(tz)®? Q3* (AP2)°* Le (3.8) solving (3.8) ay (uy)? OY Li 10.833, ng (Uy)? 34 a (3.9) 22 from equation (2.30) K =np02 Q04 L (3.10) Substitute equation (3.10) into equation (3.9) am (pe? AP, \K2 GB.AL Using the technique shown in equations (2.19) through (2.21) AP, | 0.833 FppF’ =T=—4Pi_ - |__* _| AP) +P, \K9833 4 K9-833 ees En +E (3.12) Therefore, we reach T-Method's result. Thus, the assertion that the T-factor can also be represented as a ratio of the initial costs is true. This ratio will control the fan pressure distribution to each duct section. Equal Friction Method This method is purely a duct design method without involving any optimization method. The FPDF of this method is equal to the ratio of lengths of two sections connected in series. This method is based on sizing each duct so that the pressure loss per unit total length is constant. Io” (3.13) AP), AP. APa Li 23 From the formula above, the fan pressure distribution factor of section one can be calculated as repr = —4Pi = la AP; Li aa 6.14 This means the equal friction method can be represented in the FPDF” factor. Balanced Capacity Method Balanced Capacity Method is similar to the equal friction method. The difference is that fan pressure distribution factors (FPDF*) are calculated by the longest equivalent length of the subtree. FPDF* = Ly Longest (pathi,path2, ..., pathj) (3.15) Velocity Reduction Method The velocity is reduced by the u factor. Mi cu Va (3.16) Recall Darcy-Weisbach equation ap=f ley Po D 2g (3.17) Le --- Equivalent length (m). 24 From equation 3.16 and 3.17, we get Le, « a? ap, _ 1*E" Dea? AP2 (V2)? ft le* Dea? (G.18) or £, * Le; * 4m. Dd. (MP AP) fp*Leg* (Va) ©») (3.19) Equation 3.19 can be written this way £,* Ley ah. OD aye AP) 2% Ler @2) (3.20) This means that the velocity reduction method can be described by using the FPDF factor. Conclusion Most of the duct design method can be represented in the calculation of fan pressure distribution factor. The different methods have different FPDF factors. Therefore, they have different results. CHAPTER IV NUMERICAL PROCEDURE AND ANALYSIS OF OPTIMAL PRESSURE DISTRIBUTION METHOD Duct system optimization methods should be capable of finding the minimum of the system cost, balancing the system, selecting the fan, and distributing the fan pressure to the system properly. The basic idea of optimal pressure distribution (OPD) method is 1) to balance the duct network pressure losses of each path, 2) to select the optimal fan pressure, and 3) to distribute the fan pressure in the proportion of the optimal pressure distribution ratio. The optimal pressure distribution ratios are chosen by the modified simulated annealing method rather than calculated by T-method. OPD Factor We borrowed the T-Method's ideas of optimizing the ratios of the pressure losses of the duct sections instead of optimizing the velocities or the pressure losses directly. We call these ratios Fan Pressure Distribution Ratios. Although the purpose of duct optimization is to find the optimal duct sizes, we cannot optimize the duct sizes explicitly. The sizes of duct sections are dependent on each other because the pressure losses of each paths have to be 25 26 balanced. In order to provide simulated annealing method independent variables, the OPD factor is introduced. OPD factor is the ratio of pressure losses of two duct sections or one duct section and a duct subtree. Consider a two sections duct system where the fan pressure has already been selected. If two ducts are in parallel, there is a balancing problem. These two sections have to have the same pressure losses. There is no optimization problem if the fan pressure has already been chosen. If two ducts are in series, there is no balancing problem, but there is a pressure distribution problem. The cost of the system is related to how the fan pressure is distributed. This is an optimization problem. In OPD method, the optimum pressure ratio is —AP1__ = oppr AP? + AP} (4.1) where AP4, AP2 -- The pressure losses of first and second section in series (Pa.). OPDF -- Optimal Pressure Distribution Factor. The fan pressure can be calculated as Pian = AP1 + AP2 If there are only two duct sections or one duct and one subtree of ducts in the system. Objective Function 27 We borrowed T-method's objective function, for the purpose of comparison. The objective function includes the initial cost and the energy cost of the system. The objective function is E = Ep (PWEF) + Es (4.2) Electric energy cost: )¥+E = Qtan = ——* Phan » 10° NeNe (4.3) Present Worth Escalation Factor (PWEF): {(L+AER) /(1+AIR)] @ -1 1 [(1+AIR) /(1+AER)] (4.4) AER = annual escalation rate (%). AIR = annual interest rate (%). a = amortization period (year). The initial cost (Es) can be calculated as Es=SadxDL (Round) (4.5) Eg = 2 Sq (H+W) L (Rectangular) (4.6) where D = duct diameter (m). 28 H = duct height (m). W = duct width (m). nf = fan efficiency (%). Ne = fan motor efficiency (%). Pfan = fan pressure (Pa.). Qtan = fan flow rate (m3/s). The related economic factors can be estimated from the following sources (Tsal, 1989): Duct price per unit (Sq)---"Sheet Metal Estimating" Annual escalation rate (AER)---"Utility Costs Forecasting" Amortization period (a) --- Expected Life time of duct system. Energy demand cost (Ed) -- "Electric Power Annual" Energy unit cost (Ec) --- “Electric Power Annual” The life cycle cost E is calculated one by one of each duct section. The total cost is calculated by adding all the Eg together. The fitting cost, fan cost, heating and cooling coil cost are considerate as constant, and not included in the objective function. Fundamental Equations The basic equation is the Darcy-Weisbach Equation. The total pressure loss of the flow in closed duct can be calculated as follows: (Wright,1945) 29 apL VP ap=f "D> 2g (4.7) where AP = head loss due to friction (Pa.). L = conduit length (m). D = conduit inside diameter (m). V = fluid velocity (m/s). g = acceleration due to gravity (1.0 kg-m/N-s2). p = air density (kg/m3) f = friction factor. Because the air velocity is relatively low, the air flow rate can be calculated as Q=V"A (4.8) Q = air flow rate (m3/s). A = area of the duct cross-section (m2). From equation 4.8, the following relationship can be found: ya4 2 mp? (4.9a) V = Q(H* W) (4.9b) For rectangular ducts, the duct width can be interpreted in terms of an equivalent-by-velocity diameter by equating Equations 4.9a and 4.9b. 30 From 4.7 and 4,9, the equivalent-by-velocity diameter can be calculated Vs Dy=(4)" fLe * p @g APy! Q2) (4.10) where Dy = equivalent-by-velocity diameter (m). Le = equivalent length (m). AP = pressure loss of this duct section (Pa). m = 3.1415926535898 For the rectangular duct V=Q/(H*W) (4.11) From equation 4.9 and 4.11, we can get the equivalent velocity diameter Dy of the rectangular duct section: D, =(@*H*w) (4.12) and the equivalent-by-friction diameter for the rectangular duct is: =2* (HAW. Dr=2* Grew) (4.13) We can also find the following relationship. 44H (4.14) H (4.15) where 31 n= viscosity. By using Altshul's equation (Tsal,1989), we can calculate friction factor « £=0.11 (& + 88) GTR. (4.16) € = roughness of the duct material. Pressure balancing is a natural law of all duct systems. If the designers do not balance the system, the system will balance itself. In which case the air flow of each duct will be different than the designed flow rate. Some room probably has too much of a supply of air, but some room does not have enough supply of air. If the system (Figure 4) is balanced, three equations have to be satisfied (ASHRAE, 1989). 5 3 Figure 4. Five duct sections system. AP1 = AP2 AP4 = AP3 + AP2 or AP4=AP3 + AP4 32 Pfan = AP5 + AP3 + AP or Pfan = AP5 + AP3 + AP2 or = Pfan = AP4 + AP5, The optimal system should not rely on the damper to balance the pressure. The ducts should be sized properly in order to have the appropriate pressure losses. The fan pressure is distributed as the ratios of optimal pressure distribution factor (OPDF), where the OPD factor is selected by simulated annealing method. Present section AP; = OPDF; (Phan ~ AP) ww 2 (4.17) i = the duct section number of each path. AP; = the pressure losses of each section. The optimal pressure distribution factor is first calculated by OPDE; = Leaf of Subtree Present (4.18) Le; = equivalent length of number i section. ZL ~ the longest equivalent length of the tree. Because of the definitions above, all OPDFs are independent themselves. If you change one, the rest do not have to change, and 33 the system will still be balanced. So the simulated annealing method is able to change the OPD factor without unbalancing the system. The total equivalent length equals le=L+D*C/f (4.19) Le = equivalent length (m). D_ = diameter of the duct (m). C = loss coefficient. f = friction factor. L_ = the original length of the duct (m). Optimization Procedure OPD method's optimization procedure is much different than the T-method. It starts from choosing the OPDF factors of the duct system. The computer uses a random number generator to determine which OPDF factors should be changed, and which directions the OPDF should change. If the OPDF picked by computer cannot be changed (Terminal node, presized section or the other constraints) or the direction of the change is wrong, another set of random numbers will be needed. After the OPDF is changed, new duct sizes are calculated, and a new life cycle cost of the duct system is calculated. If this new life cycle cost is lower than the previous one, the change will be kept. If the new life cycle cost is higher than the previous one, the change is kept with the possibility of exp(- 34 AE/T). T is the pseudo-temperature introduced by simulated annealing method. T will become smaller and smaller until there are no more changes being accepted. The final life cycle cost of the system is the result. Fan Pressure Optimization The fan pressure is calculated differently than the T-method. The fan pressure is not calculated by simulated annealing also. It is calculated by one dimensional minimization method called the Golden Search Method. The relationship between fan pressure and the system life cycle cost is different than the duct sizes. So one dimensional optimization procedure is used to find out the optimal fan pressure. The golden search is used to find out the optimum fan pressure. If the fan has already selected, the fan should work at the maximal efficient point, that pressure should be the optimum fan pressure. If the fan pressure is given by the user, it will not be changed during the optimization. CHAPTER V DUCT TREE DATA STRUCTURE The optimal fan pressure distribution method was calculated in C computer language. C gives more feasibility to design those very complex and very large systems. The tree structure programmed in C makes the programming much more logical than the spread sheet. Tree presentation The tree like duct system can be presented in tree data structure. The physical connection between two duct sections can be represented in logical connection between two data structures. So a tree structure of duct network can be exactly duplicated in the machine memory. This will benefit the simulation of duct system. Data Structure of “DUCT TREE" The data structure of one duct section is represented as below. typedef struct duct_section { double V,L,Q,DPz,Dz,C,Df,Dv,D; double ,DP,DPmax; double Pup,Pdn,DPt,DPr,DPp; 35 36 double Le,OPDF; double H,W; int cht,ch2,presized; } duct_section; It contains most of the important information of this duct section for further calculation or output. Also there is a shell or connecter for this duct section data structure. typedef struct node { int i; duct_section *D; struct node *prev; struct node *ch1; struct node *ch2; } node; It contains a pointer to the duct section, a duct number, a pointer to the previous duct section, and two pointers to the child sections. Traversal of Duct Tree Theoretically, traverse of the tree can be done in two ways: depth first traverse and breadth first traverse. Breadth first traverse searches the node in a certain depth --- a certain number of layers. This has nothing to do with the physical duct system. So we use the other way, depth first traverse. It depends on if the children are processed first, or parents are processed first. The 37 depth first traversal of duct tree can be classified in preorder, inorder, and postorder. Preorder traversal of the tree precesses the parent node first, and then goes to the children node. Postorder is the reverse.of the preorder. The parent node is processed last, the child nodes are processed first. The inorder traversal of the data structure tree processes the nodes from left to right (or from right to left). If the calculation starts from fan to terminals, the preorder traversal of the duct tree is the best choice. If the calculation starts from terminal to fan, the postorder traversal of the duct tree is needed. Recursion, which uses the hardware stack, is faster than the iteration method, and the source code is shorter also. Therefore we used the recursive function to traverse the duct tree. Preorder raversal The fan pressure should be distributed from the duct section closest to the fan to the terminal or from root to leaf. A preorder traversal of the duct tree is needed. A preorder traversal example shown below is a function called recursive which calculates the pressure loss of each duct section. dstri_pres(H,Pfan) node *H; double Pfan; { double Dv5,f,Q,Le,dP; 38 if(H == NULL) return; if(H->D->presized |= TRUE) H->D->DP = Pfan * H->D->OPDF; f = H>D-of; Le = H->D-sLe; Q=H->D->Q; dP = H->D->DP - H->D->DPz; if(4P <= 0.0) dP = 0.01; Dv5 = 16./(PI* Pl) * f* Le * DENSITY * (Q * Q)/(2. * GC * dP); if(H->D->presized == FALSE) H->D->Dv = pow(Dv5,0.2); dstri_pres(H->ch1,(Pfan - H->D->DP)); dstri_pres(H->ch2,(Pfan - H->D->DP)); Postorder Traversal The biggest pressure loss of each path of the duct network should be calculated from the terminal to fan or from leaf to root. A postorder traversal of the duct tree network is used. This function is a recursive function and returns a value of biggest pressure loss of the whole duct network. double calc_DP(H,DP,biggest) Ea node *H; double DP, biggest; { if(H == NULL) return(max(biggest,DP)): biggest = calc_DP(H->ch1,H->D->DP + DP, biggest); biggest = calc_DP(H->ch2,H->D->DP + DP, biggest); if((H->cht == NULL)&&(H->ch2 == NULL)) biggest = max(biggest, DP); return(biggest); CHAPTER VI RESULTS, DISCUSSIONS AND CONCLUSIONS The mathematical model developed in this work was programmed using C language. The computer program worked under both DOS and UNIX system, on both IBM 386 and RISC System 6000. This program is capable of minimizing the life cycle cost of both rectangular and round duct systems. Another program was developed to implement the T-method for comparison. Both of these two programs can solve the supply-return system problems. Both programs have solved the example problem in the ASHRAE Handbook of Fundamental 1989 and Tsal's Five duct sections example problem. The computer output can be found in the Appendix. Results of Simulated Annealing From Figure 5 to Figure 8, the plots show how the simulated annealing method worked to minimize the life cycle cost of the ASHRAE example problem. The modified simulated annealing method Started from the results of balanced capacity method. The air velocities shown on the figures are the air velocities of the longest paths of the system. 40 41 ASHRAE Example (V=7.5 m/s) 8600 400 4 8200 4 8000 Life Cycle Cost (6) 7800 4 7600 4 7400 + 0 100 200 300 400 500 600 Iteration number Figure 5. ASHRAE Example (V=7.5 m/s) In ASHRAE example, because the fan is preselected both the life cycle cost of the duct system and the total duct surface areas can be the objective function. They have a constant relation, 42 ASHRAE Example (V = 7.5 mis) Duct surface are 180 0 100 200 300 400 500 600 Nteration Number Figure 6. ASHRAE Example (V = 7.5 m/s) A different starting point was used to test if the lowest life cycle cost of the duct system has any relationship with the starting point. Areas. (m‘m) Surtace Duet Life Cycle Cost ($) 43 ASHRAE Example (V = 4.5 m/s) 7800 7600 7400 0 100 200 300 400 500 600 Iteration number Figure 7. ASHRAE Example (V = 4.5 m/s) ASHRAE Example (V = 4.5 m/s) 210 200 190 Iteration Number Figure 8. ASHRAE Example (V = 4.5 m/s) 44 We found that the lowest cost has nothing to do with the starting point. The objective function started from different Starting points and terminated at the same result. We observed the significant changes of the total duct surface areas, of the ASHRAE example (Figure 5 and Figure 7). And also we found that the objective function and the total duct surface areas has a very close relationship. Because the fan pressure is preselected, the duct surface areas are actually the objective function. ASHRAE Example Final Calculation (V = 7.5 m/s) 7550 7548 4 7546 7544 7542 Life Cyele Cost (8) 7540 7538 7536 T T 0 10 20 30 40 Iteration Figure 9. ASHRAE Example Final Calculation (V = 7.5 m/s) 45 ASHRAE Example Final Calculation (V=4.0) 7560 7540 Life Cycle Cost (8) 7530 7520 0 20 40 60 80 Iteration Figure 10. ASHRAE Example Final Calculation (V=4.5m/s) Figure 9 and Figure 10 are the detailed analyses of the annealing procedures. We can see that the objective function oscillated violently even at the final stage of the calculation. Perspectively, the objective function moved towards the global minimum. It started at $8692 and ended at $7528. The duct surface area reduced from 211 square meters to 180.12 square meters. The surface area is 14.8% smaller than the ASHRAE handbook example (211 square meters). 46 Duct Surface Area of Different Design Method M*M F Rausaaeanaas SS ASHRAE —T(B{ Rn) (A Ren) OPD(BIRC) OD (AN) Fan Pressure = 835 Pa. Figure 11. Duct Surface Area of Different Design Method. Figure 11 shows the comparison of the OPD method, the T- method and the ASHRAE example. Because the fan pressures used by different methods are the same, the duct surface areas can represent the cost of the system, which is the objective function. "Aft Rd” and "Bf Rd” stand for "After rounding" and “Before Rounding". We noticed the size rounding does not make too much difference of the total duct surface area. 47 Pressure Changes of the Duct Sections 300 a aa {a 200 L > ve é aa yo 2 100 nL E }———+}—*-++ a Batanood cap 2 ° rs oa © PD Method 5 2 Oo = +100 ; + -200 wet 0 10 20 Duct Sections Figure 12. Pressure Changes of the Duct Sections. Figure 12 shows the changes of pressure loss of each duct section. The OPD method is compared with the equal capacity method which is the starting point of the OPD method. The negative pressure losses refer to the return duct sections. The preselected duct sections’ pressure losses are kept the same during the calculation. Results of Golden Search Method The golden search method was used to find out the optimum fan pressure. It solved an example problem given by Tsal (1989). The result is presented in Figure 13 and Figure 14. The life cycle cost 48 went down quickly and stopped at the bottom of the objective function while the fan pressure changed. Life Cycle Cost vs. Fan Pressure (Five Sections Ductwork) 4600 4400 Cost ($) 4200 Cycle 4000 Life 3800 3600 100 248m Presiube (Pascal 00 500 Figure 13. Life Cycle Cost vs. Fan Pressure Five Sections Ductwork. Figure 13 shows when the fan pressure increases the objective function goes down hill. But from a detailed look of the iteration, we will find that the objective function will goes uphill if we continue to increase the fan pressure (Figure 14). 49 Details of Cost vs. Fan Pressure (Five Section Ductwork) 3634 3632 3630 3828 Life Cycle Cost (8) 3626 3624 : SW 3622 340 360 380 400 420 440 460 Fan Pressure (Pascal) Figure 14. Details of Cost vs. Fan Pressure Five Section Ductwork. The computer program stopped at the lowest point of the pressure-cost curve. In this Five Duct Sections problem, if we continue to increase fan pressure, the life cycle cost of the duct system will increase rapidly. Comparison of Pressure Losses Without changing the fan pressure, how is the duct material saved? The answer is the fan pressure distributed more optimally. The pressure saved by the shorter duct sections which have the 50 relatively high fitting resistance is used to shrink the longer duct sections' diameters. We can find the significant duct diameter changes are made by the computer programs in Figure 15. Duct Diameters of Different Methods (ASHRAE Example) * + “ Hy @ ASHRAE | t : © Tsal's Result + OPD Method » $ $ © T-Method grey = BL Capacity tt 10 [oan WUT 1294567 8 0 101112191815 16171819 Duct Sections Equavilent Cost Diameter (Inches) Figure 15. Duct Diameters of Different Methods ASHRAE Example The ASHRAE example problem was solved by T-method and the OPD method. We got little different results from Tsal's (1989) because we used different computer methods than Tsal. There is a round off error. There is a small difference between the T-method's results and OPD method's results. But they got the similar total duct surface areas (Figure 12). From Figure 15 we can see that the biggest pressure changes happened in the return duct sections. Most Si of the return duct sections have long lengths but less fitting frictions in ASHRAE example. An increase in the velocities of these duct sections can decrease the cross-sections of the ducts; therefore, the surface areas of the duct system will decrease. However, the increase of the pressure loss of the return system will decrease the velocity of the supply system, because the fan is fixed. We can see from Figure 15 that most of the duct pressure losses are reduced. Also we can find that not all of the duct pressure losses decreased. Sections 13 and 14 have relatively low fitting frictions compared to their lengths; therefore their pressure losses increase to reduce the surface area. Sections 18 and 19 have large fitting resistance but relatively short lengths; therefore the pressure losses at these two sections decline to save the energy for the other duct sections. Comparison to T-Method Both the T-Method and the OPD method can find the global minimum of the objective function. Their results validated each other. The T-Method has less iterations but relies on the partial derivatives of the objective function, and hence requires an objective function with analytically differentiable partial derivatives. The OPD method has more calculations but is more flexible to add constraints to without changing the mathematics model too much. Besides the constraints the T-Method can solve, the OPD method can solve the additional constraints, like air velocity limit, and static pressure limit or the other critical constraints. The 52 changes required to add the new constraints to the software are small. It is more flexible to meet the future challenge of the new constraints brought by new control technology and the VAV system. Another improvement which the OPD method made is that the OPD method's objective function can be life cycle cost, or something else. Many kinds of economic analysis models can be used as the objective function. This gives the OPD method great advantage over T-method in business application. Different Starting Point We have tried to work on the same problem from different starting points. The results (Figure 5 and Figure 7) show that the simulated annealing method is able to reach the same answer (global minimum) from two different starting points. Conclusions Based on this study, the following conclusions have been developed: (1) Both the OPD method and the T-method find essentially the same minimum of the objective function. The closeness of the minimum points strongly suggests that both methods have found the global minimum. (2) As described by Tsal, the T-method has not been shown able to incorporate constraints such as air velocity limits or static pressure limits. Further more, it seems unlikely that such constraints can be incorporated without fundamentally changing the method. 53 The addition of a penalty function would add multiple singularities to the objective function, rendering the analytical partial derivatives indeterminate. On the other hand, the OPD method can easily incorporate such constraints. (3) The OPD method's objective function is not limited to life cycle cost. It can be modified without changing the method itself. For example, the objective function could be the first cost of the system, including the fan. (4) Most of the existing duct design methods can be cast as methods for determining the fan pressure distribution ratios of the ducts, This might be useful for future studies. (5) The OPD method is a good alternative to the T-method. REFERENCES Abadie, J.; Carpentier, J. 1969. "Generalization of the Wolfe Reduced Gradient Method to the Case of Nonlinear Constrains". Optimization, by Fletcher ed. New York: Academic Press. Arkin, Hillel and Shitzer, Avraham 1979 "Computer Aided Optimal Life-Cycle Design of Rectangular Air Supply Duct System." ASHRAE Transactions, Vol. 85, Part |, pp197-213. Arkin, Hillel and Shitzer, Avraham 1979 "Study of Economic and Engineering Parameters Related to The Cost of an Optimal Air Supply Duct System." ASHRAE Transactions, Vol. 85, Part Il, pp 363-374. ASHRAE 1989. ASHRAE_handbook--1989 fundamentals, Chapter 32, "Duct design.” Atlanta: American Society of Heating, Refrigerating, and Air-Conditioning Engineers, Inc. Bellman, RE. 1957 Dynamic programming. New York: Princeton University Press. Chiang, Hsiao-Dong, et al. 1990 "Optimal Network Reconfigurations in Distribution Systems: Part 2: Solution Algorithms and Numerical Results" IEEE Transactions on Power Delivery, Vol 5,No. 3, July 1990, pp 1568-1574. Carnevali,P., et al. 1985 "Image processing by simulated annealing" rnal Development, Vol 29 pp569-579. Kim, Myung Soo; Guest, Clark C. 1990, “Simulated annealing algorithm for binary phase only filters in pattern classification" Applied Optics v29 pp1203-1208. Kirkpatrick, S., Gelatt, C.D., and Vecchi, M.P. 1983, "Optimization by Simulated Annealing" Science, Vol. 220 pp. 671-680 54 55 Ide, Hideo and Matsumura, H 1990 "Frictional Pressure losses of Two-Phase Gas-Liquid Flow in Rectangular Channels." Experimental Thermal and Fluid Science 3:362-372. Lafore, Robert 1990 The Waite Group's Microsoft C Programming for the PC. Howard W. Sams & Company. Leah, R.L.; Pedersen, C.O.; and Liebman, J.S. 1987. “Optimization Using Quadratic Search - A case Study of a Chilled Water System." ASHRAE Transactions, Vol. 93, Part 2. McQuiston, F.C. and Parker, J.D., 1988 Heating, Ventilating, and Air conditioning analysis and design. John wiley & sons. Scott, K.S., 1986 "Don't Ignore Duct Design For Optimized HVAC Systems." Specifying Engineer Vol. 55, pp 62-64. Tremblay, Jean-Paul and Sorenson, Paul G. 1984 An Introduction to Jata Structures with Applications. McGRAW-HILL Book Company. Tsal, R..and Adler,M.S. 1987 "Evaluation of numerical methods for ductwork and pipeline optimization." ASHRAE Transactions, Vol.93, Part |, pp.17-34. Tsal, R.J.and Behls, H.F. 1986 "Evaluation of Duct Design Methods." ions, Vol.92, Part IA, pp.347-361. Tsal, R.J.and Behls, H.F. 1988 "Fallacy of The Static Regain Duct Design Method" ASHRAE Transactions, Vol.94, Part Il, pp.76-89. Tsal, R.J. and R.Mangel. 1988 "T-method duct design. Part I: Optimization theory" and "Part Il: Calculation procedure and economic analysis." ASHRAE Transactions, Vol 94, Part Il. Tsal, R.J., Behls, H.F., Mangel, R. 1990 "T-method duct design. Part Ill: Simulation." Presented at ASHRAE's Annual Meeting. St.Louis, Missouri, June 23-26 Vecchi, M.P. and Kirkpatrick, S. 1983 "Global Wiring by Simulated Annealing” JEEE Transactions on Computer Aided Design, Vol. CAD-2, p.215. 56 Piccioni, Mauro 1991 "A Combined Multistart-Annealing Algorithm for Continuous Global Optimization" Computers and Mathematics Applications, Vol 21, No. 6/7, pp173-179. Prabhakaran, M.; Harvey, Stephen C. 1985 "Molecular dynamics anneals large-scale deformations of model macromolecules: stretching the DNA double helix to form an intercalation site" The v89 pp5767-5769. Press, W.H., et al 1990 Numerical Recipes in C. New York: Cambridge University Press. Wright, D.K.Jr. 1945 "A New Friction Chart For Round Ducts" ASHVE Transactions Vol. 51, pp 303-316.

You might also like