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

Bruno Chareyre proposed the following answer:
Hello Pascal,

>B.state.inertia = EigVal
>B.state.ori = Quaternion(EigVec)

It is the right way to approach the problem (inertia is a vector for it
contains eigenvalues, as you guessed), although I can't guarantee that
it is exactly this. Make a few checks to be really sure.

>B.state.refPos = C

As Jerome said, refPos is never used in the calculations.

>I have tried to modify manually state.pos of a clump. It does not seem
to move the spherical members of the clump.

I suspect they will move after one iteration. So, it does not solve your 
problem.
You may have to update the relative positions of all clump members just after 
changing B.state.pos (or B.state.ori), in order to change the center of mass 
without moving the object.
It is done like this in the source code, at line Clump.cpp:221.

>Moreover, am I sure that Yade won't automatically update this
attributes with its own procedure ?

It should not. To be really sure, make one iteration and check again. If
it is still the same you can be sure it will never change with more
iterations.

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to