summaryrefslogtreecommitdiff
path: root/Fiber_Optics_and_Optoelectronics_by_R_P_Khare/11-Wavelength_division_multiplexing.ipynb
blob: c741c1af8363e56630fab670c2be1b9462691265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 11: Wavelength division multiplexing"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 11.1: interaction_length.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//Example 11.1:interaction length \n",
"clc;\n",
"clear;\n",
"close;\n",
"format('v',6)\n",
"po=1;//assume\n",
"p1=po/2;//\n",
"p2=p1;//\n",
"kl=asin(sqrt(p1));//in degree\n",
"disp(kl,'interaction length is')\n",
"//answer is in the form of pi in the textbook"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 11.2: position_of_the_output_ports.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//Example 11.2:position \n",
"clc;\n",
"clear;\n",
"close;\n",
"a=8.2;//in micro meter\n",
"n1=1.45;//\n",
"n2=1.446;//\n",
"h1=1.31;//in micro meter\n",
"h2=1.55;///in micro meter\n",
"v1=((2*%pi*a*sqrt(n1^2-n2^2))/h1);//\n",
"v2=((2*%pi*a*sqrt(n1^2-n2^2))/h2);//\n",
"db=2.439;//\n",
"del=5.5096*10^-3;//\n",
"k1=1.0483;//mm^-1;//\n",
"k2=1.2839///m^-1\n",
"l1=((%pi)/(4*k1));//in mm\n",
"l2=((%pi)/(4*k2));//in mm\n",
"disp('output port positioned at '+string(l2)+' mm with respect to the input port will gather signals at h1=1310nm')\n",
"disp('output port positioned at '+string(l1)+' mm with respect to the input port will gather signals at h1=1550nm')"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 11.4: order.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//Example 11.4: ARRAYED GUIDE\n",
"clc;\n",
"clear;\n",
"close;\n",
"//given data :\n",
"c=3*10^8;\n",
"lamda_c=1.55*10^-6;// in m\n",
"vc=c/lamda_c;\n",
"n=16;// number of channel\n",
"f=100*10^9;// in Hz\n",
"delV_FSR=n*f;\n",
"m=round(vc/delV_FSR);\n",
"disp(m,'required order of the arrayed waveguide, = ')"
   ]
   }
],
"metadata": {
		  "kernelspec": {
		   "display_name": "Scilab",
		   "language": "scilab",
		   "name": "scilab"
		  },
		  "language_info": {
		   "file_extension": ".sce",
		   "help_links": [
			{
			 "text": "MetaKernel Magics",
			 "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
			}
		   ],
		   "mimetype": "text/x-octave",
		   "name": "scilab",
		   "version": "0.7.1"
		  }
		 },
		 "nbformat": 4,
		 "nbformat_minor": 0
}