"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"P_t = 15 #Transmitter power (W)\n",
"A_et = 2.5 #Effective aperture of transmitter (meter^2)\n",
"A_er = 0.5 #Effective aperture of receiver (meter^2)\n",
"r = 15e3 #Distance between the antennas (Line of sight) (m)\n",
"freq = 5e9 #Frequency (Hz)\n",
"c = 3e8 #speed of light (m/s)\n",
"\n",
"#Calculation\n",
"wave_len = c/freq #Wavelength (m)\n",
"P_r = (P_t*A_et*A_er)/((r**2)*(wave_len**2)) #received power (W)\n",
"\n",
"#Result\n",
"print \"The power delivered to the receiver is\", round(P_r,6), \"watts\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The power delivered to the receiver is 2.3e-05 watts\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"
Example 2-16.1, Page number: 40
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"E1 = 3 #Magnitude of electric field in x direction (V/m)\n",
"E2 = 6 #Magnitude of electric field in y direction (V/m)\n",
"Z = 377 #Intrinsic impedence of free space (ohm)\n",
"\n",
"#Calculation\n",
"avg_power = 0.5*(E1**2 + E2**2)/Z #average power per unit area (W/m^2)\n",
"\n",
"#Result\n",
"print \"The average power per unit area is\", avg_power, \"watts/meter^2\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The average power per unit area is 0.0596816976127 watts/meter^2\n"
]
}
],
"prompt_number": 22
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"
Example 2-17.1, Page number: 43
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"AR_w = 4 #Axial Ratio for left elliptically polarized wave (unitless)\n",
"tau_w = 15 #Tilt angle for left elliptically polarized wave (degrees)\n",
"AR_a = -2 #Axial Ratio for right elliptically polarized wave (unitless) \n",
"tau_a = 45 #Tilt angle for right elliptically polarized wave (degrees)\n",
"tau_w2 = 20.7 #2*Tilt angle for left elliptically polarized wave (degrees) \n",
"tau_a2 = 39.3 #2*Tilt angle for right elliptically polarized wave (degrees)\n",
"\n",
"#Calculation\n",
"eps_a2 = 2*math.atan2(1,AR_a)*180/math.pi #polarisation latitude (degrees)\n",
"eps_w2 = 2*math.atan2(1,AR_w)*180/math.pi #antenna latitude (degrees)\n",
"gamma_w2 =math.acos(math.cos(eps_w2*math.pi/180)*math.cos(tau_w2*math.pi/180));\n",
" #great-circle angle - antenna (radians)\n",
"gamma_a2 =math.acos(math.cos(eps_a2*math.pi/180)*math.cos(tau_a2*math.pi/180));\n",
" #great-circle angle - wave (radians)\n",
"M_Ma = (gamma_w2*180/math.pi) + (gamma_a2*180/math.pi) \n",
" #total great-circle angle (degrees)\n",
"F = math.cos((M_Ma/2)*math.pi/180)**2 \n",
" #Polarisation matching factor (relative quantity)\n",
"\n",
"#Result\n",
"print \"The polarization matching factor is\", round(F,2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The polarization matching factor is 0.44\n"
]
}
],
"prompt_number": 23
}
],
"metadata": {}
}
]
}