second year thermodynamics m. coppins 1.1 basic...

70
Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1 Jargon Microscopic: on the atomic scale; involving very few or single particles (atoms, molecules, electrons, etc). Macroscopic: on the everyday scale or larger; involving very large numbers of particles. Thermodynamics is a macrocscopic theory. System: thing whose properties we are interested in, e.g., gas in container. Surroundings: things outside the system; can interact with system. System + surroundings often called “the universe” in thermodynamics text books. Isolated system: amount of matter and total energy of system is fixed, e.g., gas in closed rigid, thermally insulating container. Closed system: amount of matter in system is fixed, but energy can enter or leave system, e.g., gas in closed rigid container with walls which conduct heat. Energy can enter as heat P (= pressure) increases. Open system: matter and energy can enter and leave it, e.g., gas in open container. If heated P stays constant (e.g., 1 atm) but number of molecules in container decreases. 1.1.2 Equilibrium = state which things settle into if left alone. In equilibrium the macroscopic properties don’t change with time. Even when macroscopic properties have settled into their equilibrium values the microscopic properties (e.g., velocity of a given molecule) are not constant. Could have mixture with several chemically different components. N i = number of molecules of component i. Chemical reactions N i ’s change. Eventually chemical reac- tions stop, and the system settles into chemical equilibrium: N i ’s are constant. Could have unbalanced forces, e.g., push piston into a container of gas V (= volume) gets smaller. Eventually settles into mechanical equilibrium: V is constant. Could put system into thermal contact with something at different T (= temperature). Eventually settles into thermal equilibrium: T is constant. Chemical + mechanical + thermal = thermodynamic equilibrium.

Upload: donga

Post on 05-Mar-2018

233 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

1.1 Basic Concepts

1.1.1 Jargon

Microscopic: on the atomic scale; involving very few or single particles (atoms, molecules,electrons, etc).Macroscopic: on the everyday scale or larger; involving very large numbers of particles.Thermodynamics is a macrocscopic theory.

System: thing whose properties we are interested in, e.g., gas in container.Surroundings: things outside the system; can interact with system.System + surroundings often called “the universe” in thermodynamics text books.

Isolated system: amount of matter and total energy of system is fixed,e.g., gas in closed rigid, thermally insulating container.

Closed system: amount of matter in system is fixed, but energy can enter or leave system,e.g., gas in closed rigid container with walls which conduct heat.Energy can enter as heat ⇒ P (= pressure) increases.

Open system: matter and energy can enter and leave it,e.g., gas in open container.If heated P stays constant (e.g., 1 atm) but number of molecules in container decreases.

1.1.2 Equilibrium

= state which things settle into if left alone.In equilibrium the macroscopic properties don’t change with time.

Even when macroscopic properties have settled into their equilibrium values the microscopicproperties (e.g., velocity of a given molecule) are not constant.

• Could have mixture with several chemically different components. Ni = number ofmolecules of component i. Chemical reactions ⇒ Ni’s change. Eventually chemical reac-tions stop, and the system settles into chemical equilibrium: Ni’s are constant.

• Could have unbalanced forces, e.g., push piston into a container of gas → V (= volume)gets smaller. Eventually settles into mechanical equilibrium: V is constant.

• Could put system into thermal contact with something at different T (= temperature).Eventually settles into thermal equilibrium: T is constant.

Chemical + mechanical + thermal = thermodynamic equilibrium.

Page 2: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

1.1.3 State variables

In equilibrium macroscopic properties are• constant in time (if left alone),• uniform in space (if no external force field present1).

If an external force field is acting the macroscopic properties can vary spatially, e.g., in an isothermalatmosphere (→ 1st Year SoM course, Lecture 5) the density falls with height due to gravity.

State variable = a macroscopic property of a system in equilibrium (e.g., for a gas the statevariables include: P , V , T , N = number of molecules).

Extensive state variables are proportional to the amount of material.Intensive state variables are independent of amount of material.

Combine 2 identical volumes of gas.

Produces a volume of gas with 2N , 2V , P , T , i.e., N and V double (extensive), but P andT are unchanged (intensive).

Specific value: extensive variable per unit mass. Denoted with lower case letters.

Chemists use “moles” instead of kilograms. 1 mole is amount of stuff that contains as many particles asthere are atoms in 12 g of 12C. Chemists’ specific values are therefore “molar” values. We won’t use molesin the Thermodynamics course.

The most familiar state variables are P , V , N , and T .There are many others, e.g., U = internal energy, β = thermal expansion coefficient.

1.1.4 Equation of state

...is a relationship between state variables (usually P , V , N , and T ). It might be derivedtheoretically or found experimentally.

• Ideal gas:

PV = NkBT (1.1.4.1)

(where kB = Boltzmann’s constant = 1.38× 10−23 J K−1).

Chemists write the ideal gas equation of state in terms of moles: PV = NmRT , where Nm = the numberof moles and R is the “universal gas constant”.

• Van der Waals gas:(

P + aN2

V 2

)

(V −Nb) = NkBT (1.1.4.2)

(where a and b are constants; → 1st Year SoM course, Lecture 9)

1This will assumed throughout the Thermodynamics course

Page 3: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Thermodynamics applies to other macroscopic systems than gases, in which case the statevariables P and V can be replaced with other more appropriate variables, e.g.,

• Stretched metal wire: In this case P is replaced with J = tension, and V is replacedwith L = length.

Under certain conditions the equation of state has the form:

L = L0

{

1 +J

Y A+ α(T − T0)

}

(1.1.4.3)

where Y = Young’s modulus, A = cross-sectional area, α = coefficient of linear expansion,T0 = reference temperature, and L0 = length when T = T0 and J = 0.

1.1.5 Independent state variables

Of the four state variables P , V , N , and T , we can specify any three; the equation of statethen gives the value of the fourth one, e.g., ideal gas with P = 1.01 × 105 Pa (1 atm),N = 1025 molecules, T = 298 K → V = 0.41 m3

In thermodynamics we are usually interested in what happens when things change,e.g., change volume by ∆V , what is ∆T?

How many state variables can we vary independently?

(1) Closed system: N = given constant.

Can vary 2 of P , V , T , → equation of state gives 3rd one.

Equation of State defines PV T surface, e.g. ideal gas

Any point on this surface represents an equilibrium.

Real substances have more complicated PV T surface, e.g.,

Page 4: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

[Picture from University Physics (9th edition) by Young and Freedman.]

(2) Open system: N = can change → 3 independent state variables.

(3) N fixed, but two different phases (e.g., solid and liquid).

Phase diagram is the projection of the PV T surface on the PT plane

(→ 1st Year SoM course, Lecture 4).

Two phases can only coexist in equilibrium along the lines on this diagram → extraconstraint → only 1 independent state variable.

[We consider the situation of two coexisting phases in detail in Lecture 3.5.]

(4) Several chemically distinct components present ⇒ more independent state variables →chemistry.

Most of the Thermodynamics course (Lectures 1.2 – 3.3) deals with a single component,single phase, closed system → 2 independent state variables.

We will mostly concentrate on a fixed mass of gas in a container, partly because this par-ticular system is intrinsically important, and partly because it is easy to visualize what ishappening.

Remember, however, that thermodynamics doesn’t just apply to gases, but also toother macroscopic systems.

Page 5: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

1.2 T , U , S

1.2.1 Definitions

The most important state variables in thermodynamics are:• T = temperature,• U = interal energy,• S = entropy.Like other state variables (e.g., P ) these are measurable macroscopic properties of things inequilibrium.

T is in the equation of state (→ Lecture 1.1).U and S can be found from the other state variables.

In thermodynamics we are usually concerned with changes in things, e.g., ∆T = Tfinal−Tinit.First law deals with ∆U (→ Lecture 1.4).Second law deals with ∆S (→ Lecture 2.3).

Although thermodynamics is a macroscopic theory, this lecture will include a brief and verysuperficial look at T , U and S from a microscopic viewpoint. The microscopic theory willbe covered in detail next term in the Statistical Physics course.

1.2.2 Temperature

Microscopic view: T describes how particles of a system are distributed with respect to energy.

Boltzmann law (→ 1st Year SoM course, Lecture 5): probability of particle having energy close to E, inequilibrium, is proportional to e−βE , where β = 1/kBT .

From a theoretical point of view it would be better to replace the state variable T with β, but we are tooused to temperature in everyday life.

Example: gas molecules in Maxwell-Boltzmann velocity distribution function

f(vx) =

(

m

2πkBT

)1/2

exp

(

−mv2x2kBT

)

.

The probability that the x component of any given molecule’s velocity is between vx and vx+dvx is f(vx)dvx.

Increase T ⇒ particles spread out more with respect to energy.

We always use absolute temperatures. If β was used instead of T then absolute zero would correspond toβ = ∞. Looked at this way the inaccessibility of absolute zero seems very natural.

Page 6: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Macroscopic view: Two systems are in thermal equilibrium if they have the same T .

T is sometimes approximately constant during some process. The theoretical idealization ofthis is an isothermal process, in which T is kept constant by placing the system in contactwith a heat reservoir (i.e., an object so large that heat flow in or out of it does not changeits temperature).Example: isothermal compression.

Tgas stays equal to Tres during the compression because heat flows from the the gas into thereservoir.

1.2.3 Internal energy

Microscopic view: U = total (kinetic + potential) energy of all the particles in the system.

Ideal gas: particles do not interact (i.e., no potential energy of interaction)

⇒ can use theorem of equipartition of energy: U = Nnd

2kBT

(nd = number of degrees of freedom: → 1st Year SoM course, Lecture 3)

For a fixed mass of ideal gas it can be proved thermodynamically that the internal energydepends only on its temperature (→ Lecture 3.2).

Microscopic theory required to obtain the functional form. Equipartition predicts

U =nd

2NkBT (1.2.3.1)

(nd = constant for give material, e.g., nd = 3 for a monatomic gas).

Ideal gas: U = constant ⇔ T = constant.

Van der Waals gas: U =3

2NkBT − a

N2

V(depends on both T and V ).

Real gas: U depends on both T and V .

1.2.4 Entropy

Microscopic view: S = kB lnW , where W = number of microstates corresponding to given macrostate.

Increasing W ⇒ increasing disorder at microscopic level.

Page 7: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Consider a system consting of N gas molecules in a box of volume V .Divide the box into a number of equal sized cells.

Microscopic view: we know which cell each individual molecule is in.Macroscopic view: we know how many molecules there are in each cell, but not which ones they are.In this simple model we describe the macrostate by the density in each cell: ρi = number of molecules incell i/volume of cell.Example: 4 molecules, 2 cells.

Macrostate I: all 4 molecules in cell 1: ρ1 = 4, ρ2 = 0.Only one microstate corresponds to this macrostate (i.e. W = 1).

Macrostate II: 3 molecules in cell 1, 1 molecule in cell 2: ρ1 = 3, ρ2 = 1.There are 4 microstates corresponding to this macrostate (i.e., W = 4).

Macrostate III: 2 molecules in cell 1, 2 molecule in cell 2: ρ1 = 2, ρ2 = 2.There are 6 microstates corresponding to this macrostate (i.e., W = 6).

Page 8: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

All the microstates are equally probable ⇒ probability of given macrostate occuring ∝ W .

We could initialize the system in macrostate I by placing all four molecules in left hand side of box. Afterthe molecules have spread out it is 6× more likely that the system is in macrosate III than back in I.

In macrostate III ρ = uniform = N/V , i.e., unlike the other macrostates (in which ρ is non-uniform) thismacrostate can be completely specified by the values of the state variables N and V .Real systems have N >> 4 (e.g., 1 mm3 of air at atmospheric pressure contains ∼ 2.7× 1016 molecules).

Macrostate with uniform density is overwhelmingly more probable (much higher W ) than macrostate withhighly non-uniform density.

If left to itself the system will settle into the macrostate with maximum W .This is equilibrium state (→ Lecture 2.6)

Macroscopic view: increasing S ⇒ particles and/or energy become more dispersed.

Once things become dispersed it is hard to get them back together again⇒ increasing S associated with irreversible changes (→ Lecture 2.1).

Ideal gas:

S = S0 +nd

2NkB lnT +NkB lnV (1.2.4.1)

where S0 is a constant (→ Lecture 3.2)

S increases if• V increases ⇒ particles spread out more in space.• T increases ⇒ particles spread out more with respect to energy.

Place hot and cold objects in thermal contact.• initial state: energy more concentrated in hot object.• final state: thermal equilibrium, same T everywhere, energy more spread out.

Everyone is aware of the “energy crisis”, and that we should try to conserve energy.

But, of course, energy is conserved.

We are not runing out of energy, we are running out of usable energy.

The energy in a barrel of oil does not vanish when the oil is burnt, but it becomes very much harder to usebecause it has been dispersed ⇒ entropy increases.

Rather than an energy crisis, it would be more true to say we have an entropy crisis.

Page 9: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

1.3 Mathematical methods

Thermodynamics has a reputation for being a hard subject. There are basically three reasons for this.

Thermodynamics is hard, reason 1: It is inherently strange because we don’t use the reductionistworld-view. It is quite unlike anything else in physics.

We will encounter the other two reasons in this lecture.

1.3.1 Changes in state variables

Closed system: N = fixed. But V can vary, and energy can enter or leave.⇒ U , T , P , S can all change.

