← Back to team overview

yade-users team mailing list archive

Re: [Question #695966]: VTKExporter -> exportFacets command

 

Question #695966 on Yade changed:
https://answers.launchpad.net/yade/+question/695966

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

it seems you are using and older version of Yade (you should have included the information [3] :-)
Previously, "what" parameter used to be a list/tuple of 2-length key-value tuples. It was changed to dict, as dict is more natural for the data structure [4].

Try:
vtk.exportFacets(..., what=[('velocity','b.state.vel')])
or for more quantities:
vtk.exportFacets(..., what=[('vel','b.state.vel'),('pos','b.state.pos'),('dspl','b.state.displ()')])

cheers
Jan

[3] https://www.yade-dem.org/wiki/Howtoask
[4] https://gitlab.com/yade-dev/trunk/-/commit/763208677a8043f99a2fb4ebe225608c2c8ff910

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