File: boundary.html

package info (click to toggle)
lammps 0~20140523.gite5e877d-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 193,012 kB
  • ctags: 48,147
  • sloc: cpp: 458,874; python: 21,769; fortran: 16,023; ansic: 12,503; perl: 3,687; sh: 3,221; makefile: 1,366; f90: 1,177; xml: 788; objc: 238; lisp: 169; tcl: 61; csh: 16; awk: 14
file content (96 lines) | stat: -rw-r--r-- 3,835 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<HTML>
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A> 
</CENTER>






<HR>

<H3>boundary command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>boundary x y z 
</PRE>
<UL><LI>x,y,z = <I>p</I> or <I>s</I> or <I>f</I> or <I>m</I>, one or two letters 

<PRE>  <I>p</I> is periodic
  <I>f</I> is non-periodic and fixed
  <I>s</I> is non-periodic and shrink-wrapped
  <I>m</I> is non-periodic and shrink-wrapped with a minimum value 
</PRE>

</UL>
<P><B>Examples:</B>
</P>
<PRE>boundary p p f
boundary p fs p
boundary s f fm 
</PRE>
<P><B>Description:</B>
</P>
<P>Set the style of boundaries for the global simulation box in each
dimension.  A single letter assigns the same style to both the lower
and upper face of the box.  Two letters assigns the first style to the
lower face and the second style to the upper face.  The initial size
of the simulation box is set by the <A HREF = "read_data.html">read_data</A>,
<A HREF = "read_restart.html">read_restart</A>, or <A HREF = "create_box.html">create_box</A>
commands.
</P>
<P>The style <I>p</I> means the box is periodic, so that particles interact
across the boundary, and they can exit one end of the box and re-enter
the other end.  A periodic dimension can change in size due to
constant pressure boundary conditions or box deformation (see the <A HREF = "fix_nh.html">fix
npt</A> and <A HREF = "fix_deform.html">fix deform</A> commands).  The <I>p</I>
style must be applied to both faces of a dimension.
</P>
<P>The styles <I>f</I>, <I>s</I>, and <I>m</I> mean the box is non-periodic, so that
particles do not interact across the boundary and do not move from one
side of the box to the other.  For style <I>f</I>, the position of the face
is fixed.  If an atom moves outside the face it may be lost.  For
style <I>s</I>, the position of the face is set so as to encompass the
atoms in that dimension (shrink-wrapping), no matter how far they
move.  For style <I>m</I>, shrink-wrapping occurs, but is bounded by the
value specified in the data or restart file or set by the
<A HREF = "create_box.html">create_box</A> command.  For example, if the upper z
face has a value of 50.0 in the data file, the face will always be
positioned at 50.0 or above, even if the maximum z-extent of all the
atoms becomes less than 50.0.
</P>
<P>For triclinic (non-orthogonal) simulation boxes, if the 2nd dimension
of a tilt factor (e.g. y for xy) is periodic, then the periodicity is
enforced with the tilt factor offset.  If the 1st dimension is
shrink-wrapped, then the shrink wrapping is applied to the tilted box
face, to encompass the atoms.  E.g. for a positive xy tilt, the xlo
and xhi faces of the box are planes tilting in the +y direction as y
increases.  These tilted planes are shrink-wrapped around the atoms to
determine the x extent of the box.
</P>
<P>See <A HREF = "Section_howto.html#howto_12">Section_howto 12</A> of the doc pages
for a geometric description of triclinic boxes, as defined by LAMMPS,
and how to transform these parameters to and from other commonly used
triclinic representations.
</P>
<P><B>Restrictions:</B>
</P>
<P>This command cannot be used after the simulation box is defined by a
<A HREF = "read_data.html">read_data</A> or <A HREF = "create_box.html">create_box</A> command or
<A HREF = "read_restart.html">read_restart</A> command.  See the
<A HREF = "change_box.html">change_box</A> command for how to change the simulation
box boundaries after it has been defined.
</P>
<P>For 2d simulations, the z dimension must be periodic.
</P>
<P><B>Related commands:</B>
</P>
<P>See the <A HREF = "thermo_modify.html">thermo_modify</A> command for a discussion
of lost atoms.
</P>
<P><B>Default:</B>
</P>
<PRE>boundary p p p 
</PRE>
</HTML>