Example: gas in cylinder with piston.Piston moves out ⇒ ∆V = Vfinal − Vinit > 0.Can we find ∆U , ∆T , ∆P ...?

We need to specify 2 independent variables.

Example: ideal gas, Pinit = 105 Pa, Vinit = 1.0 m3, Tinit = 298K(⇒ N = 2.43× 1025 molecules).

Change V and T : ∆V = −1.0× 10−2 m3, ∆T = +1.0 K. What is ∆P?Vfinal = 0.99 m3, Tfinal = 299 K.Pfinal = NkBTfinal/Vfinal ⇒ ∆P = Pfinal − Pinit = +1.35× 103 Pa.

[We could also calculate the changes in other state variables,e.g., ∆U = +503 J, ∆S = −1.69 J K−1 (→ Problem Sheet 1).]

We started in equilibrium with state variables Pinit, Vinit, Tinit... and ended in equilibriumwith state variables Pinit +∆P , Vinit +∆V , Tinit +∆T ...

We didn’t specify what caused this change.

Given:• initial state variables, and• any 2 of ∆P , ∆V , ∆T , ∆U , ∆S...we can find the final state.

Thermodynamics is hard, reason 2: There are usually many different ways of solving a given problem(different choices of the pair of independent state variables). It often difficult to tell which way is best.

1.3.2 Small changes

Reminder of some basic maths: y = y(x) = function of 1 variable.

Make a small change ∆x in x. Corresponding change in y is: ∆y ≃

(

dy

dx

)

∆x.

Make an infinitesimal change dx in x. Corresponing infinitesimal change in y is: dy =

(

dy

dx

)

dx.

Page 10: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

If z = z(x, y) is a function of 2 variables then making small changes ∆x and ∆y in x and y

results in a small change in z given by

∆z ≃

(

∂z

∂x

)

y

∆x+

(

∂z

∂y

)

x

∆y

where

(

∂z

∂x

)

y

= the partial derivative of z with respect to x, keeping y constant.

This suggests an alternative approach to find ∆P given ∆T and ∆V .

• Choose T and V as the two independent state variables.

• We then have: ∆P ≃

(

∂P

∂T

)

V

∆T +

(

∂P

∂V

)

T

∆V .

• For an ideal gas: P =NkBT

V⇒

(

∂P

∂T

)

V

=NkB

V,

(

∂P

∂V

)

T

= −NkBT

V 2.

• Therefore: ∆P ≃NkB

V∆T −

NkBT

V 2∆V .

• Putting in the values we find ∆P ≃ +1.33× 103 Pa (∼ 1% error).

This approach is more accurate for smaller changes. In the limit of infinitesimal changes instate variables we have

dP =

(

∂P

∂T

)

V

dT +

(

∂P

∂V

)

T

dV .

Whatever we choose for our two independent state variables, we can always express theinfinitesimal change in some other state variable by an equation like this. We do this a lotin thermodynamics.

Thermodynamics is hard, reason 3: Lots of pertial derivatives are involved. This makes it look math-emtically abstruse, although, in fact, once you get used to it the required maths is very straightforward.

1.3.3 Mathematical summary

To do all the manipulations involving partial derivatives in thermodynamics we use just fourmathematical results. These are the boxed results below.

Given a function z = z(x, y) of two variables:

dz =

(

∂z

∂x

)

y

dx+

(

∂z

∂y

)

x

dy (1.3.3.1)

We could rewrite the functional dependence as y = y(x, z) or x = x(y, z). Thus there are 6

possible 1st order partial derivatives:

(

∂z

∂x

)

y

,

(

∂z

∂y

)

x

,

(

∂y

∂x

)

z

,

(

∂y

∂z

)

x

,

(

∂x

∂y

)

z

,

(

∂x

∂z

)

y

.

These partial derivatives are related to each other by two identities.

Page 11: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

The reciprocal rule:(

∂x

∂y

)

z

=1

(

∂y

∂x

)

z

(1.3.3.2)

The cyclic rule:(

∂x

∂y

)

z

(

∂y

∂z

)

x

(

∂z

∂x

)

y

= −1 (1.3.3.3)

Finally, mixed 2nd derivatives obey:

∂2z

∂x∂y=

∂2z

∂y∂x(1.3.3.4)

where∂2z

∂x∂ymeans

(

∂x

(

∂z

∂y

)

x

)

y

.

For the Thermodynamics course you should be familiar with the use of the four boxed relationships, butyou don’t need to be able to derive them. For those interested, a non-examinable proof of the reciprocal andcyclic rules is given here.

For a function z = z(x, y):

dz =

(

∂z

∂x

)

y

dx+

(

∂z

∂y

)

x

dy (1.3.3.5)

Rewriting this as y = y(x, z) we have

dy =

(

∂y

∂x

)

z

dx+

(

∂y

∂z

)

x

dz (1.3.3.6)

Substituting Eq. 1.3.3.6 into Eq. 1.3.3.5 and rearranging we obtain:

{

(

∂z

∂x

)

y

+

(

∂z

∂y

)

x

(

∂y

∂x

)

z

}

dx+

{(

∂z

∂y

)

x

(

∂y

∂z

)

x

− 1

}

dz = 0

Since dx and dz are independent the coefficients of dx and dz in this equation must both be zero. Settingthe coefficient of dz to zero gives the reciprocal rule, and setting the coefficient of dx to zero (and using thereciprocal rule) gives the cyclic rule.

1.3.4 Path independence

If we make successive very small changes dP the total change in P is

∆P =

dP

But if we start in a state A and end in state B

∆P = PB − PA

i.e., ∆P is the same for any process between A and B. We say it is path independent.

The change of any state variable between two equilibria is path independent.

Page 12: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

We can re-express the condition for path independence in the following way. If we start instate A and do some process at the end of which we are back in state A then

A→A

dP =

dP = PA − PA = 0 .

For any state variable, e.g. entropy S

dS = 0 (1.3.4.1)

where the integral is round any closed path.

If the concept of path independence seems a bit abstract consider the following analogy.

Suppose there are various paths (actual paths, which you can walk along) by which we could climb a hill.The sketch shows two of them, starting at point A at the bottom (altitude: hA = 10 m), and ending at pointB at the top (altitude: hB = 300 m).

The change in altitude from A to B is path independent:

A→B, path 1

dh =

A→B, path 2

dh = hB − hA = 290m .

If we start from A, go up one path and then come back to A along the other one then

dh = total change

in altitude for the round trip = 0.

But the distance travelled is not path independent.:

A→B, path 1

dl 6=

A→B, path 2

dl .

If we start from A, go up one path and then come back to A along the other one then

dl = total distance

travelled for the round trip 6= 0.

h is an intrinsic property of the location, e.g., point B has an altitude h = 300 m. In thermodynamic-speakh is a “state variable”

l is not a property of the location (not a “state variable”).

dh = very small change in altitude.

dl = very small distance (not a change in something).

In thermodynamics we have• very small changes in state variables, e.g., dT , dS,...• very small quantities which are not changes in state variables. These are denoted by a crossed d .

For instance dQ = a very small amount of heat going into our system (→ Lecture 1.4).

Page 13: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

1.4 The first law

1.4.1 Statement of the 1st law

∆U = Q+W (1.4.1.1)

where ∆U = change in internal energy, Q = heat into system, W = work done on system.

!! Take care !! Some books (e.g., Young and Freedman) define W = work done by

system, so the 1st law becomes ∆U = Q−W .

Microscopic view: Q is energy transferred by random particle motion, W is energy transferred by orderedparticle motion.

Macroscopically, heat is energy transferred as a result of a temperature difference.

Energy conservation is built into the 1st law.

∆U = Ufinal − Uinit is path independent (→ Lecture 1.3).W is path dependent (→ Section 1.4.2).Therefore Q = ∆U −W is also path dependent.

An infinitesimal change in the internal energy is given by

dU = dQ+ dW (1.4.1.2)

where dQ and dW are infinitesimal amounts of heat and work.

We denote them with a d because they are not changes in things. They are path dependent.

Mathematically, dU , dP , dT , etc are examples of exact or perfect differentials.They are changes in some property (in thermodynamics, changes in state variables).dQ and dW are inexact or imperfect differentials.

1.4.2 Work

Work is done compressing a gas.

Assume• friction is negligible• the compression is done very slowly(these conditions will be relaxed in the next lecture).

Compress the gas by applying a force F to a piston.

Page 14: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

In equilibrium: F = PA.

Increase force by small amount: Force = F + δF . ⇒ piston moves small distance δx.

δW = Small amount of work done = (F + δF )δx = PAδx︸ ︷︷ ︸

1

+ δFδx︸ ︷︷ ︸

2

.

1 = −PδV where δV = change in volume = −Aδx (− sign because V decreases),

2 = 2nd order in small quantities ⇒ negligible,i.e., infinitesimal work done on gas is :

dW = −PdV . (1.4.2.1)

Therefore

W = −

∫ Vfinal

Vinit

PdV . (1.4.2.2)

On a PV diagram (→ 1st Year SoM course, Lecture 3)

Area under curve =

∫ Vfinal

Vinit

PdV = −W = work done by the gas.

The PV diagram was originally invented by James Watt in the 1790’s. He considered it so useful that heregarded it as a trade sectret which helped to give his steam engines a competitive edge. It only enteredmainstream thermodynamics after being re-invented by Emile Clapeyron in 1834.

W is path dependent.

Can do work on systems other than gases, e.g.:

Page 15: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

• Work done stretching metal wire: dW = JdL (J = tension, L = length).

[Note opposite sign from the gas case. This is because W > 0 if length of wire in increased

or if volume of gas is decreased.]

• Work done charging capacitor: dW = φdq (φ = voltage, q = charge).

1.4.3 Adiabatic process

= process in which dQ = 0, e.g., adiabatic compression of a gas

For an ideal gas: P =NkBT

V, and U =

nd

2NkBT ⇒ dU =

nd

2NkBdT (→ Lecture 1.2).

The 1st law with dQ = 0 therefore gives:nd

2NkBdT = −NkBT

dV

V

⇒dT

T= −

2

nd

dV

V⇒ lnT = − lnV 2/nd + const ⇒ TV 2/nd = const

i.e., an ideal gas undergoing an adiabatic process satisfies the following equation1

TV γ−1 = constant, or PV γ = constant. (1.4.3.1)

where γ = (nd + 2)/nd = constant.

On a PV diagram adiabatic processes are steeper than isothermal processes,e.g., monatomic ideal gas (γ = 5/3).

1This statement will be qualified in Lecture 2.3.

Page 16: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

1.4.4 Heat capacities

Heat capacity = C is defined by equation: dQ = CdT

Specific heat = c = heat capacity per unit mass (intensive variable).

dQ is path dependent ⇒ so is Ce.g., CV = heat capacity at constant volume, CP = heat capacity at constant pressure.

We can derive a general equation linking CV and CP .

!! This is the first bit of serious thermodynamic maths in the course !!

Choose V and T as independent state variables ⇒ dU =

(

∂U

∂V

)

T

dV +

(

∂U

∂T

)

V

dT

1st law: dQ = dU + PdV ⇒

dQ =

{

P +

(

∂U

∂V

)

T

}

dV +

(

∂U

∂T

)

V

dT . (1.4.4.1)

At constant volume dV = 0 ⇒ dQ =

(

∂U

∂T

)

V

dT But at constant volume: dQ = CV dT .

Therefore

CV =

(

∂U

∂T

)

V

. (1.4.4.2)

At constant pressure: dQ = CPdT . To get an expression for CP we want an equation likeEq. 1.4.4.1 but with a term multiplying dP instead of dV on the right hand side.

Write V = V (T, P ) ⇒ dV =

(

∂V

∂T

)

P

dT +✟

✟✟

✟✟✟✟

(

∂V

∂P

)

T

dP (since dP = 0).

Substitute into Eq. 1.4.4.1 ⇒ dQ =

{

P +

(

∂U

∂V

)

T

}(

∂V

∂T

)

P

dT +

(

∂U

∂T

)

V

dT .

But dQ = CPdT and

(

∂U

∂T

)

V

= CV . Therefore

CP =

{

P +

(

∂U

∂V

)

T

}(

∂V

∂T

)

P

+ CV . (1.4.4.3)

For an ideal gas: CV =nd

2NkB, CP = CV +NkB, γ =

CP

CV

(→ Problem Sheet 2).

Page 17: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.1 Reversibility

2.1.1 Reversible process

= a process in which the system and its surroundings can be restored to their original statewithout any changes anywhere else.

It is a theoretical concept (cf frictionless plane in mechanics, or a point charge in electro-magnetism).

All real processes are irreversible, but there are processes which are reversible to a goodapproximation.

2.1.2 Dissipation

Energy in ordered motion is converted into “heat” (i.e., internal energy) ⇒ temperature rise.

Examples

• Pendulum. Energy falls with time due to friction at pivot and air resistance.

• Joule heating. Energy in electric current lost due to electrical resistance.

Dissipation ⇒ energy is dispersed ⇒ entropy increases (→ Lecture 1.2).

Processes involving dissipation are irreversible.

For instance, we could set the pendulum swinging at its initial amplitude again by givingit a push periodically with a motor, and cool the surrounding air to restore it to its initialtemperature.

BUT this would involve changes in the motor and cooling system (e.g., using up fuel).

