it is negative because you took a natural log, it does not mean the number is negative.
if you want to get percentage over total energy, you should set
cfg.outputtype='energy' and sum the output flux.dref. this will be
the fraction of the energy (out of 1 total launched energy) that
exit from your domain.
but, since your medium has no absorption, with the all-mirror
('mmmmmm') boundary condition, nothing will be absorbed by your
droplet, and your sum(flux.dref(:)) is 100%
--
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/2fd82ae6-4a78-4c73-9533-fc22ec100e34n%40googlegroups.com.
using a label-based medium in mcx is not really the right approach for simulating transparent/non-scattering domains.
this is because label-based medium uses voxels to represent object shapes. this voxelated boundary is ok when the medium is highly scattering, but it produces incorrect solutions when the medium is transparent - a voxelated boundary is a corner-reflector (https://en.wikipedia.org/wiki/Corner_reflector) which behaves entirely differently from a curved surface.
please read the Introduction section of our split-voxel MC (SVMC) paper
https://opg.optica.org/boe/fulltext.cfm?uri=boe-11-11-6262
as well as Fig. 3 of this paper
if you want to use mcx, you should use the SVMC method, which requires you call mcxsvmc.m to preprocess the domain before you pass it to mcxlab. see example
https://github.com/fangq/mcx/blob/master/mcxlab/examples/demo_svmc_cubesph.m
https://github.com/fangq/mcx/blob/master/mcxlab/examples/demo_svmc_sphshells.m
https://github.com/fangq/mcx/blob/master/mcxlab/examples/demo_svmc_brain19_5.m
alternatively, you can also address this issue using mmc/mmclab.
You don't often get email from namazo...@gmail.com. Learn why this is important
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/f8486c1d-bc5c-4fd4-b0f5-26b8c333ba0an%40googlegroups.com.