Commit d0baef47 authored by Lucas Laplanche's avatar Lucas Laplanche
Browse files

ajout calcul reflectivité(profondeur)

parent d02d851b
......@@ -69,12 +69,14 @@ def reflectivity(sl,
def reflectivity_depth(sl, wavelength=670e-9, step=5e-9):
num = int(sl['thickness'].sum() / step)
r = np.zeros(num)
al = np.zeros(num)
depth = np.linspace(0., num*step, num=num)
sl = op.algaas_super_lattice_refractive_index(sl, 0., wavelength, lengyel=False, only_real=True)
for i in tqdm(range(num)):
sl_etched = pt.etch_super_lattice_from_top(sl, step*i)
al[i] = sl_etched.iloc[0]['al']
n = sl_etched['refractive_index'].to_numpy(dtype=float)
d = sl_etched['thickness'].to_numpy(dtype=float)
......@@ -82,8 +84,6 @@ def reflectivity_depth(sl, wavelength=670e-9, step=5e-9):
r[i] = tmm.reflection(n, d, wavelength)
al = sl['al'].apply(np.real)
plt.plot_reflectivity_depth(al, r, depth)
......
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