spheropack.Box#
- class spheropack.Box(lengths, periodic=True, ball=None)#
Rectangular box spanning
[0, L_k)along each axis.Each axis is either periodic or bounded by walls. Without
ballthe walls are flat (at 0 andL_k); a box with walls along one axis and periodic boundaries along the others is a slab. Withballthe axes of the ball are bounded by the curved wall instead; useCylinder(),SphereContainer()orDisk()to construct such containers.- Parameters:
- __init__(lengths, periodic=True, ball=None)#
Methods
__init__(lengths[, periodic, ball])Attributes
balldimvolumeVolume (area in 2D) available to the spheres.
lengthsperiodic