In this example, the lattice is finite, consisting of 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