CE 530 Molecular Simulation

Similar documents
Supplemental Material for Temperature-sensitive colloidal phase behavior induced by critical Casimir forces

Introduction Statistical Thermodynamics. Monday, January 6, 14

Chemical Potential. Combining the First and Second Laws for a closed system, Considering (extensive properties)

CE 530 Molecular Simulation

Evaluation of a Locus of Azeotropes by Molecular Simulation

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

Phase Equilibria and Molecular Solutions Jan G. Korvink and Evgenii Rudnyi IMTEK Albert Ludwig University Freiburg, Germany

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

UB association bias algorithm applied to the simulation of hydrogen fluoride

CE 530 Molecular Simulation

Chapter 6. Phase transitions. 6.1 Concept of phase

Thermodynamic behaviour of mixtures containing CO 2. A molecular simulation study

The Second Law of Thermodynamics (Chapter 4)

CHAPTER 4 Physical Transformations of Pure Substances.

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

The Gibbs Phase Rule F = 2 + C - P

Phase Equilibria of binary mixtures by Molecular Simulation and PR-EOS: Methane + Xenon and Xenon + Ethane

DIRECT EVALUATION OF VAPOUR-LIQUID EQUILIBRIA BY MOLECULAR DYNAMICS USING GIBBS-DUHEM INTEGRATION

CE 530 Molecular Simulation

X B1 X B Quiz Fall points total. 1. Thermodynamics. (50 points)

Melting line of the Lennard-Jones system, infinite size, and full potential

2. Thermodynamics. Introduction. Understanding Molecular Simulation

Phase Diagrams. NC State University

1. Heterogeneous Systems and Chemical Equilibrium

Intermolecular Forces and Monte-Carlo Integration 열역학특수연구

CE 530 Molecular Simulation

CHEMICAL ENGINEERING THERMODYNAMICS. Andrew S. Rosen

For an incompressible β and k = 0, Equations (6.28) and (6.29) become:

I: Life and Energy. Lecture 2: Solutions and chemical potential; Osmotic pressure (B Lentz).

Chapter 11 Solution Thermodynamics: Theory

ln( P vap(s) / torr) = T / K ln( P vap(l) / torr) = T / K

MME 2010 METALLURGICAL THERMODYNAMICS II. Fundamentals of Thermodynamics for Systems of Constant Composition

Liquids and Solids. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Pressure-enthalpy driven molecular dynamics for thermodynamic property calculation II: applications

The Clausius-Clapeyron and the Kelvin Equations

WEEK 6. Multiphase systems

On the Calculation of the Chemical Potential. Using the Particle Deletion Scheme

Introduction to molecular dynamics

Phase Transitions. Phys112 (S2012) 8 Phase Transitions 1

MS212 Thermodynamics of Materials ( 소재열역학의이해 ) Lecture Note: Chapter 7

Exam 3 Solutions. ClO g. At 200 K and a total pressure of 1.0 bar, the partial pressure ratio for the chlorine-containing compounds is p ClO2

At this point, we've developed the tools and basic concepts necessary to apply

Chapter 11. Freedom of Motion. Comparisons of the States of Matter. Liquids, Solids, and Intermolecular Forces


Physical transformations of pure substances Boiling, freezing, and the conversion of graphite to diamond examples of phase transitions changes of

Chapter 11 section 6 and Chapter 8 Sections 1-4 from Atkins

Chapter 4 Phase Transitions. 4.1 Phenomenology Basic ideas. Partition function?!?! Thermodynamic limit Statistical Mechanics 1 Week 4

Gibbs ensemble simulation of phase equilibrium in the hard core two-yukawa fluid model for the Lennard-Jones fluid

Thermodynamic condition for equilibrium between two phases a and b is G a = G b, so that during an equilibrium phase change, G ab = G a G b = 0.

Note: items marked with * you should be able to perform on a closed book exam. Chapter 10 Learning Objective Checklist

Chapter 5. Simple Mixtures Fall Semester Physical Chemistry 1 (CHM2201)

Chapter 4. The Physical transformations of pure substances Fall Semester Physical Chemistry 1 (CHM2201)

CHEM-UA 652: Thermodynamics and Kinetics

Multiphase Flow and Heat Transfer

