yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13916
Re: [Question #411404]: How to plot the number of cohesive and frictional interactions
Question #411404 on Yade changed:
https://answers.launchpad.net/yade/+question/411404
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Alma,
at any time step, you can easily get number of interactions satisfying
certain condition (like if the interaction is cohesive, broken or whatever:
num = len([i for i in O.interactions if something(i)])
where something(i) might be something like "i.phys.isCohesive",
"i.phys.isBroken" or similar stuff.
You can then use standard ways of plotting (using PyRunner with
plot.addData command, sefining plot.plots and calling plot.plot() function.
Is this what you meant?
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.