Dear Qianqian,
I want to work with trajectory output to know the trajectory of the photon.
I use the following format:
[flux,det,vol,seed,traj]=mcxlab(cfg);
The number of photons I set in the simulation is: 1e8 (cfg.nphoton=1e8;)
I additionally set cfg.maxjumpdebug to be 1e8 (any value greater than this gives me an error), can you please explain to me why?
hi Mor,
ou misunderstood the meaning of "cfg.maxjumpdebug". This number
sets the maximum number of "jump positions", i.e. scattering sites
of all photons (plus launch position and exit position - these
define the key-points of the trajectory). It is not the number of
photons.
For example, if a photon on average takes ~100 scattering events
before exiting, the maxjumpdebug needs to be ~100xcfg.nphoton in
order to save all trajectories. This usually leads prohibitive
memory allocation and is not realistic (for example, if you run
1e8 photons, this takes 1e10^6^4 bytes = 223GB memory )
In addition at the end of the run, the following note appears in the command window:
retrieving fields ... WARNING: the saved trajectory positions (2006453278) are more than what your have specified (100000000), please use the --maxjumpdebug option to specify a greater number
this message tells you exactly what I mentioned above - it appears that in your setting, each photon on average takes 20 scattering events before exit, therefore you will need to set maxjumdebug to ~2006453278, however, mcx won't even run because you don't have that amount of memory in your GPU.
Qianqian
detected 126842 photons, total: 126842 transfer complete: 52350 ms
I would appreciate your help
Thank you
Mor Wainberg
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/1446a74d-acc1-4a82-907e-47495cde0af1n%40googlegroups.com.