[Gate-users] Repeating structures
Khalid Hussain
khalidhussain1134 at gmail.com
Tue May 18 21:19:33 CEST 2021
Dear GATE Experts,
In GATE, we have repeated structures, like a cubic array, linear repeaters,
etc which repeat the same geometry with a given number of repetitions along
the x and y-axis but for all repeating structures the material is same, i.e
lead material for hexagonal holes to develop a collimator in below picture.
[image: image.png]
If we want to repeat the geometrical structure same as the above cubic
array, but with two materials rather than one. For example, in the below
image, the magenta color squares have material lead while black squares
have material Air. All squares have identical geometry but some have lead
material and some have Air material according to user-defined pattern.
[image: image.png]
*Can somebody let me know that how can we repeat the same geometrical
structure with material one at some places and other material at other
places as I showed you in the above image?*
I build this geometry in above figure manually like
## Row 1 column 1 Box no. A 1
/gate/aperture/daughters/name A1
/gate/aperture/daughters/insert box
/gate/A1/geometry/setXLength 0.2 cm
/gate/A1/geometry/setYLength 0.2 cm
/gate/A1/geometry/setZLength 0.15 cm
/gate/A1/placement/setTranslation -4 4 0 cm
/gate/A1/setMaterial Air
/gate/A1/vis/forceWireframe
/gate/A1/vis/setColor white
## Row 1 column 2 Box no. A 2
/gate/aperture/daughters/name A2
/gate/aperture/daughters/insert box
/gate/A2/geometry/setXLength 0.2 cm
/gate/A2/geometry/setYLength 0.2 cm
/gate/A2/geometry/setZLength 0.15 cm
/gate/A2/placement/setTranslation -3.8 4 0 cm
/gate/A2/setMaterial Tungsten
/gate/A2/vis/setColor magenta
/gate/A2/vis/forceSolid
## Row 1 column 3 Box no. A 3
/gate/aperture/daughters/name A3
/gate/aperture/daughters/insert box
/gate/A3/geometry/setXLength 0.2 cm
/gate/A3/geometry/setYLength 0.2 cm
/gate/A3/geometry/setZLength 0.15 cm
/gate/A3/placement/setTranslation -3.6 4 0 cm
/gate/A3/setMaterial Air
/gate/A3/vis/forceWireframe
/gate/A3/vis/setColor white
## Row 1 column 4 Box no. A 4
/gate/aperture/daughters/name A4
/gate/aperture/daughters/insert box
/gate/A4/geometry/setXLength 0.2 cm
/gate/A4/geometry/setYLength 0.2 cm
/gate/A4/geometry/setZLength 0.15 cm
/gate/A4/placement/setTranslation -3.4 4 0 cm
/gate/A4/setMaterial Tungsten
/gate/A4/vis/setColor magenta
/gate/A4/vis/forceSolid
## Row 1 column 5 Box no. A 5
.............................
*In this way, the total lines of script are 15129 to produce the above
picture, which is too slow and not a good approach.*
Thank you for your cooperation.
Regards
*KHALID HUSSAIN *| *PhD Scholar*
*Universiti Putra Malaysia (UPM), Malaysia*
Email:hussain.khalid at student.upm.edu.my
Cell: *+60-11-6455-2354*
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/073be3c8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 137249 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/073be3c8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 94773 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/073be3c8/attachment-0003.png>
More information about the Gate-users
mailing list