git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@16053 f3b2605a-c512-4ea7-a41b...
[lammps.git] / doc / src / box.txt
bloba6207ae9937e569277a9d5a9b001493297f991dc
1 "LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
3 :link(lws,http://lammps.sandia.gov)
4 :link(ld,Manual.html)
5 :link(lc,Section_commands.html#comm)
7 :line
9 box command :h3
11 [Syntax:]
13 box keyword value ... :pre
15 one or more keyword/value pairs may be appended :ulb,l
16 keyword = {tilt} :l
17   {tilt} value = {small} or {large} :pre
18 :ule
20 [Examples:]
22 box tilt large
23 box tilt small :pre
25 [Description:]
27 Set attributes of the simulation box.
29 For triclinic (non-orthogonal) simulation boxes, the {tilt} keyword
30 allows simulation domains to be created with arbitrary tilt factors,
31 e.g. via the "create_box"_create_box.html or
32 "read_data"_read_data.html commands.  Tilt factors determine how
33 skewed the triclinic box is; see "this
34 section"_Section_howto.html#howto_12 of the manual for a discussion of
35 triclinic boxes in LAMMPS.
37 LAMMPS normally requires that no tilt factor can skew the box more
38 than half the distance of the parallel box length, which is the 1st
39 dimension in the tilt factor (x for xz).  If {tilt} is set to
40 {small}, which is the default, then an error will be
41 generated if a box is created which exceeds this limit.  If {tilt}
42 is set to {large}, then no limit is enforced.  You can create
43 a box with any tilt factors you wish.
45 Note that if a simulation box has a large tilt factor, LAMMPS will run
46 less efficiently, due to the large volume of communication needed to
47 acquire ghost atoms around a processor's irregular-shaped sub-domain.
48 For extreme values of tilt, LAMMPS may also lose atoms and generate an
49 error.
51 [Restrictions:]
53 This command cannot be used after the simulation box is defined by a
54 "read_data"_read_data.html or "create_box"_create_box.html command or
55 "read_restart"_read_restart.html command.
57 [Related commands:] none
59 [Default:]
61 The default value is tilt = small.