Debian Codegraph @

hugo/content/ref/sample/struct/2d/lattice2d/with-basis/index.md

raw
1 +++
2 title = "Lattice with basis"
3 weight = 30
4 +++
5
6 ### 2D lattice with basis
7
8 This example shows how to simulate a lattice with more than one particle per unit cell.
9 The particles that form a basis of the Bravais lattice are combined into a compound particle.
10
11 The sample of this specific example could also be represented by a square lattice with
12 only one particle per unit cell:
13 Just rotate by 45 degrees, and reduce the lattice constant to $1/\sqrt{2}$.
14 These two equivalent representations allow for a cross-check.
15
16 {{< galleryscg >}}
17 {{< figscg src="/img/draw/Lattice2dWithBasis_setup.jpg" width="350px" caption="Real-space model">}}
18 {{< figscg src="/img/auto/scatter2d/Lattice2dWithBasis.png" width="500px" caption="Scattering intensity">}}
19 {{< /galleryscg >}}
20
21 {{< show-ex file="scatter2d/Lattice2dWithBasis.py" >}}