~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to examples/snap/in.snap

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Demonstrate SNAP Ta potential
 
2
 
 
3
# Initialize simulation
 
4
 
 
5
variable nsteps index 100
 
6
variable nrep equal 4
 
7
variable a equal 3.316
 
8
units           metal
 
9
 
 
10
# generate the box and atom positions using a BCC lattice
 
11
 
 
12
variable nx equal ${nrep}
 
13
variable ny equal ${nrep}
 
14
variable nz equal ${nrep}
 
15
 
 
16
boundary        p p p
 
17
 
 
18
lattice         bcc $a
 
19
region          box block 0 ${nx} 0 ${ny} 0 ${nz}
 
20
create_box      1 box
 
21
create_atoms    1 box
 
22
 
 
23
mass 1 180.88
 
24
 
 
25
# choose potential
 
26
 
 
27
include Ta06A_pot.snap
 
28
 
 
29
# Setup output
 
30
 
 
31
thermo          10
 
32
thermo_modify norm yes
 
33
 
 
34
# Set up NVE run
 
35
 
 
36
timestep 0.5e-3
 
37
neighbor 1.0 bin
 
38
neigh_modify once no every 1 delay 0 check yes
 
39
 
 
40
# Run MD
 
41
 
 
42
velocity all create 300.0 4928459
 
43
fix 1 all nve
 
44
run             ${nsteps}
 
45