The Unit Factory is a Dynamic Factory that creates and hands out instances of Mantid Unit objects.
The following units are available in the default Mantid distribution.
Name | ID (as known by Unit Factory) | Unit | Relevant equation |
---|---|---|---|
Time of flight | TOF | TOF | |
Wavelength | Wavelength | (see below) | |
Energy | Energy | ||
Energy in wavenumber | Energy_inWavenumber | ||
Momentum (k) | Momentum | ||
d-spacing | dSpacing | ||
Momentum transfer (Q) | MomentumTransfer | ||
Momentum transfer squared () | QSquared | ||
Energy transfer | DeltaE | ||
Energy transfer in wavenumber | DeltaE_inWavenumber | ||
Spin Echo Length | SpinEchoLength | The constant is supplied in eFixed
|
|
Spin Echo Time | SpinEchoTime | The constant is supplied in eFixed
|
Where and are sample to the source and sample to detector distances respectively, and is the energy of neutrons leaving the source. here is the Bragg scattering angle (e.g. half of the -angle used in spherical coordinate system directed along Mantid z-axis)
Note on Wavelength: If the emode property in ConvertUnits is specified as inelastic Direct/Indirect (inelastic) then the conversion to wavelength will take into account the fixed initial/final energy respectively. Units conversion into elastic momentum transfer (MomentumTransfer) will throw in elastic mode (emode=0) on inelastic workspace (when energy transfer is specified along x-axis)