4
#### short description of script
5
print 'This script shows the use of the function hexaNet of module pack (interactions are not initialised)'
7
#### define parameters for the net
18
# properties of particles
21
#### startAtCorner=True
22
kw = {'color':[1,1,0],'wire':True,'highlight':False,'fixed':False,'material':-1}
25
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[0,0,0], xLength=Lx, yLength=Ly, mos=mos, a=a, b=b, startAtCorner=True, isSymmetric=True, **kw )
26
O.bodies.append(netpack)
28
print 'Real net length in x-direction [m]: ', lx
29
print 'Real net length in y-direction [m]: ', ly
33
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[0.4,0,0], xLength=Lx, yLength=Ly, mos=mos, a=a, b=b, startAtCorner=True, isSymmetric=False, **kw )
34
O.bodies.append(netpack)
36
print 'Real net length in x-direction [m]: ', lx
37
print 'Real net length in y-direction [m]: ', ly
41
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[0,-0.4,0], xLength=Lx, yLength=Ly+0.05, mos=mos, a=a, b=b, startAtCorner=True, isSymmetric=True, **kw )
42
O.bodies.append(netpack)
44
print 'Real net length in x-direction [m]: ', lx
45
print 'Real net length in y-direction [m]: ', ly
49
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[0.4,-0.4,0], xLength=Lx, yLength=Ly+0.05, mos=mos, a=a, b=b, startAtCorner=True, isSymmetric=False, **kw )
50
O.bodies.append(netpack)
52
print 'Real net length in x-direction [m]: ', lx
53
print 'Real net length in y-direction [m]: ', ly
56
#### startAtCorner=False
57
kw = {'color':[1,0,0],'wire':True,'highlight':False,'fixed':False,'material':-1}
60
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[1,0,0], xLength=Lx, yLength=Ly, mos=mos, a=a, b=b, startAtCorner=False, isSymmetric=True, **kw )
61
O.bodies.append(netpack)
63
print 'Real net length in x-direction [m]: ', lx
64
print 'Real net length in y-direction [m]: ', ly
68
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[1.4,0,0], xLength=Lx, yLength=Ly, mos=mos, a=a, b=b, startAtCorner=False, isSymmetric=False, **kw )
69
O.bodies.append(netpack)
71
print 'Real net length in x-direction [m]: ', lx
72
print 'Real net length in y-direction [m]: ', ly
76
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[1,-0.4,0], xLength=Lx, yLength=Ly+0.05, mos=mos, a=a, b=b, startAtCorner=False, isSymmetric=True, **kw )
77
O.bodies.append(netpack)
79
print 'Real net length in x-direction [m]: ', lx
80
print 'Real net length in y-direction [m]: ', ly
84
[netpack,lx,ly] = hexaNet( radius=radius, cornerCoord=[1.4,-0.4,0], xLength=Lx, yLength=Ly+0.05, mos=mos, a=a, b=b, startAtCorner=False, isSymmetric=False, **kw )
85
O.bodies.append(netpack)
87
print 'Real net length in x-direction [m]: ', lx
88
print 'Real net length in y-direction [m]: ', ly