
I believe this result is expected.
your script sets the output type to 'energy'. this accumulates the energy-loss within each voxel - if you have smaller voxels, your per-voxel accumulated energy loss will be correspondingly smaller as expected.
your plot is also problematic
tt=squeeze(sum(sum(f1(1).data,2),1));
uu = squeeze(sum(sum(f2(1).data,2),1));
figure,
plot([1:60],(tt));
hold on
plot([1:120]*0.5*0.5,(uu));
while you summed the x/y dimensions, your z-slice thickness also has a 2x difference, which is not accounted for in your plot.
if you set the outputtype to fluence, and plot the fluence over distance, you will see that the two solutions match
cfg.outputtype = 'fluence';
...
tt=squeeze(f1(1).data(30,30,:));
uu =squeeze(f2(1).data(60,60,:));
figure,
semilogy([1:60],(tt));
hold on
semilogy([1:120]*0.5,(uu));
the difference is that each value in the 'energy' output is an integral (over voxels), and each value in fluence/flux output is a point-sample of an underlying distribution - after normalization, the latter is voxel-size independent, but the first one is not.
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/a8647e6c-b47f-450f-9590-e3485899bb85n%40googlegroups.com.