← Back to team overview

yade-users team mailing list archive

Re: [Question #163736]: Body' state change

 

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

    Status: Answered => Open

Daniela is still having a problem:
Hi,
actually I have a file containing information about position, velocity, orientation and angular velocity for a body for many time steps. In this sense, what I need is to "tell" the body in yade these values during the simulation. I suppose that I could do it using the RotationEngine and the TranslationEngine, because then I could already define at least the velocity and the angular velocity. But I have 2 problems here:
1. when I make RotationEngine(...,label='rotEng')+TranslationEngine(...,label='transEng') and try to define for example rotEng.angularVelocity=10, I receive the message: NameError: global name 'rotEng' is not defined. The same with transEng. It seems to be a problem with the + sign. But why?
2. the zeroPoint must change, as the body also has a translation movement. Actually I could just give it the value of the position, but I still have the problem described above when I write rotEng.zeroPoint.
I hoppe someone can help me.
Thanks. Daniela

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.