neutronpy.instrument.get_kfree¶
-
neutronpy.instrument.
get_kfree
(W, kfixed, ki_fixed=True)[source]¶ Calculates the free wavevector, either ki or kf, as specified by ki_fixed.
Parameters: - W : float
Energy transfer
- kfixed : float
Wavevector magnitude of the fixed k.
- ki_fixed : bool, optional
If ki is fixed, set to True. Default: True
Returns: - k : float
Returns initial or final wavevector magnitude.