xnn.ffnn.models.amoeba_lammps#

Inputs for the AMOEBA package of LAMMPS (pair_style amoeba and hippo) from an AMOEBA or HIPPO model.

LAMMPS reads Tinker’s parameter and coordinate formats through its tools/tinker/tinker2lmp.py converter, which writes the LAMMPS data file. write_lammps_amoeba_input() writes what the converter and LAMMPS read: the model’s current parameters as a Tinker parameter file in the form LAMMPS takes, the coordinates, a key file with the model’s cutoffs, Ewald coefficients and meshes, and the LAMMPS input script, which names the converter command in its header.

The LAMMPS package has no charge flux and no exchange polarization: a library with either is refused unless the call names it in drop, which leaves it out with a warning (LAMMPS then evaluates another model). Its HIPPO repulsion takes the size parameter K / 8 of the one of Tinker 8 and the 2021 paper (the Slater normalisation folded into K). It also rejects the argument-less d-equals-p keyword, which is not written. A library with the terms of ions (ionct, mbct, ionpair) has no LAMMPS counterpart and is refused. A library whose type and class names are integers keeps them as the numbers of the parameter file.

Functions

write_lammps_amoeba_input(model, pos[, ...])

Write the inputs of an AMOEBA or HIPPO model for LAMMPS's AMOEBA package into directory.