2323straight_strip = partial (
2424 sm .straight ,
2525 length = 10.0 ,
26- loss = 0 .0 ,
26+ loss_dB_cm = 3 .0 ,
2727 wl0 = 1.55 ,
2828 neff = 2.38 ,
2929 ng = 4.30 ,
3232straight_rib = partial (
3333 sm .straight ,
3434 length = 10.0 ,
35- loss = 0 .0 ,
35+ loss_dB_cm = 3 .0 ,
3636 wl0 = 1.55 ,
3737 neff = 2.38 ,
3838 ng = 4.30 ,
@@ -43,7 +43,7 @@ def straight(
4343 * ,
4444 wl : Float = 1.55 ,
4545 length : float = 10.0 ,
46- loss : float = 0 .0 ,
46+ loss_dB_cm : float = 3 .0 ,
4747 cross_section : str = "strip" ,
4848) -> sax .SDict :
4949 """Straight waveguide model."""
@@ -56,7 +56,7 @@ def straight(
5656 return f (
5757 wl = wl , # type: ignore
5858 length = length ,
59- loss = loss ,
59+ loss_dB_cm = loss_dB_cm ,
6060 )
6161
6262
@@ -76,15 +76,15 @@ def bend_s(
7676 * ,
7777 wl : Float = 1.55 ,
7878 length : float = 10.0 ,
79- loss : float = 0.03 ,
79+ loss_dB_cm = 3.0 ,
8080 cross_section = "strip" ,
8181) -> sax .SDict :
8282 """Bend S model."""
8383 # NOTE: it is assumed that `bend_s` exposes it's length in its info dictionary!
8484 return straight (
8585 wl = wl ,
8686 length = length ,
87- loss = loss ,
87+ loss_dB_cm = loss_dB_cm ,
8888 cross_section = cross_section ,
8989 )
9090
@@ -93,20 +93,20 @@ def bend_euler(
9393 * ,
9494 wl : Float = 1.55 ,
9595 length : float = 10.0 ,
96- loss : float = 0.03 ,
96+ loss_dB_cm : float = 3 ,
9797 cross_section = "strip" ,
9898) -> sax .SDict :
9999 """Euler bend model."""
100100 # NOTE: it is assumed that `bend_euler` exposes it's length in its info dictionary!
101101 return straight (
102102 wl = wl ,
103103 length = length ,
104- loss = loss ,
104+ loss_dB_cm = loss_dB_cm ,
105105 cross_section = cross_section ,
106106 )
107107
108108
109- bend_euler = partial (bend_euler , cross_section = "strip" )
109+ bend_euler_strip = partial (bend_euler , cross_section = "strip" )
110110bend_euler_rib = partial (bend_euler , cross_section = "rib" )
111111
112112
@@ -119,7 +119,7 @@ def taper(
119119 * ,
120120 wl : Float = 1.55 ,
121121 length : float = 10.0 ,
122- loss : float = 0.0 ,
122+ loss_dB_cm : float = 0.0 ,
123123 cross_section = "strip" ,
124124) -> sax .SDict :
125125 """Taper model."""
@@ -128,20 +128,19 @@ def taper(
128128 return straight (
129129 wl = wl ,
130130 length = length ,
131- loss = loss ,
131+ loss_dB_cm = loss_dB_cm ,
132132 cross_section = cross_section ,
133133 )
134134
135135
136136taper_rib = partial (taper , cross_section = "rib" , length = 10.0 )
137- taper_ro = partial (taper , cross_section = "xs_ro" , length = 10.0 )
138137
139138
140139def taper_strip_to_ridge (
141140 * ,
142141 wl : Float = 1.55 ,
143142 length : float = 10.0 ,
144- loss : float = 0.0 ,
143+ loss_dB_cm : float = 0.0 ,
145144 cross_section = "strip" ,
146145) -> sax .SDict :
147146 """Taper strip to ridge model."""
@@ -150,7 +149,7 @@ def taper_strip_to_ridge(
150149 return straight (
151150 wl = wl ,
152151 length = length ,
153- loss = loss ,
152+ loss_dB_cm = loss_dB_cm ,
154153 cross_section = cross_section ,
155154 )
156155
@@ -239,10 +238,10 @@ def coupler(
239238# grating couplers Rectangular
240239##############################
241240
242- grating_coupler_rectangular = partial (
241+ grating_coupler_rectangular_strip = partial (
243242 sm .grating_coupler , loss = 6 , bandwidth = 35 * nm , wl = 1.55
244243)
245- grating_coupler_rectangular_rib = grating_coupler_rectangular
244+ grating_coupler_rectangular_rib = grating_coupler_rectangular_strip
246245
247246
248247def grating_coupler_rectangular (
@@ -253,7 +252,7 @@ def grating_coupler_rectangular(
253252 # TODO: take more grating_coupler_rectangular arguments into account
254253 wl = jnp .asarray (wl ) # type: ignore
255254 fs = {
256- "strip" : grating_coupler_rectangular ,
255+ "strip" : grating_coupler_rectangular_strip ,
257256 "rib" : grating_coupler_rectangular_rib ,
258257 }
259258 f = fs [cross_section ]
@@ -264,7 +263,7 @@ def grating_coupler_rectangular(
264263# grating couplers Elliptical
265264##############################
266265
267- grating_coupler_elliptical = partial (
266+ grating_coupler_elliptical_strip = partial (
268267 sm .grating_coupler , loss = 6 , bandwidth = 35 * nm , wl = 1.55
269268)
270269
0 commit comments