We cannot get the pendulum and its surroundings back to their original state without chang-ing something else.

Page 18: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.1.3 Qusai-static process

= a process which is so slow that the system stays in equilibrium at all times.

Gas in container.• Initially in state (Pinit, Vinit).• Compress it with piston to final state (Pfinal, Vfinal).

(1) Very slow (qusai-static) compression: at any stage the gas has well defined values of statevariables. Can plot this process on a PV diagram.

(2) Very fast compression to Vfinal, and then allowed to settle into equilibrium: state variablesnot well defined during compression (e.g., pressure is not uniform). Can plot initial and finalstates on a PV diagram, but not the process joining them.

2.1.4 Reversible work

To identify the conditions for work to be done reversibly we again consider our standardexample: gas in a container with a piston.

Apply force F ⇒ piston moves small distance δx = −δV/A

⇒ small amount of work done δW = Fδx = −FδV/A.

(1) Finite friction. F must be larger than PA by a finite amount in order to overcomefriction ⇒ δW > −PδV .

Dissipation involved ⇒ process is not reversible. (Can restore the gas to its originalvolume but doing so does not recover the energy dissipated by the friction.)

(2) Zero friction. Apply force F larger than PA ⇒ piston accelerates. Then either:

(a) piston oscillates in and out for ever ⇒ does not reach an equilibrium, or

(b) oscillations are damped out by dissipation in gas ⇒ not reversible.

While piston is oscillating the system is not in equilibrium

⇒ not qusai-static ⇒ cannot be plotted on PV diagram.

Page 19: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Now consider a situation in which• there is a very small amount of friction, and• a force is applied which is larger than PA by a very small amount.

The piston is displaced a very small distance and the gas reaches a new equilibrium with aslightly larger pressure.

A very small amount of work is done δW = −PδV (→ Lecture 1.4).

Large number of very small displacements ⇒ large total displacement.

This process would be very nearly reversible.

In the limit of “very small” → “infinitesimal” we have:

• no friction,• gas is in equilibrium throughtout process (i.e., quasi-static),• dW = −PdV ,• process is reversible.

This is a theoretical concept, but it can be closely approximated by reducing friction andpushing the piston slowly.

Of course, if the friction was exactly zero and we applied a force exactly equal to PA the piston would not

move. Reversible compression is an idealization of the situation with very small friction, in which the force

is very slowly increased, so that at any time it is only very slightly larger than PA. In practical terms this

means that the time over which the compression takes place must be much longer than the time over which

the gas settles into equilibrium.

2.1.5 Reversible heat

Heat flows between objects at different temperatures.

Consider a fixed volume of gas in thermal contact with a reservoir at T1: Tgas = T1.

Now place it in thermal contact with a reservoir at T2 > T1. Heat Q flows from the reservoirinto the gas and eventually equilibrium is reached in which Tgas = T2.

This process is

• not quasi-static. When first placed in contact with Reservoir 2 the gas is not in equi-librium (e.g., temperature is not uniform, convection currents are probably occuring).

• not reversible. We could restore the gas to its original state by putting it backin contact with Reservoir 1. Heat Q would flow from the gas to the reservoir andTgas → T1.

Page 20: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

But the reservoirs have changed: a net amount of heat Q has been transferred fromReservoir 2 to Reservoir 1. We could move Q back to Reservoir 2, but that wouldrequire a change somewhere else (e.g., a heat pump, → Lecture 2.2.)

Now place the gas successively in contact with a sequence of reservoirs, each of which hasa temperture larger than the last one by a very small amount δT . A very small amount ofheat δQ flows into the gas from each reservoir, and the gas very quickly reaches equilibrium.

Large number of reservoirs⇒ large total temperature difference ∆T =∑

δT and large total

heat flow ∆Q =∑

δQ.

Going back through the sequence of reservoirs in reverse order⇒ gas is restored to its originalstate, and most reservoirs are restored to their original states.

The only irreversible aspect is a very small net amount of heat δQ transferred from thehottest reservoir to the coolest.

In the limit of “very small” → “infinitesimal” we have an infinite number of reservoirs, and:

• heat flow takes place between objects with infinitesimal temperature difference,• gas is in equilibrium throughtout process (i.e., quasi-static),• process is reversible.

(→ Lecture 2.6)

2.1.6 Isothermal work

Allow a gas to expand while in thermal contact with a reservoir at Tres.• Heat Q flows from the reservoir to the gas, to keep Tgas = Tres.• The gas does work W .

If the expansion is quasi-static and there is no friction, this process is reversible (heat flowsbetween objects at the same temperature).

Page 21: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.2 Engines, fridges and heat pumps

2.2.1 Heat engines

...convert heat into work. They are the technological foundation of our society (e.g., powerstations, transportation).

In a heat engine• internal energy of a gas is increased by heat and work,• some of that added internal energy is used to do work (e.g., turn turbine),• the rest is thrown away.

Example: jet engine. This is a type of gas turbine.

1: Intake. Low temperature gas (air) is sucked in.2: Compressor. Gas is compressed (work is done on it).3: Combustion chamber. Fuel is added and ignited. The gas is rapidly heated at constant pressure.4: Turbine. The expanding hot gas does work on turbine blades. This drives the compreesor.5: Exhaust. The hot gas is expelled (energy is lost).[Picture from Wikipedia]

2.2.2 Cycles

Theoretical model: heat engine operates in a cycle with a fixed mass of gas (= “the system”).

Represent 1 cycle schematically:

Qin = heat into system in 1 cycle, Qout = heat out of system in 1 cycle.Both of these quantities are defined to be positive.

Page 22: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

WE = Wout −Win = net work done by engine in 1 cycle > 0.

After 1 cycle the system returns to its initial state, i.e.,after 1 cycle all state variables return to their initial values.

∆U = change in internal energy in 1 cycle = 0.

1st law: ∆U = −WE +Qin −Qout ⇒ WE = Qin −Qout.

Qout = energy thrown away.

A perfect engine would completely convert Qin to work, i.e., Qout = 0 and WE = Qin.This is not possible (→ Lecture 2.3).

Define efficiency of heat engine:

η = fraction of Qin which is converted into work =WE

Qin

.

Using 1st law:

η = 1−Qout

Qin

. (2.2.2.1)

2.2.3 Brayton cycle

= idealized gas turbine/jet engine.

A → B: low temperature gas compressed adiabaticallyB → C: gas heated at constant pressure (Qin during this stage).C → D: hot gas expands adiabatically and does work.D → A: gas is cooled at constant pressure (Qout during this stage).

The jet engine is an open system: hot gas is expelled and a fresh supply of low temperature gas is taken in.

Some fraction of the energy put into the gas is lost in exhaust.

If we suppose that the hot gas is cooled and recirculated we can account for the lost energy,

The sections of the Brayton cycle correspond to the sections of the jet engine:A: air intake (1),A → B: compressor (2),B → C: combustion chamber (3),C → D: turbine (4),D: exhaust (5).

Page 23: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Area under B → D = Wout = work done by gas.Area under D → B = Win = work done on gas.Area enclosed by cycle = WE = Wout−Win net work done by gas (this is true for any cycle).

2.2.4 Two reservoir engine

= theoretical heat engine in which the heat source is a hot reservoir at TH and the heat sinkis a cold reservoir at TC .

Define:QH = heat in from hot reservoir in 1 cycle (= Qin),QC = heat out to cold reservoir in 1 cycle (= Qout).

Example: coal fired power station:• system: water/steam,• hot reservoir: furnace, TH ∼ 800 K,• cold reservoir: outside environment (e.g., cooling towers), TC ∼ 300 K.

Heat QH is transferred from hot reservoir, work WE is done by system, and heat QC istransferred to cold reservoir.

Schematic diagram of 1 cycle of a 2-reservoir engine:

1st law: WE = QH −QC .

Page 24: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.2.5 Refrigerator

= heat engine run in reverse.

Work W F is done on system, heat QC is transferred from cold reservoir, and heat QH istransferred to hot reservoir.

Cold reservoir = contents of fridge, hot reservoir = air around fridge.

Schematic diagram of 1 cycle of a fridge:

In this case QH = Qout and QC = Qin. [Remember: “in” and “out” refer to the system.]

1st law: W F = net work done on system in 1 cycle = QH −QC .

A perfect fridge would transfer QC from cold reservoir to hot reservoir without any workbeing done, i.e., W F = 0 and QC = QH . This is not possible (→ Lecture 2.3).

Define coefficient of performance of a fridge:

ωF = fraction of W F which is used to cool cold reservoir =QC

W F.

Note: QC can be larger than W F , i.e., ωF can be larger than 1.

2.2.6 Heat pump

= fridge used to heat a building.

Cold reservoir = ground outside building, hot reservoir = interior of building.

The schematic diagram of 1 cycle of a fridge also applies to a heat pump.

Define coefficient of performance of a heat pump:

ωP = fraction of W F which is used to heat hot reservoir =QH

W F.

Note: 1st law ⇒ QH > W F⇒ ωP > 1.

η, ωF and ωP all have the formWhat you get out

What you put in

We don’t use the the word efficiency for ωF or ωP because they can exceed 100%.

Page 25: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.3 The second law

2.3.1 Alternative statements

The 2nd law concerns a fundamental asymmetry in the universe. This asymmetry manifestsitself in many different ways, and there are, therefore, many different ways of expressing the2nd law.

• Kelvin statement. No process is possible in which the sole effect is the absorption ofheat from a reservoir and its complete conversion into work

(i.e., a perfect engine is impossible, → Lecture 2.2).

• Clausius statement. No process is possible in which the sole effect is the transfer ofheat from a colder reservoir to a hotter reservoir

(i.e., a perfect fridge is impossible, → Lecture 2.2).

• Mathematical form.

dS

=dQ

T, in a reversible process

>dQ

T, in an irreversible process

(2.3.1.1)

The phrase sole effect in the Kelvin and Clausius statements is very important. Variousprocesses might appear to violate the 2nd law, but there is always something else happening(→ Sec. 2.3.5)

Perpetual motion machines are usually classified into:• perpetual motion machines of the first kind: these violate the 1st law of thermodynamics.• perpetual motion machines of the second kind: these violate the 2nd law of thermodynamics.

2.3.2 Equivalence of Kelvin and Clausius statements

We can show that the Kelvin and Clausius statements of the 2nd law are equivalent by(1) showing that if the Kelvin statement is violated, then so is the Clausius statement, and(2) showing that if the Clausius statement is violated, then so is the Kelvin statement.Here we carry out stage (1), and relegate stage (2) to Problem Sheet 3.

Suppose a perfect heat engine exists which completely converts heat from a hot reservoir(QE

H) into work (WE), with no other effect, i.e., it violate the Kelvin statement.

Page 26: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

We use the work from this engine to run a fridge which discharges heat into the same hotreservoir.

We adjust the engine so that it produces exactly the amount of work required to run thefridge, i.e., WE = W F .

The net effect of the engine + fridge combination is:

From the 1st law we have QFC = QF

H −QEH . The sole effect is thus the transfer of heat from

the cold reservoir reservoir to the hot one, i.e., it violates the Clausius statement.

2.3.3 Reversible, adiabatic process

Reversible process: dS =dQ

T, adiabatic process: dQ = 0.

⇒ Reversible, adiabatic process is isentropic (i.e., S = constant, dS = 0).

In Lecture 1.4 we derived the ideal gas adiabatic law:

PV γ = constant .

The derivation assumed:(1) state variables well defined at all times during the process (i.e., quasi-static),(2) dW = −PdV .i.e., the process is reversible. The ideal gas adiabatic law describes an isentropic process.

Page 27: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.3.4 Calculating entropy changes

• Reversible process. ∆S =

dQ

T(example → Sec. 2.3.5).

• Irreversible process. dS >dQ

T. So how do we calculate ∆S?

S is a state variable

⇒ ∆S = Sfinal − Sinit depends only on initial and final states (i.e., path independent).

Thermodynamic trick: Choose a reversible path between the initial and final states andcalculate ∆S along that (example → Sec. 2.3.6).

2.3.5 Reversible isothermal volume change

Reversible volume change of ideal gas in thermal contact with reservoir at temperature Tres.

• Heat Q flows into the gas from the reservoir, to keep Tgas = Tres.• The gas does work W .

Ideal gas: T = constant ⇒ U = constant (→ Lecture 1.2)⇒ Q = W , i.e., heat from the reservoir is completely converted into work⇒ violates Kelvin statement of 2nd law?

NO!! This is not the sole effect. The volume of the gas changes.

U = constant ⇒ dQ = −dW (1st law) = PdV (reversible process) =NkBTgas

VdV .

If the gas expands from volume V0 to V1 the entropy change is:

∆Sgas =

dQ

Tgas

=

∫ V1

V0

NkB

VdV = NkB ln

(

V1

V0

)

.

V1 > V0 ⇒ ∆S > 0.

Page 28: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.3.6 Adiabatic free expansion

Consider a gas in a thermally insulated container. The container is divided into two parts bya removable partition. Initially the left hand part is filled with gas, while there is a vacuumin the right hand part. We remove the partition and allow the gas to fill the entire container.

The process is adiabatic (thermally insulated container) ⇒ dQ = 0⇒ ∆S = 0?

NO!! The process is irreversible ⇒ dS > 0.

Use thermodynamic trick to find ∆S.

Assume:• ideal gas,• partition can be removed without doing any work on the gas (i.e., dW = 0).

