Re: [Yade-users] [Question #633674]: How you move a wall or facet?
Question #633674 on Yade changed: https://answers.launchpad.net/yade/+question/633674 Status: Answered => Solved liucheng83 confirmed that the question is solved: Hi, Jan Thank you for your help. It works now. I think "pos = 1.5 # set values as needed" may be wrong. The following is true. --- pos[1] = 1.5 # set values as needed --- Thank you! Cheng -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #633674]: How you move a wall or facet?
Question #633674 on Yade changed: https://answers.launchpad.net/yade/+question/633674 liucheng83 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. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #633674]: How you move a wall or facet?
Question #633674 on Yade changed: https://answers.launchpad.net/yade/+question/633674 Status: Open => Answered Jan Stránský proposed the following answer: Hello, you need to assign pos as full Vector3 at once: O.bodies[3].state.pos[1]=1.5 # does not work pos = O.bodies[3].state.pos # copy of state.pos pos = 1.5 # set values as needed O.bodies[3].state.pos = pos # new pos as complete Vector3 at once Just a note, assigning position directly is not recommended in Yade, so you should know what and why you do. E.g. if the position change is before the first O.step, there should be no problem. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #633674]: How you move a wall or facet?
New question #633674 on Yade: https://answers.launchpad.net/yade/+question/633674 Hi, everyone I want to move the top wall created with --- mn,mx=Vector3(0,0,0),Vector3(1,1,1) # corners of the initial packing walls=aabbWalls([mn,mx],thickness=0,material='walls') wallIds=O.bodies.append(walls) --- The initial y position of the top wall is y=0, I want to move it to y=1.5. But it seems change the position does not work. - O.bodies[3].state.pos[1]=1.5 print O.bodies[3].state.pos[1] The print information is O.bodies[3].state.pos[1] =1.0 Anyone knows how to move a facet? Thank you! Cheng -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp