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 28, 2024
1 parent 7f03e83 commit c39563a
Show file tree
Hide file tree
Showing 11 changed files with 216 additions and 76 deletions.
35 changes: 17 additions & 18 deletions Luminescent_AI_docs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"source": [
"# FDTD Luminescent Simulation and Inverse Design\n",
"\n",
"**Undergoing maintenance. Check back in 2025 :D**\n",
"v0.3-beta\n",
"2024/12\n",
"Paul Shen <pxshen@alumni.stanford.edu>"
"Paul Shen <pxshen@alumni.stanford.edu>\n",
"\n",
"Open https://colab.research.google.com/github/paulxshen/Luminescent.jl/blob/master/Luminescent_AI_docs.ipynb if you can't see ouput figures or table of contents."
]
},
{
Expand Down Expand Up @@ -155,7 +156,7 @@
"outputs": [],
"source": [
"%%shell\n",
"pip install -U luminescent"
"pip install -U luminescent &> /dev/null"
]
},
{
Expand All @@ -174,7 +175,7 @@
"metadata": {},
"outputs": [],
"source": [
"%% shell\n",
"%%shell\n",
"URL=\"https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-1.11.2-linux-x86_64.tar.gz\"\n",
"wget -nv $URL -O /tmp/julia.tar.gz # -nv means \"not verbose\"\n",
"tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n",
Expand Down Expand Up @@ -305,7 +306,7 @@
"wavelengths = 1.55\n",
"keys=[\"2,1\"] # same as keys=[\"o2@0,o1@0\"]\n",
"nres=30\n",
"dtype=\"float16\"\n",
"dtype=\"float32\"\n",
"\n",
"lumi.make_pic_sim_prob(path, c, wavelengths=wavelengths, nres=nres, keys=keys, N=N,dtype=dtype)\n",
"lumi.solve(path)\n",
Expand All @@ -317,7 +318,7 @@
"id": "13c566ae-b363-4fc6-ad94-87451c767185",
"metadata": {},
"source": [
"Loss is <-0.01dB, which is lower than reported by [Tidy3D example](https://www.flexcompute.com/tidy3d/examples/notebooks/EulerWaveguideBend/)"
"Loss is -0.02dB, similar to [Tidy3D example](https://www.flexcompute.com/tidy3d/examples/notebooks/EulerWaveguideBend/)"
]
},
{
Expand Down Expand Up @@ -521,20 +522,18 @@
"metadata": {},
"outputs": [],
"source": [
"import luminescent as lumi\n",
"from luminescent import MATERIALS\n",
"from gdsfactory.generic_tech import LAYER,LAYER_STACK\n",
"import gdsfactory as gf\n",
"import pprint as pp\n",
"# import luminescent as lumi\n",
"# from gdsfactory.generic_tech import LAYER,LAYER_STACK\n",
"# import gdsfactory as gf\n",
"# import pprint as pp\n",
"\n",
"core_layer=LAYER.WG\n",
"bbox_layer=LAYER.WAFER\n",
"layer_stack=LAYER_STACK\n",
"materials=MATERIALS\n",
"# core_layer=LAYER.WG\n",
"# bbox_layer=LAYER.WAFER\n",
"# layer_stack=LAYER_STACK\n",
"\n",
"N=3\n",
"dtype=\"float32\"\n",
"gpu=None"
"# N=3\n",
"# dtype=\"float32\"\n",
"# gpu=None"
]
},
{
Expand Down
Loading

0 comments on commit c39563a

Please sign in to comment.