Tutorial on the smooth particle-mesh Ewald algorithm

Similar documents
Non-bonded interactions

Non-bonded interactions

Advanced Molecular Molecular Dynamics

Computer simulation methods (2) Dr. Vania Calandrini

Neighbor Tables Long-Range Potentials

N-body simulations. Phys 750 Lecture 10

Lecture 12: Solvation Models: Molecular Mechanics Modeling of Hydration Effects

Computational Molecular Biophysics. Computational Biophysics, GRS Jülich SS 2013

Notes on Ewald summation techniques

We denote the space of distributions on Ω by D ( Ω) 2.

Long-range interactions: P 3 M, MMMxD, ELC, MEMD and ICC

MOLECULAR DYNAMICS SIMULATIONS OF BIOMOLECULES: Long-Range Electrostatic Effects

Why Proteins Fold? (Parts of this presentation are based on work of Ashok Kolaskar) CS490B: Introduction to Bioinformatics Mar.

Smoothed Particle Hydrodynamics (SPH) 4. May 2012

Optimizing GROMACS for parallel performance

Fourier transforms, Generalised functions and Greens functions

An FPGA Implementation of Reciprocal Sums for SPME

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

Nonlinear Stationary Subdivision

arxiv: v2 [physics.comp-ph] 19 Oct 2008

Seminar in Particles Simulations. Particle Mesh Ewald. Theodora Konstantinidou

Econometrics I. Lecture 10: Nonparametric Estimation with Kernels. Paul T. Scott NYU Stern. Fall 2018

The Sommerfeld Polynomial Method: Harmonic Oscillator Example

1 Introduction. 2 Measure theoretic definitions

Approximation by Conditionally Positive Definite Functions with Finitely Many Centers

Introduction to molecular dynamics

EXPOSITORY NOTES ON DISTRIBUTION THEORY, FALL 2018

Bessel Functions Michael Taylor. Lecture Notes for Math 524

Coarse-Grained Models!

Long range interactions in computer simulations. 1 (Part 3)

Laplace s Equation. Chapter Mean Value Formulas

We have to prove now that (3.38) defines an orthonormal wavelet. It belongs to W 0 by Lemma and (3.55) with j = 1. We can write any f W 1 as

THE MATTILA INTEGRAL ASSOCIATED WITH SIGN INDEFINITE MEASURES. Alex Iosevich and Misha Rudnev. August 3, Introduction

A new method for the solution of scattering problems

Physics 342 Lecture 30. Solids. Lecture 30. Physics 342 Quantum Mechanics I

Molecular Modeling -- Lecture 15 Surfaces and electrostatics

A review: The Laplacian and the d Alembertian. j=1

Lecture Notes on ELECTROMAGNETIC FIELDS AND WAVES

An introduction to Molecular Dynamics. EMBO, June 2016

Analytic families of multilinear operators

Efficient multiple time step method for use with Ewald and particle mesh Ewald for large biomolecular systems

Preliminaries: what you need to know

TOOLS FROM HARMONIC ANALYSIS

Efficient Algorithms for Electrostatic Interactions Including Dielectric Contrasts

Harmonic Analysis Homework 5

All-atom Molecular Mechanics. Trent E. Balius AMS 535 / CHE /27/2010

A reciprocal space based method for treating long range interactions in ab initio and force-field-based calculations in clusters

ABSTRACT SCATTERING SYSTEMS: SOME SURPRISING CONNECTIONS

Trace Class Operators and Lidskii s Theorem

BIOC : Homework 1 Due 10/10

HOW TO LOOK AT MINKOWSKI S THEOREM

Quadratic reciprocity (after Weil) 1. Standard set-up and Poisson summation

Lecture 27 Frequency Response 2

CHAPTER 6 bis. Distributions

Reproducing formulas associated with symbols

Accelerated Stokesian Dynamics simulations

Free energy simulations

CS 542G: The Poisson Problem, Finite Differences

Vectors in Function Spaces

Lecture 4: Numerical solution of ordinary differential equations

Fundamental Solutions of Stokes and Oseen Problem in Two Spatial Dimensions

A universal thin film model for Ginzburg-Landau energy with dipolar interaction

A Banach Gelfand Triple Framework for Regularization and App

Green s Function for Problems with Layers

1. Poisson-Boltzmann 1.1. Poisson equation. We consider the Laplacian. which is given in spherical coordinates by (2)

