yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04097
Periodic simulations -> AttributeError: can't set attribute
Hi all,
If you have this problem (title) in periodic simulations after r2663, it
is most probably due to the fact that that Cell::trsf and Cell::refSize
are now read-only. I adapted all scripts in trunk, but your local
scripts will fail.
The solution is perhaps not visible enough, so I'm pasting it here :
Yade [5]: O.cell.trsf=Matrix3(1,0,0, 0,1,0, 0,0,1)
AttributeError: can't set attribute
Yade [6]: O.cell.trsf?
Docstring:
Current transformation matrix of the cell. _Change the value with
:yref:`Cell::setTrsf`_
Yade [7]: O.cell.refSize?
Docstring:
Reference size of the cell. _Change the value with
:yref:`Cell::setRefSize`_
Alternatively, you can use this (but it is not exactly equivalent) :
Yade [8]: O.cell.setInitHsize?
Docstring:
Define reference base vectors of the undeformed period. The
shape is arbitrary: a non-rectangular parallepiped can be defined as the
reference configuration, and will correspond to trsf=0.
More documentation coming soon.
If you have unexpected behaviour even after fixing this, please report.
If there are too many problems, I'll consider reverting the change.
Cheers.
Bruno
--
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________
Follow ups