hi Long,
instead of posting the screenshot of your code, can you please directly post your script as text?
the screenshot not only takes ~200x larger space (197 kB vs 1 kB) to store and transmit, it also won't allow me to copy/paste to matlab to reproduce your issue. I tried using google lens to ORC the code from your screenshot, but it produced a lot of errors. So sharing your code in the form of image highly inefficient.
we have done thorough comparison with mcxyz using its skinvessel
benchmark, and mcx matches the result excellently - here is the
script - if there is any major difference, I am pretty sure it was
because you set the simulation condition differently.
https://github.com/fangq/mcx/blob/master/mcxlab/examples/demo_mcxyz_skinvessel.m
--
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/114025f8-de7b-4a77-934c-b2b37c56bf23n%40googlegroups.com.
hi Long,
the 2D mode in mcx is special - it is a theoretical 2D space photon transport, which does not exist in real world. I do not believe any other MC solvers has this type of output.
in the 2D mode, photon is limited in propagate in a 2D plane, without the ability to have a scattering angle escaping from the plane. This is entirely different from the 2D solution produced by MCML - which performs 3D photon transport, but accumulates solutions in a 2D radial plane due to the rotational symmetry of the space.
all other MC solvers that I know of perform 3D photon transport. They do not have the option to limit photon's propagation entirely inside a 2D space.
again, this only has theoretical value, and you shall not compare it with other 3D solver solutions or use it to analyze physical world measurements.
if you are interested in comparing with mcxyz, you should start
with the skinvessel script that I linked previously.
Qianqian
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/c8504fe2-eaf0-4b66-b8b1-c48815931846n%40googlegroups.com.
hi Long,
mcx output these data types (see this section of the README:
https://github.com/fangq/mcx?tab=readme-ov-file#output-files)
1. fluence-rate (unit: 1/mm^2/s): photon area density across an infinitesimal sphere around any given spatial position per second
this is the default output for mcx (cfg.outputtype='flux') -
for historical reasons, it was called "flux" but it is actually
fluence-rate
2. fluence (unit: 1/mm^2): photon area density across an
infinitesimal sphere around any given spatial position
fluence (cfg.outputtype='fluence') is basically time-integration of fluence-rate within any given time-gate (cfg.tstep), or the entire time window if there is only a single time gate (cfg.tend=cfg.tstep)
if the single time-gate is long enough to capture all the
changes in the TPSF, then this is the CW fluence, otherwise, it is
a time-domain/time-resolved/time-gated fluence
3. per-voxel energy-deposition (unit: count, or J) - it is the
multiplication of fluence Phi(r) (1/mm^2) with the local
absorption coefficient (mua(r), 1/mm), integrated for every voxel,
i.e. E[i,j,k] = Phi[i,j,k] * mua[i,j,k] * Vvox, where Vvox (mm^3)
is the volume of a voxel.
this is the accumulation of the energy-loss for all photons passing by any given voxel. if you sum all energy-deposition across all voxels, plus the diffuse-reflected/transmitted energy, it should be 1 (if normalization is on)
energy-deposition allows discontinuity due to mua(r), but
fluence/fluence-rate are expected to be spatially differentiable.
let me know if this is what you are looking for
Qianqian
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/97e2db79-1953-4bd5-8704-ae96ab8d1e54n%40googlegroups.com.