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 rough ellipsoid 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 = EllipsoidVol (
30
# Create a multi-group neighbour table to contain the particles:
37
# Fill the volume with particles:
38
packer = InsertGenerator3D (
46
# Generate the packing
47
packer.generatePacking(
52
# write a geometry file in VTK format
54
fileName = "temp/geo_example9.vtu",
58
# write a geometry file in ESyS-Particle geo format
60
fileName = "temp/geo_example9.geo",