Thermodynamics

Note: Intensive dExtensive Hence, dU=TdS+PdV+μdN.

Extensive means f(aA,aB,aC)=af(A,B,C)

Definitions

Systems

Consists of many constituents (particles) N1. Macroscopic.

We also wait long enough for the system it arrives to its thermodynamic (TD) equilibrium state.

If it is in the TD equilibrium state then it can be described by a few physical quantities called state variables.

Example of state variables: N,V,P,U,μ,τ,L,σ,A,T. (3D: PV, 1D: $τ$L, 2D: $σ$A) All have physical meaning except temperature T which is defined in its relation to the others.

dW={τdx,σdA,pdV,μdN,BdμEdP}. We call the first term (p) the generalized force (intensive) and the second term (dV) the generalized displacement (extensive) and we call them both together conjugate pairs.

Temperature

Specifically, Temperature describes the process of energy exchange between different systems in thermal contact.

Energy flows (is transfered) from the system with high temperature to the system with low temperature.

The systems reach thermal equilibrium when no more net energy transfer takes place by heating or cooling and at this point their temperatures are equal.

Unit: [T] = K, Kelvin with T>0.

Boltzmann Constant

kB=1.381023JK. So the units [kbT]=[energy].

The equation of state (EOS) is a functional relationship between the state variables of a system (in TD equilibrium).

EOS can be obtained experimentally, ex. ideal gas law, pV=NkBT (dilute gas) which has a 200yr history.

Also can be obtained from first principles using SM or empirically (approximate). An example is the van der Walls EOS (vdW) (p+aN2V2)(VNb)=NkBT.

EOS are continuous and small changes in one variable lead to small changes in the other variables unless something dramatic happens (e.g. phase change, where the system fundamentally changes its state [symmetry change/ topology change]). This second part is the well behaved nature of the system. Example solid liquid. (Liquids are more fundamental since they have more symmetry [higher temperature generally implies more symmetries])

Small changes implies that you can linearize the EOS. An example from the ideal gas law: Vdp+pdV=kBTdN+NkBdT. The dp,dV are called total differentials. vdW EOS describes both liquid and gas but has unphysical regions and requires interpretation.

Types of Equilibrium

  • Thermal: TA=TB
  • Mechanical: pA=pB, τA=τB
  • Chemical/ Diffusive: μA=μB

Process

A change of a system from one state (A) to another state (B).

Processes can be fast, slow, spontaneous, reversible, irreversible, quasistatic.

Quasistatic

A qs process is usually idealized process where all relevant state variables are well defined for the entire process.

In other words, a qs process is a sequence of TD equilibrium states.

Laws

Zeroth Law of TD

If A is in thermal equilibrium with C and B is in equilibrium with C then A is in thermal equilibrium with B.

First Law

Energy is conserved (provided we include energy changes by doing work and heating).

ΔU=W+Q for Finite changes and always true.

dU=dQ+dW where d means small and dU is a total differential and this expression is always true.

Then, dU=dQpdV+μdN=TdSpdV+μdN(dQ=TdS for Quasistatic Processes and is not always true).

Real Process quasistatic (idealized) process.

Example - Gasoline 4 stroke Engine

  1. Expand Volume (ignite and expand)
  2. Explosion
  3. Intake
  4. Compression

1–2 Q=0 3–4 Q=0 2–4 dV=0 3–1 dV=0

20230111105947-thermodynamics.org_20230117_131553.png

Ideal Gas

pV=NkT, UNkT.

Processes

What is the sign of the entropy changes? V2 is initially empty.

  • (A) Slow Expansion (environment has temperature T1 and gas is in piston environment with pressure P1 and volume V1 and gets expanded to 2V1 = V2)
  • (B) Remove pin holding boundary between two volumes
  • (C) Small Hole in Boundary between two volumes
  • (D) Thermally insulated adiabatic wall (expand slowly)
  • Questions to ask - Systemitize
    1. Is the process quasistatic? (A,D due to them being slow) (B is not due to it being fast) (C is not a sequence of equilibrium states and so it is not)
    2. Use First Law (ΔU = W + Q)
    3. Find initial and final states for (ΔU, W, Q)
    4. Find quasistatic process that have the same initial and final states to analysize the non-qs processes

    For (A) there is no change in Energy. For (B) there is no Work. For (C) there is no Work. For (D) there is no Heat Exchange.

    For A,B,C the final pressure is half, the final volume is double. Note that ABC has no change in internal energy. Q is zero. W = -Q for A and since work is done by the system, work is negative and so entropy increases. Because BC is not quasistatic (we cannot use dQ = TdS), we can relate them to A and see that entropy must increase. D has Q=0 and so entropy does not change but the temperature decreases since the internal energy decreases (from the fact that the system is doing work).

