SBNeighborSearchParticleSystemGrid#

class samson.SBNeighborSearchParticleSystemGrid(self: samson.SBNeighborSearchParticleSystemGrid, particleSystem: samson.SBParticleSystem, cutoffDistance: samson.SBQuantity.unitsSI)#

Bases: SBNeighborSearchParticleSystem

Grid-based neighbor-search algorithm for particle systems.

This implementation accelerates neighbor-list and neighbor-query operations using a spatial grid and optional parallel update.

Constructs a grid neighbor-search object.

Parameters:
property parallelizationEnabled#

The flag whether the parallelization is enabled. If set to True then the parallel implementation will be used, if some criteria (e.g. the minimum number of atoms) are met, else the serial implementation will be used. By default, it is enabled and will be used, if some criteria (e.g. the minimum number of atoms) are met.