Files
lammps/examples/snap/log.18Sep19.snap.WBeSNAP.g++.4
2019-09-18 14:34:20 -06:00

155 lines
4.8 KiB
Groff

LAMMPS (7 Aug 2019)
# Demonstrate SNAP W-Be potential
# Initialize simulation
variable nsteps index 100
variable nrep equal 4
variable a equal 3.1803
units metal
# generate the box and atom positions using a BCC lattice
variable nx equal ${nrep}
variable nx equal 4
variable ny equal ${nrep}
variable ny equal 4
variable nz equal ${nrep}
variable nz equal 4
boundary p p p
lattice bcc $a
lattice bcc 3.1803
Lattice spacing in x,y,z = 3.1803 3.1803 3.1803
region box block 0 ${nx} 0 ${ny} 0 ${nz}
region box block 0 4 0 ${ny} 0 ${nz}
region box block 0 4 0 4 0 ${nz}
region box block 0 4 0 4 0 4
create_box 2 box
Created orthogonal box = (0 0 0) to (12.7212 12.7212 12.7212)
1 by 2 by 2 MPI processor grid
create_atoms 1 box
Created 128 atoms
create_atoms CPU = 0.000317097 secs
mass 1 183.84
mass 2 9.012182
set group all type/fraction 2 0.05 3590153 # Change 5% of W to He
5 settings made for type/fraction
group tungsten type 1
123 atoms in group tungsten
group beryllium type 2
5 atoms in group beryllium
# choose potential
include WBe_Wood_PRB2019.snap
# Definition of SNAP+ZBL potential.
variable zblcutinner equal 4
variable zblcutouter equal 4.8
variable zblz1 equal 74
variable zblz2 equal 4
# Specify hybrid with SNAP and ZBL
pair_style hybrid/overlay zbl ${zblcutinner} ${zblcutouter} snap
pair_style hybrid/overlay zbl 4 ${zblcutouter} snap
pair_style hybrid/overlay zbl 4 4.8 snap
pair_coeff 1 1 zbl ${zblz1} ${zblz1}
pair_coeff 1 1 zbl 74 ${zblz1}
pair_coeff 1 1 zbl 74 74
pair_coeff 1 2 zbl ${zblz1} ${zblz2}
pair_coeff 1 2 zbl 74 ${zblz2}
pair_coeff 1 2 zbl 74 4
pair_coeff 2 2 zbl ${zblz2} ${zblz2}
pair_coeff 2 2 zbl 4 ${zblz2}
pair_coeff 2 2 zbl 4 4
pair_coeff * * snap WBe_Wood_PRB2019.snapcoeff WBe_Wood_PRB2019.snapparam W Be
SNAP Element = W, Radius 0.5, Weight 1
SNAP Element = Be, Radius 0.417932, Weight 0.959049
SNAP keyword rcutfac 4.8123
SNAP keyword twojmax 8
SNAP keyword rfac0 0.99363
SNAP keyword rmin0 0
SNAP keyword bzeroflag 1
SNAP keyword quadraticflag 0
# Setup output
thermo 10
thermo_modify norm yes
# Set up NVE run
timestep 0.5e-3
neighbor 1.0 bin
neigh_modify once no every 1 delay 0 check yes
# Run MD
velocity all create 300.0 4928459
fix 1 all nve
run ${nsteps}
run 100
Neighbor list info ...
update every 1 steps, delay 0 steps, check yes
max neighbors/atom: 2000, page size: 100000
master list distance cutoff = 5.8123
ghost atom cutoff = 5.8123
binsize = 2.90615, bins = 5 5 5
2 neighbor lists, perpetual/occasional/extra = 2 0 0
(1) pair zbl, perpetual, half/full from (2)
attributes: half, newton on
pair build: halffull/newton
stencil: none
bin: none
(2) pair snap, perpetual
attributes: full, newton on
pair build: full/bin/atomonly
stencil: full/bin/3d
bin: standard
Per MPI rank memory allocation (min/avg/max) = 4.167 | 4.167 | 4.167 Mbytes
Step Temp E_pair E_mol TotEng Press
0 300 -8.5980876 0 -8.5596125 -35284.855
10 296.24946 -8.5976065 0 -8.5596124 -35140.29
20 282.27904 -8.5958147 0 -8.5596123 -34710.3
30 259.54978 -8.5928995 0 -8.5596121 -34060.43
40 230.41412 -8.5891626 0 -8.5596119 -33258.275
50 197.85135 -8.5849861 0 -8.5596116 -32389.527
60 165.21732 -8.5808005 0 -8.5596113 -31550.426
70 135.94024 -8.5770455 0 -8.5596111 -30839.006
80 113.06617 -8.5741117 0 -8.5596109 -30339.177
90 98.542347 -8.572249 0 -8.5596109 -30094.29
100 92.524343 -8.5714774 0 -8.5596111 -30091.988
Loop time of 0.813674 on 4 procs for 100 steps with 128 atoms
Performance: 5.309 ns/day, 4.520 hours/ns, 122.899 timesteps/s
99.7% CPU use with 4 MPI tasks x no OpenMP threads
MPI task timing breakdown:
Section | min time | avg time | max time |%varavg| %total
---------------------------------------------------------------
Pair | 0.79079 | 0.79788 | 0.80888 | 0.8 | 98.06
Neigh | 7.1049e-05 | 8.0049e-05 | 9.2983e-05 | 0.0 | 0.01
Comm | 0.0041246 | 0.01515 | 0.022235 | 5.5 | 1.86
Output | 0.000144 | 0.00017095 | 0.00024796 | 0.0 | 0.02
Modify | 4.4823e-05 | 5.8889e-05 | 7.2718e-05 | 0.0 | 0.01
Other | | 0.000338 | | | 0.04
Nlocal: 32 ave 37 max 28 min
Histogram: 1 0 0 1 1 0 0 0 0 1
Nghost: 431 ave 435 max 426 min
Histogram: 1 0 0 0 0 1 1 0 0 1
Neighs: 927 ave 1071 max 821 min
Histogram: 1 0 1 0 1 0 0 0 0 1
FullNghs: 1854 ave 2144 max 1624 min
Histogram: 1 0 0 1 1 0 0 0 0 1
Total # of neighbors = 7416
Ave neighs/atom = 57.9375
Neighbor list builds = 1
Dangerous builds = 0
Total wall time: 0:00:00