Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lucas Laplanche
EAM VCSEL
Commits
1254ccf7
Commit
1254ccf7
authored
Jun 08, 2021
by
Lucas Laplanche
Browse files
maj
parent
ba9c969b
Changes
1
Hide whitespace changes
Inline
Side-by-side
macro.py
View file @
1254ccf7
...
...
@@ -5,6 +5,7 @@ from tqdm import tqdm
import
calculation
as
cl
import
optic
as
op
import
plot
as
plt
import
scipy.io
import
super_lattice_structure
as
st
...
...
@@ -42,4 +43,16 @@ def reflectivity_eam_vcsel_clad_heatmap():
r
[
j
,
i
]
=
op
.
reflection
(
n
,
d
,
850e-9
)
plt
.
plot_std_heatmap
(
l_eam_clad
,
l_vcsel_clad
,
r
)
\ No newline at end of file
plt
.
plot_std_heatmap
(
l_eam_clad
,
l_vcsel_clad
,
r
)
def
structure_for_matlab
(
vcsel_only
=
True
,
bypass_dbr
=
False
,
wavelength
=
850e-9
):
sl
=
st
.
structure_eam_vcsel
(
vcsel_only
=
vcsel_only
,
bypass_dbr
=
bypass_dbr
)
sl
=
op
.
algaas_super_lattice_refractive_index
(
sl
,
0.
,
wavelength
)
lz
=
sl
[
'thickness'
].
to_numpy
(
dtype
=
float
)
n
=
sl
[
'refractive_index'
].
apply
(
np
.
real
).
to_numpy
(
dtype
=
float
)
scipy
.
io
.
savemat
(
'eam_vcsel_n_lz.mat'
,
dict
(
n
=
n
,
lz
=
lz
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment