Commit 7b3fdf6a authored by Lucas Laplanche's avatar Lucas Laplanche
Browse files

structures corrigées, interaction matlab ajoutée

parent 4b994561
......@@ -11,7 +11,7 @@ import super_lattice_structure as sls
def reflectivity_from_growth_speed_2x2(bypass_dbr=True, delta_speed=0.1, start_wavelength=700e-9, stop_wavelength=1000e-9, electric_field=0., n_points=200):
def reflectivity_from_growth_speed_2x2(bypass_dbr=True, delta_speed=0.1, start_wavelength=700e-9, stop_wavelength=1000e-9, electric_field=0., n_points=100):
# reflectivity computation parameters
wavelength = np.linspace(start_wavelength, stop_wavelength, num=n_points)
r = np.zeros(len(wavelength))
......@@ -35,7 +35,7 @@ def reflectivity_from_growth_speed_2x2(bypass_dbr=True, delta_speed=0.1, start_w
for j in range(len(cell_list[i])):
argument = {cell_names[i]: cell_list[i][j]}
sl = sls.structure_eam(bypass_dbr=bypass_dbr,
sl = sls.structure_eam_vcsel(bypass_dbr=bypass_dbr, eam_only=True,
**argument)
for k in range(len(wavelength)):
......@@ -51,7 +51,7 @@ def reflectivity_from_growth_speed_2x2(bypass_dbr=True, delta_speed=0.1, start_w
go.Scatter(
x=wavelength,
y=r,
name=cell_names[i] +' = ' +str(cell_list[i][j]) +' um/h'),
name=cell_names[i] +' = ' +str(int(cell_list[i][j])) +' um/h'),
row=row_num(i),
col=col_num(i),
)
......@@ -76,6 +76,7 @@ def reflectivity_from_growth_speed_2x2(bypass_dbr=True, delta_speed=0.1, start_w
# update layout properties
fig.update_layout(
title_text='reflectivity as a function of wavelength',
font_size=20,
width=1600,
)
......
......@@ -195,7 +195,7 @@ def reflectivity(bypass_dbr,
# wavelength in [m]
# wavelength must be a numpy array
for i in tqdm(range(len(wavelength))):
sl = st.structure_eam_vcsel(bypass_dbr=bypass_dbr)
sl = st.structure_eam_vcsel(bypass_dbr=bypass_dbr, eam_only=True)
sl = algaas_super_lattice_refractive_index(sl, electric_field, wavelength[i])
n = sl['refractive_index'].to_numpy(dtype=np.complex128)
......
......@@ -544,6 +544,7 @@ def plot_mult_reflectivity(wavelength, r1, wavelength2, r2):
# update layout properties
fig.update_layout(
title_text='reflectivity as a function of wavelength',
font_size=20,
width=1600,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment