[Gate-users] Source not confined properly, spills outside confinement volume

Marc Chamberland MarcChamberland at cmail.carleton.ca
Tue Mar 11 00:09:09 CET 2014


Thanks for the tip, Uwe!

I looked at the latest source code of Gate available to the public and I think the User's Guide is outdated about this command. You are right, no "_P" is needed at the end of the volume name for the confine (or forbid) command.

(Technically, according to the source code, the user should add the tag "_phys" to the volume name for the confine command; but if you leave it out, the code adds the tag by itself, so...)

Cheers,
Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On Mar 10, 2014, at 17:10, Pietrzyk, Uwe <u.pietrzyk at fz-juelich.de<mailto:u.pietrzyk at fz-juelich.de>> wrote:


Hi Ida,

we once ran into a similar problem and the solution was
to use (now for your example) the line

/gate/source/F18_upper/gps/confine upperinterior

instead of your original
/gate/source/F18_upper/gps/confine upperinterior_P

Hence, simply remove the "_P". We checked it and it
works for our examples

Kind regards and best wishes,

Uwe Pietrzyk
/----------------------------------------------------------------------
Prof. Dr. Uwe Pietrzyk
Diplom-Physiker
Institut für Neurowissenschaften und Medizin / INM-4
Forschungszentrum Jülich GmbH
52425 Jülich
Tel: +49-2461-61 4763
Fax: +49-2461-61 2820
Mobil: +49-162-103-4871
eMail: U.Pietrzyk at fz-juelich.de<mailto:U.Pietrzyk at fz-juelich.de>
http://www.fz-juelich.de/inm<http://www.fz-juelich.de/inb/inb-3/>
&
Bergische Universität Wuppertal
Fachbereich C - Physik / D.08.01
Gaußstr. 20
42097 Wuppertal
Tel: +49-(0)202-439-3523
Fax: +49-(0)202-439-2811
eMail: Uwe.Pietrzyk at physik.uni-wuppertal.de<mailto:Uwe.Pietrzyk at physik.uni-wuppertal.de>
http://www.medizinphysik.uni-wuppertal.de<http://www.medizinphysik.uni-wuppertal.de/>
----------------------------------------------------------------------/


On 10.03.2014, at 20:52, Ida Häggström wrote:

Hello and thanks for your reply!

Yes, I did run a short simulation (I also thought it might have been just the visualization), but unfortunately when looking at the *.raw output images it shows that the source has indeed spilled out. I get scattered and true coincidences originating from the spilled out areas.

If I can't find a solution I guess I'm left with doing a voxelized source...

Thanks again!
Ida



On Mon, Mar 10, 2014 at 6:34 PM, Marc Chamberland <MarcChamberland at cmail.carleton.ca<mailto:MarcChamberland at cmail.carleton.ca>> wrote:
Hi Ida,

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.)

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: http://article.gmane.org/gmane.comp.science.opengate.user/3109/match=source+visualize

My first instinct is that this may be related.

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On Mar 10, 2014, at 11:34, Ida Häggström <ida.haggstrom at radfys.umu.se<mailto:ida.haggstrom at radfys.umu.se><mailto:ida.haggstrom at radfys.umu.se<mailto:ida.haggstrom at radfys.umu.se>>> wrote:

Hello!

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.

Any ideas how to solve this?

Thank you in advance! Sincerely,
Ida

#       P H A N T O M
/gate/world/daughters/name upperinterior
/gate/world/daughters/insert cylinder
/gate/upperinterior/placement/setTranslation 0.0 -3.5 -3.7 cm
/gate/upperinterior/geometry/setRmax 14.7 cm
/gate/upperinterior/geometry/setRmin  0.0 cm
/gate/upperinterior/geometry/setHeight 21.4 cm
/gate/upperinterior/geometry/setPhiStart 0. deg
/gate/upperinterior/geometry/setDeltaPhi 180. deg
/gate/upperinterior/setMaterial Water
/gate/upperinterior/vis/forceWireframe
/gate/upperinterior/vis/setColor blue

#       S O U R C E
/gate/source/addSource F18_upper
/gate/source/F18_upper/setActivity 1  becquerel
/gate/source/F18_upper/gps/particle e+
/gate/source/F18_upper/setForcedUnstableFlag true
/gate/source/F18_upper/setForcedHalfLife 6586.2 s
/gate/source/F18_upper/gps/energytype Fluor18
/gate/source/F18_upper/gps/type Volume
/gate/source/F18_upper/gps/shape Cylinder
/gate/source/F18_upper/gps/radius 14.7 cm
/gate/source/F18_upper/gps/halfz  10.7 cm
/gate/source/F18_upper/gps/angtype iso
/gate/source/F18_upper/gps/centre 0.0 -3.5 -3.7 cm
/gate/source/F18_upper/gps/confine upperinterior_P
/gate/source/F18_upper/visualize 1000 cyan 2


<source_confinement.PNG>_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org><mailto:Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140310/1dae249f/attachment.html>


More information about the Gate-users mailing list