PHYSICS 210A : STATISTICAL PHYSICS HW ASSIGNMENT #4 SOLUTIONS. ( p)( V) = 23kJ,

Phase Equilibria in a One-Component System I

Pressure Volume Temperature Relationship of Pure Fluids

Scientific Computing II

Effect of adding an ideal inert gas, M

NENG 301 Week 8 Unary Heterogeneous Systems (DeHoff, Chap. 7, Chap )

Thermodynamics of phase transitions

Critical Behavior I: Phenomenology, Universality & Scaling

Gas-liquid phase separation in oppositely charged colloids: stability and interfacial tension

PETE 310 Lectures # 36 to 37

Thermodynamics of solids 5. Unary systems. Kwangheon Park Kyung Hee University Department of Nuclear Engineering

Intermolecular Forces and Liquids and Solids

Chapter 8 Phase Diagram, Relative Stability of Solid, Liquid, and Gas

Chapter 1. The Properties of Gases Fall Semester Physical Chemistry 1 (CHM2201)

CHEMISTRY 443, Fall, 2014 (14F) Section Number: 10 Examination 2, November 5, 2014

Phase Separation Degree of Freedom Analysis. Binary Vapor-Liquid Systems. Azeotropic Systems. - Gibbs phase rule F C P 2 -General analysis

CH2351 Chemical Engineering Thermodynamics II Unit I, II Phase Equilibria. Dr. M. Subramanian


Phase transitions of quadrupolar fluids

CH.8 Polymers: Solutions, Blends, Membranes, and Gels

Name: Discussion Section:

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

What is Classical Molecular Dynamics?

Thermodynamics of Three-phase Equilibrium in Lennard Jones System with a Simplified Equation of State

Statistical Mechanics

(Crystal) Nucleation: The language

Chapter 11. Intermolecular Forces and Liquids & Solids

Chem 112 Dr. Kevin Moore

Physics 408 Final Exam

Molecular modeling of hydrogen bonding fluids: vapor-liquid coexistence and interfacial properties

Molecular Simulation Study of the Effect of Pressure on the Vapor-Liquid Interface of the Square-Well Fluid

States of matter Part 2

Phase Change (State Change): A change in physical form but not the chemical identity of a substance.

Thermodynamics, Part 2

CHEMISTRY XL-14A PHYSICAL EQUILIBRIUM. August 13, 2011 Robert Iafe

water Plays dominant role in radiation All three phases emit and absorb in longwave radiation

DENSITY FUNCTIONAL THEORY FOR STUDIES OF MULTIPLE STATES OF INHOMOGENEOUS FLUIDS AT SOLID SURFACES AND IN PORES.

Statistical Thermodynamics. Lecture 8: Theory of Chemical Equilibria(I)

Thermodynamic integration

Name: Discussion Section:

Lecture Phase transformations. Fys2160,

Intermolecular Forces and Liquids and Solids Chapter 11

2D Clausius Clapeyron equation

Nanoscale simulation lectures Statistical Mechanics

Chapter 5 - Systems under pressure 62

Physical Chemistry I CHEM 4641 Final Exam 13 questions, 30 points

Transcription:

CE 530 Molecular Simulation Lecture 20 Phase Equilibria David A. Kofke Department of Chemical Engineering SUNY Buffalo kofke@eng.buffalo.edu

2 Thermodynamic Phase Equilibria Certain thermodynamic states find that two (or more) phases may be equally stable thermodynamic phase coexistence Phases are distinguished by an order parameter; e.g. density structural order parameter magnetic or electrostatic moment Intensive-variable requirements of phase coexistence T a = T b P a = P b µ i a = µ ib, i =,,C

Phase Diagrams Phase behavior is described via phase diagrams two-phase regions two-phase lines 3 Field variable e.g., temperature isobar V critical point tie line L+V triple point S+V Density variable Gibbs phase rule F = 2 + C P F = number of degrees of freedom independently specified thermodynamic state variables C = number of components (chemical species) in the system P = number of phases Single component, F = 3 P L L+S S Field variable (pressure) S L critical point V Field variable (temperature)

