Lattice2D.jl
ユニットセルから組み立てる2次元格子
GeometryLattice SuiteJuliaJulia ≥ 1.10
Provides two-dimensional lattices. Given unit-cell information (basis vectors and connections), arbitrary lattices can be constructed. Reciprocal vectors, bipartiteness checks, and periodic / open boundary conditions are first-class. Plotting is available through materialize and require_finite (re-exported).
Available lattices
- Square lattice
- Triangular lattice
- Honeycomb lattice
- Kagome lattice
- Lieb lattice
- Shastry-Sutherland lattice
Example
using Lattice2D
# 4x4 Honeycomb lattice with periodic boundary conditions
lat = build_lattice(Honeycomb, 4, 4; boundary=PBC())
println("Total sites: ", lat.N)
println("Is bipartite? ", lat.is_bipartite)