Physics:Entropy production

From HandWiki
Short description: Development of entropy in a thermodynamic system

Entropy production (or generation) is the amount of entropy which is produced during heat process to evaluate the efficiency of the process.

Rudolf Clausius

Short history

Entropy is produced in irreversible processes. The importance of avoiding irreversible processes (hence reducing the entropy production) was recognized as early as 1824 by Carnot.[1] In 1865 Rudolf Clausius expanded his previous work from 1854[2] on the concept of "unkompensierte Verwandlungen" (uncompensated transformations), which, in our modern nomenclature, would be called the entropy production. In the same article in which he introduced the name entropy,[3] Clausius gives the expression for the entropy production for a cyclical process in a closed system, which he denotes by N, in equation (71) which reads

[math]\displaystyle{ N=S-S_0-\int\frac{dQ}{T}. }[/math]

Here S is the entropy in the final state and S0 the entropy in the initial state; S0-S is the entropy difference for the backwards part of the process. The integral is to be taken from the initial state to the final state, giving the entropy difference for the forwards part of the process. From the context, it is clear that N = 0 if the process is reversible and N > 0 in case of an irreversible process.

First and second law

Fig. 1 General representation of an inhomogeneous system that consists of a number of subsystems. The interaction of the system with the surroundings is through exchange of heat and other forms of energy, flow of matter, and changes of shape. The internal interactions between the various subsystems are of a similar nature and lead to entropy production.

The laws of thermodynamics system apply to well-defined systems. Fig. 1 is a general representation of a thermodynamic system. We consider systems which, in general, are inhomogeneous. Heat and mass are transferred across the boundaries (nonadiabatic, open systems), and the boundaries are moving (usually through pistons). In our formulation we assume that heat and mass transfer and volume changes take place only separately at well-defined regions of the system boundary. The expression, given here, are not the most general formulations of the first and second law. E.g. kinetic energy and potential energy terms are missing and exchange of matter by diffusion is excluded.

The rate of entropy production, denoted by [math]\displaystyle{ \dot S_\text{i} }[/math], is a key element of the second law of thermodynamics for open inhomogeneous systems which reads

[math]\displaystyle{ \frac{\mathrm{d}S}{\mathrm{d}t} = \sum_k \frac {\dot Q_k}{T_k} + \sum_k \dot S_k + \sum_k \dot S_{\text{i}k} \text{ with }\dot S_{\text{i}k} \geq 0. }[/math]

Here S is the entropy of the system; Tk is the temperature at which the heat enters the system at heat flow rate [math]\displaystyle{ \dot Q_k }[/math]; [math]\displaystyle{ \dot S_k = \dot n_k S_{\text{m}k} = \dot m_k s_k }[/math] represents the entropy flow into the system at position k, due to matter flowing into the system ([math]\displaystyle{ \dot n_k, \dot m_k }[/math] are the molar flow rate and mass flow rate and Smk and sk are the molar entropy (i.e. entropy per unit amount of substance) and specific entropy (i.e. entropy per unit mass) of the matter, flowing into the system, respectively); [math]\displaystyle{ \dot S_{\text{i}k} }[/math] represents the entropy production rates due to internal processes. The subscript 'i' in [math]\displaystyle{ \dot S_{\text{i}k} }[/math] refers to the fact that the entropy is produced due to irreversible processes. The entropy-production rate of every process in nature is always positive or zero. This is an essential aspect of the second law.

The Σ's indicate the algebraic sum of the respective contributions if there are more heat flows, matter flows, and internal processes.

In order to demonstrate the impact of the second law, and the role of entropy production, it has to be combined with the first law which reads

[math]\displaystyle{ \frac{\mathrm{d}U}{\mathrm{d}t} = \sum_k \dot Q_k + \sum_k \dot H_k - \sum_k p_k\frac{\mathrm{d}V_k}{\mathrm{d}t}+P, }[/math]

