yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #26522
Re: [Question #699273]: Clump angular momentum not conserved
Question #699273 on Yade changed:
https://answers.launchpad.net/yade/+question/699273
Rohit John gave more information on the question:
Hello all,
I derived the equations for getting the state after the collision using
the following code
Kind regards,
Rohit K. John
# ------------------------------------------------------------------------ Script
from sympy import *
m, v0, l, iz, w1, v1 = symbols('m, v0, l, iz, w1, v1')
eq1 = Eq(2*m*v1*l + iz*w1 - 2*m*v0*l, 0) # Angular momentum conservation
eq2 = Eq(m*v1**2 + 1/2*iz*w1**2 - m*v0**2, 0) # Energy consevation
sol = solve((eq1, eq2),(v1, w1))
sol[1]
--
You received this question notification because your team yade-users is
an answer contact for Yade.