Theoretische Physik 2: Elektrodynamik (Prof. A-S. Smith) Home assignment 11

RANDOM PROPERTIES BENOIT PAUSADER

Bochner s Theorem on the Fourier Transform on R

4: The Pandemic process

The Gaussians Distribution

Multiple time step Monte Carlo simulations: Application to charged systems with Ewald summation

Simulations of bulk phases. Periodic boundaries. Cubic boxes

Appendix lecture 9: Extra terms.

Multiresolution analysis by infinitely differentiable compactly supported functions. N. Dyn A. Ron. September 1992 ABSTRACT

An Inverse Mass Expansion for Entanglement Entropy. Free Massive Scalar Field Theory

Solutions to Tutorial 11 (Week 12)

Summary of free theory: one particle state: vacuum state is annihilated by all a s: then, one particle state has normalization:

FOURIER INVERSION. an additive character in each of its arguments. The Fourier transform of f is

Molecular Dynamics Simulations. Dr. Noelia Faginas Lago Dipartimento di Chimica,Biologia e Biotecnologie Università di Perugia

Molecular Dynamics. A very brief introduction

Some Background Material

SYSM 6303: Quantitative Introduction to Risk and Uncertainty in Business Lecture 4: Fitting Data to Distributions

Molecular Dynamics Simulations

On some weighted fractional porous media equations

Poisson summation and the discrete Fourier transform John Kerl University of Arizona, Math 523B April 14, 2006

Abel Inversion using the Maximum Entropy Method

Chern forms and the Fredholm determinant

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

and the seeds of quantisation

Multiscale Modelling, taking into account Collisions

Fast Multipole Methods: Fundamentals & Applications. Ramani Duraiswami Nail A. Gumerov

Physics 342 Lecture 22. The Hydrogen Atom. Lecture 22. Physics 342 Quantum Mechanics I

General Instructions

Subdiffusion in a nonconvex polygon

A DaFT (Mixed Radix) FFT. for DL_POLY_4

Topics in Harmonic Analysis Lecture 1: The Fourier transform

Topic 4 Notes Jeremy Orloff

MGA Tutorial, September 08, 2004 Construction of Wavelets. Jan-Olov Strömberg

EECS 117 Lecture 18: Magnetic Energy and Inductance

Function spaces and multiplier operators

Transcription:

Tutorial on the smooth particle-mesh Ewald algorithm These notes explain the smooth particle-mesh Ewald algorithm (SPME) in detail. The accompanying library libpme6 is a fully-featured implementation of SPME that can be used for experimentation and reference. This content can also be found in PDF format here. Introduction Motivation and overview of the SPME algorithm Consider two atoms, labeled and, contained in a parallelepiped with sides determined by the (positively oriented) vectors l, l, l 3 R 3 (see Figure ). Then the matrix L [l, l, l 3 ] R 3 3 is such Figure : Simulation box spanned by three vectors. that V det L > 0. ow suppose that atom i is at a position r i L x i where x i [0, ) 3 for i, and that r ij r i r j (see Figure ). Between these two atoms there is a force that depends on Figure : Two atoms at a distance r ij. their distance and whose corresponding potential energy, U ij U ij (r ij ), is shown in Figure. If instead of just two atoms we had a total of > atoms (see Figure ), then the total potential energy would be equal to H i j i j U ij (r ij ). () By solving ewton s second law we would be able to simulate the Force equals mass times acceleration.

tutorial on spme U(r) r r 6 U 0 (r) r U (r) r 6 Figure 3: Decomposition of the Lennard Jones -6 potential into repulsive (powers of ) and dispersive (powers of 6) contributions. Energy Distance (r) Figure 4: Argon gas ( 0 3 atoms). molecular system of atoms that interact according to the (pairwise) forces given by F U. In practice, whatever value of that can be tractable with current computers is still far away from the more realistic figure of A 6.0 0 3 (Avogadro s number) which would capture the real physics of the system. One trick to somehow get closer to A is to use a tractable value of and impose periodic boundary conditions (PBCs). This means that we now have an infinite lattice of simulation boxes with identical copies of the particles in each box. By computing the interactions between the atoms in the original box and their copies (only the copies in the neighboring simulation boxes are typically taken into account this is called the minimum image convention ), we can make our simulations more realistic.

