Error- dump file to vtk form

Submitted by shokeyi on Mon, 11/19/2012 - 14:09

Hi,

I have a DEM code of my own and I would like to use ParaView to postprocess the results. I have been following the procedure for converting LIGGGHTS dump.* files to *.vtk files, and my ultimate goal is to figure out the format of *.vtk files for DEM type results. The problem is when I convert dump.* file (e.g. dump.cohesion) to run through the pizza.py process, it could read the dump file but there is an error showing as follows:
reading dump file...
800
read 1 snapshots
1 snapshots selected out of 1
assigned columns: id type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
> v=vtk(d)
> v.manyGran()
Traceback (most recent call last):
File "", line 1, in
File "/home/evxqx3/myliggghts/gran_pizza_17Aug10/src/vtk.py", line 194, in manyGran
particleGran(file,atoms,names,len(self.data.snaps[0].atoms[0]))
File "/home/evxqx3/myliggghts/gran_pizza_17Aug10/src/vtk.py", line 356, in particleGran
print >>f,atom[18]
IndexError: index out of bounds

I did not know where the errors exit. Could someone tell me how to modify it?

Thanks,
Shokeyi

ckloss's picture

ckloss | Wed, 12/05/2012 - 16:00

Hi,

pizza.py can fail when a dump file is empty, sou you may want to use LPP (we have fixed this bug there)

Cheers, Christoph

shokeyi | Thu, 12/06/2012 - 12:26

Hi, Christoph
I have checked the dump file, it is not empty. You mean I could download and install the LPP?
Thanks.

yangdm | Tue, 06/18/2013 - 14:54

Hi Christoph,
I got the following error when downloading LPP:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I tried to use the pizza files I downloaded a couple of months ago, but encountered an error like:

Traceback (most recent call last):
File "", line 1, in
File "/home/feng-gps1_a/cendy/pizza/src/vtk.py", line 158, in manyGran
which,time,flag = self.data.iterator(flag)
AttributeError: 'str' object has no attribute 'iterator'

Any help on this is appreciated.

DM