[Gate-users] Placements File

Marc Chamberland MarcChamberland at cmail.carleton.ca
Mon Aug 11 20:40:38 CEST 2014


I'm not sure what you're trying to do. You want to repeat a volume thousands of times and each copy has a different location? And those volumes do not move in time?

If so, then I suggest you use the generic repeater move. It would look like this:

/gate/originalVolume/moves/insert genericRepeaterMove
/gate/originalVolume/genericRepeaterMove/setPlacementsFilename myvolume.placements

Then, the file:

###### List of placement (translation and rotation)
###### Column 1      is rotationAngle in degree
###### Columns 2,3,4 are rotation axis
###### Columns 5,6,7 are translation in mm
Time s
NumberOfPlacements 1000
Rotation deg
Translation mm
#Time  # Copy 1             # Copy 2           # Copy 3   .... (all the way to # Copy 1000)
0      0  1 0 0   20  0  0       0 1 0 0   80  0  0     0 1 0 0    -60  0  0  ....


What you might run into is memory limitations. I have no idea how Gate (or Geant) handles those generic repeaters, so I don't know if there is a limit to how many copies of one volume you can have. You only need one line (time = 0), because your volumes are not moving in time.

I hope this helps!

Marc



__________________________

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

On Aug 11, 2014, at 14:29, Amy Meldrum <ameldru at g.clemson.edu> wrote:

> Would you happen to know if setting the Time = 0, and the Rotation = 0 for all of the placements would be allowable? I basically just want to use this file to write my thousands of locations for a volume, and I can generate the X, Y, and Z coordinates of every location.
> 
> -Amy
> 
> 
> On Mon, Aug 11, 2014 at 2:20 PM, Amy Meldrum <ameldru at g.clemson.edu> wrote:
> Thanks! I'll try to slowly modify the file and incorporate it into my simulations.
> 
> -Amy
> 
> 
> On Mon, Aug 11, 2014 at 2:11 PM, Marc Chamberland <MarcChamberland at cmail.carleton.ca> wrote:
> Hi Amy,
> 
> I used it on one volume, but I would assume it works on multiple volumes, each with their own placements file (or perhaps they all can share the same file if you're using relative translations?).
> 
> Anyway, here's an example. The first column is the time in sec, then the rotation angle in degrees, then the rotation axis (I also don't use rotation, so I leave it as 0° around the x-axis), then the translation. This is using absolute translation i.e. the last 3 numbers are the absolute x, y, z coordinates of the volume (its location).
> 
> Let me know if that helps.
> 
> Marc
> 
> 
> 
> __________________________
> 
> Marc Chamberland, MSc
> PhD candidate
> Department of Physics
> Carleton University
> Ottawa (ON)
> 
> 
> 
> 



More information about the Gate-users mailing list