Line 22... |
Line 22... |
22 |
|
22 |
|
23 |
grid_list = [for (j = [MLAB_grid_xoffset : MLAB_grid: x_size], i = [MLAB_grid_yoffset :MLAB_grid: y_size]) |
23 |
grid_list = [for (j = [MLAB_grid_xoffset : MLAB_grid: x_size], i = [MLAB_grid_yoffset :MLAB_grid: y_size]) |
24 |
if ((j>(x_size-10) && i>(y_size-10)) || (j<10 && i<10) || (j<10 && i>(y_size-10)) || (j>(x_size-10) && i<10) ) [j, i] ]; |
24 |
if ((j>(x_size-10) && i>(y_size-10)) || (j<10 && i<10) || (j<10 && i>(y_size-10)) || (j>(x_size-10) && i<10) ) [j, i] ]; |
25 |
|
25 |
|
26 |
|
26 |
|
27 |
//------------parameters--------------------------- |
27 |
//------------ Safety grid parameters--------------------------- |
28 |
|
28 |
|
29 |
nY = 8; |
29 |
nY = 8; |
30 |
nX = 6; |
30 |
nX = 6; |
31 |
|
31 |
|
32 |
|
32 |
|
33 |
meshX=x_size-4*pile_radius; |
33 |
meshX=x_size-4*pile_radius; |
34 |
meshY=y_size-4*pile_radius; |
34 |
meshY=y_size-4*pile_radius; |
35 |
|
35 |
|
36 |
// width of solid part of grid |
36 |
// width of solid part of grid |
37 |
meshSolid=1.2; |
37 |
meshSolid=1.2; |
38 |
// width of blank part of grid |
- |
|
39 |
//meshSpaceX=(y_size-4*pile_radius)/8; |
- |
|
40 |
//meshSpaceY=(y_size-4*pile_radius)/8; |
- |
|
41 |
// thickness in Z direction |
- |
|
42 |
|
- |
|
43 |
|
- |
|
44 |
//------------------------------------------------- |
- |
|
45 |
//nX=meshX/(meshSolid+meshSpaceX); |
- |
|
46 |
//nY=meshY/(meshSolid+meshSpaceY); |
- |
|
47 |
|
38 |
|
48 |
meshSpaceX = (meshX - meshSolid*nX)/nX; |
39 |
meshSpaceX = (meshX - meshSolid*nX)/nX; |
49 |
meshSpaceY = (meshY - meshSolid*nY)/nY; |
40 |
meshSpaceY = (meshY - meshSolid*nY)/nY; |
50 |
|
41 |
|
51 |
|
42 |
|