Advanced Exergy Analysis of Waste-Based District Heating Options through Case Studies

The heating of the buildings, together with domestic hot water generation, is responsible for half of the total generated heating energy, which consumes half of the final energy demand. Meanwhile, district heating systems are a powerful option to meet this demand, with their significant potential and the experience accumulated over many years. The work described here deals with the conventional and advanced exergy performance assessments of the district heating system, using four different waste heat sources by the exhaust gas potentials of the selected plants (municipal solid waste cogeneration, thermal power, wastewater treatment, and cement production), with the real-time data group based on numerical investigations. The simulated results based on conventional exergy analysis revealed that the priority should be given to heat exchanger (HE)-I, with exergy efficiency values from 0.39 to 0.58, followed by HE-II and the pump with those from 0.48 to 0.78 and from 0.81 to 0.82, respectively. On the other hand, the simulated results based on advanced exergy analysis indicated that the exergy destruction was mostly avoidable for the pump (78.32–78.56%) and mostly unavoidable for the heat exchangers (66.61–97.13%). Meanwhile, the exergy destruction was determined to be mainly originated from the component itself (endogenous), for the pump (97.50–99.45%) and heat exchangers (69.80–91.97%). When the real-time implementation was considered, the functional exergy efficiency of the entire system was obtained to be linearly and inversely proportional to the pipeline length and the average ambient temperature, respectively.


