{'fraction_non_alphanumeric': 0.03116931021763187, 'fraction_numerical': 0.0150129103651789, 'mean_word_length': 4.969503468017175, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Optimization Modeling of Irreversible Carnot Engine from the Perspective of Combining Finite Speed and Finite Time Analysis

An irreversible Carnot cycle engine operating as a closed system is modeled using the Direct Method and the First Law of Thermodynamics for processes with Finite Speed. Several models considering the effect on the engine performance of external and internal irreversibilities expressed as a function of the piston speed are presented. External irreversibilities are due to heat transfer at temperature gradient between the cycle and heat reservoirs, while internal ones are represented by pressure losses due to the finite speed of the piston and friction. Moreover, a method for optimizing the temperature of the cycle fluid with respect to the temperature of source and sink and the piston speed is provided. The optimization results predict distinct maximums for the thermal efficiency and power output, as well as different behavior of the entropy generation per cycle and per time. The results obtained in this optimization, which is based on piston speed, and the Curzon–Ahlborn optimization, which is based on time duration, are compared and are found to differ significantly. Correction have been proposed in order to include internal irreversibility in the externally irreversible Carnot cycle from Curzon–Ahlborn optimization, which would be equivalent to a unification attempt of the two optimization analyses.


Introduction
Recent work [1] has emphasized that an analysis using the finite time of the process rather convey to a "physical potential optimization" than to an "engineering optimization" of thermal machine [2]. What is called physical optimization could provide more realistic performance compared to reversible Carnot cycle one, but it is still overvalued with respect to the actual one. Thus, the results of the physical optimization can be considered as upper bounds for real machine performance [3][4][5].
Moreover, criticisms have been addressed [6][7][8][9][10][11] to the results of Finite Time Thermodynamics (FTT) analysis of thermal machines, claiming that it failed to keep the promises, at least from the engineer's point of view. The main reason is the fact that FTT does not consider the internal losses generated by irreversibilities on a fundamental basis, since they have been introduced through a constant coefficient [12], factor of non-endoreversibility [13], degree of internal irreversibility [14], entropy variation ratio [15], ratio of two entropy differences [16], or entropy generation term as a function of temperature [17,18]. Therefore, the studies based on FTT approach cannot be effectively used by engineers for a better design and optimization study, leading to the conception and build of more efficient thermal machines since to apply optimization in a thermodynamic analysis, it needs to advance to the higher phases of the system design than the one based on endoreversibility assumption that is considered very early [10]. Furthermore, the internal irreversibilities contributed by the system components are inherently interconnected with external irreversibilities in real operation conditions, so the performance reported by FTT analysis may be even smaller compared to that of a real system [8].
These criticisms did not remain without reply [19][20][21][22][23]. Thus, some authors of the anti-criticism papers addressed the clarification of finite-time thermodynamics objectives and their inclusion in the efforts to approach the irreversible systems and their performance [21]. Others emphasized the meaning of time for thermodynamic processes, namely that of providing bounds by discussing nine general principles for finding bounds on the effectiveness of energy conversion [22] or bounds relative to the efficiency versus maximum power efficiency of heat engines [23].
However, regarding the usefulness of the FTT, the endoreversible model has the merit of launching nowadays the competition of finding new upper bounds of thermal machines performance, closer to the real one. Thus, progress has been made in the modeling and optimization of thermodynamic processes and cycles [24][25][26][27][28][29][30][31][32], with special attention to the common ones in thermal machines: Otto cycle [27], Stirling engine [28], Kalina cycle [30], and Brayton cycle [31,32]. The results obtained [30,31] have shown that besides the gains of FTT optimization with three or four objectives, the original results reported in the initial work of the FTT theory [3][4][5] are also revealed.
The engineering optimization is mainly concerned about internal irreversibility assessment by insight in dissipation mechanism, to approach and model the irreversible cycle performance. Both internal and external irreversibility are considered, conveying an actual optimization of thermal machine performance.
The Thermodynamics with Finite Speed (TFS) has been shown to be able to provide analytical evaluation of internal irreversibilities in several machines (Stirling, Otto, Diesel, Brayton, Carnot) [60][61][62][63][64][65][66][67][68] and electrochemical devices [69], as a function of the speed of the piston. Actually, the finite speed of the piston (and process implicitly) is also responsible of external irreversibilities, namely the finite heat transfer rate from source to cycle fluid and then to sink. The computation scheme developed in TFS using the Direct Method is based on the First Law of Thermodynamics for Processes with Finite Speed that contains the main internal irreversibility causes of thermal machines expressed as a function of the average piston speed. By integration of the new expression of the First Law on each cycle process, analytical expression for performance (Power and Efficiency) is provided. It can be used to optimize theoretical cycles of actual thermal machines and most importantly, it was validated for 12 performing Stirling Engines (in 16 operational regimes) [63,64] and 4 Solar Stirling Motors [49,50].
In recent publications [54][55][56][57][58], it has been mentioned that only Thermodynamics with Finite Speed (TFS) developed the necessary tools to optimize thermal machines by considering internal losses in addition to external ones by analytical means. Based on these statements, it was concluded that using the above-mentioned achievements of TFS in combination with FTT tools could convey a more realistic and efficient approach of thermal machines.
The analytical approach relative to this combination is presented here by original models introducing irreversibilities step by step and leading to important results that are more accurate than those obtained by each irreversible thermodynamics branch separately.
Firstly, a brief presentation of the Curzon-Ahlborn modeling of an endoreversible Carnot engine is given, together with the discussion relative to the presence of the nice radical in other works.
Then, optimization models for a Carnot cycle engine in a closed system that operates with finite speed of the piston are presented. The speed is considered constant and equal to the average speed of the piston that moves with a classical rod-crankshaft mechanism; by using the First Law of Thermodynamics for Processes with Finite Speed and the Direct Method, the optimization analysis of this cycle with external and internal irreversibilities is developed. Heat losses between the two heat reservoirs temperature level through the engine are considered. External irreversibilities are due to the finite heat transfer rate at the source and sink are modeled by an irreversible coefficient added to the classical expression of heat transfer on isothermal process. Internal irreversibilities are included in the mathematical expression of the First Law of Thermodynamics for Processes with Finite Speed as non-dimensional pressure losses due to the non-uniformity of the fluid pressure in the cylinder and friction. The piston speed for maximum power and for maximum efficiency is found for a particular set of engine parameters and it is shown that the minimum entropy generation per cycle occurs at maximum power. This analysis provides lower values of Carnot cycle efficiency than predicted by the Curzon-Ahlborn approach that was considered for comparison.
A further development of the model aims to combine the analysis of the Carnot cycle engine with only external irreversibility from Finite Time Thermodynamics (FTT) with the main advantage of the Thermodynamics with Finite Speed (TFS) approach, namely the internal irreversibility quantification as a function of the speed of the process (piston). Thus, corrections of the power output, efficiency, and optimized cycle fluid temperature in FTT optimization results based on the calculated speed of processes from the duration time in FTT and average piston speed in TFS. It results that when internal ireversibilities (speeds and friction) are included, the performance predicted by a TFS analysis is better than that predicted by an FTT analysis.
The first unification attempt between TFS and FTT considers only pressure losses due to the non-uniformity of the pressure in the cylinder as a function of piston speed. The analytical development of the model provides modified Curzon-Ahlborn expression for the externally irreversible Carnot cycle to also include the internal irreversibility. Equations for the optimum cycle temperature, maximum power, and efficiency for the internally and externally irreversible cycle are presented. The corrections are shown to increase with increased piston speed and to be significant at high but realizable piston speeds. The optimum temperature corresponding to maximum power is shown to increase with increased piston speed.
Then, a further step in the unification attempt between TFS and FTT is done by considering in addition to the Finite Speed, two other causes of internal irreversibility given by friction and throttling. Thus, based on the first unification achievement, new expressions are derived for the power output and efficiency of the direct Carnot cycle with finite speed processes. The results emphasize optimum speed values generating maximum power output, as well as the effect of irreversibilities on the optimum high temperature of the cycle.
The overview on the results of these models emphasizes that a significant difference exists between the results of the two optimization analyses in the sense that FTT optimization seems to be an upper bound when compared to the engineering optimization based on TFS and the Direct Method.

Models in Thermodynamics in Finite Time Analysis Seeking for Maximum Power Output of Carnot Cycle Engine
The Curzon-Ahlborn modeling of the Carnot-type engine [3] refers to a cycle that is internally reversible but with no thermal equilibrium between the working fluid and the thermal reservoirs during the isothermal heat input and heat rejection, respectively. Furthermore, there exists a finite time duration of heat transfer given by Newton's heat transfer law during the isothermal processes. The expression of the power output of the Curzon and Ahlborn cycle allows a maximum for which the corresponding efficiency is given by what was called nice radical.
Actually, the efficiency of a Carnot engine is treated for the case where the power output is limited by the rates of heat transfer to and from the working substance. It is shown that the efficiency, η CA , at maximum power output is given by the expression η CA = 1 − (T 2 /T 1 ) 1/2 where T 1 and T 2 are the respective temperatures of the heat source and heat sink. It results in an efficiency less than the one introduced by Carnot (η = 1 − (T 2 /T 1 )), and it is shown that the existing engines performance is well described by the above result.
Before the Curzon and Ahlborn analysis, a similar approach aiming to maximize the power output and the nice radical has appeared in Chambadal modeling of the Carnot engine [4], but its model used heat capacity rate instead of heat conductances.
Almost at the same time, Novikov [5] has also found the nice radical. The above-mentioned models and mainly the Curzon-Ahlborn one, which remain as references for the Carnot machine optimization in the frame of what was called Thermodynamics in Finite Time.

First Law of Thermodynamics for Processes with Finite Speed in Closed System
The optimization modeling presented in this section proceeds from a basis of thermodynamic fundamentals, systematically detailed and developed, starting from a unique equation called the First Law of Thermodynamics for Processes with Finite Speed [59,[70][71][72][73][74][75][76][77][78][79]. The advantages of using this equation instead of the one from Classical Reversible Thermodynamics consists of its capability to account for both causes and mechanisms of irreversibility generation in complex cycles or real machines such as Stirling Engines, as well as in other cycles such as Otto, Diesel, Brayton, and Carnot cycles [60,[71][72][73]. In addition, it is capable to consider both internal and external irreversibilities.
By integrating this equation for irreversible process step by step on each transformation of the cycle, the efficiency and power output are determined analytically. These expressions contain the causes of irreversibility, namely, the finite speed of the piston, an important parameter that can be optimized, for Maximum Efficiency or Maximum Power.
The mathematical expression of the First Law of Thermodynamics for Processes with Finite Speed in a closed system in its differential form is [59,[70][71][72][73][74][75][76]78]: and the irreversible work for these processes [59,[70][71][72][73][74][75][76]78]: where U-internal energy, Q-heat, W-mechanical work, p av,i -instantaneous average pressure of the gas, w-average speed of the piston, c-average molecular speed, ∆p fpressure losses due to friction, a-coefficient depending the gas nature, f -coefficient relative to the amount of heat generated by friction that remains in the cycle, and Vvolume.
In the previous equations, the plus sign corresponds to the compression processes and the minus sign corresponds to the expansion ones.
Regarding the terms appearing in the right member, the first term in the parenthesis accounts for the irreversibility generated by the Finite Speed of the piston, w, and due to the non-uniformity of the pressure in the cylinder. Therefore, the pressure on the piston p p is larger during compression and smaller during expansion than the pressure on the head of the cylinder p c , and this is also the case for the instantaneous average pressure in the gas p av.i [47,[59][60][61]76]. The experimental verification of this term is described in references [51,[59][60][61]. The second term in the parenthesis takes into account the irreversibility generated by the friction between moving parts of the machine (piston-cylinder, bearings, etc.) [47,60,61]. When the processes in the machine involve internal throttling, a third term is added in the First Law for Processes with Finite Speed [47,60,61], playing an important role in the optimization of Stirling machines [51,[59][60][61][62][63][64][65][66][67]77,80]. This term is less important in the Carnot cycle modeling, so that it is neglected in this study.
Other terms from the right member of Equations (1) and (2) have the following expressions: with γ-ratio of specific heat at constant pressure and constant volume, and R-gas specific constant. The pressure losses due to friction expressed as function of rotation per minute and based on their experimental evaluation for classical thermal engines operating upon Otto and Diesel cycles [81] were adapted to speed [76], and their expression resulted as: where N-parameter depending on structural characteristics of the engine. Note that Equations (1) and (2) completed by Equations (3) and (4) clearly show that the finite speed of the piston is responsible for all irreversibility causes, since it appears in both terms in the parentheses.

Model of Carnot Cycle Engine with Analytically Modeled Internal and External Irreversibility
The cyclic system of a Carnot heat engine, including irreversibilities of finite-rate heat transfer between the gas in the thermal engine and its heat reservoirs, heat leakage between the reservoirs, and internal dissipations of the working fluid, is shown schematically in Figure 1 [48,49]. The working fluid in the system is alternately connected to a hot reservoir at constant temperature T H,S and to a cold reservoir at constant temperature T L,S and its temperatures are, respectively, T H and T L . accounts for the irreversibility generated by the Finite Speed of the piston, w, and due to the non-uniformity of the pressure in the cylinder. Therefore, the pressure on the piston pp is larger during compression and smaller during expansion than the pressure on the head of the cylinder pc, and this is also the case for the instantaneous average pressure in the gas pav.i [47,[59][60][61]76]. The experimental verification of this term is described in references [51,[59][60][61]. The second term in the parenthesis takes into account the irreversibility generated by the friction between moving parts of the machine (piston-cylinder, bearings, etc.) [47,60,61]. When the processes in the machine involve internal throttling, a third term is added in the First Law for Processes with Finite Speed [47,60,61], playing an important role in the optimization of Stirling machines [51,[59][60][61][62][63][64][65][66][67]77,80]. This term is less important in the Carnot cycle modeling, so that it is neglected in this study.
Other terms from the right member of Equations (1) and (2) have the following expressions: with γ-ratio of specific heat at constant pressure and constant volume, and R-gas specific constant. The pressure losses due to friction expressed as function of rotation per minute and based on their experimental evaluation for classical thermal engines operating upon Otto and Diesel cycles [81] were adapted to speed [76], and their expression resulted as: where N-parameter depending on structural characteristics of the engine. Note that Equations (1) and (2) completed by Equations (3) and (4) clearly show that the finite speed of the piston is responsible for all irreversibility causes, since it appears in both terms in the parentheses.

Model of Carnot Cycle Engine with Analytically Modeled Internal and External Irreversibility
The cyclic system of a Carnot heat engine, including irreversibilities of finite-rate heat transfer between the gas in the thermal engine and its heat reservoirs, heat leakage between the reservoirs, and internal dissipations of the working fluid, is shown schematically in Figure 1 [48,49]. The working fluid in the system is alternately connected to a hot reservoir at constant temperature TH,S and to a cold reservoir at constant temperature TL,S and its temperatures are, respectively, TH and TL.  [48,49]. Figure 1. Carnot engine cycle with finite speed of the piston illustrated in p-V diagram [48,49].
Heat losses between the two heat reservoirs temperature level through the engine are considered by the heat rate term . Q lost . In addition, irreversible adiabatic processes are shown by the curves 2-3 and 4 -1.
Inside the cylinder with the piston illustrated in the bottom side of Figure 1 appears several pressures that are used in a process with finite speed analysis: on the piston, p p , on the cylinder, p c , and the instantaneous average pressure in the gas, p av,i . By integrating Equations (1) and (2) over the isothermal processes of the Carnot cycle, the following expressions for the energy exchanges are dependent of the average piston speed yield:

•
The irreversible heat received by the cycle gas from the source: with z H -irreversible coefficient that accounts for a limited heat input in the cycle due to the finite speed of the process: This irreversible coefficient shows that regardless of the heat available at the source, the cycle gas can only receive a limited amount of heat from the source.

•
The irreversible heat rejected by the cycle gas to the sink: with z L -irreversible coefficient that accounts for a limited heat rejected by the cycle gas to the sink due to the finite speed of the process: • The irreversible work produced/consumed during the isothermal processes of the cycle: with the corresponding irreversible coefficients: with and and The work per cycle results from Equations (9) and (10) as: The non adiabaticity of the engine suggested in Figure 1 by the term . Q lost is better explained in Figure 2 by the insulating wall between the two semi-cylinders that form the heat conduction path between the heat source and sink. The non adiabaticity of the engine suggested in Figure 1 by the term is better explained in Figure 2 by the insulating wall between the two semi-cylinders that form the heat conduction path between the heat source and sink. The heat transfer rate lost through this conduction path is: where kins-thermal conductivity of the insulation, and Bins-insulation thickness.
Equation (17) expressed on the cycle becomes: The cycle time duration can be expressed as: with Ap-piston area.
The area associated to the heat transfer rate lost between the source and sink yields (see Figure 2): where D is the inner diameter of the cylinder. This heat transfer rate lost per cycle will modify the heat supply from the source and the heat rejected to the sink as follows: In the above equations, the heat input to the cycle gas and heat rejected from the gas to the sink may be considered those already given by Equations (5) and (7), or it can be expressed in terms of heat transfer as follows: The heat transfer rate lost through this conduction path is: .
where k ins -thermal conductivity of the insulation, and B ins -insulation thickness.
Equation (17) expressed on the cycle becomes: The cycle time duration can be expressed as: with A p -piston area.
The area associated to the heat transfer rate lost between the source and sink yields (see Figure 2): where D is the inner diameter of the cylinder. This heat transfer rate lost per cycle will modify the heat supply from the source and the heat rejected to the sink as follows: In the above equations, the heat input to the cycle gas and heat rejected from the gas to the sink may be considered those already given by Equations (5) and (7), or it can be expressed in terms of heat transfer as follows: where U H (w) and U L (w) are the overall heat transfer coefficient during the heat exchange at the source and sink, respectively, and A H and A L are the area of the heat transfer surfaces. The heat transfer expressed using the Finite Speed analysis (Equations (5) and (7)) should be the same as the heat transfer corresponding to the above Equations (23) and (24). Therefore, the two equalities allow expressing the temperature of the gas at the hot end and at the cold end respectively, in connection with the source and sink temperature: The overall heat transfer coefficients of the heat exchanger at source and sink, U L , U H are calculated based on average bulk fluid temperatures by using well-known equations [82]: with n = 0.4 for heating, respectively, n = 0.3 for cooling. Similarly, the dynamic viscosity and the thermal conductivity of the gas are calculated using polynomial functions [64], based on the bulk gas temperature.
The contact time per cycle for the heat transfer from the heat source to the engine corresponding to the isothermal process is: while the contact time per cycle for heat transfer from the gas engine to the sink is: The area for the heat transfer between the source and the hot gas during the isothermal heat addition process (see Figure 2) is: Similarly, the area for heat transfer between the cold gas and the sink during the isothermal heat rejection process is expressed as: with The power output of the irreversible Carnot engine is given by: The efficiency of the Carnot cycle with internal and external irreversibility is: Then, the entropy generation per cycle can be expressed as: and its corresponding expression per unit time is: The results of this optimization model will be given in Section 3.

The Curzon-Ahlborn Model of the Carnot Cycle Engine Combined with the Analysis Based on Thermodynamics with Finite Speed (TFS)
The model aims to combine the analysis of the Carnot cycle engine with only external irreversibility in Thermodynamics in Finite Time (FTT) with the main advantage of the Thermodynamics with Finite Speed (TFS) approach, namely the internal irreversibility quantification as a function of the speed of the process.
The main differences of this model compared to the previous one are represented by: • The absence of heat losses Q lost , in order to consider similar cycles in both analyses.

•
The presence of losses in the work expression, so that the work lost in the two adiabatic processes due to finite speed is obtained by integrating the irreversible work for processes with finite speed in the processes 2-3 and 4 -1 (Equation (2)) and subtracting the reversible work in the processes 2-3 and 4-1 (see Figure 1): where p 23 and p 4 1 are the average gas pressure on the irreversible adiabatic compression and expansion, respectively. This lost work term is then subtracted from the work per cycle given by Equation (16), since it does not include the effect of internal irreversibilities of the adiabatic processes.
By including this lost work term in the analysis, an expression for the efficiency of the Carnot cycle, considering all internal and external irreversibilities yields as: where the irreversible adiabatic process contribution of the internal irreversibility of the cycle, due to the finite piston speed and friction, I ad , results as: Note that the second term in Equation (38) is obtained by integration of the First Law for Processes with Finite Speed (TFS) for the adiabatic processes 23 and 4 1 (see Figure 1), Equations (1) and (2).
The combination of the two analyses based on FTT and TFS models will include a similar term to that given by Equation (39) in the Curzon-Ahlborn approach. As previously mentioned, this approach included the time duration of the cycle processes, with the assumption that the adiabatic processes occur rapidly and accordingly consume far less time than the isothermal processes. Based on this assumption, the FTT and TFS analyses can be rationally compared only if the Carnot cycle engine dimensions and number of cycles per unit time are made equal in both cases. In a TFS analysis, the speed of the piston, w, is assumed constant in each of the four processes and equals the average speed based on the number of cycles per unit time. However, in a Curzon-Ahlborn type analysis (FTT optimization), the speed of isothermal compression w L , the speed of isothermal expansion w H , and the speed of the adiabatic processes w ad (assumed equal for both adiabatic processes), are calculated. The result must be consistent with the total cycle time optimized for maximum power.
When this comparison is performed, the following process speeds, in terms of the average speed, are obtained (see Figure 2) [49]: where Z*-ratio of the optimized duration of the isothermal processes in the Curzon-Ahlborn treatment (FTT), a'-coefficient depending on time to speed transfer. The optimized temperatures in the Curzon-Ahlborn analysis [3] are expressed based on corresponding optimized times for each process, as follows: By using the above expressions of temperatures and including the effect of internal irreversibility, the corresponding power of Carnot cycle in FTT analysis is: Equation (45) appears as a combination of the two analyses as the first term is the original Curzon-Ahlborn term [3] taking account of only external irreversibilities generated by the temperature difference, and the second term accounts for internal irreversibilities generated by the finite speed and friction from the TFS approach.
Nevertheless, a simpler expression of the power output can be also given as: where the efficiency term contains all irreversibility causes of the Carnot cycle engine. The passage from the efficiency of the Carnot cycle including only external irreversibilities and corresponding to maximum power output in the original Curzon-Ahlborn analysis [3]: will be performed here by including the effects of internal irreversibilities. Similarly, Equations (5)- (12) are expressed by evaluating Z FTT and Z FTT irreversible coefficients at the appropriate speeds (w L and w H ) on the isothermal processes at T L and T H respectively, and on the adiabatic processes (w ad ) conveying to the following corrected efficiency: where the equivalent term I ad to that from Equation (39) is similar, but it is based on w ad (Equation (42)) instead of w and also on the resulting temperatures and pressures from the Curzon-Alhborn. Ref. [3] analysis of the Carnot cycle completed by TFS tools (Equations (43) and (44)).

Unification Attempts of Thermodynamics in Finite Time and Thermodynamics with Finite Speed Analyses
The first unification attempt is based on [47] that had a very important role in the development of Thermodynamics with Finite Speed (TFS) and the Direct Method, for analytical evaluation of the performances of irreversible cycles with internal and external irreversibilities. Later, it was completed by [31,34].
Specific issues addressed in this model are illustrated on cycle Carnot engine represented in T-S coordinates in Figure 3. There are shown to have external irreversibility due to heat transfer from the source (with fixed temperature T H,S ) to the cycle temperature at the hot end, T X , during the isothermal heat addition process 2-3. Then, internal irreversibilities due to the finite piston speed are considered during only the adiabatic compression and expansion processes. The sink temperature and the cycle temperature at the cold end are the same. The sink temperature, T 0 , is fixed, while the cycle temperature at the hot end, T X , is a variable.

Unification Attempts of Thermodynamics in Finite Time and Thermodynamics with Finite Speed Analyses
The first unification attempt is based on [47] that had a very important role in the development of Thermodynamics with Finite Speed (TFS) and the Direct Method, for analytical evaluation of the performances of irreversible cycles with internal and external irreversibilities. Later, it was completed by [31,34].
Specific issues addressed in this model are illustrated on cycle Carnot engine represented in T-S coordinates in Figure 3. There are shown to have external irreversibility due to heat transfer from the source (with fixed temperature TH,S) to the cycle temperature at the hot end, TX, during the isothermal heat addition process 2-3. Then, internal irreversibilities due to the finite piston speed are considered during only the adiabatic compression and expansion processes. The sink temperature and the cycle temperature at the cold end are the same. The sink temperature, T0, is fixed, while the cycle temperature at the hot end, TX, is a variable. Another novelty compared to previous model consists of the use of entropy variation calculation on the irreversible cycle processes that will provide a term in the cycle efficiency expression that could unify the two analyses.
The first unification attempt is based on the First Law of Thermodynamics for Processes with Finite Speed [70][71][72][73] in its reduced form that considers only the internal irreversibility due to the finite speed of the piston: From the equation for adiabatic irreversible processes of ideal gases with constant specific heats that is derived from Equation (49) by integration [72,73,75,76], one can express the temperature T2 at the end of an irreversible adiabatic process as where γ is the ratio of the specific heat at constant pressure and at constant volume. For a compression process with finite speed w << c, one could express . as follows: Another novelty compared to previous model consists of the use of entropy variation calculation on the irreversible cycle processes that will provide a term in the cycle efficiency expression that could unify the two analyses.
The first unification attempt is based on the First Law of Thermodynamics for Processes with Finite Speed [70][71][72][73] in its reduced form that considers only the internal irreversibility due to the finite speed of the piston: From the equation for adiabatic irreversible processes of ideal gases with constant specific heats that is derived from Equation (49) by integration [72,73,75,76], one can express the temperature T 2 at the end of an irreversible adiabatic process as where γ is the ratio of the specific heat at constant pressure and at constant volume. For a compression process with finite speed w << c, one could express δ irr.cpr as follows: if a 2 w 2 << c 1 ·c 2 and the corresponding term is neglected. Note that for compression, the plus sign is used in parenthesis. Note that the average molecular speed c 2 depends on temperature T 2 that contains δ irr.cpr . Thus, the calculation should be done by using approximations.
The first approximation considers the temperature at the end of the reversible adiabatic compression for which one gets (see Equation (3)): By substituting Equation (52) in Equation (51), a first evaluation of δ irr.cpr is done: Note that a more precise approximation is possible by combining Equations (50) and (53) that yields: and a better approximation for the adiabatic irreversible coefficient is given by: For simplicity, the first approximation expression of the adiabatic irreversible coefficient (Equation (53)) is used hereafter.
The entropy variation computation in the case of an adiabatic irreversible process of compression with finite speed when the results from Equations (50) and (53) are introduced in the classical formula of ∆S: which provides: Similarly, the entropy variation expression on the adiabatic irreversible expansion can be derived showing that the only difference consists in the change of signs in the parentheses, so that one can give a general form of both compression and expansion processes, as: By using Equations (56) and (58) in the present analysis on the two irreversible adiabatic processes and on the isothermal expansion, the following expressions result: with c v -specific heat at constant volume, R-specific constant of the cycle fluid. Then, the actual thermal efficiency of the Carnot cycle engine with irreversibilities can be expressed based on previous calculation (see Figure 3) as: and together with Equations (59)-(61), the following expression results: When the piston speed is much less than the average molecular speed, namely aw cpr << c 1 , and a exp << c 3 , one gets a simplified form of Equation (63): where For the same speed of the piston on the two adiabatic processes of the cycle, Equation (64) becomes: Once having the actual efficiency of the cycle, the power output of the engine can be easily derived as: To render the model more general, a non-dimensional form of the power output of the Carnot engine will be optimized, namely: Moreover, the actual efficiency is expressed as a product of the Carnot reversible efficiency: and the second law efficiency accounting for irreversibilities: with the internal irreversible coefficient C given by: By combining Equation (69) with Equations (68), (70)- (72) and term rearrangement, one gets: With Note that for a given cycle fluid, coefficient Φ depends only on the fluid temperature at the hot end, T X , and the piston speed, w. Thus, the non-dimensional power (Equation (73)) is seen to be a complex function of T X and the piston speed by the term C. Searching for an analytic expression of the optimum temperature to maximize the non-dimensional power can be done in the first approximation, for Φ = constant in Equation (73). This is in good agreement with Ibrahim's approach [16], where for Φ constant, the expression of the optimal temperature of the cycle fluid at the hot end that maximizes the power output of the engine was established as: Although this is a simple expression, the value of Φ is not known. It is indicated as a parameter with a given (not computed) value.
In the present analysis, one can approximate the value of T opt by iterations. Thus: • For w = 0, which means an internally reversible cycle, Equations (72) and (74) lead to Φ = 1, so that Equation (75) becomes: • For w = 0, by combining Equations (74) and (76), a first approximation of the term responsible for cycle irreversibilities is expressed as: Equation (78) is the first approximation of the optimum temperature to maximize the non-dimensional power when the piston speed is not zero and when therefore both internal and external irreversibilities are accounted for.
Furthermore, the next step in the approximation procedure is to replace T x in Equation (74) by Equation (78), that allows obtaining a more accurate expression of Φ term: One could continue the iteration, but the gain in accuracy would become insignificant. Thus, the optimized temperature of the cycle fluid at the hot end of the engine coming out of TFS analysis is: and the maximum non dimensional power output of the internally and externally irreversible Carnot cycle becomes: Then, the efficiency of the irreversible Carnot cycle is calculated by substituting T (w =0) opt into Equation (67) that leads to: One can see now that Equation (82) unifies the FTT and TFS analyses by the same expression of the actual efficiency of an irreversible Carnot cycle engine. Thus:

•
For internally reversible, externally irreversible Carnot cycle engine for which w = 0 and consequently, Φ w = 1, one gets the Curzon-Ahlborn "nice radical" [3]: • For an internally and externally irreversible Carnot cycle engine for which w = 0 and consequently, Φ w > 1, one gets: with Note that ζ w ≥ 1 and it accounts for internal irreversibilities of the cycle when depending on the piston speed. Equations (83)- (85) clearly show that the nice radical of FTT analysis overestimates the actual efficiency of the engine evaluated by TFS analysis. A second unification attempt is under development. It aims to extend the modeling by considering, in addition to the finite speed, two other causes of internal irreversibility: friction and throttling.
Based on previous equations of the first unification attempt, a new expression was derived for the actual efficiency of the Carnot cycle engine: where ∆p thr is estimated as [62][63][64]83]: with C thr = 0.005. Then, the irreversibility coefficient yields: (88) The power output and efficiency of the Carnot cycle engine with finite speed processes considering all internal irreversibility causes are smaller compared to those determined from Equations (81) and (82), since the new correction is more substantial by its three terms (Equation (88)).
The results of this modeling emphasize optimum speed values generating maximum power output, as well as the effect of irreversibilities on the optimum cycle high temperature.

Results
The results of TFS analysis presented in Section 2.2 relative to a Carnot cycle engine with internal and external irreversibilities generated by losses due to (1) heat transfer between the cycle and the heat source and sink, (2) the effect of variation in the area for heat transfer and in the dwell time for heat transfer due to the movement of the piston during the isothermal expansion and compression processes, and (3) non adiabaticity of the engine are presented in Figures 4-6. The following fixed parameters entering in the equations of the model were used: D = 0.015 m; L 1 = 2 m; ε = 3; f = 0; p 1r = 0.05 bar (pressure of the gas in state 1r); ∆p f = (0.97 + 0.045 w)/80; T H,S = 1200 K; T L,S = 300 K; γ = 1.4; B ins = 0.002 m; k ins = 0.01 W/mK; D e = 0.019 m. The cycle fluid is air that is considered as an ideal gas with specific heat, conductivity, and viscosity varying as a function of temperature. Figure 4 illustrates the effect of irreversibilities introduced gradually on the power output showing the important difference between the cycle power output for the reversible Carnot cycle and for the Carnot cycle with irreversiblities due to the finite speed of the piston. Then, the cycle efficiency including internal and external irreversibilities, η ∆T,w,Q lost , is represented as a function of piston speed showing optimum values for maximum performance. In addition, the time rate of entropy generation is added in order to compare the optimization results in terms of optimal speed.
One can see that the piston speed for maximum efficiency is only 4 m/s, for which the rate of entropy generation (per unit of time) is very low. Moreover, the piston speed for maximum power is near 17 m/s, and the rate of entropy generation (per unit of time) at this speed is significantly higher. As expected, the power output decreases, as additional irreversibilities are included in the analysis. , , imum performance. In addition, the time rate of entropy generation is added in order to compare the optimization results in terms of optimal speed.
One can see that the piston speed for maximum efficiency is only 4 m/s, for which the rate of entropy generation (per unit of time) is very low. Moreover, the piston speed for maximum power is near 17 m/s, and the rate of entropy generation (per unit of time) at this speed is significantly higher. As expected, the power output decreases, as additional irreversibilities are included in the analysis.     Figure 5 brings together the efficiency of the Carnot cycle determined by the TFS analysis when it is gradually affected by irreversibility, the one based on Curzon-Ahlborn analysis, the power output, and the entropy variation per cycle as functions of piston speed. The efficiency of the Carnot cycle as determined by TFS analysis is at all piston speeds less than the efficiency based on the Curzon-Ahlborn analysis. In addition, for piston speeds greater than w opt , the efficiency of the Carnot cycle at maximum power as determined by TFS is less than the efficiency based on the Curzon-Ahlborn analysis, even if only the external irreversibility is included. For example, the TFS efficiency, at the speed corresponding to maximum power, is 0.29 when only external irreversibilities are included and is 0.15 when both internal and external irreversibilities are included in the analysis.
An important aspect is related to the entropy generation per cycle and per time as functions of piston speed from Figures 4 and 5. Their evolution with the piston speed is completely different, in that only ∆S cycle shows a minimum for the speed as the maximum power output.
The hot and cold heat reservoir temperatures, the hot and cold end gas temperatures, and the Curzon-Ahlborn optimized temperature are shown in Figure 6 as a function of the piston speed. The hot-end gas temperature optimized for maximum power is shown to be nearly the same over a large variation range of piston speeds (5 to 10 m/s), as the Curzon-Ahlborn optimized temperature. In addition, the predicted temperature difference between the high and low gas temperature is shown to increase as the piston speed decreases and to be especially great at piston speeds less than the speed for maximum efficiency.
Some results of the second model (Section 2.3) are shown in Figures 7-9. Figure 7 illustrates the relative speed of the adiabatic processes and of each of the isothermal processes in FTT optimization compared to the average speed of the piston considered in TFS optimization. The curves show that the optimization results in lower speed than the average speed of the piston w TFS , for the two isothermal processes in FTT optimization. In addition, the high temperature isothermal process has the lowest speed; then, it follows the low temperature isothermal process with a higher speed, while the adiabatic processes occur at a much higher speed. However, the internal irreversibilities were not included in the original Curzon-Ahlborn analysis [3], so the high piston speed during the adiabatic process had no negative effect on the cycle efficiency and power.
In fact, the resulting slower piston speed during the isothermal processes significantly enhanced the cycle efficiency and power in FTT optimization. power output.
The hot and cold heat reservoir temperatures, the hot and cold end gas temperatures, and the Curzon-Ahlborn optimized temperature are shown in Figure 6 as a function of the piston speed. The hot-end gas temperature optimized for maximum power is shown to be nearly the same over a large variation range of piston speeds (5 to 10 m/s), as the Curzon-Ahlborn optimized temperature. In addition, the predicted temperature difference between the high and low gas temperature is shown to increase as the piston speed decreases and to be especially great at piston speeds less than the speed for maximum efficiency.
Some results of the second model (Section 2.3) are shown in Figures 7-9.  Figure 7 illustrates the relative speed of the adiabatic processes and of each of the isothermal processes in FTT optimization compared to the average speed of the piston considered in TFS optimization. The curves show that the optimization results in lower speed than the average speed of the piston wTFS, for the two isothermal processes in FTT optimization. In addition, the high temperature isothermal process has the lowest speed; then, it follows the low temperature isothermal process with a higher speed, while the adiabatic processes occur at a much higher speed. However, the internal irreversibilities were not included in the original Curzon-Ahlborn analysis [3], so the high piston speed      The effect of the piston speed on the power output and efficiency for a Carnot engine with external irreversibilities and internal ones gradually introduced in both TFS and FTT analyses is shown in Figures 8 and 9, respectively. These results are based on the following fixed parameters: D = 0.015 m; L 1 = 0.5 m; ε = 2; f = 0.3; a = 1.1; p 1r = 0.01 bar (pressure of the gas in state 1 r ); ∆p f = (0.97 + 0.045 w)/60 bar; T HS = 800 K; T LS = 300 K; γ = 1.4.
The FTT optimization predicts greater power output from the Carnot engine at almost all piston speeds than the TFS optimization when only external irreversibilities (∆T) are considered. It is due to the little cycle time that was allocated to the adiabatic processes in the FTT optimization. This allowed more time for the isothermal processes without any penalty associated with the more rapid adiabatic processes, since the internal irreversibilities of these processes are not considered. In the TFS optimization for example, at 9 m/s the power is 0.33 W, and the efficiency is 25%. In the FTT optimization at the same speed, by comparison, the power is 0.6 W, and the efficiency is 39%. However, when the internal irreversibilities are included in the analyses, the TFS optimization results in greater power and efficiency than FTT, even though both are less than when the internal irreversibilities were neglected.
It is also important to keep in mind that a cycle that operates with three different piston speeds for the four processes presents a huge mechanical complication in the design of the actual engine. While it may be possible to design such an engine (for example, using cams with different profiles for each process), there is no need to do so, since the TFS optimization predicts superior operating performance.
The non-dimensional power as determined from Equation (77) as a function of the cycle high temperature and the piston speed is shown in Figure 10. In addition, the power output of the reversible Carnot cycle is added for comparison purposes. The nondimensional power reveals the maximum value for any fixed piston speed or internal irreversibility consequence, and this maximum is moving toward growing temperature T x as the piston speed increases.
TFS optimization predicts superior operating performance.
The non-dimensional power as determined from Equation (77) as a function of the cycle high temperature and the piston speed is shown in Figure 10. In addition, the power output of the reversible Carnot cycle is added for comparison purposes. The non-dimensional power reveals the maximum value for any fixed piston speed or internal irreversibility consequence, and this maximum is moving toward growing temperature Tx as the piston speed increases. Figure 10. The non-dimensional power of the Carnot cycle engine as a function of the cycle high temperature and the piston speed w, as determined from TFS analysis. Figure 11 presents the second law efficiency variation versus the cycle high temperature for different values of the piston speed. The curves show that this irreversibility coefficient decreases as piston speed increases, as expected, and the decrease is more important at lower values of the cycle high temperature.  Regarding the irreversible term determined from Equation (74), its variation with the cycle high temperature and piston speed becomes important mainly at high speeds, as illustrated in Figure 12. However, there is little change of in the region of optimal temperatures (from 800 to 1000 K).  Regarding the irreversible term Φ determined from Equation (74), its variation with the cycle high temperature and piston speed becomes important mainly at high speeds, as illustrated in Figure 12. However, there is little change of Φ in the region of optimal temperatures (from 800 to 1000 K).
The comparison of the results before ( Figure 10) and after ( Figure 13) using approximations in search of optimal temperature expression that optimizes the power output of the engine shows good agreement and lends confidence that a first iteration provides sufficiently accurate results for most purposes. However, it is possible to improve the accuracy of the results by making a new iteration. Figure 11. The effect of the piston speed, w, on the second law efficiency variation with the cycle high temperature.
Regarding the irreversible term determined from Equation (74), its variation with the cycle high temperature and piston speed becomes important mainly at high speeds, as illustrated in Figure 12. However, there is little change of in the region of optimal temperatures (from 800 to 1000 K). The comparison of the results before ( Figure 10) and after ( Figure 13) using approximations in search of optimal temperature expression that optimizes the power output of the engine shows good agreement and lends confidence that a first iteration provides sufficiently accurate results for most purposes. However, it is possible to improve the accuracy of the results by making a new iteration.  temperatures (from 800 to 1000 K). The comparison of the results before ( Figure 10) and after ( Figure 13) using approximations in search of optimal temperature expression that optimizes the power output of the engine shows good agreement and lends confidence that a first iteration provides sufficiently accurate results for most purposes. However, it is possible to improve the accuracy of the results by making a new iteration.

Conclusions
Important performance parameters of an irreversible Carnot cycle engine based on optimization models developed in Thermodynamics with Finite Speed and by using the Direct Method have been presented. This analysis predicts lower values of Carnot cycle efficiency than is predicted by the Thermodynamics in Finite Time (FTT), as originated by Chambadal and Curzon-Ahlborn. The piston speed for maximum power and for maximum efficiency has been found for two sets of engine parameters, and it has been shown that entropy generation per time clearly differs from entropy generation per cycle. Moreover, a minimum occurs for the entropy generation per cycle at optimum piston speed corresponding to maximum power.
This study produces a more realistic model for the design of Carnot cycle engines since it includes many of the various internal and external irreversible processes that occur in the actual operation of these engines and correlates them with the finite speed of the piston.
The present analysis has shown that the first unification attempt of TFS and FTT optimization involves analytical correction of the Curzon-Ahlborn efficiency, which is well known as a nice radical, by a term accounting for internal irreversibilities of the Carnot cycle engine. They were evaluated based on the Fundamental Equation of TFS, the First Law for Processes with Finite Speed, where the main irreversibility causes are accounted for, namely, finite speed of the piston, friction, and throttling. This correction appears not only in the Carnot cycle efficiency but also in the optimum temperature of the gas at the hot end of the engine for maximum power, and in the non-dimensional power output of the engine. Thus, the engine performances were derived analytically for a Carnot engine with external and internal irreversibilities generated by finite speed w.
A step further in this first unification approach did a comparison between TFS and FTT optimization results for a Carnot cycle emphasizing that TFS analysis can account for both kind of irrevesibilities, and it can also provide improvement of FTT results.
Thermodynamic analysis based on the Direct Method and Finite Speed of the processes is shown to be especially effective for engineering optimizations since the efficiency and power can each be optimized based on gas temperatures and process speed. The fact that it is already used by other researchers [54][55][56][57][58][84][85][86][87] proves its capability to become a useful tool in thermal machine analysis and optimization.
We do hope that this work marks an important step toward the development of a more powerful Engineering Irreversible Thermodynamics, which could be a synthesis unifying the three important branches, namely Thermodynamics with Finite Speed, Thermodynamics with Finite Dimensions, and Thermodynamics in Finite Time.