dQ = dW = 0 ⇒ ∆U = 0 (1st law).

Ideal gas: U = constant ⇒ T = constant (→ Lecture 1.2).

Gas expands from initial state with volume V0 (= volume of left hand part) to final state withvolume V1 (= volume of whole container). Initial and final states have same temperature.

Same initial and final states as in reversible isothermal expansion (→ Sec. 2.3.5).

⇒ same entropy change, i.e., ∆Sgas = NkB ln

(

V1

V0

)

(> 0).

Suppose partition divided the container in half, i.e., V1 = 2V0 ⇒ ∆Sgas = NkB ln 2

Microscopic view of entropy (→ Lecture 1.2): S = kB lnWwhere W = number of microstates corresponding to given macrostate.

⇒ ∆S = kB (lnWfinal − lnWinit) = kB ln (Wfinal/Winit)

Probability of given macrostate occuring ∝ W .

Probability that any 1 gas molecule is in left hand half of container =1

2.

Probability that any 2 gas molecules are in left hand half of container =1

1

2=

(

1

2

)2

.

Winit/Wfinal = probability that N gas molecules are in left hand half of container =

(

1

2

)N

.

Therefore ∆Sgas = kB ln 2N = NkB ln 2

Page 29: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.4 The Carnot cycle

2.4.1 Reversible, two-reservoir engine

The most basic theoretical heat engine:• is reversible (works just as well as a fridge),• has only two reservoirs (→ Lecture 2.2).

[Remember: the “system” here is the working substance,e.g., the gas in a gas turbine, the steam in a steam engine, etc.]

During reversible heat flow

• the temperature of the system stays constant (isothermal) and heat flows to/from a reser-voir at the same temperature, or

• the temperature of the system changes by a finite amount, requiring an infinite numberof infinitesimally different reservoirs.

This is because reversible heat flow only takes place between objects at the same temperatureor at infinitesimally different temperatures (→ Lecture 2.1)

In our theoretical engine the temperature of the system must stay constant when heat flows,otherwise we would need an infinite number of reservoirs.

During Qin (= QH) system stays on T = TH isotherm.During Qout (= QC) system stays on T = TC isotherm.

These two isotherms must be connected to make a closed cycle.During the connecting processes T changes (from TH to TC or vice versa),⇒ Q = 0 during these processes because we only have 2 reservoirs.

⇒ the connecting processes must be adiabats.

The complete cycle, formed by 2 isotherms and 2 adiabats is a...

Page 30: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.4.2 Carnot cycle

Assuming the system is a gas, for which P and V are appropriate state variables, the PV

diagram of a Carnot cycle has the basic form shown.

A → B: isothermal expansion, heat Qin = QH from hot reservoir at TH .B → C: adiabatic expansion.C → D: isothermal compression, heat Qout = QC to cold reservoir at TC .D → A: adiabatic compression.

!! Take care !! Here the subscript C can refer to the cold reservoir (e.g., TC , QC)or to point C on the cycle (e.g., VC would be the volume of the system at that point in thecycle). By a lucky coincidence the temperature of the system at point C is TC = temperatureof the cold reservoir.

The Carnot cycle shares the basic properties of all two-reservoir engines (→ Lecture 2.2):• the net work done in one cycle (WE) is the area enclosed on the PV diagram,

• the efficiency is given by η = 1−QC

QH

.

2.4.3 Efficiency of a Carnot engine with an ideal gas

Ideal gas: T = constant ⇒ U = constant (→ Lecture 1.2)

Therefore ∆UA→B = 0.

⇒ QH −

∫ B

A

PdV = 0 (1st law).

⇒ QH =

∫ B

A

(

NkBT

V

)

dV = NkBTH

∫ B

A

dV

V= NkBTH ln

(

VB

VA

)

.

Similarly ∆UC→D = 0.

⇒ −QC −

∫ D

C

PdV = 0 (1st law; note that QC is heat out of system, hence the − sign).

⇒ QC = −NkBTC ln

(

VD

VC

)

= NkBTC ln

(

VC

VD

)

.

Page 31: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

⇒QC

QH

=TC ln (VC/VD)

TH ln (VB/VA). (2.4.3.1)

TV γ−1 = constant along a reversible adiabat in an ideal gas (→ Lecture 1.4).

B → C: THVγ−1

B = TCVγ−1

C

D → A: THVγ−1

A = TCVγ−1

D

Divide:

(

VB

VA

)γ−1

=

(

VC

VD

)γ−1

⇒VB

VA

=VC

VD

.

Therefore Eq. 2.4.3.1 reduces to:QC

QH

=TC

TH

(2.4.3.2)

and the efficiency (η = 1−QC/QH) is given by

ηCarnot = 1−TC

TH

. (2.4.3.3)

2.4.4 TS diagram

A reversible process must be quasi-static. Therefore it can be plotted on a PV diagram.

Alternatively it can be plotted on a TS diagram.

Isotherms are just lines of constant T on a TS diagram.

In a reversible process dQ = TdS (→ Lecture 2.3).

Lines of constant S (isentropes) on a TS diagram are therefore adiabats.

The area under a curve on a PV diagram is the work done (→ Lecture 1.4).

The area under a curve on a TS diagram also has a physical meaning.

Page 32: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Area under curve =

∫ Sfinal

Sinit

TdS =

dQ = Q = heat into the system.

Plotted on a TS diagram a Carnot cycle is a rectangle

Area under A → B = Qin = QH .Area under C → D = Qout = QC .Area enclosed by cycle = QH −QC = WE (→ Lecture 2.2)= net work done by system (true for any cycle).

Page 33: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.5 Carnot’s theorem

2.5.1 Proof of the theorem, part 1

This proof is similar to the proof of the equivalence of the Kelvin and Clausius statementsof the 2nd law (→ Lecture 2.3).

Carnot engine (→ Lecture 2.4): 2 reservoir reversible engine.

Assume our Carnot engine has an efficiency ηCarnot, and in 1 cycle takes in heat QH fromthe hot reservoir, expels heat QC to the cold reservoir, and does net work W = ηCarnotQH

(definition of efficiency, → Lecture 2.2).

The Carnot engine is reversible. Run in reverse it is a Carnot fridge.In 1 cycle: heat QH out, heat QC in, and net work W in.

We now run our Carnot fridge with the work produced by a second engine operating betweenthe same 2 reservoirs.

This new engine has an efficiency η∗, and in 1 cycle it takes in heat Q∗

Hfrom the hot reservoir,

expels heat Q∗

Cto the cold reservoir, and does net work W ∗.

We connect it to our Carnot fridge and adjust it so that W = W ∗.

Page 34: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

The net effect of the Carnot fridge + engine combination is:

i.e., a device which in 1 cycle transfers heat Qnet = Q∗

H−QH from the hot reservoir to the

cold one.

But Q∗

H=

W ∗

η∗=

W

η∗= QH

ηCarnot

η∗⇒ Qnet = QH

(

ηCarnot

η∗− 1

)

.

• η∗ > ηCarnot

⇒ Qnet < 0

⇒ sole effect is heat from cold reservoir to hot one ⇒ violates 2nd law

⇒ impossible.

• η∗ = ηCarnot

⇒ Qnet = 0

⇒ after 1 cycle no net effect, everthing is back in its initial state

⇒ reversible.

• η∗ < ηCarnot

⇒ Qnet > 0

⇒ sole effect is heat from hot reservoir to cold one ⇒ 2nd law OK, but to restore reservoirsto their initial state would need external device to transfer Qnet back

⇒ irreversible.

Thus we see that the efficiency of the second engine must satisfy the condition η∗ ≤ ηCarnot,⇒ no heat engine operating between two reservoirs can be more efficient than a

Carnot engine. This is the 1st part of Carnot’s theorem.

Page 35: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.5.2 Proof of the theorem, part 2

Suppose the second engine used in the proof of Carnot’s theorem was, in fact, another Carnotengine. It too would be reversible, and we could run either engine as the fridge.

Reversing engine 1 ⇒ η2 ≤ η1.Reversing engine 2 ⇒ η1 ≤ η2.

These two conditions can only be satisfied if η1 = η2

⇒ all Carnot engines operating between the same two reservoirs have the same

efficiency. This is the 2nd part of Carnot’s theorem.

Carnot engine with ideal gas as working substance: ηCarnot = 1−TC

TH

(→ Lecture 2.4).

This equation therefore must apply to any Carnot engine.

There is a very simple alternative proof of this result using entropy.

The heat in/out (QH and QC) in 1 cycle of any Carnot engine can be represented as areason TS diagrams (→ Lecture 2.4).

Comparing these areas we seeQC

QH

=TC

TH

.

The efficiency of any heat engine is given by η = 1−Qout

Qin

(→ Lecture 2.2).

Since Qin = QH and Qout = QC , we find that the efficiency of any Carnot engine is

ηCarnot = 1−TC

TH

. (2.5.2.1)

Our first proof of this result, involving a thought experiment with engines and fridges, did not use entropy.We could therefore ask if, having proved the result without entropy, we can use it to deduce that entropymust exist. We return to this interesting question in Lecture 3.1.

2.5.3 Implications of Carnot’s theorem

We have shown that the 2nd law imposes an upper limit on the efficiency of any 2-reservoirengine, given by Eq. 2.5.2.1.

This is a remarkable result. It is completely independent of the mechanical details or choiceof working substance in any particular engine.

Page 36: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

For instance, consider a power station in which the hot reservoir is a furnace at TH = 800 Kand the cold reservoir is the outside environment at TC = 300 K.

No matter what technological improvements we make, or what new working substances weuse, the 2nd law tells us that the efficiency can never exceed 62.5%.

Carnot’s theorem also allows us to define an absolute thermodynamic temperature scale.

Traditionally a temperature scale is defined in terms of a property of some given material which changes withtemperature. For instance, it is found experimentally that the pressure of a given fixed volume of dilute gasis always the same if it is placed in thermal contact with objects at the same temperature (how we detectif two objects are at the same temperature before we have defined a temperature scale will be discussedin Lecture 3.1). We could therefore define the temperature of a given object as the ratio of the measuredpressure, P , of the gas when placed in thermal contact with the object, and the measured pressure whenplaced in thermal contact with some reference object.

A convenient choice of reference object is water at its triple point. If we denote the measured pressureof the fixed volume of gas when in thermal contact with this reference object by PTP then we can definethe temperature of any other object as T = 273.16(P/PTP ). The constant volume gas thermometer, whichemploys this approach, is one of the devices used in establishing the international temperature calibrationstandard ITS-90.

Notice that we have actually used two reference points: the triple point of water and a zero-point whereP = 0. As we know, very dilute gases behave as ideal gases, so P → 0 at absolute zero.

Alternatively, we can define a theoretical thermodynamic temperature in terms of the heat in and out of aCarnot engine. We use as our 2 reservoirs (1) water at its triple point, and, (2) the object whose temperaturewe wish to find. Any Carnot engine has the property that in 1 cycle (TC/TH) = (QC/QH). Thus if wemeasure the heat to/from the two reservoirs in one cycle of our Carnot engine, then we can define thetemperature of the object to be T = 273.16(|Q2|/|Q1|), where we have defined the temperature of the triplepoint of water to be exactly 273.16 K.

The advantage of this as a theroretical definition of absolute temperature is that it is equally valid for anyCarnot engine, i.e., it is independent of the working substance.

Page 37: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

2.6 The arrow of time

2.6.1 Entropy and equilibrium

• dQ = 0 for an isolated system.• dS = dQ/T in a reversible process.

⇒ The entropy of an isolated system is constant in a reversible process.

• dS > dQ/T in an irreversible process.• All real processesd are irreversible.

⇒ The entropy of an isolated system increases in any real process.

The system can have many different parts which interact with each other. Even though thetotal entropy (= the sum of the entropies of all the parts) must increase in any real process,the entropy of some parts might decrease while the entropy of other parts increases.

Much of this lecture involves a detailed thermodynamic analysis of a simple isolated systemwhich is initially not in equilibrium: a fixed volume of gas initially at temperature T0, placedin thermal contact with reservoir at TR > T0.

System = gas + reservoir

An irreversible process takes place (the temperature of the gas increases).

Nothing else is involved in this process: the gas + reservoir form an isolated system.

During the process the total entropy Stot = Sgas + Sres increases.

Eventually Stot reaches its maximum value ⇒ process stops.

But we know that the process stops when the system reaches equilibrium.

For an isolated system equilibrium corresponds to a state of maximum entropy.

2.6.2 Heat flow across a finite temperature difference

To analyze this situation we need to be able to find the entropy changes involved when heatflows from the reservoir to the gas.

The reservoir and gas have different temperatures ⇒ irreversible process (→ Lecture 2.1).

Page 38: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Heat Q into gas⇒ T rises. Suppose T reaches a value T1 then Q =

∫ T1

T0

CV dT = CV (T1 − T0)

(assuming CV = constant volume heat capacity, is independent of T ).

Irreversible ⇒ use thermodynamic trick (→ Lecture 2.3) to calculate ∆Sgas.

Reversible process between initial state of gas (V0, T0) and final state of gas (V0, T1): use aninfinite number of infinitesimally different reservoirs (→ Lecture 2.1)

At each reservoir dQ = heat into gas from reservoir = CV dT .

⇒ dSgas =dQ

