summaryrefslogtreecommitdiff
path: root/Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb
diff options
context:
space:
mode:
authorPrashant S2020-04-14 10:25:32 +0530
committerGitHub2020-04-14 10:25:32 +0530
commit06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
parent476705d693c7122d34f9b049fa79b935405c9b49 (diff)
downloadall-scilab-tbc-books-ipynb-master.tar.gz
all-scilab-tbc-books-ipynb-master.tar.bz2
all-scilab-tbc-books-ipynb-master.zip
Merge pull request #1 from prashantsinalkar/masterHEADmaster
Initial commit
Diffstat (limited to 'Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb')
-rw-r--r--Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb150
1 files changed, 150 insertions, 0 deletions
diff --git a/Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb b/Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb
new file mode 100644
index 0000000..223aff9
--- /dev/null
+++ b/Fiber_Optics_and_Optoelectronics_by_R_P_Khare/10-Optical_amplifiers.ipynb
@@ -0,0 +1,150 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 10: Optical amplifiers"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 10.1: refractive_index_and_spectral_bandwidth.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Example 10.1;refractive index and bandwidth\n",
+"clc;\n",
+"clear;\n",
+"close;\n",
+"//given data :\n",
+"format('v',5)\n",
+"lamda=1.55*10^-6;// in m\n",
+"del_lamda=1*10^-9;// in m\n",
+"L=320*10^-6;// in m\n",
+"n=(lamda)^2/(2*del_lamda*L);\n",
+"Gs=10^(5/10);// 5 dB is equivalent to 3.16\n",
+"R1=30/100;\n",
+"R2=R1;\n",
+"c=3*10^8;// in m/s\n",
+"del_v=(c/(%pi*n*L))*asin((1-(Gs*sqrt(R1*R2)))/(sqrt(4*Gs*sqrt(R1*R2))));\n",
+"disp(n,'refrative index is')\n",
+"format('v',6)\n",
+"disp(del_v*10^-9,'spectral bandwidth in GHz is')\n",
+"//bandwidth is calculated wrong in the textbook"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 10.2: small_signal_gain_and_maximum_possible_achievable_gain.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Example 10.2;small-signal gain of EDFA and maximum pssible achievable gain\n",
+"clc;\n",
+"clear;\n",
+"close;\n",
+"ts=0.80;//\n",
+"sa=4.6444*10^-25;//in m^2\n",
+"n12=6*10^24;//m^-3\n",
+"se=4.644*10^-25;//m^2\n",
+"n21=0.70;//\n",
+"l=7;//in meter\n",
+"x=((sa*n12*l*(((se/sa)+1)*n21-1)));//\n",
+"G=ts*exp(x);//\n",
+"Gdb=10*log10(G);//\n",
+"Gmax=exp(se*n12*l);//\n",
+"Gmaxdb=10*log10(Gmax);//\n",
+"disp(Gdb,'small signal gain of EDFA in dB is')\n",
+"disp(Gmaxdb,'maximum possible achievable gain in dB is')"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 10.3: output_signal_power_and_overall_gain.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Example 10.3;output signal power and overall gain\n",
+"clc;\n",
+"clear;\n",
+"close;\n",
+"format('v',6)\n",
+"disp('part (a)')\n",
+"psin=1*10^-6;//in watts\n",
+"ppin=1;//in watts\n",
+"gr=5*10^-14;//mW^-1\n",
+"ap1=60*10^-12;//m^2\n",
+"l=2000;//meter\n",
+"asdb=0.15;//dB/km\n",
+"as=3.39*10^-5;//m^-1\n",
+"apdb=0.20;//db/km\n",
+"ap=4.50*10^-5;//m^-1\n",
+"z=(1-exp(-ap*l))/ap;//\n",
+"y=(gr/ap1);//\n",
+"y1=z*y;//\n",
+"y2=y1-(as*l);//\n",
+"psl=psin*exp(y2);//\n",
+"disp(psl*10^6,'output signal power for forward pumping in micro Watt is')\n",
+"format('v',5)\n",
+"disp('part (b)')\n",
+"y1=z*y;//\n",
+"y2=y1-(as*l);//\n",
+"psl=psin*exp(y2);//\n",
+"gfra=psl/(psin);//\n",
+"Gdb=10*log10(gfra);//\n",
+"disp(Gdb,'overall gain in dB is')"
+ ]
+ }
+],
+"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
+}