Beruflich Dokumente
Kultur Dokumente
Molecular Simulations
Molsim 2012
Why Molecular Simulations
Molsim 2012
Why Molecular Simulations
Paul Dirac, after completing his formalism of quantum mechanics:
Molsim 2012
Why Molecular Simulations
Paul Dirac, after completing his formalism of quantum mechanics:
Molsim 2012
Why Molecular Simulations
Paul Dirac, after completing his formalism of quantum mechanics:
Molsim 2012
Why Molecular Simulations
Paul Dirac, after completing his formalism of quantum mechanics:
Molsim 2012
Concept of Molecular Simulations
Molsim 2012
Concept of Molecular Simulations
Molsim 2012
Concept of Molecular Simulations
Exact = in the limit of
infinitely long simulations the
error bars can be made
infinitely small
Molsim 2012
Concept of Molecular Simulations
Molsim 2012
Concept of Molecular Simulations
Diffusion coefficient
Viscosity
…
Molsim 2012
Concept of Molecular Simulations
If one could envision
an experimental
system of these
particles that interact
for a given intermolecular
potential
with the potential.
“exactly” predict the thermodynamic and
transport properties of the system
Molsim 2012
Concept of Molecular Simulations
Molsim 2012
“Can we predict the
THE question: macroscopic properties of
(classical) many-body systems?”
Molsim 2012
“Can we predict the
THE question: macroscopic properties of
(classical) many-body systems?”
NEWTON says: yes, my F=ma gives
the future time evolution of the
system
Molsim 2012
“Can we predict the
THE question: macroscopic properties of
(classical) many-body systems?”
NEWTON says: yes, my F=ma gives
the future time evolution of the
system
Molsim 2012
“Can we predict the
THE question: macroscopic properties of
(classical) many-body systems?”
NEWTON says: yes, my F=ma gives
the future time evolution of the
system
Molsim 2012
“Can we predict the
THE question: macroscopic properties of
(classical) many-body systems?”
NEWTON says: yes, my F=ma gives
the future time evolution of the
system
Molsim 2012
both approaches should lead to the same results: But......
.... there are so many molecules....
Molsim 2012
.... there are so many molecules....
...making these approaches untractable.
What was the alternative at the time ?
Molsim 2012
.... there are so many molecules....
...making these approaches untractable.
What was the alternative at the time ?
Molsim 2012
.... there are so many molecules....
...making these approaches untractable.
What was the alternative at the time ?
Molsim 2012
.... there are so many molecules....
...making these approaches untractable.
What was the alternative at the time ?
Mary-Ann Mansigh
Tom Wainwright
Molsim 2012
Performance
Super Development
computer performance development
!"%%4'()*+,%
100 Pflop/s
100000000
10 Pflop/s 2#3%4'()*+,%
10000000
1 Pflop/s
1000000
10 Tflop/s
10000 780%
1 Tflop/s 0#0$%1'()*+,%
1000 6-8 years
100 Gflop/s
100 78!..%
!"#$%&'()*+,%
My Laptop (12 Gflop/s)
10 Gflop/s
10
1 Gflop/s My iPad2 & iPhone 4s (1.02 Gflop/s)
1
-..%/'()*+,%
100 Mflop/s
0.1
Molsim 2012
Speed of MD simulations
1012
Psec/atom/CPU h
106
1
1950 1970 1990 2010
Molsim 2012
Speed of MD simulations
1012
ab-initio MD is
invented
Psec/atom/CPU h
106
1
1950 1970 1990 2010
Molsim 2012
Uses of Molecular Simulations
Molsim 2012
Uses of Molecular Simulations
• Mimic the real world:
– Predicting properties of (new) materials
– Computer ‘experiments’ at extreme conditions
– Understanding phenomena on a molecular scale
Molsim 2012
Uses of Molecular Simulations
• Mimic the real world:
– Predicting properties of (new) materials
– Computer ‘experiments’ at extreme conditions
– Understanding phenomena on a molecular scale
• Model systems
– test theory using same simple model
– explore consequences of model
– explain poorly understood phenomena in terms of
essential physics
Molsim 2012
Properties of materials
Critical properties of long chain hydrocarbons
Molsim 2012
Properties of materials
Critical properties of long chain hydrocarbons
Molsim 2012
Vapour-liquid
equilibria
13
Molsim 2012
Vapour-liquid
equilibria
Computational issues:
13
Molsim 2012
Vapour-liquid
equilibria
Computational issues:
• How to compute
vapour-liquid
equilibrium?
13
Molsim 2012
Vapour-liquid
equilibria
Computational issues:
• How to compute
vapour-liquid
equilibrium?
• How to deal with long
chain hydrocarbons?
13
Molsim 2012
Vapour-liquid
equilibria
Course on Free Computational issues:
Energies and Phase • How to compute
Equilibrium vapour-liquid
equilibrium?
• How to deal with long
chain hydrocarbons?
13
Molsim 2012
Vapour-liquid
equilibria
Course on Free Computational issues:
Energies and Phase • How to compute
Equilibrium vapour-liquid
equilibrium?
• How to deal with long
chain hydrocarbons?
Course on CBMC:
configurational-bias
Monte Carlo
13
Molsim 2012
Properties at extreme conditions
• Carbon phase behavior at very high pressure and temperature
• Empirical pair potential depending on carbon coordination
coordination number
Molsim 2012
Properties at extreme conditions
• Carbon phase behavior at very high pressure and temperature
• Empirical pair potential depending on carbon coordination
coordination number
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Course on MD
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Course on
rare events
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Molsim 2012
Understand molecular processes
• Protein conformational change with Molecular dynamics
• Empirical potential, including bonds, angles dihedrals
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
MAYBE NOT:
– These theories do not apply to solids
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
MAYBE NOT:
– These theories do not apply to solids
HOWEVER:
– There no are molecules with only repulsive interactions
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
MAYBE NOT:
– These theories do not apply to solids
HOWEVER:
– There no are molecules with only repulsive interactions
So how to test the hypothesis that molecules with only repulsive
interaction can freeze?
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
MAYBE NOT:
– These theories do not apply to solids
HOWEVER:
– There no are molecules with only repulsive interactions
So how to test the hypothesis that molecules with only repulsive
interaction can freeze?
Molsim 2012
Testing theories with simple models
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase?
YES:
– Because theories (up to then) predict that attractions are needed for vapour-
liquid equilibrium and thus why not for solids
MAYBE NOT:
– These theories do not apply to solids
HOWEVER:
– There no are molecules with only repulsive interactions
So how to test the hypothesis that molecules with only repulsive
Your hypothesis
interaction is
can freeze?
WRONG it disagrees
with the experiments
Molsim 2012
Testing theories with simple models
My hypothesis is
In the 1950‘s an important question arose: Is an attractive interaction
always required to form a solid phase? RIGHT: but this
YES: experimentalist refuses
to usearemolecules
– Because theories (up to then) predict that attractions that
needed for vapour-
liquid equilibrium and thus why not for solids do not have any
MAYBE NOT: attractive interactions
– These theories do not apply to solids
HOWEVER:
– There no are molecules with only repulsive interactions
So how to test the hypothesis that molecules with only repulsive
Your hypothesis
interaction is
can freeze?
WRONG it disagrees
with the experiments
Molsim 2012
Simulation of hard spheres
An older Alder
Molsim 2012
Simulation of hard spheres
An older Alder
Molsim 2012
Simulation of hard spheres
An older Alder
Molsim 2012
Simulation of hard spheres
An older Alder
Molsim 2012
Simulation of hard spheres
Molsim 2012
Experiments are now possible
.. not on molecules but on colloids
Molsim 2012
Explore consequences of model
• Trans membrane peptides
Molsim 2012
Explore consequences of model
• Trans membrane peptides
Molsim 2012
Explore consequences of model
• Trans membrane peptides
Molsim 2012
Explore consequences of model
• Trans membrane peptides
Molsim 2012
Understanding in terms of essential physics
Molsim 2012
Understanding in terms of essential physics
• Protein folding is complex:
explicit MD intractable
Molsim 2012
Understanding in terms of essential physics
• Protein folding is complex:
explicit MD intractable
Molsim 2012
Understanding in terms of essential physics
• Protein folding is complex:
explicit MD intractable
Molsim 2012
Understanding in terms of essential physics
• Protein folding is complex:
explicit MD intractable
Molsim 2012
Understanding in terms of essential physics
• Protein folding is complex:
explicit MD intractable
Course on
lattice models
Molsim 2012
The limits of Molecular Simulation
• Brute-force simulations can never bridge all the scales between
microscopic (nanometers/picoseconds) and macroscopic (cells,
humans, planets).
Molsim 2012
The limits of experiments
Molsim 2012
The limits of experiments
• Increasingly, experiments generate far more data than humans can digest.
Molsim 2012
The limits of experiments
• Increasingly, experiments generate far more data than humans can digest.
Molsim 2012
The limits of experiments
• Increasingly, experiments generate far more data than humans can digest.
Molsim 2012
Understanding Molecular Simulation
Molecular simulations are based on the framework of statistical
mechanics/thermodynamics
Hence:
Molsim 2012
Understanding Molecular Simulation
Molecular simulations are based on the framework of statistical
mechanics/thermodynamics
Hence:
An introduction
(or refresher) of
Statistical
Thermodynamics
Molsim 2012
Outline
• Basic Assumption
– micro-canonical ensemble
– relation to thermodynamics
• Canonical ensemble
– free energy
– thermodynamic properties
• Other ensembles
– constant pressure
– grand-canonical ensemble
Molsim 2012
Statistical Thermodynamics: the basics
Molsim 2012
Statistical Thermodynamics: the basics
• Nature is quantum-mechanical
Molsim 2012
Statistical Thermodynamics: the basics
• Nature is quantum-mechanical
• Consequence:
– Systems have discrete quantum states.
– For finite “closed” systems, the number of states is finite (but usually
very large)
Molsim 2012
Statistical Thermodynamics: the basics
• Nature is quantum-mechanical
• Consequence:
– Systems have discrete quantum states.
– For finite “closed” systems, the number of states is finite (but usually
very large)
Molsim 2012
Statistical Thermodynamics: the basics
• Nature is quantum-mechanical
• Consequence:
– Systems have discrete quantum states.
– For finite “closed” systems, the number of states is finite (but usually
very large)
• Consequence:
ALL of equilibrium Statistical Mechanics and Thermodynamics
Molsim 2012
Simpler example: standard statistics
First: Simpler example (standard statistics)
Draw N balls from an infinite vessel that contains an equal
Draw of
number N red
ballsand
from an balls
blue infinite vessel that contains an
equal number of red and blue balls
! !
Molsim 2012
1.0
0.8
0.6
0.4
0.2
NR/N
Molsim 2012
1.0
0.8 N=10
0.6
0.4
0.2
NR/N
Molsim 2012
1.0
N=100
0.8 N=10
0.6
0.4
0.2
NR/N
Molsim 2012
N=1000
1.0
N=100
0.8 N=10
0.6
0.4
0.2
NR/N
Molsim 2012
N=1000
N=10000
1.0
N=100
0.8 N=10
0.6
0.4
0.2
NR/N
Molsim 2012
Molecular consequence of
basic assumption
Molsim 2012
Molecular consequence of
Each individual
microstate is equally
probable basic assumption
Molsim 2012
Molecular consequence
Each individual
microstate is equally
of
…, but there are not many
microstates that give these
probable basic assumption extreme results
Molsim 2012
Molecular consequence
Each individual
microstate is equally
of
…, but there are not many
microstates that give these
probable basic assumption extreme results
Molsim 2012
Does the basis assumption lead to something that is
consistent with classical thermodynamics?
Systems 1 and 2 are weakly coupled
such that they can exchange energy.
Molsim 2012
Does the basis assumption lead to something that is
consistent with classical thermodynamics?
Systems 1 and 2 are weakly coupled
such that they can exchange energy.
Molsim 2012
Does the basis assumption lead to something that is
consistent with classical thermodynamics?
Systems 1 and 2 are weakly coupled
such that they can exchange energy.
BA: each configuration is equally probable; but the number of states that
give an energy E1 is not (yet) known.
Molsim 2012
Does the basis assumption lead to something that is
consistent with classical thermodynamics?
Systems 1 and 2 are weakly coupled
such that they can exchange energy.
BA: each configuration is equally probable; but the number of states that
give an energy E1 is not (yet) known.
Molsim 2012
Energy is conserved!
dE1=-dE2
( )
⎛ ∂ ln Ω1 E1 ⎞ ( )
⎛ ∂ ln Ω2 E − E1 ⎞
+ ⎜ =0
⎜ ⎟ ⎟
⎝ ∂E1 ⎠ N ,V ⎝ ∂E1 ⎠ N
1 1 2 ,V2
Molsim 2012
Energy is conserved!
dE1=-dE2
( )
⎛ ∂ ln Ω1 E1 ⎞ ( )
⎛ ∂ ln Ω2 E − E1 ⎞
+ ⎜ =0
⎜ ⎟ ⎟
⎝ ∂E1 ⎠ N ,V ⎝ ∂E1 ⎠ N
1 1 2 ,V2
Molsim 2012
Energy is conserved!
dE1=-dE2
( )
⎛ ∂ ln Ω1 E1 ⎞ ( )
⎛ ∂ ln Ω2 E − E1 ⎞
+ ⎜ =0
⎜ ⎟ ⎟
⎝ ∂E1 ⎠ N ,V ⎝ ∂E1 ⎠ N
1 1 2 ,V2
Molsim 2012
Energy is conserved!
dE1=-dE2
( )
⎛ ∂ ln Ω1 E1 ⎞ (
⎛ ∂ ln Ω2 E − E1 ⎞
+ ⎜
) =0
⎜ ⎟ ⎟
⎝ ∂E1 ⎠ N ,V ⎝ ∂E1 ⎠ N
1 1 2 ,V2
Let us define:
Molsim 2012
Normally, thermal equilibrium means: equal temperatures
Let us define:
Molsim 2012
Normally, thermal equilibrium means: equal temperatures
Let us define:
Molsim 2012
Relation to thermodynamics
Conjecture:
Almost right.
Good features:
– Extensivity
– Third law of thermodynamics comes for free
Bad feature:
– It assumes that entropy is dimensionless but (for unfortunate,
historical reasons, it is not…)
Molsim 2012
Relation to thermodynamics
Conjecture:
Almost right.
Good features:
– Extensivity
– Third law of thermodynamics comes for free
Bad feature:
– It assumes that entropy is dimensionless but (for unfortunate,
historical reasons, it is not…)
Molsim 2012
We have to live with the past, therefore
Molsim 2012
We have to live with the past, therefore
Molsim 2012
We have to live with the past, therefore
Molsim 2012
We have to live with the past, therefore
Molsim 2012
We have to live with the past, therefore
Molsim 2012
We have to live with the past, therefore
Molsim 2012
And this gives the “statistical” definition of temperature:
with
1
β=
kB T
Molsim 2012
And this gives the “statistical” definition of temperature:
with
1
β=
kB T
In short:
Entropy and temperature are both related
to the fact that we can COUNT states.
Molsim 2012
Number of configurations
35
Molsim 2012
Number of configurations
How large is Ω?
35
Molsim 2012
Number of configurations
How large is Ω?
For macroscopic systems, super-astronomically large.
35
Molsim 2012
Number of configurations
How large is Ω?
For macroscopic systems, super-astronomically large.
For instance, for a glass of water at room temperature:
35
Molsim 2012
Number of configurations
How large is Ω?
For macroscopic systems, super-astronomically large.
For instance, for a glass of water at room temperature:
35
Molsim 2012
Number of configurations
How large is Ω?
For macroscopic systems, super-astronomically large.
For instance, for a glass of water at room temperature:
35
Molsim 2012
Deviation from the 2nd law?
What is the probability that 1 mole of argon gas spontaneously lowers it
entropy by 0.00000001% (=10-10) ?
probability of occurrence is
Molsim 2012
Deviation from the 2nd law?
What is the probability that 1 mole of argon gas spontaneously lowers it
entropy by 0.00000001% (=10-10) ?
probability of occurrence is
� � � −8
�
Ωargon,low Sargon,low − Sargon −3.07 × 10 −1015
P ≈ = exp = exp ≈ 10
Ωargon kB 1.38 × 10−23
Molsim 2012
Deviation from the 2nd law?
What is the probability that 1 mole of argon gas spontaneously lowers it
entropy by 0.00000001% (=10-10) ?
probability of occurrence is
� � � −8
�
Ωargon,low Sargon,low − Sargon −3.07 × 10 −1015
P ≈ = exp = exp ≈ 10
Ωargon kB 1.38 × 10−23
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble 1/kBT
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Partition�
function:
Hence, the probability to find Ei: Q= exp(−Ej /kB T )
j
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Boltzmann distribution
Molsim 2012
Canonical ensemble
Consider a small system that can exchange heat with a big reservoir
Molsim 2012
Thermodynamics
What is the average energy of the system?
Molsim 2012
Thermodynamics
What is the average energy of the system?
Molsim 2012
Thermodynamics
What is the average energy of the system?
Molsim 2012
Thermodynamics
What is the average energy of the system?
Compare:
Molsim 2012
Thermodynamics
Thermo recall
What is the average energy ofequation
Fundamental the system?
Compare:
Molsim 2012
Thermodynamics
What is the average energy of the system?
Compare:
Hence:
Molsim 2012
The classical limit
We have assume quantum mechanics (discrete states) but
we are interested in the classical limit
N
“volume of phase space”
Molsim 2012
Appearance of Plank’s constant?
Easiest to look at translation partition function Qx of particle in 1D box
1 2 p2 p= momentum
"trans = mv = m=mass
2 2m
Postulate quantum mechanics: p=h/λ met h Planck’s constant
Particle is standing wave with length
!
Molsim 2012
Appearance of Plank’s constant?
Easiest to look at translation partition function Qx of particle in 1D box
1 2 p2 p= momentum
"trans = mv = m=mass
2 2m
Postulate quantum mechanics: p=h/λ met h Planck’s constant
Particle is standing wave with length
! 2
2L p 2 ( h / #) n 2h 2
"= "trans = = =
n 2m 2m 8mL2
! !
Molsim 2012
Appearance of Plank’s constant?
Easiest to look at translation partition function Qx of particle in 1D box
1 2 p2 p= momentum
"trans = mv = m=mass
2 2m
Postulate quantum mechanics: p=h/λ met h Planck’s constant
Particle is standing wave with length
! 2
2L p 2 ( h / #) n 2h 2
"= "trans = = =
n 2m 2m 8mL2
" " $ ! n2h2 '
Qx = # exp(!!"trans ) = # exp & ! 2 )
n=1 n=1 % 8mL (
! !
Molsim 2012
Appearance of Plank’s constant?
Easiest to look at translation partition function Qx of particle in 1D box
1 2 p2 p= momentum
"trans = mv = m=mass
2 2m
Postulate quantum mechanics: p=h/λ met h Planck’s constant
Particle is standing wave with length
! 2
2L p 2 ( h / #) n 2h 2
"= "trans = = =
n 2m 2m 8mL2
" $ ! n2h2 ' "
Qx = # exp(!!"trans ) = # exp & ! 2 )
n=1 n=1 % 8mL (
! !
" ! ! n 2 h 2 /(8mL2 ) L 2" m
Qx = # 1
dne =
h !
Molsim 2012
Appearance of Plank’s constant?
Easiest to look at translation partition function Qx of particle in 1D box
1 2 p2 p= momentum
"trans = mv = m=mass
2 2m
Postulate quantum mechanics: p=h/λ met h Planck’s constant
Particle is standing wave with length
! 2
2L p 2 ( h / #) n 2h 2
"= "trans = = =
n 2m 2m 8mL2
" $ ! n2h2 ' "
Qx = # exp(!!"trans ) = # exp & ! 2 )
n=1 n=1 % 8mL (
! !
" ! ! n 2 h 2 /(8mL2 ) L 2" m
Qx = # 1
dne =
h !
now compare
� � to classical integration without Planck’s constant
� �
2 2
p p 2πm
Qx = dpdr exp(−β + U (r)) = L dp exp(−β )=L
2m 2m β
factor of h is missing for each degree of freedom.
Molsim 2012
The classical limit
We have assume quantum mechanics (discrete states) but
we are interested in the classical limit
N
Volume of phase space (particle in a box)
Molsim 2012
The classical limit
We have assume quantum mechanics (discrete states) but
we are interested in the classical limit
N
Volume of phase space (particle in a box)
Integration over the momenta can be carried out for most systems:
Molsim 2012
The classical limit
Molsim 2012
The classical limit
Molsim 2012
The classical limit
Partition function:
Molsim 2012
Example: ideal gas
Molsim 2012
Example: ideal gas
Molsim 2012
Example: ideal gas
Molsim 2012
Example: ideal gas
Free energy:
! N ln " 3 # N lnV + N ln N # N
Molsim 2012
Example: ideal gas
Free energy:
! N ln " 3 # N lnV + N ln N # N
Molsim 2012
Example: ideal gas
Thermo recall
! N ln " 3 # N lnV + N ln N # N
(
! F = NEnergy:
ln( !! 3
) "1) with density ρ=N/V
Molsim 2012
Example: ideal gas
Free energy:
! N ln " 3 # N lnV + N ln N # N
Molsim 2012
Example: ideal gas
Free energy:
! N ln " 3 # N lnV + N ln N # N
Pressure:
Molsim 2012
Example: ideal gas
Free energy:
! N ln " 3 # N lnV + N ln N # N
Pressure: Energy:
Molsim 2012
Ideal gas (2)
⎛ ∂F ⎞
Chemical potential: µi = ⎜ ⎟
∂N
⎝ i ⎠ T ,V , N j
Molsim 2012
Ideal gas (2)
⎛ ∂F ⎞
Chemical potential: µi = ⎜ ⎟
∂N
⎝ i ⎠ T ,V , N j
! F = N ( ln( !! ) "1)
3
with density ρ=N/V
Molsim 2012
Ideal gas (2)
⎛ ∂F ⎞
Chemical potential: µi = ⎜ ⎟
∂N
⎝ i ⎠ T ,V , N j
! F = N ( ln( !! ) "1)
3
with density ρ=N/V
!µ = ln ! 3 + ln "
Molsim 2012
Ideal gas (2)
⎛ ∂F ⎞
Chemical potential: µi = ⎜ ⎟
∂N
⎝ i ⎠ T ,V , N j
! F = N ( ln( !! ) "1)
3
with density ρ=N/V
!µ = ln ! 3 + ln "
IG 0
βµ = βµ + ln ρ
Molsim 2012
Heat capacity from energy fluctuation
!! E $ ! ! E $ ! !" $
CV = # & = # & # &
" ! T %V ,N " !" %V ,N " ! T %
Molsim 2012
Heat capacity from energy fluctuation
!! E $ ! ! E $ ! !" $ 2
"! E %
CV = # & = # & # & kBT CV = ! $ '
" ! T %V ,N " !" %V ,N " ! T % # !" &V ,N
Molsim 2012
Heat capacity from energy fluctuation
!! E $ ! ! E $ ! !" $ 2
"! E %
CV = # & = # & # & kBT CV = ! $ '
" ! T %V ,N " !" %V ,N " ! T % # !" &V ,N
" E exp(!! E )
i i
i
E =
" exp(!! E ) i
i
Molsim 2012
Heat capacity from energy fluctuation
!! E $ ! ! E $ ! !" $ 2
"! E %
CV = # & = # & # & kBT CV = ! $ '
" ! T %V ,N " !" %V ,N " ! T % # !" &V ,N
!
" E exp(!" E )
i i
kBT 2CV =! i
!" " exp(!" E ) i
i
2
" E exp(!" Ei ) #% " Ei exp(!" Ei ) &(
i
2
= i !% i (
" exp(! " Ei ) % " exp(! " Ei ) (
i $ i '
2 2 2
= E ! E = (E ! E )
Molsim 2012
Heat capacity from energy fluctuation
!! E $ ! ! E $ ! !" $ 2
"! E %
CV = # & = # & # & kBT CV = ! $ '
" ! T %V ,N " !" %V ,N " ! T % # !" &V ,N
!
" E exp(!" E )
i i
kBT 2CV =! i
!" " exp(!" E ) i
i
2
" E exp(!" Ei ) #% " Ei exp(!" Ei ) &(
i
2
P(E) fluctuation in E
= i !% i ( grows as 1/√N
" exp(! " Ei ) % " exp(! " Ei ) (
i $ i '
2 2 2
= E ! E = (E ! E )
Molsim 2012
!"
Computing the pressure
∂F
P =−
∂V
F = −kT ln Q
Molsim 2012
Computing the pressure
Molsim 2012
Molsim 2012
Free energy derivative can be written as ensemble average!
Molsim 2012
For pairwise additive forces:
Then
Molsim 2012
i and j are dummy variable hence:
Molsim 2012
But as action equals reaction (Newton’s 3rd law):
And hence
Where
This is known as the virial expression
Molsim 2012
What
Whatdo youif do
to do youif cannot
you can’t
useuse
the the virial
virial expression?
expression?
Molsim 2012
Summary:
micro-canonical ensemble (N,V,E)
Molsim 2012
Summary:
micro-canonical ensemble (N,V,E)
Partition function:
Molsim 2012
Summary:
micro-canonical ensemble (N,V,E)
Partition function:
Molsim 2012
Summary:
micro-canonical ensemble (N,V,E)
Partition function:
Entropy
S = kB lnQN,V ,E
Molsim 2012
Summary:
Canonical ensemble (N,V,T)
Molsim 2012
Summary:
Canonical ensemble (N,V,T)
Partition function:
Molsim 2012
Summary:
Canonical ensemble (N,V,T)
Partition function:
Molsim 2012
Summary:
Canonical ensemble (N,V,T)
Partition function:
Free energy
Molsim 2012
Ensemble averages
For properties that only depend on the configurational part
Molsim 2012
Ensemble averages
For properties that only depend on the configurational part
Molsim 2012
Ensemble averages
For properties that only depend on the configurational part
1
P(!) = exp ["!U(!)]
Q
Molsim 2012
Ensemble averages
For properties that only depend on the configurational part
1
P(!) = exp ["!U(!)]
Q
Ensemble average:
A = " d!A(!)P(!)
Molsim 2012
Ergodicity theorem
suppose we have an ensemble average of a system defined by U(Γ) obtained by MC
Now suppose we have a NVT molecular dynamics trajectory for the same system
A time average over the trajectory is simply
Molsim 2012
Ergodicity theorem
suppose we have an ensemble average of a system defined by U(Γ) obtained by MC
Now suppose we have a NVT molecular dynamics trajectory for the same system
A time average over the trajectory is simply
Molsim 2012
Ergodicity theorem
suppose we have an ensemble average of a system defined by U(Γ) obtained by MC
Now suppose we have a NVT molecular dynamics trajectory for the same system
A time average over the trajectory is simply
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties are
independent of the ensemble: so buy a bigger computer …
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties are
independent of the ensemble: so buy a bigger computer …
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties are
independent of the ensemble: so buy a bigger computer …
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties
Course on are
independent of the ensemble: so buy a bigger
MDcomputer
and MC in…
different ensembles
However, it is most of the times much better to think and to carefully
select an appropriate ensemble.
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties are
independent of the ensemble: so buy a bigger computer …
Molsim 2012
Other ensembles?
In the thermodynamic limit the thermodynamic properties are
independent of the ensemble: so buy a bigger computer …
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
1/kBT p/kBT
Consider a small system that can exchange volume
and energy with a big reservoir
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Thermo recall
1/kBT p/kBT
Fundamental equation
Consider a small system that can exchange volume
and energy with a big reservoir
Hence
and
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
1/kBT p/kBT
Consider a small system that can exchange volume
and energy with a big reservoir
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
Constant pressure simulations:
N,P,T ensemble
Molsim 2012
N,P,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
N,P,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
N,P,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
N,P,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
1/kBT
Consider a small system that can exchange particles
and energy with a big reservoir
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
-µ/kBT
1/kBT
Consider a small system that can exchange particles
and energy with a big reservoir
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Thermo recall
-µ/kBT
1/kBT
Fundamental equation
Consider a small system that can exchange particles
and energy with a big reservoir
Hence
and
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
-µ/kBT
1/kBT
Consider a small system that can exchange particles
and energy with a big reservoir
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
Grand-canonical simulations:
µ,V,T ensemble
Molsim 2012
µ,V,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
µ,V,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
µ,V,T ensemble (2)
In the classical limit, the partition function becomes
Molsim 2012
Summary
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
Summary
• Molecular simulation is firmly rooted in equilibrium statistical
mechanics/thermodynamics
Molsim 2012
The end
Molsim 2012