[Gate-users] Material assignment in daughter volume
Juan Sebastian Useche Parra
js.useche10 at uniandes.edu.co
Fri May 6 09:36:29 CEST 2022
Hi all,
I’m doing some X-rays simulation, and I found that when a volume is created as a daughter of another volume, with a different geometry than a box, the daughter volume always gets assigned the material of the mother volume, even though I’m doing the assignment manually. Does somebody know if this is a bug or if I’m doing something wrong in the following macro?
#===============================================================================
#World
#===============================================================================
/gate/world/geometry/setXLength 2 m
/gate/world/geometry/setYLength 2 m
/gate/world/geometry/setZLength 2 m
/gate/world/setMaterial Vacuum
/gate/world/vis/setColor black
/gate/world/vis/setVisible False
#===============================================================================
#Simple detector
#===============================================================================
/gate/world/daughters/name simple_detector
/gate/world/daughters/insert box
/gate/simple_detector/geometry/setXLength 1.4 cm
/gate/simple_detector/geometry/setZLength 0.2 cm
/gate/simple_detector/geometry/setYLength 1.4 cm
/gate/simple_detector/placement/setTranslation 0. 0. 0 cm
/gate/simple_detector/setMaterial CZT
/gate/simple_detector/vis/setColor blue
/gate/simple_detector/vis/forceSolid
#===============================================================================
#main_cylinder
#===============================================================================
/gate/world/daughters/name main_cylinder
/gate/world/daughters/insert cylinder
/gate/main_cylinder/geometry/setRmin 2.75 mm
/gate/main_cylinder/geometry/setRmax 3.05 mm
/gate/main_cylinder/geometry/setHeight 1.72 cm
/gate/main_cylinder/placement/setTranslation 0.3 0. 1 cm
/gate/main_cylinder/placement/setRotationAxis 0 1 0
/gate/main_cylinder/placement/setRotationAngle 90 deg
/gate/main_cylinder/setMaterial HPMC
/gate/main_cylinder/vis/setColor yellow
/gate/main_cylinder/vis/setLineWidth 3
/gate/main_cylinder/vis/forceWireframe
#===============================================================================
#small_box
#===============================================================================
/gate/main_cylinder/daughters/name small_box
/gate/main_cylinder/daughters/insert box
/gate/small_box/geometry/setXLength 1 mm
/gate/small_box/geometry/setYLength 1 mm
/gate/small_box/geometry/setZLength 2 mm
/gate/small_box/placement/setTranslation 0. 0. 0 mm
/gate/small_box/setMaterial Glass_Pyrex
/gate/small_box/vis/setColor white
/gate/small_box/vis/forceSolid
/gate/small_box/repeaters/insert linear
/gate/small_box/linear/setRepeatNumber 3
/gate/small_box/linear/setRepeatVector -1.1 0. 0 mm
Cheers,
Juan Sebastian Useche
Albert-Ludwigs-Universität Freiburg
Freiburger Materialforschungszentrum (FMF)
Stefan-Meier-Str. 21
79104 Freiburg
Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220506/d5aa66f0/attachment-0001.html>
More information about the Gate-users
mailing list