-
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
462 changed files
with
174 additions
and
26 deletions.
There are no files selected for viewing
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,5 +1,5 @@ | ||
# temp* | ||
build | ||
# build | ||
# /build/precompile_* | ||
dump | ||
/temp | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using PackageCompiler | ||
ENV["JULIA_SSL_CA_ROOTS_PATH"] = "" | ||
|
||
create_app(".", "../LuminescentAI", | ||
executables=[ | ||
"lumi" => "julia_main", | ||
# "_1" => "julia_main1", | ||
# "_2" => "julia_main2", | ||
], | ||
precompile_execution_file="build/precompile_app.jl", | ||
# include_transitive_dependencies=false, | ||
force=true | ||
) |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Luminescent, Random | ||
Random.seed!(1) | ||
|
||
for p = readdir("build/precompile_execution", join=true) | ||
# for p = ["tiny", "tiny3", "back"] | ||
# p = joinpath("runs", p) | ||
push!(ARGS, p) | ||
Luminescent.julia_main() | ||
pop!(ARGS) | ||
end |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"approx_2D_mode": "TE", "Ttrans": null, "path": "build\\precompile_execution\\back", "name": null, "wl": 1.55, "dx": 0.10333333333333333, "dy": 0.10333333333333333, "dz": 0.10333333333333333, "dl": 0.025833333333333333, "dtype": "<class 'numpy.float32'>", "timestamp": "2025-01-14T11-45-19", "magic": "", "framerate": 0, "gpu_backend": "", "ports": {"o1": {"center": [-2000, 250], "normal": [-1.0, 1.2246467991473532e-16]}, "o2": {"center": [2500, 250], "normal": [1.0, 0.0]}}, "hcore": 0.22, "zcenter": 0.11, "zmin": -1.0266666666666668, "zcore": 0.0, "xmargin": 1.0, "ymargin": 1.0, "zmargin2": 0.41333333333333333, "L": [5.373333333333333, 2.48, 2.273333333333334], "xs": [-2.707, -2.6036666666666664, -2.5003333333333333, -2.397, -2.2936666666666667, -2.1903333333333332, -2.0869999999999997, -1.9836666666666665, -1.8803333333333332, -1.777, -1.6736666666666666, -1.5703333333333331, -1.4669999999999999, -1.3636666666666666, -1.260333333333333, -1.1569999999999998, -1.0536666666666665, -0.9503333333333333, -0.847, -0.7436666666666665, -0.6403333333333334, -0.5369999999999999, -0.4336666666666664, -0.33033333333333337, -0.22699999999999987, -0.12366666666666637, -0.020333333333333314, 0.08300000000000018, 0.18633333333333368, 0.28966666666666674, 0.39300000000000024, 0.4963333333333333, 0.5996666666666668, 0.7030000000000003, 0.8063333333333333, 0.9096666666666668, 1.013, 1.1163333333333334, 1.219666666666667, 1.3230000000000004, 1.426333333333333, 1.5296666666666665, 1.633, 1.7363333333333335, 1.839666666666667, 1.9430000000000005, 2.046333333333333, 2.1496666666666666, 2.253, 2.3563333333333336, 2.459666666666667, 2.5629999999999997, 2.666333333333333], "ys": [-1.0, -0.8966666666666667, -0.7933333333333333, -0.69, -0.5866666666666667, -0.4833333333333334, -0.38, -0.2766666666666666, -0.17333333333333334, -0.07000000000000006, 0.033333333333333215, 0.13666666666666671, 0.24, 0.34333333333333327, 0.44666666666666677, 0.55, 0.6533333333333333, 0.7566666666666666, 0.8599999999999999, 0.9633333333333334, 1.0666666666666664, 1.17, 1.2733333333333334, 1.3766666666666665, 1.48], "zs": [-1.0266666666666668, -0.8200000000000001, -0.6133333333333334, -0.51, -0.40666666666666673, -0.30333333333333334, -0.2, -0.09666666666666668, 0.00666666666666671, 0.10999999999999999, 0.21333333333333337, 0.31666666666666676, 0.42000000000000004, 0.5233333333333333, 0.6266666666666668, 0.7300000000000001, 0.8333333333333334, 1.0400000000000003, 1.246666666666667], "layer_stack": {"clad": {"layer": [999, 0], "zmin": 0.0, "thickness": 1.246666666666667, "material": "SiO2", "mesh_order": 10, "origin": [0.0, 0.0]}, "box": {"layer": [999, 0], "zmin": -1.0266666666666668, "thickness": 2.273333333333334, "material": "SiO2", "mesh_order": 9, "origin": [0.0, 0.0]}, "core": {"layer": [1, 0], "zmin": 0.0, "thickness": 0.22, "material": "cSi", "mesh_order": 2, "origin": [0.0, 1.0]}}, "study": "inverse_design", "matprops": {"SiO2": {"\u03f5": 2.0736}, "cSi": {"\u03f5": 12.1104}}, "N": 2, "hmode": 1.4466666666666668, "wmode": 1.4466666666666668, "zmode": -0.6133333333333334, "mode_solutions": [], "runs": [{"sources": {"o1": {"center": [-2.5003333333333333, 0.24999999999999997], "width": 0.5, "normal": [-1.0, 1.2246467991473532e-16], "wavelength_mode_numbers": {"1.55": [0]}, "port": "o1", "mode_width": 1.4466666666666668}}, "monitors": {"o1": {"port": "o1", "normal": [-1.0, 1.2246467991473532e-16], "center": [-2.0, 0.25], "width": 0.5, "wavelength_mode_numbers": {"1.55": [0]}, "mode_width": 1.4466666666666668}, "o2": {"port": "o2", "normal": [1.0, 0.0], "center": [2.5, 0.25], "width": 0.5, "wavelength_mode_numbers": {"1.55": [0]}, "mode_width": 1.4466666666666668}}}], "components": {"device": {"bbox": [[-2.707, -1.0], [2.6670000000000003, 1.48]]}}, "Courant": null, "wavelengths": [1.55], "Tss": null, "restart": true, "weights": {"tparams": 1, "sparams": 1, "phasediff": 1}, "save_memory": false, "targets": {"tparams": {"1.55": {"o2@0,o1@0": 1.0}}}, "eta": 0.4, "designs": [{"layer": [1000, 1], "bbox": [[0.0, 0.0], [0.5, 0.5]], "symmetries": [], "init": 1}], "lvoid": 0.2, "lsolid": 0, "stoploss": null, "design_config": {"fill": {"thickness": 0.22, "material": "cSi", "zmin": 0.0, "layer": 1}, "design_region_layer": [1000, 1]}, "iters": 2} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import numpy as np | ||
import EMpy | ||
import os | ||
import sys | ||
|
||
path = sys.argv[1] | ||
data = np.load(os.path.join(path, "args.npz")) | ||
eps = data["eps"] | ||
dl = data["dl"] | ||
λ = data["wl"] | ||
neigs = data["neigs"] | ||
|
||
m, n = eps.shape | ||
# print(m, n) | ||
m += 1 | ||
n += 1 | ||
x = np.linspace(0.5*dl, (m-.5)*dl, m) | ||
y = np.linspace(0.5*dl, (n-.5)*dl, n) | ||
|
||
|
||
def ϵfunc(x_, y_): | ||
return eps | ||
|
||
|
||
tol = 1e-6 | ||
solver = EMpy.modesolvers.FD.VFDModeSolver( | ||
λ, x, y, ϵfunc, "0000").solve(neigs, tol) | ||
|
||
modes = [{k: m.get_field(k, x, y) for k in [ | ||
"Ex", "Ey", "Ez", "Hx", "Hy", "Hz"]} for m in solver.modes] | ||
neffs = [np.real(m.neff) for m in solver.modes] | ||
for i, mode in enumerate(modes): | ||
# print(mode["Ex"].shape) | ||
np.savez(os.path.join(path, f'mode{i}.npz'), **modes[i]) |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"approx_2D_mode": "TE", "Ttrans": null, "path": "build\\precompile_execution\\tiny", "name": null, "wl": 1.55, "dx": 0.10333333333333333, "dy": 0.10333333333333333, "dz": 0.10333333333333333, "dl": 0.025833333333333333, "dtype": "<class 'numpy.float32'>", "timestamp": "2025-01-14T11-45-17", "magic": "", "framerate": 0, "gpu_backend": "", "ports": {"o1": {"center": [0, 0], "normal": [-1.0, 1.2246467991473532e-16]}, "o2": {"center": [100, 0], "normal": [1.0, 0.0]}}, "hcore": 0.22, "zcenter": 0.11, "zmin": -1.0266666666666668, "zcore": 0.0, "xmargin": 1.0, "ymargin": 1.0, "zmargin2": 0.41333333333333333, "L": [1.0333333333333332, 2.48, 2.273333333333334], "xs": [-0.707, -0.6036666666666667, -0.5003333333333333, -0.397, -0.2936666666666667, -0.19033333333333335, -0.08700000000000008, 0.01633333333333331, 0.11966666666666659, 0.22299999999999986, 0.32633333333333325], "ys": [-1.25, -1.1466666666666667, -1.0433333333333334, -0.94, -0.8366666666666667, -0.7333333333333334, -0.63, -0.5266666666666666, -0.42333333333333334, -0.32000000000000006, -0.21666666666666679, -0.11333333333333329, -0.010000000000000009, 0.09333333333333327, 0.19666666666666677, 0.30000000000000004, 0.4033333333333333, 0.5066666666666666, 0.6099999999999999, 0.7133333333333334, 0.8166666666666664, 0.9199999999999999, 1.0233333333333334, 1.1266666666666665, 1.23], "zs": [-1.0266666666666668, -0.8200000000000001, -0.6133333333333334, -0.51, -0.40666666666666673, -0.30333333333333334, -0.2, -0.09666666666666668, 0.00666666666666671, 0.10999999999999999, 0.21333333333333337, 0.31666666666666676, 0.42000000000000004, 0.5233333333333333, 0.6266666666666668, 0.7300000000000001, 0.8333333333333334, 1.0400000000000003, 1.246666666666667], "layer_stack": {"clad": {"layer": [999, 0], "zmin": 0.0, "thickness": 1.246666666666667, "material": "SiO2", "mesh_order": 10, "origin": [0.0, 0.0]}, "box": {"layer": [999, 0], "zmin": -1.0266666666666668, "thickness": 2.273333333333334, "material": "SiO2", "mesh_order": 9, "origin": [0.0, 0.0]}, "core": {"layer": [1, 0], "zmin": 0.0, "thickness": 0.22, "material": "cSi", "mesh_order": 2, "origin": [0.0, 1.0]}}, "study": "sparams", "matprops": {"SiO2": {"\u03f5": 2.0736}, "cSi": {"\u03f5": 12.1104}}, "N": 2, "hmode": 1.4466666666666668, "wmode": 1.4466666666666668, "zmode": -0.6133333333333334, "mode_solutions": [], "runs": [{"sources": {"o1": {"center": [-0.5003333333333333, -2.5309367182378633e-17], "width": 0.5, "normal": [-1.0, 1.2246467991473532e-16], "wavelength_mode_numbers": {"1.55": [0]}, "port": "o1", "mode_width": 1.4466666666666668}}, "monitors": {"o1": {"port": "o1", "normal": [-1.0, 1.2246467991473532e-16], "center": [0.0, 0.0], "width": 0.5, "wavelength_mode_numbers": {"1.55": [0]}, "mode_width": 1.4466666666666668}, "o2": {"port": "o2", "normal": [1.0, 0.0], "center": [0.1, 0.0], "width": 0.5, "wavelength_mode_numbers": {"1.55": [0]}, "mode_width": 1.4466666666666668}}}], "components": {"device": {"bbox": [[-0.707, -1.25], [0.327, 1.23]]}}, "Courant": null, "wavelengths": [1.55], "Tss": null} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.