Fundamentals / Mechanical engineering / Engineering thermodynamics and heat transfer

Entropy, irreversibility and useful-work loss

Check a proposed process with the second law and quantify the effect of a finite temperature difference.

From first principles

Separate entropy transfer from entropy generated inside a boundary

For a reversible differential process the thermodynamic definition of entropy is

\[dS=\delta Q_{\rm rev}/T.\]

Irreversible changes reach the same state-function difference but can generate entropy internally. For a closed system exchanging heats \(Q_j\) across boundary portions at known local temperatures \(T_j\), the second law gives an experimentally testable inequality:

\[S_2-S_1=\sum_j\int\frac{\delta Q_j}{T_j}+S_{\rm gen},\qquad S_{\rm gen}\ge0 .\]

To evaluate the left side independently of the actual path, use a reversible path between the same equilibrium states. For an ideal gas the fundamental relation \(Tds=du+p\,dv\), together with \(du=c_vdT\) and \(pv=RT\), yields

\[s_2-s_1=c_v\ln(T_2/T_1)+R\ln(v_2/v_1)\]

for constant specific heat. Inserting this property change into the balance isolates entropy generation of the actual process. A gas might cool and lose entropy while the combined gas plus surroundings generates entropy. For heat exchanged across a wall separating two reservoirs, the two reservoirs’ boundary transfer terms have opposite signs and different temperature denominators.

Background · Entropy generation
\[\dot S_{\rm gen}=\dot S_{\rm system}-\sum\dot Q_j/T_j-\dot S_{\rm mass,in}+\dot S_{\rm mass,out}\]

Use boundary temperatures at which heat actually crosses. All flows, storage and units must refer to the same control volume.

Derivation and applications

Count the entropy generated when two ideal gases mix

Two separated ideal gases can have the same temperature and pressure, yet their mixing increases entropy. Consider distinct nonreacting species in insulated rigid compartments. Remove the separator and let them equilibrate in the common volume. Initially both sides have temperature \(T\) and pressure \(p\), and no shaft work is performed. The total internal energy of ideal gases depends only on temperature, so the final equilibrium temperature stays \(T\). Denote mole numbers by \(n_i\) and total volume by \(V\).

For each species, the entropy change can be calculated along a reversible isothermal expansion into its accessible final volume, even though the actual mixing is irreversible. Integrating \(\delta Q_{\rm rev}/T=p_i\,dV/T=n_iR\,dV/V\) gives

\[\Delta S_i=n_iR\ln(V/V_i).\]

The initial volumes were proportional to mole numbers because \(p\) and \(T\) were common. Thus \(V_i/V=n_i/\sum_jn_j=y_i\), the final mole fraction. Add the species changes and use zero boundary entropy transfer:

\[\Delta S_{\rm mix}=S_{\rm gen}=-R\sum_i n_i\ln y_i .\]

For two gases with \(y\) and \(1-y\), the generation per mole of mixture is maximal when both are equally abundant. The derivative and its zero are

\[\frac{d}{dy}\frac{\Delta S_{\rm mix}}n=R\ln[(1-y)/y]=0\quad\Longrightarrow\quad y=\tfrac12.\]

The entropy change tends to zero when either fraction tends to one. If the compartments contain the same gas and the initial temperatures and pressures already agree, removing the partition does not create distinguishable species; assigning artificial labels would predict a spurious mixing term.

Worked example

Estimate the lost work of mixing two samples

Mix \(1.00\) mol of one ideal gas and \(3.00\) mol of another at \(300\) K. The mole fractions are \(0.250\) and \(0.750\). The generated entropy is

\[-8.314[\ln0.25+3\ln0.75]=18.7\,\mathrm{J/K}.\]

Relative to an environment at \(300\) K, the destroyed work potential is \(300(18.7)=5.61\) kJ. No energy has disappeared from the insulated vessel.

Second application

Compare equal and strongly unequal amounts

For a fixed total of \(4.00\) mol, an equal mixture generates \(4R\ln2=23.1\) J/K. With only \(0.0400\) mol of one species the fractions become \(0.0100\) and \(0.990\). The generation falls to

\[4R[-0.01\ln0.01-0.99\ln0.99]=1.86\,\mathrm{J/K}.\]

Each rare molecule gains access to much more volume, but there are few such molecules; both contributions must be counted before comparing samples.

Try it · Mixing

Set the inputs to the values in the worked example, then vary one quantity while holding the others fixed. Compare the curve and numerical balance with the second application. The calculation uses the assumptions derived above; its readout identifies bounds such as choking, phase-region changes and inconsistent measurements.

