← Back to team overview

yade-users team mailing list archive

Re: [Question #695607]: Show deformations in vtkrecorder


Question #695607 on Yade changed:

    Status: Open => Answered

Jan Stránský proposed the following answer:
I am not sure it is possible with VTKRecorder, but it is possible with export.VTKExporter [3,4], something like
vtk.exportSpheres(useRef=True,what=dict(displ="b.state.displ()")) # syntax is different for older Yade versions
useRef ... saves state.refPos as particle position (instead of default state.pos)
what= ... saves displacement with VTK name "displ"

in Paraview, you can then use WarpByVector with vector=displ and scale=1
to place particles to their actual position and/or color them by displ
value (magnitude?)


[3] https://yade-dem.org/doc/yade.export.html#yade.export.VTKExporter
[4] https://yade-dem.org/doc/yade.export.html#yade.export.VTKExporter.exportSpheres

You received this question notification because your team yade-users is
an answer contact for Yade.