SBNeighborSearchParticleSystemGrid#
See also
SAMSON SDK: SBSNeighborSearchParticleSystemGrid
- class samson.SBNeighborSearchParticleSystemGrid(self: samson.SBNeighborSearchParticleSystemGrid, particleSystem: samson.SBParticleSystem, cutoffDistance: samson.SBQuantity.unitsSI)#
Bases:
SBNeighborSearchParticleSystemGrid-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:
particleSystem (SBParticleSystem) – Particle system to attach to.
cutoffDistance (SBQuantity.length) – Neighbor cutoff radius.
- 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.