← Back to team overview

yade-users team mailing list archive

Re: [Question #661630]: maximum or mean velocity

 

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

Jan Stránský proposed the following answer:
Mean (average) velocity of all particles can be computed similarly:

avgVel = sum(b.state.vel.norm() for b in O.bodies) / len(O.bodies)

"mean velocity during the previous step" from [1] means mean velocity of one specific particle between current and previous time step, not mean velocity of all bodies.
This mean velocity value is simply b.state.vel

chees
Jan

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