<div dir="ltr"><div>Hi Sara,</div><div>The example I wrote before should do that (I didn't test it, but I have simulated similar sources before). One detail I missed previously is that you need to include the line "/gate/run/initialize" before defining your sources (but after defining innerCylinder1). <br></div><div><br></div><div>Martin<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 15, 2018 at 3:25 PM, Sara Zein <span dir="ltr"><<a href="mailto:saz2007@med.cornell.edu" target="_blank">saz2007@med.cornell.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div class="m_-5294878234595158321WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Martin,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">We want our cold source to be located inside a cylinder that has activity. When using the “forbid’ command we are trying to get a completely cold source without
 any activity. However, we are not able to eliminate the background activity from the container cylinder. We tried to apply the solutions suggested by the Gate users but till now we are not successful. We appreciate all the suggestions.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thank you
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Sara
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Martín Belzunce <<a href="mailto:martin.sure@gmail.com" target="_blank">martin.sure@gmail.com</a>>
<br>
<b>Sent:</b> Monday, May 14, 2018 3:32 PM<br>
<b>To:</b> Nicolas Karakatsanis <<a href="mailto:nicolas.karakatsanis@gmail.com" target="_blank">nicolas.karakatsanis@gmail.<wbr>com</a>><br>
<b>Cc:</b> gate-users <<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.<wbr>opengatecollaboration.org</a>>; Sara Zein <<a href="mailto:saz2007@med.cornell.edu" target="_blank">saz2007@med.cornell.edu</a>><br>
<b>Subject:</b> [EXTERNAL] Re: [Gate-users] "Forbid" command: cold source simulation inside a background hot source<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Nikolaos, Sara,<u></u><u></u></p>
<div>
<p class="MsoNormal">The forbid command should be used with the source TubeSource1. It's not necessary to define a new source for the cold region. In my experience, something like this should work:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">/gate/world/daughters/insert cylinder<br>
/gate/innerCylinder1/<wbr>placement/setTranslation 0.0 0.0 0.0 cm<br>
/gate/innerCylinder1/geometry/<wbr>setRmax 1.5 cm<br>
/gate/innerCylinder1/geometry/<wbr>setHeight 6.0 cm<br>
/gate/innerCylinder1/<wbr>setMaterial Water<br>
/gate/innerCylinder1/vis/<wbr>forceWireframe<br>
/gate/innerCylinder1/vis/<wbr>setColor blue</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">/gate/source/addSource TubeSource1<br>
/gate/source/TubeSource1/gps/<wbr>type Volume<br>
/gate/source/TubeSource1/gps/<wbr>shape Cylinder<br>
/gate/source/TubeSource1/gps/<wbr>radius 3.0 cm<br>
/gate/source/TubeSource1/gps/<wbr>halfz 3.0 cm<br>
/gate/source/TubeSource1/<wbr>setActivity 2000000 becquerel   #### to be specified<br>
/gate/source/TubeSource1/gps/<wbr>particle e+<br>
/gate/source/TubeSource1/<wbr>setForcedUnstableFlag true<br>
/gate/source/TubeSource1/gps/<wbr>energytype Fluor18<br>
/gate/source/TubeSource1/<wbr>setForcedHalfLife 6586.2 s<br>
/gate/source/TubeSource1/gps/<wbr>angtype iso<br>
/gate/source/TubeSource1/gps/<wbr>centre 0. 0. 0 cm</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">/gate/source/TubeSource1/gps/<wbr>Forbid innerCylinder1</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Kind regards,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Martin</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, May 9, 2018 at 7:02 PM, Nicolas Karakatsanis <<a href="mailto:nicolas.karakatsanis@gmail.com" target="_blank">nicolas.karakatsanis@gmail.<wbr>com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">Dear <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​GATE users<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">,<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​On behalf of my colleague, Dr. Sara Zein, I am forwarding you her question below. <u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Tahoma",sans-serif;color:#222222">We<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#222222;background:white"> would appreciate any help from the GATE community.</span><span style="font-family:"Tahoma",sans-serif">  ​<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​We would like<u></u><u></u></span></p>
</div>
<p class="MsoNormal"> to simulate a cylindrical radioactive source having a hollow center without activity.
<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​We are<u></u><u></u></span></p>
</div>
<p class="MsoNormal"> using the cold source command "Forbid" on the region <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​we wish<u></u><u></u></span></p>
</div>
<p class="MsoNormal"> to exclude from <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​our<u></u><u></u></span></p>
</div>
<p class="MsoNormal"> source. However the background activity from the larger source still persists.
<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal">Below you <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​may​<u></u><u></u></span></p>
</div>
<p class="MsoNormal">find <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​our​<u></u><u></u></span></p>
</div>
<p class="MsoNormal">code.<br>
<br>
/gate/source/addSource TubeSource1<br>
/gate/source/TubeSource1/gps/<wbr>type Volume<br>
/gate/source/TubeSource1/gps/<wbr>shape Cylinder<br>
/gate/source/TubeSource1/gps/<wbr>radius 3.0 cm<br>
/gate/source/TubeSource1/gps/<wbr>halfz 3.0 cm<br>
/gate/source/TubeSource1/<wbr>setActivity 2000000 becquerel   #### to be specified<br>
/gate/source/TubeSource1/gps/<wbr>particle e+<br>
/gate/source/TubeSource1/<wbr>setForcedUnstableFlag true<br>
/gate/source/TubeSource1/gps/<wbr>energytype Fluor18<br>
/gate/source/TubeSource1/<wbr>setForcedHalfLife 6586.2 s<br>
/gate/source/TubeSource1/gps/<wbr>angtype iso<br>
/gate/source/TubeSource1/gps/<wbr>centre 0. 0. 0 cm<br>
<br>
/gate/world/daughters/name innerCylinder1<br>
/gate/world/daughters/insert cylinder<br>
/gate/innerCylinder1/<wbr>placement/setTranslation 0.0 0.0 0.0 cm<br>
/gate/innerCylinder1/geometry/<wbr>setRmax 1.5 cm<br>
/gate/innerCylinder1/geometry/<wbr>setHeight 6.0 cm<br>
/gate/innerCylinder1/<wbr>setMaterial Water<br>
/gate/innerCylinder1/vis/<wbr>forceWireframe<br>
/gate/innerCylinder1/vis/<wbr>setColor blue<br>
<br>
/gate/source/addSource TubeSource2<br>
/gate/source/TubeSource2/gps/<wbr>type Volume<br>
/gate/source/TubeSource2/gps/<wbr>shape Cylinder<br>
/gate/source/TubeSource2/gps/<wbr>radius 1.5 cm<br>
/gate/source/TubeSource2/gps/<wbr>halfz 3 cm<br>
/gate/source/TubeSource2/<wbr>setActivity 2000000 becquerel   #### to be specified<br>
/gate/source/TubeSource2/gps/<wbr>particle gamma<br>
/gate/source/TubeSource2/gps/<wbr>monoenergy 511. keV<br>
/gate/source/TubeSource2/gps/<wbr>angtype iso<br>
/gate/source/TubeSource2/gps/<wbr>centre 0. 0. 0 cm<br>
/gate/source/TubeSource2/gps/<wbr>Forbid innerCylinder1<br>
/gate/source/TubeSource2/dump 1<br>
/gate/source/list<br>
 <br>
<br>
Thank you<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​ in advance​<u></u><u></u></span></p>
</div>
<p class="MsoNormal">,<br>
Regards<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">​Sara Zein​<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p><a name="m_-5294878234595158321_m_3955128217294367204_UNIQUE_ID_SafeHtml"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#e87722">Nikolaos (Nicolas) A.</span></b></a><span></span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#e87722">Karakatsanis,
 PhD, DABSNM</span></b><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black"> <br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">Assistant Professor of Biomedical Engineering in Radiology</span><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black"> <br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">Weill Cornell Medical College<br>
</span><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
</span><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#cf4520">Weill Cornell Medicine</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"> <br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">Division of Radiopharmaceutical Sciences, Department of Radiology</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"> <br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777"><a href="https://maps.google.com/?q=515+East+71st+Street&entry=gmail&source=g">515 East 71st Street</a>, S-120</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">,
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">New York, NY</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">10021</span><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0563c1"><a href="mailto:nak2032@med.cornell.edu" target="_blank">nak2032@med.cornell.edu</a> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opengatecollaboration.org_mailman_listinfo_gate-2Dusers&d=DwMFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=VfsR6_rx-bqevD9A9-mt0-rMqnRfC25GhavcXKPM5mM&m=_bdd5J4Pv-Q67rSDYkRE5PaxgVxj1DqDWKvNTIzy1OU&s=WUW4CKzjao8TTOC-NRqlPGQwnUBby-2kPBM-bT0PB8Q&e=" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>