Question #455796 on Yade changed:
https://answers.launchpad.net/yade/+question/455796
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Jabrane,
Is it possible to have the information about particles and contact (force,
> momentum, velocity, stiffenesses etc...) in a specific area of a numerical
> sample ?
of course:
forcesInCertainArea = [O.forces.f(b.id) for b in O.bodies if b.state.pos[2]
> 1.5] # to get forces from bodies with z coordinate > 1.5
avgForce = sum(forcesInCertainArea,Vector3.Zero) / len(forcesInCertainArea
# to average them
To get better answer about energies, please provide a MWE or specify more
in detail how you compute energy ("globally" does not really says much. Do
you use your own functions in Python? O.energy[...]?
Law2.someKindOfEnergy()? ......).
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp