~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to doc/change_box.html

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
which may change simulation box boundaries, and atoms are migrated to
102
102
new owning processors.
103
103
</P>
 
104
<P>IMPORTANT_NOTE: This means that you cannot use the change_box command
 
105
to enlarge a shrink-wrapped box, e.g. to make room to insert more
 
106
atoms via the <A HREF = "create_atoms.html">create_atoms</A> command, because the
 
107
simulation box will be re-shrink-wrapped before the change_box command
 
108
completes.  Instead you could do something like this, assuming the
 
109
simulation box is non-periodic and atoms extend from 0 to 20 in all
 
110
dimensions:
 
111
</P>
 
112
<PRE>change_box all x final -10 20
 
113
create_atoms 1 single -5 5 5   # this will fail to insert an atom 
 
114
</PRE>
 
115
<PRE>change_box all x final -10 20 boundary f s s
 
116
create_atoms 1 single -5 5 5
 
117
change_box boundary s s s      # this will work 
 
118
</PRE>
104
119
<P>IMPORTANT NOTE: Unlike the earlier "displace_box" version of this
105
120
command, atom remapping is NOT performed by default.  This command
106
121
allows remapping to be done in a more general way, exactly when you