Introduction
District heating (DH) is not a new technology. It is a technology that has evolved considerably over the last four decades. During the 1980s, the essential characteristics of networks were the main research focus. During the next decade, DH was integrated into many modern societies in Europe and North America. During the early 21st century, sustainable systems, with lesser carbon emissions, have become the focal point. Over the last couple of years, scientific studies have focused on a more integrated and large-scale approach [1].
DH also indicates the significant potential and has been well documented. However, it only has, on average, a market share of 10% throughout Europe, while it is mainly restricted to northern and central nations [2,3]. Globally, heating is responsible for half of the final energy demand. Meanwhile, the heating of buildings, together with domestic hot water supply, accounts for almost half of the total generated heating energy (50% in industrial processes, 46% in buildings, and the remainder was used in agriculture, essentially for greenhouse heating). On the other hand, 92% of DH was powered by fossil fuels in 2018. Therefore, increasing the share of renewables and/or waste heat (WH) in DH systems (DHSs) is a crucial factor in achieving the 2030 United Nations sustainable development goals [4].
DHSs mostly have an essential link between facilities generating heat with low exergy content and consumers [5]. Excess heat also exists from many sources, and its avoidance or utilization would cause a reduction in the primary energy use and greenhouse gas emissions that are released during the combustion of fossil fuels [6]. In the process industry, a large amount of WH is usually available. Depending on various temperature levels, industrial WH can be split into low-, medium-, and high-grade WHs. Although there are no clearly defined values for these three levels, 650 • C and 230 • C may be accepted as the dividing points [7,8].
Exergy-based tools have been widely used in analyzing and assessing the performance of energy-related systems in the recent years. These tools can be categorized into conventional and advanced exergy analysis. In the advanced exergy method, one can perform a more comprehensive analysis by investigating and identifying the interactions of sections with each other, in terms of exergy destructions (endogenous/exogenous and unavoidable/avoidable constituents), while the potential for improvements is deducted.
As far as previously conducted studies are concerned, Hepbasli and Keçebaş [9] assessed the performance of a geothermal DHS in Turkey, through conventional and advanced exergetic analysis methods based on real operational data. They reported that the conventional and modified exergetic efficiency values were 29.29% and 34.46%, respectively. These geothermal-based exergetic analyses and assessments were conducted for different Turkish cities, by various investigators, such as Tan and Keçebaş [10] and Yamankaradeniz [11], with an exergo-environmental analysis that was performed by Yürüsoy and Keçebaş [12]. The overall conventional and advanced exergy efficiencies were determined to be 43.72% and 45.06% [10], and 25.24% and 26.34% [11], with exergoeconomic factors of 5.25% and 12.98% [12], respectively. Sangi et al. [13] developed a Modelica-based tool for performing a dynamic exergy analysis of energy systems. This analysis was carried out by two sub-models, the ExergySensor and the ExergyAnalysisTool, while a model of a district in Bottrop, Germany, along with its energy system, was also developed. Koroglu and Sogut [14] considered a steam power plant, to which they applied conventional and advanced exergy analysis methods. They reported that the overall system had a 10% improvement potential of the exergy efficiency. Fellaou and Bounahmidi [15] assessed the performance of a cement plant that was located in Morocco, through conventional and advanced exergetic analyses. They determined that 31.54% of the total exergy destruction in raw mill two was avoidable, followed by 29.21% and 15% in raw mill one and the calciner, respectively. Idrissa and Boulama [16] considered a combined Brayton/Brayton power cycle to assess its performance using advanced exergy analysis. They determined that the largest exergy destruction occurred due to the combustion chamber, followed by the topping cycle turbine, the compressor, and the recovery HE. Fito et al. [17] considered an industrial WH recovery system that was located in DH in Grenoble, France. The 4E analyses, namely, energy, exergy, economic and exergoeconomic analyses, were used to evaluate its performance. Based on source-oriented and demand-oriented optimizations with 40-MWh storage capacity, recovering WH at 85 • C without heat pump and at 35 • C with heat pump configurations were recommended, respectively. Fito et al. [18] also performed energy-and exergy-based comparative analyses of a WH recovery system for DH in optimal design aspects. The energy analysis was based on the heating demand coverage and WH recovered, as two indicators, while the exergy analysis used only one indicator, which was global annual exergy efficiency. The exergy analysis with the highest global exergy efficiency of 27% was in good agreement with the source-oriented design. Pan et al. [19] developed and analyzed a novel organic Rankine cycle (ORC) heat pump system for waste-to-energy, which recovered the WH of low-temperature exhaust gas and ultra-low-temperature WH. A higher electrical efficiency of 28.4% was obtained, with an improvement of 6.5% compared to the conventional system. Allen et al. [20] used energy modeling for comparing the energy performance of conventional and advanced district thermal energy systems at the urban district level. Radiant hydronic heating, ventilation, and air conditioning systems, mated with low-exergy district thermal energy systems, had a source energy use intensity that was 49% lower than that of conventional systems. Ambriz-Diaz et al. [21] evaluated a polygeneration plant operating in a geothermal cascade, using advanced exergy and exergoeconomic analysis methods. They concluded that the polygeneration plant could reach an energy efficiency increase of 1.53%, through improvements to be conducted in the design of the system components. Liao et al. [22] proposed alternative ORC-based combined power systems, and analyzed them using advanced exergy analysis. According to their assessment, the ORC-ORC system, with heptane/R601a as working fluids, had the highest thermal and exergy efficiency values of 16.37% and 45.54%, respectively, compared to ORC-based sCO 2 systems. Chen et al. [23] proposed a novel integrated hybrid DHS, which consisted of photovoltaic/thermal collector, absorption, and geothermal heat pump technologies, to produce space heating water for an office building in China. Based on the modified thermo-ecological cost analysis, a 66% photovoltaic coverage ratio of photovoltaic/thermal collector led to a minimum thermo-ecological heating cost of 6.86 J/J. Wang et al. [24] coupled the ORC and the absorption refrigeration, driven by WH, with the CO 2 capture and storage process. They analyzed this integrated process through advanced exergy and advanced exergoeconomic analysis methods. The total system exergy efficiency value was determined to be 17.56%, with a total exergy destruction rate of 36,424 kW, of which 43.15%, 32.35%, and 24.50% belonged to the CO 2 capture-storage, ORC, and absorption refrigeration cycle processes, respectively. Caglayan and Caliskan [25] evaluated the performance of a cogeneration system that had a turbine unit and spray dryers, used in a ceramic factory through both conventional and advanced exergy analyses, and investigated the effect of varying dead states temperatures on the efficiency. They calculated the values for the maximum exergy efficiency and the destruction rate of the system as 29.85% and 17.81 MW at a dead state temperature of 30 • C, respectively.
Based on the literature review above, DH systems have a remarkable potential in heating applications in which a more integrated and large-scale approach has been preferred recently. In this regard, WH source-driven DH systems have become an effective solution, enabling considerable energy savings and environmental benefits. Nevertheless, exergy-based assessment methods have been powerful tools, by determining the loss in work potential (exergy destruction) and its origin, namely, due to the component itself (endogenous) or other components (exogenous), and can be enhanced (avoidable), or not (unavoidable), considering the up-to-date technological status for a selected system solution. Therefore, this study focused on performing conventional and advanced exergy analyses of a WH source DH system, based on four various case studies. Meanwhile, ambient temperature and the heat loss in the DH network were assessed as critical parameters during the operation of the WH source DH system, where their effects on the exergy performance were studied, based on four different selected sites in Turkey. In this way, this study differs from other studies, by presenting a comprehensive approach by dealing with many aspects. The main objectives of this paper are as follows: • Carry out series simulations for evaluating both the conventional and advanced exergy performances of DH systems with various WH sources, based on four different plants.
While municipal solid waste cogeneration, thermal power, wastewater treatment, and cement production plants were considered WH sources, HEs, pump, and the whole system were assessed through exergy analyses; • Evaluate the conventional exergy performance of the whole system, based on four different locations in Turkey, using a validated mathematical model. The sites were selected by considering degree-day regions and the situation with the highest population density, and the real-time data group validated the mathematical model; • Evaluate the conventional exergy performance of the whole system, based on various distances (5 km, 10 km, 15 km, and 20 km) between the WH sources and the dwellings.