Approximate Methods for Phase Equilibria by Molecular Simulation. 4 Adjust field variables until crossing of phase transition is observed e.g., lower temperature until condensation/freezing occurs Problem: metastability may obsure location of true transition isobar Temperature V Hysteresis L+V S+V L L+S S Pressure S L V Metastable region Density Temperature Try it out with the LJ NPT-MC applet

Approximate Methods for Phase Equilibria by Molecular Simulation 2. 5 Select density variable inside of two-phase region choose density between liquid and vapor values Problem: finite system size leads to large surface-to-volume ratios for each phase bulk behavior not modeled Metastability may still be a problem Temperature V L+V L L+S S S+V Density Try it out with the SW NVT MD applet

Rigorous Methods for Phase Equilibria 6 by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process T constant Chemical potential Simulation data Simulation data or equation of state Pressure

Rigorous Methods for Phase Equilibria 7 by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process T constant Chemical potential Simulation data or equation of state Pressure

Rigorous Methods for Phase Equilibria 8 by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process T constant Chemical potential Simulation data or equation of state Pressure

Rigorous Methods for Phase Equilibria 9 by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process T constant Chemical potential Simulation data or equation of state Pressure

Rigorous Methods for Phase Equilibria 0 by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process Coexistence T constant Chemical potential Simulation data or equation of state Pressure

Rigorous Methods for Phase Equilibria by Molecular Simulation Search for conditions that satisfy equilibrium criteria equality of temperature, pressure, chemical potentials Difficulties evaluation of chemical potential often is not easy tedious search-and-evaluation process Coexistence T constant Many simulations to get one point on phase diagram Chemical potential Simulation data or equation of state Pressure S L + V Pressure Temperature

Gibbs Ensemble. 2 Panagiotopoulos in 987 introduced a clever way to simulate coexisting phases without an interface Two simulation volumes Thermodynamic contact without physical contact How?

Gibbs Ensemble 2. 3 MC simulation includes moves that couple the two simulation volumes Particle exchange equilibrates chemical potential Volume exchange equilibrates pressure Incidentally, the coupled moves enforce mass and volume balance Try it out with the LJ GEMC applet

Gibbs Ensemble Formalism 4 Partition function GE Q ( N, V, T ) = dv Q( N, V, T ) Q( N N, V V, T ) Limiting distribution N V N = 0 0 N N N 2 V V V 2 3N N N N 2 N2 N N U( s, V) N2 N2 U( s, V2) = GE 2 N Λ π ( r, N, V ) dvds ds V ds e V ds e Q General algorithm. For each trial: with some pre-specified probability, select molecules displacement/rotation trial volume exchange trial molecule exchange trial conduct trial move and decide acceptance

Molecule-Exchange Trial Move Analysis of Trial Probabilities 5 Detailed specification of trial moves and probabilities Event [reverse event] Select box A [select box B] Select molecule k [select molecule k] Probability [reverse probability] /2 /2 /N A [/(N B +)] Forward-step trial probability Reverse-step trial probability ds min(, χ) N 2 A ds min(, ) 2 N + χ B Move to r new [move back to r old ] Scaled volume ds/ [ds/] Accept move [accept move] min(,χ) [min(,/χ)] χ is formulated to satisfy detailed balance

6 Molecule-Exchange Trial Move Analysis of Detailed Balance Forward-step trial probability ds min(, χ) N 2 A Reverse-step trial probability ds min(, ) 2 N + χ B Detailed balance π i π ij = π j π ji 3N N N Limiting N N ( A, ) ( B, ) (,, ) A NB NA NA U VA NB NB U VB A A A GE A B distribution N V dv d d Λ V d e Q V d e π s = s r s s s s

7 Molecule-Exchange Trial Move Analysis of Detailed Balance Forward-step trial probability ds min(, χ) N 2 A Reverse-step trial probability ds min(, ) 2 N + χ B Detailed balance π i π ij = π j π ji old new U N A N NB NB U NA NA NB+ NB+ e V min(, ) min(, ) A ds VB ds dv d A ds χ e VA ds VB ds dv s A χ 3N GE 2N = 3N GE Λ Q A Λ Q 2( NB + ) 3N N N Limiting N N ( A, ) ( B, ) (,, ) A NB NA NA U VA NB NB U VB A A A GE A B distribution N V dv d d Λ V d e Q V d e π s = s r s s s s

