A particle group represents a subset of particles, which is defined by an instance of particle together with a sequence of indices.
Example:
-- construct particle instance for given simulation domain
local system = halmd.mdsim.particle({box = box, particles = 10000, species = 1})
-- select all particles
local group_all = halmd.mdsim.particle_groups.all({particle = particle})
Construct particle group from all particles.
Parameters: |
|
---|
Instance of halmd.mdsim.particle
Number of particles in group.