-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
91 additions
and
57 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,2 @@ | ||
using Peacock | ||
# Permittivity | ||
function epf(x, y) | ||
# equation of a circle with radius 0.2a | ||
if x^2 + y^2 <= 0.2^2 | ||
# dielectric inside the circle | ||
return 8.9 | ||
else | ||
# air outside the circle | ||
return 1 | ||
end | ||
end | ||
|
||
# Permeability is unity everywhere | ||
function muf(x, y) | ||
return 1 | ||
end | ||
a1 = [1, 0] # first lattice vector | ||
a2 = [0, 1] # second lattice vector | ||
d1 = 0.01 # resolution along first lattice vector | ||
d2 = 0.01 # resolution along second lattice vector | ||
geometry = Geometry(epf, muf, a1, a2, d1, d2) | ||
fourier_space_cutoff = 7 | ||
solver = Solver(geometry, fourier_space_cutoff) | ||
|
||
X = BrillouinZoneCoordinate(1 / 2, 0, "X") | ||
M = BrillouinZoneCoordinate(1 / 2, 1 / 2, "M") | ||
modes = solve(solver, X, TE) | ||
0 | ||
re | ||
Please contact us for latest installation files. We occasionally build and release installation binaries but they're out of date. | ||
|