Molecule-Exchange Trial Move Analysis of Detailed Balance 8 Forward-step trial probability ds min(, χ) N 2 A Reverse-step trial probability ds min(, ) 2 N + χ B Detailed balance π i π ij = π j π ji old new U N A N NB NB U NA NA NB+ NB+ e V min(, ) min(, ) A ds VB ds dv d A ds χ e VA ds VB ds dv s A χ 3N GE 2N = 3N GE Λ Q A Λ Q 2( NB + ) e old new V χ = e N V N + U U B A A B V χ = V B A NA e N + B Δ U tot Acceptance probability

Volume-Exchange Trial Move Analysis of Trial Probabilities 9 Take steps in λ = ln(v A /V B ) ( ) V V V A V V dλ = + dv = dv dv A = V A B A B V V dλ A B Detailed specification of trial moves and probabilities A Step to λ new [step to λ old ] Event [reverse event] Accept move [accept move] Probability [reverse probability] dλ/δ dλ/δ min(,χ) [min(,/χ)] Forward-step trial probability Reverse-step trial probability dλ min(, χ) Δ dλ min(, ) Δ χ

20 Volume-Exchange Trial Move Analysis of Detailed Balance Forward-step trial probability dλ min(, χ) Δ Reverse-step trial probability dλ min(, ) Δ χ Detailed balance π i π ij = π j π ji Limiting distribution 3N N N N N ( A, ) ( B, ) (,, ) A N dλλ B NA NA U VA NB NB U V π N B A VA dλd d + s V GE A d e + s r s s = s VB ds e VQ

2 Volume-Exchange Trial Move Analysis of Detailed Balance Forward-step trial probability dλ min(, χ) Δ Reverse-step trial probability dλ min(, ) Δ χ old Detailed balance π i π ij = π j π ji new N A+ NA B+ NB U NA+ N NB+ B U N N e V min(, ) Ai, ds VBi, ds dλmin(, χ) e V d Aj, d VB, j d λ s s χ = 3N GE 3N GE Λ Q Δ Λ Q Δ Limiting distribution 3N N N N N ( A, ) ( B, ) (,, ) A N dλλ B NA NA U VA NB NB U V π N B A VA dλd d + s V GE A d e + s r s s = s VB ds e VQ

Volume-Exchange Trial Move Analysis of Detailed Balance 22 Forward-step trial probability dλ min(, χ) Δ Reverse-step trial probability dλ min(, ) Δ χ old Detailed balance π i π ij = π j π ji new N A+ NA B+ NB U NA+ N NB+ B U N N e V min(, ) Ai, ds VBi, ds dλmin(, χ) e V d Aj, d VB, j d λ s s χ = 3N GE 3N GE Λ Q Δ Λ Q Δ U old new NA+ NB+ U NA+ NB+ Ai, Bi, χ = Ai, Bi, e V V e V V N + new NB+ VB old VB new A V χ = A old VA e ΔU tot Acceptance probability

27 Gibbs Ensemble Limitations Limitations arise from particle-exchange requirement Molecular dynamics (polarizable models) Dense phases, or complex molecular models Solid phases N = 4n 3 (fcc)?

Approaching the Critical Point 28 Critical phenomena are difficult to capture by molecular simulation Density fluctuations are related to compressibility Correlations between fluctuations important to behavior in thermodynamic limit correlations have infinite range in simulation correlations limited by system size surface tension vanishes P ρ = 0 V ρ κ = = V P ρ P T Pressure V isotherm C L+V L L+S S σ 2 ρ κ S+V Density

29 Critical Phenomena and the Gibbs Ensemble Phase identities break down as critical point is approached Boxes swap identities (liquid vs. vapor) Both phases begin to appear in each box surface free energy goes to zero

30 Gibbs-Duhem Integration GD equation can be used to derive Clapeyron equation ln p σ = Δh ΔZ equation for coexistence line Treat as a nonlinear first-order ODE use simulation to evaluate right-hand side Trace an integration path the coincides with the coexistence line Field variable (pressure) S L critical point V Field variable (temperature)

GDI Predictor-Corrector Implementation 3 Given initial condition and slope (= Δh/ΔZ), predict new (p,t) pair. lnp Evaluate slope at new state condition lnp and use to correct estimate of new (p,t) pair lnp

