<<

Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93

RESEARCH ARTICLE OPEN ACCESS

Thermodynamic Simulation of Cycles using GUI- MatLab Interfaces

Pedro F. Arce, Nian F. Vieira Chemical Engineering Department, School Engineering of Lorena, University of São Paulo, BRAZIL

ABSTRACT Steam power cycles are constituted by a series of thermodynamic processes that aim convert the thermal of a fluid in mechanical , which can then be transformed into electrical energy. There are many types of steam power cycles in the world, using various work fluids that may or may not undergo some change in their . The is a steam power cycle that use usually water as work fluid to move turbines and produce work. Nowadays, this steam power cycle is the most used in thermoelectric plants to produce electricity. This work aims the creation of a program in MatLab software with an interface (Graphical Unit Interface, GUI) to simulate many configurations of Rankine cycles, providing to the user the values of the main parameters of these processes, that is: required in the boiler; work generated in the turbine; required work in the pumps and the of the cycle. This program provides good results, showing that it can be used to improve the functions of the equipments in these thermodynamic cycles and to support the teaching disciplines of Applied Thermodynamic. Keywords: Rankine Cycle, Water, Thermodynamic Simulation, GUI-MatLab

I. INTRODUCTION Nowadays, the electrical energy is compressed liquid, changing also their values of increasingly needed to the humanity, providing the , and specific [1-3]. action of many machines in homes and industry. Thus, technologies to produce electricity are the With the current technology and the subject of many investments and improvements. development of new materials, the and the of the water in the thermodynamic cycle The most part of the electrical energy can reach more than 620,0 ºC and 300,0 bar, generated in the world co me from power plants, respectively. For becoming the Rankine cycle more which use coal, gas or uranium to heat a fluid efficient, many improvements can be used, just (usually water) and move turbines. After this, modifying the basic structure of the thermodynamic mechanical work is converted into electricity. cycle to reduce the required heat or to produce more work. To reduce the required heat, it is used To convert efficiently the energy of a fluid regenerators, in which a side current, that leaves the in work, these power plants use thermodynamic turbine, is used to preheat the fluid, which later is power cycles, which are constituted by many types going to the boiler. To produce more work, it is used of equipments, such as pumps, turbines, boilers, reheating between the turbines, with the first turbine condensers, etc. There are many power cycles having high values of pressure and the last turbine available to serve this objective. However, the power low values of pressure. These improvements can be cycle most used today is the Rankine cycle. used isolated or together, depending of the capacity and the financial resources of the power plants [1-4]. The Rankine cycle is a steam power cycle that uses the changes of the thermodynamic To design properly the equipments of any state of water to move turbines and produce energy. configuration of Rankine cycle, four parameters Ideally, this thermodynamic cycle is constituted by should be analyzed, that are: four stages, which are:  Required heat in the boiler;  Isobaric heating in the boiler;  Work generated in the turbine(s);  Isentropic expansion in the turbine(s);  Required work in the pump(s);  Isobaric cooling in the condenser;  Thermal efficiency of the cycle.  Isentropic compression in the pump(s). These parameters can be determinate in a In these stages, water changes its thermodynamic simulation of the process. thermodynamic state of superheated steam until Nowadays, many computer programs are available

www.ijera.com DOI: 10.9790/9622-0701038893 88 | P a g e Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93 for this purpose, working with different ranges and 6. Rankine Cycle with Reheating and providing to the user simple configurations of Regeneration on both turbines (LPT and HPT). Rankine cycle. In this work, a friendly computer program was developed to simulate several After these specifications, the computer configurations of Rankine cycles, by utilizing the program runs the thermodynamic simulation of a mass, energy and entropy balances in turbines, Rankine cycle and provides to the user the results of pumps, boilers and condensers in ideal and real the mains parameters: mechanical work produced by situations. The criteria for predicting thermodynamic turbine (WT), mechanical work provided to pump properties, such as enthalpy and entropy, were taken (WP), Heat provided to the boiler (QB), and from previous work [5]. This friendly software can efficiency of the Rankine cycle (η). The first three also be used for teaching of Applied parameters can be obtained through the first and in undergraduate and graduate second laws of thermodynamic (open systems, courses. without loss of heat, steady state, disregarding the kinetic and potential and reversible II. METHODOLOGY conditions in all equipments) and the efficiency of There are many ways to calculate the Rankine cycle is calculated from definition of a heat thermodynamic properties of a fluid. The prediction . The following equations show how these of thermodynamic properties can be made by using parameters are obtained: cubic or non-cubic equations of state or thermodynamic tables of a pure substance [6]. (1) However, it is necessary, at least, the knowledge of two thermodynamic properties of the system, first to (2) determinate the thermodynamic state and then to determinate the other thermodynamic properties. In (3) previous work [5], the authors used these criteria to predict thermodynamic properties of water for several thermodynamic states: compressed liquid, (4) saturated liquid, liquid - vapor mixture, saturated vapor, superheated steam, supercritical fluid. In the interface developed with GUI- Main parameters of a Rankine cycle, which MatLab, there is a figure that represents all the are calculated through the mass, energy and entropy configurations of Rankine cycles available in the balances involving properties of water such as computer program, numbered according to the order enthalpy and entropy, require the determination of cited above. This image helps users for these values to begin the calculation. Based on this, understanding about the process. This image is the computer program requests to the user the values shown in Fig. 1. of temperature and pressure in some stages of the cycle. Temperature should be provide in ºC and its The user also can decide the irreversibility valid range is between 50,0 and 800,0 ºC. Pressure of the steam power cycle. The sources of should be provide in bar and its valid range is irreversibility in a cycle at real conditions may be between 0,0002 and 500,0 bar. These values are friction, pressure drops, etc. For this, the user can used to find the thermodynamic properties of water choose between a cycle at ideal conditions (with an through the internal algorithms of the computer isentropic efficiency of the equipments as 100% or program. At the same time, the computer program also called reversible process) or a cycle at real also requests the configuration of Rankine cycle that conditions or also called (with user wants to simulate, among the six available ones, an isentropic efficiency of the equipments being such as: chosen by the user).

