0% found this document useful (0 votes)
8 views6 pages

Aadi Oc

Oc

Uploaded by

kachareaditya99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Aadi Oc

Oc

Uploaded by

kachareaditya99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Roll No- 24

Experiment No-8
AIM-Write a program in python to calculation numerical
aperture,acceptanceangle and critical angle.

PROGRAMME:

import math
n1 = float(input("Enter the refractive index of core n1="))
n2 = float(input("Enter the refractive index of core n2="))
if (n1<n2):
n1 = float(input("Enter the refractive index of core n1 is greater than n2="))
print("Re-entered value of n1 is",n1)
NA=math.sqrt(n1**2-n2**2)
AA=math.degrees(math.asin(NA))
CA=math.degrees(math.asin(n2/n1))
print("Numerical Aperture is",NA)
print("Acceptance angle is",AA)
print("critical Angle is",CA)
OUTPUT:

1) Enter the refractive index of core n1= 1.55


Enter the refractive index of core n2= 1.48
Numerical Aperture is 0.4605431575867786
Acceptance angle is 27.422162023442354
critical Angle is 72.71501741960225

2) Enter the refractive index of core n1= 1.23


Enter the refractive index of core n2= 1.32
Enter the refractive index of core n1 is greater than n2= 1.48
Re-entered value of n1 is 1.48
Numerical Aperture is 0.6693280212272602
Acceptance angle is 42.01522232489246
critical Angle is 63.11195238227597
Roll No- 24
Experiment No-9
AIM-Write a program in python to calculation signal attenuation and total
attenuation of the link(Example 3.1 from john senior)

PROGRAMME:

import math
Pi=float(input("Enter the input power of the fiber Pi="))
Po=float(input("Enter the output power of the fiber Po="))
L=float(input("Enter the length of the fiber L="))
A=Pi/Po
SA=10*(math.log(A,10))
print("Signal Attenuation is",SA)
SAL=SA/L
print("Signal Attenuation per km for the fiber is",SAL)
SPLICE=float(input("Enter the interval of SPLICE="))
SAS=float(input("Enter the signal attenuation per SPLICE="))
NL=float(input("Enter new length of the fiber="))
NSPLICE=(NL/SPLICE-1)
print("Total number os SPLICE in the new fiber= ",NSPLICE)
TSAS=NSPLICE*SAS
print("Total attenuation due to SPLICE=",TSAS)
SANL=NL*SAL
TFSA=SANL+TSAS
print("Total Attenuation of the link is=",TFSA)
power_ratio=10**(TFSA/10)
print("Numerical value for the input/output power ratio=",power_ratio)
OUTPUT:

Enter the input power of the fiber Pi= 120


Enter the output power of the fiber Po= 3
Enter the length of the fiber L= 8
Signal Attenuation is 16.02059991327962
Signal Attenuation per km for the fiber is 2.0025749891599527
Enter the interval of SPLICE= 1
Enter the signal attenuation per SPLICE= 1
Enter new length of the fiber= 10
Total number os SPLICE in the new fiber= 9.0
Total attenuation due to SPLICE= 9.0
Total Attenuation of the link is= 29.025749891599528
Numerical value for the input/output power ratio= 799.0519011866753
Roll No-24
Experiment No-10
AIM-Write a program in python to calculate LED Quantum efficiency and
power generated (Example 7.1 from John Senior)

PROGRAMME:

import math
RR=float(input("Enter the radiative recombination lifetimes of the minority
carriers="))
NRR=float(input("Enter the nonradiative recombination lifetimes of the
minority carriers="))
TR=RR*NRR/(RR+NRR)
print("Total carrier recombination lifetime is=",TR)
QE=TR/RR
print("The internal quantum efficiency of the device is=",QE)
W=float(input("Enter the peak emission wavelength="))
l=float(input("Enter drive current in mA="))
a=10
b=-34
c=-19
H=6.626*pow(a,b)
C=2.998*pow(10,8)
E=1.602*pow(a,c)
P=QE*H*C*l/(E*W)
print("The power generated is=",P)
OUTPUT:

Enter the radiative recombination lifetimes of the minority carriers= 60


Enter the nonradiative recombination lifetimes of the minority carriers= 100
Total carrier recombination lifetime is= 37.5
The internal quantum efficiency of the device is= 0.625
Enter the peak emission wavelength= 0.00000087
Enter drive current in mA= 40
The power generated is= 35.632090633834146

You might also like