Debian Codegraph @

doc/compute_nparticles_tracer_region.html

raw symbols SCIP
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>compute nparticles/tracer/region 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>compute nparticles/tracer/region command</li>
145
146
147 <li class="wy-breadcrumbs-aside">
148
149
150 <a href="_sources/compute_nparticles_tracer_region.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="compute-nparticles-tracer-region-command">
170 <span id="index-0"></span><h1>compute nparticles/tracer/region command<a class="headerlink" href="#compute-nparticles-tracer-region-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>compute ID group-ID nparticles/tracer/region general_keyword general_values
174 </pre></div>
175 </div>
176 <ul class="simple">
177 <li>ID, group-ID are documented in <a class="reference internal" href="compute.html"><em>compute</em></a> command</li>
178 <li>nparticles/tracer/region = style name of this compute command</li>
179 <li>general_keywords general_values are documented in <a class="reference external" href="compute.html&quot;">compute</a></li>
180 <li>region_count = obligatory keyword</li>
181 <li>region-ID = ID of region atoms must be in to be counted</li>
182 <li>tracer = obligatory keyword</li>
183 <li>tracer-ID = ID of a fix of type <a class="reference internal" href="fix_property_atom_tracer.html"><em>fix property/atom/tracer</em></a></li>
184 <li>zero or more keyword/value pairs may be appended to args</li>
185 <li>keyword = <em>periodic</em> or <em>reset_marker</em></li>
186 </ul>
187 <pre class="literal-block">
188 <em>periodic</em> value = dim image
189 dim = <em>x</em> or <em>y</em> or <em>z</em>
190 image = image that a particle has to be in to be counted (any integer number or <em>all</em>)
191 <em>reset_marker</em> value = <em>yes</em> or <em>no</em>
192 yes = un-mark particles after counting them
193 no = do not un-mark particles after counting them
194 </pre>
195 </div>
196 <div class="section" id="examples">
197 <h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
198 <div class="highlight-python"><div class="highlight"><pre>compute nparticles all nparticles/tracer/region region_count count tracer tr periodic z -1
199 </pre></div>
200 </div>
201 </div>
202 <div class="section" id="description">
203 <h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
204 <p>Define a computation that calculates the number and mass of marked and un-marked particles
205 that are in the region speficied via the <em>region_count</em> keyword. Particles have
206 to be in the group &#8220;group-ID&#8221; to be counted.</p>
207 <p>Note that only particles marked by a <a class="reference internal" href="fix_property_atom_tracer.html"><em>fix property/atom/tracer</em></a>
208 or <a class="reference internal" href="fix_property_atom_tracer_stream.html"><em>fix property/atom/tracer/stream</em></a>
209 command are counted - therefore, a valid ID of such a fix has to be
210 provided via the <em>tracer</em> keyword.</p>
211 <p>The <em>reset_marker</em> keyword controls if particles are un-marked (default)
212 after they have been counted once by this command.</p>
213 <div class="admonition warning">
214 <p class="first admonition-title">Warning</p>
215 <p class="last">If multiple compute nparticles/tracer/region
216 commands are operating on the same <a class="reference internal" href="fix_property_atom_tracer.html"><em>fix property/atom/tracer</em></a>
217 commands, and the first compute resets the marker value, the second
218 compute will not count them.</p>
219 </div>
220 <p>With the <em>periodic</em> keyword, you can restrict counting/unmarking to
221 particles which are in a specified image in a periodic simulation.
222 For example, using</p>
223 <div class="highlight-python"><div class="highlight"><pre>periodic z +2
224 </pre></div>
225 </div>
226 <p>means that particles are only counted if they are in z-image #2.
227 By default, all particles are counted/unmarked regardless in which
228 periodic image they are.</p>
229 <div class="admonition warning">
230 <p class="first admonition-title">Warning</p>
231 <p class="last">Currently, this command only supports one periodic
232 boundary restriction via the <em>periodic</em> keyword. If keyword <em>periodic</em>
233 is used multiple times, the last setting will be applied.</p>
234 </div>
235 </div>
236 <div class="section" id="output-info">
237 <h2>Output info<a class="headerlink" href="#output-info" title="Permalink to this headline">¶</a></h2>
238 <p>This this compute calculates a global vector containing the following information
239 (the number in brackets corresponds to the vector id):</p>
240 <ul class="simple">
241 <li><strong>(1)</strong> total number of (marked + un-marked) particles in region</li>
242 <li><strong>(2)</strong> number of marked particles in region</li>
243 <li><strong>(3)</strong> total mass of (marked + un-marked) particles in region</li>
244 <li><strong>(4)</strong> mass of marked particles in region</li>
245 </ul>
246 <p>See <span class="xref std std-ref">this section</span> for an overview of LIGGGHTS(R)-PUBLIC output
247 options.</p>
248 </div>
249 <div class="section" id="restrictions">
250 <h2>Restrictions<a class="headerlink" href="#restrictions" title="Permalink to this headline">¶</a></h2>
251 <p>Currently, only one periodic restriction via the <em>periodic</em> keyword
252 can be used.</p>
253 </div>
254 <div class="section" id="related-commands">
255 <h2>Related commands<a class="headerlink" href="#related-commands" title="Permalink to this headline">¶</a></h2>
256 <p><a class="reference internal" href="fix_property_atom_tracer.html"><em>fix property/atom/tracer</em></a></p>
257 </div>
258 <div class="section" id="default">
259 <h2>Default<a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h2>
260 <p><em>reset_marker</em> = yes, <em>periodic</em> is off per default</p>
261 </div>
262 </div>
263
264
265 </div>
266 <div class="articleComments">
267
268 </div>
269 </div>
270 <footer>
271
272
273 <hr/>
274
275 <div role="contentinfo">
276 <p>
277 &copy; Copyright 2016, DCS Computing GmbH, JKU Linz and Sandia Corporation.
278
279 </p>
280 </div>
281 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>.
282
283 </footer>
284
285 </div>
286 </div>
287
288 </section>
289
290 </div>
291
292
293
294
295
296 <script type="text/javascript">
297 var DOCUMENTATION_OPTIONS = {
298 URL_ROOT:'./',
299 VERSION:'v3.X',
300 LANGUAGE:'None',
301 COLLAPSE_INDEX:false,
302 FILE_SUFFIX:'.html',
303 HAS_SOURCE: true,
304 SOURCELINK_SUFFIX: ''
305 };
306 </script>
307 <script type="text/javascript" src="_static/jquery.js"></script>
308 <script type="text/javascript" src="_static/underscore.js"></script>
309 <script type="text/javascript" src="_static/doctools.js"></script>
310
311
312
313
314
315 <script type="text/javascript" src="_static/js/theme.js"></script>
316
317
318
319
320 <script type="text/javascript">
321 jQuery(function () {
322 SphinxRtdTheme.StickyNav.enable();
323 });
324 </script>
325
326
327 </body>
328 </html>