SKIRT / SKIRT9

SKIRT version 9 -- advanced radiative transfer in dusty systems
http://www.skirt.ugent.be
GNU Affero General Public License v3.0
38 stars 31 forks source link

Fix a bug in velocity dispersion sampling #120

Closed petercamps closed 2 years ago

petercamps commented 2 years ago

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.