Author Topic: LAMMPS sphere data format  (Read 2161 times)

andershaf

  • Newbie
  • *
  • Posts: 8
LAMMPS sphere data format
« on: December 14, 2016, 10:51:32 AM »
Hi,

I'm working with a granular material to produce packed polydisperse spheres (they can have different radii). The sphere data format for LAMMPS is on the form

...
Atoms # sphere

1 1 diameter1 density1 x1 y1 z1
2 1 diameter2 density2 x2 y2 z2
...

etc. Spheres is not an option when I load the data file. I could implement this if you'd like :)

Alexander Stukowski

  • Administrator
  • Hero Member
  • *****
  • Posts: 638
Re: LAMMPS sphere data format
« Reply #1 on: December 14, 2016, 04:20:05 PM »
I added the option to load and write LAMMPS data files with atom_style=sphere for you (Commit 5e4ba252).

The particle diameters read from the data file are automatically mapped to the "Radius" particle property in OVITO (after dividing by 2) and the density values are mapped to the "Mass" particle property (after multiplying with the particle volume).

Particles with radius=0 in the data file will be rendered using the default radius, which can be set in the particle display panel of OVITO.
 
Please download the latest development build from the ovito.org website.

andershaf

  • Newbie
  • *
  • Posts: 8
Re: LAMMPS sphere data format
« Reply #2 on: December 21, 2016, 09:21:28 AM »
Thanks Alexander.

Perfect!