1 CE 530 Molecular Simulation Lecture 15 Long-range forces and Ewald sum David A. Kofke Department of Chemical Engineering SUNY Buffalo

Slides:



Advertisements
Similar presentations
Simulazione di Biomolecole: metodi e applicazioni giorgio colombo
Advertisements

Electricity. Electrostatic The Electric Field Electric charge. Conductors and Insulators Coulomb´s Law The Electric field. Electric Field Lines Calculating.
Chapter 1 Electromagnetic Fields
1 Maxwell’s Equations in Materials Electric field in dielectrics and conductors Magnetic field in materials Maxwell’s equations in its general form Boundary.
A Digital Laboratory “In the real world, this could eventually mean that most chemical experiments are conducted inside the silicon of chips instead of.
Introduction to Molecular Orbitals
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
1 Lecture 7 i. The dielectric relaxation and dielectric resonance. ii. The distribution functions of the relaxation times. iii. Cole-Cole distribution.
PHY 042: Electricity and Magnetism Electric field in Matter Prof. Hugo Beauchemin 1.
Continuum Representations of the Solvent pp (Old Edition) Eva Zurek.
Lecture 3 The Debye theory. Gases and polar molecules in non-polar solvent. The reaction field of a non-polarizable point dipole The internal and the direction.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
Lecture 6 The dielectric response functions. Superposition principle.
1 CE 530 Molecular Simulation Lecture 16 Dielectrics and Reaction Field Method David A. Kofke Department of Chemical Engineering SUNY Buffalo
2. Solving Schrödinger’s Equation Superposition Given a few solutions of Schrödinger’s equation, we can make more of them Let  1 and  2 be two solutions.
1 CE 530 Molecular Simulation Lecture 2 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Physics of fusion power Lecture 2: Lawson criterion / some plasma physics.
Ch 9 pages ; Lecture 21 – Schrodinger’s equation.
CE 400 Honors Seminar Molecular Simulation Prof. Kofke Department of Chemical Engineering University at Buffalo, State University of New York Class 1.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
Ch 23 pages Lecture 15 – Molecular interactions.
1 Physical Chemistry III Molecular Simulations Piti Treesukol Chemistry Department Faculty of Liberal Arts and Science Kasetsart University :
1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation? Static properties: pressure, specific heat, etc. Density.
1 EEE 498/598 Overview of Electrical Engineering Lecture 11: Electromagnetic Power Flow; Reflection And Transmission Of Normally and Obliquely Incident.
Cross section for potential scattering
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Ch 9 pages Lecture 23 – The Hydrogen Atom.
Chicago, July 22-23, 2002DARPA Simbiosys Review 1 Monte Carlo Particle Simulation of Ionic Channels Trudy van der Straaten Umberto Ravaioli Beckman Institute.
1 CE 530 Molecular Simulation Lecture 18 Free-energy calculations David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1.Solvation Models and 2. Combined QM / MM Methods See review article on Solvation by Cramer and Truhlar: Chem. Rev. 99, (1999)
Cross Sections One of the most important quantities we measure in nuclear physics is the cross section. Cross sections always have units of area and in.
Statistical Description of Charged Particle Beams and Emittance Measurements Jürgen Struckmeier HICforFAIR Workshop.
Chapter 24 Electric Potential What is Physics?: Experimentally, physicists and engineers discovered that the electric force is conservative and.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
Common Potential Energy Functions of Separation Distance The Potential Energy function describes the energy of a particular state. When given as a function.
Molecular Mechanics Studies involving covalent interactions (enzyme reaction): quantum mechanics; extremely slow Studies involving noncovalent interactions.
The Quantum Theory of Atoms and Molecules The Schrödinger equation and how to use wavefunctions Dr Grant Ritchie.
Lecture 16 – Molecular interactions
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 18 Some materials adapted from Prof. Keith E. Gubbins:
1 CE 530 Molecular Simulation Lecture 14 Molecular Models David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 CE 530 Molecular Simulation Lecture 12 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Interacting Molecules in a Dense Fluid
Last hour: Electron Spin Triplet electrons “avoid each other”, the WF of the system goes to zero if the two electrons approach each other. Consequence:
Generalized van der Waals Partition Function
Second virial coefficient
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 20 Some materials adapted from Prof. Keith E. Gubbins:
Molecular dynamics (4) Treatment of long-range interactions Computing properties from simulation results.
Electricity. Electrostatic The Electric Field Electric charge. Conductors and Insulators Coulomb´s Law The Electric field. Electric Field Lines Calculating.
Theory of dilute electrolyte solutions and ionized gases
©D.D. Johnson and D. Ceperley MSE485/PHY466/CSE485 1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation?
LECTURE 17 THE PARTICLE IN A BOX PHYSICS 420 SPRING 2006 Dennis Papadopoulos.
--Experimental determinations of radial distribution functions --Potential of Mean Force 1.
The Hydrogen Atom The only atom that can be solved exactly.
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
D. M. Ceperley, 2000 Simulations1 Neighbor Tables Long Range Potentials A & T pgs , Today we will learn how we can handle long range potentials.
Capacitance Chapter 25. Capacitance A capacitor consists of two isolated conductors (the plates) with charges +q and -q. Its capacitance C is defined.
The Quantum Theory of Atoms and Molecules
UPB / ETTI O.DROSU Electrical Engineering 2
Electrical Engineering Materials
Chapter 1 Electromagnetic Fields
Implementation of the TIP5P Potential
Computational Data Analysis
Scalar Properties, Static Correlations and Order Parameters
ENE/EIE 325 Electromagnetic Fields and Waves
2. Solving Schrödinger’s Equation
Quantum One.
Quantum Two.
Physics of fusion power
Presentation transcript:

