1
#############################################################
3
## Copyright (c) 2007-2011 by The University of Queensland ##
4
## Earth Systems Science Computational Centre (ESSCC) ##
5
## http://www.uq.edu.au/esscc ##
7
## Primary Business: Brisbane, Queensland, Australia ##
8
## Licensed under the Open Software License version 3.0 ##
9
## http://www.opensource.org/licenses/osl-3.0.php ##
11
#############################################################
14
#An example python script to generate a sphere of unbonded particles
16
# Define region extremities:
17
origin = Vector3(0.0,0.0,0.0)
19
minPoint = Vector3(-1.0*size,-1.0*size,-1.0*size)
20
maxPoint = Vector3(size,size,size)
22
# Define the volume to be filled with spheres:
23
sphereVol = SphereVol (
28
# Create a multi-group neighbour table to contain the particles:
35
# Fill the volume with particles:
36
packer = InsertGenerator3D (
44
# Generate the packing
45
packer.generatePacking(
50
# write a geometry file in VTK format
52
fileName = "temp/geo_example5.vtu",
56
# write a geometry file in ESyS-Particle geo format
58
fileName = "temp/geo_example5.geo",