spheropack#
Random sphere packings in Python, generated with the event-driven Lubachevsky-Stillinger algorithm: spheres move ballistically, collide elastically and grow until a target density is reached or the packing jams or crystallises.
import spheropack as sp
p = sp.pack(n=1000, density=0.6)
p.positions, p.radii
User guide
Examples
Reference
- Python API
- spheropack.pack
- spheropack.Packing
- spheropack.Box
- spheropack.PeriodicBox
- spheropack.PackingWarning
- spheropack.PackingError
- spheropack.load
- spheropack.analysis.neighbor_pairs
- spheropack.analysis.contacts
- spheropack.analysis.contact_numbers
- spheropack.analysis.rattlers
- spheropack.analysis.radial_distribution
- spheropack.analysis.radial_profile
- spheropack.analysis.bond_order
- spheropack.analysis.crystalline
- spheropack.analysis.isostaticity
- spheropack.analysis.density_profile
- spheropack.io.write_xyz
- spheropack.io.write_lammps_dump
- spheropack.io.write_lammps_data
- spheropack.io.write_vtp
- spheropack.io.write_container_vtp
- spheropack.io.write_stl
- spheropack.io.write_pov
- spheropack.io.save
- spheropack.io.load
- spheropack.rejection_free.System
- spheropack.rejection_free.radial_distribution
- spheropack.rejection_free.PairPotential
- spheropack.rejection_free.LennardJones
- spheropack.rejection_free.WCA
- spheropack.rejection_free.DPD
- spheropack.rejection_free.SoftSpheres
- spheropack.rejection_free.HardSpheres
- spheropack.stop.Jammed
- spheropack.stop.Pressure
- spheropack.stop.Stall
- spheropack.stop.Collisions
- spheropack.stop.Timeout
- C++ API