← Back to team overview

yade-users team mailing list archive

Re: [Question #704551]: How to make VTK file of relative particle rotation angle from state1 to state2

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> (1) how to calculate the relative rotation angle of a sphere between
two states?

see [1]:
###
   relOri = state1.ori.conjugate()*state2.ori
   axis,angle = relOri.toAxisAngle()
###
Works only for "small rotations".
There is a possibility, that the particle may be "rolled" and the "rolled" 2*pi rounds are not counted (orientation is equal).
See [1] and links therein for possible solutions.

> (2) how to write these information into VTK so that it can be
visualised in paraview?

use VTKExporter [2]

Cheers
Jan

[1] https://answers.launchpad.net/yade/+question/692057
[2] https://yade-dem.org/doc/yade.export.html#yade.export.VTKExporter

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