<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">Dear Gate users,<br clear="all"></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">I hope everyone is doing well. </div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">I faced a problem since long time ago regarding dose absorption by actors using a dynamic applicator (moving source for creating a uniform pattern) in barcytherapy. As I tried different approaches, the actors do not score any dose and the dose value is always zero. </div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">I added my code along with this email. </div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">I kindly ask any professional GATE users to please have a look at this code and find out the problem. I really need help in this regard and lost plenty of time but with little luck. </div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">Thank you in advance. </div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000"><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;color:#000000">################# VISULIZATION   ##############<br>/control/execute   data/vis.mac<br># MATERIALS<br>#=====================================================<br>#Define Materials Database<br>/gate/geometry/setMaterialDatabase     data/GateMaterials.db<br><br># World<br>/gate/world/geometry/setXLength    80 cm<br>/gate/world/geometry/setYLength    80 cm<br>/gate/world/geometry/setZLength    80 cm<br>/gate/world/setMaterial             Air<br>/gate/world/vis/setColor            blue<br>/gate/world/vis/setVisible          1          <br>/gate/world/vis/forceSolid<br>/gate/world/vis/forceWireframe<br>/gate/geometry/rebuild<br><br># ******phantom ********<br><br>/gate/world/daughters/name           phantom<br>/gate/world/daughters/insert         box<br>/gate/phantom/placement/setTranslation           0.0 0.0 0.0 cm<br>/gate/phantom/geometry/setXLength                30  cm<br>/gate/phantom/geometry/setYLength                22 cm<br>/gate/phantom/geometry/setZLength                30 cm<br>/gate/phantom/setMaterial                        Water<br>/gate/phantom/vis/setColor                       green<br>/gate/phantom/vis/forceWireframe<br>#/gate/phantom/vis/forceSolid<br>/gate/phantom/vis/setVisible                    1<br>/gate/phantom/attachPhantomSD<br><br>## vagina<br>/gate/phantom/daughters/name                 vagina<br>/gate/phantom/daughters/insert               cylinder<br>/gate/vagina/geometry/setRmin                1.7 cm<br>/gate/vagina/geometry/setRmax                2.0 cm<br>/gate/vagina/geometry/setHeight              8 cm<br>/gate/vagina/placement/setTranslation        0.0 0 11 cm<br>/gate/vagina/placement/setRotationAxis       0 0 1<br>/gate/vagina/setMaterial                     Body<br>/gate/vagina/vis/setVisible <br>/gate/vagina/vis/setColor                    green<br>/gate/vagina/vis/forceWireframe<br>/gate/vagina/vis/setVisible                  1<br>#/gate/vagina/vis/forceSolid<br>/gate/vagina/attachPhantomSD<br>/gate/geometry/rebuild<br>##################################################<br>########## target definition #####################<br>##################################################<br><br>/gate/phantom/daughters/name                      vaginatarget<br>/gate/phantom/daughters/insert                    box<br>/gate/vaginatarget/geometry/setXLength              0.8 cm<br>/gate/vaginatarget/geometry/setYLength              2.5 cm<br>/gate/vaginatarget/geometry/setZLength              1.5 cm<br>/gate/vaginatarget/placement/setTranslation         -2.4 0 11 cm<br>/gate/vaginatarget/setMaterial                      Body<br>/gate/vaginatarget/vis/setVisible <br>/gate/vaginatarget/vis/setColor                     white<br>/gate/vaginatarget/vis/forceWireframe<br>/gate/vaginatarget/vis/setVisible                   1<br>/gate/vaginatarget/vis/forceSolid<br>/gate/vaginatarget/attachPhantomSD<br>#/gate/geometry/rebuild<br>##### starting of rectum detector placement<br><br># rectum diameter 2.5 cm<br><br>/gate/phantom/daughters/name                 rectum<br>/gate/phantom/daughters/insert               cylinder<br>/gate/rectum/geometry/setRmin                1.05 cm<br>/gate/rectum/geometry/setRmax                1.25 cm<br>/gate/rectum/geometry/setHeight              10 cm<br>/gate/rectum/placement/setTranslation        0.0 -4.25 10 cm<br>/gate/rectum/placement/setRotationAxis       0 0 1<br>/gate/rectum/setMaterial                     Body<br>/gate/rectum/vis/setVisible <br>/gate/rectum/vis/setColor                    red<br>/gate/rectum/vis/forceWireframe<br>/gate/rectum/vis/setVisible                  1<br>/gate/rectum/vis/forceSolid<br>/gate/rectum/attachPhantomSD<br>/gate/geometry/rebuild<br><br># rectum air inside cylinder <br><br>/gate/phantom/daughters/name                      rectumair<br>/gate/phantom/daughters/insert                    cylinder<br>/gate/rectumair/geometry/setRmin                  0.0 cm<br>/gate/rectumair/geometry/setRmax                  1.05 cm<br>/gate/rectumair/geometry/setHeight                10 cm<br>/gate/rectumair/placement/setTranslation          0.0 -4.25 10 cm<br>/gate/rectumair/placement/setRotationAxis         0 0 1<br>/gate/rectumair/setMaterial                       Air<br>/gate/rectumair/vis/setVisible <br>/gate/rectumair/vis/setColor                      white<br>/gate/rectumair/vis/forceWireframe<br>/gate/rectumair/vis/setVisible                    1<br>/gate/rectumair/vis/forceSolid<br>/gate/rectumair/attachPhantomSD<br>/gate/geometry/rebuild<br><br>##### starting of bladder detector placement <br><br>##### bladder <br><br>/gate/phantom/daughters/name                       bladder<br>/gate/phantom/daughters/insert                     sphere<br>/gate/bladder/geometry/setRmin                     0 cm<br>/gate/bladder/geometry/setRmax                     3.5 cm<br>/gate/bladder/placement/setTranslation             0.0 5.5 11 cm<br>/gate/bladder/setMaterial                          Body<br>/gate/bladder/vis/setVisible <br>/gate/bladder/vis/setColor                         red<br>#/gate/bladder/vis/forceWireframe<br>#/gate/bladder/vis/forceSolid<br>/gate/bladder/vis/setVisible                      1<br>/gate/bladder/attachPhantomSD<br>#/gate/geometry/rebuild<br><br><br>####################<br># aplicator<br><br><br>/gate/phantom/daughters/name                     outerlayer<br>/gate/phantom/daughters/insert                   cylinder<br>/gate/outerlayer/geometry/setRmin                1.0 cm<br>/gate/outerlayer/geometry/setRmax                1.50 cm<br>/gate/outerlayer/geometry/setHeight              6.3 cm<br>/gate/outerlayer/placement/setTranslation        0.0 0 11 cm<br>/gate/outerlayer/placement/setRotationAxis       0 0 1<br>/gate/outerlayer/setMaterial                     Plexiglass<br>/gate/outerlayer/vis/setVisible <br>/gate/outerlayer/vis/setColor                    red<br>/gate/outerlayer/vis/forceWireframe<br>/gate/outerlayer/vis/setVisible                  1<br>#/gate/outerlayer/vis/forceSolid<br>/gate/outerlayer/attachPhantomSD<br>/gate/geometry/rebuild<br><br>##### central steel rod 8mm diamter <br><br>/gate/outerlayer/daughters/name                  centralrod<br>/gate/outerlayer/daughters/insert                cylinder<br>/gate/centralrod/geometry/setRmin                0  cm<br>/gate/centralrod/geometry/setRmax                1.0 cm<br>/gate/centralrod/geometry/setHeight              6.3 cm<br>/gate/centralrod/placement/setTranslation        0.0 0 0 cm<br>/gate/centralrod/placement/setRotationAxis       0 0 1<br>/gate/centralrod/setMaterial                     316L<br>/gate/centralrod/vis/setVisible <br>/gate/centralrod/vis/setColor                    blue<br>/gate/centralrod/vis/forceWireframe<br>/gate/centralrod/vis/setVisible                  1<br>#/gate/centralrod/vis/forceSolid<br>/gate/centralrod/attachPhantomSD<br>/gate/geometry/rebuild<br><br>##############air cylynders #########################################3<br><br>/gate/outerlayer/daughters/name                     airbox<br>/gate/outerlayer/daughters/insert                   box<br>/gate/airbox/geometry/setXLength                   0.6 cm<br>/gate/airbox/geometry/setYLength                   0.3 cm<br>/gate/airbox/geometry/setZLength                   6.3 cm<br>/gate/airbox/placement/setTranslation              1.25 0.0 0 cm<br>#/gate/airbox/placement/setRotationAxis            0 0 1<br>/gate/airbox/setMaterial                           Air<br>/gate/airbox/vis/setVisible <br>/gate/airbox/vis/setColor                          green<br>/gate/airbox/vis/forceWireframe<br>/gate/airbox/vis/setVisible                        1<br>#/gate/airbox/vis/forceSolid<br>/gate/airbox/attachPhantomSD<br>#/gate/geometry/rebuild<br><br>/gate/airbox/repeaters/insert          ring<br>/gate/airbox/ring/setRepeatNumber      1<br>/gate/airbox/ring/setFirstAngle            140 deg<br>#/gate/airbox/ring/setAngularSpan         180 deg<br><br><br>### sources definition <br>###########################<br>###################################################### Source Capsule ####################################<br>/gate/airbox/daughters/name               sc2<br>/gate/airbox/daughters/insert            cylinder<br>/gate/sc2/geometry/setRmin                   0 mm<br>/gate/sc2/geometry/setRmax                  0.5 mm<br>/gate/sc2/geometry/setHeight                0.75 mm<br>/gate/sc2/placement/setTranslation          -0.25  0 -0.2125 cm<br>/gate/sc2/setMaterial                       316L<br>/gate/sc2/vis/setColor                      red<br>/gate/sc2/vis/forceSolid                    1<br>/gate/sc2/geometry/setPhiStart              0 deg<br>/gate/sc2/geometry/setDeltaPhi              360 deg<br>/gate/sc2/attachPhantomSD<br>/gate/sc2/vis/setVisible                     1<br>#/gate/geometry/rebuild<br><br><br>/gate/airbox/daughters/name                  sc4 #core cover<br>/gate/airbox/daughters/insert                cylinder<br>/gate/sc4/geometry/setRmin                  0.35 mm<br>/gate/sc4/geometry/setRmax                  0.5 mm<br>/gate/sc4/geometry/setHeight                3.5 mm<br>/gate/sc4/placement/setTranslation          -0.25  0 0 cm<br>/gate/sc4/setMaterial                        316L<br>/gate/sc4/vis/setColor                       red<br>/gate/sc4/vis/forceSolid              <br>/gate/sc4/geometry/setPhiStart              0 deg<br>/gate/sc4/geometry/setDeltaPhi              360 deg<br>/gate/sc4/attachPhantomSD<br>/gate/sc4/vis/setVisible                    1<br>#/gate/geometry/rebuild<br><br>/gate/airbox/daughters/name                 sc5 #airlayer<br>/gate/airbox/daughters/insert               cylinder<br>/gate/sc5/geometry/setRmin                  0.25 mm<br>/gate/sc5/geometry/setRmax                   0.35 mm<br>/gate/sc5/geometry/setHeight                 3.5 mm<br>/gate/sc5/placement/setTranslation          -0.25  0 0 cm<br>/gate/sc5/setMaterial                        Air<br>/gate/sc5/vis/setColor                       white<br>/gate/sc5/geometry/setPhiStart              0 deg<br>/gate/sc5/geometry/setDeltaPhi              360 deg<br>/gate/sc5/vis/forceSolid   <br>/gate/sc5/attachPhantomSD<br>/gate/sc5/vis/setVisible                     1<br>#/gate/geometry/rebuild<br><br>/gate/airbox/daughters/name              sc6 #left cylinder<br>/gate/airbox/daughters/insert            cylinder<br>/gate/sc6/geometry/setRmin               0 mm<br>/gate/sc6/geometry/setRmax               0.5 mm<br>/gate/sc6/geometry/setHeight             0.75 mm<br>/gate/sc6/placement/setTranslation       -0.25  0 0.2125 cm<br>/gate/sc6/setMaterial                    316L<br>/gate/sc6/vis/setColor                   green<br>/gate/sc6/vis/forceSolid            <br>/gate/sc6/geometry/setPhiStart           0 deg<br>/gate/sc6/geometry/setDeltaPhi          360 deg<br>/gate/sc6/attachPhantomSD<br>/gate/sc6/vis/setVisible                 1<br>#/gate/geometry/rebuild<br><br><br>/gate/airbox/daughters/name              wire #2mm cable<br>/gate/airbox/daughters/insert            cylinder<br>/gate/wire/geometry/setRmin             0 mm<br>/gate/wire/geometry/setRmax             0.45 mm<br>/gate/wire/geometry/setHeight           2 mm<br>/gate/wire/placement/setTranslation     -0.25  0 0.35 cm<br>/gate/wire/setMaterial                   304<br>/gate/wire/vis/setColor                  blue<br>/gate/wire/geometry/setPhiStart         0 deg<br>/gate/wire/geometry/setDeltaPhi         360 deg<br>/gate/wire/attachPhantomSD<br>/gate/wire/vis/setVisible                1<br>/gate/wire/vis/forceSolid          <br>#/gate/geometry/rebuild<br><br>########################### source seed #####################<br><br>/gate/airbox/daughters/name              sourceSeed<br>/gate/airbox/daughters/insert            cylinder<br>/gate/sourceSeed/geometry/setRmin           0 mm<br>/gate/sourceSeed/geometry/setRmax           0.25 mm<br>/gate/sourceSeed/geometry/setHeight         3.5 mm<br>/gate/sourceSeed/placement/setTranslation  -0.25 0 0 cm<br>/gate/sourceSeed/setMaterial                Cobalt<br>/gate/sourceSeed/vis/setColor               blue<br>/gate/sourceSeed/vis/setVisible             1<br>/gate/sourceSeed/vis/forceSolid     <br>#=====================================================<br># PHYSICS<br>#=====================================================<br><br>/gate/physics/addPhysicsList emstandard_opt3<br>/gate/physics/Gamma/SetCutInRegion      phantom 10 mm<br>/gate/physics/Electron/SetCutInRegion   phantom 10 mm<br>/gate/physics/Positron/SetCutInRegion   phantom 10 mm<br><br>#/gate/physics/Gamma/SetCutInRegion      sc4 0.1 mm<br>#/gate/physics/Electron/SetCutInRegion   sc4 1 m<br><br>/gate/physics/displayCuts<br><br>#=====================================================<br># DETECTORS<br>#=====================================================<br>### Target ##############<br>/gate/actor/addActor                               DoseActor  targetdose<br>/gate/actor/targetdose/attachTo                    vaginatarget <br>/gate/actor/targetdose/stepHitType                 random<br>/gate/actor/targetdose/setVoxelSize               0.2  0.2  0.2 cm<br>/gate/actor/targetdose/save                       output/target/targetdose.mhd<br>/gate/actor/targetdose/saveEveryNSeconds          60<br>/gate/actor/targetdose/enableDose                 true<br>/gate/actor/targetdose/enableUncertaintyDose      true<br>/gate/actor/targetdose/enableSquaredDose          true<br><br># filter<br>/gate/actor/targetdose/addFilter    energyFilter<br>/gate/actor/targetdose/energyFilter/setEmin  0.01 MeV<br>/gate/actor/targetdose/energyFilter/setEmax  2.5 MeV<br><br>#=====================================================<br># INITIALISATION<br>#=====================================================<br>/gate/run/initialize<br><br>#=====================================================<br># BEAMS<br>#=====================================================<br><br>#Description of co-60 source<br><br>/gate/source/addSource      co60s           gps<br>/gate/source/co60s/gps/particle             gamma<br>/gate/source/co60s/gps/energytype           UserSpectrum<br>/gate/source/co60s/gps/setSpectrumFile      data/co60spectrum.txt<br>/gate/source/co60s/gps/hist/type             energy<br>/gate/source/co60s/attachTo                  sourceSeed<br>/gate/source/co60s/gps/type                 Volume<br>/gate/source/co60s/gps/shape                Cylinder<br>/gate/source/co60s/gps/radius               0.025 cm<br>/gate/source/co60s/gps/halfz                0.175 cm<br>/gate/source/co60s/gps/ang/type             iso<br>/gate/source/co60s/visualize        10000      red   5<br>/gate/source/list<br><br>#=====================================================<br># START ROTATION<br>#=====================================================<br>/gate/outerlayer/moves/insert         rotation<br>/gate/outerlayer/rotation/setSpeed     1 deg/s<br>/gate/outerlayer/rotation/setAxis      0 0  1<br>#/gate/outerlayer/placement/setRotationAngle       80 deg<br>#/gate/outerlayer/orbiting/setPoint1            0  1 0 cm<br>#/gate/outerlayer/orbiting/setPoint2            -1  0 0 cm<br><br><br>/gate/application/setTimeSlice     1 s<br>/gate/application/setTimeStart     0.  s<br>/gate/application/setTimeStop      80.  s<br>/gate/application/startDAQ<br><br>#=====================================================<br># START BEAMS<br>#=====================================================<br><br>#/gate/application/noGlobalOutput<br>#/gate/run/enableGlobalOutput  true<br><br>#/gate/random/setEngineSeed default<br>#/gate/random/setEngineSeed auto<br>#/gate/random/setEngineSeed 123456789<br><br>/gate/random/setEngineName MersenneTwister<br>/gate/random/setEngineSeed auto<br>/gate/application/setTotalNumberOfPrimaries 30000000<br>/gate/application/start<br><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="color:rgb(0,0,0)"><i><font face="comic sans ms, sans-serif">Kind Regards</font></i></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Musa Joya</font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Ph.D. candidate in Medical Physics </font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Tehran University of Medical Sciences</font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Tehran, Iran &</font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Lecturer of Medical Physics </font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Kabul University of Medical Sciences</font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Kabul, Afghanistan</font></em></p><p style="color:rgb(0,0,0)"><em><font face="comic sans ms, sans-serif">Mobile and Telegram & WhatsApp: +989381560693</font></em></p></div></div></div></div>