Second Law
TheoremSecond Law of Thermodynamics — Macroscopic and Microscopic Foundations
Scope: rigorous derivation and engineering application of the second law, unifying macroscopic statements (Clausius, Kelvin–Planck, Carnot, exergy) with microscopic/statistical mechanics (Boltzmann, Gibbs ensembles, partition functions). Includes control-mass and control-volume balances, entropy generation, availability, and links to information entropy.
1. Macroscopic Statements and Their Equivalence
1.1 Kelvin–Planck Statement
No device operating in a cycle can receive heat from a single reservoir and produce an equivalent amount of work with no other effect.
1.2 Clausius Statement
No process is possible whose sole result is the transfer of heat from a colder body to a hotter body.
1.3 Equivalence Sketch
- If a Clausius-violating refrigerator moves heat from cold to hot with no work input, couple it to a heat engine to produce net work from a single reservoir → violates Kelvin–Planck.
- If a Kelvin–Planck-violating engine produces work from a single reservoir, use work to drive a refrigerator to move heat cold→hot with no other effect → violates Clausius. Hence the two statements are equivalent.
2. Carnot Cycle and Absolute Temperature
2.1 Reversible Heat Engine Model
A reversible engine (Carnot) operating between two reservoirs at temperatures and executes: isothermal expansion at , adiabatic expansion to , isothermal compression at , adiabatic compression to .
2.2 Carnot Theorems
- No engine operating between the same two reservoirs is more efficient than a reversible engine.
- All reversible engines operating between have the same efficiency, independent of working fluid.
2.3 Efficiency and Absolute Temperature
From reversibility and cyclic integrals:
This defines the absolute temperature scale up to a constant that is fixed by assigning the triple point of water to 273.16 K.
3. Clausius Inequality and Entropy Definition
3.1 Clausius Inequality
For any closed system undergoing a cycle:
where is the boundary temperature at the heat interaction location. Equality holds for fully reversible cycles.
3.2 Entropy as a Property
Consider two states 1→2. Construct a reversible path and use path-independence of state functions to define entropy :
Because for any reversible cycle, is an exact differential.
3.3 Entropy Balance for Closed Systems
General process with internal irreversibility :
3.4 Entropy Rate Balance for Control Volumes
For control volume (CV) with mass flow and heat at boundary segments with temperature :
Steady state: .
4. Useful Differential Identities and Maxwell Relations
From the fundamental relation of a simple compressible system:
Legendre transforms give:
Exactness yields Maxwell relations, e.g. from : . These are used to derive property relations and calibrate equations of state.
5. Irreversibilities and Entropy Generation
5.1 Sources
Friction, viscous dissipation, finite heat transfer, mixing, chemical reaction, diffusion, inelastic deformation, electrical resistance, mass transfer across finite chemical potential differences.
5.2 Quantification Near Equilibrium (Continuum Thermodynamics)
Clausius–Duhem inequality for local specific entropy :
where is heat flux, volumetric heat source. With Fourier and Newtonian laws, the local entropy production rate density is
with viscous stress , species fluxes , chemical affinity , and reaction rate .
6. Exergy (Availability) and the Gouy–Stodola Theorem
6.1 Environment and Dead State
Define environment (superscript 0) at . The dead state is the state in mutual equilibrium with the environment.
6.2 Specific Flow Exergy and Nonflow Exergy
- Nonflow exergy (per mass):
- Flow exergy (per mass) includes kinetic and potential terms:
6.3 Exergy Balance for Control Volumes
At steady state with heat at boundary segments at temperature :
where is exergy destruction.
6.4 Gouy–Stodola
For any steady device:
This gives a direct cost of irreversibility and is the basis of entropy generation minimization in design.
7. Engineering Efficiencies and Bounds
- Heat engine: .
- Refrigerator: .
- Heat pump: .
- Turbine/Compressor isentropic efficiency: .
8. Statistical Mechanics Foundations
8.1 Microstate, Macrostate, and Postulate of Equal A Priori Probabilities
A microstate specifies positions and momenta of all particles. A macrostate is defined by macroscopic constraints (). For an isolated system at equilibrium, all accessible microstates are equally probable.
8.2 Boltzmann Entropy (Microcanonical Ensemble)
For an isolated system with energy and multiplicity :
Temperature arises from
Pressure and chemical potential follow from derivatives of :
8.3 Canonical Ensemble via Weak Coupling to a Reservoir
System S weakly coupled to a large reservoir R at total energy . Probability of S in microstate with energy :
with and partition function
8.4 Thermodynamic Potentials from
Helmholtz free energy:
From :
Energy:
Fluctuations: .
8.5 Gibbs and Grand Canonical Ensembles
- Isothermal–isobaric (Gibbs) ensemble: partition function , gives .
- Grand canonical ensemble: , gives grand potential . These connect directly to engineering free energies and equations of state.
8.6 Gibbs Entropy and Information Form
For discrete microstates with probabilities {}:
Maximizing under constraints of normalization and mean energy yields the canonical distribution. This mirrors Shannon information entropy H = -\sum_i p_i g_2 p_i.
9. Micro–Macro Consistency: Recovering Clausius
For a quasi-static heat transfer at temperature while the system remains canonical,
From , at constant : . Thus,
matching the macroscopic definition. For any real process, convexity and Liouville dynamics imply , reproducing Clausius inequality.
10. Entropy of Ideal Gases and Mixing
10.1 Ideal Monatomic Gas (Outline)
The Sackur–Tetrode equation (quantum-corrected) for molar entropy:
This recovers classical results and resolves the Gibbs paradox via indistinguishability ( in ).
10.2 Entropy Change for Ideal Gas (Engineering Form)
For any ideal gas with temperature-dependent :
10.3 Entropy of Mixing (Ideal Gas Mixtures)
For isothermal, isobaric mixing of ideal gases:
where are mole fractions.
11. Chemical Equilibrium, Affinity, and
11.1 Gibbs Free Energy and Spontaneity
At constant : for spontaneous change; equilibrium when .
11.2 Chemical Potential and Reaction Progress
For reaction with extent :
where is the chemical affinity. Equilibrium: .
11.3 Equilibrium Constant
For ideal gases or solutions with standard state (activity ):
Temperature dependence via van ’t Hoff:
12. Non-Equilibrium and Finite-Rate Effects
12.1 Finite Heat Transfer
Entropy generation for heat flow between reservoirs at : .
12.2 Viscous Dissipation
For Newtonian fluid with viscosity and strain-rate tensor : is the dissipation rate density. Local .
12.3 Diffusion and Heat Conduction Coupling
Onsager reciprocal relations near equilibrium link fluxes and forces; symmetry of phenomenological coefficients reduces modeling burden.
13. Worked Engineering Examples
Example 1: Steam Turbine, Entropy Balance and Exergy Loss
Given inlet , outlet , mass flow , and negligible heat transfer. Steps:
- From property tables compute . For isentropic outlet, get at .
- Measured outlet has . Isentropic efficiency .
- Entropy generation rate: .
- Exergy destruction: . This is the avoidable power loss upper bound.
Example 2: Refrigerator COP Upper Bound
For a refrigerator operating between and : . Any real design must have COP at these terminal temperatures.
Example 3: Ideal Gas Entropy Change with Variable
Use a polynomial fit . Integrate to obtain and compare to tabulated .
14. Summary Equations
- Clausius inequality: .
- Entropy definitions: ; ; .
- Control volume entropy rate: .
- Exergy rate balance: .
- Canonical ensemble: .
15. References and Standards
- H. B. Callen, Thermodynamics and an Introduction to Thermostatistics.
- R. K. Pathria and P. D. Beale, Statistical Mechanics.
- A. Bejan, Advanced Engineering Thermodynamics.
- Moran, Shapiro, et al., Fundamentals of Engineering Thermodynamics.
- ASME PTCs and IAPWS for water/steam property standards.
16. Cross-Links
- See First Law:
../first-law.mdfor energy balances and definitions of . - See Fluid Dynamics/01_Control_Volumes.md for Reynolds Transport Theorem and local balances.
- See Appendix C for mathematical identities and integral transforms useful in entropy generation minimization.