Dear Yas Mag,
Maybe it helps to solve your question.
I have two possible options for you:
-
MGDRAW: This is a routine where you can obtain the trajectory of your particles, If I understand from your question you just need to know from where they are coming, in that case, obtaining all the trajectories you will be able to find this out.
-
BXDRAW: This is a routine in mgdraw.f, but here you take only the information when you cross from a region to another. You can find it in the user routines in the ‘/src/user/’ folder.
One more thing that could be useful for you is this other thread about MGDRAW:
I hope you can solve the problem with this. In case you need more help (maybe with the routine) or because it does not solve your problem just let me know.
Best,
André