I'm running a simulation involving many particles. How can I decrease the time for checking the overlap of geometries in my code when there are more than million particles in the geant4 code?
Would you like to check the overlap of geometry or would you like to reduce to computing time or would you like to checkout the effective running of the code when it is still running????
What kind of problem do you face? related to the code or to the characteristics of your computer???
In general, each code has the special variance reduction techniques. Ptobably you can find the some special methods in the guide of Geant4 .. try to read it, good luck
Sometimes in Monte Carlo simulations, you have to determine the number of primary particles, which is million or even billion. It's not strange and it's the same in all Monte Carlo codes. However, there are several variance reduction techniques to reduce simulation time.
But if you mean the overlap of geometries, this is another issue. You need to check geometry in line with the purpose of your study and it does not take time.