with U the internal energy of the system; [math]\displaystyle{ \dot H_k= \dot n_k H_{\text{m}k} = \dot m_k h_k }[/math] the enthalpy flows into the system due to the matter that flows into the system (Hmk its molar enthalpy, hk the specific enthalpy (i.e. enthalpy per unit mass)), and dVk/dt are the rates of change of the volume of the system due to a moving boundary at position k while pk is the pressure behind that boundary; P represents all other forms of power application (such as electrical).

The first and second law have been formulated in terms of time derivatives of U and S rather than in terms of total differentials dU and dS where it is tacitly assumed that dt > 0. So, the formulation in terms of time derivatives is more elegant. An even bigger advantage of this formulation is, however, that it emphasizes that heat flow rate and power are the basic thermodynamic properties and that heat and work are derived quantities being the time integrals of the heat flow rate and the power respectively.

Examples of irreversible processes

Entropy is produced in irreversible processes. Some important irreversible processes are:

  • heat flow through a thermal resistance
  • fluid flow through a flow resistance such as in the Joule expansion or the Joule–Thomson effect
  • heat transfer
  • Joule heating
  • friction between solid surfaces
  • fluid viscosity within a system.

The expression for the rate of entropy production in the first two cases will be derived in separate sections.

Fig.2 a: Schematic diagram of a heat engine. A heating power [math]\displaystyle{ \dot Q_\text{H} }[/math] enters the engine at the high temperature TH, and [math]\displaystyle{ \dot Q_\text{a} }[/math] is released at ambient temperature Ta. A power P is produced and the entropy production rate is [math]\displaystyle{ \dot S_\text{i} }[/math].
b: Schematic diagram of a refrigerator. [math]\displaystyle{ \dot Q_\text{L} }[/math] is the cooling power at the low temperature TL, and [math]\displaystyle{ \dot Q_\text{a} }[/math] is released at ambient temperature. The power P is supplied and [math]\displaystyle{ \dot S_\text{i} }[/math] is the entropy production rate. The arrows define the positive directions of the flows of heat and power in the two cases. They are positive under normal operating conditions.

Performance of heat engines and refrigerators

Most heat engines and refrigerators are closed cyclic machines.[4] In the steady state the internal energy and the entropy of the machines after one cycle are the same as at the start of the cycle. Hence, on average, dU/dt = 0 and dS/dt = 0 since U and S are functions of state. Furthermore they are closed systems ([math]\displaystyle{ \dot n = 0 }[/math]) and the volume is fixed (dV/dt = 0). This leads to a significant simplification of the first and second law:

[math]\displaystyle{ 0 =\sum_k \dot Q_k +P }[/math]


[math]\displaystyle{ 0 =\sum_k \frac {\dot Q_k}{T_k} + \dot S_\text{i}. }[/math]

The summation is over the (two) places where heat is added or removed.


For a heat engine (Fig. 2a) the first and second law obtain the form

[math]\displaystyle{ 0 =\dot Q_\text{H} - \dot Q_\text{a} -P }[/math]


[math]\displaystyle{ 0 =\frac {\dot Q_\text{H}}{T_\text{H}} - \frac {\dot Q_\text{a}}{T_\text{a}}+ \dot S_\text{i}. }[/math]

Here [math]\displaystyle{ \dot Q_\text{H} }[/math] is the heat supplied at the high temperature TH, [math]\displaystyle{ \dot Q_\text{a} }[/math] is the heat removed at ambient temperature Ta, and P is the power delivered by the engine. Eliminating [math]\displaystyle{ \dot Q_\text{a} }[/math] gives

[math]\displaystyle{ P = \frac{T_\text{H}-T_\text{a}}{T_\text{H}}\dot Q_\text{H} - T_\text{a} \dot S_\text{i}. }[/math]

The efficiency is defined by

[math]\displaystyle{ \eta = \frac{P}{\dot Q_\text{H}}. }[/math]

If [math]\displaystyle{ \dot S_\text{i}=0 }[/math] the performance of the engine is at its maximum and the efficiency is equal to the Carnot efficiency

[math]\displaystyle{ \eta_\text{C} = \frac{T_\text{H}-T_\text{a}}{T_\text{H}}. }[/math]


