Python API#
|
Packs spheres (disks in 2D) with the Lubachevsky-Stillinger algorithm. |
|
A sphere (disk) packing. |
|
Rectangular box spanning |
|
Fully periodic box. |
A packing run stopped before reaching its target. |
|
|
Raised with |
|
Loads a packing written by |
|
All pairs closer than |
|
Pairs in contact: centre distance at most |
|
Number of contacts of every sphere (see |
|
Boolean mask of rattlers: spheres that carry no force in a jammed packing. |
|
Pair distribution function of the sphere centres. |
|
Local solid fraction as a function of the distance from the axis of a cylinder, or from the centre of a spherical container or disk. |
|
Bond-orientational order parameter of order |
|
Boolean mask of spheres in a crystalline environment. |
|
Ratio of the number of contacts among non-rattlers to the isostatic number. |
|
Local volume (area) fraction as a function of position along |
|
Writes an extended XYZ file ( |
|
Writes a LAMMPS text dump ( |
|
Writes a LAMMPS data file for |
|
Writes the sphere centres as VTK XML PolyData with |
|
Writes the outline of the container (box edges, or circles and generators of a cylinder, or great circles of a sphere) as VTK lines, to show with the spheres. |
|
Writes the sphere surfaces as a binary STL mesh (icospheres, 20 * 4**subdivisions triangles per sphere; 320 for the default). |
|
Writes a POV-Ray scene with camera, light and one |
|
Saves a packing, its container and run statistics to a NumPy |
|
Loads a packing written by |
|
Particles interacting with a pair potential in a periodic box, sampled with the rejection-free method. |
|
Pair distribution function averaged over |
|
Isotropic pair potential with at most one minimum and zero at the cutoff. |
|
Truncated and shifted Lennard-Jones potential, \(4\epsilon[(\sigma/r)^{12} - (\sigma/r)^6] - U_\mathrm{LJ}(r_c)\) for \(r < r_c\). |
|
Weeks-Chandler-Andersen potential: Lennard-Jones truncated and shifted at its minimum. |
|
Conservative DPD potential \(\frac{a}{2}(1 - r/r_c)^2\) for \(r < r_c\). |
|
Soft repulsion \(\frac{\epsilon}{\alpha}(1 - r/\sigma)^\alpha\) for \(r < \sigma\) (harmonic for \(\alpha = 2\), Hertzian for \(\alpha = 5/2\)). |
|
Hard spheres: every approach to contact reflects (event-driven hard-sphere dynamics). |
|
Compress quasi-statically until the packing is jammed. |
|
Stop when the reduced pressure |
|
Stop when the radii grew by less than |
|
Stop after |
|
Stop after |