Commit 9d0aee74 authored by Aidan Thompson's avatar Aidan Thompson
Browse files

Added doc page for compute mliap and updated examples

parent 28bbb6af
Loading
Loading
Loading
Loading
+48 −32
Original line number Diff line number Diff line
.. index:: compute mliap

compute mliap command
====================
=====================

Syntax
""""""

.. code-block:: LAMMPS

   compute mliap
   compute ID group-ID mliap ... keyword values ...

* ID, group-ID are documented in :doc:`compute <compute>` command
* mliap = style name of this compute command
* two keyword/value pairs must be appended
* keyword = *model* or *descriptor*

  .. parsed-literal::

       *model* values = style Nelems Nparams
         style = *linear* or *quadratic*
         Nelems = number of elements
         Nparams = number of parameters per element 
       *descriptor* values = style filename
         style = *sna*
         filename = name of file containing descriptor definitions

Examples
""""""""

.. code-block:: LAMMPS

   compute mliap model linear nelems nparams descriptor sna InP.mliap.descriptor
   compute mliap model linear 2 31 descriptor sna Ta06A.mliap.descriptor

Description
"""""""""""
@@ -24,7 +39,7 @@ Compute style *mliap* provides a general interface to the gradient
of machine-learning interatomic potentials w.r.t. model parameters. 
It is used primarily for calculating the gradient of energy, force, and
stress components w.r.t. model parameters, which is useful when training
:doc:`MLIAP pair_style <pair_mliap>` to match target data.
:doc:`mliap pair_style <pair_mliap>` models to match target data.
It provides separate 
definitions of the interatomic potential functional form (*model*)
and the geometric quantities that characterize the atomic positions
@@ -46,7 +61,7 @@ either *linear* or *quadratic*. In both cases,
this is followed by two arguments. *nelems* is the number of elements.
It must be equal to the number of LAMMPS atom types. *nparams*
is the number of parameters per element for this model i.e.
the number of paramter gradients for each element. Note these definitions
the number of parameter gradients for each element. Note these definitions
are identical to those of *nelems* and *nparams* in the 
:doc:`pair_style mliap <pair_mliap>` model file.
 
@@ -58,7 +73,7 @@ The \'p\' in SNAP is dropped, because keywords that match pair_styles are silent
out by the LAMMPS command parser. A single additional argument specifies the descriptor filename 
containing the parameters and setting used by the SNAP descriptor. 
The descriptor filename usually ends in the *.mliap.descriptor* extension.
The format of this file is identical to descriptor file in the 
The format of this file is identical to the descriptor file in the 
:doc:`pair_style mliap <pair_mliap>`, and is described in detail
there. 

@@ -68,33 +83,34 @@ The number of LAMMPS atom types (and the value of *nelems* in the model)
   must match the value of *nelems* in the descriptor file. 

Compute *mliap* calculates a global array containing gradient information.
The number of columns in the array is the :math:`nelems \times nparams + 1`.
The first row of the array contain the derivative of potential energy w.r.t to
The number of columns in the array is :math:`nelems \times nparams + 1`.
The first row of the array contain the derivative of potential energy w.r.t. to
each parameter and each element. The last six rows
of the array contain the corresponding derivatives of the
virial stress tensor, listed in Voigt notation: *pxx*, *pyy*, *pzz*,
*pyz*, *pxz*, *pxy*. In between 3\*\ *N* rows containing the derivatives
of the force components. 
*pyz*, *pxz*, *pxy*. In between the energy and stress rows are
the 3\*\ *N* rows containing the derivatives of the force components. 
See section below on output for a detailed description of how 
rows and columns are ordered. 

The element in the last column of each row contains
the potential energy, force, or stress, according to the row.
These quantities correspond to the user-specified reference potential
that must be subtracted from the target data when fitting SNAP.
that must be subtracted from the target data when training a model.
The potential energy calculation uses the built in compute *thermo_pe*.
The stress calculation uses a compute called *snap_press* that is
The stress calculation uses a compute called *mliap_press* that is
automatically created behind the scenes, according to the following
command:

.. code-block:: LAMMPS

   compute snap_press all pressure NULL virial
   compute mliap_press all pressure NULL virial

See section below on output for a detailed explanation of the data
layout in the global array.

Atoms not in the group do not contribute to this compute. 
Neighbor atoms not in the group do not contribute to this compute.

The neighbor list needed to compute this quantity is constructed each
time the calculation is performed (i.e. each time a snapshot of atoms
is dumped).  Thus it can be inefficient to compute/dump this quantity
@@ -102,17 +118,19 @@ too frequently.

.. note::

   If you have a bonded system, then the settings of
   If the user-specified reference potentials includes bonded and
   non-bonded pairwise interactions, then the settings of
   :doc:`special_bonds <special_bonds>` command can remove pairwise 
   interactions between atoms in the same bond, angle, or dihedral.  This
   is the default setting for the :doc:`special_bonds <special_bonds>`
   command, and means those pairwise interactions do not appear in the
   neighbor list.  Because this fix uses the neighbor list, it also means
   those pairs will not be included in the calculation.  One way to get
   around this, is to write a dump file, and use the :doc:`rerun <rerun>`
   command to compute the bispectrum components for snapshots in the dump
   file.  The rerun script can use a :doc:`special_bonds <special_bonds>`
   command that includes all pairs in the neighbor list.
   those pairs will not be included in the calculation. The :doc:`rerun <rerun>`
   command is not an option here, since the reference potential is required
   for the last column of the global array. A work-around is to prevent
   pairwise interactions from being removed by explicitly adding a 
   *tiny* positive value for every pairwise interaction that would otherwise be
   set to zero in the :doc:`special_bonds <special_bonds>` command.

----------

@@ -127,15 +145,14 @@ on an atom, or virial stress component. The rows of the array appear
in the following order:

* 1 row: Derivatives of potential energy w.r.t. each parameter of each element.
* 3\*\ *N* rows: Derivatives of force components. x, y, and z components of 
force on atom *i* appearing in consecutive rows. The atoms are sorted based on atom ID.
* 6 rows: Derivatives of virial stress tensor  w.r.t. each parameter of each element.
The ordering of the rows follows Voigt notation: *pxx*, *pyy*, *pzz*,
*pyz*, *pxz*, *pxy*.
* 3\*\ *N* rows: Derivatives of force components. x, y, and z components of force on atom *i* appearing in consecutive rows. The atoms are sorted based on atom ID.
* 6 rows: Derivatives of virial stress tensor  w.r.t. each parameter of each element. The ordering of the rows follows Voigt notation: *pxx*, *pyy*, *pzz*, *pyz*, *pxz*, *pxy*.

These values can be accessed by any command that uses per-atom values
These values can be accessed by any command that uses a global array
from a compute as input.  See the :doc:`Howto output <Howto_output>` doc
page for an overview of LAMMPS output options.
page for an overview of LAMMPS output options. To see how this command
can be used within a Python workflow to train machine-learning interatomic
potentials, see the examples in `FitSNAP <https://github.com/FitSNAP/FitSNAP>`_.

Restrictions
""""""""""""
@@ -144,11 +161,10 @@ This compute is part of the MLIAP package. It is only enabled if
LAMMPS was built with that package.  In addition, building LAMMPS with the MLIAP package
requires building LAMMPS with the SNAP package.
See the :doc:`Build package <Build_package>` doc page for more info.
doc page for more info.

Related commands
""""""""""""""""

