Condensed matter physics

In the relation 2d sin(theta) = n lambda for crystal diffraction, what does d represent?