+ All Categories
Home > Documents > DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids,...

DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids,...

Date post: 07-Apr-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
137
DL_SOFTWARE TUTORIAL ILIAN TODOROV, BILL SMITH, IAN BUSH, HENRY BOATENG, CHIN YONG MICHAEL SEATON, JOHN PURTON DAVID GUNN, ANDREY BRUKHNO SCD, STFC DARESBURY LABORATORY, DARESBURY WARRINGTON WA4 4AD, CHESHIRE, ENGLAND, UK
Transcript
Page 1: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_SOFTWARE TUTORIAL

ILIAN TODOROV, BILL SMITH, IAN BUSH, HENRY BOATENG, CHIN YONG

MICHAEL SEATON, JOHN PURTON DAVID GUNN, ANDREY BRUKHNO

SCD, STFC DARESBURY LABORATORY, DARESBURY WARRINGTON WA4 4AD, CHESHIRE, ENGLAND, UK

Page 2: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Multiple Scales of Materials Modelling

MS&MD via DL_POLY

DPD & LB via DL_MESO

KMC via DL_AKMC

FF mapping

via DL_FIELD

MC

via

DL_M

ON

TE

Coarse graining

via DL_CGMAP

QM/MM bridging

via #ChemShell

Page 3: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

STFC Daresbury Laboratory

Alice’s Wonderland (1865) Lewis Carroll (Charles Lutwidge Dodgson)

Page 4: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 1

DL_POLY Project Background

Page 5: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY Trivia

• General purpose parallel (classical) MD simulation software

•  It was conceived to meet needs of CCP5 - The Computer Simulation of Condensed Phases (academic collaboration community)

• Written in modularised Fortran90 (NagWare & FORCHECK compliant) with MPI2 (MPI1+MPI-I/O) & fully self-contained

-  1994 – 2010: DL_POLY_2 (RD) by W. Smith & T.R. Forester (funded for 6 years by EPSRC at DL). In 2010 moved to a BSD open source licence as DL_POLY_Classic.

-  2003 – 2010: DL_POLY_3 (DD) by I.T. Todorov & W. Smith (funded for 4 years by NERC at Cambridge). Up-licensed to DL_POLY_4 in 2010 – free of charge to academic researchers and at cost to industry (provided as source).

•  ~ 18,000 licences taken out since 1994 (~1,500 pa since 2007)

•  ~ 3,250 e-mail list and ~100 (2015)/1,350(2005) PORTAL/FORUM

Page 6: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Written in modularised free formatted F90 (+MPI) with rigorous code syntax (FORCHECK and NAGWare verified) and no external library dependencies •  DL_POLY_4 (version 7)

–  Domain Decomposition parallelisation, based on domain decomposition (no dynamic load balancing), limits: up to ≈2.1×109 atoms with inherent parallelisation

–  Parallel I/O (amber netCDF) and radiation damage features –  Free format (flexible) reading with some fail-safe features

and basic reporting (but not fully fool-proofed) •  DL_POLY_Classic (version 1.9)

–  Replicated Data parallelisation, limits up to ≈30,000 atoms with good parallelisation up to 100 (system dependent) processors (running on any processor count)

–  Hyper-dynamics, Temperature Accelerated Dynamics, Solvation Dynamics, (Path Integral MD)

–  Free format reading (somewhat rigid)

Current Versions

Page 7: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY on the Web

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/

PORTAL:

http://community.hartree.stfc.ac.uk/portal/site/DL_SOFTWARE/

Page 8: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

W. Smith and T.R. Forester,

J. Molec. Graphics (1996), 14, 136 W. Smith, C.W. Yong, P.M. Rodger,

Molecular Simulation (2002), 28, 385 I.T. Todorov, W. Smith, K. Trachenko, M.T. Dove,

J. Mater. Chem. (2006), 16, 1611-1618 W. Smith (Guest Editor),

Molecular Simulation (2006), 32, 933 I.J. Bush, I.T. Todorov and W. Smith,

Comp. Phys. Commun. (2006), 175, 323-329

Further Information

Page 9: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

0

20

40

60

80

100

120

140

160

2002 2004 2006 2008 2010 2012 2014 2016

Publ

ishe

d lin

es o

f co

de [x

1,0

00]

Year

DL_POLY_DD Development Statistics

Lines [x 1,000] Comment 4.0 Blank 5.6 Total 36.5 Manual 178 p DL_POLY_3.01

DL_POLY_4.07 Lines [x 1,000] Comment 15.6 Blank 34.9 Total 140.7 Manual 317 p

reengineered

reengineering

Page 10: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

0

500

1000

1500

2000

2500

3000

3500

1992 1996 2000 2004 2008 2012

Coun

t

Year

Annual Downloads & Valid eMail List Size

DL_POLY Licence Statistics

web

-reg

istr

atio

n

2014 Downloads

• EU-UK – 20.1% • UK – 18.5% • USA – 11.9% • China – 11.6% • India – 7.0% • France - 4.4%

2014 Usage Statistics • 540 Google Scholar citations • 1,120 downloads • 3,050 eMail list

DL_

POLY

_3

DL_

POLY

_4

DL_

POLY

_2

DL_

POLY

_C

2010 :: DL_POLY (2+3+MULTI) - 1,000 (list end) 2013 :: DL_POLY_4 - 3,250 (list start 2011)

Page 11: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY Usage Statistics

Asia 32%

EU-UK 20%

North America 15%

UK 19%

La#n  America  

8%  

Europe-EU 5%

Africa 2%

Australia  &  New  Zealand  

2%  

Bio-­‐Molecular  &  Organic  Chemsitry  

4%  

Chemistry 37%

Engineering 13%

Materials 17%

Mechanics 2%

Other 2%

Physics 24%

Software 2%

Page 12: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Proteins solvation & binding

DNA strands dynamics

Membranes’ processes

Drug polymorphs & discovery

Examples of Model Systems

Crystalline & Amorphous Solids – damage and recovery

Dynamic processes in Metal-Organic & Organic Frameworks

Dynamics at Interfaces & of Phase Transformations

Page 13: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 2

The Molecular Dynamics Method

Page 14: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Molecular Dynamics: Definitions

•  Theoretical tool for modelling the detailed microscopic behaviour of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters.

•  In an MD simulation, the classical equations of motion governing the microscopic time evolution of a many body system are solved numerically, subject to the boundary conditions appropriate for the geometry or symmetry of the system.

•  Can be used to monitor the microscopic mechanisms of energy and mass transfer in chemical processes, and dynamical properties such as absorption spectra, rate constants and transport properties can be calculated.

•  Can be employed as a means of sampling from a statistical mechanical ensemble and determining equilibrium properties. These properties include average thermodynamic quantities (pressure, volume, temperature, etc.), structure, and free energies along reaction paths.

