yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #22489
Re: [Question #689234]: How to export relative velocity of spheres to Paraview
Question #689234 on Yade changed:
https://answers.launchpad.net/yade/+question/689234
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello Chien-Cheng,
> the relative velocity of all interacted spheres.
relative velocity with respect to what? relative velocity of interacting
bodies for all interactions?
you can use export.VTKExporter [1]
###
vtk = export.VTKExporter()
vtk.exportSpheres(what=dict(velRelative="b.state.vel"))
vtk.exportInteractions(what=dict(velRelative="i.phys.normalForce"))
###
above, b.state.vel and i.phys.normalForce is only illustrative, needs to be replaced by actual formula for relative velocity
If you use older Yade version, the correct format might be list of tuples instead of dict: what=[("velRelative","b.state.vel")]
cheers
Jan
[1] https://yade-dem.org/doc/yade.export.html#yade.export.VTKExporter
--
You received this question notification because your team yade-users is
an answer contact for Yade.