InverseLight / ValoMC

Monte Carlo software for simulating light propagation
https://inverselight.github.io/ValoMC/
Other
44 stars 14 forks source link

simulation recording #29

Open Jaycee0602 opened 6 days ago

Jaycee0602 commented 6 days ago

Hi, Fantanstic work! Is there any method to record the simulation process? If so, please let me know how.

Thanks, Tieming

aaleino commented 6 days ago

Hi,

Could you clarify what you mean by 'recording the process'? If you’re looking to record or visualize individual photon packet paths, there isn’t a ready-made method for that. However, if you’re familiar with C++ (or could get assistance with it, such as from ChatGPT), implementing this yourself should be straightforward.

One thing to keep in mind: if the "jump lengths" of photon packets are drawn from the scattering coefficient, as done in ValoMC, individual trajectories don’t hold much information. In other words, they aren’t representative of actual photon paths. This differs from drawing from the total extinction coefficient, where the paths can be thought of as more closely resembling real photon trajectories.

With good statistics both methods give same results for fluence and exitance etc. however

Best, Aleksi