Converting dump files to vtk

Submitted by sanjaysaroj on Tue, 06/26/2012 - 12:34
    Hi all,
    I have installed OpenFOAM, Liggghts and performed CFDEM coupling, then to run a example "packing" of liggghts.I executed liggghts by which dump files were created in post folder of example file.I have a problem converting these dump files to vtk using pizza and lpp, I feel I don't know how to proceed for conversion after extracting the tar files of pizza or lpp.Do i need to install other packages like vmd, OpenGL etc... for pizza to run. I was also trying to include dump plugin for paraview but i could not succeed.
    Can somebody post a detailed procedure for the same.
    Thank You.
Philippe's picture

Philippe | Tue, 06/26/2012 - 16:22

Hi,

please explain in more detail what you did and which error messages you recieved.

best,
Philippe

sanjaysaroj | Wed, 06/27/2012 - 13:38

    Hi,
    Thank You Sir.Here's the overview of procedure i followed:
    I used the command liggghts
    Then I used a command :
    > d = dump("dump.*")
    and got:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/encodings/utf_8.py", line 15, in decode
    def decode(input, errors='strict'):
    KeyboardInterrupt

    Then I made following change in in.packing file:
    dump dmp all custom 350 post/dump_*.liggghts id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
    then i again did the simulation and now dump.liggghts file was made.

    after which i tried installing a paraview plugin by opening paraview and adding a macro update.py after which i restarted paraview by going in the folder of packing where input file is located then I ran paraview command and a update button on right-top corner was there which i clicked twice and then i tried to load the files but paraview is not detecting dump files.

vipul.shrivastava | Fri, 06/29/2012 - 13:50

Try this

d=dump("dump.liggghts")
v=vtk(d)
v.manyGran()

it would convert your dump file in .vtk format and u can load the .vtk files in paraview. cheers !!

sanjaysaroj | Sun, 07/01/2012 - 03:00

Thank You Sir.
I feel the problem was with pizza version or installation but with lpp i could convert easily by following your instructions..

40044600's picture

40044600 | Tue, 05/16/2017 - 16:46

Where does this command go?In the script or through terminal?

d=dump("dump.liggghts")
v=vtk(d)
v.manyGran()