yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10307
[Branch ~yade-pkg/yade/git-trunk] Rev 3775: corrected mistake in examples/test/triax.py
------------------------------------------------------------
revno: 3775
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Mon 2013-12-09 17:20:17 +0100
message:
corrected mistake in examples/test/triax.py
modified:
examples/concrete/triax.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'examples/concrete/triax.py'
--- examples/concrete/triax.py 2013-08-09 02:27:56 +0000
+++ examples/concrete/triax.py 2013-12-09 16:20:17 +0000
@@ -24,7 +24,7 @@
# prestress
preStress = -3e6,
# axial strain rate
- strainRate = -20,
+ strainRate = -100,
# assamlby parameters
rParticle = .075e-3, #
@@ -57,8 +57,9 @@
# spheres
pred = pack.inCylinder((0,0,0),(0,0,height),.5*width) if testType=='cyl' else pack.inAlignedBox((-.5*width,-.5*width,0),(.5*width,.5*width,height)) if testType=='cube' else None
sp=SpherePack()
-sp = pack.randomDensePack(pred,spheresInCell=2000,radius=rParticle,memoizeDb='/tmp/triaxTestOnCylinder.sqlite',material=concMat,returnSpherePack=True)
-spheres=sp.toSimulation(color=(0,1,1))
+sp = pack.randomDensePack(pred,spheresInCell=2000,radius=rParticle,memoizeDb='/tmp/triaxTestOnCylinder.sqlite',returnSpherePack=True)
+spheres=sp.toSimulation(color=(0,1,1),material=concMat)
+
# bottom and top of specimen. Will have prescribed velocity
bot = [O.bodies[s] for s in spheres if O.bodies[s].state.pos[2]<rParticle*bcCoeff]
top = [O.bodies[s] for s in spheres if O.bodies[s].state.pos[2]>height-rParticle*bcCoeff]