Systematize

  1. What are the state variables?
  2. How many (total)?
  3. How many are independent?
  4. Which ones are independent?

State Variables

1 energy, 2 state variables for heating, 2 variables for each work. Thus we have a total number of state variables is 1 + 2Nw + 2 state variables. And the number of independent state variables is Nw+1.

Assume we have amystery state variable X, we then assume U(X) so we can find the conjugate pair.

Relations between state variables are described by well behaved EOS (twice differentiated). I.e. small changes are equivalent to toal differentials.

Legendre? Transformation: Let Z=f(X,Y). dZ=dfdx|ydx+dfdy|xdy. Let g(w,z)=f(x,y) then (gw)zdw+(gz)wdz=(fx)ydx+(fy)xdy. I.e. convert U to F or H, etc.

I.e. for the internal energy, dU=SU|V,NdS+VU|S,NdV+NU|S,VdN=TdSpdV+μdN. Note, that since we have $U(S,V,N) then we have T(S,V,N)=US, i.e. a function of the same variables, and similarly for V,N. Also, using this equivalence between the partial of the internal energy and the temperature, pressure, and chemical potential, we can then get S(T,V,N) and thus get U(T,V,N).

We can look at U(T,V,N). So, dU=UT|V,NdT+dV+dN. Note, that this is not necessarily equal to SdTpdV+μdN since we are holding something different constant now. Thus, UVT,Np (at least not necessarily).

Consider: F=UTS. Then dF=dU(TS)T|S,UdS(TS)S|T,UdS=dUSdTTdS=TdSpdV+μdNSdTSdT=SdTpdV+μdN.

Energies

  • U(S,V,N) (Assume: S(U,V,N), V(U, S, N), N(U, S, V), we may also write ℐ(U,S,V,N)=0)
  • F = U - TS : F(T,V,N)
  • H = U+PV : H(S,P,N)
  • G = U - TS + PV : G(T,P,N)
  • 𝓖 = U - TS - μN : 𝓖(T,P,μ)

Note from S(U,V,N) then dS=1TdU+PTdVμTdN.

For Heating and Work

  • Heating: S, T
  • Work: (P,V), (μ, N), (B, μ), …

Response Functions

Notes

  • Compressibility: κSorT=1V(Vp)SorT>0 (we will show the greater than later)
  • Thermal Expansion: α=1V(VT)P can be greater or less than zero.
  • QT - Heat Capacity

Heat Capacity

Entropy Changes from Earlier Examples

Use an ideal gas. V0V1=2V0. Recall: U=cNkT and pV=NkT.

Slow Isothermal Expansion

From slow, we know quasistatic. N,T,V Want: S. dU=cNkdT. Note, we have dU=TdSpdV+μdN. So, since this is isothermal, dU=0. Then, TdS=pdV. Then, S0S1f(S)dS=V0V1g(V)dV. So, dS=PTdV=NkVdV Then, ΔS=Nkln2.

Adiabatic Expansion

Calculate work done. Note dQ=0.

dU=CvdT=pdV. dH=CpdT=Vdp.

CvT=NkTln(V) CpT=NkTln(P) CVCp=ln(V)ln(P)=γ. Thus, Pγ=V.

So, dW=pdVW=V2VpdV.

Alternatively (in class): dU=pdV=cNkdT Then, pdV+Vdp=NkdT (4) PV=NkT pdV+Vdp=NKdT (from 4). pdV+Vdp=PcdV f1(p)dp=f2(V)dV.

pVν=C, ν=c+1c.

W=V2VpdV.

