ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />
“LAMMPS has potentials for soft materials (biomolecules, polymers) and solid-state materials (metals,<br />
semiconductors) and coarse-grained or mesoscopic systems. It can be used to model atoms or,<br />
more generically, as a parallel particle simulator at the atomic, meso, or continuum scale.”<br />
Environment variables<br />
The environment variable LAMMPS_COMMAND should contain the path to the lammps binary, or more generally,<br />
a command line possibly also including an MPI-launcher command. For example (in a Bourne-shell compatible<br />
environment):<br />
$ export LAMMPS_COMMAND=/path/to/lmp_binary<br />
or possibly something similar to<br />
$ export LAMMPS_COMMAND="/path/to/mpirun --np 4 lmp_binary"<br />
LAMMPS Calculator<br />
The LAMMPS calculator first appeared in <strong>ASE</strong> version 3.5.0. At the time of the release of <strong>ASE</strong> 3.5.0, the<br />
LAMMPS calculator is still in a fairly early stage of development (if you are missing some feature, consider<br />
checking out the source code development tree or some more recent version of <strong>ASE</strong>).<br />
class lammps.LAMMPS(..., parameters={}, files=[], ...)<br />
Below follows a list with a selection of parameters<br />
keyword<br />
type default<br />
value<br />
description<br />
files list[] List of files needed by LAMMPS. Typically a list of potential files.<br />
parameters dict{} Dictionary with key-value pairs corresponding to commands and arguments.<br />
Command-argument pairs provided here will be used for overriding the the<br />
calculator defaults.<br />
Example<br />
A simple example.<br />
from ase import Atoms, Atom<br />
from ase.calculators.lammps import LAMMPS<br />
a = [6.5, 6.5, 7.7]<br />
d = 2.3608<br />
NaCl = Atoms([Atom(’Na’, [0, 0, 0]),<br />
Atom(’Cl’, [0, 0, d])],<br />
cell=a, pbc=True)<br />
calc = LAMMPS()<br />
NaCl.set_calculator(calc)<br />
print NaCl.get_stress()<br />
Molecular Modelling Toolkit<br />
class mmtk.MMTK<br />
7.14. Calculators 127