Second Law of Thermodynamics

ChE 621 — Thermodynamics.

Heat engines and statements of the second law

Two horizontal bars, system A hot at the top and system B cold at the bottom, with six numbered interactions between them. One and two are single wavy heat lines, downward and upward respectively, with the word Clausius beside two. Three is an engine fed by work that delivers heat up to A. Four is an engine drawing heat from B that delivers work. Five is an engine taking heat Q sub A from A, delivering work W, and rejecting heat to B. Six is that engine reversed, taking heat from B and work in, and delivering heat to A. Below, the labels Kelvin-Planck and perpetual-motion machines of the second kind name the right-hand group, and a legend identifies wavy lines as heat interactions, straight arrows as work interactions, and lettered circles as heat engines.

Figure 1 Conceivable heat and work interactions between a hot system and a cold system. A wide horizontal bar across the top is labelled “system A — hot” and a matching bar across the bottom is labelled “system B — cold”. Six interactions are numbered from left to right in the space between them. In (1) a wavy line runs from A down to B, so heat passes from the hot system to the cold one. In (2) a wavy line runs from B up to A, so heat passes from the cold system to the hot one with nothing else happening. In (3) a heat engine sits just below A: a straight arrow carries work into the engine from the right, and a wavy line carries heat from the engine up into A. In (4) a heat engine sits just above B: a wavy line carries heat from B up into the engine, and a straight arrow carries work out of the engine to the right. In (5) a heat engine sits between the two: a wavy line labelled \(Q_{A}\) carries heat from A down into it, a straight arrow labelled \(W\) carries work out to the right, and a wavy line carries the remaining heat down into B. In (6) a heat engine again sits between the two, but the directions are reversed: a wavy line carries heat from B up into the engine, a straight arrow carries work into the engine from the right, and a wavy line carries heat from the engine up into A. The typed word “Clausius” stands beside interaction (2), naming the transfer that the Clausius statement forbids. Below the cold bar, and to the right of interaction (4), the typed lines “Kelvin-Planck” and “Perpetual-motion machines of the second kind” name what the right-hand group of interactions would be. A legend gives the three symbols: a wavy line with an arrowhead is a heat interaction, a straight line with an arrowhead is a work interaction, and a circle lettered E is a heat engine.

With the convention \(θ_{A} > θ_{B}\), so that

\[\frac{\mathrm{d}E}{\mathrm{d}θ} > 0\]

the efficiency of the engine of interaction (5) is

\[η = \frac{-W}{Q_{A}} = \frac{Q_{A} + Q_{B}}{Q_{A}} = 1 + \frac{Q_{B}}{Q_{A}}\]

Clausius statement of the second law of thermodynamics

Heat cannot pass spontaneously from a body at a lower temperature to a body at a higher temperature.

Kelvin/Planck statement of the second law of thermodynamics

Any cyclic process in which the net effect is the transfer of energy from a single system and conversion of that energy into work is impossible.

The efficiency must be a function of both temperatures

\(η\) must be a function of both \(θ_{A}\) and \(θ_{B}\).

\[η = f_{2}\left(θ_{A}, θ_{B}\right)\]

Prove this by assuming instead that

\[η = f\left(θ_{A}\right)\]

and using the construct in Figure 2.

A reservoir A across the top, a reservoir B at middle left, and a reservoir C at the bottom. An engine takes heat from A, delivers work W, and rejects heat to B. A second engine is driven by work W supplied to it, takes heat from C, and delivers heat to A. The condition theta sub C less than theta sub B is written to the left of C.

Figure 2 Construct used to rule out an efficiency that depends on one temperature alone. A bar labelled A runs across the top. Below it on the left, an arrow carries heat down from A into a circular engine, a horizontal arrow labelled \(W\) carries work out of that engine to the right, and a further arrow carries heat down from the engine into a bar labelled \(B\). On the right, a second circular engine is driven backwards: an arrow labelled \(W\) carries work into it from the right, an arrow carries heat up into it from a bar labelled \(C\) at the bottom, and an arrow carries heat from it up into A. To the left of the \(C\) bar, and below the \(B\) bar, is the condition \(θ_{C} < θ_{B}\).

Therefore, we have

