Debian Codegraph @

doc/displace_atoms.html

raw
1
2
3 <!DOCTYPE html>
4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <head>
7 <meta charset="utf-8">
8
9 <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
11 <title>displace_atoms command &mdash; LIGGGHTS v3.X documentation</title>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
30
31
32
33
34
35 <link rel="top" title="LIGGGHTS v3.X documentation" href="index.html"/>
36
37
38 <script src="_static/js/modernizr.min.js"></script>
39
40 </head>
41
42 <body class="wy-body-for-nav" role="document">
43
44
45 <div class="wy-grid-for-nav">
46
47
48 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
49 <div class="wy-side-scroll">
50 <div class="wy-side-nav-search">
51
52
53
54 <a href="Manual.html" class="icon icon-home"> LIGGGHTS
55
56
57
58 </a>
59
60
61
62
63 <div class="version">
64 v3.X
65 </div>
66
67
68
69
70 <div role="search">
71 <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
72 <input type="text" name="q" placeholder="Search docs" />
73 <input type="hidden" name="check_keywords" value="yes" />
74 <input type="hidden" name="area" value="default" />
75 </form>
76 </div>
77
78
79 </div>
80
81 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
82
83
84
85
86
87
88 <ul>
89 <li class="toctree-l1"><a class="reference internal" href="Section_intro.html">1. Introduction</a></li>
90 <li class="toctree-l1"><a class="reference internal" href="Section_start.html">2. Getting Started</a></li>
91 <li class="toctree-l1"><a class="reference internal" href="Section_input_script.html">3. Input Script</a></li>
92 <li class="toctree-l1"><a class="reference internal" href="Section_commands.html">4. Commands</a></li>
93 <li class="toctree-l1"><a class="reference internal" href="Section_gran_models.html">5. Contact models</a></li>
94 <li class="toctree-l1"><a class="reference internal" href="Section_mesh_modules.html">6. Mesh modules</a></li>
95 <li class="toctree-l1"><a class="reference internal" href="Section_packages.html">7. Packages</a></li>
96 <li class="toctree-l1"><a class="reference internal" href="Section_howto.html">8. How-to discussions</a></li>
97 <li class="toctree-l1"><a class="reference internal" href="Section_modify.html">9. Modifying &amp; extending LIGGGHTS(R)-PUBLIC</a></li>
98 <li class="toctree-l1"><a class="reference internal" href="Section_python.html">10. Python interface to LIGGGHTS(R)-PUBLIC</a></li>
99 <li class="toctree-l1"><a class="reference internal" href="Section_errors.html">11. Errors</a></li>
100 </ul>
101
102
103
104 </div>
105 </div>
106 </nav>
107
108 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
109
110
111 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
112
113 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
114 <a href="Manual.html">LIGGGHTS</a>
115
116 </nav>
117
118
119
120 <div class="wy-nav-content">
121 <div class="rst-content">
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138 <div role="navigation" aria-label="breadcrumbs navigation">
139
140 <ul class="wy-breadcrumbs">
141
142 <li><a href="Manual.html">Docs</a> &raquo;</li>
143
144 <li>displace_atoms command</li>
145
146
147 <li class="wy-breadcrumbs-aside">
148
149
150 <a href="_sources/displace_atoms.txt" rel="nofollow"> View page source</a>
151
152 <a href="http://www.cfdem.com"> Website</a>
153
154 <a href="Section_commands.html#comm" rel="nofollow"> Commands</a>
155
156
157
158 </li>
159
160 </ul>
161
162
163 <hr/>
164
165 </div>
166 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
167 <div itemprop="articleBody">
168
169 <div class="section" id="displace-atoms-command">
170 <span id="index-0"></span><h1>displace_atoms command<a class="headerlink" href="#displace-atoms-command" title="Permalink to this headline">¶</a></h1>
171 <div class="section" id="syntax">
172 <h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
173 <div class="highlight-python"><div class="highlight"><pre>displace_atoms group-ID style args keyword value ...
174 </pre></div>
175 </div>
176 <ul class="simple">
177 <li>group-ID = ID of group of atoms to displace</li>
178 <li>style = <em>move</em> or <em>ramp</em> or <em>random</em> or <em>rotate</em></li>
179 </ul>
180 <pre class="literal-block">
181 <em>move</em> args = delx dely delz
182 delx,dely,delz = distance to displace in each dimension (distance units)
183 <em>ramp</em> args = ddim dlo dhi dim clo chi
184 ddim = <em>x</em> or <em>y</em> or <em>z</em>
185 dlo,dhi = displacement distance between dlo and dhi (distance units)
186 dim = <em>x</em> or <em>y</em> or <em>z</em>
187 clo,chi = lower and upper bound of domain to displace (distance units)
188 <em>random</em> args = dx dy dz seed
189 dx,dy,dz = random displacement magnitude in each dimension (distance units)
190 seed = random # seed (prime number greater 10000)
191 <em>rotate</em> args = Px Py Pz Rx Ry Rz theta
192 Px,Py,Pz = origin point of axis of rotation (distance units)
193 Rx,Ry,Rz = axis of rotation vector
194 theta = angle of rotation (degrees)
195 </pre>
196 <ul class="simple">
197 <li>zero or more keyword/value pairs may be appended</li>
198 </ul>
199 <pre class="literal-block">
200 keyword = <em>units</em>
201 value = <em>box</em> or <em>lattice</em>
202 </pre>
203 </div>
204 <div class="section" id="examples">
205 <h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
206 <div class="highlight-python"><div class="highlight"><pre>displace_atoms top move 0 -5 0 units box
207 displace_atoms flow ramp x 0.0 5.0 y 2.0 20.5
208 </pre></div>
209 </div>
210 </div>
211 <div class="section" id="description">
212 <h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
213 <p>Displace a group of atoms. This can be used to move atoms a large
214 distance before beginning a simulation or to randomize atoms initially
215 on a lattice. For example, in a shear simulation, an initial strain
216 can be imposed on the system. Or two groups of atoms can be brought
217 into closer proximity.</p>
218 <p>The <em>move</em> style displaces the group of atoms by the specified 3d
219 distance.</p>
220 <p>The <em>ramp</em> style displaces atoms a variable amount in one dimension
221 depending on the atom&#8217;s coordinate in a (possibly) different
222 dimension. For example, the second example command displaces atoms in
223 the x-direction an amount between 0.0 and 5.0 distance units. Each
224 atom&#8217;s displacement depends on the fractional distance its y
225 coordinate is between 2.0 and 20.5. Atoms with y-coordinates outside
226 those bounds will be moved the minimum (0.0) or maximum (5.0) amount.</p>
227 <p>The <em>random</em> style independently moves each atom in the group by a
228 random displacement, uniformly sampled from a value between -dx and
229 +dx in the x dimension, and similarly for y and z. Random numbers are
230 used in such a way that the displacement of a particular atom is the
231 same, regardless of how many processors are being used.</p>
232 <p>The <em>rotate</em> style rotates each atom in the group by the angle <em>theta</em>
233 around a rotation axis <em>R</em> = (Rx,Ry,Rz) that goes thru a point <em>P</em> =
234 (Px,Py,Pz). The direction of rotation for the atoms around the
235 rotation axis is consistent with the right-hand rule: if your
236 right-hand&#8217;s thumb points along <em>R</em>, then your fingers wrap around the
237 axis in the direction of positive theta.</p>
238 <p>Distance units for displacements and the origin point of the <em>rotate</em>
239 style are determined by the setting of <em>box</em> or <em>lattice</em> for the
240 <em>units</em> keyword. <em>Box</em> means distance units as defined by the
241 <a class="reference internal" href="units.html"><em>units</em></a> command - e.g. Angstroms for <em>real</em> units.
242 <em>Lattice</em> means distance units are in lattice spacings. The
243 <a class="reference internal" href="lattice.html"><em>lattice</em></a> command must have been previously used to
244 define the lattice spacing.</p>
245 <hr class="docutils" />
246 <div class="admonition warning">
247 <p class="first admonition-title">Warning</p>
248 <p class="last">Care should be taken not to move atoms on top of other
249 atoms. After the move, atoms are remapped into the periodic
250 simulation box if needed, and any shrink-wrap boundary conditions (see
251 the <a class="reference internal" href="boundary.html"><em>boundary</em></a> command) are enforced which may change
252 the box size. Other than this effect, this command does not change
253 the size or shape of the simulation box. See the
254 <a class="reference internal" href="change_box.html"><em>change_box</em></a> command if that effect is desired.</p>
255 </div>
256 <div class="admonition warning">
257 <p class="first admonition-title">Warning</p>
258 <p class="last">Atoms can be moved arbitrarily long distances by this
259 command. If the simulation box is non-periodic and shrink-wrapped
260 (see the <a class="reference internal" href="boundary.html"><em>boundary</em></a> command), this can change its size
261 or shape. This is not a problem, except that the mapping of
262 processors to the simulation box is not changed by this command from
263 its initial 3d configuration; see the <a class="reference internal" href="processors.html"><em>processors</em></a>
264 command. Thus, if the box size/shape changes dramatically, the
265 mapping of processors to the simulation box may not end up as optimal
266 as the initial mapping attempted to be.</p>
267 </div>
268 </div>
269 <hr class="docutils" />
270 <div class="section" id="restrictions">
271 <h2>Restrictions<a class="headerlink" href="#restrictions" title="Permalink to this headline">¶</a></h2>
272 <p>You cannot rotate around any rotation vector except the z-axis for a
273 2d simulation.</p>
274 </div>
275 <div class="section" id="related-commands">
276 <h2>Related commands<a class="headerlink" href="#related-commands" title="Permalink to this headline">¶</a></h2>
277 <p><a class="reference internal" href="lattice.html"><em>lattice</em></a>, <a class="reference internal" href="change_box.html"><em>change_box</em></a>,
278 <a class="reference internal" href="fix_move.html"><em>fix_move</em></a></p>
279 </div>
280 <div class="section" id="default">
281 <h2>Default<a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h2>
282 <p>The option defaults are units = lattice.</p>
283 </div>
284 </div>
285
286
287 </div>
288 <div class="articleComments">
289
290 </div>
291 </div>
292 <footer>
293
294
295 <hr/>
296
297 <div role="contentinfo">
298 <p>
299 &copy; Copyright 2016, DCS Computing GmbH, JKU Linz and Sandia Corporation.
300
301 </p>
302 </div>
303 Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
304
305 </footer>
306
307 </div>
308 </div>
309
310 </section>
311
312 </div>
313
314
315
316
317
318 <script type="text/javascript">
319 var DOCUMENTATION_OPTIONS = {
320 URL_ROOT:'./',
321 VERSION:'v3.X',
322 LANGUAGE:'None',
323 COLLAPSE_INDEX:false,
324 FILE_SUFFIX:'.html',
325 HAS_SOURCE: true,
326 SOURCELINK_SUFFIX: ''
327 };
328 </script>
329 <script type="text/javascript" src="_static/jquery.js"></script>
330 <script type="text/javascript" src="_static/underscore.js"></script>
331 <script type="text/javascript" src="_static/doctools.js"></script>
332
333
334
335
336
337 <script type="text/javascript" src="_static/js/theme.js"></script>
338
339
340
341
342 <script type="text/javascript">
343 jQuery(function () {
344 SphinxRtdTheme.StickyNav.enable();
345 });
346 </script>
347
348
349 </body>
350 </html>