32 GDI Simulation Algorithm Estimate pressure and temperature from predictor Begin simultaneous NpT simulation of both phases at the estimated conditions As simulation progresses, estimate new slope from ongoing simulation data and use with corrector to adjust p and T Continue simulation until the iterations and the simulation averages converge Repeat for the next state point Each simulation yields a coexistence point. Particle insertions are never attempted.

33 GDI Sources of Error Three primary sources of error in GDI method Stochastic error Finite step of integrator Stability lnp Incorrect initial condition? Uncertainty in slopes due to uncertainty in simulation averages 2 2 True curve 2 Quantify via propagation of error using confidence limits of simulation averages Smaller step Integrate series with every-other datum Compare predictor and corrector values Stability can be quantified Error initial condition can be corrected even after series is complete

GDI Applications and Extensions 34 Applied to a pressure-temperature phase equilibria in a wide variety of model systems emphasis on applications to solid-fluid coexistence Can be extended to describe coexistence in other planes variation of potential parameters inverse-power softness stiffness of polymers range of attraction in square-well and triangle-well variation of electrostatic polarizability as with free energy methods, need to identify and measure variation of free energy with potential parameter mixtures A = λ U λ

Semigrand Ensemble Thermodynamic formalism for mixtures d( A) = Ud PdV + µ dn+ µ 2dN2 + µ dn2 µ dn2 Rearrange d( A) = Ud PdV + µ d( N+ N2) + ( µ 2 µ ) dn2 Legendre transform = Ud PdV + µ dn + Δµ dn ( ) 2 2 d Y d( A Δµ N ) 2 2 ( ) = Ud PdV + µ dn N d Δµ 2 2 35 Independent variables include N and Δµ 2 Dependent variables include N 2 must determine this by ensemble average ensemble includes elements differing in composition at same total N Ensemble distribution π N N N N (,, 2) 2 2 (,, N E p r N N 2 ) e e + Δµ r p = 3N Υ h N!

36 GDI/GE with the Semigrand Ensemble Governing differential equation (pressure-composition plane) ln p x = Δ µ Δ ΔZ 2 T, σ 2 Simple LJ Binary σ = ε = σ 2 = ε 2 = 0.75 σ 22 = ε 22 = Pressure 0.0 0.09 0.08 0.07 0.06 Gibbs Ensemble Gibbs-Duhem Integration 0.0 0.2 0.4 0.6 0.8 Mole Fraction of Species 2.0

GDI with the Semigrand Ensemble Freezing of polydisperse hard spheres appropriate model for colloids Integrate in pressure-polydispersity plane 37 Findings upper polydisersity bound to freezing re-entrant melting dp dν sat 2 Δm2 /2 ν = Δ( V / N).4.3 c = Composition (Fugacity) Density.2. solid c 2 =.0 fluid m 2 (ν) 0.9 0.0 0. 0.2 0.3 0.4 Polydispersity 0.5 0.6 0.7 Diameter

38 Other Views of Coexistence Surface Dew and bubble lines Residue curves Azeotropes semigrand ensemble formulate appropriate differential equation integrate as in standard GDI method right-hand side involves partial molar properties Δ Δ + = Δ Δ Δ Δ Δ µ µ µ µ µ µ µ,,,,,, ) ( P P azeo sat P P azeo X Y d dp P Y P X Y X d d ) ( V L V L azeo sat v v h h d dp =

Tracing of Azeotropes Lennard-Jones binary, variation with intermolecular potential σ =.0; σ 2 =.05; σ 22 = variable ε =.0; ε 2 = 0.90; ε 22 =.0 T =.0 0.0545 39 Coexistence pressure, P* 0.0525 0.0505 0.0485 0.0465 0.0445 0.0425 0 0. 0.2 0.3 0.4 0.5 X2, Y2

40 Summary Thermodynamic phase behavior is interesting and useful Obvious methods for evaluating phase behavior by simulation are too approximate Rigorous thermodynamic method is tedious Gibbs ensemble revolutionized methodology two coexisting phases without an interface Gibbs-Duhem integration provides an alternative to use in situations where GE fails dense and complex fluids solids Semigrand ensemble is useful formalism for mixtures GDI can be extended in many ways