Professional Documents
Culture Documents
• Boltzmann’s equation: S = kB ln ⌦
– where S is the entropy, kB is Boltzmann’s constant and
Ω represents “the number of ways”
• in the molecular context, the number of microstates
• in the ensemble context, the number of system states
• Microstate:
– the set of all the quantum states of all the molecules
• Macrostate:
– what we generally just call the state
– many microstates correspond to the same macrostate
• enthalpy: H = U + pV
✓ ◆
@U
• isochoric heat capacity: CV =
@T V
✓ ◆
@H
• isobaric heat capacity: Cp =
@T p
• Gibbs free energy: G = H T S = U + pV T S
@A
= A + pV = A V @V N,T
• entropy:
✓ ◆ 2
✓ ◆
@Q 1 kB T @Q
A = U TS = TS = TS
Q
@ N,V Q @T N,V
2
✓ ◆
kB T @Q
i.e., kB T ln Q = TS
Q @T N,V
✓ ◆ ✓ ◆
kB T @Q @ ln Q
so S = kB ln Q + = kB ln Q + kB T
Q @T N,V @T N,V
Molecular Modelling of Fluids Session 2 – Slide 9 © Imperial College London
Today’s Lecture
N
q
Q= (Equation 1.52)
N!
Indistinguishable Particles
(Equation 2.3)
Position ri
Volume element,
(exaggerated!) size
dr
Position ri
Volume element,
(exaggerated!) size
dr
Position ri
Volume element,
(exaggerated!) size
dr
Position ri
Volume element,
(exaggerated!) size
dr
Position ri
Volume element,
(exaggerated!) size
dr
Momentum pi
Momentum element,
Position ri
size dp
Volume element,
(exaggerated!) size
dr
Momentum of
Particle i
Momentum pi
Momentum element,
Position ri
size dp
Volume element,
(exaggerated!) size
dr
Momentum of
Particle i
Momentum pi
Momentum element,
Position ri
size dp
Volume element,
(exaggerated!) size
dr
Momentum of
Particle i
Momentum pi
Momentum element,
Position ri
size dp
Volume element,
(exaggerated!) size
dr
Momentum of
Particle i
Momentum pi
Momentum element,
Position ri
size dp
Volume element,
(exaggerated!) size
dr
Momentum of
Particle i
Positions
r1, … , rN
Positions
r1, … , rN
and momenta
p1, … , pN
(
(j)
In state j, lies in volume element dri centred on and ri
• particle i (j)
has momentum in element dpi centred on pi
– where i = 1,…, N includes all N particles / molecules in system,
and dri , dpi are infinitesimals
(j)
• energy of particle i in element dHi centred on Hi
– dH is infinitesimal
Molecular Modelling of Fluids Session 2 – Slide 33 © Imperial College London
System state j
8 ⇣ ⌘
< “position in the interval r(j) ± dr/2 ”
i
• particle i ⇣ ⌘
: “momentum in the interval p(j) ± dp/2 ”
i
• Similarly
X Z Z
Q= exp( Ei ) “ . . . exp( Ei )”
i
becomes
Z Z
1
Q= ... exp( H(rN, pN ))drN dpN
N !h3N
XN
N p2i Particle mass
• Kinetic energy: K p =
(spherically symmetric molecules) i=1
2m
Z – whereby
Z N ZZZ
Y ✓ ◆
p2i
... exp K pN dpN = exp dpi
i=1
2m
• Since no interactions between particles, all momenta
– and all components of momenta
are independent. Allows factorisation:
ZZZ ✓ ◆ N Z !
p2i Y p2x,i
exp dpi = exp dpx,i
2m i=1
2m
Z ! Z ! !
p2y,i p2z,i
⇥ exp dpy,i exp dpz,i
2m 2m
Molecular Modelling of Fluids Session 2 – Slide 44 © Imperial College London
The kinetic (ideal) contribution
(for simple, spherical molecules)
Z 1
2 2
p
• Standard integral: exp( ↵ u )du = ⇡/↵
1
– whereby
Z ! Z ! Z !
p2x,i p2y,i p2z,i
exp dpx,i = exp dpy,i = exp dpz,i
2m 2m 2m
r
2⇡m
=
Z Z – so that N ZZZ
Y ✓ ◆ ✓ ◆3N/2
p2i 2⇡m
. . . exp K pN dpN = exp dpi =
i=1
2m
• Finally:
Z Z ✓ ◆3N/2
1 2⇡m
3N
. . . exp K pN dpN = 2
⌘⇤ 3N
h h
(Equation 3.9)
– Modelling
Molecular Λ is the thermal
of Fluids de Broglie wavelength Session 2 – Slide 45 © Imperial College London
The ideal free energy
• Equation
Z Z 3.5 Z Z
1
Q= ... exp K(pN ) dpN . . . exp V(rN ) drN
N !h3N
• thus becomes
1 VN
Qideal =
N ! ⇤3N
• whereby
Aideal = kB T ln Qideal
= kB T ln V N ln N ! ln ⇤3N
= kB T N ln V (N ln N N) N ln ⇤3
= N kB T ln(V /N ) + 1 ln ⇤3
Molecular Modelling of Fluids Session 2 – Slide 46 © Imperial College London
The ideal gas equation
• In other words, we have the ideal free energy
✓ ◆
Aideal N
= ln 1 + ln ⇤3 = ln ⇢ 1 + ln ⇤3
N kB T V
(Equation 2.8)
• Once we have the ideal free energy, we can use
standard thermodynamic relationships to
obtain other properties
• For example, recall the Fundamental Equation
X
dU = T dS pdV + µi dNi
i
• and the definition, A = U – TS
Molecular Modelling of Fluids Session 2 – Slide 47 © Imperial College London
The ideal gas equation
• This gives us X
dA = SdT pdV + µi dNi
i
• From this, one can obtain expressions for both the
pressure and✓ the◆chemical potential:
✓ ◆
@A @A
p= ; µi =
@V Ni ,T @Ni V,T,Nj6=i
• or, for a pure component:
✓ ◆ ✓ ◆
@A @A
p= ; µ=
@V N,T @N V,T
• Recall:
Z Z Z Z
1
Q= ... exp K(pN ) dpN . . . exp V(rN ) drN
N !h3N
• So now:
3N Z Z
⇤ ⇤ 3N
Q= . . . exp V(rN ) drN ⌘ Z (Equation
3.11)
N! N!
− Non-spherical molecules: Q has same general form but Λ–3 ! “Λ*–3 ”
◦ i.e., “Λ* ” incorporates all rotational and vibrational contributions
Z Z is the
– Z = . . . exp N N
V(r ) dr configurational
(Equation 3.12) integral
Molecular Modelling of Fluids Session 2 – Slide 50 © Imperial College London
The configurational integral
• Take care:
– There is some variation among authors concerning the
exact terminology
• some people say “configurational integral”, some say
“configuration integral”
• Z is often called the configuration(al) partition function
– and, in particular, the notation:
• Many physicists use Z to represent the (full) partition
function, and Q to represent the configurational integral(!).
• Many authors use subscript(s) N, or NVT
– e.g., ZN
– e.g., QNVT
Molecular Modelling of Fluids Session 2 – Slide 51 © Imperial College London
The configurational integral
• Is very important!!
• Recall
P (Hi ) ⌘ P (H(rN , pN )) = f (N ) (rN , pN )drN dpN
– is the probability of the particles being in the 6N-
dimensional element of phase space drNdpN"
• f (N)(rN,pN )drNdpN is the probability (not simply f (N)(rN,pN ))
because the probability must depend on the size of the
element of phase space."
N N
– so could express this simply as" P (r , p )
– Analogous to the partition function, we factorise:
P rN , p N = P rN P p N
• Recall !
(N ) N N 1 1 exp H(rN, pN ) ⇤ 3N
f (r , p ) = ; Q= Z
N ! h3N Q N!
so
( )( )
1 1 exp V(rN ) exp K(pN )
f (N ) = 1
N ! h3N N! Z ⇤ 3N
( )( )
exp V(rN ) exp K(pN )
= 3N 3N
;
Z h ⇤
Notice that the 1/N! cancels 3N 2 3N/2
⇤ = 2⇡m/ h
Molecular Modelling of Fluids Session 2 – Slide 54 so Planck’s const cancels too
© Imperial College London
Separating the probabilities
• Collecting:
• P (rN ):
– the probability that a given (“labelled”) molecule is in
each of the 3-dimensional volume elements dr1 … drN,
i.e., 0 1
molecule 1 (say) in dr1
B and molecule 2 in dr2 C
B C
B and molecule 3 in dr3 C
P rN = Prob B C
B .. C
@ . A
and molecule N in drN
– probability of any molecule in each element would be
more useful
Molecular Modelling of Fluids Session 2 – Slide 56 © Imperial College London
Building something useful
• Similarly
– system has (N – 1) choices for second molecule, so
exp V(rN )
⇢(2)⇤ (rN ) = N (N 1) drN
Z
represents P (any molecule in dr1 and any other in dr2
while given molecules occupy dr3 … drN)
– relates to two molecules
• indicated by superscript “(2)”
but is a function of positions of all the molecules
– We integrate out r3 … rN
• yields a function depending only on positions r1 and r2:
exp V(rN )
⇢(N ) (rN ) = N !
Z
Molecular Modelling of Fluids Session 2 – Slide 60 © Imperial College London
Density functions:
relation to probabilities
Z Z
• Recalling Z = ... exp V(rN ) drN
and integrating out ! normalisation properties:
exp V(rN )
⇢(N ) (rN ) = N !
Z
Z Z Z Z
(N ) N N exp V(rN )
. . . ⇢ (r )dr = N ! . . . drN = N !
Z
1 (N ) N
– so ⇢ (r )drN
N!
is P (any molecule in dr1, any in dr2, …, any in drN)
• Keeping in mind
Z Z Z
(1) N
⇢ (r1 )dr1 = . . . exp V(rN ) drN = N
Z
– Imagine simple, homogeneous fluid
• ⇢(1) (r) = ⇢(1) , or simply ⇢
Z Z
(1) N
– so ⇢ (r)dr = N = ⇢ dr = ⇢V =) ⇢ =
⇣ V ⌘
Equations
– i.e., ρ(1)(r) is the number density at r 4.15, 4.16 & 4.17
• Link to experiment
– closely related to structure factor (scattering function)
from scattering experiments
and computer simulations
– accumulated as a histogram by
counting molecules in concentric
shells around origin molecule,
averaged over all molecules
– Demonstrate by example …
N N
• hH(r , p )i = hV(rN )i + hK(pN )i
l l l
U = U residual + U ideal
X
• By definition hxi = xi P (xi )
• whence Z Z
i
• Incorporating equation
0 4.25 gives:
1
Z Z N X
X N
1 @
U residual = ... (ri,j )A exp V(rN ) drN
Z i j>i
• Carrying forward:
ZZ Z Z
residual N (N 1)
U = (r1,2 ) . . . exp V(rN ) drN 2
dr1 dr2
2Z
• Next recall Equation 4.9
Z Z
(2) N (N 1)
⇢ (r1 , r2 ) = ... exp V(rN ) drN 2
Z
and compare:
Z Z
residual 1
U = ... (r1,2 )⇢(2) (r1 , r2 )dr1 dr2
2
• Carrying forward: Z Z
residual 1
U = ... (r1,2 )⇢(2) (r1 , r2 )dr1 dr2
2
• Now recall:
– Equation 4.21 ⇢(2) (r1 , r2 ) = g (2) (r1 , r2 ) ⇢(1) (r1 ) ⇢(1) (r2 )
(2)
– Isotropic system: g (r1 , r2 ) g (2) (|r2 r1 |) ⌘ g(r1,2 )
– Homogenous system ⇢(r) ⇢
• equations 4.15–4.17
• whereby ZZ
residual 1 2
U = ⇢ (r1,2 )g(r1,2 )dr1 dr2
2
Molecular Modelling of Fluids Session 2 – Slide 75 © Imperial College London
Energy equation
• Carrying forward: ZZ
residual 1 2
U = ⇢ (r1,2 )g(r1,2 )dr1 dr2
2
• Integral over vector r1, r2 but integrand depends
only on (scalar) r1,2
@r1,2
– transform: r1,2 = r2 r1 =1 dr1,2 = dr2
@r2
– in spherical polar coordinates
Z Z ⇡ Z 2⇡ Z 1
2
dr1,2 = r1,2 sin ✓ d✓ d' dr1,2
✓=0 '=0 r=0
• whereby
Z Z ⇡ Z 2⇡ Z 1
1 2
U res = ⇢ 2
(r1,2 ) r1,2 g(r1,2 ) sin ✓ d✓ d' dr1,2 dr1
2 r1 ✓=0 '=0 r1,2 =0
Molecular Modelling of Fluids Session 2 – Slide 76 © Imperial College London
Energy equation
• Carrying
Z Zforward:
⇡ Z 2⇡ Z 1
res 1 2 2
U = ⇢ (r1,2 ) r1,2 g(r1,2 ) sin ✓ d✓ d' dr1,2 dr1
2 r1 ✓=0 '=0 r1,2 =0
Z ZZZ
• Integrate out r1: dr1 ⌘ drx,1 dry,1 drz,1 = V
• Integrate out angular dependences ! 4π
• Yields: (Equation 4.37)
Z 1
U residual = 2⇡⇢2 V 2
(r1,2 ) r1,2 g(r1,2 ) dr1,2
0
Z 1
or U residual = 2⇡⇢N 2
(r1,2 ) r1,2 g(r1,2 ) dr1,2
0
• “Human” interpretation:
• Residual part:
– obtained from force, – dϕ(r1,2) / dr1,2, between a specified
molecule and all other molecules, accounted for in
concentric shells at increasing separation, r :
• Residual part:
– obtained from force, – dϕ(r1,2) / dr1,2, between a specified
molecule and all other molecules, accounted for in
concentric shells at increasing separation, r :
– for each shell, force is divided by surface area (4πr2dr) !
pressure
d (r1,2 )
p(r1,2 ) = ⇢g(r1,2 )
dr1,2
– multiplied by volume contained within shell ! pV for each
shell
d (r1,2 ) 4 3
p(r1,2 )V = ⇢g(r1,2 ) ⇥ ⇡r1,2
dr1,2 3
Molecular Modelling of Fluids Session 2 – Slide 81 © Imperial College London
Virial
• Residual part:
• (carried forward)
d (r1,2 ) 4 3
p(r1,2 )V = ⇢g(r1,2 ) ⇥ ⇡r1,2
dr1,2 3
– integrate from r = 0 to ∞ ! total (pV)residual per molecule
Z 1
4⇡⇢ d (r1,2 ) 3
pV(1) = g(r1,2 )r1,2 dr1,2
3 0 dr1,2
– Multiply by N / 2 ! contribution for all N molecules
• factor of half avoids counting each pair interaction twice
Z 1
residual 2N ⇡⇢ d (r1,2 ) 3
pV(N ) ⌘ (pV ) = g(r1,2 )r1,2 dr1,2
3 0 dr1,2
Molecular Modelling of Fluids Session 2 – Slide 82 © Imperial College London
Virial
• Residual part:
• (carried forward) Z 1
residual 2N ⇡⇢ d (r1,2 ) 3
pV(N ) ⌘ (pV ) = g(r1,2 )r1,2 dr1,2
3 0 dr1,2
• Now combine with ideal part:
Z 1
2N ⇡⇢ d (r1,2 ) 3
pV = N kB T g(r1,2 )r1,2 dr1,2
3 0 dr1,2
• Usual to express in terms of compressibility
factor,
Z ⌘ pV /N kB T = p/⇢kB T
= 2 exp( ↵2 u2 )du
0
since the integration variable (u) appears in the integrand only as its square.
s⇢
Z 1 Z 1 2
2 exp( ↵2 u2 )du = 2 exp( ↵2 u2 )du
0 0
s ⇢Z Z
1 1
= 2 exp( ↵2 u2 )du exp( ↵2 v 2 )dv
0 0
s ⇢Z Z
1 1
= 2 exp( ↵2 (u2 + v 2 ))dudv .
0 0
(Note that this is not the same as the virial equation of state (or
virial expansion))