Description
This update fixes a bug in the procedure for drawing a random dispersion velocity from the Maxwell-Boltzmann velocity distribution. The resulting Doppler shift for emitted or interacting photon packets had a sharply peaked profile instead of the expected Gaussian profile.
This issue affected three areas:
An imported primary source with the "import velocity dispersion" flag turned on.
Secondary line emission from gas (currently used only in the non-operational spin-flip material mix).
Thermal dispersion in electron mixes configured with a nonzero temperature (recently added and still being tested).
Tests
The Doppler shift profiles for primary and secondary emission dispersion now correctly show a Gaussian profile. The thermal dispersion in electron mixes needs further testing and benchmarking.
Description This update fixes a bug in the procedure for drawing a random dispersion velocity from the Maxwell-Boltzmann velocity distribution. The resulting Doppler shift for emitted or interacting photon packets had a sharply peaked profile instead of the expected Gaussian profile.
This issue affected three areas:
Tests The Doppler shift profiles for primary and secondary emission dispersion now correctly show a Gaussian profile. The thermal dispersion in electron mixes needs further testing and benchmarking.