:doc:`pair_style snap <pair_mliap>`
:doc:`pair_style mliap <pair_mliap>`

**Default:** none
+3 −1
Original line number Diff line number Diff line
@@ -391,7 +391,9 @@ of :math:`K N_{elem}^3` columns.

These values can be accessed by any command that uses per-atom values
from a compute as input.  See the :doc:`Howto output <Howto_output>` doc
page for an overview of LAMMPS output options.
page for an overview of LAMMPS output options. To see how this command
can be used within a Python workflow to train SNAP potentials, 
see the examples in `FitSNAP <https://github.com/FitSNAP/FitSNAP>`_.

Restrictions
""""""""""""
+18 −3
Original line number Diff line number Diff line
@@ -8,7 +8,19 @@ Syntax

.. code-block:: LAMMPS

   pair_style mliap
   pair_style mliap ... keyword values ...

* two keyword/value pairs must be appended
* keyword = *model* or *descriptor*

  .. parsed-literal::

       *model* values = style filename
         style = *linear* or *quadratic*
         filename = name of file containing model definitions
       *descriptor* values = style filename
         style = *sna*
         filename = name of file containing descriptor definitions

Examples
""""""""
@@ -23,7 +35,7 @@ Description
"""""""""""

Pair style *mliap* provides a general interface to families of 
machine-learning interatomic potentials. It provides separate 
machine-learning interatomic potentials. It allows separate 
definitions of the interatomic potential functional form (*model*)
and the geometric quantities that characterize the atomic positions
(*descriptor*). By defining *model* and *descriptor* separately, 
@@ -34,6 +46,9 @@ and one descriptor, *sna*, the SNAP descriptor used by :doc:`pair_style snap <pa
and chem variants. Work is currently underway to extend
the interface to handle neural network energy models,
and it is also straightforward to add new descriptor styles.
In order to train a model, it is useful to know the gradient or derivative
of energy, force, and stress w.r.t. model parameters. This information
can be accessed using the related :doc:`compute mliap <compute_mliap>` command.

The pair_style *mliap* command must be followed by two keywords
*model* and *descriptor* in either order. A single
@@ -131,6 +146,6 @@ See the :doc:`Build package <Build_package>` doc page for more info.
Related commands
""""""""""""""""

