saving image of polyhedrals in paraview format

Asked by Mahdeyeh

Hi guys

I have some polyhedra particles, I want to save images of simulation in vtk and paraview format.
How I can do this ?

Another my problem is, when I use vtkExporter :
"
 vtkExporter = export.VTKExporter('//home/mahdeyeh/test/vtkExporter')
vtkExporter.exportPolyhedra('pos','b.state.pos')
"

It shows this error:
"NameError: global name 'exportPolyhedra' is not defined "

why? I write "from yade import export,polyhedra_utils" at the beginning of code.

Thanks for your time

Yade 2018.02b

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Mahdeyeh
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello,

Please review our forum guidelines [1] and provide an MWE.

Cheers,

Robert

[1]https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Jan Stránský (honzik) said :
#4

Hello,

there is no exportPolyhedra (what the error is about) in the code you have posted. Please make the problem consistent.

Also please try to make it MWE, where M stands for minimal..

thanks
Jan

Revision history for this message
Mahdeyeh (mahdiye.sky) said :
#5

Thanks all , it solved