[Gate-users] Cubic source
e12005820
e12005820 at student.tuwien.ac.at
Wed May 5 14:38:35 CEST 2021
Dear Julia and Francisco,
many thanks for your help! It seems it was sufficient to ignore the
angles lines:
/gate/source/NAME/gps/pos/type Volume
/gate/source/NAME/gps/shape Para
/gate/source/NAME/gps/halfx 0.05 cm
/gate/source/NAME/gps/halfy 0.05 cm
/gate/source/NAME/gps/halfz 0.05 cm
#/gate/source/NAME/gps/paralp 90. deg
#/gate/source/NAME/gps/parthe 90. deg
#/gate/source/NAME/gps/parphi 90. deg
/gate/source/NAME/gps/centre 0.0 0.0 0.0 cm
/gate/source/NAME/visualize 1000 red
/gate/source/NAME/gps/angtype iso
Thank you again,
Daria
On 2021-05-05 13:26, Brosch-Lenz, Julia wrote:
> Dear Daria,
>
> I quickly checked with one of my macros where I use a cubic source. I
> noticed you have inserted a "pos" which I don't have and also I
> uncommented the angles. With no guarantee that this might solve your
> problem as I am not a GATE expert, you could test this:
>
> /gate/source/NAME/gps /type Volume
> /gate/source/NAME/gps/shape Para
> /gate/source/NAME/gps/halfx 0.05 cm
> /gate/source/NAME/gps/halfy 0.05 cm
> /gate/source/NAME/gps/halfz 0.05 cm
> #/gate/source/NAME/gps/paralp 90. deg
> #/gate/source/NAME/gps/parthe 90. deg
> #/gate/source/NAME/gps/parphi 90. Deg
> /gate/source/NAME/gps/angtype iso
> /gate/source/NAME/gps/centre 0.0 0.0 0.0 cm
> /gate/source/NAME/visualize 1000 red
>
> To get more information as terminal output about how GATE handles your
> source, you can further add this line below the others:
> /gate/source/NAME/dump 1
> This often helped me to find mistakes.
>
> Please let us know, if this solved your problem.
>
> Best,
> Julia
>
> -----Ursprüngliche Nachricht-----
> Von: Gate-users <gate-users-bounces at lists.opengatecollaboration.org>
> Im Auftrag von e12005820
> Gesendet: Mittwoch, 5. Mai 2021 13:12
> An: Gate-users at lists.opengatecollaboration.org
> Betreff: [Gate-users] Cubic source
>
> Dear all,
> I have defined a phantom for a PET simulation and I would like to
> insert a cubic ion source in the center, with size 1x1x1 mm. I
> therefore defined a parallelepiped shape, by specifying the
> half-lengths and the angles, as suggested in documentation:
>
> /gate/source/NAME/gps/pos/type Volume
> /gate/source/NAME/gps/shape Para
> /gate/source/NAME/gps/halfx 0.05 cm
> /gate/source/NAME/gps/halfy 0.05 cm
> /gate/source/NAME/gps/halfz 0.05 cm
> /gate/source/NAME/gps/paralp 90. deg
> /gate/source/NAME/gps/parthe 90. deg
> /gate/source/NAME/gps/parphi 90. deg
> /gate/source/NAME/gps/centre 0.0 0.0 0.0 cm /gate/source/NAME/visualize
> 1000 red
>
> Still, it doesn't work and I can't figure out the mistake. Also in
> terminal I don't receive errors: the source is simply not inserted. I
> don't have any problem with other different shapes, such as spheres or
> cylinders:
>
> /gate/source/NAME/gps/pos/type Volume
> /gate/source/NAME/gps/shape Sphere
> /gate/source/NAME/gps/radius 0.05 cm
> /gate/source/NAME/gps/centre 0. 0. 0. cm /gate/source/NAME/visualize
> 1000 red
>
> Can you give me an hint on what might be wrong?
> Many thanks in advance!
> Daria Ferrara
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list