:doc:`pair_style snap  <pair_snap>`,
:doc:`pair_style snap  <pair_snap>`, :doc:`compute mliap <compute_mliap>`

**Default:** none
+199 −0
Original line number Diff line number Diff line
LAMMPS (15 Jun 2020)
# Demonstrate MLIAP quadratic compute

# initialize simulation

variable 	nsteps index 0
variable 	nrep equal 1
variable 	a equal 2.0
units		metal

# generate the box and atom positions using a BCC lattice

variable 	nx equal ${nrep}
variable 	nx equal 1
variable 	ny equal ${nrep}
variable 	ny equal 1
variable 	nz equal ${nrep}
variable 	nz equal 1

boundary	p p p

atom_modify	map hash
lattice         bcc $a
lattice         bcc 2
Lattice spacing in x,y,z = 2 2 2
region		box block 0 ${nx} 0 ${ny} 0 ${nz}
region		box block 0 1 0 ${ny} 0 ${nz}
region		box block 0 1 0 1 0 ${nz}
region		box block 0 1 0 1 0 1
create_box	2 box
Created orthogonal box = (0.0 0.0 0.0) to (2.0 2.0 2.0)
  1 by 1 by 1 MPI processor grid
create_atoms	2 box
Created 2 atoms
  create_atoms CPU = 0.000 seconds

mass 		* 180.88

displace_atoms 	all random 0.1 0.1 0.1 123456

# set up reference potential

variable 	zblcutinner equal 4
variable 	zblcutouter equal 4.8
variable 	zblz equal 73
pair_style 	zbl ${zblcutinner} ${zblcutouter}
pair_style 	zbl 4 ${zblcutouter}
pair_style 	zbl 4 4.8
pair_coeff 	* * ${zblz} ${zblz}
pair_coeff 	* * 73 ${zblz}
pair_coeff 	* * 73 73

# choose SNA parameters

variable 	twojmax equal 2
variable 	rcutfac equal 1.0
variable 	rfac0 equal 0.99363
variable 	rmin0 equal 0
variable 	radelem1 equal 2.3
variable 	radelem2 equal 2.0
variable	wj1 equal 1.0
variable	wj2 equal 0.96
variable	quadratic equal 1
variable	bzero equal 0
variable	switch equal 0
variable 	snap_options string "${rcutfac} ${rfac0} ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}"
1 ${rfac0} ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0

# set up per-atom computes

