
for your first question, I meant to respond to your question posted on mmc-users, although I got to send it.
for Q1, mcx supports continuously varying medium, you can set
floating-point mua or mua/mus values for each voxel, but it
currently does not support varying mua/mus/g/n all together.
for mcxlab, the demo script for using this feature can be found
below - for pmcx, the conversion to python is quite
straightforward.
https://github.com/fangq/mcx/blob/v2023/mcxlab/examples/demo_continuous_mua_mus.m
mcxlab/pmcx uses the data type and dimensions of cfg.vol to
determine which type of medium is given, the settings are
described here
https://github.com/fangq/mcx/blob/v2023/mcxlab/mcxlab.m#L46-L57
for your second question, the 'ring' source is pretty much the same as other area source ('disk', 'planar', ...) where the launch direction is controlled by cfg.srcdir(1:3) and the focal length is controlled by cfg.srcdir(4), please see
https://github.com/fangq/mcx/blob/v2023/mcxlab/mcxlab.m#L72-L78
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/2b4aef2f-bea1-4d9d-be9b-c90dcb268da3n%40googlegroups.com.
I have used the form of not matrix input ua and us, Setting isotropic ring light source can achieve similar effect.
thanks to open source sharing selfless dedication, looking forward to further improvements in the mcx.