Description of a DH System Integrated with an Existing WH Sources
In this study, as shown in Figure 1, four different WH sources (three mid-grade, in a range of temperatures between 100 and 370 • C, and a high grade, in a range of temperatures from 370 up to 900 • C) [26] were investigated under DH options, based on case studies. Within this scope, municipal solid waste cogeneration (case one), thermal power (case two), wastewater treatment (case three), and cement production (case four) plants were considered as a WH source, by their exhaust gas potentials, with the real-time data group. As shown in Figure 1, state one presents the WH input of the examined plants, tabulated at the top of the figure. In case one, direct utilization of the exhaust gas of a cogeneration plant that is located in Gaziantep, Turkey, to supply heat for a DH system, was assessed [27]. In Case 2, coal-fired thermal power plants that are located at Soma in Manisa, and Yatagan in Mugla, Turkey, were considered together. The best point for heat extraction in these plants was determined from a cross-over pipe between intermediate and low-pressure turbines for a DH system supply, rather than mechanical energy production close to the condenser [28,29]. While Ref. [28] implies properties of the circulated water between the HEs and the dwellings (states between four and eight), Ref. [29] gives information about the WH side (states one and two, in Figure 1). In case three, the exhaust gas of the biogas engine-driven cogeneration, with the increased power output, using all the biogas produced, was considered, to produce WH in a wastewater treatment plant [30]. In case four, a cement production plant that is located in Gaziantep, Turkey, was studied, and the hot gas exhaust from the raw mill unit that is employed in the cement production process (State 1), was considered [31]. In this case, while the temperatures of the states, except one, were obtained from Ref. [32], considering DH using low-grade industrial waste heat options, the pressures were considered, as in case two. The details of each plant operation can be found in Ref. [27], for municipal solid waste cogeneration, in Refs. [28,29] for thermal power, in Ref. [30] for wastewater treatment, and in Ref. [31] for cement production. As seen in Figure 1, the WH potential of the examined plants, by extracting exhaust gases (state one), is transferred to the cold water (state four), through the first heat exchanger (HE-I). In this heat exchange process, while the exhaust gas is cooled and discharged into the atmosphere (state two), the water is heated (state three) and transported to the second heat exchanger (HE-II) (state five). In this heat exchange process, while the heated water (state five) is cooled again (state six), the cold water that is taken from the dwellings (state eight) is heated and supplied to the dwellings (state seven). The water is pressurized between the employed HEs with the pump.

Description of the Developed Mathematical Model for the Advanced Exergy Assessment
The steady-state simulation model of the four different WH sources, to supply heat for a DH system, was developed using the engineering equation solver (EES), to solve a set of energy and conventional/advanced exergy equations [33]. Within this scope, the thermophysical properties (T, P and . m) of each state in Figure 1 were defined as known parameters in the written code first. Here, the values in Table 1, which were created based on the real-time data group obtained by Ref. [27], for municipal solid waste cogeneration, by Refs. [28,29] for thermal power, by Ref. [30] for wastewater treatment, and by Ref. [31] for cement production, were used. Next, as in Ref. [27], the dead state values for temperature (T 0 ) and pressure (P 0 ) were assumed as 20 • C and 100 kPa, respectively, for both the working fluids (air and water). These are normal temperature and pressure values, defined by the National Institute of Standards and Technology. The specific enthalpy (h) and specific entropy (s) properties of each state were then calculated using built-in thermophysical property functions. Finally, the specific exergy (Ψ) and exergy rate ( . Ex) of each state were determined using Equations (1) and (2), respectively, considering only the physical part of exergy, in other words neglecting the kinetic, potential, and chemical effects [19].

