[Gate-users] Source definition in STL complex geometry
Josh Knowland
jknowland at lucernodynamics.com
Tue Jan 15 18:12:42 CET 2019
Hello Ashok, I do this too. Here is how:
Define geometry using STL. Location and size are from the STL file itself. Make sure your STL file is saved in the units you want.
/gate/world/daughters/name Cube1
/gate/world/daughters/insert tessellated
/gate/Cube1/geometry/setPathToSTLFile ../STL_Files/Cube1.stl
/gate/ Cube1/setMaterial Water
Then create a source that is larger than your STL file's bounding box. It is best to calculate the bounding box of the STL because making the source much much larger impacts performance.
Once you know the size of the source based on the bounding box, create it like this
/gate/source/addSource src_Cube1
/gate/source/ src_Cube1/gps/particle e+
/gate/source/ src_Cube1/gps/energytype Fluor18
/gate/source/ src_Cube1/setForcedUnstableFlag true
/gate/source/ src_Cube1/setForcedHalfLife 6586 s
/gate/source/ src_Cube1/setActivity 0.01 mCi
/gate/source/ src_Cube1gps/type Volume
/gate/source/ src_Cube1/gps/shape Para
/gate/source/ src_Cube1/gps/centre 0.000 0.000 0.000 mm
/gate/source/ src_Cube1/gps/halfx 50.000 mm
/gate/source/ src_Cube1/gps/halfy 50.000 mm
/gate/source/ src_Cube1/gps/halfz 50.000 mm
/gate/source/ src_Cube1/gps/angtype iso
/gate/source/ src_Cube1/gps/confine Cube1_phys
It is important that the source "src_Cube1" encompasses the geometry "Cube1" from the STL. Also, you have to add "_phys" to the end of you geometry name in the confine statement at the end.
I hope this helps,
Josh
-----Original Message-----
From: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> On Behalf Of Ashok Tiwari
Sent: Tuesday, January 15, 2019 12:03 PM
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] Source definition in STL complex geometry
Hello Community,
I was wondering about the background source definition in STL complex geometry. For my simulation, I made a STL file of human chest (closed volume, with interior organs as well), now I want to fill the volume with F-18 source (background). Is there a way to fill the geometry?
Regards,
Ashok
_______________________________________________
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