.. index:: fix multisphere fix multisphere command ======================= Syntax """""" .. parsed-literal:: fix ID group-ID multisphere * ID, group-ID are documented in :doc:`fix ` command * multisphere = style name of this fix command * zero or more keyword/value pairs may be appended * keyword = *allow_group_and_set* or *allow_heatsource* or *CAddRhoFluid* .. parsed-literal:: *allow_group_and_set* value = 'yes' or 'no' yes, no = determines if group and set command are allowed in the current simulation. *allow_heatsource* value = 'yes' or 'no' yes, no = determines if heatsources are allowed in the current simulation. *CAddRhoFluid* value = CAdd RhoFluid CAdd = Coefficient for additional mass term. (Usually 0.5) RhoFluid = Fluid density Examples """""""" .. parsed-literal:: fix ms all multisphere Description """"""""""" Treat one or more sets of atoms as independent rigid bodies. This means that each timestep the total force and torque on each rigid body is computed as the sum of the forces and torques on its constituent particles and the coordinates, velocities, and orientations of the atoms in each body are updated so that the body moves and rotates as a single entity. The integration that is performed by this command is euqivalent to :doc:`fix_rigid `. However, the following implementation details are different: (1) Body data held by this fix is distributed across all processes, yielding better parallel scalabilty. (2) Bodies (particle clumps) can be added/inserted via :doc:`fix_insert_stream `, :doc:`fix_insert_rate_region ` or :doc:`fix_insert_pack ` and are automatically added to this fix. (3) A body is removed from the simulation domain if any of it's particles is removed from the simulation according to the :doc:`boundary ` settings or by any command that deleted particles (e.g. :doc:`delete_atoms `). (4) By using this fix, gravity (:doc:`fix_gravity `) will be handled correctly for for overlapping particle clumps. (5) This fix internally performs a :doc:`neigh_modify ` exclude command so that particles belonging to the same rigid body are excluded from the neighborlist build. .. warning:: You should not update the atoms in rigid bodies via other time-integration fixes (e.g. nve, nvt, npt), or you will be integrating their motion more than once each timestep. The option *CAddRhoFluid* enables additional mass terms for the integration of multisphere particles. These model the influence of displaced fluid on the particle motion. ---------- Restart, fix_modify, output, run start/stop, minimize info """""""""""""""""""""""""""""""""""""""""""""""""""""""""" Information about this fix is written to :doc:`binary restart files `. This means you can restart a simulation using multisphere particles. :doc:`fix_modify ` can be used to manipulate the fflag and tflag switches of multispheres. They can be initially defined in the :doc:`fix_particletemplate_multisphere ` command. The fix_modify manipulates all multispheres, not only the initially defined f/tflags from the template. .. parsed-literal:: E.g. fix_modify ms fflag on on off tflag on on off No global scalar or vector or per-atom quantities are stored by this fix for access by various :ref:`output commands <4_15>`. No parameter of this fix can be used with the *start/stop* keywords of the :doc:`run ` command. This fix is not invoked during :doc:`energy minimization `. Restrictions """""""""""" Fix multisphere does not work together with :doc:`fix deform ` Only one fix multisphere at a time is allowed. Heat transfer simulations are not possible when using this fix (e.g. :doc:`fix heat/gran/conduction `) .. warning:: All fixes or computes gathering statistical output (such as e.g. :doc:`compute com ` or :doc:`fix ave/time ` operate on a per-sphere rather than on a per-body basis. Currently, using fix multisphere requires :doc:`newton ` = off and :doc:`dimension ` = 3. Related commands """""""""""""""" :doc:`fix_rigid ` :doc:`fix_particletemplate_multisphere ` :doc:`neigh_modify ` Default """"""" *allow_group_and_set* = 'no' *allow_heatsource* = 'no' .. _liws: http://www.cfdem.com .. _ld: Manual.html .. _lc: Section_commands.html#comm