~yade-dev/yade/0.80

« back to all changes in this revision

Viewing changes to examples/test/pack-cloud.py

  • Committer: Anton Gladky
  • Date: 2012-05-02 21:50:42 UTC
  • Revision ID: gladky.anton@gmail.com-20120502215042-v1fa9r65usqe7kfk
0.80.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
""" Generate random periodic sphere packing using SpherePack::makeCloud """
 
2
from yade import pack
 
3
p=pack.SpherePack()
 
4
O.cellSize=Vector3(10,10,10)
 
5
print p.makeCloud(Vector3(0,0,0),Vector3(10,10,10),.5,.5,200,True)
 
6
for s in p:
 
7
        O.bodies.append(utils.sphere(s[0],s[1]))
 
8
O.engines=[BoundDispatcher([Bo1_Sphere_Aabb()])]
 
9
from yade import qt
 
10
qt.View()