m·ψ
(2) Table 1. Thermo-physical properties of the state points given in Figure 1 based on created cases. In Table 2, the h, s and Ψ values are presented. After finding the exergy rates of each state in the WH source DH system (see Figure 1), the energy performance of the employed components (HE-I, pump, and HE-II) was assessed. The reason for this is that the advanced exergy assessment method covers the definition of the energy performance indicators that belong to each component, regarding the actual, unavoidable and ideal conditions [21]. In this regard, the effectiveness (ε) values were calculated for HE-I and HE-II by Equation (3), based on the effectiveness-number of the thermal unit method [34].
where . Q act and . Q max represent the actual and maximum possible heat transfer rate for the considered HEs, respectively. These rates can be evaluated by multiplying the mass flow rates, specific heats and temperature differences of the cold and hot fluids. As for enthalpy and entropy, the specific heats were determined using built-in thermophysical property functions in the written code.
For the pump, isentropic efficiency is used as an energy performance indicator, and is estimated by the following [35]: where . W in,is and . W in,act indicate the rate of work that is consumed by the pump, in isentropic and actual conditions, respectively. The discrepancy between these two conditions occurs in output specific enthalpies. Under the isentropic pressurized process, the enthalpy difference between the outlet and inlet states can be evaluated by multiplying the specific volume of the inlet state, and the pressure differences between outlet and inlet states [36,37].
After performing energy analysis, conventional exergy analysis was applied to each kth component, based on the fuel (exergy rate of the required resources)-product (exergy rate of the desired output) concept, as shown in Figure 2 [38]. In this concept, the combined effect of the exergy rate from flow (the first two terms), heat transfer (the third term), and work (the last term), within the control volume of each of the kth components (see Equation (5)), was considered. Here, T represents the temperature at which . Q k takes place [39]. As illustrated in Equations (6) and (7), two essential performance indicators, namely, exergy efficiency (ϕ k ) and exergy destruction rate ( . Ex D,k ), can be derived from Equation (5), for the kth component when exergetic fuel and product rates are well defined [38,39].
. Besides performing the component-based conventional exergy analysis, the functional and overall exergy efficiencies were found for the whole system, by Equations (8) and (9), respectively [40].
With the application of advanced exergy analysis, .
Ex D,k can be divided into unavoidable and avoidable parts, enabling the real improvement potential of the kth component to be obtained. Meanwhile, the interactions between the system components can be defined by finding endogenous and exogenous parts of . Ex D,k [38,39]. In this regard, as shown in Figure 2, the EES-based written code was rerun under the unavoidable operating condition of the kth component, together with the actual operating conditions of the remaining ones, to find the ratio of the exergy destruction rate to the product exergy rate in the created unavoidable condition for the kth component and avoidable ( . Ex AV D,k ) splitting parts of the exergy destruction rate can be computed for the kth component, by Equations (10) and (11), respectively [41]. .
Similarly to the unavoidable and avoidable exergy destruction parts, as stated in Figure 2, the EES-based written code was rerun under the actual operating condition of the kth component, together with the ideal operating conditions of the remaining ones, to find the ratio of the exergy destruction rate to the product exergy rate in the created endogenous condition for the kth component and exogenous ( . Ex AV D,k ) splitting parts of the exergy destruction rate can be computed for the kth component, by Equations (12) and (13), respectively [41]. .
In the above-given Equations (10) Ex P,k are the exergy destruction and product exergy rates of the kth component, respectively, while both are obtained by conventional exergy assessment. Meanwhile, Table 3 lists the actual, unavoidable, and ideal conditions of the four different WH source DH systems, to conduct an advanced exergy assessment. It should be noted here that the EES-based written code provided these conditions by adjusting the thermo-physical properties of the considered states.

Model Validation
In this study, the EES package program was used to develop the model of the DH system, utilizing various WH sources, and carry out conventional and advanced exergy analyses. The conventional exergy assessment results of Ref. [27] were used to validate the developed system model working, according to case one. With the same thermo-physical properties of the considered fluids given in Table 1, and under the isentropic efficiency of 94.4% for the pump, the comparison results between the Ref. [27] and simulated values are presented in Table 4. As can be seen from the table, the obtained results for the componentbased exergy destruction rates and exergy efficiencies reveal that the simulation model performed with full success in modeling HEs, and the pump having no relative error. However, the functional exergy rate and functional exergy efficiency of the whole system were modeled with 15.5% and 63.8% relative errors, due to different definitions. While Ref. [27] considers states between one and four in Figure 1 to determine these exergy performance indicators, this study focuses on all the states in Figure 1 (from one to eight) to derive equations for the same indicators.