Energy bookkeeping is not sufficient

In an insulated two-body experiment, heat lost by one body is gained by the other. That energy balance alone would allow heat to move spontaneously from a colder body to a hotter one. Entropy supplies the missing direction constraint. It is a property of a state. For a simple equilibrium system a reversible differential heat transfer defines \(dS=\delta Q_{\rm rev}/T\). An irreversible process between the same endpoints has the same entropy difference; the actual heat transfer divided by the body temperature need not equal that difference.

For a closed system, the integrated entropy balance reads \(\Delta S=\int \delta Q/T_b+S_{\rm gen}\), where \(T_b\) is the absolute temperature at the boundary where the heat crosses. Entropy generation satisfies \(S_{\rm gen}\ge0\). A system can lose entropy by exporting it in heat or in a mass stream. A negative change in the entropy of a single hot body therefore need not violate the second law.

Background · Why does a small temperature difference produce a second-order loss at fixed conductance?

Let a link of constant conductance \(G\) join reservoirs held at \(T+\Delta T/2\) and \(T-\Delta T/2\). In steady operation the heat current is \(G\Delta T\). Subtract the entropy leaving the hot reservoir from that entering the cold reservoir.

\[\dot S_{\rm gen}=G\Delta T\left(\frac{1}{T-\Delta T/2}-\frac{1}{T+\Delta T/2}\right)=\frac{G(\Delta T)^2}{T^2-(\Delta T/2)^2}.\]

At fixed conductance, halving a small difference approximately quarters the entropy production per second, while it also halves the heat current. If a design must keep the heat rate fixed, halving the difference requires nearly twice the conductance and only halves the production. This distinction matters when comparing a bigger exchanger with the original one.

Calculate a property change with a convenient path

For a calorically perfect ideal gas, combine \(T\,ds=du+p\,dv\) with \(du=c_v\,dT\) and \(p=RT/v\). This gives

\[ds=c_v\,dT/T+R\,dv/v.\]

Replacing \(v\) using the ideal-gas law yields the alternative \(ds=c_p\,dT/T-R\,dp/p\). Integrate between the initial and final equilibrium states. These are property relationships, even when the actual path between states includes friction, throttling or free expansion.

An ideal gas passing through an insulated valve with equal inlet and outlet speeds has \(h_2=h_1\), so its temperatures are equal in the constant-\(c_p\) approximation. Dropping air from 400 to 100 kPa gives \(s_2-s_1=-0.287\ln(100/400)=0.398\) kJ/(kg K). With no heat transfer or other streams, the positive entropy change per kilogram is entirely generated. A reversible insulated expansion turbine would generally produce a lower outlet temperature and shaft work.

Trace entropy across two reservoirs

An insulated conductor transfers 600 W from a reservoir at 400 K to another at 300 K. Its stored energy and entropy are steady. The hot reservoir loses entropy at \(600/400=1.50\) W/K, while the cold one gains \(600/300=2.00\) W/K. The total generation rate is 0.50 W/K. Heat rate is the same at both ends; entropy transfer in that heat differs because the temperatures differ.

\[\dot S_{\rm gen}=\dot Q\left(\frac1{T_c}-\frac1{T_h}\right).\]

If the surroundings defining the available-work reference are at \(T_0=300\) K, the corresponding destruction of available work is \(T_0\dot S_{\rm gen}=150\) W. For these particular reservoirs a reversible engine supplied with 600 W at 400 K could have produced \(600(1-300/400)=150\) W before rejecting the remainder. The conductor instead rejects all 600 W to the cold sink. Energy did not disappear; an opportunity for work was lost.

Locate sources and choose a boundary

A heat exchanger can have little external heat leak yet generate appreciable entropy internally through finite temperature differences and pressure losses. Write \(\dot S_{\rm gen}=\sum_{\rm out}\dot m s-\sum_{\rm in}\dot m s-\sum_j\dot Q_j/T_{b,j}\) for steady operation. Both streams belong inside the same control volume when testing internal heat exchange. If the boundary encloses only one stream, heat crossing the wall carries entropy with it and must appear explicitly. The largest reduction in entropy generation per extra unit of area or pumping effort is a design question. The thermodynamic balance identifies losses without alone determining the economically preferred geometry.

Compare the conditions on a valve and a turbine

