Commit 1cd4c48c authored by Steve Plimpton's avatar Steve Plimpton
Browse files

new SNAP potential for W

parent cb982f2f
Loading
Loading
Loading
Loading
+43 −10
Original line number Diff line number Diff line
@@ -10,21 +10,27 @@ compute rdf command :h3

[Syntax:]

compute ID group-ID rdf Nbin itype1 jtype1 itype2 jtype2 ... :pre
compute ID group-ID rdf Nbin itype1 jtype1 itype2 jtype2 ... keyword/value ... :pre

ID, group-ID are documented in "compute"_compute.html command
rdf = style name of this compute command
Nbin = number of RDF bins
itypeN = central atom type for Nth RDF histogram (see asterisk form below)
jtypeN = distribution atom type for Nth RDF histogram (see asterisk form below) :ul
ID, group-ID are documented in "compute"_compute.html command :ulb,l
rdf = style name of this compute command :l
Nbin = number of RDF bins :l
itypeN = central atom type for Nth RDF histogram (see asterisk form below) :l
jtypeN = distribution atom type for Nth RDF histogram (see asterisk form below) :l

zero or more keyword/value pairs may be appended :l
keyword = {cutoff} :l
  {cutoff} value = Rcut
    Rcut = cutoff distance for RDF computation (distance units) :pre
:ule

[Examples:]

compute 1 all rdf 100
compute 1 all rdf 100 1 1
compute 1 all rdf 100 * 3
compute 1 all rdf 100 * 3 cutoff 5.0
compute 1 fluid rdf 500 1 1 1 2 2 1 2 2
compute 1 fluid rdf 500 1*3 2 5 *10 :pre
compute 1 fluid rdf 500 1*3 2 5 *10 cutoff 3.5 :pre

[Description:]

@@ -32,7 +38,8 @@ Define a computation that calculates the radial distribution function
(RDF), also called g(r), and the coordination number for a group of
particles.  Both are calculated in histogram form by binning pairwise
distances into {Nbin} bins from 0.0 to the maximum force cutoff
defined by the "pair_style"_pair_style.html command.  The bins are of
defined by the "pair_style"_pair_style.html command or the cutoff
distance {Rcut} specified via the {cutoff} keyword.  The bins are of
uniform size in radial distance.  Thus a single bin encompasses a thin
shell of distances in 3d and a thin ring of distances in 2d.

@@ -52,6 +59,30 @@ the dump file. The rerun script can use a
"special_bonds"_special_bonds.html command that includes all pairs in
the neighbor list.

By default the RDF is computed out to the maximum force cutoff defined
by the "pair_style"_pair_style.html command.  If the {cutoff} keyword
is used, then the RDF is computed accurately out to the {Rcut} > 0.0
distance specified.

NOTE: Normally, you should only use the {cutoff} keyword if no pair
style is defined, e.g. the "rerun"_rerun.html command is being used to
post-process a dump file of snapshots.  Or if you really want the RDF
for distances beyond the pair_style force cutoff and cannot easily
post-process a dump file to calculate it.  This is because using the
{cutoff} keyword incurs extra computation and possibly communication,
which may slow down your simulation.  If you specify a {Rcut} <= force
cutoff, you will force an additional neighbor list to be built at
every timestep this command is invoked (or every reneighboring
timestep, whichever is less frequent), which is inefficent.  LAMMPS
will warn you if this is the case.  If you specify a {Rcut} > force
cutoff, you must insure ghost atom information out to {Rcut} + {skin}
is communicated, via the "comm_modify cutoff"_comm_modify.html
command, else the RDF computation cannot be performed, and LAMMPS will
give an error message.  The {skin} value is what is specified with the
"neighbor"_neighbor.html command.  In this case, you are forcing a
large neighbor list to be built just for the RDF computation, and
extra communication to be performed every timestep.

The {itypeN} and {jtypeN} arguments are optional.  These arguments
must come in pairs.  If no pairs are listed, then a single histogram
is computed for g(r) between all atom types.  If one or more pairs are
@@ -153,4 +184,6 @@ change from zero to one at the location of the spike in g(r).