compute 	b all sna/atom ${snap_options}
compute 	b all sna/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0
compute 	vb all snav/atom ${snap_options}
compute 	vb all snav/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0
compute 	db all snad/atom ${snap_options}
compute 	db all snad/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0

# perform sums over atoms

group 		snapgroup1 type 1
0 atoms in group snapgroup1
group 		snapgroup2 type 2
2 atoms in group snapgroup2
compute         bsum1 snapgroup1 reduce sum c_b[*]
compute         bsum2 snapgroup2 reduce sum c_b[*]
# fix 		bsum1 all ave/time 1 1 1 c_bsum1 file bsum1.dat mode vector
# fix 		bsum2 all ave/time 1 1 1 c_bsum2 file bsum2.dat mode vector
compute		vbsum all reduce sum c_vb[*]
# fix 		vbsum all ave/time 1 1 1 c_vbsum file vbsum.dat mode vector
variable	db_2_100 equal c_db[2][100]

# set up compute snap generating global array

compute   	snap all mliap descriptor sna compute.mliap.descriptor model quadratic 2 21
SNAP keyword rcutfac 1.0 
SNAP keyword twojmax 2 
SNAP keyword nelems 2 
SNAP keyword elems A 
SNAP keyword radelems 2.3 
SNAP keyword welems 1.0 
SNAP keyword rfac0 0.99363 
SNAP keyword rmin0 0 
SNAP keyword bzeroflag 0 
SNAP keyword switchflag 0 
fix 		snap all ave/time 1 1 1 c_snap[*] file compute.quadratic.dat mode vector

thermo 		100

# test output:   1: total potential energy
#                2: xy component of stress tensor
#                3: Sum(0.5*(B_{222}^i)^2, all i of type 2)
#                4: xz component of Sum(Sum(r_j*(0.5*(dB_{222}^i)^2/dR[j]), all i of type 2), all j)
#                5: y component of -Sum(d(0.5*(B_{222}^i)^2/dR[2]), all i of type 2)
#
#                followed by 5 counterparts from compute snap

thermo_style	custom 		pe            pxy            c_bsum2[20]   c_vbsum[220]    v_db_2_100 		c_snap[1][43] c_snap[13][43] c_snap[1][42] c_snap[12][42] c_snap[6][42]
thermo_modify 	norm no

# dump 		mydump_db all custom 1000 dump_db id c_db[*]
# dump_modify 	mydump_db sort id

# Run MD

run             ${nsteps}
run             0
Neighbor list info ...
  update every 1 steps, delay 10 steps, check yes
  max neighbors/atom: 2000, page size: 100000
  master list distance cutoff = 6.8
  ghost atom cutoff = 6.8
  binsize = 3.4, bins = 1 1 1
  5 neighbor lists, perpetual/occasional/extra = 1 4 0
  (1) pair zbl, perpetual
      attributes: half, newton on
      pair build: half/bin/atomonly/newton
      stencil: half/bin/3d/newton
      bin: standard
  (2) compute sna/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (3) compute snav/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (4) compute snad/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (5) compute mliap, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
Per MPI rank memory allocation (min/avg/max) = 22.45 | 22.45 | 22.45 Mbytes
PotEng Pxy c_bsum2[20] c_vbsum[220] v_db_2_100 c_snap[1][43] c_snap[13][43] c_snap[1][42] c_snap[12][42] c_snap[6][42] 
   322.86952    1505558.1 4.2492771e+08     -4952473     28484035    322.86952    1505558.1 4.2492771e+08     -4952473     28484035 
Loop time of 1e-06 on 1 procs for 0 steps with 2 atoms

100.0% CPU use with 1 MPI tasks x no OpenMP threads

MPI task timing breakdown:
Section |  min time  |  avg time  |  max time  |%varavg| %total
---------------------------------------------------------------
Pair    | 0          | 0          | 0          |   0.0 |  0.00
Neigh   | 0          | 0          | 0          |   0.0 |  0.00
Comm    | 0          | 0          | 0          |   0.0 |  0.00
Output  | 0          | 0          | 0          |   0.0 |  0.00
Modify  | 0          | 0          | 0          |   0.0 |  0.00
Other   |            | 1e-06      |            |       |100.00

