{'fraction_non_alphanumeric': 0.030852584844608323, 'fraction_numerical': 0.009556776281134773, 'mean_word_length': 4.646696409602719, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Interpretation of Entropy Calculations in Energy Conversion Systems

: Often, second law-based studies present merely entropy calculations without demonstrat-ing how and whether such calculations may be beneﬁcial. Entropy generation is commonly viewed as lost work or sometimes a source of thermodynamic losses. Recent literature reveals that minimizing the irreversibility of a heat engine may correspond to maximizing thermal efﬁciency subject to certain design constraints. The objective of this article is to show how entropy calculations need to be interpreted in thermal processes, speciﬁcally, where heat-to-work conversion is not a primary goal. We will study four exemplary energy conversion processes: (1) a biomass torrefaction process where torreﬁed solid fuel is produced by ﬁrst drying and then torrefying raw feedstock, (2) a cryogenic air separation system that splits ambient air into oxygen and nitrogen while consuming electrical energy, (3) a cogeneration process whose desirable outcome is to produce both electrical and thermal energy, and (4) a thermochemical hydrogen production system. These systems are thermodynamically analyzed by applying the ﬁrst and second laws. In each case, the relation between the total entropy production and the performance indicator is examined, and the conditions at which minimization of irreversibility leads to improved performance are identiﬁed. The discussion and analyses presented here are expected to provide clear guidelines on the correct application of entropy-based analyses and accurate interpretation of entropy calculations.


Introduction
The two main laws of thermodynamics, originally founded on heat engines in the 19th century, have been applied frequently to study energy systems. The first law, an expression of the principle of energy conservation, allows to measure the conversion of one form of energy to another, i.e., heat and work, in a system. The second law measures the degree of irreversibility of the system in terms of entropy production. The concept of entropy generation and its relation to work production in an irreversible engine was first introduced by Clausius; it later provided a basis for introducing subsequent concepts such as availability. However, is irreversibility unconditionally a performance indicator in a thermodynamic process? From a design perspective, do the two laws applied to an energy system yield identical or different outcomes? Is minimization of irreversibility desired? Entropy generation is sometimes viewed as a measure of lost work. This notion is correct in heat-work conversion systems, e.g., a power cycle, subject to certain design constraints [1,2].
The equivalence of minimum irreversibility and maximum thermal efficiency, and/or maximum work in heat-work conversion processes have been investigated by several authors [3][4][5][6][7][8][9][10][11][12][13][14]. The key conclusion from these past studies is that the regime of minimum entropy production is identical to that of maximum efficiency and maximum power under specific design conditions, for instance, if the heat input is treated as a fixed quantity. Alternatively, if the power output is fixed, the design at minimum entropy production is identical to that of maximum thermal efficiency. In 1996, Bejan [6,7] highlighted a key but usually overlooked source of entropy generation associated with the operation of heat engines: the irreversible cooling process of exhaust stream that should be included in the calculation of the total entropy production. In many practical applications, e.g., engines, ships, combined cycle power plants, gas turbine cycles, flue gases are discharged to the atmosphere. He presented models of endoreversible heat engines that would produce maximum work at minimum entropy generation at which the efficiency is obtained by where T H and T L denote the temperatures of the hot and cold thermal reservoirs, respectively. Equation (1) is known as the maximum power efficiency in endoreversible engines, often attributed to Curzon and Ahlborn [15][16][17]. However, its derivation can be found in Cotterill's book [18], published in the late 19th century. In general, without the specific design constraints mentioned previously, the minimum irreversibility, maximum efficiency, and maximum power are different design criteria. To rectify this issue in combustion-driven power systems, Haseli [19] introduced the concept of specific entropy generation (SEG), defined as the total entropy production per unit consumption of fuel. It is shown that the thermal efficiency of a gas turbine cycle or a combined cycle power plant [20] correlates unconditionally with SEG. Indeed, it can be shown that maximum thermal efficiency is always equivalent to minimum SEG in power generating systems driven by fuel oxidation [21].
Often, entropy-based studies present merely entropy calculations without demonstrating how and if such calculations may be used to improve system efficiency. The question that forms the basis of the present article is: what do irreversibility and entropy production represent in energy systems where the primary (or only) objective is not to produce (or consume) work through conversion of thermal energy, and under what conditions a designer could benefit from entropy analyses? Examples include biomass torrefaction plant, cryogenic air separation unit, cogeneration process, hydrogen production plant, fluidized bed, solid fuel gasification, steam condenser, biofuel production through pyrolysis, and oxyfuel combustion. To answer the above questions, we will thermodynamically analyze the first four systems listed above. In each case, the possibility of any relation between the performance indicator and the irreversibility of the system will be examined. The four chosen energy systems are simply arbitrary since the main goal is to show that irreversibility is not necessarily an indication of imperfectness in an energy conversion system. The conditions at which minimum entropy production may lead to an improved performance will be discussed for each of the four systems.

Biomass Torrefaction Process
The primary objective in a torrefaction process is to produce high-quality fuel material (i.e., torrefied biomass) through thermochemically treating the raw biomass [22,23]. The process requires thermal energy, which is supplied by burning a utility fuel and torrefaction gases [24]. The main components and a simplified layout of a torrefaction process are depicted in Figure 1. In practice, the torrefied material is ground and then pelletized (not shown in Figure 1) through the consumption of power.
Raw biomass with a moisture content of MC (% dry basis) is first dried in a dryer. In the torrefaction reactor, the dried biomass undergoes mild pyrolysis at a temperature in the range of 200-300 • C. A portion of the volatiles leaving the torrefaction process is recycled back to the reactor and is used as the inert gas. The rest of the volatiles are burned together with an auxiliary fuel (e.g., methane) in a combustor. The torrefied solid leaving the reactor is cooled in a heat exchanger. The heat requirement of the drying and torrefaction is provided by the combustion products. The first law for the system of Figure 1 may be written as follows.
where H 0 is the total enthalpy at the ambient conditions, superscripts a, r, f, t, p, w denote, air, raw biomass, auxiliary fuel, torrefied biomass, combustion products, the water content in raw biomass, respectively, and . Q 0 is the total amount of heat discharged from the process to the atmosphere through the reaction products, . Q e (combustion products plus the moisture content of biomass) and the torrefied solid cooler, . Q t ; see Figure 1. On the other hand, the following relation is obtained from an entropy analysis of the system.
Φ is the rate of total entropy generation associated with the torrefaction process, T 0 the surroundings temperature, and S the entropy.
Indeed, one could obtain Equation (3) by adding the entropy generation rates associated with the operation of the individual components, i.e., dryer, heat exchanger, combustor, torrefaction reactor, and cooler, plus that due to the cooling of the exhaust stream in accordance with Bejan's argument [6,25] as discussed in the preceding section.
A combination of Equations (2) and (3) yields Notice that Equation (4) includes entropy generation (exergy destruction, T 0 . Φ) term, but unlike in a combustion engine, no power generation is associated with the torrefaction process. So, interpretation of entropy generation as a measure of lost work would be irrelevant here because the purpose of a torrefaction plant is to produce torrefied biomass (a desired outcome) through thermochemically treating raw biomass. It would therefore be necessary to clarify what exergy destruction represents in a torrefaction process and whether its minimization could lead to improved performance.
A frequently used performance indicator of a biomass torrefaction process is energy yield, defined as [26] where . m denotes the mass flowrate, and HHV is the higher heating value. The performance of the process may also be measured from a pure thermal energy perspective.
where η th is the thermal efficiency and LHV is the lower heating value. The overall efficiency of the process (η ov ) should account for the quantity of electrical energy consumed in Equation (6). Before applying an entropy or exergy analysis, one must determine, a priori, if and under what conditions minimization of entropy generation ( . Φ) or exergy destruction (T 0 . Φ) could lead to improved performance. Unless a performance indicator (Y E , η th , or η ov ) correlates inversely with . Φ, a second-law analysis of the torrefaction process would be of no practical significance.
Let us examine whether minimizing T 0 .
Φ correlates with maximization of η th . Per unit flowrate of dry biomass, the required mass flowrates of the air and methane are determined as follows [24]. .
where Y v is the volatiles yield, MW denotes the molecular weight, λ and φ are stoichiometric coefficients of the air and methane, respectively. The mass flow rate of the combustion products may then be obtained from the mass conservation of the combustor. Hence, Using Equations (7)-(9), one may rewrite Equation (4) per unit flow rate of the dry biomass as where g 0 = h 0 − T 0 s 0 , h and s denote specific enthalpy and specific entropy, respectively. Both bracketed terms on the right side of Equation (10) are fixed. So, the specific entropy generation (SEG) is proportional to the volatiles yield. Whether SEG decreases or increases with an increase in Y v depends on the coefficient of Y v (the first bracketed term) in Equation (10).
Likewise, one may find a relation for the thermal efficiency of the process defined in Equation (6) as a function of the volatiles yield. Denoting the solid mass yield by (6) and rewriting per unit mass flow rate of the dry biomass, we get From a previous study [27], it can be shown that where A > 0 and B > 0 are numerical constant.
Substituting Equation (12) into Equation (11) and differentiating with respect to Y v , one obtains This result reveals that the volatiles yield has an inverse effect on the thermal efficiency. The main conclusion from the above analysis is that minimization of SEG corresponds to maximization of the thermal efficiency for the torrefaction system of Figure 1 if the coefficient of Y v in Equation (10) is positive. Determination of the coefficient of the volatiles yield is not a straightforward task as it includes several parameters (e.g., λ, φ, g 0 t ). For this, one would need a comprehensive model [24,28]. Such a task is, however, beyond the scope of the present article.

Cryogenic Air Separation Process
In a cryogenic air separation unit (ASU), atmospheric air is split into a stream of oxygen and a nitrogen stream. The process requires electrical energy input that is primarily used for compression of the air. Figure 2 shows the layout of a cryogenic ASU, very much like that designed by Allam [29], which consists of two air compressors, two air turbines, the main heat exchanger, a double-column distillation, an air cooler, an oxygen pump, and an adsorption unit. Application of the ASU depicted in Figure 2 in a supercritical CO 2 power cycle has been reported in reference [30]. Ambient air is pressurized to 5 bar within the main air compressor (MAC). The cooler is used to decrease the temperature of the air stream pressurized in MAC. Impurities of the cool air are removed in the adsorption system. The pressure of the purified air is further increased in the booster compressor. The pressurized air leaving the booster is first cooled (not shown in Figure 2) and then sent to the main heat exchanger (MHE), where the cold oxygen and nitrogen streams produced in the distillation unit are warmed by the air stream. As shown in Figure 2, the air flow is split within MHE into two streams. One stream is expanded in the first turbine down to 1.2 bar, whereas the second stream is expanded in the second turbine to 5 bar. The exhaust streams of the turbines are fed to the columns of the distillation unit.
The first law applied to the system of Figure 2 may be expressed as where . W ASU denotes the net power requirement of the ASU. .
Also, . Q 0 accounts for the total rate of heat rejected from the ASU to the surroundings. Heat is discharged to the outside of the boundary of ASU due to cooling the air streams after MAC and the booster. For simplicity of the analysis, we assume that the air stream at the exit of both ASU compressors is cooled by rejecting sensible heat to the surroundings that is at T 0 .
The entropy balance equation of the system of Figure 2 is Notice that Equations (14) and (16) are written assuming that both oxygen and nitrogen streams leaving the ASU are at T 0 . A combination of Equations (14) and (16) to eliminate the heat transfer term yields where G m = H − T 0 S denotes a modified Gibbs function [31]. It can be inferred from Equation (17) that minimization of entropy production rate may lead to a minimum ASU power consumption if the algebraic summation of the three G m terms is constant. Assuming the composition of the ambient air as 0.21O 2 /0.79N 2 and denoting the molar flow rate of the air by . n a , we have Likewise, for the oxygen and nitrogen leaving the ASU, one may write A further simplifying assumption is that all three gases behave like ideal gases. Thus, the specific enthalpy h is a function of temperature only. Because the inlet and outlet streams are at T 0 , the difference between G m of the air and G m of the "oxygen + nitrogen" will depend on the entropies of the oxygen and nitrogen. Note that the enthalpy terms will cancel out. Hence, where p e i is the pressure of component i (oxygen, nitrogen) at the exit of ASU, p air i denotes the partial pressure of component i in air, and R u is the universal gas constant.
Substituting Equations (22) and (23) into Equation (21) gives The partial pressures of oxygen and nitrogen in the air are fixed. In most cryogenic air separation systems, the exit pressure of oxygen and nitrogen streams is around atmospheric pressure so p e O and p e N may be treated as fixed quantities. The right side of Equation (24) will be fixed if the air flow rate is a given quantity. In this case, minimization of . Φ will guarantee that . W ASU will also be a minimum; see Equation (17). It can be concluded that the equivalence min . Φ ≡ min . W ASU is subject to the pressure of the oxygen and nitrogen streams leaving the ASU at T 0, as well as the air flow rate being constant.
Nevertheless, if either temperature or pressure of either of the exiting streams occurs to be a variable, the algebraic sum of the three G m terms in Equations (21) and (24) will no longer be a constant. In this case, minimizing the entropy generation rate associated with the operation of the ASU will not necessarily be equivalent to the minimization of its power requirement. On the other hand, one could perform the above analysis per unit flow rate of the air (or either of the exit streams) to express Equation (17) in terms of a specific entropy generation as follows.
where SEG a denotes the total entropy generation rate per unit flow rate of the air. If the pressure of both oxygen and nitrogen streams exiting the ASU at T 0 are fixed, the operation of the ASU at minimum SEG a will be equivalent to that at minimum specific power consumption, i.e., w ASU .

Cogeneration Process
The third energy system to be examined is a cogeneration process in that the hot exhaust of a power cycle is used to produce high-pressure saturated vapor [32]. As shown in Figure 3, air, fuel, and water are supplied at the ambient temperature and pressure. The low-temperature combustion products leaving the steam generator are discharged to the atmosphere. Applying the first law to the cogeneration process in Figure 3, we have where . Q s is the total heat rate transferred to the water in the steam generator.
The desired outcome in the cogeneration process is to generate not only power but also thermal energy [33,34]. The objective is then to maximize . W net + . Q s per the thermal energy liberated through the combustion of fuel. To burn each mole of the fuel represented by the chemical formula C x H y O z , 4.76Λ moles of air is required, whereby y 4 + z 2 + 4.76Λ moles of combustion products are formed. Here, Λ is a stoichiometric coefficient that accounts for the quantity of air required to (i) ensure complete combustion and (ii) maintain combustion temperature at the desired level, T c . Indeed, Λ is inversely related to T c .
where n w denotes the molar flowrate of water per unit molar flow rate of the fuel, and ∆h w is the net increase in the specific enthalpy of water. In practice, the exhaust temperature of the combustion products, T e p , should not fall below a certain limit to prevent water condensation and corrosion issues. For this, the enthalpy of the combustion gases at the exit of the system may reasonably be taken as a fixed parameter. Because the enthalpy of the incoming air and fuel are also fixed, one may conclude from Equation (28) that (w net + n w ∆h w ) is a constant quantity; it is equivalent to a fixed cogeneration efficiency. This conclusion, of course, is valid for a preset combustion (adiabatic flame) temperature.
Applying an entropy balance to the cogeneration process depicted in Figure 3, expressed per unit molar flow rate of the fuel, we obtain where ∆s w is the net increase in the specific entropy of water. The first three terms on the right side of Equation (27) are constant. Thus, minimization of SEG would be identical to minimization of the net increase in the water entropy, but it would not have an impact on the cogeneration efficiency, which, as discussed above, is a fixed quantity.
Let us now consider a more general scenario in that Λ (thus combustion temperature) is a variable. Equation (28) may be rewritten as where C = h f − y 4 + z 2 h e p and the enthalpy difference h e p − h a are both fixed. Thus, it can readily be inferred that maximizing the cogeneration efficiency requires the minimization of Λ. On the other hand, in accordance with Equation (29), minimization of SEG would be identical to minimizing 4.76Λ s e p − s a + n w ∆s w . Therefore, we conclude that minimization of SEG does not correspond to improving the cogeneration efficiency.
It is worth mentioning, yet an alternative scenario, in that the supplied flow rate and temperature of water are design constraints. In this case, optimization of the thermal efficiency and cogeneration efficiency will be equivalent. According to Equations (29) and (30), minimization of Λ would lead to a maximum w net but a minimum SEG. In other words, the equivalence min(SEG) ≡ max(w net ) ≡ max(w net + n w ∆h w ) is subject to both the supply temperature and flow rate of the water being constant.

Hydrogen Production Plant
The next system is a thermochemical hydrogen production process (Figure 4). For each mole of water supplied at ambient conditions, one mole of hydrogen and a half mole of oxygen is produced through a series of reactions. Known as the copper-chlorine (Cu-Cl) cycle, the process requires thermal and electrical energy to split water into hydrogen and oxygen [35][36][37]. Superheated steam reacts with cupric chloride (CuCl 2 ) solid particles in a fluidized bed (step 4 in Figure 4) to yield hydrochloric (HCl) gas and copper oxychloride (Cu 2 OCl 2 ) solid. The former product reacts with copper particles (step 1) in another reactor producing hydrogen and cuprous chloride (CuCl) solid, whereas the latter is first heated up to~500 • C and then it decomposes into oxygen and cuprous chloride (step 5). The CuCl streams leaving the hydrogen and oxygen production reactors are cooled to around ambient temperature. Next, the CuCl solid particles are mixed with a water stream, then undergo an electrolysis process (step 2), leading to the production of copper particles and aqueous cupric chloride. The copper particles are sent to the hydrogen production reactor (step 5). The moisture content of the aqueous cupric chloride is then removed in a dryer (step 3). The cupric chloride solids leaving the dryer at a moderate temperature are heated tõ 400 • C and fed to the fluidized bed to react with the superheated steam (step 4). On the other hand, the water captured in the dryer is recycled back and mixed with CuCl particles before the electrolysis process (step 2). Note that all chemical compounds participating in the reactions, except supplied water, hydrogen, and oxygen formed in the process, circulate in a closed loop.
Thermodynamically, the Cu-Cl cycle interacts with its surroundings by admitting thermal energy through a heat transfer fluid supplied at T i HF , electrical work, and heat losses to the atmosphere that is at T 0 . As shown in Figure 4, there are opportunities for heat recovery whereby boosting the energy efficiency of the process. Nevertheless, recovering low-grade heat (e.g., from dryer) would practically be of no use [38], which is discharged to the atmosphere (part of the heat losses). A combined first and second laws expression applied to the Cu-Cl cycle of Figure 4 written per unit mole of hydrogen is Since T e HF > T 0 the coefficient of dh e HF in Equation (33) is a positive quantity. So, an increase in h e HF will lead to an increase in g e HF . We may now conclude that the minimization of SEG will lead to the maximum overall efficiency of the Cu-Cl cycle.
An alternative scenario is that both inlet and outlet temperatures of the heat transfer fluid are fixed and n HF is a design variable. It is obvious from Equation (31) that decreasing n HF would lead to a lower SEG, whereas in accordance with Equation (32), it would increase the cycle efficiency. In other words, if the only design variable is n HF , the operation at minimum SEG and maximum Cu-Cl cycle efficiency will be identical.
Consider now a third case in that the heat transfer fluid circulates in a closed loop, which, upon leaving the Cu-Cl cycle at T e HF , is retuned to a thermal reservoir where it is heated up to T i HF . Denoting the temperature of the thermal reservoir by T R , the heat transfer coefficient and surface area by U and A, respectively, we have Equation (34) provides a relationship between T e HF and n HF . To maximize the overall efficiency, Equation (32), one then needs to minimize Equation (34). The right side of Equation (34) is a descending function of T e HF . That is, to maximize the efficiency of the copper-chlorine cycle, the temperature of the heat transfer fluid should be as high as possible at the exit of the cycle. Using Equation (34), we also find the following expression.
where c p is the (average) specific heat of the heat transfer fluid. The right side of Equation (35) is, too, a decreasing function of T e HF . Thus, to minimize SEG, the exit temperature of the heat transfer fluid should be at its highest possible value. From this discussion and analysis, we conclude once again that there exists an inverse relation between SEG and cycle efficiency.

Conclusions
Four different energy systems have been examined through the first and second laws of thermodynamics: a biomass torrefaction process, a cryogenic air separation unit, a cogeneration process, and a hydrogen production plant. The main goal was to highlight what entropy generation would mean in applications where the objective is not to convert heat-to-work (and vice versa) and whether it may be used as a measure of performance deficiency. Through analyzing these systems, the main objective was to show that a priori task when applying entropy analysis is to ensure that minimization of total entropy production associated with the operation of an energy system is equivalent to enhancing its performance indicator, which may be different from one system to another.
For the torrefaction, hydrogen production, and cogeneration systems, the process effectiveness is measured in terms of thermal efficiency. The performance of the ASU is assessed by the amount of power consumed for splitting the air into oxygen and nitrogen. The relation between the specific entropy generation and performance indicator is examined for each system, and the conditions at which minimization of SEG leads to improved performance are identified. For the torrefaction system, the minimization of SEG would be identical to the maximization of thermal efficiency subject to the coefficient of the volatiles yield in Equation (10) being a positive value. In the cryogenic air separation process, min(SEG a ) ≡ min(w ASU ) may hold if the pressure of the oxygen and nitrogen streams leaving the system at the same temperature of the incoming air is fixed. In the cogeneration system, min(SEG) is found to correspond to maximum cogeneration efficiency subject to both the temperature and flow rate of the process water being constant. In the case of hydrogen production plant, the SEG inversely corresponds to the overall efficiency for the three scenarios considered.
The main conclusion is that minimization of irreversibility, whether in terms of . Φ or SEG does not necessarily correspond to improving performance indicators of an energy system. Without the priori task stated above, entropy-based calculations in energy systems may not be conclusive from a practical viewpoint.