← Back to team overview

yade-users team mailing list archive

Re: [Question #696037]: contact forces in VTKrecorder

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,
for this kind of questions, please always provide a MWE [1]
E.g. for the code below, I can load "3d-vtk-intrs.1.vtp" and color them by "forceN".
For "fancy" VTK exporting, you can try export.VTKExporter [2].
cheers
Jan 

###
O.bodies.append([
    sphere((0,0,0),2),
    sphere((1,0,0),2),
    sphere((0,1,0),2),
])
O.step()
vtk = VTKRecorder(fileName='3d-vtk-',recorders=['all'],iterPeriod=1)
vtk()
###

[1] https://www.yade-dem.org/wiki/Howtoask
[2] 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.