← Back to team overview

yade-dev team mailing list archive

Re: [Yade-users] [Question #678982]: about TriaxialStressController

 

Hi,

Regarding [*] and the comment "|the mask is the integer whose binary representation is xyz" at|[**], do we agree that

- 3 = 11 = 011 in binary [***] (and not 110) ?And that 1 = 001 (and not 100 as in [**])

- and that the comment at [**] should read "|the mask is the integer whose binary representation is zyx"|(and not xyz) ?



If yes, I'm looking forward to a "better bitmask documentation" branch  (by myself, one day..., or someone else) ;-)


Jérôme



[*] On 07/03/2019 11:03, Robert Caulk wrote:

stress x y 10 kpa, strain z 0.2 (bitmask -> 1 1 0):

triax.stressMask = 3


[**] https://gitlab.com/yade-dev/trunk/blob/master/examples/triax-tutorial/script-session1.py#L91

[***] https://en.wikipedia.org/wiki/Binary_number#/media/File:Binary_counter.gif


Follow ups