How to seperate Diffuse Reflectance in Multiple sources???

94 views
Skip to first unread message

유성권

unread,
Mar 18, 2024, 9:10:24 AM3/18/24
to mcx-users
Hi Dr. Fang,

Can you please let me know how to seperate Diffuse Reflectance in Multiple sources??

In demo_multisrc.m, flux can be stored separately by using srcid -1.

But data of det is not seperated by sources and there is no original source information in each photon data.

I want to calculate diffuse reflectance from each sources for DOT simulation.

Running codes after chaning srcid is one of solutions. but it will take time cost.

Thank you for your help.

Qianqian Fang

unread,
Mar 18, 2024, 6:46:25 PM3/18/24
to mcx-...@googlegroups.com, 유성권

good catch.

the multi-source implementation was supposed to return a new sub-field, detp.srcid, when multi-source is used; the trajectory data is also supposed to return the respective srcid in the 6th rows of traj.data that was previously reserved.

however, after seeing your report and I took a look of the code, I found that there was a bug that prevents both srcid to be returned.

I created a new issue here

https://github.com/fangq/mcx/issues/217

and was able to fix it with a 1-line change.

Please wait for this CI action to be completed

https://github.com/fangq/mcx/actions/runs/8334626781/job/22808550112

and download the updated packages at

https://mcx.space/nightly/github/

it should now return detp.srcid and traj.srcid after the update.


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 on the web visit https://groups.google.com/d/msgid/mcx-users/ebb166a4-2f41-410f-8bc4-638ce9a6fe2bn%40googlegroups.com.

Giulia Maffeis

unread,
Feb 9, 2026, 10:18:52 AM (7 days ago) Feb 9
to mcx-users
Dear Dr. Fang,

I am trying to use the multi-source option as well, but the following error appears, even with demo_multisrc.m: "simulating multiple sources currently can not be used with photon-sharing". I am using the latest software version. What could be the problem?
Thank you for your time and consideration.
Best regards,

Giulia Maffeis

Reply all
Reply to author
Forward
0 new messages