[Gate-users] How to Simulate rotating source ?
Marc Chamberland
mchamber at connect.carleton.ca
Thu Apr 5 17:59:34 CEST 2012
Hi Xiaoyin!
The code you copied is for the old way of making a source move. This old way uses confinement and is extremely inefficient.
Instead, in Gate v6.1 you can simply attach any source to a moving volume and the source will move with the volume. Use the following command to attach a source to a volume:
/gate/source/[Source name]/attachTo [Volume Name]
Now, if I remember correctly (I'd suggest you check this by yourself, just to make sure!), when you attach a source to a volume, its position becomes relative to the volume. So if you want the source in the centre of the volume, use:
/gate/source/[Source name]/gps/centre 0. 0. 0. cm
To move the volume, refer to the chapter about "Defining a geometry" in the Gate Wiki: http://wiki.opengatecollaboration.org/index.php/Users_Guide_V6.1:Defining_a_geometry
I hope this helps!
Marc
__________________________
Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)
Le 2012-04-05 à 10:25 AM, Xiaoyin a écrit :
> Dear Gaters,
>
> I'm working with a Gate V6.1, (Geant 4.9.4.p02, and CLHEP 2.1.0.1) and trying to define a moving / rotating source.
>
> I copied the code found in the user guide in wiki:
>
> /gate/MovingSource/geometry/setRmax 5. cm
> /gate/MovingSource/geometry/setRmin 0. cm
> /gate/MovingSource/geometry/setHeight 20. cm
> /gate/MovingSource/moves/insert translation
> /gate/MovingSource/translation/setSpeed 0 0 0.04 cm/s
>
> but my gate stops at the 1st line and says*/command not found/*.
>
> Does anyone else has tried with the MovingSource? Or the moving source is no longer usable in GateV6.1?
>
> Thank you very much for your kindly help in advance!
>
> best regards,
>
> Xiaoyin
>
>
> _______________________________________________
> 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