yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15408
Re: [Question #653503]: stressMask
Question #653503 on Yade changed:
https://answers.launchpad.net/yade/+question/653503
Status: Open => Answered
Bruno Chareyre proposed the following answer:
Hi,
It is simpler to manipulate the bitmask as an integer value.
00,11,22,12,02,01 are represented respectively by 1,2,4,8,16,32 (i.e. 2^k)
Now (00 AND 02) is represented by stressMask=1+16=17.
stressMask=0 means none of them are stress-controlled.
I hope it helps
Bruno
--
You received this question notification because your team yade-users is
an answer contact for Yade.