How to get animation of simulation process in Yade simulation?

Asked by weijie on 2020-05-20

Dear all,

Is there a way or function to obtain and export the animation of the simulation process?

Thanks in advance.
Jie

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
2020-05-27
Last query:
2020-05-27
Last reply:
2020-05-20
Best Jérôme Duriez (jduriez) said : #1

You can for instance combine the use of SnapshotEngine [*], with a subsequent call (after your simulation ends and all snapshots exist -- you may need to install an external package) to makeVideo [**]

You could also use (outside YADE) Paraview, after VTK export of relevant simulation data.

[*] https://yade-dem.org/doc/yade.wrapper.html?highlight=snapshot#yade.wrapper.SnapshotEngine
[**] https://yade-dem.org/doc/yade.utils.html#yade.utils.makeVideo

Robert Caulk (rcaulk) said : #2

I should point out that Paraview is objectively superior to SnapshotEngine and should be considered the preferred method for post processing and visualization.

weijie (amandajoe) said : #3

Thanks Jérôme Duriez, that solved my question.