D. M. Ceperley, 2000 Simulations1 Neighbor Tables Long Range Potentials A & T pgs. 145-152,155-166 Today we will learn how we can handle long range potentials.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Reactive and Potential Field Planners
How to setup the initial conditions for a Molecular Dynamic Simulation
N-Body I CS 170: Computing for the Sciences and Mathematics.
Methods of solving problems in electrostatics Section 3.
Electric Charge and Electric Field Electric Charge and Electric Field
Dynamics of a Continuous Model for Flocking Ed Ott in collaboration with Tom Antonsen Parvez Guzdar Nicholas Mecholsky.
Divide and Conquer. Recall Complexity Analysis – Comparison of algorithm – Big O Simplification From source code – Recursive.
Nattee Niparnan. Recall  Complexity Analysis  Comparison of Two Algos  Big O  Simplification  From source code  Recursive.
Fast High-Dimensional Feature Matching for Object Recognition David Lowe Computer Science Department University of British Columbia.
Electrostatics Electrostatics is the branch of electromagnetics dealing with the effects of electric charges at rest. The fundamental law of electrostatics.
Evaluation of Fast Electrostatics Algorithms Alice N. Ko and Jesús A. Izaguirre with Thierry Matthey Department of Computer Science and Engineering University.
PHY 184 Spring 2007 Lecture 10 Title: The Electric Potential, V(x)
1 CE 530 Molecular Simulation Lecture 16 Dielectrics and Reaction Field Method David A. Kofke Department of Chemical Engineering SUNY Buffalo
Continuous Time Monte Carlo and Driven Vortices in a Periodic Potential V. Gotcheva, Yanting Wang, Albert Wang and S. Teitel University of Rochester Lattice.
Module on Computational Astrophysics Jim Stone Department of Astrophysical Sciences 125 Peyton Hall : ph :
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Chapter 21 & 22 Electric Charge Coulomb’s Law This force of repulsion or attraction due to the charge properties of objects is called an electrostatic.
Monte Carlo Methods in Partial Differential Equations.
Machine learning Image source:
1 Ion Optics Simulations What it is. How it’s useful. The SIMION ion optics software. –How it works. –Limitations and cautions –Demonstrations and examples.
Chapter 22: Electric Fields
1 Scalar Properties, Static Correlations and Order Parameters What do we get out of a simulation? Static properties: pressure, specific heat, etc. Density.
The H 2 O molecule: converging the size of the simulation box Objectives - study the convergence of the properties with the size of the unit cell.
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.
Order Statistics The ith order statistic in a set of n elements is the ith smallest element The minimum is thus the 1st order statistic The maximum is.
Scheduling Many-Body Short Range MD Simulations on a Cluster of Workstations and Custom VLSI Hardware Sumanth J.V, David R. Swanson and Hong Jiang University.
1 CE 530 Molecular Simulation Lecture 15 Long-range forces and Ewald sum David A. Kofke Department of Chemical Engineering SUNY Buffalo
Electrostatics Properties of Electric Charges.
Chapter 16 Electric Charge and Electric Field. Units of Chapter 16 Static Electricity; Electric Charge and Its Conservation Electric Charge in the Atom.
The Geometry of Biomolecular Solvation 2. Electrostatics Patrice Koehl Computer Science and Genome Center
P ARALLELIZATION IN M OLECULAR D YNAMICS By Aditya Mittal For CME346A by Professor Eric Darve Stanford University.
6.852: Distributed Algorithms Spring, 2008 April 1, 2008 Class 14 – Part 2 Applications of Distributed Algorithms to Diverse Fields.
Plan Last lab will be handed out on 11/22. No more labs/home works after Thanksgiving. 11/29 lab session will be changed to lecture. In-class final (1hour):
Chapter 4 Overview. Maxwell’s Equations Charge Distributions Volume charge density: Total Charge in a Volume Surface and Line Charge Densities.
Molecular simulation methods Ab-initio methods (Few approximations but slow) DFT CPMD Electron and nuclei treated explicitly. Classical atomistic methods.
Time-dependent Schrodinger Equation Numerical solution of the time-independent equation is straightforward constant energy solutions do not require us.
Quantum Two 1. 2 Evolution of Many Particle Systems 3.
The eggbox effect: converging the mesh cutoff Objectives - study the convergence of the energy and the forces with respect to the real space grid.
Wednesday, Sept. 21, 2005PHYS , Fall 2005 Dr. Jaehoon Yu 1 PHYS 1444 – Section 003 Lecture #7 Wednesday, Sept. 21, 2005 Dr. Jaehoon Yu Electric.
ELECTRONIC STRUCTURE OF MATERIALS From reality to simulation and back A roundtrip ticket.
Chapter 9: Molecular-dynamics Integrate equations of motion-- classical! Discrete form of Newton’s second law Forces from interaction potential For a simple.
Ceperley Finite Size effects Finite Size Effects.
Mayur Jain, John Verboncoeur, Andrew Christlieb [jainmayu, johnv, Supported by AFOSR Abstract Electrostatic particle based models Developing.
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.
GWENAEL FUBIANI L’OASIS GROUP, LBNL 6D Space charge estimates for dense electron bunches in vacuum W.P. LEEMANS, E. ESAREY, B.A. SHADWICK, J. QIANG, G.
Theory of dilute electrolyte solutions and ionized gases
Vibrational Motion Harmonic motion occurs when a particle experiences a restoring force that is proportional to its displacement. F=-kx Where k is the.
3.3 Separation of Variables 3.4 Multipole Expansion
©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?
STROUD Worked examples and exercises are in the text Programme 10: Sequences PROGRAMME 10 SEQUENCES.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Linear response theory CASTEP Developers’ Group with support from.
Wednesday, June 8, 2016PHYS , Summer 2016 Dr. Jaehoon Yu 1 PHYS 1441 – Section 001 Lecture #3 Wednesday, June 8, 2016 Dr. Jaehoon Yu Chapter 21.
Medan Listrik Statis I (Hk.Couloumb, Hk. Gauss, Potensial Listrik) Sukiswo
Today’s Lecture Neural networks Training
Line integral of Electric field: Electric Potential
Molecular Dynamics What to choose in an integrator
Implementation of the TIP5P Potential
Finite Element Method To be added later 9/18/2018 ELEN 689.
Lecture 5 : Conductors and Dipoles
Scalar Properties, Static Correlations and Order Parameters
Molecular Dynamics What to choose in an integrator
Physics of fusion power
Molecular simulation methods
Molecular Dynamics What to choose in an integrator
Divide and Conquer Merge sort and quick sort Binary search
EMT 238/3 Electromagnetic Theory
Presentation transcript:

D. M. Ceperley, 2000 Simulations1 Neighbor Tables Long Range Potentials A & T pgs , Today we will learn how we can handle long range potentials. Neighbor tables Long range potential Ewald sums

D. M. Ceperley, 2000 Simulations2 Periodic distances Minimum Image Convention:take the closest distance |r| M = min ( r+nL) Potential is cutoff so that V(r)=0 for r>L/2 since force needs to be continuous. Remember perturbation theory. Image potential V I =  v(r i -r j +nL) For long range potential this leads to the Ewald image potential. You need a back ground and convergence method.

D. M. Ceperley, 2000 Simulations3 Complexity of Force Calculations Complexity is the scaling with the number of degrees particles. Number of terms in pair potential is N(N-1)/2  O(N 2 ) For short range potential you can use neighbor tables to reduce it to O(N) –(Verlet) neighbor list for systems that move slowly –bin sort list (map system onto a mesh and find neighbors from the mesh table) This is what CLAMPS does.

D. M. Ceperley, 2000 Simulations4 CLAMPS uses bin-sort method for neighbor tables Example of 848 argon atoms: optimizing the number of bins search will be between 1 and 15 divisions in each direction examining the bin division ndiv(3)= total number of bins 0 number of neighboring bins 0 cpu secs/step E+00 potential energy E+04 examining the bin division ndiv(3)= total number of bins 64 number of neighboring bins 26 cpu secs/step E-01 potential energy E+04 examining the bin division ndiv(3)= total number of bins 125 number of neighboring bins 26 cpu secs/step E-01 potential energy E+04 examining the bin division ndiv(3)= total number of bins 216 number of neighboring bins 80 cpu secs/step E-01 potential energy E+04 bin scheme used with divisions 5 5 5

D. M. Ceperley, 2000 Simulations5 Perturbation theory One can restore a cutoff potential by using a tail correction To do better one has to find effect of perturbation on g(r). E.g. one can use the RHNC equation. Stillinger-Lovett condition says that S(k) at low k in a charge system is different that in a neutral system. S(k)=constant k 2

D. M. Ceperley, 2000 Simulations6 Charged systems How can we handle charged systems? Just treat like short-ranged potential: cutoff potential at r>L/2. Problems: –Effect of discontinuity never disappears ( (1/r) (r 2 ) gets bigger. –Will violate Stillinger-Lovett conditions because Poisson equation is not satisfied –Even a problem with dipolar forces. Image potential solves this: V I =  v(r i -r j +nL) –But summation diverges. We need to resum  Ewald image potential. –For one component system we have to add a background to make it neutral.

D. M. Ceperley, 2000 Simulations7 Ewald summation method Key idea is to split potential into k-space part and real- space part. We can do since FT is linear. Hence converges slowly at large r (in r-space) And at large k (in k-space)

D. M. Ceperley, 2000 Simulations8 Classic Ewald Split up using Gaussian charge distribution If we make it large enough we can use the minimum image potential in r-space. Extra term for insulators:

D. M. Ceperley, 2000 Simulations9 How to do it r-space part same as short-ranged potential k-space part: 1.Compute exp(ik 0 x i )=(cos (ik 0 x i ), sin (ik 0 x i )), k 0 =2  /L  i. 2.Compute powers exp(i2k 0 x i )= exp(ik 0 x i )*exp(ik 0 x i ) etc. This way we get all values of exp(ik. r i ) with just multiplications. 3.Sum over particles to get  k all k. 4.Sum over k to get the potentials. 5.Forces can also be done by taking gradients. Constant terms to be added. Checks: perfect lattice: V= /a (cubic lattice). O(N 3/2 ) O(N) O(N 3/2 ) O(N 1/2 ) O(N 3/2 ) O(1)

D. M. Ceperley, 2000 Simulations10 CLAMPS use of EWALD sums Hansen PRA 8, 3096 (1973). TYPE e DENSITY ! using plasma units LATTICE EWALD 3 1. ifchrg= 1 nkcut ckcut and sqal are E E+00 ewald sums used. lattice size in k-space E E E+00 selfen and sqal E E+00 potential summed for abs(k).le E+01 this comprises 11 shells with 141 vectors INPUT OUTPUT

D. M. Ceperley, 2000 Simulations11 Short and long range potentials Potential in r-space Potential in k-space

D. M. Ceperley, 2000 Simulations12 Fast Multipole Coulomb potentials with Ewald sums have complexity O(N 3/2 ) if you adjust . Fast Multipole Algorithms are O(N) for large N. –Divide space into cells recursively –Find dipole moment of each cell –Find rules for how dipole moments for supercells are related to moments for smaller cells. –Effective for large systems. Other related method: Particle cell methods –Compute the k=space parts on a grid with FFTs. –Hockney has developed this: Nln(N)

D. M. Ceperley, 2000 Simulations13 Problems with Image potential Introduces a lattice structure which may not be appropriate. Example: a charge layer. –We assume charge structure continues at large r. –Actually nearby fluid will be anticorrelated. –This means such structures will be penalized. One should always consider the effects of boundary conditions, particularly when electrostatic forces are around!