+++ title = "Lattice with basis" weight = 30 +++ ### 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. {{< galleryscg >}} {{< figscg src="/img/draw/Lattice2dWithBasis_setup.jpg" width="350px" caption="Real-space model">}} {{< figscg src="/img/auto/scatter2d/Lattice2dWithBasis.png" width="500px" caption="Scattering intensity">}} {{< /galleryscg >}} {{< show-ex file="scatter2d/Lattice2dWithBasis.py" >}}