scippneutron.conversion.tof.dspacing_from_energy#
- scippneutron.conversion.tof.dspacing_from_energy(*, energy, two_theta)[source]#
Compute the d-spacing from the neutron energy.
The result is the inter-planar lattice spacing
\[d = \frac{h}{\sqrt{8 m_n E} \sin \theta}\]Where \(m_n\) is the neutron mass and \(h\) the Planck constant.
- Parameters:
- Returns:
Variable
– Inter-planar lattice spacing \(d\). Has unit ångström.
See also
scippneutron.conversions.beamline
Definition of
two_theta
.