← Back to team overview

yade-dev team mailing list archive

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

 

Hi Jérôme,
Both orderings are used. Nothing wrong in little endian, and it's simpler
in the case of bitmasks since it doesn't imply reordering.
https://en.m.wikipedia.org/wiki/Endianness

Bruno

Le jeu. 7 mars. 2019 12:56, Jerome Duriez <jerome.duriez@xxxxxxxxx> a
écrit :

> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>

References