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. density is the mass density of the spheres. The box flags follow the container: use boundary p p f etc. in the LAMMPS input accordingly; curved walls must be added in LAMMPS (e.g. fix wall/gran ... zcylinder).

Parameters:
Return type:

None