Exergetic Assessment
In this study, the exergetic performance of the WH source DH system, along with its components, was numerically assessed based on four different cases, through the EES-based written code. In this regard, as presented in Figure 3a-d, the exergy flows between the main system components were determined by applying the conventional exergy method to the system, based on the created cases one, two, three, and four, respectively. As can be seen in Figure 3, the highest exergy rates were simulated for the WH source ( . Ex 1 ), which was as high as 4903 kW (case one) and as low as 220.90 kW (case four). Hereafter, the highest exergy rates were found for the DH network supply ( Ex 5 ), ranging from 145.60 kW (case four) to 2042 kW (case one). Following the DH network supply, the highest values for the exergy rate were obtained for the water supply to the dwellings ( . Ex 7 ), between 101.30 kW (case four) and 1300 kW (case one). On the other hand, the minimum exergy rates were simulated for the work consumption by the pump ( . W in ), which had its lowest value for case four, with 0.67 kW, and had its highest value for case one, with 7.41 kW. After that, the lowest exergy rates were computed for the DH network return at the pump's inlet ( . Ex 6 ), except case three where the WH source that was discharged into the atmosphere ( . Ex 2 ) had the lowest exergy rate after the WH source inlet. Following the DH network return at the inlet of the pump, the lowest values for the exergy rate were obtained for the DH network return at the outlet of the pump ( . Ex 4 ), between 43.54 kW (case three) and 479.50 kW (case one).
The obtained results of exergy flow between the main components, based on the created cases given in Figure 3, enable the conduction of conventional exergy assessment on a component level (see Figure 2) and for the whole system (see Equations (8) and (9)) as well. The simulated results of the performance indicators are presented in Figure 4a,b, respectively, for the exergy destruction rate and exergy efficiency, based on each created case.
As shown in Figure 4a, the exergy destruction rates were computed quite high for  Figure 3). Meanwhile, as shown in the figure, the exergy destruction rates of the whole system and the component HE-I, change proportionally with the exergy rate of the WH source, which is the maximum in case one, followed by cases two to four, respectively. However, the HE-II and pump did not have a similar change as in HE-I and the whole system. As illustrated in the figure, the exergy destruction rate of HE-II was found to be higher in case three, with a value of 69.76 kW, than in case two, with a value of 56.10 kW, although the exergy rate of the WH source was lower (see Figure 3). This is because the fuel exergy rate of this component in case three was simulated to be 56.17% of in case two (142.40 kW to 253.50 kW), although the product exergy rate of this component in case three was simulated to be only 36.79% of in case two (72.64 kW to 197.40 kW). For the pump, the exergy destruction rate in case four (0.23 kW) was found to be higher than in case three (0.12 kW), although the exergy rate of the WH source was lower, because the fuel exergy rate of this component in case four (1.28 kW) was computed to be higher than in case three (0.67 kW).
As presented in Figure 4b, the lowest exergy efficiency values were calculated in case one, followed by case three, case two, and case four, respectively, for the whole system (ϕ sys, f , ϕ sys,o ) and for the HE-I (ϕ HE−I ). Therefore, it may be concluded that the heat potential of the WH source is used more effectively in case four, followed by case two, case three, and case one, respectively, to produce the useful energy for the DH network supply and the dwellings. However, the exergy efficiency of HE-II (ϕ HE−I I ) was determined to be as high as 0.78 in case two, rather than 0.76 in case four. This is because the exergy fuel rate of this component is 2.80 times more in case two than case four, while the exergy production rate is 2.87 times more in case two than case four. Meanwhile, although the exergy rate of the WH source (see Figure 3) changed from 220.90 kW (case four) to 4903 kW (case one), the exergy efficiency values belonging to the pump (ϕ Pump ) were found to be almost similar in all the created cases, varying between 0.82 and 0.83.
As shown in Figure 4a,b, the exergy destruction rates, due to the pump, were quite low (0.12 kW-1.27 kW) among other system components (21.65 kW-810 kW for HE-II and 65.26 kW-2413 kW for HE-I). In addition, the exergy efficiency values belonging to these components were higher (0.82-0.83) among other system components (0.48-0.78 for HE-II and 0.39-0.58 for HE-I). When two HEs were assessed together, higher exergy destruction rates (65.26 kW-2413 kW to 21.65 kW-810 kW) and lower exergy efficiencies (0.39-0.58 to 0.48-0.78) were observed for HE-I in all the cases. Therefore, it can be concluded that the priority for improvement should be given to HE-I, then HE-II, and finally the pump, based on the conventional exergy assessment. However, this analysis fails to identify the origin of the exergy destruction rates, namely, from the component itself (endogenous) or due to other components (exogenous), and can be (avoidable), or cannot be, (unavoidable) enhanced under the current technology status. In this regard, the advanced exergy performances of the employed components in each created case were assessed, and the obtained results are illustrated in Figures 5 and 6, based on the endogenous/exogenous and avoidable/unavoidable splitting parts of exergy destruction rates, respectively.    As observed in Figure 5, the exergy destruction rate, due to the pump, is mostly avoidable, ranging from 78.32% (case one) to 78.56% (case two). The simulated values for the avoidable exergy destruction rate of the remaining cases are 78.36% (case three) and 78.56% (case two). These obtained results show that the possible minimum exergy destruction rate can be realized between 0.02 kW in case three and 0.27 kW in case one under today's technological status for the pump. On the other hand, as shown in the above figure, the exergy destruction rates that occurred in the HEs are mostly unavoidable, ranging between 70.79% (case four) and 87.89% (case three) for HE-I, and between 66.61% (case four) and 97.13% (case three) for HE-II. The simulated values for the unavoidable exergy destruction rate of the remaining cases are 84.69% (case one) and 87.27% (case two) for HE-I, and 90.12% (case one) and 79.32% (case two) for HE-II. These obtained results reveal that if the maximum possible operation condition is provided for the HEs considering the current technological status, most of the exergy destruction rate cannot be avoided (unavoidable), ranging between 46.20 kW in case four and 2043.66 kW in case one for HE-I, between 14.42 kW in case four and 730 kW in case one for HE-II. Therefore, it can be concluded that the priority for improvement should be given to the pump in all cases, based on the advanced exergy assessment considering the avoidable and unavoidable splitting parts of the exergy destruction rate. After this component, HE-I in cases one and three should be improved, similarly to HE-II in cases two and four.
As shown in Figure 6, the exergy destruction rates that arose in the system components are mostly endogenous, which are as low as 69.80% (case four) for HE-II, and as high as 99.45% (case two) for the pump. These obtained results show that the interactions among the system components are not strong; in other words, the exergy destruction rates are mostly due to the component itself. On the other hand, if the remaining components operate under the hypothetical ideal condition (see Table 3), together with the studied component operating under the actual condition, the exergy destruction can be reduced to as low as 0.55% (case two) for the pump, and as high as 30.20% (case four) for HE-II. Therefore, it may be concluded that the origin of the exergy destruction rate is quite low, due to the remaining system components ranging between 0.002 kW and 313.93 kW, which shows the exogenous part of exergy destruction. As observed in the above figure, the endogenous part of the exergy destruction changes from 0.133 kW (case two for the pump) to 2099.07 kW (case one for HE-I).
The obtained results of conventional and advanced exergy analyses were also compared with the literature studies, based on the component level, considering the performance indicators, namely, the exergy efficiency and splitting parts of the exergy destruction rate (avoidable, unavoidable, endogenous, exogenous). Hepbasli and Keçebaş [9] assessed the performance of a geothermal DHS in Turkey, through conventional and advanced exergetic analysis methods, based on real operational data. The exergy efficiency for the six HEs and seven circulation pumps in the real Afyon geothermal DHS, were calculated from 0.45 to 0.84 and from 0.49 to 0.91, respectively. Meanwhile, the exergy destruction rates that arose in the system components were found to be mostly endogenous, ranging between 51.80% and 65.70% for HEs, and between 21.69% and 46.66% for the pumps. On the other hand, the exergy destruction rates, due to the HEs, were determined to be mostly avoidable, between 72.60% and 92.41%, whereas they were mostly unavoidable for the pumps between 53.34% and 75.49%. Yamankaradeniz [11] assessed the conventional and advanced exergy performances of a geothermal DHS located in Bursa, in Turkey, considering four HEs and four pumps located after the HEs. While the exergy efficiencies were determined from 79.68% to 97.05% for the HEs, they were calculated from 79.36% to 87.20% for the pumps. Meanwhile, the exergy destruction rates that occurred in the components were determined to be mostly avoidable, varying between 86.32% and 98.12%, and between 75.03% and 86.45%, respectively, for the HEs and pumps. Besides, the exergy destruction rates were determined to be mostly endogenous for the HEs two to four (between 65.25% and 79.89%), whereas they were mostly exogenous for HE 1 (63.65%) and for the employed pumps (between 95.61% and 97.50%). Liao et al. [22] conducted advanced exergy analysis for ORC-based layout, to recover the WH of flue gas. The thermodynamic performance of a proposed ORC-ORC system revealed that the exergy efficiencies of low-temperature HE, high-temperature HE, pump one and pump two, were 51.47%, 62.49%, 80.65% and 80.64%, respectively. Meanwhile, the splitting parts of the exergy destruction rates were simulated mostly endogenous for the considered components, varying between 91.24% for high-temperature HE and 100% for low-temperature HE. Besides, the exergy destruction rates occurring in the considered components were found to be mostly unavoidable for the HEs (89.75% for high-temperature HE and 100% for low-temperature HE), whereas they were mostly avoidable for the pumps, with a rate of 78.62%. Wang et al. [38] applied a conventional and advanced exergy assessment method to a cascade absorption heat transformer, for the recovery of low-grade waste heat. The simulated results of the proposed system showed that the exergy efficiencies of the HEs (lithium bromide and ammonia) and pumps (lithium bromide and ammonia) varied from 90.05% to 94.32%, and from 25.45% to 60.69%, respectively. Meanwhile, the exergy destruction rates occurring in the HEs were computed as mostly exogenous, which were 76.16% for lithium bromide HE and 78.65% for ammonia HE. On the other hand, the exergy destruction rates occurring in the pumps were calculated to be mostly endogenous, which ranged from 86.74% to 87.80% for lithium bromide pumps and from 89.01% to 89.57% for ammonia pumps. For the avoidable and unavoidable splitting parts, the dominant part was determined to be unavoidable for each system component, which was as low as 80.13% for ammonia-HE and as high as 82.46% for lithium bromide pump one. Oyekale et al. [43] applied advanced exergy analysis to a hybrid solar-biomass ORC plant having an organic fluid pump and HEs (condenser and evaporator). Based on the conventional exergy assessment, the exergy efficiencies were computed as almost 80% for the pump, almost 28% for the condenser, and 85% for the evaporator. Based on the advanced exergy analysis, the exergy destruction rates were found to be mostly endogenous (80% for the pump, 80.60% for the condenser, and 90.30% for the evaporator) and avoidable (80% for the pump, 77.50% for the condenser, and 88.10% for the evaporator). The comparison of the results of these literature studies with the presented study is summarized in Table 5. Table 5. Comparison of the exergy performance indicators considering the conducted literature studies.