Nlocal:    2 ave 2 max 2 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Nghost:    853 ave 853 max 853 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Neighs:    330 ave 330 max 330 min
Histogram: 1 0 0 0 0 0 0 0 0 0
FullNghs:  660 ave 660 max 660 min
Histogram: 1 0 0 0 0 0 0 0 0 0

Total # of neighbors = 660
Ave neighs/atom = 330
Neighbor list builds = 0
Dangerous builds = 0
Total wall time: 0:00:00
+200 −0
Original line number Diff line number Diff line
LAMMPS (15 Jun 2020)
# Demonstrate MLIAP quadratic compute

# initialize simulation

variable 	nsteps index 0
variable 	nrep equal 1
variable 	a equal 2.0
units		metal

# generate the box and atom positions using a BCC lattice

variable 	nx equal ${nrep}
variable 	nx equal 1
variable 	ny equal ${nrep}
variable 	ny equal 1
variable 	nz equal ${nrep}
variable 	nz equal 1

boundary	p p p

atom_modify	map hash
lattice         bcc $a
lattice         bcc 2
Lattice spacing in x,y,z = 2 2 2
region		box block 0 ${nx} 0 ${ny} 0 ${nz}
region		box block 0 1 0 ${ny} 0 ${nz}
region		box block 0 1 0 1 0 ${nz}
region		box block 0 1 0 1 0 1
create_box	2 box
Created orthogonal box = (0.0 0.0 0.0) to (2.0 2.0 2.0)
  1 by 2 by 2 MPI processor grid
create_atoms	2 box
Created 2 atoms
  create_atoms CPU = 0.001 seconds

mass 		* 180.88

displace_atoms 	all random 0.1 0.1 0.1 123456

# set up reference potential

variable 	zblcutinner equal 4
variable 	zblcutouter equal 4.8
variable 	zblz equal 73
pair_style 	zbl ${zblcutinner} ${zblcutouter}
pair_style 	zbl 4 ${zblcutouter}
pair_style 	zbl 4 4.8
pair_coeff 	* * ${zblz} ${zblz}
pair_coeff 	* * 73 ${zblz}
pair_coeff 	* * 73 73

# choose SNA parameters

variable 	twojmax equal 2
variable 	rcutfac equal 1.0
variable 	rfac0 equal 0.99363
variable 	rmin0 equal 0
variable 	radelem1 equal 2.3
variable 	radelem2 equal 2.0
variable	wj1 equal 1.0
variable	wj2 equal 0.96
variable	quadratic equal 1
variable	bzero equal 0
variable	switch equal 0
variable 	snap_options string "${rcutfac} ${rfac0} ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}"
1 ${rfac0} ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 ${twojmax} ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 ${radelem1} ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 ${radelem2} ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 ${wj1} ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 ${wj2} rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 ${rmin0} quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag ${quadratic} bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag ${bzero} switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag ${switch}
1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0

# set up per-atom computes

compute 	b all sna/atom ${snap_options}
compute 	b all sna/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0
compute 	vb all snav/atom ${snap_options}
compute 	vb all snav/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0
compute 	db all snad/atom ${snap_options}
compute 	db all snad/atom 1 0.99363 2 2.3 2 1 0.96 rmin0 0 quadraticflag 1 bzeroflag 0 switchflag 0

# perform sums over atoms

group 		snapgroup1 type 1
0 atoms in group snapgroup1
group 		snapgroup2 type 2
2 atoms in group snapgroup2
compute         bsum1 snapgroup1 reduce sum c_b[*]
compute         bsum2 snapgroup2 reduce sum c_b[*]
# fix 		bsum1 all ave/time 1 1 1 c_bsum1 file bsum1.dat mode vector
# fix 		bsum2 all ave/time 1 1 1 c_bsum2 file bsum2.dat mode vector
compute		vbsum all reduce sum c_vb[*]
# fix 		vbsum all ave/time 1 1 1 c_vbsum file vbsum.dat mode vector
variable	db_2_100 equal c_db[2][100]

