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

2023-01-31 Thread Leonard
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Leonard confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because your team yade-users is an answer contact for Yade.

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

2023-01-31 Thread Leonard
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Answered => Solved Leonard confirmed that the question is solved: Hi, Yes, that is a good idea and I am moving to the latest version of Yade. Just because lots of project data have been obtained

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

2023-01-31 Thread Jan Stránský
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Open => Answered Jan Stránský proposed the following answer: For python 2, change the "builtin" approach from ### python 3 import builtins builtins.data = data ### to ### both python 3 and python

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

2023-01-30 Thread Jérôme Duriez
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Jérôme Duriez posted a new comment: With Python 2 and Yade 2018, and considering how fast Yade is evolving, did you consider updating your system ? (sorry for the comment if that's impossible for you) -- You

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

2023-01-30 Thread Leonard
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Needs information => Open Leonard gave more information on the question: Hi Jan, It is python 2.7.17. Obtained by: In [1]: import sys; print(sys.version) 2.7.17 (default, Nov 28 2022, 18:51:39)

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

2023-01-30 Thread Jan Stránský
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Open => Needs information Jan Stránský requested more information: What python version do you use? -- You received this question notification because your team yade-users is an answer contact for

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

2023-01-29 Thread Leonard
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Answered => Open Leonard is still having a problem: Hi Jan and Karol, Thanks for your MWEs. Because I use an old version of Yade (2018.02b), consequently executing the MWE gives error:

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

2023-01-27 Thread Jan Stránský
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Jan Stránský proposed the following answer: a MWE for a case where you have the computed values ### from yade import export import builtins # to store "data" and access them from a string command spheres = [

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

2023-01-27 Thread Karol Brzezinski
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Open => Answered Karol Brzezinski proposed the following answer: Hi Leonard, I think that you can use 'rot()' method of body state or Jan's proposal in VTKExporter. MVE from yade import

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

2023-01-27 Thread Leonard
Question #704551 on Yade changed: https://answers.launchpad.net/yade/+question/704551 Status: Answered => Open Leonard is still having a problem: Hi Jan, Thanks for your reply. I got the solution for each individual question. But I am not clear how to combine the two. If I understood

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

2023-01-26 Thread Jan Stránský
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 =