T(where T = temperature of that particular reservoir).

⇒ ∆Sgas =

∫ T1

T0

CV dT

T= CV ln

(

T1

T0

)

.

The entropy of the reservoir also changes.

Initial state of reservoir (TR, Ures0

).Final state of reservoir (TR, U

res0

+Qres), where Qres = heat into the reservoir.

For any reversible process between these two states the entropy change would be ∆Sres =Qres

TR

.

Thermodynamic trick ⇒ same ∆Sres if the process is irreversible.

For our situation the 1st law (i.e., energy conservation) ⇒ Qres = −Q = − heat into gas.

Therefore ∆Sres = −CV (T1 − T0)

TR

.

2.6.3 Thermal equilibrium

∆Stot = ∆Sgas +∆Sres = CV ln

(

T1

T0

)

−CV (T1 − T0)

TR

What temperature does the gas reach at equilibrium? i.e., what T1 maximizes entropy?

d∆Stot

dT1

=CV

T1

−CV

TR

= 0 when T1 = TR.

d2∆Stot

dT 2

1

= −CV

T 2

1

< 0, i.e., T1 = TR at maximum of Stot.

We have deduced that at equilibrium the gas reaches the same temperature as the reservoirsimply by imposing the conditions• energy is conserved,• entropy is maximized.

2.6.4 Entropy changes

Define δT = TR − T0 = initial temperature difference between the gas and the reservoir.

∆Sgas = CV ln

(

T1

T0

)

= CV ln

(

TR

T0

)

= CV ln (1 + x), where x =δT

T0

.

∆Sres = −CV (T1 − T0)

TR

−CV (TR − T0)

T0 + δT= −CV δT (T0 + δT )−1 = −CV x(1 + x)−1.

Page 39: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Now suppose δT << T0. i.e., x << 1.

∆Sgas ≃ CV

(

x−x2

2+ · · ·

)

> 0

∆Sres ≃ −CV x (1− x+ · · ·) < 0

∆Stot ≃ CV

(

x−x2

2− x+ x2

)

= CV

x2

2> 0

Entropy of the gas increases.Entropy of the reservoir decreases.Total entropy increases.

[Can show that this is true for arbitrary δT → Problem Sheet 4.]

δT → 0: ∆Sgas → CV x, ∆Sres → −CV x

⇒ ∆Stot → 0 ⇒ process is reversible⇒ heat flow between objects with infinitesimal temperature difference is reversible.

2.6.5 Energy degradation

Consider two possible ways in which an ideal gas can go from an initial state (V0,T0) to afinal state (V1,T0), where V1 > V0, i.e., the gas expands but its final temperature is the sameas its initial temperature.

1. Reversible, isothermal expansion (→ Lecture 2.1)

Gas is in thermal contact with reservoir.

Total entropy change ∆Stot = ∆Sgas +∆Sres = 0 (reversible process).

Work done by gas = NkBT0 ln

(

V1

V0

)

(→ Assessed Problem Sheet 2).

We could use this energy for some useful purpose (generate electricity, move a plane, etc).

2. Adiabatic free expansion (→ Lecture 2.3)

The gas is the only thing involved in this process

⇒ ∆Stot = ∆Sgas = NkB ln

(

V1

V0

)

(→ Lecture 2.3).

⇒ ∆Stot > 0 (irreversible process).

The gas expanded without doing any work. Compared to the reversible, isothermal expan-

sion we wasted the opportunity for extracting an amount of useful work = NkBT0 ln

(

V1

V0

)

Energy has been degraded. To recover the opportunity for the gas to do some work,we would need to compress it back to volume V0, which would require at least the sameamount of work to be done on the gas.

In an irreversible process ∆Stot ∝ energy degradation.

Page 40: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

2.6.6 The arrow of time

In any real (irreversible) process dSthings >dQthings

T, where

dQthings = heat into all the things involved in the process from the rest of the universe= 0 since the rest of the universe is not involved in the process.

The total change in entropy of the things involved ∆Sthings =

dSthings > 0.

The entropy of the universe always increases in real processes.

This defines the arrow of time. Events occur in the direction of increasing entropy.

Page 41: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.1 Classical thermodynamics

3.1.1 Scope of this lecture

Thermodynamics is a purely macroscopic theory. Nothing illustrates this point more vividlythan the fact that the whole thermodynamic formalism was developed in the nineteenthcentury, before people were even sure that atoms existed. It is hard to believe that a so-phisticated theory involving concepts like internal energy can be derived without knowinganything about the microscopic world. Yet that is exactly what Carnot, Kelvin, Clausiusand others managed to do, and it represents one of the most impressive achievements ofclassical physics. Anyone studying thermodynamics should have some awareness how thiswas done, partly because of its historical importance, and partly because it demonstratesthat physics need not be constrained by the fetters of the reductionist world-view.

In this lecture we therefore start again and go back over what we have already done, butfollow a purely macroscopic approach, carefully avoiding any reference to the underlyingmechanism. Done this way the subject is usually referred to as classical thermodynamics.

The main purpose of this lecture is to illuminate the subject and provide extra insight. Theonly thing in it which forms part of the examinable, core course material is the Clausiusinequality (Sec. 3.1.7, below). The lecture will therefore depart from the usual format, andbe given on Powerpoint. For this reason the notes go over the usual 4 page limit.

3.1.2 Preliminaries

To start we assume that we can measure mechanical properties: mass, length and force.

Example: for a fixed mass of gas we can measure V = volume and P = pressure.

Alternative properties could be measured for other systems, e.g., in the case of a stretched metal wire wecould measure L = length and J = tension.

We can also measure W = work done on system, e.g., do the work with a mechanism drivenby a mass m which falls through a distance h; work done = mgh.

Initially we can measure V , P , W .

3.1.3 The zeroth law and temperature

Zeroth law of thermodynamics: if object A is in thermal equilibrium with object

B, and object B is in thermal equilibrium with object C, then A is in thermal

equilibrium with C.

How do we tell if two systems are in thermal equilibrium?

Example: object B is a fixed volume of gas in a container with a pressure gauge. Place it incontact with object A. If they are not in thermal equilibrium, PB will change. EventuallyPB settles down to a constant value ⇒ A and B are in thermal equilibrium.

Page 42: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Now place B in contact with object C. If PB does not change ⇒ A and C are in thermalequilibrium.

Zeroth law ⇒ can define a new (macroscopic) property called temperature such that, if twoobjects are in thermal equilibrium they have the same value of this property.

We could use PB to ascribe a value to this new property; T = 273.16PB/PTPB , where P TP

B =pressure measured when in thermal equilibrium with water at its triple point

Note that this purely macroscopic approach provides a way of measuring T , but doesn’tprovide any insight into what T is.

The microscopic approach provides good insight (T describes way particles are distributed with respect toenergy), but doesn’t provide a way of measuring T .

We can now measure V , P , W , T .

3.1.4 The first law and internal energy

Certain materials act as thermal insulators. Consider two identical vol-umes of gas, A and B, at different temperatures (i.e., PA 6= PB). A ther-mally insulating material prevents them reaching thermal equilibrium.

Any process which takes place on a system enclosed in thermal insulationis called adiabatic.

Consider an object initially in state P0, V0, T0 [remember: we can measurethese properties].

We enclose the object in thermal insulation and do some work [remember: we can alsomeasure work] as a result of which the object ends up in state P1, V1, T1.

Experimentally we find the following:First law of thermodynamics: to take a given object from a given initial state to

a given final state adiabatically always requires the same amount of work.

Example: assume the object is a thermally insulated container of gas, and do work eitherby pushing in a piston, or by stirring the gas with a paddle wheel.

First law ⇒ we can define a new (macroscopic) property, internal energy, U , such that thechange in this property is the adiabatic work done.

Note that this purely macroscopic approach provides a way of measuring ∆U , but doesn’tprovide any insight into what U is.

The microscopic approach provides good insight (U = total energy of all the particles), but doesn’t providea way of measuring ∆U .

We can now measure V , P , W , T , ∆U .

Page 43: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.1.5 Heat

Now suppose we measure the work required to take the system from the given initial stateto the given final state(1) with thermal insulation (i.e., adiabatically): work required = W1.(2) without thermal insulation: work required = W2.

In general W1 6= W2. Define: Q = heat into system = W1 −W2.

Note that this purely macroscopic approach provides a way of measuring Q, but doesn’tprovide any insight into what Q is.

The microscopic approach provides good insight (Q = energy transferred by random particle motion), butdoesn’t provide a way of measuring Q.

We can now measure V , P , W , T , ∆U , Q.

3.1.6 Carnot cycle

We are now in a position to be able to construct a heat engine with two reservoirs, andwhich runs in a Carnot cycle, i.e. a single cycle has the following 4 stages:

(1) Place the working substance in thermal contact with the hot reservoir (at temperatureTH), and allow it to undergo a frictionless, quasi-static expansion. Heat QH enters theworking substance from the reservoir.

(2) Thermally insulate the working substance and allow it to undergo a further frictionless,quasi-static expansion (this part of the cycle is adiabatic, by definition).

(3) Place the working substance in thermal contact with the cold reservoir (at temperatureTC), and allow it to undergo a frictionless, quasi-static compression. Heat QC leavesthe working substance and goes into the reservoir.

(4) Thermally insulate the working substance and allow it to undergo a further frictionless,quasi-static compression (this part of the cycle is adiabatic, by definition).

After 1 cycle the working substance has returned to its original state (but the reservoirshaven’t). The 1st law ⇒ the net work done by the working substance is WE = QH −QC .

Note: WE could be negative, i.e., net work is done on the working substance. In this casewe would be running the engine in reverse, as a fridge, and in the above description of thecycle the words expansion and compression should be interchanged.

If we use an ideal gas as the working substance (→ Lecture 2.4) ⇒QC

QH

=TC

TH

.

This equation is valid for QH and QC either positive (engine) or negative (fridge).

[Of course we know that this equation is valid for any Carnot cycle, with any workingsubstance. However, the proof of that result follows from the 2nd law, which we haven’t yetencountered in our development of classical thermodynamics, in this lecture.]

Page 44: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.1.7 The second law and the Clausius inequality

We now construct a theoretical device for converting heat into work. This device includes asmall Carnot engine as one of its components. We can derive a very important thermody-namic result, the Clausius inequality, by insisting that our device does not violate:

Second law of thermodynamics (Kelvin statement): no process is possible in

which the sole effect is the absorption of heat from a reservoir and its complete

conversion into work.

The main part of our device is some arbitrary system which undergoes a cyclic process (main

cycle) comprising many separate stages;

Stage 1 Place the system in thermal contact with a reservoir at temperature T1. The systemtakes in heat δQ1 from the reservoir, and does some work δW1. As a result it movesto another equilibrium.

Stage 2 Place the system in thermal contact with a reservoir at temperature T2. The systemtakes in heat δQ2 from the reservoir, and does some work δW2. As a result it movesto another equilibrium.

and so on. Note: some of the δQi’s and δWi’s could be negative.

A 3-stage cycle is shown schematically below, although, of course, we can envisage a cyclewith many more than 3 stages.

At the end of the main cycle the system has returned to its initial state, and

∆Usystot =

i

(δQi − δWi) = 0,

i.e., the total work done by the system is W sys =∑

i

δWi =∑

i

δQi.

If W sys > 0 we might appear to have violated the 2nd law, but this is not neccessarily thecase. The Kelvin statement specifically forbids the conversion of heat from a single reservoirinto work. If we have more than one reservoir the heat flow from some of them can benegative (δQi < 0). In this case we can have W sys > 0 and still satisfy Kelvin (e.g., in any

Page 45: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

two-reservoir engine). Thus before making use of the 2nd law we “top-up” all the reservoirswith heat from a single external reservoir.

This is where the Carnot engine comes in. We use it to transfer heat from the externalreservoir (at temperature T ∗) to each of reservoirs 1, 2, · · · in turn, and restore them to

their original states. This process is shown schematically for the ith reservoir below.

For each reservoir we run the Carnot engine so that it deposits exactly the same amount ofheat, δQi, which had previously been transferred to the arbitrary system. This will requirean amount of heat δQ∗

i from the external reservoir, and will result in the Carnot enginedoing some work δW ∗

i = δQ∗

i − δQi. For some reservoirs this will mean running the Carnotengine in reverse (⇒ δQ∗

i < 0 and δW ∗

i < 0), but that is not a problem.

Each time we use our Carnot engine we knowδQi

δQ∗

i

=Ti

T ∗

, i.e., δQ∗

i = T ∗

δQi

Ti

At the end of the whole process (main cycle plus reservoir top-ups) the arbitrary systemand all the reservoirs apart from the external one are back in their original states. The total

work done by the system is W sys =∑

i

δQi, while the total work done by the Carnot engine

is WE =∑

i

δW ∗

i =∑

i

(δQ∗

i − δQi). Thus the total work done by the composite device is

Wtot = W sys +WE =∑

i

δQi +∑

i

(δQ∗

i − δQi) =∑

i

δQ∗

i = T ∗

i

δQi

Ti

.

Now we can make use of the 2nd law: Wtot ≤ 0, i.e.,∑

i

δQi

Ti

≤ 0.

• If∑

i

δQi

Ti

= 0 then Wtot =∑

i

δQ∗

i = 0, i.e., the external reservoir (along with everthing

else involved) has returned to its original state ⇒ process was reversible.