Air passes through a steady insulated throttling valve from 400 to 100 kPa with negligible changes of speed. With no shaft work the first law gives equal inlet and outlet enthalpy. For ideal air this implies equal temperature. Its entropy change follows from \(\Delta s=c_p\ln(T_2/T_1)-R\ln(p_2/p_1)=0.287\ln4=0.398\,\mathrm{kJ/(kg\,K)}\). At 0.10 kg/s the entropy generation is 0.0398 kW/K. An ideal adiabatic turbine undergoing the same pressure drop has constant entropy and delivers work as its temperature falls. Pressure ratio alone therefore cannot determine the temperature change across an unfamiliar device.

Obtain a work bound for two finite bodies

The reversible efficiency \(1-T_c/T_h\) describes operation between reservoirs held at fixed temperatures. If the two bodies are finite, each increment of transferred heat changes the temperatures and the instantaneous efficiency. Consider two incompressible blocks in a common insulated enclosure. Their heat capacities \(C_h,C_c\) are taken as constant. A reversible engine operates between them and exports mechanical work until no temperature difference remains. The working fluid returns to its starting state after each incremental cycle, so conservation of entropy for this reversible composite system determines the final temperature.

\[C_h\ln(T_f/T_h)+C_c\ln(T_f/T_c)=0,\]
\[T_f=T_h^{C_h/(C_h+C_c)}T_c^{C_c/(C_h+C_c)}.\]

Energy conservation gives maximum work \(W_{\max}=C_hT_h+C_cT_c-(C_h+C_c)T_f\) for consistent internal-energy references. The reversible final temperature is a weighted geometric mean. If the two blocks are simply put in thermal contact without work output, first-law conservation instead gives the weighted arithmetic mean. The arithmetic mean is larger for unequal initial temperatures; additional energy remains as sensible heat after irreversible contact. These different final temperatures matter when comparing two ways of using the same finite resources.

In a real engine running at finite heat-transfer rates there are temperature differences between each block and the working fluid. Total entropy then increases. For a specified common final temperature the entropy change of the blocks is fixed by state properties; measuring it indicates the departure from the ideal reversible construction without needing the working-fluid cycle.

Compare direct contact and a reversible engine quantitatively

Take a hot assembly of heat capacity 2.0 kJ/K at 450 K and a cooler assembly of 1.0 kJ/K at 300 K. Solving the log balance gives

\[T_f=(450^2\,300)^{1/3}=393.1\,\mathrm K.\]

The hot assembly releases about \(2(450-393.1)=113.8\,\mathrm{kJ}\) and the cold one receives 93.1 kJ. Their difference gives approximately 20.7 kJ of maximum work. Acting as though the initial temperatures stayed at 450 and 300 K throughout would assign an incorrectly high efficiency to later parts of the transfer.

By direct contact the common temperature would be \((2\times450+300)/3=400\,\mathrm K\). The entropy generated is

\[2\ln(400/450)+\ln(400/300)=0.0521\,\mathrm{kJ/K}.\]

If instead a device delivers a measured 12 kJ of work before the blocks reach a common temperature, energy fixes that temperature as \((1200-12)/3=396\,\mathrm K\). The measured process then generates \(2\ln(396/450)+\ln(396/300)=0.0220\,\mathrm{kJ/K}\), a positive value between the two limiting cases. Entropy generation multiplied by an environmental temperature gives destroyed exergy relative to that environment; comparing the finite-body work outputs also requires acknowledging their different final stored energies.

The geometric-mean result has an informative limiting case. If the cold assembly is so large that \(C_c/C_h\) tends to infinity, its temperature remains effectively fixed, and the engine work reduces to \(C_h[(T_h-T_c)-T_c\ln(T_h/T_c)]\). This is the integral of the reversible work recovered as the finite hot block approaches a constant sink. It is smaller than applying the initial Carnot efficiency to all of the hot block’s released heat.

Which mixture generates the most entropy?

Mix streams of the same incompressible liquid at 370 K and 290 K, at equal pressure, with constant \(c_p=4180\) J/(kg K). The energy balance fixes the outlet temperature. Evaluate the outlet entropy minus the mass-weighted inlet entropy using \(c_p\ln T\).

Which mixture generates the most entropy?. Horizontal axis: Hot-stream mass fraction. Vertical axis: Entropy produced per kg (J/kg K). Data follow the figure.
Either pure stream gives zero entropy production. An equal-mass mixture settles at 330 K and produces about 30.9 J/(kg K). The maximum is near, but not exactly at, equal fractions because temperature appears inside a logarithm.
Read values from the plot
Entropy produced per kg (J/kg K) at selected values of Hot-stream mass fraction.
Hot-stream mass fractionAdiabatic mixing of identical liquid
00
0.24824.064
0.530.935
0.75222.177
10

Download all 251 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Move the two inlet temperatures toward each other and watch entropy production vanish throughout the mixture range.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.