Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-22 Thread yang yi
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Status: Answered => Solved yang yi 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

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-22 Thread Jan Stránský
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Jan Stránský proposed the following answer: 1) you have to change velocity directly of RotationEngine (see my previous anwer #5). This way, you change a global velocity variable, byt RotationEngine has its copy

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-22 Thread yang yi
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 yang yi posted a new comment: Thank you very much!! Jan Stránský Now I have two problem (1) for using RotationEngine, I hope the following code can change the direction of the plane by the PyRunner

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-22 Thread Jan Stránský
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Jan Stránský proposed the following answer: > However, the speed I cound not change during simulation. > But the velocity can not changed. Why? Please always try to be specific. Did you get an error? What

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-21 Thread yang yi
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 yang yi posted a new comment: Thanks for Jan Stránský (honzik) and Chareyre (bruno-chareyre-9) very much. I tired the RotationEngine before using O.bodies[i].state.angVel . However, the speed I cound not

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-21 Thread Jan Stránský
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Jan Stránský posted a new comment: Just a note, 3) and 1) does the same, either "automatically" (1) or "manually" (3) Jan -- You received this question notification because your team yade-users is an answer

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-21 Thread Chareyre
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Chareyre proposed the following answer: Hi, I would support 2) for the sake of performance, but there's also 3) fix myRotation() since obviously imposing rigid body motion needs to impose 'vel' too (spin*pos),

Re: [Yade-users] [Question #686076]: Problem of Bodies rotation

2019-11-21 Thread Jan Stránský
Question #686076 on Yade changed: https://answers.launchpad.net/yade/+question/686076 Status: Open => Answered Jan Stránský proposed the following answer: Hello, I see 2 main options: 1) use RotationEngine 2) use a clump of facets instead of independent facets cheers Jan -- You received