spheropack.io.write_lammps_data#
- spheropack.io.write_lammps_data(packing, path, *, density=1.0, types=None)#
Writes a LAMMPS data file for
atom_style sphere(id type diameter density x y z).Use it to start DEM simulations (LAMMPS granular package, LIGGGHTS) from a packing.
densityis the mass density of the spheres. The box flags follow the container: useboundary p p fetc. in the LAMMPS input accordingly; curved walls must be added in LAMMPS (e.g.fix wall/gran ... zcylinder).