<spanid="index-0"></span><h1>compute smd/tlsph/shape command<aclass="headerlink"href="#compute-smd-tlsph-shape-command"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="syntax">
<h2>Syntax<aclass="headerlink"href="#syntax"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute ID group-ID smd/tlsph/shape
</pre></div>
</div>
<ulclass="simple">
<li>ID, group-ID are documented in <aclass="reference internal"href="compute.html"><em>compute</em></a> command</li>
<li>smd/tlsph/shape = style name of this compute command</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples<aclass="headerlink"href="#examples"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>compute 1 all smd/tlsph/shape
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>Define a computation that outputs the current shape of the volume
associated with a particle as a rotated ellipsoid. It is only
meaningful for particles which interact according to the
Total-Lagrangian SPH pair style.</p>
<p>See <aclass="reference external"href="USER/smd/SMD_LAMMPS_userguide.pdf">this PDF guide</a> to use Smooth
Mach Dynamics in LAMMPS.</p>
<p><strong>Output info:</strong></p>
<p>This compute calculates a per-particle vector of vectors, which can be
accessed by any command that uses per-particle values from a compute
as input. See <aclass="reference internal"href="Section_howto.html#howto-15"><span>How-to discussions, section 6.15</span></a> for an overview of LAMMPS output
options.</p>
<p>The per-particle vector has 7 entries. The first three entries
correspond to the lengths of the ellipsoid’s axes and have units of
length. These axis valus are computed as the contact radius times the
xx, yy, or zz components of the Green-Lagrange strain tensor
associated with the particle. The next 4 values are quaternions
(order: q, x, y, z) which describe the spatial rotation of the
particle relative to its initial state.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>This compute is part of the USER-SMD package. It is only enabled if
LAMMPS was built with that package. See the <aclass="reference internal"href="Section_start.html#start-3"><span>Making LAMMPS</span></a> section for more info.</p>
<p>This quantity will be computed only for particles which interact with
the Total-Lagrangian SPH pair style.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.