saving image of polyhedrals in paraview format

Asked by Mahdeyeh on 2019-12-01

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:
2019-12-12
Last query:
2019-12-12
Last reply:
2019-12-01
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

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

Mahdeyeh (mahdiye.sky) said : #5

Thanks all , it solved