For refrigerators (Fig. 2b) holds

[math]\displaystyle{ 0 =\dot Q_\text{L} - \dot Q_\text{a} +P }[/math]


[math]\displaystyle{ 0 =\frac {\dot Q_\text{L}}{T_\text{L}} - \frac {\dot Q_\text{a}}{T_\text{a}}+ \dot S_\text{i}. }[/math]

Here P is the power, supplied to produce the cooling power [math]\displaystyle{ \dot Q_\text{L} }[/math] at the low temperature TL. Eliminating [math]\displaystyle{ \dot Q_\text{a} }[/math] now gives

[math]\displaystyle{ \dot Q_\text{L}=\frac{T_\text{L}}{T_\text{a}-T_\text{L}}(P-T_\text{a}\dot S_\text{i}) . }[/math]

The coefficient of performance of refrigerators is defined by

[math]\displaystyle{ \xi=\frac{\dot Q_\text{L}}{P}. }[/math]

If [math]\displaystyle{ \dot S_\text{i}=0 }[/math] the performance of the cooler is at its maximum. The COP is then given by the Carnot coefficient of performance

[math]\displaystyle{ \xi_\text{C}=\frac{T_\text{L}}{T_\text{a}-T_\text{L}}. }[/math]

Power dissipation

In both cases we find a contribution [math]\displaystyle{ T_\text{a} \dot S_\text{i} }[/math] which reduces the system performance. This product of ambient temperature and the (average) entropy production rate [math]\displaystyle{ P_\text{diss}=T_\text{a} \dot S_\text{i} }[/math] is called the dissipated power.

Equivalence with other formulations

It is interesting to investigate how the above mathematical formulation of the second law relates with other well-known formulations of the second law.

We first look at a heat engine, assuming that [math]\displaystyle{ \dot Q_\text{a}=0 }[/math]. In other words: the heat flow rate [math]\displaystyle{ \dot Q_\text{H} }[/math] is completely converted into power. In this case the second law would reduce to

[math]\displaystyle{ 0=\frac{\dot Q_\text{H}}{T_\text{H}}+\dot S_\text{i}. }[/math]

Since [math]\displaystyle{ \dot Q_\text{H}\ge 0 }[/math] and [math]\displaystyle{ T_\text{H}\gt 0 }[/math] this would result in [math]\displaystyle{ \dot S_\text{i} \leq 0 }[/math] which violates the condition that the entropy production is always positive. Hence: No process is possible in which the sole result is the absorption of heat from a reservoir and its complete conversion into work. This is the Kelvin statement of the second law.

Now look at the case of the refrigerator and assume that the input power is zero. In other words: heat is transported from a low temperature to a high temperature without doing work on the system. The first law with P = 0 would give

[math]\displaystyle{ \dot Q_\text{L}=\dot Q_\text{a} }[/math]

and the second law then yields

[math]\displaystyle{ 0=\frac{\dot Q_\text{L}}{T_\text{L}}-\frac{\dot Q_\text{L}}{T_\text{a}}+\dot S_\text{i} }[/math]


[math]\displaystyle{ \dot S_\text{i} =\dot Q_\text{L}\left(\frac{1}{T_\text{a}}-\frac{1}{T_\text{L}}\right). }[/math]

Since [math]\displaystyle{ \dot Q_\text{L}\ge 0 }[/math] and [math]\displaystyle{ T_\text{a}\gt T_\text{L} }[/math] this would result in [math]\displaystyle{ \dot S_\text{i}\leq 0 }[/math] which again violates the condition that the entropy production is always positive. Hence: No process is possible whose sole result is the transfer of heat from a body of lower temperature to a body of higher temperature. This is the Clausius statement of the second law.

Expressions for the entropy production

Heat flow

In case of a heat flow rate [math]\displaystyle{ \dot Q }[/math] from T1 to T2 (with [math]\displaystyle{ T_1 \geq T_2 }[/math]) the rate of entropy production is given by