Page 15: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

MD simulations are used for:

•  Microscopic insight: we can follow the motion of a single molecule (glass of water)

•  Investigation of phase change (NaCl)

•  Understanding of complex systems like polymers (plastics – hydrophilic and hydrophobic behaviour)

Molecular Dynamics for Beginners

Page 16: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Example: Simulation of Argon

rcut! ⎪⎭

⎪⎬⎫

⎪⎩

⎪⎨⎧

⎟⎠

⎞⎜⎝

⎛−⎟⎠

⎞⎜⎝

⎛=612

4)(rr

rV σσε

Pair Potential:

Lagrangian:

L r v m v V ri i i ii

N

ijj ii

N( , ) ( )! !

= −∑ ∑∑>

−12

21

Page 17: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Lennard -Jones Potential

⎪⎭

⎪⎬⎫

⎪⎩

⎪⎨⎧

⎟⎠

⎞⎜⎝

⎛−⎟⎠

⎞⎜⎝

⎛=612

4)(rr

rV σσε

V(r)

r

σ

ε rcut!

Pair-wise radial distance

Page 18: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Equations of Motion

Lagrange Equation – time evolution Force Evaluation – particle interactions

ddt

Lv

Lri i

∂∂

∂∂α α

⎛⎝⎜

⎞⎠⎟ =

)( ijiij

N

ijiji

iii

rVf

fF

Fam

∇−=

=

=

∑≠!!

!!

!!

Page 19: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Boundary Conditions

•  None – biopolymer simulations

•  Stochastic boundaries – biopolymers

•  Hard wall boundaries – pores, capillaries

•  Periodic boundaries – most MD simulations

2D cubic periodic

Page 20: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Periodic Boundary Conditions

Triclinic

Truncated octahedron

Hexagonal prism

Rhombic dodecahedron

Page 21: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Kinetic Energy:

•  Temperature:

•  Configuration Energy:

•  Pressure:

•  Specific heat:

System Properties: Static (1)

K.E. = 12

mivi2

i

N

T = 23NkB

K.E.

Uc = V (rij )j>i

N

∑i∑

PV = NkBT −13

!ri ⋅!fi

i

N

δ(Uc )2

NVE=32NkB

2T 2 1− 3NkB2Cv

"

#$

%

&'

Page 22: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Structural Properties

– Pair correlation (Radial Distribution Function):

–  Structure factor:

– Note: S(k) available from X-ray diffraction

System Properties: Static (2)

g(r) =n(r)

4π ρ r2Δr=VN 2 δ(r − rij )

j≠i

N

∑i∑

S(k) =1+ 4π ρ sin(kr)kr0

∫ g(r)−1( ) r2dr

Page 23: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

ΔR

Radial Distribution Function (RDF)

R

Page 24: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

g(r)!

separation (r)!

1.0!

Typical RDF

Page 25: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Single correlation functions:

l  Mean squared displacement (Einstein relation)

l  Velocity Autocorrelation (Green-Kubo relation)

2Dt = 13| ri (t)− ri (0) |

2

D= 13

vi (t) ⋅ vi (0)∫ dt

System Properties: Dynamic (1)

Page 26: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Collective Correlation Functions: DL_POLY GUI

•  General van Hove correlation function

•  van Hove self-correlation function

•  van Hove distinct correlation function

∑=

−+=N

jiji trrr

NtG

1,)]()0([1),( δr

∑ −−=N

iiis trrr

NtG )]()0([1),( δr

∑∑≠

−+=N

i

N

ijjid trrr

NtG )]()0([1),( δr

System Properties: Dynamic (2)

Page 27: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Correlation Function Uses

•  Complete description of bulk dynamical

properties

•  Space-time Fourier Transform of van Hove

function

•  Elastic properties of materials

•  Energy dissipation

•  Sound propagation

Obtained directly from neutron scattering

Page 28: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 3

DL_POLY Basics & Algorithms

Page 29: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Supported Molecular Entities

Point ions and atoms

Polarisable ions (core

+shell) Flexible

molecules Constraint

bonds

Rigid molecules

Flexibly linked rigid molecules

Rigid bond linked rigid molecules

Page 30: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Force Field Definitions – I

•  particle: a rigid ion or an atom (charged or not), a core or a shell of a polarisable ion (with or without associated degrees of freedom), a massless charged site. A particle is a countable object and has a global ID index.

•  site: a particle prototype that serves to define the chemical & physical nature (topology/connectivity/stoichiometry) of a particle (mass, charge, frozen-ness). Sites are not atoms they are prototypes!

•  Intra-molecular interactions: chemical bonds, bond angles, dihedral angles, improper dihedral angles, inversions. Usually, the members in a unit do not interact via an inter-molecular term. However, this can be overridden for some interactions. These are defined by site.

•  Inter-molecular interactions: van der Waals, metal (2B/E/EAM, Gupta, Finnis-Sinclair, Sutton-Chen), Tersoff, three-body, four-body. Defined by species.

Page 31: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Force Field Definitions – II

•  Electrostatics: Standard Ewald*, Hautman-Klein (2D) Ewald*, SPM Ewald (3D FFTs), Force-Shifted Coulomb, Reaction Field, Fennell damped FSC+RF, Distance dependent dielectric constant, Fuchs correction for non charge neutral MD cells.

•  Ion polarisation via Dynamic (Adiabatic) or Relaxed shell model.

•  External fields: Electric, Magnetic, Gravitational, Oscillating & Continuous Shear, Containing Sphere, Repulsive Wall.

•  Intra-molecular like interactions: tethers, core shells units, constraint and PMF units, rigid body units. These are also defined by site.

•  Potentials: parameterised analytical forms defining the interactions. These are always spherically symmetric!

• THE CHEMICAL NATURE OF PARTICLES DOES NOT CHANGE IN SPACE AND TIME!!! *

Page 32: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Force Field by Sums

V( !r1,!r2,.....,

!rN ) = Upair (|!ri −!rj|)

i,j

N'

∑ +1

4πεε0

qiq j|!ri −!rj|i,j

N'

∑ +

UTersoff!ri,!rj,!rk( )

i,j,k

N'

∑ + U3−body!ri,!rj,!rk( )

i,j,k

N'

∑ + U4−body!ri,!rj,!rk,!rn( )

i,j,k,n

N'

∑ +

εmetal Vpair (|!ri −!rj|) + F

i

N

∑ ρij (|!ri −!rj|)

i,j

N'

∑%

&''

(

)**

i,j

N'

∑%

&''

(

)** +

Ubond ibond ,!ra,!rb( )

ibond

Nbond

∑ + Uangle iangle ,!ra,!rb,!rc( )

iangle

Nangle

∑ +

Udihed idihed ,!ra,!rb,!rc,!rd( )

idihed

Ndihed

∑ + Uinvers iinvers ,!ra,!rb,!rc,!rd( )

iinvers

Ninvers

∑ +

Utether itether ,!rt,!rt=0( )

itether

Ntether

∑ + Ucore-shell icore-shell , |!ri −!rj|( )

icore-shell

Ncore-shell

∑ + Φexternali=1

N

∑ !ri( )

Page 33: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Boundary Conditions

•  None (e.g. isolated macromolecules)

•  Cubic periodic boundaries

•  Orthorhombic periodic boundaries

•  Parallelepiped (triclinic) periodic boundaries

•  Truncated octahedral periodic boundaries*

•  Rhombic dodecahedral periodic boundaries*

•  Slabs (i.e. x,y periodic, z non-periodic)

Page 34: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY is designed for homogenious distributed parallel machines

M1 P1

M2 P2

M3 P3

M0 P0 M4 P4

M5 P5

M6 P6

M7 P7

Assumed Parallel Architecture

Page 35: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Initialize!

Forces!

Motion!

Statistics!

Summary!

Initialize!

Forces!

Motion!

Statistics!

Summary!

Initialize!

Forces!

Motion!

Statistics!

Summary!

Initialize!

Forces!

Motion!

Statistics!

Summary!

A B C D

Replicated Data Strategy – I

Page 36: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Every processor sees the full system

• No memory distribution (performance overheads and limitations increase with increasing system size)

•  Functional/algorithmic decomposition of the workload

•  Cutoff ≤ 0.5 min system width

•  Extensive global communications (extensive overheads increase with increasing system size)

Replicated Data Strategy – II

Page 37: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

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

A!

A!

A!

Parallel (RD) Verlet List

C!

C!

C!

Brode-Ahlrichs distributed list!

B!

B!

B!

D!

D!

D!

Page 38: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

A! B!

C! D!

Domain Decomposition MD

Page 39: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Linked lists provide an elegant way to scale short-ranged two body interactions from O(N2/2) to ≈O(N). The efficiency increases with increasing link cell partitioning – as a rule of thumb best efficacy is achieved for cubic-like partitioning with number of link-cells per domain ≥ 4 for any dimension.

• Linked lists can be used with the same efficiency for 3-body (bond-angles) and 4-body (dihedral & improper dihedral & inversion angles) interactions. For these, the linked cell halo is double-layered and as cutoff3/4-body ≤ 0.5*cutoff2-body this makes the partitioning more effective than that for the 2-body interactions.

• The larger the particle density and/or the smaller the cutoff with respect to the domain width, (the larger the sub-selling and the better the spherical approximation of the search area), the shorter the Verlet neighbour-list search.

Linked Cell Lists

Page 40: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

6

1 2 3 4 5

Link Cell 2

6

10

12

16

17 Head of Chain

List

1 2 3 4 5 6 7 8 9 20 19 18 17 16 15 14 13 12 11 10

10 12 16 17 0 Link List

Atom number

Cell number

Linked Cell List Idea

Page 41: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• 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 Brode-Ahlrichs method for construction of the Verlet neighbour-list when system sizes are smaller < 5000 particles.

1 2 3 4 5 6 7

Sub-celling of LCs

Page 42: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Replicated Data Shell Stripping – the VNL build up is extended for rcut+δr (shell width). The extended two body list is rebuild only and only when a pair of neighbouring particles has travelled more than δr apart since the last VNL build point. Rule of thumb δr/rcut≈5-15%.

• Domian Decomposition Particle Blurring – the VNL build up is extended for rcut+δr (domain padding). The extended two body list is rebuild only and only when a particle has travelled apart more than δr/2 apart since the last VNL build point. Rule of thumb δr/rcut≈1-5%.

• Consequences: • All short-ranged force evaluations have an additional

check on pairs distance! • Memory and Communication over Computation and

Communication balance. Force field (FF) dependent. •  Short ranged FF 60-100% gains, FF with Ewald 10-35%.

Conditional Update of the VNL

Page 43: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Bonded forces: -  Algorithmic decomposition for DL_POLY_C

-  Interactions managed by bookkeeping arrays, i.e. explicit bond definition!!!

-  Shared bookkeeping arrays

•  Non-bonded forces:

- Distributed Verlet neighbour list (pair forces)

-  Link cells (3,4-body forces)

•  Implementations differ between DL_POLY_4 & C!

Parallel Force Calculation

Page 44: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Molecular force field definition

Glo

bal F

orce

Fie

ld

P0Local force terms

P1Local force terms

P2Local force terms

Proc

esso

rs

DL_POLY_C & Bonded Forces

Page 45: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Glo

bal f

orce

fie

ld

P0Local atomic indices

P1Local atomic indices

P2Local atomic indices

Proc

esso

r D

omai

ns

Tricky! Molecular force field definition

DL_POLY_4 & Bonded Forces

Page 46: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

A1 A3 A5 A7 A9 A11 A13 A15 A17

A2 A4 A6 A8 A10 A12 A14 A16

A!

RD Distribution Scheme: Bonded Forces

B! C! D!

Page 47: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

A! B!

C! D!

DD Distribution Scheme: Bonded Forces

Page 48: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Ensembles and Algorithms

Integration:

Available as velocity Verlet (VV) or leapfrog Verlet (LFV) generating flavours of the following ensembles

•  NVE

•  NVT (Ekin) Evans

•  NVT dpdS1 dpdS2 Sharlow 1st or 2nd order splitting (VV only)

•  NVT Andersen^, Langevin^, Berendsen, Nosé-Hoover, GST

•  NPT Langevin^, Berendsen, Nosé-Hoover, Martyna-Tuckerman-Klein^

•  NσT/NPnAT/NPnγT Langevin^, Berendsen, Nosé-Hoover, Martyna-Tuckerman-Klein^

Constraints & Rigid Body Solvers:

•  VV dependent – RATTLE, No_Squish, QSHAKE*

•  LFV dependent – SHAKE, Euler-Quaternion, QSHAKE*

Page 49: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

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

Page 50: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

r (t)

r (t+Δt) v (t)Δt

f(t)Δt2/m

Net displacement

r’ (t+Δt)

[r (t), v(t), f(t)] [r (t+Δt), v(t+Δt), f(t+Δt)]

Integration: Essential Idea

Page 51: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Simulation Cycle and Integration Schemes

Setup

Forces

Motion

Stats.

Results

Set up initial system

Calculate forces

Calculate motion

Accumulate statistical data

Summarise simulation

Taylor expansion:

)()()(.3

)()()(.2

)(.1)(),(.0

21

21

21

21

ttvttxttxmtftttvttv

afreshcalculatedtfttvtx

iii

i

iii

i

ii

Δ+Δ+=Δ+

Δ+Δ−=Δ+

Δ−

Leapfrog Verlet (LFV) Velocity Verlet (VV)

i

iii

i

iii

i

iii

iii

mttftttvttv

afreshcalculatedttf

ttvttxttx

mtfttvttv

tftvtx

)(2

)()(.VV2.1

)(.0VV2.

)(2

)()(.2VV1.

)(2

)()(.1VV1.

)(),(),(.0VV1.

21

21

21

Δ+Δ+Δ+=Δ+

−Δ+

Δ+Δ

+=Δ+

Δ+=Δ+

( )32

1 2tO

mftvtrr n

nnn Δ+Δ

+Δ+=+

Page 52: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Integration Algorithms: Leapfrog Verlet

Discrete time"

rn+1"rn"rn-1"rn-2"

vn+1/2"

f n"f n-1"f n-2"

vn-1/2"vn-3/2"

)(

)(

42/11

32/12/1

tvtrr

tFmtvv

ni

ni

ni

ni

i

ni

ni

Δ+Δ+=

Δ+Δ

+=

++

−+

ϑ

ϑ

!!!

!!!

Application in Practice

2

2/12/1

2/11

2/12/1

−+

++

−+

+=

Δ+=

Δ+=

ni

nin

i

ni

ni

ni

ni

i

ni

ni

vvv

vtrr

Fmtvv

!!!

!!!

!!!

Page 53: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Integration Algorithms: Velocity Verlet

Discrete time"

rn+1"rn"rn-1"rn-2"

vn+1"vn"vn-1"vn-2"

f n+1"f n"f n-1"f n-2"

12/11

2/11

2/1

2

2

+++

++

+

Δ+=

Δ+=

Δ+=

ni

i

ni

ni

ni

ni

ni

ni

i

ni

ni

Fmtvv

vtrr

Fmtvv

!!!

!!!

!!!Application in Practice

)()(2

)(2

211

42

1

tFFmtvv

tFmtvtrr

ni

ni

i

ni

ni

ni

i

ni

ni

ni

Δ++Δ

+=

Δ+Δ

+Δ+=

++

+

ϑ

ϑ

!!!!

!!!!

Page 54: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Constraint Solvers

SHAKE

RATTLE RATTLE_R (SHAKE)

Taylor expansions: ( )3

2

1 2tO

mgftvtrr nn

nnn Δ++Δ

+Δ+=+

( )31 221 tO

mhftvv nn

nn Δ++Δ

+= ++

jiij

uij

oij

uijijij

ij

oijijjiij

mm

dddd

tg

dgGG

111

)(2

22

2

+=

Δ=

≈−=

µ

µ!!

!!

!!!uij

oij

uij

oijij

ij dddd

tg !!

!!

Δ=

)( 22

2

µ

RATTLE_V

ijd!

i

joiv!

oiv!

2

)(

ij

oijjiij

ij

oijijjiij

ddvv

th

dhHH!!!

!!!

⋅−

Δ=

⋅=−=

µ

oijd!

ijd!uijd!

oioj

ui iujj

jiG!

ijG!

Page 55: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

MU1

MU2

MU3

MU4

Replicated Data SHAKE

Proc A Proc B

Page 56: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Extended Ensembles in VV casting

Velocity Verlet integration algorithms can be naturally derived from the non-commutable Liouvile evolution operator by using a second order Suzuki-Trotter expansion. Thus they are symplectic/true ensembles (with conserved quantities) warranting conservation of the phase-space volume, time-reversibility and long term numerical stability…

Examplary VV Expansion of NVE to NVEkin, NVT, NPT & NσT

ttttRRATTLE

tttvttxttx

tmtfttvttv

tttttThermostatttttBarostatttttThermostat

tftvtx

iii

i

iii

iii

ΔΔ+→

ΔΔ+Δ

+=Δ+

ΔΔ

+=Δ+

ΔΔ+→Δ+

ΔΔ+→

ΔΔ+→

:)(_

:)(2

)()(

:)(2

)()(

:)(:)(:)(

)(),(),(:VV1

21

21

21

41

21

41

21

21

41

41

tttttThermostattttttBarostattttttThermostattttttVRATTLE

tm

ttftttvttv

afreshttfttvttx

i

iii

iii

ΔΔ+→Δ+

ΔΔ+→Δ+

ΔΔ+→Δ+

ΔΔ+→Δ+

ΔΔ+Δ

+Δ+=Δ+

−Δ+Δ+Δ+

41

23

21

21

41

43

2121

21

21

21

:)(:)(:)(:)(_

:)(2

)()(

)(),(),(:VV2

Page 57: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Dissipative Particle Dynamics

•  Similar methodology to classical MD: –  Condensed phase system modelled by particles

(‘beads’) using pairwise potentials –  Particle motion determined by force integration (e.g.

Velocity Verlet) –  System properties at equilibrium calculated as ensemble

averages

•  System coupled to heat bath using pairwise dissipative and random forces –  Pairwise thermostatting conserves system momentum

and produces correct hydrodynamics

Page 58: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

!!"! = −!!! !!" !!" ⋅ !!" !!" !•  Dissipative force:

•  Random force:

•  Fluctuation-dissipation theory demonstrates these forces act as thermostat if:

–  Dissipative force parameter related to fluid viscosity

Distance-based screening function

Relative velocity between particles

!!"! = !!! !!"!!"!" !!" !

Gaussian random number (zero mean, unity variance)

!! !!" = !! !!" ! and !!! = 2!!!"!

DPD Algorithm - I

Page 59: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Conservative force often selected as

although this is not necessary for a coarse-grained (CG) MD

–  Quadratic potential: soft and repulsive –  Gives quadratic equation of state for fluid:

–  Soft potential allows for larger time steps than classical MD: beads can ‘pass through’ each other and reach equilibrium in fewer time steps

–  Flexible definition of beads: either coarse-grains or ‘momentum carriers’

!!"! = !!" 1− !!"!! !!" !

Interaction length (cutoff radius)

! ≈ !!!! + 0.101!!"!!!!!!

DPD Algorithm - II

Page 60: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Flexible interactions between species pairs –  Can specify e.g. hydrophobicity –  Interaction parameters can be

connected to Flory-Huggins solution theory

•  Bond interactions –  Allow for construction of ‘molecules’

from differently interacting beads –  Example: spontaneous vesicle

formation of amphiphilic molecules in solution

Source: Yamamoto et al., J Chem Phys, 116, 5842–5849 (2002)

Hydrophilic head Hydrophobic tail

DPD Capabilities

Page 61: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

–  Example: formation of water drops on hydrophobic surface under influence of gravity

Source: Johansson, Simulating fluid flow and heat transfer using dissipative particle

Dynamics, Dept. Energy Sci., Lund University (2012)

DPD via DL_MESO

Page 62: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Other Integration Algorithms

• Gear Predictor-Corrector – generally easily extendable to any high order of accuracy. It is used in satellite trajectory calculations/corrections. However, lacking long term stability.

• Trotter derived evolution algorithms – generally easily extendable to any high order of accuracy. Symplectic.

Page 63: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Base Functionality

• Molecular dynamics of polyatomic systems with options to save the micro evolution trajectory at regular intervals

• Optimisation by conjugate gradients method or zero Kelvin annealing

• Statistics of common thermodynamic properties (temperature, pressure, energy, enthalpy, volume) with options to specify collection intervals and stack size for production of rolling and final averages

• Calculation of RDFs and Z-density profiles

• Temperature scaling, velocity re-Gaussing • Force capping in equilibration

Page 64: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Radiation damage driven features: -  defects analysis -  boundary thermostats -  volumetric expansion -  replay history -  variable time step algorithm

• Extra ensembles: - DPD, Langevin, Andersen, MTK, GST -  extensions of NsT to NPnAT and NPnγT

•  Infrequent k-space Ewald evaluation • Direct VdW • Direct Metal • Force shifted VdW •  I/O driven features Parallel I/O & netCDF • Extra Reporting

DL_POLY_4 Specials

Page 65: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 4

DL_POLY I/O Files

Page 66: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

I/O Files

•  Crystallographic (Dynamic) data

•  Reference data for DEFECTS

•  Traj. data for replay •  Simulation controls •  Molecular/

Topological Data

•  Tabulated interactions

•  Restart data

•  Final & CGM configurations

•  Best CGM configuration •  Simulation summary

data

•  Trajectory data

•  Defects data

•  Statistics data

•  RSD, MSD & T inst data

•  VAF data

•  Intra PDF data

•  Inter PDF/RDF data

•  Z density data

•  Restart data

CONFIG

CONTROL

FIELD

TABLE*

TABEAM*

TABBND*

TABANG*

TABDIH*

TABINV*

REFERENCE*

HISTORY*

REVCON

CFGMIN*

STATIS

HISTORY*, HISTORF*

DEFECTS*

MSDTMP*, RSDDAT*

BNDDAT*, BNDPMF*, BNDTAB*

ANGDAT*, ANGPMF*, ANGTAB*

DIHDAT*, DIHPMF*, DIHTAB*

INVDAT*, INVPMF*, INVTAB*

RDFDAT*, VDWPMF*, VDWTAB*

ZDNDAT*

REVIVE

REVOLD*

OUTPUT

VAFDAT_*

DL_P

OLY_

4

I/O

FILE

S

Page 67: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Internally, DL_POLY uses atomic scale units:

•  Mass – mass of H atom (D) [Daltons]

•  Charge – charge on proton (e)

•  Length – Angstroms (Å)

•  Time – picoseconds (ps)

•  Force – D Å ps-2

•  Energy – D Å2 ps-2 [10 J mol-1]

pressure is expressed in k-atm for I/O

angles are expressed in degrees (not radians)

DL_POLY Units

Page 68: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

UNITS directive in FIELD file allows to opt for the following energy units

•  Internal DL_POLY units – 10 J mol-1 •  Electron-volts – eV •  kilo calories per mol – k-cal mol-1 •  kilo Joules per mol – k-J mol-1 •  Kelvin per Boltzmann – K Boltzmann-1 All interaction MUST have the same energy units!

Acceptable DL_POLY Units

Page 69: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• SIMULATION CONTROL

• Free Format

• Mandatory • Driven by keywords:

keyword [options] {data}

e.g.:

ensemble NPT Hoover 1.0 8.0

CONTROL File

Page 70: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

CONFIG [REVCON,CFGMIN] File

• Initial atomic coordinates

• Format

-  Integers (I10)

-  Reals (F20)

-  Names (A8)

• Mandatory

• Units:

-  Position – Angstroms (Å)

-  Velocity – Å ps-1

-  Force – D Å ps-2

• Construction: Some kind of GUI or DL_FIELD essential for complex systems

Page 71: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Force Field specification

• Mandatory

• Format: -  Integers (I5)

-  Reals (F12)

-  Names (A8) -  Keywords (A4)

• Maps on to CONFIG file structure

• Construction

-  Small systems – by hand -  Large systems – nfold or

GUI or DL_FIELD!

FIELD File

Page 72: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• 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:

)()( rUr

rrG∂

∂−=

TABLE File

Page 73: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Defines embedded atom potentials

• Format

-  Integers (I10)

-  Reals (F15)

-  Names (A8)

• Conditional, activated by FIELD file option

• Potentials only

• pair, embed & dens keywords for atom types followed by data records (4 real numbers per record)

• Individual interpolation arrays

TABEAM File

Page 74: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Provides program restart capability

• File is unformatted (not human readable)

• Contains thermodynamic accumulators, RDF data, MSD data and other checkpoint data

• REVIVE (output file) ---> REVOLD (input file)

REVOLD [REVIVE] File

Page 75: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• Provides Job Summary (mandatory!)

• Formatted to be human readable

• Contents:

-  Summary of input data

-  Instantaneous thermodynamic data at selected intervals

-  Rolling averages of thermodynamic data

-  Statistical averages

-  Final configuration

-  Radial distribution data

-  Estimated mean-square displacements and 3D diffusion coefficient

• Plus:

-  Timing data, CFG and relaxed shell model iteration data

-  Warning & Error reports

OUTPUT File

Page 76: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• 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

STATIS File

Page 77: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Configuration data at user selected intervals

-  Formatted

- Optional

•  Header:

- Title

- Data level, cell key, number

•  Configuration data:

- Time step and data keys

- Cell Matrix

- Atom name, mass, charge

- X,Y,Z coordinates (level 0)

- X,Y,Z velocities (level 1)

- X,Y,Z forces (level 2)

HISTORY File

Page 78: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• 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

RDFDAT [ZDNDAT] File

Page 79: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• REFERENCE file - Reference structure to compare against

• DEFECTS file

- Trajectory file of vacancies and interstitials migration

• MSDTMP file

- Trajectory like file containing particles’ Sqrt(MSDmean) and Tmean

• RSDDAT file

- Trajectory like file containing particles’ Sqrt(RSD from origin) • TABINT file

- Table file for INTra-molecular interactions

• INTDAT file

- Probability Distribution Functions for INTra-molecular interactions

• HISTORF file

- Force replayed HISTORY

• …

DL_POLY_4 Extra Files

Page 80: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 5

DL_POLY_4 Performance

Page 81: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Proof of Concept on IBM p575 2005

300,763,000 NaCl with full SPME electrostatics evaluation on 1024 CPU cores

HECToR (2013 – Cray XE6)

Start-up time ≈ 60 min ≈ 15 min

Timestep time ≈ 68 sec ≈ 23 sec FFT evaluation ≈ 55 sec ≈ 18 sec

In theory ,the system can be seen by the eye. Although you would need a very good microscope – the MD cell size for this system is 2μm along the side and as the wavelength of the visible light is 0.5μm so it should be theoretically possible.

Page 82: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

2000 4000 6000 8000 10000 12000 14000 16000

2000

4000

6000

8000

10000

12000

14000

16000

14.6 million particle Gd2Zr2O7 system

Spee

d G

ain

Processor count

Perfect MD step total Link cells van der Waals Ewald real Ewald k-space

Benchmarking BG/L Jülich 2007

Page 83: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

0 200 400 600 800 1000

0

200

400

600

800

1000

max load 700'000 atoms per 1GB/CPUmax load 220'000 ions per 1GB/CPUmax load 210'000 ions per 1GB/CPU

Solid Ar (32'000 atoms per CPU) NaCl (27'000 ions per CPU) SPC Water (20'736 ions per CPU)

21 million atoms

28 million atoms

33 million atoms

good parallelisation

perfect parallelisation

Spee

d G

ain

Processor Count

Weak Scaling

Page 84: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY_4 RB v/s CB

HECToR (Cray XE6) 2013

Page 85: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Weak Scaling and Cost of Complexity

0

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

0   200   400   600   800   1000  

Tim

e pe

r ti

mes

tep

[s]

MPI tasks count

Argon Transferrin NaCl RB water CB water

HECToR (Cray XE6) 2013

Page 86: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

I/O Solutions

1.   Serial read and write (sorted/unsorted) – where only a single MPI task, the master, handles it all and all the rest communicate in turn to or get broadcasted to while the master completes writing a configuration of the time evolution.

2.   Parallel write via direct access or MPI-I/O (sorted/unsorted) – where ALL / SOME MPI tasks print in the same file in some orderly manner so (no overlapping occurs using Fortran direct access printing. However, it should be noted that the behaviour of this method is not defined by the Fortran standard, and in particular we have experienced problems when disk cache is not coherent with the memory).

3.   Parallel read via MPI-I/O or Fortran 4.   Serial NetCDF read and write using NetCDF libraries for

machine-independent data formats of array-based, scientific data (widely used by various scientific communities).

Page 87: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

MX1-1

PX0-1

M1

P1

The Advanced Parallel I/O Strategy

MX0+1

PX0+1

MX1-1

PX1-1

M0

P0

MXn+1

PXn+1

MN-1

PN-1

MXn

PXn

MX0

PX0

I/O Group 0

I/O Group 1

I/O Group n=M-1

I/O

BA

TCH

I/O

BA

TCH

I/O

BA

TCH D

I S

K

Memory

PHEAD Pslave I/O WRITE COMMS

I/O READ COMMS

HECToR (Cray XE6) 2013

•  72 I/O NODES

•  READ ~ 50-300 Mbyte/s with best performance on 16 to 128 I/O Groups

•  WRITE ~ 50-150 Mbyte/s with best performance on 64 to 512 I/O Groups

•  Performance depends on user defined number of I/O groups, and I/O batch (memory CPU to disk) and buffer (memory of comms transactions between CPUs)

•  Reasonable defaults as a function of all MPI tasks are provided

N compute cores of which M < N do I/O

Page 88: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 5

Obtaining & Building DL_POLY

Page 89: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY Licensing and Support

• Online Licence Facility at http://www.ccp5.ac.uk/DL_POLY/ • The licence is

-  To protect copyright of Daresbury Laboratory -  To reserve commercial rights -  To provide documentary evidence justifying continued

support by UK Research Councils •  It covers only the DL_POLY_4 package • Registered users are entered on the DL_POLY e-mailing list

-  Support is available (under CCP5 & MCC SLA via EPSRC) only to UK academic researchers

-  For the rest of the world there is the PORTAL • Last but not least there is a detailed, interactive, self-referencing PDF (LaTeX) user manual

Page 90: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

• 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

• Source is in an encrypted zip file

• Successful unpacking produces a unix directory

structure

• Test and benchmarking data are also available on

the FTP

Supply of DL_POLY_4

Page 91: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY_Classic Support

• Full documentation of software supplied with source • Support is available through the DL_SODFTWARE portal or the CCP5 user community

WWW: http://www.ccp5.ac.uk/DL_POLY_CLASSIC/

FTP:

ftp://ftp.dl.ac.uk/ccp5/DL_POLY/ PORTAL:

http://community.hartree.stfc.ac.uk/portal/site/DL_SOFTWARE/

Page 92: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Downloads are available from CCPForge at http://ccpforge.cse.rl.ac.uk/gf/project/dl_poly_classic/

•  No registration required – BSD licence

•  Download source from: CCPForge: Projects: DL_POLY

Classic: Files: dl_poly_classic: dl_poly_classic1.9

•  Sources is a in tarred and gzipped form

•  Successful unpacking produces a unix directory structure

•  Test data are also available

Supply of DL_POLY_Classic

Page 93: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY

build

source

execute

java

utility

Home of makefiles

DL_POLY source code

Home of executable &

Working Directory

Java GUI source code

Utility codes

data Test data

DL_POLY Directory Structure

Page 94: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

1.  Note differences in capabilities (e.g. linked rigid bodies) !!!

2.  Less than 10,000 atoms (if in parallel)? – DL_POLY Classic 3.  More than 30,000 atoms? – DL_POLY_4

4.  Ratio cell_width/rcut < 3 (in any direction)? – DL_POLY_Classic

5.  Less than 500 particles per processor? – DL_POLY_Classic

DL_POLY_C v/s DL_POLY_4 Usage

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)!

Page 95: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 6

DL_POLY_Classic Functionality W. Smith

Page 96: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Special Algorithms

•  Hyperdynamics – Bias potential dynamics

– Temperature accelerated dynamics – Nudged elastic band

•  Solvation properties:

– Energy decomposition – Spectroscopic solvent shifts

– Free energy of solution

•  Metadynamics

Page 97: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Standard Input Special Input Standard Output Special Output CONFIG REVOLD OUTPUT HISTORY FIELD TABLE STATIS RDFDAT CONTROL TABEAM REVIVE ZDNDAT

REVCON

HYPOLD HYPRES

EVENTS

CFGBSNnn

CFGTRAnn

PROnn.XY

SOLVAT

FREENG

STEINHARDT METADYNAMICS

ZETA

CFGMIN

Operation Type: Standard use Hyperdyn./TAD Solvation Metadynamics Optimisation

I/O Files

Page 98: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Solvation Features

•  Molecular Solvation Energy

-  Energy decomposition

-  Energy distribution functions

•  Free Energy of Solvation

-  Mixed Hamiltonian method

-  Thermodynamic Integration

•  Solution Spectroscopy

-  Solvent induced shifts

-  Solvation relaxation

Page 99: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  SOLVAT -  Breakdown of system energy based on

molecular types -  Energies of ground and excited states

•  FREENG -  Energy data for thermodynamic

integration

Solvation Files

Page 100: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

l  Bias Potential Dynamics

l  Temperature Accelerated Dynamics

l  Metadynamics

Hyperdynamics

Page 101: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Construct bias potential to reduce well depth of state A.

•  Bias potential is zero at saddle point.

•  Ratios of rates from state A to states B, C, etc. preserved:

•  Suitable bias potential:

Bias Potential Dynamics

Original Potential

Bias Potential

Modified Potential

State A

Page 102: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Bias Potential Dynamics 2

( ) ( )( )( )( )

( ) ( ) ( ) ( )[ ]( )( ) ( ) ( )[ ]( )

( ) [ ]( )[ ]( )( )( ) [ ]( ) [ ]( )( ) [ ]( ) [ ]

[ ]( )b

b

bb

bb

b

b

A

Nb

ATSTTST

*bA

NbANTST

A

NbA

NbNTST

ANTST

A

Nb

A

Nb

N

A

NNb

Nb

N

NNb

Nb

NN

A

NN

NNN

A

RVkk

RVRVRVk

RVRVRVk

RVk

RV

RVff

dRVRVH

dRVRVHff

dH

dHff

β

βδ

ββδ

δ

β

β

β

β

β

β

exp/or

0 if exp/ and

exp/exp So

Now

exp

exp

exp

exp

exp

exp

*

*

*

=

==

=

=

Γ=

Γ−+Γ−

Γ−+Γ−Γ=

ΓΓ−

ΓΓ−Γ=

∫∫∫∫∫∫

∫∫

Page 103: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Temperature Accelerated Dynamics

First order reactions:

Hopping probability: P dt = k exp(-kt) dt Lifetime of state: τ=1/k Arrhenius: k = A exp(-E*/RT) log(1/τ) = log A - E*/RT 1/RTh 1/RTl 1/RToo

log(1/ τ) δ

p1

p2

E1

E2

increasing simulation time

stop time tend

Page 104: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Temperature Accelerated Dynamics 2

•  Simulate system at high T & watch for transitions •  When transition found, stop simulation and:

-  Determine activation energy using nudged elastic band

-  Record transition time, save `new’ state configuration

•  Restart simulation in original state with new velocities.

•  Search for new transitions. Hence build `library’ of transition data.

•  Stop searching after time tend given by:

tend=exp[E2+(Th-Tl)(E2-δ)/Th] •  Commence new search from `first’ low T state.

Page 105: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Nudged Elastic Band

A

B

E

R

A B C1 CN-1

C2 C3 C4

C0 CN

• N+1 configs (C0…CN) linearly interpolated From A to B

• Connect by spring (stiffness K)

• Remove `off tangent’ forces • Minimise all configs subject to presence of spring forces

• Resulting path is reaction path through saddle point

Page 106: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Kinetic Monte Carlo

•  Simulate set of competing processes

•  Rate of process is (make a list).

•  Define sum of rates

•  Generate random number

•  Select process

•  Advance time

•  Repeat!

{ }Nipi ,,1; !=ip ir

∑=

=N

iirR

1

10 : ≤< uu

⎭⎬⎫

⎩⎨⎧

<<⎭⎬⎫

⎩⎨⎧

∑∑=

=

i

jj

i

jji ruRrp

1

1

1 :

R

uRip

Rut /)log(−=Δ

Page 107: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Invoking the Hyperdynamics Options

In the CONTROL file:

tad units kJ num_block 500 num_track 10 blackout 1000 catch_radius 3.5 neb_spring 10.0 deltad 6.91 low_temp 40.0 force 0.0025 endtad

bpd path units eV vmin -3.9935E03 ebias -3.5000E03 num_block 300 num_track 10 catch_radius 3.5 neb_spring 1.0 force 0.00025 endbpd

OR

Page 108: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Additional files for TAD and Bias potential dynamics: •  HYPRES/HYPOLD – restart files •  EVENTS –program activity report •  CFGBSNnn – Basin CONFIG files (new states) •  PROnn.XY – Reaction path profiles •  CFGTRAnn – Tracking CONFIG files Subdirectories required in execute directory: BASINS, PROFILES, TRACKS

Hyperdynamics Files

Page 109: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

TAD – DL_POLY Test Case 32

•  Atoms `hop’ into vacancies •  Each vacancy has 12 nearest neighbour

atoms •  So 12 possible escapes from PE basin •  Use TAD to find them! •  Use NEB to find activation energy •  Extrapolate to low temperature for low

T rate •  Put results into KMC simulation

255 L-J Argon atoms FCC crystal + 1 vacancy

EVENTS file extract:

Event nΔt Basins Nt ΔE Time(ps) Extrap.(ps) Stop time(ps) TRA 38500 0 1 1 7.28338E+00 3.82250E+01 4.31244E+07 2.04398E+03 TRA 55500 0 2 1 7.20808E+00 5.49650E+01 5.36891E+07 2.04398E+03 TRA 127500 0 3 1 7.28160E+00 1.26145E+02 1.41830E+08 2.04398E+03 TRA 750500 0 4 1 7.19597E+00 7.47515E+02 7.13444E+08 2.04398E+03

Page 110: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

BPD – DL_POLY Test Case 33

998 NaCl ions rocksalt crystal + 2 vacancies

Event nΔt Basins Nt ΔE Time(ps) Extrap.(ps) TRA 4500 0 1 1 6.74301E-01 4.39500E+00 7.34793E+03 TRA 399300 1 2 1 1.11127E+00 3.99185E+02 6.45155E+05 TRA 466500 2 3 1 6.57466E-01 4.66495E+02 7.53837E+05

EVENTS file extract:

•  Overall neutral system •  Ions `hop’ into vacancies •  Escapes from PE basin unknown (a

priori) •  Use BPD to find them! •  Use NEB to find activation energy •  Extrapolate hopping time for zero

bias •  Put results into KMC simulation

Page 111: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

NEB Reaction Profiles

Lennard Jones Argon

Sodium Chloride

Page 112: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Metadynamics

Metadynamics is a method devised by Alessandro Laio and Michele Parrinello for accelerating the exploration of a free energy landscape as the function of collective variables.

Method:

•  The system potential energy is augmented by a time- dependent bias potential consisting of Gaussian functions of the collective variables

•  The longer a simulation remains in a particular free energy minimum, the larger the bias potential becomes – thus forcing the system to seek out a new thermodynamic state.

•  The accumulated bias potential provides a description of the free energy surface

Page 113: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Metadynamics in 1D

A. Laio & M. Parrinello, PNAS 99 (2002) 12562

Page 114: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Collective Variables?

A collective variable is a single number that defines an atomic structure (i.e. it is a function of ). Most often

they are called Order Parameters. Particular examples used in metadynamics are:

•  The system potential energy:

•  Simulation cell vectors:

•  The Steinhardt order parameters:

•  Tetrahedral order parameters:

and are maximum for particular structures.

Defining the bias potential in terms of order parameters

allows destabilization of particular structural phases.

)( NrU

αβℓQαζ

Nr

αβℓQ αζ

),,( cbah =

Page 115: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Metadynamics Formulae

Order parameter vector:

System Hamiltonian:

Bias Potential:

and are chosen to `fill’ surface at acceptable rate

Force:

Free Energy Surface:

{ })(,),()( 1N

MNNM rsrsrs !=

]),([)(21

2

trsVrUmpH NMN

N

i i

i ++=∑=

∑=

⎥⎦⎤

⎢⎣⎡ −−=

gN

k

Mk

MnM htssWtrsV1

222/)()(exp]),([ δτ

)()(1

Nji

M

j j

Nii

rssVrUf ∇∂

∂−∇−= ∑

=

]),([lim)( trsVt

sF NMMg ∞→

−=

W hδ

Page 116: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  METADYNAMICS -  Data defining the metadynamics hypersurface

•  STEINHARDT -  Defines the Steinhardt order parameters

•  ZETA -  Defines the tetrahedral order parameters

Metadynamics Files

Page 117: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Steinhardt Order Parameters

( )

if 0

if 1)()(cos

21

if 1

)(

and and typesatom connecting vectors allover runs where

,)(

with, and typesatomfor

112

4

2

2112

1

1

1

2/12

⎪⎪⎭

⎪⎪⎬

⎪⎪⎩

⎪⎪⎨

>

≤<⎭⎬⎫

⎩⎨⎧

+⎥⎦

⎤⎢⎣

=

=

⎥⎥⎦

⎢⎢⎣

+=

=

−=

rr

rrrrrrr

rr

rf

Nb

YrfQ

QNN

Q

c

b

bbmb

N

bcm

mm

C

b

π

βα

φθ

βα

π

αβ

αβ

α

αβ

ℓℓ

ℓℓℓ ℓ

Page 118: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

) typeof are atoms all (assuming atom tolinked atoms of pairs ofnumber theis and

species of atoms allover run ,, Where

)3/1)(cos()(11

2

αα

α

θ

α

αα

α α α

c

N

i

N

ij

N

jkjikikcijc

c

NNkji

rfrfNN

T ∑∑∑= ≠ >

+=

Tetrahedral Order Parameters

Page 119: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Ice Nucleation and Growth 1

0.5ns

D Quigley and PM Rodger, Molec. Sim. 35 (2009) 613

Bias: Q4

OO, Q6OO, T & PE

Page 120: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Ice Nucleation and Growth 2

0.75ns

D Quigley and PM Rodger, Molec. Sim. 35 (2009) 613

Bias: Q4

OO, Q6OO, T & PE

Page 121: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Ice Nucleation and Growth 3

1.25ns

D Quigley and PM Rodger, Molec. Sim. 35 (2009) 613

Bias: Q4

OO, Q6OO, T & PE

Page 122: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Ice Nucleation and Growth 4

1.5ns

D Quigley and PM Rodger, Molec. Sim. 35 (2009) 613

Bias: Q4

OO, Q6OO, T & PE

Page 123: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Conclusions

•  DL_POLY Classic is free

•  It's very versatile with advanced features

•  Go get it!

Page 124: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Part 7

The DL_POLY Java GUI W. Smith

Page 125: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Java is 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

GUI Overview

Page 126: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Edit source in java directory

•  Edit using vi, emacs, nano, gedit, whatever

•  Compile in java directory:

javac *.java

jar -cfm GUI.jar manifesto *.class

•  Executable is GUI.jar

•  But.....

****Don't Panic!****

The GUI.jar file is provided in the download or may be not

Compiling/Editing the GUI

Page 127: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  Invoke the GUI from within the execute directory (or equivalent):

java -jar ../java/GUI.jar

•  Colour scheme options:

java -jar ../java/GUI.jar –colourscheme

with colourscheme one of: monet, vangoch, picasso, cezanne, mondrian (default picasso).

Invoking the GUI

Page 128: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Menus

The Monitor Window

Page 129: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Using Menus

Show Editor Option

Page 130: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Graphics Buttons

The Molecular Viewer

Graphics Window

Editor Button

Page 131: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Editor Buttons

The Molecular Editor

Editor Window

Page 132: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  File - Simple file manipulation, exit etc.

•  FileMaker - make input files: –  CONTROL, FIELD, CONFIG, TABLE

•  Execute

– Select/store input files, run job

•  Analysis

– Static, dynamic,statistics,viewing,plotting

•  Information

–  Licence, Force Field files, disclaimers etc.

Available Menus

Page 133: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

Buttons

Text Boxes

A Typical GUI Panel

Page 134: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

•  VMD is a free software package for visualising MD data.

•  Website: http://www.ks.uiuc.edu/Research/vmd/

•  Useful for viewing snapshots and movies.

–  A plug in is available for DL_POLY HISTORY files

–  Otherwise convert HISTORY to XYZ or PDB format

DL_POLY & VMD

Page 135: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

xyz PDB

DL_FIELD

‘black box’ FIELD CONFIG

DL_FIELD – http://www.ccp5.ac.uk/DL_FIELD/

• Orgainic Fields – AMBER+Glycam, CHARM, OPLS-AA, PCFF, Drieding, CHARM19 (united atom)

•  Inorganic Fields including a core-shell polarisation option

•  Solvation Features, Auto-CONNECT feature for mapping complex random structures such as gels and random polymers

•  input units freedom and molecular rigidification

Protonated 4382 atoms (excluding water) 19400 bond interactions 7993 angles interactions 13000 dihedral interactions 730 VDW intearctions

Developed by C.W. Yong

SOD

Page 136: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

This will consist of (up to) five components:

•  Download & compile DL_POLY_4&Classic

•  A demonstration of the Java GUI

•  Trying some DL_POLY simulations: –  prepared exercises, or –  creative play

•  DL_POLY clinic - what’s up doc?

•  Group therapy – all for one and one for all …

“Hands-On Session”

Page 137: DL SOFTWARE TUTORIAL - ARCHER · of many different types of systems, including; gases, liquids, solids, polymers, surfaces and clusters. • In an MD simulation, the classical equations

DL_POLY Hands-On

http://www.ccp5.ac.uk/DL_POLY/TUTORIAL/EXERCISES/index.html


Recommended