+ All Categories
Home > Documents > Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Date post: 28-Mar-2015
Category:
Upload: david-gill
View: 218 times
Download: 1 times
Share this document with a friend
Popular Tags:
22
Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002
Transcript
Page 1: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Searching for Neighbor Atoms in Large-Scale

Atomistic Simulations

Wednesday, 10/30/2002

Page 2: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Interatomic Force Calculation in MD Simulation

A neighbor list is maintained for each atom to speed up force calculation.

Fi = fijj≠i

∑ Searching neighboring atoms

Page 3: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

MPM: No Neighbor Particle Finding

M (n) = m( p)

n

∑ N (n,p)

F x(n) = m(p)N (n,p)bx

( p)

p

F y(n) = m(p)N (n,p)by

( p)

p

f x(n) =− V( p) σxx

( p)N,x(n,p) +σ xy

( p)N,y(n,p)

[ ]p

f y(n) =− V( p) σxy

( p)N,x(n,p) +σ yy

( p)N,y(n,p)

[ ]p

Page 4: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Interatomic Force Cut-off Radius

The size of the background grid equals the cut-off radius of the interatomic force.

Page 5: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Searing the Neighbor

Page 6: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Large-scale MD Simulation

Page 7: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Dynamically Update

Atoms List

Page 8: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Put Particles Into Cells

%ncell is the total number of cells%np is the total number of particles%a is the size of a cell%ncelly is the number of cells in y %direction

plist_c=linspace(0,0,ncell);plist_p=linspace(0,0,np);for p=1:np ix=ceil( x_p(p)/a ); iy=ceil( y_p(p)/a ); c=ncelly*(ix-1)+iy; plist_p(p)=plist_c(c); plist_c(c)=p;end

Page 9: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

NeighborList

Initial Step

Page 10: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 1)

Page 11: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 2)

Page 12: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 3)

Page 13: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 4)

Any thing wrong?

Page 14: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 5)

Any thing wrong?

Page 15: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 6)

Anything wrong?

Page 16: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 7)

Page 17: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 8)

Page 18: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 9)

Page 19: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 10)

Page 20: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 11)

Page 21: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Neighbor List (Atom 12)

Anything wrong?

Page 22: Searching for Neighbor Atoms in Large-Scale Atomistic Simulations Wednesday, 10/30/2002.

Put Particles Into Cells

%ncell is the total number of cells%np is the total number of particles%a is the size of a cell%ncelly is the number of cells in y %direction

plist_c=linspace(0,0,ncell);plist_p=linspace(0,0,np);for p=1:np ix=ceil( x_p(p)/a ); iy=ceil( y_p(p)/a ); c=ncelly*(ix-1)+iy; plist_p(p)=plist_c(c); plist_c(c)=p;end


Recommended