1 CE 530 Molecular Simulation Lecture 15 Long-range forces and Ewald sum David A. Kofke Department of Chemical Engineering SUNY Buffalo

2 Review  Intermolecular forces arise from quantum mechanics too complex to include in lengthy simulations of bulk phases  Empirical forms give simple formulas to approximate behavior intramolecular forms: bend, stretch, torsion intermolecular: van der Waals, electrostatics, polarization  Unlike-atom interactions weak link in quantitative work

3 Truncating the Potential  Bulk system modeled via periodic boundary condition not feasible to include interactions with all images must truncate potential at half the box length (at most) to have all separations treated consistently  Contributions from distant separations may be important These two are same distance from central atom, yet: Black atom interacts Green atom does not These two are nearest images for central atom Only interactions considered

4 Truncating the Potential  Potential truncation introduces discontinuity Corresponds to an infinite force Problematic for MD simulations ruins energy conservation  Shifted potentials Removes infinite force Still discontinuity in force  Shifted-force potentials Routinely used in MD  For quantitative work need to re-introduce long-range interactions

5 Truncating the Potential  Lennard-Jones example r c = 2.5 

6 Radial Distribution Function  Radial distribution function, g(r) key quantity in statistical mechanics quantifies correlation between atom pairs  Definition  Here’s an applet that computes g(r) Here’s an applet Number of atoms at r for ideal gas Number of atoms at r in actual system

7 Radial Distribution Function. API

