3.13. 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 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.


process a line from the Bodies section of a data file


number of sub-particles output is generated for


number of values per-sub-particle output is generated for


output values for the Mth sub-particle


body attributes to communicate every timestep


unpacking of those attributes


body attributes to communicate when reneighboring is done


unpacking of those attributes