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
|
2014-01-08 05:47:52 +08:00
|
|
|
(optionally) a dump file (dump.*) or image files (image.*) or movie
|
|
|
|
(movie.mpg) when it runs. Some use a data file (data.*) of initial
|
|
|
|
coordinates as 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.
|
|
|
|
|
2014-01-08 05:47:52 +08:00
|
|
|
Most of the example input scripts have commented-out lines that
|
|
|
|
produce dump snapshots of the running simulation in any of 3 formats.
|
|
|
|
|
2013-02-01 04:15:10 +08:00
|
|
|
If you uncomment the dump command in the input script, a text dump
|
|
|
|
file will be produced, which can be animated by various visualization
|
2017-07-12 06:30:41 +08:00
|
|
|
programs (see http://lammps.sandia.gov/viz.html) such as Ovito, VMD,
|
|
|
|
or AtomEye.
|
2013-02-01 04:15:10 +08:00
|
|
|
|
|
|
|
If you uncomment the dump image command in the input script, and
|
|
|
|
assuming you have built LAMMPS with a JPG library, JPG snapshot images
|
|
|
|
will be produced when the simulation runs. They can be quickly
|
|
|
|
post-processed into a movie using commands described on the dump image
|
|
|
|
doc page.
|
|
|
|
|
2014-01-08 05:47:52 +08:00
|
|
|
If you uncomment the dump movie command in the input script, and
|
|
|
|
assuming you have built LAMMPS with the FFMPEG library, an MPG movie
|
|
|
|
will be produced when the simulation runs. The movie file can be
|
|
|
|
played using various viewers, such as mplayer or QuickTime.
|
|
|
|
|
2013-02-01 04:15:10 +08:00
|
|
|
Animations of many of these examples can be viewed on the Movies
|
|
|
|
section of the LAMMPS WWW Site.
|
|
|
|
|
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
|
|
|
|
2015-03-06 23:38:29 +08:00
|
|
|
accelerate: use of all the various accelerator packages
|
2017-07-15 06:25:16 +08:00
|
|
|
airebo: polyethylene with AIREBO potential
|
2018-07-10 04:16:46 +08:00
|
|
|
atm: Axilrod-Teller-Muto potential
|
2014-08-09 06:00:47 +08:00
|
|
|
balance: dynamic load balancing, 2d system
|
2013-02-01 03:32:24 +08:00
|
|
|
body: body particles, 2d system
|
2016-09-24 06:59:35 +08:00
|
|
|
cmap: CMAP 5-body contributions to CHARMM force field
|
2007-06-23 07:41:35 +08:00
|
|
|
colloid: big colloid particles in a small particle solvent, 2d system
|
2019-05-21 03:08:33 +08:00
|
|
|
comb: models using the COMB potential
|
2017-03-25 03:53:07 +08:00
|
|
|
coreshell: adiabatic core/shell model
|
2016-08-05 23:11:09 +08:00
|
|
|
controller: use of fix controller as a thermostat
|
2019-05-21 03:08:33 +08:00
|
|
|
crack: crack propagation in a 2d solid
|
2013-12-18 21:30:37 +08:00
|
|
|
deposit: deposition of atoms and molecules onto a 3d substrate
|
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
|
2019-05-21 03:08:33 +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
|
2017-03-25 03:53:07 +08:00
|
|
|
gcmc: Grand Canonical Monte Carlo (GCMC) via the fix gcmc command
|
2019-10-09 08:02:21 +08:00
|
|
|
gjf: use of fix langevin Gronbech-Jensen/Farago option
|
2016-10-07 05:47:41 +08:00
|
|
|
granregion: use of fix wall/region/gran as boundary on granular particles
|
2011-09-14 06:13:14 +08:00
|
|
|
hugoniostat: Hugoniostat shock dynamics
|
2018-10-12 06:51:01 +08:00
|
|
|
hyper: global and local hyperdynamics of diffusion on Pt surface
|
2019-05-21 03:08:33 +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)
|
2017-09-20 06:27:25 +08:00
|
|
|
latte: use of LATTE density-functional tight-binding quantum code
|
2019-05-21 03:08:33 +08:00
|
|
|
meam: MEAM test for SiC and shear (same as shear examples)
|
|
|
|
melt: rapid melt of 3d LJ system
|
2018-07-24 05:58:33 +08:00
|
|
|
message: client/server coupling of 2 codes
|
2006-09-28 03:50:55 +08:00
|
|
|
micelle: self-assembly of small lipid-like molecules into 2d bilayers
|
2019-05-21 03:08:33 +08:00
|
|
|
min: energy minimization of 2d LJ melt
|
2017-01-10 04:36:40 +08:00
|
|
|
mscg: parameterize a multi-scale coarse-graining (MSCG) model
|
2019-05-21 03:08:33 +08:00
|
|
|
msst: MSST shock dynamics
|
2014-09-05 22:49:19 +08:00
|
|
|
nb3b: use of nonbonded 3-body harmonic pair style
|
2019-05-21 03:08:33 +08:00
|
|
|
neb: nudged elastic band (NEB) calculation for barrier finding
|
|
|
|
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)
|
2019-05-21 03:08:33 +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
|
2015-03-18 00:06:01 +08:00
|
|
|
python: use of PYTHON package to invoke Python code from input script
|
2017-03-07 13:57:23 +08:00
|
|
|
qeq: use of QEQ package for charge equilibration
|
2019-09-20 01:53:54 +08:00
|
|
|
reax: RDX and TATB and several other models using ReaxFF
|
2020-01-11 05:09:38 +08:00
|
|
|
rerun: use of rerun and read_dump commands
|
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
|
2019-09-20 01:53:54 +08:00
|
|
|
snap: examples for using several bundled SNAP potentials
|
2010-10-02 00:17:41 +08:00
|
|
|
srd: stochastic rotation dynamics (SRD) particles as solvent
|
2019-09-14 05:59:25 +08:00
|
|
|
steinhardt: Steinhardt-Nelson Q_l and W_l parameters usng orientorder/atom
|
2015-02-20 07:57:47 +08:00
|
|
|
streitz: Streitz-Mintmire potential for Al2O3
|
2011-01-05 23:40:41 +08:00
|
|
|
tad: temperature-accelerated dynamics of vacancy diffusion in bulk Si
|
2019-05-21 03:08:33 +08:00
|
|
|
threebody: regression test input for a variety of manybody potentials
|
2015-10-16 01:39:43 +08:00
|
|
|
vashishta: models using the Vashishta potential
|
2017-03-25 03:53:07 +08:00
|
|
|
voronoi: Voronoi tesselation via compute voronoi/atom command
|
2006-09-28 03:50:55 +08:00
|
|
|
|
|
|
|
Here is how you might run and visualize one of the sample problems:
|
|
|
|
|
|
|
|
cd indent
|
2014-10-08 00:58:16 +08:00
|
|
|
cp ../../src/lmp_mpi . # copy LAMMPS executable to this dir
|
2017-07-19 01:24:32 +08:00
|
|
|
lmp_mpi -in in.indent # run the problem
|
2006-09-28 03:50:55 +08:00
|
|
|
|
2013-02-01 04:15:10 +08:00
|
|
|
Running the simulation produces the files {dump.indent} and
|
2019-05-21 03:08:33 +08:00
|
|
|
{log.lammps}.
|
2012-01-13 03:12:10 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-09-11 07:35:01 +08:00
|
|
|
The ASPHERE directory has examples of how to model aspherical
|
|
|
|
particles with or without solvent, in 3 styles LAMMPS provides.
|
|
|
|
Namely point ellipsoids, rigid bodies, and generalized aspherical
|
|
|
|
bodies built from line/triangle surface facets in 2d/3d. See the
|
|
|
|
ASPHERE/README file to get started.
|
|
|
|
|
2012-08-12 03:15:14 +08:00
|
|
|
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
|
2015-10-06 02:22:14 +08:00
|
|
|
constants at zero temperature, using an Si example. See the
|
2012-08-12 03:15:14 +08:00
|
|
|
ELASTIC/in.elastic file for more info.
|
|
|
|
|
2015-10-06 02:22:14 +08:00
|
|
|
The ELASTIC_T directory has an example script for computing elastic
|
|
|
|
constants at finite temperature, using an Si example. See the
|
|
|
|
ELASTIC_T/in.elastic file for more info.
|
|
|
|
|
2016-05-11 06:39:37 +08:00
|
|
|
The HEAT directory has example scripts for heat exchange algorithms
|
|
|
|
(e.g. used for establishing a thermal gradient), using two different
|
|
|
|
methods. See the HEAT/README file for more info.
|
|
|
|
|
2014-06-07 05:52:31 +08:00
|
|
|
The KAPPA directory has example scripts for computing the thermal
|
2016-06-08 02:00:54 +08:00
|
|
|
conductivity (kappa) of a LJ liquid using 5 different methods. See
|
2013-09-13 02:36:54 +08:00
|
|
|
the KAPPA/README file for more info.
|
|
|
|
|
2014-06-07 05:52:31 +08:00
|
|
|
The MC directory has an example script for using LAMMPS as an
|
|
|
|
energy-evaluation engine in a iterative Monte Carlo energy-relaxation
|
|
|
|
loop.
|
|
|
|
|
2020-01-10 08:41:02 +08:00
|
|
|
The TIP4P directory has an example for testing forces computed on a
|
|
|
|
GPU.
|
2020-01-10 08:38:50 +08:00
|
|
|
|
2019-10-09 08:02:21 +08:00
|
|
|
The UNITS directory contains examples of input scripts modeling the
|
|
|
|
same Lennard-Jones liquid model, written in 3 different unit systems:
|
|
|
|
lj, real, and metal. So that you can see how to scale/unscale input
|
|
|
|
and output values read/written by LAMMPS to verify you are performing
|
|
|
|
the same simulation in different unit systems.
|
|
|
|
|
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
|
|
|
|
2014-06-07 05:52:31 +08:00
|
|
|
The VISCOSITY directory has example scripts for computing the
|
|
|
|
viscosity of a LJ liquid using 4 different methods. See the
|
|
|
|
VISCOSITY/README file for more info.
|