[math]\displaystyle{ \dot S_\text{i}=\dot Q\left(\frac{1}{T_2}-\frac{1}{T_1}\right). }[/math]

If the heat flow is in a bar with length L, cross-sectional area A, and thermal conductivity κ, and the temperature difference is small

[math]\displaystyle{ \dot Q=\kappa \frac{A}{L}(T_1-T_2) }[/math]

the entropy production rate is

[math]\displaystyle{ \dot S_\text{i}=\kappa \frac{A}{L}\frac{(T_1-T_2)^2}{T_1 T_2}. }[/math]

Flow of mass

In case of a volume flow rate [math]\displaystyle{ \dot V }[/math] from a pressure p1 to p2

[math]\displaystyle{ \dot S_\text{i}=-\int _{p_1} ^{p_2} \frac{\dot V}{T} \mathrm{d}p. }[/math]

For small pressure drops and defining the flow conductance C by [math]\displaystyle{ \dot V=C(p_1-p_2) }[/math] we get

[math]\displaystyle{ \dot S_\text{i} = C\frac{(p_1 - p_2)^2}{T}. }[/math]

The dependences of [math]\displaystyle{ \dot S_\text{i} }[/math] on T1T2 and on p1p2 are quadratic.

This is typical for expressions of the entropy production rates in general. They guarantee that the entropy production is positive.

Entropy of mixing

In this Section we will calculate the entropy of mixing when two ideal gases diffuse into each other. Consider a volume Vt divided in two volumes Va and Vb so that Vt = Va + Vb. The volume Va contains amount of substance na of an ideal gas a and Vb contains amount of substance nb of gas b. The total amount of substance is nt = na + nb. The temperature and pressure in the two volumes is the same. The entropy at the start is given by

[math]\displaystyle{ S_\text{t1}=S_\text{a1}+S_\text{b1}. }[/math]

When the division between the two gases is removed the two gases expand, comparable to a Joule–Thomson expansion. In the final state the temperature is the same as initially but the two gases now both take the volume Vt. The relation of the entropy of an amount of substance n of an ideal gas is

[math]\displaystyle{ S=nC_\text{V}\ln\frac{T}{T_0}+nR\ln\frac{V}{V_0} }[/math]

where CV is the molar heat capacity at constant volume and R is the molar gas constant. The system is an adiabatic closed system, so the entropy increase during the mixing of the two gases is equal to the entropy production. It is given by

[math]\displaystyle{ S_\Delta=S_\text{t2}-S_\text{t1}. }[/math]

As the initial and final temperature are the same, the temperature terms cancel, leaving only the volume terms. The result is

[math]\displaystyle{ S_\Delta=n_\text{a}R\ln\frac{V_\text{t}}{V_\text{a}}+n_\text{b}R\ln\frac{V_\text{t}}{V_\text{b}}. }[/math]

Introducing the concentration x = na/nt = Va/Vt we arrive at the well-known expression

[math]\displaystyle{ S_\Delta=-n_\text{t}R[x\ln x+(1-x)\ln(1-x)]. }[/math]

Joule expansion

The Joule expansion is similar to the mixing described above. It takes place in an adiabatic system consisting of a gas and two rigid vessels a and b of equal volume, connected by a valve. Initially, the valve is closed. Vessel a contains the gas while the other vessel b is empty. When the valve is opened, the gas flows from vessel a into b until the pressures in the two vessels are equal. The volume, taken by the gas, is doubled while the internal energy of the system is constant (adiabatic and no work done). Assuming that the gas is ideal, the molar internal energy is given by Um = CVT. As CV is constant, constant U means constant T. The molar entropy of an ideal gas, as function of the molar volume Vm and T, is given by

[math]\displaystyle{ S_\text{m}=C_\text{V}\ln\frac{T}{T_0}+R\ln\frac{V_\text{m}}{V_0}. }[/math]

The system consisting of the two vessels and the gas is closed and adiabatic, so the entropy production during the process is equal to the increase of the entropy of the gas. So, doubling the volume with T constant gives that the molar entropy produced is

