-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation: add example of non-orthogonal lattice #23
Comments
Hi @sp94 , I have built a model of triangle lattice by changing the function wu_ep(...). But the bandgap diagram is not exact for the K point is not degeneracy. The codes are attached:
|
Hi @kabume, for a simple triangular lattice you only need one cylinder per unit cell so it is quite simple I think you were trying to reproduce the figure from Joannopoulos book where it is air cylinders in dielectric background so I also swapped those using Peacock, PyPlot
th1 = 0;
th2 = 120;
epf(x,y) = x^2 + y^2 < 1/3^2 ? 1 : 15
muf(x,y) = 1
d1, d2 = 0.01, 0.01
geometry = Geometry(epf, muf, th1, th2, d1, d2)
plot(geometry)
G = BrillouinZoneCoordinate( 0, 0, "Γ")
M = BrillouinZoneCoordinate( 0, 1/2, "M")
K = BrillouinZoneCoordinate(1/3, 1/3, "K")
ks = [G, M, K, G]
solver_PWE = Solver(geometry, 7)
figure(figsize=(4,3))
plot_band_diagram(solver_PWE, ks, TM, color="blue"; bands=1:2, dk=0.1, frequency_scale=1/2pi) |
We should add examples of non-orthogonal lattices to the documentation, with some pictures
Interface
Assuming both lattice vectors
a1
anda2
should have length == 1In this case it is only necessary to specify the angles of the lattice vectors:
geometry = Geometry(epf, muf, th1, th2, d1, d2)
where
th1
andth2
are scalarsMore generally
If the lattice vector lengths should not be equal to 1, then use
geometry = Geometry(epf, muf, a1, a2, d1, d2)
wherea1
anda2
are 2-vectorsExample
Triangular lattice example:
geometry = Geometry(epf, muf, 0, 60, d1, d2)
or equivalently
geometry = Geometry(epf, muf, [cosd(0),sind(0)], [cosd(60),sind(60)], d1, d2)
To do
Add an example from Joannopoulos' book, such as the TE and TM modes of triangular array of air columns in dielectric substrate
The text was updated successfully, but these errors were encountered: