{
"metadata": {
"name": "",
"signature": "sha256:7b09bc4939eefcfd52ab3af51ad805d4dcc13501d36382e73f4451d0d172843b"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter7 - Source to fiber power launching and photodetectors"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 7.2.1, page 7-11"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from __future__ import division\n",
"from numpy import pi, sqrt, log10\n",
"n1=3.4 #refractive index of optical source\n",
"n=1.46 #refractive index of silica fiber\n",
"r=((n1-n)/(n1+n))**2 #computing Frensel reflection\n",
"L=-10*log10(1-r) #computing loss\n",
"print \"Frensel reflection is %.3f.\\nPower loss is %.2f dB.\" %(r,L) "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Frensel reflection is 0.159.\n",
"Power loss is 0.75 dB.\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 7.2.2, page 7-11"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"r=35*10**-6 #radius\n",
"R=150 #Lambertian emission pattern\n",
"NA=0.2 #Numerical aperture\n",
"Pled = pi**2*r**2*R*NA**2 \n",
"Pled=Pled*10**7 \n",
"print \"Optical power for larger core of 35 micrometer is %.3f mW.\" %(Pled) \n",
"r1=25*10**-6 \n",
"Pled1=(r1/r)**2*Pled \n",
"print \"Optical power for smaller core of 25 micrometer is %.2f mW.\" %(Pled1) "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Optical power for larger core of 35 micrometer is 0.725 mW.\n",
"Optical power for smaller core of 25 micrometer is 0.37 mW.\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 7.2.3, page 7-12"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"r=25*10**-6 #radius\n",
"R=39 #Lambertian emission pattern\n",
"NA=0.25 #numerical aperture\n",
"a=35*10**-6 #area\n",
"Pc1= pi**2*a**2*R*NA**2 #computing coupled power when ra\n",
"Pc=Pc*10**7 \n",
"print \"Optical power when r>a is %.2f mW.\\nOptical power when ra is 0.15 mW.\n",
"Optical power when r