<spanid="index-0"></span><h1>fix smd/wall_surface command<aclass="headerlink"href="#fix-smd-wall-surface-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>fix ID group-ID smd/wall_surface arg type mol-ID
</pre></div>
</div>
<ulclass="simple">
<li>ID, group-ID are documented in <aclass="reference internal"href="fix.html"><em>fix</em></a> command</li>
<li>smd/wall_surface = style name of this fix command</li>
<li>arg = <em>file</em></li>
</ul>
<preclass="literal-block">
<em>file</em> = file name of a triangular mesh in stl format
</pre>
<ulclass="simple">
<li>type = particle type to be given to the new particles created by this fix</li>
<li>mol-ID = molecule-ID to be given to the new particles created by this fix (must be >= 65535)</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>fix stl_surf all smd/wall_surface tool.stl 2 65535
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>This fix creates reads a traingulated surface from a file in .STL format.
For each triangle, a new particle is created which stores the barycenter of the triangle and the vertex positions.
The radius of the new particle is that of the minimum circle which encompasses the triangle vertices.</p>
<p>The triangulated surface can be used as a complex rigid wall via the <aclass="reference internal"href="pair_smd_triangulated_surface.html"><em>smd/tri_surface</em></a> pair style.
It is possible to move the triangulated surface via the <aclass="reference internal"href="fix_smd_move_triangulated_surface.html"><em>smd/move_tri_surf</em></a> fix style.</p>
<p>Immediately after a .STL file has been read, the simulation needs to be run for 0 timesteps in order to properly register the new particles
in the system. See the “funnel_flow” example in the USER-SMD examples directory.</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>
<h2>Restart, fix_modify, output, run start/stop, minimize info<aclass="headerlink"href="#restart-fix-modify-output-run-start-stop-minimize-info"title="Permalink to this headline">¶</a></h2>
<p>Currently, no part of USER-SMD supports restarting nor minimization. This fix has no outputs.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>This fix 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. The molecule ID given to the particles created by this fix have to be equal to or larger than 65535.</p>
<p>Within each .STL file, only a single triangulated object must be present, even though the STL format allows for the possibility of multiple objects in one file.</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>.