← Back to team overview

yade-dev team mailing list archive

Re: Periodic simulations (continued)

 

>
>     I didn't think about that. Indeed, it should work (did somebody
>     try?),
>
> At least this is what I am doing and it seems to work well.
Ok.
>  
>
>
>     tempHSize = Hsize
>     trsf = identity
>     Hsize = tempHSize
>
>     This means one has to undo manualy what "trsf=" is doing silently.
>     Not really intuitive...
>
> Perhaps not so much but can you really uncouple trsf and refSize or
> Hsize? The method you introduced is going to be quite flexible and I
> hope that using the same method for the new reference state work. I
> will try it anyway.

Oh, yes, uncoupling trsf and the rest is easy. trsf and Hsize are
uncoupled in Yade code already, and refSize is not used. The only
problem is existing scripts are assuming a coupling, and they use refSize.
I just added a transitory "resetTrsf" function that you can use for
resetting tsrf (r2674). It will do the same as trsf = identity without
the side effects: you don't have to modify refSize or to use the
tempHsize trick above. You type O.cell.resetTrsf() to make the current
state the zero-strain state, and that is all.

Cheers.

Bruno

References