{ "metadata": { "name": "", "signature": "sha256:fddff29c571385d7ad533c0da8d46227c19589926b0642ffe1126b7caf1c9ca6" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 4:Microwave Transmission Lines" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.1, Page number 141" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "\n", "import math\n", "\n", "#Variable declaration\n", "d = 0.49 #diameter of inner conductor(cm)\n", "D = 1.10 #diameter of outer conductor(cm)\n", "e = 2.3 #polyethylene dielectric\n", "c = 3*10**8 #velocity of light(m/s)\n", "\n", "#Calculations\n", "L = 2*10**-7*math.log(D/d)\n", "C = (55.56*10**-12*e)/(math.log(D/d))\n", "Ro = (60*math.log(D/d))/(math.sqrt(e))\n", "v = c/(math.sqrt(e))\n", "\n", "#Results\n", "print \"Inductance per unit length is\",round(L,8),\"H/m\"\n", "print \"Capacitance per unit length is\",round(C,12),\"PF/m\"\n", "print \"Characteristic impedance is\",round(Ro,3),\"Ohms\"\n", "print \"Velocity of propagation is\",round(v,3),\"m/s\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Inductance per unit length is 1.6e-07 H/m\n", "Capacitance per unit length is 1.58e-10 PF/m\n", "Characteristic impedance is 31.993 Ohms\n", "Velocity of propagation is 197814142.019 m/s\n" ] } ], "prompt_number": 48 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.2, Page number 142" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "import math\n", "\n", "#Variable declartion\n", "R = 0.05 #Ohms/m\n", "L = 1.6*10**-7 #Inductance(from example 4.1)\n", "C = 1.58*10**-10 #Capacitance(from example 4.1)\n", "w = 2*math.pi\n", "c = 3*10**8 #velocity of light(m/s)\n", "e = 2.3 #polyethylene dielectric(from example 4.1)\n", "Pin = 480 #Input power(W)\n", "l = 50 #line length(m)\n", "\n", "#Calculations\n", "zo=math.sqrt(L/C)\n", "alpha = R/(2*zo)\n", "B = w*math.sqrt(L*C)\n", "Vp = 1/math.sqrt(L*C)\n", "e = (C/Vp)**2\n", "Pl = Pin*2*l\n", "\n", "#Results\n", "print \"Attenuation constant =\",round(alpha,5),\"Np/m\"\n", "print \"Phase constant =\",round(B,8),\"rad/m\"\n", "print \"Phase velocity =\",round(Vp*10**-6,2),\"*10**-6 m/s\"\n", "print \"Relative permittivity =\",e\n", "print \"Power loss =\",round(Pl),\"W\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Attenuation constant = 0.00079 Np/m\n", "Phase constant = 3e-08 rad/m\n", "Phase velocity = 198.89 *10**-6 m/s\n", "Relative permittivity = 6.3108992e-37\n", "Power loss = 48000.0 W\n" ] } ], "prompt_number": 67 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.3, Page number 142" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "import math\n", "\n", "#Variable declaration\n", "f = 9.375*10**10 #Frequency(Hz)\n", "c = 3*10**8 #velocity of light(m/s)\n", "b_a = 2.3\n", "\n", "#Calculations\n", "lamda = c/f\n", "#Since b_by_a = 2.3 and b+a lamda_o. Therefore for TE01 mode,\n", "lamda_c1 = 2*b\n", "if lamda_c1lamda_o:\n", " print \"TE10 is a possible mode\"\n", "fc = c/lamda_c2\n", "lamda_c3 = (2*a*b)/math.sqrt((a**2)+(b**2)) #for TE11 and TM11 modes\n", "if lamda_c3lamda_o\n", "\n", "#Part(i)\n", "x = [TE10, TM11, TM21]\n", "#largest=x[0]\n", "for large in x:\n", " if large > lamda_o1:\n", " largest=large\n", "print \"Part(i)\\nSince lamda_c =\",(largest),\"which is greater than lamda_o1, only TE10 mode propagates\"\n", "\n", "#Part(ii)\n", "print \"\\nPart(ii)\"\n", "if TE10>lamda_o2:\n", " print \"TE10 mode propagates\"\n", " if TM11>lamda_o2:\n", " print \"TM11 mode propagates\"\n", " if TM21>lamda_o2:\n", " print \"TM21 mode propagates\"\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Part(i)\n", "Since lamda_c = 16 which is greater than lamda_o1, only TE10 mode propagates\n", "\n", "Part(ii)\n", "TE10 mode propagates\n", "TM11 mode propagates\n", "TM21 mode propagates\n" ] } ], "prompt_number": 35 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.16, Page number 152" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "import math\n", "\n", "#Variable declaration\n", "a = 3 #length of rectangular waveguide(cms)\n", "b = 2 #breadth of rectangular waveguide(cms)\n", "f = 10.*10**9 #frequency(Hz)\n", "c = 3.*10**10 #velocity of propagation(cm/s)\n", "n = 120*math.pi #intrinsic impedance\n", "\n", "#Calculations\n", "lamda_c = (2*a*b)/(math.sqrt(a**2+b**2))\n", "lamda_o = c/f\n", "Ztm = n*math.sqrt(1-((lamda_o/lamda_c)**2))\n", "\n", "#Result\n", "print \"Solution obtained in the textbook are incorrect due to calculation mistake in Ztm\"\n", "print \"characteristic wave impedance =\",round(Ztm,3),\"Ohms\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Solution obtained in the textbook are incorrect due to calculation mistake in Ztm\n", "characteristic wave impedance = 163.242 Ohms\n" ] } ], "prompt_number": 71 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.17, Page number 152" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "import math\n", "\n", "#Variable declaration\n", "f = 6.*10**9 #frequency(Hz)\n", "c = 3.*10**10 #velocity of propagation(cm/s)\n", "\n", "#Calculations\n", "fc = 0.8*f\n", "lamda_c = c/fc\n", "D = (lamda_c*1.841)/math.pi\n", "lamda_o = c/f\n", "lamda_g = lamda_o/(math.sqrt(1-((lamda_o/lamda_c)**2)))\n", "\n", "#Results\n", "print \"diameter of waveguide =\",round(D,4),\"cms\"\n", "print \"guide wavelength =\",round(lamda_g,3),\"cms\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "diameter of waveguide = 3.6626 cms\n", "guide wavelength = 8.333 cms\n" ] } ], "prompt_number": 65 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 4.18, Page number 153" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "import math\n", "\n", "#Variable declaration\n", "a = 1.5 #length of waveguide(cms)\n", "b = 1 #breadth of waveguide(cms)\n", "c = 3*10**10 #velocity of propagation\n", "Er = 4 #dielectric\n", "f = 6*10**9 #frequency(Hz)\n", "\n", "#Calculations and Results\n", "lamda_c = 2*a\n", "fc = c/lamda_c\n", "if flamda_c:\n", " print \"Since the wavelength of the impressed signal is longer than the cut-off wavelength, there is no propagation of wave\"\n", "lamda2 = lamda1/math.sqrt(Er)\n", "if lamda2