← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2318: - Add stress getter and python wrapper (replacing reverted r2314).

 

> I'll have to update all my scripts... but its ok if somebody wants to 
> make this change (with index in 1,...,6 please).
Tuples are numbered from 0 in python, just like arrays in c/c++. Get
over that, it cannot be changed.
> 1/ Many users around are using sigma1,2,3 at the moment. More accessors 
> can be added but not sigma's removed.
> 2/ sigma1,2,3 are not averaged stresses but _prescribed_ stresses
> 3/ For actual stresses (the tuple above), average them in python if you 
> need, I see no reason to give access to 3 values only when there are 6.
OK, I didn't understand that.





References