Refs.
Presented Study Ref. [9] Ref. [11] Ref. [22] Ref. [38] Ref. [43] ϕ As observed in Table 5, the exergy performance indicators (exergy efficiency in the conventional exergy assessment and splitting parts of the exergy destruction rate, unavoidable and endogenous, in the advanced exergy assessment) vary in very different ranges. The main reason for this is the choice of the dead state values, determination of endogenous and unavoidable conditions, and the type of fluid used. As a result of the selection of these parameters, the closest exergy efficiency values for HEs and pumps appeared in Ref. [9] and in Ref. [22], respectively. On the other hand, the closest values for the endogenous and unavoidable parts of exergy destruction were observed in Ref. [22], both for HEs and pumps.

Key Parameters and Their Effects on an Actual Implementation
In Turkey, the WH potential of the considered plants, based on the created cases, namely, municipal solid waste (case one), thermal power (case two), wastewater treatment (case three), and cement production (case four), is remarkably high. At the end of 2018, the total number of municipalities around the country was 1399, having an average amount of municipal solid waste per capita of 1.16 kg/day [27]. For the same year, 37.2% of the electricity need of Turkey was generated by coal-based thermal power plants, with a total number of 68 [44]. Meanwhile, the total number of wastewater treatment plants in Turkey reached 991 by the end of 2018, where approximately 4237 Mm 3 /year of wastewater was treated [30]. Finally, as of 2016, 71.4 million tons of production was realized by 70 cement production plants (52 integrated facilities and 18 grinding-packaging facilities) [45].
In this study, the functional exergy efficiency of the whole system (see Equation (8)) was recalculated when the WH potential of the municipal solid waste plant (case one was selected because it is more in number) was met with the DH system in the real world. In this regard, the key parameters were determined to be the ambient (dead state) temperature and the heat loss in the DH network for the selected sites, where soil temperature, the depth where the pipes are placed, and the geometric and thermal properties of the pipes become important. Therefore, as shown in Figure 7, four different provinces were selected, considering degree-day regions in Turkey and the situation with the highest population density [46,47]. Consequently, theİstanbul,İzmir, Ankara, and Kayseri provinces were determined to represent zones one, two, three, and four, respectively. The long-term (1929-2020) average ambient temperature (T a,ave ) values measured in the seasonal normal of the selected provinces were considered for the winter months (October, December, January, February), using the weather forecast from the Turkish State Meteorological Service [48], and the obtained values are given in Table 6. In this table, the average soil temperature (T s,ave ) values below 100 cm from the surface are also given based on each month, which was determined by using the annual average T s,ave values [49] and by assuming that these values are identical with the monthly variation in the T a,ave for the considered sites. The heat losses in the DH network, during operation for the considered sites, were evaluated based on the supply and return sides, by using Equations (14) and (15) given below, respectively [50]. .
where . Q l,supp and . Q l,ret illustrate the heat loss in the DH network at the supply and return sides, respectively, during operation in kW. The U tot is the total heat transfer coefficient of the pipeline in W/m 2 ·K. The D o and L are the outer diameter and length of the pipeline in m, respectively. While the U tot values were found by Equation (16) given below, and D o was considered as 157.8 mm for a typical DH system arrangement, defined as model A in Ref. [51]. For the L, four different distances between the WH source and the dwellings were considered, using 5, 10, 15 and 20 km values.
where the outer (D o ), inner (D i ), and intermittent (inner with pipe wall thickness) (D t ) diameters were taken into account as 157.8 mm, 88.9 mm, and 95.3 mm, respectively, for a typical DH system arrangement, defined as model A in Ref. [51]. Meanwhile, the thermal conductivities of steel (k st ) and insulation (k ins ) were considered as 16.27 W/m·K and 0.0265 W/m·K, respectively [51]. To calculate the convective heat transfer coefficient on the inner surface (h i ), the equation steps given below were used [34].
In the above-given equations (from (17) to (20)), the density (ρ), viscosity (µ), Prandtl number (Pr), and thermal conductivity (k w ) properties of water were calculated using built-in thermophysical property functions by the written code. Following the calculation of h i , the heat losses on the supply and return sides (see Equations (14) and (15)) were computed, which cause a temperature drop at states five and four (see Figure 2), respectively, considering the mass flow rates, the specific heats, and the inlet temperatures of the water (states three and six), given in Table 1. With these temperature drops, the simulated values for the functional exergy efficiency of the whole system are given in Table 7, based on case one. As observed from Table 7, the highest functional exergy efficiencies were calculated for the shortest distances between the WH source and dwellings, based on each considered site. When all the zones are considered, the maximum functional exergy efficiencies were found between 0.1415 and 0.1782 for a 5 km distance. On the other hand, the minimum values were observed from 0.0519 to 0.0558 for a 20 km distance, considering all the zones. Note that, as given in Table 7, the average ambient temperature and the functional exergy efficiency are inversely proportional. When the shortest distance is considered (5 km) for all the zones, the highest functional exergy efficiency values were obtained in January, followed by February, December, and November, respectively. As shown in Table 6, these months are ordered from the coldest to the warmest. Therefore, it may be concluded that it is better to implement a WH source DH system with a possible shorter pipeline. Additionally, it is possible to operate with the highest functional exergy efficiency in colder ambient temperatures, although the heat loss would be higher. This is because this situation also affects the dead state temperature, which is highly significant on the functional exergy efficiency.

