Closed
Description
This issue was reported by Robin van Zutphen in the following mailing list post
https://groups.google.com/g/mcx-users/c/AUv9jgCX5RQ
the following test code shows an abnormal bump in the nscat distribution; we confirm that this result is reproducible.
cfg.nphoton = 1e7;
cfg.vol = uint8(ones(60, 60, 60));
cfg.gpuid = 1;
cfg.autopilot = 1;
cfg.tstart = 0;
cfg.tend = 5e-9;
cfg.tstep = 5e-9;
cfg.unitinmm = 1;
% Source
cfg.issrcfrom0 = 1;
cfg.srctype = 'disk';
cfg.srcparam1(1) = 1;
cfg.srcpos=[30 30 0];
cfg.srcdir=[0 0 1];
cfg.isreflect = 0;
% Medium
cfg.prop = [0 0 1 1; 0.1 25 0.9 1.37];
% Detector
cfg.savedetflag = 'dspvx';
cfg.maxdetphoton = 1e7;
cfg.detpos = [30 30 0 1];
% cfg.bc = 'aaaaaa001000';
cfg.bc = 'aaaaaa000000';
[fluence,det,vol,seeds,traj] = mcxlab(cfg);
figure;
subplot(211)
histogram(det.nscat)
subplot(212)
histogram(det.nscat)
xlim([2.6e4 3e4])
ylim([0 2.5e4])