[math]\displaystyle{ S_\text{mi}=R\ln 2. }[/math]

Microscopic interpretation

The Joule expansion provides an opportunity to explain the entropy production in statistical mechanical (i.e., microscopic) terms. At the expansion, the volume that the gas can occupy is doubled. This means that, for every molecule there are now two possibilities: it can be placed in container a or b. If the gas has amount of substance n, the number of molecules is equal to nNA, where NA is the Avogadro constant. The number of microscopic possibilities increases by a factor of 2 per molecule due to the doubling of volume, so in total the factor is 2nNA. Using the well-known Boltzmann expression for the entropy

[math]\displaystyle{ S=k\ln \Omega, }[/math]

where k is the Boltzmann constant and Ω is the number of microscopic possibilities to realize the macroscopic state. This gives change in molar entropy of

[math]\displaystyle{ S_{\text{m}\Delta} = S_\Delta / n = k \ln(2^{n \cdot N_\text{A}}) / n = k N_\text{A} \ln 2 = R \ln 2 . }[/math]

So, in an irreversible process, the number of microscopic possibilities to realize the macroscopic state is increased by a certain factor.

Basic inequalities and stability conditions

In this section we derive the basic inequalities and stability conditions for closed systems. For closed systems the first law reduces to

[math]\displaystyle{ \frac{\mathrm{d}U}{\mathrm{d}t} = \dot Q - p\frac{\mathrm{d}V}{\mathrm{d}t}+P. }[/math]

The second law we write as

[math]\displaystyle{ \frac{\mathrm{d}S}{\mathrm{d}t} - \frac {\dot Q}{T} \geq 0. }[/math]

For adiabatic systems [math]\displaystyle{ \dot Q = 0 }[/math] so dS/dt ≥ 0. In other words: the entropy of adiabatic systems cannot decrease. In equilibrium the entropy is at its maximum. Isolated systems are a special case of adiabatic systems, so this statement is also valid for isolated systems.

Now consider systems with constant temperature and volume. In most cases T is the temperature of the surroundings with which the system is in good thermal contact. Since V is constant the first law gives [math]\displaystyle{ \dot Q=\mathrm{d}U/\mathrm{d}t-P }[/math]. Substitution in the second law, and using that T is constant, gives

[math]\displaystyle{ \frac{\mathrm{d}(TS)}{\mathrm{d}t} - \frac{\mathrm{d}U}{\mathrm{d}t} +P\geq 0. }[/math]

With the Helmholtz free energy, defined as

[math]\displaystyle{ F=U-TS, }[/math]

we get

[math]\displaystyle{ \frac{\mathrm{d}F}{\mathrm{d}t}-P \leq 0. }[/math]

If P = 0 this is the mathematical formulation of the general property that the free energy of systems with fixed temperature and volume tends to a minimum. The expression can be integrated from the initial state i to the final state f resulting in

[math]\displaystyle{ W_\text{S} \leq F_\text{i}-F_\text{f} }[/math]

where WS is the work done by the system. If the process inside the system is completely reversible the equality sign holds. Hence the maximum work, that can be extracted from the system, is equal to the free energy of the initial state minus the free energy of the final state.

Finally we consider systems with constant temperature and pressure and take P = 0. As p is constant the first laws gives

[math]\displaystyle{ \frac{\mathrm{d}U}{\mathrm{d}t} = \dot Q - \frac{\mathrm{d}(pV)}{\mathrm{d}t}. }[/math]

Combining with the second law, and using that T is constant, gives

[math]\displaystyle{ \frac{\mathrm{d}(TS)}{\mathrm{d}t} - \frac{\mathrm{d}U}{\mathrm{d}t} - \frac{\mathrm{d}(pV)}{\mathrm{d}t} \geq 0. }[/math]

With the Gibbs free energy, defined as

[math]\displaystyle{ G=U+pV-TS, }[/math]

we get

[math]\displaystyle{ \frac{\mathrm{d}G}{\mathrm{d}t} \leq 0. }[/math]

Homogeneous systems

