summaryrefslogtreecommitdiff
path: root/A Textbook of Electrical Technology AC and DC Machines/chapter39.ipynb
blob: e889465fcd19a6017728fe06c530d429a97b9d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
 "metadata": {
  "name": "",
  "signature": "sha256:c262c33cbbcf1d1756b9358f8cf1d8ed92f53825858905e2598fd8e15870c7ca"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 39: Special Machines"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Number 39.1, Page Number:1537"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#variable description\n",
      "p=8.0 #number of poles\n",
      "tp=5.0 #number of teeth for each pole\n",
      "nr=50.0 #number of rotor teeth\n",
      "\n",
      "#calculation\n",
      "ns=p*tp #number of stator teeth\n",
      "B=((nr-ns)*360)/(nr*ns) #stepping angle\n",
      "\n",
      "#result\n",
      "print \"stepping angle is \",B,\"degrees\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "stepping angle is  1.8 degrees\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Number 39.2, Page Number:1537"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#variable declaration\n",
      "B=2.5\n",
      "rn=25\n",
      "f=3600\n",
      "\n",
      "#calculation\n",
      "r=360/B\n",
      "s=r*rn\n",
      "n=(B*f)/360\n",
      "\n",
      "#result\n",
      "print \"Resolution =\",int(r),\"steps/revolution\"\n",
      "print \" Number of steps required for the shaft to make 25 revolutions =\",int(s)\n",
      "print \" Shaft speed\", int(n),\"rps\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Resolution = 144 steps/revolution\n",
        "Number of steps required for the shaft to make 25 revolutions = 3600\n",
        "Shaft speed 25 rps\n"
       ]
      }
     ],
     "prompt_number": 14
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Number 39.3, Page Number:1544"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#variable declaration\n",
      "B=15 #stepping angle\n",
      "pn=3 #number of phases\n",
      "nr=360/(pn*B) #number of rotor teeth\n",
      "\n",
      "#number of stator teeth\n",
      "ns1=((360*nr)/(360-(nr*B))) #ns>nr\n",
      "ns2=((360*nr)/(360+(nr*B))) #nr>ns\n",
      "\n",
      "#result\n",
      "print \"When ns>nr: ns= \",ns1\n",
      "print \"When nr>ns: ns= \",ns2"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "When ns>nr: ns=  12\n",
        "When nr>ns: ns=  6\n"
       ]
      }
     ],
     "prompt_number": 40
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Number 39.4, Page Number:1545"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#variable declaration\n",
      "B=1.8\n",
      "pn=4\n",
      "\n",
      "#calculation\n",
      "nr=360/(pn*B) #number of rotor teeth\n",
      "ns=nr\n",
      "\n",
      "#result\n",
      "print \"Number of rotor teeth = \",int(nr)\n",
      "print \"Number of statot teeth = \",int(ns)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Number of rotor teeth =  50.0\n",
        "Number of statot teeth =  50.0\n"
       ]
      }
     ],
     "prompt_number": 18
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Number 39.5, Page Number:1555"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#variable declaration\n",
      "er=20\n",
      "\n",
      "#calculation\n",
      "a=40\n",
      "e2=er*math.cos(math.radians(a))\n",
      "e1=er*math.cos(math.radians(a-120))\n",
      "e3=er*math.cos(math.radians(a+120))\n",
      "\n",
      "#result\n",
      "print \"a) For a=40 degrees\"\n",
      "print \"   e2s=\" ,e2,\"V\"\n",
      "print \"   e1s=\" ,e1,\"V\"\n",
      "print \"   e3s=\" ,e3,\"V\"\n",
      "\n",
      "#calculation\n",
      "a=(-40)\n",
      "e2=er*math.cos(math.radians(a))\n",
      "e1=er*math.cos(math.radians(a-120))\n",
      "e3=er*math.cos(math.radians(a+120))\n",
      "\n",
      "#result\n",
      "print \"b) For a=-40 degrees\"\n",
      "print \"   e2s=\" ,e2,\"V\"\n",
      "print \"   e1s=\" ,e1,\"V\"\n",
      "print \"   e3s=\" ,e3,\"V\"\n",
      "\n",
      "#calculation\n",
      "a=30\n",
      "e12=math.sqrt(3)*er*math.cos(math.radians(a-150))\n",
      "e23=math.sqrt(3)*er*math.cos(math.radians(a-30))\n",
      "e31=math.sqrt(3)*er*math.cos(math.radians(a+90))\n",
      "\n",
      "#result\n",
      "print \"c) For a=30 degrees\"\n",
      "print \"   e12=\" ,e12,\"V\"\n",
      "print \"   e23=\" ,e23,\"V\"\n",
      "print \"   e31=\" ,e31,\"V\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a) For a=40 degrees\n",
        "   e2s= 15.3208888624 V\n",
        "   e1s= 3.47296355334 V\n",
        "   e3s= -18.7938524157 V\n",
        "b) For a=-40 degrees\n",
        "   e2s= 15.3208888624 V\n",
        "   e1s= -18.7938524157 V\n",
        "   e3s= 3.47296355334 V\n",
        "c) For a=30 degrees\n",
        "   e12= -17.3205080757 V\n",
        "   e23= 34.6410161514 V\n",
        "   e31= -17.3205080757 V\n"
       ]
      }
     ],
     "prompt_number": 41
    }
   ],
   "metadata": {}
  }
 ]
}