1. Basic Rankine Cycle; In the cycles at real conditions, the values 2. Regenerative Rankine Cycle; of work in turbines and pumps are corrected 3. Rankine Cycle with Reheating; according to the following equations: 4. Rankine Cycle with Reheating and Regeneration on the Low Pressure Turbine (5) (LPT); 5. Rankine Cycle with Reheating and (6) Regeneration on the High Pressure Turbine (HPT); where EfT and EfP are the isentropic efficiencies of turbine and pump, respectively.

www.ijera.com DOI: 10.9790/9622-0701038893 89 | P a g e Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93

Fig. 1: Configurations of Rankine cycle available in the computer program of this work: (1) Basic Rankine Cycle, (2) Regenerative Rankine Cycle; (3) Rankine Cycle with Reheating; (4) Rankine Cycle with Reheating and Regeneration on the Low Pressure Turbine; (5) Rankine Cycle with Reheating and Regeneration on the High Pressure Turbine; (6) Rankine Cycle with Reheating and Regeneration on both turbines.

With all these options, it was created an and with examples of books of Applied interface in GUI-MatLab to help the interaction Thermodynamics. with the user. This interface is shown in Fig. 2.

III. RESULT AND DISCUSSION Results obtained with the computer program developed in this work were compared with the other one that simulates Rankine cycles

Fig. 2: GUI-MatLab interface after a thermodynamic simulation

www.ijera.com DOI: 10.9790/9622-0701038893 90 | P a g e Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93

The computer program used for comparison reheating (bar), Tr is the temperature in the reheating is a software available in internet [7]. This software (ºC) and η representing the thermal efficiency of the work in a range of pressure and temperature cycle (%). Although both computer programs appropriated for Rankine cycles. It software was provide the four main parameters of a steam power developed for four configurations of Rankine cycles, cycle, only the thermal efficiency was used for that are: basic cycle, regenerative cycle, cycle with comparison between the sources, with a relative reheating and cycle with reheating and regeneration error calculated for the following equation: on the low-pressure turbine.

(7) As this computer program doesn‟t have two of the configurations that the computer program developed in this work has, configurations 5 and 6 Six configurations of Rankine cycles were are compared with examples of literature [1,8]. analyzed. They are: basic, regenerative, with reheating, with reheating and regeneration on the Tables 1 to 6 present the results obtained low-pressure turbine, with reheating and for all the configurations of Rankine cycle available regeneration on the high-pressure turbine and with in the computer program of this work, where Ph reheating and regeneration on both turbines. Results representing the pressure in the boiler (bar), Th is the for the configurations are presented in Tables 1, 2, 3, temperature in the boiler (ºC), Pc is the pressure in 4, 5 and 6, respectively. the condenser (bar), Pm is the pressure in the regenerator (bar), Pr representing the pressure in the

Table 1: Results for basic Rankine Cycle

Table 2: Results for regenerative Rankine cycle

Table 3: Results for Rankine cycle with reheating

Table 4: Results for Rankine cycle with reheating and regeneration in the low-pressure turbine

www.ijera.com DOI: 10.9790/9622-0701038893 91 | P a g e Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93

Table 5: Results for Rankine cycle with reheating and regeneration in the high-pressure turbine

Table 6: Results for Rankine cycle with reheating and regeneration in both turbines

