scippneutron.conversion.tof.wavevector_from_wavelength#

scippneutron.conversion.tof.wavevector_from_wavelength(*, wavelength, beam)[source]#

Compute a wavevector from a wavelength.

The result is

\[Q = 2 \pi \frac{\hat{b}}{\lambda}\]

where \(\hat{b}\) is the normalized beam vector.

Parameters:
  • wavelength (Variable) – De Broglie wavelength \(\lambda\).

  • beam (Variable) – The direction the neutron travels \(\vec{b}\). It does not have to be normalized.

Returns:

Variable – Wavevector \(k\). Has unit 1/ångström.