# set up compute snap generating global array

compute   	snap all mliap descriptor sna compute.mliap.descriptor model quadratic 2 21
SNAP keyword rcutfac 1.0 
SNAP keyword twojmax 2 
SNAP keyword nelems 2 
SNAP keyword elems A 
SNAP keyword radelems 2.3 
SNAP keyword welems 1.0 
SNAP keyword rfac0 0.99363 
SNAP keyword rmin0 0 
SNAP keyword bzeroflag 0 
SNAP keyword switchflag 0 
fix 		snap all ave/time 1 1 1 c_snap[*] file compute.quadratic.dat mode vector

thermo 		100

# test output:   1: total potential energy
#                2: xy component of stress tensor
#                3: Sum(0.5*(B_{222}^i)^2, all i of type 2)
#                4: xz component of Sum(Sum(r_j*(0.5*(dB_{222}^i)^2/dR[j]), all i of type 2), all j)
#                5: y component of -Sum(d(0.5*(B_{222}^i)^2/dR[2]), all i of type 2)
#
#                followed by 5 counterparts from compute snap

thermo_style	custom 		pe            pxy            c_bsum2[20]   c_vbsum[220]    v_db_2_100 		c_snap[1][43] c_snap[13][43] c_snap[1][42] c_snap[12][42] c_snap[6][42]
thermo_modify 	norm no

# dump 		mydump_db all custom 1000 dump_db id c_db[*]
# dump_modify 	mydump_db sort id

# Run MD

run             ${nsteps}
run             0
Neighbor list info ...
  update every 1 steps, delay 10 steps, check yes
  max neighbors/atom: 2000, page size: 100000
  master list distance cutoff = 6.8
  ghost atom cutoff = 6.8
  binsize = 3.4, bins = 1 1 1
  5 neighbor lists, perpetual/occasional/extra = 1 4 0
  (1) pair zbl, perpetual
      attributes: half, newton on
      pair build: half/bin/atomonly/newton
      stencil: half/bin/3d/newton
      bin: standard
  (2) compute sna/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (3) compute snav/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (4) compute snad/atom, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
  (5) compute mliap, occasional
      attributes: full, newton on
      pair build: full/bin/atomonly
      stencil: full/bin/3d
      bin: standard
WARNING: Proc sub-domain size < neighbor skin, could lead to lost atoms (../domain.cpp:964)
Per MPI rank memory allocation (min/avg/max) = 22.18 | 22.18 | 22.18 Mbytes
PotEng Pxy c_bsum2[20] c_vbsum[220] v_db_2_100 c_snap[1][43] c_snap[13][43] c_snap[1][42] c_snap[12][42] c_snap[6][42] 
   322.86952    1505558.1 4.2492771e+08     -4952473     28484035    322.86952    1505558.1 4.2492771e+08     -4952473     28484035 
Loop time of 2e-06 on 4 procs for 0 steps with 2 atoms

100.0% 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          | 0          | 0          |   0.0 |  0.00
Neigh   | 0          | 0          | 0          |   0.0 |  0.00
Comm    | 0          | 0          | 0          |   0.0 |  0.00
Output  | 0          | 0          | 0          |   0.0 |  0.00
Modify  | 0          | 0          | 0          |   0.0 |  0.00
Other   |            | 2e-06      |            |       |100.00

Nlocal:    0.5 ave 1 max 0 min
Histogram: 2 0 0 0 0 0 0 0 0 2
Nghost:    734.5 ave 735 max 734 min
Histogram: 2 0 0 0 0 0 0 0 0 2
Neighs:    82.5 ave 177 max 0 min
Histogram: 2 0 0 0 0 0 0 0 1 1
FullNghs:  165 ave 330 max 0 min
Histogram: 2 0 0 0 0 0 0 0 0 2

Total # of neighbors = 660
Ave neighs/atom = 330
Neighbor list builds = 0
Dangerous builds = 0
Total wall time: 0:00:00
Loading