Efficiency

Example Problems

One

f=g2+h2+2 =ln(hg)+h2. Using these two EOS, find (f)h (fh).

Strategy:

  1. Find the function with the variables mentioned: f(h,)
  2. Linearize, df=hfdh+fd.

Need f(h,) since we have just those two variables. Then, we want: df=(fh)dh=(f)hd. We have: df=(fg)h,dg+(fh)g,dh=(f)h,gd. d=(g)hdg+(h)gdh. Then, dg can be obtained from this expression of d. So, df=[(fh)g,(fg)h,(h)g(g)h]dh+[(dfd)gh+(fg)h(g)h]d.

So, we need g(h,). From the second EOS, g=hexp(h2).

Two

Show UN=f(T) independent of volume from ideal gas law pV=NkT. I.e. show UNkf(T). If U(T,V) then dU=TUdT+VUdV. So we must show VU=0. Then, we have dU=TdSpdV. So, we have U(S,V) so we need S(T,V) to get U(T,V). Then, dS=TSdT+VSdV. Hence, dU=TTSdT+TVSdVpdV. So, we must show TVSp=0. Now, we must find a Maxwell relation. We have V,T. We have U(S,V,N), F(T,V,N), and H(S,p,N). So we use the free energy F. This gives us, dF=SdTpdV. VS=VTF=TVF=Tp. Then, TTpp=0. So, TNkVNkTV=0, we have achieved what we needed!

  • A much Simpler Proof

    F=UTS, dF=SdTpdV. Then, p=VFT=V(UTS)T=VUTV(TS)T then we get VT=TSVT.

More Problems

Second Law

Entropy always increases or stays the same. I.e. Entropy never decreases. Implies an Entropy maximum principle. A closed system after removal of one or more internal constraints will relax to that Thermodynamic Equilibrium state with the highest entropy consistent with the removed constraints. δS0 all variations are possible.

  • Mechanical

    Say we have a block on a series of shelves and then we remove some shelves, then the mass will end up at the next possible state (a lower still existing shelf).

  • Perturbed

    Lets say we have a closed system in two halves. If we perturb it then δS1=1T1δU1+p1T1δV1μ1T1δN1, δS2=1T2δU2+p2T2δV2μ2T2δN2. Since it is closed: δU=δU1+δU2=0, δV=δV1+δV2=0, δN=δN2+δN2=0. Then, redefine these such that δU=δU1=δU2 etc. Then, δS=δS1+δS2=(1T11T2)δU+(p1T1p2T2)δV(μ1T1μ2T2)δN=0, since S is maximum. Then, each coefficient must be zero. Thus, T1=T2, p1=p2, and μ1=μ2.

  • More General System - Equilibrium States from Helmholtz Free Energy

    Let there be a system at V,T in an environment of temperature T. Since δS0 so δSsys+δSenv0.

    dSsys+dSenv0. Multiplying by T, we get TdSsysTdSenv0, let this be (1). Also, dU=dUsys+dUenv=0, let this be (2). Adding (1) and (2), dUsysTdSsys+dUenvTdSenv0. Since the temperature is constant, SsysdT=0. dUsysTdSsysSsysdT+dUenvTdSenv0. Using the Helmholtz free energy, Fenv=UenvTenvSenvdFenv=dUenvTenvdSenvSenvdTenv. Then, dUenv=dQenv+dWenv=dQenv since V is constant.

    Then, (dUsysTdSsysSsysdT)+(dUenvTdSenv)=dFsys+00δF0. Thus, the minimizing the Helmholtz free energy gives the equilibrium states for constant temperature and volume.

    If we had constant pressure and temperature then the Gibbs free energy is used, δG0.

    For a mechanical system, δU0.

    ΔFsys=ΔUsysTΔSsysW+QTQT so ΔFsysW. This inequality becomes an equality for quasistatic processes.

    ΔFsys during relaxation is ΔQsys=ΔQenv so dU=TdSpdV. Since dV=0, so ΔUsys=TdS=Qsys=Q, ΔUenv=Q so that ΔUsys+ΔUenv=0.

  • Enthalpy

    Consider H=U+pV so dH=dU+pdV+Vdp=TdS+Vdp so ΔH=TdS=Q, Qsys=Qenv=Q. Thus, ΔHsys=ΔHenv for constant pressure and temperature.

  • General

    For constant pairs:

    V,T p,T
    δF0 δG0
    δUi=0 δHi=0

