Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulxshen committed Dec 2, 2024
1 parent 394a9fd commit 4ea1c91
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 57 deletions.
112 changes: 87 additions & 25 deletions Luminescent_AI_docs.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lumi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "luminescent"
version = "0.2.7"
version = "0.2.8"
description = "Lumi FDTD by Luminescent AI is a GPU and automatic differentiation (AD) compatible FDTD package for simulation and inverse design in semiconductor photonics. Create layout in gdsfactory. Then use the Lumi Python plugin for calculating sparams or perform inverse design on Lumi's Julia backend."
authors = ["Paul Shen"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion lumi/src/straight.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
name="straight",
# core_layer=LAYER.WG, bbox_layer=LAYER.WAFER, # defaults
# layer_stack=LAYER_STACK, materials=MATERIALS, # defaults
dx=0.05, N=3, run=False) # , gpu="CUDA",) # or gpu=None
dx=0.05, N=3,) # run=False) # , gpu="CUDA",) # or gpu=None
# sol = lumi.lumi_solution()
32 changes: 2 additions & 30 deletions src/scratch.jl
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.

0 comments on commit 4ea1c91

Please sign in to comment.