spheropack.io.write_xyz#
- spheropack.io.write_xyz(packing, path, *, species='X', periodic_images=False, comment='')#
Writes an extended XYZ file (
Lattice,pbcand aradiuscolumn).OVITO and ASE read the box, the periodic boundary conditions and the radii directly.
speciesis one name for all spheres or one per sphere (used as the particle type, e.g. to colour a bidisperse packing). The default"X"is ASE’s placeholder element; ASE accepts only chemical symbols, OVITO any name.