← Back to team overview

yade-users team mailing list archive

Re: [Question #681180]: How to impose an initial angular velocity on a moving/free particle?

 

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

kaiset posted a new comment:
Still a **workaround** is to use the angMom

## using: "b.state.angMom" -
Mom=b1.state.ori*b1.state.inertia # This results to angVel=Vector3(1,1,1).
# Modify accordingly, to modify a specific angular velocity. e.g., to get an initial angVel=Vector3(5,6,7)
Mom[0]=Mom[0]*5.
Mom[1]=Mom[1]*6.
Mom[2]=Mom[2]*7.

O.bodies[0].state.angMom=Mom

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.