yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07995
Re: [Question #234062]: Track rotation of particle
Question #234062 on Yade changed:
https://answers.launchpad.net/yade/+question/234062
Status: Answered => Open
kelaogui is still having a problem:
Thanks, Bruno Chareyre.
What I mean is to integrate the angVel*dt step by step in global
coordinates. In python script, just like
/*******************************************************************/
......
O.engines = [
......
PyRunner(command='Rotation()',iterPeriod=1,label='roll'),
......
]
def Rotation():
global rotation_angle
k=0
for i in O.bodies:
if isinstance(i.shape,Clump):
for j in range[0,3]
rotation_angle[k][j]+=i.state.angVel[j]*O.dt #it's a 2D case
k=k+1
......
/******************************************************************/
But computation is quite slow.
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.