+++ title = "Multi-layer lattice" weight = 40 +++ ### Lattice with several layers A sample with several lattice layers can be modelled as a 2d lattice with a 3d particle basis. In this example, the sample consists of two hexagonal close packed layers of spheres. {{< galleryscg >}} {{< figscg src="/img/draw/TwoLayerLattice_setup.jpg" width="350px" caption="Real-space model">}} {{< figscg src="/img/auto/scatter2d/TwoLayerLattice.png" width="500px" caption="Scattering intensity">}} {{< /galleryscg >}} {{< show-ex file="scatter2d/TwoLayerLattice.py" >}}