-
Notifications
You must be signed in to change notification settings - Fork 0
/
3_waveguides_coupling.py
61 lines (56 loc) · 1.31 KB
/
3_waveguides_coupling.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#%%
from fdbpm import FdBpm
%matplotlib qt
#%%
# config #1: successful coupling (20s)
fd=FdBpm()
fd.NUM_SAMPLES=101
fd.LENGTH=3E4
fd.dy=1E-6
fd.l_ambda=0.85E-6
fd.L=60E-6
fd.create_space()
plotOn=True
offset=14E-6
# fd.create_source(waist=5E-6,offset=-offset,plotOn=False)
fd.gauss_light(fwhm=8E-6,offset=-offset)
fd.create_guides(width=10E-6,offset=-offset)
fd.create_guides(width=10E-6)
fd.create_guides(width=10E-6,offset=offset,plotOn=True)
# fd.calculate_propagation()
# fd.cmap='prism'
#%%
# config #2: faster coupling (7s)
fd=FdBpm()
fd.NUM_SAMPLES=101
fd.LENGTH=1.2E4
fd.dy=1E-6
fd.l_ambda=0.85E-6
fd.L=60E-6
fd.create_space()
plotOn=True
offset=14E-6
# fd.create_source(waist=5E-6,offset=-offset,plotOn=False)
fd.gauss_light(fwhm=8E-6,offset=-offset)
fd.create_guides(width=10E-6,offset=-offset)
fd.create_guides(width=10E-6)
fd.create_guides(width=10E-6,offset=offset,plotOn=False)
#%%
# config #3: even faster coupling (2s)
fd=FdBpm()
fd.NUM_SAMPLES=101
fd.LENGTH=500
fd.dy=1E-5
fd.l_ambda=1.55E-6
fd.L=60E-6
fd.create_space()
plotOn=True
offset=14E-6
# fd.create_source(waist=5E-6,offset=-offset,plotOn=False)
fd.gauss_light(fwhm=12E-6,offset=-offset+1E-7)
fd.create_guides(width=10E-6,offset=-offset)
fd.create_guides(width=10E-6)
fd.create_guides(width=10E-6,offset=offset,plotOn=False)
#%%
fd.plot_moving_source()
# %%