← Back to team overview

yade-users team mailing list archive

Re: [Question #235259]: How to count number of interactions

 

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

    Status: Answered => Open

Reza Housseini is still having a problem:
> How many interactions would you expect from a simple model with one
sphere and facets?

The facet is driven by a HarmonicMotionEngine and the ball is therefore
hopping.

> how do you (what command do you use) to get the number of
interactions?

I just let the simulation run and then use len(O.interactions) to count
the number of interactions. I also found out about
utils.avgNumInteractions() but this too does not count any interactions.

Aren't all interactions loggend in the InteractionContainer?

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.