<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Ida,
<div><br>
</div>
<div>Did you try a short simulation with your macro and did you confirm that the source is not properly confined? (For example, by looking at the source position distribution in the Root output.)</div>
<div><br>
</div>
<div>The reason I'm asking is that, in the past, I've found limitations in the Geant4 visualization code. For example, see this thread from the mailing list: <a href="http://article.gmane.org/gmane.comp.science.opengate.user/3109/match=source+visualize">http://article.gmane.org/gmane.comp.science.opengate.user/3109/match=source+visualize</a></div>
<div><br>
</div>
<div>My first instinct is that this may be related.</div>
<div><br>
</div>
<div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Marc</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>__________________________</div>
<div><br>
</div>
<div>Marc Chamberland, MSc</div>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)</div>
</span></div>
<br>
<div>
<div>On Mar 10, 2014, at 11:34, Ida Häggström <<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hello!
<div><br>
</div>
<div>I'm trying to confine a source to a particular phantom geometry, but cannot get it to work properly. Part of the source spills out outside the confinement volume. Below are codes for the phantom + source and a visualization image where you can see the
issue.</div>
<div><br>
</div>
<div>Any ideas how to solve this? </div>
<div><br>
</div>
<div>Thank you in advance! Sincerely, </div>
<div>Ida</div>
<div><br>
</div>
<div># P H A N T O M<br>
</div>
<div>
<div>/gate/world/daughters/name upperinterior</div>
<div>/gate/world/daughters/insert cylinder</div>
<div>/gate/upperinterior/placement/setTranslation 0.0 -3.5 -3.7 cm</div>
<div>/gate/upperinterior/geometry/setRmax 14.7 cm</div>
<div>/gate/upperinterior/geometry/setRmin 0.0 cm</div>
<div>/gate/upperinterior/geometry/setHeight 21.4 cm</div>
<div>/gate/upperinterior/geometry/setPhiStart 0. deg</div>
<div>/gate/upperinterior/geometry/setDeltaPhi 180. deg</div>
<div>/gate/upperinterior/setMaterial Water</div>
<div>/gate/upperinterior/vis/forceWireframe</div>
<div>/gate/upperinterior/vis/setColor blue</div>
</div>
<div><br>
</div>
<div># S O U R C E</div>
<div>/gate/source/addSource F18_upper<br>
</div>
<div>/gate/source/F18_upper/setActivity 1 becquerel</div>
<div>/gate/source/F18_upper/gps/particle e+</div>
<div>/gate/source/F18_upper/setForcedUnstableFlag true</div>
<div>/gate/source/F18_upper/setForcedHalfLife 6586.2 s</div>
<div>/gate/source/F18_upper/gps/energytype Fluor18</div>
<div>/gate/source/F18_upper/gps/type Volume</div>
<div>/gate/source/F18_upper/gps/shape Cylinder</div>
<div>/gate/source/F18_upper/gps/radius 14.7 cm</div>
<div>/gate/source/F18_upper/gps/halfz 10.7 cm</div>
<div>/gate/source/F18_upper/gps/angtype iso</div>
<div>/gate/source/F18_upper/gps/centre 0.0 -3.5 -3.7 cm</div>
<div>/gate/source/F18_upper/gps/confine upperinterior_P</div>
<div>/gate/source/F18_upper/visualize 1000 cyan 2 </div>
<div><br>
</div>
<div><br>
</div>
</div>
<span><source_confinement.PNG></span>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</blockquote>
</div>
<br>
</div>
</body>
</html>