\[\frac{Q_{B}}{Q_{A}} = f_{2}\left(θ_{A}, θ_{B}\right) = η - 1\]

What form must the efficiency satisfy?

A reservoir A at the top and B at the bottom, with reservoir C between them on the right. On the left a single engine runs from A to B, taking Q sub A, delivering work W, and rejecting Q sub B. On the right two engines run in series through C: the first takes Q prime sub A from A, delivers W sub 1, and rejects Q prime sub C into C; the second takes Q double prime sub C from C, delivers W sub 2, and rejects Q prime sub B to B.

Figure 3 A single engine between A and \(B\) compared with two engines in series through \(C\). A bar labelled A runs across the top and a bar labelled \(B\) across the bottom, with a shorter bar labelled \(C\) in the middle of the right-hand side. On the left, one engine takes heat \(Q_{A}\) down from A, delivers work \(W\) to the right, and rejects heat \(Q_{B}\) down to \(B\). On the right, an upper engine takes heat \(Q'_{A}\) down from A, delivers work \(W_{1}\) to the right, and rejects heat \(Q'_{C}\) down into \(C\); a lower engine then takes heat \(Q''_{C}\) down from \(C\), delivers work \(W_{2}\) to the right, and rejects heat \(Q'_{B}\) down to \(B\).

Using the construct in Figure 3:

\[Q'_{A} = Q_{A}\]
\[Q'_{B} = Q_{B}\]
\[Q'_{C} = - Q''_{C}\]
\[W = W_{1} + W_{2}\]
\[f_{2}\left(θ_{A}, θ_{B}\right) = \frac{Q_{B}}{Q_{A}} = - \left(\frac{Q'_{B}}{Q''_{C}}\right)\cdot \left(\frac{Q'_{C}}{Q'_{A}}\right) = - f_{2}\left(θ_{A}, θ_{C}\right)\cdot f_{2}\left(θ_{C}, θ_{B}\right)\]

It follows that

\[f_{2}\left(θ_{A}, θ_{B}\right) = - \frac{f_{3}\left(θ_{A}\right)}{f_{3}\left(θ_{B}\right)} \quad\text{or}\quad - \frac{f_{4}\left(θ_{B}\right)}{f_{4}\left(θ_{A}\right)}\]

If we adopt the latter:

\[\frac{Q_{B}}{Q_{A}} = - \frac{f_{4}\left(θ_{B}\right)}{f_{4}\left(θ_{A}\right)} = η - 1\]
\[\implies η = \frac{f_{4}\left(θ_{A}\right) - f_{4}\left(θ_{B}\right)}{f_{4}\left(θ_{A}\right)}\]

Use an ideal gas (\(PV =\) nRT) as the working fluid and a Carnot cycle. We get

\[η = η_{\text{Carnot}} = \frac{T_{A} - T_{B}}{T_{A}}\]

Theorem of Clausius

Given any reversible process in which the temperature changes in any prescribed manner, it is always possible to find a reversible zigzag process consisting of adiabatic – isothermal – adiabatic steps such that the heat interaction in the isothermal step is equal to the heat interaction in the original process.

Illustration (Figure 4): consider only \(PV\) work. \(W_{if}\) along an arbitrary reversible path is the area under the path \(i \to f\), and the heat interaction along this path is \(Q_{if} = ΔE_{if} - W_{if}\). We can draw two adiabats at points \(i\) and \(f\). From basic calculus, we know that it is always possible to find an isothermal path intersecting the two adiabats at points \(g\) and \(h\) such that the work \(W_{ighf} = W_{if}\), that is, the first hatched area equals the second. Since the end points are the same, \(ΔE_{ighf} = ΔE_{if}\). We therefore have the Clausius theorem: \(Q_{if} = Q_{ighf} = Q_{gh}\), because \(i \to g\) and \(h \to f\) are adiabats.

A pressure-volume diagram with four marked states. A heavy wandering curve falls from i at the upper left to f at the lower right. One adiabat passes through i and g, another through h and f, and a hyperbolic isotherm runs from g to h, so the zigzag i to g to h to f descends one adiabat, crosses along the isotherm, and descends the other. Two areas between the path and the zigzag are hatched in opposite directions, one where the path runs above and one where it runs below, and the isotherm is placed so the two areas are equal.

Figure 4 The reversible zigzag that replaces an arbitrary reversible path. Pressure is on the vertical axis and volume on the horizontal axis. Four states are marked with dots. A heavy curve falls from \(i\) at the upper left to \(f\) at the lower right: this is the arbitrary reversible path, and it wanders, rising above the zigzag over the first third of its length and sagging below it over the rest. Two lighter curves are the adiabats. The left one passes through \(i\) and through \(g\) below it; the right one enters at the top of the frame and passes through \(h\) and then \(f\). A third lighter curve is the isotherm, a hyperbola, labelled “isothermal path” by a leader line; it runs from \(g\) across to \(h\), so the zigzag \(i \to g \to h \to f\) descends the left adiabat, crosses along the isotherm, and descends the right adiabat. Two areas lie between the path and the zigzag and are hatched in opposite directions: the first, left of the point where the two cross, is the area by which the path runs above the zigzag, and the second, right of that point, is the area by which it runs below. The isotherm is placed so that the two are equal.

Entropy

For an arbitrary reversible, cyclic process, for example ABCDA (Figure 5), we want to evaluate the contour integral \(\oint \frac{δQ}{T}\) around the closed cycle. To do that, we divide the cyclic process into many small segments by drawing adiabats that intercept and demarcate the terminal points of the segments. For example, the adiabat \(mn\) marks \(s\) and \(u\) on the closed curve. We then draw isothermal paths according to the theorem of Clausius that intercept the adiabats and have the same heat interactions as the path segment on the original cyclic process. For example, \(op\) is such an isothermal path, representing the interactions with some heat reservoir at \(T_{B}\); \(op\), as well as rops, has the same heat interactions as \(rs\). Now consider the mini Carnot cycle rops-unwv: it has the same heat interactions as the original system during \(rs\) and \(uv\). Therefore

A pressure-volume diagram with a heavy closed cycle marked A at its leftmost point, B at the top, C at its rightmost point, and D at the bottom. Seven falling adiabats cut the curve and extend past it, and between each neighbouring pair runs a hyperbolic isotherm drawn through the middle of the arc it replaces, so that each one cuts the curve and closes off a mini Carnot cycle. One pair carries the lettering: the adiabat labelled m at the top and n at the bottom cuts the curve at s and u. An isotherm from o to p crosses the arc r to s at t, and an isotherm from w to n crosses the arc u to v at q.

Figure 5 A reversible cycle divided into mini Carnot cycles by a family of adiabats. Pressure is on the vertical axis and volume on the horizontal axis. A heavy closed curve carries the four marked states of the cycle: A at its leftmost point, \(B\) at the top, \(C\) at its rightmost point, and \(D\) at the bottom. A family of seven adiabats, each a falling curve of \(PV^{γ}\) constant, cuts across the closed curve and extends a little beyond it at both ends. Between each neighbouring pair of adiabats runs an isotherm, a hyperbola of \(PV\) constant, drawn through the middle of the arc it replaces so that it cuts the closed curve there, and the small region each one closes off against the two adiabats is one of the mini Carnot cycles. One pair of adiabats carries the lettering. The right-hand one of that pair is labelled \(m\) at its upper end and \(n\) at its lower end, and it cuts the closed curve at \(s\) on the upper arc and \(u\) on the lower arc; the adiabat to its left cuts the curve at \(r\) above and \(v\) below. The isotherm from \(o\), on the left-hand adiabat above the curve, to \(p\), on the \(mn\) adiabat inside it, crosses the arc from \(r\) to \(s\) at \(t\). Below, the isotherm from \(w\), on the left-hand adiabat inside the curve, to \(n\), on the \(mn\) adiabat below it, crosses the arc from \(u\) to \(v\) at \(q\).

\[η = \frac{Q_{A} + Q_{B}}{Q_{A}} = 1 + \frac{Q_{B}}{Q_{A}} = 1 - \frac{T_{B}}{T_{A}}\]
\[\frac{Q_{A}}{T_{A}} + \frac{Q_{B}}{T_{B}} = 0\]

This implies a state function

\[\mathrm{d}S = \frac{δQ}{T}\]

Example 4.3

Problem

Prove that for an adiabatic process between defined states I and II of a closed system, the entropy change of the system must be equal to or greater than zero.

Proof. Consider a reversible process II → I, during which the heat interactions occur as part of an isothermal step, following the theorem of Clausius. The construction is shown in Figure 6.

States I and II side by side. An upper curved arrow from I to II is labelled irreversible and carries the line delta S sub 1, Q sub 1 equal to zero, W sub 1. A lower curved arrow from II back to I is labelled reversible and carries the line delta S sub 2, Q sub 2, W sub 2.

Figure 6 The adiabatic path from I to II and the reversible return. State I is at the left and state II at the right. A curved arrow along the top runs from I to II and is labelled “irrev”, with its three quantities written above it on one line: \(ΔS_{1}\), \(Q_{1} = 0\) and \(W_{1}\). A curved arrow along the bottom runs from II back to I and is labelled “rev”, with its quantities likewise written below it: \(ΔS_{2}\), \(Q_{2}\) and \(W_{2}\).

\[ΔU = Q_{2} + W_{1} + W_{2} = 0\]
\[\implies Q_{2} = - \left(W_{1} + W_{2}\right)\]

We can prove \(Q_2 \le 0\) by contradiction:

\[Q_{2} = - \left(W_{1} + W_{2}\right) > 0\]

would violate the Kelvin-Planck statement of the second law (i.e., a perpetual-motion machine of the second kind, Figure 7).

An arrow labelled Q carries heat down into a plain rectangular box, and one arrow leaves the box to the right carrying work W equal to minus the sum of W sub 1 and W sub 2. The box exchanges heat with a single reservoir only.

Figure 7 The device forbidden by the Kelvin-Planck statement. An arrow labelled \(Q\) carries heat down into a plain rectangular box, and a single arrow leaves the box to the right carrying work \(W = - \left(W_{1} + W_{2}\right)\). The box exchanges heat with one reservoir only.

Therefore

\[Q_{2} = - \left(W_{1} + W_{2}\right) \le 0\]
\[\implies ΔS_{2} = - \frac{Q_{2}}{T} \le 0\]

Since

\[ΔS = ΔS_{1} + ΔS_{2} = 0\]

it follows that

\[ΔS_{1} = - ΔS_{2} \ge 0\]

The second law

  • \(\mathrm{d}S \ge 0\) for an isolated system

  • \(\mathrm{d}S = 0\) for a reversible process

  • \(\mathrm{d}S > 0\) for an irreversible process

Isolated systems maximize their entropy, as shown in Example 4.3 above. Note that the second law applies only to isolated systems. Practically, we can always apply the second law to the universe, since the universe is by definition an isolated system:

\[\mathrm{d}S_{\text{univ}} = \mathrm{d}S_{\text{sys}} + \mathrm{d}S_{\text{env}} \ge 0\]

The inequality holds for all real processes, while the equality is a limiting case of idealized reversible processes.

Entropy as a postulate

Alternatively, similar to the first law, we could postulate the existence of a state function called entropy that determines whether state B is adiabatically accessible from state A, that is, replacing Postulate II.

Consider Joule’s experiments: mechanical work is converted to internal energy and the system temperature rises. We however never observe the opposite: paddles turning to raise the weight with \(T\) decreasing, even though the first law is valid for both processes.

Adiabatic accessibility

There is a missing law and a “natural” order to the states of the system, such that it is impossible for a system to proceed from some states to others within an adiabatic enclosure.

A closed vessel holding a paddle wheel: a shaft carrying three two-bladed paddles, with an open circular arrow at its inboard end for the direction of rotation. The shaft leaves through the right-hand wall, wraps over a pulley, and a cord from the pulley carries a weight m. A dashed vertical line runs between the vessel and the pulley. A dashed level line at the weight is labelled h sub A and the hatched floor line is labelled h sub B. Below the vessel is the condition T sub B greater than T sub A.

Figure 8 Joule’s experiment. A closed rectangular vessel on the left holds a paddle wheel: a horizontal shaft carrying three paddles, each a pair of blades set one above the shaft and one below it. At the inboard end of the shaft an open circular arrow gives the sense in which it turns. The shaft passes out through the right-hand wall of the vessel and wraps over a pulley just beyond it, and a cord leaves the pulley and hangs down to a block labelled \(m\). A dashed vertical line runs the height of the figure between the vessel and the pulley, clear of both. A dashed horizontal line runs from the block to the right, where it is labelled \(h_{A}\), marking the height of the weight in the initial state. A hatched horizontal line across the bottom of the figure is labelled \(h_{B}\), the height in the final state. The condition \(T_{B} > T_{A}\) is written below the vessel: the fluid is hotter after the weight has fallen.

Postulate

There is a state function \(S\left(U, x\right)\) that determines whether state \(B\) is adiabatically accessible from state A. \(S\) is a monotonically increasing function of \(U\):

\[\left(\frac{\partial S}{\partial U}\right)_{\vec{x}} > 0\]

In fact, this is the thermodynamic definition of temperature:

\[T = \left(\frac{\partial U}{\partial S}\right)_{\vec{x}} > 0\]

Expanding \(S\left(U, x\right)\) in its independent variables:

\[\mathrm{d}S = \left(\frac{\partial S}{\partial U}\right)_{\vec{x}} \mathrm{d}U + \sum _{i} \left(\frac{\partial S}{\partial x_{i}}\right)_{U,\, x_{j}} \mathrm{d}x_{i}\]

For a reversible process:

\[\mathrm{d}U = δQ_{\text{rev}} + \sum _{i} F_{i} \mathrm{d}x_{i}\]

Substitution into \(\mathrm{d}S\) gives:

\[\mathrm{d}S = \left(\frac{\partial S}{\partial U}\right)_{\vec{x}} δQ_{\text{rev}} + \sum _{i} \left[\left(\frac{\partial S}{\partial x_{i}}\right)_{U,\, x_{j}} + \left(\frac{\partial S}{\partial U}\right)_{\vec{x}} \cdot F_{i}\right] \cdot \mathrm{d}x_{i}\]

For an adiabatic reversible process, \(\mathrm{d}S = 0\) and \(δQ_{\text{rev}} = 0\). Therefore

\[\left(\frac{\partial S}{\partial x_{i}}\right)_{U,\, x_{j}} + \left(\frac{\partial S}{\partial U}\right)_{\vec{x}} \cdot F_{i} = 0\]

We derived this equality using an adiabatic reversible process A → B, but since all quantities in the equation are state functions, this equality will hold for any reversible process connecting A → B. Therefore

\[\mathrm{d}S = \left(\frac{\partial S}{\partial U}\right)_{\vec{x}} \cdot δQ_{\text{rev}} \equiv \frac{δQ_{\text{rev}}}{T}\]

Calculating entropy change, and the combined first and second laws

Since entropy is a state function, we shall find a convenient reversible process connecting the end states of interest.

\[\mathrm{d}U = δQ_{\text{rev}} + δW_{\text{rev}} = δQ_{\text{rev}} - P \mathrm{d}V\]
\[\mathrm{d}S = \frac{δQ_{\text{rev}}}{T} = \frac{\mathrm{d}U}{T} + \left(\frac{P}{T}\right) \mathrm{d}V\]

\(T \mathrm{d}S\) equals \(δQ_{\text{rev}}\) but not \(δQ_{\text{irrev}}\).

Example 4.2

Problem

A bar of aluminum is placed in a large bath of ice and water (Figure 9). Current is passed through the bar until, at steady state, there is a power dissipation of 1000 W. A thermocouple on the surface of the aluminum reads 640 K. Film boiling is occurring at the interface with a subsequent, noisy collapse of the bubbles. What is the entropy change of the bar, water, and universe during 2 min of operation for this highly irreversible operation? Assume that there is ice remaining at the end of the 2 min.

An open rectangular tank drawn in oblique view. The water surface is drawn as waves, with blocks of ice floating half in and half out of it, and vapour bubbles rising from the bar below. The bar is a hatched slab near the bottom, labelled bar. A box above the tank reading 1000 watts sends two leads down through the water that wrap right round the bar. An arrow from the bar points to a box reading 640 K and an arrow from the water points to a box reading 0 degrees Celsius.

Figure 9 The aluminium bar in the bath of ice and water. An open rectangular tank is drawn in a shallow oblique view. The water surface is a band of waves across the tank, and blocks of ice float in it, each sitting with part of its body above the waterline and the rest below. Vapour bubbles rise through the water from the bar, which is the film boiling the problem describes. The bar is a slab lying near the bottom, drawn as a solid with its top face hatched and labelled “bar” by a leader line. Above the tank a box reads 1000 W, and two leads run down from it, through the water, and wrap right round the bar, the hidden part of each wrap drawn dashed. An arrow leaves the surface of the bar for a box reading 640 K, the thermocouple reading, and a second arrow leaves the water for a box reading 0 °C, the temperature of the bath.

For the bar:

There is no change in properties, so

\[ΔS = 0\]

For the water and ice, there is no \(p \mathrm{d} V\) or electric work:

so that

Imagine an alternative process that melts the same amount of ice reversibly by immersing the system in a heat batch maintained at 0 °C (Figure 10), causing the ice / water mixture to reach the same end state.

A large box labelled heat bath at 0 degrees Celsius containing a smaller box labelled water plus ice, with an arrow labelled delta Q carrying heat from the bath into the smaller box.

Figure 10 A reversible process that effects the same changes. A large box is labelled “heat bath” at 0 °C. Inside it, near the bottom, a smaller box is labelled “water + ice”. An arrow labelled \(δQ\) points from the bath into the smaller box, so heat passes reversibly from the bath to the water and ice.

Carnot cycle

Use the entropy balance to derive the efficiency of a reversible Carnot engine.

\[ΔE = Q_{\mathrm{H}} + Q_{\mathrm{C}} + W = 0\]
\[ΔS_{\text{sys}} + ΔS_{\mathrm{H}} + ΔS_{\mathrm{C}} \ge 0\]
\[\implies 0 + \left(- \frac{Q_{\mathrm{H}}}{T_{\mathrm{H}}}\right) + \left(- \frac{Q_{\mathrm{C}}}{T_{\mathrm{C}}}\right) \ge 0\]
\[\implies \frac{Q_{\mathrm{C}}}{Q_{\mathrm{H}}} \le - \frac{T_{\mathrm{C}}}{T_{\mathrm{H}}}\]
\[\therefore η \equiv \frac{-W}{Q_{\mathrm{H}}} = 1 + \frac{Q_{\mathrm{C}}}{Q_{\mathrm{H}}} \le 1 - \frac{T_{\mathrm{C}}}{T_{\mathrm{H}}}\]
A box labelled T sub H at the top and a box labelled T sub C at the bottom, with a circle labelled system between them. Heat Q dot sub H flows down into the system, work W dot leaves horizontally to the right, and heat Q dot sub C flows down into the cold reservoir.

Figure 11 The Carnot engine. A box at the top is labelled \(T_{\mathrm{H}}\) and a box at the bottom is labelled \(T_{\mathrm{C}}\). Between them sits a circle labelled “system”. An arrow labelled \(\dot{Q}_{\mathrm{H}}\) carries heat down from the hot reservoir into the system, a horizontal arrow labelled \(\dot{W}\) leaves the system to the right, and an arrow labelled \(\dot{Q}_{\mathrm{C}}\) carries heat down from the system into the cold reservoir.

Second law for open systems: the entropy balance

A solid rectangular boundary labelled sigma enclosing a dashed region labelled omega. A duct flush with the top edge at the upper left carries entropy S hat sub in into the region, and a duct flush with the bottom edge at the lower right carries S hat sub out away. Each is open at both ends, and each is matched by a dashed box of the same size in the nearest corner of omega, marking the element of mass. Double-headed vertical arrows cross the boundary at station 1 on the top edge, where the boundary temperature is T sub sigma one and the environment temperature is T sub env one, and at station 2 on the bottom edge.

Figure 12 Open system for the entropy balance. A solid rectangle is the system boundary \(σ\), labelled at its upper right. A dashed rectangle a little inside it encloses the region Ω. A short duct enters at the upper left, flush with the top edge and open at both ends: the wall it shares with the boundary is not drawn, so it opens straight into the system, and its mouth is open to the surroundings. An arrow labelled \(\hat{S}_{\text{in}}\) carries entropy in with the incoming mass, and a dashed box of the same size as the duct, in the upper left corner of Ω, marks the element of mass \(\mathrm{d}m_{\text{in}}\). A second duct leaves at the lower right, flush with the bottom edge and open in the same way, with an arrow labelled \(\hat{S}_{\text{out}}\) carrying entropy out and a matching dashed box in the lower right corner of Ω marking \(\mathrm{d}m_{\text{out}}\). At station 1, on the top edge, a double-headed vertical arrow crosses the boundary: the boundary temperature there is \(T_{σ,1}\) and the temperature of the environment further out is \(T_{\text{env},1}\). At station 2, on the bottom edge, a second double-headed vertical arrow crosses the boundary in the same way.

State 1, at time \(t_{1}\):

\[S_{1} = S_{Ω,1} + \hat{S}_{\text{in}} \cdot \mathrm{d}m_{\text{in}}\]

State 2, at time \(t_{2}\):

\[S_{2} = S_{Ω,2} + \hat{S}_{\text{out}} \cdot \mathrm{d}m_{\text{out}}\]

Subtracting,

\[\mathrm{d}S_{\text{univ}} = \mathrm{d}S_{\text{sys}} + \mathrm{d}S_{\text{env}} \ge 0\]

\(T_{σ,i}\) is the temperature at the boundary, which is often unknown. Instead, the temperature of the environment, \(T_{\text{env}}\), away from the boundary may be known.

Adding and subtracting the same sum over the environment temperatures:

which rearranges to

The last sum is always positive because the two cases go together:

  • If \(T_{\text{env},j} > T_{σ,j}\), then we must have \(δQ_{σ,j} > 0\);

  • If \(T_{\text{env},j} < T_{σ,j}\), then we must have \(δQ_{σ,j} < 0\).

Writing that sum as the entropy generated, which is therefore always greater than or equal to zero:

and in rate form,

\[\dot{S}_{Ω} = \sum \frac{\dot{Q}_{σ,j}}{T_{\text{env},j}} + \sum ξ_{i} \cdot \hat{S}_{i} \cdot \dot{m}_{i} + \dot{S}_{\text{gen}}\]

For a reversible adiabatic system at steady state,

\[\hat{S}_{\text{in}} = \hat{S}_{\text{out}} \left(\text{ ``isentropic'' }\right)\]

Example: minimum work to compress an ideal gas

Problem

Compute the minimum work required to compress an ideal gas adiabatically in a compressor, given \(P_{1}, T_{1}\), and \(P_{2}\).

A circle on a wedge-shaped base representing a compressor. An arrow enters from the left labelled P sub 1, T sub 1 and n dot sub 1, and a horizontal arrow leaves to the right labelled P sub 2, T sub 2 and n dot sub 2.

Figure 13 The compressor. A circle mounted on a wedge-shaped base is the compressor. An arrow entering from the left carries the feed at \(P_{1}, T_{1}\) and molar flow \(\dot{n}_{1}\). A horizontal arrow leaving to the right carries the discharge at \(P_{2}, T_{2}\) and molar flow \(\dot{n}_{2}\).

\[\dot{n}_{1} = \dot{n}_{2} = \dot{n}, \dot{m}_{1} = \dot{m}_{2} = \dot{m}\]

First law at steady state:

\[\therefore \dot{W} = \dot{m}\left(\hat{H}_{2} - \hat{H}_{1}\right) = \dot{m} \hat{C}_{P}\left(T_{2} - T_{1}\right)\]

Entropy balance for a reversible compressor:

\[\therefore \hat{S}_{2} = \hat{S}_{1}, \quad Δ\tilde{S} = 0 = \tilde{C}_{P} \ln \left(\frac{T_{2}}{T_{1}}\right) - R \ln \left(\frac{P_{2}}{P_{1}}\right)\]

which follows from integrating \(\mathrm{d}\tilde{S} = \frac{\mathrm{d}\tilde{U}}{T} + \left(\frac{P}{T}\right) \mathrm{d}\tilde{V}\). Hence

\[T_{2} = T_{1} \left(\frac{P_{2}}{P_{1}}\right)^{R/C_{P}}\]
\[\therefore \dot{W} = - \dot{n} \tilde{C}_{P} T_{1} \left[1 - \left(\frac{P_{2}}{P_{1}}\right)^{\left(γ- 1\right)/γ}\right]\]

where \(γ = \frac{C_{P}}{C_{V}}\).