I want to simulate a X-ray tube, and improve it’s efficiency with biasing (dirctional bremsstrahlung splitting).
If I add the following commands into my run.mac file.
/process/em/setDirectionalSplitting true
/process/em/setDirectionalSplittingTarget 0 0 30 mm # x, y, z components of center
/process/em/setDirectionalSplittingRadius 6 mm
/process/em/setSecBiasing eBrem Target 50 300 keV # region, splitting factor, max energy
/process/em/setSecBiasing Rayl Target 50 300 keV
/process/em/setSecBiasing phot Target 50 300 keV
/process/em/setSecBiasing compt Target 50 300 keV
/process/em/setSecBiasing annihil Target 50 300 keV
The program would use more and more system memory gradually, fanally taking up all of the usable memory, leading to a “segmentation fault” or “Killed”.
I guess it’s because the program forget to delete the photons it do not want to track, leaving them wasting the memory (just like what I did when I tried to modify the UBS example to DBS).
Have anyone met the same problem before? How can I solve it? Or can I get to the people who’s in charge of this function?