Peacock.jl icon indicating copy to clipboard operation
Peacock.jl copied to clipboard

How to build a supercell model

Open kabume opened this issue 2 years ago • 3 comments

How can we build a supercell model to calculate the edge states? like below:

----------
AAAAABBBBB
----------

e.g., A is a topological non-trivial photonic cell and B is trivial, and "----" means Bloch boundary conditions.

By the way, it seems that we cannot build a rectangular lattice, such as a1=[1, 0], a2=[0, 2], an error would appear:

ERROR: AssertionError: norm(b1) ≈ norm(b2)

Thanks!

kabume avatar Dec 30 '21 03:12 kabume