diff options
Diffstat (limited to 'Microwave_and_Radar_Engineering/Chapter_6.ipynb')
-rw-r--r-- | Microwave_and_Radar_Engineering/Chapter_6.ipynb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Microwave_and_Radar_Engineering/Chapter_6.ipynb b/Microwave_and_Radar_Engineering/Chapter_6.ipynb index cd9f5cb9..28637666 100644 --- a/Microwave_and_Radar_Engineering/Chapter_6.ipynb +++ b/Microwave_and_Radar_Engineering/Chapter_6.ipynb @@ -27,7 +27,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Calculating the distance between S12 and S21'''\n",
"\n",
"from numpy import array\n",
"import cmath\n",
@@ -38,10 +37,8 @@ "B = 34.3 #rad/sec\n",
"\n",
"#Calculations\n",
- "'''Let port 1 be shifted by phi-1 gegrees to the lfet and port 2 remain unchanged\n",
"phi-1 = [[e^(-j*phi-1), 0]\n",
" [0 1]]\n",
- "Solving [S-dash]=[phi]*[S]*[phi], we get,'''\n",
"phi1 = 53.13\n",
"l = math.radians(phi1)/B\n",
"\n",
@@ -73,7 +70,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determine the scattering parameters'''\n",
"\n",
"import math\n",
"\n",
@@ -143,7 +139,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determining the power in remaining ports when other ports are terminated'''\n",
"\n",
"import math\n",
"\n",
@@ -197,7 +192,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Calculate power delivered to the loads connected to ports 1 & 2'''\n",
"\n",
"from numpy import array\n",
"\n",
@@ -245,7 +239,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determine scattering matrix of the isolator'''\n",
"\n",
"from numpy import array\n",
"\n",
@@ -294,7 +287,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determining the [S] of a 3-port circulator'''\n",
"\n",
"from numpy import array\n",
"\n",
@@ -326,9 +318,7 @@ "S = array([[S11,S12,S13],[S21,S22,S23],[S31,S32,S33]])\n",
"print \"[S]=\\n\",S\n",
"#For a perfectly matched, non-reciprocal, lossless 3-port circulator, [s] is given by,\n",
- "''' [S] = [[0 0 S13]\n",
" [S21 0 0 ]\n",
- " [0 S32 0 ]]'''\n",
"#The terminal planes are such that phase angles of S13=S21=S32=1\n",
"S13_new=1\n",
"S21_new=1\n",
@@ -369,7 +359,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Finding the output power at the ports'''\n",
"\n",
"import math\n",
"\n",
@@ -416,17 +405,14 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Finding the directivity, coupling and islotaion for a directional coupler'''\n",
"\n",
"import math\n",
"\n",
"#Variable declaration\n",
- "'''\n",
"[S] = [[0.05/_30 0.96/_0 0.1/_90 0.05/_90]\n",
" [0.96/_0 0.05/_30 0.05/_90 0.1/_90 ]\n",
" [0.1/_90 0.05/_90 0.05/_30 0.96/_0 ]\n",
" [0.05/_90 0.1/_90 0.96/_0 0.05/_30]]\n",
- "'''\n",
"\n",
"#Calculations\n",
"#Coupling = C=10log(P1/P3)=-20log|S13|\n",
@@ -470,7 +456,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determining VSWR'''\n",
"\n",
"import math\n",
"\n",
@@ -510,7 +495,6 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "'''Determining the phase shift component in a phase shift measurement setup'''\n",
"\n",
"import math\n",
"\n",
|