dump contact force to vtk file

Submitted by shokeyi on Fri, 02/22/2013 - 11:34

Hi,
I am trying to dump the contact force to vtk file in order to see the force chain by Paraview. However, it shows no snapshot. I saw that Mark Bentley had coded it. But when I install the EVTK by "python setup.py install", it shows an error as "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/cevtk.c -o build/temp.linux-i686-2.7/src/cevtk.o
src/cevtk.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1". Does anyone know how to modify it? In addition, is it possible to dump the vtk file instead of intalling EVTK? Thanks.

shokeyi

shokeyi | Fri, 02/22/2013 - 16:02

Hi,
I intall the python2.7 by the code above, but it still has an error shown as "running install_lib
creating /usr/local/lib/python2.7/dist-packages/evtk
error: could not create '/usr/local/lib/python2.7/dist-packages/evtk': Permission denied". I think the python 2.7 is installed. I also installed it by the Ubuntu software center. Does anyone know how to modfiy it? Thanks.