<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Greetings,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
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? </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Best,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Maxime Toussaint</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> de la part de Khalid Hussain <khalidhussain1134@gmail.com><br>
<b>Envoyé :</b> 18 mai 2021 15:19<br>
<b>À :</b> gate-users <Gate-users@lists.opengatecollaboration.org><br>
<b>Objet :</b> [Gate-users] Repeating structures</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear GATE Experts,
<div><br>
</div>
<div>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<font color="#000000"> lead
material for hexagonal holes to develop a collimator in below picture</font>.</div>
<div><img alt="image.png" width="498" height="393" data-outlook-trace="F:1|T:1" src="cid:ii_koudcftb0"><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>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.</div>
<div><img alt="image.png" width="498" height="409" data-outlook-trace="F:1|T:1" src="cid:ii_koue0sup1"></div>
<div><br>
</div>
<div><b>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?</b></div>
<div><br>
</div>
<div>I build this geometry in above figure manually like</div>
<div><font size="1" color="#ff0000">## Row 1 column 1 Box no. A 1 <br>
/gate/aperture/daughters/name A1<br>
/gate/aperture/daughters/insert box <br>
/gate/A1/geometry/setXLength 0.2 cm <br>
/gate/A1/geometry/setYLength 0.2 cm<br>
/gate/A1/geometry/setZLength 0.15 cm <br>
/gate/A1/placement/setTranslation -4 4 0 cm <br>
/gate/A1/setMaterial Air <br>
/gate/A1/vis/forceWireframe <br>
/gate/A1/vis/setColor white <br>
## Row 1 column 2 Box no. A 2 <br>
/gate/aperture/daughters/name A2<br>
/gate/aperture/daughters/insert box <br>
/gate/A2/geometry/setXLength 0.2 cm <br>
/gate/A2/geometry/setYLength 0.2 cm<br>
/gate/A2/geometry/setZLength 0.15 cm <br>
/gate/A2/placement/setTranslation -3.8 4 0 cm <br>
/gate/A2/setMaterial Tungsten <br>
/gate/A2/vis/setColor magenta <br>
/gate/A2/vis/forceSolid <br>
## Row 1 column 3 Box no. A 3 <br>
/gate/aperture/daughters/name A3<br>
/gate/aperture/daughters/insert box <br>
/gate/A3/geometry/setXLength 0.2 cm <br>
/gate/A3/geometry/setYLength 0.2 cm<br>
/gate/A3/geometry/setZLength 0.15 cm <br>
/gate/A3/placement/setTranslation -3.6 4 0 cm <br>
/gate/A3/setMaterial Air <br>
/gate/A3/vis/forceWireframe <br>
/gate/A3/vis/setColor white <br>
## Row 1 column 4 Box no. A 4 <br>
/gate/aperture/daughters/name A4<br>
/gate/aperture/daughters/insert box <br>
/gate/A4/geometry/setXLength 0.2 cm <br>
/gate/A4/geometry/setYLength 0.2 cm<br>
/gate/A4/geometry/setZLength 0.15 cm <br>
/gate/A4/placement/setTranslation -3.4 4 0 cm <br>
/gate/A4/setMaterial Tungsten <br>
/gate/A4/vis/setColor magenta <br>
/gate/A4/vis/forceSolid <br>
## Row 1 column 5 Box no. A 5 </font><br>
<div><font size="1" color="#ff0000">.............................</font></div>
<div><b style=""><font color="#000000">In this way, the total lines of script are
</font><font color="#ff0000">15129 </font><font color="#000000">to produce the above picture, which is too slow and not a good approach.</font></b></div>
<div>
<div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><br>
</div>
<div>Thank you for your cooperation.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>
<div><font color="#666666"><b>KHALID HUSSAIN </b>|</font> <font color="#bf9000"><b>PhD Scholar</b></font></div>
<div><font color="#073763" face="times new roman, serif"><b>Universiti Putra Malaysia (UPM), Malaysia</b></font></div>
<div><font face="times new roman, serif">Email:<a href="mailto:hussain.khalid@student.upm.edu.my" target="_blank">hussain.khalid@student.upm.edu.my</a></font></div>
<div><font face="times new roman, serif">Cell: <font color="#0000ff"><u>+60-11-6455-2354</u></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tbody>
<tr>
<td style="width:55px; padding-top:13px"><a href="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" originalsrc="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" shash="FgdwCckBL0YEZ1X6lSUqTV+Zbq3zbdbcKnQI30ImLyujkNfVeuGLDjo76AXvRPyTpSjichhu7LldgMxOMEKMKGk/p38mXRX2I8LzImM6umqLqbw6mLXs0Uz3F9theaKP2Cd6xhxt0dokfN9izvebuS5+bPpwIoPK3Aia9PgQATQ=" target="_blank"><img alt="" width="46" height="29" style="width:46px; height:29px" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></a></td>
<td style="width:470px; padding-top:12px; color:#41424e; font-size:13px; font-family:Arial,Helvetica,sans-serif; line-height:18px">
Virus-free. <a href="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" originalsrc="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" shash="q1g1ZGG4+Eui9CbeLsc48SuMEzNRwoiV2mG9PiIjsPeEMTCFJ73vK5aABEFlPgefVWUNmHEElHiwcvIUgtklQ1iJjz8KfUa5VcCJh/O8U0Src0XEiflvxrtBMckogeSh3nFWjbEma1Tu3xf73IeQrY757paPHywj4t9wwt3S1Bg=" target="_blank" style="color:#4453ea">
www.avast.com</a> </td>
</tr>
</tbody>
</table>
<a href="#x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
</body>
</html>