chiara modenese píše v Pá 23. 07. 2010 v 12:31 +0100: > Hi! > > could you please add a couple of words on the use of stressMask in > PTC? What is the value that stressMask should assume depending on the > case? It is not very clear reading documentation. You can have a look at https://yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.Peri3dController.stressMask which is better documented, but has 6 components (rather than just 3 as in PTC).
Basically, you do bitwise addition of what you components where you want stress-control, taking x: 000001 y: 000010 z: 000100 So for x+z you get 1+4=5. (100 in binary is 4 decimal). You can also write it using 0,1,2 indices for x,y,z and using bitshift operator: (1<<0)+(1<<2)=5 (try it in python). Finally, python lets you write binary directly with the 0b prefix: 0b001+0b100 5 HTH, Vaclav _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