Stability Conditions

Small perturbations do not give large changes instead they give small changes.

Example

Mechanics Example (1D)

Let U(x) be a function of position. Thus, F=Ux. At equilibrium states, F=Ux=0.

At the global minimum, the state is called stable. At a local minumum the state is metastable. At a maximum, the equilibrium is unstable.

Stability is the second order condition, 2Ux2>0.

If we have more than a single coordinate, then i,j2Uxixjδxiδxj>0.

If we go to a generalized force ji=Uxi then we can make a perturbation in the generalized force δji=δ(Uxi)=jUxjxiδxj. This gives us the condition, iδjiδxi>0 where xi is a generalized displacement. We then see that δTδS+iδjiδxi+αδμaδNa>0. And so δTδSδpδV+δμδN>0.

Euler Relation

Extensivity

U(S,V,N) with U,S,V,N are extensive. Mathematically, λU(S,V,N)=U(λS,λV,λN). This is also referenced as U is a homogeneous function of order 1. Then, λ on both sides and then set λ=1.

U(S,V,N)=λU(λS,λV,λN)=λSλUλS+

From Before

δTδS+δjδx+δμδN0

How to use? Variations δT,δx and, δN=0.

δS(δT,δx),δJ(δT,δx).

δS=(ST)xδT+(Sx)Tδx δj=(jT)xδT+(jx)Tδx

From the original inequality, (ST)x(δT)2+(Sx)TδxδT+(jx)T(δx)2+(jT)xδTδx0.

Helmholtz: F(T,V),dF=SdTpdV.

Consider the Maxwell relations from the Helmholtz free energy, dF=SdT+jdx 2FTX(Sx)T=(jT)x.

So, (ST)x(δT)2+(jx)T(δx)20.

Then, δx=0 implies that (ST)x=CxT0. Therefore, the constant volume/ length heat capacity must be non-negative.

Or, δT=0 implies that (jx)T0κT=1V(Vp)T0. Therefore the constant temperature heat capacity must be non-negative.

If you have multiple particles, terms will appear in a similar fashion, and you will always have the (δT)2 term. Specifically, if you have more than 1 Ji,xi and include S,T in list of (Ji,xi). Then, the coefficients(Jixj)ij. The matrix of coefficients must be positive definite. This implies that all eigenvalues are positive and all subdeterminants are positive.

Example: (p,V),(μ,N) at a constant T,N, ((pV)T,N(pN)T,V (μV)T,N(μT)T,V)

κT,N=1V(VP)T,N>0. (Nμ)T,V>0. (pV)T,N(μN)T,V+(pN)T,V(μV)T,N>0.

Consider G(p,T)=UTS+pV, take N to be constant and consider T0,p0 fixed by environment. So, G(p,T)=UT0S+p0V. Then, δG(δS,δV)=(GS)VδV+(GV)SδV+12(2GS2)V(δS)2+12(2GV2)S(δV)2+2GSVδSδV=[(US)VT0]δS+[(UV)S+p0]δV+(2US2)V(δS)2+2(2USV)δSδV+(2UV2)S(δV)2>0. If δS,δV are independent then.

For δV=0, (2US2)V=(TS)V=TCV>0. For δS=0, (2UV2)S=1VκS=VV(pV)S>0.

Analyzing like a quadratic form, ax2f2bx;x2+cx22>0, xTAa+bTx1. A=(ab cd).

So, (2US2)V(2UV2)S(2USV)>0 so 1VκSCV>(TV)S2.

Example: Consider a simple substance (one chemical composition) observe 3 phases, (s,,g). 20230111105947-thermodynamics.org_20230127_114137.png

On the lines, we have coexistence of the phases, at intersections we have coexistence of all the phases. Phase boundaries.

20230111105947-thermodynamics.org_20230127_114644.png

Author: Christian Cunningham

Created: 2024-05-30 Thu 21:18

Validate