Documente Academic
Documente Profesional
Documente Cultură
Taekhee Ryu
3
LAMMPS doesn’t
4
Overview of LAMMPS simulation
INPUT OUTPUT
(**.cmd, in.**, data.**) RUNNING (log.***, dump.***)
INPUT
RUNNING
OUTPUT
- Initial positions - Trajectories
and velocities - Forces
- Boundary Molecular - Energy of the
conditions Dynamics system
- Potential energy Simulation - Temperature
function - Pressure
- Etc. - etc.
5
LAMMPS Input
• Reads an input script (ASCⅡtext)
6
Example Problems in LAMMPS
7
Hand-on exercise
• Download the files
• Xming (http://m.vaslor.net/tech/xming)
• VMD (http://www.ks.uiuc.edu/Research/vmd/)
• Xming
• VMD
8
Hands-on excises (Linux basic)
• Connect to the GIST supercomputer (KIGI) using PLSI portal
software
9
http://portal.plsi.or.kr
10
1. Extract the files from archive (*.zip)
11
Sign in
- Enter your account information
12
Select “원격 시스템”
13
Connected to PLSI login node with SSH terminal
14
Hand-on exercise
• Connect to the GIST supercomputer (kigi)
15
Hand-on exercise
• Lammps_kigi.cmd -> executable file
Job name
Error message
Job-time
Input file
16
Input script
• 2 fmsec timestep
17
Input script
1. initialization
2. Atom definition
3. Settings
4. Run a simulation
18
Input script - initialization
1. initialization
19
Input script - initialization
• Units
1. initialization
• sets the style of units used for a simulation
• Beginning of an input script
• lj, real, metal, si, cgs, electron
20
Input script - initialization
• atom_style 1. initialization
• Define what style of atoms to use in a simulation
• Beginning of an input script
21
Input script - initialization
1. initialization
2. Atom definition
• Boundary - set the style of boundaries for the global simula
tion box in each dimension
3. Settings
• Processors - Specify how processors are mapped as a 3d log
ical grid to the global simulation box
22
Input script - initialization
1. initialization
2. Atom definition
• pair_style
• set the formula uses to compute pairwise interactions
3. Settings
23
Input script - initialization
r
1. initialization
2. Atom definition
• bond_style
• uses to compute bond interactions between pairs of atoms
3. Settings
24
Input script - initialization
1. initialization
r
r
2. Atom definition
• angle_style
• uses to compute angle interactions between triplets of atoms
3. Settings
25
Input script - initialization
1. initialization
26
Input script - initialization
1. initialization
27
Input script - initialization
1. initialization
2. Atom definition
• kspace_style
• Define a K-space solver for LAMMPS to use each timestep t
o compute long-range Coulombic interactions or long-rang
e 1/r^N interactions
• Style – none or ewald or pppm or pppm/cg or ……
• The pppm style invokes a particle-particle particle-mesh sol
ver (Hockney) which maps atom charge to a 3d mesh, uses
3d FFTs to solve Poisson's equation on the mesh, then inter
polates electric fields on the mesh points back to the atoms
28
Input script - atom definition
1. initialization
2. Atom definition
• Read them in from a data or restart file
• via the read data or read restart command
3. Settings
• Contain molecular topology information
29
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
# of components
in system
Simulation box
boundaries
Mass
30
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
31
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
32
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
33
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
34
Input script
• Read_data - Read in a data file containing information L
AMMPS needs to run a simulation (data.***)
1. initialization
35
Input script
Charge, X, Y, Z type, i, j, k, l
X, Y, Z
type, i, j, k, l
type, i, j
type, i, j, k
36
Input script - atom definition
• read_data - Read in a data file containing information
LAMMPS needs to run a simulation (data.***)
1. initialization
2. Atom definition
37
Input script - atom definition
• Create atoms on a lattice
• with no molecular topology
• Lattice, region, create box, create atoms
• Lattice
• simply a set of points in space
• determined by a unit cell with basis atoms
• used to define a wide variety of crystallographic
lattices
syntax
example
38
Input script - atom definition
• Create atoms on a lattice
• with no molecular topology
• Lattice, region, create box, create atoms
• region
• This command defines a geometric region of
space
• create box
• This command creates a simulation box based on
the specified region
• create atoms
• This command creates atoms on a lattice, or a
single atom, or a random collection of atoms
39
Input script - settings
1. initialization
2. Atom definition
3. Settings
3. Run a simulation
40
Input script - settings
• neighbor
• This command sets parameters that affect the bui
lding of pairwise neighbor lists
41
Input script - settings
• Neigh_modify
• This command sets parameters that affect the
building and use of pairwise neighbor lists
42
Input script - settings
• timestep
• Set the timestep size for subsequent molecular
dynamics simulations
43
Input script - settings
• thermo_style
• Set the style and content for printing thermodyna
mic data to the screen and log file.
44
Input script - settings
• thermo
• Compute and print thermodynamic info on timeste
ps that are a multiple of N and at the beginning an
d end of a simulation
45
Input script - settings
• fix
• Set a fix that will be applied to a group of atoms
46
Input script - settings
• fix
• Set a fix that will be applied to a group of atoms
47
Input script - settings
• group
• Identify a collection of atoms as belonging to a gr
oup
• The example above adds all atoms with IDs from 1
to 12 to the group named peptide type
48
Input script - settings
• dump
• snapshot of atom quantities to one or more files ev
ery N timesteps in one of several styles
49
Input script
1. initialization
2. Atom definition
3. Settings
• run
• Run or continue dynamics for a specified number o
f timesteps
3. Run a simulation
50
Hand-on exercise
• Example-1
• 2 fmsec timestep
51
Hand-on exercise
• Example-2
• 3d LJ solid
Periodic in x, y, z
52
Hand-on exercise
• Running LAMMPS on PLSI supercomputer
53
Output
54
• Example-1 (log.lammps) Output
55
• Example-2 (log.lammps) Output
56
Visualizer
• AtomEye - http://li.mit.edu/Archive/Graphics/A
• Rasmol - http://www.umass.edu/microbio/rasmol/
• XMOVIE
§ Auxiliary tool distributed with LAMMPS
§ Very fast, simple viz
§ 2d projection of 3d systems
§ /home01/applic/lammps/lammps-18Apr10/intel/ssh/tools
/xmovie/xmovie –scale dump.***
• VMD - http://www.ks.uiuc.edu/Research/vmd/
§ Windows, Linux, MacOS X
§ 3d hi-quality viz
57
Additional tools
• Amber2lmp AMBER <-> LAMMPS
• Binary2txt binary dump file -> ASCⅡ test files
• Ch2lmp CHARMM <-> LAMMPS
• Chain create the chains and solvent
• Lmp2arc LAMMPS -> Accelrys’s insight MD
• Lamp2cfg LAMMPS -> AtomEYE(*.cfg)
• Lmp2vmd LAMMPS -> VMD
• Msi2lmp LAMMPS -> Accelrys’s insight MD
• Python, micelle2d, matlab, ipp, emacs, eff, eam database, data
2xmovie, creatatoms
58
Thank you
59
Hand-on exercise
• Connect to the GIST supercomputer (kigi)
localhost:0.0
60
Hand-on exercise
• Connect to the GIST supercomputer (kigi)
61
Hand-on exercise
• Connect to the GIST supercomputer (kigi)
Login01.plsi.or.kr, Port-22
62