← Back to team overview

yade-users team mailing list archive

[Question #657893]: Creating an animation of interactions using VTKExporter and Paraview

 

New question #657893 on Yade:
https://answers.launchpad.net/yade/+question/657893

Hi all,

I would like to create an animation using VTKExporter and Paraview, displaying interaction forces as constant radius tubes with their radii proportional to the force magnitudes [1]. I used the 3d postprocessing tutorial script for testing.
Here are the embedded code segments:

####################################################################
...
PyRunner(command='intexp()',iterPeriod=100),
…
def intexp ():
	export.VTKExporter(str(O.iter)+'.vtk').exportInteractions(what=[('forceN','i.phys.normalForce.norm()')])
...
####################################################################

This indicates 2 problems:
1.	The output file names have the following form: ’[iternumber].vtk-intrs-00000000.vtk’. I think, the zeros should display the iteration number, but they remain constant. Because of this, Paraview cannot recognize the files as a group, and create an animation from them [2]. If I ’manually’ delete the zeros, everything works.
2.	If there are no interactions in the simulation, no file is created (instead of making an ’empty’ file). Is there a way to modify this? I also tried to manually create a blank .vtk file to fill the gaps, but I could not find the proper format, as when I deleted the data and set everything to zero, I got an error message.
Coluld you please help to find a way to create a proper animation, without skipping frames? Thank you.

[1] https://yade-dem.org/doc/user.html#rendering-interactions-as-force-chain
[2] https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series


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