Skip to content

Commit

Permalink
Update example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alihakimtaskiran authored Jun 5, 2022
1 parent 7c5bbdc commit 8075827
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from rainbow import *

DBR=Stack()
DBR.add_ambient(Ambient([1,]*10, [1,]*10, 'Air'))
DBR.add_substrate(Substrate([20.25]*10, [1,]*10, 'Silicone-Wafer'))
DBR.add_ambient(Ambient([1,], [1,], 'Air'))
DBR.add_substrate(Substrate([20.25], [1,], 'Silicone-Wafer'))

for i in range(8):
DBR.add_layer([ThinLayer(123e-9, [4.0779]*10, [1]*10, name=f'Si3N4 {i}'), ThinLayer(151e-9, [2.1025]*10, [1]*10, name=f'SiO2 {i}') ])
DBR.add_layer([ThinLayer(123e-9, [4.0779], [1], name=f'Si3N4 {i}'), ThinLayer(151e-9, [2.1025], [1], name=f'SiO2 {i}') ])
for i in range(8):
DBR.add_layer([ThinLayer(151e-9, [2.1025]*10, [1]*10, name=f'SiO2 {8+i}'), ThinLayer(123e-9, [4.0779]*10, [1]*10, name='Si3N4 {i+8}')])
DBR.Radiation(885e-9, np.deg2rad(i))
DBR.add_layer([ThinLayer(151e-9, [2.1025], [1], name=f'SiO2 {8+i}'), ThinLayer(123e-9, [4.0779], [1], name='Si3N4 {i+8}')])
DBR.Radiation(885e-9)
DBR.render()

0 comments on commit 8075827

Please sign in to comment.