tutorial on spme 3 Figure 5: The protein DHFR solvated in water (left) and two views (center, right) without solvent. This system has 3536 atoms, so 08 and log 05. The total potential energy () then becomes H Uij (kri r j k) + i j i6 j Uij (kri r j + Lnk). n Z3 n 6 0 i j The naive approach to PBCs requires O( ) calculations and is unfeasible, hence the interest of finding efficient ways of carrying out this task. Ewald summation takes advantage of ideas from Harmonic analysis to reduce the complexity to O( 3/ ) operations, which is still impractical if we want to solve the equations of motion of a large system. The Particle-Mesh Ewald (PME) method 3 uses the Fast Fourier Transform to bring the complexity down to O( log ), and this algorithm has been a staple of Molecular Simulation since its appearance. The Smooth Particle-Mesh Ewald (SPME) improves on PME by giving a sufficiently smooth energy function whose derivative can be obtained analytically, which results in more realistic simulations due to improved energy conservation. Some of the people involved in the development of the SPME algorithm appear in Figure. P. P. Ewald. Die Berechnung optischer und elektrostatischer Gitterpotentiale. Annalen der Physik, 369(3):53 87, 9 T. Darden, D. York, and L. Pedersen. Particle mesh Ewald: An log( ) method for Ewald sums in large systems. The Journal of Chemical Physics, 98():0089, 993 3 Smooth Particle-Mesh Ewald We derive the formulas for Ewald summation following 4 and then we introduce the smooth Particle-Mesh Ewald method from 5. Decomposition of the potential energy function Ewald summation can be applied whenever the pairwise potential energy U U (r ) is proportional to r n for some n (a concrete instance of U appears in Figure ). In that case, we can write U as a sum of the form U (r ) U0 (r ) + U (r ), () D. E. Williams. Accelerated convergence treatment of R n lattice sums. In Uri Shmueli, editor, International Tables for Crystallography, volume B, pages 385 397. Kluwer Academic Publishers, 006 5 U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee, and L. G. Pedersen. A smooth particle mesh Ewald method. The Journal of Chemical Physics, 03(9):8577, 995 4

tutorial on spme 4 Figure 6: Some of the people behind SPME. Pictures reproduced from http://journals.iucr.org/a/issues/ 0/0/00/wx0006/ and http://www. psc.edu/science/darden/. (a) Paul Peter Ewald (b) Tom Darden and (888-985). Lee Pedersen. (c) Mike Crowley. where the short-range term, U 0, decays fast as r goes to infinity (so that it can be truncated) and the long-range term, U, is very spread out and smooth, so that its Fourier transform is concentrated (and can also be truncated). There are many ways of splitting the potential energy but 6 establishes the optimality for a class of functions involving the (incomplete) Gamma function. If we define 6 B. R. A. ijboer and F. W. De Wette. On the calculation of lattice sums. Physica, 3(-5):309 3, 957 ϕ n (r) Γ(n/, α π r ), Γ(n/) where α is a parameter to be discussed later, then we clearly have r n r n (ϕ n(r) + ( ϕ n (r))). We are going to concern ourselves with the case n 6 (see Figure ), and to define ψ(r) r 6 ϕ 6 (r). The free parameter α is determined by numerically solving the equation r 6 ( ϕ 6 (r cutoff ; α)) ε with prescribed values of r cutoff and ε (the function ϕ n must be decreasing for r > r cutoff ). This makes the short-range part of the computation involving effectively vanish for r > r cutoff.

tutorial on spme 5 0. r 6 ϕ 6 (r) r 6 ( ϕ 6 (r)) r 6 Figure 7: Decomposition of the function r 6 into short-range and long-range terms. Energy 0.05 0 3 4 5 r Recall that in the case of > particles, we have H i j i j U ij ( r i r j ) + n Z 3 i j n 0 U ij ( r i r j + Ln ). where r ij is the distance between atoms i and j. We can split the pairwise potential U ij above as in (). Ewald summation The summation of the long-range terms (with b i > 0), U i j i j can be rearranged as U b i b j ψ( r i r j ) + n Z 3 i j where ψ(0) lim r 0 + ψ(r). n Z 3 i j n 0 b i b j ψ( r i r j + Ln ) b i b j ψ( r i r j + Ln ) (3) bi ψ(0), (4) i Lemma (Poisson s summation formula). If D(r) n Z 3 δ(r Ln), then D(h) V d Z 3 δ(h L T d). Lemma. Consider the distributions ρ(r) i b i δ(r r i ), η(r) ρ( r), and D(r) n Z 3 δ(r Ln). The following identity holds: n Z 3 i j b i b j ψ( r i r j + Ln ) ψ(r) (ρ η D) (r) dr, where r r.

