yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07519
[Branch ~yade-dev/yade/trunk] Rev 2833: - invert x and y axis for getting stress (the convention changed in r2830)
------------------------------------------------------------
revno: 2833
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2011-04-22 11:49:03 +0200
message:
- invert x and y axis for getting stress (the convention changed in r2830)
modified:
scripts/test/checks/checkTestTriax.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'scripts/test/checks/checkTestTriax.py'
--- scripts/test/checks/checkTestTriax.py 2011-03-15 08:17:29 +0000
+++ scripts/test/checks/checkTestTriax.py 2011-04-22 09:49:03 +0000
@@ -19,11 +19,11 @@
print O.engines[4].stress(0)[1],O.engines[4].stress(1)[1], O.engines[4].stress(2)[0], O.engines[4].stress(3)[0], O.engines[4].stress(4)[2], O.engines[4].stress(5)[2]
os.system('gnuplot -e "plot \'./WallStresses\' using 1:3; replot'+checksPath+'\'/data/WallStressesCheckTest\' using 1:3; replot '+checksPath+'\'/data/WallStresses\' using 1:4; replot '+checksPath+'\'/data/WallStressesCheckTest\' using 1:4; pause -1"')
-if abs((O.engines[4].stress(1)[1]-107157.2)/107157.2)>tolerance :
+if abs((O.engines[4].stress(3)[1]-107157.2)/107157.2)>tolerance :
print "Triaxial checkTest: difference on peak stress"
errors+=1
-if abs((O.engines[4].stress(3)[0]-50058.7)/50058.7)>tolerance :
- print "Triaxial checkTest: difference on peak stress"
+if abs((O.engines[4].stress(1)[0]-50058.7)/50058.7)>tolerance :
+ print "Triaxial checkTest: difference on confining stress"
errors+=1
if (errors):