yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #26528
Re: [Question #699273]: Clump angular momentum not conserved
Question #699273 on Yade changed:
https://answers.launchpad.net/yade/+question/699273
Status: Open => Answered
Karol Brzezinski proposed the following answer:
Hi,
I noticed that b.state.angMom for spheres is zero even though they have
some angular momentum. I think that it doesn't affect the simulation.
You can compute momentum for spheres manually. I changed one line in
your function get_AngMom():
###
angMom_sp1 = np.array(O.bodies[id].state.angVel)*np.array(O.bodies[id].state.inertia)
###
Maybe there is a more elegant way to do this instead of changing Vector3
to NumPy array, but it was just a quick fix.
After these modifications numbers look good to me (lower plot looks
crazy but it is just a scale issue).
Best wishes,
Karol
--
You received this question notification because your team yade-users is
an answer contact for Yade.