yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15289
Re: [Question #647299]: About plotting the histogram for distribution of interaction directions
Question #647299 on Yade changed:
https://answers.launchpad.net/yade/+question/647299
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
> Could you have any advice to me how to get the data
something like this?
###
with open(outFile,'w') as f:
for i in O.interactions:
n = i.geom.normal
pd = i.geom.penetrationDepth
fn = i.phys.normalForce.norm()
f.write('{} {} {} {} {}\n'.format(nx,ny,nz,pf,fn))
###
for plotting, gnuplot with polar plotting can be used [1]. For more
info, please provide more information about what you want to achive and
what "specific interaction direction data", ideally with a MWE of a
complete simulation up to just before to be saved and postprocessed.
cheers
Jan
[1] http://www.gnuplot.info/demo/polar.html
--
You received this question notification because your team yade-users is
an answer contact for Yade.