• If∑

i

δQi

Ti

< 0 then Wtot =∑

i

δQ∗

i < 0, i.e., net heat flow into the external reservoir

⇒ process was not reversible (to get everthing involved back to its original state we needto extract this heat from the external reservoir ⇒ involve changes in some other device).

In limit of infinite number of infinitesimally different reservoirs → Clausius inequality:

dQ

T

{

= 0, for a reversible cycle

< 0, for an irreversible cycle

Page 46: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.1.8 Entropy

We made no assumptions about the form of the main cycle which our arbitrary system was

taken round. Thus any cycle which is reversible will satisfy the condition

dQ

T= 0.

In the Clausius inequality T = reservoir temperature. But if the infinitesimal heat flowdQ is reversible the system and reservoir must be at the same (or infintesimally different)temperature (→ Lecture 2.1). Thus T can also be taken as the system temperature.

All this implies that dQrev/T (where dQrev is a reversible infinitesimal heat flow) must be theinfinitesimal change in some new state variable of the system, S, which we will call entropy.

Clausius inequality ⇒ round any reversible cycle

dS = 0.

Consider an irreversible cycle consisiting of an irreversible process from state A to state B,followed by a reversible process from B back to A.

Clausius inequality ⇒

A→B→A

dQ

T< 0 ⇒

∫ B

A

(

dQ

T

)

irrev

+

∫ A

B

(

dQ

T

)

rev

< 0.

But

∫ A

B

(

dQ

T

)

rev

=

∫ A

B

dS = SA − SB ⇒

∫ B

A

(

dQ

T

)

irrev

< SB − SA.

Applying this result to an infinitesimal irreversible process we obtain:dQ

T< dS

i.e., the Clausius inequality can be re-expressed as:

dS

{

= dQ/T, in a reversible process

> dQ/T, in an irreversible process(3.1.8.1)

This is the mathematical form of the 2nd law.

Note that this purely macroscopic approach provides a way of measuring ∆S: in any re-

versible process ∆S =

dQ

T. However, it doesn’t provide any insight into what S is.

The microscopic approach provides good insight (S = kB lnW → Lecture 1.2), but doesn’t provide a wayof measuring ∆S.

We can now measure V , P , W , T , ∆U , Q, ∆S.

Page 47: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.2 The fundamental equation

3.2.1 The first law revisited

For a reversible process: dQ = TdS (→ Lecture 3.1) and dW = −PdV (→ Lecture 2.1).

So, for a reversible process the 1st law becomes: dU = TdS − PdV .

BUT U , T , S, P and V are all state variables. If we change S and V by given amounts dSand dV , then the corresponding change in internal energy, dU , will be the same whether theprocess is reversible or irreversible,⇒ this form of the 1st law must be valid even for an irreversible process.

dU = TdS − PdV Fundamental equation of thermodynamics (3.2.1.1)

For an irreversible process: dQ < TdS (→ Lecture 3.1) and dW > −PdV (→ Lecture 2.1).When they are added the differences cancel.

The fundamental equation is always true for a closed system (N = constant) for which P

and V are the appropriate basic state variables.

We will use this equation a great deal in the rest of the course.

3.2.2 Entropy of an ideal gas

Fundamental equation ⇒ dS =1

T(dU + PdV ).

Ideal gas: dU =nd

2NkBdT (→ Lecture 1.4), P =

NkBT

V

⇒ dS =nd

2NkB

dT

T+NkB

dV

V⇒ S = S0 +

nd

2NkB lnT +NkB lnV

where S0 is an integration constant.

3.2.3 The fundamental equation in action

Write U = U(S, V ) ⇒ dU =

(

∂U

∂S

)

V

dS +

(

∂U

∂V

)

S

dV .

Compare with fundamental equation ⇒ T =

(

∂U

∂S

)

V

and P = −

(

∂U

∂V

)

S

.

Note: in this case we choose S and V as the 2 independent state variables because we wantto compare with the fundamental equation, which has terms with dS and dV on the righthand side.

Page 48: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Use relationship for mixed 2nd derivatives (→ Lecture 1.3):∂2U

∂V ∂S=

∂2U

∂S∂V

(

∂T

∂V

)

S

= −

(

∂P

∂S

)

V

.

This is the first Maxwell relation (there are 3 more).

The 3 equations we have just derived, namely T =

(

∂U

∂S

)

V

, P = −

(

∂U

∂V

)

S

and

(

∂T

∂V

)

S

= −

(

∂P

∂S

)

V

,

follow directly from the fundamental equation. They are therefore always true. It would be very hard, if notimpossible, to derive them, and demonstrate their general validity, using a microscopic theory. But once weknow the fundamental equation the thermodynamic proof is simplicity itself.

3.2.4 Thermodynamic potentials

Internal energy is one of four thermodynamic potentials. These are four extensive statevariables, all of which have the dimensions of energy. They will be discussed more fully inthe next lecture. Here we state their definitions and derive some mathematical results.

The thermodynamic potentials are:

U = internal energy,

H = enthalpy = U + PV ,

F = Helmholtz function = U − TS,

G = Gibbs function = U + PV − TS.

Corresponding to each of the thermodynamic potentials there is a different form of thefundamental equation:

• dU = TdS − PdV ,

• dH = dU + PdV + V dP ⇒ dH = TdS + V dP ,

• dF = dU − TdS − SdT ⇒ dF = −SdT − PdV ,

• dG = dU + PdV + V dP − TdS − SdT ⇒ dG = −SdT + V dP .

In Sec. 3.2.3, above, we derived equations for T and P , together with the first Maxwellrelation, from the form of the fundamental equation involving dU . We can apply the sameprocedure to the other forms of the fundamental equation.

The form of the fundamental equation for dH has terms involving dS and dP on the righthand side. Choose S and P as our 2 independent state variables:

H = H(S, P ) ⇒ dH =

(

∂H

∂S

)

P

dS +

(

∂H

∂P

)

S

dP .

Compare with dH = TdS + V dP ⇒ T =

(

∂H

∂S

)

P

and V =

(

∂H

∂P

)

S

.

∂2H

∂P∂S=

∂2H

∂S∂P⇒ (Maxwell relation 2):

(

∂T

∂P

)

S

=

(

∂V

∂S

)

P

.

Page 49: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

The form of the fundamental equation for dF has terms involving dT and dV on the righthand side. Choose T and V as our 2 independent state variables:

F = F (T, V ) ⇒ dF =

(

∂F

∂T

)

V

dT +

(

∂F

∂V

)

T

dV .

Compare with dF = −SdT − PdV ⇒ S = −

(

∂F

∂T

)

V

and P = −

(

∂F

∂V

)

T

.

∂2F

∂V ∂T=

∂2F

∂T∂V⇒ (Maxwell relation 3):

(

∂S

∂V

)

T

=

(

∂P

∂T

)

V

.

Using the same method with the equation for dG we find: S = −

(

∂G

∂T

)

P

, V =

(

∂G

∂P

)

T

,

and (Maxwell relation 4):

(

∂S

∂P

)

T

= −

(

∂V

∂T

)

P

.

[You will have an opportunity to derive these 3 equations on Problem Sheet 5.]

3.2.5 Energy equation

Using the equation for P obtained in the previous section, we find

P = −

(

∂F

∂V

)

T

= −

{

∂V(U − TS)

}

T

= −

(

∂U

∂V

)

T

+ T

(

∂S

∂V

)

T

.

Use the 3rd Maxwell relation to obtain:

(

∂U

∂V

)

T

= T

(

∂P

∂T

)

V

− P . (3.2.5.1)

This is the thermodynamic energy equation.

Apply this equation to a system for which PV ∝ T (i.e., an ideal gas).

In this case

(

∂P

∂T

)

V

=P

T, and the energy equation ⇒

(

∂U

∂V

)

T

= 0.

Integrating⇒ U = U(T ), i.e., internal energy of an ideal gas depends only on its temperature.

This is a classic example the thermodynamic approach. Although the energy equation is completely generaland accurate, on its own it doesn’t tell us very much. However, if we give it some small scrap of informationabout something (e.g., we have a gas for which PV ∝ T ) it can process the information to yield other,unexpected, facts about the thing. This is why I use the phrase “thermodynamic machine”: the mathematicalformalism of thermodynamics allows us to discover new properties of things once we know a small amountabout them. Notice that the “machine” doen’t care about the origin of the information which was fed into it.In our example, we could have obtained the relationship PV ∝ T from kinetic theory, or from experimentswith dilute gases, or it might just be a made-up property of a hypothetical substance.

Page 50: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.2.6 Other systems

The infinitesimal heat flow in a reversible process is always dQrev = TdS.

For a gas, in which the appropriate basic state variables are P and V , the infinitesimal workdone in a reversible process is dWrev = −PdV .

In other systems we have other basic state variables, and different expressions for dW .

For instance, for a stretched metal wire or elastic band the infinitesimal work done in areversible process is dWrev = JdL, where J = tension and L = length.

In this case, therefore, the fundamental equation becomes dU = TdS + JdL.

All the equations derived from the fundamental equation for a gas can be applied directlyto a stretched metal wire/elastic band simply by making the substitutions:P → −J and V → L.

For instance, using the fundamental equation in the form dU = TdS − PdV we obtained the

equations P = −

(

∂U

∂V

)

S

and

(

∂T

∂V

)

S

= −

(

∂P

∂S

)

V

(→ Section 3.2.3, above).

Without doing any more maths we can immediately write down the following equations for

a stretched metal wire/elastic band: J =

(

∂U

∂L

)

S

and

(

∂T

∂L

)

S

=

(

∂J

∂S

)

L

.

Trying to derive these equations from a microscopic theory of solid objects under tension would be anextremely formidable challenge.

Page 51: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.3 Thermodynamic potentials

3.3.1 What do they mean?

The thermodynamic potentials were introduced in Lecture 3.2. They are defined as follows:

U = internal energy,

H = enthalpy = U + PV ,

F = Helmholtz function = U − TS,

G = Gibbs function = U + PV − TS.

What do these state variables “mean”? From a microscopic perspective the internal energyis the total energy of all the particles of the system. The other three, however, do not havesimple microscopic interpretations.

It is best to regard H, F , and G as highly useful, purely macroscopic variables. It is oftenmore convenient to formulate the analysis of a given situation in terms of one of thesefunctions instead of the microscopically more meaningful internal energy.

In this lecture we briefly consider a few situations of this kind.

3.3.2 The Joule-Thomson process

This process is used to cool and liquify gases.

The gas is forced through a porous plug (e.g., a barrier with a small hole) by a pressuredifference, i.e., the pressure is lower after the plug (P2) than before it (P1).

The internal energy of the gas changes because work is done on the gas pushing it throughthe plug, and then the gas does work on the gas ahead of it, pushing it away.

The internal energy is increased on one side of the plug (work done on the gas) and then reduced on theother (work done by the gas). So it is not obvious that this process produces a decrease in temperaturerather than an increase. In fact, it is only at low temperatures that the temperature is reduced. Above athreshold value, called the inversion temperature, the Joule-Thomson process produces a temperature rise.

Consider a parcel of gas, of fixed mass, which is forced through the plug by a pressuredifference produced by pistons on either side.1

Initially the gas is on the left hand side. It has a pressure P1, volume V1 and internal energyU1. The right hand piston is in contact with the plug.

1In fact the pressure difference is usually produced by a pump, but this does not affect the argumenthere.

Page 52: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Both pistons now move slowly to the right so as to maintain a steady flow. During thisprocess the pressures P1 and P2 remain constant, with P2 < P1.

Eventually all the gas is in the right hand side, with pressure P2, volume V2 and internalenergy U2, and the left hand piston is in contact with the plug.

The work done on the gas while on the left hand side is −

0

V1

P1dV = P1V1.

The work done on the gas after it reaches the right hand side is −

∫ V2

0

P2dV = −P2V2.

Assuming the process is adiabatic (Q = 0) the 1st law ⇒ ∆U = U2 − U1 = P1V1 − P2V2,

where U1 = internal energy before passing through the plug,and U2 = internal energy after passing through the plug.

Therefore U1 + P1V1 = U2 + P2V2, i.e., H1 = H2,

⇒ the enthalpy of the gas remains constant in the Joule-Thomson process.

The Joule-Thomson process is an example of a situation in which a fluid moves as a result of a force exertedon it by a pressure difference. In general fluids experience a force whenever there is a pressure gradient. Themotion of a fluid which is inviscid and incompressible (liquids and gases at low flow speeds) can be describedby Bernoulli’s principle: the speed, v, of a small parcel of the fluid satisfies the equationv2

2+ gz +

P

ρ= constant,

where g = acceleration due to gravity, z = height, and ρ = density of the fluid.

For a compressible fluid Bernoulli’s principle becomes:v2

2+ gz + h = constant,

where h = specific enthalpy (= enthalpy per unit mass).

In the Joule-Thomson process there is no change in height, and it is sufficiently slow that v ≃ 0⇒ enthalpy of fixed mass of gas = constant.

3.3.3 Enthalpy and heat

dH = TdS + V dP (→ Lecture 3.2). In reversible process: dQ = TdS

⇒ in reversible, constant P process: dQ = dH.

But dH = change in state variable.

Can calculate heat in/out in reversible, constant P process from Hinit and Hfinal.

Qout = heat out of system = −

dQ = −

TdS = −∆H

But −∆H = Hinit −Hfinal = decrease in H.

Can visualise the system’s enthalpy being extracted as heat.

For this reason H is sometimes called the heat content.

Page 53: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

But don’t forget that enthalpy is a state variable and heat isn’t. Two hundred years ago people believed thatheat was a fluid (called caloric) and that one could meaningfully talk about the amount of heat containedin something. We now know that the caloric theory of heat is rubbish. So when using the expression “heatcontent” bear in mind it is• a metaphor,• only applicable for a reversible, constant P process.

Chemical reactions are usually• reversible,• at constant P .

∆Hreaction = heat absorbed in reaction,

where ∆Hreaction = Hfinal −Hinit,and Hfinal = enthalpy of products, and Hinit = enthalpy of reactants,

i.e., ∆H > 0 ⇒ endothermic reaction, ∆H < 0 ⇒ exothermic reaction.

3.3.4 Free energy

dF = −SdT − PdV (→ Lecture 3.2). In reversible process: dW = −PdV

⇒ in reversible, isothermal process: dW = dF .

But dF = change in state variable.

Can calculate work done in reversible, isothermal process from Finit and Ffinal.

Wout = work done by system = −

dW =

PdV = −∆F

But −∆F = Finit − Ffinal = decrease in F .

Can visualise the system’s Helmholtz function being extracted as work.

For this reason F is sometimes called the free energy.

In irreversible process: dW > −PdV (→ Lecture 2.1).

Wout = −

dW <

PdV ⇒ Wout < −∆F ,

i.e., decrease in F = maximum work that can be extracted.

3.3.5 The link to the microscopic world

Statistical physics describes the macroscopic properties of matter in terms of the underlyingmicroscopic properties. The link between microscopic and macroscopic is provided by thepartition function, Z (→ Statistical Physics course, next term).

Once Z has been evaluated the macroscopic properties are found by:

• calculating the Helmholtz function using F = −NkBT lnZ (→ Statistical Physics),

• using the equations derived in Lecture 3.2:

S = −

(

∂F

∂T

)

V

, P = −

(

∂F

∂V

)

T

, U = F + TS = F − T

(

∂F

∂T

)

V

.

Page 54: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.3.6 Specific Gibbs function

Like the other thermodynamic potentials, G is an extensive state variable.

It is often more useful to define an intensive variable:g = specific Gibbs function = Gibbs function per unit mass = G/M ,where M = Nmp = mass of the system, mp = mass of 1 particle (atom, molecule, etc).

In a given equilibrium state:• value of g is independent of the amount of material,• G = Mg.

We can obtain intensive versions of the equations for V and S derived in Problem Sheet 5,by dividing throughout by M :

S = −

(

∂G

∂T

)

P

⇒ s = −

(

∂g

∂T

)

P

,

V =

(

∂G

∂P

)

T

⇒ v =

(

∂g

∂P

)

T

,

where s = S/M = specific entropy, and v = V/M = specific volume = ρ−1 (ρ = density).

Alternatively we can define the Gibbs function per particle: g = G/N = mpg.

[These equations will be used in Lectures 3.4 and 3.5.]

Page 55: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.4 Open systems

3.4.1 N 6= constant

So far we have considered closed systems in which N = constant.

The thermodynamic formalism is slightly modified if N 6= constant.

Examples

(1) Open container. N (= number of particles in container) can change.

(2) Phase changes (e.g., liquid condensing from gas). Two different phases can coexist, andNi (= number of particles of part in phase i) can change.

(3) Chemical reactions. Ni (= number of particles of ith component) changes during reac-tion.

In this course we consider situations (1) and (2).

3.4.2 One component, one phase

Closed system: N = constant ⇒ 2 independent state variables.

Fundamental equation: dU = TdS − PdV

Change S by dS and V by dV ⇒ change in U is specified.

Open system: N 6= constant ⇒ 3 independent state variables.

Fundamental equation: dU = TdS − PdV + µdN ,

µ = chemical potential

= increase in internal energy per particle added if dS = dV = 0.

Write fundamental equation in terms of Gibbs function: G = U + PV − TS (→ Lecture 3.2):

dG = −SdT + V dP + µdN

G = G(T, P,N) ⇒ dG =

(

∂G

∂T

)

P,N

dT +

(

∂G

∂P

)

T,N

dP +

(

∂G

∂N

)

T,P

dN

Comparing ⇒ µ =

(

∂G

∂N

)

T,P

Write G(T, P,N) = Ng(T, P ), where g = Gibbs function per particle

⇒ µ =

{

∂N(Ng)

}

T,P

= g = mpg

where mp = mass of 1 particle, and g = specific Gibbs function (→ Lecture 3.3).

Page 56: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Fermions are particles with half integer spin (e.g., electrons).

They obey the exclusion principle: 2 identical fermions cannot occupy the same quantum state.

Consider a system which consists of a collection of fermions.

At T = 0 they fill a range of energy levels up to εF = Fermi energy.

This is still approximately true at finite T if kBT << εF (e.g., for free electrons in a metal).

Suppose we add one extra fermion but otherwise leave the system unchanged (dS = dV = 0). The levels areunchanged but the internal energy of the system increases by εF since the extra fermion must have energyεF (all the lower levels are filled).

But µ = increase in internal energy per particle added under conditions of dS = dV = 0

⇒ for fermions µ = εF .

3.4.3 Phase transitions

We consider equilibrium phase transitions: system stays on the equilibrium PV T surface.

Everyday phase-transitions are usually close to this.

Examples of exceptions to this condition:(1) placing an ice cube in boiling water,(2) a supercooled (or supersaturated) vapour.

We consider an idealized phase transition from gas to liquid, reducing T at fixed P (e.g., thecondensation of water vapour at 1 atm as the temperature falls below 100◦C).

In order to ensure that we stay on the PV T surface we will do this process reversibly: keepingthe pressure of the gas/liquid constant with a piston, and slowly reducing T by placing itsuccessively in contact with an infinite sequence of infinitesimally different reservoirs.

The process follows a constant P path on the PV T surface.The projection of this path in the PV and the PT planes is shown on the next page.

Page 57: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

A → B: single phase (gas). Heat from system to reservoir, dQ = CPdT . T and V fall.

B → C: two phases coexist in equilibrium. Heat from system to reservoir, but dQ = ldM ,where l = latent heat and dM = mass of substance which has changed phase (i.e.,extracting heat dQ causes a mass of gas dM to condense to a liquid). V continues tofall as more gas condenses into liquid, but T stays constant.

C → D: single phase (liquid). Heat from system to reservoir, dQ = CPdT . T and V fall.

3.4.4 One component, two phases

Focusing on the phase transition itself (B → C), we see from the PT diagram that specifyingP (e.g., 1 atm) fixes T (e.g., 100◦C). Thus if we are at a phase transition there is an extraconstraint ⇒ only 1 independent state variable, instead of the usual 2.

But V changes during this stage ⇒ specifying P does not fix V .

So how many independent state variables are there?

In situations involving more than one co-existing phase or component it is much more con-venient to use only intensive variables.

P and T are intensive, but N , V , U , S, H, F and G are all extensive.

For each extensive variable we define a corresponding specific value, by dividing by the massM = Nmp, where mp = mass of single particle. The separate phases have separate values.

Chemists define their intensive varaibles with respect to moles, e.g., the molar enthalpy. In this course weuse specific values defined with respect to mass, e.g., the enthalpy per kg.

In general there are two independent intensive state variables,e.g., we could write u = specific internal energy = u(T, P ).

If 2 phases co-exist in equilibrium then specifying P gives T⇒ only one independent intensive state variable.

This is an example of Gibbs’ phase rule: the number of independent intensive state variables = nc − np +2,where nc = number of chemically independent components and np = the number of phases present.

The total value of any extensive property depends on the masses of each phase present, e.g.,U = M1u1 +M2u2, where M1 and u1 are the mass and specific internal energy of phase 1,and M2 and u2 are the mass and specific internal energy of phase 2.

Other specific values include:v = specific volume (= ρ−1), s = specific entropy, g = specific Gibbs function.

Page 58: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

During a phase change in which phases 1 and 2 coexist in equilibrium:

• P and T remain constant ⇒ intensive variables remain constant.

• v1 6= v2, e.g., density of water vapour < density of liquid water.

• s1 6= s2, e.g., specific entropy of water vapour > specific entropy of liquid water (supplyheat at constant T to vaporize water).

• M1 +M2 remains constant ⇒ dM1 = −dM2.

The change in internal energy can be written:dU = d(M1u1 +M2u2) = u1dM1 + u2dM2 = (u1 − u2)dM1.

We assumed that the process was reversible:dQ = TdS = Td(M1s1 +M2s2) = T (s1dM1 + s2dM2) = T (s1 − s2)dM1,dW = −PdV = −Pd(M1v1 +M2v2) = −P (v1dM1 + v2dM2) = −P (v1 − v2)dM1.

1st law ⇒ (u1 − u2)dM1 = T (s1 − s2)dM1 − P (v1 − v2)dM1

⇒ u1 − Ts1 + Pv1 = u2 − Ts2 + Pv2⇒ g1 = g2.

Page 59: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.5 Phase changes

3.5.1 First order phase changes

Consider a situation in which phases 1 and 2 co-exist in equilibrium.

Convenient to use only intensive variables (→ Lecture 3.4).

Divide extensive variables V , S, and G by mass M → (intensive) specific values v, s and g.

In general the specific variables for a given phase of a given substance depend on 2 indepen-dent intensive variables (e.g., P and T ).

But at a given pressure two phases only co-exist in equilibrium at a unique temperature⇒ at a phase transition the intensive variables are functions of a single independent variable(e.g., P ).

During the phase transition P and T remain constant.

Heat in/out changes the relative proportions of the two phases:dQ = ldM , where l = latent heat and dM = mass of substance which has changed phase.

dQ 6= 0 but dT = 0 ⇒ cP = constant pressure specific heat =CP

M=

dQ

MdT→ ∞.

At the given values of P and T the specific volumes, v, and specific entropies, s, of the twophases differ.

But the specific Gibbs functions, g, are the same (→ Lecture 3.4),

i.e., during a phase transition from phase 1 to phase 2• v1 6= v2,• s1 6= s2,• g1 = g2.

But v =

(

∂g

∂P

)

T

and s = −

(

∂g

∂T

)

P

(→ Lecture 3.3)

Solid/liquid, liquid/gas, solid/gas transitions are examples of first order phase transitions:

• T = constant during transition, and two phases co-exist,

• involve latent heat ⇒ cP → ∞,

• g is continuous,

(

∂g

∂P

)

T

and

(

∂g

∂T

)

P

are discontinuous.

The behaviour of various specific variables as the temperature changes through a 1st orderphase transition is shown schematically on the next page.

Page 60: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second order phase transitions also occur, e.g., onset of superconductivity: g and its first derivatives arecontinuous, but second derivatives are discontinuous.

3.5.2 Clausius-Clapeyron equation

This is an equation for the slope (i.e.,dP

dT) of the phase boundary P = P (T ).

Consider part of the phase boundary between phase 1 and phase 2.

A and B are two points on the phase boundary.

gA1= specific Gibbs function of phase 1 at point A.

gB1= specific Gibbs function of phase 1 at point B.

gA2= specific Gibbs function of phase 2 at point A.

gB2= specific Gibbs function of phase 2 at point B.

Page 61: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Write g = g(T, P ).

Then making small changes dT and dP the corresponding small change in g is

dg =

(

∂g

∂T

)

P

dT +

(

∂g

∂P

)

T

dP = −sdT + vdP ,

⇒ dg1 = −s1dT + v1dP and dg2 = −s2dT + v2dP ,

⇒ gB1= gA

1+ dg1 = gA

1− s1dT + v1dP

gB2= gA

2+ dg2 = gA

2− s2dT + v2dP .

Subtract: (gB2− gB

1) = (gA

2− gA

1)− (s2 − s1)dT + (v2 − v1)dP .

But gA2= gA

1and gB

2= gB

1,

⇒ Clausius-Clapeyron equation:dP

dT=

∆s

∆v

where ∆s = s2 − s1 and ∆v = v2 − v1

Can rewrite the Clausius-Clapeyron equation by noting that ∆s =∆S

M=

1

M

(

Qtrans

T

)

where Qtrans = heat absorbed/released during phase change,and T = temperature during phase change = constant.[Remember: we assumed the process was reversible → Lecture 3.4.]

Choosing phases 1 and 2 such that Qtrans > 0 (e.g., 1 = liquid, 2 = gas) then Qtrans = lM

⇒ ∆s =l

T⇒

dP

dT=

l

T∆v.

3.5.3 Liquid/gas phase boundary

∆v = v2 − v1 = vgas − vliquid.

The specific volume of the gas phase is nearly always much larger than the specific volumeof the liquid phase, ⇒ ∆v ≃ vgas.

The condition that vgas >> vliquid is valid everywhere along the liquid/gas phase boundary, except veryclose to the critical point.

Above the critical temperature there is no phase transition between liquid and gas. Increasing the pressureof the gas increases its density. Eventually it becomes so dense that it is “like” a liquid.

Page 62: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Assuming the gas can be treated as ideal: vgas =V

M=

V

Nmp

=kBT

mpPwhere mp = mass of 1 gas molecule.

⇒ ∆v−1 =mpP

kBT

⇒ Clausius-Clapeyron equation becomes:dP

dT=

llgmpP

kBT 2,

where llg = latent heat of vaporization.

Rearranging:dP

P=

llgmp

kB

dT

T 2

and integrating ⇒ lnP = C −llgmp

kBTwhere C = integration constant.

Assume that some point (P0,T0) on the phase boundary is known

(e.g., for water, could use P0 = 1 atm, T0 = 373 K) ⇒ C = lnP0 +llgmp

kBT0

.

Then for any other temperature T , the pressure at which the liquid/gas phase transition

takes place is given by: ln

(

P

P0

)

=llgmp

kB

(

1

T0

−1

T

)

.

Page 63: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.6 Thermodynamics of radiation

3.6.1 Photon gas

Any object at finite T emits photons,⇒ an “empty” container with a vacuum inside is actually full of photons.

We can regard this as a photon gas. This a relativistic, quantum system, but thermodynamicscan still be applied to it.

Photon gases and ideal gases have many properties in common. In both systems the particles:

• don’t collide,• have a distribution of energies,• have an isotropic distribution of directions,• exert pressure on walls of container (photon gas exerts radiation pressure).

From a classical point of view radiation pressure is the force exerted by the magnetic field of an electromag-netic wave on currents flowing in a solid surface which have been induced by the wave itself.

Photon gases and ideal gases also have significant differences, for instance:

• gas molecules have a distribution of speeds, photons all have the same speed (c),

• gas molecules are reflected from walls, photons are absorbed and emitted by walls,

• the relationship between particle energy (e) and momentum (p) is:

e =p2

2mp

for gas molecules, e = pc for photons.

Cavity radiation: equilibrium state of a photon gas in a closed cavity.

Unlike a normal gas N (= number of photons in a closed cavity) can vary.To see this, consider a reversible isothermal expansion of a photon gas.

Suppose V = 0 initially (this is not possible for a normal gas) ⇒ no photons (N = 0).

As V increases the cavity fills with photons ⇒ N increases.

Q = heat into gas, −W = work done by gas.

Page 64: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

1st law ⇒ internal energy of photon gas changes: ∆U = Q+W ,

⇒ U must depend on T and V (these are the things we can vary).

Varying T and V also changes N , i.e., U is a function of 2 independent state variables, even though dN 6= 0,

⇒ µdN = 0 ⇒ µ (= chemical potential) = 0 for photon gas (→ Lecture 3.4).

3.6.2 Pressure and energy flux

Define u =U

V= internal energy density.

But U = Ne where e = average energy/particle.

⇒ u = ne where n =N

V= number density of particles (photons).

In a photon gas the photons have an isotropic distribution, i.e., there are photons moving in

all directions. In this case the (radiation) pressure is: P =u

3.

We can regard this as a form of the equation of state of the photon gas. As usual inthermodynamics we don’t ask where it came from, merely accept it as an input.

In next term’s Electromagnetism course you will derive the expression P = u for the radiation pressureexerted by a plane electromagnetic wave which is completely absorbed at a surface. Since our surface isalso emitting we might have expected an equal contribtion to the pressure from the emitted photons, giving

P = 2u. Instead we have P =u

3.

There are two effects to consider here: (1) emission from the outer surface of the container, and (2) theisotropy of the radiation in the cavity.

(1) In equilibrium the walls of the container are at a uniform temperature, and emit photons from theirinner and outer surfaces. Since the photons are emitted in all directions, the total momentum (vector sum)they impart to the walls of the container is zero. Thus they do not contribute to the radiation pressure. Theabsorbed photons only impinge on the wall from one side. They therefore do impart net momemntum.

(2) In a plane electromagnetic wave all the photons are moving in a single direction. In our case, however,the photons have an isotropic distribution of directions, i.e., they can have any direction of motion. Thisintroduces the factor of 3.

The analagous situation for a monatomic ideal gas would be the comparison between nd = 1 (1 degree offreedom) and nd = 3 (3 degrees of freedom).

• nd = 1. Molecules are constrained to move in 1-dimension: U = N1

2kBT ⇒ u =

NkBT

2V⇒ P = 2u.

• nd = 3. Molecules are free to move in any direction: U = N3

2kBT ⇒ u =

3NkBT

2V⇒ P =

2

3u.

If the ideal gas molecules were absorbed by the walls of the container, rather than reflected from them, the

pressure would be reduced by a factor of 2 ⇒ P =u

3, just like the photon gas.

Γ = particle flux onto wall of cavity = number of photons/area/time.

Double n ⇒ double the number of photons reaching wall in any given interval of time.

⇒ Γ = αn where α = constant (depends on the speed of the particles, i.e., c in our case).

ΓE = energy flux onto wall (SI unit W m−2) = Γe.

Page 65: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

In a normal gas ΓE 6= Γe because the particles have different speeds. In any given interval more of the fasterparticles reach the wall. These particles have more energy ⇒ ΓE > Γe.

For a Maxwellian distribution ΓE = Γ2kBT , but e =3

2kBT .

Thus we find ΓE = αne = αu.

3.6.3 Energy density

Consider two closed cavities A and B. They differ in most respects (size, shape, material,etc). However, each is in thermal contact with a reservoir at the same temperature T .

The internal energy densities of the photon gases in the 2 cavities are uA and uB.

We place the two in contact and open a small hole (area A) between them.

The rate at which energy flows from A to B is ΓA→B

EA = αuAA.

The rate at which energy flows from B to A is ΓB→A

EA = αuBA.

In equilibrium these rates must be equal, otherwise there would be net flow of energy fromone reservoir to another reservoir at the same temperature.

⇒ uA = uB. ⇒ u depends only on T , and is independent of size, shape, material...

⇒ for a photon gas: U = u(T )V (i.e., internal energy is a function of both T and V ).

This is another way in which ideal gases and photon gases differ: as we know the internal energy of an idealgas is a function only of temperature.

We now apply the energy equation (→ Lecture 3.2):

(

∂U

∂V

)

T

= T

(

∂P

∂T

)

V

− P ,

(

∂V(uV )

)

T

= T

{

∂T

(

u

3

)}

V

−u

3⇒ u =

T

3

(

∂u

∂T

)

V

−u

3.

But u is a function only of T ⇒

(

∂u

∂T

)

V

→du

dT.

⇒T

3

du

dT=

4

3u ⇒

du

u= 4

dT

T.

Integrating ⇒ ln u = 4 lnT + lnΛ (where Λ = integration constant),

⇒ energy density of a photon gas is given by: u = ΛT 4,

⇒ internal energy of a photon gas: U = ΛT 4V , pressure of a photon gas: P =Λ

3T 4.

Page 66: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.6.4 Entropy

U = U(T, V ) ⇒ dU =

(

∂U

∂T

)

V

dT +

(

∂U

∂V

)

T

dV = 4ΛT 3V dT + ΛT 4dV .

Fundamental equation (→ Lecture 3.2) ⇒ dS =1

T(dU + PdV ).

⇒ dS =1

T

(

4ΛT 3V dT + ΛT 4dV +Λ

3T 4dV

)

= 4ΛT 2V dT +4

3ΛT 3dV .

But T 2dT =1

3d(T 3) ⇒ dS =

4

3Λ{

V d(T 3) + T 3dV}

=4

3Λd(V T 3),

⇒ entropy of a photon gas is given by: S =4

3ΛV T 3.

[Note that we set the integration constant to zero here → Lecture 3.7.]

3.6.5 Blackbody radiation

Consider two objects at the same temperature. Both objects emit and absorb radiation.Thus they can exchange energy. This is a form of heat flow.

In equilibrium each object must emit just as much radiation as it absorbs (otherwise therecould be a net heat flow between the two objects and one of them would spontaneously startgetting hotter),

⇒ good absorbers are good emitters; poor absorbers are poor emitters.

A perfect absorber is called a black body (it absorbs all incident radiation). It must thereforealso be the best possible emitter.

We can determine the basic temperature scaling of the power radiated by a black body byplacing one inside a cavity in which there is a photon gas in equilibrium at temperature T .

Heat (in the form of radiation) can flow between the reservoir and the black body.

In equilibrium the black body must have:• temperature T (otherwise heat to/from reservoir until it is).• Ψ = power/area out of black body = power/area in (from photon gas),

Power/area into black body = energy flux = αu = αΛT 4,

⇒ Ψ = power/area emitted by black body at temperature T = σT 4 (Stefan’s law)

where σ = constant.

We cannot determine the value of σ (Stefan’s constant) from purely thermodynamic considerations. It wasoriginally found experimentally, and can also be obtained from statistical mechanics: σ = 5.67×10−8 Wm−2.

Page 67: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Second Year Thermodynamics M. Coppins

3.7 The third law

3.7.1 Alternative statements

The third law is different from the zeroth, first and second laws. Unlike them it does notintroduce a new state variable.

• Macroscopic version. It is impossible to reach absolute zero in a finite number of steps.

• Microscopic version. The entropy of a perfect crystal is zero at absolute zero.

At absolute zero all the wavefunctions of all the atoms of the crystal will be fixed in the ground state ⇒

there is only one microstate corresponding to this macrostate ⇒ S = kB ln 1 = 0.

3.7.2 Ideal gas and photon gas

Ideal gas S = S0 +nd

2NkB lnT +NkB lnV (→ Lecture 3.2).

T → 0 ⇒ S → −∞ ⇒ not consistent with 3rd law.

The ideal gas equation of state is derived from a classical model of non-interacting particles.

Need quantum theory at very low temperatures⇒ ideal gas equations break down close to absolute zero.

Photon gas S ∝ V T 3 (→ Lecture 3.6).

T → 0 ⇒ S → 0 ⇒ consistent with 3rd law.

The photon gas is inherently quantum.

In Lecture 3.6 we derived the equation for the entropy of a photon gas by integrating dS. We now see thatthe choice of integration constant (= 0) was motivated by the 3rd law.

3.7.3 The unattainability of absolute zero

Consider the following two-stage process:

(1) Reversible, adiabatic expansion (dQ = 0 = dS). Initial state (V0,T0). Final state (V1,T1).

1st law ⇒ dU = −PdV (dQ = 0) ⇒ dU < 0 (since dV > 0) ⇒ T1 < T0.

In an ideal gas |dT | =2dU

ndNkB.

In a real gas there is an additional effect: V increases ⇒ average inter-particle separation increases⇒ average particle potential energy increases ⇒ additional decrease in average particle kinetic energy⇒ |dT | even larger.

(2) Reversible isothermal compression back to volume V0.

Page 68: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

Plotting these processes on a TS diagram:

We might suppose that by successively alternating these two processes we could reach abso-lute zero.

This is illustrated in the figure below, which shows a possible form for the lines of constantvolume (V = V0 and V = V1) between which we operate.

Notice that the line V = V1 lies below the line V = V0 on the TS diagram. This is because adiabaticexpansion produces a reduction in T .

In fact, however, the macroscopic version of the 3rd law tells us that this is impossible. Thisfact indicates that the lines of constant V converge at absolute zero, as shown below.

In this case we cannot reach 0K in a finite number of steps.

Since we can write S = S(T, V ) and the macroscopic version of the 3rd law indicates thatS(T = 0, V0) = S(T = 0, V1), for any V0 and V1, we see that for any given system S has aunique value at absolute zero.

This is consistent with the microscopic version of the 3rd law (S = 0 at T = 0).

Page 69: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.7.4 Paramagnetic materials

The atoms of a paramagnetic material behave like tiny current loops (magnetic dipoles):• they have their own intrinsic magnetic field,• they experience a torque if an external magnetic field is applied.

This behaviour is actually a quantum effect, due to electron orbital motion, electron spin and nuclear spin.

An external magnetic tends to align the atoms with their dipole moments in the directionof the applied field.

Thermal motion ⇒ the alignment is not perfect.

Define B0 = applied magnetic field in the absence of any material (B0 = µ0H).

• Fix B0, increase T :

⇒ atoms become less aligned,

⇒ S increases,

⇒ line of B0 = constant has positive slope on TS diagram.

• Fix T , increase B0:

⇒ atoms become more aligned,

⇒ S decreases,

⇒ line of B0 = higher value lies above line of B0 = lower value on TS diagram.

• B0 = 0, decrease T :

⇒ atoms become more aligned (atoms interact through their self magnetic fields),

⇒ S decreases.

These aspects of the behaviour of paramagnetic materials are illustrated schematically inthe TS diagram, below.

Page 70: Second Year Thermodynamics M. Coppins 1.1 Basic …bartholomewandrews.com/teaching/notes/year2/thermodynamics/Lec… · Second Year Thermodynamics M. Coppins 1.1 Basic Concepts 1.1.1

3.7.5 Magnetic cooling

1. Isothermal magnetization: Place a sample of paramagnetic material in thermal contactwith liquid helium (at 1K) and slowly increase the applied magnetic field from zero to afew Tesla.

2. Adiabatic demagnetization: thermally isolate the sample and slowly reduce the appliedmagnetic field to zero.

T falls significantly during stage 2.

At the start of stage 2 the atoms have thermal motion, but are kept in aligment by the strong applied field.As the applied field is reduced the atomic dipoles become increasingly unaligned. However, work has tobe done on any given atomic dipole to change its orientation. The energy to do this work comes from thethermal motion ⇒ T falls.