2006-09-28 03:50:55 +08:00
|
|
|
LAMMPS example problems
|
|
|
|
|
2012-08-12 03:15:14 +08:00
|
|
|
There are 3 flavors of sub-directories in this file, each with sample
|
|
|
|
problems you can run with LAMMPS.
|
|
|
|
|
|
|
|
lower-case directories = simple test problems for LAMMPS and its packages
|
|
|
|
upper-case directories = more complex problems
|
|
|
|
USER directory with its own sub-directories = tests for USER packages
|
|
|
|
|
|
|
|
Each is discussed below.
|
|
|
|
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
Lower-case directories
|
|
|
|
|
2006-09-28 03:50:55 +08:00
|
|
|
Each of these sub-directories contains a sample problem you can run
|
|
|
|
with LAMMPS. Most are 2d models so that they run quickly, requiring a
|
|
|
|
few seconds to a few minutes to run on a desktop machine. Each
|
|
|
|
problem has an input script (in.*) and produces a log file (log.*) and
|
2012-01-13 03:12:10 +08:00
|
|
|
(optionally) a dump file (dump.*) or image files (image.*) when it
|
|
|
|
runs. Some use a data file (data.*) of initial coordinates as
|
2012-08-12 03:15:14 +08:00
|
|
|
additional input. Some require that you install one or more optional
|
|
|
|
LAMMPS packages.
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
A few sample log file outputs on different machines and different
|
|
|
|
numbers of processors are included in the directories to compare your
|
|
|
|
answers to. E.g. a log file like log.crack.date.foo.P means it ran on
|
|
|
|
P processors of machine "foo" with the dated version of LAMMPS. Note
|
|
|
|
that these problems should get statistically similar answers when run
|
|
|
|
on different machines or different numbers of processors, but not
|
|
|
|
identical answers to those in the log of dump files included here.
|
|
|
|
See the Errors section of the LAMMPS documentation for more
|
|
|
|
discussion.
|
|
|
|
|
2010-09-07 01:21:59 +08:00
|
|
|
These are the sample problems and their output in the various
|
|
|
|
sub-directories:
|
2006-09-28 03:50:55 +08:00
|
|
|
|
2007-06-23 07:41:35 +08:00
|
|
|
colloid: big colloid particles in a small particle solvent, 2d system
|
2010-08-20 08:22:52 +08:00
|
|
|
comb: models using the COMB potential
|
2006-09-28 03:50:55 +08:00
|
|
|
crack: crack propagation in a 2d solid
|
2007-06-23 07:41:35 +08:00
|
|
|
dipole: point dipolar particles, 2d system
|
2011-10-11 00:33:07 +08:00
|
|
|
dreiding: methanol via Dreiding FF
|
2010-09-01 08:39:17 +08:00
|
|
|
eim: NaCl using the EIM potential
|
2007-06-23 07:41:35 +08:00
|
|
|
ellipse: ellipsoidal particles in spherical solvent, 2d system
|
2008-03-01 09:13:35 +08:00
|
|
|
flow: Couette and Poiseuille flow in a 2d channel
|
2006-09-28 03:50:55 +08:00
|
|
|
friction: frictional contact of spherical asperities between 2d surfaces
|
2011-06-01 08:03:29 +08:00
|
|
|
gpu: use of the GPU package for GPU acceleration
|
2011-09-14 06:13:14 +08:00
|
|
|
hugoniostat: Hugoniostat shock dynamics
|
2006-09-28 03:50:55 +08:00
|
|
|
indent: spherical indenter into a 2d solid
|
2012-01-31 06:53:22 +08:00
|
|
|
kim: use of potentials in Knowledge Base for Interatomic Models (KIM)
|
2007-02-13 01:24:44 +08:00
|
|
|
meam: MEAM test for SiC and shear (same as shear examples)
|
2006-09-28 03:50:55 +08:00
|
|
|
melt: rapid melt of 3d LJ system
|
|
|
|
micelle: self-assembly of small lipid-like molecules into 2d bilayers
|
|
|
|
min: energy minimization of 2d LJ melt
|
2010-09-07 00:47:23 +08:00
|
|
|
msst: MSST shock dynamics
|
2010-10-01 05:24:52 +08:00
|
|
|
neb: nudged elastic band (NEB) calculation for barrier finding
|
2007-06-23 07:41:35 +08:00
|
|
|
nemd: non-equilibrium MD of 2d sheared system
|
2006-09-28 03:50:55 +08:00
|
|
|
obstacle: flow around two voids in a 2d channel
|
|
|
|
peptide: dynamics of a small solvated peptide chain (5-mer)
|
2008-07-25 22:47:38 +08:00
|
|
|
peri: Peridynamic model of cylinder impacted by indenter
|
2006-09-28 03:50:55 +08:00
|
|
|
pour: pouring of granular particles into a 3d box, then chute flow
|
2011-01-05 23:40:41 +08:00
|
|
|
prd: parallel replica dynamics of vacancy diffusion in bulk Si
|
2009-02-13 05:03:10 +08:00
|
|
|
reax: RDX and TATB models using the ReaxFF
|
2006-09-28 03:50:55 +08:00
|
|
|
rigid: rigid bodies modeled as independent or coupled
|
|
|
|
shear: sideways shear applied to 2d solid, with and without a void
|
2010-10-02 00:17:41 +08:00
|
|
|
srd: stochastic rotation dynamics (SRD) particles as solvent
|
2011-01-05 23:40:41 +08:00
|
|
|
tad: temperature-accelerated dynamics of vacancy diffusion in bulk Si
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
Here is how you might run and visualize one of the sample problems:
|
|
|
|
|
|
|
|
cd indent
|
|
|
|
cp ../../src/lmp_linux . # copy LAMMPS executable to this dir
|
|
|
|
lmp_linux < in.indent # run the problem
|
|
|
|
|
2012-01-13 03:12:10 +08:00
|
|
|
If you uncomment the dump atom (or dump custom or dump cfg) line(s) in
|
|
|
|
the input script a dump.* file will be produced by the run. These can
|
|
|
|
be animated using tools like VMD or AtomEye, or the xmovie tool
|
|
|
|
described in the "Additional Tools" section of the LAMMPS
|
|
|
|
documentation, e.g.
|
|
|
|
|
|
|
|
% ../../tools/xmovie/xmovie -scale dump.indent
|
|
|
|
|
|
|
|
If you uncomment the dump image line(s) in the input script a series
|
|
|
|
of JPG images will be produced by the run. These can be viewed
|
|
|
|
individually or turned into a movie or animated by tools like
|
|
|
|
ImageMagick or QuickTime or various Windows-based tools. See the dump
|
|
|
|
image doc page for more details. E.g. this Imagemagick command would
|
|
|
|
create a GIF file suitable for viewing in a browser.
|
2006-09-28 03:50:55 +08:00
|
|
|
|
2012-01-13 03:12:10 +08:00
|
|
|
% convert -loop 1 *.jpg foo.gif
|
2010-09-07 01:21:59 +08:00
|
|
|
|
|
|
|
------------------------------------------
|
|
|
|
|
2012-08-12 03:15:14 +08:00
|
|
|
Upper-case directories
|
|
|
|
|
|
|
|
The COUPLE directory has examples of how to use LAMMPS as a library,
|
|
|
|
either by itself or in tandem with another code or library. See the
|
|
|
|
COUPLE/README file to get started.
|
|
|
|
|
|
|
|
The ELASTIC directory has an example script for computing elastic
|
|
|
|
constants, using a zero temperature Si example. See the
|
|
|
|
ELASTIC/in.elastic file for more info.
|
|
|
|
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
USER directory
|
2010-09-07 01:21:59 +08:00
|
|
|
|
2012-08-12 03:15:14 +08:00
|
|
|
The USER directory contains subdirectories of user-provided example
|
|
|
|
scripts for ser packages. See the README files in those directories
|
|
|
|
for more info. See the doc/Section_start.html file for more info
|
|
|
|
about installing and building user packages.
|
2010-09-07 01:21:59 +08:00
|
|
|
|