[Gate-users] Repeating structures
Khalid Hussain
khalidhussain1134 at gmail.com
Wed May 19 07:41:54 CEST 2021
Dear Maxime,
Thanks a lot. generic repeater works perfectly in this case!
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>
On Wed, May 19, 2021 at 8:26 AM Maxime Toussaint <
Maxime.Toussaint at usherbrooke.ca> wrote:
> 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: 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://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>
> <#m_4527792437363981112_x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210519/5bb693f8/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/5bb693f8/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/5bb693f8/attachment-0003.png>
More information about the Gate-users
mailing list