8 Radial Distribution Function. Java Code /** * Computes RDF for the current configuration */ public double[] currentValue() { iterator.reset(); //prepare iterator of atom pairs for(int i=0; i<nPoints; i++) {y[i] = 0.0;} //zero histogram while(iterator.hasNext()) { //loop over all pairs in phase double r = Math.sqrt(iterator.next().r2()); //get pair separation if(r < xMax) { int index = (int)(r/delr); //determine histogram index y[index]+=2; //add once for each atom } int n = phase.atomCount(); //compute normalization: divide by double norm = n*n/phase.volume(); //n, and density*(volume of shell) for(int i=0; i<nPoints; i++) {y[i] /= (norm*vShell[i]);} return y; } public class MeterRDF extends MeterFunction

9 Simple Long-Range Correction  Approximate distant interactions by assuming uniform distribution beyond cutoff: g(r) = 1 r > r cut  Corrections to thermodynamic properties Internal energy Virial Chemical potential Expression for Lennard-Jones model For r c /  = 2.5, these are about 5-10% of the total values

10 Coulombic Long-Range Correction  Coulombic interactions must be treated specially very long range 1/r form does not die off as quickly as volume grows finite only because + and – contributions cancel  Methods Full lattice sum Here is an appletHere is an applet demonstrating direct approach Ewald sum Treat surroundings as dielectric continuum

11 Aside: Fourier Series  Consider periodic function on - L/2, +L/2  A Fourier series provides an equivalent representation of the function  The coefficients are One period

12 Fourier Series Example  f(x) is a square wave

13 Fourier Series Example  f(x) is a square wave n = 1

14 Fourier Series Example  f(x) is a square wave n = 1, 3

15 Fourier Series Example  f(x) is a square wave n = 1, 3, 5

16 Fourier Series Example  f(x) is a square wave n = 1, 3, 5, 7

17 Fourier Representation  The set of Fourier-space coefficients b n contain complete information about the function  Although f(x) is periodic to infinity, b n is non-negligible over only a finite range  Sometimes the Fourier representation is more convenient to use

18 Convergence of Fourier Sum  If f(x) = sin(2  kx/L), transform is simple b n = 1 for n = k b n = 0 otherwise Converges very quickly!

19 Observations on Fourier Sum  Smooth functions f(x) require few coefficients b n  Sharp functions (square wave) require more coefficients  Large-n coefficients describe high-frequency behavior of f(x) large n = short wavelength  Small-n coefficients describe low-frequency behavior small n = long wavelength e.g., n = 0 coefficient is simple average of f(x)

20 Fourier Transform  As L increases, f(x) becomes less periodic  Fourier transform arrives in limit of L    Compact form obtained with exponential form of cos/sin  Useful relations derivative convolution inverse forward a n = real part of transform b n = imaginary part

21 Fourier Transform Example  Gaussian  Transform is also a Gaussian!  Width of transform is reciprocal of width of function k-space is “reciprocal” space sharp f(x) requires more values of F(k) for good representation  (x-x o ) transforms into a sine/cosine wave of frequency x o :

22 Fourier Transform Relevance  Many features of statistical-mechanical systems are described in k-space structure transport behavior electrostatics  This description focuses on the correlations shown over a particular length scale (depending on k)  Macroscopic observables are recovered in the k  0 limit  Corresponding treatment is applied in the time/frequency domains

23 Review of Basic Electrostatics  Force between charges  In terms of electric field  Static electric field satisfies  Charge density  (r) for point charge q 2 :  Electrostatic potential zero curl implies E can be written potential energy of charge q 1 at r, relative to position at infinity  Poisson’s equation

24 Ewald Sum  We want to sum the interaction energy of each charge in the central volume with all images of the other charges express in terms of electostatic potential the charge density creating the potential is this is a periodic function (of period L), but it is very sharp Fourier representation would never converge

25 Ewald Sum: Fourier 1.  Compute field instead by smearing all the charges  Electrostatic potential via Poisson equation direct space form reciprocal space  Fourier transform the charge density include n = 0 Large  takes  back to  function

26 Ewald Sum. Fourier 2.  Use Poisson’s equation for electrostatic potential  Invert transform to recover real-space potential in principle requires sum over infinite number of wave vectors k but reciprocal Gaussian goes to zero quickly if  is small

27 Ewald Sum. Fourier 3.  The electrostatic energy can now be obtained for point charges in potential of smeared charges  Two corrections are needed self interaction correct for smearing product of identical sums

28 Ewald Sum. Self Interaction 1.  In Ewald sum, each point charge is replaced by smeared Gaussian centered on that charge this is done to estimate the electrostatic potential field  All point charges interact with the resulting field to yield the potential energy This means that the point charge interacts with its smeared representation We need to subtract this

29 Ewald Sum. Self Interaction 2.  We work in real space to deal with the self term Poisson’s equation for the electrostatic potential due to a single smeared charge The solution is In particular, at r = 0 The self-correction subtracts this for each charge independent of configuration

30 Ewald Sum. Smearing Correction 1.  We add the correct field and subtract the approximate one to correct for the smearing  This field is short ranged for large  (narrow Gaussians) can view as point charges surrounded by shielding countercharge distribution

31 Ewald Sum. Smearing Correction 2.  Sum interaction of all charges with field correction convenient to stay in real space usually  is chosen so that sum converges within central image  Total Coulomb energy each term depends on , but the sum is independent of it if enough lattice vectors are used in the reciprocal- and real-space sums  Here is an applet that demonstrate the Ewald method Here is an applet

32 Ewald Method. Comments  Basic form requires an O(N 2 ) calculation efficiency can be introduced to reduce to O(N 3/2 ) good value of  is 5L, but should check for given application can be extended to sum point dipoles  Other methods are in common use reaction field particle-particle/particle mesh fast multipole

33 Summary  Contributions from distant interactions cannot be neglected potential truncated at no more than half box length treat long-range assuming uniform radial distribution function  Coulombic interactions require explicit summing of images too costly to perform direct sum Ewald method is more efficient smear charges to approximate electrostatic field simple correction for self interaction real-space correction for smearing