{"nbformat_minor": 0, "cells": [{"source": "#Chapter1 : Electromagnetic Field Radiation", "cell_type": "markdown", "metadata": {}}, {"source": "##Example 1.1, Page number 23", "cell_type": "markdown", "metadata": {}}, {"execution_count": 13, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable declaration\nE= 2 #electric field strength of wave in V/m\nn=120*math.pi #where n is mu [free space impedence (120xpi)]\n\n#calculations\nH=E/n # As n = E/H\nH=H*10**3\n\n#results\nprint \"strength of magnetic field H in free space is %r mA/metre\" % round(H,3)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "strength of magnetic field H in free space is 5.305 mA/metre\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.2, Page number 23", "cell_type": "markdown", "metadata": {}}, {"execution_count": 14, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nP= 625*10**3 #power of transmitting antenna in Watt\nr=30*10**3 #distance in meter\n\n#calculations\nErms=math.sqrt(90*P)/r\nErms=Erms*10**3\n\n#Results\nprint\"Field strength is %r mV/metre.\" %round(Erms,3)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Field strength is 250.0 mV/metre.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.3, Page number 24", "cell_type": "markdown", "metadata": {}}, {"execution_count": 15, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nf=10 #frequency in Mega Hertz\nle=60 #Height of antenna in metres\nlemda=300/f\n\n#calculations\nRr= 160*(math.pi)**2*le**2/lemda**2\nRr=Rr/10**3\n\n#Results\nprint \"Radiation resistance of antenna is %r Kilo ohms.\" %round(Rr,3)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Radiation resistance of antenna is 6.317 Kilo ohms.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.4, Page number 24", "cell_type": "markdown", "metadata": {}}, {"execution_count": 16, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nle=100 # height of antenna in Metres\nIrms=450 # current at the base in Amperes\nf= 40000.0 # frequency in Hertz\nf=f/10**6 # frequency in Mega Hertz\n\nlemda= 300/f # as per the formula where frequncy in MHz\n\n#calculations\nRr=160*(math.pi)**2*le**2/lemda**2 #Rr is radiated resistance in ohms\n\n#Results\nprint \"Radiation resistance is %r ohms.\"%round(Rr,2)\n\n#calculations\nPr= Irms**2*Rr # Power radiated in Watts\nPr= Pr/10**3 # Power radiated in Kilo Watts\n\n#Results\nprint \"Power radiated is %r kW.\"%round(Pr,2)\n\n#variable Declaration\nRl=1.12 # otal reistance of antenna circuit in ohms\nn= Rr/Rl # Efficiancy of the antenna n= Radiation Resistance/Total antenna Resistance\n\n#calculations\nnper= n*100 # Efficiancy of the antenna (in percentage)\n\n#Results\nprint \"Efficiancy of antenna is %r percent. \"%round(nper,2)\n\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Radiation resistance is 0.28 ohms.\nPower radiated is 56.85 kW.\nEfficiancy of antenna is 25.07 percent. \n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.5, Page number 25", "cell_type": "markdown", "metadata": {}}, {"execution_count": 17, "cell_type": "code", "source": "\n#variable Declaration\nI=20 # current in Amperers\nRrad= 50 # Radiated resistance in Ohms\n\n#calculations\nPr= I**2*Rrad # Power radiated in watts\n\n#Results\nprint \"Antenna will radiate %r Watts of power.\"%Pr\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Antenna will radiate 20000 Watts of power.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.6, Page number 25", "cell_type": "markdown", "metadata": {}}, {"execution_count": 18, "cell_type": "code", "source": "\n#variable Declaration\nP=5*10**3 # Power radiated in watts\nI= 15.0 # current in Ampers\n#calculations\nRrad=P/I**2 # Radiated resistance in Ohms\n\n#Results\nprint \"Radiated power is %r ohms.\"%round(Rrad,2)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Radiated power is 22.22 ohms.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.7, Page number 26", "cell_type": "markdown", "metadata": {}}, {"execution_count": 19, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nRrad= 75 # Radiation resistance in ohms\nPr= 10 # Power radiated in kW\nPr=Pr*10**3 # Power radiated in W\n\n#calculations\nI=math.sqrt(Pr/Rrad)\n\n#Results\nprint \"%r Amperes current flows in the antenna\"%round(I,2)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "11.55 Amperes current flows in the antenna\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.8, Page number 26", "cell_type": "markdown", "metadata": {}}, {"execution_count": 20, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nP=W= 100*10**3 # power radiated in watt\nr= 100 # distance in kilo metres\nr=r*10**3 # distance in metres\n\n#calculations\nErms= math.sqrt(90*W)/r\n\n#Results\nprint \"Strength of electric field Erms is %r V/m.\"%Erms\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Strength of electric field Erms is 0.03 V/m.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.9, Page number 26", "cell_type": "markdown", "metadata": {}}, {"execution_count": 21, "cell_type": "code", "source": "from __future__ import division\nimport math\n\n#variable Declaration\nIrms= 25 # transmitting antenna rms current in A\nf=0.150 # frequency in Mega Hertz(MHz)\nErms= 1.5 # Field strength in mV/m\nErms=Erms/10**3 # Field strength in V/m\nr=25 # distance in kilo metre\nr=r*10**3 # distance in metre\n\n#calculations\nlemda= 300/f\nle= Erms*lemda*r/(60*math.pi*Irms) # le is effective height of the antenna in metres\n\n#Results\nprint \"Effective heigth of the antenna le = %r metres.\"%round(le,2)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Effective heigth of the antenna le = 15.92 metres.\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 1.10, Page number 27", "cell_type": "markdown", "metadata": {}}, {"execution_count": 22, "cell_type": "code", "source": "from __future__ import division\nimport math\n\nle= 100 # Heigth of the antenna in metre\nIrms= 100 # rms current in amperes\nr=10 # distance in kilo metre\nr=r*10**3 # distance in metre\nf=300.0 # frequency in KHz\nf=f/10**3 # frequency in MHz\n\nlemda=300/f\n\n#Calculations\nErms= (120*math.pi*Irms*le)/(lemda*r)\n\nRr= (160*(math.pi)**2*le**2)/(lemda**2)\n\nP= Irms**2*Rr # Power radiated in watts\nP= P/10**3 # POwer radiated in kilo watts(kW)\n\n#Results\nprint \"(i)Field strength at Erms is %r mV/m\"%round(Erms*10**3,2)\nprint \"(ii)The power radiated is %r kW.\" %round(P,2)\n\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "(i)Field strength at Erms is 376.99 mV/m\n(ii)The power radiated is 157.91 kW.\n"}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.8", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}}