In this example, the lattice is finite, with a crystal size of 1000 nm times
1000 nm (40 times 40 unit cells).
Otherwise the sample model is the same as in the
basic square lattice example.
Real-space model
Scattering intensity
For comparison, scattering intensity with infinite lattice