Description and Motivation
With this update, wavelengths are written to .ski files and _parameters.xml files in units that depend on the selected wavelengthOutputStyle. For example, with the Energy style, spectral values are expressed in keV.
For simulations at X-ray wavelengths, keV is a much more natural unit for expressing spectral values than micron.
Also, a few configuration options were moved from user experience level 2 to level 1 to allow performing the upcoming X-ray tutorial in experience level 1.
Limitations
SKIRT converts all values to internal units and does not retain information about the units that were used to enter a value during the Q&A session or in MakeUp. This implementation choice has the following consequences for ski files configured with the Energy style:
All spectral values in the output ski file are expressed in keV regardless of how they were entered. For example, 80 eV will be converted to 0.08 keV.
The default value for a spectral quantity in an option that is unused (and thus irrelevant) for a particular configuration is likely given internally as some "rounded" value when expressed in micron, yielding a random-looking value in keV. This is not a problem since the value is not used, but it doesn't look very nice.
Default values for spectral quantities offered during Q&A or in MakeUp have the same issue.
Tests
All function tests run without change except that those with wavelengthOutputStyle set to frequency or energy output a slightly different _parameters.xml file.
Description and Motivation With this update, wavelengths are written to
.ski
files and_parameters.xml
files in units that depend on the selectedwavelengthOutputStyle
. For example, with theEnergy
style, spectral values are expressed inkeV
. For simulations at X-ray wavelengths, keV is a much more natural unit for expressing spectral values than micron.Also, a few configuration options were moved from user experience level 2 to level 1 to allow performing the upcoming X-ray tutorial in experience level 1.
Limitations SKIRT converts all values to internal units and does not retain information about the units that were used to enter a value during the Q&A session or in
MakeUp
. This implementation choice has the following consequences for ski files configured with theEnergy
style:MakeUp
have the same issue.Tests All function tests run without change except that those with
wavelengthOutputStyle
set tofrequency
orenergy
output a slightly different_parameters.xml
file.Context These changes were suggested by @BertVdM.