Dump file not defined

Submitted by WGJ Theron on Wed, 07/28/2010 - 16:24

HI I have created a dump file, but struggle to run the dump command in pizza, it also seems that when i fun pizza the modules are not found.

Please see below:

[CFDEM@localhost ~]$ pizza
Pizza.py (1 Oct 2006), a toolkit written in Python
type ? for help, CTRL-D to quit
Loading tools ...
animate tool did not load:
No module named ImageTk
gl tool did not load:
No module named OpenGL.Tk
dump tool did not load:
No module named Numeric
image tool did not load:
No module named Pmw
mdump tool did not load:
No module named Numeric
> d = dump("dump.cohesion")
Traceback (most recent call last):
File "", line 1, in
NameError: name 'dump' is not defined

ckloss's picture

ckloss | Wed, 07/28/2010 - 19:04

Hi,

most of the packages that are not found are not essential as long as you do not want to make pictures with pizza.py itself - but package Numeric is the one that causes troubles... which version of python and pizza are you using?
If you are using 16Mar09 pizza, try the 8Dec09 version

best
Christoph

WGJ Theron | Thu, 07/29/2010 - 09:33

Hi Christoph,

I have tested it with both packages (16Mar09 pizza & 8Dec09 version), and i get similar errors for both.
What would the next logical step be to solve the problem?

Thanks William

ckloss's picture

ckloss | Thu, 07/29/2010 - 09:48

Hi William,

I would suggest you use the newer pizza version (Dec09).
It needs either the Numeric or the numpy python package which are obviously both not installed on your system.
Numpy is the newer package, see http://numpy.scipy.org/. Installing this should resolve the issue

Christoph

WGJ Theron | Fri, 07/30/2010 - 08:58

Thanks Christoph, i will install the numpy package

mksingh's picture

mksingh | Mon, 08/30/2010 - 14:13

Hi Williams,
Are you able to solve your problem by installing the numpy. I am asking this because I have also the similar problem like you with pizza post processing.
With best regards.
M K

With best regards,
Dr. Mrityunjay Kumar Singh,
Head, Process Modelling and visualization,
Tata Steel Limited, India

stephane.griffiths | Wed, 05/16/2012 - 14:21

Dear LIGGGHTS community,

My name is stephane and I work at ISAE (School of Aeronautics and Space) in Toulouse (France).
I'm also a begginer in liggghts simulation, and I have problems to view my dump files.
I installed liggghts_1p5, gran_pizza_17Aug10 and numpy-1.6.2rc1 and I work under Cygwin.

When I'm in the folder countaining the dump.file, if I understood well, I have to write

> python -i /home/stephane/gran_pizza_17Aug10/src/pizza.py

in order to load pizza, then

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

In order to convert to vtk format and view my dump files using Paraview.

But as always, I have the same error saying that some tools are missing (Numeric module), as presented below:

Display not available ... no GUIs
animate tool did not load:
No module named Tkinter
dump tool did not load:
No module named Numeric
gl tool did not load:
No module named OpenGL.Tk
image tool did not load:
No module named Tkinter
mdump tool did not load:
No module named Numeric
plotview tool did not load:
No module named Tkinter
vcr tool did not load:
No module named Tkinter

As I read before, I had to install numpy, but still, this module (Numeric) is missing. Do I have to install it in a special folder of gran_pizza ? Maybe I'm using wrong versions of pizza or numpy.

I'm sorry to bother you again with this problem. But I really can't see how to fix that.

Thanks a lot for your help.
Best regards,
Stephane

ckloss's picture

ckloss | Wed, 05/23/2012 - 23:54

Hi Stephane,

use a newer version of pizza, the older ones require Numeric, the newer ones work with both numpy and Numeric

Christoph

stephane.griffiths | Wed, 06/20/2012 - 15:20

Hi Christoph,

Thanks a lot for your reply ... I'm sorry to answer you so late.
I tested to use a newer version of pizza. It seems to work, but now, using the function dump("dump.file") on the example files, pizza.py can't read any snapshots and gives me this message:
------------------------------------------------
> vtk(dump("dump.pour")).many()

read 0 snapshots
0 snapshots selected out of 0
no column assignments made
dump scaling status is unknown

wrote 0 snapshots in VTK format.
------------------------------------------------

Did you ever had this message too or have you heard about someone having this message ? I don't understand because I use the "pour_dev" example from the LIGGGHTS directory.

Again, thanks a lot for your help !

Stephane