| 1 |
+++ |
| 2 |
title = "Finite square lattice" |
| 3 |
weight = 20 |
| 4 |
+++ |
| 5 |
|
| 6 |
### Finite square lattice |
| 7 |
|
| 8 |
In this example, the lattice is finite, consisting of 40 times 40 unit cells. |
| 9 |
Otherwise the sample model is the same as in the |
| 10 |
[basic square lattice example](/ref/sample/struct/2d/lattice2d/square-lattice). |
| 11 |
|
| 12 |
{{< galleryscg >}} |
| 13 |
{{< figscg src="/img/draw/SquareLattice30deg_setup.jpg" width="350px" caption="Real-space model">}} |
| 14 |
{{< figscg src="/img/auto/scatter2d/FiniteSquareLattice.png" width="500px" caption="Scattering intensity">}} |
| 15 |
{{< figscg src="/img/auto/scatter2d/SquareLattice.png" width="500px" caption="For comparison, scattering intensity with infinite lattice">}} |
| 16 |
{{< /galleryscg >}} |
| 17 |
|
| 18 |
{{< show-ex file="scatter2d/FiniteSquareLattice.py" >}} |