Question #678425 on Yade changed:
https://answers.launchpad.net/yade/+question/678425
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
sometimes the Python error messages are self-explanatory, like in this
case
> Ek = b. O.energy['kinetic']
should be
Ek = O.energy['kinetic'] # without b., b being Body instance
also have a look at kineticEnergy function [1]
cheers
Jan
[1] https://yade-
dev.gitlab.io/trunk/yade.utils.html#yade._utils.kineticEnergy
--
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