I want to use MCXLAB to simulate a 20mW uniform continuous light source illuminating a simplified biological tissue model, observing its light distribution and attenuation curve. However, when normalized, I observe that the magnitude of the output flux results is extremely large (approximately 10^8). Reviewing other posts, I see the default flux unit is 1/mm²/s. How should I modify my code to ensure the output flux corresponds to my 20mW light source and is converted to the unit mW/cm²?
Here is my code.
hi Jinze,
the scaling question has been brought up multiple times in the mailing list, I think it is helpful if you can read these previous replies
https://groups.google.com/g/mcx-users/c/VQ0GdabxnSM/m/oc1v7zOHAQAJ
https://groups.google.com/g/mcx-users/c/nEcOnUZHb7I/m/a284tTOAAQAJ
https://groups.google.com/g/mcx-users/c/tQEw5jO1nWA/m/mcZIapwGAAAJ
https://groups.google.com/g/mcx-users/c/sbtDCbuRh90/m/KVKShOebAQAJ
https://groups.google.com/g/mcx-users/c/PNhj-sMjCZM/m/F-V-LkOkAgAJ
https://groups.google.com/g/mcx-users/c/N55J79w9FYY/m/D3IcSTfqBQAJ
https://groups.google.com/g/mcx-users/c/HziDFZZBqSc/m/e7uvp1Y0BAAJ
https://groups.google.com/g/mcx-users/c/zePFW8MDr6Y/m/NOsqJJt5AgAJ
or this FAQ
https://mcx.space/wiki/index.cgi?Doc/FAQ#How_do_I_interpret_MCX_s_output_data
because mcx/mmc solves for the Green's function (or TPSF, or the impulse response - in both time and space - if pencil beam), when you have an arbitrary spatially distributed source, or arbitrarily temporarily varying source, all you need to do is to convolve the Green's function produced by mcx/mmc by the spatial spread of the source, or by the temporary profile of the source, or both, to produce the solution that matches your actual source spatial/temporary profiles.
if your source has a scaling factor (light total watt or joule), you can simply multiply this number to the output of mcx because mcx produces a unitary solution, where the source has a unit of 1 (watt, joule, or count), and RTE is linear to the source term.
Qianqian
--
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 visit https://groups.google.com/d/msgid/mcx-users/de139aeb-0e5f-4dbe-bae7-2a0b5db836b2n%40googlegroups.com.
Thank you for your previous response. I multiplied the output fluence rating by the corresponding coefficient as you suggested to match the light source power I wanted to simulate. However, the results obtained did not meet my expectations—the fluence rating on the model surface was significantly higher than the set light source power density. Since I'm simulating a steady-state light source, I set cfg.tend to 1 and cfg.tstep equal to cfg.tend. Yet the fluence rating on the model surface still exceeded twice the light source power density. I then set cfg.tend to 2, which aligned the model surface fluence rating with the light source. I'd like to understand whether this approach is reasonable and why cfg.tend significantly impacts the fluence rating.
Jinze Li
|
You don't often get email from liji...@gmail.com.
Learn why this is important
|