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

    Status: Answered => Solved

hafsa confirmed that the question is solved:
thank you Jérôme, i used definition of translate kinetic energy to solve
this problem. the solution:

# translate energy kenetic
def plotAddData():
    TE=0
    for b in O.bodies:
        if isinstance(b.shape,Sphere):
            m=b.state.mass
            v=b.state.vel.norm()
            TE+=0.5*pow(v,2)
    plot.addData(i=O.iter,e=TE/n)
plot.plots={'i':['e']}
plot.plot(

-- 
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

Reply via email to