← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1886: small update examples/STLImportedTest.py

 

------------------------------------------------------------
revno: 1886
committer: Sergei D. <sega@think>
branch nick: trunk
timestamp: Thu 2009-12-10 18:26:07 +0300
message:
  small update examples/STLImportedTest.py
modified:
  examples/STLImporterTest.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 'examples/STLImporterTest.py'
--- examples/STLImporterTest.py	2009-12-10 15:13:23 +0000
+++ examples/STLImporterTest.py	2009-12-10 15:26:07 +0000
@@ -37,20 +37,18 @@
 	## Resets forces and momenta the act on bodies
 	BexResetter(),
 	## Associates bounding volume to each body.
-	BoundDispatcher([ InteractingSphere2AABB(), InteractingFacet2AABB() ]),
+	BoundDispatcher([InteractingSphere2AABB(),InteractingFacet2AABB()]),
 	## Using bounding boxes find possible body collisions.
 	InsertionSortCollider(),
-	## Create geometry information about each potential collision.
-	InteractionGeometryDispatcher([
-		InteractingSphere2InteractingSphere4SpheresContactGeometry(),
-		InteractingFacet2InteractingSphere4SpheresContactGeometry()
-	]),
-	## Create physical information about the interaction.
-	InteractionPhysicsDispatcher([
-		Ip2_SimleViscoelasticMat_SimpleViscoelasticMat_SimpleViscoelasticPhys()
-	]),
-    ## Constitutive law
-	ConstitutiveLawDispatcher([ Law2_Spheres_Viscoelastic_SimpleViscoelastic() ]),
+	## Interactions
+	InteractionDispatchers(
+		## Create geometry information about each potential collision.
+		[InteractingSphere2InteractingSphere4SpheresContactGeometry(), InteractingFacet2InteractingSphere4SpheresContactGeometry()],
+		## Create physical information about the interaction.
+		[Ip2_SimleViscoelasticMat_SimpleViscoelasticMat_SimpleViscoelasticPhys()],
+		## Constitutive law
+		[Law2_Spheres_Viscoelastic_SimpleViscoelastic()],
+	),
 	## Apply gravity
 	GravityEngine(gravity=[0,-9.81,0]),
 	## Cundall damping must been disabled!