← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2878: - A few fixes on deprecated attributes.

 

------------------------------------------------------------
revno: 2878
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2011-06-30 12:01:42 +0200
message:
  - A few fixes on deprecated attributes.
modified:
  scripts/test/periodic-triax.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/periodic-triax.py'
--- scripts/test/periodic-triax.py	2011-01-20 14:55:15 +0000
+++ scripts/test/periodic-triax.py	2011-06-30 10:01:42 +0000
@@ -5,8 +5,11 @@
 from yade import pack,log,qt
 log.setLevel('PeriTriaxController',log.TRACE)
 O.periodic=True
-O.cell.refSize=(.1,.1,.1)
-#O.cell.Hsize=Matrix3(0.1,0,0, 0,0.1,0, 0,0,0.1)
+
+O.cell.hSize=Matrix3(0.1, 0, 0,
+		     0 ,0.1, 0,
+		    0, 0, 0.1)
+		    
 sp=pack.SpherePack()
 radius=5e-3
 num=sp.makeCloud(Vector3().Zero,O.cell.refSize,radius,.2,500,periodic=True) # min,max,radius,rRelFuzz,spheresInCell,periodic
@@ -15,7 +18,7 @@
 
 O.engines=[
 	ForceResetter(),
-	InsertionSortCollider([Bo1_Sphere_Aabb()],nBins=5,sweepLength=.05*radius),
+	InsertionSortCollider([Bo1_Sphere_Aabb()],nBins=5,verletDist=.05*radius),
 	InteractionLoop(
 		[Ig2_Sphere_Sphere_Dem3DofGeom()],
 		[Ip2_FrictMat_FrictMat_FrictPhys()],
@@ -24,7 +27,7 @@
 	#PeriTriaxController(maxUnbalanced=0.01,relStressTol=0.02,goal=[-1e4,-1e4,0],stressMask=3,globUpdate=5,maxStrainRate=[1.,1.,1.],doneHook='triaxDone()',label='triax'),
 	#using cell inertia
 	PeriTriaxController(dynCell=True,mass=0.2,maxUnbalanced=0.01,relStressTol=0.02,goal=(-1e4,-1e4,0),stressMask=3,globUpdate=5,maxStrainRate=(1.,1.,1.),doneHook='triaxDone()',label='triax'),
-	NewtonIntegrator(damping=.2,homotheticCellResize=True),
+	NewtonIntegrator(damping=.2),
 ]
 O.dt=utils.PWaveTimeStep()
 O.run();