|Message: Detailed tips||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
As requested from a user for the details of the "tricks", following is my reply sent to him. > For this aim i use a voxel based phantom read by > Geant4. The total numer of voxel is 292300. Unfortunately the > maximum number that geant4 is able to handle in a simulation > is (on my machine) only 140304. Can you tell me some trick to > make G4 able to use all the 292300 voxels? I don't know why your machine cannot handle more than about 140k copies, but it is not an issue. Anyway, having a map of more than 100k entries is something that is not recommended... The tricks you can utilize are suspending tracks and use of stacking mechanism. The basic concept is - Concentrate to a small region with a smaller map. - Finalize calculation of this small region before working for another regions. Here is the recipe. 1) Divide your mother volume (which should have 292300 cubes in total) into, say, 25 boxes. All of these 25 boxes can share the same logical volume. 2) Fill 11692 (= 292300 / 25) cubes with parameterization into the box logical volume. 3) Prepare 25 waiting stacks. The number of waiting stacks can be set by SetNumberOfAdditionalStacks() method of G4StackManager. 4) Load the material map of 11692 entries which should correspond to the box where the primary particle gets into. 5) In your stepping action, once a track comes to a boundary of a box to go into the next box, suspend it. In your stacking action, push the suspended track into a waiting stack which represents the neighboring box that the track is getting into. Of course, secondary particles generated by the ordinary physics processes should be pushed into the urgent stack. 6) Continue the simulation until the urgent stack becomes empty. Once it becomes empty, choose one waiting stack which has the largest number of entries, and transfer all suspended tracks in that stack to the urgent stack. At the same moment, load another material map of 11692 entries for this new box. 7) Repeat the procedures 5) and 6) until all stacks become empty. That's it. The number 25 is just an example. You may want to tune this number to get the best performance.
|Inline Depth:||Outline Depth:||Add message:|