2D lattice with basis

This example shows how to simulate a lattice with more than one particle per unit cell. The particles that form a basis of the Bravais lattice are combined into a compound particle.

The sample of this specific example could also be represented by a square lattice with only one particle per unit cell: Just rotate by 45 degrees, and reduce the lattice constant to $1/\sqrt{2}$. These two equivalent representations allow for a cross-check.

Real-space model

Scattering intensity

auto/Examples/scatter2d/Interference2DCenteredSquareLattice.py