Brief Review of Statistical Mechanics

Similar documents
A Brief Introduction to Statistical Mechanics

Introduction Statistical Thermodynamics. Monday, January 6, 14

Javier Junquera. Statistical mechanics

Thus, the volume element remains the same as required. With this transformation, the amiltonian becomes = p i m i + U(r 1 ; :::; r N ) = and the canon

3.320 Lecture 18 (4/12/05)

ChE 210B: Advanced Topics in Equilibrium Statistical Mechanics

(# = %(& )(* +,(- Closed system, well-defined energy (or e.g. E± E/2): Microcanonical ensemble

2. Thermodynamics. Introduction. Understanding Molecular Simulation

Computer simulation methods (1) Dr. Vania Calandrini

ChE 503 A. Z. Panagiotopoulos 1

Statistical Mechanics in a Nutshell

CHEM-UA 652: Thermodynamics and Kinetics

Molecular Simulation Background

Temperature and Pressure Controls

Molecular Modeling of Matter

Analysis of MD Results Using Statistical Mechanics Methods. Molecular Modeling

Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany

Nanoscale simulation lectures Statistical Mechanics

Temperature and Pressure Controls

Basics of Statistical Mechanics

Introduction to molecular dynamics

G : Statistical Mechanics

III. Kinetic Theory of Gases

Introduction to Computer Simulations of Soft Matter Methodologies and Applications Boulder July, 19-20, 2012

HWK#7solution sets Chem 544, fall 2014/12/4

What is Classical Molecular Dynamics?

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

TSTC Lectures: Theoretical & Computational Chemistry

MONTE CARLO METHOD. Reference1: Smit Frenkel, Understanding molecular simulation, second edition, Academic press, 2002.

CH 240 Chemical Engineering Thermodynamics Spring 2007

[S R (U 0 ɛ 1 ) S R (U 0 ɛ 2 ]. (0.1) k B

Statistical thermodynamics L1-L3. Lectures 11, 12, 13 of CY101

An Outline of (Classical) Statistical Mechanics and Related Concepts in Machine Learning

Lecture 14. Entropy relationship to heat

Handout 10. Applications to Solids

Statistical Mechanics

fiziks Institute for NET/JRF, GATE, IIT-JAM, JEST, TIFR and GRE in PHYSICAL SCIENCES

Once Upon A Time, There Was A Certain Ludwig

Set the initial conditions r i. Update neighborlist. r i. Get new forces F i

Basics of Statistical Mechanics

summary of statistical physics

Wang-Landau Monte Carlo simulation. Aleš Vítek IT4I, VP3

Part II: Statistical Physics

Contents. 1 Introduction and guide for this text 1. 2 Equilibrium and entropy 6. 3 Energy and how the microscopic world works 21

4/18/2011. Titus Beu University Babes-Bolyai Department of Theoretical and Computational Physics Cluj-Napoca, Romania

1. Thermodynamics 1.1. A macroscopic view of matter

Time-Dependent Statistical Mechanics 5. The classical atomic fluid, classical mechanics, and classical equilibrium statistical mechanics

Lecture 6: Ideal gas ensembles

Part II: Statistical Physics

Advanced Topics in Equilibrium Statistical Mechanics

Statistical thermodynamics for MD and MC simulations

Statistical thermodynamics (mechanics)

MD Thermodynamics. Lecture 12 3/26/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

Introduction. Statistical physics: microscopic foundation of thermodynamics degrees of freedom 2 3 state variables!

Concepts in Materials Science I. StatMech Basics. VBS/MRC Stat Mech Basics 0

UNDERSTANDING BOLTZMANN S ANALYSIS VIA. Contents SOLVABLE MODELS

Principles of Equilibrium Statistical Mechanics

Classical Statistical Mechanics: Part 1

Statistical Mechanics. Atomistic view of Materials


3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ

Concepts of Thermodynamics

CONTENTS 1. In this course we will cover more foundational topics such as: These topics may be taught as an independent study sometime next year.

Understanding Molecular Simulation 2009 Monte Carlo and Molecular Dynamics in different ensembles. Srikanth Sastry

Microcanonical Ensemble

First Law of Thermo.

Monte Carlo Methods. Ensembles (Chapter 5) Biased Sampling (Chapter 14) Practical Aspects

Monte Carlo (MC) Simulation Methods. Elisa Fadda

Molecular Dynamics at Constant Pressure: Allowing the System to Control Volume Fluctuations via a Shell Particle

More Thermodynamics. Specific Specific Heats of a Gas Equipartition of Energy Reversible and Irreversible Processes

Physics 123 Thermodynamics Review

7.3 Heat capacities: extensive state variables (Hiroshi Matsuoka)

Rate of Heating and Cooling

ensemble and the canonical ensemble. The microcanonical ensemble is of fundamental

UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES

CE 530 Molecular Simulation

Exercise 2: Solvating the Structure Before you continue, follow these steps: Setting up Periodic Boundary Conditions

Advanced Thermodynamics. Jussi Eloranta (Updated: January 22, 2018)

Onsager theory: overview

Recitation: 10 11/06/03

where (E) is the partition function of the uniform ensemble. Recalling that we have (E) = E (E) (E) i = ij x (E) j E = ij ln (E) E = k ij ~ S E = kt i

Grand Canonical Formalism

André Schleife Department of Materials Science and Engineering

Derivation of Van der Waal s equation of state in microcanonical ensemble formulation

The Microcanonical Approach. (a) The volume of accessible phase space for a given total energy is proportional to. dq 1 dq 2 dq N dp 1 dp 2 dp N,

1 Phase Spaces and the Liouville Equation

Kinetic Theory of Gases

Chapter 3. Entropy, temperature, and the microcanonical partition function: how to calculate results with statistical mechanics.

The Ideal Gas. One particle in a box:

4.1 LAWS OF MECHANICS - Review

Chapter 3. Property Relations The essence of macroscopic thermodynamics Dependence of U, H, S, G, and F on T, P, V, etc.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department Statistical Physics I Spring Term 2013 Notes on the Microcanonical Ensemble

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department Statistical Physics I Spring Term Solutions to Problem Set #10

Chapter 9: Statistical Mechanics

2m + U( q i), (IV.26) i=1

Review Materials Midterm 1

CE 530 Molecular Simulation

Gases and the Virial Expansion

Thermal and Statistical Physics

Introduction. Chapter The Purpose of Statistical Mechanics

Transcription:

Brief Review of Statistical Mechanics Introduction Statistical mechanics: a branch of physics which studies macroscopic systems from a microscopic or molecular point of view (McQuarrie,1976) Also see (Hill,1986; Chandler, 1987) Stat mech will inform us about - how to set up and run a simulation algorithm - how to estimate macroscopic properties of interest from simulations Two important postulates - in an isolated system with constant E, V, and N, all microstates are equally likely. - time averages are equivalent to ensemble averages (principle of ergodicity). The ensemble formalism allows extension of these postulates to more useful physical situations.

Ensembles Ensemble: the (virtual) assembly of all possible microstates (that are) consistent with the constraints with which we characterize the system macroscopically (Chandler,1987) Microstate: the complete specification of a system at the most detailed level. In the most rigorous sense, the microstate of a system is its quantum state, which is obtained by solving the Schrodinger equation. Quantum states are discrete and have discrete probabilities. However, the microstate of a classical system is completely specified by the positions (r) and momenta (p) of all particles. Such microstates are part of a continuum and must be described with probability density functions. Note: We will sometimes use quantum notation for compactness, but the focus of this part of the course is on classical systems. Macroscopic constraints: generally, these are thermodynamic properties (energy, temperature, pressure, chemical potential,...)

Role of simulation For a given model system, the tasks of a molecular simulation are to: (1) Sample microstates within an ensemble, with the appropriate statistical weights (2) During the sampling, calculate and collect molecular-level information that aids in understanding the physical behavior of the system (3) Employ a large enough sample size to ensure that the collected information is meaningful (Note: even with today s powerful computers, it is generally impossible to sample all of the microstates of a model system.)

Microcanonical ensemble. Constant E, V, N. Walls are insulating According to the first postulate, all of these states are equally likely. p i = 1 W Properties that can be measured over a simulation: T, p. And, with more effort, m. Note: The conjugate variables are the ones that can be measured as outcomes. de = TdS - pdv+ mdn ds = Ê Ë 1 ˆ T de + Ê Ë p ˆ T dv- Ê m ˆ Ë T dn

Canonical ensemble. Constant T, V, N. Walls are conducting Now the boxes may have different energies! Can show (Hill,1986; McQuarrie, 1976) that the probability of a state is p i ( E i ) = e-be i Q, where b = 1 k B T Properties that can be measured: E, p. And, with more effort, m. The governing equation is d Ê S - E ˆ Ë T = -Ed Ê 1 ˆ Ë T + Ê Ë p ˆ T dv- Ê m ˆ Ë T dn

Isothermal-isobaric ensemble. Constant T, p, N. Walls are conducting and flexible Now the boxes may have different energies and volumes! Can show (Hill,1986; McQuarrie, 1976) that the probability of a state is p i ( E i,v i ) = e-be i e -bpv i D Properties that can be measured: E, V. And, with more effort, m. The governing equation is d Ê S - E T - pv ˆ Ë T = -Ed Ê 1 ˆ Ë T - Vd Ê p ˆ Ë T - Ê Ë m ˆ T dn

Grand canonical ensemble. Constant T, V, m. Walls are conducting and permeable Now the boxes may have different energies and numbers of molecules! Can show (Hill,1986; McQuarrie, 1976) that the probability of a state is p i ( E i,n i ) = e-be i e bmn i X Properties that can be measured: E, p, and N. The governing equation is d Ê S - E T + Nm ˆ Ë T = -Ed Ê 1 ˆ Ë T + Ê p ˆ Ë T dv+ Nd Ê m ˆ Ë T

Bridges to macroscopic thermodynamics Partition functions. The normalization constants are referred to as partition functions, and they have (macroscopic) physical significance. Summary, in quantum notation: Ensemble Canonical Microcanonical Isothermal- Isobaric Grand canonical W E,V,N Partition Function ( ) = 1 ( ) = e -be i Q T,V,N i ( ) = e -bpv D T,p,N i V i e -be i( V) ( ) = e -bpv Q T,V,N V ( ) = e bmn X T,V,m N e -be i( N ) = e bmn Q T,V,N N i ( ) Bridge Equation S = lnw k B -ba = lnq -bg = lnd bpv = lnx

We can translate these quantum formulas into quasiclassical expressions that are appropriate for our force-field-based molecular modeling approach. Recall that the microstate of a classical system is not defined by a quantum state, but rather by the position and momentum of each particle. To get a partition function, we must sum (actually integrate, for the classical case) over all possible microstates. Example: canonical partition function Q = 1 N! where 1 3N... h ( { } ) = K p { N} H p { N},r N dp 1...dp N dr 1...dr N e -bh ( ) +U( r { N} ) If we could evaluate this partition function for a model system at various temperatures and volumes, we could obtain thermodynamic properties via -ba( b,v,n) = lnq E = - ( -ba) b V,N bp = ( -ba) V T,N

However, it is not even close to practical to calculate the partition function for a typical system. Example: Say we have a system with N=100 atoms, and we wish to evaluate the configurational (r) part of the canonical partition function. We have 3N=300 coordinates over which to integrate. Try a Simpson s rule integration, where 10 function evaluations per coordinate are employed (a fairly coarse grid). # of function evaluations = ( 10) ( 10)L ( 10) = 10 300 10 300 Ê sec ˆ ( operations) Á Ë 5 10 12 ª 10 288 sec ops ª 10 280 yrs Not likely in the forseeable future! Instead, we focus on obtaining averages of properties of interest.

Formalism for simple averages. One can easily define the average of any property that has a simple dependence on the microstate variables. For example, in quantum notation B = i B i p i In the canonical ensemble, for example, we have B = i B i e -be i Q In classical notation, a similar expression can be written for any quantity that has a simple, direct functional dependence on molecular positions and momenta. B = 1 1 3N... N! h dp 1...dp N dr 1...dr N B( p {N},r {N} )e -bh Q This seems no better than before we can t calculate the numerator or denominator! But

Obtaining simple averages from simulation. Recall that it is the task of a simulation algorithm to generate microstates in an ensemble, in proportion to their statistical weights (probabilities). This can be done - probabilistically (Monte Carlo) - deterministically (molecular dynamics) * * actually a time average we ll revisit this issue Either way, given a set of n obs representative microstates, we can write the average of B as B = 1 n obs nobs i=1 B p {N} {N} ( i,r i ) as long as those microstates were generated according to the appropriate weighting function p for that ensemble! The quality of the result that you obtain depends on n obs.

Separation of the energy. In the classical limit, the kinetic energy (K) and potential energy (U) can be considered as separable in the Hamiltonian. This allows Q to be factored Q = 1 1 ( N! h 3N... dp 1...dp N e -bk )(... dr 1...dr N e -bu ) and the momentum part will drop out of averages that depend only on positions. B = 1 1 ( N! h 3N... dp 1...dp N e -bk )(... dr 1...dr N B( r {N} )e -bu ) 1 1 ( N! h 3N... dp 1...dp N e -bk )(... dr 1...dr N e -bu ) =... dr 1...dr N B( r {N} )e -bu... dr 1...dr N e -bu This is why Monte Carlo, where there is no time, can still be useful in obtaining thermodynamic properties.

Examples of simple averages. Kinetic energy. The classical definition is K = N i=1 1 2m i p i 2 So we have K = 1 n obs nobs ( ) {N} K p i = 1 Ê N 1 2ˆ Á p n obs 2m i Ë i i=1 nobs i=1 i=1

Temperature. K = Start with the rigorous definition of K 1 N! ( )(... dr 1...dr N e -bu ) ( )(... dr 1...dr N e -bu ) 1 h... dp 3N 1...dp N K( p {N} )e -bk 1 1 N! h 3N... dp 1...dp N e -bk =... dp 1...dp N K( p {N} )e -bk... dp 1...dp N e -bk Can show that for K = N i=1 1 2 p 2m i, this reduces to i K = 3 2 Nk BT The equipartition principle: any contribution to the Hamiltonian that is additive and quadratic will contribute (k B T/2) to the energy. (McQuarrie,1976 pp. 121-123) So the average temperature is T = 2 3Nk B K

Potential energy. This is simply the interaction potential within and between molecules (intramolecular and intermolecular, respectively). It depends only on the atomic coordinates, not the momenta. So we may write U = 1 n obs n obs i=1 {N} U( r i ) We may write a similar relationship for any particular component of the potential energy. For example, for a polymeric system we may be interested in the torsional component of the potential: U tors = 1 n obs nobs i=1 {N} U tors ( r i )

Pressure. Pressure can be obtained from the virial formula (Allen and Tildesley,1987) PV = Nk B T + W where W is the virial W = 1 3 N i=1 r i f i Usually this is reduced into a form that is independent of origin before application. For example, for pairwise forces, the virial takes the form N-1 N W = 1 r 3 ij f ij 1 3 i=1 j=i+1 i j>i r ij f ij Three-body and higher forces are more complicated, but similar formulas can be derived.

Chemical potential. Chemical potential is not a mechanical variable it does not have a simple, direct functional dependence on molecular positions and momenta. Calculating the chemical potential of a species from a molecular simulation can be quite challenging; we will discuss this in detail later. For now, the following definition (in the canonical ensemble) provides a clue on how it might be calculated bm = - -ba ( ) N b,v

Ergodicity Ergodic hypothesis. a large number of observations made on a single system at n arbitrary instants of time have the same statistical properties as observing n arbitrarily chosen systems at the same time from an ensemble (McQuarrie,1976) time average Û ensemble average We believe that it holds for all many-body systems in nature. (Chandler,1987) Implications for molecular simulation. (Allen and Tildesley,1987; Frenkel and Smit,1996) molecular dynamics simulation in time average over snapshots in time Monte Carlo probabilistic walk through configurations average over (properly weighted) configurations When we simulate a given model system under a given set of macroscopic constraints, we should get statistically identical results from MD and MC.

Ergodic problems in molecular simulation. It is possible for your simulation to become effectively stuck in certain regions of phase space (r {N},p {N} ) and not explore other regions of importance. phase space (Figure by D.A. Kofke) This can happen because of - effective (kinetic) barriers - true disconnects in phase space of model When it happens -the simulated system is effectively (or truly) nonergodic -you may have phase space sampling problems -fail to achieve a representative sampling of microstates - calculated averages are not true averages of your model system.

Phase-space sampling problems can occur with both MD and MC algorithms. There are several ways to look for, and avoid, such problems. Molecular dynamics - increase simulation time - vary starting conditions - use annealing Monte Carlo - same remedies as MD, plus - use special (bolder) algorithms

Role of simulation, re-visited For a given model system, the tasks of a molecular simulation are to: (1) Sample microstates within an ensemble, with the appropriate statistical weights (2) During the sampling, calculate and collect molecular-level information that aids in understanding the physical behavior of the system (3) Employ a large enough sample size to ensure that the collected information is meaningful (Note: even with today s powerful computers, it is generally impossible to sample all of the microstates of a model system.)