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

Log a warning for insufficient wavelength ranges; force dust cross sections to zero beyond 10 cm #109

Closed petercamps closed 3 years ago

petercamps commented 3 years ago

Log messages

With this update SKIRT issues a warning to the simulation log in the following cases:

These extra log messages help the user discover/understand limitations that might otherwise go unnoticed. For example:

Dust properties at radio wavelengths

If the simulation wavelength range extends beyond 10 cm, any dust cross sections beyond this wavelength are now forced to zero. None of the currently provided dust mixes offers optical properties beyond 10 cm, and historically any values outside the supported range are clamped to the nearest available value. This would lead to substantially overestimated dust extinction in the radio wavelength range. This "hack" avoids this issue.

For reasons of upwards compatibility, with dust mixes that support a shorter wavelength range, the cross sections between the supported upper wavelength limit and 10 cm are still clamped to the nearest available value (i.e. the value at the supported upper wavelength limit).

Tests All functional tests still run.