← Back to team overview

yade-users team mailing list archive

Re: [Question #692998]: principal axis of clump

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> is there any functions which could calculate the inertia tensor??

not directly, but e.g a matrix representation of inertia tensor could be obtained by
inertiaTensor = state.inertia.asDiagonal()
or 
r = state.ori.toRotationMatrix()
inertiaTensor = r*state.inertia.asDiagonal()*r.transpose()
or
r = state.refOri.toRotationMatrix()
inertiaTensor = r*state.inertia.asDiagonal()*r.transpose()

Which one to use depends on circumstances.

cheers
Jan

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