Skip to content

Instantly share code, notes, and snippets.

@SomajitDey
Created December 25, 2021 15:47
Show Gist options
  • Select an option

  • Save SomajitDey/e4eddcbde7e3666015f7c6bcd19b4cbc to your computer and use it in GitHub Desktop.

Select an option

Save SomajitDey/e4eddcbde7e3666015f7c6bcd19b4cbc to your computer and use it in GitHub Desktop.
Self-contained Lammps dump for Ovito. Includes position, orientation and aspherical shape. Position as (x,y,z) means unscaled, (xs,ys,zs) means scaled (w.r.t. box size)
ITEM: TIMESTEP
1000
ITEM: NUMBER OF ATOMS
2
ITEM: BOX BOUNDS xx yy zz
0.0 20.0
0.0 20.0
0.0 20.0
ITEM: ATOMS id type x y z c_orient[1] c_orient[2] c_orient[3] c_orient[4] c_shape[1] c_shape[2] c_shape[3]
1 1 1.0 0.0 0.0 1.0 0.0 0.0 0.0 3.0 1.0 1.0
2 2 10.0 1.0 0.0 0.0 1.0 0.0 0.0 1.0 3.0 1.0
ITEM: TIMESTEP
2000
ITEM: NUMBER OF ATOMS
2
ITEM: BOX BOUNDS xx yy zz
0.0 20.0
0.0 20.0
0.0 20.0
ITEM: ATOMS id type xs ys zs c_orient[1] c_orient[2] c_orient[3] c_orient[4] c_shape[1] c_shape[2] c_shape[3]
1 1 0.0 0.0 0.0 1.0 0.0 0.0 0.0 3.0 1.0 1.0
2 2 0.0 1.0 1.0 0.0 1.0 0.0 0.0 1.0 3.0 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment