yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #25023
Re: [Question #695607]: Show deformations in vtkrecorder
Question #695607 on Yade changed:
https://answers.launchpad.net/yade/+question/695607
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?)
cheers
Jan
[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.