Conclusions
The main objectives of the present study were to investigate the conventional and advanced exergy performances of DHS options under various WH sources. A series of EES simulations were carried out to evaluate the effect of the created cases. Additionally, the key parameters and their effects on the actual implementation of the DHS were assessed through the analysis of 12 various cases (four different climate zones around the country, four winter months, and four different distances between the WH source and the dwellings for case one). While conducting these studies, the exergy efficiency and exergy destruction rate, with its splitting parts, were used as performance indicators. In the following, some concluding remarks are given: • The exergy destruction rates of the components, which also indicated the losses in work potentials, were simulated to be the highest for HE-I (between 65.26 kW and 2413 kW), followed by HE-II (from 21.65 kW to 810 kW), and the pump (between 0.12 kW and 1.27 kW), based on all the created cases; • The exergy destruction rates of the whole system that were obtained by the functional and overall exergy efficiency definitions, were determined to be the maximum in case one (4152 kW and 3224 kW, respectively), whereas they were the minimum in case four (153.6 kW and 87.1 kW, respectively); • The exergy efficiencies of the components, which also pointed out the priority, were found to be the highest for the pump, followed by HE-II and HE-I, considering all the created cases. For the functional and overall exergy efficiencies of the entire system, the lowest values were observed in case one, followed by cases three, two, and four; • The exergy destruction was found to be mostly avoidable for the pump, which was as high as 78.56% in case two. On the other hand, the splitting part of the exergy destruction was evaluated to be mostly unavoidable for the HEs, which varied from 70.79% in case four to 87.89% in case three for HE-I, and from 66.61% in case four to 97.13% in case three for HE-II; • The origin of exergy destruction was determined to be mostly endogenous for the pump and HEs (HE-I and HE-II), which was as high as 99.45% for the pump in case two and as low as 69.80% for HE-II in case four; • The highest functional exergy efficiencies were calculated for the shortest distances between the WH source and dwellings, based on each considered site, namely,İzmir, Istanbul, Ankara, and Kayseri. While the considerably low efficiency values were between 0.0519 and 0.0558 for the 20 km distance, considerably high efficiency values were determined from 0.1415 to 0.1782 for the 5 km distance; • The highest functional exergy efficiencies were computed for the coldest climates. Among all the selected sites and months, the maximum value was calculated in January in Kayseri, with an amount of 0.1782, where the minimum ambient average temperature was observed (−1.6 • C).