summaryrefslogtreecommitdiff
path: root/Electrical_Circuit_Theory_And_Technology/chapter_19.ipynb
blob: a3d9112a34a6cec6d22961957572f7dc7b80b539 (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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
{
 "metadata": {
  "name": "",
  "signature": "sha256:ff0801e05c7bf0796ff3208e43c2911eddcab1546881143bf5f93af7c58ebca6"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h1>Chapter 19: Three phase systems</h1>"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 1, page no. 299</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Vl  =  415;#  in  Volts\n",
      "Rp  =  30;#  in  ohms\n",
      "\n",
      "#calculation:\n",
      "Vp  =  Vl/(3**0.5)\n",
      "Ip  =  Vp/Rp\n",
      "Il  =  Ip\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)the  system  phase  voltage  is  \",round(Vp,2),\"  V\"\n",
      "print  \"\\n  (b)phase  current  is  \",round(Ip,2),\"  A\"\n",
      "print  \"\\n  (c)line  current  is  \",round(Il,2),\"  A\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)the  system  phase  voltage  is   239.6   V\n",
        "\n",
        "  (b)phase  current  is   7.99   A\n",
        "\n",
        "  (c)line  current  is   7.99   A"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 2, page no. 299</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  30;#  in  ohms\n",
      "L  =  0.1273;#  in  Henry\n",
      "Ip  =  5.08;#  in  Amperes\n",
      "f  =  50;#  in  Hz\n",
      "\n",
      "#calculation:\n",
      "XL  =  2*math.pi*f*L\n",
      "Zp  =  (R*R  +  XL*XL)**0.5\n",
      "Il  =  Ip\n",
      "Vp  =  Ip*Zp\n",
      "Vl  =  Vp*(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)line  voltage  is  \",round(Vl,2),\"  V\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)line  voltage  is   439.89   V"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 4, page no. 301</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "V  =  415;#  in  Volts\n",
      "PR  =  24000;#  in  Watt\n",
      "Py  =  18000;#  in  Watt\n",
      "Pb  =  12000;#  in  Watt\n",
      "VR  =  240;#  in  Volts\n",
      "Vy  =  240;#  in  Volts\n",
      "Vb  =  240;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #For  a  star-connected  system  VL  =  Vp*(3**0.5)\n",
      "Vp  =  V/(3**0.5)\n",
      "phir  =  90*math.pi/180\n",
      "phiy  =  330*math.pi/180\n",
      "phib  =  210*math.pi/180\n",
      " #  I  =  P/V    for  a  resistive  load\n",
      "IR  =  PR/VR\n",
      "Iy  =  Py/Vy\n",
      "Ib  =  Pb/Vb\n",
      "Inh  =  IR*math.cos(phir)  +  Ib*math.cos(phib)  +  Iy*math.cos(phiy)\n",
      "Inv  =  IR*math.sin(phir)  +  Ib*math.sin(phib)  +  Iy*math.sin(phiy)\n",
      "In  =  (Inh**2  +  Inv**2)**0.5\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)cuurnt  in  R  line  is  \",round(IR,2),\"  A,  cuurnt  in  Y  line  is  \",round(Iy,2),\"  A  \"\n",
      "print   \"and  cuurnt  in  B  line  is  \",round(Ib,2),\"  A\"\n",
      "print  \"\\n  (b)cuurnt  in  neutral  line  is  \",round(In,2),\"  A\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)cuurnt  in  R  line  is   100.0   A,  cuurnt  in  Y  line  is   75.0   A  and  cuurnt  in  B  line  is   50.0   A\n",
        "\n",
        "  (b)cuurnt  in  neutral  line  is   43.3   A"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 5, page no. 302</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  30;#  in  ohms\n",
      "L  =  0.1273;#  in  Henry\n",
      "VL  =  440;#  in  Volts\n",
      "f  =  50;#  in  Hz\n",
      "\n",
      "#calculation:\n",
      "XL  =  2*math.pi*f*L\n",
      "Zp  =  (R*R  +  XL*XL)**0.5\n",
      "Vp  =  VL\n",
      " #Phase  current\n",
      "Ip  =  Vp/Zp\n",
      " #For  a  delta  connection,\n",
      "IL  =  Ip*(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)the  phase  current  \",round(Ip,2),\"  A\"\n",
      "print  \"\\n  (b)line  current  \",round(IL,2),\"  A\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)the  phase  current   8.8   A\n",
        "\n",
        "  (b)line  current   15.24   A"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 6, page no. 302</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "IL  =  15;#  in  Amperes\n",
      "VL  =  415;#  in  Volts\n",
      "f  =  50;#  in  Hz\n",
      "\n",
      "#calculation:\n",
      " #For  a  delta  connection\n",
      "Ip  =  IL/(3**0.5)#phase  current\n",
      "Vp  =  VL\n",
      " #Capacitive  reactance  per  phase\n",
      "Xc  =  Vp/Ip\n",
      "C  =  1/(2*math.pi*f*Xc)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  capacitance  is  \",round(C*1E6,2),\"uF\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  capacitance  is   66.43 uF"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 7, page no. 303</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  3;#  in  ohms\n",
      "XL  =  4;#  in  ohms\n",
      "VL  =  415;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #For  a  star  connection:\n",
      " #IL  =  Ip\n",
      " #VL  =  Vp*(3**0.5)\n",
      "VLs  =  VL\n",
      "Vps  =  VLs/(3**0.5)\n",
      " #Impedance  per  phase,\n",
      "Zp  =  (R*R  +  XL*XL)**0.5\n",
      "Ips  =  Vps/Zp\n",
      "ILs  =  Ips\n",
      " #For  a  delta  connection:\n",
      " #VL  =  Vp\n",
      " #IL  =  Ip*(3**0.5)\n",
      "VLd  =  VL\n",
      "Vpd  =  VLd\n",
      "Ipd  =  Vpd/Zp\n",
      "ILd  =  Ipd*(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)the  line  voltage  for  star  connection  is  \",round(VLs,2),\"  V  \"\n",
      "print   \"and the  phase  voltage  for  star  connection  is  \",round(Vps,2),\"  V  \"\n",
      "print   \"and the  line  voltage  for  delta  connection  is  \",round(VLd,2),\"  V  \"\n",
      "print   \"and the  phase  voltage  for  delta  connection  is  \",round(Vpd,2),\"  V\"\n",
      "print  \"\\n  (b)the  line  current  for  star  connection  is  \",round(ILs,2),\"  A  \"\n",
      "print   \"and  the  phase  current  for  star  connection  is  \",round(Ips,2),\"  A  \"\n",
      "print   \"and the  line  current  for  delta  connection  is  \",round(ILd,2),\"  A  \"\n",
      "print   \"and the  phase  current  for  delta  connection  is  \",round(Ipd,2),\"  A\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)the  line  voltage  for  star  connection  is   415.0   V  \n",
        "and the  phase  voltage  for  star  connection  is   239.6   V  \n",
        "and the  line  voltage  for  delta  connection  is   415.0   V  \n",
        "and the  phase  voltage  for  delta  connection  is   415.0   V\n",
        "\n",
        "  (b)the  line  current  for  star  connection  is   47.92   A  \n",
        "and  the  phase  current  for  star  connection  is   47.92   A  \n",
        "and the  line  current  for  delta  connection  is   143.76   A  \n",
        "and the  phase  current  for  delta  connection  is   83.0   A\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 8, page no. 304</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Rp  =  12;#  in  ohms\n",
      "VL  =  415;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #Power  dissipated,  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "Vp  =  VL/(3**0.5)#  since  the  resistors  are  star-connected\n",
      " #Phase  current,  Ip\n",
      "Zp  =  Rp\n",
      "Ip  =  Vp/Zp\n",
      " #For  a  star  connection\n",
      "IL  =  Ip\n",
      " #  For  a  purely  resistive  load,  the  power  factor  cos(phi)  =  1\n",
      "pf  =  1\n",
      "P  =  VL*IL*(3**0.5)*pf\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)total  power  dissipated  by  the  resistors  is  \",round(P,2),\"  W\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)total  power  dissipated  by  the  resistors  is   14352.08   W"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 9, page no. 304</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "P  =  5000;#  in  Watts\n",
      "IL  =  8.6;#  in  amperes\n",
      "VL  =  400;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #Power  dissipated,  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "pf  =  P/(VL*IL*(3**0.5))\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  power  factor  is  \",round(pf,3)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  power  factor  is   0.839"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 10, page no. 304</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  10;#  in  ohms\n",
      "L  =  0.042;#  in  Henry\n",
      "VL  =  415;#  in  Volts\n",
      "f  =  50;#  in  Hz\n",
      "\n",
      "#calculation:\n",
      " #For  a  star  connection:\n",
      " #IL  =  Ip\n",
      " #VL  =  Vp*(3**0.5)\n",
      "XL  =  2*math.pi*f*L\n",
      "Zp  =  (R*R  +  XL*XL)**0.5\n",
      "VLs  =  VL\n",
      "Vps  =  VLs/(3**0.5)\n",
      " #Impedance  per  phase,\n",
      "Ips  =  Vps/Zp\n",
      "ILs  =  Ips\n",
      " #Power  dissipated,  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "pfs  =  R/Zp\n",
      "Ps  =  VLs*ILs*(3**0.5)*pfs\n",
      "\n",
      " #For  a  delta  connection:\n",
      " #VL  =  Vp\n",
      " #IL  =  Ip*(3**0.5)\n",
      "VLd  =  VL\n",
      "Vpd  =  VLd\n",
      "Ipd  =  Vpd/Zp\n",
      "ILd  =  Ipd*(3**0.5)\n",
      " #Power  dissipated,  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "pfd  =  R/Zp\n",
      "Pd  =  VLd*ILd*(3**0.5)*pfd\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  total  power  dissipated  in  star  is  \",round(Ps,2),\" W  and  in  delta  is  \",round(Pd,2),\" W\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  total  power  dissipated  in  star  is   6283.29  W  and  in  delta  is   18849.88  W"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 11, page no. 305</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Po  =  12750;#  in  Watts\n",
      "pf  =  0.77;#  power  factor\n",
      "eff  =  0.85;\n",
      "VL  =  415;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #eff  =  power_out/power_in\n",
      "Pi  =  Po/eff\n",
      " #Power  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "IL  =  Pi/(VL*(3**0.5)*pf)#  line  current\n",
      " #For  a  delta  connection:\n",
      " #IL  =  Ip*(3**0.5)\n",
      "Ip  =  IL/(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)power  input  is  \",round(Pi,2),\" W\"\n",
      "print  \"\\n  (b)line  current  is  \",round(IL,2),\"  A\"\n",
      "print  \"\\n  (c)phase  current  is  \",round(Ip,2),\"  A\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)power  input  is   15000.0  W\n",
        "\n",
        "  (b)line  current  is   27.1   A\n",
        "\n",
        "  (c)phase  current  is   15.65   A"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 13, page no. 308</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  30;#  in  ohms\n",
      "XL  =  40;#  in  ohms\n",
      "VL  =  400;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      "Zp  =  (R*R  +  XL*XL)**0.5\n",
      " #a  delta-connected  load\n",
      "Vp  =  VL\n",
      " #Phase  current\n",
      "Ip  =  Vp/Zp\n",
      "IL  =  Ip*(3**0.5)\n",
      " #Alternator  output  power  is  equal  to  the  power  dissipated  by  the  load.\n",
      " #Power  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "pf  =  R/Zp\n",
      "P  =  VL*IL*(3**0.5)*pf\n",
      " #Alternator  output  kVA,\n",
      "S  =  VL*IL*(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)the  current  supplied  by  the  alternator  is  \",round(IL,2),\"  A\"\n",
      "print  \"\\n  (b)output  power  is  \",round(P/1000,2),\"KW  and  kVA  of  the  alternator  is  \",round(S/1000,2),\"kVA\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)the  current  supplied  by  the  alternator  is   13.86   A\n",
        "\n",
        "  (b)output  power  is   5.76 KW  and  kVA  of  the  alternator  is   9.6 kVA"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 14, page no. 308</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "R  =  30;#  in  ohms\n",
      "C  =  80E-6;#  in  Farads\n",
      "f  =  50;#  in  Hz\n",
      "VL  =  400;#  in  Volts\n",
      "\n",
      "#calculation:\n",
      " #Capacitive  reactance\n",
      "Xc  =  1/(2*math.pi*f*C)\n",
      "Zp  =  (R*R  +  Xc*Xc)**0.5\n",
      "pf  =  R/Zp\n",
      " #a  delta-connected  load\n",
      "Vp  =  VL\n",
      " #Phase  current\n",
      "Ip  =  Vp/Zp\n",
      "IL  =  Ip*(3**0.5)\n",
      " #Power  P  =  VL*IL*(3**0.5)*cos(phi)    or    P  =  3*Ip*Ip*Rp)\n",
      "P  =  VL*IL*(3**0.5)*pf\n",
      " #Alternator  output  kVA,\n",
      "S  =  VL*IL*(3**0.5)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)the  phase  current    is  \",round(Ip,2),\"  A\"\n",
      "print  \"\\n  (b)the  line  current    is  \",round(IL,2),\"  A\"\n",
      "print  \"\\n  (c) power  is  \",round(P/1000,2),\"kW\"\n",
      "print  \"\\n  (d)kVA  of  the  alternator  is  \", round(S/1000,2),\"kVA\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)the  phase  current    is   8.03   A\n",
        "\n",
        "  (b)the  line  current    is   13.9   A\n",
        "\n",
        "  (c) power  is   5.8 kW\n",
        "\n",
        "  (d)kVA  of  the  alternator  is   9.63 kVA"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 15, page no. 309</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Pi1  =  8000;#  in  Watts\n",
      "Pi2  =  4000;#  in  Watts\n",
      "\n",
      "#calculation:\n",
      " #Total  input  power\n",
      "Pi  =  Pi1  +  Pi2\n",
      "phi  =  math.atan((Pi1  -  Pi2)*(3**0.5)/(Pi1  +  Pi2))\n",
      " #Power  factor\n",
      "pf  =  math.cos(phi)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)power  input  is  \",round(Pi,2),\"W\"\n",
      "print  \"\\n  (b)power  factor  is  \",round(pf,2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)power  input  is   12000.0 W\n",
        "\n",
        "  (b)power  factor  is   0.87"
       ]
      }
     ],
     "prompt_number": 14
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 16, page no. 310</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Pi  =  12000;#  in  Watts\n",
      "pf  =  0.6;#  power  factor\n",
      "\n",
      "#calculation:\n",
      " #If  the  two  wattmeters  indicate  Pi1  and  Pi2  respectively\n",
      " #  Pit  =  Pi1  +  Pi2\n",
      "Pit  =  Pi\n",
      " #  Pid  =  Pi1  -  Pi2\n",
      " #power  factor  =  0.6  =  cos(phi)\n",
      "phi  =  math.acos(pf)\n",
      "Pid  =  Pit*math.tan(phi)/(3**0.5)\n",
      " #Hence  wattmeter  1  reads\n",
      "Pi1  =  (Pid  +  Pit)/2\n",
      " #wattmeter  2  reads\n",
      "Pi2  =  Pit  -  Pi1\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  reading  in  each  wattameter  are  \",round(Pi1,2),\"W  and  \",round(Pi2,2),\"W\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  reading  in  each  wattameter  are   10618.8 W  and   1381.2 W"
       ]
      }
     ],
     "prompt_number": 15
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 17, page no. 310</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing  the  variables:\n",
      "Pi1  =  10000;#  in  Watts\n",
      "Pi2  =  -3000;#  in  Watts\n",
      "\n",
      "#calculation:\n",
      " #Total  input  power\n",
      "Pi  =  Pi1  +  Pi2\n",
      "phi  =  math.atan((Pi1  -  Pi2)*(3**0.5)/(Pi1  +  Pi2))\n",
      " #Power  factor\n",
      "pf  =  math.cos(phi)\n",
      "\n",
      "\n",
      "#Results\n",
      "print  \"\\n\\n  Result  \\n\\n\"\n",
      "print  \"\\n  (a)power  input  is  \",round(Pi,2),\"W\"\n",
      "print  \"\\n  (b)power  factor  is  \",round(pf,2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        "  Result  \n",
        "\n",
        "\n",
        "\n",
        "  (a)power  input  is   7000.0 W\n",
        "\n",
        "  (b)power  factor  is   0.3"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "<h3>Example 18, page no. 311</h3>"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "from __future__ import division\n",
      "import math\n",
      "#initializing the variables:\n",
      "R = 8; # in ohms\n",
      "XL = 8; # in ohms\n",
      "VL = 415; # in Volts\n",
      "\n",
      "#calculation:\n",
      "#For a star connection:\n",
      "#IL = Ip\n",
      "#VL = Vp*(3**0.5)\n",
      "VLs = VL\n",
      "Vps = VLs/(3**0.5)\n",
      "#Impedance per phase,\n",
      "Zp = (R*R + XL*XL)**0.5\n",
      "Ips = Vps/Zp\n",
      "ILs = Ips\n",
      "#Power dissipated, P = VL*IL*(3**0.5)*cos(phi)  or  P = 3*Ip*Ip*Rp)\n",
      "pf = R/Zp\n",
      "Ps = VLs*ILs*(3**0.5)*pf\n",
      "#If wattmeter readings are P1 and P2 then P1 + P2 = Pst\n",
      "Pst = Ps\n",
      "# Pid = Pi1 - Pi2\n",
      "phi = math.acos(pf)\n",
      "Psd = Pst*math.tan(phi)/(3**0.5)\n",
      "#Hence wattmeter 1 reads\n",
      "Ps1 = (Psd + Pst)/2\n",
      "#wattmeter 2 reads\n",
      "Ps2 = Pst - Ps1\n",
      "\n",
      "#For a delta connection:\n",
      "#VL = Vp\n",
      "#IL = Ip*(3**0.5)\n",
      "VLd = VL\n",
      "Vpd = VLd\n",
      "Ipd = Vpd/Zp\n",
      "ILd = Ipd*(3**0.5)\n",
      "#Power dissipated, P = VL*IL*(3**0.5)*cos(phi)  or  P = 3*Ip*Ip*Rp)\n",
      "Pd = VLd*ILd*(3**0.5)*pf\n",
      "#If wattmeter readings are P1 and P2 then P1 + P2 = Pdt\n",
      "Pdt = Pd\n",
      "# Pid = Pi1 - Pi2\n",
      "Pdd = Pdt*math.tan(phi)/(3**0.5)\n",
      "#Hence wattmeter 1 reads\n",
      "Pd1 = (Pdd + Pdt)/2\n",
      "#wattmeter 2 reads\n",
      "Pd2 = Pdt - Pd1\n",
      "\n",
      "#results\n",
      "print \"\\n\\n Result \\n\\n\"\n",
      "print \"(a)When the coils are star-connected the wattmeter readings are\", round(Ps1,2),\"W and \",round(Ps2,2),\"W\"\n",
      "print \"(b)When the coils are delta-connected the wattmeter readings are are\", round(Pd1,2),\"W and\", round(Pd2,2),\"W\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "\n",
        " Result \n",
        "\n",
        "\n",
        "(a)When the coils are star-connected the wattmeter readings are 8489.35 W and  2274.71 W\n",
        "(b)When the coils are delta-connected the wattmeter readings are are 25468.05 W and 6824.14 W"
       ]
      }
     ],
     "prompt_number": 17
    }
   ],
   "metadata": {}
  }
 ]
}