Based on the previous tables, it is possible It is worth mentioning that, in addition to to observe that the computer program developed in good accuracy, the computer program developed in this work provides results with more accuracy and this work also have more configurations of Rankine very similar to the results of the other computer [7] cycles than other computer programs and have the and examples of books [1,8]. Relative errors option to choose between ideal and real conditions between the sources are smaller than 2,0% in all (reversible and irreversible processes). In the configurations of Rankine cycles obtained by the previous tables presented, all the results are obtained thermodynamic simulation in this work. assuming Rankine cycles operating under reversible conditions, that is, turbines and pumps with 100% of Analyzing the results and the input values isentropic efficiency. Real conditions (irreversible of pressure and temperature, it is observed that, at processes) were not explored because many moderate values of pressure and temperature, such computer programs that simulating Rankine cycles as 100,0 bar and 400,0ºC, the error between the haven´t implemented that option. sources is small and less than 1,0%. The more the values of pressure and temperature increase and the The computer program developed in this closer they come to the critical point of water work can be downloaded from the following links: (374,1ºC and 220,6 bar), relative errors increase.  For users of MatLab: This fact is due to differences in the reference states https://www.dropbox.com/s/1xyzipmizvx7x0k/ used to analyze the thermodynamic properties of Thermo_web.rar?dl=0 water in this work and other researches. In previous  For non-users of Matlab: works for the prediction of thermodynamic https://www.dropbox.com/s/13bqxff96anoaom/ properties, authors obtained different values of Thermo_mcr.rar?dl=0 thermodynamic properties of fluid at different reference states. Thus, each computer program uses IV. CONCLUSION different tables of thermodynamic properties of It is possible conclude that, based on the water to simulate its steam power cycles. At low results, obtained by the computer program values of pressure, the difference is minimal. developed in this work, have good accuracy, with However, at high values of pressure, the difference relative errors less than 2,0% in comparison with between values of thermodynamic properties, such other ones obtained of other sources. Besides, this as enthalpy and entropy, increases, causing relative computer program also let to choose several errors greater than 1,0%. configurations of Rankine cycles than other computer programs available online and provide to Besides, errors may also occur due to the the user the option to choose between ideal and real interpolation method used in the program code in conditions (reversible and irreversible processes, MatLab („spline‟) to predict the thermodynamic respectively). Thus, the computer program can be properties of water. However, this source of error used to design equipments, simulate isn‟t so big and the results continue being accurate. thermodynamically Rankine cycles with water as work fluid and becomes as a useful tool for teaching in courses of Applied Thermodynamics.

www.ijera.com DOI: 10.9790/9622-0701038893 92 | P a g e Pedro F. Arce. Int. Journal of Engineering Research and Application www.ijera.com ISSN : 2248-9622, Vol. 7, Issue 1, ( Part -3) January 2017, pp.88-93

[5]. P.F. Arce, N.V. Freire. Programming and LIST OF SYMBOLS testing of a friendly GUI-MatLab software to predict the thermodynamic properties of B: boiler water, International J. of Research in C: condenser Engineering and Technology, 5 (11), 2016, EfT: Isentropic Efficiency of the turbine(s) (%) 52-57. EfP: Isentropic Efficiency of the pump(s) (%) [6]. M.L. Michelsen, J.M. Mollerup, E: Relative Error (%) Thermodynamic Models: Fundamentals & HPT: High-pressure Turbine Computational Aspects (Denmark: Tie Line HPP : high-pressure pump Publications, 2007). HPM : high-pressure mixer tank [7]. http://www.engr.siu.edu/staff1/weston/thermo Hin : inlet enthalpy (kJ/kg) /Rankine/ RankineCycles.html; accessed in Hout : output enthalpy (kJ/kg) May 27, 2015. IPP : intermediate-pressure pump [8]. G.H. Milton, Problemas Resueltos Examenes LPT: Low-pressure Turbine - UNI y Otros (Lima, Perú: Ediciones Habich, LPP : low-pressure pump 1986). LPM : low-pressure mixer tank M : mixer tank Ph: Pressure in the boiler (bar) Pc: Pressure in the condenser (bar) Pr: Pressure in reheating (bar) Pm: Pressure in the mixer tank (bar) P : pump Pin : inlet pressure (bar) Pout : output pressure (bar) QB: Heat provided by the boiler (kJ/kg) Th: Temperature in the boiler (°C) Tr: Temperature in reheating (°C) T : turbine v : specific volume (m3/kg) WT: Mechanical Work produced in the turbine(s) (kJ/kg) WP: Mechanical Work required in the pump(s) (kJ/kg) η: Thermal Efficiency of the cycle (%)

ACKNOWLEDGEMENTS N.V. Freire thanks the Chemical Engineering Department of the Engineering School of Lorena, University of São Paulo (USP) for the opportunity given to him to get his scientific initiation and P.F. Arce-Castillo thanks the “Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP)” the financial aid through the research grant: 2015/05155-8.

REFERENCES [1]. Y.A. Çengel, M.A. Boles, Termodinâmica (Porto Alegre, Brazil : McGraw Hill Publishers, 2013). [2]. I. Granet, Termodinâmica e Energia Térmica (Rio de Janeiro, Brazil : Prentice-Hall Publishers, 1990). [3]. C. Borgnakke, R.E. Sonntag, Fundamentos da Termodinâmica (São Paulo, Brazil : Blucher Publishers, 2013). [4]. M.C. Potter, E.P. Scott, Termodinâmica (São Paulo, Brazil : Thomson Learning, 2006).

www.ijera.com DOI: 10.9790/9622-0701038893 93 | P a g e