2012-01-31 06:53:42 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
pair_style kim command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2012-08-08 23:32:02 +08:00
|
|
|
pair_style kim virialmode model :pre
|
2012-01-31 06:53:42 +08:00
|
|
|
|
2012-08-08 23:32:02 +08:00
|
|
|
virialmode = KIMvirial or LAMMPSvirial
|
2012-08-08 23:34:15 +08:00
|
|
|
model = name of KIM model (potential) :ul
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2012-08-08 23:32:02 +08:00
|
|
|
pair_style kim KIMvirial model_Ar_P_Morse
|
2012-01-31 06:53:42 +08:00
|
|
|
pair_coeff * * Ar Ar :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2012-02-01 06:36:03 +08:00
|
|
|
This pair style is a wrapper on the "Knowledge Base for Interatomic
|
2014-06-28 03:41:37 +08:00
|
|
|
Models (KIM)"_https://openkim.org repository of interatomic potentials,
|
2012-08-08 23:34:15 +08:00
|
|
|
so that they can be used by LAMMPS scripts.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
In KIM lingo, a potential is a "model" and a model contains both the
|
|
|
|
analytic formulas that define the potential as well as the parameters
|
|
|
|
needed to run it for one or more materials, including coefficients and
|
|
|
|
cutoffs.
|
|
|
|
|
2012-08-08 23:34:15 +08:00
|
|
|
The argument {virialmode} determines how the global virial is
|
|
|
|
calculated. If {KIMvirial} is specified, the KIM model performs the
|
2014-06-28 03:41:37 +08:00
|
|
|
global virial calculation (if it knows how). If {LAMMPSvirial} is
|
|
|
|
specified, LAMMPS computes the global virial using its fdotr mechanism.
|
2012-08-08 23:32:02 +08:00
|
|
|
|
2012-08-08 23:34:15 +08:00
|
|
|
The argument {model} is the name of the KIM model for a specific
|
|
|
|
potential as KIM defines it. In principle, LAMMPS can invoke any KIM
|
|
|
|
model. You should get an error or warning message from either LAMMPS
|
|
|
|
or KIM if there is an incompatibility.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
Only a single pair_coeff command is used with the {kim} style which
|
|
|
|
specifies the mapping of LAMMPS atom types to KIM elements. This is
|
2012-08-08 23:34:15 +08:00
|
|
|
done by specifying N additional arguments after the * * in the
|
2012-01-31 06:53:42 +08:00
|
|
|
pair_coeff command, where N is the number of LAMMPS atom types:
|
|
|
|
|
|
|
|
N element names = mapping of KIM elements to atom types :ul
|
|
|
|
|
|
|
|
As an example, imagine the KIM model supports Si and C atoms. If your
|
2012-08-08 23:32:02 +08:00
|
|
|
LAMMPS simulation has 4 atom types and you want the 1st 3 to be Si,
|
2012-01-31 06:53:42 +08:00
|
|
|
and the 4th to be C, you would use the following pair_coeff command:
|
|
|
|
|
|
|
|
pair_coeff * * Si Si Si C :pre
|
|
|
|
|
|
|
|
The 1st 2 arguments must be * * so as to span all LAMMPS atom types.
|
|
|
|
The first three Si arguments map LAMMPS atom types 1,2,3 to Si as
|
|
|
|
defined within KIM. The final C argument maps LAMMPS atom type 4 to C
|
|
|
|
as defined within KIM. If a mapping value is specified as NULL, the
|
2012-08-08 23:34:15 +08:00
|
|
|
mapping is not performed. This can only be used when a {kim}
|
|
|
|
potential is used as part of the {hybrid} pair style. The NULL values
|
|
|
|
are placeholders for atom types that will be used with other
|
|
|
|
potentials.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
:line
|
|
|
|
|
2012-02-01 06:36:03 +08:00
|
|
|
In addition to the usual LAMMPS error messages, the KIM library itself
|
|
|
|
may generate errors, which should be printed to the screen. In this
|
|
|
|
case it is also useful to check the kim.log file for additional error
|
|
|
|
information. This file kim.log should be generated in the same
|
|
|
|
directory where LAMMPS is running.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
2015-01-09 08:15:37 +08:00
|
|
|
To download, build, and install the KIM library on your system, see
|
|
|
|
the lib/kim/README file. Once you have done this and built LAMMPS
|
|
|
|
with the KIM package installed you can run the example input scripts
|
|
|
|
in examples/kim.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
[Mixing, shift, table, tail correction, restart, rRESPA info]:
|
|
|
|
|
|
|
|
This pair style does not support the "pair_modify"_pair_modify.html
|
|
|
|
mix, shift, table, and tail options.
|
|
|
|
|
|
|
|
This pair style does not write its information to "binary restart
|
2012-08-08 23:32:02 +08:00
|
|
|
files"_restart.html, since KIM stores the potential parameters.
|
2012-01-31 06:53:42 +08:00
|
|
|
Thus, you need to re-specify the pair_style and pair_coeff commands in
|
|
|
|
an input script that reads a restart file.
|
|
|
|
|
|
|
|
This pair style can only be used via the {pair} keyword of the
|
|
|
|
"run_style respa"_run_style.html command. It does not support the
|
|
|
|
{inner}, {middle}, {outer} keywords.
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This pair style is part of the KIM package. It is only enabled if
|
|
|
|
LAMMPS was built with that package. See the "Making
|
|
|
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
|
|
|
|
2012-08-08 23:34:15 +08:00
|
|
|
This current version of pair_style kim is compatible with the
|
2014-08-07 07:29:18 +08:00
|
|
|
kim-api package version 1.6.0 and higher.
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2012-08-08 23:34:15 +08:00
|
|
|
"pair_coeff"_pair_coeff.html
|
2012-01-31 06:53:42 +08:00
|
|
|
|
|
|
|
[Default:] none
|