<div dir="ltr">Hello, <div><br></div><div style>there is, in theory, no limitation, but there is a memory leak when using gps source (from G4) that prevent to use too many sources. Anyway, if you plan to use 1000s of sources, I think the best way is to use a voxelized source if possible in your case, or, better, to write a new source type that fulfill your needs. For that, have a look at the file GateVSource, GateSourceMgr in the source code and create your own by inheriting from GateVSource (like for example GateSourcePhaseSpace or GateSourceLinacBeam). </div>
<div style><br></div><div style>If your new source type is generic enough, it could even be integrated in next versions of Gate.</div><div style><br></div><div style>Sincerely, </div><div style>David</div><div style><br>
</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 5:05 AM, 山中 琢 <span dir="ltr"><<a href="mailto:takuyama@med.hokudai.ac.jp" target="_blank">takuyama@med.hokudai.ac.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Gaters,<br><br>I've been trying to set a background source distribution for a NEMA phantom which has a complicated shape, so I tried using forbid and confine command.<br>
But it didn't go well, it only gave me tons of errors and breaks, so now I'm using randomly placed multiple point sources to imitate the background source.<br>
<br>Another question arises here; how many sources GATE can handle? When I ran a simulation with more than 10000 point sources, it seems to be frozen upon reading the source part.<br>A part of my source macro is given below, and it goes on for 10000 times.<br>
Should I use voxelized source instead?<br>Or, is there any way to set a background source activity for a given volume?<br><br>Thanks in advance.<br><br>Taku<br><br>------<br>system:<br>MacOS10.7.5<br>GATE6.1<br><br>/gate/source/addSource 1<br>
/gate/source/1/gps/centre -4.71928 -14.9742 1.68563 cm<br>/gate/source/1/setActivity 5000. becquerel<br>/gate/source/1/gps/particle e+<br>/gate/source/1/gps/energytype Fluor18<br>/gate/source/1/gps/angtype iso<br>
/gate/source/1/setForcedUnstableFlag true<br>/gate/source/1/setForcedHalfLife 6586 s<br>/gate/source/1/gps/type Point<br><br>/gate/source/addSource 2<br>/gate/source/2/gps/centre -8.4103 0.36047 -16.3684 cm<br>
/gate/source/2/setActivity 5000. becquerel<br>/gate/source/2/gps/particle e+<br>/gate/source/2/gps/energytype Fluor18<br>/gate/source/2/gps/angtype iso<br>/gate/source/2/setForcedUnstableFlag true<br>/gate/source/2/setForcedHalfLife 6586 s<br>
/gate/source/2/gps/type Point<br clear="all"><br>and so on...<span class="HOEnZb"><font color="#888888"><br><br>-- <br>Hokkaido University, Graduate school of medicine, medical physics and engineering D1<br>北海道大学 大学院 医学研究科 医学物理工学分野 D1<br>
Taku Yamanaka<br>山中 琢<br>
<br><a href="mailto:takuyama@med.hokudai.ac.jp" target="_blank">takuyama@med.hokudai.ac.jp</a><br>--
</font></span><br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br><br clear="all"><div><br></div>
-- <br><div dir="ltr">David Sarrut, Phd<br>Chargé de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div>
</div>
</div>