tutorial on spme 6 D Figure 8: Example of Poisson s summation formula. 4 0 4 D -4-0 4 Proof. First, ρ η (r) ρ(s) η(r s) ds ρ(s) ρ(s r) ds i j i j b i b j δ(s r i ) δ(r s r j ) ds b i b j δ(r (r i r j )). By the associative property of the convolution, we have so Finally, ρ η D (ρ η) D, ρ η D (r) ρ η (s) D(s r) ds i j i j ψ(r) (ρ η D) (r) dr ψ(r) b i b j n Z 3 i j n Z 3 i j δ(s (r i r j )) D(s r) ds b i b j D(s (r i r j )) b i b j δ(s (r i r j + Ln)). b i b j δ(s (r i r j + Ln)) dr n Z 3 i j b i b j ψ( r i r j + Ln ).

tutorial on spme 7 At this point we can go back to (4) and rewrite it as U ψ(r) (ρ η D) (r) dr bi ψ(0), (5) i Furthermore, using Plancherel s Theorem 7 and the fact that ρ η D is real-valued, we can write ψ(r) (ρ η D) (r) dr ψ(h) (ρ η D)(h) dh, (6) 7 T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003 where h h. Consequently, equation (5) becomes U ψ(h) (ρ η D)(h) dh bi ψ(0), (7) i By the properties of the Fourier transform of a convolution 8 and Poisson s summation formula, (ρ η D)(h) ρ(h) ρ( h) V d Z 3 δ(h L T d) ρ(h) V d Z 3 δ(h L T d). 8 T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003 From the above and (6), we have ψ (ρ η D) ψ(h) ( ρ(h) ) V δ(h L T d) dh d Z 3 V d Z 3 ψ( L T d ) ρ(l T d) V m V m 0 ψ(m) ρ(m) ψ(m) ρ(m) + V lim ψ(m) ρ(0) m 0 V m 0 ψ(m) ρ(m) + V lim ψ(m) m 0 ( ) b i, i where m L T d and m m. So, to sum up, we have arrived at the identity: U i j i j b i b j ψ( r i r j ) + n Z 3 i j n 0 b i b j ψ( r i r j + Ln ) V ψ(m) ρ(m) ( ) + V ψ(0) b i ψ(0) bi, m 0 i i

tutorial on spme 8 Fast Fourier Transform and Particle-Mesh method Ewald summation using optimal parameters requires O( 3/ ) operations 9 but it can be modified so that it involves only about O( log ) operations by using the Fast Fourier Transform 0. We now concern ourselves with summing (and later taking derivatives of) the expression ψ(m) ρ(m). (8) m 0 By the definition of the (inverse) Fourier Transform, we see that ρ(m) b j e πi mt r j, j where r j L x j for some x j [0, ) 3. Moreover, 9 S. W. de Leeuw, J. W. Perram, and E. R. Smith. Simulation of Electrostatic Systems in Periodic Boundary Conditions. I. Lattice Sums and Dielectric Constants. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 373(75):7 56, October 980 0 U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee, and L. G. Pedersen. A smooth particle mesh Ewald method. The Journal of Chemical Physics, 03(9):8577, 995; and R. W. Hockney and J. J. W. Eastwood. Computer Simulation Using Particles. Adam Hilger, 988 ρ(m) b j e πi mt r j j b j e πi dt L L x j j b j e πi dt x j. j We are going to approximate the complex exponential terms above by means of Cardinal B-Splines. An order p B-spline function is the p-fold convolution of the uniform density in the unit interval (see Figure ). By construction, each order p B-spline is of class C p, their I. J. Schoenberg. Cardinal Spline Interpolation. Society for Industrial and Applied Mathematics, 973 Order Order Figure 9: Basic B-splines y 0 y 0 0 3 4 5 x 0 3 4 5 x Order 3 Order 4 y 0 y 0 0 3 4 5 x 0 3 4 5 x integral equals, and they have compact support. Remark. Observe that these splines play the role of approximations to the identity when used in a meshing of the unit cell. It is in this sense that they play a role in approximating the Dirac delta functions in ρ.

