Beruflich Dokumente
Kultur Dokumente
ILIAN TODOROV
SCIENTIFIC COMPUTING DEPARTMENT
STFC DARESBURY LABORATORY, UK
DL_POLY Trivia
Current Versions
Pair Potential:
rcut
12 6
V (r ) 4
r r
Lagrangian:
N 1
1N
L(ri , vi ) mi vi 2 V (rij )
2 i
i j i
12 6
V (r ) 4
r r
V(r)
r
rcut
Pair-wise radial distance
Equations of Motion
d L L
dt vi ri
mi ai Fi
N
Fi f ij
j i
f ij iV (rij )
Lagrange Equation
time evolution
Force Evaluation
particle interactions
Boundary Conditions
2D cubic periodic
None biopolymer
simulations
Stochastic boundaries
biopolymers
Hard wall boundaries
pores, capillaries
Periodic boundaries
most MD simulations
Triclinic
Truncated octahedron
Hexagonal prism
Rhombic dodecahedron
1N 2
K. E. mi vi
2 i
Kinetic Energy:
2
T
K. E.
3Nk B
Temperature:
Uc
Configuration Energy:
Pressure:
V (rij )
1
PV Nk BT
3
i j i
ri fi
N
i
3 2 2 3Nk B
(U c )
Nk BT 1
NVE
2
2Cv
2
Specific heat:
Structural Properties
Pair correlation (Radial Distribution Function):
n(r )
V
g(r )
2
2
4 r r N
(r rij )
i j i
Structure factor:
S (k ) 1 4
sin(kr)
g (r ) 1 r 2 dr
kr
1
2
2 Dt = r i (t ) r i (0 )
3
Velocity Autocorrelation
(Green-Kubo relation)
1
D = 0 v i (t ) v i (0 ) d t
3
Rigid
molecules
Point ions
and atoms
Flexibly
linked rigid
molecules
Polarisable ions
(core+shell)
Flexible
molecules
Constraint
bonds
Rigid bond
linked rigid
molecules
N'
V( r1 , r2 ,....., rN ) U pair (| ri rj |)
i, j
N'
Tersoff
i, j, k
metal
N bond
ri , rj , rk
N'
N'
Vpair (| ri rj |)
i, j
U bond
i bond , ra , rb
N'
4 body
ri , rj , rk , rn
N'
F ij (| ri rj |)
i,
j
U angle
dihed
i dihed , ra , rb , rc , rd
i dihed
i tether
i, j
,
angle ra , rb , rc
i angle
N dihed
qiq j
| ri rj |
i, j, k,n
N angle
N'
ri , rj , rk
i, j, k
i bond
N tether
3 body
1
4 0
U tether
N invers
invers
iinvers , ra , rb , rc , rd
i invers
i tether , rt , rt 0
N core-shell
i core-shell
U core-shell
icore-shell , | ri rj |
i 1
external
ri
Boundary Conditions
P0
P4
M4
M1
P1
P5
M5
M2
P2
P6
M6
M3
P3
P7
M7
Initialize
Initialize
Initialize
Initialize
Forces
Forces
Forces
Forces
Motion
Motion
Motion
Motion
Statistics
Statistics
Statistics
Statistics
Summary
Summary
Summary
Summary
P0
P0
P0
1,2
1,3
1,4
1,5
1,6
1,7
2,3
2,4
2,5
2,6
2,7
2,8
3,4
3,5
3,6
3,7
3,8
3,9
4,5
4,6
4,7
4,8
4,9
4,10
5,6
5,7
5,8
5,9
5,10
5,11
6,7
6,8
6,9
6,10
6,11
6,12
7,8
7,9
7,10
7,11
7,12
8,9
8,10
8,11
8,12
8,1
9,10
9,11
9,12
9,1
9,2
10,11
10,12
10,1
10,2
10,3
11,12
11,1
11,2
11,3
11,4
12,1
12,2
12,3
12,4
12,5
Distributed
list!
Domain Decomposition MD
Head of Chain
List
Link
List
Cell number
2
17
12
16
17
Link
Cell 2
10
16
10
1
12
10 11 12 13 14 15 16 17 18 19 20
Atom number
Sub-celling of LCs
1 2 3 4 5 6 7
Provides dynamically
adjustable workload for
variable local density
and VNL speed up of
30% (45% theoretically).
Provides excellent serial
performance, extremely
close to that of BrodeAhlrichs method for
construction of the Verlet
neighbour-list when
system sizes are smaller
< 5000 particles.
Bonded forces:
- Algorithmic decomposition
- Interactions managed by bookkeeping arrays,
i.e. explicit bond definition
- Shared bookkeeping arrays
Nonbonded forces:
Distributed Verlet neighbour list (pair forces)
Link cells (3,4-body forces)
P0Local
force
terms
P1Local
force
terms
P2Local
force
terms
Processors
Molecular
force field
definition
P0Local
atomic
indices
Tricky!
P1Local
atomic
indices
P2Local
atomic
indices
Processor Domains
Molecular
force field
definition
Topology Distribution
A
H
5
F
4
E
Replicated data
Domain decomposition
A2
A1
A3
P0
A6
A4
P1
A5
P2
A10
A8
A7
P3
A9
A11
P4
P5
A16
A14
A12
A13
P6
A15
P7
A17
P8
Integration Algorithms
Essential Requirements:
Computational speed
Low memory demand
Accuracy
Stability (energy conservation, no drift)
Useful property - time reversibility
Extremely useful property symplecticness
= time reversibility + long term stability
r (t+t)
v (t)t
r (t+t)
r (t)
f(t)t2/m
Taylor expansion:
Setup
Set up initial
system
Forces
Calculate
forces
Motion
Calculate
motion
Stats.
Results
Accumulate
statistical data
Summarise
simulation
t 2 f n
rn 1 rn t vn
O t 3
2 m
0. x i (t ), vi (t 12 t )
VV1. 0. x i (t ), vi (t ), f i (t )
1. f i (t ) calculated afresh
VV1. 1. vi (t 12 t ) vi (t )
t f i (t )
2 mi
f i (t )
mi VV1. 2. x (t t ) xi (t ) t v (t 1 t )
i
i
2
2
1
3. xi (t t ) xi (t ) t vi (t 2 t )
VV2. 0. f i (t t ) calculated afresh
2. vi (t 12 t ) vi (t 12 t ) t
VV2.1 . vi (t t ) vi (t 12 t )
t f i (t t )
2
mi
n 1/ 2 n 1/ 2 t n
vi
vi
Fi (t 3 )
mi
n 1 n
n 1/ 2
4
ri ri tvi
(t )
f n-2
rn-2
f n-1
rn-1
vn-3/2
fn
rn
Application in Practice
rn+1
vn-1/2 vn+1/2
Discrete time
n 1/ 2 n 1/ 2 t n
vi
vi
Fi
mi
n 1 n
n 1/ 2
ri ri tvi
n 1/ 2 n 1/ 2
n vi
vi
vi
2
n 1 n
n t 2 n
ri ri tvi
Fi (t 4 )
2mi
n 1 n t n n 1
vi vi
( Fi Fi ) (t 2 )
2mi
f n-2
f n-1
fn
f n+1
rn-2
rn-1
rn
rn+1
vn-2
vn-1
vn
vn+1
Discrete time
Application in Practice
n 1/ 2 n
t n
vi
vi
Fi
2mi
n 1 n
n 1/ 2
ri ri tvi
n 1 n 1/ 2
t n 1
vi vi
Fi
2mi
Constraint Solvers
t 2 f n g n
rn1 rn t vn
O t 3
2
m
t f n hn
vn 1 vn 1
O t 3
2
2 m
Taylor expansions:
SHAKE
iu
Gij i
io
u
d
ij
d ij
o
o
d ij
j
o
Gij G ji g ij d ij
2 u 2
ij (d ij d ij )
o u
g ij
2
2t
d ij d ij
ij
1
1
mi m j
RATTLE
RATTLE_R (SHAKE)
G ji
o2 u 2
ij (d ij d ij )
g ij 2 o u
t
d ij d ij
ju
vio
i
d ij
RATTLE_V
vio
H ij H ji hij d ij
o
ij (vi v j ) d ij
hij
t
d ij2
Proc A
Proc B
MU1
MU2
MU3
MU4
VV2 :
x i (t ), vi (t ), f i (t )
x i (t t ), vi (t 12 t ), f i (t t ) afresh
Thermostat(t t 14 t )
: 14 t
Barostat (t t 12 t )
: 12 t
Thermostat(t 14 t t 12 t ) : 14 t
t f i (t )
vi (t t ) vi (t )
2 mi
1
2
: t
1
2
t
xi (t t ) xi (t )
vi (t 12 t ) : t
2
RATTLE _ R(t t t )
: t
vi (t t ) vi (t 12 t )
t f i (t t ) 1
: 2 t
2
mi
RATTLE _ V (t 12 t t t )
: t
Thermostat(t 12 t t 34 t )
: 14 t
Barostat (t 12 t t t )
: 12 t
Thermostat(t 32 t t t )
: 14 t
Base Functionality
DL_POLY_4 Specials
DL_POLY_Classic Specials
Hyperdynamics
Bias potential dynamics
Temperature accelerated
dynamics
Nudged elastic band
Solvation properties:
Energy decomposition
Spectroscopic solvent shifts
Free energy of solution
Metadynamics
I/O Files
Crystallographic
(Dynamic) data
Simulation
Control data
Molecular /
Topological Data
Tabulated twobody potentials
EAM potential
data
Reference data
for DEFECTS
Restart data
Final
configuration
Simulation
summary data
Trajectory Data
Defects data
MSD & T inst data
Statistics data
Best CGM
configuration
RDF data
Z density data
Restart data
DL_POLY Units
Mass
Charge
Length
Time
Force
Energy
10 J mol-1
eV
k-cal mol-1
k-J mol-1
K Boltzmann-1
CONTROL File
SIMULATION CONTROL
Free Format
Mandatory
Driven by keywords:
FIELD File
Integers
Reals
Names
Keywords
(I5)
(F12)
(A8)
(A4)
TABLE File
Defines non-analytic
pair (vdw) potentials
Format
- Integers
(I10)
- Reals
(F15)
- Names
(A8)
Conditional, activated
by FIELD file option
Potential & Force
NB force (here) is:
G (r ) r U (r )
r
TABEAM File
OUTPUT File
STATIS File
System properties at
intervals selected by user
Optional
Formatted (I10,E14)
Intended use: statistical
analysis (e.g. error) and
plotting vs. time.
Recommend use with GUI!
Header:
- Title
- Units
Data:
- Time step, time, #
entries
- System data
HISTORY File
Formatted (A8,I10,E14)
Plotable
Optional
RDFs from pair forces
Header:
- Title
- No. plots & length of plot
RDF data:
- Atom symbols (2)
- Radius (A) & RDF
- Repeated
ZDNDAT file has same format
REFERENCE file
Reference structure to compare against
DEFECTS file
Trajectory file of vacancies and interstitials
migration
MSDTMP file
Trajectory like file containing the each particles
Sqrt(MSDmean) and Tmean
DL_POLY_4 Performance
1 hour
68 seconds
55 seconds
Perfect
MD step total
Link cells
van der Waals
Ewald real
Ewald k-space
16000
14000
Speed Gain
12000
10000
8000
6000
4000
2000
2000
4000
6000
8000
10000
Processor count
12000
14000
16000
Weak Scaling
1000
800
Speed Gain
fec
r
pe
n
tio
a
s
eli
l
l
a
33 million atoms
ar
p
t
28 million atoms
600
400
21 million atoms
n
allelisatio
r
a
p
d
o
o
g
200
max load
max load
max load
0
0
200
400
600
Processor Count
800
1000
DL_POLY_4 RB v/s CB
HECToR (Cray XE6) 2013
1.8
1.6
1.4
1.2
1
Argon
0.8
Transferrin
0.6
NaCl
RB water
0.4
CB water
0.2
0
0
200
400
600
MPI tasks count
800
1000
I/O Solutions
P0
P1
M0
M1
I/O BATCH
I/O Group 0
72 I/O NODES
PX0-1
MX1-1
PX0
PX0+1
MX0
MX0+1
DISK
I/O BATCH
I/O BATCH
PHEAD
I/O Group 1
PXn+1
MXn
MXn+1
Performance depends
on user defined number
of I/O groups, and I/O
batch (memory CPU to
I/O WRITE COMMS
disk) and buffer
I/O READ COMMS
(memory of comms
transactions between
CPUs)
MX1-1
Pslave
Memory
PXn
PX1-1
PN-1
MN-1
Reasonable defaults as
a function of all MPI
tasks are provided
Supply of DL_POLY_4
Register at http://www.ccp5.ac.uk/DL_POLY/
Registration provides the decryption - procedure
and password (sent by e-mail)
Source is supplied by anonymous FTP (in an
invisible directory)
Source is in a tarred, gzipped and encrypted form
Successful unpacking produces a unix directory
structure
Test and benchmarking data are also available
DL_POLY_Classic Support
Supply of DL_POLY_Classic
build
DL_POLY
Home of makefiles
source
execute
Home of executable
&
Working Directory
java
utility
Utility codes
data
Test data
1.
2.
3.
4.
5.
DL_POLY_Classic
Simple molecules (no SHAKE)
8 or less, 10,000 atoms
16 or less, 20,000 atoms
32 or less, 30,000 atoms
Simple ionics
16 or less, 10,000 atoms
64 or less, 20,000 atoms
128 or less, 30,000 atoms
Molecules (with SHAKE)
64 max!
DL_POLY_4
Golden Rule 1: No fewer than
3x3x3 link cells per processor (if
in parallel)
Golden Rule 2: No fewer than
500 particles per processor (if in
parallel)!
Java - Free!
Facilitate use of code
Selection of options (control of capability)
Construct (model) input files
Control of job submission
Analysis of output
Portable and easily extended by user
Show
Editor
Option
Editor
Button
Graphics
Buttons
Graphics
Window
Editor
Buttons
Editor
Window
Available Menus
Execute
Select/store input files, run job
Analysis
Static, dynamic,statistics,viewing,plotting
Information
Licence, Force Field files, disclaimers etc.
Buttons
Text Boxes
DL_FIELD http://www.ccp5.ac.uk/DL_FIELD/
Developed by
C.W. Yong
xyz
PDB
Protonated
SOD
DL_FIELD
black box
FIELD
4382
19400
7993
13000
730
CONFIG
WWW:
http://www.ccp5.ac.uk/DL_POLY/
FTP:
ftp://ftp.dl.ac.uk/ccp5/DL_POLY/
DEV:
http://ccpforge.cse.rl.ac.uk/gf/project/dl-poly/
http://ccpforge.cse.rl.ac.uk/gf/project/dl_poly_classic/
FORUM:
http://www.cse.stfc.ac.uk/disco/forums/ubbthreads.php/
http://www.ccp5.ac.uk/DL_POLY/TUTORIAL/EXERCISES/index.html