yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #06990
Re: [Question #219806]: Cannot run the script for periodic simple shear test, with periodic boundary
Question #219806 on Yade changed:
https://answers.launchpad.net/yade/+question/219806
Status: Open => Answered
Christian Jakob proposed the following answer:
dear liqing jiao,
i ran your script and here are the problems:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "jiao-problem.py", line 76, in checkStress
print 'mean stress', stress.trance()/3.
AttributeError: 'Matrix3' object has no attribute 'trance'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "jiao-problem.py", line 97, in addData
b.shape.color=utils.scalarOnColorScale(b.stat.rot().norm(),0,pi/2.)
AttributeError: 'Body' object has no attribute 'stat'
the second one is easy to fix: use b.state.rot() instead of b.stat.rot()
in line 97 ...
for the first error trance() is no valid command. I think you can
replace line 76 with:
print 'mean stress', ( (stress[0,0] + stress[1,1] + stress[2,2])
/ 3. )
hope it helps,
christian
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.