This package provides two dimensional lattices. If you know unit cell information (basic vectors, connection), you can construct arbitrary lattices.
Available lattices by defaults are ...
- Square lattice
- Triangular lattice
- Honeycomb lattice
- Kagome lattice
- Lieb lattice
- Shastry-Sutherland lattice
using Pkg
Pkg.add("Lattice2D")Here we show Honeycomb lattice as an example. The Module enables us to have unit cell informations and connection infos, reciprocal vectors etc. And more, we can know the graph is bipartite or not, we can set periodic boundary and open boundary.
using Lattice2D
# Create a 4x4 Honeycomb lattice with Periodic Boundary Conditions (PBC)
lat = build_lattice(Honeycomb, 4, 4; boundary=PBC())
# Check basic properties
println("Total sites: ", lat.N)
println("Is bipartite? ", lat.is_bipartite)Contributions are welcome! Please feel free to open an Issue or submit a pull requests.
