summaryrefslogtreecommitdiff
path: root/Microwave_and_Radar_Engineering/Chapter_7.ipynb
diff options
context:
space:
mode:
authorJovina Dsouza2014-06-18 12:43:07 +0530
committerJovina Dsouza2014-06-18 12:43:07 +0530
commit206d0358703aa05d5d7315900fe1d054c2817ddc (patch)
treef2403e29f3aded0caf7a2434ea50dd507f6545e2 /Microwave_and_Radar_Engineering/Chapter_7.ipynb
parentc6f0d6aeb95beaf41e4b679e78bb42c4ffe45a40 (diff)
downloadPython-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.tar.gz
Python-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.tar.bz2
Python-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.zip
adding book
Diffstat (limited to 'Microwave_and_Radar_Engineering/Chapter_7.ipynb')
-rw-r--r--Microwave_and_Radar_Engineering/Chapter_7.ipynb189
1 files changed, 189 insertions, 0 deletions
diff --git a/Microwave_and_Radar_Engineering/Chapter_7.ipynb b/Microwave_and_Radar_Engineering/Chapter_7.ipynb
new file mode 100644
index 00000000..4220d38b
--- /dev/null
+++ b/Microwave_and_Radar_Engineering/Chapter_7.ipynb
@@ -0,0 +1,189 @@
+{
+ "metadata": {
+ "name": "Chapter 7"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7:Microwave Measurements"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.1, Page number 278"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "''' Calculating VSWR'''\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#Variable declaration\n",
+ "f = 10*10**9 #frequency(Hz)\n",
+ "a = 4 #length of waveguide(cms)\n",
+ "b = 2.5 #breadth of waveguide(cms)\n",
+ "d = 1*10**-1 #d2- d1(m)\n",
+ "c = 3*10**10 #velocity of propgation(m/s)\n",
+ "\n",
+ "#Calculations\n",
+ "lamda_c = 2*a\n",
+ "lamda_o = c/f\n",
+ "lamda_g = lamda_o/math.sqrt(1-((lamda_o/lamda_c)**2))\n",
+ "s = lamda_g/(math.pi*d)\n",
+ "\n",
+ "#Results\n",
+ "print \"VSWR =\",round(s)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VSWR = 10.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.2, Page number 279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "'''Find the value of reflected power nad VSWR'''\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#Variable declaation & Calculations\n",
+ "Pi = 3*10**-3*100 #incident power(w)\n",
+ "Pr = 0.1*10**-3*100 #reflected power(W)\n",
+ "rho = math.sqrt(Pr/Pi)\n",
+ "s = (1+rho)/(1-rho)\n",
+ "\n",
+ "#Results\n",
+ "print \"Reflected power =\",round(rho,2),\"W\"\n",
+ "print \"VSWR =\",round(s,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reflected power = 0.18 W\n",
+ "VSWR = 1.45\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.3, Page number 279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "'''Find value of VSWR'''\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#Variable declaration\n",
+ "Pr = 0.15*10**-3 #reflected power(W)\n",
+ "Pi = 2.5*10**-3 #incident power(W)\n",
+ "\n",
+ "#Calculations\n",
+ "rho = math.sqrt(Pr/Pi)\n",
+ "s = (1+rho)/(1-rho)\n",
+ "\n",
+ "#Results\n",
+ "print \"VSWR =\",round(s,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VSWR = 1.65\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.4, Page number 279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "''' Find value of reflected power'''\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#Variable declaration\n",
+ "s = 2. #VSWR\n",
+ "Pi = 4.5*10**-3*1000 #incident power(W)\n",
+ "c = 30 #couplers\n",
+ "\n",
+ "#Calculations\n",
+ "#s = (1+rho)/(1-rho)\n",
+ "rho = (s-1)/(s+1)\n",
+ "Pr = rho**2*Pi\n",
+ "\n",
+ "#Results\n",
+ "print \"Reflected power =\",Pr,\"W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reflected power = 0.5 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file