tutorial on spme 9 ow, to discretize the simulation box we consider K, K, K 3 and let [ ] K K K. For each r Lx, we set u Kx and we have e πi mtr e πi dtx e πi dt K u πi dtk l W(u l) e l Z 3 k k k K 3 n Z 3 W(u (k + Kn)) e πi dt K (k+kn) πi dtn W(u (k + Kn)) e πi dtk k e }{{} n Z 3 n Z 3 W(u (k + Kn)) e πi dt K k, where we have used the Euclidean algorithm to write l k + Kn with k i {0,,..., K i } and n Z 3. We also define the forward (unnormalized) DFT of the 3D array Q k as K K K 3 Q d DFT[Q k ] d Q k e πi dt K k. k 0 k 0 k 3 0 And, likewise, the backward DFT is IDFT[ Q d ] k K d 0 K d 0 Using the previous results, we write ρ(m) b j e πi dt x j j k j K 3 d 3 0 Q d e πi dt K k. b j W(u (k + Kn)) n Z } 3 {{} Q k Q k e πi dt K k Q d. k e πi dt K k Remark. It is important to notice that since the splines have compact support, the infinite series above is actually a finite sum. Remark. The following diagram depicts the relationships between the different objects involved in the SPME method: IFT ρ Q IDFT ρ Q

tutorial on spme 0 Going back to (8), we carry out the following approximation: ψ(m) ρ(m) ψ(m) ρ( m) ρ(m) ψ( L T d ) Q d Q d m 0 m 0 d 0 ow define with ϕ( L T h ), if h 0, A d 0, if h 0. d i, if 0 d i < h i (d) K i, K i d i, if K i d i < K i. (note that K i h i < K i ). Then, K d K K d K K 3 ψ( L T d ) Q d Q d d 3 K 3 K d 0 K d 0 K 3 d 3 0 A d Q d Q d. Applying the following property of the Fourier transform (see ), f dg ĝ d f, T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003 we write (using the notation of the previous section and keeping in mind that the result works in the distributional sense too) ) ψ η ρ ψ η ρ (Ĉ ρ ρ where we have used that f g f ĝ and that, for f f (x), f (x) f ( x) (again, see 3 ). Therefore, the algorithm boils down to: Q k Q d DFT(Q) d 3 T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003 A d DFT(Q) d IDFT(A DFT(Q)) k (IDFT(A) Q) k (IDFT(A) Q) k Q k, Assorted results in Harmonic analysis Theorem 3 (The convolution is commutative). Theorem 4 (The Fourier transform of a convolution is the product of the Fourier transforms). Theorem 5. 4 For absolutely continuous measures µ, ν in R n. We have ˆµ dν ˆν dµ 4 T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003 Theorem 6 (Plancherel s theorem).

tutorial on spme References [dlps80] S. W. de Leeuw, J. W. Perram, and E. R. Smith. Simulation of Electrostatic Systems in Periodic Boundary Conditions. I. Lattice Sums and Dielectric Constants. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 373(75):7 56, October 980. [DYP93] T. Darden, D. York, and L. Pedersen. Particle mesh Ewald: An log() method for Ewald sums in large systems. The Journal of Chemical Physics, 98():0089, 993. [EPB + 95] U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee, and L. G. Pedersen. A smooth particle mesh Ewald method. The Journal of Chemical Physics, 03(9):8577, 995. [Ewa] P. P. Ewald. Die Berechnung optischer und elektrostatischer Gitterpotentiale. Annalen der Physik, 369(3):53 87, 9. [HE88] R. W. Hockney and J. J. W. Eastwood. Computer Simulation Using Particles. Adam Hilger, 988. [D57] B. R. A. ijboer and F. W. De Wette. On the calculation of lattice sums. Physica, 3(-5):309 3, 957. [Sch73] I. J. Schoenberg. Cardinal Spline Interpolation. Society for Industrial and Applied Mathematics, 973. [Wil06] D. E. Williams. Accelerated convergence treatment of R n lattice sums. In Uri Shmueli, editor, International Tables for Crystallography, volume B, pages 385 397. Kluwer Academic Publishers, 006. [Wol03] T. H. Wolff. Lectures on harmonic analysis, volume 9 of University Lecture Series. American Mathematical Society, Providence, RI, 003.