Body styles
===========

Classes that define body particles are derived from the Body class.
Body particles can represent complex entities, such as surface meshes
of discrete points, collections of sub-particles, deformable objects,
etc.

See the :doc:`Howto body <Howto_body>` doc page for an overview of using
body particles and the various body styles LAMMPS supports.  New
styles can be created to add new kinds of body particles to LAMMPS.

Body\_nparticle.cpp is an example of a body particle that is treated as
a rigid body containing N sub-particles.

Here is a brief description of methods you define in your new derived
class.  See body.h for details.

+----------------------+-----------------------------------------------------------+
| data\_body           | process a line from the Bodies section of a data file     |
+----------------------+-----------------------------------------------------------+
| noutrow              | number of sub-particles output is generated for           |
+----------------------+-----------------------------------------------------------+
| noutcol              | number of values per-sub-particle output is generated for |
+----------------------+-----------------------------------------------------------+
| output               | output values for the Mth sub-particle                    |
+----------------------+-----------------------------------------------------------+
| pack\_comm\_body     | body attributes to communicate every timestep             |
+----------------------+-----------------------------------------------------------+
| unpack\_comm\_body   | unpacking of those attributes                             |
+----------------------+-----------------------------------------------------------+
| pack\_border\_body   | body attributes to communicate when reneighboring is done |
+----------------------+-----------------------------------------------------------+
| unpack\_border\_body | unpacking of those attributes                             |
+----------------------+-----------------------------------------------------------+


.. _lws: http://lammps.sandia.gov
.. _ld: Manual.html
.. _lc: Commands_all.html
