yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01541
[svn] r1886 - trunk/scripts
Author: gladky_anton
Date: 2009-07-27 08:58:46 +0200 (Mon, 27 Jul 2009)
New Revision: 1886
Modified:
trunk/scripts/simple-scene-parallel.py
trunk/scripts/simple-scene-player.py
trunk/scripts/simple-scene-video.py
Log:
1. Updated some scripts according to new syntax
Modified: trunk/scripts/simple-scene-parallel.py
===================================================================
--- trunk/scripts/simple-scene-parallel.py 2009-07-24 15:30:47 UTC (rev 1885)
+++ trunk/scripts/simple-scene-parallel.py 2009-07-27 06:58:46 UTC (rev 1886)
@@ -36,7 +36,7 @@
# (contact law as well as gravity modify physical actions, which are, once computed, used in the integrator)
StandAloneEngine('ElasticContactLaw'),
DeusExMachina('GravityEngine',{'gravity':[0,0,-9.81]}),
- DeusExMachina('NewtonsDampedLaw',{'damping':0.2})
+ NewtonsDampedLaw(damping=.2)
]
from yade import utils
Modified: trunk/scripts/simple-scene-player.py
===================================================================
--- trunk/scripts/simple-scene-player.py 2009-07-24 15:30:47 UTC (rev 1885)
+++ trunk/scripts/simple-scene-player.py 2009-07-27 06:58:46 UTC (rev 1886)
@@ -20,7 +20,7 @@
MetaEngine('InteractionPhysicsMetaEngine',[EngineUnit('SimpleElasticRelationships')]),
StandAloneEngine('ElasticContactLaw'),
DeusExMachina('GravityEngine',{'gravity':[0,0,-9.81]}),
- DeusExMachina('NewtonsDampedLaw',{'damping':0.2}),
+ NewtonsDampedLaw(damping=.2),
###
### NOTE this extra engine.
###
Modified: trunk/scripts/simple-scene-video.py
===================================================================
--- trunk/scripts/simple-scene-video.py 2009-07-24 15:30:47 UTC (rev 1885)
+++ trunk/scripts/simple-scene-video.py 2009-07-27 06:58:46 UTC (rev 1886)
@@ -20,7 +20,7 @@
MetaEngine('InteractionPhysicsMetaEngine',[EngineUnit('SimpleElasticRelationships')]),
StandAloneEngine('ElasticContactLaw'),
DeusExMachina('GravityEngine',{'gravity':[0,0,-9.81]}),
- DeusExMachina('NewtonsDampedLaw',{'damping':0.2})
+ NewtonsDampedLaw(damping=.2)
]
from yade import utils
o.bodies.append(utils.box(center=[0,0,0],extents=[.5,.5,.5],dynamic=False,color=[1,0,0],young=30e9,poisson=.3,density=2400))