In homogeneous systems the temperature and pressure are well-defined and all internal processes are reversible. Hence [math]\displaystyle{ \dot S_\text{i} = 0 }[/math]. As a result the second law, multiplied by T, reduces to

[math]\displaystyle{ T \frac{\mathrm{d}S}{\mathrm{d}t} = \dot Q + \dot n TS_\text{m}. }[/math]

With P = 0 the first law becomes

[math]\displaystyle{ \frac{\mathrm{d}U}{\mathrm{d}t} = \dot Q + \dot n H_\text{m} - p\frac{\mathrm{d}V}{\mathrm{d}t}. }[/math]

Eliminating [math]\displaystyle{ \dot Q }[/math] and multiplying with dt gives

[math]\displaystyle{ \mathrm{d}U = T\mathrm{d}S - p\mathrm{d}V + (H_\text{m}-TS_\text{m}) \mathrm{d}n. }[/math]


[math]\displaystyle{ H_\text{m}-TS_\text{m}=G_\text{m}=\mu }[/math]

with Gm the molar Gibbs free energy and μ the molar chemical potential we obtain the well-known result

[math]\displaystyle{ \mathrm{d}U = T\mathrm{d}S - p\mathrm{d}V+ \mu \mathrm{d}n. }[/math]

Entropy production in stochastic processes

Since physical processes can be described by stochastic processes, such as Markov chains and diffusion processes, entropy production can be defined mathematically in such processes.[5]

For a continuous-time Markov chain with instantaneous probability distribution [math]\displaystyle{ p_i(t) }[/math] and transition rate [math]\displaystyle{ q_{ij} }[/math], the instantaneous entropy production rate is

[math]\displaystyle{ e_p(t)=\frac{1}{2}\sum_{i,j}[p_i(t)q_{ij}-p_j(t)q_{ji}]\log\frac{p_i(t)q_{ij}}{p_j(t)q_{ji}}. }[/math]

The long-time behavior of entropy production is kept after a proper lifting of the process. This approach provides a dynamic explanation for the Kelvin statement and the Clausius statement of the second law of thermodynamics.[6]

See also


  1. S. Carnot Reflexions sur la puissance motrice du feu Bachelier, Paris, 1824
  2. Clausius, R. (1854). "Ueber eine veränderte Form des zweiten Hauptsatzes der mechanischen Wärmetheoriein". Annalen der Physik und Chemie 93 (12): 481–506. doi:10.1002/andp.18541691202. Bibcode1854AnP...169..481C. Retrieved 25 June 2012. . Clausius, R. (August 1856). "On a Modified Form of the Second Fundamental Theorem in the Mechanical Theory of Heat". Phil. Mag.. 4 12 (77): 81–98. doi:10.1080/14786445608642141. Retrieved 25 June 2012. 
  3. R. Clausius Über verschiedene für die Anwendung bequeme Formen der Hauptgleigungen der mechanische Wärmetheorie in Abhandlungen über die Anwendung bequeme Formen der Haubtgleichungen der mechanischen Wärmetheorie Ann.Phys. [2] 125, 390 (1865). This paper is translated and can be found in: The second law of thermodynamics, Edited by J. Kestin, Dowden, Hutchinson, & Ross, Inc., Stroudsburg, Pennsylvania, pp. 162–193.
  4. A.T.A.M. de Waele, Basic operation of cryocoolers and related thermal machines, Review article, Journal of Low Temperature Physics, Vol.164, pp. 179–236, (2011), DOI: 10.1007/s10909-011-0373-x.
  5. Jiang, Da-Quan; Qian, Min; Qian, Min-Ping (2004). Mathematical theory of nonequilibrium steady states: on the frontier of probability and dynamical systems. Berlin: Springer. ISBN 978-3-540-40957-1. 
  6. Wang, Yue; Qian, Hong (2020). "Mathematical Representation of Clausius' and Kelvin's Statements of the Second Law and Irreversibility". Journal of Statistical Physics 179 (3): 808–837. doi:10.1007/s10955-020-02556-6. Bibcode2020JSP...179..808W. 

Further reading