"fix ave/time"_fix_ave_time.html

[Default:] none
[Default:]

The keyword defaults are cutoff = 0.0 (use the pairwise force cutoff).
+5008 −0

File added.

Preview size limit exceeded, changes collapsed.

+17 −0
Original line number Diff line number Diff line
# DATE: 2017-02-20 CONTRIBUTOR: Mitchell Wood mitwood@sandia.gov CITATION: Wood, M. A. and Thompson, A. P. to appear in arxiv Feb2017, W-He and He-He from Juslin, N. and Wirth, B. D. Journal of Nuclear Materials, 423, (2013) p61-63
#
# Definition of SNAP+ZBL+Tabulated potential.
variable zblcutinner equal 4
variable zblcutouter equal 4.8
variable zblz equal 74

# Specify hybrid with SNAP, ZBL, and long-range Coulomb

pair_style hybrid/overlay zbl ${zblcutinner} ${zblcutouter} snap table spline 10000 table spline 10000
pair_coeff 	1 1 zbl ${zblz} ${zblz}
pair_coeff 	* * snap W_2940_2017_2.snapcoeff W W_2940_2017_2.snapparam W NULL
pair_coeff      2 2 table 1 He_He_JW2013.table HeHe
pair_coeff      1 2 table 2 W_He_JW2013.table WHe
#Hybrid/overlay will take all pair styles and add their contributions equally, order of pair_coeff doesnt matter here
#This is not the case for pair_style hybrid ... where only one pair_coeff is read for each type combination, order matters here.
+16 −0
Original line number Diff line number Diff line
# DATE: 2017-02-20 CONTRIBUTOR: Mitchell Wood mitwood@sandia.gov CITATION: Wood, M. A. and Thompson, A. P. to appear in arxiv Feb2017
#
# Definition of SNAP+ZBL potential.
variable zblcutinner equal 4
variable zblcutouter equal 4.8
variable zblz equal 74

# Specify hybrid with SNAP, ZBL, and long-range Coulomb

pair_style hybrid/overlay &
zbl ${zblcutinner} ${zblcutouter} &
snap
pair_coeff 1 1 zbl ${zblz} ${zblz}
pair_coeff * * snap W_2940_2017_2.snapcoeff W W_2940_2017_2.snapparam W

#Nomenclature on the snap files are Element_DakotaID_Year_Month
+62 −0
Original line number Diff line number Diff line
# DATE: 2017-02-20 CONTRIBUTOR: Mitchell Wood mitwood@sandia.gov CITATION: Wood, M. A. and Thompson, A. P. to appear in arxiv Feb2017
# 
# LAMMPS SNAP coefficients for W

1 56
W 0.5 1
  0.781170857801
 -0.001794941735
 -0.016628679036
 -0.066625537037
 -0.073716343967
 -0.062913923923
  0.032552694672
 -0.134901744419
 -0.075076334103
 -0.148558616547
 -0.140808831101
 -0.166749145704
 -0.047487675984
 -0.049892090603
 -0.032483739965
 -0.114766534860
 -0.106759718242
 -0.125894850485
 -0.103409735225
 -0.095247335447
 -0.061998736346
 -0.053895610976
 -0.010799734206
 -0.011644828900
 -0.028316826924
  0.011176085541
  0.064619474684
 -0.023886279996
 -0.004099224312
 -0.056084222496
 -0.035551497650
 -0.056678501024
 -0.004905851656
 -0.015701146162
 -0.008462280779
  0.016429018676
  0.032432633993
 -0.010805361272
 -0.014841893457
  0.019414134562
 -0.008112452759
 -0.002700775447
  0.007032887063
 -0.009706065042
  0.008385967833
  0.028606085876
 -0.007003591067
  0.006467260152
 -0.006666986361
  0.029243285316
  0.002477673872
 -0.000199497504
  0.004068954075
  0.006036129972
 -0.013010633924
 -0.008314173699
Loading