[Gate-users] Repeating structures

Maxime Toussaint Maxime.Toussaint at USherbrooke.ca
Wed May 19 05:26:06 CEST 2021


Greetings,

While I am not an expert in GATE, it seems that the "generic repeater" would be adequate for your situation. Did you try it and if yes, was there a problem with that approach?

Best,
Maxime Toussaint
________________________________
De : Gate-users <gate-users-bounces at lists.opengatecollaboration.org> de la part de Khalid Hussain <khalidhussain1134 at gmail.com>
Envoyé : 18 mai 2021 15:19
À : gate-users <Gate-users at lists.opengatecollaboration.org>
Objet : [Gate-users] Repeating structures

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.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.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<mailto:hussain.khalid at student.upm.edu.my>
Cell: +60-11-6455-2354

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C961898ab7a394ef5a3e108d91a31e9bb%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637569624687188471%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QAaQSzQnQi3mlqVTS%2FyMGhuoKDZdlXQlnxhWvayz2ag%3D&reserved=0>      Virus-free. www.avast.com<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail&data=04%7C01%7Cmaxime.toussaint%40usherbrooke.ca%7C961898ab7a394ef5a3e108d91a31e9bb%7C3a5a8744593545f99423b32c3a5de082%7C0%7C0%7C637569624687198464%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iZ3NdoZrI1atpq07ZPCNp4iltiOu4XEWXBtpTVjWshs%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/f2024d15/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 137249 bytes
Desc: image.png
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/f2024d15/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 94773 bytes
Desc: image.png
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/f2024d15/attachment-0003.png>


More information about the Gate-users mailing list