lammps/doc/body.html

67 lines
2.3 KiB
HTML
Raw Normal View History

<HTML>
<CENTER><A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LAMMPS Documentation</A> - <A HREF = "Section_commands.html#comm">LAMMPS Commands</A>
</CENTER>
<HR>
<H3>body particles
</H3>
<P><B>Description:</B>
</P>
<P>This doc page is not about a specific LAMMPS input script command, but
about body particles,
</P>
<P>which are a specific kind of
<A HREF = "atom_style.html">atom_style</A> supported by LAMMPS
</P>
<P>These are the body styles that LAMMPS currently supports. The name in
the first column is used as the <I>bstyle</I> argument for atom_style body:
</P>
<DIV ALIGN=center><TABLE BORDER=1 >
<TR><TD ><I>nparticle</I> </TD><TD > body with N sub-particles
</TD></TR></TABLE></DIV>
<P>Of course, the interactions
between pairs of bodies will need to be encoded in an appropriate pair
style.
</P>
<P>Body particles can represent complex entities,
such as surface meshes of discrete points, collections of
sub-particles, deformable objects, etc.
</P>
<P>By contrast, the <A HREF = "fix_rigid.html">fix rigid</A> command constructs rigid
bodies out of multiple particles. The particles can be point
particles or finite-size particles (spheres, ellipsoids, line
segments, triangles). The particles in each rigid body interact with
each other in the usual pairwise fashion via whatever pair style is
defined. The sum of these interactions determine the total force and
torque on each rigid body, which the <A HREF = "fix_rigid.html">fix rigid</A>
command then time integrates.
</P>
<P><B>Syntax:</B>
</P>
<PRE>atom_style style args
</PRE>
<UL><LI>style = <I>angle</I> or <I>atomic</I> or <I>body</I> or <I>bond</I> or <I>charge</I> or <I>dipole</I> or <I>electron</I> or <I>ellipsoid</I> or <I>full</I> or <I>line</I> or <I>meso</I> or <I>molecular</I> or <I>peri</I> or <I>sphere</I> or <I>tri</I> or <I>hybrid</I>
</UL>
<PRE> args = none for any style except <I>body</I> and <I>hybrid</I>
<I>body</I> args = bstyle
bstyle = style of body particles
<I>hybrid</I> args = list of one or more sub-styles, each with their args
</PRE>
<P><B>Examples:</B>
</P>
<PRE>atom_style atomic
atom_style bond
atom_style full
atom_style body nparticle 2 10
atom_style hybrid charge bond
atom_style hybrid charge body nparticle 2 5
</PRE>
</HTML>