From 26c87ef47640e121b9b81b987b4298df209816d5 Mon Sep 17 00:00:00 2001 From: Trupti Kini Date: Wed, 15 Jun 2016 23:30:32 +0600 Subject: Added(A)/Deleted(D) following books R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_1.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_1.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_3.ipynb R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_1.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_1.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_2.png A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_3.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_1.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_1.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_2.png A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_3.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_1.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_1.png R A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png -> A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_2.png A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_3.png A High_Voltage_Engineering_by_V_Kamaraju_,_M_S_Naidu/README.txt A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER10.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER13.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER14.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER15.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER16.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER17.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER18.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER2.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER20.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER22.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER23.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER25.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER28.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER32.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER36.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER9.ipynb A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP10.png A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP16.png A Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP23.png R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2._Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2_Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3._An_Op-Amp_with_Negative_Feedback.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3_An_Op-Amp_with_Negative_Feedback.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4._The_Practical_Op-Amp.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4_The_Practical_Op-Amp.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5._Frequency_response_of_an_Op-Amp.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5_Frequency_response_of_an_Op-Amp.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6._General_Linear_Applications.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6_General_Linear_Applications.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7._Active_Filters_and_Oscillators.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7_Active_Filters_and_Oscillators.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8._Comparators_and_Converters.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8_Comparators_and_Converters.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9._Specialixed_IC_Applications.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9_Specialixed_IC_Applications.ipynb R Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/1._Introduction_to_Operational_Amplifiers.ipynb -> Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/chapter1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_10_Photonic_Switching_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_11_Fiber_Optic_Communication_System_Design_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_13_Video_Transmission_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_14_Data_Communication_and_LAN_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_16_Soliton_Communication_Systems_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_2_Light_propagation.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_3_Fiber_optic_technology_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_4_Optical_sources_and_transmitter_circuits_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_5_Optical_Detectors_and_Receivers_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_6_Integrated_Optics_and_Photonic_Circuits_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_7_Wavelength_Division_Multiplexing_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_8_Coherent_Optical_Communication_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_9_Optical_Amplifers_1.ipynb A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_2_1.png A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_3_1.png A Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_4_1.png --- .../chapter25.ipynb | 173 - .../chapter25_1.ipynb | 173 - .../chapter25_2.ipynb | 173 - .../chapter26.ipynb | 1600 ------ .../chapter26_1.ipynb | 1600 ------ .../chapter26_2.ipynb | 1600 ------ .../chapter27.ipynb | 730 --- .../chapter27_1.ipynb | 730 --- .../chapter27_2.ipynb | 730 --- .../chapter28.ipynb | 388 -- .../chapter28_1.ipynb | 388 -- .../chapter28_2.ipynb | 388 -- .../chapter29.ipynb | 2343 --------- .../chapter29_1.ipynb | 2343 --------- .../chapter29_2.ipynb | 2343 --------- .../chapter30.ipynb | 2629 ---------- .../chapter30_1.ipynb | 2629 ---------- .../chapter30_2.ipynb | 2629 ---------- .../chapter31.ipynb | 935 ---- .../chapter31_1.ipynb | 935 ---- .../chapter31_2.ipynb | 935 ---- .../chapter32.ipynb | 5311 -------------------- .../chapter32_1.ipynb | 5311 -------------------- .../chapter32_2.ipynb | 5311 -------------------- .../chapter33.ipynb | 1433 ------ .../chapter33_1.ipynb | 1433 ------ .../chapter33_2.ipynb | 1433 ------ .../chapter34.ipynb | 3065 ----------- .../chapter34_1.ipynb | 3065 ----------- .../chapter34_2.ipynb | 3065 ----------- .../chapter35.ipynb | 1220 ----- .../chapter35_1.ipynb | 1220 ----- .../chapter35_2.ipynb | 1220 ----- .../chapter36.ipynb | 393 -- .../chapter36_1.ipynb | 393 -- .../chapter36_2.ipynb | 393 -- .../chapter37.ipynb | 2781 ---------- .../chapter37_1.ipynb | 2781 ---------- .../chapter37_2.ipynb | 2781 ---------- .../chapter38.ipynb | 1682 ------- .../chapter38_1.ipynb | 1682 ------- .../chapter38_2.ipynb | 1682 ------- .../chapter39.ipynb | 256 - .../chapter39_1.ipynb | 256 - .../chapter39_2.ipynb | 256 - .../screenshots/chapter29example32.png | Bin 24417 -> 0 bytes .../screenshots/chapter29example32_1.png | Bin 24417 -> 0 bytes .../screenshots/chapter29example32_2.png | Bin 24417 -> 0 bytes .../screenshots/chapter29example33.png | Bin 25907 -> 0 bytes .../screenshots/chapter29example33_1.png | Bin 25907 -> 0 bytes .../screenshots/chapter29example33_2.png | Bin 25907 -> 0 bytes .../screenshots/chapter32example30.png | Bin 17929 -> 0 bytes .../screenshots/chapter32example30_1.png | Bin 17929 -> 0 bytes .../screenshots/chapter32example30_2.png | Bin 17929 -> 0 bytes .../chapter25.ipynb | 173 + .../chapter25_1.ipynb | 173 + .../chapter25_2.ipynb | 173 + .../chapter25_3.ipynb | 173 + .../chapter26.ipynb | 1600 ++++++ .../chapter26_1.ipynb | 1600 ++++++ .../chapter26_2.ipynb | 1600 ++++++ .../chapter26_3.ipynb | 1600 ++++++ .../chapter27.ipynb | 730 +++ .../chapter27_1.ipynb | 730 +++ .../chapter27_2.ipynb | 730 +++ .../chapter27_3.ipynb | 730 +++ .../chapter28.ipynb | 388 ++ .../chapter28_1.ipynb | 388 ++ .../chapter28_2.ipynb | 388 ++ .../chapter28_3.ipynb | 388 ++ .../chapter29.ipynb | 2343 +++++++++ .../chapter29_1.ipynb | 2343 +++++++++ .../chapter29_2.ipynb | 2343 +++++++++ .../chapter29_3.ipynb | 2343 +++++++++ .../chapter30.ipynb | 2629 ++++++++++ .../chapter30_1.ipynb | 2629 ++++++++++ .../chapter30_2.ipynb | 2629 ++++++++++ .../chapter30_3.ipynb | 2629 ++++++++++ .../chapter31.ipynb | 935 ++++ .../chapter31_1.ipynb | 935 ++++ .../chapter31_2.ipynb | 935 ++++ .../chapter31_3.ipynb | 935 ++++ .../chapter32.ipynb | 5311 ++++++++++++++++++++ .../chapter32_1.ipynb | 5311 ++++++++++++++++++++ .../chapter32_2.ipynb | 5311 ++++++++++++++++++++ .../chapter32_3.ipynb | 5311 ++++++++++++++++++++ .../chapter33.ipynb | 1433 ++++++ .../chapter33_1.ipynb | 1433 ++++++ .../chapter33_2.ipynb | 1433 ++++++ .../chapter33_3.ipynb | 1433 ++++++ .../chapter34.ipynb | 3065 +++++++++++ .../chapter34_1.ipynb | 3065 +++++++++++ .../chapter34_2.ipynb | 3065 +++++++++++ .../chapter34_3.ipynb | 3065 +++++++++++ .../chapter35.ipynb | 1220 +++++ .../chapter35_1.ipynb | 1220 +++++ .../chapter35_2.ipynb | 1220 +++++ .../chapter35_3.ipynb | 1220 +++++ .../chapter36.ipynb | 393 ++ .../chapter36_1.ipynb | 393 ++ .../chapter36_2.ipynb | 393 ++ .../chapter36_3.ipynb | 393 ++ .../chapter37.ipynb | 2781 ++++++++++ .../chapter37_1.ipynb | 2781 ++++++++++ .../chapter37_2.ipynb | 2781 ++++++++++ .../chapter37_3.ipynb | 2781 ++++++++++ .../chapter38.ipynb | 1682 +++++++ .../chapter38_1.ipynb | 1682 +++++++ .../chapter38_2.ipynb | 1682 +++++++ .../chapter38_3.ipynb | 1682 +++++++ .../chapter39.ipynb | 256 + .../chapter39_1.ipynb | 256 + .../chapter39_2.ipynb | 256 + .../chapter39_3.ipynb | 256 + .../screenshots/chapter29example32.png | Bin 0 -> 24417 bytes .../screenshots/chapter29example32_1.png | Bin 0 -> 24417 bytes .../screenshots/chapter29example32_2.png | Bin 0 -> 24417 bytes .../screenshots/chapter29example32_3.png | Bin 0 -> 24417 bytes .../screenshots/chapter29example33.png | Bin 0 -> 25907 bytes .../screenshots/chapter29example33_1.png | Bin 0 -> 25907 bytes .../screenshots/chapter29example33_2.png | Bin 0 -> 25907 bytes .../screenshots/chapter29example33_3.png | Bin 0 -> 25907 bytes .../screenshots/chapter32example30.png | Bin 0 -> 17929 bytes .../screenshots/chapter32example30_1.png | Bin 0 -> 17929 bytes .../screenshots/chapter32example30_2.png | Bin 0 -> 17929 bytes .../screenshots/chapter32example30_3.png | Bin 0 -> 17929 bytes .../README.txt | 10 + .../CHAPTER10.ipynb | 88 + .../CHAPTER13.ipynb | 84 + .../CHAPTER14.ipynb | 78 + .../CHAPTER15.ipynb | 72 + .../CHAPTER16.ipynb | 71 + .../CHAPTER17.ipynb | 85 + .../CHAPTER18.ipynb | 128 + .../CHAPTER2.ipynb | 82 + .../CHAPTER20.ipynb | 129 + .../CHAPTER22.ipynb | 157 + .../CHAPTER23.ipynb | 175 + .../CHAPTER25.ipynb | 146 + .../CHAPTER28.ipynb | 90 + .../CHAPTER32.ipynb | 73 + .../CHAPTER36.ipynb | 159 + .../CHAPTER9.ipynb | 80 + .../screenshots/CHAP10.png | Bin 0 -> 82035 bytes .../screenshots/CHAP16.png | Bin 0 -> 57926 bytes .../screenshots/CHAP23.png | Bin 0 -> 41805 bytes ...1._Introduction_to_Operational_Amplifiers.ipynb | 220 - ...a_Sheets_and_Characteristics_of_an_Op-Amp.ipynb | 196 - ...a_Sheets_and_Characteristics_of_an_Op-Amp.ipynb | 196 + .../3._An_Op-Amp_with_Negative_Feedback.ipynb | 414 -- .../3_An_Op-Amp_with_Negative_Feedback.ipynb | 414 ++ .../4._The_Practical_Op-Amp.ipynb | 1035 ---- .../4_The_Practical_Op-Amp.ipynb | 1035 ++++ .../5._Frequency_response_of_an_Op-Amp.ipynb | 265 - .../5_Frequency_response_of_an_Op-Amp.ipynb | 265 + .../6._General_Linear_Applications.ipynb | 876 ---- .../6_General_Linear_Applications.ipynb | 876 ++++ .../7._Active_Filters_and_Oscillators.ipynb | 1545 ------ .../7_Active_Filters_and_Oscillators.ipynb | 1545 ++++++ .../8._Comparators_and_Converters.ipynb | 386 -- .../8_Comparators_and_Converters.ipynb | 386 ++ .../9._Specialixed_IC_Applications.ipynb | 813 --- .../9_Specialixed_IC_Applications.ipynb | 813 +++ .../chapter1.ipynb | 220 + .../Chapter_10_Photonic_Switching_1.ipynb | 114 + ...Fiber_Optic_Communication_System_Design_1.ipynb | 157 + .../Chapter_13_Video_Transmission_1.ipynb | 70 + .../Chapter_14_Data_Communication_and_LAN_1.ipynb | 71 + ...hapter_16_Soliton_Communication_Systems_1.ipynb | 240 + .../Chapter_2_Light_propagation.ipynb | 430 ++ .../Chapter_3_Fiber_optic_technology_1.ipynb | 103 + ...ptical_sources_and_transmitter_circuits_1.ipynb | 217 + ...apter_5_Optical_Detectors_and_Receivers_1.ipynb | 260 + ...Integrated_Optics_and_Photonic_Circuits_1.ipynb | 281 ++ ...pter_7_Wavelength_Division_Multiplexing_1.ipynb | 75 + ...hapter_8_Coherent_Optical_Communication_1.ipynb | 69 + .../Chapter_9_Optical_Amplifers_1.ipynb | 170 + .../screenshots/chapter_2_1.png | Bin 0 -> 184696 bytes .../screenshots/chapter_3_1.png | Bin 0 -> 167748 bytes .../screenshots/chapter_4_1.png | Bin 0 -> 199025 bytes 180 files changed, 109470 insertions(+), 80567 deletions(-) delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_1.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_1.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_1.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_1.png delete mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_1.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_2.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_3.ipynb create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_1.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_2.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_3.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_1.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_2.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_3.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_1.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_2.png create mode 100644 A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_3.png create mode 100644 High_Voltage_Engineering_by_V_Kamaraju_,_M_S_Naidu/README.txt create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER10.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER13.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER14.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER15.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER16.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER17.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER18.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER2.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER20.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER22.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER23.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER25.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER28.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER32.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER36.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER9.ipynb create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP10.png create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP16.png create mode 100644 Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP23.png delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/1._Introduction_to_Operational_Amplifiers.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2._Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2_Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3._An_Op-Amp_with_Negative_Feedback.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3_An_Op-Amp_with_Negative_Feedback.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4._The_Practical_Op-Amp.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4_The_Practical_Op-Amp.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5._Frequency_response_of_an_Op-Amp.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5_Frequency_response_of_an_Op-Amp.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6._General_Linear_Applications.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6_General_Linear_Applications.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7._Active_Filters_and_Oscillators.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7_Active_Filters_and_Oscillators.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8._Comparators_and_Converters.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8_Comparators_and_Converters.ipynb delete mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9._Specialixed_IC_Applications.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9_Specialixed_IC_Applications.ipynb create mode 100644 Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/chapter1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_10_Photonic_Switching_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_11_Fiber_Optic_Communication_System_Design_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_13_Video_Transmission_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_14_Data_Communication_and_LAN_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_16_Soliton_Communication_Systems_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_2_Light_propagation.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_3_Fiber_optic_technology_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_4_Optical_sources_and_transmitter_circuits_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_5_Optical_Detectors_and_Receivers_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_6_Integrated_Optics_and_Photonic_Circuits_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_7_Wavelength_Division_Multiplexing_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_8_Coherent_Optical_Communication_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_9_Optical_Amplifers_1.ipynb create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_2_1.png create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_3_1.png create mode 100644 Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_4_1.png diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25.ipynb deleted file mode 100644 index 884c7e96..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25.ipynb +++ /dev/null @@ -1,173 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 25: Elements of Electro-Mechanical Energy Conversion" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.1, Page Number:876" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "sod=15#stator-core outer diameter\n", - "sid=10.05#stator-core inner diameter\n", - "rod=10.00#rotor-core outer diameter\n", - "rid=5#rotor-core inner diameter\n", - "a=8#axial lenght of the machine\n", - "b=1.20\n", - "ur=1000\n", - "#calculations\n", - "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", - "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", - "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", - "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", - "e=ed*va*math.pow(10,-6)\n", - "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", - "es=edm*vs*math.pow(10,-6)\n", - "er=edm*vr*math.pow(10,-6)\n", - "kr=(vs+vr)/vs\n", - "ke=(es+er)/e\n", - "ratio=kr/ke\n", - "eratio=e/(es+er)\n", - "\n", - "#result\n", - "print \"Energy stored in air gap= \",e,\" Joules\"\n", - "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", - "print \"Energy stored in rotor core= \",er,\" Joules\"\n", - "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Energy stored in air gap= 3.609 Joules\n", - "Energy stored in stator-core= 0.45 Joules\n", - "Energy stored in rotor core= 0.27 Joules\n", - "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.2, Page Number:877" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "n=800#turns\n", - "area=5*5#cross sectional area\n", - "i=1.25#amp\n", - "x=0.25#cm\n", - "l=0.402\n", - "#calculations\n", - "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", - "l=n**2*p\n", - "em=.5*i*i*l\n", - "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", - "\n", - "#result\n", - "print \"a)i)coil inductance=\",l,\"H\"\n", - "print \" ii)field energy stored=\",em,\"J\"\n", - "print \"b)mechanical energy output=\",W,\"NW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)coil inductance= 0.40192 H\n", - " ii)field energy stored= 0.314 J\n", - "b)mechanical energy output= -62.8 NW\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.4, Page Number:882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "lo=50#mH\n", - "xo=0.05#cm\n", - "r=0.5#ohm\n", - "x=0.075#cm\n", - "i2=3#A\n", - "x2=0.15#cm\n", - "\n", - "#calculation\n", - "l1=2*lo/(1+(x/xo))\n", - "lambda1=l1*i2*10**(-3)\n", - "W=0.5*l1*i2**2*10**(-3)\n", - "l2=2*lo/(1+(x2/xo))\n", - "lambda2=l2*i2*10**(-3)\n", - "w2=0.5*i2*(lambda1-lambda2)\n", - "\n", - "#result\n", - "print \"a)magnetic stored energy=\",W,\"J\"\n", - "print \"b)change in magnetic stored energy=\",w2,\"J\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)magnetic stored energy= 0.18 J\n", - "b)change in magnetic stored energy= 0.0675 J\n" - ] - } - ], - "prompt_number": 19 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_1.ipynb deleted file mode 100644 index 884c7e96..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_1.ipynb +++ /dev/null @@ -1,173 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 25: Elements of Electro-Mechanical Energy Conversion" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.1, Page Number:876" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "sod=15#stator-core outer diameter\n", - "sid=10.05#stator-core inner diameter\n", - "rod=10.00#rotor-core outer diameter\n", - "rid=5#rotor-core inner diameter\n", - "a=8#axial lenght of the machine\n", - "b=1.20\n", - "ur=1000\n", - "#calculations\n", - "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", - "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", - "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", - "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", - "e=ed*va*math.pow(10,-6)\n", - "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", - "es=edm*vs*math.pow(10,-6)\n", - "er=edm*vr*math.pow(10,-6)\n", - "kr=(vs+vr)/vs\n", - "ke=(es+er)/e\n", - "ratio=kr/ke\n", - "eratio=e/(es+er)\n", - "\n", - "#result\n", - "print \"Energy stored in air gap= \",e,\" Joules\"\n", - "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", - "print \"Energy stored in rotor core= \",er,\" Joules\"\n", - "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Energy stored in air gap= 3.609 Joules\n", - "Energy stored in stator-core= 0.45 Joules\n", - "Energy stored in rotor core= 0.27 Joules\n", - "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.2, Page Number:877" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "n=800#turns\n", - "area=5*5#cross sectional area\n", - "i=1.25#amp\n", - "x=0.25#cm\n", - "l=0.402\n", - "#calculations\n", - "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", - "l=n**2*p\n", - "em=.5*i*i*l\n", - "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", - "\n", - "#result\n", - "print \"a)i)coil inductance=\",l,\"H\"\n", - "print \" ii)field energy stored=\",em,\"J\"\n", - "print \"b)mechanical energy output=\",W,\"NW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)coil inductance= 0.40192 H\n", - " ii)field energy stored= 0.314 J\n", - "b)mechanical energy output= -62.8 NW\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.4, Page Number:882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "lo=50#mH\n", - "xo=0.05#cm\n", - "r=0.5#ohm\n", - "x=0.075#cm\n", - "i2=3#A\n", - "x2=0.15#cm\n", - "\n", - "#calculation\n", - "l1=2*lo/(1+(x/xo))\n", - "lambda1=l1*i2*10**(-3)\n", - "W=0.5*l1*i2**2*10**(-3)\n", - "l2=2*lo/(1+(x2/xo))\n", - "lambda2=l2*i2*10**(-3)\n", - "w2=0.5*i2*(lambda1-lambda2)\n", - "\n", - "#result\n", - "print \"a)magnetic stored energy=\",W,\"J\"\n", - "print \"b)change in magnetic stored energy=\",w2,\"J\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)magnetic stored energy= 0.18 J\n", - "b)change in magnetic stored energy= 0.0675 J\n" - ] - } - ], - "prompt_number": 19 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb deleted file mode 100644 index 884c7e96..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb +++ /dev/null @@ -1,173 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 25: Elements of Electro-Mechanical Energy Conversion" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.1, Page Number:876" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "sod=15#stator-core outer diameter\n", - "sid=10.05#stator-core inner diameter\n", - "rod=10.00#rotor-core outer diameter\n", - "rid=5#rotor-core inner diameter\n", - "a=8#axial lenght of the machine\n", - "b=1.20\n", - "ur=1000\n", - "#calculations\n", - "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", - "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", - "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", - "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", - "e=ed*va*math.pow(10,-6)\n", - "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", - "es=edm*vs*math.pow(10,-6)\n", - "er=edm*vr*math.pow(10,-6)\n", - "kr=(vs+vr)/vs\n", - "ke=(es+er)/e\n", - "ratio=kr/ke\n", - "eratio=e/(es+er)\n", - "\n", - "#result\n", - "print \"Energy stored in air gap= \",e,\" Joules\"\n", - "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", - "print \"Energy stored in rotor core= \",er,\" Joules\"\n", - "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Energy stored in air gap= 3.609 Joules\n", - "Energy stored in stator-core= 0.45 Joules\n", - "Energy stored in rotor core= 0.27 Joules\n", - "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.2, Page Number:877" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "n=800#turns\n", - "area=5*5#cross sectional area\n", - "i=1.25#amp\n", - "x=0.25#cm\n", - "l=0.402\n", - "#calculations\n", - "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", - "l=n**2*p\n", - "em=.5*i*i*l\n", - "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", - "\n", - "#result\n", - "print \"a)i)coil inductance=\",l,\"H\"\n", - "print \" ii)field energy stored=\",em,\"J\"\n", - "print \"b)mechanical energy output=\",W,\"NW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)coil inductance= 0.40192 H\n", - " ii)field energy stored= 0.314 J\n", - "b)mechanical energy output= -62.8 NW\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 25.4, Page Number:882" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "lo=50#mH\n", - "xo=0.05#cm\n", - "r=0.5#ohm\n", - "x=0.075#cm\n", - "i2=3#A\n", - "x2=0.15#cm\n", - "\n", - "#calculation\n", - "l1=2*lo/(1+(x/xo))\n", - "lambda1=l1*i2*10**(-3)\n", - "W=0.5*l1*i2**2*10**(-3)\n", - "l2=2*lo/(1+(x2/xo))\n", - "lambda2=l2*i2*10**(-3)\n", - "w2=0.5*i2*(lambda1-lambda2)\n", - "\n", - "#result\n", - "print \"a)magnetic stored energy=\",W,\"J\"\n", - "print \"b)change in magnetic stored energy=\",w2,\"J\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)magnetic stored energy= 0.18 J\n", - "b)change in magnetic stored energy= 0.0675 J\n" - ] - } - ], - "prompt_number": 19 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26.ipynb deleted file mode 100644 index 1af9bb80..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26.ipynb +++ /dev/null @@ -1,1600 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 26: D.C. Generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.3, Page Number:912" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=450#A\n", - "v=230#v\n", - "rs=50#ohm\n", - "ra=.03#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "va=ia*ra\n", - "E=v+va\n", - "\n", - "#result\n", - "print \"e.m.f. generated in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f. generated in the armature= 243.62 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.4, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=500#v\n", - "rs=250#ohm\n", - "ra=.05#ohm\n", - "rseries=0.03#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "vs=ia*rseries\n", - "va=ia*ra\n", - "vb=ish*b\n", - "E=v+va+vs+vb\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 506.16 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.5, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=30#A\n", - "v=220#v\n", - "rs=200#ohm\n", - "ra=.05#ohm\n", - "rseries=0.30#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "vs=i*rseries\n", - "vshunt=v+vs\n", - "ish=vshunt/v\n", - "ia=i+ish\n", - "vb=b*2\n", - "E=v+vs+vb+(ia*ra)\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 232.552045455 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.6, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": true, - "input": [ - "#variable declaration\n", - "v=230.0#v\n", - "i=150.0#A\n", - "rs=92.0#ohm\n", - "rseries=0.015#ohm\n", - "rd=0.03#ohm(divertor)\n", - "ra=0.032#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "sdr=(rd*rseries)/(rd+rseries)\n", - "tr=ra+sdr\n", - "vd=ia*tr\n", - "Eg=v+vd\n", - "tp=Eg*ia\n", - "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", - "\n", - "#resuts\n", - "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", - "print \"ii)Total power generated= \",tp,\" W\"\n", - "print \"iii)Distribution of the total power:\"\n", - "print \" power lost in armature= \", ia*ia*ra\n", - "print \"power lost in series field and divider= \", ia*ia*sdr\n", - "print \"power dissipated in shunt winding= \", v*ish\n", - "print \"power delivered to load= \", v*i\n", - "print \" ------------\"\n", - "print \"Total= \", pl" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) Induced e.m.f.= 236.405 V\n", - "ii)Total power generated= 36051.7625 W\n", - "iii)Distribution of the total power:\n", - " power lost in armature= 744.2\n", - "power lost in series field and divider= 232.5625\n", - "power dissipated in shunt winding= 575.0\n", - "power delivered to load= 34500.0\n", - " ------------\n", - "Total= 36051.7625\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.7, Page Number:914" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=300000.0#w\n", - "v=600.0#v\n", - "sr=75.0#ohm\n", - "abr=0.03#ohm\n", - "cr=0.011#ohm\n", - "rseries=0.012#ohm\n", - "dr=0.036#ohm\n", - "\n", - "#calculatons\n", - "io=p/v#output current\n", - "ish=v/sr\n", - "ia=io+ish\n", - "sdr=(rseries*dr)/(rseries+dr)\n", - "tr=abr+cr+sdr\n", - "vd=ia*tr\n", - "va=v+vd\n", - "pg=va*ia\n", - "W=pg/1000\n", - "\n", - "#result\n", - "print \"Voltage generatedby the armature= \",va,\" V\"\n", - "print \"Power generated by the armature= \",W, \"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generatedby the armature= 625.4 V\n", - "Power generated by the armature= 317.7032 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.8, Page Number:915" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "phi=7*math.pow(10,-3)\n", - "z=51*20\n", - "a=p=4\n", - "n=1500#r.p.m\n", - "\n", - "#calculations\n", - "Eg=(phi*z*n*p)/(a*60)\n", - "\n", - "#result\n", - "print \"Voltage generated= \",Eg,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generated= 178.5 V\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.9, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=8\n", - "phi=0.05#Wb\n", - "n=1200#rpm\n", - "N=500#armature conductor\n", - "\n", - "#calculations\n", - "E=phi*(n/60)*(p/a)*N\n", - "\n", - "#result\n", - "print \"e.m.f generated= \",E,\" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f generated= 500.0 V\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.10, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=127#v\n", - "vt=120#v(terminal voltage)\n", - "r=15#ohms\n", - "i1=8.47#A\n", - "ra=0.02#ohms\n", - "fi=8#A\n", - "\n", - "#calculations\n", - "Eg=v+(i1*ra)\n", - "ia=(Eg-vt)/ra\n", - "il=ia-fi\n", - "\n", - "#result\n", - "print \"Load current \",il,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current 350.47 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(a), Page Number:917" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=778\n", - "n=500\n", - "ra=0.24\n", - "rl=12.5\n", - "r=250\n", - "v=250\n", - "a=2\n", - "#calculations\n", - "il=v/rl\n", - "si=v/r\n", - "ai=il+si\n", - "emf=v+(ai*ra)\n", - "phi=(emf*60*a)/(p*z*n)\n", - "\n", - "#result\n", - "print \"armature current= \",ai,\" A\"\n", - "print \"induced e.m.f.= \",emf,\" V\"\n", - "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 21.0 A\n", - "induced e.m.f.= 255.04 V\n", - "flux per pole= 9.83 mWb\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(b), Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "P=5000.0#w\n", - "P2=2500.0#W\n", - "v=250.0#v\n", - "ra=0.2#ohm\n", - "r=250.0#ohm\n", - "z=120\n", - "N=1000#rpm\n", - "\n", - "#calculations\n", - "gc=P/v\n", - "li=P2/v\n", - "ti=gc+li\n", - "fc=1\n", - "ai=ti+fc\n", - "ard=ai*ra\n", - "emf=v+ard+2\n", - "phi=(emf*60*a)/(p*z*N)\n", - "ac_perparralelpath=ai/p\n", - "\n", - "#result\n", - "print \"Flux per pole= \",phi*1000,\" mWb\"\n", - "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Flux per pole= 129.1 mWb\n", - "Armature current per parallel path= 7.75 A\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.12, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=125.0#V\n", - "n1=1000#rpm\n", - "n2=800#rpm\n", - "ra=0.04#ohm\n", - "bd=2.0#V(brush drop)\n", - "\n", - "#calculations\n", - "R=v/i\n", - "E1=v+(i*ra)+bd\n", - "E2=(E1*n2)/n1\n", - "il=(E2-bd)/0.675\n", - "\n", - "#result\n", - "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current when speed drops to 800 r.p.m.= 157.04 A\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.13, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "n=900 #rpm\n", - "V=220#V\n", - "E=240#V\n", - "ra=0.2#ohm\n", - "phi=10#mWb\n", - "N=8\n", - "\n", - "#calculations\n", - "ia=(E-V)/ra\n", - "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", - "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", - "number_of_coils=Z/16\n", - "\n", - "#result\n", - "print \"armature current= \",ia,\" A\"\n", - "print \"number of coils= \",number_of_coils" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 100.0 A\n", - "number of coils= 500.0\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.14, Page Number:919" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=120.0#V\n", - "ra=0.06#ohm\n", - "rs=25#ohm\n", - "rsw=0.04#ohm(series winding)\n", - "il=100.0#A\n", - "#i)Long shunt\n", - "ish=V/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", - "\n", - "#i)Short shunt\n", - "vds=il*rsw\n", - "vs=V+vds\n", - "ish=vs/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", - "Armature current when the machine is connected to long shunt= 104.8 A\n", - "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", - "Armature current when the machine is connected to short shunt= 104.96 A\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.15, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=25000.0#W\n", - "V=500.0#V\n", - "ra=0.03#ohm\n", - "rs=200.0#ohm\n", - "rseries=0.04#ohm\n", - "vb=1.0#V\n", - "n=1200#rpm\n", - "phi=0.02#Wb\n", - "\n", - "#calculations\n", - "i=p/V\n", - "ish=V/rs\n", - "ia=i+ish\n", - "p=4\n", - "vds=ia*rseries\n", - "vda=ia*ra\n", - "vdb=vb*2\n", - "E=V+vds+vda+vdb\n", - "Z=(E*60*4)/(phi*n*p)\n", - "\n", - "#result\n", - "print \"The e.m.f. generated= \",E,\" V\"\n", - "print \"The number of conductors=\",Z" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The e.m.f. generated= 505.675 V\n", - "The number of conductors= 1264.1875\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.16, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=750#rpm\n", - "e=240.0#V\n", - "z=792\n", - "phi=0.0145#Wb\n", - "\n", - "#calculations\n", - "phi_working=(e*60*2)/(n*z*p)\n", - "lambda_=phi/phi_working\n", - "\n", - "#results\n", - "print \"Leakage coefficient= \",round(lambda_,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Leakage coefficient= 1.2\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.17, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rt=0.004#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "rtotal=t*rt\n", - "r_eachpath=rtotal/p\n", - "ra=r_eachpath/a\n", - "vda=ia*ra\n", - "V=E-vda\n", - "\n", - "#result\n", - "print \"Terminal Voltage= \",V, \" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal Voltage= 459.25 V\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.18, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rturn=0.004#ohm\n", - "rs=100.0#ohm\n", - "rsc=0.02#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "ra=0.055#ohm\n", - "ra=ra+rsc\n", - "va=ia*ra\n", - "v=E-va\n", - "ish=v/rs\n", - "i=ia-ish\n", - "output=v*i\n", - "\n", - "#result\n", - "print \"Output= \",round(output/1000,3),\" kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 20.813 kW\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.19, Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=1200#rpm\n", - "ia=200#A\n", - "v=125#V\n", - "n2=1000#rpm\n", - "ra=0.04#ohm\n", - "vb=2#V\n", - "\n", - "#calculations\n", - "E1=v+vb+(ia*ra)\n", - "E2=E1*n2/n1*0.8\n", - "\n", - "#results\n", - "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(a), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "rs=100.0#ohm\n", - "ra=1.0#ohm\n", - "z=378\n", - "phi=0.02#Wb\n", - "rl=10.0#ohm\n", - "n=1000#rpm\n", - "a=2\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "V=(100.0/111.0)*E\n", - "il=V/rl\n", - "P=il*V\n", - "\n", - "#result\n", - "print \"Power absorbed by the load is= \",P,\" W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power absorbed by the load is= 5154.12710007 W\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(b), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "z=300\n", - "phi=0.1#Wb\n", - "n=1000#rpm\n", - "ra=0.2#rpm\n", - "rf=125#ohm\n", - "il=90#A\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "ifield=E/rf\n", - "ia=ifield+il\n", - "V=E-(ia*ra)\n", - "\n", - "#result\n", - "print \"Terminal voltage= \",V,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal voltage= 481.2 V\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(a), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "n=1200#rpm\n", - "e=250.0#V\n", - "d=350.0#mm\n", - "air_gap=3.0#mm\n", - "al=260.0#mm\n", - "fringing=0.8\n", - "coils=96\n", - "t=3\n", - "\n", - "#calculations\n", - "z=t*coils*2\n", - "a=p*2\n", - "phi=(e*60*a)/(n*z*p)\n", - "di=d+air_gap\n", - "pole_arc=(3.14*di*fringing)/6\n", - "B=phi/(pole_arc*0.000001*al)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi,\" Wb\"\n", - "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", - "print \"flux density= \",B,\" T\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.0434027777778 Wb\n", - "effective pole arc lenght= 0.147789333333 m\n", - "flux density= 1.12953862717 T\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(b), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=1200\n", - "e=250.0#v\n", - "n=500#rpm\n", - "b=35.0#cm\n", - "ratio=0.7\n", - "lpole=20.0#cm\n", - "\n", - "#calculations\n", - "pole_pitch=(b*3.14)/p\n", - "polearc=ratio*pole_pitch\n", - "pole_area=polearc*lpole\n", - "phi=(e*60*a)/(n*z*p)\n", - "mean_flux=phi/(pole_area*math.pow(10,-4))\n", - " \n", - "#result\n", - "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Mean flux density= 0.649941505265 Wb/m2\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(d), Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=100.0#V\n", - "ra=0.04#ohm\n", - "rseries=0.03#ohm\n", - "rs=60.0#ohm\n", - "\n", - "#calculations\n", - "va=v+(i*rseries)\n", - "ish=va/rs\n", - "ia=i+ish\n", - "e=va+(ia*ra)\n", - "\n", - "#long shunt\n", - "ishunt=v/rs\n", - "vd=ia*(ra+rseries)\n", - "e2=v+vd\n", - "\n", - "#result\n", - "print \"emf generated(short shunt)\",e,\" V\"\n", - "print \"emf generated(long shunt)\",e2,\" V\"\n", - "\n", - "\n", - "#result\n", - "print " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf generated(short shunt) 114.070666667 V\n", - "emf generated(long shunt) 114.123666667 V\n", - "\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.22, Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "w=20000.0#W\n", - "v=220.0#v\n", - "ra=0.04#ohm\n", - "rs=110.0#ohm\n", - "rseries=0.05#ohm\n", - "efficiency=.85\n", - "\n", - "#calculations\n", - "il=w/v\n", - "i_f=v/rs\n", - "ia=il+i_f\n", - "ip=w/efficiency#input power\n", - "total_loss=ip-w\n", - "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", - "ironloss=total_loss-copper_loss\n", - "omega=2*3.14*n/60\n", - "T=ip/omega\n", - "\n", - "#omega\n", - "print \"Copper loss= \",copper_loss,\" W\"\n", - "print \"Iron and friction loss= \",ironloss,\" W\"\n", - "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Copper loss= 1216.88892562 W\n", - "Iron and friction loss= 2312.52283909 W\n", - "Torque developed by the prime mover= 224.803297115 Nw-m\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.23, Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declartaion\n", - "power=10000.0#W\n", - "v=250.0#V\n", - "p=a=6\n", - "n=1000.0#rpm\n", - "z=534\n", - "cu_loss=0.64*1000#W\n", - "vbd=1.0#V\n", - "\n", - "#calculations\n", - "ia=power/v\n", - "ra=cu_loss/(ia*ia)\n", - "E=v+(ia*ra)+vbd\n", - "phi=(E*60*a)/(n*z*p)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi*1000,\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 30.0 mWb\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(a), Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=195#A\n", - "pd=250#V\n", - "ra=0.02#ohm\n", - "rsh=50#ohm\n", - "p=250#W\n", - "strayloss=950#W\n", - "#calculations\n", - "ish=pd/rsh\n", - "ia=i+ish\n", - "vda=ia*ra\n", - "E=pd+vda\n", - "cu_loss=(ia*ia*ra)+(pd*ish)\n", - "output_prime=(pd*i)+strayloss+cu_loss\n", - "power_a=output_prime-strayloss\n", - "neu_m=(power_a/output_prime)\n", - "neu_e=(pd*i)/((pd*i)+cu_loss)\n", - "neu_c=(pd*i)/output_prime\n", - "\n", - "#result\n", - "print \"a)e.m.f. generated= \",E,\" V\"\n", - "print \" b)Cu losses= \",cu_loss,\" W\"\n", - "print \" c)output of prime mover= \",output_prime,\" W\"\n", - "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", - "print \" electrical efficiency= \",neu_e*100,\" %\"\n", - "print \" commercial efficiency= \",neu_c*100,\" %\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)e.m.f. generated= 254.0 V\n", - " b)Cu losses= 2050.0 W\n", - " c)output of prime mover= 51750.0 W\n", - " d)mechanical efficiency= 98.1642512077 %\n", - " electrical efficiency= 95.9645669291 %\n", - " commercial efficiency= 94.2028985507 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(b), Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "output=v*il\n", - "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"Efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.25, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=196#A\n", - "v=220#V\n", - "stray_loss=720#W\n", - "rsh=55#ohm\n", - "e=0.88\n", - "\n", - "#calculations\n", - "output=v*i\n", - "inpute=output/e\n", - "total_loss=inpute-output\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "cu_loss=v*ish\n", - "constant_loss=cu_loss+stray_loss\n", - "culoss_a=total_loss-constant_loss\n", - "ra=culoss_a/(ia*ia)\n", - "I=math.sqrt(constant_loss/ra)\n", - "\n", - "#result\n", - "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load curent corresponding to maximum efficiency 122.283568103 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.26, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "p=22*1000#w\n", - "v=220#V\n", - "ra=0.05#ohm\n", - "rsh=110#ohm\n", - "rseries=0.06#ohm\n", - "efficiency=.88\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "I=p/v\n", - "ia=ish+I\n", - "vdseries=ia*rseries\n", - "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", - "total_loss=(p/efficiency)-p\n", - "strayloss=total_loss-cu_loss\n", - "T=(p/efficiency*60)/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"a)cu losses= \",cu_loss,\" W\"\n", - "print \"b)iron and friction loss= \",strayloss,\" W\"\n", - "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cu losses= 1584.44 W\n", - "b)iron and friction loss= 1415.56 W\n", - "c)Torque exerted by the prime mover= 238.853503185 N-m\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.27, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "i=20#A\n", - "r=10#ohm\n", - "ra=0.5#ohm\n", - "rsh=50#ohm\n", - "vdb=1#V(voltage drop per brush)\n", - "\n", - "#calculations\n", - "v=i*r\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "E=v+(ia*ra)+(2*vdb)\n", - "totalpower=E*ia\n", - "output=v*i\n", - "efficiency=output/totalpower\n", - "\n", - "#result\n", - "print \"induced e.m.f.= \",E,\" V\"\n", - "print \"efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced e.m.f.= 214.0 V\n", - "efficiency= 77.8816199377 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.28, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "i=100#A\n", - "ra=0.1#ohm\n", - "rseries=0.02#ohm\n", - "ri=0.025#ohm\n", - "rsh=100#ohm\n", - "ironloss=1000#W\n", - "frictionloss=500#W\n", - "\n", - "#calculations\n", - "output=v*i\n", - "totalra=ra+rseries+ri\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "copperloss=ia*ia*totalra\n", - "shculoss=ish*v\n", - "total_loss=copperloss+ironloss+frictionloss+shculoss\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "F.L. efficiency of the machine= 87.3089843128 %\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.31, Page Number:931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=10.0*1000#W\n", - "v=240.0#V\n", - "ra=0.6#ohm\n", - "rsh=160.0#ohm\n", - "mechcoreloss=500.0#W\n", - "culoss=360.0#W\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "i=output/v\n", - "ia=ish+i\n", - "culossa=ia*ia*ra\n", - "totalloss=culoss+mechcoreloss+culossa\n", - "inputp=output+totalloss\n", - "efficiency=output/inputp\n", - "\n", - "#result\n", - "print \"Power required= \",inputp*0.001,\" kW\"\n", - "print \"efficinecy= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power required= 11.9780166667 kW\n", - "efficinecy= 83.486275552 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.32, Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=110*1000#W\n", - "v=220#V\n", - "ra=0.01#ohm\n", - "rse=0.002#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "il=p/v\n", - "ish=v/rsh\n", - "ia=il+ish\n", - "E=v+ia*(ra+rse)\n", - "\n", - "#result\n", - "print \"induced emf= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 226.024 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.33 Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "E=216.0#V\n", - "n=600.0#rpm\n", - "slots=144\n", - "con=6\n", - "n2=500.0#rpm\n", - "\n", - "#calculations\n", - "z=con*slots\n", - "a=p\n", - "phi=(E*60*a)/(n*z*p)\n", - "a=2\n", - "armatureE=(phi*z*n2*p)/(60*a)\n", - "\n", - "#result\n", - "print \"the armature emf= \",armatureE,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the armature emf= 360.0 V\n" - ] - } - ], - "prompt_number": 34 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_1.ipynb deleted file mode 100644 index 1af9bb80..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_1.ipynb +++ /dev/null @@ -1,1600 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 26: D.C. Generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.3, Page Number:912" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=450#A\n", - "v=230#v\n", - "rs=50#ohm\n", - "ra=.03#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "va=ia*ra\n", - "E=v+va\n", - "\n", - "#result\n", - "print \"e.m.f. generated in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f. generated in the armature= 243.62 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.4, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=500#v\n", - "rs=250#ohm\n", - "ra=.05#ohm\n", - "rseries=0.03#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "vs=ia*rseries\n", - "va=ia*ra\n", - "vb=ish*b\n", - "E=v+va+vs+vb\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 506.16 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.5, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=30#A\n", - "v=220#v\n", - "rs=200#ohm\n", - "ra=.05#ohm\n", - "rseries=0.30#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "vs=i*rseries\n", - "vshunt=v+vs\n", - "ish=vshunt/v\n", - "ia=i+ish\n", - "vb=b*2\n", - "E=v+vs+vb+(ia*ra)\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 232.552045455 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.6, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": true, - "input": [ - "#variable declaration\n", - "v=230.0#v\n", - "i=150.0#A\n", - "rs=92.0#ohm\n", - "rseries=0.015#ohm\n", - "rd=0.03#ohm(divertor)\n", - "ra=0.032#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "sdr=(rd*rseries)/(rd+rseries)\n", - "tr=ra+sdr\n", - "vd=ia*tr\n", - "Eg=v+vd\n", - "tp=Eg*ia\n", - "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", - "\n", - "#resuts\n", - "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", - "print \"ii)Total power generated= \",tp,\" W\"\n", - "print \"iii)Distribution of the total power:\"\n", - "print \" power lost in armature= \", ia*ia*ra\n", - "print \"power lost in series field and divider= \", ia*ia*sdr\n", - "print \"power dissipated in shunt winding= \", v*ish\n", - "print \"power delivered to load= \", v*i\n", - "print \" ------------\"\n", - "print \"Total= \", pl" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) Induced e.m.f.= 236.405 V\n", - "ii)Total power generated= 36051.7625 W\n", - "iii)Distribution of the total power:\n", - " power lost in armature= 744.2\n", - "power lost in series field and divider= 232.5625\n", - "power dissipated in shunt winding= 575.0\n", - "power delivered to load= 34500.0\n", - " ------------\n", - "Total= 36051.7625\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.7, Page Number:914" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=300000.0#w\n", - "v=600.0#v\n", - "sr=75.0#ohm\n", - "abr=0.03#ohm\n", - "cr=0.011#ohm\n", - "rseries=0.012#ohm\n", - "dr=0.036#ohm\n", - "\n", - "#calculatons\n", - "io=p/v#output current\n", - "ish=v/sr\n", - "ia=io+ish\n", - "sdr=(rseries*dr)/(rseries+dr)\n", - "tr=abr+cr+sdr\n", - "vd=ia*tr\n", - "va=v+vd\n", - "pg=va*ia\n", - "W=pg/1000\n", - "\n", - "#result\n", - "print \"Voltage generatedby the armature= \",va,\" V\"\n", - "print \"Power generated by the armature= \",W, \"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generatedby the armature= 625.4 V\n", - "Power generated by the armature= 317.7032 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.8, Page Number:915" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "phi=7*math.pow(10,-3)\n", - "z=51*20\n", - "a=p=4\n", - "n=1500#r.p.m\n", - "\n", - "#calculations\n", - "Eg=(phi*z*n*p)/(a*60)\n", - "\n", - "#result\n", - "print \"Voltage generated= \",Eg,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generated= 178.5 V\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.9, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=8\n", - "phi=0.05#Wb\n", - "n=1200#rpm\n", - "N=500#armature conductor\n", - "\n", - "#calculations\n", - "E=phi*(n/60)*(p/a)*N\n", - "\n", - "#result\n", - "print \"e.m.f generated= \",E,\" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f generated= 500.0 V\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.10, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=127#v\n", - "vt=120#v(terminal voltage)\n", - "r=15#ohms\n", - "i1=8.47#A\n", - "ra=0.02#ohms\n", - "fi=8#A\n", - "\n", - "#calculations\n", - "Eg=v+(i1*ra)\n", - "ia=(Eg-vt)/ra\n", - "il=ia-fi\n", - "\n", - "#result\n", - "print \"Load current \",il,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current 350.47 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(a), Page Number:917" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=778\n", - "n=500\n", - "ra=0.24\n", - "rl=12.5\n", - "r=250\n", - "v=250\n", - "a=2\n", - "#calculations\n", - "il=v/rl\n", - "si=v/r\n", - "ai=il+si\n", - "emf=v+(ai*ra)\n", - "phi=(emf*60*a)/(p*z*n)\n", - "\n", - "#result\n", - "print \"armature current= \",ai,\" A\"\n", - "print \"induced e.m.f.= \",emf,\" V\"\n", - "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 21.0 A\n", - "induced e.m.f.= 255.04 V\n", - "flux per pole= 9.83 mWb\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(b), Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "P=5000.0#w\n", - "P2=2500.0#W\n", - "v=250.0#v\n", - "ra=0.2#ohm\n", - "r=250.0#ohm\n", - "z=120\n", - "N=1000#rpm\n", - "\n", - "#calculations\n", - "gc=P/v\n", - "li=P2/v\n", - "ti=gc+li\n", - "fc=1\n", - "ai=ti+fc\n", - "ard=ai*ra\n", - "emf=v+ard+2\n", - "phi=(emf*60*a)/(p*z*N)\n", - "ac_perparralelpath=ai/p\n", - "\n", - "#result\n", - "print \"Flux per pole= \",phi*1000,\" mWb\"\n", - "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Flux per pole= 129.1 mWb\n", - "Armature current per parallel path= 7.75 A\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.12, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=125.0#V\n", - "n1=1000#rpm\n", - "n2=800#rpm\n", - "ra=0.04#ohm\n", - "bd=2.0#V(brush drop)\n", - "\n", - "#calculations\n", - "R=v/i\n", - "E1=v+(i*ra)+bd\n", - "E2=(E1*n2)/n1\n", - "il=(E2-bd)/0.675\n", - "\n", - "#result\n", - "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current when speed drops to 800 r.p.m.= 157.04 A\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.13, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "n=900 #rpm\n", - "V=220#V\n", - "E=240#V\n", - "ra=0.2#ohm\n", - "phi=10#mWb\n", - "N=8\n", - "\n", - "#calculations\n", - "ia=(E-V)/ra\n", - "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", - "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", - "number_of_coils=Z/16\n", - "\n", - "#result\n", - "print \"armature current= \",ia,\" A\"\n", - "print \"number of coils= \",number_of_coils" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 100.0 A\n", - "number of coils= 500.0\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.14, Page Number:919" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=120.0#V\n", - "ra=0.06#ohm\n", - "rs=25#ohm\n", - "rsw=0.04#ohm(series winding)\n", - "il=100.0#A\n", - "#i)Long shunt\n", - "ish=V/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", - "\n", - "#i)Short shunt\n", - "vds=il*rsw\n", - "vs=V+vds\n", - "ish=vs/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", - "Armature current when the machine is connected to long shunt= 104.8 A\n", - "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", - "Armature current when the machine is connected to short shunt= 104.96 A\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.15, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=25000.0#W\n", - "V=500.0#V\n", - "ra=0.03#ohm\n", - "rs=200.0#ohm\n", - "rseries=0.04#ohm\n", - "vb=1.0#V\n", - "n=1200#rpm\n", - "phi=0.02#Wb\n", - "\n", - "#calculations\n", - "i=p/V\n", - "ish=V/rs\n", - "ia=i+ish\n", - "p=4\n", - "vds=ia*rseries\n", - "vda=ia*ra\n", - "vdb=vb*2\n", - "E=V+vds+vda+vdb\n", - "Z=(E*60*4)/(phi*n*p)\n", - "\n", - "#result\n", - "print \"The e.m.f. generated= \",E,\" V\"\n", - "print \"The number of conductors=\",Z" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The e.m.f. generated= 505.675 V\n", - "The number of conductors= 1264.1875\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.16, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=750#rpm\n", - "e=240.0#V\n", - "z=792\n", - "phi=0.0145#Wb\n", - "\n", - "#calculations\n", - "phi_working=(e*60*2)/(n*z*p)\n", - "lambda_=phi/phi_working\n", - "\n", - "#results\n", - "print \"Leakage coefficient= \",round(lambda_,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Leakage coefficient= 1.2\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.17, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rt=0.004#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "rtotal=t*rt\n", - "r_eachpath=rtotal/p\n", - "ra=r_eachpath/a\n", - "vda=ia*ra\n", - "V=E-vda\n", - "\n", - "#result\n", - "print \"Terminal Voltage= \",V, \" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal Voltage= 459.25 V\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.18, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rturn=0.004#ohm\n", - "rs=100.0#ohm\n", - "rsc=0.02#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "ra=0.055#ohm\n", - "ra=ra+rsc\n", - "va=ia*ra\n", - "v=E-va\n", - "ish=v/rs\n", - "i=ia-ish\n", - "output=v*i\n", - "\n", - "#result\n", - "print \"Output= \",round(output/1000,3),\" kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 20.813 kW\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.19, Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=1200#rpm\n", - "ia=200#A\n", - "v=125#V\n", - "n2=1000#rpm\n", - "ra=0.04#ohm\n", - "vb=2#V\n", - "\n", - "#calculations\n", - "E1=v+vb+(ia*ra)\n", - "E2=E1*n2/n1*0.8\n", - "\n", - "#results\n", - "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(a), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "rs=100.0#ohm\n", - "ra=1.0#ohm\n", - "z=378\n", - "phi=0.02#Wb\n", - "rl=10.0#ohm\n", - "n=1000#rpm\n", - "a=2\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "V=(100.0/111.0)*E\n", - "il=V/rl\n", - "P=il*V\n", - "\n", - "#result\n", - "print \"Power absorbed by the load is= \",P,\" W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power absorbed by the load is= 5154.12710007 W\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(b), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "z=300\n", - "phi=0.1#Wb\n", - "n=1000#rpm\n", - "ra=0.2#rpm\n", - "rf=125#ohm\n", - "il=90#A\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "ifield=E/rf\n", - "ia=ifield+il\n", - "V=E-(ia*ra)\n", - "\n", - "#result\n", - "print \"Terminal voltage= \",V,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal voltage= 481.2 V\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(a), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "n=1200#rpm\n", - "e=250.0#V\n", - "d=350.0#mm\n", - "air_gap=3.0#mm\n", - "al=260.0#mm\n", - "fringing=0.8\n", - "coils=96\n", - "t=3\n", - "\n", - "#calculations\n", - "z=t*coils*2\n", - "a=p*2\n", - "phi=(e*60*a)/(n*z*p)\n", - "di=d+air_gap\n", - "pole_arc=(3.14*di*fringing)/6\n", - "B=phi/(pole_arc*0.000001*al)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi,\" Wb\"\n", - "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", - "print \"flux density= \",B,\" T\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.0434027777778 Wb\n", - "effective pole arc lenght= 0.147789333333 m\n", - "flux density= 1.12953862717 T\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(b), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=1200\n", - "e=250.0#v\n", - "n=500#rpm\n", - "b=35.0#cm\n", - "ratio=0.7\n", - "lpole=20.0#cm\n", - "\n", - "#calculations\n", - "pole_pitch=(b*3.14)/p\n", - "polearc=ratio*pole_pitch\n", - "pole_area=polearc*lpole\n", - "phi=(e*60*a)/(n*z*p)\n", - "mean_flux=phi/(pole_area*math.pow(10,-4))\n", - " \n", - "#result\n", - "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Mean flux density= 0.649941505265 Wb/m2\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(d), Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=100.0#V\n", - "ra=0.04#ohm\n", - "rseries=0.03#ohm\n", - "rs=60.0#ohm\n", - "\n", - "#calculations\n", - "va=v+(i*rseries)\n", - "ish=va/rs\n", - "ia=i+ish\n", - "e=va+(ia*ra)\n", - "\n", - "#long shunt\n", - "ishunt=v/rs\n", - "vd=ia*(ra+rseries)\n", - "e2=v+vd\n", - "\n", - "#result\n", - "print \"emf generated(short shunt)\",e,\" V\"\n", - "print \"emf generated(long shunt)\",e2,\" V\"\n", - "\n", - "\n", - "#result\n", - "print " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf generated(short shunt) 114.070666667 V\n", - "emf generated(long shunt) 114.123666667 V\n", - "\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.22, Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "w=20000.0#W\n", - "v=220.0#v\n", - "ra=0.04#ohm\n", - "rs=110.0#ohm\n", - "rseries=0.05#ohm\n", - "efficiency=.85\n", - "\n", - "#calculations\n", - "il=w/v\n", - "i_f=v/rs\n", - "ia=il+i_f\n", - "ip=w/efficiency#input power\n", - "total_loss=ip-w\n", - "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", - "ironloss=total_loss-copper_loss\n", - "omega=2*3.14*n/60\n", - "T=ip/omega\n", - "\n", - "#omega\n", - "print \"Copper loss= \",copper_loss,\" W\"\n", - "print \"Iron and friction loss= \",ironloss,\" W\"\n", - "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Copper loss= 1216.88892562 W\n", - "Iron and friction loss= 2312.52283909 W\n", - "Torque developed by the prime mover= 224.803297115 Nw-m\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.23, Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declartaion\n", - "power=10000.0#W\n", - "v=250.0#V\n", - "p=a=6\n", - "n=1000.0#rpm\n", - "z=534\n", - "cu_loss=0.64*1000#W\n", - "vbd=1.0#V\n", - "\n", - "#calculations\n", - "ia=power/v\n", - "ra=cu_loss/(ia*ia)\n", - "E=v+(ia*ra)+vbd\n", - "phi=(E*60*a)/(n*z*p)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi*1000,\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 30.0 mWb\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(a), Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=195#A\n", - "pd=250#V\n", - "ra=0.02#ohm\n", - "rsh=50#ohm\n", - "p=250#W\n", - "strayloss=950#W\n", - "#calculations\n", - "ish=pd/rsh\n", - "ia=i+ish\n", - "vda=ia*ra\n", - "E=pd+vda\n", - "cu_loss=(ia*ia*ra)+(pd*ish)\n", - "output_prime=(pd*i)+strayloss+cu_loss\n", - "power_a=output_prime-strayloss\n", - "neu_m=(power_a/output_prime)\n", - "neu_e=(pd*i)/((pd*i)+cu_loss)\n", - "neu_c=(pd*i)/output_prime\n", - "\n", - "#result\n", - "print \"a)e.m.f. generated= \",E,\" V\"\n", - "print \" b)Cu losses= \",cu_loss,\" W\"\n", - "print \" c)output of prime mover= \",output_prime,\" W\"\n", - "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", - "print \" electrical efficiency= \",neu_e*100,\" %\"\n", - "print \" commercial efficiency= \",neu_c*100,\" %\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)e.m.f. generated= 254.0 V\n", - " b)Cu losses= 2050.0 W\n", - " c)output of prime mover= 51750.0 W\n", - " d)mechanical efficiency= 98.1642512077 %\n", - " electrical efficiency= 95.9645669291 %\n", - " commercial efficiency= 94.2028985507 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(b), Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "output=v*il\n", - "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"Efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.25, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=196#A\n", - "v=220#V\n", - "stray_loss=720#W\n", - "rsh=55#ohm\n", - "e=0.88\n", - "\n", - "#calculations\n", - "output=v*i\n", - "inpute=output/e\n", - "total_loss=inpute-output\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "cu_loss=v*ish\n", - "constant_loss=cu_loss+stray_loss\n", - "culoss_a=total_loss-constant_loss\n", - "ra=culoss_a/(ia*ia)\n", - "I=math.sqrt(constant_loss/ra)\n", - "\n", - "#result\n", - "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load curent corresponding to maximum efficiency 122.283568103 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.26, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "p=22*1000#w\n", - "v=220#V\n", - "ra=0.05#ohm\n", - "rsh=110#ohm\n", - "rseries=0.06#ohm\n", - "efficiency=.88\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "I=p/v\n", - "ia=ish+I\n", - "vdseries=ia*rseries\n", - "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", - "total_loss=(p/efficiency)-p\n", - "strayloss=total_loss-cu_loss\n", - "T=(p/efficiency*60)/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"a)cu losses= \",cu_loss,\" W\"\n", - "print \"b)iron and friction loss= \",strayloss,\" W\"\n", - "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cu losses= 1584.44 W\n", - "b)iron and friction loss= 1415.56 W\n", - "c)Torque exerted by the prime mover= 238.853503185 N-m\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.27, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "i=20#A\n", - "r=10#ohm\n", - "ra=0.5#ohm\n", - "rsh=50#ohm\n", - "vdb=1#V(voltage drop per brush)\n", - "\n", - "#calculations\n", - "v=i*r\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "E=v+(ia*ra)+(2*vdb)\n", - "totalpower=E*ia\n", - "output=v*i\n", - "efficiency=output/totalpower\n", - "\n", - "#result\n", - "print \"induced e.m.f.= \",E,\" V\"\n", - "print \"efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced e.m.f.= 214.0 V\n", - "efficiency= 77.8816199377 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.28, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "i=100#A\n", - "ra=0.1#ohm\n", - "rseries=0.02#ohm\n", - "ri=0.025#ohm\n", - "rsh=100#ohm\n", - "ironloss=1000#W\n", - "frictionloss=500#W\n", - "\n", - "#calculations\n", - "output=v*i\n", - "totalra=ra+rseries+ri\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "copperloss=ia*ia*totalra\n", - "shculoss=ish*v\n", - "total_loss=copperloss+ironloss+frictionloss+shculoss\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "F.L. efficiency of the machine= 87.3089843128 %\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.31, Page Number:931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=10.0*1000#W\n", - "v=240.0#V\n", - "ra=0.6#ohm\n", - "rsh=160.0#ohm\n", - "mechcoreloss=500.0#W\n", - "culoss=360.0#W\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "i=output/v\n", - "ia=ish+i\n", - "culossa=ia*ia*ra\n", - "totalloss=culoss+mechcoreloss+culossa\n", - "inputp=output+totalloss\n", - "efficiency=output/inputp\n", - "\n", - "#result\n", - "print \"Power required= \",inputp*0.001,\" kW\"\n", - "print \"efficinecy= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power required= 11.9780166667 kW\n", - "efficinecy= 83.486275552 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.32, Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=110*1000#W\n", - "v=220#V\n", - "ra=0.01#ohm\n", - "rse=0.002#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "il=p/v\n", - "ish=v/rsh\n", - "ia=il+ish\n", - "E=v+ia*(ra+rse)\n", - "\n", - "#result\n", - "print \"induced emf= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 226.024 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.33 Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "E=216.0#V\n", - "n=600.0#rpm\n", - "slots=144\n", - "con=6\n", - "n2=500.0#rpm\n", - "\n", - "#calculations\n", - "z=con*slots\n", - "a=p\n", - "phi=(E*60*a)/(n*z*p)\n", - "a=2\n", - "armatureE=(phi*z*n2*p)/(60*a)\n", - "\n", - "#result\n", - "print \"the armature emf= \",armatureE,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the armature emf= 360.0 V\n" - ] - } - ], - "prompt_number": 34 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb deleted file mode 100644 index 1af9bb80..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb +++ /dev/null @@ -1,1600 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 26: D.C. Generators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.3, Page Number:912" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=450#A\n", - "v=230#v\n", - "rs=50#ohm\n", - "ra=.03#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "va=ia*ra\n", - "E=v+va\n", - "\n", - "#result\n", - "print \"e.m.f. generated in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f. generated in the armature= 243.62 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.4, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=500#v\n", - "rs=250#ohm\n", - "ra=.05#ohm\n", - "rseries=0.03#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "vs=ia*rseries\n", - "va=ia*ra\n", - "vb=ish*b\n", - "E=v+va+vs+vb\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 506.16 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.5, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=30#A\n", - "v=220#v\n", - "rs=200#ohm\n", - "ra=.05#ohm\n", - "rseries=0.30#ohm\n", - "b=1#V\n", - "\n", - "#calculations\n", - "vs=i*rseries\n", - "vshunt=v+vs\n", - "ish=vshunt/v\n", - "ia=i+ish\n", - "vb=b*2\n", - "E=v+vs+vb+(ia*ra)\n", - "\n", - "#result\n", - "print \"generated voltage in the armature= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "generated voltage in the armature= 232.552045455 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.6, Page Number:913" - ] - }, - { - "cell_type": "code", - "collapsed": true, - "input": [ - "#variable declaration\n", - "v=230.0#v\n", - "i=150.0#A\n", - "rs=92.0#ohm\n", - "rseries=0.015#ohm\n", - "rd=0.03#ohm(divertor)\n", - "ra=0.032#ohm\n", - "\n", - "#calculations\n", - "ish=v/rs\n", - "ia=i+ish\n", - "sdr=(rd*rseries)/(rd+rseries)\n", - "tr=ra+sdr\n", - "vd=ia*tr\n", - "Eg=v+vd\n", - "tp=Eg*ia\n", - "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", - "\n", - "#resuts\n", - "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", - "print \"ii)Total power generated= \",tp,\" W\"\n", - "print \"iii)Distribution of the total power:\"\n", - "print \" power lost in armature= \", ia*ia*ra\n", - "print \"power lost in series field and divider= \", ia*ia*sdr\n", - "print \"power dissipated in shunt winding= \", v*ish\n", - "print \"power delivered to load= \", v*i\n", - "print \" ------------\"\n", - "print \"Total= \", pl" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) Induced e.m.f.= 236.405 V\n", - "ii)Total power generated= 36051.7625 W\n", - "iii)Distribution of the total power:\n", - " power lost in armature= 744.2\n", - "power lost in series field and divider= 232.5625\n", - "power dissipated in shunt winding= 575.0\n", - "power delivered to load= 34500.0\n", - " ------------\n", - "Total= 36051.7625\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.7, Page Number:914" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=300000.0#w\n", - "v=600.0#v\n", - "sr=75.0#ohm\n", - "abr=0.03#ohm\n", - "cr=0.011#ohm\n", - "rseries=0.012#ohm\n", - "dr=0.036#ohm\n", - "\n", - "#calculatons\n", - "io=p/v#output current\n", - "ish=v/sr\n", - "ia=io+ish\n", - "sdr=(rseries*dr)/(rseries+dr)\n", - "tr=abr+cr+sdr\n", - "vd=ia*tr\n", - "va=v+vd\n", - "pg=va*ia\n", - "W=pg/1000\n", - "\n", - "#result\n", - "print \"Voltage generatedby the armature= \",va,\" V\"\n", - "print \"Power generated by the armature= \",W, \"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generatedby the armature= 625.4 V\n", - "Power generated by the armature= 317.7032 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.8, Page Number:915" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "phi=7*math.pow(10,-3)\n", - "z=51*20\n", - "a=p=4\n", - "n=1500#r.p.m\n", - "\n", - "#calculations\n", - "Eg=(phi*z*n*p)/(a*60)\n", - "\n", - "#result\n", - "print \"Voltage generated= \",Eg,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage generated= 178.5 V\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.9, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=8\n", - "phi=0.05#Wb\n", - "n=1200#rpm\n", - "N=500#armature conductor\n", - "\n", - "#calculations\n", - "E=phi*(n/60)*(p/a)*N\n", - "\n", - "#result\n", - "print \"e.m.f generated= \",E,\" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e.m.f generated= 500.0 V\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.10, Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=127#v\n", - "vt=120#v(terminal voltage)\n", - "r=15#ohms\n", - "i1=8.47#A\n", - "ra=0.02#ohms\n", - "fi=8#A\n", - "\n", - "#calculations\n", - "Eg=v+(i1*ra)\n", - "ia=(Eg-vt)/ra\n", - "il=ia-fi\n", - "\n", - "#result\n", - "print \"Load current \",il,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current 350.47 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(a), Page Number:917" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=778\n", - "n=500\n", - "ra=0.24\n", - "rl=12.5\n", - "r=250\n", - "v=250\n", - "a=2\n", - "#calculations\n", - "il=v/rl\n", - "si=v/r\n", - "ai=il+si\n", - "emf=v+(ai*ra)\n", - "phi=(emf*60*a)/(p*z*n)\n", - "\n", - "#result\n", - "print \"armature current= \",ai,\" A\"\n", - "print \"induced e.m.f.= \",emf,\" V\"\n", - "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 21.0 A\n", - "induced e.m.f.= 255.04 V\n", - "flux per pole= 9.83 mWb\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.11(b), Page Number:916" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "P=5000.0#w\n", - "P2=2500.0#W\n", - "v=250.0#v\n", - "ra=0.2#ohm\n", - "r=250.0#ohm\n", - "z=120\n", - "N=1000#rpm\n", - "\n", - "#calculations\n", - "gc=P/v\n", - "li=P2/v\n", - "ti=gc+li\n", - "fc=1\n", - "ai=ti+fc\n", - "ard=ai*ra\n", - "emf=v+ard+2\n", - "phi=(emf*60*a)/(p*z*N)\n", - "ac_perparralelpath=ai/p\n", - "\n", - "#result\n", - "print \"Flux per pole= \",phi*1000,\" mWb\"\n", - "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Flux per pole= 129.1 mWb\n", - "Armature current per parallel path= 7.75 A\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.12, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=125.0#V\n", - "n1=1000#rpm\n", - "n2=800#rpm\n", - "ra=0.04#ohm\n", - "bd=2.0#V(brush drop)\n", - "\n", - "#calculations\n", - "R=v/i\n", - "E1=v+(i*ra)+bd\n", - "E2=(E1*n2)/n1\n", - "il=(E2-bd)/0.675\n", - "\n", - "#result\n", - "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load current when speed drops to 800 r.p.m.= 157.04 A\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.13, Page Number:918" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "n=900 #rpm\n", - "V=220#V\n", - "E=240#V\n", - "ra=0.2#ohm\n", - "phi=10#mWb\n", - "N=8\n", - "\n", - "#calculations\n", - "ia=(E-V)/ra\n", - "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", - "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", - "number_of_coils=Z/16\n", - "\n", - "#result\n", - "print \"armature current= \",ia,\" A\"\n", - "print \"number of coils= \",number_of_coils" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 100.0 A\n", - "number of coils= 500.0\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.14, Page Number:919" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=120.0#V\n", - "ra=0.06#ohm\n", - "rs=25#ohm\n", - "rsw=0.04#ohm(series winding)\n", - "il=100.0#A\n", - "#i)Long shunt\n", - "ish=V/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", - "\n", - "#i)Short shunt\n", - "vds=il*rsw\n", - "vs=V+vds\n", - "ish=vs/rs\n", - "ia=il+ish\n", - "vd=ia*rsw\n", - "vda=ia*ra\n", - "E=V+vd+vda\n", - "\n", - "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", - "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", - "Armature current when the machine is connected to long shunt= 104.8 A\n", - "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", - "Armature current when the machine is connected to short shunt= 104.96 A\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.15, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=25000.0#W\n", - "V=500.0#V\n", - "ra=0.03#ohm\n", - "rs=200.0#ohm\n", - "rseries=0.04#ohm\n", - "vb=1.0#V\n", - "n=1200#rpm\n", - "phi=0.02#Wb\n", - "\n", - "#calculations\n", - "i=p/V\n", - "ish=V/rs\n", - "ia=i+ish\n", - "p=4\n", - "vds=ia*rseries\n", - "vda=ia*ra\n", - "vdb=vb*2\n", - "E=V+vds+vda+vdb\n", - "Z=(E*60*4)/(phi*n*p)\n", - "\n", - "#result\n", - "print \"The e.m.f. generated= \",E,\" V\"\n", - "print \"The number of conductors=\",Z" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "The e.m.f. generated= 505.675 V\n", - "The number of conductors= 1264.1875\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.16, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=750#rpm\n", - "e=240.0#V\n", - "z=792\n", - "phi=0.0145#Wb\n", - "\n", - "#calculations\n", - "phi_working=(e*60*2)/(n*z*p)\n", - "lambda_=phi/phi_working\n", - "\n", - "#results\n", - "print \"Leakage coefficient= \",round(lambda_,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Leakage coefficient= 1.2\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.17, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rt=0.004#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "rtotal=t*rt\n", - "r_eachpath=rtotal/p\n", - "ra=r_eachpath/a\n", - "vda=ia*ra\n", - "V=E-vda\n", - "\n", - "#result\n", - "print \"Terminal Voltage= \",V, \" V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal Voltage= 459.25 V\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.18, Page Number:920" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "phi=0.07#Wb\n", - "t=220\n", - "rturn=0.004#ohm\n", - "rs=100.0#ohm\n", - "rsc=0.02#ohm\n", - "n=900#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "z=2*t\n", - "E=(phi*z*n*p)/(60*a)\n", - "ra=0.055#ohm\n", - "ra=ra+rsc\n", - "va=ia*ra\n", - "v=E-va\n", - "ish=v/rs\n", - "i=ia-ish\n", - "output=v*i\n", - "\n", - "#result\n", - "print \"Output= \",round(output/1000,3),\" kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 20.813 kW\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.19, Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=1200#rpm\n", - "ia=200#A\n", - "v=125#V\n", - "n2=1000#rpm\n", - "ra=0.04#ohm\n", - "vb=2#V\n", - "\n", - "#calculations\n", - "E1=v+vb+(ia*ra)\n", - "E2=E1*n2/n1*0.8\n", - "\n", - "#results\n", - "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(a), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "rs=100.0#ohm\n", - "ra=1.0#ohm\n", - "z=378\n", - "phi=0.02#Wb\n", - "rl=10.0#ohm\n", - "n=1000#rpm\n", - "a=2\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "V=(100.0/111.0)*E\n", - "il=V/rl\n", - "P=il*V\n", - "\n", - "#result\n", - "print \"Power absorbed by the load is= \",P,\" W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power absorbed by the load is= 5154.12710007 W\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.20(b), Page Number:921" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "z=300\n", - "phi=0.1#Wb\n", - "n=1000#rpm\n", - "ra=0.2#rpm\n", - "rf=125#ohm\n", - "il=90#A\n", - "\n", - "#calculations\n", - "E=(phi*z*n*p)/(60*a)\n", - "ifield=E/rf\n", - "ia=ifield+il\n", - "V=E-(ia*ra)\n", - "\n", - "#result\n", - "print \"Terminal voltage= \",V,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Terminal voltage= 481.2 V\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(a), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "n=1200#rpm\n", - "e=250.0#V\n", - "d=350.0#mm\n", - "air_gap=3.0#mm\n", - "al=260.0#mm\n", - "fringing=0.8\n", - "coils=96\n", - "t=3\n", - "\n", - "#calculations\n", - "z=t*coils*2\n", - "a=p*2\n", - "phi=(e*60*a)/(n*z*p)\n", - "di=d+air_gap\n", - "pole_arc=(3.14*di*fringing)/6\n", - "B=phi/(pole_arc*0.000001*al)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi,\" Wb\"\n", - "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", - "print \"flux density= \",B,\" T\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.0434027777778 Wb\n", - "effective pole arc lenght= 0.147789333333 m\n", - "flux density= 1.12953862717 T\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(b), Page Number:922" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=1200\n", - "e=250.0#v\n", - "n=500#rpm\n", - "b=35.0#cm\n", - "ratio=0.7\n", - "lpole=20.0#cm\n", - "\n", - "#calculations\n", - "pole_pitch=(b*3.14)/p\n", - "polearc=ratio*pole_pitch\n", - "pole_area=polearc*lpole\n", - "phi=(e*60*a)/(n*z*p)\n", - "mean_flux=phi/(pole_area*math.pow(10,-4))\n", - " \n", - "#result\n", - "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Mean flux density= 0.649941505265 Wb/m2\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.21(d), Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=100.0#V\n", - "ra=0.04#ohm\n", - "rseries=0.03#ohm\n", - "rs=60.0#ohm\n", - "\n", - "#calculations\n", - "va=v+(i*rseries)\n", - "ish=va/rs\n", - "ia=i+ish\n", - "e=va+(ia*ra)\n", - "\n", - "#long shunt\n", - "ishunt=v/rs\n", - "vd=ia*(ra+rseries)\n", - "e2=v+vd\n", - "\n", - "#result\n", - "print \"emf generated(short shunt)\",e,\" V\"\n", - "print \"emf generated(long shunt)\",e2,\" V\"\n", - "\n", - "\n", - "#result\n", - "print " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf generated(short shunt) 114.070666667 V\n", - "emf generated(long shunt) 114.123666667 V\n", - "\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.22, Page Number:923" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "w=20000.0#W\n", - "v=220.0#v\n", - "ra=0.04#ohm\n", - "rs=110.0#ohm\n", - "rseries=0.05#ohm\n", - "efficiency=.85\n", - "\n", - "#calculations\n", - "il=w/v\n", - "i_f=v/rs\n", - "ia=il+i_f\n", - "ip=w/efficiency#input power\n", - "total_loss=ip-w\n", - "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", - "ironloss=total_loss-copper_loss\n", - "omega=2*3.14*n/60\n", - "T=ip/omega\n", - "\n", - "#omega\n", - "print \"Copper loss= \",copper_loss,\" W\"\n", - "print \"Iron and friction loss= \",ironloss,\" W\"\n", - "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Copper loss= 1216.88892562 W\n", - "Iron and friction loss= 2312.52283909 W\n", - "Torque developed by the prime mover= 224.803297115 Nw-m\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.23, Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declartaion\n", - "power=10000.0#W\n", - "v=250.0#V\n", - "p=a=6\n", - "n=1000.0#rpm\n", - "z=534\n", - "cu_loss=0.64*1000#W\n", - "vbd=1.0#V\n", - "\n", - "#calculations\n", - "ia=power/v\n", - "ra=cu_loss/(ia*ia)\n", - "E=v+(ia*ra)+vbd\n", - "phi=(E*60*a)/(n*z*p)\n", - "\n", - "#result\n", - "print \"flux per pole= \",phi*1000,\" mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 30.0 mWb\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(a), Page Number:928" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=195#A\n", - "pd=250#V\n", - "ra=0.02#ohm\n", - "rsh=50#ohm\n", - "p=250#W\n", - "strayloss=950#W\n", - "#calculations\n", - "ish=pd/rsh\n", - "ia=i+ish\n", - "vda=ia*ra\n", - "E=pd+vda\n", - "cu_loss=(ia*ia*ra)+(pd*ish)\n", - "output_prime=(pd*i)+strayloss+cu_loss\n", - "power_a=output_prime-strayloss\n", - "neu_m=(power_a/output_prime)\n", - "neu_e=(pd*i)/((pd*i)+cu_loss)\n", - "neu_c=(pd*i)/output_prime\n", - "\n", - "#result\n", - "print \"a)e.m.f. generated= \",E,\" V\"\n", - "print \" b)Cu losses= \",cu_loss,\" W\"\n", - "print \" c)output of prime mover= \",output_prime,\" W\"\n", - "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", - "print \" electrical efficiency= \",neu_e*100,\" %\"\n", - "print \" commercial efficiency= \",neu_c*100,\" %\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)e.m.f. generated= 254.0 V\n", - " b)Cu losses= 2050.0 W\n", - " c)output of prime mover= 51750.0 W\n", - " d)mechanical efficiency= 98.1642512077 %\n", - " electrical efficiency= 95.9645669291 %\n", - " commercial efficiency= 94.2028985507 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.24(b), Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "output=v*il\n", - "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"Efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.25, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=196#A\n", - "v=220#V\n", - "stray_loss=720#W\n", - "rsh=55#ohm\n", - "e=0.88\n", - "\n", - "#calculations\n", - "output=v*i\n", - "inpute=output/e\n", - "total_loss=inpute-output\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "cu_loss=v*ish\n", - "constant_loss=cu_loss+stray_loss\n", - "culoss_a=total_loss-constant_loss\n", - "ra=culoss_a/(ia*ia)\n", - "I=math.sqrt(constant_loss/ra)\n", - "\n", - "#result\n", - "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Load curent corresponding to maximum efficiency 122.283568103 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.26, Page Number:929" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "p=22*1000#w\n", - "v=220#V\n", - "ra=0.05#ohm\n", - "rsh=110#ohm\n", - "rseries=0.06#ohm\n", - "efficiency=.88\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "I=p/v\n", - "ia=ish+I\n", - "vdseries=ia*rseries\n", - "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", - "total_loss=(p/efficiency)-p\n", - "strayloss=total_loss-cu_loss\n", - "T=(p/efficiency*60)/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"a)cu losses= \",cu_loss,\" W\"\n", - "print \"b)iron and friction loss= \",strayloss,\" W\"\n", - "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cu losses= 1584.44 W\n", - "b)iron and friction loss= 1415.56 W\n", - "c)Torque exerted by the prime mover= 238.853503185 N-m\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.27, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "i=20#A\n", - "r=10#ohm\n", - "ra=0.5#ohm\n", - "rsh=50#ohm\n", - "vdb=1#V(voltage drop per brush)\n", - "\n", - "#calculations\n", - "v=i*r\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "E=v+(ia*ra)+(2*vdb)\n", - "totalpower=E*ia\n", - "output=v*i\n", - "efficiency=output/totalpower\n", - "\n", - "#result\n", - "print \"induced e.m.f.= \",E,\" V\"\n", - "print \"efficiency= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced e.m.f.= 214.0 V\n", - "efficiency= 77.8816199377 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.28, Page Number:930" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "i=100#A\n", - "ra=0.1#ohm\n", - "rseries=0.02#ohm\n", - "ri=0.025#ohm\n", - "rsh=100#ohm\n", - "ironloss=1000#W\n", - "frictionloss=500#W\n", - "\n", - "#calculations\n", - "output=v*i\n", - "totalra=ra+rseries+ri\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "copperloss=ia*ia*totalra\n", - "shculoss=ish*v\n", - "total_loss=copperloss+ironloss+frictionloss+shculoss\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "F.L. efficiency of the machine= 87.3089843128 %\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.31, Page Number:931" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=10.0*1000#W\n", - "v=240.0#V\n", - "ra=0.6#ohm\n", - "rsh=160.0#ohm\n", - "mechcoreloss=500.0#W\n", - "culoss=360.0#W\n", - "\n", - "#calculations\n", - "ish=v/rsh\n", - "i=output/v\n", - "ia=ish+i\n", - "culossa=ia*ia*ra\n", - "totalloss=culoss+mechcoreloss+culossa\n", - "inputp=output+totalloss\n", - "efficiency=output/inputp\n", - "\n", - "#result\n", - "print \"Power required= \",inputp*0.001,\" kW\"\n", - "print \"efficinecy= \",efficiency*100,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Power required= 11.9780166667 kW\n", - "efficinecy= 83.486275552 %\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.32, Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=110*1000#W\n", - "v=220#V\n", - "ra=0.01#ohm\n", - "rse=0.002#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "il=p/v\n", - "ish=v/rsh\n", - "ia=il+ish\n", - "E=v+ia*(ra+rse)\n", - "\n", - "#result\n", - "print \"induced emf= \",E,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 226.024 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 26.33 Page Number:932" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "E=216.0#V\n", - "n=600.0#rpm\n", - "slots=144\n", - "con=6\n", - "n2=500.0#rpm\n", - "\n", - "#calculations\n", - "z=con*slots\n", - "a=p\n", - "phi=(E*60*a)/(n*z*p)\n", - "a=2\n", - "armatureE=(phi*z*n2*p)/(60*a)\n", - "\n", - "#result\n", - "print \"the armature emf= \",armatureE,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the armature emf= 360.0 V\n" - ] - } - ], - "prompt_number": 34 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27.ipynb deleted file mode 100644 index 638b15f1..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27.ipynb +++ /dev/null @@ -1,730 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 27: Armature Reaction and Commutation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.1, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=722\n", - "ia=100.0#A\n", - "theta_m=8.0#degrees\n", - "\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 802.222222222\n", - "cross-magnetization= 3710.27777778\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.2, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=1280\n", - "v=500#V\n", - "ia=200.0#A\n", - "commuter=160\n", - "advanced_segments=4\n", - "\n", - "#calculatons\n", - "i=ia/8\n", - "theta_m=advanced_segments*360/commuter\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 800.0\n", - "cross-magnetization= 1200.0\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(a), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=880\n", - "ia=120.0#A\n", - "theta_m=3.0#degrees\n", - "n=1100#tturns/pole\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "iadditional=(atd_perpole/n)\n", - "\n", - "\n", - "#result\n", - "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", - "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", - "print \"c)additional field current=\",iadditional,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)armature demagnetization= 440.0 AT\n", - "b)cross-magnetization= 6160.0 AT\n", - "c)additional field current= 0.4 A\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(b), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=480\n", - "ia=150.0#A\n", - "theta_m=10.0*2#degrees\n", - "\n", - "#calculatons\n", - "i=ia/4\n", - "total=(z*i)/(2*p)\n", - "atd_perpole=total*(2*theta_m/180)\n", - "atc_perpole=total*(1-(2*theta_m/180))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 500.0\n", - "cross-magnetization= 1750.0\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.4, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=492\n", - "theta_m=10.0\n", - "ia=143.0+10.0\n", - "\n", - "#calculations\n", - "i1=ia/2#wave wound\n", - "i2=ia/4#lap wound\n", - "atd_perpole1=z*i1*theta_m/360#wave wound\n", - "extra_shunt1=atd_perpole1/theta_m\n", - "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", - "extra_shunt2=atd_perpole2/theta_m\n", - "#result\n", - "print \"wave wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt1)\n", - "print \"lap wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wave wound:\n", - "demagnetization per pole= 1045.5 AT\n", - "extra shunt field turns= 104\n", - "lap wound:\n", - "demagnetization per pole= 522.75 AT\n", - "extra shunt field turns= 52\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.5, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pole=4\n", - "p=50*1000.0#W\n", - "v=250.0#V\n", - "z=400\n", - "commuter=4\n", - "rsh=50.0#ohm\n", - "a=2\n", - "\n", - "#calculations\n", - "i=p/v\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "i=ia/2\n", - "segments=z/a\n", - "theta=pole*360.0/segments\n", - "atd=z*i*(theta/360)\n", - "extra=atd/ish\n", - "\n", - "#result\n", - "print \"demagnetisation=\",atd,\"AT\"\n", - "print \"extra shunt turns/poles\",extra" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "demagnetisation= 820.0 AT\n", - "extra shunt turns/poles 164.0\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.6, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=500\n", - "ia=200.0#A\n", - "p=6\n", - "theta=10.0#degrees\n", - "lambda_=1.3\n", - "\n", - "#calculations\n", - "i=ia/2\n", - "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", - "atd=z*i*theta/360\n", - "extra=lambda_*atd/ia\n", - "\n", - "#result\n", - "print \"i)cross magnetization ampere-turns=\",atc\n", - "print \"ii)back ampere-turns\",atd\n", - "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)cross magnetization ampere-turns= 2777.77777778\n", - "ii)back ampere-turns 1388.88888889\n", - "iii)series turns required to balance the demagnetising ampere turns 9\n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.7, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=22.38#kW\n", - "v=440.0#V\n", - "pole=4\n", - "z=840\n", - "commutator=140\n", - "efficiency=0.88\n", - "ish=1.8#A\n", - "back=1.5\n", - "\n", - "#calculations\n", - "motor_input=p*1000.0/efficiency\n", - "input_i=motor_input/v\n", - "ia=input_i-ish\n", - "i=ia/2.0\n", - "theta=back*360/commutator\n", - "atd=z*i*(theta/360.0)\n", - "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", - "#result\n", - "print \"armature demagnetization amp-turns/pole=\",atd\n", - "print \"distorting amp-turns/pole=\",atc" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization amp-turns/pole= 251.998140496\n", - "distorting amp-turns/pole= 2687.98016529\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.8, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "ia=1000#A\n", - "p=10\n", - "z=860\n", - "per=0.7\n", - "\n", - "#calculations\n", - "i=ia/p\n", - "at=per/p*z*(i/2)\n", - "\n", - "#result\n", - "print \"AT/pole for compensation winding=\",at" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "AT/pole for compensation winding= 3010.0\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.9, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800.0#rpm\n", - "segment=123\n", - "wb=3\n", - "#calculations\n", - "v=n/60.0*segment\n", - "commutation=wb/v\n", - "\n", - "#result\n", - "print \"commutation time=\",commutation*1000,\"millisecond\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commutation time= 1.82926829268 millisecond\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.10, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500#rpm\n", - "d=30#cm\n", - "ia=150#A\n", - "wb=1.25#cm\n", - "L=0.07*0.001#H\n", - "\n", - "#calculation\n", - "i=ia/2\n", - "v=3.14*d*(n/60)\n", - "tc=wb/v\n", - "E=L*2*i/tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 19.782 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.11, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "segments=55\n", - "n=900\n", - "wb=1.74\n", - "L=153*math.pow(10,-6)#H\n", - "i=27#A\n", - "\n", - "#calculations\n", - "v=segments*n/60\n", - "Tc=wb/v\n", - "E=L*2*i/Tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 3.91732758621 V\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.12, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500.0#rpm\n", - "ia=150.0#A\n", - "z=64\n", - "wb=1.2\n", - "L=0.05#mH\n", - "\n", - "#calculations\n", - "L=L*0.001\n", - "v=n/60*z\n", - "tc=wb/v\n", - "i=ia/p\n", - "#i.linear\n", - "E1=L*2*i/tc\n", - "#ii.sinusoidal\n", - "E2=1.11*E1\n", - "\n", - "#result\n", - "print \"Linear commutation,E=\",E1,\"V\"\n", - "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Linear commutation,E= 5.0 V\n", - "Sinosoidal commutation,E= 5.55 V\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.13, Page Number:951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=6\n", - "B=0.5#Wb/m2\n", - "Ig=4.0#mm\n", - "ia=500.0#A\n", - "z=540\n", - "\n", - "#calculations\n", - "arm_mmf=z*(ia/p)/(2*p)\n", - "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", - "mag=0.1*compole\n", - "total_compole=int(compole+mag)\n", - "total_mmf=arm_mmf+total_compole\n", - "Ncp=total_mmf/ia\n", - "\n", - "#result\n", - "print \"Number of turns on each commutating pole=\",int(Ncp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of turns on each commutating pole= 11\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.14, Page Number:957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p1=100.0#kW\n", - "V1=250#V\n", - "p2=300.0#kW\n", - "V2=250#V\n", - "i1=200#A\n", - "i2=500#A\n", - "il=600#A\n", - "\n", - "#calculations\n", - "delI1=p1/(p1+p2)*il\n", - "delI2=p2/(p1+p2)*il\n", - "\n", - "#result\n", - "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", - "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current supplied by generator 1 with additional load= 150.0 A\n", - "Current supplied by generator 2 with additional load= 450.0 A\n" - ] - } - ], - "prompt_number": 92 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.23, Page Number:963" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "va=400#V\n", - "ra=0.25#ohm\n", - "vb=410#V\n", - "rb=0.4#ohm\n", - "V=390#V\n", - "\n", - "#calculations\n", - "loada=(va-V)/ra\n", - "loadb=(vb-V)/rb\n", - "pa=loada*V\n", - "pb=loadb*V\n", - "net_v=vb-va\n", - "total_r=ra+rb\n", - "i=net_v/total_r\n", - "terminal_v=va+(i*ra)\n", - "power_AtoB=terminal_v*i\n", - "\n", - "#result\n", - "print \"Current=\",i,\"A\"\n", - "print \"Voltage=\",terminal_v,\"V\"\n", - "print \"Power=\",power_AtoB,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 15.3846153846 A\n", - "Voltage= 403.846153846 V\n", - "Power= 6213.01775148 W\n" - ] - } - ], - "prompt_number": 4 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_1.ipynb deleted file mode 100644 index 638b15f1..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_1.ipynb +++ /dev/null @@ -1,730 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 27: Armature Reaction and Commutation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.1, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=722\n", - "ia=100.0#A\n", - "theta_m=8.0#degrees\n", - "\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 802.222222222\n", - "cross-magnetization= 3710.27777778\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.2, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=1280\n", - "v=500#V\n", - "ia=200.0#A\n", - "commuter=160\n", - "advanced_segments=4\n", - "\n", - "#calculatons\n", - "i=ia/8\n", - "theta_m=advanced_segments*360/commuter\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 800.0\n", - "cross-magnetization= 1200.0\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(a), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=880\n", - "ia=120.0#A\n", - "theta_m=3.0#degrees\n", - "n=1100#tturns/pole\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "iadditional=(atd_perpole/n)\n", - "\n", - "\n", - "#result\n", - "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", - "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", - "print \"c)additional field current=\",iadditional,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)armature demagnetization= 440.0 AT\n", - "b)cross-magnetization= 6160.0 AT\n", - "c)additional field current= 0.4 A\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(b), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=480\n", - "ia=150.0#A\n", - "theta_m=10.0*2#degrees\n", - "\n", - "#calculatons\n", - "i=ia/4\n", - "total=(z*i)/(2*p)\n", - "atd_perpole=total*(2*theta_m/180)\n", - "atc_perpole=total*(1-(2*theta_m/180))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 500.0\n", - "cross-magnetization= 1750.0\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.4, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=492\n", - "theta_m=10.0\n", - "ia=143.0+10.0\n", - "\n", - "#calculations\n", - "i1=ia/2#wave wound\n", - "i2=ia/4#lap wound\n", - "atd_perpole1=z*i1*theta_m/360#wave wound\n", - "extra_shunt1=atd_perpole1/theta_m\n", - "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", - "extra_shunt2=atd_perpole2/theta_m\n", - "#result\n", - "print \"wave wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt1)\n", - "print \"lap wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wave wound:\n", - "demagnetization per pole= 1045.5 AT\n", - "extra shunt field turns= 104\n", - "lap wound:\n", - "demagnetization per pole= 522.75 AT\n", - "extra shunt field turns= 52\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.5, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pole=4\n", - "p=50*1000.0#W\n", - "v=250.0#V\n", - "z=400\n", - "commuter=4\n", - "rsh=50.0#ohm\n", - "a=2\n", - "\n", - "#calculations\n", - "i=p/v\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "i=ia/2\n", - "segments=z/a\n", - "theta=pole*360.0/segments\n", - "atd=z*i*(theta/360)\n", - "extra=atd/ish\n", - "\n", - "#result\n", - "print \"demagnetisation=\",atd,\"AT\"\n", - "print \"extra shunt turns/poles\",extra" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "demagnetisation= 820.0 AT\n", - "extra shunt turns/poles 164.0\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.6, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=500\n", - "ia=200.0#A\n", - "p=6\n", - "theta=10.0#degrees\n", - "lambda_=1.3\n", - "\n", - "#calculations\n", - "i=ia/2\n", - "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", - "atd=z*i*theta/360\n", - "extra=lambda_*atd/ia\n", - "\n", - "#result\n", - "print \"i)cross magnetization ampere-turns=\",atc\n", - "print \"ii)back ampere-turns\",atd\n", - "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)cross magnetization ampere-turns= 2777.77777778\n", - "ii)back ampere-turns 1388.88888889\n", - "iii)series turns required to balance the demagnetising ampere turns 9\n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.7, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=22.38#kW\n", - "v=440.0#V\n", - "pole=4\n", - "z=840\n", - "commutator=140\n", - "efficiency=0.88\n", - "ish=1.8#A\n", - "back=1.5\n", - "\n", - "#calculations\n", - "motor_input=p*1000.0/efficiency\n", - "input_i=motor_input/v\n", - "ia=input_i-ish\n", - "i=ia/2.0\n", - "theta=back*360/commutator\n", - "atd=z*i*(theta/360.0)\n", - "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", - "#result\n", - "print \"armature demagnetization amp-turns/pole=\",atd\n", - "print \"distorting amp-turns/pole=\",atc" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization amp-turns/pole= 251.998140496\n", - "distorting amp-turns/pole= 2687.98016529\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.8, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "ia=1000#A\n", - "p=10\n", - "z=860\n", - "per=0.7\n", - "\n", - "#calculations\n", - "i=ia/p\n", - "at=per/p*z*(i/2)\n", - "\n", - "#result\n", - "print \"AT/pole for compensation winding=\",at" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "AT/pole for compensation winding= 3010.0\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.9, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800.0#rpm\n", - "segment=123\n", - "wb=3\n", - "#calculations\n", - "v=n/60.0*segment\n", - "commutation=wb/v\n", - "\n", - "#result\n", - "print \"commutation time=\",commutation*1000,\"millisecond\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commutation time= 1.82926829268 millisecond\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.10, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500#rpm\n", - "d=30#cm\n", - "ia=150#A\n", - "wb=1.25#cm\n", - "L=0.07*0.001#H\n", - "\n", - "#calculation\n", - "i=ia/2\n", - "v=3.14*d*(n/60)\n", - "tc=wb/v\n", - "E=L*2*i/tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 19.782 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.11, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "segments=55\n", - "n=900\n", - "wb=1.74\n", - "L=153*math.pow(10,-6)#H\n", - "i=27#A\n", - "\n", - "#calculations\n", - "v=segments*n/60\n", - "Tc=wb/v\n", - "E=L*2*i/Tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 3.91732758621 V\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.12, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500.0#rpm\n", - "ia=150.0#A\n", - "z=64\n", - "wb=1.2\n", - "L=0.05#mH\n", - "\n", - "#calculations\n", - "L=L*0.001\n", - "v=n/60*z\n", - "tc=wb/v\n", - "i=ia/p\n", - "#i.linear\n", - "E1=L*2*i/tc\n", - "#ii.sinusoidal\n", - "E2=1.11*E1\n", - "\n", - "#result\n", - "print \"Linear commutation,E=\",E1,\"V\"\n", - "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Linear commutation,E= 5.0 V\n", - "Sinosoidal commutation,E= 5.55 V\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.13, Page Number:951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=6\n", - "B=0.5#Wb/m2\n", - "Ig=4.0#mm\n", - "ia=500.0#A\n", - "z=540\n", - "\n", - "#calculations\n", - "arm_mmf=z*(ia/p)/(2*p)\n", - "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", - "mag=0.1*compole\n", - "total_compole=int(compole+mag)\n", - "total_mmf=arm_mmf+total_compole\n", - "Ncp=total_mmf/ia\n", - "\n", - "#result\n", - "print \"Number of turns on each commutating pole=\",int(Ncp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of turns on each commutating pole= 11\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.14, Page Number:957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p1=100.0#kW\n", - "V1=250#V\n", - "p2=300.0#kW\n", - "V2=250#V\n", - "i1=200#A\n", - "i2=500#A\n", - "il=600#A\n", - "\n", - "#calculations\n", - "delI1=p1/(p1+p2)*il\n", - "delI2=p2/(p1+p2)*il\n", - "\n", - "#result\n", - "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", - "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current supplied by generator 1 with additional load= 150.0 A\n", - "Current supplied by generator 2 with additional load= 450.0 A\n" - ] - } - ], - "prompt_number": 92 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.23, Page Number:963" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "va=400#V\n", - "ra=0.25#ohm\n", - "vb=410#V\n", - "rb=0.4#ohm\n", - "V=390#V\n", - "\n", - "#calculations\n", - "loada=(va-V)/ra\n", - "loadb=(vb-V)/rb\n", - "pa=loada*V\n", - "pb=loadb*V\n", - "net_v=vb-va\n", - "total_r=ra+rb\n", - "i=net_v/total_r\n", - "terminal_v=va+(i*ra)\n", - "power_AtoB=terminal_v*i\n", - "\n", - "#result\n", - "print \"Current=\",i,\"A\"\n", - "print \"Voltage=\",terminal_v,\"V\"\n", - "print \"Power=\",power_AtoB,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 15.3846153846 A\n", - "Voltage= 403.846153846 V\n", - "Power= 6213.01775148 W\n" - ] - } - ], - "prompt_number": 4 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb deleted file mode 100644 index 638b15f1..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb +++ /dev/null @@ -1,730 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 27: Armature Reaction and Commutation" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.1, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=722\n", - "ia=100.0#A\n", - "theta_m=8.0#degrees\n", - "\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 802.222222222\n", - "cross-magnetization= 3710.27777778\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.2, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "z=1280\n", - "v=500#V\n", - "ia=200.0#A\n", - "commuter=160\n", - "advanced_segments=4\n", - "\n", - "#calculatons\n", - "i=ia/8\n", - "theta_m=advanced_segments*360/commuter\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 800.0\n", - "cross-magnetization= 1200.0\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(a), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=880\n", - "ia=120.0#A\n", - "theta_m=3.0#degrees\n", - "n=1100#tturns/pole\n", - "#calculatons\n", - "i=ia/2\n", - "atd_perpole=z*i*theta_m/360\n", - "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", - "iadditional=(atd_perpole/n)\n", - "\n", - "\n", - "#result\n", - "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", - "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", - "print \"c)additional field current=\",iadditional,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)armature demagnetization= 440.0 AT\n", - "b)cross-magnetization= 6160.0 AT\n", - "c)additional field current= 0.4 A\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.3(b), Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=480\n", - "ia=150.0#A\n", - "theta_m=10.0*2#degrees\n", - "\n", - "#calculatons\n", - "i=ia/4\n", - "total=(z*i)/(2*p)\n", - "atd_perpole=total*(2*theta_m/180)\n", - "atc_perpole=total*(1-(2*theta_m/180))\n", - "\n", - "#result\n", - "print \"armature demagnetization=\",atd_perpole\n", - "print \"cross-magnetization=\",atc_perpole" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization= 500.0\n", - "cross-magnetization= 1750.0\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.4, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=492\n", - "theta_m=10.0\n", - "ia=143.0+10.0\n", - "\n", - "#calculations\n", - "i1=ia/2#wave wound\n", - "i2=ia/4#lap wound\n", - "atd_perpole1=z*i1*theta_m/360#wave wound\n", - "extra_shunt1=atd_perpole1/theta_m\n", - "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", - "extra_shunt2=atd_perpole2/theta_m\n", - "#result\n", - "print \"wave wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt1)\n", - "print \"lap wound:\"\n", - "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", - "print \"extra shunt field turns=\",int(extra_shunt2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "wave wound:\n", - "demagnetization per pole= 1045.5 AT\n", - "extra shunt field turns= 104\n", - "lap wound:\n", - "demagnetization per pole= 522.75 AT\n", - "extra shunt field turns= 52\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.5, Page Number:944" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pole=4\n", - "p=50*1000.0#W\n", - "v=250.0#V\n", - "z=400\n", - "commuter=4\n", - "rsh=50.0#ohm\n", - "a=2\n", - "\n", - "#calculations\n", - "i=p/v\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "i=ia/2\n", - "segments=z/a\n", - "theta=pole*360.0/segments\n", - "atd=z*i*(theta/360)\n", - "extra=atd/ish\n", - "\n", - "#result\n", - "print \"demagnetisation=\",atd,\"AT\"\n", - "print \"extra shunt turns/poles\",extra" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "demagnetisation= 820.0 AT\n", - "extra shunt turns/poles 164.0\n" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.6, Page Number:943" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=500\n", - "ia=200.0#A\n", - "p=6\n", - "theta=10.0#degrees\n", - "lambda_=1.3\n", - "\n", - "#calculations\n", - "i=ia/2\n", - "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", - "atd=z*i*theta/360\n", - "extra=lambda_*atd/ia\n", - "\n", - "#result\n", - "print \"i)cross magnetization ampere-turns=\",atc\n", - "print \"ii)back ampere-turns\",atd\n", - "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)cross magnetization ampere-turns= 2777.77777778\n", - "ii)back ampere-turns 1388.88888889\n", - "iii)series turns required to balance the demagnetising ampere turns 9\n" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.7, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=22.38#kW\n", - "v=440.0#V\n", - "pole=4\n", - "z=840\n", - "commutator=140\n", - "efficiency=0.88\n", - "ish=1.8#A\n", - "back=1.5\n", - "\n", - "#calculations\n", - "motor_input=p*1000.0/efficiency\n", - "input_i=motor_input/v\n", - "ia=input_i-ish\n", - "i=ia/2.0\n", - "theta=back*360/commutator\n", - "atd=z*i*(theta/360.0)\n", - "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", - "#result\n", - "print \"armature demagnetization amp-turns/pole=\",atd\n", - "print \"distorting amp-turns/pole=\",atc" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature demagnetization amp-turns/pole= 251.998140496\n", - "distorting amp-turns/pole= 2687.98016529\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.8, Page Number:945" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "ia=1000#A\n", - "p=10\n", - "z=860\n", - "per=0.7\n", - "\n", - "#calculations\n", - "i=ia/p\n", - "at=per/p*z*(i/2)\n", - "\n", - "#result\n", - "print \"AT/pole for compensation winding=\",at" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "AT/pole for compensation winding= 3010.0\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.9, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800.0#rpm\n", - "segment=123\n", - "wb=3\n", - "#calculations\n", - "v=n/60.0*segment\n", - "commutation=wb/v\n", - "\n", - "#result\n", - "print \"commutation time=\",commutation*1000,\"millisecond\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commutation time= 1.82926829268 millisecond\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.10, Page Number:948" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500#rpm\n", - "d=30#cm\n", - "ia=150#A\n", - "wb=1.25#cm\n", - "L=0.07*0.001#H\n", - "\n", - "#calculation\n", - "i=ia/2\n", - "v=3.14*d*(n/60)\n", - "tc=wb/v\n", - "E=L*2*i/tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 19.782 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.11, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "segments=55\n", - "n=900\n", - "wb=1.74\n", - "L=153*math.pow(10,-6)#H\n", - "i=27#A\n", - "\n", - "#calculations\n", - "v=segments*n/60\n", - "Tc=wb/v\n", - "E=L*2*i/Tc\n", - "\n", - "#result\n", - "print \"average emf=\",E,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "average emf= 3.91732758621 V\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.12, Page Number:949" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=1500.0#rpm\n", - "ia=150.0#A\n", - "z=64\n", - "wb=1.2\n", - "L=0.05#mH\n", - "\n", - "#calculations\n", - "L=L*0.001\n", - "v=n/60*z\n", - "tc=wb/v\n", - "i=ia/p\n", - "#i.linear\n", - "E1=L*2*i/tc\n", - "#ii.sinusoidal\n", - "E2=1.11*E1\n", - "\n", - "#result\n", - "print \"Linear commutation,E=\",E1,\"V\"\n", - "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Linear commutation,E= 5.0 V\n", - "Sinosoidal commutation,E= 5.55 V\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.13, Page Number:951" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=6\n", - "B=0.5#Wb/m2\n", - "Ig=4.0#mm\n", - "ia=500.0#A\n", - "z=540\n", - "\n", - "#calculations\n", - "arm_mmf=z*(ia/p)/(2*p)\n", - "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", - "mag=0.1*compole\n", - "total_compole=int(compole+mag)\n", - "total_mmf=arm_mmf+total_compole\n", - "Ncp=total_mmf/ia\n", - "\n", - "#result\n", - "print \"Number of turns on each commutating pole=\",int(Ncp)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of turns on each commutating pole= 11\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.14, Page Number:957" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p1=100.0#kW\n", - "V1=250#V\n", - "p2=300.0#kW\n", - "V2=250#V\n", - "i1=200#A\n", - "i2=500#A\n", - "il=600#A\n", - "\n", - "#calculations\n", - "delI1=p1/(p1+p2)*il\n", - "delI2=p2/(p1+p2)*il\n", - "\n", - "#result\n", - "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", - "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current supplied by generator 1 with additional load= 150.0 A\n", - "Current supplied by generator 2 with additional load= 450.0 A\n" - ] - } - ], - "prompt_number": 92 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 27.23, Page Number:963" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "va=400#V\n", - "ra=0.25#ohm\n", - "vb=410#V\n", - "rb=0.4#ohm\n", - "V=390#V\n", - "\n", - "#calculations\n", - "loada=(va-V)/ra\n", - "loadb=(vb-V)/rb\n", - "pa=loada*V\n", - "pb=loadb*V\n", - "net_v=vb-va\n", - "total_r=ra+rb\n", - "i=net_v/total_r\n", - "terminal_v=va+(i*ra)\n", - "power_AtoB=terminal_v*i\n", - "\n", - "#result\n", - "print \"Current=\",i,\"A\"\n", - "print \"Voltage=\",terminal_v,\"V\"\n", - "print \"Power=\",power_AtoB,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 15.3846153846 A\n", - "Voltage= 403.846153846 V\n", - "Power= 6213.01775148 W\n" - ] - } - ], - "prompt_number": 4 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28.ipynb deleted file mode 100644 index 447ef8ab..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28.ipynb +++ /dev/null @@ -1,388 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 28: Generator Characteristics" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.13, Page Number:984" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "#emf increases by 1 V for every increase of 6 A\n", - "ra=0.02#ohm\n", - "i=96#A\n", - "\n", - "#calculations\n", - "voltageincrease=i/6\n", - "vd=i*ra\n", - "voltage_rise=voltageincrease-vd\n", - "vconsumer=v+voltage_rise\n", - "power_supplied=voltage_rise*i\n", - "\n", - "#result\n", - "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", - "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage supplied ot consumer= 234.08 V\n", - "power supplied by the booster itself= 1.35168 kW\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.14, Page Number:985" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#V\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=200.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "vd=i*r\n", - "voltage_decrease=v-vd\n", - "feeder_drop=v*r\n", - "booster_voltage=v*v/i1\n", - "voltage_net=feeder_drop-booster_voltage\n", - "\n", - "#result\n", - "print \"Net decrease in voltage= \",voltage_net,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net decrease in voltage= 2.5 V\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.15, Page Number:986" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "inl=5.0#A\n", - "v=440.0#V\n", - "il=6.0#A\n", - "i_full=200.0#A(full load)\n", - "turns=1600\n", - "\n", - "#calcuations\n", - "shunt_turns1=turns*inl\n", - "shunt_turns2=turns*il\n", - "increase=shunt_turns2-shunt_turns1\n", - "n=increase/i_full#number of series turns required\n", - "\n", - "#result\n", - "print \"Number of series turns required= \",n,\" tunrs/pole\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of series turns required= 8.0 tunrs/pole\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.16, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#turns/pole\n", - "series_winding=4#turns/pole\n", - "r=0.05#ohm\n", - "increase_i=0.2#A\n", - "ia=80#A\n", - "\n", - "#calculations\n", - "additional_at=n*increase_i\n", - "current_required=additional_at/series_winding\n", - "R=(current_required*r)/(ia-current_required)\n", - "\n", - "#result\n", - "print \"Divertor resistance= \",R,\" ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Divertor resistance= 0.0833333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.17, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "i=100.0#A\n", - "ra=0.1#ohm\n", - "rsh=50.0#ohm\n", - "rse=0.06#ohm\n", - "divertor=0.14#ohm\n", - "\n", - "#calculations\n", - "#short shunt\n", - "vd=i*rse\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "armature_drop=ia*ra\n", - "E=v+vd+armature_drop\n", - "#long shunt\n", - "vd=ia*(ra+rse)\n", - "print vd\n", - "E2=v+vd\n", - "current_divertor=(ia*divertor)/(divertor+rse)\n", - "change=(current_divertor/ia)*100\n", - "\n", - "#result\n", - "print \"a)emf induced using short shunt= \",E\n", - "print \"b)emf induced using long shunt= \",E2\n", - "print \"c)series amp-turns are reduced to \",change,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "16.704\n", - "a)emf induced using short shunt= 236.44\n", - "b)emf induced using long shunt= 236.704\n", - "c)series amp-turns are reduced to 70.0 %\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.18, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=250*1000#W\n", - "v=240#V\n", - "v2=220#V\n", - "i=7#A\n", - "inl=12#A\n", - "shunt=650#turns/pole\n", - "series=4#turns/pole\n", - "rse=0.006#ohm\n", - "\n", - "#calculations\n", - "i_fulload=p/v\n", - "shunt_increase=shunt*(inl-i)\n", - "ise=shunt_increase/series\n", - "i_d=i_fulload-ise\n", - "Rd=(ise*rse)/i_d\n", - "\n", - "#results\n", - "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.19, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "p=60.0*1000#W\n", - "n=1600.0#turns/pole\n", - "inl=1.25#A\n", - "vnl=125#V\n", - "il=1.75#A\n", - "vl=150.0#V\n", - "\n", - "#calculations\n", - "extra_excitation=n*(il-inl)\n", - "ise=p/vl\n", - "series=extra_excitation/ise\n", - "ise2=extra_excitation/3\n", - "i_d=ise-ise2\n", - "rd=(ise2*0.02)/i_d\n", - "reg=(vnl-vl)*100/vl\n", - "\n", - "#result\n", - "print \"i)minimum number of series turns/pole= \",series\n", - "print \"ii)divertor resistance= \",rd\n", - "print \"iii)voltage regulation= \",reg,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)minimum number of series turns/pole= 2.0\n", - "ii)divertor resistance= 0.04\n", - "iii)voltage regulation= -16.6666666667 %\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.20, Page Number:989" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#v\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=160.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "#160 A\n", - "vd=i1*(r-(v/i))\n", - "#50 A\n", - "vd2=i2*(r-(v/i))\n", - "\n", - "#result\n", - "print \"voltage drop at 160 A=\",vd,\"V\"\n", - "print \"voltage drop at 50 A=\",vd2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage drop at 160 A= 8.0 V\n", - "voltage drop at 50 A= 2.5 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_1.ipynb deleted file mode 100644 index 447ef8ab..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_1.ipynb +++ /dev/null @@ -1,388 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 28: Generator Characteristics" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.13, Page Number:984" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "#emf increases by 1 V for every increase of 6 A\n", - "ra=0.02#ohm\n", - "i=96#A\n", - "\n", - "#calculations\n", - "voltageincrease=i/6\n", - "vd=i*ra\n", - "voltage_rise=voltageincrease-vd\n", - "vconsumer=v+voltage_rise\n", - "power_supplied=voltage_rise*i\n", - "\n", - "#result\n", - "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", - "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage supplied ot consumer= 234.08 V\n", - "power supplied by the booster itself= 1.35168 kW\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.14, Page Number:985" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#V\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=200.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "vd=i*r\n", - "voltage_decrease=v-vd\n", - "feeder_drop=v*r\n", - "booster_voltage=v*v/i1\n", - "voltage_net=feeder_drop-booster_voltage\n", - "\n", - "#result\n", - "print \"Net decrease in voltage= \",voltage_net,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net decrease in voltage= 2.5 V\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.15, Page Number:986" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "inl=5.0#A\n", - "v=440.0#V\n", - "il=6.0#A\n", - "i_full=200.0#A(full load)\n", - "turns=1600\n", - "\n", - "#calcuations\n", - "shunt_turns1=turns*inl\n", - "shunt_turns2=turns*il\n", - "increase=shunt_turns2-shunt_turns1\n", - "n=increase/i_full#number of series turns required\n", - "\n", - "#result\n", - "print \"Number of series turns required= \",n,\" tunrs/pole\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of series turns required= 8.0 tunrs/pole\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.16, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#turns/pole\n", - "series_winding=4#turns/pole\n", - "r=0.05#ohm\n", - "increase_i=0.2#A\n", - "ia=80#A\n", - "\n", - "#calculations\n", - "additional_at=n*increase_i\n", - "current_required=additional_at/series_winding\n", - "R=(current_required*r)/(ia-current_required)\n", - "\n", - "#result\n", - "print \"Divertor resistance= \",R,\" ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Divertor resistance= 0.0833333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.17, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "i=100.0#A\n", - "ra=0.1#ohm\n", - "rsh=50.0#ohm\n", - "rse=0.06#ohm\n", - "divertor=0.14#ohm\n", - "\n", - "#calculations\n", - "#short shunt\n", - "vd=i*rse\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "armature_drop=ia*ra\n", - "E=v+vd+armature_drop\n", - "#long shunt\n", - "vd=ia*(ra+rse)\n", - "print vd\n", - "E2=v+vd\n", - "current_divertor=(ia*divertor)/(divertor+rse)\n", - "change=(current_divertor/ia)*100\n", - "\n", - "#result\n", - "print \"a)emf induced using short shunt= \",E\n", - "print \"b)emf induced using long shunt= \",E2\n", - "print \"c)series amp-turns are reduced to \",change,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "16.704\n", - "a)emf induced using short shunt= 236.44\n", - "b)emf induced using long shunt= 236.704\n", - "c)series amp-turns are reduced to 70.0 %\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.18, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=250*1000#W\n", - "v=240#V\n", - "v2=220#V\n", - "i=7#A\n", - "inl=12#A\n", - "shunt=650#turns/pole\n", - "series=4#turns/pole\n", - "rse=0.006#ohm\n", - "\n", - "#calculations\n", - "i_fulload=p/v\n", - "shunt_increase=shunt*(inl-i)\n", - "ise=shunt_increase/series\n", - "i_d=i_fulload-ise\n", - "Rd=(ise*rse)/i_d\n", - "\n", - "#results\n", - "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.19, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "p=60.0*1000#W\n", - "n=1600.0#turns/pole\n", - "inl=1.25#A\n", - "vnl=125#V\n", - "il=1.75#A\n", - "vl=150.0#V\n", - "\n", - "#calculations\n", - "extra_excitation=n*(il-inl)\n", - "ise=p/vl\n", - "series=extra_excitation/ise\n", - "ise2=extra_excitation/3\n", - "i_d=ise-ise2\n", - "rd=(ise2*0.02)/i_d\n", - "reg=(vnl-vl)*100/vl\n", - "\n", - "#result\n", - "print \"i)minimum number of series turns/pole= \",series\n", - "print \"ii)divertor resistance= \",rd\n", - "print \"iii)voltage regulation= \",reg,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)minimum number of series turns/pole= 2.0\n", - "ii)divertor resistance= 0.04\n", - "iii)voltage regulation= -16.6666666667 %\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.20, Page Number:989" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#v\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=160.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "#160 A\n", - "vd=i1*(r-(v/i))\n", - "#50 A\n", - "vd2=i2*(r-(v/i))\n", - "\n", - "#result\n", - "print \"voltage drop at 160 A=\",vd,\"V\"\n", - "print \"voltage drop at 50 A=\",vd2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage drop at 160 A= 8.0 V\n", - "voltage drop at 50 A= 2.5 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb deleted file mode 100644 index 447ef8ab..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb +++ /dev/null @@ -1,388 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 28: Generator Characteristics" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.13, Page Number:984" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "#emf increases by 1 V for every increase of 6 A\n", - "ra=0.02#ohm\n", - "i=96#A\n", - "\n", - "#calculations\n", - "voltageincrease=i/6\n", - "vd=i*ra\n", - "voltage_rise=voltageincrease-vd\n", - "vconsumer=v+voltage_rise\n", - "power_supplied=voltage_rise*i\n", - "\n", - "#result\n", - "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", - "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage supplied ot consumer= 234.08 V\n", - "power supplied by the booster itself= 1.35168 kW\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.14, Page Number:985" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#V\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=200.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "vd=i*r\n", - "voltage_decrease=v-vd\n", - "feeder_drop=v*r\n", - "booster_voltage=v*v/i1\n", - "voltage_net=feeder_drop-booster_voltage\n", - "\n", - "#result\n", - "print \"Net decrease in voltage= \",voltage_net,\" V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net decrease in voltage= 2.5 V\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.15, Page Number:986" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "inl=5.0#A\n", - "v=440.0#V\n", - "il=6.0#A\n", - "i_full=200.0#A(full load)\n", - "turns=1600\n", - "\n", - "#calcuations\n", - "shunt_turns1=turns*inl\n", - "shunt_turns2=turns*il\n", - "increase=shunt_turns2-shunt_turns1\n", - "n=increase/i_full#number of series turns required\n", - "\n", - "#result\n", - "print \"Number of series turns required= \",n,\" tunrs/pole\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Number of series turns required= 8.0 tunrs/pole\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.16, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#turns/pole\n", - "series_winding=4#turns/pole\n", - "r=0.05#ohm\n", - "increase_i=0.2#A\n", - "ia=80#A\n", - "\n", - "#calculations\n", - "additional_at=n*increase_i\n", - "current_required=additional_at/series_winding\n", - "R=(current_required*r)/(ia-current_required)\n", - "\n", - "#result\n", - "print \"Divertor resistance= \",R,\" ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Divertor resistance= 0.0833333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.17, Page Number:987" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "i=100.0#A\n", - "ra=0.1#ohm\n", - "rsh=50.0#ohm\n", - "rse=0.06#ohm\n", - "divertor=0.14#ohm\n", - "\n", - "#calculations\n", - "#short shunt\n", - "vd=i*rse\n", - "ish=v/rsh\n", - "ia=i+ish\n", - "armature_drop=ia*ra\n", - "E=v+vd+armature_drop\n", - "#long shunt\n", - "vd=ia*(ra+rse)\n", - "print vd\n", - "E2=v+vd\n", - "current_divertor=(ia*divertor)/(divertor+rse)\n", - "change=(current_divertor/ia)*100\n", - "\n", - "#result\n", - "print \"a)emf induced using short shunt= \",E\n", - "print \"b)emf induced using long shunt= \",E2\n", - "print \"c)series amp-turns are reduced to \",change,\" %\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "16.704\n", - "a)emf induced using short shunt= 236.44\n", - "b)emf induced using long shunt= 236.704\n", - "c)series amp-turns are reduced to 70.0 %\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.18, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=250*1000#W\n", - "v=240#V\n", - "v2=220#V\n", - "i=7#A\n", - "inl=12#A\n", - "shunt=650#turns/pole\n", - "series=4#turns/pole\n", - "rse=0.006#ohm\n", - "\n", - "#calculations\n", - "i_fulload=p/v\n", - "shunt_increase=shunt*(inl-i)\n", - "ise=shunt_increase/series\n", - "i_d=i_fulload-ise\n", - "Rd=(ise*rse)/i_d\n", - "\n", - "#results\n", - "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.19, Page Number:988" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "p=60.0*1000#W\n", - "n=1600.0#turns/pole\n", - "inl=1.25#A\n", - "vnl=125#V\n", - "il=1.75#A\n", - "vl=150.0#V\n", - "\n", - "#calculations\n", - "extra_excitation=n*(il-inl)\n", - "ise=p/vl\n", - "series=extra_excitation/ise\n", - "ise2=extra_excitation/3\n", - "i_d=ise-ise2\n", - "rd=(ise2*0.02)/i_d\n", - "reg=(vnl-vl)*100/vl\n", - "\n", - "#result\n", - "print \"i)minimum number of series turns/pole= \",series\n", - "print \"ii)divertor resistance= \",rd\n", - "print \"iii)voltage regulation= \",reg,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)minimum number of series turns/pole= 2.0\n", - "ii)divertor resistance= 0.04\n", - "iii)voltage regulation= -16.6666666667 %\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 28.20, Page Number:989" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=50.0#v\n", - "i=200.0#A\n", - "r=0.3#ohm\n", - "i1=160.0#A\n", - "i2=50.0#A\n", - "\n", - "#calculations\n", - "#160 A\n", - "vd=i1*(r-(v/i))\n", - "#50 A\n", - "vd2=i2*(r-(v/i))\n", - "\n", - "#result\n", - "print \"voltage drop at 160 A=\",vd,\"V\"\n", - "print \"voltage drop at 50 A=\",vd2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage drop at 160 A= 8.0 V\n", - "voltage drop at 50 A= 2.5 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29.ipynb deleted file mode 100644 index f3eda54f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29.ipynb +++ /dev/null @@ -1,2343 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 29: D.C. Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.1, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "r=0.5#ohm\n", - "i=20#A\n", - "\n", - "#calculation\n", - "#as generator \n", - "eg=v+i*r\n", - "#as motor\n", - "eb=v-i*r\n", - "\n", - "#result\n", - "print \"as generator:eg=\",eg,\"V\"\n", - "print \"as motor:eb=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "as generator:eg= 230.0 V\n", - "as motor:eb= 210.0 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.2, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia=Symbol('ia')\n", - "r=0.1#ohm\n", - "brush_drop=2#V\n", - "n=1000#rpm\n", - "i=100#A\n", - "v=250#V\n", - "n2=700#rpm\n", - "\n", - "#calculations\n", - "rl=v/i\n", - "eg1=v+i*r+brush_drop\n", - "eg2=eg1*n2/n\n", - "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", - "\n", - "#result\n", - "print \"current delivered to the load=\",ia[0],\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current delivered to the load= 69.7692307692308 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.3, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.8#ohm\n", - "rf=200#ohm\n", - "output=7.46#kW\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=output*1000/efficiency\n", - "im=output*1000/(efficiency*v)\n", - "ish=v/rf\n", - "ia=im-ish\n", - "eb=v-ia*ra\n", - "\n", - "#results\n", - "print \"back emf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "back emf= 425.642780749 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.4, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25#kW\n", - "v=250#V\n", - "ra=0.06#ohm\n", - "rf=100#ohm\n", - "\n", - "#calculations\n", - "#as generator\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"\n", - "\n", - "#as motor\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "As generator: power= 26.12424 kW\n", - "As generator: power= 23.92376 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.5, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=32\n", - "v=200.0#V\n", - "i=12.0#A\n", - "ra=2.0#ohm\n", - "rf=200.0#ohm\n", - "n=1000.0#rpm\n", - "i2=5.0#A\n", - "#calculations\n", - "ia=i+v/rf\n", - "eg=v+ia*ra\n", - "phi=eg*a*60/(z*n*p)\n", - "#as motor\n", - "ia=i2-v/rf\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi,\"wb\"\n", - "print \"speed of the machine=\",math.ceil(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.42375 wb\n", - "speed of the machine= 850.0 rpm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.6, Page Number:1002" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=110#A\n", - "v=480#V\n", - "ra=0.2#ohm\n", - "z=864\n", - "p=a=6\n", - "phi=0.05#Wb\n", - "\n", - "#calculations\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 636.0 rpm\n", - "the gross torque= 755.568 N-m\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.7, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "z=782\n", - "ra=rf=0.5#ohm\n", - "ia=40#A\n", - "phi=25*0.001#Wb\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 705.0 rpm\n", - "the gross torque= 248.676 N-m\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.8, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb=250.0#V\n", - "n=1500.0#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "pm=eb*ia\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"machanical power=\",pm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 79.5833333333 N-m\n", - "machanical power= 12500.0 W\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.9, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "z=800\n", - "load=8.2#kW\n", - "ia=45#A\n", - "phi=25*0.001#Wb\n", - "ra=0.6#ohm\n", - "a=p/2\n", - "\n", - "#calculation\n", - "ta=0.159*phi*z*ia*p/a\n", - "eb=v-ia*ra\n", - "n=eb*a/(phi*z*p)\n", - "tsh=load*1000/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"developed torque=\",ta,\"N-m\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 286.2 N-m\n", - "shaft torque= 270.618131415 N-m\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.10, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "n=500.0#rpm\n", - "i=50.0#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculation\n", - "ia2=2*i\n", - "fb1=v-(i*ra)\n", - "eb2=v-(ia2*ra)\n", - "n2=eb2*n/fb1\n", - "#result\n", - "print \"speed when torque is doubled=\",n2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when torque is doubled= 476.19047619 N-m\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.11, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=500#V\n", - "load=37.3#kW\n", - "n=1000#rpm\n", - "efficiency=0.90\n", - "ra=0.24#ohm\n", - "vd=2#v\n", - "i=1.8#A\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "il=input_m/v\n", - "tsh=9.55*load*1000/n\n", - "il=ratio*il\n", - "ia=il-i\n", - "r=solve(ia*(r+ra)+vd-v,r)\n", - "\n", - "#result\n", - "print \"full-load line current=\",il,\"A\"\n", - "print \"full-load shaft torque\",tsh,\"N-m\"\n", - "print \"total resistance=\",r[0],\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load line current= 124.333333333 A\n", - "full-load shaft torque 356.215 N-m\n", - "total resistance= 3.82420021762787 ohm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.12, Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "v=220#V\n", - "z=540\n", - "i=32#A\n", - "output=5.595#kW\n", - "ra=0.09#ohm\n", - "i_f=1#A\n", - "phi=30*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=i-i_f\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(phi*z*p)\n", - "tsh=9.55*output/n\n", - "\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "print \"torque developed=\",tsh*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 804.481481481 rpm\n", - "torque developed= 66.4182473183 N-m\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(a), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "load=20.0#kW\n", - "i=5.0#A\n", - "ra=0.04#ohm\n", - "phi=0.04#Wb\n", - "z=160\n", - "il=95.0#A\n", - "inl=9.0#A\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "#no load\n", - "ea0=v-(inl-i)*ra\n", - "n0=ea0*a*60/(phi*z*p)\n", - "#load\n", - "ea=v-(il-i)*ra\n", - "n=ea*n0/ea0\n", - "\n", - "#result\n", - "print \"no-load speed=\",n0,\"rpm\"\n", - "print \"load speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load speed= 1030.5 rpm\n", - "load speed= 1014.375 rpm\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(b), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=6\n", - "i=400#A\n", - "n=350#rpm\n", - "phi=80*0.001#Wb\n", - "z=600*2\n", - "loss=0.03#percentage\n", - "\n", - "#calculation\n", - "e=phi*z*n*p/(60*a)\n", - "pa=e*i\n", - "t=pa/(2*3.14*n/60)\n", - "t_net=0.97*t\n", - "bhp=t_net*36.67*0.001/0.746\n", - "#result\n", - "print \"brake-horse-power\",bhp,\"HP\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "brake-horse-power 291.551578696 HP\n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(c), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=774\n", - "phi=24*0.001#Wb\n", - "ia=50#A\n", - "a=2\n", - "#calculations\n", - "t=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 295.3584 N-m\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(d), Page Number:1005" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "ih=v/rf\n", - "pi=v*i\n", - "cu_loss_f=cu_loss=v*ih\n", - "output=v*il\n", - "cu_loss_a=(il+ih)**2*ra\n", - "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(e), Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delcration\n", - "ia=40#A\n", - "v=220#V\n", - "n=800#rpm\n", - "ra=0.2#ohm\n", - "rf=0.1#ohm\n", - "loss=0.5#kW\n", - "\n", - "#calculations\n", - "eb=v-ia*(ra+rf)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*(ra+rf)\n", - "total_loss=cu_loss+loss*1000\n", - "input_m=v*ia\n", - "output=input_m-total_loss\n", - "\n", - "#result\n", - "print \"output of the motor=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output of the motor= 7.82 kW\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.14, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=400.0#N\n", - "d=10.0#cm\n", - "n=840#rpm\n", - "v=220.0#V\n", - "n1=1800#rpm\n", - "efficiency=.80\n", - "d2=24.0#cm\n", - "\n", - "#calculations\n", - "tsh=f*d*0.01/2\n", - "output=tsh*2*3.14*n/60\n", - "input_m=output/efficiency\n", - "i=input_m/v\n", - "d1=n*d2/n1\n", - "\n", - "#calculation\n", - "print \"current taken by the motor=\",round(i),\"A\"\n", - "print \"size of motor pulley=\",d1,\"cm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the motor= 10.0 A\n", - "size of motor pulley= 11.2 cm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.15, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "p=4\n", - "z=280\n", - "ia=45.0#A\n", - "phi=18*0.001#Wb\n", - "ra=0.5+0.3#ohm\n", - "loss=800.0#W\n", - "d=0.41\n", - "a=4\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=eb*60*a/(phi*z*p*4)\n", - "inpt=v*ia\n", - "cu_loss=ia**2*ra\n", - "total_loss=loss+cu_loss\n", - "output=inpt-total_loss\n", - "tsh=9.55*output/n\n", - "f=tsh*2/d\n", - "\n", - "#result\n", - "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pull at the rim of the pulley= 628.016180845 N-m\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.16, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=240#V\n", - "output=11.19#kW\n", - "n=1000#rpm\n", - "ia=50#A\n", - "i=1#A\n", - "z=540\n", - "ra=0.1#ohm\n", - "vd=1#V\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "tsh=9.55*output*1000/n\n", - "phi=eb*60*a*1000/(z*n*p)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "brush_loss=ia*2\n", - "power=input_a-(cu_loss+brush_loss)\n", - "rotational_loss=power-output*1000\n", - "input_m=v*(ia+i)\n", - "efficiency=output*1000/input_m\n", - "\n", - "#result\n", - "print \"total torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"flux/pole=\",phi,\"mWb\"\n", - "print \"rotational losses=\",rotational_loss,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total torque= 112.2125 N-m\n", - "useful torque= 106.8645 N-m\n", - "flux/pole= 13.0555555556 mWb\n", - "rotational losses= 460.0 W\n", - "efficiency= 91.4215686275 %\n" - ] - } - ], - "prompt_number": 106 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.17, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#v\n", - "n=500.0#rpm\n", - "i=40.0#A\n", - "i2=30.0#A\n", - "ra=0.8#ohm\n", - "\n", - "#calculation\n", - "t2_by_t1=i2**2/i**2\n", - "change=(1-t2_by_t1)*100#percentage\n", - "eb1=v-i*ra\n", - "eb2=v-i2*ra\n", - "n2=eb2*i*n/(eb1*i2)\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"percentage change in torque=\",change,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 679.127725857 rpm\n", - "percentage change in torque= 43.75 %\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.18, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#V\n", - "output=55.95#kW\n", - "n=750#rpm\n", - "I=252.8#kg-m2\n", - "ia1=1.4\n", - "ia2=1.8\n", - "\n", - "#calculations\n", - "ia=(ia1+ia2)/2\n", - "n=n/60.0\n", - "tsh=output*1000/(2*3.14*n)\n", - "torque_avg=(ia-1)*tsh\n", - "dt=(I*2*3.14*n)/torque_avg\n", - "\n", - "#result\n", - "print \"approximate time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "approximate time to attain full speed= 46.4050282991 s\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.19, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "v=400.0#V\n", - "n=400.0#rpm\n", - "i=40.0#A\n", - "I=7.5#kg-m2\n", - "ratio=1.2\n", - "\n", - "#calculations\n", - "n=n/60\n", - "t=output*1000/(2*3.14*n)\n", - "torque=(ratio-1)*t\n", - "dt=(I*2*3.14*n)/torque\n", - "\n", - "print \"time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "time to attain full speed= 4.4055406613 s\n" - ] - } - ], - "prompt_number": 138 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.20, Page Number:1009" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=944\n", - "phi=34.6*0.001#Wb\n", - "ta=209.0#N-m\n", - "v=500.0#V\n", - "ra=3.0#ohm\n", - "a=2\n", - "#calculation\n", - "ia=ta/(0.159*phi*z*(p/a))\n", - "ea=v-ia*ra\n", - "n=ea/(phi*z*(p/a))\n", - "\n", - "#result\n", - "print \"line current=\",ia,\"A\"\n", - "print \"speed=\",n*60,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 20.1219966813 A\n", - "speed= 403.798260345 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.21, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#v\n", - "n=1000#rpm\n", - "ia=8#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i2=50#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb0=v-(ia-ish)*ra\n", - "eb=v-(i2-ish)*ra\n", - "n=eb*n/eb0\n", - "\n", - "#result\n", - "print \"speed when loaded=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when loaded= 966.21078037 rpm\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.22, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800#rpm\n", - "ia=100#A\n", - "v=230#V\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "ia2=25#A\n", - "ratio=0.45\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed at which motor runs=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor runs= 1940.37940379 rpm\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.23, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "#variable declaration\n", - "v=230.0#V\n", - "ra=0.5#ohm\n", - "rf=115.0#ohm\n", - "n1=1200#rpm\n", - "ia=2.5#A\n", - "n2=1120#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ra*ia\n", - "x=n2*eb1/n1\n", - "ia2=solve((v-ra*ia2)-x,ia2)\n", - "ia=ia2[0]+(v/rf)\n", - "input_m=v*ia\n", - "\n", - "#result\n", - "print \"line current=\",round(ia,1),\"A\"\n", - "print \"power input=\",round(input_m,1),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 35.0 A\n", - "power input= 8050.0 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.24, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=100.0#kW\n", - "n1=300#rpm\n", - "v=220.0#V\n", - "load=10.0#kW\n", - "ra=0.025#ohm\n", - "rf=60.0#ohm\n", - "vd=1.0#V\n", - "\n", - "#calculation\n", - "i=power*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra+2*vd\n", - "i=load*1000/v\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n1/eb\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 278.796797778 rpm\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.25, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by whih armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia2=ia-ish\n", - "eb0=v-ia2*ra\n", - "n0=n*eb0/v\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*n0/(eb0*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed of machine=\",math.floor(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of machine= 960.0 rpm\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.26, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ooutput=14.92#kW\n", - "n=1000#rpm\n", - "i=75#A\n", - "ra=0.25#ohm\n", - "ratio=0.20\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb_inst=eb1*(1-ratio)\n", - "ia_inst=(v-eb_inst)/ra\n", - "t_inst=9.55*eb_inst*ia_inst/n\n", - "ia2=i/(1-ratio)\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 93.75 A\n", - "speed= 1224.66216216 rpm\n" - ] - } - ], - "prompt_number": 191 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.27, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "i=4.0#A\n", - "n=700.0#rpm\n", - "rf=100.0#A\n", - "v2=6.0#V\n", - "i2=10.0#A\n", - "input_m=8.0#kW\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "il=input_m*1000/v\n", - "ia=il-ish\n", - "ra=v2/i2\n", - "eb0=v-ish*ra\n", - "eb=v-ia*ra\n", - "n=eb*n/eb0\n", - "ta=9.55*eb*ia/n\n", - "inpt=v*i\n", - "cu_loss=ish**2*ra\n", - "constant_loss=inpt-cu_loss\n", - "cu_loss_arm=ia**2*ra\n", - "total_loss=constant_loss+cu_loss_arm\n", - "output=input_m*1000-total_loss\n", - "efficiency=output/(input_m*1000)\n", - "print \n", - "#result\n", - "print \"speed on load=\",n,\"rpm\"\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "speed on load= 623.943661972 rpm\n", - "torque= 103.0636 N-m\n", - "efficiency= 79.2 %\n" - ] - } - ], - "prompt_number": 197 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.28, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "v=220#V\n", - "load=11#kW\n", - "inl=5#A\n", - "n_nl=1150#rpm\n", - "ra=0.5#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "input_nl=v*inl\n", - "ish=v/rsh\n", - "ia0=inl-ish\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "i=load*1000/v\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "total_loss=cu_loss_a+constant_loss\n", - "output=load*1000-total_loss\n", - "efficiency=output*100/(load*1000)\n", - "eb_nl=v-(ia0*ra)\n", - "eb=v-ia*ra\n", - "n=n_nl*eb/eb_nl\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"the speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque developed= 87.096 N-m\n", - "efficiency= 79.5361818182 %\n", - "the speed= 1031.57894737 rpm\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.29, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=250.0#V\n", - "ra=0.1#ohm\n", - "vb=3#V\n", - "rf=0.05#ohm\n", - "ia=80.0#A\n", - "n=600.0#rpm\n", - "i2=100.0#A\n", - "\n", - "#calculation\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-i2*(ra+rf)\n", - "n2=eb2*ia*n/(eb1*i2)\n", - "\n", - "#result\n", - "print \"speed when current is 100 A=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when current is 100 A= 473.949579832 rpm\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.30, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "n=800.0#rpm\n", - "i=100.0#A\n", - "ra=0.1\n", - "ratio=1.0/2.0\n", - "#calculation\n", - "ia1=i*math.sqrt(ratio)\n", - "eb1=v-i*ra\n", - "eb2=v-ia1*ra\n", - "n2=eb2*i*n/(eb1*ia1)\n", - "#result\n", - "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when motor will run when developing half the torque= 1147.0 rpm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.31, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "n=600#rpm\n", - "ia=25#A\n", - "v=450#V\n", - "z=500\n", - "phi=1.7*0.01*math.pow(ia,0.5)\n", - "\n", - "#calculation\n", - "eb=n*phi*z*p/(60*a)\n", - "iara=v-eb\n", - "ra=iara/ia\n", - "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", - "eb2=v/2-i*ra\n", - "phi2=1.7*0.01*math.pow(i,0.5)\n", - "n2=eb2*phi*n/(eb*phi2)\n", - "\n", - "#result\n", - "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor will run= 372.0 rpm\n" - ] - } - ], - "prompt_number": 224 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.32, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "v=460.0#V\n", - "ra=0.5#ohm\n", - "\n", - "def f(ia,t):\n", - " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", - " return(n)\n", - "\n", - "n1=f(20.0,128.8)\n", - "n2=f(30.0,230.5)\n", - "n3=f(40.0,349.8)\n", - "n4=f(50.0,469.2)\n", - "T=[128.8,230.5,349.8,469.2]\n", - "N=[n1,n2,n3,n4]\n", - "a=plot(T,N)\n", - "xlabel(\"Torque(NM.m)\") \n", - "ylabel(\"Speed(rpm)\") \n", - "plt.xlim((0,500))\n", - "plt.ylim((0,800))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.33, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "output=5.968#kW\n", - "n=700#rpm\n", - "v1=500#V\n", - "n2=600#rpm\n", - "ra=3.5#ohm\n", - "loss=450#W\n", - "\n", - "#calculation\n", - "\n", - "def fp(i,v):\n", - " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", - " return(p)\n", - "\n", - "def fm(i,v):\n", - " m=((v1-i*ra)*i-loss)/1000\n", - " return(m)\n", - "\n", - "p1=fp(7.0,347.0)\n", - "p2=fp(10.5,393.0)\n", - "p3=fp(14.0,434.0)\n", - "p4=fp(27.5,468.0)\n", - "\n", - "m1=fm(7.0,347.8)\n", - "m2=fm(10.5,393.0)\n", - "m3=fm(14.0,434.0)\n", - "m4=fm(27.5,468.0)\n", - "\n", - "#plot\n", - "I=[7,10.5,14,27.5]\n", - "P=[p1,p2,p3,p4]\n", - "M=[m1,m2,m3,m4]\n", - "a=plot(I,P)\n", - "a=plot(I,M)\n", - "xlabel(\"Current\") \n", - "ylabel(\"Power(kW)\") \n", - "plt.xlim((0,30))\n", - "plt.ylim((0,12))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.34, Page Number:1022" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "i=3#A\n", - "ia=3.5#A\n", - "ib=4.5#A\n", - "\n", - "#calculation\n", - "loss=v*i\n", - "#B unexcited\n", - "loss1=v*(ia-i)\n", - "#B excited\n", - "loss2=v*(ib-i)\n", - "loss=loss2-loss1\n", - "\n", - "#result\n", - "print \"iron losses of B=\",loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "iron losses of B= 500.0 W\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.35, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.2#ohm\n", - "rf=110.0#ohm\n", - "ia=5.0#A\n", - "n=1500#rpm\n", - "i2=52.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i2-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=round(eb2*n/eb1,0)\n", - "input_nl=v*ia\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "cu_loss_l=ia2**2*ra\n", - "total_loss=constant_loss+cu_loss_l\n", - "input_l=v*i2\n", - "output=input_l-total_loss\n", - "tsh=9.55*output/n2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.36, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=5#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "ratio=0.03#percentage by which armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 994.0 rpm\n" - ] - } - ], - "prompt_number": 241 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.37, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ia=5#A\n", - "ra=0.22#A\n", - "rf=250#ohm\n", - "i=100#A\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia0=ia-ish\n", - "eb0=v-ia0*ra\n", - "cu_loss=ia0**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "cu_loss=ia**2*ra\n", - "total_loss=cu_loss+constant_loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "efficiency=output*100/input_m\n", - "per=(eb-eb0)*100/eb0\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"\n", - "print \"percentage change in speed=\",round(per,2),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 90.8 %\n", - "percentage change in speed= -4.19 %\n" - ] - } - ], - "prompt_number": 244 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.38, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "i=25#A\n", - "i2=50#A\n", - "ratio=0.03#percentage by which the armature reaction weakens field\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "vd=1\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ebh=v-ia1*ra-2*vd\n", - "ia2=i2-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n/(ebh*(1-ratio))\n", - "ta1=9.55*eb1*ia1/n\n", - "ta2=9.55*eb2*ia2/n2\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"torque in first case=\",ta1,\"N-m\"\n", - "print \"torque in second case=\",ta2,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1010.0 rpm\n", - "torque in first case= 57.11664 N-m\n", - "torque in second case= 110.3912768 N-m\n" - ] - } - ], - "prompt_number": 247 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.39, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "n1=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by which the armature reaction weakens field\n", - "eb1=250.0#V\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb2=v-(i-ish)*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "cu_loss=(ia-ish)**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "cu_loss_a=(i-ish)**2*ra\n", - "total_loss=constant_loss+cu_loss_a\n", - "inpt=v*i\n", - "output=inpt-total_loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 960.0 rpm\n", - "efficiency= 82.44 %\n" - ] - } - ], - "prompt_number": 254 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.40, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=250#V\n", - "z=120*8\n", - "a=4\n", - "phi=20*0.001#Wb\n", - "i=25#A\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "loss=810#W\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_shunt=v*ish\n", - "total_loss=loss+cu_loss+cu_loss_shunt\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"gross torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque= 70.288 N-m\n", - "useful torque= 60.2946209124 N-m\n", - "efficiency= 78.1936 %\n" - ] - } - ], - "prompt_number": 256 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.41, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "n=1150#rpm\n", - "p=4\n", - "a=2\n", - "z=620\n", - "ra=0.2#ohm\n", - "i=74.8#A\n", - "i2=3#A\n", - "v=230#V\n", - "#calculation\n", - "ia=i-i2\n", - "eb=v-ia*ra\n", - "phi=eb*a*60/(p*z*n)\n", - "ta=9.55*eb*ia/n\n", - "power=eb*ia\n", - "loss_rot=power-output*1000\n", - "input_m=v*i\n", - "total_loss=input_m-output*1000\n", - "per=total_loss*100/input_m\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi*1000,\"mWb\"\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"rotational losses=\",loss_rot,\"W\"\n", - "print \"total losses expressed as a percentage of power=\",per,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 9.07321178121 mWb\n", - "torque developed= 128.575818783 N-m\n", - "rotational losses= 562.952 W\n", - "total losses expressed as a percentage of power= 13.2759823297 %\n" - ] - } - ], - "prompt_number": 263 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.42, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=7.46#kW\n", - "v=250#V\n", - "i=5#A\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "\n", - "#calculation\n", - "input_m=v*i\n", - "ish=v/rf\n", - "ia=i-ish\n", - "cu_loss=v*ish\n", - "cu_loss_a=ra*ia**2\n", - "loss=input_m-cu_loss\n", - "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", - "i2=ia1[0]+ish\n", - "input_m1=v*i2\n", - "efficiency=output*100000/input_m1\n", - "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "output_a=input_a-(cu_loss+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 79.5621535016683 %\n", - "output power at which efficiency is maximum= 10.2179357944 kW\n" - ] - } - ], - "prompt_number": 271 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.43, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n2_by_n1=1.0/2.0\n", - "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", - "v2_by_v1=n2_by_n1*phi1_by_phi2\n", - "reduction_v=(1-v2_by_v1)*100\n", - "reduction_i=(1-ia2_by_ia1)*100\n", - "\n", - "#result\n", - "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", - "print \"percentage fall in the motor current=\",reduction_i,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in the motor terminal voltage= 75.0 %\n", - "percentage fall in the motor current= 50.0 %\n" - ] - } - ], - "prompt_number": 272 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.44, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=500#V\n", - "z=1200\n", - "phi=20*0.001#Wb\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "i=20#A\n", - "loss=900#W\n", - "a=2\n", - "#calculation\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_f=v*ish\n", - "total_loss=cu_loss+cu_loss_f+loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"useful torque=\",ta,\"N-m\"\n", - "print \"output=\",output/1000,\"Kw\"\n", - "print \"efficiency==\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "useful torque= 206.28 N-m\n", - "output= 7.938 Kw\n", - "efficiency== 79.38 %\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.45, Page Number:1027" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=37.3*1000#W\n", - "v=460#V\n", - "i=4#A\n", - "n=660#rpm\n", - "ra=0.3#ohm\n", - "rf=270#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "cu_loss=v*ish\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "input_a=loss=v*ia\n", - "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", - "i=ia1[0]+ish\n", - "eb1=v-(ia*ra)\n", - "eb2=v-(ia1[0]*ra)\n", - "n2=n*eb2/eb1\n", - "ia=math.sqrt((cu_loss+input_a)/ra)\n", - "\n", - "#result\n", - "print \"the current input=\",i,\"A\"\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"armature current at which efficiency is maximum=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the current input= 90.2860908863713 A\n", - "speed= 623.0 rpm\n", - "armature current at which efficiency is maximum= 78.3156008298 A\n" - ] - } - ], - "prompt_number": 280 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_1.ipynb deleted file mode 100644 index f3eda54f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_1.ipynb +++ /dev/null @@ -1,2343 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 29: D.C. Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.1, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "r=0.5#ohm\n", - "i=20#A\n", - "\n", - "#calculation\n", - "#as generator \n", - "eg=v+i*r\n", - "#as motor\n", - "eb=v-i*r\n", - "\n", - "#result\n", - "print \"as generator:eg=\",eg,\"V\"\n", - "print \"as motor:eb=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "as generator:eg= 230.0 V\n", - "as motor:eb= 210.0 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.2, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia=Symbol('ia')\n", - "r=0.1#ohm\n", - "brush_drop=2#V\n", - "n=1000#rpm\n", - "i=100#A\n", - "v=250#V\n", - "n2=700#rpm\n", - "\n", - "#calculations\n", - "rl=v/i\n", - "eg1=v+i*r+brush_drop\n", - "eg2=eg1*n2/n\n", - "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", - "\n", - "#result\n", - "print \"current delivered to the load=\",ia[0],\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current delivered to the load= 69.7692307692308 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.3, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.8#ohm\n", - "rf=200#ohm\n", - "output=7.46#kW\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=output*1000/efficiency\n", - "im=output*1000/(efficiency*v)\n", - "ish=v/rf\n", - "ia=im-ish\n", - "eb=v-ia*ra\n", - "\n", - "#results\n", - "print \"back emf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "back emf= 425.642780749 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.4, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25#kW\n", - "v=250#V\n", - "ra=0.06#ohm\n", - "rf=100#ohm\n", - "\n", - "#calculations\n", - "#as generator\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"\n", - "\n", - "#as motor\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "As generator: power= 26.12424 kW\n", - "As generator: power= 23.92376 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.5, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=32\n", - "v=200.0#V\n", - "i=12.0#A\n", - "ra=2.0#ohm\n", - "rf=200.0#ohm\n", - "n=1000.0#rpm\n", - "i2=5.0#A\n", - "#calculations\n", - "ia=i+v/rf\n", - "eg=v+ia*ra\n", - "phi=eg*a*60/(z*n*p)\n", - "#as motor\n", - "ia=i2-v/rf\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi,\"wb\"\n", - "print \"speed of the machine=\",math.ceil(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.42375 wb\n", - "speed of the machine= 850.0 rpm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.6, Page Number:1002" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=110#A\n", - "v=480#V\n", - "ra=0.2#ohm\n", - "z=864\n", - "p=a=6\n", - "phi=0.05#Wb\n", - "\n", - "#calculations\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 636.0 rpm\n", - "the gross torque= 755.568 N-m\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.7, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "z=782\n", - "ra=rf=0.5#ohm\n", - "ia=40#A\n", - "phi=25*0.001#Wb\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 705.0 rpm\n", - "the gross torque= 248.676 N-m\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.8, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb=250.0#V\n", - "n=1500.0#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "pm=eb*ia\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"machanical power=\",pm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 79.5833333333 N-m\n", - "machanical power= 12500.0 W\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.9, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "z=800\n", - "load=8.2#kW\n", - "ia=45#A\n", - "phi=25*0.001#Wb\n", - "ra=0.6#ohm\n", - "a=p/2\n", - "\n", - "#calculation\n", - "ta=0.159*phi*z*ia*p/a\n", - "eb=v-ia*ra\n", - "n=eb*a/(phi*z*p)\n", - "tsh=load*1000/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"developed torque=\",ta,\"N-m\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 286.2 N-m\n", - "shaft torque= 270.618131415 N-m\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.10, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "n=500.0#rpm\n", - "i=50.0#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculation\n", - "ia2=2*i\n", - "fb1=v-(i*ra)\n", - "eb2=v-(ia2*ra)\n", - "n2=eb2*n/fb1\n", - "#result\n", - "print \"speed when torque is doubled=\",n2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when torque is doubled= 476.19047619 N-m\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.11, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=500#V\n", - "load=37.3#kW\n", - "n=1000#rpm\n", - "efficiency=0.90\n", - "ra=0.24#ohm\n", - "vd=2#v\n", - "i=1.8#A\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "il=input_m/v\n", - "tsh=9.55*load*1000/n\n", - "il=ratio*il\n", - "ia=il-i\n", - "r=solve(ia*(r+ra)+vd-v,r)\n", - "\n", - "#result\n", - "print \"full-load line current=\",il,\"A\"\n", - "print \"full-load shaft torque\",tsh,\"N-m\"\n", - "print \"total resistance=\",r[0],\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load line current= 124.333333333 A\n", - "full-load shaft torque 356.215 N-m\n", - "total resistance= 3.82420021762787 ohm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.12, Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "v=220#V\n", - "z=540\n", - "i=32#A\n", - "output=5.595#kW\n", - "ra=0.09#ohm\n", - "i_f=1#A\n", - "phi=30*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=i-i_f\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(phi*z*p)\n", - "tsh=9.55*output/n\n", - "\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "print \"torque developed=\",tsh*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 804.481481481 rpm\n", - "torque developed= 66.4182473183 N-m\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(a), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "load=20.0#kW\n", - "i=5.0#A\n", - "ra=0.04#ohm\n", - "phi=0.04#Wb\n", - "z=160\n", - "il=95.0#A\n", - "inl=9.0#A\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "#no load\n", - "ea0=v-(inl-i)*ra\n", - "n0=ea0*a*60/(phi*z*p)\n", - "#load\n", - "ea=v-(il-i)*ra\n", - "n=ea*n0/ea0\n", - "\n", - "#result\n", - "print \"no-load speed=\",n0,\"rpm\"\n", - "print \"load speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load speed= 1030.5 rpm\n", - "load speed= 1014.375 rpm\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(b), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=6\n", - "i=400#A\n", - "n=350#rpm\n", - "phi=80*0.001#Wb\n", - "z=600*2\n", - "loss=0.03#percentage\n", - "\n", - "#calculation\n", - "e=phi*z*n*p/(60*a)\n", - "pa=e*i\n", - "t=pa/(2*3.14*n/60)\n", - "t_net=0.97*t\n", - "bhp=t_net*36.67*0.001/0.746\n", - "#result\n", - "print \"brake-horse-power\",bhp,\"HP\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "brake-horse-power 291.551578696 HP\n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(c), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=774\n", - "phi=24*0.001#Wb\n", - "ia=50#A\n", - "a=2\n", - "#calculations\n", - "t=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 295.3584 N-m\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(d), Page Number:1005" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "ih=v/rf\n", - "pi=v*i\n", - "cu_loss_f=cu_loss=v*ih\n", - "output=v*il\n", - "cu_loss_a=(il+ih)**2*ra\n", - "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(e), Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delcration\n", - "ia=40#A\n", - "v=220#V\n", - "n=800#rpm\n", - "ra=0.2#ohm\n", - "rf=0.1#ohm\n", - "loss=0.5#kW\n", - "\n", - "#calculations\n", - "eb=v-ia*(ra+rf)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*(ra+rf)\n", - "total_loss=cu_loss+loss*1000\n", - "input_m=v*ia\n", - "output=input_m-total_loss\n", - "\n", - "#result\n", - "print \"output of the motor=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output of the motor= 7.82 kW\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.14, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=400.0#N\n", - "d=10.0#cm\n", - "n=840#rpm\n", - "v=220.0#V\n", - "n1=1800#rpm\n", - "efficiency=.80\n", - "d2=24.0#cm\n", - "\n", - "#calculations\n", - "tsh=f*d*0.01/2\n", - "output=tsh*2*3.14*n/60\n", - "input_m=output/efficiency\n", - "i=input_m/v\n", - "d1=n*d2/n1\n", - "\n", - "#calculation\n", - "print \"current taken by the motor=\",round(i),\"A\"\n", - "print \"size of motor pulley=\",d1,\"cm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the motor= 10.0 A\n", - "size of motor pulley= 11.2 cm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.15, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "p=4\n", - "z=280\n", - "ia=45.0#A\n", - "phi=18*0.001#Wb\n", - "ra=0.5+0.3#ohm\n", - "loss=800.0#W\n", - "d=0.41\n", - "a=4\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=eb*60*a/(phi*z*p*4)\n", - "inpt=v*ia\n", - "cu_loss=ia**2*ra\n", - "total_loss=loss+cu_loss\n", - "output=inpt-total_loss\n", - "tsh=9.55*output/n\n", - "f=tsh*2/d\n", - "\n", - "#result\n", - "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pull at the rim of the pulley= 628.016180845 N-m\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.16, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=240#V\n", - "output=11.19#kW\n", - "n=1000#rpm\n", - "ia=50#A\n", - "i=1#A\n", - "z=540\n", - "ra=0.1#ohm\n", - "vd=1#V\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "tsh=9.55*output*1000/n\n", - "phi=eb*60*a*1000/(z*n*p)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "brush_loss=ia*2\n", - "power=input_a-(cu_loss+brush_loss)\n", - "rotational_loss=power-output*1000\n", - "input_m=v*(ia+i)\n", - "efficiency=output*1000/input_m\n", - "\n", - "#result\n", - "print \"total torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"flux/pole=\",phi,\"mWb\"\n", - "print \"rotational losses=\",rotational_loss,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total torque= 112.2125 N-m\n", - "useful torque= 106.8645 N-m\n", - "flux/pole= 13.0555555556 mWb\n", - "rotational losses= 460.0 W\n", - "efficiency= 91.4215686275 %\n" - ] - } - ], - "prompt_number": 106 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.17, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#v\n", - "n=500.0#rpm\n", - "i=40.0#A\n", - "i2=30.0#A\n", - "ra=0.8#ohm\n", - "\n", - "#calculation\n", - "t2_by_t1=i2**2/i**2\n", - "change=(1-t2_by_t1)*100#percentage\n", - "eb1=v-i*ra\n", - "eb2=v-i2*ra\n", - "n2=eb2*i*n/(eb1*i2)\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"percentage change in torque=\",change,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 679.127725857 rpm\n", - "percentage change in torque= 43.75 %\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.18, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#V\n", - "output=55.95#kW\n", - "n=750#rpm\n", - "I=252.8#kg-m2\n", - "ia1=1.4\n", - "ia2=1.8\n", - "\n", - "#calculations\n", - "ia=(ia1+ia2)/2\n", - "n=n/60.0\n", - "tsh=output*1000/(2*3.14*n)\n", - "torque_avg=(ia-1)*tsh\n", - "dt=(I*2*3.14*n)/torque_avg\n", - "\n", - "#result\n", - "print \"approximate time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "approximate time to attain full speed= 46.4050282991 s\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.19, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "v=400.0#V\n", - "n=400.0#rpm\n", - "i=40.0#A\n", - "I=7.5#kg-m2\n", - "ratio=1.2\n", - "\n", - "#calculations\n", - "n=n/60\n", - "t=output*1000/(2*3.14*n)\n", - "torque=(ratio-1)*t\n", - "dt=(I*2*3.14*n)/torque\n", - "\n", - "print \"time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "time to attain full speed= 4.4055406613 s\n" - ] - } - ], - "prompt_number": 138 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.20, Page Number:1009" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=944\n", - "phi=34.6*0.001#Wb\n", - "ta=209.0#N-m\n", - "v=500.0#V\n", - "ra=3.0#ohm\n", - "a=2\n", - "#calculation\n", - "ia=ta/(0.159*phi*z*(p/a))\n", - "ea=v-ia*ra\n", - "n=ea/(phi*z*(p/a))\n", - "\n", - "#result\n", - "print \"line current=\",ia,\"A\"\n", - "print \"speed=\",n*60,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 20.1219966813 A\n", - "speed= 403.798260345 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.21, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#v\n", - "n=1000#rpm\n", - "ia=8#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i2=50#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb0=v-(ia-ish)*ra\n", - "eb=v-(i2-ish)*ra\n", - "n=eb*n/eb0\n", - "\n", - "#result\n", - "print \"speed when loaded=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when loaded= 966.21078037 rpm\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.22, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800#rpm\n", - "ia=100#A\n", - "v=230#V\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "ia2=25#A\n", - "ratio=0.45\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed at which motor runs=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor runs= 1940.37940379 rpm\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.23, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "#variable declaration\n", - "v=230.0#V\n", - "ra=0.5#ohm\n", - "rf=115.0#ohm\n", - "n1=1200#rpm\n", - "ia=2.5#A\n", - "n2=1120#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ra*ia\n", - "x=n2*eb1/n1\n", - "ia2=solve((v-ra*ia2)-x,ia2)\n", - "ia=ia2[0]+(v/rf)\n", - "input_m=v*ia\n", - "\n", - "#result\n", - "print \"line current=\",round(ia,1),\"A\"\n", - "print \"power input=\",round(input_m,1),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 35.0 A\n", - "power input= 8050.0 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.24, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=100.0#kW\n", - "n1=300#rpm\n", - "v=220.0#V\n", - "load=10.0#kW\n", - "ra=0.025#ohm\n", - "rf=60.0#ohm\n", - "vd=1.0#V\n", - "\n", - "#calculation\n", - "i=power*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra+2*vd\n", - "i=load*1000/v\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n1/eb\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 278.796797778 rpm\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.25, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by whih armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia2=ia-ish\n", - "eb0=v-ia2*ra\n", - "n0=n*eb0/v\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*n0/(eb0*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed of machine=\",math.floor(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of machine= 960.0 rpm\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.26, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ooutput=14.92#kW\n", - "n=1000#rpm\n", - "i=75#A\n", - "ra=0.25#ohm\n", - "ratio=0.20\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb_inst=eb1*(1-ratio)\n", - "ia_inst=(v-eb_inst)/ra\n", - "t_inst=9.55*eb_inst*ia_inst/n\n", - "ia2=i/(1-ratio)\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 93.75 A\n", - "speed= 1224.66216216 rpm\n" - ] - } - ], - "prompt_number": 191 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.27, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "i=4.0#A\n", - "n=700.0#rpm\n", - "rf=100.0#A\n", - "v2=6.0#V\n", - "i2=10.0#A\n", - "input_m=8.0#kW\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "il=input_m*1000/v\n", - "ia=il-ish\n", - "ra=v2/i2\n", - "eb0=v-ish*ra\n", - "eb=v-ia*ra\n", - "n=eb*n/eb0\n", - "ta=9.55*eb*ia/n\n", - "inpt=v*i\n", - "cu_loss=ish**2*ra\n", - "constant_loss=inpt-cu_loss\n", - "cu_loss_arm=ia**2*ra\n", - "total_loss=constant_loss+cu_loss_arm\n", - "output=input_m*1000-total_loss\n", - "efficiency=output/(input_m*1000)\n", - "print \n", - "#result\n", - "print \"speed on load=\",n,\"rpm\"\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "speed on load= 623.943661972 rpm\n", - "torque= 103.0636 N-m\n", - "efficiency= 79.2 %\n" - ] - } - ], - "prompt_number": 197 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.28, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "v=220#V\n", - "load=11#kW\n", - "inl=5#A\n", - "n_nl=1150#rpm\n", - "ra=0.5#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "input_nl=v*inl\n", - "ish=v/rsh\n", - "ia0=inl-ish\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "i=load*1000/v\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "total_loss=cu_loss_a+constant_loss\n", - "output=load*1000-total_loss\n", - "efficiency=output*100/(load*1000)\n", - "eb_nl=v-(ia0*ra)\n", - "eb=v-ia*ra\n", - "n=n_nl*eb/eb_nl\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"the speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque developed= 87.096 N-m\n", - "efficiency= 79.5361818182 %\n", - "the speed= 1031.57894737 rpm\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.29, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=250.0#V\n", - "ra=0.1#ohm\n", - "vb=3#V\n", - "rf=0.05#ohm\n", - "ia=80.0#A\n", - "n=600.0#rpm\n", - "i2=100.0#A\n", - "\n", - "#calculation\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-i2*(ra+rf)\n", - "n2=eb2*ia*n/(eb1*i2)\n", - "\n", - "#result\n", - "print \"speed when current is 100 A=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when current is 100 A= 473.949579832 rpm\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.30, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "n=800.0#rpm\n", - "i=100.0#A\n", - "ra=0.1\n", - "ratio=1.0/2.0\n", - "#calculation\n", - "ia1=i*math.sqrt(ratio)\n", - "eb1=v-i*ra\n", - "eb2=v-ia1*ra\n", - "n2=eb2*i*n/(eb1*ia1)\n", - "#result\n", - "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when motor will run when developing half the torque= 1147.0 rpm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.31, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "n=600#rpm\n", - "ia=25#A\n", - "v=450#V\n", - "z=500\n", - "phi=1.7*0.01*math.pow(ia,0.5)\n", - "\n", - "#calculation\n", - "eb=n*phi*z*p/(60*a)\n", - "iara=v-eb\n", - "ra=iara/ia\n", - "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", - "eb2=v/2-i*ra\n", - "phi2=1.7*0.01*math.pow(i,0.5)\n", - "n2=eb2*phi*n/(eb*phi2)\n", - "\n", - "#result\n", - "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor will run= 372.0 rpm\n" - ] - } - ], - "prompt_number": 224 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.32, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "v=460.0#V\n", - "ra=0.5#ohm\n", - "\n", - "def f(ia,t):\n", - " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", - " return(n)\n", - "\n", - "n1=f(20.0,128.8)\n", - "n2=f(30.0,230.5)\n", - "n3=f(40.0,349.8)\n", - "n4=f(50.0,469.2)\n", - "T=[128.8,230.5,349.8,469.2]\n", - "N=[n1,n2,n3,n4]\n", - "a=plot(T,N)\n", - "xlabel(\"Torque(NM.m)\") \n", - "ylabel(\"Speed(rpm)\") \n", - "plt.xlim((0,500))\n", - "plt.ylim((0,800))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.33, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "output=5.968#kW\n", - "n=700#rpm\n", - "v1=500#V\n", - "n2=600#rpm\n", - "ra=3.5#ohm\n", - "loss=450#W\n", - "\n", - "#calculation\n", - "\n", - "def fp(i,v):\n", - " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", - " return(p)\n", - "\n", - "def fm(i,v):\n", - " m=((v1-i*ra)*i-loss)/1000\n", - " return(m)\n", - "\n", - "p1=fp(7.0,347.0)\n", - "p2=fp(10.5,393.0)\n", - "p3=fp(14.0,434.0)\n", - "p4=fp(27.5,468.0)\n", - "\n", - "m1=fm(7.0,347.8)\n", - "m2=fm(10.5,393.0)\n", - "m3=fm(14.0,434.0)\n", - "m4=fm(27.5,468.0)\n", - "\n", - "#plot\n", - "I=[7,10.5,14,27.5]\n", - "P=[p1,p2,p3,p4]\n", - "M=[m1,m2,m3,m4]\n", - "a=plot(I,P)\n", - "a=plot(I,M)\n", - "xlabel(\"Current\") \n", - "ylabel(\"Power(kW)\") \n", - "plt.xlim((0,30))\n", - "plt.ylim((0,12))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.34, Page Number:1022" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "i=3#A\n", - "ia=3.5#A\n", - "ib=4.5#A\n", - "\n", - "#calculation\n", - "loss=v*i\n", - "#B unexcited\n", - "loss1=v*(ia-i)\n", - "#B excited\n", - "loss2=v*(ib-i)\n", - "loss=loss2-loss1\n", - "\n", - "#result\n", - "print \"iron losses of B=\",loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "iron losses of B= 500.0 W\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.35, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.2#ohm\n", - "rf=110.0#ohm\n", - "ia=5.0#A\n", - "n=1500#rpm\n", - "i2=52.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i2-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=round(eb2*n/eb1,0)\n", - "input_nl=v*ia\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "cu_loss_l=ia2**2*ra\n", - "total_loss=constant_loss+cu_loss_l\n", - "input_l=v*i2\n", - "output=input_l-total_loss\n", - "tsh=9.55*output/n2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.36, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=5#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "ratio=0.03#percentage by which armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 994.0 rpm\n" - ] - } - ], - "prompt_number": 241 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.37, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ia=5#A\n", - "ra=0.22#A\n", - "rf=250#ohm\n", - "i=100#A\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia0=ia-ish\n", - "eb0=v-ia0*ra\n", - "cu_loss=ia0**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "cu_loss=ia**2*ra\n", - "total_loss=cu_loss+constant_loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "efficiency=output*100/input_m\n", - "per=(eb-eb0)*100/eb0\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"\n", - "print \"percentage change in speed=\",round(per,2),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 90.8 %\n", - "percentage change in speed= -4.19 %\n" - ] - } - ], - "prompt_number": 244 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.38, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "i=25#A\n", - "i2=50#A\n", - "ratio=0.03#percentage by which the armature reaction weakens field\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "vd=1\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ebh=v-ia1*ra-2*vd\n", - "ia2=i2-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n/(ebh*(1-ratio))\n", - "ta1=9.55*eb1*ia1/n\n", - "ta2=9.55*eb2*ia2/n2\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"torque in first case=\",ta1,\"N-m\"\n", - "print \"torque in second case=\",ta2,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1010.0 rpm\n", - "torque in first case= 57.11664 N-m\n", - "torque in second case= 110.3912768 N-m\n" - ] - } - ], - "prompt_number": 247 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.39, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "n1=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by which the armature reaction weakens field\n", - "eb1=250.0#V\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb2=v-(i-ish)*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "cu_loss=(ia-ish)**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "cu_loss_a=(i-ish)**2*ra\n", - "total_loss=constant_loss+cu_loss_a\n", - "inpt=v*i\n", - "output=inpt-total_loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 960.0 rpm\n", - "efficiency= 82.44 %\n" - ] - } - ], - "prompt_number": 254 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.40, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=250#V\n", - "z=120*8\n", - "a=4\n", - "phi=20*0.001#Wb\n", - "i=25#A\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "loss=810#W\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_shunt=v*ish\n", - "total_loss=loss+cu_loss+cu_loss_shunt\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"gross torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque= 70.288 N-m\n", - "useful torque= 60.2946209124 N-m\n", - "efficiency= 78.1936 %\n" - ] - } - ], - "prompt_number": 256 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.41, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "n=1150#rpm\n", - "p=4\n", - "a=2\n", - "z=620\n", - "ra=0.2#ohm\n", - "i=74.8#A\n", - "i2=3#A\n", - "v=230#V\n", - "#calculation\n", - "ia=i-i2\n", - "eb=v-ia*ra\n", - "phi=eb*a*60/(p*z*n)\n", - "ta=9.55*eb*ia/n\n", - "power=eb*ia\n", - "loss_rot=power-output*1000\n", - "input_m=v*i\n", - "total_loss=input_m-output*1000\n", - "per=total_loss*100/input_m\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi*1000,\"mWb\"\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"rotational losses=\",loss_rot,\"W\"\n", - "print \"total losses expressed as a percentage of power=\",per,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 9.07321178121 mWb\n", - "torque developed= 128.575818783 N-m\n", - "rotational losses= 562.952 W\n", - "total losses expressed as a percentage of power= 13.2759823297 %\n" - ] - } - ], - "prompt_number": 263 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.42, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=7.46#kW\n", - "v=250#V\n", - "i=5#A\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "\n", - "#calculation\n", - "input_m=v*i\n", - "ish=v/rf\n", - "ia=i-ish\n", - "cu_loss=v*ish\n", - "cu_loss_a=ra*ia**2\n", - "loss=input_m-cu_loss\n", - "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", - "i2=ia1[0]+ish\n", - "input_m1=v*i2\n", - "efficiency=output*100000/input_m1\n", - "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "output_a=input_a-(cu_loss+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 79.5621535016683 %\n", - "output power at which efficiency is maximum= 10.2179357944 kW\n" - ] - } - ], - "prompt_number": 271 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.43, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n2_by_n1=1.0/2.0\n", - "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", - "v2_by_v1=n2_by_n1*phi1_by_phi2\n", - "reduction_v=(1-v2_by_v1)*100\n", - "reduction_i=(1-ia2_by_ia1)*100\n", - "\n", - "#result\n", - "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", - "print \"percentage fall in the motor current=\",reduction_i,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in the motor terminal voltage= 75.0 %\n", - "percentage fall in the motor current= 50.0 %\n" - ] - } - ], - "prompt_number": 272 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.44, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=500#V\n", - "z=1200\n", - "phi=20*0.001#Wb\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "i=20#A\n", - "loss=900#W\n", - "a=2\n", - "#calculation\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_f=v*ish\n", - "total_loss=cu_loss+cu_loss_f+loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"useful torque=\",ta,\"N-m\"\n", - "print \"output=\",output/1000,\"Kw\"\n", - "print \"efficiency==\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "useful torque= 206.28 N-m\n", - "output= 7.938 Kw\n", - "efficiency== 79.38 %\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.45, Page Number:1027" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=37.3*1000#W\n", - "v=460#V\n", - "i=4#A\n", - "n=660#rpm\n", - "ra=0.3#ohm\n", - "rf=270#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "cu_loss=v*ish\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "input_a=loss=v*ia\n", - "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", - "i=ia1[0]+ish\n", - "eb1=v-(ia*ra)\n", - "eb2=v-(ia1[0]*ra)\n", - "n2=n*eb2/eb1\n", - "ia=math.sqrt((cu_loss+input_a)/ra)\n", - "\n", - "#result\n", - "print \"the current input=\",i,\"A\"\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"armature current at which efficiency is maximum=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the current input= 90.2860908863713 A\n", - "speed= 623.0 rpm\n", - "armature current at which efficiency is maximum= 78.3156008298 A\n" - ] - } - ], - "prompt_number": 280 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb deleted file mode 100644 index f3eda54f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb +++ /dev/null @@ -1,2343 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 29: D.C. Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.1, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "r=0.5#ohm\n", - "i=20#A\n", - "\n", - "#calculation\n", - "#as generator \n", - "eg=v+i*r\n", - "#as motor\n", - "eb=v-i*r\n", - "\n", - "#result\n", - "print \"as generator:eg=\",eg,\"V\"\n", - "print \"as motor:eb=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "as generator:eg= 230.0 V\n", - "as motor:eb= 210.0 V\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.2, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia=Symbol('ia')\n", - "r=0.1#ohm\n", - "brush_drop=2#V\n", - "n=1000#rpm\n", - "i=100#A\n", - "v=250#V\n", - "n2=700#rpm\n", - "\n", - "#calculations\n", - "rl=v/i\n", - "eg1=v+i*r+brush_drop\n", - "eg2=eg1*n2/n\n", - "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", - "\n", - "#result\n", - "print \"current delivered to the load=\",ia[0],\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current delivered to the load= 69.7692307692308 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.3, Page Number:999" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.8#ohm\n", - "rf=200#ohm\n", - "output=7.46#kW\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=output*1000/efficiency\n", - "im=output*1000/(efficiency*v)\n", - "ish=v/rf\n", - "ia=im-ish\n", - "eb=v-ia*ra\n", - "\n", - "#results\n", - "print \"back emf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "back emf= 425.642780749 V\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.4, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25#kW\n", - "v=250#V\n", - "ra=0.06#ohm\n", - "rf=100#ohm\n", - "\n", - "#calculations\n", - "#as generator\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"\n", - "\n", - "#as motor\n", - "i=load*1000/v\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "power=eb*ia/1000\n", - "\n", - "print \"As generator: power=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "As generator: power= 26.12424 kW\n", - "As generator: power= 23.92376 kW\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.5, Page Number:1000" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "z=32\n", - "v=200.0#V\n", - "i=12.0#A\n", - "ra=2.0#ohm\n", - "rf=200.0#ohm\n", - "n=1000.0#rpm\n", - "i2=5.0#A\n", - "#calculations\n", - "ia=i+v/rf\n", - "eg=v+ia*ra\n", - "phi=eg*a*60/(z*n*p)\n", - "#as motor\n", - "ia=i2-v/rf\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi,\"wb\"\n", - "print \"speed of the machine=\",math.ceil(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 0.42375 wb\n", - "speed of the machine= 850.0 rpm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.6, Page Number:1002" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=110#A\n", - "v=480#V\n", - "ra=0.2#ohm\n", - "z=864\n", - "p=a=6\n", - "phi=0.05#Wb\n", - "\n", - "#calculations\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 636.0 rpm\n", - "the gross torque= 755.568 N-m\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.7, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "z=782\n", - "ra=rf=0.5#ohm\n", - "ia=40#A\n", - "phi=25*0.001#Wb\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=60*eb/(phi*z)\n", - "ta=0.159*phi*z*ia*p/a\n", - "\n", - "print \"the speed=\",math.floor(n),\"rpm\"\n", - "print \"the gross torque=\",ta,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the speed= 705.0 rpm\n", - "the gross torque= 248.676 N-m\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.8, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb=250.0#V\n", - "n=1500.0#rpm\n", - "ia=50.0#A\n", - "\n", - "#calculations\n", - "pm=eb*ia\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"machanical power=\",pm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 79.5833333333 N-m\n", - "machanical power= 12500.0 W\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.9, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "z=800\n", - "load=8.2#kW\n", - "ia=45#A\n", - "phi=25*0.001#Wb\n", - "ra=0.6#ohm\n", - "a=p/2\n", - "\n", - "#calculation\n", - "ta=0.159*phi*z*ia*p/a\n", - "eb=v-ia*ra\n", - "n=eb*a/(phi*z*p)\n", - "tsh=load*1000/(2*3.14*n)\n", - "\n", - "#result\n", - "print \"developed torque=\",ta,\"N-m\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 286.2 N-m\n", - "shaft torque= 270.618131415 N-m\n" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.10, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "n=500.0#rpm\n", - "i=50.0#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculation\n", - "ia2=2*i\n", - "fb1=v-(i*ra)\n", - "eb2=v-(ia2*ra)\n", - "n2=eb2*n/fb1\n", - "#result\n", - "print \"speed when torque is doubled=\",n2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when torque is doubled= 476.19047619 N-m\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.11, Page Number:1003" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=500#V\n", - "load=37.3#kW\n", - "n=1000#rpm\n", - "efficiency=0.90\n", - "ra=0.24#ohm\n", - "vd=2#v\n", - "i=1.8#A\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "il=input_m/v\n", - "tsh=9.55*load*1000/n\n", - "il=ratio*il\n", - "ia=il-i\n", - "r=solve(ia*(r+ra)+vd-v,r)\n", - "\n", - "#result\n", - "print \"full-load line current=\",il,\"A\"\n", - "print \"full-load shaft torque\",tsh,\"N-m\"\n", - "print \"total resistance=\",r[0],\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load line current= 124.333333333 A\n", - "full-load shaft torque 356.215 N-m\n", - "total resistance= 3.82420021762787 ohm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.12, Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=4\n", - "v=220#V\n", - "z=540\n", - "i=32#A\n", - "output=5.595#kW\n", - "ra=0.09#ohm\n", - "i_f=1#A\n", - "phi=30*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=i-i_f\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(phi*z*p)\n", - "tsh=9.55*output/n\n", - "\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "print \"torque developed=\",tsh*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 804.481481481 rpm\n", - "torque developed= 66.4182473183 N-m\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(a), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "load=20.0#kW\n", - "i=5.0#A\n", - "ra=0.04#ohm\n", - "phi=0.04#Wb\n", - "z=160\n", - "il=95.0#A\n", - "inl=9.0#A\n", - "p=4\n", - "a=2\n", - "#calculation\n", - "#no load\n", - "ea0=v-(inl-i)*ra\n", - "n0=ea0*a*60/(phi*z*p)\n", - "#load\n", - "ea=v-(il-i)*ra\n", - "n=ea*n0/ea0\n", - "\n", - "#result\n", - "print \"no-load speed=\",n0,\"rpm\"\n", - "print \"load speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load speed= 1030.5 rpm\n", - "load speed= 1014.375 rpm\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(b), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=a=6\n", - "i=400#A\n", - "n=350#rpm\n", - "phi=80*0.001#Wb\n", - "z=600*2\n", - "loss=0.03#percentage\n", - "\n", - "#calculation\n", - "e=phi*z*n*p/(60*a)\n", - "pa=e*i\n", - "t=pa/(2*3.14*n/60)\n", - "t_net=0.97*t\n", - "bhp=t_net*36.67*0.001/0.746\n", - "#result\n", - "print \"brake-horse-power\",bhp,\"HP\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "brake-horse-power 291.551578696 HP\n" - ] - } - ], - "prompt_number": 66 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(c), Page Number:1004" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=774\n", - "phi=24*0.001#Wb\n", - "ia=50#A\n", - "a=2\n", - "#calculations\n", - "t=0.159*phi*z*ia*p/a\n", - "\n", - "#result\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 295.3584 N-m\n" - ] - } - ], - "prompt_number": 67 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(d), Page Number:1005" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "i=5.0#A\n", - "ra=0.15#ohm\n", - "rf=200.0#ohm\n", - "il=40.0#A\n", - "\n", - "#calculations\n", - "ih=v/rf\n", - "pi=v*i\n", - "cu_loss_f=cu_loss=v*ih\n", - "output=v*il\n", - "cu_loss_a=(il+ih)**2*ra\n", - "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 87.8312542029 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.13(e), Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delcration\n", - "ia=40#A\n", - "v=220#V\n", - "n=800#rpm\n", - "ra=0.2#ohm\n", - "rf=0.1#ohm\n", - "loss=0.5#kW\n", - "\n", - "#calculations\n", - "eb=v-ia*(ra+rf)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*(ra+rf)\n", - "total_loss=cu_loss+loss*1000\n", - "input_m=v*ia\n", - "output=input_m-total_loss\n", - "\n", - "#result\n", - "print \"output of the motor=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output of the motor= 7.82 kW\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.14, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=400.0#N\n", - "d=10.0#cm\n", - "n=840#rpm\n", - "v=220.0#V\n", - "n1=1800#rpm\n", - "efficiency=.80\n", - "d2=24.0#cm\n", - "\n", - "#calculations\n", - "tsh=f*d*0.01/2\n", - "output=tsh*2*3.14*n/60\n", - "input_m=output/efficiency\n", - "i=input_m/v\n", - "d1=n*d2/n1\n", - "\n", - "#calculation\n", - "print \"current taken by the motor=\",round(i),\"A\"\n", - "print \"size of motor pulley=\",d1,\"cm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the motor= 10.0 A\n", - "size of motor pulley= 11.2 cm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.15, Page Number:1006" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "p=4\n", - "z=280\n", - "ia=45.0#A\n", - "phi=18*0.001#Wb\n", - "ra=0.5+0.3#ohm\n", - "loss=800.0#W\n", - "d=0.41\n", - "a=4\n", - "#calculation\n", - "eb=v-ia*ra\n", - "n=eb*60*a/(phi*z*p*4)\n", - "inpt=v*ia\n", - "cu_loss=ia**2*ra\n", - "total_loss=loss+cu_loss\n", - "output=inpt-total_loss\n", - "tsh=9.55*output/n\n", - "f=tsh*2/d\n", - "\n", - "#result\n", - "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pull at the rim of the pulley= 628.016180845 N-m\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.16, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=240#V\n", - "output=11.19#kW\n", - "n=1000#rpm\n", - "ia=50#A\n", - "i=1#A\n", - "z=540\n", - "ra=0.1#ohm\n", - "vd=1#V\n", - "a=2\n", - "#calculation\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "tsh=9.55*output*1000/n\n", - "phi=eb*60*a*1000/(z*n*p)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "brush_loss=ia*2\n", - "power=input_a-(cu_loss+brush_loss)\n", - "rotational_loss=power-output*1000\n", - "input_m=v*(ia+i)\n", - "efficiency=output*1000/input_m\n", - "\n", - "#result\n", - "print \"total torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"flux/pole=\",phi,\"mWb\"\n", - "print \"rotational losses=\",rotational_loss,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "total torque= 112.2125 N-m\n", - "useful torque= 106.8645 N-m\n", - "flux/pole= 13.0555555556 mWb\n", - "rotational losses= 460.0 W\n", - "efficiency= 91.4215686275 %\n" - ] - } - ], - "prompt_number": 106 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.17, Page Number:1007" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#v\n", - "n=500.0#rpm\n", - "i=40.0#A\n", - "i2=30.0#A\n", - "ra=0.8#ohm\n", - "\n", - "#calculation\n", - "t2_by_t1=i2**2/i**2\n", - "change=(1-t2_by_t1)*100#percentage\n", - "eb1=v-i*ra\n", - "eb2=v-i2*ra\n", - "n2=eb2*i*n/(eb1*i2)\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"percentage change in torque=\",change,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 679.127725857 rpm\n", - "percentage change in torque= 43.75 %\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.18, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=460.0#V\n", - "output=55.95#kW\n", - "n=750#rpm\n", - "I=252.8#kg-m2\n", - "ia1=1.4\n", - "ia2=1.8\n", - "\n", - "#calculations\n", - "ia=(ia1+ia2)/2\n", - "n=n/60.0\n", - "tsh=output*1000/(2*3.14*n)\n", - "torque_avg=(ia-1)*tsh\n", - "dt=(I*2*3.14*n)/torque_avg\n", - "\n", - "#result\n", - "print \"approximate time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "approximate time to attain full speed= 46.4050282991 s\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.19, Page Number:1008" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "v=400.0#V\n", - "n=400.0#rpm\n", - "i=40.0#A\n", - "I=7.5#kg-m2\n", - "ratio=1.2\n", - "\n", - "#calculations\n", - "n=n/60\n", - "t=output*1000/(2*3.14*n)\n", - "torque=(ratio-1)*t\n", - "dt=(I*2*3.14*n)/torque\n", - "\n", - "print \"time to attain full speed=\",dt,\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "time to attain full speed= 4.4055406613 s\n" - ] - } - ], - "prompt_number": 138 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.20, Page Number:1009" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "z=944\n", - "phi=34.6*0.001#Wb\n", - "ta=209.0#N-m\n", - "v=500.0#V\n", - "ra=3.0#ohm\n", - "a=2\n", - "#calculation\n", - "ia=ta/(0.159*phi*z*(p/a))\n", - "ea=v-ia*ra\n", - "n=ea/(phi*z*(p/a))\n", - "\n", - "#result\n", - "print \"line current=\",ia,\"A\"\n", - "print \"speed=\",n*60,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 20.1219966813 A\n", - "speed= 403.798260345 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.21, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#v\n", - "n=1000#rpm\n", - "ia=8#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i2=50#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb0=v-(ia-ish)*ra\n", - "eb=v-(i2-ish)*ra\n", - "n=eb*n/eb0\n", - "\n", - "#result\n", - "print \"speed when loaded=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when loaded= 966.21078037 rpm\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.22, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=800#rpm\n", - "ia=100#A\n", - "v=230#V\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "ia2=25#A\n", - "ratio=0.45\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed at which motor runs=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor runs= 1940.37940379 rpm\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.23, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "#variable declaration\n", - "v=230.0#V\n", - "ra=0.5#ohm\n", - "rf=115.0#ohm\n", - "n1=1200#rpm\n", - "ia=2.5#A\n", - "n2=1120#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ra*ia\n", - "x=n2*eb1/n1\n", - "ia2=solve((v-ra*ia2)-x,ia2)\n", - "ia=ia2[0]+(v/rf)\n", - "input_m=v*ia\n", - "\n", - "#result\n", - "print \"line current=\",round(ia,1),\"A\"\n", - "print \"power input=\",round(input_m,1),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= 35.0 A\n", - "power input= 8050.0 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.24, Page Number:1010" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=100.0#kW\n", - "n1=300#rpm\n", - "v=220.0#V\n", - "load=10.0#kW\n", - "ra=0.025#ohm\n", - "rf=60.0#ohm\n", - "vd=1.0#V\n", - "\n", - "#calculation\n", - "i=power*1000/v\n", - "ish=v/rf\n", - "ia=i+ish\n", - "eb=v+ia*ra+2*vd\n", - "i=load*1000/v\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n1/eb\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 278.796797778 rpm\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.25, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by whih armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia2=ia-ish\n", - "eb0=v-ia2*ra\n", - "n0=n*eb0/v\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*n0/(eb0*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed of machine=\",math.floor(n),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of machine= 960.0 rpm\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.26, Page Number:1011" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ooutput=14.92#kW\n", - "n=1000#rpm\n", - "i=75#A\n", - "ra=0.25#ohm\n", - "ratio=0.20\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb_inst=eb1*(1-ratio)\n", - "ia_inst=(v-eb_inst)/ra\n", - "t_inst=9.55*eb_inst*ia_inst/n\n", - "ia2=i/(1-ratio)\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 93.75 A\n", - "speed= 1224.66216216 rpm\n" - ] - } - ], - "prompt_number": 191 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.27, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "i=4.0#A\n", - "n=700.0#rpm\n", - "rf=100.0#A\n", - "v2=6.0#V\n", - "i2=10.0#A\n", - "input_m=8.0#kW\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "il=input_m*1000/v\n", - "ia=il-ish\n", - "ra=v2/i2\n", - "eb0=v-ish*ra\n", - "eb=v-ia*ra\n", - "n=eb*n/eb0\n", - "ta=9.55*eb*ia/n\n", - "inpt=v*i\n", - "cu_loss=ish**2*ra\n", - "constant_loss=inpt-cu_loss\n", - "cu_loss_arm=ia**2*ra\n", - "total_loss=constant_loss+cu_loss_arm\n", - "output=input_m*1000-total_loss\n", - "efficiency=output/(input_m*1000)\n", - "print \n", - "#result\n", - "print \"speed on load=\",n,\"rpm\"\n", - "print \"torque=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "speed on load= 623.943661972 rpm\n", - "torque= 103.0636 N-m\n", - "efficiency= 79.2 %\n" - ] - } - ], - "prompt_number": 197 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.28, Page Number:1012" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "v=220#V\n", - "load=11#kW\n", - "inl=5#A\n", - "n_nl=1150#rpm\n", - "ra=0.5#ohm\n", - "rsh=110#ohm\n", - "\n", - "#calculations\n", - "input_nl=v*inl\n", - "ish=v/rsh\n", - "ia0=inl-ish\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "i=load*1000/v\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "total_loss=cu_loss_a+constant_loss\n", - "output=load*1000-total_loss\n", - "efficiency=output*100/(load*1000)\n", - "eb_nl=v-(ia0*ra)\n", - "eb=v-ia*ra\n", - "n=n_nl*eb/eb_nl\n", - "ta=9.55*eb*ia/n\n", - "\n", - "#result\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"the speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque developed= 87.096 N-m\n", - "efficiency= 79.5361818182 %\n", - "the speed= 1031.57894737 rpm\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.29, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=250.0#V\n", - "ra=0.1#ohm\n", - "vb=3#V\n", - "rf=0.05#ohm\n", - "ia=80.0#A\n", - "n=600.0#rpm\n", - "i2=100.0#A\n", - "\n", - "#calculation\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-i2*(ra+rf)\n", - "n2=eb2*ia*n/(eb1*i2)\n", - "\n", - "#result\n", - "print \"speed when current is 100 A=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when current is 100 A= 473.949579832 rpm\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.30, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "n=800.0#rpm\n", - "i=100.0#A\n", - "ra=0.1\n", - "ratio=1.0/2.0\n", - "#calculation\n", - "ia1=i*math.sqrt(ratio)\n", - "eb1=v-i*ra\n", - "eb2=v-ia1*ra\n", - "n2=eb2*i*n/(eb1*ia1)\n", - "#result\n", - "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when motor will run when developing half the torque= 1147.0 rpm\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.31, Page Number:1013" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=a=4\n", - "n=600#rpm\n", - "ia=25#A\n", - "v=450#V\n", - "z=500\n", - "phi=1.7*0.01*math.pow(ia,0.5)\n", - "\n", - "#calculation\n", - "eb=n*phi*z*p/(60*a)\n", - "iara=v-eb\n", - "ra=iara/ia\n", - "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", - "eb2=v/2-i*ra\n", - "phi2=1.7*0.01*math.pow(i,0.5)\n", - "n2=eb2*phi*n/(eb*phi2)\n", - "\n", - "#result\n", - "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which motor will run= 372.0 rpm\n" - ] - } - ], - "prompt_number": 224 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.32, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "v=460.0#V\n", - "ra=0.5#ohm\n", - "\n", - "def f(ia,t):\n", - " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", - " return(n)\n", - "\n", - "n1=f(20.0,128.8)\n", - "n2=f(30.0,230.5)\n", - "n3=f(40.0,349.8)\n", - "n4=f(50.0,469.2)\n", - "T=[128.8,230.5,349.8,469.2]\n", - "N=[n1,n2,n3,n4]\n", - "a=plot(T,N)\n", - "xlabel(\"Torque(NM.m)\") \n", - "ylabel(\"Speed(rpm)\") \n", - "plt.xlim((0,500))\n", - "plt.ylim((0,800))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.33, Page Number:1017" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "#variable declaration\n", - "output=5.968#kW\n", - "n=700#rpm\n", - "v1=500#V\n", - "n2=600#rpm\n", - "ra=3.5#ohm\n", - "loss=450#W\n", - "\n", - "#calculation\n", - "\n", - "def fp(i,v):\n", - " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", - " return(p)\n", - "\n", - "def fm(i,v):\n", - " m=((v1-i*ra)*i-loss)/1000\n", - " return(m)\n", - "\n", - "p1=fp(7.0,347.0)\n", - "p2=fp(10.5,393.0)\n", - "p3=fp(14.0,434.0)\n", - "p4=fp(27.5,468.0)\n", - "\n", - "m1=fm(7.0,347.8)\n", - "m2=fm(10.5,393.0)\n", - "m3=fm(14.0,434.0)\n", - "m4=fm(27.5,468.0)\n", - "\n", - "#plot\n", - "I=[7,10.5,14,27.5]\n", - "P=[p1,p2,p3,p4]\n", - "M=[m1,m2,m3,m4]\n", - "a=plot(I,P)\n", - "a=plot(I,M)\n", - "xlabel(\"Current\") \n", - "ylabel(\"Power(kW)\") \n", - "plt.xlim((0,30))\n", - "plt.ylim((0,12))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.34, Page Number:1022" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "i=3#A\n", - "ia=3.5#A\n", - "ib=4.5#A\n", - "\n", - "#calculation\n", - "loss=v*i\n", - "#B unexcited\n", - "loss1=v*(ia-i)\n", - "#B excited\n", - "loss2=v*(ib-i)\n", - "loss=loss2-loss1\n", - "\n", - "#result\n", - "print \"iron losses of B=\",loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "iron losses of B= 500.0 W\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.35, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.2#ohm\n", - "rf=110.0#ohm\n", - "ia=5.0#A\n", - "n=1500#rpm\n", - "i2=52.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i2-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=round(eb2*n/eb1,0)\n", - "input_nl=v*ia\n", - "cu_loss_nl=ia1**2*ra\n", - "constant_loss=input_nl-cu_loss_nl\n", - "cu_loss_l=ia2**2*ra\n", - "total_loss=constant_loss+cu_loss_l\n", - "input_l=v*i2\n", - "output=input_l-total_loss\n", - "tsh=9.55*output/n2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"shaft torque=\",tsh,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.36, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=5#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "ratio=0.03#percentage by which armature reaction weakens field\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "ia2=i-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 994.0 rpm\n" - ] - } - ], - "prompt_number": 241 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.37, Page Number:1023" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ia=5#A\n", - "ra=0.22#A\n", - "rf=250#ohm\n", - "i=100#A\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia0=ia-ish\n", - "eb0=v-ia0*ra\n", - "cu_loss=ia0**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "cu_loss=ia**2*ra\n", - "total_loss=cu_loss+constant_loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "efficiency=output*100/input_m\n", - "per=(eb-eb0)*100/eb0\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"\n", - "print \"percentage change in speed=\",round(per,2),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 90.8 %\n", - "percentage change in speed= -4.19 %\n" - ] - } - ], - "prompt_number": 244 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.38, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "i=25#A\n", - "i2=50#A\n", - "ratio=0.03#percentage by which the armature reaction weakens field\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "vd=1\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ebh=v-ia1*ra-2*vd\n", - "ia2=i2-ish\n", - "eb2=v-ia2*ra-2*vd\n", - "n2=eb2*n/(ebh*(1-ratio))\n", - "ta1=9.55*eb1*ia1/n\n", - "ta2=9.55*eb2*ia2/n2\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"torque in first case=\",ta1,\"N-m\"\n", - "print \"torque in second case=\",ta2,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1010.0 rpm\n", - "torque in first case= 57.11664 N-m\n", - "torque in second case= 110.3912768 N-m\n" - ] - } - ], - "prompt_number": 247 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.39, Page Number:1024" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "n1=1000.0#rpm\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "ia=4.0#A\n", - "i=40.0#A\n", - "ratio=0.04#percentage by which the armature reaction weakens field\n", - "eb1=250.0#V\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "eb2=v-(i-ish)*ra\n", - "n2=eb2*n/(eb1*(1-ratio))\n", - "cu_loss=(ia-ish)**2*ra\n", - "input_m=v*ia\n", - "constant_loss=input_m-cu_loss\n", - "cu_loss_a=(i-ish)**2*ra\n", - "total_loss=constant_loss+cu_loss_a\n", - "inpt=v*i\n", - "output=inpt-total_loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 960.0 rpm\n", - "efficiency= 82.44 %\n" - ] - } - ], - "prompt_number": 254 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.40, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "v=250#V\n", - "z=120*8\n", - "a=4\n", - "phi=20*0.001#Wb\n", - "i=25#A\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "loss=810#W\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_shunt=v*ish\n", - "total_loss=loss+cu_loss+cu_loss_shunt\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"gross torque=\",ta,\"N-m\"\n", - "print \"useful torque=\",tsh,\"N-m\"\n", - "print \"efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque= 70.288 N-m\n", - "useful torque= 60.2946209124 N-m\n", - "efficiency= 78.1936 %\n" - ] - } - ], - "prompt_number": 256 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.41, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=14.92#kW\n", - "n=1150#rpm\n", - "p=4\n", - "a=2\n", - "z=620\n", - "ra=0.2#ohm\n", - "i=74.8#A\n", - "i2=3#A\n", - "v=230#V\n", - "#calculation\n", - "ia=i-i2\n", - "eb=v-ia*ra\n", - "phi=eb*a*60/(p*z*n)\n", - "ta=9.55*eb*ia/n\n", - "power=eb*ia\n", - "loss_rot=power-output*1000\n", - "input_m=v*i\n", - "total_loss=input_m-output*1000\n", - "per=total_loss*100/input_m\n", - "\n", - "#result\n", - "print \"flux per pole=\",phi*1000,\"mWb\"\n", - "print \"torque developed=\",ta,\"N-m\"\n", - "print \"rotational losses=\",loss_rot,\"W\"\n", - "print \"total losses expressed as a percentage of power=\",per,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "flux per pole= 9.07321178121 mWb\n", - "torque developed= 128.575818783 N-m\n", - "rotational losses= 562.952 W\n", - "total losses expressed as a percentage of power= 13.2759823297 %\n" - ] - } - ], - "prompt_number": 263 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.42, Page Number:1025" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=7.46#kW\n", - "v=250#V\n", - "i=5#A\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "\n", - "#calculation\n", - "input_m=v*i\n", - "ish=v/rf\n", - "ia=i-ish\n", - "cu_loss=v*ish\n", - "cu_loss_a=ra*ia**2\n", - "loss=input_m-cu_loss\n", - "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", - "i2=ia1[0]+ish\n", - "input_m1=v*i2\n", - "efficiency=output*100000/input_m1\n", - "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", - "input_a=v*ia\n", - "cu_loss=ia**2*ra\n", - "output_a=input_a-(cu_loss+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 79.5621535016683 %\n", - "output power at which efficiency is maximum= 10.2179357944 kW\n" - ] - } - ], - "prompt_number": 271 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.43, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n2_by_n1=1.0/2.0\n", - "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", - "v2_by_v1=n2_by_n1*phi1_by_phi2\n", - "reduction_v=(1-v2_by_v1)*100\n", - "reduction_i=(1-ia2_by_ia1)*100\n", - "\n", - "#result\n", - "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", - "print \"percentage fall in the motor current=\",reduction_i,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in the motor terminal voltage= 75.0 %\n", - "percentage fall in the motor current= 50.0 %\n" - ] - } - ], - "prompt_number": 272 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.44, Page Number:1026" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=500#V\n", - "z=1200\n", - "phi=20*0.001#Wb\n", - "ra=0.5#ohm\n", - "rf=250#ohm\n", - "i=20#A\n", - "loss=900#W\n", - "a=2\n", - "#calculation\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "n=eb*a*60/(p*z*phi)\n", - "ta=9.55*eb*ia/n\n", - "cu_loss=ia**2*ra\n", - "cu_loss_f=v*ish\n", - "total_loss=cu_loss+cu_loss_f+loss\n", - "input_m=v*i\n", - "output=input_m-total_loss\n", - "tsh=9.55*output/n\n", - "efficiency=output*100/input_m\n", - "\n", - "#result\n", - "print \"useful torque=\",ta,\"N-m\"\n", - "print \"output=\",output/1000,\"Kw\"\n", - "print \"efficiency==\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "useful torque= 206.28 N-m\n", - "output= 7.938 Kw\n", - "efficiency== 79.38 %\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 29.45, Page Number:1027" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia1=Symbol('ia1')\n", - "output=37.3*1000#W\n", - "v=460#V\n", - "i=4#A\n", - "n=660#rpm\n", - "ra=0.3#ohm\n", - "rf=270#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "cu_loss=v*ish\n", - "ia=i-ish\n", - "cu_loss_a=ia**2*ra\n", - "input_a=loss=v*ia\n", - "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", - "i=ia1[0]+ish\n", - "eb1=v-(ia*ra)\n", - "eb2=v-(ia1[0]*ra)\n", - "n2=n*eb2/eb1\n", - "ia=math.sqrt((cu_loss+input_a)/ra)\n", - "\n", - "#result\n", - "print \"the current input=\",i,\"A\"\n", - "print \"speed=\",round(n2,0),\"rpm\"\n", - "print \"armature current at which efficiency is maximum=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the current input= 90.2860908863713 A\n", - "speed= 623.0 rpm\n", - "armature current at which efficiency is maximum= 78.3156008298 A\n" - ] - } - ], - "prompt_number": 280 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30.ipynb deleted file mode 100644 index ce13ea95..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30.ipynb +++ /dev/null @@ -1,2629 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 30:Speed Control of D.C. Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.1, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "n=250#rpm\n", - "ia=200#A\n", - "ra=0.12#ohm\n", - "ratio=0.80\n", - "ia2=100#A\n", - "\n", - "#calculations\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 320.0 rpm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.2, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ra=0.25#ohm\n", - "ia=50#A\n", - "n=750#rpm\n", - "ratio=1-0.10\n", - "\n", - "#calculation\n", - "ia2=ia/ratio\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 828.0 rpm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=800#rpm\n", - "ia=50.0#A\n", - "n2=1000#rpm\n", - "ia2=80.0#A\n", - "ra=0.15#ohm\n", - "rf=250.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "ish1=v/rf\n", - "r1=(n2*eb1*v)/(n*eb2*ish1)\n", - "r=r1-rf\n", - "ish2=v/r1\n", - "torque_ratio=ish2*ia2/(ish1*ia)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"\n", - "print \"ratio of torque=\",torque_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 68.9506880734 ohm\n", - "ratio of torque= 1.25411235955\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "rf=250.0#ohm\n", - "ra=0.25#ohm\n", - "n=1500#rpm\n", - "ia=20.0#A\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ish2=v/(rf+r)\n", - "ia2=ia*1/ish2\n", - "eb2=v-ia2*ra\n", - "eb1=v-ia*ra\n", - "n2=eb2*n/(eb1*ish2)\n", - "\n", - "#result\n", - "print \"new speed=\",round(n2),\"rpm\"\n", - "print \"new armature current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 2939.0 rpm\n", - "new armature current= 40.0 A\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.5, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "rt=Symbol('rt')\n", - "v=250.0#V\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "n=600.0#rpm\n", - "ia=20.0#A\n", - "n2=800.0#rpm\n", - "\n", - "#calculation\n", - "ish1=v/rf\n", - "eb1=v-ia*ra\n", - "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", - "r=rt[0]-rf\n", - "\n", - "#result\n", - "print \"resistance to be inserted=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 88.3128987990058 ohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.6, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=1+0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", - "per=1-1/x[0]\n", - "\n", - "#result\n", - "print\"main flux has to be reduced by=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "main flux has to be reduced by= 37.2991677469778 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.7, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=10#kW\n", - "i=41#A\n", - "ra=0.2#ohm\n", - "rw=0.05#ohm\n", - "ri=0.1#ohm\n", - "rf=110#ohm\n", - "ratio=1-0.25\n", - "r=1#ohm\n", - "ratio1=1-0.50\n", - "n=2500\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ratio1*ia1/ratio\n", - "eb1=v-ia1*(ra+ri+rw)\n", - "eb2=v-ia2*(r+ra+ri+rw)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"motor speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 26.0 A\n", - "motor speed= 2987.0 rpm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.8, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=15#kW\n", - "n=850#rpm\n", - "ia=72.2#A\n", - "ra=0.25#ohm\n", - "rf=100#ohm\n", - "n2=1650#rpm\n", - "ia2=40#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "ratio=(n*eb2)/(n2*eb1)\n", - "per=1-ratio\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 46.5636857585 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.9, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=0.50+1\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", - "per=ia/ia2[0]\n", - "\n", - "#result\n", - "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mail flux should be reduced by= 62.7 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.10, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=20.0#A\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ratio=0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=ratio*(v-ia*ra)\n", - "r=(v-eb2)/ia-ra\n", - "\n", - "#result\n", - "print \"resistance required in the series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in the series= 5.25 ohm\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.11, Page Number:1036" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=8#A\n", - "i_f=1#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "eb0=v-(ia-i_f)*ra\n", - "kpsi=eb0/1000\n", - "ia=i-i_f\n", - "eb1=v-ia*ra\n", - "n1=eb1/kpsi\n", - "\n", - "#result\n", - "print \"speed=\",round(n1,1),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 966.2 rpm\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.12, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "ra=0.25#ohm\n", - "n=1000#rpm\n", - "ia=40#A\n", - "n2=800#rpm\n", - "i2=20#A\n", - "#calculation\n", - "eb=v-ia*ra\n", - "eb2=n2*eb/n\n", - "r=(v-eb2)/(ia)-ra\n", - "eb3=v-i2*(r+ra)\n", - "n3=eb3*n/eb\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"\n", - "print \"speed=\",round(n3),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 1.15 ohm\n", - "speed= 922.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.13, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.48#kW\n", - "v=220#V\n", - "n=990#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2#A\n", - "n2=450#rpm\n", - "\n", - "#calculation\n", - "input_p=load*1000/efficiency\n", - "losses=input_p-load*1000\n", - "i=input_p/v\n", - "ia=i-ish\n", - "loss=v*ish\n", - "cu_loss=ia**2*ra\n", - "loss_nl=losses-cu_loss-loss\n", - "eb1=v-20-(ia*ra)\n", - "eb2=n2*eb1/n\n", - "r=(eb1-eb2)/ia\n", - "total_loss=ia**2*(r+ra)+loss+loss_nl\n", - "output=input_p-total_loss\n", - "efficiency=output/(input_p)\n", - "\n", - "#result\n", - "print \"motor input=\",input_p/1000,\"kW\"\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor input= 8.5 kW\n", - "armature current= 36.6363636364 A\n", - "external resistance= 2.93403113016 ohm\n", - "efficiency= 41.6691237902 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.14, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb1=230.0#V\n", - "n=990.0#rpm\n", - "n2=500.0#rpm\n", - "ia=25.0#A\n", - "\n", - "#calculation\n", - "eb2=eb1*n2/n\n", - "r=(eb1-eb2)/ia\n", - "\n", - "#result\n", - "print \"resistance required in series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in series= 4.55353535354 ohm\n" - ] - } - ], - "prompt_number": 83 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.15, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=20.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k2=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "rf1=v/if1\n", - "rf2=v/if2\n", - "r=rf2-rf1\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 100.0 ohm\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.16, Page Number:1039" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=22.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k1=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "if2=n2*ia/n\n", - "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", - "if2=ia*if1/ia2[0]\n", - "r=v/if2\n", - "\n", - "#result\n", - "print \"new field resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new field resistance to be added= 306.828780053869 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.17, Page Number:1040" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "output=25#kW\n", - "efficiency=0.85\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "ratio=1.50\n", - "\n", - "#calculation\n", - "input_p=output*1000/efficiency\n", - "i=input_p/v\n", - "if1=v/rf\n", - "ia=i-if1\n", - "il=ratio*ia\n", - "r=v/il\n", - "r_ext=r-ra\n", - "\n", - "#result\n", - "print \"starting resistance=\",round(r_ext,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 1.341 ohm\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.18, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "n=1000.0#rpm\n", - "ia=17.5#A\n", - "n2=600.0#rpm\n", - "ra=0.4#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "rt=(v-(n2*eb1/n))/ia\n", - "r=rt-ra\n", - "#result\n", - "print \"resistance to be inserted=\",round(r,1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 4.4 ohm\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.19, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ra=1.2#ohm\n", - "rf=500#ohm\n", - "ia=4#A\n", - "n=1000#rpm\n", - "i=26#A\n", - "r=2.3#ohm\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra\n", - "n2=n*eb2/eb1\n", - "eb2=v-ia2*(r+ra)\n", - "n2_=n*eb2/eb1\n", - "n2__=n*eb2/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", - "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", - "speed when shunt field is reduced by 15%= 978.0 rpm\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.20, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ia1=ia2=20.0#A\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "n2=500.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia1*ra\n", - "rt=(v-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "ia3=ia2/2\n", - "n3=n*(v-ia3*rt)/eb1\n", - "#result\n", - "print \"speed=\",round(n3),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 771.0 rpm\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.21, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ra1=0.5#ohm\n", - "n=600.0#rpm\n", - "ia2=ia1=20#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "#torque is half the full-load torque\n", - "ia2=1.0/2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 550.0 rpm\n", - "speed at half full-load torque= 588.0 rpm\n" - ] - } - ], - "prompt_number": 137 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.22, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra1=0.5#ohm\n", - "n=500.0#rpm\n", - "ia2=ia1=30.0#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "\n", - "#torque is half the full-load torque\n", - "ia2=2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 427.0 rpm\n", - "speed at double full-load torque= 317.0 rpm\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.23, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3*1000#W\n", - "v=500.0#V\n", - "n=750.0#rpm\n", - "efficiency=0.90\n", - "t2=250.0#N-m\n", - "r=5.0#ohm\n", - "ra=0.5#ohm\n", - "\n", - "#calculation\n", - "t1=load/(2*3.14*(n/60))\n", - "ia1=load/(efficiency*v)\n", - "ia2=ia1*math.sqrt(t2/t1)\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*(r+ra)\n", - "n2=eb2*ia1*n/(eb1*ia2)\n", - "\n", - "#result\n", - "print \"speed at which machine will run=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which machine will run= 381.789716486 rpm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.24, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=7.46*1000#W\n", - "v=220.0#V\n", - "n=900.0#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2.0#A\n", - "n2=450.0#rpm\n", - "#calculation\n", - "i=output/(efficiency*v)\n", - "ia2=ia1=i-ish\n", - "eb1=v-ia2*ra\n", - "rt=(v-20-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "input_m=(v)*(ia2+ish)\n", - "total_loss=input_m-output\n", - "cu_loss=ia2**2*ra\n", - "cu_loss_f=v*ish\n", - "total_cu_loss=cu_loss+cu_loss_f\n", - "stray_loss=total_loss-total_cu_loss\n", - "stray_loss2=stray_loss*n2/n\n", - "cu_loss_a=ia1**2*rt\n", - "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", - "output2=input_m-total_loss2\n", - "efficiency=output2*100/input_m\n", - "\n", - "#result\n", - "print \"motor output=\",output2,\"W\"\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"overall efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 4460.66115702 W\n", - "armature current= 36.5330578512 A\n", - "external resistance= 2.42352222599 ohm\n", - "overall efficiency= 52.619059225 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.25, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "ia=15.0#A\n", - "n=800.0#rpm\n", - "ra=0.6#ohm\n", - "n2=400.0#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "r=((v-(n2*eb1/n))/ia)-ra\n", - "ia3=ia/2\n", - "eb3=v-ia3*(r+ra)\n", - "n3=eb3*n/eb1\n", - "\n", - "#result\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 615.584415584 rpm\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.26, Page Number:1045" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=400.0#V\n", - "inl=3.5#A\n", - "il=59.5#A\n", - "rf=267.0#ohm\n", - "ra=0.2#ohm\n", - "vd=2.0#V\n", - "ratio=0.02\n", - "speed_ratio=0.50\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=inl-ish\n", - "eb1=v-ia1*ra-vd\n", - "ia2=il-ish\n", - "eb2=v-ia2*ra-vd\n", - "n1_by_n2=eb1*(1-ratio)/eb2\n", - "per_change=(1-1/n1_by_n2)*100\n", - "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", - "#result\n", - "print \"change in speed=\",per_change,\"%\"\n", - "print \"resistance to be added=\",r[0],\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "change in speed= 0.83357557339 %\n", - "resistance to be added= 3.33092370774547 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaraion\n", - "v=200.0#V\n", - "i=50.0#A\n", - "n=1000.0#rpm\n", - "n2=800.0#rpm\n", - "ra=0.1#ohm\n", - "rf=100.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ia1*(n2/n)**2\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "rt=(v-(n2*eb1/n))/ia2\n", - "r=rt-ra\n", - "#result\n", - "print \"resustance that must be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resustance that must be added= 1.32708333333 ohm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "load=37.3#kW\n", - "efficiency=0.90\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=115#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "tsh=9.55*load*1000/n\n", - "i=load*1000/(v*efficiency)\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "i_permissible=i*ratio\n", - "ia_per=i_permissible-ish\n", - "ra_total=v/ia_per\n", - "r_required=ra_total-ra\n", - "torque=ratio*ta\n", - "#result\n", - "print \"net torque=\",ta,\"N-m\"\n", - "print \"starting resistance=\",r_required,\"ohm\"\n", - "print \"torque developed at starting=\",torque,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "net torque= 365.403326173 N-m\n", - "starting resistance= 0.913513513514 ohm\n", - "torque developed at starting= 548.104989259 N-m\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.29, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "I=Symbol('I')\n", - "v=200.0#V\n", - "rf=40.0#ohm\n", - "ra=0.02#ohm\n", - "i=55.0#A\n", - "n=595.0#rpm\n", - "r=0.58#ohm\n", - "n2=630.0#rpm\n", - "ia_=15.0#A\n", - "rd=5.0#ohm\n", - "ia2=50.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ra1=r+ra\n", - "eb1=v-ra1*ia1\n", - "ia2=ia1\n", - "eb2=eb1*(n2/n)\n", - "r=(v-eb2)/ia1\n", - "eb2_=v-ia_*ra1\n", - "n2=eb2_*n/eb1\n", - "eb3=eb1\n", - "IR=v-eb3-ia2*ra\n", - "pd=v-IR\n", - "i_d=pd/rd\n", - "i=ia2+i_d\n", - "R=IR/i\n", - "I=solve(rd*(I-ia_)-v+R*I,I)\n", - "eb4=v-R*I[0]-ia_*ra\n", - "n4=n*(eb4/eb1)\n", - "\n", - "#result\n", - "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", - "print \"speed when Ia=\",n2,\"rpm\"\n", - "print \"value of series resistance=\",R,\"ohm\"\n", - "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature circuit resistance should be reduced by= 0.2 ohm\n", - "speed when Ia= 668.5 rpm\n", - "value of series resistance= 0.344418052257 ohm\n", - "speed when motor current falls to 15A= 636.922222222222 rpm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.31, Page Number:1051" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=15#A\n", - "n=600#rpm\n", - "\n", - "#calculation\n", - "ia2=math.sqrt(2*2**0.5*i**2)\n", - "n2=n*2*i/ia2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 713.524269002 rpm\n", - "current= 25.2268924576 A\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.32, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=707#rpm\n", - "ia1=100#A\n", - "v=85#V\n", - "rf=0.03#ohm\n", - "ra=0.04#ohm\n", - "\n", - "#calculation\n", - "ra_total=ra+(2*rf)\n", - "eb1=v-ia1*ra_total\n", - "ia2=ia1*2**0.5\n", - "rf=rf/2\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", - "rt=(v-((n/n2)*eb2))/ia2\n", - "r=rt-ra-rf\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1029.46885374 rpm\n", - "additional resistance= 0.171040764009 ohm\n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.33, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varable declaration\n", - "v=240.0#V\n", - "ia=40.0#A\n", - "ra=0.3#ohm\n", - "n=1500.0#rpm\n", - "n2=1000.0#rpm\n", - "#calculation\n", - "R=v/ia-ra\n", - "eb1=v-ia*ra\n", - "r=(v-((n2/n)*eb1))/ia-ra\n", - "\n", - "#result\n", - "print \"resistance to be added at starting=\",R,\"ohm\"\n", - "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added at starting= 5.7 ohm\n", - "resistance to be added at 1000 rpm 1.9 ohm\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.34, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=600.0#rpm\n", - "v=250.0#V\n", - "ia1=20.0#A\n", - "ratio=2.0\n", - "\n", - "#calculations\n", - "ia2=ia1*2**(3.0/4.0)\n", - "n2=n*ratio*ia1/ia2\n", - "\n", - "#result\n", - "print \"current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 33.6358566101 A\n", - "speed= 713.524269002 rpm\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.35, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "V=Symbol('V')\n", - "ra=1.0#ohm\n", - "v=220.0#V\n", - "n=350.0#rpm\n", - "ia=25.0#A\n", - "n2=500.0#rpm\n", - "\n", - "#calculation\n", - "ia2=ia*(n2/n)\n", - "eb1=v-ia*ra\n", - "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", - "\n", - "#result\n", - "print \" current=\",ia2,\"A\"\n", - "print \"voltage=\",V[0],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " current= 35.7142857143 A\n", - "voltage= 433.673469387755 V\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.36, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000.0#rpm\n", - "ia=20.0#A\n", - "v=200.0#V\n", - "ra=0.5#ohm\n", - "rf=0.2#ohm\n", - "i=20.0#A\n", - "rd=0.2#ohm\n", - "i_f=10.0#A\n", - "ratio=0.70\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "r_total=ra+rf/2\n", - "eb2=v-r_total*ia\n", - "n2=(eb2*n/(eb1*ratio))\n", - " \n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1444.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.37, Page Number:1054" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "ia=40.0#A\n", - "n=700.0#rpm\n", - "ratio=0.50+1\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "\n", - "#calculations\n", - "ia2=(ratio*2*ia**2)**0.5\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=(eb2/eb1)*(ia*2/ia2)*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"speed=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 777.147765122 rpm\n", - "speed= 69.2820323028 A\n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.38, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ia=20#A\n", - "n=900#rpm\n", - "r=0.025#ohm\n", - "ra=0.1#ohm\n", - "rd=0.2#ohm\n", - "\n", - "#calculation\n", - "#when divertor is added\n", - "eb1=v-ia*(ra+4*r)\n", - "ia2=(ia**2*(ra+rd)/rd)**0.5\n", - "ra_=rd*ra/(ra+rd)\n", - "eb2=v-ia2*ra_\n", - "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", - "\n", - "#rearranged field coils in two series and parallel group\n", - "ia2=(ia**2*2)**0.5\n", - "r=ra+r\n", - "eb2=v-ia2*r\n", - "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", - "\n", - "#result\n", - "print \"speed when divertor was added=\",n2,\"rpm\"\n", - "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when divertor was added= 1112.87640676 rpm\n", - "speed when field coils are rearranged= 1275.19533144 rpm\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.39, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=1000.0#rpm\n", - "i=12.0#A\n", - "rf=0.8#ohm\n", - "ra=1.0#ohm\n", - "il=20#A\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "eb1=v-i*(ra+rf)\n", - "eb2=v-il*(ra+rf/4)\n", - "n2=(eb2/eb1)*(1/(1-ratio))*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1162.92198261 rpm\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.40, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=200.0#v\n", - "n=500.0#rpm\n", - "i=25.0#A\n", - "ra=0.2#ohm\n", - "rf=0.6#ohm\n", - "rd=10.0#ohm\n", - "\n", - "#calculation\n", - "r=ra+rf\n", - "eb1=v-i*r\n", - "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", - "pd=v-i2[1]*rf\n", - "ia2=((rd+rf)*i2[1]-v)/rd\n", - "eb2=pd-ia2*ra\n", - "n2=(eb2/eb1)*(i/i2[1])*n\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 342.848235418389 rpm\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.41, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.3#ohm\n", - "i=20#A\n", - "n=1200#rpm\n", - "r=3#ohm\n", - "i2=15#A\n", - "ratio=0.80\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb2=v-(r+ra)*i2\n", - "n2=n*(eb2/eb1)/ratio\n", - "power_ratio=(n*i)/(n2*i2*ratio)\n", - "\n", - "#result\n", - "print \"new speed=\",n2,\"rpm\"\n", - "print \"ratio of power outputs=\",power_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 1349.65437788 rpm\n", - "ratio of power outputs= 1.48186086214\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.42, Page Number:1057" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=460#V\n", - "ratio=1-0.25\n", - "\n", - "#calculation\n", - "I=(i**2*ratio**3)**0.5\n", - "eb2=I*ratio*v/i\n", - "R=(v-eb2)/I\n", - "pa=v*i/1000\n", - "power_n=pa*ratio**4\n", - "pa=eb2*I\n", - "\n", - "#result\n", - "print \"Resistance required=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Resistance required= 7.26432660412 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.44, Page Number:1060" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=500#rpm\n", - "n2=550#rpm\n", - "i=50#A\n", - "v=500#V\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "eb1=v-i*r\n", - "kphi1=eb1/n\n", - "eb2=v-i*r\n", - "kphi2=eb2/n2\n", - "eb_=v-i*2*r\n", - "n=eb_/((eb1/n2)+(eb2/n))\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 248.120300752 rpm\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.45, Page Number:1061" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=14.92#kW\n", - "v=250#V\n", - "n=1000#rpm\n", - "ratio1=5.0\n", - "ratio2=4.0\n", - "t=882#N-m\n", - "\n", - "#calculation\n", - "i=load*1000/v\n", - "k=v/(n*i/60)\n", - "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", - "nsh=v/((ratio1+ratio2)*k*I)\n", - "eb1=ratio1*k*I*nsh\n", - "eb2=ratio2*k*I*nsh\n", - "\n", - "#result\n", - "print \"current=\",I,\"A\"\n", - "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", - "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 49.5202984449 A\n", - "speed of shaft= 134.0 rpm\n", - "voltage across the motors= 139.0 V, 111.0 V\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.46, Page Number:1063" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "t=700#N-m\n", - "n=1200#rpm\n", - "ra=0.008#ohm\n", - "rf=55#ohm\n", - "efficiency=0.90\n", - "t2=375#N-m\n", - "n2=1050#rpm\n", - "\n", - "#calculation\n", - "output=2*3.14*n*t/60\n", - "power_m=output/efficiency\n", - "im=power_m/v\n", - "ish=v/rf\n", - "ia1=im-ish\n", - "eb1=v-ia1*ra\n", - "ia2=ia1*t2/t\n", - "eb2=eb1*n2/n\n", - "r=eb2/ia2-ra\n", - "\n", - "#result\n", - "print \"dynamic break resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic break resistance= 0.795525014538 ohm\n" - ] - } - ], - "prompt_number": 118 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.47, Page Number:1064" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "load=18.65#kW\n", - "n=450.0#rpm\n", - "efficiency=0.746\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "I=load*1000/(efficiency*v)\n", - "eb=v-I*ra\n", - "vt=v+eb\n", - "i_max=2*I\n", - "r=vt/i_max\n", - "R=r-ra\n", - "N=n/60\n", - "phizp_by_a=eb/N\n", - "k4=phizp_by_a*v/(2*3.14*r)\n", - "k3=phizp_by_a**2/(2*3.14*r)\n", - "tb=k4+k3*N\n", - "tb0=k4\n", - "#result\n", - "print \"breaking resistance=\",R,\"ohm\"\n", - "print \"maximum breaking torque=\",tb,\"N-m\"\n", - "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "breaking resistance= 6.1 ohm\n", - "maximum breaking torque= 1028.3970276 N-m\n", - "maximum breaking torque when N=0 = 522.360394972 N-m\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.48, Page Number:1069" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=120#V\n", - "ra=0.5#ohm\n", - "l=20*0.001#H\n", - "ka=0.05#V/rpm motor constant\n", - "ia=20#A\n", - "\n", - "#calculations\n", - "vt=ia*ra\n", - "alpha=vt/v\n", - "#when alpha=1\n", - "eb=v-ia*ra\n", - "N=eb/ka\n", - "\n", - "#result\n", - "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", - "print \"range of duty cycle=\",(alpha),\"to\",1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " range of speed control= 0 to 2200.0 rpm\n", - "range of duty cycle= 0.0833333333333 to 1\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.49, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.46#kW\n", - "v=200#V\n", - "efficiency=0.85\n", - "ra=0.25#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "i=load*1000/(v*efficiency)\n", - "i1=ratio*i\n", - "r1=v/i1\n", - "r_start=r1-ra\n", - "eb1=v-i*r1\n", - "\n", - "#result\n", - "print \"starting resistance=\",r_start,\"ohm\"\n", - "print \"back emf=\",eb1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 2.78842716711 ohm\n", - "back emf= 66.6666666667 V\n" - ] - } - ], - "prompt_number": 125 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.50, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ia=40.0#A\n", - "n=7\n", - "\n", - "#calculations\n", - "r1=v/ia\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.812 ohm\n", - "resistance of 2nd section= 1.215 ohm\n", - "resistance of 3rd section= 0.815 ohm\n", - "resistance of 4th section= 0.546 ohm\n", - "resistance of 5th section= 0.366 ohm\n", - "resistance of 6th section= 0.246 ohm\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.51, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=6\n", - "load=3.73#kW\n", - "v=200#V\n", - "ratio=0.50\n", - "i1=0.6#A\n", - "efficiency=0.88\n", - "\n", - "#calculation\n", - "output=load/efficiency\n", - "total_loss=output-load\n", - "cu_loss=total_loss*ratio\n", - "i=output*1000/v\n", - "ia=i-i1\n", - "ra=cu_loss*1000/ia**2\n", - "i_per=i*2\n", - "ia_per=i_per-i1\n", - "r1=v/ia_per\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-ra\n", - "\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.627 ohm\n", - "resistance of 2nd section= 1.074 ohm\n", - "resistance of 3rd section= 0.709 ohm\n", - "resistance of 4th section= 0.468 ohm\n", - "resistance of 5th section= 0.309 ohm\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.52, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=7\n", - "load=36.775#kW\n", - "v=400#V\n", - "ratio=0.05\n", - "rsh=200#ohm\n", - "efficiency=0.92\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "cu_loss=input_m*ratio\n", - "cu_loss_sh=v**2/rsh\n", - "cu_loss_a=cu_loss-cu_loss_sh\n", - "i=input_m/v\n", - "ish=v/rsh\n", - "ia=i-ish\n", - "ra=cu_loss_a/ia**2\n", - "k=(v/(ia*ra))**(1.0/(n))\n", - "i1=k*ia\n", - "r1=v/i1\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.974 ohm\n", - "resistance of 2nd section= 0.592 ohm\n", - "resistance of 3rd section= 0.36 ohm\n", - "resistance of 4th section= 0.219 ohm\n", - "resistance of 5th section= 0.133 ohm\n", - "resistance of 6th section= 0.0 ohm\n", - "resistance of 7th section= 0.081 ohm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.53, Page Number:1082" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=250.0#V\n", - "ra=0.125#ohm\n", - "i2=150.0#A\n", - "i1=200.0#A\n", - "\n", - "#calculation\n", - "r1=v/i1\n", - "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", - "k=i1/i2\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r6/k\n", - "r8=r7/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-r8\n", - "p8=r8-ra\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", - "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.313 ohm\n", - "resistance of 2nd section= 0.234 ohm\n", - "resistance of 3rd section= 0.176 ohm\n", - "resistance of 4th section= 0.132 ohm\n", - "resistance of 5th section= 0.099 ohm\n", - "resistance of 6th section= 0.074 ohm\n", - "resistance of 7th section= 0.056 ohm\n", - "resistance of 8th section= 0.042 ohm\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.54, Page Number:1083" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=500#V\n", - "z=20\n", - "ra=1.31#ohm\n", - "t=218#N-m\n", - "ratio=1.5\n", - "slot=60\n", - "phi=23*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=t/(0.159*phi*slot*z)\n", - "i1=ia*ratio\n", - "i2=ia\n", - "k=i1/i2\n", - "r1=v/i1\n", - "n=solve(k**(n-1)-(r1/ra),n)\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 2.237 ohm\n", - "resistance of 2nd section= 1.491 ohm\n", - "resistance of 3rd section= 0.994 ohm\n", - "resistance of 4th section= 0.678 ohm\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.55, Page Number:1084" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3#kW\n", - "v=440#V\n", - "drop=0.02\n", - "efficiency=0.95\n", - "i_per=1.30\n", - "\n", - "#calculation\n", - "il=load*1000/(v*efficiency)\n", - "i1=i_per*il\n", - "vd=drop*v\n", - "rm=vd/il\n", - "r1=v/i1\n", - "r=(r1-rm)/6\n", - "\n", - "#result\n", - "print \"resistance of each rheostat=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of each rheostat= 0.615721729566 ohm\n" - ] - } - ], - "prompt_number": 165 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.56, Page Number:1085" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=55.95#kW\n", - "v=650.0#V\n", - "r=0.51#ohm\n", - "i1=140.0#A\n", - "i2=100.0#A\n", - "per=0.20\n", - "\n", - "#calculation\n", - "ratio=i1/i2\n", - "r1=v/i1\n", - "r2=((per+1)/ratio-per)*r1\n", - "r3=(per+1)*r2/ratio-per*r1\n", - "r4=((per+1)*r3/ratio)-per*r1\n", - "\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "\n", - "#result\n", - "print \"number of steps=\",3\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "number of steps= 3\n", - "resistance of 1st section= 1.592 ohm\n", - "resistance of 2nd section= 1.364 ohm\n", - "resistance of 3rd section= 1.17 ohm\n" - ] - } - ], - "prompt_number": 170 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_1.ipynb deleted file mode 100644 index ce13ea95..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_1.ipynb +++ /dev/null @@ -1,2629 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 30:Speed Control of D.C. Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.1, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "n=250#rpm\n", - "ia=200#A\n", - "ra=0.12#ohm\n", - "ratio=0.80\n", - "ia2=100#A\n", - "\n", - "#calculations\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 320.0 rpm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.2, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ra=0.25#ohm\n", - "ia=50#A\n", - "n=750#rpm\n", - "ratio=1-0.10\n", - "\n", - "#calculation\n", - "ia2=ia/ratio\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 828.0 rpm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=800#rpm\n", - "ia=50.0#A\n", - "n2=1000#rpm\n", - "ia2=80.0#A\n", - "ra=0.15#ohm\n", - "rf=250.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "ish1=v/rf\n", - "r1=(n2*eb1*v)/(n*eb2*ish1)\n", - "r=r1-rf\n", - "ish2=v/r1\n", - "torque_ratio=ish2*ia2/(ish1*ia)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"\n", - "print \"ratio of torque=\",torque_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 68.9506880734 ohm\n", - "ratio of torque= 1.25411235955\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "rf=250.0#ohm\n", - "ra=0.25#ohm\n", - "n=1500#rpm\n", - "ia=20.0#A\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ish2=v/(rf+r)\n", - "ia2=ia*1/ish2\n", - "eb2=v-ia2*ra\n", - "eb1=v-ia*ra\n", - "n2=eb2*n/(eb1*ish2)\n", - "\n", - "#result\n", - "print \"new speed=\",round(n2),\"rpm\"\n", - "print \"new armature current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 2939.0 rpm\n", - "new armature current= 40.0 A\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.5, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "rt=Symbol('rt')\n", - "v=250.0#V\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "n=600.0#rpm\n", - "ia=20.0#A\n", - "n2=800.0#rpm\n", - "\n", - "#calculation\n", - "ish1=v/rf\n", - "eb1=v-ia*ra\n", - "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", - "r=rt[0]-rf\n", - "\n", - "#result\n", - "print \"resistance to be inserted=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 88.3128987990058 ohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.6, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=1+0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", - "per=1-1/x[0]\n", - "\n", - "#result\n", - "print\"main flux has to be reduced by=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "main flux has to be reduced by= 37.2991677469778 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.7, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=10#kW\n", - "i=41#A\n", - "ra=0.2#ohm\n", - "rw=0.05#ohm\n", - "ri=0.1#ohm\n", - "rf=110#ohm\n", - "ratio=1-0.25\n", - "r=1#ohm\n", - "ratio1=1-0.50\n", - "n=2500\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ratio1*ia1/ratio\n", - "eb1=v-ia1*(ra+ri+rw)\n", - "eb2=v-ia2*(r+ra+ri+rw)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"motor speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 26.0 A\n", - "motor speed= 2987.0 rpm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.8, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=15#kW\n", - "n=850#rpm\n", - "ia=72.2#A\n", - "ra=0.25#ohm\n", - "rf=100#ohm\n", - "n2=1650#rpm\n", - "ia2=40#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "ratio=(n*eb2)/(n2*eb1)\n", - "per=1-ratio\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 46.5636857585 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.9, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=0.50+1\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", - "per=ia/ia2[0]\n", - "\n", - "#result\n", - "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mail flux should be reduced by= 62.7 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.10, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=20.0#A\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ratio=0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=ratio*(v-ia*ra)\n", - "r=(v-eb2)/ia-ra\n", - "\n", - "#result\n", - "print \"resistance required in the series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in the series= 5.25 ohm\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.11, Page Number:1036" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=8#A\n", - "i_f=1#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "eb0=v-(ia-i_f)*ra\n", - "kpsi=eb0/1000\n", - "ia=i-i_f\n", - "eb1=v-ia*ra\n", - "n1=eb1/kpsi\n", - "\n", - "#result\n", - "print \"speed=\",round(n1,1),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 966.2 rpm\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.12, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "ra=0.25#ohm\n", - "n=1000#rpm\n", - "ia=40#A\n", - "n2=800#rpm\n", - "i2=20#A\n", - "#calculation\n", - "eb=v-ia*ra\n", - "eb2=n2*eb/n\n", - "r=(v-eb2)/(ia)-ra\n", - "eb3=v-i2*(r+ra)\n", - "n3=eb3*n/eb\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"\n", - "print \"speed=\",round(n3),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 1.15 ohm\n", - "speed= 922.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.13, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.48#kW\n", - "v=220#V\n", - "n=990#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2#A\n", - "n2=450#rpm\n", - "\n", - "#calculation\n", - "input_p=load*1000/efficiency\n", - "losses=input_p-load*1000\n", - "i=input_p/v\n", - "ia=i-ish\n", - "loss=v*ish\n", - "cu_loss=ia**2*ra\n", - "loss_nl=losses-cu_loss-loss\n", - "eb1=v-20-(ia*ra)\n", - "eb2=n2*eb1/n\n", - "r=(eb1-eb2)/ia\n", - "total_loss=ia**2*(r+ra)+loss+loss_nl\n", - "output=input_p-total_loss\n", - "efficiency=output/(input_p)\n", - "\n", - "#result\n", - "print \"motor input=\",input_p/1000,\"kW\"\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor input= 8.5 kW\n", - "armature current= 36.6363636364 A\n", - "external resistance= 2.93403113016 ohm\n", - "efficiency= 41.6691237902 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.14, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb1=230.0#V\n", - "n=990.0#rpm\n", - "n2=500.0#rpm\n", - "ia=25.0#A\n", - "\n", - "#calculation\n", - "eb2=eb1*n2/n\n", - "r=(eb1-eb2)/ia\n", - "\n", - "#result\n", - "print \"resistance required in series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in series= 4.55353535354 ohm\n" - ] - } - ], - "prompt_number": 83 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.15, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=20.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k2=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "rf1=v/if1\n", - "rf2=v/if2\n", - "r=rf2-rf1\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 100.0 ohm\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.16, Page Number:1039" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=22.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k1=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "if2=n2*ia/n\n", - "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", - "if2=ia*if1/ia2[0]\n", - "r=v/if2\n", - "\n", - "#result\n", - "print \"new field resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new field resistance to be added= 306.828780053869 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.17, Page Number:1040" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "output=25#kW\n", - "efficiency=0.85\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "ratio=1.50\n", - "\n", - "#calculation\n", - "input_p=output*1000/efficiency\n", - "i=input_p/v\n", - "if1=v/rf\n", - "ia=i-if1\n", - "il=ratio*ia\n", - "r=v/il\n", - "r_ext=r-ra\n", - "\n", - "#result\n", - "print \"starting resistance=\",round(r_ext,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 1.341 ohm\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.18, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "n=1000.0#rpm\n", - "ia=17.5#A\n", - "n2=600.0#rpm\n", - "ra=0.4#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "rt=(v-(n2*eb1/n))/ia\n", - "r=rt-ra\n", - "#result\n", - "print \"resistance to be inserted=\",round(r,1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 4.4 ohm\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.19, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ra=1.2#ohm\n", - "rf=500#ohm\n", - "ia=4#A\n", - "n=1000#rpm\n", - "i=26#A\n", - "r=2.3#ohm\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra\n", - "n2=n*eb2/eb1\n", - "eb2=v-ia2*(r+ra)\n", - "n2_=n*eb2/eb1\n", - "n2__=n*eb2/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", - "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", - "speed when shunt field is reduced by 15%= 978.0 rpm\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.20, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ia1=ia2=20.0#A\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "n2=500.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia1*ra\n", - "rt=(v-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "ia3=ia2/2\n", - "n3=n*(v-ia3*rt)/eb1\n", - "#result\n", - "print \"speed=\",round(n3),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 771.0 rpm\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.21, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ra1=0.5#ohm\n", - "n=600.0#rpm\n", - "ia2=ia1=20#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "#torque is half the full-load torque\n", - "ia2=1.0/2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 550.0 rpm\n", - "speed at half full-load torque= 588.0 rpm\n" - ] - } - ], - "prompt_number": 137 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.22, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra1=0.5#ohm\n", - "n=500.0#rpm\n", - "ia2=ia1=30.0#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "\n", - "#torque is half the full-load torque\n", - "ia2=2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 427.0 rpm\n", - "speed at double full-load torque= 317.0 rpm\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.23, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3*1000#W\n", - "v=500.0#V\n", - "n=750.0#rpm\n", - "efficiency=0.90\n", - "t2=250.0#N-m\n", - "r=5.0#ohm\n", - "ra=0.5#ohm\n", - "\n", - "#calculation\n", - "t1=load/(2*3.14*(n/60))\n", - "ia1=load/(efficiency*v)\n", - "ia2=ia1*math.sqrt(t2/t1)\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*(r+ra)\n", - "n2=eb2*ia1*n/(eb1*ia2)\n", - "\n", - "#result\n", - "print \"speed at which machine will run=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which machine will run= 381.789716486 rpm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.24, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=7.46*1000#W\n", - "v=220.0#V\n", - "n=900.0#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2.0#A\n", - "n2=450.0#rpm\n", - "#calculation\n", - "i=output/(efficiency*v)\n", - "ia2=ia1=i-ish\n", - "eb1=v-ia2*ra\n", - "rt=(v-20-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "input_m=(v)*(ia2+ish)\n", - "total_loss=input_m-output\n", - "cu_loss=ia2**2*ra\n", - "cu_loss_f=v*ish\n", - "total_cu_loss=cu_loss+cu_loss_f\n", - "stray_loss=total_loss-total_cu_loss\n", - "stray_loss2=stray_loss*n2/n\n", - "cu_loss_a=ia1**2*rt\n", - "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", - "output2=input_m-total_loss2\n", - "efficiency=output2*100/input_m\n", - "\n", - "#result\n", - "print \"motor output=\",output2,\"W\"\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"overall efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 4460.66115702 W\n", - "armature current= 36.5330578512 A\n", - "external resistance= 2.42352222599 ohm\n", - "overall efficiency= 52.619059225 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.25, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "ia=15.0#A\n", - "n=800.0#rpm\n", - "ra=0.6#ohm\n", - "n2=400.0#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "r=((v-(n2*eb1/n))/ia)-ra\n", - "ia3=ia/2\n", - "eb3=v-ia3*(r+ra)\n", - "n3=eb3*n/eb1\n", - "\n", - "#result\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 615.584415584 rpm\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.26, Page Number:1045" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=400.0#V\n", - "inl=3.5#A\n", - "il=59.5#A\n", - "rf=267.0#ohm\n", - "ra=0.2#ohm\n", - "vd=2.0#V\n", - "ratio=0.02\n", - "speed_ratio=0.50\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=inl-ish\n", - "eb1=v-ia1*ra-vd\n", - "ia2=il-ish\n", - "eb2=v-ia2*ra-vd\n", - "n1_by_n2=eb1*(1-ratio)/eb2\n", - "per_change=(1-1/n1_by_n2)*100\n", - "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", - "#result\n", - "print \"change in speed=\",per_change,\"%\"\n", - "print \"resistance to be added=\",r[0],\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "change in speed= 0.83357557339 %\n", - "resistance to be added= 3.33092370774547 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaraion\n", - "v=200.0#V\n", - "i=50.0#A\n", - "n=1000.0#rpm\n", - "n2=800.0#rpm\n", - "ra=0.1#ohm\n", - "rf=100.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ia1*(n2/n)**2\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "rt=(v-(n2*eb1/n))/ia2\n", - "r=rt-ra\n", - "#result\n", - "print \"resustance that must be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resustance that must be added= 1.32708333333 ohm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "load=37.3#kW\n", - "efficiency=0.90\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=115#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "tsh=9.55*load*1000/n\n", - "i=load*1000/(v*efficiency)\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "i_permissible=i*ratio\n", - "ia_per=i_permissible-ish\n", - "ra_total=v/ia_per\n", - "r_required=ra_total-ra\n", - "torque=ratio*ta\n", - "#result\n", - "print \"net torque=\",ta,\"N-m\"\n", - "print \"starting resistance=\",r_required,\"ohm\"\n", - "print \"torque developed at starting=\",torque,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "net torque= 365.403326173 N-m\n", - "starting resistance= 0.913513513514 ohm\n", - "torque developed at starting= 548.104989259 N-m\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.29, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "I=Symbol('I')\n", - "v=200.0#V\n", - "rf=40.0#ohm\n", - "ra=0.02#ohm\n", - "i=55.0#A\n", - "n=595.0#rpm\n", - "r=0.58#ohm\n", - "n2=630.0#rpm\n", - "ia_=15.0#A\n", - "rd=5.0#ohm\n", - "ia2=50.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ra1=r+ra\n", - "eb1=v-ra1*ia1\n", - "ia2=ia1\n", - "eb2=eb1*(n2/n)\n", - "r=(v-eb2)/ia1\n", - "eb2_=v-ia_*ra1\n", - "n2=eb2_*n/eb1\n", - "eb3=eb1\n", - "IR=v-eb3-ia2*ra\n", - "pd=v-IR\n", - "i_d=pd/rd\n", - "i=ia2+i_d\n", - "R=IR/i\n", - "I=solve(rd*(I-ia_)-v+R*I,I)\n", - "eb4=v-R*I[0]-ia_*ra\n", - "n4=n*(eb4/eb1)\n", - "\n", - "#result\n", - "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", - "print \"speed when Ia=\",n2,\"rpm\"\n", - "print \"value of series resistance=\",R,\"ohm\"\n", - "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature circuit resistance should be reduced by= 0.2 ohm\n", - "speed when Ia= 668.5 rpm\n", - "value of series resistance= 0.344418052257 ohm\n", - "speed when motor current falls to 15A= 636.922222222222 rpm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.31, Page Number:1051" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=15#A\n", - "n=600#rpm\n", - "\n", - "#calculation\n", - "ia2=math.sqrt(2*2**0.5*i**2)\n", - "n2=n*2*i/ia2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 713.524269002 rpm\n", - "current= 25.2268924576 A\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.32, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=707#rpm\n", - "ia1=100#A\n", - "v=85#V\n", - "rf=0.03#ohm\n", - "ra=0.04#ohm\n", - "\n", - "#calculation\n", - "ra_total=ra+(2*rf)\n", - "eb1=v-ia1*ra_total\n", - "ia2=ia1*2**0.5\n", - "rf=rf/2\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", - "rt=(v-((n/n2)*eb2))/ia2\n", - "r=rt-ra-rf\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1029.46885374 rpm\n", - "additional resistance= 0.171040764009 ohm\n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.33, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varable declaration\n", - "v=240.0#V\n", - "ia=40.0#A\n", - "ra=0.3#ohm\n", - "n=1500.0#rpm\n", - "n2=1000.0#rpm\n", - "#calculation\n", - "R=v/ia-ra\n", - "eb1=v-ia*ra\n", - "r=(v-((n2/n)*eb1))/ia-ra\n", - "\n", - "#result\n", - "print \"resistance to be added at starting=\",R,\"ohm\"\n", - "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added at starting= 5.7 ohm\n", - "resistance to be added at 1000 rpm 1.9 ohm\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.34, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=600.0#rpm\n", - "v=250.0#V\n", - "ia1=20.0#A\n", - "ratio=2.0\n", - "\n", - "#calculations\n", - "ia2=ia1*2**(3.0/4.0)\n", - "n2=n*ratio*ia1/ia2\n", - "\n", - "#result\n", - "print \"current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 33.6358566101 A\n", - "speed= 713.524269002 rpm\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.35, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "V=Symbol('V')\n", - "ra=1.0#ohm\n", - "v=220.0#V\n", - "n=350.0#rpm\n", - "ia=25.0#A\n", - "n2=500.0#rpm\n", - "\n", - "#calculation\n", - "ia2=ia*(n2/n)\n", - "eb1=v-ia*ra\n", - "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", - "\n", - "#result\n", - "print \" current=\",ia2,\"A\"\n", - "print \"voltage=\",V[0],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " current= 35.7142857143 A\n", - "voltage= 433.673469387755 V\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.36, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000.0#rpm\n", - "ia=20.0#A\n", - "v=200.0#V\n", - "ra=0.5#ohm\n", - "rf=0.2#ohm\n", - "i=20.0#A\n", - "rd=0.2#ohm\n", - "i_f=10.0#A\n", - "ratio=0.70\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "r_total=ra+rf/2\n", - "eb2=v-r_total*ia\n", - "n2=(eb2*n/(eb1*ratio))\n", - " \n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1444.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.37, Page Number:1054" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "ia=40.0#A\n", - "n=700.0#rpm\n", - "ratio=0.50+1\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "\n", - "#calculations\n", - "ia2=(ratio*2*ia**2)**0.5\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=(eb2/eb1)*(ia*2/ia2)*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"speed=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 777.147765122 rpm\n", - "speed= 69.2820323028 A\n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.38, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ia=20#A\n", - "n=900#rpm\n", - "r=0.025#ohm\n", - "ra=0.1#ohm\n", - "rd=0.2#ohm\n", - "\n", - "#calculation\n", - "#when divertor is added\n", - "eb1=v-ia*(ra+4*r)\n", - "ia2=(ia**2*(ra+rd)/rd)**0.5\n", - "ra_=rd*ra/(ra+rd)\n", - "eb2=v-ia2*ra_\n", - "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", - "\n", - "#rearranged field coils in two series and parallel group\n", - "ia2=(ia**2*2)**0.5\n", - "r=ra+r\n", - "eb2=v-ia2*r\n", - "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", - "\n", - "#result\n", - "print \"speed when divertor was added=\",n2,\"rpm\"\n", - "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when divertor was added= 1112.87640676 rpm\n", - "speed when field coils are rearranged= 1275.19533144 rpm\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.39, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=1000.0#rpm\n", - "i=12.0#A\n", - "rf=0.8#ohm\n", - "ra=1.0#ohm\n", - "il=20#A\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "eb1=v-i*(ra+rf)\n", - "eb2=v-il*(ra+rf/4)\n", - "n2=(eb2/eb1)*(1/(1-ratio))*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1162.92198261 rpm\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.40, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=200.0#v\n", - "n=500.0#rpm\n", - "i=25.0#A\n", - "ra=0.2#ohm\n", - "rf=0.6#ohm\n", - "rd=10.0#ohm\n", - "\n", - "#calculation\n", - "r=ra+rf\n", - "eb1=v-i*r\n", - "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", - "pd=v-i2[1]*rf\n", - "ia2=((rd+rf)*i2[1]-v)/rd\n", - "eb2=pd-ia2*ra\n", - "n2=(eb2/eb1)*(i/i2[1])*n\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 342.848235418389 rpm\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.41, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.3#ohm\n", - "i=20#A\n", - "n=1200#rpm\n", - "r=3#ohm\n", - "i2=15#A\n", - "ratio=0.80\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb2=v-(r+ra)*i2\n", - "n2=n*(eb2/eb1)/ratio\n", - "power_ratio=(n*i)/(n2*i2*ratio)\n", - "\n", - "#result\n", - "print \"new speed=\",n2,\"rpm\"\n", - "print \"ratio of power outputs=\",power_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 1349.65437788 rpm\n", - "ratio of power outputs= 1.48186086214\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.42, Page Number:1057" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=460#V\n", - "ratio=1-0.25\n", - "\n", - "#calculation\n", - "I=(i**2*ratio**3)**0.5\n", - "eb2=I*ratio*v/i\n", - "R=(v-eb2)/I\n", - "pa=v*i/1000\n", - "power_n=pa*ratio**4\n", - "pa=eb2*I\n", - "\n", - "#result\n", - "print \"Resistance required=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Resistance required= 7.26432660412 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.44, Page Number:1060" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=500#rpm\n", - "n2=550#rpm\n", - "i=50#A\n", - "v=500#V\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "eb1=v-i*r\n", - "kphi1=eb1/n\n", - "eb2=v-i*r\n", - "kphi2=eb2/n2\n", - "eb_=v-i*2*r\n", - "n=eb_/((eb1/n2)+(eb2/n))\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 248.120300752 rpm\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.45, Page Number:1061" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=14.92#kW\n", - "v=250#V\n", - "n=1000#rpm\n", - "ratio1=5.0\n", - "ratio2=4.0\n", - "t=882#N-m\n", - "\n", - "#calculation\n", - "i=load*1000/v\n", - "k=v/(n*i/60)\n", - "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", - "nsh=v/((ratio1+ratio2)*k*I)\n", - "eb1=ratio1*k*I*nsh\n", - "eb2=ratio2*k*I*nsh\n", - "\n", - "#result\n", - "print \"current=\",I,\"A\"\n", - "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", - "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 49.5202984449 A\n", - "speed of shaft= 134.0 rpm\n", - "voltage across the motors= 139.0 V, 111.0 V\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.46, Page Number:1063" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "t=700#N-m\n", - "n=1200#rpm\n", - "ra=0.008#ohm\n", - "rf=55#ohm\n", - "efficiency=0.90\n", - "t2=375#N-m\n", - "n2=1050#rpm\n", - "\n", - "#calculation\n", - "output=2*3.14*n*t/60\n", - "power_m=output/efficiency\n", - "im=power_m/v\n", - "ish=v/rf\n", - "ia1=im-ish\n", - "eb1=v-ia1*ra\n", - "ia2=ia1*t2/t\n", - "eb2=eb1*n2/n\n", - "r=eb2/ia2-ra\n", - "\n", - "#result\n", - "print \"dynamic break resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic break resistance= 0.795525014538 ohm\n" - ] - } - ], - "prompt_number": 118 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.47, Page Number:1064" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "load=18.65#kW\n", - "n=450.0#rpm\n", - "efficiency=0.746\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "I=load*1000/(efficiency*v)\n", - "eb=v-I*ra\n", - "vt=v+eb\n", - "i_max=2*I\n", - "r=vt/i_max\n", - "R=r-ra\n", - "N=n/60\n", - "phizp_by_a=eb/N\n", - "k4=phizp_by_a*v/(2*3.14*r)\n", - "k3=phizp_by_a**2/(2*3.14*r)\n", - "tb=k4+k3*N\n", - "tb0=k4\n", - "#result\n", - "print \"breaking resistance=\",R,\"ohm\"\n", - "print \"maximum breaking torque=\",tb,\"N-m\"\n", - "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "breaking resistance= 6.1 ohm\n", - "maximum breaking torque= 1028.3970276 N-m\n", - "maximum breaking torque when N=0 = 522.360394972 N-m\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.48, Page Number:1069" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=120#V\n", - "ra=0.5#ohm\n", - "l=20*0.001#H\n", - "ka=0.05#V/rpm motor constant\n", - "ia=20#A\n", - "\n", - "#calculations\n", - "vt=ia*ra\n", - "alpha=vt/v\n", - "#when alpha=1\n", - "eb=v-ia*ra\n", - "N=eb/ka\n", - "\n", - "#result\n", - "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", - "print \"range of duty cycle=\",(alpha),\"to\",1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " range of speed control= 0 to 2200.0 rpm\n", - "range of duty cycle= 0.0833333333333 to 1\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.49, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.46#kW\n", - "v=200#V\n", - "efficiency=0.85\n", - "ra=0.25#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "i=load*1000/(v*efficiency)\n", - "i1=ratio*i\n", - "r1=v/i1\n", - "r_start=r1-ra\n", - "eb1=v-i*r1\n", - "\n", - "#result\n", - "print \"starting resistance=\",r_start,\"ohm\"\n", - "print \"back emf=\",eb1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 2.78842716711 ohm\n", - "back emf= 66.6666666667 V\n" - ] - } - ], - "prompt_number": 125 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.50, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ia=40.0#A\n", - "n=7\n", - "\n", - "#calculations\n", - "r1=v/ia\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.812 ohm\n", - "resistance of 2nd section= 1.215 ohm\n", - "resistance of 3rd section= 0.815 ohm\n", - "resistance of 4th section= 0.546 ohm\n", - "resistance of 5th section= 0.366 ohm\n", - "resistance of 6th section= 0.246 ohm\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.51, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=6\n", - "load=3.73#kW\n", - "v=200#V\n", - "ratio=0.50\n", - "i1=0.6#A\n", - "efficiency=0.88\n", - "\n", - "#calculation\n", - "output=load/efficiency\n", - "total_loss=output-load\n", - "cu_loss=total_loss*ratio\n", - "i=output*1000/v\n", - "ia=i-i1\n", - "ra=cu_loss*1000/ia**2\n", - "i_per=i*2\n", - "ia_per=i_per-i1\n", - "r1=v/ia_per\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-ra\n", - "\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.627 ohm\n", - "resistance of 2nd section= 1.074 ohm\n", - "resistance of 3rd section= 0.709 ohm\n", - "resistance of 4th section= 0.468 ohm\n", - "resistance of 5th section= 0.309 ohm\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.52, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=7\n", - "load=36.775#kW\n", - "v=400#V\n", - "ratio=0.05\n", - "rsh=200#ohm\n", - "efficiency=0.92\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "cu_loss=input_m*ratio\n", - "cu_loss_sh=v**2/rsh\n", - "cu_loss_a=cu_loss-cu_loss_sh\n", - "i=input_m/v\n", - "ish=v/rsh\n", - "ia=i-ish\n", - "ra=cu_loss_a/ia**2\n", - "k=(v/(ia*ra))**(1.0/(n))\n", - "i1=k*ia\n", - "r1=v/i1\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.974 ohm\n", - "resistance of 2nd section= 0.592 ohm\n", - "resistance of 3rd section= 0.36 ohm\n", - "resistance of 4th section= 0.219 ohm\n", - "resistance of 5th section= 0.133 ohm\n", - "resistance of 6th section= 0.0 ohm\n", - "resistance of 7th section= 0.081 ohm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.53, Page Number:1082" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=250.0#V\n", - "ra=0.125#ohm\n", - "i2=150.0#A\n", - "i1=200.0#A\n", - "\n", - "#calculation\n", - "r1=v/i1\n", - "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", - "k=i1/i2\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r6/k\n", - "r8=r7/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-r8\n", - "p8=r8-ra\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", - "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.313 ohm\n", - "resistance of 2nd section= 0.234 ohm\n", - "resistance of 3rd section= 0.176 ohm\n", - "resistance of 4th section= 0.132 ohm\n", - "resistance of 5th section= 0.099 ohm\n", - "resistance of 6th section= 0.074 ohm\n", - "resistance of 7th section= 0.056 ohm\n", - "resistance of 8th section= 0.042 ohm\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.54, Page Number:1083" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=500#V\n", - "z=20\n", - "ra=1.31#ohm\n", - "t=218#N-m\n", - "ratio=1.5\n", - "slot=60\n", - "phi=23*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=t/(0.159*phi*slot*z)\n", - "i1=ia*ratio\n", - "i2=ia\n", - "k=i1/i2\n", - "r1=v/i1\n", - "n=solve(k**(n-1)-(r1/ra),n)\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 2.237 ohm\n", - "resistance of 2nd section= 1.491 ohm\n", - "resistance of 3rd section= 0.994 ohm\n", - "resistance of 4th section= 0.678 ohm\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.55, Page Number:1084" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3#kW\n", - "v=440#V\n", - "drop=0.02\n", - "efficiency=0.95\n", - "i_per=1.30\n", - "\n", - "#calculation\n", - "il=load*1000/(v*efficiency)\n", - "i1=i_per*il\n", - "vd=drop*v\n", - "rm=vd/il\n", - "r1=v/i1\n", - "r=(r1-rm)/6\n", - "\n", - "#result\n", - "print \"resistance of each rheostat=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of each rheostat= 0.615721729566 ohm\n" - ] - } - ], - "prompt_number": 165 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.56, Page Number:1085" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=55.95#kW\n", - "v=650.0#V\n", - "r=0.51#ohm\n", - "i1=140.0#A\n", - "i2=100.0#A\n", - "per=0.20\n", - "\n", - "#calculation\n", - "ratio=i1/i2\n", - "r1=v/i1\n", - "r2=((per+1)/ratio-per)*r1\n", - "r3=(per+1)*r2/ratio-per*r1\n", - "r4=((per+1)*r3/ratio)-per*r1\n", - "\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "\n", - "#result\n", - "print \"number of steps=\",3\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "number of steps= 3\n", - "resistance of 1st section= 1.592 ohm\n", - "resistance of 2nd section= 1.364 ohm\n", - "resistance of 3rd section= 1.17 ohm\n" - ] - } - ], - "prompt_number": 170 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb deleted file mode 100644 index ce13ea95..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb +++ /dev/null @@ -1,2629 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 30:Speed Control of D.C. Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.1, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "n=250#rpm\n", - "ia=200#A\n", - "ra=0.12#ohm\n", - "ratio=0.80\n", - "ia2=100#A\n", - "\n", - "#calculations\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 320.0 rpm\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.2, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ra=0.25#ohm\n", - "ia=50#A\n", - "n=750#rpm\n", - "ratio=1-0.10\n", - "\n", - "#calculation\n", - "ia2=ia/ratio\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 828.0 rpm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1032" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=800#rpm\n", - "ia=50.0#A\n", - "n2=1000#rpm\n", - "ia2=80.0#A\n", - "ra=0.15#ohm\n", - "rf=250.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=v-ia2*ra\n", - "ish1=v/rf\n", - "r1=(n2*eb1*v)/(n*eb2*ish1)\n", - "r=r1-rf\n", - "ish2=v/r1\n", - "torque_ratio=ish2*ia2/(ish1*ia)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"\n", - "print \"ratio of torque=\",torque_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 68.9506880734 ohm\n", - "ratio of torque= 1.25411235955\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.3, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "rf=250.0#ohm\n", - "ra=0.25#ohm\n", - "n=1500#rpm\n", - "ia=20.0#A\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ish2=v/(rf+r)\n", - "ia2=ia*1/ish2\n", - "eb2=v-ia2*ra\n", - "eb1=v-ia*ra\n", - "n2=eb2*n/(eb1*ish2)\n", - "\n", - "#result\n", - "print \"new speed=\",round(n2),\"rpm\"\n", - "print \"new armature current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 2939.0 rpm\n", - "new armature current= 40.0 A\n" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.5, Page Number:1033" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "rt=Symbol('rt')\n", - "v=250.0#V\n", - "ra=0.5#ohm\n", - "rf=250.0#ohm\n", - "n=600.0#rpm\n", - "ia=20.0#A\n", - "n2=800.0#rpm\n", - "\n", - "#calculation\n", - "ish1=v/rf\n", - "eb1=v-ia*ra\n", - "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", - "r=rt[0]-rf\n", - "\n", - "#result\n", - "print \"resistance to be inserted=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 88.3128987990058 ohm\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.6, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=1+0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", - "per=1-1/x[0]\n", - "\n", - "#result\n", - "print\"main flux has to be reduced by=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "main flux has to be reduced by= 37.2991677469778 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.7, Page Number:1034" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=10#kW\n", - "i=41#A\n", - "ra=0.2#ohm\n", - "rw=0.05#ohm\n", - "ri=0.1#ohm\n", - "rf=110#ohm\n", - "ratio=1-0.25\n", - "r=1#ohm\n", - "ratio1=1-0.50\n", - "n=2500\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ratio1*ia1/ratio\n", - "eb1=v-ia1*(ra+ri+rw)\n", - "eb2=v-ia2*(r+ra+ri+rw)\n", - "n2=eb2*n/(eb1*ratio)\n", - "\n", - "#result\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"motor speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 26.0 A\n", - "motor speed= 2987.0 rpm\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.8, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "load=15#kW\n", - "n=850#rpm\n", - "ia=72.2#A\n", - "ra=0.25#ohm\n", - "rf=100#ohm\n", - "n2=1650#rpm\n", - "ia2=40#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "ratio=(n*eb2)/(n2*eb1)\n", - "per=1-ratio\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 46.5636857585 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.9, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220#V\n", - "ra=0.5#ohm\n", - "ia=40#A\n", - "ratio=0.50+1\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", - "per=ia/ia2[0]\n", - "\n", - "#result\n", - "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mail flux should be reduced by= 62.7 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.10, Page Number:1035" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=20.0#A\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ratio=0.50\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "eb2=ratio*(v-ia*ra)\n", - "r=(v-eb2)/ia-ra\n", - "\n", - "#result\n", - "print \"resistance required in the series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in the series= 5.25 ohm\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.11, Page Number:1036" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "n=1000#rpm\n", - "ia=8#A\n", - "i_f=1#A\n", - "ra=0.2#ohm\n", - "rf=250#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "eb0=v-(ia-i_f)*ra\n", - "kpsi=eb0/1000\n", - "ia=i-i_f\n", - "eb1=v-ia*ra\n", - "n1=eb1/kpsi\n", - "\n", - "#result\n", - "print \"speed=\",round(n1,1),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 966.2 rpm\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.12, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240#V\n", - "ra=0.25#ohm\n", - "n=1000#rpm\n", - "ia=40#A\n", - "n2=800#rpm\n", - "i2=20#A\n", - "#calculation\n", - "eb=v-ia*ra\n", - "eb2=n2*eb/n\n", - "r=(v-eb2)/(ia)-ra\n", - "eb3=v-i2*(r+ra)\n", - "n3=eb3*n/eb\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"\n", - "print \"speed=\",round(n3),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 1.15 ohm\n", - "speed= 922.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.13, Page Number:1037" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.48#kW\n", - "v=220#V\n", - "n=990#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2#A\n", - "n2=450#rpm\n", - "\n", - "#calculation\n", - "input_p=load*1000/efficiency\n", - "losses=input_p-load*1000\n", - "i=input_p/v\n", - "ia=i-ish\n", - "loss=v*ish\n", - "cu_loss=ia**2*ra\n", - "loss_nl=losses-cu_loss-loss\n", - "eb1=v-20-(ia*ra)\n", - "eb2=n2*eb1/n\n", - "r=(eb1-eb2)/ia\n", - "total_loss=ia**2*(r+ra)+loss+loss_nl\n", - "output=input_p-total_loss\n", - "efficiency=output/(input_p)\n", - "\n", - "#result\n", - "print \"motor input=\",input_p/1000,\"kW\"\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor input= 8.5 kW\n", - "armature current= 36.6363636364 A\n", - "external resistance= 2.93403113016 ohm\n", - "efficiency= 41.6691237902 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.14, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "eb1=230.0#V\n", - "n=990.0#rpm\n", - "n2=500.0#rpm\n", - "ia=25.0#A\n", - "\n", - "#calculation\n", - "eb2=eb1*n2/n\n", - "r=(eb1-eb2)/ia\n", - "\n", - "#result\n", - "print \"resistance required in series=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance required in series= 4.55353535354 ohm\n" - ] - } - ], - "prompt_number": 83 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.15, Page Number:1038" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=20.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k2=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "rf1=v/if1\n", - "rf2=v/if2\n", - "r=rf2-rf1\n", - "\n", - "#result\n", - "print \"resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 100.0 ohm\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.16, Page Number:1039" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "ia2=Symbol('ia2')\n", - "v=220.0#V\n", - "ra=0.4#ohm\n", - "rf=200.0#ohm\n", - "ia=22.0#A\n", - "n=600.0#rpm\n", - "n2=900.0#rpm\n", - "\n", - "#calculation\n", - "if1=v/rf\n", - "eb1=v-ia*ra\n", - "k1=eb1/(if1*n)\n", - "if2=n*if1/n2\n", - "if2=n2*ia/n\n", - "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", - "if2=ia*if1/ia2[0]\n", - "r=v/if2\n", - "\n", - "#result\n", - "print \"new field resistance to be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new field resistance to be added= 306.828780053869 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.17, Page Number:1040" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "output=25#kW\n", - "efficiency=0.85\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=125#ohm\n", - "ratio=1.50\n", - "\n", - "#calculation\n", - "input_p=output*1000/efficiency\n", - "i=input_p/v\n", - "if1=v/rf\n", - "ia=i-if1\n", - "il=ratio*ia\n", - "r=v/il\n", - "r_ext=r-ra\n", - "\n", - "#result\n", - "print \"starting resistance=\",round(r_ext,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 1.341 ohm\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.18, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "n=1000.0#rpm\n", - "ia=17.5#A\n", - "n2=600.0#rpm\n", - "ra=0.4#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "rt=(v-(n2*eb1/n))/ia\n", - "r=rt-ra\n", - "#result\n", - "print \"resistance to be inserted=\",round(r,1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be inserted= 4.4 ohm\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.19, Page Number:1042" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500#V\n", - "ra=1.2#ohm\n", - "rf=500#ohm\n", - "ia=4#A\n", - "n=1000#rpm\n", - "i=26#A\n", - "r=2.3#ohm\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=ia-ish\n", - "eb1=v-ia1*ra\n", - "ia2=i-ish\n", - "eb2=v-ia2*ra\n", - "n2=n*eb2/eb1\n", - "eb2=v-ia2*(r+ra)\n", - "n2_=n*eb2/eb1\n", - "n2__=n*eb2/(eb1*(1-ratio))\n", - "\n", - "#result\n", - "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", - "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", - "speed when shunt field is reduced by 15%= 978.0 rpm\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.20, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ia1=ia2=20.0#A\n", - "n=1000.0#rpm\n", - "ra=0.5#ohm\n", - "n2=500.0#ohm\n", - "\n", - "#calculation\n", - "eb1=v-ia1*ra\n", - "rt=(v-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "ia3=ia2/2\n", - "n3=n*(v-ia3*rt)/eb1\n", - "#result\n", - "print \"speed=\",round(n3),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 771.0 rpm\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.21, Page Number:1043" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "ra1=0.5#ohm\n", - "n=600.0#rpm\n", - "ia2=ia1=20#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "#torque is half the full-load torque\n", - "ia2=1.0/2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 550.0 rpm\n", - "speed at half full-load torque= 588.0 rpm\n" - ] - } - ], - "prompt_number": 137 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.22, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra1=0.5#ohm\n", - "n=500.0#rpm\n", - "ia2=ia1=30.0#A\n", - "r=1.0#ohm\n", - "\n", - "#calculations\n", - "eb1=v-ia1*ra1\n", - "ra2=r+ra1\n", - "eb2=v-ia2*ra2\n", - "n2=eb2*n/eb1\n", - "\n", - "#torque is half the full-load torque\n", - "ia2=2.0*ia1\n", - "eb22=v-ia2*ra2\n", - "n2_=eb22*n/eb1\n", - "#result\n", - "print \"speed at full load torque=\",round(n2),\"rpm\"\n", - "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at full load torque= 427.0 rpm\n", - "speed at double full-load torque= 317.0 rpm\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.23, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3*1000#W\n", - "v=500.0#V\n", - "n=750.0#rpm\n", - "efficiency=0.90\n", - "t2=250.0#N-m\n", - "r=5.0#ohm\n", - "ra=0.5#ohm\n", - "\n", - "#calculation\n", - "t1=load/(2*3.14*(n/60))\n", - "ia1=load/(efficiency*v)\n", - "ia2=ia1*math.sqrt(t2/t1)\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*(r+ra)\n", - "n2=eb2*ia1*n/(eb1*ia2)\n", - "\n", - "#result\n", - "print \"speed at which machine will run=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which machine will run= 381.789716486 rpm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.24, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=7.46*1000#W\n", - "v=220.0#V\n", - "n=900.0#rpm\n", - "efficiency=0.88\n", - "ra=0.08#ohm\n", - "ish=2.0#A\n", - "n2=450.0#rpm\n", - "#calculation\n", - "i=output/(efficiency*v)\n", - "ia2=ia1=i-ish\n", - "eb1=v-ia2*ra\n", - "rt=(v-20-((n2/n)*eb1))/ia2\n", - "r=rt-ra\n", - "input_m=(v)*(ia2+ish)\n", - "total_loss=input_m-output\n", - "cu_loss=ia2**2*ra\n", - "cu_loss_f=v*ish\n", - "total_cu_loss=cu_loss+cu_loss_f\n", - "stray_loss=total_loss-total_cu_loss\n", - "stray_loss2=stray_loss*n2/n\n", - "cu_loss_a=ia1**2*rt\n", - "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", - "output2=input_m-total_loss2\n", - "efficiency=output2*100/input_m\n", - "\n", - "#result\n", - "print \"motor output=\",output2,\"W\"\n", - "print \"armature current=\",ia2,\"A\"\n", - "print \"external resistance=\",r,\"ohm\"\n", - "print \"overall efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 4460.66115702 W\n", - "armature current= 36.5330578512 A\n", - "external resistance= 2.42352222599 ohm\n", - "overall efficiency= 52.619059225 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.25, Page Number:1044" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "ia=15.0#A\n", - "n=800.0#rpm\n", - "ra=0.6#ohm\n", - "n2=400.0#rpm\n", - "\n", - "#calculation\n", - "eb1=v-ia*ra\n", - "r=((v-(n2*eb1/n))/ia)-ra\n", - "ia3=ia/2\n", - "eb3=v-ia3*(r+ra)\n", - "n3=eb3*n/eb1\n", - "\n", - "#result\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 615.584415584 rpm\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.26, Page Number:1045" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "r=Symbol('r')\n", - "v=400.0#V\n", - "inl=3.5#A\n", - "il=59.5#A\n", - "rf=267.0#ohm\n", - "ra=0.2#ohm\n", - "vd=2.0#V\n", - "ratio=0.02\n", - "speed_ratio=0.50\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=inl-ish\n", - "eb1=v-ia1*ra-vd\n", - "ia2=il-ish\n", - "eb2=v-ia2*ra-vd\n", - "n1_by_n2=eb1*(1-ratio)/eb2\n", - "per_change=(1-1/n1_by_n2)*100\n", - "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", - "#result\n", - "print \"change in speed=\",per_change,\"%\"\n", - "print \"resistance to be added=\",r[0],\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "change in speed= 0.83357557339 %\n", - "resistance to be added= 3.33092370774547 ohm\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaraion\n", - "v=200.0#V\n", - "i=50.0#A\n", - "n=1000.0#rpm\n", - "n2=800.0#rpm\n", - "ra=0.1#ohm\n", - "rf=100.0#ohm\n", - "\n", - "#calculations\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ia2=ia1*(n2/n)**2\n", - "eb1=v-ia1*ra\n", - "eb2=v-ia2*ra\n", - "rt=(v-(n2*eb1/n))/ia2\n", - "r=rt-ra\n", - "#result\n", - "print \"resustance that must be added=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resustance that must be added= 1.32708333333 ohm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "load=37.3#kW\n", - "efficiency=0.90\n", - "n=1000#rpm\n", - "ra=0.1#ohm\n", - "rf=115#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "tsh=9.55*load*1000/n\n", - "i=load*1000/(v*efficiency)\n", - "ish=v/rf\n", - "ia=i-ish\n", - "eb=v-ia*ra\n", - "ta=9.55*eb*ia/n\n", - "i_permissible=i*ratio\n", - "ia_per=i_permissible-ish\n", - "ra_total=v/ia_per\n", - "r_required=ra_total-ra\n", - "torque=ratio*ta\n", - "#result\n", - "print \"net torque=\",ta,\"N-m\"\n", - "print \"starting resistance=\",r_required,\"ohm\"\n", - "print \"torque developed at starting=\",torque,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "net torque= 365.403326173 N-m\n", - "starting resistance= 0.913513513514 ohm\n", - "torque developed at starting= 548.104989259 N-m\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.29, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "I=Symbol('I')\n", - "v=200.0#V\n", - "rf=40.0#ohm\n", - "ra=0.02#ohm\n", - "i=55.0#A\n", - "n=595.0#rpm\n", - "r=0.58#ohm\n", - "n2=630.0#rpm\n", - "ia_=15.0#A\n", - "rd=5.0#ohm\n", - "ia2=50.0#A\n", - "\n", - "#calculation\n", - "ish=v/rf\n", - "ia1=i-ish\n", - "ra1=r+ra\n", - "eb1=v-ra1*ia1\n", - "ia2=ia1\n", - "eb2=eb1*(n2/n)\n", - "r=(v-eb2)/ia1\n", - "eb2_=v-ia_*ra1\n", - "n2=eb2_*n/eb1\n", - "eb3=eb1\n", - "IR=v-eb3-ia2*ra\n", - "pd=v-IR\n", - "i_d=pd/rd\n", - "i=ia2+i_d\n", - "R=IR/i\n", - "I=solve(rd*(I-ia_)-v+R*I,I)\n", - "eb4=v-R*I[0]-ia_*ra\n", - "n4=n*(eb4/eb1)\n", - "\n", - "#result\n", - "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", - "print \"speed when Ia=\",n2,\"rpm\"\n", - "print \"value of series resistance=\",R,\"ohm\"\n", - "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature circuit resistance should be reduced by= 0.2 ohm\n", - "speed when Ia= 668.5 rpm\n", - "value of series resistance= 0.344418052257 ohm\n", - "speed when motor current falls to 15A= 636.922222222222 rpm\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.31, Page Number:1051" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=15#A\n", - "n=600#rpm\n", - "\n", - "#calculation\n", - "ia2=math.sqrt(2*2**0.5*i**2)\n", - "n2=n*2*i/ia2\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"current=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 713.524269002 rpm\n", - "current= 25.2268924576 A\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.32, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=707#rpm\n", - "ia1=100#A\n", - "v=85#V\n", - "rf=0.03#ohm\n", - "ra=0.04#ohm\n", - "\n", - "#calculation\n", - "ra_total=ra+(2*rf)\n", - "eb1=v-ia1*ra_total\n", - "ia2=ia1*2**0.5\n", - "rf=rf/2\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", - "rt=(v-((n/n2)*eb2))/ia2\n", - "r=rt-ra-rf\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1029.46885374 rpm\n", - "additional resistance= 0.171040764009 ohm\n" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.33, Page Number:1052" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varable declaration\n", - "v=240.0#V\n", - "ia=40.0#A\n", - "ra=0.3#ohm\n", - "n=1500.0#rpm\n", - "n2=1000.0#rpm\n", - "#calculation\n", - "R=v/ia-ra\n", - "eb1=v-ia*ra\n", - "r=(v-((n2/n)*eb1))/ia-ra\n", - "\n", - "#result\n", - "print \"resistance to be added at starting=\",R,\"ohm\"\n", - "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added at starting= 5.7 ohm\n", - "resistance to be added at 1000 rpm 1.9 ohm\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.34, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=600.0#rpm\n", - "v=250.0#V\n", - "ia1=20.0#A\n", - "ratio=2.0\n", - "\n", - "#calculations\n", - "ia2=ia1*2**(3.0/4.0)\n", - "n2=n*ratio*ia1/ia2\n", - "\n", - "#result\n", - "print \"current=\",ia2,\"A\"\n", - "print \"speed=\",n2,\"rpm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 33.6358566101 A\n", - "speed= 713.524269002 rpm\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.35, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "V=Symbol('V')\n", - "ra=1.0#ohm\n", - "v=220.0#V\n", - "n=350.0#rpm\n", - "ia=25.0#A\n", - "n2=500.0#rpm\n", - "\n", - "#calculation\n", - "ia2=ia*(n2/n)\n", - "eb1=v-ia*ra\n", - "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", - "\n", - "#result\n", - "print \" current=\",ia2,\"A\"\n", - "print \"voltage=\",V[0],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " current= 35.7142857143 A\n", - "voltage= 433.673469387755 V\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.36, Page Number:1053" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000.0#rpm\n", - "ia=20.0#A\n", - "v=200.0#V\n", - "ra=0.5#ohm\n", - "rf=0.2#ohm\n", - "i=20.0#A\n", - "rd=0.2#ohm\n", - "i_f=10.0#A\n", - "ratio=0.70\n", - "\n", - "#calculation\n", - "eb1=v-(ra+rf)*ia\n", - "r_total=ra+rf/2\n", - "eb2=v-r_total*ia\n", - "n2=(eb2*n/(eb1*ratio))\n", - " \n", - "#result\n", - "print \"speed=\",round(n2),\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1444.0 rpm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.37, Page Number:1054" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200.0#V\n", - "ia=40.0#A\n", - "n=700.0#rpm\n", - "ratio=0.50+1\n", - "ra=0.15#ohm\n", - "rf=0.1#ohm\n", - "\n", - "#calculations\n", - "ia2=(ratio*2*ia**2)**0.5\n", - "eb1=v-ia*(ra+rf)\n", - "eb2=v-ia2*(ra+rf)\n", - "n2=(eb2/eb1)*(ia*2/ia2)*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"\n", - "print \"speed=\",ia2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 777.147765122 rpm\n", - "speed= 69.2820323028 A\n" - ] - } - ], - "prompt_number": 63 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.38, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250#V\n", - "ia=20#A\n", - "n=900#rpm\n", - "r=0.025#ohm\n", - "ra=0.1#ohm\n", - "rd=0.2#ohm\n", - "\n", - "#calculation\n", - "#when divertor is added\n", - "eb1=v-ia*(ra+4*r)\n", - "ia2=(ia**2*(ra+rd)/rd)**0.5\n", - "ra_=rd*ra/(ra+rd)\n", - "eb2=v-ia2*ra_\n", - "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", - "\n", - "#rearranged field coils in two series and parallel group\n", - "ia2=(ia**2*2)**0.5\n", - "r=ra+r\n", - "eb2=v-ia2*r\n", - "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", - "\n", - "#result\n", - "print \"speed when divertor was added=\",n2,\"rpm\"\n", - "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed when divertor was added= 1112.87640676 rpm\n", - "speed when field coils are rearranged= 1275.19533144 rpm\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.39, Page Number:1055" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "n=1000.0#rpm\n", - "i=12.0#A\n", - "rf=0.8#ohm\n", - "ra=1.0#ohm\n", - "il=20#A\n", - "ratio=0.15\n", - "\n", - "#calculation\n", - "eb1=v-i*(ra+rf)\n", - "eb2=v-il*(ra+rf/4)\n", - "n2=(eb2/eb1)*(1/(1-ratio))*n\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1162.92198261 rpm\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.40, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=200.0#v\n", - "n=500.0#rpm\n", - "i=25.0#A\n", - "ra=0.2#ohm\n", - "rf=0.6#ohm\n", - "rd=10.0#ohm\n", - "\n", - "#calculation\n", - "r=ra+rf\n", - "eb1=v-i*r\n", - "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", - "pd=v-i2[1]*rf\n", - "ia2=((rd+rf)*i2[1]-v)/rd\n", - "eb2=pd-ia2*ra\n", - "n2=(eb2/eb1)*(i/i2[1])*n\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 342.848235418389 rpm\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.41, Page Number:1056" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "ra=0.3#ohm\n", - "i=20#A\n", - "n=1200#rpm\n", - "r=3#ohm\n", - "i2=15#A\n", - "ratio=0.80\n", - "\n", - "#calculation\n", - "eb1=v-i*ra\n", - "eb2=v-(r+ra)*i2\n", - "n2=n*(eb2/eb1)/ratio\n", - "power_ratio=(n*i)/(n2*i2*ratio)\n", - "\n", - "#result\n", - "print \"new speed=\",n2,\"rpm\"\n", - "print \"ratio of power outputs=\",power_ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new speed= 1349.65437788 rpm\n", - "ratio of power outputs= 1.48186086214\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.42, Page Number:1057" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=50#A\n", - "v=460#V\n", - "ratio=1-0.25\n", - "\n", - "#calculation\n", - "I=(i**2*ratio**3)**0.5\n", - "eb2=I*ratio*v/i\n", - "R=(v-eb2)/I\n", - "pa=v*i/1000\n", - "power_n=pa*ratio**4\n", - "pa=eb2*I\n", - "\n", - "#result\n", - "print \"Resistance required=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Resistance required= 7.26432660412 ohm\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.44, Page Number:1060" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=500#rpm\n", - "n2=550#rpm\n", - "i=50#A\n", - "v=500#V\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "eb1=v-i*r\n", - "kphi1=eb1/n\n", - "eb2=v-i*r\n", - "kphi2=eb2/n2\n", - "eb_=v-i*2*r\n", - "n=eb_/((eb1/n2)+(eb2/n))\n", - "#result\n", - "print \"speed=\",n,\"rpm\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 248.120300752 rpm\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.45, Page Number:1061" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=14.92#kW\n", - "v=250#V\n", - "n=1000#rpm\n", - "ratio1=5.0\n", - "ratio2=4.0\n", - "t=882#N-m\n", - "\n", - "#calculation\n", - "i=load*1000/v\n", - "k=v/(n*i/60)\n", - "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", - "nsh=v/((ratio1+ratio2)*k*I)\n", - "eb1=ratio1*k*I*nsh\n", - "eb2=ratio2*k*I*nsh\n", - "\n", - "#result\n", - "print \"current=\",I,\"A\"\n", - "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", - "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 49.5202984449 A\n", - "speed of shaft= 134.0 rpm\n", - "voltage across the motors= 139.0 V, 111.0 V\n" - ] - } - ], - "prompt_number": 117 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.46, Page Number:1063" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220#V\n", - "t=700#N-m\n", - "n=1200#rpm\n", - "ra=0.008#ohm\n", - "rf=55#ohm\n", - "efficiency=0.90\n", - "t2=375#N-m\n", - "n2=1050#rpm\n", - "\n", - "#calculation\n", - "output=2*3.14*n*t/60\n", - "power_m=output/efficiency\n", - "im=power_m/v\n", - "ish=v/rf\n", - "ia1=im-ish\n", - "eb1=v-ia1*ra\n", - "ia2=ia1*t2/t\n", - "eb2=eb1*n2/n\n", - "r=eb2/ia2-ra\n", - "\n", - "#result\n", - "print \"dynamic break resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "dynamic break resistance= 0.795525014538 ohm\n" - ] - } - ], - "prompt_number": 118 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.47, Page Number:1064" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "load=18.65#kW\n", - "n=450.0#rpm\n", - "efficiency=0.746\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "I=load*1000/(efficiency*v)\n", - "eb=v-I*ra\n", - "vt=v+eb\n", - "i_max=2*I\n", - "r=vt/i_max\n", - "R=r-ra\n", - "N=n/60\n", - "phizp_by_a=eb/N\n", - "k4=phizp_by_a*v/(2*3.14*r)\n", - "k3=phizp_by_a**2/(2*3.14*r)\n", - "tb=k4+k3*N\n", - "tb0=k4\n", - "#result\n", - "print \"breaking resistance=\",R,\"ohm\"\n", - "print \"maximum breaking torque=\",tb,\"N-m\"\n", - "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "breaking resistance= 6.1 ohm\n", - "maximum breaking torque= 1028.3970276 N-m\n", - "maximum breaking torque when N=0 = 522.360394972 N-m\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.48, Page Number:1069" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=120#V\n", - "ra=0.5#ohm\n", - "l=20*0.001#H\n", - "ka=0.05#V/rpm motor constant\n", - "ia=20#A\n", - "\n", - "#calculations\n", - "vt=ia*ra\n", - "alpha=vt/v\n", - "#when alpha=1\n", - "eb=v-ia*ra\n", - "N=eb/ka\n", - "\n", - "#result\n", - "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", - "print \"range of duty cycle=\",(alpha),\"to\",1" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " range of speed control= 0 to 2200.0 rpm\n", - "range of duty cycle= 0.0833333333333 to 1\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.49, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=7.46#kW\n", - "v=200#V\n", - "efficiency=0.85\n", - "ra=0.25#ohm\n", - "ratio=1.5\n", - "\n", - "#calculation\n", - "i=load*1000/(v*efficiency)\n", - "i1=ratio*i\n", - "r1=v/i1\n", - "r_start=r1-ra\n", - "eb1=v-i*r1\n", - "\n", - "#result\n", - "print \"starting resistance=\",r_start,\"ohm\"\n", - "print \"back emf=\",eb1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting resistance= 2.78842716711 ohm\n", - "back emf= 66.6666666667 V\n" - ] - } - ], - "prompt_number": 125 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.50, Page Number:1080" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "ra=0.5#ohm\n", - "ia=40.0#A\n", - "n=7\n", - "\n", - "#calculations\n", - "r1=v/ia\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.812 ohm\n", - "resistance of 2nd section= 1.215 ohm\n", - "resistance of 3rd section= 0.815 ohm\n", - "resistance of 4th section= 0.546 ohm\n", - "resistance of 5th section= 0.366 ohm\n", - "resistance of 6th section= 0.246 ohm\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.51, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=6\n", - "load=3.73#kW\n", - "v=200#V\n", - "ratio=0.50\n", - "i1=0.6#A\n", - "efficiency=0.88\n", - "\n", - "#calculation\n", - "output=load/efficiency\n", - "total_loss=output-load\n", - "cu_loss=total_loss*ratio\n", - "i=output*1000/v\n", - "ia=i-i1\n", - "ra=cu_loss*1000/ia**2\n", - "i_per=i*2\n", - "ia_per=i_per-i1\n", - "r1=v/ia_per\n", - "k=(r1/ra)**(1.0/(n-1))\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-ra\n", - "\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 1.627 ohm\n", - "resistance of 2nd section= 1.074 ohm\n", - "resistance of 3rd section= 0.709 ohm\n", - "resistance of 4th section= 0.468 ohm\n", - "resistance of 5th section= 0.309 ohm\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.52, Page Number:1081" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=7\n", - "load=36.775#kW\n", - "v=400#V\n", - "ratio=0.05\n", - "rsh=200#ohm\n", - "efficiency=0.92\n", - "\n", - "#calculation\n", - "input_m=load*1000/efficiency\n", - "cu_loss=input_m*ratio\n", - "cu_loss_sh=v**2/rsh\n", - "cu_loss_a=cu_loss-cu_loss_sh\n", - "i=input_m/v\n", - "ish=v/rsh\n", - "ia=i-ish\n", - "ra=cu_loss_a/ia**2\n", - "k=(v/(ia*ra))**(1.0/(n))\n", - "i1=k*ia\n", - "r1=v/i1\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r5/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.974 ohm\n", - "resistance of 2nd section= 0.592 ohm\n", - "resistance of 3rd section= 0.36 ohm\n", - "resistance of 4th section= 0.219 ohm\n", - "resistance of 5th section= 0.133 ohm\n", - "resistance of 6th section= 0.0 ohm\n", - "resistance of 7th section= 0.081 ohm\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.53, Page Number:1082" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=250.0#V\n", - "ra=0.125#ohm\n", - "i2=150.0#A\n", - "i1=200.0#A\n", - "\n", - "#calculation\n", - "r1=v/i1\n", - "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", - "k=i1/i2\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "r5=r4/k\n", - "r6=r5/k\n", - "r7=r6/k\n", - "r8=r7/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-r5\n", - "p5=r5-r6\n", - "p6=r6-r7\n", - "p7=r7-r8\n", - "p8=r8-ra\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", - "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", - "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", - "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 0.313 ohm\n", - "resistance of 2nd section= 0.234 ohm\n", - "resistance of 3rd section= 0.176 ohm\n", - "resistance of 4th section= 0.132 ohm\n", - "resistance of 5th section= 0.099 ohm\n", - "resistance of 6th section= 0.074 ohm\n", - "resistance of 7th section= 0.056 ohm\n", - "resistance of 8th section= 0.042 ohm\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.54, Page Number:1083" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "n=Symbol('n')\n", - "v=500#V\n", - "z=20\n", - "ra=1.31#ohm\n", - "t=218#N-m\n", - "ratio=1.5\n", - "slot=60\n", - "phi=23*0.001#Wb\n", - "\n", - "#calculation\n", - "ia=t/(0.159*phi*slot*z)\n", - "i1=ia*ratio\n", - "i2=ia\n", - "k=i1/i2\n", - "r1=v/i1\n", - "n=solve(k**(n-1)-(r1/ra),n)\n", - "r2=r1/k\n", - "r3=r2/k\n", - "r4=r3/k\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "p4=r4-ra\n", - "\n", - "#result\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", - "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of 1st section= 2.237 ohm\n", - "resistance of 2nd section= 1.491 ohm\n", - "resistance of 3rd section= 0.994 ohm\n", - "resistance of 4th section= 0.678 ohm\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.55, Page Number:1084" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=37.3#kW\n", - "v=440#V\n", - "drop=0.02\n", - "efficiency=0.95\n", - "i_per=1.30\n", - "\n", - "#calculation\n", - "il=load*1000/(v*efficiency)\n", - "i1=i_per*il\n", - "vd=drop*v\n", - "rm=vd/il\n", - "r1=v/i1\n", - "r=(r1-rm)/6\n", - "\n", - "#result\n", - "print \"resistance of each rheostat=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance of each rheostat= 0.615721729566 ohm\n" - ] - } - ], - "prompt_number": 165 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 30.56, Page Number:1085" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=55.95#kW\n", - "v=650.0#V\n", - "r=0.51#ohm\n", - "i1=140.0#A\n", - "i2=100.0#A\n", - "per=0.20\n", - "\n", - "#calculation\n", - "ratio=i1/i2\n", - "r1=v/i1\n", - "r2=((per+1)/ratio-per)*r1\n", - "r3=(per+1)*r2/ratio-per*r1\n", - "r4=((per+1)*r3/ratio)-per*r1\n", - "\n", - "p1=r1-r2\n", - "p2=r2-r3\n", - "p3=r3-r4\n", - "\n", - "#result\n", - "print \"number of steps=\",3\n", - "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", - "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", - "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "number of steps= 3\n", - "resistance of 1st section= 1.592 ohm\n", - "resistance of 2nd section= 1.364 ohm\n", - "resistance of 3rd section= 1.17 ohm\n" - ] - } - ], - "prompt_number": 170 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31.ipynb deleted file mode 100644 index 88c66f5b..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31.ipynb +++ /dev/null @@ -1,935 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 31: Testing of DC Machines" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.1, Page Number:1092" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l=38.1#kg\n", - "d=63.53*0.01#cm\n", - "v=12#rps\n", - "i=49#A\n", - "V=220#V\n", - "\n", - "#calculations\n", - "r=d/2\n", - "torque=l*r*9.81\n", - "power=torque*2*3.14*v\n", - "motor_input=i*V\n", - "efficiency=power*100/motor_input\n", - "\n", - "#result\n", - "print \"Output power=\",round(power),\"W\"\n", - "print \"Efficiency=\",round(efficiency),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output power= 8947.0 W\n", - "Efficiency= 83.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(a), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "spring_b1=10.0#kg\n", - "spring_b2=35.0#kg\n", - "d=40*0.01#m\n", - "v=950.0#rpm\n", - "V=200.0#V\n", - "i=30.0#A\n", - "\n", - "#calculations\n", - "F=(spring_b2-spring_b1)*9.81\n", - "N=v/60\n", - "R=d/2\n", - "tsh=F*R\n", - "omega=2*3.14*N\n", - "output=tsh*omega\n", - "motor_input=V*i\n", - "efficiency=output/motor_input\n", - "\n", - "#result\n", - "print \"output power=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 4877.205 W\n", - "efficiency= 81.28675 %\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(b), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "t1=2.9#kg\n", - "t2=0.17#kg\n", - "r=7*0.01#m\n", - "i=2.0#A\n", - "V=230.0#V\n", - "n=1500.0#rpm\n", - "\n", - "#calculations\n", - "force=(t1-t2)*9.81\n", - "torque=force*r\n", - "output=torque*2*3.14*n/60\n", - "efficiency=output/(V*i)\n", - "\n", - "#result\n", - "print \"torque=\",torque,\"N-m\"\n", - "print \"output\",output,\"W\"\n", - "print \"efficiency\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1.874691 N-m\n", - "output 294.326487 W\n", - "efficiency 63.984018913 %\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.3, Page Number:1095" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=220.0#V\n", - "i=2.5#A\n", - "ra=0.8#ohm\n", - "rsh=200.0#ohm\n", - "I=20.0#A\n", - "\n", - "#calculations\n", - "input_noload=V*i\n", - "ish=V/rsh\n", - "ia0=i-ish\n", - "culoss=ia0**2*ra\n", - "constant_loss=input_noload-culoss\n", - "ia=32-ish\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "input_=V*I\n", - "output=input_-total_loss\n", - "efficiency=(output/input_)*100\n", - "\n", - "#result\n", - "print \"Efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 70.1754545455 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.4, Page Number:1096" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "V=400.0#V\n", - "i=5.0#A\n", - "ra=0.5#ohm\n", - "r=200.0#ohm\n", - "I=50.0#A\n", - "\n", - "#calculations\n", - "input_nl=V*i\n", - "ish=V/r\n", - "ia=i-ish\n", - "cu_loss=ia**2*ra\n", - "constant_loss=input_nl-cu_loss\n", - "Ia=I-ish\n", - "cu_lossa=Ia**2*ra\n", - "total_loss=constant_loss+cu_lossa\n", - "input_nl1=V*I\n", - "output=input_nl1-total_loss\n", - "efficiency=output/input_nl\n", - "Eb1=V-(ia*ra)\n", - "Eb2=V-(Ia*ra)\n", - "change=math.fabs((Eb1-Eb2)/Eb1)\n", - "\n", - "#result\n", - "print \"output=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*10,\"%\"\n", - "print \"percentage change in speed=\",change*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 16852.5 W\n", - "efficiency= 84.2625 %\n", - "percentage change in speed= 5.64617314931 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.8, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=200*1000.0#W\n", - "v=250.0#V\n", - "i1=36.0#A\n", - "I1=12.0#A\n", - "v1=250.0#V\n", - "pd=6.0#V\n", - "i2=400.0#A\n", - "\n", - "#calculations\n", - "#no load\n", - "ia=i1-I1\n", - "ra=pd/i2\n", - "cu_loss=ia**2*ra\n", - "input_nl=v*i1\n", - "constant_loss=input_nl-cu_loss\n", - "\n", - "#full load\n", - "output_i=p/v\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/(p+total_loss)\n", - "#result\n", - "print \"efficiency at full load=\",efficiency*100,\"%\"\n", - "\n", - "#half load\n", - "output_i=p/(2*v)\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/((p/2+total_loss)*2)\n", - "\n", - "#result\n", - "print \"efficiency at half load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at full load= 91.3736344667 %\n", - "efficiency at half load= 89.6559292335 %\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.9, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "p=14.92*1000#W\n", - "e=0.88\n", - "n=700.0#rpn\n", - "rsh=100.0#ohm\n", - "i=78.0#A\n", - "\n", - "#calculations\n", - "input_=0.8*p/e\n", - "total_loss=input_-0.8*p\n", - "input_i=input_/v\n", - "ish=v/rsh\n", - "ia=input_i-ish\n", - "ra=total_loss/(2*(ia**2))\n", - "Ia=i-ish\n", - "total_loss2=Ia**2*ra+total_loss/2\n", - "input__=v*i\n", - "efficiency=(input__-total_loss2)*100/input__\n", - "Eb1=v-(ia*ra)\n", - "Eb2=v-(Ia*ra)\n", - "n2=(n*Eb2)/Eb1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"speed=\",n2,\"r.p.m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 86.9450046554 %\n", - "speed= 678.443304738 r.p.m\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.10(a), Page Number:1101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "p=100*1000.0#W\n", - "i2=90.0#A\n", - "\n", - "#calculations\n", - "i1=p/v\n", - "efficiency=math.sqrt(i1/(i1+i2))*100\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.4 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.11, Page Number:1102" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=15#A\n", - "v=200#V\n", - "motor_i=100#A\n", - "shunt_i1=3#A\n", - "shunt_i2=2.5#A\n", - "ra=0.05#ohm\n", - "cu_loss=500#W\n", - "cu_lossa=361#W\n", - "ia=85#A\n", - "#calculations\n", - "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", - "cu_motor=v*shunt_i1\n", - "generator_motor=v*shunt_i2\n", - "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", - "input_=v*i+cu_motor\n", - "output=v*ia*10**(-3)\n", - "loss=cu_loss*10**(-3)+1.07+0.36\n", - "efficiency=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"eficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eficiency= 89.8045430534 %\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.12, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=110#V\n", - "i=48#A\n", - "i1=3#a\n", - "i2=3.5#A\n", - "motor_i=230#A\n", - "ra=0.035#ohm\n", - "\n", - "#calculations\n", - "#motor\n", - "cu_loss=motor_i**2*ra\n", - "brush_loss=motor_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i1\n", - "total_cu_lossm=totalarm_culoss+shunt_cu\n", - "#generator\n", - "arm_i=233-i+i2\n", - "cu_loss=arm_i**2*ra\n", - "brush_loss=arm_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i2\n", - "total_cu_lossg=totalarm_culoss+shunt_cu\n", - "#set\n", - "totalcu_loss=total_cu_lossm+total_cu_lossg\n", - "total_input=v*i\n", - "stray_loss=total_input-totalcu_loss\n", - "strayloss_per=stray_loss/2\n", - "#motor efficiency\n", - "input_=233*v\n", - "output=input_-(total_cu_lossm+strayloss_per)\n", - "e=output/input_*100\n", - "print \"motor efficiency=\",e,\"%\"\n", - "#generator efficiency\n", - "input_=110*185\n", - "output=input_-(total_cu_lossg+strayloss_per)\n", - "e=output/input_*100\n", - "100\n", - "print \"generator efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.4590884705 %\n", - "generator efficiency= 88.5893642506 %\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.13, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable series\n", - "v=500.0#A\n", - "p=100*1000.0#w\n", - "auxiliary_i=30.0#A\n", - "output_i=200.0#A\n", - "i1=3.5#A\n", - "i2=1.8#A\n", - "ra=0.075#ohm\n", - "vdb=2.0#V\n", - "\n", - "#calculations\n", - "motor_arm=output_i+auxiliary_i\n", - "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", - "motorfield_culoss=v*i2\n", - "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", - "generatoefield_culoss=v*i1\n", - "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", - "power=v*auxiliary_i\n", - "stray_loss=power-total_culoss\n", - "permachine=stray_loss/2\n", - "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", - "output=v*output_i\n", - "e=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 93.1001175389 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.14, Page Number:1104" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "motor_i=400.0#A\n", - "i1=6.0#A\n", - "i2=5.0#A\n", - "ra=0.015#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=motor_i**2*ra\n", - "generatora_culoss=(motor_i-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*motor_i)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(motor_i-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 92.3148148148 %\n", - "generator efficiency 91.4642857143 %\n" - ] - } - ], - "prompt_number": 77 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.15, Page Number:1105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "ia=380.0#A\n", - "i1=5.0#A\n", - "i2=4.2#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=ia**2*ra\n", - "generatora_culoss=(ia-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*ia)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(ia-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.7038001041 %\n", - "generator efficiency 95.2121212121 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.16, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "v2=190.0#V\n", - "t=30#sec\n", - "t2=20#sec\n", - "i=20.0#A\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "avg_i=i/2\n", - "power=avg_v*avg_i\n", - "W=power*(t2/(t-t2))\n", - "\n", - "#result\n", - "print \"Stray loss=\",W,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Stray loss= 4100.0 W\n" - ] - } - ], - "prompt_number": 85 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.17, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "n1=1525.0#rpm\n", - "n2=1475.0#ohm\n", - "dt=25.0#sec\n", - "p=1000.0#W\n", - "t2=20.0#sec\n", - "\n", - "#calculations\n", - "N=(n1+n2)/2\n", - "w=p*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", - "\n", - "#result\n", - "print \"Moment of Inertia=\",I,\"kg-m2\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Moment of Inertia= 121.708791432 kg-m2\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.18, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "v2=225.0#V\n", - "dt=25.0#sec\n", - "t2=6.0#ohm\n", - "iavg=10.0#A\n", - "i2=25.0#A\n", - "v3=250.0#V\n", - "ra=0.4#ohm\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "w_=avg_v*iavg\n", - "W=w_*(t2/(dt-t2))\n", - "ish=v3/r\n", - "ia=i2-ish\n", - "cu_loss=ia**2*ra\n", - "cu_shunt=v3*ia\n", - "total_loss=W+cu_loss+v3\n", - "e=((v*i2)-total_loss)/(v*i2)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "734.210526316\n", - "efficiency= 79.7564912281 %\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.19, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "n1=1030#rpm\n", - "n2=970#rpm\n", - "t1=36#sec\n", - "t2=15#sec\n", - "t3=9#sec\n", - "i=10#A\n", - "v=219#V\n", - "\n", - "#calculations\n", - "W=v*i*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", - "Wm=W*t2/t1\n", - "iron_loss=W-Wm\n", - "\n", - "#result\n", - "print \"i)moment of inertia=\",I,\"kg.m2\"\n", - "print \"ii)iron loss=\",iron_loss,\"W\"\n", - "print \"iii)mechanical losses=\",Wm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)moment of inertia= 74.9650087225 kg.m2\n", - "ii)iron loss= 1916.25 W\n", - "iii)mechanical losses= 1368.75 W\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.20, Page Number:1110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "iam=56.0#A\n", - "vam=590.0#V\n", - "vdm=40.0#V\n", - "iag=44.0#A\n", - "vag=400.0#V\n", - "vdg=40.0#V\n", - "r=0.3#ohm\n", - "\n", - "#calculations\n", - "input_total=(vdm+vam)*iam\n", - "output=vag*iag\n", - "total_loss=input_total-output\n", - "rse=vdg/iam\n", - "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", - "strayloss=total_loss-cu_loss\n", - "permachine=strayloss/2\n", - "#motor\n", - "inputm=vam*iam\n", - "culossm=(r+rse)*iam**2\n", - "totallossm=culossm+permachine\n", - "output=inputm-totallossm\n", - "em=output*100/inputm\n", - "#generator\n", - "inputg=vag*iag\n", - "culossg=(r)*iag**2\n", - "totalloss=culossg+permachine+(vdm*iam)\n", - "output=vag*iag\n", - "eg=output*100/(output+totalloss)\n", - "\n", - "print \n", - "#result\n", - "print \"motor efficiency=\",em,\"%\"\n", - "print \"generator efficiency=\",eg,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "motor efficiency= 72.6997578692 %\n", - "generator efficiency= 67.0220868241 %\n" - ] - } - ], - "prompt_number": 115 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_1.ipynb deleted file mode 100644 index 88c66f5b..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_1.ipynb +++ /dev/null @@ -1,935 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 31: Testing of DC Machines" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.1, Page Number:1092" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l=38.1#kg\n", - "d=63.53*0.01#cm\n", - "v=12#rps\n", - "i=49#A\n", - "V=220#V\n", - "\n", - "#calculations\n", - "r=d/2\n", - "torque=l*r*9.81\n", - "power=torque*2*3.14*v\n", - "motor_input=i*V\n", - "efficiency=power*100/motor_input\n", - "\n", - "#result\n", - "print \"Output power=\",round(power),\"W\"\n", - "print \"Efficiency=\",round(efficiency),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output power= 8947.0 W\n", - "Efficiency= 83.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(a), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "spring_b1=10.0#kg\n", - "spring_b2=35.0#kg\n", - "d=40*0.01#m\n", - "v=950.0#rpm\n", - "V=200.0#V\n", - "i=30.0#A\n", - "\n", - "#calculations\n", - "F=(spring_b2-spring_b1)*9.81\n", - "N=v/60\n", - "R=d/2\n", - "tsh=F*R\n", - "omega=2*3.14*N\n", - "output=tsh*omega\n", - "motor_input=V*i\n", - "efficiency=output/motor_input\n", - "\n", - "#result\n", - "print \"output power=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 4877.205 W\n", - "efficiency= 81.28675 %\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(b), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "t1=2.9#kg\n", - "t2=0.17#kg\n", - "r=7*0.01#m\n", - "i=2.0#A\n", - "V=230.0#V\n", - "n=1500.0#rpm\n", - "\n", - "#calculations\n", - "force=(t1-t2)*9.81\n", - "torque=force*r\n", - "output=torque*2*3.14*n/60\n", - "efficiency=output/(V*i)\n", - "\n", - "#result\n", - "print \"torque=\",torque,\"N-m\"\n", - "print \"output\",output,\"W\"\n", - "print \"efficiency\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1.874691 N-m\n", - "output 294.326487 W\n", - "efficiency 63.984018913 %\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.3, Page Number:1095" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=220.0#V\n", - "i=2.5#A\n", - "ra=0.8#ohm\n", - "rsh=200.0#ohm\n", - "I=20.0#A\n", - "\n", - "#calculations\n", - "input_noload=V*i\n", - "ish=V/rsh\n", - "ia0=i-ish\n", - "culoss=ia0**2*ra\n", - "constant_loss=input_noload-culoss\n", - "ia=32-ish\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "input_=V*I\n", - "output=input_-total_loss\n", - "efficiency=(output/input_)*100\n", - "\n", - "#result\n", - "print \"Efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 70.1754545455 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.4, Page Number:1096" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "V=400.0#V\n", - "i=5.0#A\n", - "ra=0.5#ohm\n", - "r=200.0#ohm\n", - "I=50.0#A\n", - "\n", - "#calculations\n", - "input_nl=V*i\n", - "ish=V/r\n", - "ia=i-ish\n", - "cu_loss=ia**2*ra\n", - "constant_loss=input_nl-cu_loss\n", - "Ia=I-ish\n", - "cu_lossa=Ia**2*ra\n", - "total_loss=constant_loss+cu_lossa\n", - "input_nl1=V*I\n", - "output=input_nl1-total_loss\n", - "efficiency=output/input_nl\n", - "Eb1=V-(ia*ra)\n", - "Eb2=V-(Ia*ra)\n", - "change=math.fabs((Eb1-Eb2)/Eb1)\n", - "\n", - "#result\n", - "print \"output=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*10,\"%\"\n", - "print \"percentage change in speed=\",change*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 16852.5 W\n", - "efficiency= 84.2625 %\n", - "percentage change in speed= 5.64617314931 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.8, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=200*1000.0#W\n", - "v=250.0#V\n", - "i1=36.0#A\n", - "I1=12.0#A\n", - "v1=250.0#V\n", - "pd=6.0#V\n", - "i2=400.0#A\n", - "\n", - "#calculations\n", - "#no load\n", - "ia=i1-I1\n", - "ra=pd/i2\n", - "cu_loss=ia**2*ra\n", - "input_nl=v*i1\n", - "constant_loss=input_nl-cu_loss\n", - "\n", - "#full load\n", - "output_i=p/v\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/(p+total_loss)\n", - "#result\n", - "print \"efficiency at full load=\",efficiency*100,\"%\"\n", - "\n", - "#half load\n", - "output_i=p/(2*v)\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/((p/2+total_loss)*2)\n", - "\n", - "#result\n", - "print \"efficiency at half load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at full load= 91.3736344667 %\n", - "efficiency at half load= 89.6559292335 %\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.9, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "p=14.92*1000#W\n", - "e=0.88\n", - "n=700.0#rpn\n", - "rsh=100.0#ohm\n", - "i=78.0#A\n", - "\n", - "#calculations\n", - "input_=0.8*p/e\n", - "total_loss=input_-0.8*p\n", - "input_i=input_/v\n", - "ish=v/rsh\n", - "ia=input_i-ish\n", - "ra=total_loss/(2*(ia**2))\n", - "Ia=i-ish\n", - "total_loss2=Ia**2*ra+total_loss/2\n", - "input__=v*i\n", - "efficiency=(input__-total_loss2)*100/input__\n", - "Eb1=v-(ia*ra)\n", - "Eb2=v-(Ia*ra)\n", - "n2=(n*Eb2)/Eb1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"speed=\",n2,\"r.p.m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 86.9450046554 %\n", - "speed= 678.443304738 r.p.m\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.10(a), Page Number:1101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "p=100*1000.0#W\n", - "i2=90.0#A\n", - "\n", - "#calculations\n", - "i1=p/v\n", - "efficiency=math.sqrt(i1/(i1+i2))*100\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.4 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.11, Page Number:1102" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=15#A\n", - "v=200#V\n", - "motor_i=100#A\n", - "shunt_i1=3#A\n", - "shunt_i2=2.5#A\n", - "ra=0.05#ohm\n", - "cu_loss=500#W\n", - "cu_lossa=361#W\n", - "ia=85#A\n", - "#calculations\n", - "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", - "cu_motor=v*shunt_i1\n", - "generator_motor=v*shunt_i2\n", - "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", - "input_=v*i+cu_motor\n", - "output=v*ia*10**(-3)\n", - "loss=cu_loss*10**(-3)+1.07+0.36\n", - "efficiency=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"eficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eficiency= 89.8045430534 %\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.12, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=110#V\n", - "i=48#A\n", - "i1=3#a\n", - "i2=3.5#A\n", - "motor_i=230#A\n", - "ra=0.035#ohm\n", - "\n", - "#calculations\n", - "#motor\n", - "cu_loss=motor_i**2*ra\n", - "brush_loss=motor_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i1\n", - "total_cu_lossm=totalarm_culoss+shunt_cu\n", - "#generator\n", - "arm_i=233-i+i2\n", - "cu_loss=arm_i**2*ra\n", - "brush_loss=arm_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i2\n", - "total_cu_lossg=totalarm_culoss+shunt_cu\n", - "#set\n", - "totalcu_loss=total_cu_lossm+total_cu_lossg\n", - "total_input=v*i\n", - "stray_loss=total_input-totalcu_loss\n", - "strayloss_per=stray_loss/2\n", - "#motor efficiency\n", - "input_=233*v\n", - "output=input_-(total_cu_lossm+strayloss_per)\n", - "e=output/input_*100\n", - "print \"motor efficiency=\",e,\"%\"\n", - "#generator efficiency\n", - "input_=110*185\n", - "output=input_-(total_cu_lossg+strayloss_per)\n", - "e=output/input_*100\n", - "100\n", - "print \"generator efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.4590884705 %\n", - "generator efficiency= 88.5893642506 %\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.13, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable series\n", - "v=500.0#A\n", - "p=100*1000.0#w\n", - "auxiliary_i=30.0#A\n", - "output_i=200.0#A\n", - "i1=3.5#A\n", - "i2=1.8#A\n", - "ra=0.075#ohm\n", - "vdb=2.0#V\n", - "\n", - "#calculations\n", - "motor_arm=output_i+auxiliary_i\n", - "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", - "motorfield_culoss=v*i2\n", - "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", - "generatoefield_culoss=v*i1\n", - "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", - "power=v*auxiliary_i\n", - "stray_loss=power-total_culoss\n", - "permachine=stray_loss/2\n", - "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", - "output=v*output_i\n", - "e=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 93.1001175389 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.14, Page Number:1104" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "motor_i=400.0#A\n", - "i1=6.0#A\n", - "i2=5.0#A\n", - "ra=0.015#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=motor_i**2*ra\n", - "generatora_culoss=(motor_i-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*motor_i)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(motor_i-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 92.3148148148 %\n", - "generator efficiency 91.4642857143 %\n" - ] - } - ], - "prompt_number": 77 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.15, Page Number:1105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "ia=380.0#A\n", - "i1=5.0#A\n", - "i2=4.2#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=ia**2*ra\n", - "generatora_culoss=(ia-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*ia)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(ia-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.7038001041 %\n", - "generator efficiency 95.2121212121 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.16, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "v2=190.0#V\n", - "t=30#sec\n", - "t2=20#sec\n", - "i=20.0#A\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "avg_i=i/2\n", - "power=avg_v*avg_i\n", - "W=power*(t2/(t-t2))\n", - "\n", - "#result\n", - "print \"Stray loss=\",W,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Stray loss= 4100.0 W\n" - ] - } - ], - "prompt_number": 85 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.17, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "n1=1525.0#rpm\n", - "n2=1475.0#ohm\n", - "dt=25.0#sec\n", - "p=1000.0#W\n", - "t2=20.0#sec\n", - "\n", - "#calculations\n", - "N=(n1+n2)/2\n", - "w=p*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", - "\n", - "#result\n", - "print \"Moment of Inertia=\",I,\"kg-m2\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Moment of Inertia= 121.708791432 kg-m2\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.18, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "v2=225.0#V\n", - "dt=25.0#sec\n", - "t2=6.0#ohm\n", - "iavg=10.0#A\n", - "i2=25.0#A\n", - "v3=250.0#V\n", - "ra=0.4#ohm\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "w_=avg_v*iavg\n", - "W=w_*(t2/(dt-t2))\n", - "ish=v3/r\n", - "ia=i2-ish\n", - "cu_loss=ia**2*ra\n", - "cu_shunt=v3*ia\n", - "total_loss=W+cu_loss+v3\n", - "e=((v*i2)-total_loss)/(v*i2)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "734.210526316\n", - "efficiency= 79.7564912281 %\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.19, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "n1=1030#rpm\n", - "n2=970#rpm\n", - "t1=36#sec\n", - "t2=15#sec\n", - "t3=9#sec\n", - "i=10#A\n", - "v=219#V\n", - "\n", - "#calculations\n", - "W=v*i*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", - "Wm=W*t2/t1\n", - "iron_loss=W-Wm\n", - "\n", - "#result\n", - "print \"i)moment of inertia=\",I,\"kg.m2\"\n", - "print \"ii)iron loss=\",iron_loss,\"W\"\n", - "print \"iii)mechanical losses=\",Wm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)moment of inertia= 74.9650087225 kg.m2\n", - "ii)iron loss= 1916.25 W\n", - "iii)mechanical losses= 1368.75 W\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.20, Page Number:1110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "iam=56.0#A\n", - "vam=590.0#V\n", - "vdm=40.0#V\n", - "iag=44.0#A\n", - "vag=400.0#V\n", - "vdg=40.0#V\n", - "r=0.3#ohm\n", - "\n", - "#calculations\n", - "input_total=(vdm+vam)*iam\n", - "output=vag*iag\n", - "total_loss=input_total-output\n", - "rse=vdg/iam\n", - "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", - "strayloss=total_loss-cu_loss\n", - "permachine=strayloss/2\n", - "#motor\n", - "inputm=vam*iam\n", - "culossm=(r+rse)*iam**2\n", - "totallossm=culossm+permachine\n", - "output=inputm-totallossm\n", - "em=output*100/inputm\n", - "#generator\n", - "inputg=vag*iag\n", - "culossg=(r)*iag**2\n", - "totalloss=culossg+permachine+(vdm*iam)\n", - "output=vag*iag\n", - "eg=output*100/(output+totalloss)\n", - "\n", - "print \n", - "#result\n", - "print \"motor efficiency=\",em,\"%\"\n", - "print \"generator efficiency=\",eg,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "motor efficiency= 72.6997578692 %\n", - "generator efficiency= 67.0220868241 %\n" - ] - } - ], - "prompt_number": 115 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb deleted file mode 100644 index 88c66f5b..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb +++ /dev/null @@ -1,935 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 31: Testing of DC Machines" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.1, Page Number:1092" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l=38.1#kg\n", - "d=63.53*0.01#cm\n", - "v=12#rps\n", - "i=49#A\n", - "V=220#V\n", - "\n", - "#calculations\n", - "r=d/2\n", - "torque=l*r*9.81\n", - "power=torque*2*3.14*v\n", - "motor_input=i*V\n", - "efficiency=power*100/motor_input\n", - "\n", - "#result\n", - "print \"Output power=\",round(power),\"W\"\n", - "print \"Efficiency=\",round(efficiency),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output power= 8947.0 W\n", - "Efficiency= 83.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(a), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "spring_b1=10.0#kg\n", - "spring_b2=35.0#kg\n", - "d=40*0.01#m\n", - "v=950.0#rpm\n", - "V=200.0#V\n", - "i=30.0#A\n", - "\n", - "#calculations\n", - "F=(spring_b2-spring_b1)*9.81\n", - "N=v/60\n", - "R=d/2\n", - "tsh=F*R\n", - "omega=2*3.14*N\n", - "output=tsh*omega\n", - "motor_input=V*i\n", - "efficiency=output/motor_input\n", - "\n", - "#result\n", - "print \"output power=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 4877.205 W\n", - "efficiency= 81.28675 %\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.2(b), Page Number:1093" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "t1=2.9#kg\n", - "t2=0.17#kg\n", - "r=7*0.01#m\n", - "i=2.0#A\n", - "V=230.0#V\n", - "n=1500.0#rpm\n", - "\n", - "#calculations\n", - "force=(t1-t2)*9.81\n", - "torque=force*r\n", - "output=torque*2*3.14*n/60\n", - "efficiency=output/(V*i)\n", - "\n", - "#result\n", - "print \"torque=\",torque,\"N-m\"\n", - "print \"output\",output,\"W\"\n", - "print \"efficiency\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1.874691 N-m\n", - "output 294.326487 W\n", - "efficiency 63.984018913 %\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.3, Page Number:1095" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "V=220.0#V\n", - "i=2.5#A\n", - "ra=0.8#ohm\n", - "rsh=200.0#ohm\n", - "I=20.0#A\n", - "\n", - "#calculations\n", - "input_noload=V*i\n", - "ish=V/rsh\n", - "ia0=i-ish\n", - "culoss=ia0**2*ra\n", - "constant_loss=input_noload-culoss\n", - "ia=32-ish\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "input_=V*I\n", - "output=input_-total_loss\n", - "efficiency=(output/input_)*100\n", - "\n", - "#result\n", - "print \"Efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Efficiency= 70.1754545455 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.4, Page Number:1096" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "V=400.0#V\n", - "i=5.0#A\n", - "ra=0.5#ohm\n", - "r=200.0#ohm\n", - "I=50.0#A\n", - "\n", - "#calculations\n", - "input_nl=V*i\n", - "ish=V/r\n", - "ia=i-ish\n", - "cu_loss=ia**2*ra\n", - "constant_loss=input_nl-cu_loss\n", - "Ia=I-ish\n", - "cu_lossa=Ia**2*ra\n", - "total_loss=constant_loss+cu_lossa\n", - "input_nl1=V*I\n", - "output=input_nl1-total_loss\n", - "efficiency=output/input_nl\n", - "Eb1=V-(ia*ra)\n", - "Eb2=V-(Ia*ra)\n", - "change=math.fabs((Eb1-Eb2)/Eb1)\n", - "\n", - "#result\n", - "print \"output=\",output,\"W\"\n", - "print \"efficiency=\",efficiency*10,\"%\"\n", - "print \"percentage change in speed=\",change*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 16852.5 W\n", - "efficiency= 84.2625 %\n", - "percentage change in speed= 5.64617314931 %\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.8, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=200*1000.0#W\n", - "v=250.0#V\n", - "i1=36.0#A\n", - "I1=12.0#A\n", - "v1=250.0#V\n", - "pd=6.0#V\n", - "i2=400.0#A\n", - "\n", - "#calculations\n", - "#no load\n", - "ia=i1-I1\n", - "ra=pd/i2\n", - "cu_loss=ia**2*ra\n", - "input_nl=v*i1\n", - "constant_loss=input_nl-cu_loss\n", - "\n", - "#full load\n", - "output_i=p/v\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/(p+total_loss)\n", - "#result\n", - "print \"efficiency at full load=\",efficiency*100,\"%\"\n", - "\n", - "#half load\n", - "output_i=p/(2*v)\n", - "ia=output_i+I1\n", - "cu_lossa=ia**2*ra\n", - "total_loss=cu_lossa+constant_loss\n", - "efficiency=p/((p/2+total_loss)*2)\n", - "\n", - "#result\n", - "print \"efficiency at half load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at full load= 91.3736344667 %\n", - "efficiency at half load= 89.6559292335 %\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.9, Page Number:1098" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "p=14.92*1000#W\n", - "e=0.88\n", - "n=700.0#rpn\n", - "rsh=100.0#ohm\n", - "i=78.0#A\n", - "\n", - "#calculations\n", - "input_=0.8*p/e\n", - "total_loss=input_-0.8*p\n", - "input_i=input_/v\n", - "ish=v/rsh\n", - "ia=input_i-ish\n", - "ra=total_loss/(2*(ia**2))\n", - "Ia=i-ish\n", - "total_loss2=Ia**2*ra+total_loss/2\n", - "input__=v*i\n", - "efficiency=(input__-total_loss2)*100/input__\n", - "Eb1=v-(ia*ra)\n", - "Eb2=v-(Ia*ra)\n", - "n2=(n*Eb2)/Eb1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"speed=\",n2,\"r.p.m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 86.9450046554 %\n", - "speed= 678.443304738 r.p.m\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.10(a), Page Number:1101" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220.0#V\n", - "p=100*1000.0#W\n", - "i2=90.0#A\n", - "\n", - "#calculations\n", - "i1=p/v\n", - "efficiency=math.sqrt(i1/(i1+i2))*100\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.4 %\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.11, Page Number:1102" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=15#A\n", - "v=200#V\n", - "motor_i=100#A\n", - "shunt_i1=3#A\n", - "shunt_i2=2.5#A\n", - "ra=0.05#ohm\n", - "cu_loss=500#W\n", - "cu_lossa=361#W\n", - "ia=85#A\n", - "#calculations\n", - "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", - "cu_motor=v*shunt_i1\n", - "generator_motor=v*shunt_i2\n", - "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", - "input_=v*i+cu_motor\n", - "output=v*ia*10**(-3)\n", - "loss=cu_loss*10**(-3)+1.07+0.36\n", - "efficiency=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"eficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eficiency= 89.8045430534 %\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.12, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=110#V\n", - "i=48#A\n", - "i1=3#a\n", - "i2=3.5#A\n", - "motor_i=230#A\n", - "ra=0.035#ohm\n", - "\n", - "#calculations\n", - "#motor\n", - "cu_loss=motor_i**2*ra\n", - "brush_loss=motor_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i1\n", - "total_cu_lossm=totalarm_culoss+shunt_cu\n", - "#generator\n", - "arm_i=233-i+i2\n", - "cu_loss=arm_i**2*ra\n", - "brush_loss=arm_i*2\n", - "totalarm_culoss=cu_loss+brush_loss\n", - "shunt_cu=v*i2\n", - "total_cu_lossg=totalarm_culoss+shunt_cu\n", - "#set\n", - "totalcu_loss=total_cu_lossm+total_cu_lossg\n", - "total_input=v*i\n", - "stray_loss=total_input-totalcu_loss\n", - "strayloss_per=stray_loss/2\n", - "#motor efficiency\n", - "input_=233*v\n", - "output=input_-(total_cu_lossm+strayloss_per)\n", - "e=output/input_*100\n", - "print \"motor efficiency=\",e,\"%\"\n", - "#generator efficiency\n", - "input_=110*185\n", - "output=input_-(total_cu_lossg+strayloss_per)\n", - "e=output/input_*100\n", - "100\n", - "print \"generator efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.4590884705 %\n", - "generator efficiency= 88.5893642506 %\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.13, Page Number:1103" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable series\n", - "v=500.0#A\n", - "p=100*1000.0#w\n", - "auxiliary_i=30.0#A\n", - "output_i=200.0#A\n", - "i1=3.5#A\n", - "i2=1.8#A\n", - "ra=0.075#ohm\n", - "vdb=2.0#V\n", - "\n", - "#calculations\n", - "motor_arm=output_i+auxiliary_i\n", - "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", - "motorfield_culoss=v*i2\n", - "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", - "generatoefield_culoss=v*i1\n", - "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", - "power=v*auxiliary_i\n", - "stray_loss=power-total_culoss\n", - "permachine=stray_loss/2\n", - "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", - "output=v*output_i\n", - "e=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 93.1001175389 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.14, Page Number:1104" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "motor_i=400.0#A\n", - "i1=6.0#A\n", - "i2=5.0#A\n", - "ra=0.015#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=motor_i**2*ra\n", - "generatora_culoss=(motor_i-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*motor_i)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(motor_i-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 92.3148148148 %\n", - "generator efficiency 91.4642857143 %\n" - ] - } - ], - "prompt_number": 77 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.15, Page Number:1105" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=250.0#V\n", - "i=50.0#A\n", - "ia=380.0#A\n", - "i1=5.0#A\n", - "i2=4.2#A\n", - "ra=0.2#ohm\n", - "\n", - "#calculations\n", - "motora_culoss=ia**2*ra\n", - "generatora_culoss=(ia-i)**2*ra\n", - "power=v*i\n", - "stray_loss=power-(motora_culoss+generatora_culoss)\n", - "permachine=stray_loss/2\n", - "#motor\n", - "total_motor_loss=motora_culoss+(v*i2)+permachine\n", - "motor_input=(v*ia)+v*i2\n", - "motor_e=(motor_input-total_motor_loss)/motor_input\n", - "\n", - "#generator\n", - "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", - "gen_output=v*(ia-i)\n", - "gen_e=(gen_output-total_gen_loss)/gen_output\n", - "\n", - "#result\n", - "print \"motor efficiency=\",motor_e*100,\"%\"\n", - "print \"generator efficiency\",gen_e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor efficiency= 88.7038001041 %\n", - "generator efficiency 95.2121212121 %\n" - ] - } - ], - "prompt_number": 81 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.16, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=220.0#V\n", - "v2=190.0#V\n", - "t=30#sec\n", - "t2=20#sec\n", - "i=20.0#A\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "avg_i=i/2\n", - "power=avg_v*avg_i\n", - "W=power*(t2/(t-t2))\n", - "\n", - "#result\n", - "print \"Stray loss=\",W,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Stray loss= 4100.0 W\n" - ] - } - ], - "prompt_number": 85 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.17, Page Number:1107" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "n1=1525.0#rpm\n", - "n2=1475.0#ohm\n", - "dt=25.0#sec\n", - "p=1000.0#W\n", - "t2=20.0#sec\n", - "\n", - "#calculations\n", - "N=(n1+n2)/2\n", - "w=p*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", - "\n", - "#result\n", - "print \"Moment of Inertia=\",I,\"kg-m2\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Moment of Inertia= 121.708791432 kg-m2\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.18, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=240.0#V\n", - "v2=225.0#V\n", - "dt=25.0#sec\n", - "t2=6.0#ohm\n", - "iavg=10.0#A\n", - "i2=25.0#A\n", - "v3=250.0#V\n", - "ra=0.4#ohm\n", - "r=250.0#ohm\n", - "\n", - "#calculations\n", - "avg_v=(v+v2)/2\n", - "w_=avg_v*iavg\n", - "W=w_*(t2/(dt-t2))\n", - "ish=v3/r\n", - "ia=i2-ish\n", - "cu_loss=ia**2*ra\n", - "cu_shunt=v3*ia\n", - "total_loss=W+cu_loss+v3\n", - "e=((v*i2)-total_loss)/(v*i2)\n", - "\n", - "#result\n", - "print \"efficiency=\",e*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "734.210526316\n", - "efficiency= 79.7564912281 %\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.19, Page Number:1108" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=1000#rpm\n", - "n1=1030#rpm\n", - "n2=970#rpm\n", - "t1=36#sec\n", - "t2=15#sec\n", - "t3=9#sec\n", - "i=10#A\n", - "v=219#V\n", - "\n", - "#calculations\n", - "W=v*i*(t2/(dt-t2))\n", - "dN=n1-n2\n", - "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", - "Wm=W*t2/t1\n", - "iron_loss=W-Wm\n", - "\n", - "#result\n", - "print \"i)moment of inertia=\",I,\"kg.m2\"\n", - "print \"ii)iron loss=\",iron_loss,\"W\"\n", - "print \"iii)mechanical losses=\",Wm,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)moment of inertia= 74.9650087225 kg.m2\n", - "ii)iron loss= 1916.25 W\n", - "iii)mechanical losses= 1368.75 W\n" - ] - } - ], - "prompt_number": 99 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 31.20, Page Number:1110" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "iam=56.0#A\n", - "vam=590.0#V\n", - "vdm=40.0#V\n", - "iag=44.0#A\n", - "vag=400.0#V\n", - "vdg=40.0#V\n", - "r=0.3#ohm\n", - "\n", - "#calculations\n", - "input_total=(vdm+vam)*iam\n", - "output=vag*iag\n", - "total_loss=input_total-output\n", - "rse=vdg/iam\n", - "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", - "strayloss=total_loss-cu_loss\n", - "permachine=strayloss/2\n", - "#motor\n", - "inputm=vam*iam\n", - "culossm=(r+rse)*iam**2\n", - "totallossm=culossm+permachine\n", - "output=inputm-totallossm\n", - "em=output*100/inputm\n", - "#generator\n", - "inputg=vag*iag\n", - "culossg=(r)*iag**2\n", - "totalloss=culossg+permachine+(vdm*iam)\n", - "output=vag*iag\n", - "eg=output*100/(output+totalloss)\n", - "\n", - "print \n", - "#result\n", - "print \"motor efficiency=\",em,\"%\"\n", - "print \"generator efficiency=\",eg,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "motor efficiency= 72.6997578692 %\n", - "generator efficiency= 67.0220868241 %\n" - ] - } - ], - "prompt_number": 115 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32.ipynb deleted file mode 100644 index a29de087..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32.ipynb +++ /dev/null @@ -1,5311 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 32: Transformer" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.1, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=3000.0#V\n", - "f=50.0#Hz\n", - "phi=1.2#Wb-m2\n", - "e=8.0#V\n", - "\n", - "#calculations\n", - "n1=v1/e\n", - "n2=v2/e\n", - "a=v2/(4.44*f*n2*phi)\n", - "\n", - "#result\n", - "print \"primary turns=\",n1\n", - "print \"secondary turns=\",n2\n", - "print \"area of core=\",round(a,2),\"m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary turns= 31.25\n", - "secondary turns= 375.0\n", - "area of core= 0.03 m2\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.2, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#KVA\n", - "v1=11000#V\n", - "v2=550#V\n", - "f=50#Hz\n", - "bm=1.3#Tesla\n", - "sf=0.9\n", - "per=10#%\n", - "a=20*20*sf/10000#m2\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*bm*a)\n", - "n2=v2/(4.44*f*bm*a)\n", - "e_per_turn=v1/n1\n", - "\n", - "#result\n", - "print \"HV TURNS=\",round(n1)\n", - "print \"LV TURNS=\",round(n2)\n", - "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV TURNS= 1059.0\n", - "LV TURNS= 53.0\n", - "EMF per turns= 10.4 V\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.3, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=400.0\n", - "n2=1000.0\n", - "a=60.0/10000.0#cm2\n", - "f=50.0#Hz\n", - "e1=520.0#V\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "e2=k*e1\n", - "bm=e1/(4.44*f*n1*a)\n", - "\n", - "#result\n", - "print \"peak value of flux density=\",bm,\"WB/m2\"\n", - "print \"voltage induced in the secondary winding=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak value of flux density= 0.975975975976 WB/m2\n", - "voltage induced in the secondary winding= 1300.0 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.4, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "n1=500.0\n", - "n2=50.0\n", - "v=3000.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "i1=load*1000/v\n", - "i2=i1/k\n", - "e1=v/n1\n", - "e2=e1*n2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", - "print \"secondary emf=\",e2,\"V\"\n", - "print \"flux=\",phim*1000,\"mWB\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", - "secondary emf= 300.0 V\n", - "flux= 27.027027027 mWB\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.5, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11000#V\n", - "v2=550#V\n", - "load=300#kVA\n", - "phim=0.05#Wb\n", - "\n", - "#calculation\n", - "e=4.44*f*phim\n", - "e2=v2/1.732\n", - "t1=v1/e\n", - "t2=e2/e\n", - "output=load/3\n", - "HV=100*1000/v1\n", - "LV=100*1000/e2\n", - "\n", - "#result\n", - "print \"HV turns=\",t1\n", - "print \"LV turns=\",t2\n", - "print \"emf per turn=\",e2\n", - "print \"full load HV=\",HV\n", - "print \"full load LV=\",LV" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 990.990990991\n", - "LV turns= 28.6082849593\n", - "emf per turn= 317.551963048\n", - "full load HV= 9\n", - "full load LV= 314.909090909\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.6, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=1200.0\n", - "a=80.0/10000.0#m2\n", - "f=50.0#Hz\n", - "v=500.0#V\n", - "\n", - "#calculation\n", - "phim=n1/(4.44*f*n1)\n", - "bm=phim/a\n", - "v2=n2*v/n1\n", - "\n", - "#result\n", - "print \"peak flux-density=\",bm,\"Wb\"\n", - "print \"voltage induced in the secondary=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak flux-density= 0.563063063063 Wb\n", - "voltage induced in the secondary= 1200.0 V\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.7, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varible declaration\n", - "load=25.0#kVA\n", - "n1=250.0\n", - "n2=40.0\n", - "v=1500.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "v2=n2*v/n1\n", - "i1=load*1000/v\n", - "i2=load*1000/v2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", - "print \"ii)seconary emf=\",v2,\"V\"\n", - "print \"iii)maximum flux=\",phim*1000,\"mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", - "ii)seconary emf= 240.0 V\n", - "iii)maximum flux= 27.027027027 mWb\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.8, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "a=20.0*20.0/10000#m2\n", - "phim=1.0#Wbm2\n", - "v1=3000.0#V\n", - "v2=220.0#V\n", - "\n", - "#calculation\n", - "t2=v2/(4.44*f*phim*a)\n", - "t1=t2*v1/v2\n", - "n1=t1/2\n", - "n2=t2/2\n", - "\n", - "#result\n", - "print \"HV turns=\",n1\n", - "print \"LV turns=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 168.918918919\n", - "LV turns= 12.3873873874\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.9, Page Number:1126" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=200.0#V\n", - "i1=0.6#A\n", - "p=400.0#W\n", - "v3=250.0#V\n", - "i0=0.5#A\n", - "pf=0.3\n", - "\n", - "#calculation\n", - "il=p/v1\n", - "imu=(i1**2-il**2)**0.5\n", - "iw=i0*pf\n", - "imu2=(i0**2-iw**2)**0.5\n", - "\n", - "#result\n", - "print \"magnetising currents=\",imu,\"A\"\n", - "print \"iron loss current=\",il,\"A\"\n", - "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", - "print \"working components of no-load primary current=\",iw,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "magnetising currents= 0.571788552492 A\n", - "iron loss current= 0.181818181818 A\n", - "magnetising components of no load primary current= 0.476969600708 A\n", - "working components of no-load primary current= 0.15 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.10, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=40.0\n", - "l=150.0#cm\n", - "airgap=0.1#mm\n", - "e1=3000.0#V\n", - "phim=1.2#Wb/m2\n", - "f=50.0#Hz\n", - "d=7.8#grma/cm3\n", - "loss=2.0#watt/kg\n", - "\n", - "#calculation\n", - "a=e1/(4.44*f*n1*phim)\n", - "k=n2/n1\n", - "v2=k*e1\n", - "iron=l*5\n", - "air=phim*airgap/(1000*4*3.14*10**(-7))\n", - "bmax=iron+air\n", - "imu=bmax/(n1*2**0.5)\n", - "volume=l*a\n", - "im=volume*d*10\n", - "total_i=im*2\n", - "iw=total_i/(e1)\n", - "i0=(imu**2+iw**2)**0.5\n", - "pf=iw/i0\n", - "\n", - "#result\n", - "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", - "print \"b)no load secondary voltage=\",v2,\"V\"\n", - "print \"c)no load current=\",imu,\"A\"\n", - "print \"d)power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross sectional area= 225.225225225 cm2\n", - "b)no load secondary voltage= 240.0 V\n", - "c)no load current= 1.19577611723 A\n", - "d)power factor= 0.145353269536\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.11, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "n1=1000\n", - "n2=200\n", - "i=3#A\n", - "pf=0.2\n", - "i2=280#A\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "phi1=math.acos(pf2)\n", - "i2_=i2/5\n", - "phi2=math.acos(pf)\n", - "sinphi=math.sin(phi2)\n", - "sinphi2=math.sin(math.acos(phi1))\n", - "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", - "\n", - "#result\n", - "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", - "\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.12, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=440.0#v\n", - "v2=110.0#V\n", - "i0=5.0#A\n", - "pf=0.2\n", - "i2=120.0#A\n", - "pf2=0.8\n", - "\n", - "#calculation\n", - "phi2=math.acos(pf2)\n", - "phi0=math.acos(pf)\n", - "k=v2/v1\n", - "i2_=k*i2\n", - "angle=phi2-phi0\n", - "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", - "\n", - "#result\n", - "print \"current taken by the primary=\",i1,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the primary= 33.9022604184 A\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.13, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=800.0\n", - "n2=200.0\n", - "pf=0.8\n", - "i1=25.0#A\n", - "pf2=0.707\n", - "i2=80.0#A\n", - "#calculations\n", - "k=n2/n1\n", - "i2_=i2*k\n", - "phi2=math.acos(pf)\n", - "phi1=math.acos(pf2)\n", - "i0pf2=i1*pf2-i2_*pf\n", - "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", - "phi0=math.atan(i0sinphi/i0pf2)\n", - "i0=i0sinphi/math.sin(phi0)\n", - "\n", - "#result\n", - "print \"no load current=\",i0,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load current= 5.91703050525 A\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.14, Page Number:1131" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=10#A\n", - "pf=0.2\n", - "ratio=4\n", - "i2=200#A\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "phi0=math.acos(pf)\n", - "phil=math.acos(pf)\n", - "i0=complex(2,-9.8)\n", - "i2_=complex(42.5,-26.35)\n", - "i1=i0+i2_\n", - "phi=math.acos(i1.real/57.333)\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"power factor=\",math.degrees(phi),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= (44.5-36.15j) A\n", - "power factor= 39.0890154959 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.15, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable decaration\n", - "load=30.0#KVA\n", - "v1=2400.0#V\n", - "v2=120.0#V\n", - "f=50.0#Hz\n", - "r1=0.1#ohm\n", - "x1=0.22#ohm\n", - "r2=0.034#ohm\n", - "x2=0.012#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "r02=r2+r1*k**2\n", - "x02=x2+x1*k**2\n", - "z02=(r02**2+x02**2)**0.5\n", - "\n", - "#result\n", - "print \"high voltage side:\"\n", - "print \"equivalent winding resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"low voltage side:\"\n", - "print \"equivalent winding resistance=\",r02,\"ohm\"\n", - "print \"reactance=\",x02,\"ohm\"\n", - "print \"impedence=\",z02,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "high voltage side:\n", - "equivalent winding resistance= 13.7 ohm\n", - "reactance= 5.02 ohm\n", - "impedence= 14.5907642021 ohm\n", - "low voltage side:\n", - "equivalent winding resistance= 0.03425 ohm\n", - "reactance= 0.01255 ohm\n", - "impedence= 0.0364769105051 ohm\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.16, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=4400.0#V\n", - "v2=220.0#V\n", - "r1=3.45#ohm\n", - "r2=0.009#ohm\n", - "x1=5.2#ohm\n", - "x2=0.015#ohm\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "r02=r2+k**2*r1\n", - "x01=x1+x2/k**2\n", - "x02=x2+x1*k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "z02=(r02**2+x02**2)**0.5\n", - "cu_loss=i1**2*r01\n", - "\n", - "#result\n", - "print \"i)resistance=\"\n", - "print \"primary=\",r01,\"ohm\"\n", - "print \"secondary=\",r02,\"ohm\"\n", - "print \"iii)reactance=\"\n", - "print \"primary=\",x01,\"ohm\"\n", - "print \"secondary=\",x02,\"ohm\"\n", - "print \"iv)impedence=\"\n", - "print \"primary=\",z01,\"ohm\"\n", - "print \"secondary=\",z02,\"ohm\"\n", - "print \"v)copper loss=\",cu_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance=\n", - "primary= 7.05 ohm\n", - "secondary= 0.017625 ohm\n", - "reactance=\n", - "primary= 11.2 ohm\n", - "secondary= 0.028 ohm\n", - "impedence=\n", - "primary= 13.2341414531 ohm\n", - "secondary= 0.0330853536327 ohm\n", - "copper loss= 910.382231405 W\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.17, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=10.0\n", - "load=50.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "f=50.0#Hz\n", - "v=240.0#V\n", - "\n", - "#calculation\n", - "i2=load*1000/v\n", - "z2=v/(i2)\n", - "k=v2/v1\n", - "z2_=z2/k**2\n", - "i2_=k*i2\n", - "\n", - "#result\n", - "print \"a)load impedence=\",z2,\"ohm\"\n", - "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", - "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)load impedence= 1.152 ohm\n", - "b)impedence referred to high tension side= 115.2 ohm\n", - "c)the value of current referred to the high tension side= 20.8333333333 A\n" - ] - } - ], - "prompt_number": 70 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.18, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "v1=11000.0#V\n", - "v2=317.0#V\n", - "load2=0.62#kW\n", - "lvload=0.48#kW\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "r1=load2*1000/i**2\n", - "r2=lvload*1000/i2**2\n", - "r2_=r2*k**2\n", - "x01=4*v1/(i1*100)\n", - "x2_=x01*r2_/(r1+r2_)\n", - "x1=x01-x2_\n", - "x2=x2_*10/k**2\n", - "\n", - "#result\n", - "print \"i)r1=\",r1,\"ohm\"\n", - "print \"r2=\",r2,\"ohm\"\n", - "print \"r2_=\",r2_,\"ohm\"\n", - "print \"ii)reactance=\",x01,\"ohm\"\n", - "print \"x1=\",x1,\"ohm\"\n", - "print \"x2=\",x2,\"ohm\"\n", - "print \"x2_=\",x2_,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)r1= 7.502 ohm\n", - "r2= 0.004823472 ohm\n", - "r2_= 5.808 ohm\n", - "ii)reactance= 48.4 ohm\n", - "x1= 27.28 ohm\n", - "x2= 0.175398981818 ohm\n", - "x2_= 21.12 ohm\n" - ] - } - ], - "prompt_number": 76 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.19, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "k=19.5\n", - "r1=25.0#ohm\n", - "x1=100.0#ohm\n", - "r2=0.06#ohm\n", - "x2=0.25#ohm\n", - "i=1.25#A\n", - "angle=30#degrees\n", - "i2=200#A\n", - "v=50#V\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "v2=complex(500,0)\n", - "i2=i2*complex(0.8,-0.6)\n", - "z2=complex(r2,x2)\n", - "e2=v2+i2*z2\n", - "beta=math.atan(e2.imag/e2.real)\n", - "e1=e2*k\n", - "i2_=i2/k\n", - "angle=beta+math.radians(90)+math.radians(angle)\n", - "i0=i*complex(math.cos(angle),math.sin(angle))\n", - "i1=-i2_+i0\n", - "v2=-e1+i1*complex(r1,x1)\n", - "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", - "pf=math.cos(phi)\n", - "power=abs(v2)*i*math.cos(math.radians(60))\n", - "r02=r2+r1/k**2\n", - "cu_loss=abs(i2)**2*r02\n", - "output=500*abs(i2)*pf2\n", - "loss=cu_loss+power\n", - "inpt=output+loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"primary applied voltage=\",v2,\"V\"\n", - "print \"primary pf=\",pf\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", - "primary pf= 0.698572087114\n", - "efficiency= 86.7261056254 %\n" - ] - } - ], - "prompt_number": 94 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.20, Page Number:1138" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable description\n", - "load=100#KVA\n", - "v1=1100#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "zh=complex(0.1,0.4)\n", - "zl=complex(0.006,0.015)\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "#HV \n", - "r1=zh.real+zl.real*k**2\n", - "x1=zh.imag+zl.imag*k**2\n", - "z1=(r1**2+x1**2)**0.5\n", - "#LV\n", - "r2=r1/k**2\n", - "x2=x1/k**2\n", - "z2=z1/k**2\n", - "\n", - "#result\n", - "print \"HV:\"\n", - "print \"resistance=\",r1,\"ohm\"\n", - "print \"reactance=\",x1,\"ohm\"\n", - "print \"impedence=\",z1,\"ohm\"\n", - "print \"LV:\"\n", - "print \"resistance=\",r2,\"ohm\"\n", - "print \"reactance=\",x2,\"ohm\"\n", - "print \"impedence=\",z2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV:\n", - "resistance= 0.25 ohm\n", - "reactance= 0.775 ohm\n", - "impedence= 0.814324873745 ohm\n", - "LV:\n", - "resistance= 0.01 ohm\n", - "reactance= 0.031 ohm\n", - "impedence= 0.0325729949498 ohm\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.21, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230#V\n", - "v2=460#V\n", - "r1=0.2#ohm\n", - "x1=0.5#ohm\n", - "r2=0.75#ohm\n", - "x2=1.8#ohm\n", - "i=10#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "x02=x2+k**2*x1\n", - "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "vt2=v2-vd\n", - "\n", - "#result\n", - "print \"secondary terminal voltage=\",vt2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary terminal voltage= 424.8 V\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.22, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.0#%\n", - "x=5.0#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "mu=r*pf+x*math.sin(math.acos(pf))\n", - "mu2=r**2+x*0\n", - "mu3=r*pf-x*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", - "print \"regulation at pf=1:\",mu2,\"%\"\n", - "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=0.8 lag: 3.8 %\n", - "regulation at pf=1: 1.0 %\n", - "regulation at pf=0.8 lead: -2.2 %\n" - ] - } - ], - "prompt_number": 98 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.23, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=5#%\n", - "r=2.5#%\n", - "\n", - "#calculation\n", - "phi=math.atan(x/r)\n", - "cosphi=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "regn=r*cosphi+x*sinphi\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.59016994375 %\n", - "pf= 0.4472135955\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.24, Page Number:1142" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=2.5#%\n", - "x=5#%\n", - "load1=500#KVA\n", - "load2=400#KVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "kw=load2*pf\n", - "kvar=load2*math.sin(math.acos(pf))\n", - "drop=(r*kw/load1)+(x*kvar/load1)\n", - "\n", - "#result\n", - "print \"percentage voltage drop=\",drop,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage voltage drop= 4.0 %\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.26, Page Number:1145" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=600#V\n", - "v2=1080#V\n", - "v=720#V\n", - "load=8#W\n", - "load2=10#kVA\n", - "\n", - "#calculation\n", - "ir2=load*1000/v2\n", - "il2=load*1000/v\n", - "ir2_=ir2*v2/v1\n", - "il2_=il2*v/v1\n", - "ir2=math.sqrt(ir2_**2+il2_**2)\n", - "s=complex(load,load2)\n", - "s=abs(s)\n", - "pf=load/s\n", - "i=s*load2*100/v1\n", - "\n", - "#result\n", - "print \"primary current=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 21.3437474581 A\n", - "power factor= 0.624695047554\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "v1=110#V\n", - "i=0.5#A\n", - "p=30#W\n", - "r=0.6#ohm\n", - "\n", - "#calculation\n", - "ratio=v/v1\n", - "pf=p/(i*v)\n", - "sinphi=math.sqrt(1-pf**2)\n", - "ip=i*sinphi\n", - "iw=i*pf\n", - "cu_loss=i**2*r\n", - "iron_loss=p-cu_loss\n", - "\n", - "#result\n", - "print \"i)turns ratio=\",ratio\n", - "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", - "print \"iii)working component of no-load current=\",iw,\"A\"\n", - "print \"iv)the iron loss=\",iron_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)turns ratio= 2\n", - "ii)magnetising component of no-load current= 0.481045692921 A\n", - "iii)working component of no-load current= 0.136363636364 A\n", - "iv)the iron loss= 29.85 W\n" - ] - } - ], - "prompt_number": 104 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=200.0#V\n", - "v2=1000.0#V\n", - "f=50.0#Hz\n", - "vo=2000.0#V\n", - "io=1.2#A\n", - "po=90.0#W\n", - "vs=50.0#V\n", - "i_s=5.0#A\n", - "ps=110.0#W\n", - "p=3.0#kW\n", - "pf=0.8\n", - "v=200.0#V\n", - "\n", - "#calculation\n", - "r0=v**2/po\n", - "ia0=v/r0\n", - "ip=math.sqrt(io**2-ia0**2)\n", - "xm=v/ip\n", - "z=vs/i_s\n", - "r=ps/25\n", - "x=math.sqrt(z**2-r**2)\n", - "r1=r*(v1/v2)**2\n", - "x1=x*(v1/v2)**2\n", - "i_lv1=load*1000/v\n", - "i_lv=(p*1000/pf)/v\n", - "sinphi=math.sin(math.acos(pf))\n", - "reg=i_lv*(r1*pf+x1*sinphi)/v\n", - "vt=v2-reg*1000/v\n", - "\n", - "#result\n", - "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", - "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", - "print \"output secondary voltage=\",vt,\"V\"\n", - "print \"percentage regulation=\",reg*100,\"%\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "LV crrent at rated load= 25.0 A\n", - "LV current at 3kW at 0.8 lagging pf 18.75 A\n", - "output secondary voltage= 999.832975251 V\n", - "percentage regulation= 3.34049498886 %\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.29, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "loss1=52.0#W\n", - "f1=40.0#Hz\n", - "loss2=90.0#W\n", - "f2=60.0#Hz\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 45.0 W\n", - "eddy current= 25.0 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.30, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "m=10#kg\n", - "f=50.0#Hz\n", - "f1=25.0\n", - "f2=40.0\n", - "f3=50.0\n", - "f4=60.0\n", - "f5=80.0\n", - "l1=18.5/f1\n", - "l2=36.0/f2\n", - "l3=50.0/f3\n", - "l4=66.0/f4\n", - "l5=104.0/f5\n", - "#calculation\n", - "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", - "eddy_loss_per_kg=ans[B]*f**2/m\n", - "\n", - "#result\n", - "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", - "\n", - "#plot\n", - "F=[f1,f2,f3,f4,f5]\n", - "L=[l1,l2,l3,l4,l5]\n", - "a=plot(F,L)\n", - "xlabel(\"f -->\") \n", - "ylabel(\"Wi/f\") \n", - "plt.xlim((0,100))\n", - "plt.ylim((0.74,2))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n", - "eddy current loss per kg at 50 Hz=" - ] - }, - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " -0.118333333333333 W\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.31, Page Number:1148" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "v1=440#V\n", - "f1=50#Hz\n", - "p1=2500#W\n", - "v2=220#V\n", - "f2=25#Hz\n", - "p2=850#z\n", - "\n", - "#calculation\n", - "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 900.0 W\n", - "eddy current= 1600.0 W\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.32, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "f1=50.0#Hz\n", - "core=1000.0#W\n", - "wh=650.0#W\n", - "we=350.0#W\n", - "v2=2000.0#V\n", - "f2=100.0#Hz\n", - "\n", - "#calculation\n", - "a=wh/f1\n", - "b=we/f1**2\n", - "wh=a*f2\n", - "we=b*f2**2\n", - "new_core=wh+we\n", - "\n", - "#result\n", - "print \"new core loss=\",new_core,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new core loss= 2700.0 W\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.33, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "phi=1.4#Wb/m2\n", - "we=1000.0#W\n", - "wh=3000.0#W\n", - "per=10.0#%\n", - "\n", - "#calculation\n", - "wh1=wh*1.1**1.6\n", - "we1=we*1.1**2\n", - "wh2=wh*0.9**(-0.6)\n", - "wh3=wh*1.1**1.6*1.1**(-0.6)\n", - "#result\n", - "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", - "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", - "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", - "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", - "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" - ] - } - ], - "prompt_number": 119 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.34, Page Number:1150" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=40.0#Hz\n", - "loss=800.0#W\n", - "wh=600.0#W\n", - "we=loss-wh\n", - "v2=3300.0#V\n", - "f2=60.0#Hz\n", - "\n", - "#calculations\n", - "a=wh/f\n", - "b=we/f**2\n", - "core_loss=a*f2+b*f2**2\n", - "\n", - "#result\n", - "print \"core loss at 60 Hz=\",core_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core loss at 60 Hz= 1350.0 W\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.35, Page Number:1151" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=30.0#KvA\n", - "v1=6000.0#V\n", - "v2=230.0#V\n", - "r1=10.0#ohm\n", - "r2=0.016#ohm\n", - "x01=34.0#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"primary voltage=\",vsc,\"V\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary voltage= 199.519931911 V\n", - "pf= 0.523468222173\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.36, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "f=50.0#Hz\n", - "vo=200.0#V\n", - "io=0.7#A\n", - "po=70.0#W\n", - "vs=15.0#v\n", - "i_s=10.0#A\n", - "ps=85.0#W\n", - "load=5.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cosphi0=po/(vo*io)\n", - "sinphi0=math.sin(math.acos(cosphi0))\n", - "iw=io*cosphi0\n", - "imu=io*sinphi0\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "z02=vs/i_s\n", - "k=v2/v1\n", - "z01=z02/k**2\n", - "r02=ps/i_s**2\n", - "r01=r02/k**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "output=load/pf\n", - "i2=output*1000/v2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "print z02\n", - "#result\n", - "print \"secondary voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "1.5\n", - "secondary voltage= 377.788243349 V\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.37, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "k=1.0/6\n", - "r1=0.9#ohm\n", - "x1=5.0#ohm\n", - "r2=0.03#ohm\n", - "x2=0.13#ohm\n", - "vsc=330.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=vsc/z01\n", - "i2=i1/k\n", - "cosphisc=i1**2*r01/(vsc*i1)\n", - "\n", - "#result\n", - "print \"current in low voltage winding=\",i2,\"A\"\n", - "print \"pf=\",round(cosphisc,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in low voltage winding= 200.396236149 A\n", - "pf= 0.2\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.38, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "f=50.0#Hz\n", - "r1=0.2#ohm\n", - "x1=0.4#ohm\n", - "r2=0.5#ohm\n", - "x2=0.1#ohm\n", - "r0=1500.0#ohm\n", - "x0=750.0#ohm\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(iw**2+imu**2)**0.5\n", - "pi=v1*iw\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "power=i1**2*r01\n", - "\n", - "#result\n", - "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" - ] - } - ], - "prompt_number": 140 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.39, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=1000#kVA\n", - "v1=110#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "per1=98.5#%\n", - "pf=0.8\n", - "per2=98.8#%\n", - "\n", - "#calculaions\n", - "output=load*1\n", - "inpt=output*100/per2\n", - "loss=inpt-output\n", - "inpt_half=(load/2)*pf*100/per1\n", - "loss2=inpt_half-400\n", - "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", - "kva=load*(ans[y]/ans[x])*0.5\n", - "output=kva*1\n", - "cu_loss=ans[y]\n", - "total_loss=2*cu_loss\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"full load copper loss=\",cu_loss,\"kW\"\n", - "print \"maximum efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load copper loss= 4.07324441521606 kW\n", - "maximum efficiency= 0.968720013059872 %\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.40, Page Number:1154" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#v\n", - "v2=400.0#V\n", - "r01=0.15#ohm\n", - "x01=0.37#ohm\n", - "r0=600.0#ohm\n", - "x0=300.0#ohm\n", - "i2=10.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(imu**2+iw**2)**0.5\n", - "tantheta=iw/imu\n", - "theta=math.atan(tantheta)\n", - "theta0=math.radians(90)-theta\n", - "angle=theta0-math.acos(pf)\n", - "k=v2/v1\n", - "i2_=i2*k\n", - "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", - "r02=k**2*r01\n", - "x02=x01*k**2\n", - "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)primary current=\",i1,\"A\"\n", - "print \"ii)secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current= 20.6693546639 A\n", - "ii)secondary terminal voltage= 386.32 V\n" - ] - } - ], - "prompt_number": 149 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.43, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "n1=400.0\n", - "n2=80.0\n", - "r1=0.3#ohm\n", - "r2=0.01#ohm\n", - "x1=1.1#ohm\n", - "x2=0.035#ohm\n", - "v1=2200.0#V\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=complex(r01,x01)\n", - "z02=k**2*z01\n", - "v2=k*v1\n", - "i2=load*1000/v2\n", - "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", - "regn=vd*100/v2\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)equivalent impedence=\",z02,\"ohm\"\n", - "print \"ii)voltage regulation=\",regn,\"%\"\n", - "print \"secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent impedence= (0.022+0.079j) ohm\n", - "ii)voltage regulation= -1.53925619835 %\n", - "secondary terminal voltage= 446.772727273 V\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.44, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "va=450.0#V\n", - "vb=120.0#V\n", - "v1=120.0#V\n", - "i1=4.2#A\n", - "w1=80.0#W\n", - "v2=9.65#V\n", - "i2=22.2#A\n", - "w2=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=vb/va\n", - "i0=i1*k\n", - "cosphi0=w1/(va*i0)\n", - "phi0=math.acos(cosphi0)\n", - "sinphi0=math.sin(phi0)\n", - "iw=i0*cosphi0\n", - "imu=i0*sinphi0\n", - "r0=va/iw\n", - "x0=va/imu\n", - "z01=v2/i2\n", - "r01=vb/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "loss=w1+w2\n", - "output=load*1000*pf\n", - "efficiency=output/(output+loss)\n", - "iron_loss=w1\n", - "cu_loss=(0.5**2)*w2\n", - "total_loss=iron_loss+cu_loss\n", - "output=load*1000*pf/2\n", - "efficiency2=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"i)equivalent circuit constants=\"\n", - "print \"z01=\",z01,\"ohm\"\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r01=\",r01,\"ohm\"\n", - "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", - "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent circuit constants=\n", - "z01= 0.434684684685 ohm\n", - "x01= 0.360090249002 ohm\n", - "r01= 0.243486729973 ohm\n", - "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", - "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.45, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "va=2200.0#V\n", - "vb=220.0#V\n", - "f=50.0#Hz\n", - "v1=220.0#V\n", - "i1=4.2#A\n", - "w1=148.0#W\n", - "v2=86.0#V\n", - "i2=10.5#A\n", - "w2=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "z01=v2/i2\n", - "r01=w2/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",round(pf,1),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 2.94177963326 %\n", - "pf= 0.4 lag\n" - ] - } - ], - "prompt_number": 172 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.46, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=2000.0#V\n", - "v2=400.0#V\n", - "v=60.0#V\n", - "i=4.0#A\n", - "w=100.0#W\n", - "pf=0.8\n", - "v_=400.0#V\n", - "\n", - "#calculations\n", - "z01=v/i\n", - "r01=w/i**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/v1\n", - "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"voltage applied to hv side=\",v1+vd,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage applied to hv side= 2065.90767043 V\n" - ] - } - ], - "prompt_number": 182 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.47, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=500.0#V\n", - "vs=20.0#V\n", - "i_s=12.0#A\n", - "ws=100.0#W\n", - "vo=250.0#V\n", - "io=1.0#A\n", - "wo=80.0#W\n", - "i2=10#A\n", - "v2=500#V\n", - "pg=0.8\n", - "\n", - "#calculation\n", - "cosphi0=wo/(vo*io)\n", - "iw=io*cosphi0\n", - "imu=(1-iw**2)**0.5\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "r02=ws/i_s**2\n", - "z02=vs/i_s\n", - "x02=(z02**2-r02**2)**0.5\n", - "k=v2/v1\n", - "r01=r02/k**2\n", - "x01=x02/k**2\n", - "z01=z02/k**2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=wo\n", - "total_loss=iron_loss+cu_loss\n", - "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", - "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "\n", - "#result\n", - "print \"applied voltage=\",v1_,\"V\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "applied voltage= 251.442641983 V\n", - "efficiency= 96.3984469139 %\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.48, Page Number:1160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230.0#V\n", - "v2=230.0#V\n", - "load=3.0#kVA\n", - "vo=230.0#V\n", - "io=2.0#A\n", - "wo=100.0#W\n", - "vs=15.0#V\n", - "i_s=13.0#A\n", - "ws=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v1\n", - "cu_loss=ws\n", - "core_loss=wo\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+core_loss)\n", - "z=vs/i_s\n", - "r=ws/(vs**2)\n", - "x=(z**2-r**2)**0.5\n", - "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.90121149256 %\n", - "efficiency= 91.6030534351 %\n" - ] - } - ], - "prompt_number": 194 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.49, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "efficiency=0.94\n", - "per=0.90\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=per*load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "core_loss=loss/2\n", - "pc=core_loss/per**2\n", - "output=load*1000*pf\n", - "cu_loss=pc\n", - "efficiency=output/(output+cu_loss+core_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.5728354534 %\n" - ] - } - ], - "prompt_number": 196 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.50, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=2300.0#V\n", - "v2=230.0#V\n", - "r1=3.96#ohm\n", - "r2=0.0396#ohm\n", - "x1=15.8#ohm\n", - "x2=0.158#ohm\n", - "pf=0.8\n", - "v=230.0#V\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "r=r2+r1*(v2/v1)**2\n", - "x=x1*(v2/v1)**2+x2\n", - "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", - "v1=v1_*(v1/v2)\n", - "phi=math.atan(r/x)\n", - "pf=math.cos(phi)\n", - "#result\n", - "print \"a)HV side voltage necessary=\",v1,\"V\"\n", - "print \"b)pf=\",round(pf,2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)HV side voltage necessary= 2409.9826087 V\n", - "b)pf= 0.97\n" - ] - } - ], - "prompt_number": 199 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.51, Page Number:1162" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#v\n", - "r1=3.4#ohm\n", - "x1=7.2#ohm\n", - "r2=0.028#ohm\n", - "x2=0.060#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "r=r1*(v2/v1)**2+r2\n", - "x=x1*(v2/v1)**2+x2\n", - "ad=i*r*pf\n", - "dc=i*x*math.sin(math.acos(pf))\n", - "oc=v2+ad+dc\n", - "bd=i*r*math.sin(math.acos(pf))\n", - "b_f=x*pf\n", - "cf=b_f-bd\n", - "v1_=(oc**2+cf**2)**0.5\n", - "v1=v1_*(v1/v2)\n", - "\n", - "#result\n", - "print \"terminal voltage on hv side=\",v1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage on hv side= 2229.28500444 V\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.52, Page Number:1163" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "i1=0.7#A\n", - "w1=65.0#W\n", - "v=15.0#V\n", - "i2=10.0#A\n", - "w2=75.0#W\n", - "pf=0.80\n", - "#calculation\n", - "il=load*1000/v1\n", - "ih=load*1000/v2\n", - "cu_loss=w2\n", - "constant_loss=w1\n", - "z=v/i2\n", - "r=w2/i2**2\n", - "x=(z**2-r**2)**0.5\n", - "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", - "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency,\"%\"\n", - "print \"full load regulation=\",regn,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.6183574879 %\n", - "full load regulation= 13.7942286341 V\n" - ] - } - ], - "prompt_number": 209 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.53, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=3300.0#V\n", - "v2=230.0#V\n", - "load=50.0#kVA\n", - "z=4\n", - "cu_loss=1.8\n", - "\n", - "#calculations\n", - "x=(z**2-cu_loss**2)**0.5\n", - "i1=load*1000/v1\n", - "r01=cu_loss*v1/(100*i1)\n", - "x01=x*v1/(100*i1)\n", - "z01=z*v1/(100*i1)\n", - "isc=i1*100/z\n", - "print \n", - "#result\n", - "print \"%x=\",x,\"%\"\n", - "print \"resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"primary sc current=\",isc,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "%x= 3.5721142199 %\n", - "resistance= 3.9204 ohm\n", - "reactance= 7.78006477094 ohm\n", - "impedence= 8.712 ohm\n", - "primary sc current= 378.787878788 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.54, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "vo=220.0#V\n", - "i_o=4.2#A\n", - "wo=148.0#W\n", - "vs=86.0#V\n", - "i_s=10.5#A\n", - "ws=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=ws/i_s**2\n", - "r02=k**2*r01\n", - "z10=vs/i_s\n", - "x01=(z10**2-r01**2)**0.5\n", - "x02=k**2*x01\n", - "i1=load*1000/v1\n", - "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "regn1=(v1_-v1)/v1\n", - "i2=i1/k\n", - "core_loss=wo\n", - "cu_loss=i1**2*r01\n", - "cu_loss_half=(i1/2)**2*r01\n", - "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", - "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", - "print v1_ \n", - "#result\n", - "print \"a)core loss=\",wo,\"W\"\n", - "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", - "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", - "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", - "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", - "print \"f)regulation=\",regn1*100,\"%\"\n", - "print \"g)efficiency at full load=\",efficiency,\"%\"\n", - "print \"h)efficiency at half load=\",efficiency_half,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2265.01840886\n", - "a)core loss= 148.0 W\n", - "b)equivalent resistance primary= 3.26530612245 ohm\n", - "c)equivalent resistance secondary= 0.0326530612245 ohm\n", - "d)equivalent reactance primary= 7.51143635755 ohm\n", - "e)equivalent reactance secondary= 0.0751143635755 ohm\n", - "f)regulation= 2.95538222101 %\n", - "g)efficiency at full load= 97.4548448466 %\n", - "h)efficiency at half load= 95.0360304208 %\n" - ] - } - ], - "prompt_number": 222 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.55, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "er=1.0/100\n", - "ex=5.0/100\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "regn2=er*1\n", - "regn3=er*pf-ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", - "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", - "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation with pf=0.8 lag= 3.8 %\n", - "ii)regulation with pf=1= 1.0 %\n", - "iii)regulation with pf=0.8 lead= -2.2 %\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.56, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500#kVA\n", - "v1=3300#V\n", - "v2=500#V\n", - "f=50#Hz\n", - "per=0.97\n", - "ratio=3.0/4\n", - "zper=0.10\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=load*ratio*1\n", - "x=0.75\n", - "pi=0.5*(output*(1/per-1))\n", - "pc=pi/x**2\n", - "i1=load*1000/v1\n", - "r=pc*1000/i1**2\n", - "er=i1*r/v1\n", - "ez=zper\n", - "ex=(ez**2-er**2)**0.5\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation=\",regn*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 7.52529846012 %\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.57, Page Number:1166" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "cu_loss=1.5#%\n", - "xdrop=3.5#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "pur=cu_loss/100\n", - "pux=xdrop/100\n", - "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", - "regn1=pur*1\n", - "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", - "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", - "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation at unity pf= 1.5 %\n", - "ii)regulation at 0.8 lag= 3.3 %\n", - "iii)regulation at 0.8 lead= -0.9 %\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.58, Page Number:1168" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#KVA\n", - "w1=5.0#kW\n", - "w2=7.5#kW\n", - "efficiency=0.75\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "loss=total_loss/2\n", - "cu_loss=efficiency**2*w2/2\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+cu_loss+2.5)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.0186963113 %\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.59, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2000.0#V\n", - "v2=200.0#V\n", - "w1=350.0#W\n", - "w2=400.0#W\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "output=load*1000*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=w2*(0.5)**2\n", - "total_loss=cu_loss+w1\n", - "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", - "\n", - "#result\n", - "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency at full load= 97.0873786408 %\n", - "ii)efficiency at half load= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 232 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.60, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.75\n", - "\n", - "#calculation\n", - "ratio=efficiency**2\n", - "\n", - "#result\n", - "print \"ratio of P1 and P2=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of P1 and P2= 0.5625\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.61, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=230.0#V\n", - "load1=150.0#KVA\n", - "f=50.0#Hz\n", - "loss=1.4#kW\n", - "cu_loss=1.6#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "load=load1*(cu_loss/loss)**0.5\n", - "total_loss=loss*2\n", - "output=load*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=cu_loss*(0.5)**2\n", - "total_loss=total_loss+cu_loss\n", - "output2=(load/2)*pf\n", - "efficiency2=output2/(output2+total_loss)\n", - "\n", - "#result\n", - "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", - "print \"max efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load for max efficiency= 150.0 kVA\n", - "max efficiency= 98.283858876 %\n", - "ii)efficiency at half load= 95.2481856352 %\n" - ] - } - ], - "prompt_number": 237 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.62, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "#variable declaration\n", - "load=5#kVA\n", - "v1=2300#V\n", - "v2=230#V\n", - "f=50#Hz\n", - "iron_loss=40#W\n", - "cu_loss=112#W\n", - "pf=0.8\n", - "#calculations\n", - "def e(k):\n", - " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", - " return(e)\n", - "\n", - "e1=e(1.25)\n", - "e2=e(2.5)\n", - "e3=e(3.75)\n", - "e4=e(5.0)\n", - "e5=e(6.25)\n", - "e6=e(7.5)\n", - "\n", - "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", - "E=[e1,e2,e3,e4,e5,e6]\n", - "a=plot(K,E)\n", - "xlabel(\"load,kVA\") \n", - "ylabel(\"Efficiency\") \n", - "plt.xlim((0,8))\n", - "plt.ylim((92,98))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.63, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kVA\n", - "efficiency=0.98\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "output=load*pf\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "x=loss*1000/(1+9.0/16)\n", - "y=(9.0/16)*x\n", - "cu_loss=x*(1.0/2)**2\n", - "total_loss=cu_loss+y\n", - "output=load*pf*0.5\n", - "efficiency=output/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"efficiency at hald load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at hald load= 97.9216626699 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.64, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "r1=1.0#ohm\n", - "r2=0.01#ohm\n", - "pf=0.8\n", - "loss=0.80\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "i2=load*1000/v2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=loss*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "output=load*pf*1000\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"secondary resistance=\",r02,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary resistance= 0.02 ohm\n", - "efficiency= 97.7284199899 %\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.65, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "r01=0.5#ohm\n", - "x01=1.5#ohm\n", - "ratio=3.0/4\n", - "pf=0.8\n", - "v=220.0#V\n", - "loss=100.0#W\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=k**2*r01\n", - "x02=k**2*x01\n", - "i2=1000*load*ratio/v2\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "cu_loss=i2**2*r02\n", - "total_loss=loss+cu_loss\n", - "output=load*ratio*pf\n", - "inpt=output*1000+total_loss\n", - "efficiency=output*1000/(inpt)\n", - "#result\n", - "print \"output=\",output,\"w\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 2.4 w\n", - "efficiency= 91.8660287081 %\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.66, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=440.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "loss=324.0#W\n", - "cu_loss=100.0#W\n", - "pf=0.8\n", - "#calculations\n", - "cu_loss=4*cu_loss\n", - "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", - "per=(loss/cu_loss)**0.5\n", - "\n", - "#result\n", - "print \"i)efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)percent of full-load=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency= 95.6708921311 %\n", - "ii)percent of full-load= 90.0 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.67, Page Number:1173" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "pf=0.8\n", - "vo=200.0#V\n", - "io=0.8#A\n", - "wo=70.0#W\n", - "vs=20.0#V\n", - "i_s=10.0#A\n", - "ws=60.0#W\n", - "\n", - "#calculation\n", - "i2=load*1000/v2\n", - "loss=ws+wo\n", - "output=load*pf\n", - "efficiency=output/(output+loss/1000)\n", - "z02=vs/i_s\n", - "r02=ws/i2**2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "i1=load*1000/v1\n", - "load=load*(wo/ws)**0.5\n", - "load=load*1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"secondary voltage=\",v2,\"V\"\n", - "print \"current=\",i1,\"A\"\n", - "print \"load at unity pf=\",load,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.0960960961 %\n", - "secondary voltage= 383.752729583 V\n", - "current= 20.0 A\n", - "load at unity pf= 4.32049379894 kW\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.69, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=600.0#KVA\n", - "efficiency=0.92\n", - "per=0.60\n", - "\n", - "#calculation\n", - "inpt=load/efficiency\n", - "loss1=inpt-load\n", - "inpt2=load/(2*efficiency)\n", - "loss2=inpt2-load/2\n", - "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", - "cu_loss=ans[y]*0.36\n", - "loss=cu_loss+ans[x]\n", - "output=load*per\n", - "efficiency=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "389.913043478261\n", - "efficiency= 92.3282783229260 %\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.70, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "e1=0.98\n", - "e2=0.80\n", - "pf=8\n", - "z=0.05\n", - "pf1=0.8\n", - "\n", - "#calculations\n", - "output=load*pf1*e2\n", - "inpt=output/e1\n", - "loss=-output+inpt\n", - "cu_loss=loss/2\n", - "cu_loss_full=cu_loss/pf1**2\n", - "r=round(cu_loss_full*100/load)\n", - "sin=math.sin(math.acos(pf1))\n", - "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", - "#result\n", - "print \"voltage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 3.8578 %\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.71, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#KVA\n", - "v1=5000.0#V\n", - "v2=440.0#V\n", - "f=25.0#Hz\n", - "cu_loss=1.5\n", - "we=0.5\n", - "wh=0.6\n", - "v2=10000.0\n", - "#calculations\n", - "cu_loss1=cu_loss*load/100\n", - "we1=we*load/100\n", - "wh1=wh*load/100\n", - "cu_loss2=cu_loss1\n", - "we2=(we1*(50.0/25.0)**2)\n", - "wh2=(wh1*(50.0/25))\n", - "e1=load*100/(load+cu_loss1+we1+wh1)\n", - "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", - "\n", - "#result\n", - "print \"full load efficiency in first case=\",e1,\"%\"\n", - "print \"full load efficiency in second case=\",e2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "20.47 0.06 0.05\n", - "full load efficiency in first case= 97.4658869396 %\n", - "full load efficiency in second case= 97.7039570103 %\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.72, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=300#KVA\n", - "r=1.5#%\n", - "load1=173.2#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss=r*load*1000/100\n", - "iron_loss=(load1/load)**2*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.5610105096 %\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.73, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "v1=2300#V\n", - "v2=230.0#V\n", - "f=50#Hz\n", - "phim=1.2#Wb/m2\n", - "a=0.04#m2\n", - "l=2.5#m\n", - "bm=1200\n", - "inpt=1200#W\n", - "pi=400#W\n", - "efficiency=0.75\n", - "pf=0.8\n", - "f2=100#Hz\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*phim*a)\n", - "k=v2/v1\n", - "n2=k*n1\n", - "i=1989/n1\n", - "cu_loss=efficiency**2*inpt\n", - "total_loss=pi+cu_loss\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"a)n1=\",round(n1)\n", - "print \" n2=\",round(n2)\n", - "print \"b)magnetising current=\",i,\"A\"\n", - "print \"c)efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.00643416423287\n", - "a)n1= 216.0\n", - " n2= 22.0\n", - "b)magnetising current= 9.21512347826 A\n", - "c)efficiency= 98.2398690135 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.74, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.8\n", - "x=5.4\n", - "\n", - "#calculation\n", - "pf=r/x\n", - "phi=math.atan(pf)\n", - "phi2=math.atan(x/r)\n", - "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", - "efficiency=100/(100+r*2)\n", - "\n", - "#result\n", - "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", - "print \" ii)regulation=\",regn,\"%\"\n", - "print \"b)efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)phi= 18.4349488229 degrees\n", - " ii)regulation= 5.6920997883 %\n", - "b)efficiency= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.75, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "vo=250.0#V\n", - "io=3.0#A\n", - "wo=200.0#W\n", - "vsc=15.0#V\n", - "isc=30.0#A\n", - "wsc=300.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "cu_loss=(i/isc)**2*wsc\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+wo)\n", - "z=vsc/isc\n", - "r=wsc/isc**2\n", - "x=(z**2-r**2)**0.5\n", - "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.6030534351 %\n", - "regulation= 1.72239475667 %\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.76, Page Number:1177" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40.0#kVA\n", - "loss=400.0#W\n", - "cu_loss=800.0#W\n", - "\n", - "#calculation\n", - "x=(loss/cu_loss)**0.5\n", - "output=load*x*1\n", - "efficiency=output/(output+load*2/100)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.2493723732 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.77, Page Number:1178" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#kVA\n", - "v1=500#V\n", - "v2=250#V\n", - "vsc=60#V\n", - "isc=20#A\n", - "wsc=150#W\n", - "per=1.2\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=load*1000/v1\n", - "cu_loss=per**2*wsc\n", - "output=per*load*1.0\n", - "efficiency=output*100/(output+cu_loss*2/1000)\n", - "output=load*1000*pf\n", - "e2=output*100/(output+cu_loss+wsc)\n", - "\n", - "#result\n", - "print \"maximum efficiency=\",efficiency,\"%\"\n", - "print \"full-load efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum efficiency= 96.5250965251 %\n", - "full-load efficiency= 95.6251494143 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.78, Page Number:1181" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#kVA\n", - "cu_loss=4.5#kW\n", - "iron_loss=3.5#kW\n", - "t1=6.0#hrs\n", - "t2=10.0#hrs\n", - "t3=4.0#hrs\n", - "t4=4.0#hrs\n", - "load1_=400.0#kW\n", - "load2_=300.0#kW\n", - "load3_=100.0#kW\n", - "pf1=0.8\n", - "pf2=0.75\n", - "pf3=0.8\n", - "\n", - "#calculations\n", - "load1=load1_/pf1\n", - "load2=load2_/pf2\n", - "load3=load3_/pf3\n", - "wc1=cu_loss\n", - "wc2=cu_loss*(load2/load1)**2\n", - "wc3=cu_loss*(load3/load1)**2\n", - "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", - "iron_loss=24*iron_loss\n", - "total_loss=twc+iron_loss\n", - "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.6 %\n" - ] - } - ], - "prompt_number": 86 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.79, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "loss=3.0#kW\n", - "tf=3.0#hrs\n", - "th=4.0#hrs\n", - "\n", - "#calculation\n", - "iron_loss=loss*24/2\n", - "wcf=loss*tf/2\n", - "wch=loss/8\n", - "wch=wch*4\n", - "total_loss=iron_loss+wch+wcf\n", - "output=load*tf+load*th/2\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.2509225092 %\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.80, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#KW\n", - "efficiency=0.98\n", - "tf=4.0#hrs\n", - "th=6.0#hrs\n", - "t10=14.0#hrs\n", - "\n", - "#calculations\n", - "#1st transformer\n", - "inpt=load/efficiency\n", - "tloss=inpt-load\n", - "y=tloss/2\n", - "x=y\n", - "iron_loss=x*24\n", - "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", - "loss=iron_loss+cu_loss\n", - "output=tf*load+th*load/2+t10*10\n", - "e1=output/(output+loss)\n", - "#2nd transformer\n", - "y=tloss/(1+1.0/4)\n", - "x=(tloss-y)\n", - "iron_loss=x*24\n", - "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", - "loss=iron_loss+wc\n", - "e2=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", - "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.408163265306 1.63265306122\n", - "efficiency of forst transformer= 96.5245532574 %\n", - "efficiency ofsecond transformer= 97.7876610788 %\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.81, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "efficiency=0.95\n", - "nl=10.0#hrs\n", - "ql=7.0#hrs\n", - "hl=5.0#hrs\n", - "fl=2.0#hrs\n", - "\n", - "#calculations\n", - "inpt=load/efficiency\n", - "loss=inpt-load\n", - "wc_fl=loss/2\n", - "iron_loss=loss/2\n", - "wc_fl_4=(1.0/4)**2*wc_fl\n", - "wc_fl_2=(1.0/2)**2*wc_fl\n", - "wc_ql=ql*wc_fl_4\n", - "wc_hl=hl*wc_fl_2\n", - "wc_fl_2=fl*wc_fl\n", - "wc=wc_ql+wc_hl+wc_fl_2\n", - "wh=wc\n", - "loss=wh+24*iron_loss\n", - "output=load*1\n", - "half_output=(output/2)\n", - "q_load=(load/4)\n", - "output=ql*q_load+hl*half_output+fl*output\n", - "e=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 89.5592740985 %\n" - ] - } - ], - "prompt_number": 115 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.82, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.98\n", - "load=15#kVA\n", - "t1=12.0#hrs\n", - "t2=6.0#hrs\n", - "t3=6.0#hrs\n", - "pf1=0.5\n", - "pf2=0.8\n", - "k1=2#kW\n", - "k2=12#kW\n", - "\n", - "#calculations\n", - "output=load*1\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "wc=loss/2\n", - "wi=loss/2\n", - "w1=k1/pf1\n", - "w2=k2/pf2\n", - "wc1=wc*(4/load)\n", - "wc2=wc\n", - "wc12=t1*wc1\n", - "wc6=t2*wc2\n", - "wc=(wc12+wc6)\n", - "wi=24*wi\n", - "output=(k1*t1)+(t2*k2)\n", - "inpt=output+wc+wi\n", - "e=output*100/inpt\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.918367346939 3.67346938776\n", - "efficiency= 95.4351795496 %\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.83, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=150.0#KVA\n", - "l1_=100.0#kVA\n", - "t=3.0#hrs\n", - "loss=1.0#KW\n", - "\n", - "#calculations\n", - "l1=l1_/2\n", - "l2=l1_\n", - "output=load*1\n", - "loss=loss*2\n", - "e1=output/(output+loss)\n", - "wc1=t*(1.0/3)**2*1\n", - "wc2=8*(2.0/3)**2*1\n", - "wc=wc1+wc2\n", - "wi=24*1\n", - "loss=wc+wi\n", - "output=3*(l1*1)+8*(l2*1)\n", - "e2=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"ordinary efficiency=\",e1*100,\"%\"\n", - "print \"all day efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ordinary efficiency= 98.6842105263 %\n", - "all day efficiency= 97.1480513578 %\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.84, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50#KVA\n", - "efficiency=0.94#%\n", - "nl=10\n", - "hl=5.0\n", - "ql=6.0\n", - "fl=3.0\n", - "\n", - "#calculations\n", - "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", - "wch=(0.5)**2*pi\n", - "eh=wch*hl/1000\n", - "wcq=(0.25)**2*pi\n", - "eq=ql*wcq/1000\n", - "e3=pi*3/1000\n", - "e2=pi*24/1000\n", - "e=25*hl+12.5*ql+50*fl\n", - "efficiency=e/(e+e2+eh+eq+e3)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 88.4557217274 %\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.85, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "t1=7.0#hrs\n", - "t2=4.0#hrs\n", - "t3=8.0#hrs\n", - "t4=5.0#hrs\n", - "k1=3.0#kW\n", - "k2=8.0#kW\n", - "pf1=0.6\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "x1=k1/(pf1*load)\n", - "x2=k2/(pf2*load)\n", - "x3=load/(1*load)\n", - "pc1=(0.5)**2*0.1\n", - "pc2=pc3=0.10\n", - "o1=k1*t1\n", - "o2=k2*t2\n", - "o3=k2*load\n", - "output=o1+o2+o3\n", - "wc1=pc1*t1\n", - "wc2=pc2*t2\n", - "wc3=pc3*t3\n", - "cu_loss=wc1+wc2+wc3\n", - "loss=400.0*24/10000\n", - "efficiency=output/(output+loss+cu_loss)\n", - "\n", - "#result\n", - "print \"efficency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficency= 98.27465179 %\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.86, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=.98\n", - "load=15.0#kVA\n", - "t1=12.0\n", - "t2=6.0\n", - "t3=6.0\n", - "pf1=0.8\n", - "pf2=0.8\n", - "pf3=0.9\n", - "k1=2.0\n", - "k2=12.0\n", - "k3=18.0\n", - "#calculations\n", - "output=load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "cu_loss=loss/2\n", - "x1=k1/(0.5*load)\n", - "x2=k2/(pf2*load)\n", - "x3=k3/(pf3*load)\n", - "wc1=0.131\n", - "wc2=0.918\n", - "wc3=1.632\n", - "o1=t1*k1\n", - "o2=t2*k2\n", - "o3=t3*k3\n", - "output=o1+o2+o3\n", - "loss=wc1+wc2+wc3+0.153*24\n", - "efficiency=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.9798386522 %\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.87, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.0#kW\n", - "v1=115.0#V\n", - "v2=230.0#V\n", - "\n", - "#calculation\n", - "k=v1/v2\n", - "power=load*(1-k)\n", - "power2=k*load\n", - "\n", - "#result\n", - "print \"a)power transferred inductively=\",power,\"kW\"\n", - "print \"b)power transferred conductively=\",power2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)power transferred inductively= 1.5 kW\n", - "b)power transferred conductively= 1.5 kW\n" - ] - } - ], - "prompt_number": 145 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.88, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=500.0#V\n", - "v2=400.0#V\n", - "i=100.0#A\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "i1=k*i\n", - "saving=k*100\n", - "\n", - "#result\n", - "print \"economy of cu=\",saving" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "economy of cu= 80.0\n" - ] - } - ], - "prompt_number": 147 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.89, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#KVA\n", - "f=50.0#Hz\n", - "v1=6600.0#V\n", - "v2=5000.0#V\n", - "e=8.0#V\n", - "phim1=1.3#Wb/m2\n", - "\n", - "#calculations\n", - "phim=e/(4.44*f)\n", - "area=phim/phim1\n", - "n1=v1/e\n", - "n2=v2/e\n", - "\n", - "#result\n", - "print \"core area=\",area*10000,\"m2\"\n", - "print \"number of turns on the hv side=\",n1\n", - "print \"number of turns on the lv side=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core area= 277.2002772 m2\n", - "number of turns on the hv side= 825.0\n", - "number of turns on the lv side= 625.0\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.90, Page Number:1189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2640*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i1_-i2\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 219.12 kVA\n", - "iv)per cent increase in kVA= 1095.6 %\n", - "v)I1= 91.3 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.91, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2160*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i2-i1_\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 179.28 kVA\n", - "iv)per cent increase in kVA= 896.4 %\n", - "v)I1= 74.7 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 160 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.92, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=110.0#V\n", - "v2=110.0#V\n", - "f=50.0#Hz\n", - "efficiency=0.95\n", - "iron_loss=50.0#W\n", - "v=220.0#V\n", - "\n", - "#calculations\n", - "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", - "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", - "i2=(load*1000+cu_loss/4+iron_loss)/v\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"current drawn on hv side=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.9760216579 %\n", - "current drawn on hv side= 23.1967703349 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.93, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500#V\n", - "v2=2300#V\n", - "\n", - "#calculations\n", - "kva=(v1+v2)*50*0.001\n", - "\n", - "#result\n", - "print \"voltage output=\",v1+v2,\"V\"\n", - "print \"kVA rating of auto transformer=\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage output= 13800 V\n", - "kVA rating of auto transformer= 690.0 kVA\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.94, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500.0#V\n", - "v2=2300.0#V\n", - "load=100.0#KVA\n", - "\n", - "#calculations\n", - "i1=load*100/v1\n", - "i2=load*100/v2\n", - "kva1=(v1+v2)*i1/(100)\n", - "kva2=(v1+v2)*i2/(100)\n", - "#result\n", - "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", - "print \"kVA rating in first case=\",kva1\n", - "print \"kVA rating in second case=\",kva2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage ratios= 1.2 or 6.0\n", - "kVA rating in first case= 120.0\n", - "kVA rating in second case= 600.0\n" - ] - } - ], - "prompt_number": 167 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.95, Page Number:1192" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2400.0#v\n", - "v2=240.0#V\n", - "load=50.0#kVA\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "output=2640*i2\n", - "i=i2*2640/v1\n", - "k=2640/v1\n", - "poweri=v1*i1*0.001\n", - "power=output/1000-poweri\n", - "\n", - "#result\n", - "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", - "print \"inductively transferred powers=\",poweri,\"kW\"\n", - "print \"conductively transferred powers=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rating of the auto-transformer= 550.0 kVA\n", - "inductively transferred powers= 50.0 kW\n", - "conductively transferred powers= 500.0 kW\n" - ] - } - ], - "prompt_number": 169 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.96, Page Number:1196" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "za=complex(0.5,3)\n", - "zb=complex(0.,10)\n", - "load=100#KW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", - "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "96.082805253\n", - "SA= 74.5937961595 kW\n", - "SB= 25.4062038405 kW\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.97, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r1=0.005#ohm\n", - "r2=0.01#ohm\n", - "x1=0.05#ohm\n", - "x2=0.04#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "za=complex(r1,x1)\n", - "zb=complex(r2,x2)\n", - "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", - "\n", - "#result\n", - "print \"load of B=\",abs(za/zb)\n", - "print \"pf of B=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load of B= 1.21872643265\n", - "pf of B= 0.613584256393\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.98, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#kVA\n", - "za=complex(1,6)\n", - "zb=complex(1.2,4.8)\n", - "load1=500#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 224.451917244 -39.3923099293\n", - "SB= 275.942423833 -34.8183886694\n" - ] - } - ], - "prompt_number": 205 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.99, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "load=100.0#KW\n", - "r1=0.5\n", - "x1=8.0\n", - "r2=0.75\n", - "x2=4.0\n", - "load1=180.0#kW\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "load=load1/pf\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "z1=complex(r1,x1)\n", - "z2=complex(r2,x2)\n", - "s1=s*z2/(z1+z2)\n", - "s2=s*z1/(z1+z2)\n", - "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", - "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", - "\n", - "#result\n", - "print \"kW1=\",kw1,\"kW\"\n", - "print \"kW2=\",kw2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "(1.25+12j)\n", - "kW1= 58.119626171 kW\n", - "kW2= 121.880373829 kW\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.100, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kW\n", - "pf=0.85\n", - "za=complex(1,5)\n", - "zb=complex(2,6)\n", - "\n", - "#calculations\n", - "s=load/pf*complex(0.85,-0.527)\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", - "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA for A= 130.53263665 0.819364787986 lag\n", - "kVA for B= 105.238776124 0.884143252833 lag\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.101, Page Number:1198" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=110.0#V\n", - "load=125.0#kVA\n", - "pf=0.8\n", - "za=complex(0.9,10)\n", - "zb=(100/50)*complex(1.0,5)\n", - "\n", - "#calculation\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 63.0780848499 -39.929442891 degrees\n", - "SB= 62.1031510961 -33.7622749748 degrees\n" - ] - } - ], - "prompt_number": 218 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.102, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=500#kVA\n", - "za=complex(1,5)\n", - "load2=250#kVA\n", - "zb=complex(1.5,4)\n", - "v2=400#V\n", - "load=750#kVA\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zb=(500/load2)*zb\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 471.125736359 -40.3232138964 degrees\n", - "SB= 281.165527855 -31.0771011508 degrees\n" - ] - } - ], - "prompt_number": 219 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.103, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=1000#A\n", - "pf=0.8\n", - "za=complex(2,3)\n", - "zb=complex(2.5,5)\n", - "\n", - "#calculations\n", - "i=i*complex(pf,-math.sin(math.acos(pf)))\n", - "ratio=zb/za\n", - "ib=i/(1+ratio)\n", - "ia=i-ib\n", - "ratio=ia.real/ib.real\n", - "\n", - "#result\n", - "print \"IA=\",ia\n", - "print \"IB=\",ib\n", - "print \"ratio of output=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= (504.451038576-341.246290801j)\n", - "IB= (295.548961424-258.753709199j)\n", - "ratio of output= 1.70682730924\n" - ] - } - ], - "prompt_number": 220 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.104, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "v2=500.0#V\n", - "load=100.0#kVA\n", - "za=complex(1.0,5.0)\n", - "zb=complex(2.0,2.0)\n", - "load1=300.0#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "zb=(100.0/250)*zb\n", - "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "zab=za*zb/(za+zb)\n", - "drop=zab.real*240/100+zab.imag*180/100\n", - "v2=v2-v2*drop/100\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "print \"secondary voltage=\",v2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 55.8895719399 -64.6284382469 degrees\n", - "SB= 251.890896741 -30.9383707209 degrees\n", - "secondary voltage= 486.177874187 V\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.105, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n11=5000.0\n", - "n12=440.0\n", - "load1=200#kVA\n", - "n21=5000.0\n", - "n22=480.0\n", - "load2=350#kVA\n", - "x=3.5\n", - "\n", - "#calculation\n", - "i1=load1*1000/n12\n", - "i2=load2*1000/n22\n", - "x1=x*n12/(100*i1)\n", - "x2=x*n22/(100*i2)\n", - "ic=(n22-n12)/0.057\n", - "\n", - "#result\n", - "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.106, Page Number:1203" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "ea=6600#V\n", - "eb=6400#V\n", - "za=complex(0.3,3)\n", - "zb=complex(0.2,1)\n", - "zl=complex(8.0,6.0)\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "\n", - "#result\n", - "print \"IA=\",abs(ia),\"A\"\n", - "print \"IB=\",abs(ib),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= 195.492387533 A\n", - "IB= 422.567795916 A\n" - ] - } - ], - "prompt_number": 227 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.107, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=100.0#kVA\n", - "load2=50.0#kVA\n", - "v1=1000.0#V\n", - "v2=950.0#V\n", - "r1=2.0\n", - "r2=2.5\n", - "x1=8.0\n", - "x2=6.0\n", - "\n", - "#calculations\n", - "ia=load1*1000/v1\n", - "ra=v1*r1/(100*ia)\n", - "xa=v1*x1/(100*ia)\n", - "ib=load2*1000/v2\n", - "rb=v2*r2/(100*ib)\n", - "xb=v2*x2/(100*ib)\n", - "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", - "ic=(v1-v2)/z\n", - "alpha=math.atan((xa+xb)/(ra+rb))\n", - "\n", - "#result\n", - "print \"no load circulating current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load circulating current= 25.0948635944 A\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 32.108, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=1000.0#KVA\n", - "load2=500.0#kVA\n", - "v1=500.0#V\n", - "v2=510.0#V\n", - "z1=3.0\n", - "z2=5.0\n", - "r=0.4\n", - "\n", - "#calculation\n", - "ia=load1*1000/480\n", - "ib=load2*1000/480\n", - "za=z1*v1/(100*ia)\n", - "zb=z2*v2/(100*ib)\n", - "ic=(v2-v1)/(za+zb)\n", - "\n", - "#result\n", - "print \"cross current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "cross current= 315.656565657 A\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.109, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "loada=500.0#KVA\n", - "loadb=250.0#kVA\n", - "load=750.0#KVA\n", - "pf=0.8\n", - "v1=405.0#V\n", - "v2=415.0#V\n", - "ra=1.0\n", - "rb=1.5\n", - "xa=5.0\n", - "xb=4.0\n", - "\n", - "#calculations\n", - "ia=loada*1000/400\n", - "ra=400/(100*ia)\n", - "xa=xa*400/(100*ia)\n", - "ib=loadb*1000/400\n", - "rb=rb*400/(100*ib)\n", - "xb=xb*400/(100*ib)\n", - "za=complex(ra,xa)\n", - "zb=complex(rb,xb)\n", - "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", - "ic=(v1-v2)/(za+zb)\n", - "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "sa=400*ia/1000\n", - "sb=400*ib/1000\n", - "pf1=math.cos(math.atan(sa.imag/sa.real))\n", - "pf2=math.cos(math.atan(sb.imag/sb.real))\n", - "\n", - "#result\n", - "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", - "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", - "print \" SB=\",abs(sb),pf2,\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross current= -229.754569404 -72.8972710309\n", - "b)SA= 387.844943528 0.820048560714 lag\n", - " SB= 351.964386212 0.738709225528 lag\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.110, Page Number:1205" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zl=complex(2.0,1.5)\n", - "za=complex(0.15,0.5)\n", - "zb=complex(0.1,0.6)\n", - "ea=207#V\n", - "eb=205#V\n", - "\n", - "#calculations\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "v2_=(ia+ib)*zl\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", - "pfa=math.cos(angle)\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", - "pfb=math.cos(angle)\n", - "pa=abs(v2_)*abs(ia)*pfa\n", - "pb=abs(v2_)*abs(ib)*pfb\n", - "\n", - "#result\n", - "print \"power output:\"\n", - "print \" A:\",pa,\"W\"\n", - "print \" B:\",pb,\"W\"\n", - "print \"power factor:\"\n", - "print \" A:\",pfa\n", - "print \" B:\",pfb\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output:\n", - " A: 6535.37583042 W\n", - " B: 4925.36941503 W\n", - "power factor:\n", - " A: 0.818428780129\n", - " B: 0.775705655277\n" - ] - } - ], - "prompt_number": 248 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.111, Page Number:1206" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=200.0#A\n", - "ib=600.0#A\n", - "ra=0.02#ohm\n", - "rb=0.025#ohm\n", - "xa=0.05#ohm\n", - "xb=0.06#ohm\n", - "ea=245.0#V\n", - "eb=240.0#V\n", - "zl=complex(0.25,0.1)\n", - "\n", - "#calculation\n", - "za=(ea/ia)*complex(ra,xa)\n", - "zb=(eb/ib)*complex(rb,xb)\n", - "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", - "v2=i*zl\n", - "\n", - "#result\n", - "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 230.0 -3.0 degrees\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_1.ipynb deleted file mode 100644 index a29de087..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_1.ipynb +++ /dev/null @@ -1,5311 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 32: Transformer" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.1, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=3000.0#V\n", - "f=50.0#Hz\n", - "phi=1.2#Wb-m2\n", - "e=8.0#V\n", - "\n", - "#calculations\n", - "n1=v1/e\n", - "n2=v2/e\n", - "a=v2/(4.44*f*n2*phi)\n", - "\n", - "#result\n", - "print \"primary turns=\",n1\n", - "print \"secondary turns=\",n2\n", - "print \"area of core=\",round(a,2),\"m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary turns= 31.25\n", - "secondary turns= 375.0\n", - "area of core= 0.03 m2\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.2, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#KVA\n", - "v1=11000#V\n", - "v2=550#V\n", - "f=50#Hz\n", - "bm=1.3#Tesla\n", - "sf=0.9\n", - "per=10#%\n", - "a=20*20*sf/10000#m2\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*bm*a)\n", - "n2=v2/(4.44*f*bm*a)\n", - "e_per_turn=v1/n1\n", - "\n", - "#result\n", - "print \"HV TURNS=\",round(n1)\n", - "print \"LV TURNS=\",round(n2)\n", - "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV TURNS= 1059.0\n", - "LV TURNS= 53.0\n", - "EMF per turns= 10.4 V\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.3, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=400.0\n", - "n2=1000.0\n", - "a=60.0/10000.0#cm2\n", - "f=50.0#Hz\n", - "e1=520.0#V\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "e2=k*e1\n", - "bm=e1/(4.44*f*n1*a)\n", - "\n", - "#result\n", - "print \"peak value of flux density=\",bm,\"WB/m2\"\n", - "print \"voltage induced in the secondary winding=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak value of flux density= 0.975975975976 WB/m2\n", - "voltage induced in the secondary winding= 1300.0 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.4, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "n1=500.0\n", - "n2=50.0\n", - "v=3000.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "i1=load*1000/v\n", - "i2=i1/k\n", - "e1=v/n1\n", - "e2=e1*n2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", - "print \"secondary emf=\",e2,\"V\"\n", - "print \"flux=\",phim*1000,\"mWB\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", - "secondary emf= 300.0 V\n", - "flux= 27.027027027 mWB\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.5, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11000#V\n", - "v2=550#V\n", - "load=300#kVA\n", - "phim=0.05#Wb\n", - "\n", - "#calculation\n", - "e=4.44*f*phim\n", - "e2=v2/1.732\n", - "t1=v1/e\n", - "t2=e2/e\n", - "output=load/3\n", - "HV=100*1000/v1\n", - "LV=100*1000/e2\n", - "\n", - "#result\n", - "print \"HV turns=\",t1\n", - "print \"LV turns=\",t2\n", - "print \"emf per turn=\",e2\n", - "print \"full load HV=\",HV\n", - "print \"full load LV=\",LV" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 990.990990991\n", - "LV turns= 28.6082849593\n", - "emf per turn= 317.551963048\n", - "full load HV= 9\n", - "full load LV= 314.909090909\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.6, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=1200.0\n", - "a=80.0/10000.0#m2\n", - "f=50.0#Hz\n", - "v=500.0#V\n", - "\n", - "#calculation\n", - "phim=n1/(4.44*f*n1)\n", - "bm=phim/a\n", - "v2=n2*v/n1\n", - "\n", - "#result\n", - "print \"peak flux-density=\",bm,\"Wb\"\n", - "print \"voltage induced in the secondary=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak flux-density= 0.563063063063 Wb\n", - "voltage induced in the secondary= 1200.0 V\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.7, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varible declaration\n", - "load=25.0#kVA\n", - "n1=250.0\n", - "n2=40.0\n", - "v=1500.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "v2=n2*v/n1\n", - "i1=load*1000/v\n", - "i2=load*1000/v2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", - "print \"ii)seconary emf=\",v2,\"V\"\n", - "print \"iii)maximum flux=\",phim*1000,\"mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", - "ii)seconary emf= 240.0 V\n", - "iii)maximum flux= 27.027027027 mWb\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.8, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "a=20.0*20.0/10000#m2\n", - "phim=1.0#Wbm2\n", - "v1=3000.0#V\n", - "v2=220.0#V\n", - "\n", - "#calculation\n", - "t2=v2/(4.44*f*phim*a)\n", - "t1=t2*v1/v2\n", - "n1=t1/2\n", - "n2=t2/2\n", - "\n", - "#result\n", - "print \"HV turns=\",n1\n", - "print \"LV turns=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 168.918918919\n", - "LV turns= 12.3873873874\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.9, Page Number:1126" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=200.0#V\n", - "i1=0.6#A\n", - "p=400.0#W\n", - "v3=250.0#V\n", - "i0=0.5#A\n", - "pf=0.3\n", - "\n", - "#calculation\n", - "il=p/v1\n", - "imu=(i1**2-il**2)**0.5\n", - "iw=i0*pf\n", - "imu2=(i0**2-iw**2)**0.5\n", - "\n", - "#result\n", - "print \"magnetising currents=\",imu,\"A\"\n", - "print \"iron loss current=\",il,\"A\"\n", - "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", - "print \"working components of no-load primary current=\",iw,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "magnetising currents= 0.571788552492 A\n", - "iron loss current= 0.181818181818 A\n", - "magnetising components of no load primary current= 0.476969600708 A\n", - "working components of no-load primary current= 0.15 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.10, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=40.0\n", - "l=150.0#cm\n", - "airgap=0.1#mm\n", - "e1=3000.0#V\n", - "phim=1.2#Wb/m2\n", - "f=50.0#Hz\n", - "d=7.8#grma/cm3\n", - "loss=2.0#watt/kg\n", - "\n", - "#calculation\n", - "a=e1/(4.44*f*n1*phim)\n", - "k=n2/n1\n", - "v2=k*e1\n", - "iron=l*5\n", - "air=phim*airgap/(1000*4*3.14*10**(-7))\n", - "bmax=iron+air\n", - "imu=bmax/(n1*2**0.5)\n", - "volume=l*a\n", - "im=volume*d*10\n", - "total_i=im*2\n", - "iw=total_i/(e1)\n", - "i0=(imu**2+iw**2)**0.5\n", - "pf=iw/i0\n", - "\n", - "#result\n", - "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", - "print \"b)no load secondary voltage=\",v2,\"V\"\n", - "print \"c)no load current=\",imu,\"A\"\n", - "print \"d)power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross sectional area= 225.225225225 cm2\n", - "b)no load secondary voltage= 240.0 V\n", - "c)no load current= 1.19577611723 A\n", - "d)power factor= 0.145353269536\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.11, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "n1=1000\n", - "n2=200\n", - "i=3#A\n", - "pf=0.2\n", - "i2=280#A\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "phi1=math.acos(pf2)\n", - "i2_=i2/5\n", - "phi2=math.acos(pf)\n", - "sinphi=math.sin(phi2)\n", - "sinphi2=math.sin(math.acos(phi1))\n", - "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", - "\n", - "#result\n", - "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", - "\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.12, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=440.0#v\n", - "v2=110.0#V\n", - "i0=5.0#A\n", - "pf=0.2\n", - "i2=120.0#A\n", - "pf2=0.8\n", - "\n", - "#calculation\n", - "phi2=math.acos(pf2)\n", - "phi0=math.acos(pf)\n", - "k=v2/v1\n", - "i2_=k*i2\n", - "angle=phi2-phi0\n", - "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", - "\n", - "#result\n", - "print \"current taken by the primary=\",i1,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the primary= 33.9022604184 A\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.13, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=800.0\n", - "n2=200.0\n", - "pf=0.8\n", - "i1=25.0#A\n", - "pf2=0.707\n", - "i2=80.0#A\n", - "#calculations\n", - "k=n2/n1\n", - "i2_=i2*k\n", - "phi2=math.acos(pf)\n", - "phi1=math.acos(pf2)\n", - "i0pf2=i1*pf2-i2_*pf\n", - "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", - "phi0=math.atan(i0sinphi/i0pf2)\n", - "i0=i0sinphi/math.sin(phi0)\n", - "\n", - "#result\n", - "print \"no load current=\",i0,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load current= 5.91703050525 A\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.14, Page Number:1131" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=10#A\n", - "pf=0.2\n", - "ratio=4\n", - "i2=200#A\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "phi0=math.acos(pf)\n", - "phil=math.acos(pf)\n", - "i0=complex(2,-9.8)\n", - "i2_=complex(42.5,-26.35)\n", - "i1=i0+i2_\n", - "phi=math.acos(i1.real/57.333)\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"power factor=\",math.degrees(phi),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= (44.5-36.15j) A\n", - "power factor= 39.0890154959 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.15, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable decaration\n", - "load=30.0#KVA\n", - "v1=2400.0#V\n", - "v2=120.0#V\n", - "f=50.0#Hz\n", - "r1=0.1#ohm\n", - "x1=0.22#ohm\n", - "r2=0.034#ohm\n", - "x2=0.012#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "r02=r2+r1*k**2\n", - "x02=x2+x1*k**2\n", - "z02=(r02**2+x02**2)**0.5\n", - "\n", - "#result\n", - "print \"high voltage side:\"\n", - "print \"equivalent winding resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"low voltage side:\"\n", - "print \"equivalent winding resistance=\",r02,\"ohm\"\n", - "print \"reactance=\",x02,\"ohm\"\n", - "print \"impedence=\",z02,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "high voltage side:\n", - "equivalent winding resistance= 13.7 ohm\n", - "reactance= 5.02 ohm\n", - "impedence= 14.5907642021 ohm\n", - "low voltage side:\n", - "equivalent winding resistance= 0.03425 ohm\n", - "reactance= 0.01255 ohm\n", - "impedence= 0.0364769105051 ohm\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.16, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=4400.0#V\n", - "v2=220.0#V\n", - "r1=3.45#ohm\n", - "r2=0.009#ohm\n", - "x1=5.2#ohm\n", - "x2=0.015#ohm\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "r02=r2+k**2*r1\n", - "x01=x1+x2/k**2\n", - "x02=x2+x1*k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "z02=(r02**2+x02**2)**0.5\n", - "cu_loss=i1**2*r01\n", - "\n", - "#result\n", - "print \"i)resistance=\"\n", - "print \"primary=\",r01,\"ohm\"\n", - "print \"secondary=\",r02,\"ohm\"\n", - "print \"iii)reactance=\"\n", - "print \"primary=\",x01,\"ohm\"\n", - "print \"secondary=\",x02,\"ohm\"\n", - "print \"iv)impedence=\"\n", - "print \"primary=\",z01,\"ohm\"\n", - "print \"secondary=\",z02,\"ohm\"\n", - "print \"v)copper loss=\",cu_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance=\n", - "primary= 7.05 ohm\n", - "secondary= 0.017625 ohm\n", - "reactance=\n", - "primary= 11.2 ohm\n", - "secondary= 0.028 ohm\n", - "impedence=\n", - "primary= 13.2341414531 ohm\n", - "secondary= 0.0330853536327 ohm\n", - "copper loss= 910.382231405 W\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.17, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=10.0\n", - "load=50.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "f=50.0#Hz\n", - "v=240.0#V\n", - "\n", - "#calculation\n", - "i2=load*1000/v\n", - "z2=v/(i2)\n", - "k=v2/v1\n", - "z2_=z2/k**2\n", - "i2_=k*i2\n", - "\n", - "#result\n", - "print \"a)load impedence=\",z2,\"ohm\"\n", - "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", - "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)load impedence= 1.152 ohm\n", - "b)impedence referred to high tension side= 115.2 ohm\n", - "c)the value of current referred to the high tension side= 20.8333333333 A\n" - ] - } - ], - "prompt_number": 70 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.18, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "v1=11000.0#V\n", - "v2=317.0#V\n", - "load2=0.62#kW\n", - "lvload=0.48#kW\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "r1=load2*1000/i**2\n", - "r2=lvload*1000/i2**2\n", - "r2_=r2*k**2\n", - "x01=4*v1/(i1*100)\n", - "x2_=x01*r2_/(r1+r2_)\n", - "x1=x01-x2_\n", - "x2=x2_*10/k**2\n", - "\n", - "#result\n", - "print \"i)r1=\",r1,\"ohm\"\n", - "print \"r2=\",r2,\"ohm\"\n", - "print \"r2_=\",r2_,\"ohm\"\n", - "print \"ii)reactance=\",x01,\"ohm\"\n", - "print \"x1=\",x1,\"ohm\"\n", - "print \"x2=\",x2,\"ohm\"\n", - "print \"x2_=\",x2_,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)r1= 7.502 ohm\n", - "r2= 0.004823472 ohm\n", - "r2_= 5.808 ohm\n", - "ii)reactance= 48.4 ohm\n", - "x1= 27.28 ohm\n", - "x2= 0.175398981818 ohm\n", - "x2_= 21.12 ohm\n" - ] - } - ], - "prompt_number": 76 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.19, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "k=19.5\n", - "r1=25.0#ohm\n", - "x1=100.0#ohm\n", - "r2=0.06#ohm\n", - "x2=0.25#ohm\n", - "i=1.25#A\n", - "angle=30#degrees\n", - "i2=200#A\n", - "v=50#V\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "v2=complex(500,0)\n", - "i2=i2*complex(0.8,-0.6)\n", - "z2=complex(r2,x2)\n", - "e2=v2+i2*z2\n", - "beta=math.atan(e2.imag/e2.real)\n", - "e1=e2*k\n", - "i2_=i2/k\n", - "angle=beta+math.radians(90)+math.radians(angle)\n", - "i0=i*complex(math.cos(angle),math.sin(angle))\n", - "i1=-i2_+i0\n", - "v2=-e1+i1*complex(r1,x1)\n", - "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", - "pf=math.cos(phi)\n", - "power=abs(v2)*i*math.cos(math.radians(60))\n", - "r02=r2+r1/k**2\n", - "cu_loss=abs(i2)**2*r02\n", - "output=500*abs(i2)*pf2\n", - "loss=cu_loss+power\n", - "inpt=output+loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"primary applied voltage=\",v2,\"V\"\n", - "print \"primary pf=\",pf\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", - "primary pf= 0.698572087114\n", - "efficiency= 86.7261056254 %\n" - ] - } - ], - "prompt_number": 94 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.20, Page Number:1138" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable description\n", - "load=100#KVA\n", - "v1=1100#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "zh=complex(0.1,0.4)\n", - "zl=complex(0.006,0.015)\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "#HV \n", - "r1=zh.real+zl.real*k**2\n", - "x1=zh.imag+zl.imag*k**2\n", - "z1=(r1**2+x1**2)**0.5\n", - "#LV\n", - "r2=r1/k**2\n", - "x2=x1/k**2\n", - "z2=z1/k**2\n", - "\n", - "#result\n", - "print \"HV:\"\n", - "print \"resistance=\",r1,\"ohm\"\n", - "print \"reactance=\",x1,\"ohm\"\n", - "print \"impedence=\",z1,\"ohm\"\n", - "print \"LV:\"\n", - "print \"resistance=\",r2,\"ohm\"\n", - "print \"reactance=\",x2,\"ohm\"\n", - "print \"impedence=\",z2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV:\n", - "resistance= 0.25 ohm\n", - "reactance= 0.775 ohm\n", - "impedence= 0.814324873745 ohm\n", - "LV:\n", - "resistance= 0.01 ohm\n", - "reactance= 0.031 ohm\n", - "impedence= 0.0325729949498 ohm\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.21, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230#V\n", - "v2=460#V\n", - "r1=0.2#ohm\n", - "x1=0.5#ohm\n", - "r2=0.75#ohm\n", - "x2=1.8#ohm\n", - "i=10#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "x02=x2+k**2*x1\n", - "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "vt2=v2-vd\n", - "\n", - "#result\n", - "print \"secondary terminal voltage=\",vt2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary terminal voltage= 424.8 V\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.22, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.0#%\n", - "x=5.0#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "mu=r*pf+x*math.sin(math.acos(pf))\n", - "mu2=r**2+x*0\n", - "mu3=r*pf-x*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", - "print \"regulation at pf=1:\",mu2,\"%\"\n", - "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=0.8 lag: 3.8 %\n", - "regulation at pf=1: 1.0 %\n", - "regulation at pf=0.8 lead: -2.2 %\n" - ] - } - ], - "prompt_number": 98 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.23, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=5#%\n", - "r=2.5#%\n", - "\n", - "#calculation\n", - "phi=math.atan(x/r)\n", - "cosphi=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "regn=r*cosphi+x*sinphi\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.59016994375 %\n", - "pf= 0.4472135955\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.24, Page Number:1142" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=2.5#%\n", - "x=5#%\n", - "load1=500#KVA\n", - "load2=400#KVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "kw=load2*pf\n", - "kvar=load2*math.sin(math.acos(pf))\n", - "drop=(r*kw/load1)+(x*kvar/load1)\n", - "\n", - "#result\n", - "print \"percentage voltage drop=\",drop,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage voltage drop= 4.0 %\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.26, Page Number:1145" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=600#V\n", - "v2=1080#V\n", - "v=720#V\n", - "load=8#W\n", - "load2=10#kVA\n", - "\n", - "#calculation\n", - "ir2=load*1000/v2\n", - "il2=load*1000/v\n", - "ir2_=ir2*v2/v1\n", - "il2_=il2*v/v1\n", - "ir2=math.sqrt(ir2_**2+il2_**2)\n", - "s=complex(load,load2)\n", - "s=abs(s)\n", - "pf=load/s\n", - "i=s*load2*100/v1\n", - "\n", - "#result\n", - "print \"primary current=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 21.3437474581 A\n", - "power factor= 0.624695047554\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "v1=110#V\n", - "i=0.5#A\n", - "p=30#W\n", - "r=0.6#ohm\n", - "\n", - "#calculation\n", - "ratio=v/v1\n", - "pf=p/(i*v)\n", - "sinphi=math.sqrt(1-pf**2)\n", - "ip=i*sinphi\n", - "iw=i*pf\n", - "cu_loss=i**2*r\n", - "iron_loss=p-cu_loss\n", - "\n", - "#result\n", - "print \"i)turns ratio=\",ratio\n", - "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", - "print \"iii)working component of no-load current=\",iw,\"A\"\n", - "print \"iv)the iron loss=\",iron_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)turns ratio= 2\n", - "ii)magnetising component of no-load current= 0.481045692921 A\n", - "iii)working component of no-load current= 0.136363636364 A\n", - "iv)the iron loss= 29.85 W\n" - ] - } - ], - "prompt_number": 104 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=200.0#V\n", - "v2=1000.0#V\n", - "f=50.0#Hz\n", - "vo=2000.0#V\n", - "io=1.2#A\n", - "po=90.0#W\n", - "vs=50.0#V\n", - "i_s=5.0#A\n", - "ps=110.0#W\n", - "p=3.0#kW\n", - "pf=0.8\n", - "v=200.0#V\n", - "\n", - "#calculation\n", - "r0=v**2/po\n", - "ia0=v/r0\n", - "ip=math.sqrt(io**2-ia0**2)\n", - "xm=v/ip\n", - "z=vs/i_s\n", - "r=ps/25\n", - "x=math.sqrt(z**2-r**2)\n", - "r1=r*(v1/v2)**2\n", - "x1=x*(v1/v2)**2\n", - "i_lv1=load*1000/v\n", - "i_lv=(p*1000/pf)/v\n", - "sinphi=math.sin(math.acos(pf))\n", - "reg=i_lv*(r1*pf+x1*sinphi)/v\n", - "vt=v2-reg*1000/v\n", - "\n", - "#result\n", - "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", - "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", - "print \"output secondary voltage=\",vt,\"V\"\n", - "print \"percentage regulation=\",reg*100,\"%\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "LV crrent at rated load= 25.0 A\n", - "LV current at 3kW at 0.8 lagging pf 18.75 A\n", - "output secondary voltage= 999.832975251 V\n", - "percentage regulation= 3.34049498886 %\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.29, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "loss1=52.0#W\n", - "f1=40.0#Hz\n", - "loss2=90.0#W\n", - "f2=60.0#Hz\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 45.0 W\n", - "eddy current= 25.0 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.30, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "m=10#kg\n", - "f=50.0#Hz\n", - "f1=25.0\n", - "f2=40.0\n", - "f3=50.0\n", - "f4=60.0\n", - "f5=80.0\n", - "l1=18.5/f1\n", - "l2=36.0/f2\n", - "l3=50.0/f3\n", - "l4=66.0/f4\n", - "l5=104.0/f5\n", - "#calculation\n", - "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", - "eddy_loss_per_kg=ans[B]*f**2/m\n", - "\n", - "#result\n", - "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", - "\n", - "#plot\n", - "F=[f1,f2,f3,f4,f5]\n", - "L=[l1,l2,l3,l4,l5]\n", - "a=plot(F,L)\n", - "xlabel(\"f -->\") \n", - "ylabel(\"Wi/f\") \n", - "plt.xlim((0,100))\n", - "plt.ylim((0.74,2))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n", - "eddy current loss per kg at 50 Hz=" - ] - }, - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " -0.118333333333333 W\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.31, Page Number:1148" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "v1=440#V\n", - "f1=50#Hz\n", - "p1=2500#W\n", - "v2=220#V\n", - "f2=25#Hz\n", - "p2=850#z\n", - "\n", - "#calculation\n", - "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 900.0 W\n", - "eddy current= 1600.0 W\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.32, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "f1=50.0#Hz\n", - "core=1000.0#W\n", - "wh=650.0#W\n", - "we=350.0#W\n", - "v2=2000.0#V\n", - "f2=100.0#Hz\n", - "\n", - "#calculation\n", - "a=wh/f1\n", - "b=we/f1**2\n", - "wh=a*f2\n", - "we=b*f2**2\n", - "new_core=wh+we\n", - "\n", - "#result\n", - "print \"new core loss=\",new_core,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new core loss= 2700.0 W\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.33, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "phi=1.4#Wb/m2\n", - "we=1000.0#W\n", - "wh=3000.0#W\n", - "per=10.0#%\n", - "\n", - "#calculation\n", - "wh1=wh*1.1**1.6\n", - "we1=we*1.1**2\n", - "wh2=wh*0.9**(-0.6)\n", - "wh3=wh*1.1**1.6*1.1**(-0.6)\n", - "#result\n", - "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", - "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", - "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", - "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", - "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" - ] - } - ], - "prompt_number": 119 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.34, Page Number:1150" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=40.0#Hz\n", - "loss=800.0#W\n", - "wh=600.0#W\n", - "we=loss-wh\n", - "v2=3300.0#V\n", - "f2=60.0#Hz\n", - "\n", - "#calculations\n", - "a=wh/f\n", - "b=we/f**2\n", - "core_loss=a*f2+b*f2**2\n", - "\n", - "#result\n", - "print \"core loss at 60 Hz=\",core_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core loss at 60 Hz= 1350.0 W\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.35, Page Number:1151" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=30.0#KvA\n", - "v1=6000.0#V\n", - "v2=230.0#V\n", - "r1=10.0#ohm\n", - "r2=0.016#ohm\n", - "x01=34.0#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"primary voltage=\",vsc,\"V\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary voltage= 199.519931911 V\n", - "pf= 0.523468222173\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.36, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "f=50.0#Hz\n", - "vo=200.0#V\n", - "io=0.7#A\n", - "po=70.0#W\n", - "vs=15.0#v\n", - "i_s=10.0#A\n", - "ps=85.0#W\n", - "load=5.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cosphi0=po/(vo*io)\n", - "sinphi0=math.sin(math.acos(cosphi0))\n", - "iw=io*cosphi0\n", - "imu=io*sinphi0\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "z02=vs/i_s\n", - "k=v2/v1\n", - "z01=z02/k**2\n", - "r02=ps/i_s**2\n", - "r01=r02/k**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "output=load/pf\n", - "i2=output*1000/v2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "print z02\n", - "#result\n", - "print \"secondary voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "1.5\n", - "secondary voltage= 377.788243349 V\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.37, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "k=1.0/6\n", - "r1=0.9#ohm\n", - "x1=5.0#ohm\n", - "r2=0.03#ohm\n", - "x2=0.13#ohm\n", - "vsc=330.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=vsc/z01\n", - "i2=i1/k\n", - "cosphisc=i1**2*r01/(vsc*i1)\n", - "\n", - "#result\n", - "print \"current in low voltage winding=\",i2,\"A\"\n", - "print \"pf=\",round(cosphisc,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in low voltage winding= 200.396236149 A\n", - "pf= 0.2\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.38, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "f=50.0#Hz\n", - "r1=0.2#ohm\n", - "x1=0.4#ohm\n", - "r2=0.5#ohm\n", - "x2=0.1#ohm\n", - "r0=1500.0#ohm\n", - "x0=750.0#ohm\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(iw**2+imu**2)**0.5\n", - "pi=v1*iw\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "power=i1**2*r01\n", - "\n", - "#result\n", - "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" - ] - } - ], - "prompt_number": 140 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.39, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=1000#kVA\n", - "v1=110#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "per1=98.5#%\n", - "pf=0.8\n", - "per2=98.8#%\n", - "\n", - "#calculaions\n", - "output=load*1\n", - "inpt=output*100/per2\n", - "loss=inpt-output\n", - "inpt_half=(load/2)*pf*100/per1\n", - "loss2=inpt_half-400\n", - "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", - "kva=load*(ans[y]/ans[x])*0.5\n", - "output=kva*1\n", - "cu_loss=ans[y]\n", - "total_loss=2*cu_loss\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"full load copper loss=\",cu_loss,\"kW\"\n", - "print \"maximum efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load copper loss= 4.07324441521606 kW\n", - "maximum efficiency= 0.968720013059872 %\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.40, Page Number:1154" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#v\n", - "v2=400.0#V\n", - "r01=0.15#ohm\n", - "x01=0.37#ohm\n", - "r0=600.0#ohm\n", - "x0=300.0#ohm\n", - "i2=10.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(imu**2+iw**2)**0.5\n", - "tantheta=iw/imu\n", - "theta=math.atan(tantheta)\n", - "theta0=math.radians(90)-theta\n", - "angle=theta0-math.acos(pf)\n", - "k=v2/v1\n", - "i2_=i2*k\n", - "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", - "r02=k**2*r01\n", - "x02=x01*k**2\n", - "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)primary current=\",i1,\"A\"\n", - "print \"ii)secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current= 20.6693546639 A\n", - "ii)secondary terminal voltage= 386.32 V\n" - ] - } - ], - "prompt_number": 149 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.43, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "n1=400.0\n", - "n2=80.0\n", - "r1=0.3#ohm\n", - "r2=0.01#ohm\n", - "x1=1.1#ohm\n", - "x2=0.035#ohm\n", - "v1=2200.0#V\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=complex(r01,x01)\n", - "z02=k**2*z01\n", - "v2=k*v1\n", - "i2=load*1000/v2\n", - "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", - "regn=vd*100/v2\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)equivalent impedence=\",z02,\"ohm\"\n", - "print \"ii)voltage regulation=\",regn,\"%\"\n", - "print \"secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent impedence= (0.022+0.079j) ohm\n", - "ii)voltage regulation= -1.53925619835 %\n", - "secondary terminal voltage= 446.772727273 V\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.44, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "va=450.0#V\n", - "vb=120.0#V\n", - "v1=120.0#V\n", - "i1=4.2#A\n", - "w1=80.0#W\n", - "v2=9.65#V\n", - "i2=22.2#A\n", - "w2=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=vb/va\n", - "i0=i1*k\n", - "cosphi0=w1/(va*i0)\n", - "phi0=math.acos(cosphi0)\n", - "sinphi0=math.sin(phi0)\n", - "iw=i0*cosphi0\n", - "imu=i0*sinphi0\n", - "r0=va/iw\n", - "x0=va/imu\n", - "z01=v2/i2\n", - "r01=vb/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "loss=w1+w2\n", - "output=load*1000*pf\n", - "efficiency=output/(output+loss)\n", - "iron_loss=w1\n", - "cu_loss=(0.5**2)*w2\n", - "total_loss=iron_loss+cu_loss\n", - "output=load*1000*pf/2\n", - "efficiency2=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"i)equivalent circuit constants=\"\n", - "print \"z01=\",z01,\"ohm\"\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r01=\",r01,\"ohm\"\n", - "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", - "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent circuit constants=\n", - "z01= 0.434684684685 ohm\n", - "x01= 0.360090249002 ohm\n", - "r01= 0.243486729973 ohm\n", - "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", - "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.45, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "va=2200.0#V\n", - "vb=220.0#V\n", - "f=50.0#Hz\n", - "v1=220.0#V\n", - "i1=4.2#A\n", - "w1=148.0#W\n", - "v2=86.0#V\n", - "i2=10.5#A\n", - "w2=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "z01=v2/i2\n", - "r01=w2/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",round(pf,1),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 2.94177963326 %\n", - "pf= 0.4 lag\n" - ] - } - ], - "prompt_number": 172 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.46, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=2000.0#V\n", - "v2=400.0#V\n", - "v=60.0#V\n", - "i=4.0#A\n", - "w=100.0#W\n", - "pf=0.8\n", - "v_=400.0#V\n", - "\n", - "#calculations\n", - "z01=v/i\n", - "r01=w/i**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/v1\n", - "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"voltage applied to hv side=\",v1+vd,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage applied to hv side= 2065.90767043 V\n" - ] - } - ], - "prompt_number": 182 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.47, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=500.0#V\n", - "vs=20.0#V\n", - "i_s=12.0#A\n", - "ws=100.0#W\n", - "vo=250.0#V\n", - "io=1.0#A\n", - "wo=80.0#W\n", - "i2=10#A\n", - "v2=500#V\n", - "pg=0.8\n", - "\n", - "#calculation\n", - "cosphi0=wo/(vo*io)\n", - "iw=io*cosphi0\n", - "imu=(1-iw**2)**0.5\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "r02=ws/i_s**2\n", - "z02=vs/i_s\n", - "x02=(z02**2-r02**2)**0.5\n", - "k=v2/v1\n", - "r01=r02/k**2\n", - "x01=x02/k**2\n", - "z01=z02/k**2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=wo\n", - "total_loss=iron_loss+cu_loss\n", - "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", - "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "\n", - "#result\n", - "print \"applied voltage=\",v1_,\"V\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "applied voltage= 251.442641983 V\n", - "efficiency= 96.3984469139 %\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.48, Page Number:1160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230.0#V\n", - "v2=230.0#V\n", - "load=3.0#kVA\n", - "vo=230.0#V\n", - "io=2.0#A\n", - "wo=100.0#W\n", - "vs=15.0#V\n", - "i_s=13.0#A\n", - "ws=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v1\n", - "cu_loss=ws\n", - "core_loss=wo\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+core_loss)\n", - "z=vs/i_s\n", - "r=ws/(vs**2)\n", - "x=(z**2-r**2)**0.5\n", - "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.90121149256 %\n", - "efficiency= 91.6030534351 %\n" - ] - } - ], - "prompt_number": 194 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.49, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "efficiency=0.94\n", - "per=0.90\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=per*load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "core_loss=loss/2\n", - "pc=core_loss/per**2\n", - "output=load*1000*pf\n", - "cu_loss=pc\n", - "efficiency=output/(output+cu_loss+core_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.5728354534 %\n" - ] - } - ], - "prompt_number": 196 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.50, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=2300.0#V\n", - "v2=230.0#V\n", - "r1=3.96#ohm\n", - "r2=0.0396#ohm\n", - "x1=15.8#ohm\n", - "x2=0.158#ohm\n", - "pf=0.8\n", - "v=230.0#V\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "r=r2+r1*(v2/v1)**2\n", - "x=x1*(v2/v1)**2+x2\n", - "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", - "v1=v1_*(v1/v2)\n", - "phi=math.atan(r/x)\n", - "pf=math.cos(phi)\n", - "#result\n", - "print \"a)HV side voltage necessary=\",v1,\"V\"\n", - "print \"b)pf=\",round(pf,2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)HV side voltage necessary= 2409.9826087 V\n", - "b)pf= 0.97\n" - ] - } - ], - "prompt_number": 199 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.51, Page Number:1162" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#v\n", - "r1=3.4#ohm\n", - "x1=7.2#ohm\n", - "r2=0.028#ohm\n", - "x2=0.060#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "r=r1*(v2/v1)**2+r2\n", - "x=x1*(v2/v1)**2+x2\n", - "ad=i*r*pf\n", - "dc=i*x*math.sin(math.acos(pf))\n", - "oc=v2+ad+dc\n", - "bd=i*r*math.sin(math.acos(pf))\n", - "b_f=x*pf\n", - "cf=b_f-bd\n", - "v1_=(oc**2+cf**2)**0.5\n", - "v1=v1_*(v1/v2)\n", - "\n", - "#result\n", - "print \"terminal voltage on hv side=\",v1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage on hv side= 2229.28500444 V\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.52, Page Number:1163" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "i1=0.7#A\n", - "w1=65.0#W\n", - "v=15.0#V\n", - "i2=10.0#A\n", - "w2=75.0#W\n", - "pf=0.80\n", - "#calculation\n", - "il=load*1000/v1\n", - "ih=load*1000/v2\n", - "cu_loss=w2\n", - "constant_loss=w1\n", - "z=v/i2\n", - "r=w2/i2**2\n", - "x=(z**2-r**2)**0.5\n", - "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", - "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency,\"%\"\n", - "print \"full load regulation=\",regn,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.6183574879 %\n", - "full load regulation= 13.7942286341 V\n" - ] - } - ], - "prompt_number": 209 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.53, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=3300.0#V\n", - "v2=230.0#V\n", - "load=50.0#kVA\n", - "z=4\n", - "cu_loss=1.8\n", - "\n", - "#calculations\n", - "x=(z**2-cu_loss**2)**0.5\n", - "i1=load*1000/v1\n", - "r01=cu_loss*v1/(100*i1)\n", - "x01=x*v1/(100*i1)\n", - "z01=z*v1/(100*i1)\n", - "isc=i1*100/z\n", - "print \n", - "#result\n", - "print \"%x=\",x,\"%\"\n", - "print \"resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"primary sc current=\",isc,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "%x= 3.5721142199 %\n", - "resistance= 3.9204 ohm\n", - "reactance= 7.78006477094 ohm\n", - "impedence= 8.712 ohm\n", - "primary sc current= 378.787878788 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.54, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "vo=220.0#V\n", - "i_o=4.2#A\n", - "wo=148.0#W\n", - "vs=86.0#V\n", - "i_s=10.5#A\n", - "ws=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=ws/i_s**2\n", - "r02=k**2*r01\n", - "z10=vs/i_s\n", - "x01=(z10**2-r01**2)**0.5\n", - "x02=k**2*x01\n", - "i1=load*1000/v1\n", - "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "regn1=(v1_-v1)/v1\n", - "i2=i1/k\n", - "core_loss=wo\n", - "cu_loss=i1**2*r01\n", - "cu_loss_half=(i1/2)**2*r01\n", - "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", - "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", - "print v1_ \n", - "#result\n", - "print \"a)core loss=\",wo,\"W\"\n", - "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", - "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", - "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", - "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", - "print \"f)regulation=\",regn1*100,\"%\"\n", - "print \"g)efficiency at full load=\",efficiency,\"%\"\n", - "print \"h)efficiency at half load=\",efficiency_half,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2265.01840886\n", - "a)core loss= 148.0 W\n", - "b)equivalent resistance primary= 3.26530612245 ohm\n", - "c)equivalent resistance secondary= 0.0326530612245 ohm\n", - "d)equivalent reactance primary= 7.51143635755 ohm\n", - "e)equivalent reactance secondary= 0.0751143635755 ohm\n", - "f)regulation= 2.95538222101 %\n", - "g)efficiency at full load= 97.4548448466 %\n", - "h)efficiency at half load= 95.0360304208 %\n" - ] - } - ], - "prompt_number": 222 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.55, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "er=1.0/100\n", - "ex=5.0/100\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "regn2=er*1\n", - "regn3=er*pf-ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", - "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", - "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation with pf=0.8 lag= 3.8 %\n", - "ii)regulation with pf=1= 1.0 %\n", - "iii)regulation with pf=0.8 lead= -2.2 %\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.56, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500#kVA\n", - "v1=3300#V\n", - "v2=500#V\n", - "f=50#Hz\n", - "per=0.97\n", - "ratio=3.0/4\n", - "zper=0.10\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=load*ratio*1\n", - "x=0.75\n", - "pi=0.5*(output*(1/per-1))\n", - "pc=pi/x**2\n", - "i1=load*1000/v1\n", - "r=pc*1000/i1**2\n", - "er=i1*r/v1\n", - "ez=zper\n", - "ex=(ez**2-er**2)**0.5\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation=\",regn*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 7.52529846012 %\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.57, Page Number:1166" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "cu_loss=1.5#%\n", - "xdrop=3.5#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "pur=cu_loss/100\n", - "pux=xdrop/100\n", - "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", - "regn1=pur*1\n", - "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", - "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", - "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation at unity pf= 1.5 %\n", - "ii)regulation at 0.8 lag= 3.3 %\n", - "iii)regulation at 0.8 lead= -0.9 %\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.58, Page Number:1168" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#KVA\n", - "w1=5.0#kW\n", - "w2=7.5#kW\n", - "efficiency=0.75\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "loss=total_loss/2\n", - "cu_loss=efficiency**2*w2/2\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+cu_loss+2.5)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.0186963113 %\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.59, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2000.0#V\n", - "v2=200.0#V\n", - "w1=350.0#W\n", - "w2=400.0#W\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "output=load*1000*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=w2*(0.5)**2\n", - "total_loss=cu_loss+w1\n", - "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", - "\n", - "#result\n", - "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency at full load= 97.0873786408 %\n", - "ii)efficiency at half load= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 232 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.60, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.75\n", - "\n", - "#calculation\n", - "ratio=efficiency**2\n", - "\n", - "#result\n", - "print \"ratio of P1 and P2=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of P1 and P2= 0.5625\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.61, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=230.0#V\n", - "load1=150.0#KVA\n", - "f=50.0#Hz\n", - "loss=1.4#kW\n", - "cu_loss=1.6#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "load=load1*(cu_loss/loss)**0.5\n", - "total_loss=loss*2\n", - "output=load*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=cu_loss*(0.5)**2\n", - "total_loss=total_loss+cu_loss\n", - "output2=(load/2)*pf\n", - "efficiency2=output2/(output2+total_loss)\n", - "\n", - "#result\n", - "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", - "print \"max efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load for max efficiency= 150.0 kVA\n", - "max efficiency= 98.283858876 %\n", - "ii)efficiency at half load= 95.2481856352 %\n" - ] - } - ], - "prompt_number": 237 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.62, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "#variable declaration\n", - "load=5#kVA\n", - "v1=2300#V\n", - "v2=230#V\n", - "f=50#Hz\n", - "iron_loss=40#W\n", - "cu_loss=112#W\n", - "pf=0.8\n", - "#calculations\n", - "def e(k):\n", - " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", - " return(e)\n", - "\n", - "e1=e(1.25)\n", - "e2=e(2.5)\n", - "e3=e(3.75)\n", - "e4=e(5.0)\n", - "e5=e(6.25)\n", - "e6=e(7.5)\n", - "\n", - "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", - "E=[e1,e2,e3,e4,e5,e6]\n", - "a=plot(K,E)\n", - "xlabel(\"load,kVA\") \n", - "ylabel(\"Efficiency\") \n", - "plt.xlim((0,8))\n", - "plt.ylim((92,98))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.63, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kVA\n", - "efficiency=0.98\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "output=load*pf\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "x=loss*1000/(1+9.0/16)\n", - "y=(9.0/16)*x\n", - "cu_loss=x*(1.0/2)**2\n", - "total_loss=cu_loss+y\n", - "output=load*pf*0.5\n", - "efficiency=output/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"efficiency at hald load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at hald load= 97.9216626699 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.64, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "r1=1.0#ohm\n", - "r2=0.01#ohm\n", - "pf=0.8\n", - "loss=0.80\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "i2=load*1000/v2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=loss*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "output=load*pf*1000\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"secondary resistance=\",r02,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary resistance= 0.02 ohm\n", - "efficiency= 97.7284199899 %\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.65, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "r01=0.5#ohm\n", - "x01=1.5#ohm\n", - "ratio=3.0/4\n", - "pf=0.8\n", - "v=220.0#V\n", - "loss=100.0#W\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=k**2*r01\n", - "x02=k**2*x01\n", - "i2=1000*load*ratio/v2\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "cu_loss=i2**2*r02\n", - "total_loss=loss+cu_loss\n", - "output=load*ratio*pf\n", - "inpt=output*1000+total_loss\n", - "efficiency=output*1000/(inpt)\n", - "#result\n", - "print \"output=\",output,\"w\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 2.4 w\n", - "efficiency= 91.8660287081 %\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.66, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=440.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "loss=324.0#W\n", - "cu_loss=100.0#W\n", - "pf=0.8\n", - "#calculations\n", - "cu_loss=4*cu_loss\n", - "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", - "per=(loss/cu_loss)**0.5\n", - "\n", - "#result\n", - "print \"i)efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)percent of full-load=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency= 95.6708921311 %\n", - "ii)percent of full-load= 90.0 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.67, Page Number:1173" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "pf=0.8\n", - "vo=200.0#V\n", - "io=0.8#A\n", - "wo=70.0#W\n", - "vs=20.0#V\n", - "i_s=10.0#A\n", - "ws=60.0#W\n", - "\n", - "#calculation\n", - "i2=load*1000/v2\n", - "loss=ws+wo\n", - "output=load*pf\n", - "efficiency=output/(output+loss/1000)\n", - "z02=vs/i_s\n", - "r02=ws/i2**2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "i1=load*1000/v1\n", - "load=load*(wo/ws)**0.5\n", - "load=load*1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"secondary voltage=\",v2,\"V\"\n", - "print \"current=\",i1,\"A\"\n", - "print \"load at unity pf=\",load,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.0960960961 %\n", - "secondary voltage= 383.752729583 V\n", - "current= 20.0 A\n", - "load at unity pf= 4.32049379894 kW\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.69, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=600.0#KVA\n", - "efficiency=0.92\n", - "per=0.60\n", - "\n", - "#calculation\n", - "inpt=load/efficiency\n", - "loss1=inpt-load\n", - "inpt2=load/(2*efficiency)\n", - "loss2=inpt2-load/2\n", - "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", - "cu_loss=ans[y]*0.36\n", - "loss=cu_loss+ans[x]\n", - "output=load*per\n", - "efficiency=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "389.913043478261\n", - "efficiency= 92.3282783229260 %\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.70, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "e1=0.98\n", - "e2=0.80\n", - "pf=8\n", - "z=0.05\n", - "pf1=0.8\n", - "\n", - "#calculations\n", - "output=load*pf1*e2\n", - "inpt=output/e1\n", - "loss=-output+inpt\n", - "cu_loss=loss/2\n", - "cu_loss_full=cu_loss/pf1**2\n", - "r=round(cu_loss_full*100/load)\n", - "sin=math.sin(math.acos(pf1))\n", - "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", - "#result\n", - "print \"voltage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 3.8578 %\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.71, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#KVA\n", - "v1=5000.0#V\n", - "v2=440.0#V\n", - "f=25.0#Hz\n", - "cu_loss=1.5\n", - "we=0.5\n", - "wh=0.6\n", - "v2=10000.0\n", - "#calculations\n", - "cu_loss1=cu_loss*load/100\n", - "we1=we*load/100\n", - "wh1=wh*load/100\n", - "cu_loss2=cu_loss1\n", - "we2=(we1*(50.0/25.0)**2)\n", - "wh2=(wh1*(50.0/25))\n", - "e1=load*100/(load+cu_loss1+we1+wh1)\n", - "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", - "\n", - "#result\n", - "print \"full load efficiency in first case=\",e1,\"%\"\n", - "print \"full load efficiency in second case=\",e2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "20.47 0.06 0.05\n", - "full load efficiency in first case= 97.4658869396 %\n", - "full load efficiency in second case= 97.7039570103 %\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.72, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=300#KVA\n", - "r=1.5#%\n", - "load1=173.2#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss=r*load*1000/100\n", - "iron_loss=(load1/load)**2*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.5610105096 %\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.73, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "v1=2300#V\n", - "v2=230.0#V\n", - "f=50#Hz\n", - "phim=1.2#Wb/m2\n", - "a=0.04#m2\n", - "l=2.5#m\n", - "bm=1200\n", - "inpt=1200#W\n", - "pi=400#W\n", - "efficiency=0.75\n", - "pf=0.8\n", - "f2=100#Hz\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*phim*a)\n", - "k=v2/v1\n", - "n2=k*n1\n", - "i=1989/n1\n", - "cu_loss=efficiency**2*inpt\n", - "total_loss=pi+cu_loss\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"a)n1=\",round(n1)\n", - "print \" n2=\",round(n2)\n", - "print \"b)magnetising current=\",i,\"A\"\n", - "print \"c)efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.00643416423287\n", - "a)n1= 216.0\n", - " n2= 22.0\n", - "b)magnetising current= 9.21512347826 A\n", - "c)efficiency= 98.2398690135 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.74, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.8\n", - "x=5.4\n", - "\n", - "#calculation\n", - "pf=r/x\n", - "phi=math.atan(pf)\n", - "phi2=math.atan(x/r)\n", - "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", - "efficiency=100/(100+r*2)\n", - "\n", - "#result\n", - "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", - "print \" ii)regulation=\",regn,\"%\"\n", - "print \"b)efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)phi= 18.4349488229 degrees\n", - " ii)regulation= 5.6920997883 %\n", - "b)efficiency= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.75, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "vo=250.0#V\n", - "io=3.0#A\n", - "wo=200.0#W\n", - "vsc=15.0#V\n", - "isc=30.0#A\n", - "wsc=300.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "cu_loss=(i/isc)**2*wsc\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+wo)\n", - "z=vsc/isc\n", - "r=wsc/isc**2\n", - "x=(z**2-r**2)**0.5\n", - "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.6030534351 %\n", - "regulation= 1.72239475667 %\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.76, Page Number:1177" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40.0#kVA\n", - "loss=400.0#W\n", - "cu_loss=800.0#W\n", - "\n", - "#calculation\n", - "x=(loss/cu_loss)**0.5\n", - "output=load*x*1\n", - "efficiency=output/(output+load*2/100)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.2493723732 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.77, Page Number:1178" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#kVA\n", - "v1=500#V\n", - "v2=250#V\n", - "vsc=60#V\n", - "isc=20#A\n", - "wsc=150#W\n", - "per=1.2\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=load*1000/v1\n", - "cu_loss=per**2*wsc\n", - "output=per*load*1.0\n", - "efficiency=output*100/(output+cu_loss*2/1000)\n", - "output=load*1000*pf\n", - "e2=output*100/(output+cu_loss+wsc)\n", - "\n", - "#result\n", - "print \"maximum efficiency=\",efficiency,\"%\"\n", - "print \"full-load efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum efficiency= 96.5250965251 %\n", - "full-load efficiency= 95.6251494143 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.78, Page Number:1181" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#kVA\n", - "cu_loss=4.5#kW\n", - "iron_loss=3.5#kW\n", - "t1=6.0#hrs\n", - "t2=10.0#hrs\n", - "t3=4.0#hrs\n", - "t4=4.0#hrs\n", - "load1_=400.0#kW\n", - "load2_=300.0#kW\n", - "load3_=100.0#kW\n", - "pf1=0.8\n", - "pf2=0.75\n", - "pf3=0.8\n", - "\n", - "#calculations\n", - "load1=load1_/pf1\n", - "load2=load2_/pf2\n", - "load3=load3_/pf3\n", - "wc1=cu_loss\n", - "wc2=cu_loss*(load2/load1)**2\n", - "wc3=cu_loss*(load3/load1)**2\n", - "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", - "iron_loss=24*iron_loss\n", - "total_loss=twc+iron_loss\n", - "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.6 %\n" - ] - } - ], - "prompt_number": 86 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.79, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "loss=3.0#kW\n", - "tf=3.0#hrs\n", - "th=4.0#hrs\n", - "\n", - "#calculation\n", - "iron_loss=loss*24/2\n", - "wcf=loss*tf/2\n", - "wch=loss/8\n", - "wch=wch*4\n", - "total_loss=iron_loss+wch+wcf\n", - "output=load*tf+load*th/2\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.2509225092 %\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.80, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#KW\n", - "efficiency=0.98\n", - "tf=4.0#hrs\n", - "th=6.0#hrs\n", - "t10=14.0#hrs\n", - "\n", - "#calculations\n", - "#1st transformer\n", - "inpt=load/efficiency\n", - "tloss=inpt-load\n", - "y=tloss/2\n", - "x=y\n", - "iron_loss=x*24\n", - "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", - "loss=iron_loss+cu_loss\n", - "output=tf*load+th*load/2+t10*10\n", - "e1=output/(output+loss)\n", - "#2nd transformer\n", - "y=tloss/(1+1.0/4)\n", - "x=(tloss-y)\n", - "iron_loss=x*24\n", - "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", - "loss=iron_loss+wc\n", - "e2=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", - "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.408163265306 1.63265306122\n", - "efficiency of forst transformer= 96.5245532574 %\n", - "efficiency ofsecond transformer= 97.7876610788 %\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.81, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "efficiency=0.95\n", - "nl=10.0#hrs\n", - "ql=7.0#hrs\n", - "hl=5.0#hrs\n", - "fl=2.0#hrs\n", - "\n", - "#calculations\n", - "inpt=load/efficiency\n", - "loss=inpt-load\n", - "wc_fl=loss/2\n", - "iron_loss=loss/2\n", - "wc_fl_4=(1.0/4)**2*wc_fl\n", - "wc_fl_2=(1.0/2)**2*wc_fl\n", - "wc_ql=ql*wc_fl_4\n", - "wc_hl=hl*wc_fl_2\n", - "wc_fl_2=fl*wc_fl\n", - "wc=wc_ql+wc_hl+wc_fl_2\n", - "wh=wc\n", - "loss=wh+24*iron_loss\n", - "output=load*1\n", - "half_output=(output/2)\n", - "q_load=(load/4)\n", - "output=ql*q_load+hl*half_output+fl*output\n", - "e=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 89.5592740985 %\n" - ] - } - ], - "prompt_number": 115 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.82, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.98\n", - "load=15#kVA\n", - "t1=12.0#hrs\n", - "t2=6.0#hrs\n", - "t3=6.0#hrs\n", - "pf1=0.5\n", - "pf2=0.8\n", - "k1=2#kW\n", - "k2=12#kW\n", - "\n", - "#calculations\n", - "output=load*1\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "wc=loss/2\n", - "wi=loss/2\n", - "w1=k1/pf1\n", - "w2=k2/pf2\n", - "wc1=wc*(4/load)\n", - "wc2=wc\n", - "wc12=t1*wc1\n", - "wc6=t2*wc2\n", - "wc=(wc12+wc6)\n", - "wi=24*wi\n", - "output=(k1*t1)+(t2*k2)\n", - "inpt=output+wc+wi\n", - "e=output*100/inpt\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.918367346939 3.67346938776\n", - "efficiency= 95.4351795496 %\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.83, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=150.0#KVA\n", - "l1_=100.0#kVA\n", - "t=3.0#hrs\n", - "loss=1.0#KW\n", - "\n", - "#calculations\n", - "l1=l1_/2\n", - "l2=l1_\n", - "output=load*1\n", - "loss=loss*2\n", - "e1=output/(output+loss)\n", - "wc1=t*(1.0/3)**2*1\n", - "wc2=8*(2.0/3)**2*1\n", - "wc=wc1+wc2\n", - "wi=24*1\n", - "loss=wc+wi\n", - "output=3*(l1*1)+8*(l2*1)\n", - "e2=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"ordinary efficiency=\",e1*100,\"%\"\n", - "print \"all day efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ordinary efficiency= 98.6842105263 %\n", - "all day efficiency= 97.1480513578 %\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.84, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50#KVA\n", - "efficiency=0.94#%\n", - "nl=10\n", - "hl=5.0\n", - "ql=6.0\n", - "fl=3.0\n", - "\n", - "#calculations\n", - "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", - "wch=(0.5)**2*pi\n", - "eh=wch*hl/1000\n", - "wcq=(0.25)**2*pi\n", - "eq=ql*wcq/1000\n", - "e3=pi*3/1000\n", - "e2=pi*24/1000\n", - "e=25*hl+12.5*ql+50*fl\n", - "efficiency=e/(e+e2+eh+eq+e3)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 88.4557217274 %\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.85, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "t1=7.0#hrs\n", - "t2=4.0#hrs\n", - "t3=8.0#hrs\n", - "t4=5.0#hrs\n", - "k1=3.0#kW\n", - "k2=8.0#kW\n", - "pf1=0.6\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "x1=k1/(pf1*load)\n", - "x2=k2/(pf2*load)\n", - "x3=load/(1*load)\n", - "pc1=(0.5)**2*0.1\n", - "pc2=pc3=0.10\n", - "o1=k1*t1\n", - "o2=k2*t2\n", - "o3=k2*load\n", - "output=o1+o2+o3\n", - "wc1=pc1*t1\n", - "wc2=pc2*t2\n", - "wc3=pc3*t3\n", - "cu_loss=wc1+wc2+wc3\n", - "loss=400.0*24/10000\n", - "efficiency=output/(output+loss+cu_loss)\n", - "\n", - "#result\n", - "print \"efficency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficency= 98.27465179 %\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.86, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=.98\n", - "load=15.0#kVA\n", - "t1=12.0\n", - "t2=6.0\n", - "t3=6.0\n", - "pf1=0.8\n", - "pf2=0.8\n", - "pf3=0.9\n", - "k1=2.0\n", - "k2=12.0\n", - "k3=18.0\n", - "#calculations\n", - "output=load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "cu_loss=loss/2\n", - "x1=k1/(0.5*load)\n", - "x2=k2/(pf2*load)\n", - "x3=k3/(pf3*load)\n", - "wc1=0.131\n", - "wc2=0.918\n", - "wc3=1.632\n", - "o1=t1*k1\n", - "o2=t2*k2\n", - "o3=t3*k3\n", - "output=o1+o2+o3\n", - "loss=wc1+wc2+wc3+0.153*24\n", - "efficiency=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.9798386522 %\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.87, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.0#kW\n", - "v1=115.0#V\n", - "v2=230.0#V\n", - "\n", - "#calculation\n", - "k=v1/v2\n", - "power=load*(1-k)\n", - "power2=k*load\n", - "\n", - "#result\n", - "print \"a)power transferred inductively=\",power,\"kW\"\n", - "print \"b)power transferred conductively=\",power2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)power transferred inductively= 1.5 kW\n", - "b)power transferred conductively= 1.5 kW\n" - ] - } - ], - "prompt_number": 145 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.88, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=500.0#V\n", - "v2=400.0#V\n", - "i=100.0#A\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "i1=k*i\n", - "saving=k*100\n", - "\n", - "#result\n", - "print \"economy of cu=\",saving" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "economy of cu= 80.0\n" - ] - } - ], - "prompt_number": 147 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.89, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#KVA\n", - "f=50.0#Hz\n", - "v1=6600.0#V\n", - "v2=5000.0#V\n", - "e=8.0#V\n", - "phim1=1.3#Wb/m2\n", - "\n", - "#calculations\n", - "phim=e/(4.44*f)\n", - "area=phim/phim1\n", - "n1=v1/e\n", - "n2=v2/e\n", - "\n", - "#result\n", - "print \"core area=\",area*10000,\"m2\"\n", - "print \"number of turns on the hv side=\",n1\n", - "print \"number of turns on the lv side=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core area= 277.2002772 m2\n", - "number of turns on the hv side= 825.0\n", - "number of turns on the lv side= 625.0\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.90, Page Number:1189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2640*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i1_-i2\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 219.12 kVA\n", - "iv)per cent increase in kVA= 1095.6 %\n", - "v)I1= 91.3 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.91, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2160*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i2-i1_\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 179.28 kVA\n", - "iv)per cent increase in kVA= 896.4 %\n", - "v)I1= 74.7 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 160 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.92, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=110.0#V\n", - "v2=110.0#V\n", - "f=50.0#Hz\n", - "efficiency=0.95\n", - "iron_loss=50.0#W\n", - "v=220.0#V\n", - "\n", - "#calculations\n", - "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", - "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", - "i2=(load*1000+cu_loss/4+iron_loss)/v\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"current drawn on hv side=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.9760216579 %\n", - "current drawn on hv side= 23.1967703349 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.93, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500#V\n", - "v2=2300#V\n", - "\n", - "#calculations\n", - "kva=(v1+v2)*50*0.001\n", - "\n", - "#result\n", - "print \"voltage output=\",v1+v2,\"V\"\n", - "print \"kVA rating of auto transformer=\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage output= 13800 V\n", - "kVA rating of auto transformer= 690.0 kVA\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.94, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500.0#V\n", - "v2=2300.0#V\n", - "load=100.0#KVA\n", - "\n", - "#calculations\n", - "i1=load*100/v1\n", - "i2=load*100/v2\n", - "kva1=(v1+v2)*i1/(100)\n", - "kva2=(v1+v2)*i2/(100)\n", - "#result\n", - "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", - "print \"kVA rating in first case=\",kva1\n", - "print \"kVA rating in second case=\",kva2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage ratios= 1.2 or 6.0\n", - "kVA rating in first case= 120.0\n", - "kVA rating in second case= 600.0\n" - ] - } - ], - "prompt_number": 167 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.95, Page Number:1192" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2400.0#v\n", - "v2=240.0#V\n", - "load=50.0#kVA\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "output=2640*i2\n", - "i=i2*2640/v1\n", - "k=2640/v1\n", - "poweri=v1*i1*0.001\n", - "power=output/1000-poweri\n", - "\n", - "#result\n", - "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", - "print \"inductively transferred powers=\",poweri,\"kW\"\n", - "print \"conductively transferred powers=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rating of the auto-transformer= 550.0 kVA\n", - "inductively transferred powers= 50.0 kW\n", - "conductively transferred powers= 500.0 kW\n" - ] - } - ], - "prompt_number": 169 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.96, Page Number:1196" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "za=complex(0.5,3)\n", - "zb=complex(0.,10)\n", - "load=100#KW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", - "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "96.082805253\n", - "SA= 74.5937961595 kW\n", - "SB= 25.4062038405 kW\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.97, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r1=0.005#ohm\n", - "r2=0.01#ohm\n", - "x1=0.05#ohm\n", - "x2=0.04#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "za=complex(r1,x1)\n", - "zb=complex(r2,x2)\n", - "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", - "\n", - "#result\n", - "print \"load of B=\",abs(za/zb)\n", - "print \"pf of B=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load of B= 1.21872643265\n", - "pf of B= 0.613584256393\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.98, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#kVA\n", - "za=complex(1,6)\n", - "zb=complex(1.2,4.8)\n", - "load1=500#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 224.451917244 -39.3923099293\n", - "SB= 275.942423833 -34.8183886694\n" - ] - } - ], - "prompt_number": 205 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.99, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "load=100.0#KW\n", - "r1=0.5\n", - "x1=8.0\n", - "r2=0.75\n", - "x2=4.0\n", - "load1=180.0#kW\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "load=load1/pf\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "z1=complex(r1,x1)\n", - "z2=complex(r2,x2)\n", - "s1=s*z2/(z1+z2)\n", - "s2=s*z1/(z1+z2)\n", - "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", - "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", - "\n", - "#result\n", - "print \"kW1=\",kw1,\"kW\"\n", - "print \"kW2=\",kw2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "(1.25+12j)\n", - "kW1= 58.119626171 kW\n", - "kW2= 121.880373829 kW\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.100, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kW\n", - "pf=0.85\n", - "za=complex(1,5)\n", - "zb=complex(2,6)\n", - "\n", - "#calculations\n", - "s=load/pf*complex(0.85,-0.527)\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", - "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA for A= 130.53263665 0.819364787986 lag\n", - "kVA for B= 105.238776124 0.884143252833 lag\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.101, Page Number:1198" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=110.0#V\n", - "load=125.0#kVA\n", - "pf=0.8\n", - "za=complex(0.9,10)\n", - "zb=(100/50)*complex(1.0,5)\n", - "\n", - "#calculation\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 63.0780848499 -39.929442891 degrees\n", - "SB= 62.1031510961 -33.7622749748 degrees\n" - ] - } - ], - "prompt_number": 218 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.102, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=500#kVA\n", - "za=complex(1,5)\n", - "load2=250#kVA\n", - "zb=complex(1.5,4)\n", - "v2=400#V\n", - "load=750#kVA\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zb=(500/load2)*zb\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 471.125736359 -40.3232138964 degrees\n", - "SB= 281.165527855 -31.0771011508 degrees\n" - ] - } - ], - "prompt_number": 219 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.103, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=1000#A\n", - "pf=0.8\n", - "za=complex(2,3)\n", - "zb=complex(2.5,5)\n", - "\n", - "#calculations\n", - "i=i*complex(pf,-math.sin(math.acos(pf)))\n", - "ratio=zb/za\n", - "ib=i/(1+ratio)\n", - "ia=i-ib\n", - "ratio=ia.real/ib.real\n", - "\n", - "#result\n", - "print \"IA=\",ia\n", - "print \"IB=\",ib\n", - "print \"ratio of output=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= (504.451038576-341.246290801j)\n", - "IB= (295.548961424-258.753709199j)\n", - "ratio of output= 1.70682730924\n" - ] - } - ], - "prompt_number": 220 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.104, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "v2=500.0#V\n", - "load=100.0#kVA\n", - "za=complex(1.0,5.0)\n", - "zb=complex(2.0,2.0)\n", - "load1=300.0#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "zb=(100.0/250)*zb\n", - "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "zab=za*zb/(za+zb)\n", - "drop=zab.real*240/100+zab.imag*180/100\n", - "v2=v2-v2*drop/100\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "print \"secondary voltage=\",v2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 55.8895719399 -64.6284382469 degrees\n", - "SB= 251.890896741 -30.9383707209 degrees\n", - "secondary voltage= 486.177874187 V\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.105, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n11=5000.0\n", - "n12=440.0\n", - "load1=200#kVA\n", - "n21=5000.0\n", - "n22=480.0\n", - "load2=350#kVA\n", - "x=3.5\n", - "\n", - "#calculation\n", - "i1=load1*1000/n12\n", - "i2=load2*1000/n22\n", - "x1=x*n12/(100*i1)\n", - "x2=x*n22/(100*i2)\n", - "ic=(n22-n12)/0.057\n", - "\n", - "#result\n", - "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.106, Page Number:1203" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "ea=6600#V\n", - "eb=6400#V\n", - "za=complex(0.3,3)\n", - "zb=complex(0.2,1)\n", - "zl=complex(8.0,6.0)\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "\n", - "#result\n", - "print \"IA=\",abs(ia),\"A\"\n", - "print \"IB=\",abs(ib),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= 195.492387533 A\n", - "IB= 422.567795916 A\n" - ] - } - ], - "prompt_number": 227 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.107, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=100.0#kVA\n", - "load2=50.0#kVA\n", - "v1=1000.0#V\n", - "v2=950.0#V\n", - "r1=2.0\n", - "r2=2.5\n", - "x1=8.0\n", - "x2=6.0\n", - "\n", - "#calculations\n", - "ia=load1*1000/v1\n", - "ra=v1*r1/(100*ia)\n", - "xa=v1*x1/(100*ia)\n", - "ib=load2*1000/v2\n", - "rb=v2*r2/(100*ib)\n", - "xb=v2*x2/(100*ib)\n", - "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", - "ic=(v1-v2)/z\n", - "alpha=math.atan((xa+xb)/(ra+rb))\n", - "\n", - "#result\n", - "print \"no load circulating current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load circulating current= 25.0948635944 A\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 32.108, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=1000.0#KVA\n", - "load2=500.0#kVA\n", - "v1=500.0#V\n", - "v2=510.0#V\n", - "z1=3.0\n", - "z2=5.0\n", - "r=0.4\n", - "\n", - "#calculation\n", - "ia=load1*1000/480\n", - "ib=load2*1000/480\n", - "za=z1*v1/(100*ia)\n", - "zb=z2*v2/(100*ib)\n", - "ic=(v2-v1)/(za+zb)\n", - "\n", - "#result\n", - "print \"cross current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "cross current= 315.656565657 A\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.109, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "loada=500.0#KVA\n", - "loadb=250.0#kVA\n", - "load=750.0#KVA\n", - "pf=0.8\n", - "v1=405.0#V\n", - "v2=415.0#V\n", - "ra=1.0\n", - "rb=1.5\n", - "xa=5.0\n", - "xb=4.0\n", - "\n", - "#calculations\n", - "ia=loada*1000/400\n", - "ra=400/(100*ia)\n", - "xa=xa*400/(100*ia)\n", - "ib=loadb*1000/400\n", - "rb=rb*400/(100*ib)\n", - "xb=xb*400/(100*ib)\n", - "za=complex(ra,xa)\n", - "zb=complex(rb,xb)\n", - "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", - "ic=(v1-v2)/(za+zb)\n", - "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "sa=400*ia/1000\n", - "sb=400*ib/1000\n", - "pf1=math.cos(math.atan(sa.imag/sa.real))\n", - "pf2=math.cos(math.atan(sb.imag/sb.real))\n", - "\n", - "#result\n", - "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", - "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", - "print \" SB=\",abs(sb),pf2,\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross current= -229.754569404 -72.8972710309\n", - "b)SA= 387.844943528 0.820048560714 lag\n", - " SB= 351.964386212 0.738709225528 lag\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.110, Page Number:1205" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zl=complex(2.0,1.5)\n", - "za=complex(0.15,0.5)\n", - "zb=complex(0.1,0.6)\n", - "ea=207#V\n", - "eb=205#V\n", - "\n", - "#calculations\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "v2_=(ia+ib)*zl\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", - "pfa=math.cos(angle)\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", - "pfb=math.cos(angle)\n", - "pa=abs(v2_)*abs(ia)*pfa\n", - "pb=abs(v2_)*abs(ib)*pfb\n", - "\n", - "#result\n", - "print \"power output:\"\n", - "print \" A:\",pa,\"W\"\n", - "print \" B:\",pb,\"W\"\n", - "print \"power factor:\"\n", - "print \" A:\",pfa\n", - "print \" B:\",pfb\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output:\n", - " A: 6535.37583042 W\n", - " B: 4925.36941503 W\n", - "power factor:\n", - " A: 0.818428780129\n", - " B: 0.775705655277\n" - ] - } - ], - "prompt_number": 248 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.111, Page Number:1206" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=200.0#A\n", - "ib=600.0#A\n", - "ra=0.02#ohm\n", - "rb=0.025#ohm\n", - "xa=0.05#ohm\n", - "xb=0.06#ohm\n", - "ea=245.0#V\n", - "eb=240.0#V\n", - "zl=complex(0.25,0.1)\n", - "\n", - "#calculation\n", - "za=(ea/ia)*complex(ra,xa)\n", - "zb=(eb/ib)*complex(rb,xb)\n", - "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", - "v2=i*zl\n", - "\n", - "#result\n", - "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 230.0 -3.0 degrees\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb deleted file mode 100644 index a29de087..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb +++ /dev/null @@ -1,5311 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 32: Transformer" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.1, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=3000.0#V\n", - "f=50.0#Hz\n", - "phi=1.2#Wb-m2\n", - "e=8.0#V\n", - "\n", - "#calculations\n", - "n1=v1/e\n", - "n2=v2/e\n", - "a=v2/(4.44*f*n2*phi)\n", - "\n", - "#result\n", - "print \"primary turns=\",n1\n", - "print \"secondary turns=\",n2\n", - "print \"area of core=\",round(a,2),\"m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary turns= 31.25\n", - "secondary turns= 375.0\n", - "area of core= 0.03 m2\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.2, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#KVA\n", - "v1=11000#V\n", - "v2=550#V\n", - "f=50#Hz\n", - "bm=1.3#Tesla\n", - "sf=0.9\n", - "per=10#%\n", - "a=20*20*sf/10000#m2\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*bm*a)\n", - "n2=v2/(4.44*f*bm*a)\n", - "e_per_turn=v1/n1\n", - "\n", - "#result\n", - "print \"HV TURNS=\",round(n1)\n", - "print \"LV TURNS=\",round(n2)\n", - "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV TURNS= 1059.0\n", - "LV TURNS= 53.0\n", - "EMF per turns= 10.4 V\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.3, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=400.0\n", - "n2=1000.0\n", - "a=60.0/10000.0#cm2\n", - "f=50.0#Hz\n", - "e1=520.0#V\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "e2=k*e1\n", - "bm=e1/(4.44*f*n1*a)\n", - "\n", - "#result\n", - "print \"peak value of flux density=\",bm,\"WB/m2\"\n", - "print \"voltage induced in the secondary winding=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak value of flux density= 0.975975975976 WB/m2\n", - "voltage induced in the secondary winding= 1300.0 V\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.4, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "n1=500.0\n", - "n2=50.0\n", - "v=3000.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "i1=load*1000/v\n", - "i2=i1/k\n", - "e1=v/n1\n", - "e2=e1*n2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", - "print \"secondary emf=\",e2,\"V\"\n", - "print \"flux=\",phim*1000,\"mWB\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", - "secondary emf= 300.0 V\n", - "flux= 27.027027027 mWB\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.5, Page Number:1123" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11000#V\n", - "v2=550#V\n", - "load=300#kVA\n", - "phim=0.05#Wb\n", - "\n", - "#calculation\n", - "e=4.44*f*phim\n", - "e2=v2/1.732\n", - "t1=v1/e\n", - "t2=e2/e\n", - "output=load/3\n", - "HV=100*1000/v1\n", - "LV=100*1000/e2\n", - "\n", - "#result\n", - "print \"HV turns=\",t1\n", - "print \"LV turns=\",t2\n", - "print \"emf per turn=\",e2\n", - "print \"full load HV=\",HV\n", - "print \"full load LV=\",LV" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 990.990990991\n", - "LV turns= 28.6082849593\n", - "emf per turn= 317.551963048\n", - "full load HV= 9\n", - "full load LV= 314.909090909\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.6, Page Number:1124" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=1200.0\n", - "a=80.0/10000.0#m2\n", - "f=50.0#Hz\n", - "v=500.0#V\n", - "\n", - "#calculation\n", - "phim=n1/(4.44*f*n1)\n", - "bm=phim/a\n", - "v2=n2*v/n1\n", - "\n", - "#result\n", - "print \"peak flux-density=\",bm,\"Wb\"\n", - "print \"voltage induced in the secondary=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "peak flux-density= 0.563063063063 Wb\n", - "voltage induced in the secondary= 1200.0 V\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.7, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#varible declaration\n", - "load=25.0#kVA\n", - "n1=250.0\n", - "n2=40.0\n", - "v=1500.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "v2=n2*v/n1\n", - "i1=load*1000/v\n", - "i2=load*1000/v2\n", - "phim=v/(4.44*f*n1)\n", - "\n", - "#result\n", - "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", - "print \"ii)seconary emf=\",v2,\"V\"\n", - "print \"iii)maximum flux=\",phim*1000,\"mWb\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", - "ii)seconary emf= 240.0 V\n", - "iii)maximum flux= 27.027027027 mWb\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.8, Page Number:1125" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "a=20.0*20.0/10000#m2\n", - "phim=1.0#Wbm2\n", - "v1=3000.0#V\n", - "v2=220.0#V\n", - "\n", - "#calculation\n", - "t2=v2/(4.44*f*phim*a)\n", - "t1=t2*v1/v2\n", - "n1=t1/2\n", - "n2=t2/2\n", - "\n", - "#result\n", - "print \"HV turns=\",n1\n", - "print \"LV turns=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV turns= 168.918918919\n", - "LV turns= 12.3873873874\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.9, Page Number:1126" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=200.0#V\n", - "i1=0.6#A\n", - "p=400.0#W\n", - "v3=250.0#V\n", - "i0=0.5#A\n", - "pf=0.3\n", - "\n", - "#calculation\n", - "il=p/v1\n", - "imu=(i1**2-il**2)**0.5\n", - "iw=i0*pf\n", - "imu2=(i0**2-iw**2)**0.5\n", - "\n", - "#result\n", - "print \"magnetising currents=\",imu,\"A\"\n", - "print \"iron loss current=\",il,\"A\"\n", - "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", - "print \"working components of no-load primary current=\",iw,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "magnetising currents= 0.571788552492 A\n", - "iron loss current= 0.181818181818 A\n", - "magnetising components of no load primary current= 0.476969600708 A\n", - "working components of no-load primary current= 0.15 A\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.10, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=500.0\n", - "n2=40.0\n", - "l=150.0#cm\n", - "airgap=0.1#mm\n", - "e1=3000.0#V\n", - "phim=1.2#Wb/m2\n", - "f=50.0#Hz\n", - "d=7.8#grma/cm3\n", - "loss=2.0#watt/kg\n", - "\n", - "#calculation\n", - "a=e1/(4.44*f*n1*phim)\n", - "k=n2/n1\n", - "v2=k*e1\n", - "iron=l*5\n", - "air=phim*airgap/(1000*4*3.14*10**(-7))\n", - "bmax=iron+air\n", - "imu=bmax/(n1*2**0.5)\n", - "volume=l*a\n", - "im=volume*d*10\n", - "total_i=im*2\n", - "iw=total_i/(e1)\n", - "i0=(imu**2+iw**2)**0.5\n", - "pf=iw/i0\n", - "\n", - "#result\n", - "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", - "print \"b)no load secondary voltage=\",v2,\"V\"\n", - "print \"c)no load current=\",imu,\"A\"\n", - "print \"d)power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross sectional area= 225.225225225 cm2\n", - "b)no load secondary voltage= 240.0 V\n", - "c)no load current= 1.19577611723 A\n", - "d)power factor= 0.145353269536\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.11, Page Number:1127" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "n1=1000\n", - "n2=200\n", - "i=3#A\n", - "pf=0.2\n", - "i2=280#A\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "phi1=math.acos(pf2)\n", - "i2_=i2/5\n", - "phi2=math.acos(pf)\n", - "sinphi=math.sin(phi2)\n", - "sinphi2=math.sin(math.acos(phi1))\n", - "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", - "\n", - "#result\n", - "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", - "\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.12, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=440.0#v\n", - "v2=110.0#V\n", - "i0=5.0#A\n", - "pf=0.2\n", - "i2=120.0#A\n", - "pf2=0.8\n", - "\n", - "#calculation\n", - "phi2=math.acos(pf2)\n", - "phi0=math.acos(pf)\n", - "k=v2/v1\n", - "i2_=k*i2\n", - "angle=phi2-phi0\n", - "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", - "\n", - "#result\n", - "print \"current taken by the primary=\",i1,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current taken by the primary= 33.9022604184 A\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.13, Page Number:1130" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n1=800.0\n", - "n2=200.0\n", - "pf=0.8\n", - "i1=25.0#A\n", - "pf2=0.707\n", - "i2=80.0#A\n", - "#calculations\n", - "k=n2/n1\n", - "i2_=i2*k\n", - "phi2=math.acos(pf)\n", - "phi1=math.acos(pf2)\n", - "i0pf2=i1*pf2-i2_*pf\n", - "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", - "phi0=math.atan(i0sinphi/i0pf2)\n", - "i0=i0sinphi/math.sin(phi0)\n", - "\n", - "#result\n", - "print \"no load current=\",i0,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load current= 5.91703050525 A\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.14, Page Number:1131" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=10#A\n", - "pf=0.2\n", - "ratio=4\n", - "i2=200#A\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "phi0=math.acos(pf)\n", - "phil=math.acos(pf)\n", - "i0=complex(2,-9.8)\n", - "i2_=complex(42.5,-26.35)\n", - "i1=i0+i2_\n", - "phi=math.acos(i1.real/57.333)\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"power factor=\",math.degrees(phi),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= (44.5-36.15j) A\n", - "power factor= 39.0890154959 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.15, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable decaration\n", - "load=30.0#KVA\n", - "v1=2400.0#V\n", - "v2=120.0#V\n", - "f=50.0#Hz\n", - "r1=0.1#ohm\n", - "x1=0.22#ohm\n", - "r2=0.034#ohm\n", - "x2=0.012#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "r02=r2+r1*k**2\n", - "x02=x2+x1*k**2\n", - "z02=(r02**2+x02**2)**0.5\n", - "\n", - "#result\n", - "print \"high voltage side:\"\n", - "print \"equivalent winding resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"low voltage side:\"\n", - "print \"equivalent winding resistance=\",r02,\"ohm\"\n", - "print \"reactance=\",x02,\"ohm\"\n", - "print \"impedence=\",z02,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "high voltage side:\n", - "equivalent winding resistance= 13.7 ohm\n", - "reactance= 5.02 ohm\n", - "impedence= 14.5907642021 ohm\n", - "low voltage side:\n", - "equivalent winding resistance= 0.03425 ohm\n", - "reactance= 0.01255 ohm\n", - "impedence= 0.0364769105051 ohm\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.16, Page Number:1136" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=4400.0#V\n", - "v2=220.0#V\n", - "r1=3.45#ohm\n", - "r2=0.009#ohm\n", - "x1=5.2#ohm\n", - "x2=0.015#ohm\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "r02=r2+k**2*r1\n", - "x01=x1+x2/k**2\n", - "x02=x2+x1*k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "z02=(r02**2+x02**2)**0.5\n", - "cu_loss=i1**2*r01\n", - "\n", - "#result\n", - "print \"i)resistance=\"\n", - "print \"primary=\",r01,\"ohm\"\n", - "print \"secondary=\",r02,\"ohm\"\n", - "print \"iii)reactance=\"\n", - "print \"primary=\",x01,\"ohm\"\n", - "print \"secondary=\",x02,\"ohm\"\n", - "print \"iv)impedence=\"\n", - "print \"primary=\",z01,\"ohm\"\n", - "print \"secondary=\",z02,\"ohm\"\n", - "print \"v)copper loss=\",cu_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance=\n", - "primary= 7.05 ohm\n", - "secondary= 0.017625 ohm\n", - "reactance=\n", - "primary= 11.2 ohm\n", - "secondary= 0.028 ohm\n", - "impedence=\n", - "primary= 13.2341414531 ohm\n", - "secondary= 0.0330853536327 ohm\n", - "copper loss= 910.382231405 W\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.17, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=10.0\n", - "load=50.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "f=50.0#Hz\n", - "v=240.0#V\n", - "\n", - "#calculation\n", - "i2=load*1000/v\n", - "z2=v/(i2)\n", - "k=v2/v1\n", - "z2_=z2/k**2\n", - "i2_=k*i2\n", - "\n", - "#result\n", - "print \"a)load impedence=\",z2,\"ohm\"\n", - "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", - "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)load impedence= 1.152 ohm\n", - "b)impedence referred to high tension side= 115.2 ohm\n", - "c)the value of current referred to the high tension side= 20.8333333333 A\n" - ] - } - ], - "prompt_number": 70 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.18, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "v1=11000.0#V\n", - "v2=317.0#V\n", - "load2=0.62#kW\n", - "lvload=0.48#kW\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "r1=load2*1000/i**2\n", - "r2=lvload*1000/i2**2\n", - "r2_=r2*k**2\n", - "x01=4*v1/(i1*100)\n", - "x2_=x01*r2_/(r1+r2_)\n", - "x1=x01-x2_\n", - "x2=x2_*10/k**2\n", - "\n", - "#result\n", - "print \"i)r1=\",r1,\"ohm\"\n", - "print \"r2=\",r2,\"ohm\"\n", - "print \"r2_=\",r2_,\"ohm\"\n", - "print \"ii)reactance=\",x01,\"ohm\"\n", - "print \"x1=\",x1,\"ohm\"\n", - "print \"x2=\",x2,\"ohm\"\n", - "print \"x2_=\",x2_,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)r1= 7.502 ohm\n", - "r2= 0.004823472 ohm\n", - "r2_= 5.808 ohm\n", - "ii)reactance= 48.4 ohm\n", - "x1= 27.28 ohm\n", - "x2= 0.175398981818 ohm\n", - "x2_= 21.12 ohm\n" - ] - } - ], - "prompt_number": 76 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.19, Page Number:1137" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "k=19.5\n", - "r1=25.0#ohm\n", - "x1=100.0#ohm\n", - "r2=0.06#ohm\n", - "x2=0.25#ohm\n", - "i=1.25#A\n", - "angle=30#degrees\n", - "i2=200#A\n", - "v=50#V\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "v2=complex(500,0)\n", - "i2=i2*complex(0.8,-0.6)\n", - "z2=complex(r2,x2)\n", - "e2=v2+i2*z2\n", - "beta=math.atan(e2.imag/e2.real)\n", - "e1=e2*k\n", - "i2_=i2/k\n", - "angle=beta+math.radians(90)+math.radians(angle)\n", - "i0=i*complex(math.cos(angle),math.sin(angle))\n", - "i1=-i2_+i0\n", - "v2=-e1+i1*complex(r1,x1)\n", - "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", - "pf=math.cos(phi)\n", - "power=abs(v2)*i*math.cos(math.radians(60))\n", - "r02=r2+r1/k**2\n", - "cu_loss=abs(i2)**2*r02\n", - "output=500*abs(i2)*pf2\n", - "loss=cu_loss+power\n", - "inpt=output+loss\n", - "efficiency=output*100/inpt\n", - "\n", - "#result\n", - "print \"primary applied voltage=\",v2,\"V\"\n", - "print \"primary pf=\",pf\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", - "primary pf= 0.698572087114\n", - "efficiency= 86.7261056254 %\n" - ] - } - ], - "prompt_number": 94 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.20, Page Number:1138" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable description\n", - "load=100#KVA\n", - "v1=1100#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "zh=complex(0.1,0.4)\n", - "zl=complex(0.006,0.015)\n", - "\n", - "#calculations\n", - "k=v1/v2\n", - "#HV \n", - "r1=zh.real+zl.real*k**2\n", - "x1=zh.imag+zl.imag*k**2\n", - "z1=(r1**2+x1**2)**0.5\n", - "#LV\n", - "r2=r1/k**2\n", - "x2=x1/k**2\n", - "z2=z1/k**2\n", - "\n", - "#result\n", - "print \"HV:\"\n", - "print \"resistance=\",r1,\"ohm\"\n", - "print \"reactance=\",x1,\"ohm\"\n", - "print \"impedence=\",z1,\"ohm\"\n", - "print \"LV:\"\n", - "print \"resistance=\",r2,\"ohm\"\n", - "print \"reactance=\",x2,\"ohm\"\n", - "print \"impedence=\",z2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "HV:\n", - "resistance= 0.25 ohm\n", - "reactance= 0.775 ohm\n", - "impedence= 0.814324873745 ohm\n", - "LV:\n", - "resistance= 0.01 ohm\n", - "reactance= 0.031 ohm\n", - "impedence= 0.0325729949498 ohm\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.21, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230#V\n", - "v2=460#V\n", - "r1=0.2#ohm\n", - "x1=0.5#ohm\n", - "r2=0.75#ohm\n", - "x2=1.8#ohm\n", - "i=10#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "x02=x2+k**2*x1\n", - "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "vt2=v2-vd\n", - "\n", - "#result\n", - "print \"secondary terminal voltage=\",vt2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary terminal voltage= 424.8 V\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.22, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.0#%\n", - "x=5.0#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "mu=r*pf+x*math.sin(math.acos(pf))\n", - "mu2=r**2+x*0\n", - "mu3=r*pf-x*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", - "print \"regulation at pf=1:\",mu2,\"%\"\n", - "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=0.8 lag: 3.8 %\n", - "regulation at pf=1: 1.0 %\n", - "regulation at pf=0.8 lead: -2.2 %\n" - ] - } - ], - "prompt_number": 98 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.23, Page Number:1141" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=5#%\n", - "r=2.5#%\n", - "\n", - "#calculation\n", - "phi=math.atan(x/r)\n", - "cosphi=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "regn=r*cosphi+x*sinphi\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.59016994375 %\n", - "pf= 0.4472135955\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.24, Page Number:1142" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=2.5#%\n", - "x=5#%\n", - "load1=500#KVA\n", - "load2=400#KVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "kw=load2*pf\n", - "kvar=load2*math.sin(math.acos(pf))\n", - "drop=(r*kw/load1)+(x*kvar/load1)\n", - "\n", - "#result\n", - "print \"percentage voltage drop=\",drop,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage voltage drop= 4.0 %\n" - ] - } - ], - "prompt_number": 102 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.26, Page Number:1145" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=600#V\n", - "v2=1080#V\n", - "v=720#V\n", - "load=8#W\n", - "load2=10#kVA\n", - "\n", - "#calculation\n", - "ir2=load*1000/v2\n", - "il2=load*1000/v\n", - "ir2_=ir2*v2/v1\n", - "il2_=il2*v/v1\n", - "ir2=math.sqrt(ir2_**2+il2_**2)\n", - "s=complex(load,load2)\n", - "s=abs(s)\n", - "pf=load/s\n", - "i=s*load2*100/v1\n", - "\n", - "#result\n", - "print \"primary current=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 21.3437474581 A\n", - "power factor= 0.624695047554\n" - ] - } - ], - "prompt_number": 103 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.27, Page Number:1046" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "v1=110#V\n", - "i=0.5#A\n", - "p=30#W\n", - "r=0.6#ohm\n", - "\n", - "#calculation\n", - "ratio=v/v1\n", - "pf=p/(i*v)\n", - "sinphi=math.sqrt(1-pf**2)\n", - "ip=i*sinphi\n", - "iw=i*pf\n", - "cu_loss=i**2*r\n", - "iron_loss=p-cu_loss\n", - "\n", - "#result\n", - "print \"i)turns ratio=\",ratio\n", - "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", - "print \"iii)working component of no-load current=\",iw,\"A\"\n", - "print \"iv)the iron loss=\",iron_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)turns ratio= 2\n", - "ii)magnetising component of no-load current= 0.481045692921 A\n", - "iii)working component of no-load current= 0.136363636364 A\n", - "iv)the iron loss= 29.85 W\n" - ] - } - ], - "prompt_number": 104 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.28, Page Number:1047" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=200.0#V\n", - "v2=1000.0#V\n", - "f=50.0#Hz\n", - "vo=2000.0#V\n", - "io=1.2#A\n", - "po=90.0#W\n", - "vs=50.0#V\n", - "i_s=5.0#A\n", - "ps=110.0#W\n", - "p=3.0#kW\n", - "pf=0.8\n", - "v=200.0#V\n", - "\n", - "#calculation\n", - "r0=v**2/po\n", - "ia0=v/r0\n", - "ip=math.sqrt(io**2-ia0**2)\n", - "xm=v/ip\n", - "z=vs/i_s\n", - "r=ps/25\n", - "x=math.sqrt(z**2-r**2)\n", - "r1=r*(v1/v2)**2\n", - "x1=x*(v1/v2)**2\n", - "i_lv1=load*1000/v\n", - "i_lv=(p*1000/pf)/v\n", - "sinphi=math.sin(math.acos(pf))\n", - "reg=i_lv*(r1*pf+x1*sinphi)/v\n", - "vt=v2-reg*1000/v\n", - "\n", - "#result\n", - "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", - "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", - "print \"output secondary voltage=\",vt,\"V\"\n", - "print \"percentage regulation=\",reg*100,\"%\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "LV crrent at rated load= 25.0 A\n", - "LV current at 3kW at 0.8 lagging pf 18.75 A\n", - "output secondary voltage= 999.832975251 V\n", - "percentage regulation= 3.34049498886 %\n" - ] - } - ], - "prompt_number": 105 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.29, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "loss1=52.0#W\n", - "f1=40.0#Hz\n", - "loss2=90.0#W\n", - "f2=60.0#Hz\n", - "f=50.0#Hz\n", - "\n", - "#calculation\n", - "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 45.0 W\n", - "eddy current= 25.0 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.30, Page Number:1048" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "m=10#kg\n", - "f=50.0#Hz\n", - "f1=25.0\n", - "f2=40.0\n", - "f3=50.0\n", - "f4=60.0\n", - "f5=80.0\n", - "l1=18.5/f1\n", - "l2=36.0/f2\n", - "l3=50.0/f3\n", - "l4=66.0/f4\n", - "l5=104.0/f5\n", - "#calculation\n", - "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", - "eddy_loss_per_kg=ans[B]*f**2/m\n", - "\n", - "#result\n", - "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", - "\n", - "#plot\n", - "F=[f1,f2,f3,f4,f5]\n", - "L=[l1,l2,l3,l4,l5]\n", - "a=plot(F,L)\n", - "xlabel(\"f -->\") \n", - "ylabel(\"Wi/f\") \n", - "plt.xlim((0,100))\n", - "plt.ylim((0.74,2))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Using matplotlib backend: TkAgg\n", - "Populating the interactive namespace from numpy and matplotlib\n", - "eddy current loss per kg at 50 Hz=" - ] - }, - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " -0.118333333333333 W\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.31, Page Number:1148" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "A=Symbol('A')\n", - "B=Symbol('B')\n", - "v1=440#V\n", - "f1=50#Hz\n", - "p1=2500#W\n", - "v2=220#V\n", - "f2=25#Hz\n", - "p2=850#z\n", - "\n", - "#calculation\n", - "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", - "wh=ans[A]*f\n", - "we=ans[B]*f**2\n", - "\n", - "#result\n", - "print \"hysteresis=\",round(wh),\"W\"\n", - "print \"eddy current=\",round(we),\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "hysteresis= 900.0 W\n", - "eddy current= 1600.0 W\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.32, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "f1=50.0#Hz\n", - "core=1000.0#W\n", - "wh=650.0#W\n", - "we=350.0#W\n", - "v2=2000.0#V\n", - "f2=100.0#Hz\n", - "\n", - "#calculation\n", - "a=wh/f1\n", - "b=we/f1**2\n", - "wh=a*f2\n", - "we=b*f2**2\n", - "new_core=wh+we\n", - "\n", - "#result\n", - "print \"new core loss=\",new_core,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " new core loss= 2700.0 W\n" - ] - } - ], - "prompt_number": 111 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.33, Page Number:1149" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "phi=1.4#Wb/m2\n", - "we=1000.0#W\n", - "wh=3000.0#W\n", - "per=10.0#%\n", - "\n", - "#calculation\n", - "wh1=wh*1.1**1.6\n", - "we1=we*1.1**2\n", - "wh2=wh*0.9**(-0.6)\n", - "wh3=wh*1.1**1.6*1.1**(-0.6)\n", - "#result\n", - "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", - "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", - "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", - "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", - "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" - ] - } - ], - "prompt_number": 119 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.34, Page Number:1150" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=40.0#Hz\n", - "loss=800.0#W\n", - "wh=600.0#W\n", - "we=loss-wh\n", - "v2=3300.0#V\n", - "f2=60.0#Hz\n", - "\n", - "#calculations\n", - "a=wh/f\n", - "b=we/f**2\n", - "core_loss=a*f2+b*f2**2\n", - "\n", - "#result\n", - "print \"core loss at 60 Hz=\",core_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core loss at 60 Hz= 1350.0 W\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.35, Page Number:1151" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=30.0#KvA\n", - "v1=6000.0#V\n", - "v2=230.0#V\n", - "r1=10.0#ohm\n", - "r2=0.016#ohm\n", - "x01=34.0#ohm\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=r1+r2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"primary voltage=\",vsc,\"V\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary voltage= 199.519931911 V\n", - "pf= 0.523468222173\n" - ] - } - ], - "prompt_number": 124 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.36, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "f=50.0#Hz\n", - "vo=200.0#V\n", - "io=0.7#A\n", - "po=70.0#W\n", - "vs=15.0#v\n", - "i_s=10.0#A\n", - "ps=85.0#W\n", - "load=5.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cosphi0=po/(vo*io)\n", - "sinphi0=math.sin(math.acos(cosphi0))\n", - "iw=io*cosphi0\n", - "imu=io*sinphi0\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "z02=vs/i_s\n", - "k=v2/v1\n", - "z01=z02/k**2\n", - "r02=ps/i_s**2\n", - "r01=r02/k**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "output=load/pf\n", - "i2=output*1000/v2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "print z02\n", - "#result\n", - "print \"secondary voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "1.5\n", - "secondary voltage= 377.788243349 V\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.37, Page Number:1152" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "k=1.0/6\n", - "r1=0.9#ohm\n", - "x1=5.0#ohm\n", - "r2=0.03#ohm\n", - "x2=0.13#ohm\n", - "vsc=330.0#V\n", - "f=50.0#Hz\n", - "\n", - "#calculations\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=vsc/z01\n", - "i2=i1/k\n", - "cosphisc=i1**2*r01/(vsc*i1)\n", - "\n", - "#result\n", - "print \"current in low voltage winding=\",i2,\"A\"\n", - "print \"pf=\",round(cosphisc,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in low voltage winding= 200.396236149 A\n", - "pf= 0.2\n" - ] - } - ], - "prompt_number": 132 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.38, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "f=50.0#Hz\n", - "r1=0.2#ohm\n", - "x1=0.4#ohm\n", - "r2=0.5#ohm\n", - "x2=0.1#ohm\n", - "r0=1500.0#ohm\n", - "x0=750.0#ohm\n", - "\n", - "#calculation\n", - "k=v2/v1\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(iw**2+imu**2)**0.5\n", - "pi=v1*iw\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=(r01**2+x01**2)**0.5\n", - "i1=load*1000/v1\n", - "vsc=i1*z01\n", - "power=i1**2*r01\n", - "\n", - "#result\n", - "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" - ] - } - ], - "prompt_number": 140 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.39, Page Number:1153" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=1000#kVA\n", - "v1=110#V\n", - "v2=220#V\n", - "f=50#Hz\n", - "per1=98.5#%\n", - "pf=0.8\n", - "per2=98.8#%\n", - "\n", - "#calculaions\n", - "output=load*1\n", - "inpt=output*100/per2\n", - "loss=inpt-output\n", - "inpt_half=(load/2)*pf*100/per1\n", - "loss2=inpt_half-400\n", - "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", - "kva=load*(ans[y]/ans[x])*0.5\n", - "output=kva*1\n", - "cu_loss=ans[y]\n", - "total_loss=2*cu_loss\n", - "efficiency=output/(output+total_loss)\n", - "#result\n", - "print \"full load copper loss=\",cu_loss,\"kW\"\n", - "print \"maximum efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load copper loss= 4.07324441521606 kW\n", - "maximum efficiency= 0.968720013059872 %\n" - ] - } - ], - "prompt_number": 148 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.40, Page Number:1154" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=200.0#v\n", - "v2=400.0#V\n", - "r01=0.15#ohm\n", - "x01=0.37#ohm\n", - "r0=600.0#ohm\n", - "x0=300.0#ohm\n", - "i2=10.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "imu=v1/x0\n", - "iw=v1/r0\n", - "i0=(imu**2+iw**2)**0.5\n", - "tantheta=iw/imu\n", - "theta=math.atan(tantheta)\n", - "theta0=math.radians(90)-theta\n", - "angle=theta0-math.acos(pf)\n", - "k=v2/v1\n", - "i2_=i2*k\n", - "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", - "r02=k**2*r01\n", - "x02=x01*k**2\n", - "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)primary current=\",i1,\"A\"\n", - "print \"ii)secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)primary current= 20.6693546639 A\n", - "ii)secondary terminal voltage= 386.32 V\n" - ] - } - ], - "prompt_number": 149 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.43, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "n1=400.0\n", - "n2=80.0\n", - "r1=0.3#ohm\n", - "r2=0.01#ohm\n", - "x1=1.1#ohm\n", - "x2=0.035#ohm\n", - "v1=2200.0#V\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=n2/n1\n", - "r01=r1+r2/k**2\n", - "x01=x1+x2/k**2\n", - "z01=complex(r01,x01)\n", - "z02=k**2*z01\n", - "v2=k*v1\n", - "i2=load*1000/v2\n", - "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", - "regn=vd*100/v2\n", - "v2=v2-vd\n", - "\n", - "#result\n", - "print \"i)equivalent impedence=\",z02,\"ohm\"\n", - "print \"ii)voltage regulation=\",regn,\"%\"\n", - "print \"secondary terminal voltage=\",v2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent impedence= (0.022+0.079j) ohm\n", - "ii)voltage regulation= -1.53925619835 %\n", - "secondary terminal voltage= 446.772727273 V\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.44, Page Number:1158" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "va=450.0#V\n", - "vb=120.0#V\n", - "v1=120.0#V\n", - "i1=4.2#A\n", - "w1=80.0#W\n", - "v2=9.65#V\n", - "i2=22.2#A\n", - "w2=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=vb/va\n", - "i0=i1*k\n", - "cosphi0=w1/(va*i0)\n", - "phi0=math.acos(cosphi0)\n", - "sinphi0=math.sin(phi0)\n", - "iw=i0*cosphi0\n", - "imu=i0*sinphi0\n", - "r0=va/iw\n", - "x0=va/imu\n", - "z01=v2/i2\n", - "r01=vb/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "loss=w1+w2\n", - "output=load*1000*pf\n", - "efficiency=output/(output+loss)\n", - "iron_loss=w1\n", - "cu_loss=(0.5**2)*w2\n", - "total_loss=iron_loss+cu_loss\n", - "output=load*1000*pf/2\n", - "efficiency2=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"i)equivalent circuit constants=\"\n", - "print \"z01=\",z01,\"ohm\"\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r01=\",r01,\"ohm\"\n", - "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", - "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)equivalent circuit constants=\n", - "z01= 0.434684684685 ohm\n", - "x01= 0.360090249002 ohm\n", - "r01= 0.243486729973 ohm\n", - "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", - "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.45, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "va=2200.0#V\n", - "vb=220.0#V\n", - "f=50.0#Hz\n", - "v1=220.0#V\n", - "i1=4.2#A\n", - "w1=148.0#W\n", - "v2=86.0#V\n", - "i2=10.5#A\n", - "w2=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "z01=v2/i2\n", - "r01=w2/i2**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/va\n", - "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "regn=drop*100/va\n", - "pf=r01/z01\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"pf=\",round(pf,1),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 2.94177963326 %\n", - "pf= 0.4 lag\n" - ] - } - ], - "prompt_number": 172 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.46, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=2000.0#V\n", - "v2=400.0#V\n", - "v=60.0#V\n", - "i=4.0#A\n", - "w=100.0#W\n", - "pf=0.8\n", - "v_=400.0#V\n", - "\n", - "#calculations\n", - "z01=v/i\n", - "r01=w/i**2\n", - "x01=(z01**2-r01**2)**0.5\n", - "i1=load*1000/v1\n", - "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"voltage applied to hv side=\",v1+vd,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage applied to hv side= 2065.90767043 V\n" - ] - } - ], - "prompt_number": 182 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.47, Page Number:1159" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=250.0#V\n", - "v2=500.0#V\n", - "vs=20.0#V\n", - "i_s=12.0#A\n", - "ws=100.0#W\n", - "vo=250.0#V\n", - "io=1.0#A\n", - "wo=80.0#W\n", - "i2=10#A\n", - "v2=500#V\n", - "pg=0.8\n", - "\n", - "#calculation\n", - "cosphi0=wo/(vo*io)\n", - "iw=io*cosphi0\n", - "imu=(1-iw**2)**0.5\n", - "r0=v1/iw\n", - "x0=v1/imu\n", - "r02=ws/i_s**2\n", - "z02=vs/i_s\n", - "x02=(z02**2-r02**2)**0.5\n", - "k=v2/v1\n", - "r01=r02/k**2\n", - "x01=x02/k**2\n", - "z01=z02/k**2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=wo\n", - "total_loss=iron_loss+cu_loss\n", - "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", - "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "\n", - "#result\n", - "print \"applied voltage=\",v1_,\"V\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "applied voltage= 251.442641983 V\n", - "efficiency= 96.3984469139 %\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.48, Page Number:1160" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=230.0#V\n", - "v2=230.0#V\n", - "load=3.0#kVA\n", - "vo=230.0#V\n", - "io=2.0#A\n", - "wo=100.0#W\n", - "vs=15.0#V\n", - "i_s=13.0#A\n", - "ws=120.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v1\n", - "cu_loss=ws\n", - "core_loss=wo\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+core_loss)\n", - "z=vs/i_s\n", - "r=ws/(vs**2)\n", - "x=(z**2-r**2)**0.5\n", - "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", - "\n", - "#result\n", - "print \"regulation=\",regn,\"%\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 5.90121149256 %\n", - "efficiency= 91.6030534351 %\n" - ] - } - ], - "prompt_number": 194 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.49, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "efficiency=0.94\n", - "per=0.90\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=per*load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "core_loss=loss/2\n", - "pc=core_loss/per**2\n", - "output=load*1000*pf\n", - "cu_loss=pc\n", - "efficiency=output/(output+cu_loss+core_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.5728354534 %\n" - ] - } - ], - "prompt_number": 196 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.50, Page Number:1161" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=2300.0#V\n", - "v2=230.0#V\n", - "r1=3.96#ohm\n", - "r2=0.0396#ohm\n", - "x1=15.8#ohm\n", - "x2=0.158#ohm\n", - "pf=0.8\n", - "v=230.0#V\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "r=r2+r1*(v2/v1)**2\n", - "x=x1*(v2/v1)**2+x2\n", - "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", - "v1=v1_*(v1/v2)\n", - "phi=math.atan(r/x)\n", - "pf=math.cos(phi)\n", - "#result\n", - "print \"a)HV side voltage necessary=\",v1,\"V\"\n", - "print \"b)pf=\",round(pf,2)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)HV side voltage necessary= 2409.9826087 V\n", - "b)pf= 0.97\n" - ] - } - ], - "prompt_number": 199 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.51, Page Number:1162" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#v\n", - "r1=3.4#ohm\n", - "x1=7.2#ohm\n", - "r2=0.028#ohm\n", - "x2=0.060#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "r=r1*(v2/v1)**2+r2\n", - "x=x1*(v2/v1)**2+x2\n", - "ad=i*r*pf\n", - "dc=i*x*math.sin(math.acos(pf))\n", - "oc=v2+ad+dc\n", - "bd=i*r*math.sin(math.acos(pf))\n", - "b_f=x*pf\n", - "cf=b_f-bd\n", - "v1_=(oc**2+cf**2)**0.5\n", - "v1=v1_*(v1/v2)\n", - "\n", - "#result\n", - "print \"terminal voltage on hv side=\",v1,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage on hv side= 2229.28500444 V\n" - ] - } - ], - "prompt_number": 200 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.52, Page Number:1163" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "i1=0.7#A\n", - "w1=65.0#W\n", - "v=15.0#V\n", - "i2=10.0#A\n", - "w2=75.0#W\n", - "pf=0.80\n", - "#calculation\n", - "il=load*1000/v1\n", - "ih=load*1000/v2\n", - "cu_loss=w2\n", - "constant_loss=w1\n", - "z=v/i2\n", - "r=w2/i2**2\n", - "x=(z**2-r**2)**0.5\n", - "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", - "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency,\"%\"\n", - "print \"full load regulation=\",regn,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.6183574879 %\n", - "full load regulation= 13.7942286341 V\n" - ] - } - ], - "prompt_number": 209 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.53, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=3300.0#V\n", - "v2=230.0#V\n", - "load=50.0#kVA\n", - "z=4\n", - "cu_loss=1.8\n", - "\n", - "#calculations\n", - "x=(z**2-cu_loss**2)**0.5\n", - "i1=load*1000/v1\n", - "r01=cu_loss*v1/(100*i1)\n", - "x01=x*v1/(100*i1)\n", - "z01=z*v1/(100*i1)\n", - "isc=i1*100/z\n", - "print \n", - "#result\n", - "print \"%x=\",x,\"%\"\n", - "print \"resistance=\",r01,\"ohm\"\n", - "print \"reactance=\",x01,\"ohm\"\n", - "print \"impedence=\",z01,\"ohm\"\n", - "print \"primary sc current=\",isc,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "%x= 3.5721142199 %\n", - "resistance= 3.9204 ohm\n", - "reactance= 7.78006477094 ohm\n", - "impedence= 8.712 ohm\n", - "primary sc current= 378.787878788 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.54, Page Number:1164" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "vo=220.0#V\n", - "i_o=4.2#A\n", - "wo=148.0#W\n", - "vs=86.0#V\n", - "i_s=10.5#A\n", - "ws=360.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r01=ws/i_s**2\n", - "r02=k**2*r01\n", - "z10=vs/i_s\n", - "x01=(z10**2-r01**2)**0.5\n", - "x02=k**2*x01\n", - "i1=load*1000/v1\n", - "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", - "regn1=(v1_-v1)/v1\n", - "i2=i1/k\n", - "core_loss=wo\n", - "cu_loss=i1**2*r01\n", - "cu_loss_half=(i1/2)**2*r01\n", - "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", - "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", - "print v1_ \n", - "#result\n", - "print \"a)core loss=\",wo,\"W\"\n", - "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", - "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", - "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", - "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", - "print \"f)regulation=\",regn1*100,\"%\"\n", - "print \"g)efficiency at full load=\",efficiency,\"%\"\n", - "print \"h)efficiency at half load=\",efficiency_half,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2265.01840886\n", - "a)core loss= 148.0 W\n", - "b)equivalent resistance primary= 3.26530612245 ohm\n", - "c)equivalent resistance secondary= 0.0326530612245 ohm\n", - "d)equivalent reactance primary= 7.51143635755 ohm\n", - "e)equivalent reactance secondary= 0.0751143635755 ohm\n", - "f)regulation= 2.95538222101 %\n", - "g)efficiency at full load= 97.4548448466 %\n", - "h)efficiency at half load= 95.0360304208 %\n" - ] - } - ], - "prompt_number": 222 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.55, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "er=1.0/100\n", - "ex=5.0/100\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "regn2=er*1\n", - "regn3=er*pf-ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", - "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", - "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation with pf=0.8 lag= 3.8 %\n", - "ii)regulation with pf=1= 1.0 %\n", - "iii)regulation with pf=0.8 lead= -2.2 %\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.56, Page Number:1165" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500#kVA\n", - "v1=3300#V\n", - "v2=500#V\n", - "f=50#Hz\n", - "per=0.97\n", - "ratio=3.0/4\n", - "zper=0.10\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "output=load*ratio*1\n", - "x=0.75\n", - "pi=0.5*(output*(1/per-1))\n", - "pc=pi/x**2\n", - "i1=load*1000/v1\n", - "r=pc*1000/i1**2\n", - "er=i1*r/v1\n", - "ez=zper\n", - "ex=(ez**2-er**2)**0.5\n", - "regn=er*pf+ex*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"regulation=\",regn*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 7.52529846012 %\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.57, Page Number:1166" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "cu_loss=1.5#%\n", - "xdrop=3.5#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "pur=cu_loss/100\n", - "pux=xdrop/100\n", - "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", - "regn1=pur*1\n", - "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", - "\n", - "#result\n", - "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", - "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", - "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)regulation at unity pf= 1.5 %\n", - "ii)regulation at 0.8 lag= 3.3 %\n", - "iii)regulation at 0.8 lead= -0.9 %\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.58, Page Number:1168" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#KVA\n", - "w1=5.0#kW\n", - "w2=7.5#kW\n", - "efficiency=0.75\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "loss=total_loss/2\n", - "cu_loss=efficiency**2*w2/2\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+cu_loss+2.5)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.0186963113 %\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.59, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2000.0#V\n", - "v2=200.0#V\n", - "w1=350.0#W\n", - "w2=400.0#W\n", - "\n", - "#calculation\n", - "total_loss=w1+w2\n", - "output=load*1000*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=w2*(0.5)**2\n", - "total_loss=cu_loss+w1\n", - "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", - "\n", - "#result\n", - "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency at full load= 97.0873786408 %\n", - "ii)efficiency at half load= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 232 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.60, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.75\n", - "\n", - "#calculation\n", - "ratio=efficiency**2\n", - "\n", - "#result\n", - "print \"ratio of P1 and P2=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of P1 and P2= 0.5625\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.61, Page Number:1170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=230.0#V\n", - "load1=150.0#KVA\n", - "f=50.0#Hz\n", - "loss=1.4#kW\n", - "cu_loss=1.6#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "load=load1*(cu_loss/loss)**0.5\n", - "total_loss=loss*2\n", - "output=load*1\n", - "efficiency=output/(output+total_loss)\n", - "cu_loss=cu_loss*(0.5)**2\n", - "total_loss=total_loss+cu_loss\n", - "output2=(load/2)*pf\n", - "efficiency2=output2/(output2+total_loss)\n", - "\n", - "#result\n", - "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", - "print \"max efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load for max efficiency= 150.0 kVA\n", - "max efficiency= 98.283858876 %\n", - "ii)efficiency at half load= 95.2481856352 %\n" - ] - } - ], - "prompt_number": 237 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.62, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%pylab\n", - "#variable declaration\n", - "load=5#kVA\n", - "v1=2300#V\n", - "v2=230#V\n", - "f=50#Hz\n", - "iron_loss=40#W\n", - "cu_loss=112#W\n", - "pf=0.8\n", - "#calculations\n", - "def e(k):\n", - " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", - " return(e)\n", - "\n", - "e1=e(1.25)\n", - "e2=e(2.5)\n", - "e3=e(3.75)\n", - "e4=e(5.0)\n", - "e5=e(6.25)\n", - "e6=e(7.5)\n", - "\n", - "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", - "E=[e1,e2,e3,e4,e5,e6]\n", - "a=plot(K,E)\n", - "xlabel(\"load,kVA\") \n", - "ylabel(\"Efficiency\") \n", - "plt.xlim((0,8))\n", - "plt.ylim((92,98))\n", - "show(a)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.63, Page Number:1171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kVA\n", - "efficiency=0.98\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "output=load*pf\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "x=loss*1000/(1+9.0/16)\n", - "y=(9.0/16)*x\n", - "cu_loss=x*(1.0/2)**2\n", - "total_loss=cu_loss+y\n", - "output=load*pf*0.5\n", - "efficiency=output/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"efficiency at hald load=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency at hald load= 97.9216626699 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.64, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=25.0#kVA\n", - "v1=2200.0#V\n", - "v2=220.0#V\n", - "r1=1.0#ohm\n", - "r2=0.01#ohm\n", - "pf=0.8\n", - "loss=0.80\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=r2+k**2*r1\n", - "i2=load*1000/v2\n", - "cu_loss=i2**2*r02\n", - "iron_loss=loss*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "output=load*pf*1000\n", - "efficiency=output/(output+total_loss)\n", - "\n", - "#result\n", - "print \"secondary resistance=\",r02,\"ohm\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary resistance= 0.02 ohm\n", - "efficiency= 97.7284199899 %\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.65, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "r01=0.5#ohm\n", - "x01=1.5#ohm\n", - "ratio=3.0/4\n", - "pf=0.8\n", - "v=220.0#V\n", - "loss=100.0#W\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=k**2*r01\n", - "x02=k**2*x01\n", - "i2=1000*load*ratio/v2\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "cu_loss=i2**2*r02\n", - "total_loss=loss+cu_loss\n", - "output=load*ratio*pf\n", - "inpt=output*1000+total_loss\n", - "efficiency=output*1000/(inpt)\n", - "#result\n", - "print \"output=\",output,\"w\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 2.4 w\n", - "efficiency= 91.8660287081 %\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.66, Page Number:1172" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=440.0#V\n", - "v2=220.0#V\n", - "f=50.0#Hz\n", - "loss=324.0#W\n", - "cu_loss=100.0#W\n", - "pf=0.8\n", - "#calculations\n", - "cu_loss=4*cu_loss\n", - "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", - "per=(loss/cu_loss)**0.5\n", - "\n", - "#result\n", - "print \"i)efficiency=\",efficiency*100,\"%\"\n", - "print \"ii)percent of full-load=\",per*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)efficiency= 95.6708921311 %\n", - "ii)percent of full-load= 90.0 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.67, Page Number:1173" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=4.0#kVA\n", - "v1=200.0#V\n", - "v2=400.0#V\n", - "pf=0.8\n", - "vo=200.0#V\n", - "io=0.8#A\n", - "wo=70.0#W\n", - "vs=20.0#V\n", - "i_s=10.0#A\n", - "ws=60.0#W\n", - "\n", - "#calculation\n", - "i2=load*1000/v2\n", - "loss=ws+wo\n", - "output=load*pf\n", - "efficiency=output/(output+loss/1000)\n", - "z02=vs/i_s\n", - "r02=ws/i2**2\n", - "x02=(z02**2-r02**2)**0.5\n", - "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", - "v2=v2-drop\n", - "i1=load*1000/v1\n", - "load=load*(wo/ws)**0.5\n", - "load=load*1\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"secondary voltage=\",v2,\"V\"\n", - "print \"current=\",i1,\"A\"\n", - "print \"load at unity pf=\",load,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.0960960961 %\n", - "secondary voltage= 383.752729583 V\n", - "current= 20.0 A\n", - "load at unity pf= 4.32049379894 kW\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.69, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "x=Symbol('x')\n", - "y=Symbol('y')\n", - "load=600.0#KVA\n", - "efficiency=0.92\n", - "per=0.60\n", - "\n", - "#calculation\n", - "inpt=load/efficiency\n", - "loss1=inpt-load\n", - "inpt2=load/(2*efficiency)\n", - "loss2=inpt2-load/2\n", - "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", - "cu_loss=ans[y]*0.36\n", - "loss=cu_loss+ans[x]\n", - "output=load*per\n", - "efficiency=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "389.913043478261\n", - "efficiency= 92.3282783229260 %\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.70, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "e1=0.98\n", - "e2=0.80\n", - "pf=8\n", - "z=0.05\n", - "pf1=0.8\n", - "\n", - "#calculations\n", - "output=load*pf1*e2\n", - "inpt=output/e1\n", - "loss=-output+inpt\n", - "cu_loss=loss/2\n", - "cu_loss_full=cu_loss/pf1**2\n", - "r=round(cu_loss_full*100/load)\n", - "sin=math.sin(math.acos(pf1))\n", - "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", - "#result\n", - "print \"voltage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 3.8578 %\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.71, Page Number:1174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#KVA\n", - "v1=5000.0#V\n", - "v2=440.0#V\n", - "f=25.0#Hz\n", - "cu_loss=1.5\n", - "we=0.5\n", - "wh=0.6\n", - "v2=10000.0\n", - "#calculations\n", - "cu_loss1=cu_loss*load/100\n", - "we1=we*load/100\n", - "wh1=wh*load/100\n", - "cu_loss2=cu_loss1\n", - "we2=(we1*(50.0/25.0)**2)\n", - "wh2=(wh1*(50.0/25))\n", - "e1=load*100/(load+cu_loss1+we1+wh1)\n", - "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", - "\n", - "#result\n", - "print \"full load efficiency in first case=\",e1,\"%\"\n", - "print \"full load efficiency in second case=\",e2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "20.47 0.06 0.05\n", - "full load efficiency in first case= 97.4658869396 %\n", - "full load efficiency in second case= 97.7039570103 %\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.72, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=300#KVA\n", - "r=1.5#%\n", - "load1=173.2#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss=r*load*1000/100\n", - "iron_loss=(load1/load)**2*cu_loss\n", - "total_loss=cu_loss+iron_loss\n", - "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.5610105096 %\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.73, Page Number:1175" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100#kVA\n", - "v1=2300#V\n", - "v2=230.0#V\n", - "f=50#Hz\n", - "phim=1.2#Wb/m2\n", - "a=0.04#m2\n", - "l=2.5#m\n", - "bm=1200\n", - "inpt=1200#W\n", - "pi=400#W\n", - "efficiency=0.75\n", - "pf=0.8\n", - "f2=100#Hz\n", - "\n", - "#calculation\n", - "n1=v1/(4.44*f*phim*a)\n", - "k=v2/v1\n", - "n2=k*n1\n", - "i=1989/n1\n", - "cu_loss=efficiency**2*inpt\n", - "total_loss=pi+cu_loss\n", - "output=load*efficiency*pf\n", - "efficiency=output*100/(output+total_loss/1000)\n", - "\n", - "#result\n", - "print \"a)n1=\",round(n1)\n", - "print \" n2=\",round(n2)\n", - "print \"b)magnetising current=\",i,\"A\"\n", - "print \"c)efficiency=\",efficiency,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.00643416423287\n", - "a)n1= 216.0\n", - " n2= 22.0\n", - "b)magnetising current= 9.21512347826 A\n", - "c)efficiency= 98.2398690135 %\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.74, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=1.8\n", - "x=5.4\n", - "\n", - "#calculation\n", - "pf=r/x\n", - "phi=math.atan(pf)\n", - "phi2=math.atan(x/r)\n", - "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", - "efficiency=100/(100+r*2)\n", - "\n", - "#result\n", - "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", - "print \" ii)regulation=\",regn,\"%\"\n", - "print \"b)efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)i)phi= 18.4349488229 degrees\n", - " ii)regulation= 5.6920997883 %\n", - "b)efficiency= 96.5250965251 %\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.75, Page Number:1176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "f=50.0#Hz\n", - "v1=500.0#V\n", - "v2=250.0#V\n", - "vo=250.0#V\n", - "io=3.0#A\n", - "wo=200.0#W\n", - "vsc=15.0#V\n", - "isc=30.0#A\n", - "wsc=300.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=load*1000/v2\n", - "cu_loss=(i/isc)**2*wsc\n", - "output=load*1000*pf\n", - "efficiency=output*100/(output+cu_loss+wo)\n", - "z=vsc/isc\n", - "r=wsc/isc**2\n", - "x=(z**2-r**2)**0.5\n", - "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 91.6030534351 %\n", - "regulation= 1.72239475667 %\n" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.76, Page Number:1177" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40.0#kVA\n", - "loss=400.0#W\n", - "cu_loss=800.0#W\n", - "\n", - "#calculation\n", - "x=(loss/cu_loss)**0.5\n", - "output=load*x*1\n", - "efficiency=output/(output+load*2/100)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.2493723732 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.77, Page Number:1178" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#kVA\n", - "v1=500#V\n", - "v2=250#V\n", - "vsc=60#V\n", - "isc=20#A\n", - "wsc=150#W\n", - "per=1.2\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=load*1000/v1\n", - "cu_loss=per**2*wsc\n", - "output=per*load*1.0\n", - "efficiency=output*100/(output+cu_loss*2/1000)\n", - "output=load*1000*pf\n", - "e2=output*100/(output+cu_loss+wsc)\n", - "\n", - "#result\n", - "print \"maximum efficiency=\",efficiency,\"%\"\n", - "print \"full-load efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum efficiency= 96.5250965251 %\n", - "full-load efficiency= 95.6251494143 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.78, Page Number:1181" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#kVA\n", - "cu_loss=4.5#kW\n", - "iron_loss=3.5#kW\n", - "t1=6.0#hrs\n", - "t2=10.0#hrs\n", - "t3=4.0#hrs\n", - "t4=4.0#hrs\n", - "load1_=400.0#kW\n", - "load2_=300.0#kW\n", - "load3_=100.0#kW\n", - "pf1=0.8\n", - "pf2=0.75\n", - "pf3=0.8\n", - "\n", - "#calculations\n", - "load1=load1_/pf1\n", - "load2=load2_/pf2\n", - "load3=load3_/pf3\n", - "wc1=cu_loss\n", - "wc2=cu_loss*(load2/load1)**2\n", - "wc3=cu_loss*(load3/load1)**2\n", - "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", - "iron_loss=24*iron_loss\n", - "total_loss=twc+iron_loss\n", - "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",round(efficiency,1),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.6 %\n" - ] - } - ], - "prompt_number": 86 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.79, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#kVA\n", - "loss=3.0#kW\n", - "tf=3.0#hrs\n", - "th=4.0#hrs\n", - "\n", - "#calculation\n", - "iron_loss=loss*24/2\n", - "wcf=loss*tf/2\n", - "wch=loss/8\n", - "wch=wch*4\n", - "total_loss=iron_loss+wch+wcf\n", - "output=load*tf+load*th/2\n", - "efficiency=output*100/(output+total_loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 92.2509225092 %\n" - ] - } - ], - "prompt_number": 89 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.80, Page Number:1182" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=100.0#KW\n", - "efficiency=0.98\n", - "tf=4.0#hrs\n", - "th=6.0#hrs\n", - "t10=14.0#hrs\n", - "\n", - "#calculations\n", - "#1st transformer\n", - "inpt=load/efficiency\n", - "tloss=inpt-load\n", - "y=tloss/2\n", - "x=y\n", - "iron_loss=x*24\n", - "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", - "loss=iron_loss+cu_loss\n", - "output=tf*load+th*load/2+t10*10\n", - "e1=output/(output+loss)\n", - "#2nd transformer\n", - "y=tloss/(1+1.0/4)\n", - "x=(tloss-y)\n", - "iron_loss=x*24\n", - "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", - "loss=iron_loss+wc\n", - "e2=output/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", - "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.408163265306 1.63265306122\n", - "efficiency of forst transformer= 96.5245532574 %\n", - "efficiency ofsecond transformer= 97.7876610788 %\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.81, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "efficiency=0.95\n", - "nl=10.0#hrs\n", - "ql=7.0#hrs\n", - "hl=5.0#hrs\n", - "fl=2.0#hrs\n", - "\n", - "#calculations\n", - "inpt=load/efficiency\n", - "loss=inpt-load\n", - "wc_fl=loss/2\n", - "iron_loss=loss/2\n", - "wc_fl_4=(1.0/4)**2*wc_fl\n", - "wc_fl_2=(1.0/2)**2*wc_fl\n", - "wc_ql=ql*wc_fl_4\n", - "wc_hl=hl*wc_fl_2\n", - "wc_fl_2=fl*wc_fl\n", - "wc=wc_ql+wc_hl+wc_fl_2\n", - "wh=wc\n", - "loss=wh+24*iron_loss\n", - "output=load*1\n", - "half_output=(output/2)\n", - "q_load=(load/4)\n", - "output=ql*q_load+hl*half_output+fl*output\n", - "e=output*100/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 89.5592740985 %\n" - ] - } - ], - "prompt_number": 115 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.82, Page Number:1183" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.98\n", - "load=15#kVA\n", - "t1=12.0#hrs\n", - "t2=6.0#hrs\n", - "t3=6.0#hrs\n", - "pf1=0.5\n", - "pf2=0.8\n", - "k1=2#kW\n", - "k2=12#kW\n", - "\n", - "#calculations\n", - "output=load*1\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "wc=loss/2\n", - "wi=loss/2\n", - "w1=k1/pf1\n", - "w2=k2/pf2\n", - "wc1=wc*(4/load)\n", - "wc2=wc\n", - "wc12=t1*wc1\n", - "wc6=t2*wc2\n", - "wc=(wc12+wc6)\n", - "wi=24*wi\n", - "output=(k1*t1)+(t2*k2)\n", - "inpt=output+wc+wi\n", - "e=output*100/inpt\n", - "\n", - "#result\n", - "print \"efficiency=\",e,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.918367346939 3.67346938776\n", - "efficiency= 95.4351795496 %\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.83, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=150.0#KVA\n", - "l1_=100.0#kVA\n", - "t=3.0#hrs\n", - "loss=1.0#KW\n", - "\n", - "#calculations\n", - "l1=l1_/2\n", - "l2=l1_\n", - "output=load*1\n", - "loss=loss*2\n", - "e1=output/(output+loss)\n", - "wc1=t*(1.0/3)**2*1\n", - "wc2=8*(2.0/3)**2*1\n", - "wc=wc1+wc2\n", - "wi=24*1\n", - "loss=wc+wi\n", - "output=3*(l1*1)+8*(l2*1)\n", - "e2=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"ordinary efficiency=\",e1*100,\"%\"\n", - "print \"all day efficiency=\",e2,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ordinary efficiency= 98.6842105263 %\n", - "all day efficiency= 97.1480513578 %\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.84, Page Number:1184" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50#KVA\n", - "efficiency=0.94#%\n", - "nl=10\n", - "hl=5.0\n", - "ql=6.0\n", - "fl=3.0\n", - "\n", - "#calculations\n", - "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", - "wch=(0.5)**2*pi\n", - "eh=wch*hl/1000\n", - "wcq=(0.25)**2*pi\n", - "eq=ql*wcq/1000\n", - "e3=pi*3/1000\n", - "e2=pi*24/1000\n", - "e=25*hl+12.5*ql+50*fl\n", - "efficiency=e/(e+e2+eh+eq+e3)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 88.4557217274 %\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.85, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "t1=7.0#hrs\n", - "t2=4.0#hrs\n", - "t3=8.0#hrs\n", - "t4=5.0#hrs\n", - "k1=3.0#kW\n", - "k2=8.0#kW\n", - "pf1=0.6\n", - "pf2=0.8\n", - "\n", - "#calculations\n", - "x1=k1/(pf1*load)\n", - "x2=k2/(pf2*load)\n", - "x3=load/(1*load)\n", - "pc1=(0.5)**2*0.1\n", - "pc2=pc3=0.10\n", - "o1=k1*t1\n", - "o2=k2*t2\n", - "o3=k2*load\n", - "output=o1+o2+o3\n", - "wc1=pc1*t1\n", - "wc2=pc2*t2\n", - "wc3=pc3*t3\n", - "cu_loss=wc1+wc2+wc3\n", - "loss=400.0*24/10000\n", - "efficiency=output/(output+loss+cu_loss)\n", - "\n", - "#result\n", - "print \"efficency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficency= 98.27465179 %\n" - ] - } - ], - "prompt_number": 142 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.86, Page Number:1185" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=.98\n", - "load=15.0#kVA\n", - "t1=12.0\n", - "t2=6.0\n", - "t3=6.0\n", - "pf1=0.8\n", - "pf2=0.8\n", - "pf3=0.9\n", - "k1=2.0\n", - "k2=12.0\n", - "k3=18.0\n", - "#calculations\n", - "output=load*1000\n", - "inpt=output/efficiency\n", - "loss=inpt-output\n", - "cu_loss=loss/2\n", - "x1=k1/(0.5*load)\n", - "x2=k2/(pf2*load)\n", - "x3=k3/(pf3*load)\n", - "wc1=0.131\n", - "wc2=0.918\n", - "wc3=1.632\n", - "o1=t1*k1\n", - "o2=t2*k2\n", - "o3=t3*k3\n", - "output=o1+o2+o3\n", - "loss=wc1+wc2+wc3+0.153*24\n", - "efficiency=(output*100)/(output+loss)\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 96.9798386522 %\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.87, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.0#kW\n", - "v1=115.0#V\n", - "v2=230.0#V\n", - "\n", - "#calculation\n", - "k=v1/v2\n", - "power=load*(1-k)\n", - "power2=k*load\n", - "\n", - "#result\n", - "print \"a)power transferred inductively=\",power,\"kW\"\n", - "print \"b)power transferred conductively=\",power2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)power transferred inductively= 1.5 kW\n", - "b)power transferred conductively= 1.5 kW\n" - ] - } - ], - "prompt_number": 145 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.88, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=500.0#V\n", - "v2=400.0#V\n", - "i=100.0#A\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "i1=k*i\n", - "saving=k*100\n", - "\n", - "#result\n", - "print \"economy of cu=\",saving" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "economy of cu= 80.0\n" - ] - } - ], - "prompt_number": 147 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.89, Page Number:1188" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=500.0#KVA\n", - "f=50.0#Hz\n", - "v1=6600.0#V\n", - "v2=5000.0#V\n", - "e=8.0#V\n", - "phim1=1.3#Wb/m2\n", - "\n", - "#calculations\n", - "phim=e/(4.44*f)\n", - "area=phim/phim1\n", - "n1=v1/e\n", - "n2=v2/e\n", - "\n", - "#result\n", - "print \"core area=\",area*10000,\"m2\"\n", - "print \"number of turns on the hv side=\",n1\n", - "print \"number of turns on the lv side=\",n2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "core area= 277.2002772 m2\n", - "number of turns on the hv side= 825.0\n", - "number of turns on the lv side= 625.0\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.90, Page Number:1189" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2640*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i1_-i2\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 219.12 kVA\n", - "iv)per cent increase in kVA= 1095.6 %\n", - "v)I1= 91.3 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.91, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#KVA\n", - "v1=2400.0#V\n", - "v2=240.0#V\n", - "\n", - "#calculation\n", - "i1=round(load*1000/v1,1)\n", - "k=v2/v1\n", - "i2=i1/k\n", - "kva=2160*i2*0.001\n", - "kva_per=kva*100/load\n", - "i1_=kva*1000/v1\n", - "ic=i2-i1_\n", - "over=ic*100/i1\n", - "\n", - "#result\n", - "print \"i)i1=\",i1,\"A\"\n", - "print \"ii)i2=\",i2,\"A\"\n", - "print \"iii)kVA rating=\",kva,\"kVA\"\n", - "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", - "print \"v)I1=\",i1_,\"A\"\n", - "print \" Ic=\",ic,\"A\"\n", - "print \"vi)per cent overload=\",over,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)i1= 8.3 A\n", - "ii)i2= 83.0 A\n", - "iii)kVA rating= 179.28 kVA\n", - "iv)per cent increase in kVA= 896.4 %\n", - "v)I1= 74.7 A\n", - " Ic= 8.3 A\n", - "vi)per cent overload= 100.0 %\n" - ] - } - ], - "prompt_number": 160 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.92, Page Number:1190" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5.0#kVA\n", - "v1=110.0#V\n", - "v2=110.0#V\n", - "f=50.0#Hz\n", - "efficiency=0.95\n", - "iron_loss=50.0#W\n", - "v=220.0#V\n", - "\n", - "#calculations\n", - "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", - "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", - "i2=(load*1000+cu_loss/4+iron_loss)/v\n", - "\n", - "#result\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"current drawn on hv side=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "efficiency= 97.9760216579 %\n", - "current drawn on hv side= 23.1967703349 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.93, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500#V\n", - "v2=2300#V\n", - "\n", - "#calculations\n", - "kva=(v1+v2)*50*0.001\n", - "\n", - "#result\n", - "print \"voltage output=\",v1+v2,\"V\"\n", - "print \"kVA rating of auto transformer=\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage output= 13800 V\n", - "kVA rating of auto transformer= 690.0 kVA\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.94, Page Number:1191" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=11500.0#V\n", - "v2=2300.0#V\n", - "load=100.0#KVA\n", - "\n", - "#calculations\n", - "i1=load*100/v1\n", - "i2=load*100/v2\n", - "kva1=(v1+v2)*i1/(100)\n", - "kva2=(v1+v2)*i2/(100)\n", - "#result\n", - "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", - "print \"kVA rating in first case=\",kva1\n", - "print \"kVA rating in second case=\",kva2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage ratios= 1.2 or 6.0\n", - "kVA rating in first case= 120.0\n", - "kVA rating in second case= 600.0\n" - ] - } - ], - "prompt_number": 167 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.95, Page Number:1192" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2400.0#v\n", - "v2=240.0#V\n", - "load=50.0#kVA\n", - "\n", - "#calculations\n", - "i1=load*1000/v1\n", - "i2=load*1000/v2\n", - "output=2640*i2\n", - "i=i2*2640/v1\n", - "k=2640/v1\n", - "poweri=v1*i1*0.001\n", - "power=output/1000-poweri\n", - "\n", - "#result\n", - "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", - "print \"inductively transferred powers=\",poweri,\"kW\"\n", - "print \"conductively transferred powers=\",power,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rating of the auto-transformer= 550.0 kVA\n", - "inductively transferred powers= 50.0 kW\n", - "conductively transferred powers= 500.0 kW\n" - ] - } - ], - "prompt_number": 169 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.96, Page Number:1196" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "za=complex(0.5,3)\n", - "zb=complex(0.,10)\n", - "load=100#KW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", - "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "96.082805253\n", - "SA= 74.5937961595 kW\n", - "SB= 25.4062038405 kW\n" - ] - } - ], - "prompt_number": 174 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.97, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r1=0.005#ohm\n", - "r2=0.01#ohm\n", - "x1=0.05#ohm\n", - "x2=0.04#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "za=complex(r1,x1)\n", - "zb=complex(r2,x2)\n", - "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", - "\n", - "#result\n", - "print \"load of B=\",abs(za/zb)\n", - "print \"pf of B=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load of B= 1.21872643265\n", - "pf of B= 0.613584256393\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.98, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=250#kVA\n", - "za=complex(1,6)\n", - "zb=complex(1.2,4.8)\n", - "load1=500#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 224.451917244 -39.3923099293\n", - "SB= 275.942423833 -34.8183886694\n" - ] - } - ], - "prompt_number": 205 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.99, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabledeclaration\n", - "load=100.0#KW\n", - "r1=0.5\n", - "x1=8.0\n", - "r2=0.75\n", - "x2=4.0\n", - "load1=180.0#kW\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "load=load1/pf\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "z1=complex(r1,x1)\n", - "z2=complex(r2,x2)\n", - "s1=s*z2/(z1+z2)\n", - "s2=s*z1/(z1+z2)\n", - "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", - "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", - "\n", - "#result\n", - "print \"kW1=\",kw1,\"kW\"\n", - "print \"kW2=\",kw2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "(1.25+12j)\n", - "kW1= 58.119626171 kW\n", - "kW2= 121.880373829 kW\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.100, Page Number:1197" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=200.0#kW\n", - "pf=0.85\n", - "za=complex(1,5)\n", - "zb=complex(2,6)\n", - "\n", - "#calculations\n", - "s=load/pf*complex(0.85,-0.527)\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", - "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA for A= 130.53263665 0.819364787986 lag\n", - "kVA for B= 105.238776124 0.884143252833 lag\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.101, Page Number:1198" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=2200.0#V\n", - "v2=110.0#V\n", - "load=125.0#kVA\n", - "pf=0.8\n", - "za=complex(0.9,10)\n", - "zb=(100/50)*complex(1.0,5)\n", - "\n", - "#calculation\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 63.0780848499 -39.929442891 degrees\n", - "SB= 62.1031510961 -33.7622749748 degrees\n" - ] - } - ], - "prompt_number": 218 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.102, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=500#kVA\n", - "za=complex(1,5)\n", - "load2=250#kVA\n", - "zb=complex(1.5,4)\n", - "v2=400#V\n", - "load=750#kVA\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zb=(500/load2)*zb\n", - "s=load*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 471.125736359 -40.3232138964 degrees\n", - "SB= 281.165527855 -31.0771011508 degrees\n" - ] - } - ], - "prompt_number": 219 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.103, Page Number:1199" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=1000#A\n", - "pf=0.8\n", - "za=complex(2,3)\n", - "zb=complex(2.5,5)\n", - "\n", - "#calculations\n", - "i=i*complex(pf,-math.sin(math.acos(pf)))\n", - "ratio=zb/za\n", - "ib=i/(1+ratio)\n", - "ia=i-ib\n", - "ratio=ia.real/ib.real\n", - "\n", - "#result\n", - "print \"IA=\",ia\n", - "print \"IB=\",ib\n", - "print \"ratio of output=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= (504.451038576-341.246290801j)\n", - "IB= (295.548961424-258.753709199j)\n", - "ratio of output= 1.70682730924\n" - ] - } - ], - "prompt_number": 220 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.104, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v1=1000.0#V\n", - "v2=500.0#V\n", - "load=100.0#kVA\n", - "za=complex(1.0,5.0)\n", - "zb=complex(2.0,2.0)\n", - "load1=300.0#kVA\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "zb=(100.0/250)*zb\n", - "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", - "sa=s*zb/(za+zb)\n", - "sb=s*za/(za+zb)\n", - "zab=za*zb/(za+zb)\n", - "drop=zab.real*240/100+zab.imag*180/100\n", - "v2=v2-v2*drop/100\n", - "\n", - "#result\n", - "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", - "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", - "print \"secondary voltage=\",v2,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "SA= 55.8895719399 -64.6284382469 degrees\n", - "SB= 251.890896741 -30.9383707209 degrees\n", - "secondary voltage= 486.177874187 V\n" - ] - } - ], - "prompt_number": 223 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.105, Page Number:1200" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n11=5000.0\n", - "n12=440.0\n", - "load1=200#kVA\n", - "n21=5000.0\n", - "n22=480.0\n", - "load2=350#kVA\n", - "x=3.5\n", - "\n", - "#calculation\n", - "i1=load1*1000/n12\n", - "i2=load2*1000/n22\n", - "x1=x*n12/(100*i1)\n", - "x2=x*n22/(100*i2)\n", - "ic=(n22-n12)/0.057\n", - "\n", - "#result\n", - "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.106, Page Number:1203" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variabe declaration\n", - "ea=6600#V\n", - "eb=6400#V\n", - "za=complex(0.3,3)\n", - "zb=complex(0.2,1)\n", - "zl=complex(8.0,6.0)\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "\n", - "#result\n", - "print \"IA=\",abs(ia),\"A\"\n", - "print \"IB=\",abs(ib),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "IA= 195.492387533 A\n", - "IB= 422.567795916 A\n" - ] - } - ], - "prompt_number": 227 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.107, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=100.0#kVA\n", - "load2=50.0#kVA\n", - "v1=1000.0#V\n", - "v2=950.0#V\n", - "r1=2.0\n", - "r2=2.5\n", - "x1=8.0\n", - "x2=6.0\n", - "\n", - "#calculations\n", - "ia=load1*1000/v1\n", - "ra=v1*r1/(100*ia)\n", - "xa=v1*x1/(100*ia)\n", - "ib=load2*1000/v2\n", - "rb=v2*r2/(100*ib)\n", - "xb=v2*x2/(100*ib)\n", - "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", - "ic=(v1-v2)/z\n", - "alpha=math.atan((xa+xb)/(ra+rb))\n", - "\n", - "#result\n", - "print \"no load circulating current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no load circulating current= 25.0948635944 A\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 32.108, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load1=1000.0#KVA\n", - "load2=500.0#kVA\n", - "v1=500.0#V\n", - "v2=510.0#V\n", - "z1=3.0\n", - "z2=5.0\n", - "r=0.4\n", - "\n", - "#calculation\n", - "ia=load1*1000/480\n", - "ib=load2*1000/480\n", - "za=z1*v1/(100*ia)\n", - "zb=z2*v2/(100*ib)\n", - "ic=(v2-v1)/(za+zb)\n", - "\n", - "#result\n", - "print \"cross current=\",ic,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "cross current= 315.656565657 A\n" - ] - } - ], - "prompt_number": 233 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.109, Page Number:1204" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "loada=500.0#KVA\n", - "loadb=250.0#kVA\n", - "load=750.0#KVA\n", - "pf=0.8\n", - "v1=405.0#V\n", - "v2=415.0#V\n", - "ra=1.0\n", - "rb=1.5\n", - "xa=5.0\n", - "xb=4.0\n", - "\n", - "#calculations\n", - "ia=loada*1000/400\n", - "ra=400/(100*ia)\n", - "xa=xa*400/(100*ia)\n", - "ib=loadb*1000/400\n", - "rb=rb*400/(100*ib)\n", - "xb=xb*400/(100*ib)\n", - "za=complex(ra,xa)\n", - "zb=complex(rb,xb)\n", - "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", - "ic=(v1-v2)/(za+zb)\n", - "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", - "sa=400*ia/1000\n", - "sb=400*ib/1000\n", - "pf1=math.cos(math.atan(sa.imag/sa.real))\n", - "pf2=math.cos(math.atan(sb.imag/sb.real))\n", - "\n", - "#result\n", - "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", - "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", - "print \" SB=\",abs(sb),pf2,\"lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)cross current= -229.754569404 -72.8972710309\n", - "b)SA= 387.844943528 0.820048560714 lag\n", - " SB= 351.964386212 0.738709225528 lag\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.110, Page Number:1205" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zl=complex(2.0,1.5)\n", - "za=complex(0.15,0.5)\n", - "zb=complex(0.1,0.6)\n", - "ea=207#V\n", - "eb=205#V\n", - "\n", - "#calculations\n", - "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", - "v2_=(ia+ib)*zl\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", - "pfa=math.cos(angle)\n", - "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", - "pfb=math.cos(angle)\n", - "pa=abs(v2_)*abs(ia)*pfa\n", - "pb=abs(v2_)*abs(ib)*pfb\n", - "\n", - "#result\n", - "print \"power output:\"\n", - "print \" A:\",pa,\"W\"\n", - "print \" B:\",pb,\"W\"\n", - "print \"power factor:\"\n", - "print \" A:\",pfa\n", - "print \" B:\",pfb\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output:\n", - " A: 6535.37583042 W\n", - " B: 4925.36941503 W\n", - "power factor:\n", - " A: 0.818428780129\n", - " B: 0.775705655277\n" - ] - } - ], - "prompt_number": 248 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 32.111, Page Number:1206" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=200.0#A\n", - "ib=600.0#A\n", - "ra=0.02#ohm\n", - "rb=0.025#ohm\n", - "xa=0.05#ohm\n", - "xb=0.06#ohm\n", - "ea=245.0#V\n", - "eb=240.0#V\n", - "zl=complex(0.25,0.1)\n", - "\n", - "#calculation\n", - "za=(ea/ia)*complex(ra,xa)\n", - "zb=(eb/ib)*complex(rb,xb)\n", - "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", - "v2=i*zl\n", - "\n", - "#result\n", - "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 230.0 -3.0 degrees\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33.ipynb deleted file mode 100644 index 495cee05..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33.ipynb +++ /dev/null @@ -1,1433 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 33: Transformer:Three Phase" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.1, Page Number:1216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=3\n", - "f=50.0#Hz\n", - "vd=22000.0#V\n", - "vs=400.0#V\n", - "phi=0.8\n", - "i=5.0#A\n", - "\n", - "#calcuations\n", - "v_phase_secondary=vs/math.sqrt(3)\n", - "K=(vs/vd)/math.sqrt(3)\n", - "i_primary=i/math.sqrt(3)\n", - "i_secondary=i_primary/K\n", - "il=i_secondary\n", - "output=math.sqrt(3)*il*vs*phi\n", - "\n", - "#result\n", - "print \"Output=\",output/10000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 15.2420471066 kW\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.2, Page Number:1217" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=500.0#kVA\n", - "f=50.0#Hz\n", - "vls=11.0#kV\n", - "vld=33.0#kV\n", - "rh=35.0#ohm\n", - "rl=0.876#ohm\n", - "iron_loss=3050.0#W\n", - "phi1=1.0\n", - "phi2=0.8\n", - "\n", - "#calculations\n", - "\n", - "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", - "r02=rl+K**2*rh\n", - "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", - "#full load\n", - "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", - "fl_totalloss=fl_culoss+iron_loss\n", - "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", - "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", - "#half load\n", - "cu_loss=.5**2*fl_culoss\n", - "totalloss=cu_loss+iron_loss\n", - "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", - "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", - "#result\n", - "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", - "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", - "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency at p.f. 1= 98.5147491838 %\n", - "full load efficiency at p.f. 0.8= 98.1503046336 %\n", - "half load efficiency at p.f. 1= 98.3585709725 %\n", - "half load efficiency at p.f. 0.8= 98.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.3, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.02\n", - "va=2000\n", - "reactance=0.1\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculation\n", - "cu_loss=r*100*va/100\n", - "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", - "\n", - "#result\n", - "print \"Cu loss=\",cu_loss,\"kW\"\n", - "print \"Regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Cu loss= 40.0 kW\n", - "Regulation= 7.6 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.4, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w=120.0#kVA\n", - "v1=6000.0\n", - "v2=400.0\n", - "f=50.0#Hz\n", - "iron_loss=1600.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss_fl=iron_loss*((4/3)**2)\n", - "fl_output=w*pf*1000\n", - "total_loss=iron_loss+cu_loss_fl\n", - "efficiency1=fl_output/(fl_output+total_loss)\n", - "cu_loss_hl=0.5**2*cu_loss_fl\n", - "total_loss2=cu_loss_hl+iron_loss\n", - "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", - "total_loss3=2*iron_loss\n", - "output=(3.0/4)*w*1000\n", - "inpt=output+total_loss3\n", - "efficiency=output/inpt\n", - "\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency=\",efficiency2*100,\"%\"\n", - "print \"3/4 load efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.7741935484 %\n", - "half load efficiency= 96.7741935484 %\n", - "3/4 load efficiency= 96.5665236052 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.5, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "rp=8.0#ohm\n", - "rs=0.08#ohm\n", - "z=0.07\n", - "pf=0.75\n", - "v1=33.0\n", - "v2=6.6\n", - "w=2*10.0**6\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "fl_i=w/(math.sqrt(3)*v2*10**3)\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rs+(rp*(K*K))\n", - "z_drop=z*v2*1000/math.sqrt(3)\n", - "z02=z_drop/fl_i\n", - "x02=math.sqrt((z02*z02)-(r02*r02))\n", - "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", - "secondary_v=v2*1000/math.sqrt(3)\n", - "V2=secondary_v-drop\n", - "line_v=V2*math.sqrt(3)\n", - "regn=drop*100/secondary_v\n", - "\n", - "#result\n", - "print \"secondary voltage\",line_v,\"V\"\n", - "print \"regulation=\",regn,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary voltage 6254.29059005 V\n", - "regulation= 5.23802136291 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.6, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=100.0#kWA\n", - "f=50.0#Hz\n", - "v1=3300.0#V\n", - "v2=400.0#V\n", - "rh=3.5#ohm\n", - "rl=0.02#ohm\n", - "pf=0.8\n", - "efficiency=0.958\n", - "\n", - "#calculations\n", - "output=0.8*100\n", - "inpt=output/efficiency\n", - "total_loss=(inpt-output)*1000\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rl+K**2*rh\n", - "i2=((w*1000)/math.sqrt(3))/v2\n", - "cu_loss=3*i2**2*r02\n", - "iron_loss=total_loss-cu_loss\n", - "#result\n", - "print \"ironloss=\",iron_loss,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.0371411080502\n", - "2321.31925314\n", - "ironloss= 1185.98763622 W\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.7, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=5000.0#kVA\n", - "v1=6.6#kV\n", - "v2=33.0#kV\n", - "nl=15.0#kW\n", - "fl=50.0#kW\n", - "drop=0.07\n", - "load=3200.0#kw\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i2=w*1000/(math.sqrt(3)*v2*1000)\n", - "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", - "z02=impedence_drop/i2\n", - "cu_loss=fl-nl\n", - "r02=cu_loss*1000/(3*i2**2)\n", - "x02=math.sqrt(z02**2-r02**2)\n", - "print \"full-load x02:\",x02\n", - "\n", - "#when load=3200#kW\n", - "i2=load/(math.sqrt(3)*v2*0.8)\n", - "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", - "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", - "vp=v1+regn/100*v1\n", - "print \"Primary voltage=\",vp*1000,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load x02: 15.1695784661\n", - "Primary voltage= 6851.39317975 V\n" - ] - } - ], - "prompt_number": 95 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.8, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=1\n", - "x=6\n", - "v=6600#V\n", - "v2=4800#V\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "regn=(r*math.cos(phi)+z*math.sin(phi))\n", - "secondary_v=v2+regn/100*v2\n", - "secondary_vp=secondary_v/math.sqrt(3)\n", - "K=secondary_vp/v\n", - "\n", - "#result\n", - "print \"Transformation Ratio=\",K" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transformation Ratio= 0.423426587968\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.9, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=2000#kVA\n", - "v1=6600#V\n", - "v2=400#V\n", - "pf=0.8\n", - "scv=400#V\n", - "sci=175#A\n", - "scw=17#kW\n", - "ocv=400#V\n", - "oci=150#A\n", - "ocw=15#kW\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i1=sci/math.sqrt(3)\n", - "z01=scv/i1\n", - "r01=scw*1000/(3*i1*i1)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "r=i1*r01*100/v1\n", - "x=i1*x01*100/v1\n", - "regn=(r*math.cos(phi)-x*math.sin(phi))\n", - "I1=w*1000/(math.sqrt(3)*v1)\n", - "total_loss=scw+ocw\n", - "fl_output=w*pf\n", - "efficiency=fl_output/(fl_output+total_loss)\n", - "\n", - "#result\n", - "print \"% resistance=\",r,\"%\"\n", - "print \"% reactance=\",x,\"%\"\n", - "print \"% efficiency=\",efficiency*100,\"%\"\n", - "print \"%regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% resistance= 0.849779616989 %\n", - "% reactance= 6.00073499035 %\n", - "% efficiency= 98.0392156863 %\n", - "%regulation= -2.92061730062 %\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.10, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=440.0#V\n", - "i=5.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "secondary_rating=v2/math.sqrt(3)\n", - "primary_i=i/math.sqrt(3)\n", - "voltsamps=v1*5/math.sqrt(3)\n", - "i2=voltsamps/secondary_rating\n", - "output=pf*voltsamps/1000\n", - "\n", - "#result\n", - "print \"Each coil current=\",i2,\"A\"\n", - "print \"Total output=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Each coil current= 125.0 A\n", - "Total output= 25.4034118443 kW\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.12, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kVA_per_transformer=load/2*1.15\n", - "delta_delta_rating=kVA_per_transformer*3\n", - "increase=(delta_delta_rating-load)*100/load\n", - "\n", - "#result\n", - "print \"increase=\",increase,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase= 72.5 %\n" - ] - } - ], - "prompt_number": 126 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.13, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=20#kVA\n", - "v1=2300#v\n", - "v2=230#V\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kva_load=load/math.sqrt(3)\n", - "percent_rated=kva_load*100/w\n", - "kvarating_vv=2*w*0.866\n", - "vv_delta=kvarating_vv*100/60\n", - "percentage_increase=kva_load/(load/3)\n", - "\n", - "#result\n", - "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", - "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", - "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", - "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", - "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load of each transformer= 23.0940107676 kVA\n", - "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", - "iii)total kVA rating of the V-V bank 34.64 kVA\n", - "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", - "v)percent increase in load= 177.646236674 %\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.14, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=150.0#kW\n", - "v1=1000.0#V\n", - "pf=0.866\n", - "v=2000.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(pf*math.sqrt(3)*1000)\n", - "ip=il/math.sqrt(3)\n", - "ratio=v1/v\n", - "ip=ip*ratio\n", - "I=il\n", - "Ip=I*ratio\n", - "pf=86.6/100*pf\n", - "\n", - "#result\n", - "print \"delta-delta:current in the windings=\",ip,\"A\"\n", - "print \"v-v:current in the windings=\",Ip,\"A\"\n", - "print \"Power factor\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "delta-delta:current in the windings= 28.8683602771 A\n", - "v-v:current in the windings= 50.0014667312 A\n", - "Power factor 0.749956\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.15, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=3000#kW\n", - "v=11#kV\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", - "transformer_pf=86.6/100*pf\n", - "additional_load=72.5/100*load\n", - "total_load=additional_load+load\n", - "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", - "\n", - "#result\n", - "print \"Il=\",il,\"A\"\n", - "print \"phase current=\",il/math.sqrt(3),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Il= 339.521323075 A\n", - "phase current= 196.022727273 A\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.16, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=400#kVA\n", - "pf=0.866\n", - "v=440#V\n", - "\n", - "#calculations\n", - "kVA_each=(load/2)/pf\n", - "phi=math.acos(pf)\n", - "p1=kVA_each*math.cos(math.radians(30-phi))\n", - "p2=kVA_each*math.cos(math.radians(30+phi))\n", - "p=p1+p2\n", - "\n", - "#result\n", - "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", - "print \"kW supplied by each transformer=\",p,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA supplied by each transformer= 230.946882217 kVA\n", - "kW supplied by each transformer= 399.995027715 kW\n" - ] - } - ], - "prompt_number": 136 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.17, Page Number:1228" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "load=33.0#kVA\n", - "v2=3300.0#V\n", - "\n", - "#calculations\n", - "vl=0.866*v2\n", - "ilp=load*1000/(math.sqrt(3)*v2)\n", - "ils=ilp/(440/v2)\n", - "main_kva=v2*ilp*0.001\n", - "teaser_kva=0.866*main_kva\n", - "\n", - "#result\n", - "print \"voltage rating of each coil=\",vl\n", - "print \"current rating of each coil=\",ils\n", - "print \"main kVA=\",main_kva,\"kVA\"\n", - "print \"teaser kVA=\",teaser_kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage rating of each coil= 2857.8\n", - "current rating of each coil= 43.3012701892\n", - "main kVA= 19.0525588833 kVA\n", - "teaser kVA= 16.4995159929 kVA\n" - ] - } - ], - "prompt_number": 139 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.18, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "v2=200.0#V\n", - "output=150.0#kVA\n", - "\n", - "#calculations\n", - "ratio=v2/v\n", - "i2=output*1000/(2*v2)\n", - "i1=i2*ratio\n", - "primary_volts=(math.sqrt(3)*v)/2\n", - "ratio=v2/primary_volts\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"turns ratio\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 170.454545455 A\n", - "turns ratio 0.524863881081\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.19, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=100.0#V\n", - "v2=3300.0#V\n", - "p=400.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2=p*1000/(pf*v)\n", - "ip=1.15*K*i2\n", - "I2m=K*i2\n", - "i2=ip/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#reslult\n", - "print \"Current=\",i1m,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 174.77684841 A\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.20, Page Number:1232" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w1=300#kW\n", - "w2=450#kW\n", - "v1=100#V\n", - "pf=0.707\n", - "v2=3300#V\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2t=(w2*1000)/(100*pf)\n", - "i1t=1.15*K*i2t\n", - "I2m=(K*w1*1000)/(100*pf)\n", - "i2=i1t/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#result\n", - "print \"Current=\",i1m,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 169.804606659 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.21, Page Number:1233" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=80.0#V\n", - "v2=11000.0#V\n", - "w1=500.0#kW\n", - "w2=800.0#kW\n", - "pf=0.5\n", - "\n", - "#calculations\n", - "K=v1/v2\n", - "#unity pf\n", - "i2t=w1*1000/v1\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/v1\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "\n", - "print \"unity pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", - "#0.5 pf\n", - "i2t=w1*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/(v1*pf)\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "print \"0.5 pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "unity pf\n", - "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", - "0.5 pf\n", - "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" - ] - } - ], - "prompt_number": 171 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.22, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=50#V\n", - "v2=4.6*1000#V\n", - "load=350#kW\n", - "w=200#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "K=v1/v2\n", - "i2t=w*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=load*1000/(v1*pf)\n", - "Ki2m=K*i2m\n", - "i1t_half=i1t/2\n", - "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", - "\n", - "#result\n", - "print \"current in line A=\",i1t\n", - "print \"current in line B=\",i1m\n", - "print \"current in line C=\",i1m" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in line A= 62.5\n", - "current in line B= 100.11107076\n", - "current in line C= 100.11107076\n" - ] - } - ], - "prompt_number": 173 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.23, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=231#V\n", - "v2=6600#v\n", - "volt_induced=8#v\n", - "\n", - "#calculations\n", - "hv=v2/volt_induced\n", - "vl=v*math.sqrt(3)\n", - "n_lv1=vl/volt_induced\n", - "n_lv2=math.sqrt(3)*n_lv1/2\n", - "n=2*n_lv2/3\n", - "\n", - "#result\n", - "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "neutral point is located on the 29.0 th turn from A downwards\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.24, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6000.0#V\n", - "v2=440.0#V\n", - "f=50.0#Hz\n", - "area=300.0#cm2\n", - "flux=1.2#Wb/m2\n", - "\n", - "#calculations\n", - "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", - "K=v2/v\n", - "n2=n1*K\n", - "n_lv=math.sqrt(3)*n2/2\n", - "turns=n_lv*2/3\n", - "\n", - "#result\n", - "print \"NUmber of turns in AN=\",math.floor(turns)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " NUmber of turns in AN= 35.0\n" - ] - } - ], - "prompt_number": 183 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.25, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "load=30.0#kVA\n", - "v2=250.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(math.sqrt(3)*v2)\n", - "vl=0.866*v2\n", - "kva=il*vl*(0.001)\n", - "\n", - "#result\n", - "print \"Voltage=\",vl,\"V\"\n", - "print \"kVA rating\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage= 216.5 V\n", - "kVA rating 14.9995599935 kVA\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.26, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#vaiable declaration\n", - "load=500#kVA\n", - "pf=0.8\n", - "za=complex(2,6)\n", - "zb=complex(2,5)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "s=load*complex(math.cos(phi),math.sin(phi))\n", - "z1=za/zb\n", - "z2=zb/za\n", - "sa=s/(1+z1)\n", - "sb=s/(1+z2)\n", - "pfa=cmath.phase(sa)\n", - "pfb=cmath.phase(sb)\n", - "#result\n", - "print \"sa=\",abs(sa)\n", - "print \"sb=\",abs(sb)\n", - "print \"cos phi_a=\",pfa\n", - "print \"cos phi_b=\",pfb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 230.042839552\n", - "sb= 270.171613479\n", - "cos phi_a= 0.611765735265\n", - "cos phi_b= 0.670521557981\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.27, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "w=2000#kVA\n", - "w1=4000#kVA\n", - "w2=5000#kVA\n", - "pf=0.8\n", - "za=complex(2,8)\n", - "zb=complex(1.6,3)\n", - "\n", - "#calculations\n", - "za_per=(w1/w)*za\n", - "zb_per=zb\n", - "z=za_per+zb_per\n", - "s=complex(w1,w-w2)\n", - "sb=s*(za/z)\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (2284.2287695-1821.49046794j)\n", - "sb= (1715.7712305-1178.50953206j)\n" - ] - } - ], - "prompt_number": 211 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.28, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=1400#kVA\n", - "pf=0.866\n", - "w1=1000#kVA\n", - "w2=500#kVA\n", - "v1=6600\n", - "v2=400\n", - "za=complex(0.001,0.003)\n", - "zb=complex(0.0028,0.005)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (929.911014012-588.664867724j)\n", - "sb= (282.488985988-111.396729565j)\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.29, Page Number:1238" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=750#kVA\n", - "pf=0.707\n", - "w1=500#kVA\n", - "w2=250#kVA\n", - "v1=3300\n", - "v2=400\n", - "za=complex(2,3)\n", - "zb=complex(1.5,4)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "per_r=za.real*(sa.real)/w1\n", - "per_x=(za.imag)*(sa.imag)/w1\n", - "total_per=per_r+per_x\n", - "vl=v2-(total_per*4)\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (399.511103547-348.770523615j)\n", - "sb= (130.738896453-181.639636072j)\n" - ] - } - ], - "prompt_number": 242 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.30, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=100/5\n", - "i=5#A\n", - "i1=3.5#A\n", - "\n", - "#calculations\n", - "il=i1*ratio\n", - "\n", - "#result\n", - "print \"Line current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 70.0 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.31, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i1=2000#A\n", - "i2=2500#A\n", - "i=5#A\n", - "\n", - "#calculations\n", - "ratio1=i1/i\n", - "ratio2=i2/i\n", - "\n", - "#result\n", - "print \"ratio in first case=\",ratio1\n", - "print \"ratio in second case=\",ratio2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio in first case= 400\n", - "ratio in second case= 500\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_1.ipynb deleted file mode 100644 index 495cee05..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_1.ipynb +++ /dev/null @@ -1,1433 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 33: Transformer:Three Phase" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.1, Page Number:1216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=3\n", - "f=50.0#Hz\n", - "vd=22000.0#V\n", - "vs=400.0#V\n", - "phi=0.8\n", - "i=5.0#A\n", - "\n", - "#calcuations\n", - "v_phase_secondary=vs/math.sqrt(3)\n", - "K=(vs/vd)/math.sqrt(3)\n", - "i_primary=i/math.sqrt(3)\n", - "i_secondary=i_primary/K\n", - "il=i_secondary\n", - "output=math.sqrt(3)*il*vs*phi\n", - "\n", - "#result\n", - "print \"Output=\",output/10000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 15.2420471066 kW\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.2, Page Number:1217" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=500.0#kVA\n", - "f=50.0#Hz\n", - "vls=11.0#kV\n", - "vld=33.0#kV\n", - "rh=35.0#ohm\n", - "rl=0.876#ohm\n", - "iron_loss=3050.0#W\n", - "phi1=1.0\n", - "phi2=0.8\n", - "\n", - "#calculations\n", - "\n", - "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", - "r02=rl+K**2*rh\n", - "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", - "#full load\n", - "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", - "fl_totalloss=fl_culoss+iron_loss\n", - "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", - "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", - "#half load\n", - "cu_loss=.5**2*fl_culoss\n", - "totalloss=cu_loss+iron_loss\n", - "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", - "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", - "#result\n", - "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", - "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", - "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency at p.f. 1= 98.5147491838 %\n", - "full load efficiency at p.f. 0.8= 98.1503046336 %\n", - "half load efficiency at p.f. 1= 98.3585709725 %\n", - "half load efficiency at p.f. 0.8= 98.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.3, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.02\n", - "va=2000\n", - "reactance=0.1\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculation\n", - "cu_loss=r*100*va/100\n", - "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", - "\n", - "#result\n", - "print \"Cu loss=\",cu_loss,\"kW\"\n", - "print \"Regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Cu loss= 40.0 kW\n", - "Regulation= 7.6 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.4, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w=120.0#kVA\n", - "v1=6000.0\n", - "v2=400.0\n", - "f=50.0#Hz\n", - "iron_loss=1600.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss_fl=iron_loss*((4/3)**2)\n", - "fl_output=w*pf*1000\n", - "total_loss=iron_loss+cu_loss_fl\n", - "efficiency1=fl_output/(fl_output+total_loss)\n", - "cu_loss_hl=0.5**2*cu_loss_fl\n", - "total_loss2=cu_loss_hl+iron_loss\n", - "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", - "total_loss3=2*iron_loss\n", - "output=(3.0/4)*w*1000\n", - "inpt=output+total_loss3\n", - "efficiency=output/inpt\n", - "\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency=\",efficiency2*100,\"%\"\n", - "print \"3/4 load efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.7741935484 %\n", - "half load efficiency= 96.7741935484 %\n", - "3/4 load efficiency= 96.5665236052 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.5, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "rp=8.0#ohm\n", - "rs=0.08#ohm\n", - "z=0.07\n", - "pf=0.75\n", - "v1=33.0\n", - "v2=6.6\n", - "w=2*10.0**6\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "fl_i=w/(math.sqrt(3)*v2*10**3)\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rs+(rp*(K*K))\n", - "z_drop=z*v2*1000/math.sqrt(3)\n", - "z02=z_drop/fl_i\n", - "x02=math.sqrt((z02*z02)-(r02*r02))\n", - "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", - "secondary_v=v2*1000/math.sqrt(3)\n", - "V2=secondary_v-drop\n", - "line_v=V2*math.sqrt(3)\n", - "regn=drop*100/secondary_v\n", - "\n", - "#result\n", - "print \"secondary voltage\",line_v,\"V\"\n", - "print \"regulation=\",regn,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary voltage 6254.29059005 V\n", - "regulation= 5.23802136291 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.6, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=100.0#kWA\n", - "f=50.0#Hz\n", - "v1=3300.0#V\n", - "v2=400.0#V\n", - "rh=3.5#ohm\n", - "rl=0.02#ohm\n", - "pf=0.8\n", - "efficiency=0.958\n", - "\n", - "#calculations\n", - "output=0.8*100\n", - "inpt=output/efficiency\n", - "total_loss=(inpt-output)*1000\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rl+K**2*rh\n", - "i2=((w*1000)/math.sqrt(3))/v2\n", - "cu_loss=3*i2**2*r02\n", - "iron_loss=total_loss-cu_loss\n", - "#result\n", - "print \"ironloss=\",iron_loss,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.0371411080502\n", - "2321.31925314\n", - "ironloss= 1185.98763622 W\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.7, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=5000.0#kVA\n", - "v1=6.6#kV\n", - "v2=33.0#kV\n", - "nl=15.0#kW\n", - "fl=50.0#kW\n", - "drop=0.07\n", - "load=3200.0#kw\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i2=w*1000/(math.sqrt(3)*v2*1000)\n", - "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", - "z02=impedence_drop/i2\n", - "cu_loss=fl-nl\n", - "r02=cu_loss*1000/(3*i2**2)\n", - "x02=math.sqrt(z02**2-r02**2)\n", - "print \"full-load x02:\",x02\n", - "\n", - "#when load=3200#kW\n", - "i2=load/(math.sqrt(3)*v2*0.8)\n", - "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", - "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", - "vp=v1+regn/100*v1\n", - "print \"Primary voltage=\",vp*1000,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load x02: 15.1695784661\n", - "Primary voltage= 6851.39317975 V\n" - ] - } - ], - "prompt_number": 95 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.8, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=1\n", - "x=6\n", - "v=6600#V\n", - "v2=4800#V\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "regn=(r*math.cos(phi)+z*math.sin(phi))\n", - "secondary_v=v2+regn/100*v2\n", - "secondary_vp=secondary_v/math.sqrt(3)\n", - "K=secondary_vp/v\n", - "\n", - "#result\n", - "print \"Transformation Ratio=\",K" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transformation Ratio= 0.423426587968\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.9, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=2000#kVA\n", - "v1=6600#V\n", - "v2=400#V\n", - "pf=0.8\n", - "scv=400#V\n", - "sci=175#A\n", - "scw=17#kW\n", - "ocv=400#V\n", - "oci=150#A\n", - "ocw=15#kW\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i1=sci/math.sqrt(3)\n", - "z01=scv/i1\n", - "r01=scw*1000/(3*i1*i1)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "r=i1*r01*100/v1\n", - "x=i1*x01*100/v1\n", - "regn=(r*math.cos(phi)-x*math.sin(phi))\n", - "I1=w*1000/(math.sqrt(3)*v1)\n", - "total_loss=scw+ocw\n", - "fl_output=w*pf\n", - "efficiency=fl_output/(fl_output+total_loss)\n", - "\n", - "#result\n", - "print \"% resistance=\",r,\"%\"\n", - "print \"% reactance=\",x,\"%\"\n", - "print \"% efficiency=\",efficiency*100,\"%\"\n", - "print \"%regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% resistance= 0.849779616989 %\n", - "% reactance= 6.00073499035 %\n", - "% efficiency= 98.0392156863 %\n", - "%regulation= -2.92061730062 %\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.10, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=440.0#V\n", - "i=5.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "secondary_rating=v2/math.sqrt(3)\n", - "primary_i=i/math.sqrt(3)\n", - "voltsamps=v1*5/math.sqrt(3)\n", - "i2=voltsamps/secondary_rating\n", - "output=pf*voltsamps/1000\n", - "\n", - "#result\n", - "print \"Each coil current=\",i2,\"A\"\n", - "print \"Total output=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Each coil current= 125.0 A\n", - "Total output= 25.4034118443 kW\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.12, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kVA_per_transformer=load/2*1.15\n", - "delta_delta_rating=kVA_per_transformer*3\n", - "increase=(delta_delta_rating-load)*100/load\n", - "\n", - "#result\n", - "print \"increase=\",increase,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase= 72.5 %\n" - ] - } - ], - "prompt_number": 126 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.13, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=20#kVA\n", - "v1=2300#v\n", - "v2=230#V\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kva_load=load/math.sqrt(3)\n", - "percent_rated=kva_load*100/w\n", - "kvarating_vv=2*w*0.866\n", - "vv_delta=kvarating_vv*100/60\n", - "percentage_increase=kva_load/(load/3)\n", - "\n", - "#result\n", - "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", - "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", - "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", - "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", - "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load of each transformer= 23.0940107676 kVA\n", - "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", - "iii)total kVA rating of the V-V bank 34.64 kVA\n", - "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", - "v)percent increase in load= 177.646236674 %\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.14, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=150.0#kW\n", - "v1=1000.0#V\n", - "pf=0.866\n", - "v=2000.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(pf*math.sqrt(3)*1000)\n", - "ip=il/math.sqrt(3)\n", - "ratio=v1/v\n", - "ip=ip*ratio\n", - "I=il\n", - "Ip=I*ratio\n", - "pf=86.6/100*pf\n", - "\n", - "#result\n", - "print \"delta-delta:current in the windings=\",ip,\"A\"\n", - "print \"v-v:current in the windings=\",Ip,\"A\"\n", - "print \"Power factor\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "delta-delta:current in the windings= 28.8683602771 A\n", - "v-v:current in the windings= 50.0014667312 A\n", - "Power factor 0.749956\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.15, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=3000#kW\n", - "v=11#kV\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", - "transformer_pf=86.6/100*pf\n", - "additional_load=72.5/100*load\n", - "total_load=additional_load+load\n", - "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", - "\n", - "#result\n", - "print \"Il=\",il,\"A\"\n", - "print \"phase current=\",il/math.sqrt(3),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Il= 339.521323075 A\n", - "phase current= 196.022727273 A\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.16, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=400#kVA\n", - "pf=0.866\n", - "v=440#V\n", - "\n", - "#calculations\n", - "kVA_each=(load/2)/pf\n", - "phi=math.acos(pf)\n", - "p1=kVA_each*math.cos(math.radians(30-phi))\n", - "p2=kVA_each*math.cos(math.radians(30+phi))\n", - "p=p1+p2\n", - "\n", - "#result\n", - "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", - "print \"kW supplied by each transformer=\",p,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA supplied by each transformer= 230.946882217 kVA\n", - "kW supplied by each transformer= 399.995027715 kW\n" - ] - } - ], - "prompt_number": 136 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.17, Page Number:1228" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "load=33.0#kVA\n", - "v2=3300.0#V\n", - "\n", - "#calculations\n", - "vl=0.866*v2\n", - "ilp=load*1000/(math.sqrt(3)*v2)\n", - "ils=ilp/(440/v2)\n", - "main_kva=v2*ilp*0.001\n", - "teaser_kva=0.866*main_kva\n", - "\n", - "#result\n", - "print \"voltage rating of each coil=\",vl\n", - "print \"current rating of each coil=\",ils\n", - "print \"main kVA=\",main_kva,\"kVA\"\n", - "print \"teaser kVA=\",teaser_kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage rating of each coil= 2857.8\n", - "current rating of each coil= 43.3012701892\n", - "main kVA= 19.0525588833 kVA\n", - "teaser kVA= 16.4995159929 kVA\n" - ] - } - ], - "prompt_number": 139 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.18, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "v2=200.0#V\n", - "output=150.0#kVA\n", - "\n", - "#calculations\n", - "ratio=v2/v\n", - "i2=output*1000/(2*v2)\n", - "i1=i2*ratio\n", - "primary_volts=(math.sqrt(3)*v)/2\n", - "ratio=v2/primary_volts\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"turns ratio\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 170.454545455 A\n", - "turns ratio 0.524863881081\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.19, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=100.0#V\n", - "v2=3300.0#V\n", - "p=400.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2=p*1000/(pf*v)\n", - "ip=1.15*K*i2\n", - "I2m=K*i2\n", - "i2=ip/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#reslult\n", - "print \"Current=\",i1m,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 174.77684841 A\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.20, Page Number:1232" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w1=300#kW\n", - "w2=450#kW\n", - "v1=100#V\n", - "pf=0.707\n", - "v2=3300#V\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2t=(w2*1000)/(100*pf)\n", - "i1t=1.15*K*i2t\n", - "I2m=(K*w1*1000)/(100*pf)\n", - "i2=i1t/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#result\n", - "print \"Current=\",i1m,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 169.804606659 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.21, Page Number:1233" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=80.0#V\n", - "v2=11000.0#V\n", - "w1=500.0#kW\n", - "w2=800.0#kW\n", - "pf=0.5\n", - "\n", - "#calculations\n", - "K=v1/v2\n", - "#unity pf\n", - "i2t=w1*1000/v1\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/v1\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "\n", - "print \"unity pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", - "#0.5 pf\n", - "i2t=w1*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/(v1*pf)\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "print \"0.5 pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "unity pf\n", - "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", - "0.5 pf\n", - "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" - ] - } - ], - "prompt_number": 171 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.22, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=50#V\n", - "v2=4.6*1000#V\n", - "load=350#kW\n", - "w=200#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "K=v1/v2\n", - "i2t=w*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=load*1000/(v1*pf)\n", - "Ki2m=K*i2m\n", - "i1t_half=i1t/2\n", - "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", - "\n", - "#result\n", - "print \"current in line A=\",i1t\n", - "print \"current in line B=\",i1m\n", - "print \"current in line C=\",i1m" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in line A= 62.5\n", - "current in line B= 100.11107076\n", - "current in line C= 100.11107076\n" - ] - } - ], - "prompt_number": 173 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.23, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=231#V\n", - "v2=6600#v\n", - "volt_induced=8#v\n", - "\n", - "#calculations\n", - "hv=v2/volt_induced\n", - "vl=v*math.sqrt(3)\n", - "n_lv1=vl/volt_induced\n", - "n_lv2=math.sqrt(3)*n_lv1/2\n", - "n=2*n_lv2/3\n", - "\n", - "#result\n", - "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "neutral point is located on the 29.0 th turn from A downwards\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.24, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6000.0#V\n", - "v2=440.0#V\n", - "f=50.0#Hz\n", - "area=300.0#cm2\n", - "flux=1.2#Wb/m2\n", - "\n", - "#calculations\n", - "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", - "K=v2/v\n", - "n2=n1*K\n", - "n_lv=math.sqrt(3)*n2/2\n", - "turns=n_lv*2/3\n", - "\n", - "#result\n", - "print \"NUmber of turns in AN=\",math.floor(turns)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " NUmber of turns in AN= 35.0\n" - ] - } - ], - "prompt_number": 183 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.25, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "load=30.0#kVA\n", - "v2=250.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(math.sqrt(3)*v2)\n", - "vl=0.866*v2\n", - "kva=il*vl*(0.001)\n", - "\n", - "#result\n", - "print \"Voltage=\",vl,\"V\"\n", - "print \"kVA rating\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage= 216.5 V\n", - "kVA rating 14.9995599935 kVA\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.26, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#vaiable declaration\n", - "load=500#kVA\n", - "pf=0.8\n", - "za=complex(2,6)\n", - "zb=complex(2,5)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "s=load*complex(math.cos(phi),math.sin(phi))\n", - "z1=za/zb\n", - "z2=zb/za\n", - "sa=s/(1+z1)\n", - "sb=s/(1+z2)\n", - "pfa=cmath.phase(sa)\n", - "pfb=cmath.phase(sb)\n", - "#result\n", - "print \"sa=\",abs(sa)\n", - "print \"sb=\",abs(sb)\n", - "print \"cos phi_a=\",pfa\n", - "print \"cos phi_b=\",pfb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 230.042839552\n", - "sb= 270.171613479\n", - "cos phi_a= 0.611765735265\n", - "cos phi_b= 0.670521557981\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.27, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "w=2000#kVA\n", - "w1=4000#kVA\n", - "w2=5000#kVA\n", - "pf=0.8\n", - "za=complex(2,8)\n", - "zb=complex(1.6,3)\n", - "\n", - "#calculations\n", - "za_per=(w1/w)*za\n", - "zb_per=zb\n", - "z=za_per+zb_per\n", - "s=complex(w1,w-w2)\n", - "sb=s*(za/z)\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (2284.2287695-1821.49046794j)\n", - "sb= (1715.7712305-1178.50953206j)\n" - ] - } - ], - "prompt_number": 211 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.28, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=1400#kVA\n", - "pf=0.866\n", - "w1=1000#kVA\n", - "w2=500#kVA\n", - "v1=6600\n", - "v2=400\n", - "za=complex(0.001,0.003)\n", - "zb=complex(0.0028,0.005)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (929.911014012-588.664867724j)\n", - "sb= (282.488985988-111.396729565j)\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.29, Page Number:1238" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=750#kVA\n", - "pf=0.707\n", - "w1=500#kVA\n", - "w2=250#kVA\n", - "v1=3300\n", - "v2=400\n", - "za=complex(2,3)\n", - "zb=complex(1.5,4)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "per_r=za.real*(sa.real)/w1\n", - "per_x=(za.imag)*(sa.imag)/w1\n", - "total_per=per_r+per_x\n", - "vl=v2-(total_per*4)\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (399.511103547-348.770523615j)\n", - "sb= (130.738896453-181.639636072j)\n" - ] - } - ], - "prompt_number": 242 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.30, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=100/5\n", - "i=5#A\n", - "i1=3.5#A\n", - "\n", - "#calculations\n", - "il=i1*ratio\n", - "\n", - "#result\n", - "print \"Line current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 70.0 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.31, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i1=2000#A\n", - "i2=2500#A\n", - "i=5#A\n", - "\n", - "#calculations\n", - "ratio1=i1/i\n", - "ratio2=i2/i\n", - "\n", - "#result\n", - "print \"ratio in first case=\",ratio1\n", - "print \"ratio in second case=\",ratio2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio in first case= 400\n", - "ratio in second case= 500\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb deleted file mode 100644 index 495cee05..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb +++ /dev/null @@ -1,1433 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 33: Transformer:Three Phase" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.1, Page Number:1216" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=3\n", - "f=50.0#Hz\n", - "vd=22000.0#V\n", - "vs=400.0#V\n", - "phi=0.8\n", - "i=5.0#A\n", - "\n", - "#calcuations\n", - "v_phase_secondary=vs/math.sqrt(3)\n", - "K=(vs/vd)/math.sqrt(3)\n", - "i_primary=i/math.sqrt(3)\n", - "i_secondary=i_primary/K\n", - "il=i_secondary\n", - "output=math.sqrt(3)*il*vs*phi\n", - "\n", - "#result\n", - "print \"Output=\",output/10000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Output= 15.2420471066 kW\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.2, Page Number:1217" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=500.0#kVA\n", - "f=50.0#Hz\n", - "vls=11.0#kV\n", - "vld=33.0#kV\n", - "rh=35.0#ohm\n", - "rl=0.876#ohm\n", - "iron_loss=3050.0#W\n", - "phi1=1.0\n", - "phi2=0.8\n", - "\n", - "#calculations\n", - "\n", - "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", - "r02=rl+K**2*rh\n", - "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", - "#full load\n", - "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", - "fl_totalloss=fl_culoss+iron_loss\n", - "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", - "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", - "#half load\n", - "cu_loss=.5**2*fl_culoss\n", - "totalloss=cu_loss+iron_loss\n", - "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", - "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", - "#result\n", - "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", - "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", - "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency at p.f. 1= 98.5147491838 %\n", - "full load efficiency at p.f. 0.8= 98.1503046336 %\n", - "half load efficiency at p.f. 1= 98.3585709725 %\n", - "half load efficiency at p.f. 0.8= 98.0 %\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.3, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.02\n", - "va=2000\n", - "reactance=0.1\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculation\n", - "cu_loss=r*100*va/100\n", - "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", - "\n", - "#result\n", - "print \"Cu loss=\",cu_loss,\"kW\"\n", - "print \"Regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Cu loss= 40.0 kW\n", - "Regulation= 7.6 %\n" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.4, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w=120.0#kVA\n", - "v1=6000.0\n", - "v2=400.0\n", - "f=50.0#Hz\n", - "iron_loss=1600.0#W\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "cu_loss_fl=iron_loss*((4/3)**2)\n", - "fl_output=w*pf*1000\n", - "total_loss=iron_loss+cu_loss_fl\n", - "efficiency1=fl_output/(fl_output+total_loss)\n", - "cu_loss_hl=0.5**2*cu_loss_fl\n", - "total_loss2=cu_loss_hl+iron_loss\n", - "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", - "total_loss3=2*iron_loss\n", - "output=(3.0/4)*w*1000\n", - "inpt=output+total_loss3\n", - "efficiency=output/inpt\n", - "\n", - "\n", - "#result\n", - "print \"full load efficiency=\",efficiency1*100,\"%\"\n", - "print \"half load efficiency=\",efficiency2*100,\"%\"\n", - "print \"3/4 load efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load efficiency= 96.7741935484 %\n", - "half load efficiency= 96.7741935484 %\n", - "3/4 load efficiency= 96.5665236052 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.5, Page Number:1218" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "rp=8.0#ohm\n", - "rs=0.08#ohm\n", - "z=0.07\n", - "pf=0.75\n", - "v1=33.0\n", - "v2=6.6\n", - "w=2*10.0**6\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "fl_i=w/(math.sqrt(3)*v2*10**3)\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rs+(rp*(K*K))\n", - "z_drop=z*v2*1000/math.sqrt(3)\n", - "z02=z_drop/fl_i\n", - "x02=math.sqrt((z02*z02)-(r02*r02))\n", - "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", - "secondary_v=v2*1000/math.sqrt(3)\n", - "V2=secondary_v-drop\n", - "line_v=V2*math.sqrt(3)\n", - "regn=drop*100/secondary_v\n", - "\n", - "#result\n", - "print \"secondary voltage\",line_v,\"V\"\n", - "print \"regulation=\",regn,\"%\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary voltage 6254.29059005 V\n", - "regulation= 5.23802136291 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.6, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=100.0#kWA\n", - "f=50.0#Hz\n", - "v1=3300.0#V\n", - "v2=400.0#V\n", - "rh=3.5#ohm\n", - "rl=0.02#ohm\n", - "pf=0.8\n", - "efficiency=0.958\n", - "\n", - "#calculations\n", - "output=0.8*100\n", - "inpt=output/efficiency\n", - "total_loss=(inpt-output)*1000\n", - "K=v2/(math.sqrt(3)*v1)\n", - "r02=rl+K**2*rh\n", - "i2=((w*1000)/math.sqrt(3))/v2\n", - "cu_loss=3*i2**2*r02\n", - "iron_loss=total_loss-cu_loss\n", - "#result\n", - "print \"ironloss=\",iron_loss,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.0371411080502\n", - "2321.31925314\n", - "ironloss= 1185.98763622 W\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.7, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=5000.0#kVA\n", - "v1=6.6#kV\n", - "v2=33.0#kV\n", - "nl=15.0#kW\n", - "fl=50.0#kW\n", - "drop=0.07\n", - "load=3200.0#kw\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i2=w*1000/(math.sqrt(3)*v2*1000)\n", - "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", - "z02=impedence_drop/i2\n", - "cu_loss=fl-nl\n", - "r02=cu_loss*1000/(3*i2**2)\n", - "x02=math.sqrt(z02**2-r02**2)\n", - "print \"full-load x02:\",x02\n", - "\n", - "#when load=3200#kW\n", - "i2=load/(math.sqrt(3)*v2*0.8)\n", - "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", - "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", - "vp=v1+regn/100*v1\n", - "print \"Primary voltage=\",vp*1000,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load x02: 15.1695784661\n", - "Primary voltage= 6851.39317975 V\n" - ] - } - ], - "prompt_number": 95 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.8, Page Number:1219" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=1\n", - "x=6\n", - "v=6600#V\n", - "v2=4800#V\n", - "pf=0.8\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "regn=(r*math.cos(phi)+z*math.sin(phi))\n", - "secondary_v=v2+regn/100*v2\n", - "secondary_vp=secondary_v/math.sqrt(3)\n", - "K=secondary_vp/v\n", - "\n", - "#result\n", - "print \"Transformation Ratio=\",K" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Transformation Ratio= 0.423426587968\n" - ] - } - ], - "prompt_number": 96 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.9, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=2000#kVA\n", - "v1=6600#V\n", - "v2=400#V\n", - "pf=0.8\n", - "scv=400#V\n", - "sci=175#A\n", - "scw=17#kW\n", - "ocv=400#V\n", - "oci=150#A\n", - "ocw=15#kW\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "i1=sci/math.sqrt(3)\n", - "z01=scv/i1\n", - "r01=scw*1000/(3*i1*i1)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "r=i1*r01*100/v1\n", - "x=i1*x01*100/v1\n", - "regn=(r*math.cos(phi)-x*math.sin(phi))\n", - "I1=w*1000/(math.sqrt(3)*v1)\n", - "total_loss=scw+ocw\n", - "fl_output=w*pf\n", - "efficiency=fl_output/(fl_output+total_loss)\n", - "\n", - "#result\n", - "print \"% resistance=\",r,\"%\"\n", - "print \"% reactance=\",x,\"%\"\n", - "print \"% efficiency=\",efficiency*100,\"%\"\n", - "print \"%regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "% resistance= 0.849779616989 %\n", - "% reactance= 6.00073499035 %\n", - "% efficiency= 98.0392156863 %\n", - "%regulation= -2.92061730062 %\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.10, Page Number:1220" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=11000.0#V\n", - "v2=440.0#V\n", - "i=5.0#A\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "secondary_rating=v2/math.sqrt(3)\n", - "primary_i=i/math.sqrt(3)\n", - "voltsamps=v1*5/math.sqrt(3)\n", - "i2=voltsamps/secondary_rating\n", - "output=pf*voltsamps/1000\n", - "\n", - "#result\n", - "print \"Each coil current=\",i2,\"A\"\n", - "print \"Total output=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Each coil current= 125.0 A\n", - "Total output= 25.4034118443 kW\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.12, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kVA_per_transformer=load/2*1.15\n", - "delta_delta_rating=kVA_per_transformer*3\n", - "increase=(delta_delta_rating-load)*100/load\n", - "\n", - "#result\n", - "print \"increase=\",increase,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase= 72.5 %\n" - ] - } - ], - "prompt_number": 126 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.13, Page Number:1224" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=20#kVA\n", - "v1=2300#v\n", - "v2=230#V\n", - "load=40#kVA\n", - "\n", - "#calculations\n", - "kva_load=load/math.sqrt(3)\n", - "percent_rated=kva_load*100/w\n", - "kvarating_vv=2*w*0.866\n", - "vv_delta=kvarating_vv*100/60\n", - "percentage_increase=kva_load/(load/3)\n", - "\n", - "#result\n", - "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", - "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", - "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", - "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", - "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)kVA load of each transformer= 23.0940107676 kVA\n", - "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", - "iii)total kVA rating of the V-V bank 34.64 kVA\n", - "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", - "v)percent increase in load= 177.646236674 %\n" - ] - } - ], - "prompt_number": 130 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.14, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=150.0#kW\n", - "v1=1000.0#V\n", - "pf=0.866\n", - "v=2000.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(pf*math.sqrt(3)*1000)\n", - "ip=il/math.sqrt(3)\n", - "ratio=v1/v\n", - "ip=ip*ratio\n", - "I=il\n", - "Ip=I*ratio\n", - "pf=86.6/100*pf\n", - "\n", - "#result\n", - "print \"delta-delta:current in the windings=\",ip,\"A\"\n", - "print \"v-v:current in the windings=\",Ip,\"A\"\n", - "print \"Power factor\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "delta-delta:current in the windings= 28.8683602771 A\n", - "v-v:current in the windings= 50.0014667312 A\n", - "Power factor 0.749956\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.15, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=3000#kW\n", - "v=11#kV\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", - "transformer_pf=86.6/100*pf\n", - "additional_load=72.5/100*load\n", - "total_load=additional_load+load\n", - "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", - "\n", - "#result\n", - "print \"Il=\",il,\"A\"\n", - "print \"phase current=\",il/math.sqrt(3),\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Il= 339.521323075 A\n", - "phase current= 196.022727273 A\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.16, Page Number:1225" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=400#kVA\n", - "pf=0.866\n", - "v=440#V\n", - "\n", - "#calculations\n", - "kVA_each=(load/2)/pf\n", - "phi=math.acos(pf)\n", - "p1=kVA_each*math.cos(math.radians(30-phi))\n", - "p2=kVA_each*math.cos(math.radians(30+phi))\n", - "p=p1+p2\n", - "\n", - "#result\n", - "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", - "print \"kW supplied by each transformer=\",p,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kVA supplied by each transformer= 230.946882217 kVA\n", - "kW supplied by each transformer= 399.995027715 kW\n" - ] - } - ], - "prompt_number": 136 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.17, Page Number:1228" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "load=33.0#kVA\n", - "v2=3300.0#V\n", - "\n", - "#calculations\n", - "vl=0.866*v2\n", - "ilp=load*1000/(math.sqrt(3)*v2)\n", - "ils=ilp/(440/v2)\n", - "main_kva=v2*ilp*0.001\n", - "teaser_kva=0.866*main_kva\n", - "\n", - "#result\n", - "print \"voltage rating of each coil=\",vl\n", - "print \"current rating of each coil=\",ils\n", - "print \"main kVA=\",main_kva,\"kVA\"\n", - "print \"teaser kVA=\",teaser_kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage rating of each coil= 2857.8\n", - "current rating of each coil= 43.3012701892\n", - "main kVA= 19.0525588833 kVA\n", - "teaser kVA= 16.4995159929 kVA\n" - ] - } - ], - "prompt_number": 139 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.18, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "v2=200.0#V\n", - "output=150.0#kVA\n", - "\n", - "#calculations\n", - "ratio=v2/v\n", - "i2=output*1000/(2*v2)\n", - "i1=i2*ratio\n", - "primary_volts=(math.sqrt(3)*v)/2\n", - "ratio=v2/primary_volts\n", - "\n", - "#result\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"turns ratio\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "primary current= 170.454545455 A\n", - "turns ratio 0.524863881081\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.19, Page Number:1231" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=100.0#V\n", - "v2=3300.0#V\n", - "p=400.0#kW\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2=p*1000/(pf*v)\n", - "ip=1.15*K*i2\n", - "I2m=K*i2\n", - "i2=ip/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#reslult\n", - "print \"Current=\",i1m,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 174.77684841 A\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.20, Page Number:1232" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "w1=300#kW\n", - "w2=450#kW\n", - "v1=100#V\n", - "pf=0.707\n", - "v2=3300#V\n", - "\n", - "#calculations\n", - "K=v/v2\n", - "i2t=(w2*1000)/(100*pf)\n", - "i1t=1.15*K*i2t\n", - "I2m=(K*w1*1000)/(100*pf)\n", - "i2=i1t/2\n", - "i1m=math.sqrt(I2m**2+i2**2)\n", - "\n", - "#result\n", - "print \"Current=\",i1m,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Current= 169.804606659 A\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.21, Page Number:1233" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=80.0#V\n", - "v2=11000.0#V\n", - "w1=500.0#kW\n", - "w2=800.0#kW\n", - "pf=0.5\n", - "\n", - "#calculations\n", - "K=v1/v2\n", - "#unity pf\n", - "i2t=w1*1000/v1\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/v1\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "\n", - "print \"unity pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", - "#0.5 pf\n", - "i2t=w1*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=K*w2*1000/(v1*pf)\n", - "i1t_half=i1t/2\n", - "ip=math.sqrt(i2m**2+i1t_half**2)\n", - "print \"0.5 pf\"\n", - "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "unity pf\n", - "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", - "0.5 pf\n", - "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" - ] - } - ], - "prompt_number": 171 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.22, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=50#V\n", - "v2=4.6*1000#V\n", - "load=350#kW\n", - "w=200#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "K=v1/v2\n", - "i2t=w*1000/(v1*pf)\n", - "i1t=1.15*K*i2t\n", - "i2m=load*1000/(v1*pf)\n", - "Ki2m=K*i2m\n", - "i1t_half=i1t/2\n", - "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", - "\n", - "#result\n", - "print \"current in line A=\",i1t\n", - "print \"current in line B=\",i1m\n", - "print \"current in line C=\",i1m" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current in line A= 62.5\n", - "current in line B= 100.11107076\n", - "current in line C= 100.11107076\n" - ] - } - ], - "prompt_number": 173 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.23, Page Number:1234" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=231#V\n", - "v2=6600#v\n", - "volt_induced=8#v\n", - "\n", - "#calculations\n", - "hv=v2/volt_induced\n", - "vl=v*math.sqrt(3)\n", - "n_lv1=vl/volt_induced\n", - "n_lv2=math.sqrt(3)*n_lv1/2\n", - "n=2*n_lv2/3\n", - "\n", - "#result\n", - "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "neutral point is located on the 29.0 th turn from A downwards\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.24, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6000.0#V\n", - "v2=440.0#V\n", - "f=50.0#Hz\n", - "area=300.0#cm2\n", - "flux=1.2#Wb/m2\n", - "\n", - "#calculations\n", - "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", - "K=v2/v\n", - "n2=n1*K\n", - "n_lv=math.sqrt(3)*n2/2\n", - "turns=n_lv*2/3\n", - "\n", - "#result\n", - "print \"NUmber of turns in AN=\",math.floor(turns)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " NUmber of turns in AN= 35.0\n" - ] - } - ], - "prompt_number": 183 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.25, Page Number:1235" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=250.0#V\n", - "load=30.0#kVA\n", - "v2=250.0#V\n", - "\n", - "#calculations\n", - "il=load*1000/(math.sqrt(3)*v2)\n", - "vl=0.866*v2\n", - "kva=il*vl*(0.001)\n", - "\n", - "#result\n", - "print \"Voltage=\",vl,\"V\"\n", - "print \"kVA rating\",kva,\"kVA\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Voltage= 216.5 V\n", - "kVA rating 14.9995599935 kVA\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.26, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#vaiable declaration\n", - "load=500#kVA\n", - "pf=0.8\n", - "za=complex(2,6)\n", - "zb=complex(2,5)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "s=load*complex(math.cos(phi),math.sin(phi))\n", - "z1=za/zb\n", - "z2=zb/za\n", - "sa=s/(1+z1)\n", - "sb=s/(1+z2)\n", - "pfa=cmath.phase(sa)\n", - "pfb=cmath.phase(sb)\n", - "#result\n", - "print \"sa=\",abs(sa)\n", - "print \"sb=\",abs(sb)\n", - "print \"cos phi_a=\",pfa\n", - "print \"cos phi_b=\",pfb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 230.042839552\n", - "sb= 270.171613479\n", - "cos phi_a= 0.611765735265\n", - "cos phi_b= 0.670521557981\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.27, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "w=2000#kVA\n", - "w1=4000#kVA\n", - "w2=5000#kVA\n", - "pf=0.8\n", - "za=complex(2,8)\n", - "zb=complex(1.6,3)\n", - "\n", - "#calculations\n", - "za_per=(w1/w)*za\n", - "zb_per=zb\n", - "z=za_per+zb_per\n", - "s=complex(w1,w-w2)\n", - "sb=s*(za/z)\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (2284.2287695-1821.49046794j)\n", - "sb= (1715.7712305-1178.50953206j)\n" - ] - } - ], - "prompt_number": 211 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.28, Page Number:1237" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=1400#kVA\n", - "pf=0.866\n", - "w1=1000#kVA\n", - "w2=500#kVA\n", - "v1=6600\n", - "v2=400\n", - "za=complex(0.001,0.003)\n", - "zb=complex(0.0028,0.005)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (929.911014012-588.664867724j)\n", - "sb= (282.488985988-111.396729565j)\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.29, Page Number:1238" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "load=750#kVA\n", - "pf=0.707\n", - "w1=500#kVA\n", - "w2=250#kVA\n", - "v1=3300\n", - "v2=400\n", - "za=complex(2,3)\n", - "zb=complex(1.5,4)\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "zb=(w1/w2)*zb\n", - "z=za/(za+zb)\n", - "x=math.cos(-phi)\n", - "y=math.sin(-phi)*1j\n", - "s=load*(x+y)\n", - "sb=s*z\n", - "sa=s-sb\n", - "per_r=za.real*(sa.real)/w1\n", - "per_x=(za.imag)*(sa.imag)/w1\n", - "total_per=per_r+per_x\n", - "vl=v2-(total_per*4)\n", - "#result\n", - "print \"sa=\",sa\n", - "print \"sb=\",sb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= (399.511103547-348.770523615j)\n", - "sb= (130.738896453-181.639636072j)\n" - ] - } - ], - "prompt_number": 242 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.30, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratio=100/5\n", - "i=5#A\n", - "i1=3.5#A\n", - "\n", - "#calculations\n", - "il=i1*ratio\n", - "\n", - "#result\n", - "print \"Line current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 70.0 A\n" - ] - } - ], - "prompt_number": 214 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 33.31, Page Number:1240" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i1=2000#A\n", - "i2=2500#A\n", - "i=5#A\n", - "\n", - "#calculations\n", - "ratio1=i1/i\n", - "ratio2=i2/i\n", - "\n", - "#result\n", - "print \"ratio in first case=\",ratio1\n", - "print \"ratio in second case=\",ratio2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio in first case= 400\n", - "ratio in second case= 500\n" - ] - } - ], - "prompt_number": 216 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34.ipynb deleted file mode 100644 index d05f1eeb..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34.ipynb +++ /dev/null @@ -1,3065 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 34:Induction Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.1, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=290.0#rpm\n", - "f=50.0#Hz\n", - "Ns=300.0#rpm(considered)\n", - "#calculation\n", - "P=120*f/Ns\n", - "s=(Ns-n)/Ns\n", - "\n", - "#result\n", - "print \"no. of poles=\",P\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no. of poles= 20.0\n", - "slip= 3.33333333333 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.2, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "slot=3\n", - "f=50#Hz\n", - "\n", - "#calculation\n", - "P=2*n\n", - "slots_total=slot*P*n\n", - "Ns=120*f/P\n", - "\n", - "#result\n", - "print \"No. of stator poles=\",P\n", - "print \"Total number of slots=\",slots_total\n", - "print \"Speed=\",Ns,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " No. of stator poles= 6\n", - "Total number of slots= 54\n", - "Speed= 1000 rpm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.3, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=3\n", - "f=50#Hz\n", - "slip1=0.04\n", - "slip2=0.03\n", - "\n", - "#calculation\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip1)\n", - "f1=slip2*f*60\n", - "#at standstill s=1\n", - "f2=1*f\n", - "\n", - "#calculation\n", - "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", - "print \"speed of the rotor when the slip is 0.04=\",N\n", - "print \"frequency of rotor current=\",f1,\"rpm\"\n", - "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which magnetic field of the stator is rotating= 1500 rpm\n", - "speed of the rotor when the slip is 0.04= 1440.0\n", - "frequency of rotor current= 90.0 rpm\n", - "frequency of the rotor current at standstill= 50 Hz\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.4, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3.0\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slip=0.04\n", - "n=600.0#rpm\n", - "\n", - "#calculations\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip)\n", - "s=(Ns-n)/Ns\n", - "f1=s*f\n", - "\n", - "#result\n", - "print \"the synchronous speed=\",Ns,\"rpm\"\n", - "print \"the rotor speed=\",N,\"rpm\"\n", - "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the synchronous speed= 1500.0 rpm\n", - "the rotor speed= 1440.0 rpm\n", - "the rotor frequency when n=600 rpm= 30.0 Hz\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.5, Page Number:1256" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "n=3\n", - "N=500#rpm\n", - "p2=8\n", - "slip=0.03\n", - "\n", - "#calculation\n", - "f=p*N/120\n", - "Ns=120*f/p2\n", - "N=Ns-slip*Ns\n", - "\n", - "#result\n", - "print \"full load speed of the motor=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load speed of the motor= 727.5 rpm\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.6, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e=80#V\n", - "r=1#ohm\n", - "x=4#ohm\n", - "rheo=3#ohm\n", - "\n", - "#calculation\n", - "E=e/(3)**0.5\n", - "z=(r**2+x**2)**0.5\n", - "i=E/z\n", - "pf=r/z\n", - "R=rheo+r\n", - "z2=(R**2+x**2)**0.5\n", - "i2=E/z2\n", - "\n", - "pf2=R/z2\n", - "\n", - "#result\n", - "print \"slip rings are short circuited:\"\n", - "print \"current/phase\",i,\"A\"\n", - "print \"pf=\",pf\n", - "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", - "print \"current/phase\",i2,\"A\"\n", - "print \"pf=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip rings are short circuited:\n", - "current/phase 11.2022406722 A\n", - "pf= 0.242535625036\n", - "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", - "pf= 0.707106781187\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.7, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "v=400#V\n", - "ratio=6.5\n", - "r=0.05#ohm\n", - "x=0.25#ohm\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=v*k/(3**0.5)\n", - "R=x-r\n", - "r2=x\n", - "z=(x**2+r2**2)**0.5\n", - "i2=e2/z\n", - "\n", - "#result\n", - "print \"external resistance=\",R,\"ohm\"\n", - "print \"starting current=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.2 ohm\n", - "starting current= 100.491886883 A\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.8, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=1100#V\n", - "f=50#Hz\n", - "ratio=3.8\n", - "r=0.012#ohm\n", - "x=0.25#ohm\n", - "s=0.04\n", - "#calculation\n", - "e=v/ratio\n", - "z=(r**2+x**2)**0.5\n", - "i=e/z\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "er=s*e\n", - "i2=er/zr\n", - "pf2=r/zr\n", - "i2=100*ratio\n", - "z2=e/i2\n", - "r2=(z2**2-x**2)**0.5\n", - "R=r2-r\n", - "\n", - "#result\n", - "print \"current with slip rings shorted=\",i,\"A\"\n", - "print \"pf with slip rings shorted=\",pf\n", - "print \"current with slip=4% and slip rings shorted=\",i2\n", - "print \"pf withslip=4% and slip rings shorted=\",pf2\n", - "print \"external resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current with slip rings shorted= 1156.56314266 A\n", - "pf with slip rings shorted= 0.0479447993684\n", - "current with slip=4% and slip rings shorted= 380.0\n", - "pf withslip=4% and slip rings shorted= 0.768221279597\n", - "external resistance= 0.70758173952 ohm\n" - ] - } - ], - "prompt_number": 41 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.9, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=15#kW\n", - "v=3000#V\n", - "f=50#Hz\n", - "p=6\n", - "ratio=3.6\n", - "r=0.13#ohm\n", - "l=3.61*0.001#H\n", - "\n", - "#calculation\n", - "v=v/3**0.5\n", - "x2=2*3.14*l*f\n", - "k=1/ratio\n", - "r2_=0.1/k**2\n", - "x2_=ratio**2*x2\n", - "is1=v/((r**2+x2_**2)**0.5)\n", - "ns=120*f/p\n", - "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", - "\n", - "#result\n", - "print \"starting current=\",is1,\"A\"\n", - "print \"ts=\",ts,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 117.896733436 A\n", - "ts= 512.375725888 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.10, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zs=complex(0.4,4)\n", - "zr=complex(6,2)\n", - "v=80#V\n", - "s=0.03\n", - "\n", - "#calculation\n", - "e2=v/3**0.5\n", - "i=e2/abs(zr+zs)\n", - "er=s*e2\n", - "xr=s*zs.imag\n", - "ir=er/abs(complex(zs.real,xr))\n", - "\n", - "#result\n", - "print \"rotor current at standstill=\",i,\"A\"\n", - "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor current at standstill= 5.26498126493 A\n", - "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.11, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "e=120#V\n", - "r2=0.3#ohm\n", - "x2=1.5#ohm\n", - "s=0.04\n", - "\n", - "#calculations\n", - "e2=e/3**0.5\n", - "er=s*e2\n", - "xr=s*x2\n", - "zr=(r2**2+xr**2)**0.5\n", - "i=er/zr\n", - "s=r2/x2\n", - "xr=s*x2\n", - "zr=(xr**2+r2**2)**0.5\n", - "er=s*e2\n", - "i2=er/zr\n", - "\n", - "#result\n", - "print \"rotor when running short-circuited=\",i,\"A\"\n", - "print \"slip=\",s\n", - "print \"current when torque is maximum=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor when running short-circuited= 9.05821627316 A\n", - "slip= 0.2\n", - "current when torque is maximum= 32.6598632371 A\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.12, Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tb=150.0#kg-m\n", - "n=660.0#rpm\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "t=tb*(2/((sb/s)+s/sb))\n", - "\n", - "#result\n", - "print \"torque=\",t,\"kg-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 90.0 kg-m\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(a), Page Number:1266" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variablde declaration\n", - "n=3\n", - "vd=0.90\n", - "\n", - "#calculation\n", - "ratio_s=(1/vd)**2\n", - "ratio_i=ratio_s*vd\n", - "cu_loss_increase=ratio_i**2\n", - "\n", - "#result\n", - "print \"increase in motor copper losses=\",cu_loss_increase" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in motor copper losses= 1.23456790123\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(b), Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "p1=15.0#kW\n", - "n=980.0#rpm\n", - "efficiency=0.93\n", - "vd=0.10\n", - "fd=0.05\n", - "\n", - "#calculation\n", - "v2=(1-vd)*v\n", - "f2=(1-fd)*f\n", - "n1=120*f/p\n", - "n2=120*f2/p\n", - "s1=(n1-n)/n1\n", - "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", - "n2=n2*(1-ratio_f)\n", - "p2=p1*n2/n1\n", - "#result\n", - "print \"the new operating speed=\",n2,\"rpm\"\n", - "print \"the new output power=\",p2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the new operating speed= 935.3795 rpm\n", - "the new output power= 14.0306925 kW\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(a), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=3\n", - "v1=400#V\n", - "v2=200#V\n", - "r=0.06#ohm\n", - "x=0.3#ohm\n", - "a=1\n", - "#calculations\n", - "r=x-r\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 0.24 ohm\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(b), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "f=50#Hz\n", - "p=8\n", - "s=0.02\n", - "r=0.001#ohm\n", - "x=0.005#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "a=r/x\n", - "n2=(1-s)*ns\n", - "ratio=2*s**2*a/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(c), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "v=600#V\n", - "f=50#Hz\n", - "r=0.03#ohm\n", - "x=0.5#ohm\n", - "n=495#rpm\n", - "s=0.01\n", - "#calculation\n", - "Ns=120*f/p\n", - "a=r/x\n", - "n=Ns*(1-a)\n", - "ratio=2*a*s/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"speed of max torque=\",n,\"rpm\"\n", - "print \"ratio of torques=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of max torque= 470.0 rpm\n", - "ratio of torques= 0.324324324324\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.15, Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=746.0#kW\n", - "f=50.0#Hz\n", - "p=16\n", - "zr=complex(0.02,0.15)\n", - "n=360.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "a=zr.real/zr.imag\n", - "ratio=2*a*s/(a**2+s**2)\n", - "N=ns*(1-a)\n", - "R=zr.imag-zr.real\n", - "\n", - "#result\n", - "print \"ratio of torques=\",ratio\n", - "print \"speed at maximum torque=\",N,\"rpm\"\n", - "print \"rotor resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 0.550458715596\n", - "speed at maximum torque= 325.0 rpm\n", - "rotor resistance= 0.13 ohm\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.16, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "p=4\n", - "f=50.0#Hz\n", - "r=0.025#ohm\n", - "x=0.12#ohm\n", - "ratio=3.0/4.0\n", - "\n", - "#calculations\n", - "s=r/x\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "a=solve(ratio-(2*a/(1+a**2)),a)\n", - "r=a[0]*x-r\n", - "\n", - "#result\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at maximum torque= 1187.5 rpm\n", - "additional resistance= 0.0291699475574164 ohm\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.17, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "s=0.04\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "p=8\n", - "#calculation\n", - "a=r/x\n", - "t_ratio=2*a*s/(a**2+s**2)\n", - "ns=120*f/p\n", - "n=(1-a)*ns\n", - "\n", - "#result\n", - "print \"ratio of torques=\",1/t_ratio\n", - "print \"speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 1.45\n", - "speed= 675.0 rpm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.18, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "a2=Symbol('a2')\n", - "p=3\n", - "t_ratio=2.5\n", - "t_ratio2=1.5\n", - "s=0.03\n", - "\n", - "#calculation\n", - "t_ratio3=t_ratio2/t_ratio\n", - "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", - "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", - "r_red=(a[0]-a2[1])/a[0]\n", - "#result\n", - "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.19, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50#Hz\n", - "r=0.08#ohm\n", - "n=650.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "a=1\n", - "r=a*x2-r\n", - "#result\n", - "print \"extra resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "extra resistance= 0.52 ohm\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.20, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "R=Symbol('R')\n", - "p=4\n", - "f=50.0#Hz\n", - "t=162.8#N-m\n", - "n=1365.0#rpm\n", - "r=0.2#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",round(R[0],1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 0.4 ohm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.21, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "load=7.46#kW\n", - "t_ratios=1.60\n", - "t_ratiom=2.0\n", - "\n", - "#calcualtion\n", - "t_ratio=t_ratios/t_ratiom\n", - "#0.8a2-2*a+0.8 a=0.04\n", - "#0.5=2*a*sf/a2+sf2 sf=0.01\n", - "a=0.04\n", - "sf=0.01\n", - "ns=120*f/p\n", - "n=ns-sf*ns\n", - "N=ns-a*ns\n", - "\n", - "#result\n", - "print \"full-load speed=\",n,\"rpm\"\n", - "print \"speed at maximum torque=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load speed= 1485.0 rpm\n", - "speed at maximum torque= 1440.0 rpm\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.22, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=240#V\n", - "f=50#Hz\n", - "r=0.12#ohm\n", - "x=0.85#ohm\n", - "ratio=1.8\n", - "s=0.04\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=k*(v/3**0.5)\n", - "ns=120*f/p\n", - "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "s=r/x\n", - "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "n=ns*(1-s)\n", - "\n", - "#result\n", - "print \"developed torque=\",tf,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 52.4097855621 N-m\n", - "maximum torque= 99.9125764956 N-m\n", - "speed at maximum torque= 858.823529412 rpm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.23, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "s=0.03\n", - "\n", - "#calculation\n", - "ns=100#rpm considered\n", - "n=(1-s)*ns\n", - "n2=n/2\n", - "s2=(ns-n2)/ns\n", - "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", - "per=1-1/ratio\n", - "phi=math.atan(s2*x/r)\n", - "pf=math.cos(phi)\n", - "\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 22.8528060715 %\n", - "pf= 0.307902262948\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.26, Page Number:1272" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "p=4\n", - "t=100#N-m\n", - "n=1200#rpm\n", - "\n", - "#calculation\n", - "e2=v/2\n", - "ns=120*f/p\n", - "n=ns-n\n", - "n2=n+ns/2\n", - "\n", - "#result\n", - "print \"stator supply voltage=\",e2,\"V\"\n", - "print \"new speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator supply voltage= 220 V\n", - "new speed= 1050 rpm\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.24, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delclaration\n", - "v=400.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=1140.0#rpm\n", - "e=440.0#V\n", - "e2=550.0#V\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "s1=(ns-n)/ns\n", - "s2=s1*(e/e2)**2\n", - "n2=ns*(1-s2)\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1053.6 rpm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.25, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=450.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=873.0#rpm\n", - "t=23.0#degrees\n", - "n2=864.0#rpm\n", - "alpha=1.0/234.0#per degrees centrigrade\n", - "\n", - "#calculation\n", - "s1=(900-n)/900\n", - "s2=(900-n2)/900\n", - "ratio=s2/s1-1\n", - "t2=(s2/s1-1)/alpha+23 \n", - "\n", - "#result\n", - "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", - "print \"approx temperature=\",t2,\"degrees centigrade\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in rotor resistance= 33.3333333333 %\n", - "approx temperature= 101.0 degrees centigrade\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.27, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=500.0#Hz\n", - "p=6.0\n", - "load=80.0#kW\n", - "alt=100.0\n", - "ns=120.0*f/60.0\n", - "#calculation\n", - "s=alt/(60.0*f)\n", - "n=(1-s)*ns\n", - "cu_loss=(1.0/3.0)*load*1000/3.0\n", - "\n", - "#result\n", - "print \"slip=\",s*1000,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 996.666666667 rpm\n", - "rotor copper loss= 0.888888888889 kW\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.28, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=4.0\n", - "n=1425.0#rpm\n", - "z=complex(0.4,4)\n", - "ratio=0.8\n", - "loss=500.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=75/ns\n", - "e1=v/3**0.5\n", - "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", - "cu_loss=3*ir**2*z.real\n", - "pm=2*3.4*(n/60)*tf\n", - "pout=pm-loss\n", - "s=z.real/z.imag\n", - "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "nmax=ns-s*ns\n", - "i=ratio*e1/abs(z)\n", - "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", - "\n", - "#result\n", - "print \" full load torque=\",tf,\"N-m\"\n", - "print \"rotor current=\",ir,\"A\"\n", - "print \"cu_loss=\",cu_loss,\"W\"\n", - "print \"power output=\",pout,\"W\"\n", - "print \"max torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",nmax,\"rpm\"\n", - "print \"starting current=\",i,\"A\"\n", - "print \"starting torque=\",tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " full load torque= 78.9197452229 N-m\n", - "rotor current= 22.7215022978 A\n", - "cu_loss= 619.52 W\n", - "power output= 12245.5388535 W\n", - "max torque= 98.6496815287 N-m\n", - "speed at max torque= 1350.0 rpm\n", - "starting current= 50.5546790867 A\n", - "starting torque= 19.5345904017 N-m\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.30, Page Number:1286" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60#kW\n", - "loss=1#kW\n", - "s=0.03\n", - "\n", - "#calculations\n", - "p2=load-loss\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2\n", - "rotor_loss=cu_loss*1000/3\n", - "\n", - "#result\n", - "print \"mechanical power developed=\",pm,\"kW\"\n", - "print \"rotor copper loss=\",rotor_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power developed= 57.23 kW\n", - "rotor copper loss= 590.0 W\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.31, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=20#KW\n", - "s=0.03\n", - "i=60#A\n", - "\n", - "#calculation\n", - "fr=s*f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss=s*load*1000\n", - "r2=cu_loss/(3*i**2)\n", - "\n", - "#result\n", - "print \"frequency of rotor current=\",fr,\"Hz\"\n", - "print \"rotor copper loss=\",cu_loss,\"W\"\n", - "print \"rotor resistance=\",r2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of rotor current= 1.5 Hz\n", - "rotor copper loss= 600.0 W\n", - "rotor resistance= 0.0555555555556 ohm\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.32, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50#Hz\n", - "load=3.73#KW\n", - "n=960#rpm\n", - "loss=280#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "input_r=load*1000*ns/n\n", - "input_s=input_r+loss\n", - "\n", - "#result\n", - "print \"stator input=\",input_s,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator input= 4165.41666667 W\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.33, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=75.0#KW\n", - "alt=100.0\n", - "\n", - "#calculations\n", - "f1=alt/60\n", - "s=f1/f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss_r_per_phase=s*p2/3\n", - "pm=(1-s)*p2\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", - "print \"mechancal power=\",pm,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 966.666666667 rpm\n", - "rotor copper loss per phase= 0.833333333333 kW\n", - "mechancal power= 72.5 kW\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.34, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "n=975.0#rpm\n", - "p1=40.0#KW\n", - "loss_s=1.0#kW\n", - "loss=2.0#KW\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "p2=p1-loss_s\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "pout=pm-loss\n", - "efficiency=pout/p1\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor copper loss=\",cu_loss,\"kW\"\n", - "print \"shaft power=\",pout,\"kW\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 2.5 %\n", - "rotor copper loss= 0.975 kW\n", - "shaft power= 36.025 kW\n", - "efficiency= 90.0625 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.35, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=100#KW\n", - "v=3300#V\n", - "f=50#Hz\n", - "n=500#rpm\n", - "s=0.018\n", - "pf=0.85\n", - "cu_loss=2440#W\n", - "iron_loss=3500#W\n", - "rotational_loss=1200#W\n", - "\n", - "#calculations\n", - "pm=output+rotational_loss/1000\n", - "cu_loss_r=(s/(1-s))*pm\n", - "p2=pm+cu_loss_r\n", - "input_s=p2+cu_loss/1000+iron_loss/1000\n", - "il=input_s*1000/(3**0.5*v*pf)\n", - "efficiency=output/input_s\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.85132382892 kW\n", - "line current= 22.1989272175 A\n", - "efficiency= 92.7202341611 %\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.36, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=100.0#W\n", - "c=120.0\n", - "\n", - "#calculations\n", - "s=c/(f*60)\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2/3\n", - "n2=ns-n\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"copper loss=\",cu_loss,\"kW\"\n", - "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 960.0 rpm\n", - "mechanical power= 96.0 kW\n", - "copper loss= 1.33333333333 kW\n", - "speed of stator field with respect to rotor= 40.0 rpm\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.37, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.9\n", - "output=37#kW\n", - "ratio=1.0/3.0\n", - "\n", - "#calculation\n", - "input_m=output*1000/efficiency\n", - "total_loss=input_m-output*1000\n", - "x=total_loss/(3+0.5)\n", - "input_r=output*1000+x/2+x\n", - "s=x/input_r\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.0303030303 %\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.38, Page Number:1289" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=45#KW\n", - "i=75#A\n", - "s=0.03\n", - "iron_loss=1200#kW\n", - "loss=900#kW\n", - "r=0.12#ohm\n", - "\n", - "#calculations\n", - "pf=load*1000/(3**0.5*v*i)\n", - "r=r*3/2\n", - "cu_loss=3*(i/3**0.5)**2*r\n", - "cu_loss_r=s*42788\n", - "pm=42788-cu_loss_r\n", - "output_s=pm-loss\n", - "efficiency=output_s/(load*1000)\n", - "t=(output_s*60)/(2*3.14*970)\n", - "\n", - "#result\n", - "print \"pf=\",pf\n", - "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", - "print \"p out=\",output_s,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf= 0.866025403784\n", - "rotor cu loss= 1283.64 W\n", - "p out= 40604.36 W\n", - "efficiency= 90.2319111111 %\n", - "torque= 399.937881673 N-m\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(a), Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=1.75\n", - "s=0.05\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e1=v/3**0.5\n", - "e2=k*e1\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "pcr=3*i2**2*r\n", - "pm=pcr*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "n=ns*(1-sm)\n", - "e3=sm*e2\n", - "\n", - "#result\n", - "print \"load torque=\",tg/9.81,\"kg-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"rotor emf at max torque=\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load torque= 4.26478644041 kg-m\n", - "speed at maximum torque= 1333.33333333 rpm\n", - "rotor emf at max torque= 8.06457518868 V\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(b), Page Number:1290" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=4\n", - "i=10#A\n", - "pf=0.86\n", - "loss=0.05\n", - "cu_r=0.04\n", - "m_loss=0.03\n", - "\n", - "#calculation\n", - "input_m=3**0.5*v*i*pf\n", - "loss_s=loss*input_m\n", - "input_r=input_m-loss_s\n", - "cu_lossr=cu_r*input_r\n", - "mec_loss=m_loss*input_r\n", - "output_shaft=input_r-cu_lossr-mec_loss\n", - "s=cu_lossr/input_r\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "wr=2*3.14*n/60\n", - "output_r=input_r-cu_lossr\n", - "tr=output_r/wr\n", - "tin=output_shaft/wr\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", - "print \"shaft torque=\",tin,\"Nw-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 1440.0 rpm\n", - "torque developed in the rotor= 36.0531340072 Nw-m\n", - "shaft torque= 34.9264735695 Nw-m\n" - ] - } - ], - "prompt_number": 91 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.40, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "p=40.0\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=3.5\n", - "s=0.05\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "k=1/ratio\n", - "e2=k*e1\n", - "er=s*e2\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=er/z\n", - "cu_loss=3*i2**2*r\n", - "output=cu_loss*(1-s)/s\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(x*sm)**2)**0.5\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "input_r=cu_loss/sm\n", - "\n", - "#result\n", - "print \"gross output at 5% slip=\",output,\"W\"\n", - "print \"maximum torque=\",input_r,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross output at 5% slip= 6242.77652849 W\n", - "maximum torque= 8780.04535147 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.41, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=4.0\n", - "f=50.0#Hz\n", - "loss=0.025\n", - "s=0.04\n", - "\n", - "#calculations\n", - "pw=loss*pout*1000\n", - "pm=pout*1000+pw\n", - "cu_loss=s*pm/(1-s)\n", - "p2=cu_loss/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tsh=9.55*pout*1000/n\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"rotor cu loss=\",cu_loss,\"W\"\n", - "print \"rotor input=\",p2,\"W\"\n", - "print \"shaft torque=\",tsh,\"N-m\"\n", - "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor cu loss= 796.510416667 W\n", - "rotor input= 19912.7604167 W\n", - "shaft torque= 123.685763889 N-m\n", - "gross electromagnetic torque= 126.777907986 N-m\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.42, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "n=710#rpm\n", - "load=35#kW\n", - "loss=1200#W\n", - "loss_r=600#W\n", - "\n", - "#calculation\n", - "p2=load*1000-loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "tg=9.55*pm/n\n", - "pout=pm-loss_r\n", - "tsh=9.55*pout/n\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", - "print \"gross torque=\",tg,\"N-m\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"net torque=\",tsh,\"N-m\"\n", - "print \"mechanical power output=\",pout,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.80266666667 kW\n", - "gross torque= 430.386666667 N-m\n", - "mechanical power= 31997.3333333 W\n", - "net torque= 422.316244131 N-m\n", - "mechanical power output= 31397.3333333 W\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.43, Page Number:1292" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tsh=149.3#N-m\n", - "loss=200#W\n", - "cu_loss=1620#W\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pout=tsh*2*3.14*(n/60)\n", - "output=pout+loss\n", - "p2=output*ns/n\n", - "cu_lossr=p2-output\n", - "p1=p2+cu_loss\n", - "efficiency=pout*100/p1\n", - "\n", - "#result\n", - "print \"output power=\",pout/1000,\"kW\"\n", - "print \"rotor cu loss=\",cu_lossr,\"W\"\n", - "print \"the efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 15.001664 kW\n", - "rotor cu loss= 633.402666667 W\n", - "the efficiency= 85.9444669361 %\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.44, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=6\n", - "f=50.0#Hz\n", - "n=960#rpm\n", - "i2=35#A\n", - "loss=1#kW\n", - "\n", - "#calculation\n", - "pm=pout+loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_lossr=pm*s*1000/(1-s)\n", - "r2=cu_lossr/(3*i2**2)\n", - "\n", - "#result\n", - "print \"resistane per phase=\",r2,\"ohm/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistane per phase= 0.222789115646 ohm/phase\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.45, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "sf=Symbol('sf')\n", - "v=400#V\n", - "p=4\n", - "f=50#Hz\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "ratio=4\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "e2=e1/ratio\n", - "sm=r/x\n", - "ns=120*f/p\n", - "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", - "a=r/x\n", - "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", - "n=ns*(1-sf[0])\n", - "tf=tmax/2\n", - "output=2*3.14*n*tf/60\n", - "\n", - "#result\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"full load slip=\",sf[0]\n", - "print \"power output=\",output,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 318.47133758 N-m\n", - "full load slip= 0.0267949192431123\n", - "power output= 24330.1270189222 W\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.46, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "v=200.0#V\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "k=0.67\n", - "s=0.04\n", - "#calculations\n", - "e1=v/3**0.5\n", - "e2=e1*k\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(sm*x)**2)**0.5\n", - "i2=er/zr\n", - "cu_lossr=3*i2**2*r\n", - "output=cu_lossr*(1-sm)/sm\n", - "n=(1-sm)*ns\n", - "tmax=9.55*output/n\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 40.4815391879 N-m\n", - "maximum torque= 63.511037037 N-m\n", - "speed at max torque= 1333.33333333 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.47, Page Number:1293" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "f=50#Hz\n", - "s=0.04\n", - "p=4\n", - "e2=110#V\n", - "\n", - "#calculations\n", - "z=(r**2+x**2)**0.5\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "pf2=r/zr\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "er=s*e2\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"pf of motor at start=\",pf\n", - "print \"pf of motor at s=4%\",pf2\n", - "print \"full load torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf of motor at start= 0.164398987305\n", - "pf of motor at s=4% 0.972387301981\n", - "full load torque= 582.728189612 N-m\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.48, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6.0\n", - "f=50.0#Hz\n", - "tsh=162.84#N-m\n", - "c=90.0\n", - "t=20.36#N-m\n", - "loss=830.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "fr=c/60\n", - "s=fr/f\n", - "n=ns*(1-s)\n", - "output=2*3.14*n*tsh/60\n", - "tg=tsh+t\n", - "p2=tg*ns/9.55\n", - "cu_lossr=s*p2\n", - "p1=p2+cu_lossr\n", - "efficiency=output*100/p1\n", - "\n", - "#result\n", - "print \"motor output=\",output,\"W\"\n", - "print \"cu loss=\",cu_lossr,\"W\"\n", - "print \"motor input\",p1,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 16532.6024 W\n", - "cu loss= 575.497382199 W\n", - "motor input 19758.7434555 W\n", - "efficiency= 83.6723369441 %\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.49, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=420.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "r=1.0#ohm\n", - "z=complex(0.25,0.75)\n", - "zr=complex(0.173,0.52)\n", - "v1=420.0#V\n", - "v2=350.0#V\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=zr.real+k**2*z.real\n", - "x02=zr.imag+k**2*z.imag\n", - "z02=((r+r02)**2+x02**2)**0.5\n", - "i2=v2/(3**0.5*z02)\n", - "cu_loss=i2**2*(r+zr.real)\n", - "p2=cu_loss*3\n", - "ns=120*f/p\n", - "tst=9.55*p2/(ns*9.81)\n", - "#result\n", - "print \"torque=\",tst,\"kg-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 48.2909354778 kg-m\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.50, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "load=37.3#ohm\n", - "v=280#V\n", - "f=50.0#Hz\n", - "i=200#A\n", - "pf=0.25\n", - "r=0.15#ohm\n", - "k=1.0/3\n", - "#calculation\n", - "wsc=2*v*i*pf\n", - "power_phase=v*i*pf\n", - "R=power_phase/i**2\n", - "r2_=R-r\n", - "r2=k**2*r2_\n", - "p2=3*i**2*r2_\n", - "ns=120*f/p\n", - "t=9.55*p2/ns\n", - "\n", - "#result\n", - "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", - "print \"startingtorque=\",t,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", - "startingtorque= 305.6 N-m\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.51, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratios=1.6\n", - "ratiom=2.0\n", - "sf=0.01\n", - "sb=0.04\n", - "#calculation\n", - "i=(ratios/sf)**0.5\n", - "\n", - "#result\n", - "print \"slip at full load=\",sf\n", - "print \"slip at maximum torque=\",sb\n", - "print \"rotor current=\",i" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip at full load= 0.01\n", - "slip at maximum torque= 0.04\n", - "rotor current= 12.6491106407\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.52, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200#km/h\n", - "f=100#Hz\n", - "\n", - "#calculation\n", - "w=v*5.0/18/(2*f)\n", - "\n", - "#result\n", - "print \"pole pitch=\",w*1000,\"mm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pole pitch= 277.777777778 mm\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.53, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "w=6#mm\n", - "f=25#Hz\n", - "p=6#kW\n", - "loss=1.2#kW\n", - "v=2.4#m/s\n", - "\n", - "#calculation\n", - "vs=2*f*w/100\n", - "s=(vs-v)/vs\n", - "p2=p-loss\n", - "pcr=s*p2\n", - "pm=p2-pcr\n", - "f=p2*1000/vs\n", - "\n", - "#result\n", - "print \"synchronous speed=\",vs,\"m/s\"\n", - "print \"slip=\",s\n", - "print \"cu loss=\",pcr,\"kW\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"thrust=\",f/1000,\"kN\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous speed= 3 m/s\n", - "slip= 0.2\n", - "cu loss= 0.96 kW\n", - "mechanical power= 3.84 kW\n", - "thrust= 1.6 kN\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.54, Page Number:1304" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=0.12\n", - "r=0.08#ohm/phase\n", - "pg=9000.0#W\n", - "\n", - "#calculations\n", - "rl=r*(1/s-1)\n", - "v=(pg*rl/3)**0.5\n", - "il=v/rl\n", - "\n", - "#result\n", - "print \"load resistance=\",rl,\"ohm\"\n", - "print \"load voltage=\",v,\"V\"\n", - "print \"load current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load resistance= 0.586666666667 ohm\n", - "load voltage= 41.9523539268 V\n", - "load current= 71.5096941934 A\n" - ] - } - ], - "prompt_number": 166 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.55, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=4\n", - "r1=0.15#ohm\n", - "x1=0.45#ohm\n", - "r2_=0.12#ohm\n", - "x2_=0.45#ohm\n", - "xm=complex(0,28.5)#ohm\n", - "s=0.04\n", - "#calculations\n", - "rl_=r2_*(1/s-1)\n", - "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", - "i0=(v/3**0.5)/xm\n", - "i1=i0+i2_\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "\n", - "#result\n", - "print \"stator current=\",i1,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator current= (74.5730253701-19.1783634605j) A\n", - "power factor= 0.968485280755\n" - ] - } - ], - "prompt_number": 177 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.56, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "f=50#Hz\n", - "power=3.73#kW\n", - "r1=0.45#ohm\n", - "x1=0.8#ohm\n", - "r2_=0.4#ohm\n", - "x2_=0.8#ohm\n", - "b0=-1.0/30\n", - "loss=50#W\n", - "lossr=150#W\n", - "s=0.04\n", - "\n", - "#calculations\n", - "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", - "z01=complex(r1,x1)+zab\n", - "vph=v/3**0.5\n", - "i1=v1/z01\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i1.real**2*zab.real\n", - "pm=(1-s)*p2\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "power_o=pm-lossr\n", - "cu_loss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_loss+cu_lossr+lossr\n", - "efficiency=power_o/(power_o+total_loss)\n", - "\n", - "#result\n", - "print \"input current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"air gap power=\",p2,\"W\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"electro magnetic torque=\",tg,\"N-m\"\n", - "print \"output power=\",power_o,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input current= (21.9914486234+42.6194245913j) A\n", - "pf= 0.45854949826\n", - "air gap power= 5173.46132109 W\n", - "mechanical power= 4966.52286825 W\n", - "electro magnetic torque= 32.9377037443 N-m\n", - "output power= 4816.52286825 W\n", - "efficiency= 81.9644851937 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.57, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "load=37.3#kW\n", - "r1=0.1#ohm\n", - "x1=0.4#ohm\n", - "r2_=0.15#ohm\n", - "x2_=0.44#ohm\n", - "loss=1250#W\n", - "lossr=1000#W\n", - "i=20#A\n", - "pf=0.09\n", - "s=0.03\n", - "\n", - "#calculation\n", - "v1=v/3**0.5\n", - "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", - "i1=i2_+complex(1.78,19.9)\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i2_.real**2*r2_/s\n", - "ns=120*f/p\n", - "tg=9.55*p2/ns\n", - "pm=p2*(1-s)\n", - "pout=pm-1000\n", - "cu_losss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_losss+cu_lossr+lossr\n", - "efficiency=pout/(pout+total_loss)\n", - "\n", - "#result\n", - "print \"line current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"electromagnetic torque=\",tg,\"N-m\"\n", - "print \"output=\",pout,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= (50.2750367599+11.9125821807j) A\n", - "pf= 0.973057118792\n", - "electromagnetic torque= 224.593900377 N-m\n", - "output= 33218.2329894 W\n", - "efficiency= 89.0932246577 %\n" - ] - } - ], - "prompt_number": 186 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.58, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.06,0.2)\n", - "zr=complex(0.06,0.22)\n", - "\n", - "#calculation\n", - "r01=z.real+zr.real\n", - "x01=z.imag+zr.imag\n", - "z01=(r01**2+x01**2)**0.5\n", - "s=z.real/(z.real+z01)\n", - "v1=v/3**0.5\n", - "pmax=3*v1**2/(2*(r01+z01))\n", - "\n", - "#result\n", - "print \"maximum gross power=\",pmax,\"W\"\n", - "print \"slip=\",s" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum gross power= 143676.459572 W\n", - "slip= 0.120771344025\n" - ] - } - ], - "prompt_number": 188 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.59, Page Number:1307" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=115#V\n", - "f=60.0#Hz\n", - "p=6\n", - "z=complex(0.07,0.3)\n", - "zr=complex(0.08,0.3)\n", - "gd=0.022#mho\n", - "bo=0.158#mho\n", - "s=0.02\n", - "\n", - "#calculation\n", - "rl_=1/bo*(1/s-1)\n", - "z=complex(z.real+zr.real+rl_,0.6)\n", - "v=v1/3**0.5\n", - "i2=complex(16,-2.36)\n", - "io=v*complex(gd,-bo)\n", - "i1=io+i2\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "pg=3*abs(i2)**2*rl_/100\n", - "ns=120*f/p\n", - "n=(1-s)*ns\n", - "tg=9.55*pg/n\n", - "p2=3**0.5*v1*abs(i1)*pf\n", - "efficiency=pg*100/p2\n", - "\n", - "#result\n", - "print \"secondary current=\",i2,\"A\"\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"power output=\",pg,\"W\"\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"input=\",p2,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary current= (16-2.36j) A\n", - "primary current= (17.460696181-12.8504543912j) A\n", - "pf= 0.805393212665\n", - "power output= 2433.59058228 W\n", - "torque= 19.7625765823 N-m\n", - "input= 3477.92348593 W\n", - "efficiency= 69.9725164204 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.60, Page Number:1308" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.4,1)\n", - "zr=complex(0.6,1)\n", - "zm=complex(10,50)\n", - "s=0.05\n", - "\n", - "#calculation\n", - "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", - "v1=v/3**0.5\n", - "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", - "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", - "#result\n", - "print \"maximum torque=\",tgmax,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 277.144160399 N-m\n" - ] - } - ], - "prompt_number": 208 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_1.ipynb deleted file mode 100644 index d05f1eeb..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_1.ipynb +++ /dev/null @@ -1,3065 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 34:Induction Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.1, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=290.0#rpm\n", - "f=50.0#Hz\n", - "Ns=300.0#rpm(considered)\n", - "#calculation\n", - "P=120*f/Ns\n", - "s=(Ns-n)/Ns\n", - "\n", - "#result\n", - "print \"no. of poles=\",P\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no. of poles= 20.0\n", - "slip= 3.33333333333 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.2, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "slot=3\n", - "f=50#Hz\n", - "\n", - "#calculation\n", - "P=2*n\n", - "slots_total=slot*P*n\n", - "Ns=120*f/P\n", - "\n", - "#result\n", - "print \"No. of stator poles=\",P\n", - "print \"Total number of slots=\",slots_total\n", - "print \"Speed=\",Ns,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " No. of stator poles= 6\n", - "Total number of slots= 54\n", - "Speed= 1000 rpm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.3, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=3\n", - "f=50#Hz\n", - "slip1=0.04\n", - "slip2=0.03\n", - "\n", - "#calculation\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip1)\n", - "f1=slip2*f*60\n", - "#at standstill s=1\n", - "f2=1*f\n", - "\n", - "#calculation\n", - "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", - "print \"speed of the rotor when the slip is 0.04=\",N\n", - "print \"frequency of rotor current=\",f1,\"rpm\"\n", - "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which magnetic field of the stator is rotating= 1500 rpm\n", - "speed of the rotor when the slip is 0.04= 1440.0\n", - "frequency of rotor current= 90.0 rpm\n", - "frequency of the rotor current at standstill= 50 Hz\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.4, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3.0\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slip=0.04\n", - "n=600.0#rpm\n", - "\n", - "#calculations\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip)\n", - "s=(Ns-n)/Ns\n", - "f1=s*f\n", - "\n", - "#result\n", - "print \"the synchronous speed=\",Ns,\"rpm\"\n", - "print \"the rotor speed=\",N,\"rpm\"\n", - "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the synchronous speed= 1500.0 rpm\n", - "the rotor speed= 1440.0 rpm\n", - "the rotor frequency when n=600 rpm= 30.0 Hz\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.5, Page Number:1256" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "n=3\n", - "N=500#rpm\n", - "p2=8\n", - "slip=0.03\n", - "\n", - "#calculation\n", - "f=p*N/120\n", - "Ns=120*f/p2\n", - "N=Ns-slip*Ns\n", - "\n", - "#result\n", - "print \"full load speed of the motor=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load speed of the motor= 727.5 rpm\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.6, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e=80#V\n", - "r=1#ohm\n", - "x=4#ohm\n", - "rheo=3#ohm\n", - "\n", - "#calculation\n", - "E=e/(3)**0.5\n", - "z=(r**2+x**2)**0.5\n", - "i=E/z\n", - "pf=r/z\n", - "R=rheo+r\n", - "z2=(R**2+x**2)**0.5\n", - "i2=E/z2\n", - "\n", - "pf2=R/z2\n", - "\n", - "#result\n", - "print \"slip rings are short circuited:\"\n", - "print \"current/phase\",i,\"A\"\n", - "print \"pf=\",pf\n", - "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", - "print \"current/phase\",i2,\"A\"\n", - "print \"pf=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip rings are short circuited:\n", - "current/phase 11.2022406722 A\n", - "pf= 0.242535625036\n", - "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", - "pf= 0.707106781187\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.7, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "v=400#V\n", - "ratio=6.5\n", - "r=0.05#ohm\n", - "x=0.25#ohm\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=v*k/(3**0.5)\n", - "R=x-r\n", - "r2=x\n", - "z=(x**2+r2**2)**0.5\n", - "i2=e2/z\n", - "\n", - "#result\n", - "print \"external resistance=\",R,\"ohm\"\n", - "print \"starting current=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.2 ohm\n", - "starting current= 100.491886883 A\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.8, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=1100#V\n", - "f=50#Hz\n", - "ratio=3.8\n", - "r=0.012#ohm\n", - "x=0.25#ohm\n", - "s=0.04\n", - "#calculation\n", - "e=v/ratio\n", - "z=(r**2+x**2)**0.5\n", - "i=e/z\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "er=s*e\n", - "i2=er/zr\n", - "pf2=r/zr\n", - "i2=100*ratio\n", - "z2=e/i2\n", - "r2=(z2**2-x**2)**0.5\n", - "R=r2-r\n", - "\n", - "#result\n", - "print \"current with slip rings shorted=\",i,\"A\"\n", - "print \"pf with slip rings shorted=\",pf\n", - "print \"current with slip=4% and slip rings shorted=\",i2\n", - "print \"pf withslip=4% and slip rings shorted=\",pf2\n", - "print \"external resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current with slip rings shorted= 1156.56314266 A\n", - "pf with slip rings shorted= 0.0479447993684\n", - "current with slip=4% and slip rings shorted= 380.0\n", - "pf withslip=4% and slip rings shorted= 0.768221279597\n", - "external resistance= 0.70758173952 ohm\n" - ] - } - ], - "prompt_number": 41 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.9, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=15#kW\n", - "v=3000#V\n", - "f=50#Hz\n", - "p=6\n", - "ratio=3.6\n", - "r=0.13#ohm\n", - "l=3.61*0.001#H\n", - "\n", - "#calculation\n", - "v=v/3**0.5\n", - "x2=2*3.14*l*f\n", - "k=1/ratio\n", - "r2_=0.1/k**2\n", - "x2_=ratio**2*x2\n", - "is1=v/((r**2+x2_**2)**0.5)\n", - "ns=120*f/p\n", - "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", - "\n", - "#result\n", - "print \"starting current=\",is1,\"A\"\n", - "print \"ts=\",ts,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 117.896733436 A\n", - "ts= 512.375725888 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.10, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zs=complex(0.4,4)\n", - "zr=complex(6,2)\n", - "v=80#V\n", - "s=0.03\n", - "\n", - "#calculation\n", - "e2=v/3**0.5\n", - "i=e2/abs(zr+zs)\n", - "er=s*e2\n", - "xr=s*zs.imag\n", - "ir=er/abs(complex(zs.real,xr))\n", - "\n", - "#result\n", - "print \"rotor current at standstill=\",i,\"A\"\n", - "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor current at standstill= 5.26498126493 A\n", - "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.11, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "e=120#V\n", - "r2=0.3#ohm\n", - "x2=1.5#ohm\n", - "s=0.04\n", - "\n", - "#calculations\n", - "e2=e/3**0.5\n", - "er=s*e2\n", - "xr=s*x2\n", - "zr=(r2**2+xr**2)**0.5\n", - "i=er/zr\n", - "s=r2/x2\n", - "xr=s*x2\n", - "zr=(xr**2+r2**2)**0.5\n", - "er=s*e2\n", - "i2=er/zr\n", - "\n", - "#result\n", - "print \"rotor when running short-circuited=\",i,\"A\"\n", - "print \"slip=\",s\n", - "print \"current when torque is maximum=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor when running short-circuited= 9.05821627316 A\n", - "slip= 0.2\n", - "current when torque is maximum= 32.6598632371 A\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.12, Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tb=150.0#kg-m\n", - "n=660.0#rpm\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "t=tb*(2/((sb/s)+s/sb))\n", - "\n", - "#result\n", - "print \"torque=\",t,\"kg-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 90.0 kg-m\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(a), Page Number:1266" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variablde declaration\n", - "n=3\n", - "vd=0.90\n", - "\n", - "#calculation\n", - "ratio_s=(1/vd)**2\n", - "ratio_i=ratio_s*vd\n", - "cu_loss_increase=ratio_i**2\n", - "\n", - "#result\n", - "print \"increase in motor copper losses=\",cu_loss_increase" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in motor copper losses= 1.23456790123\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(b), Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "p1=15.0#kW\n", - "n=980.0#rpm\n", - "efficiency=0.93\n", - "vd=0.10\n", - "fd=0.05\n", - "\n", - "#calculation\n", - "v2=(1-vd)*v\n", - "f2=(1-fd)*f\n", - "n1=120*f/p\n", - "n2=120*f2/p\n", - "s1=(n1-n)/n1\n", - "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", - "n2=n2*(1-ratio_f)\n", - "p2=p1*n2/n1\n", - "#result\n", - "print \"the new operating speed=\",n2,\"rpm\"\n", - "print \"the new output power=\",p2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the new operating speed= 935.3795 rpm\n", - "the new output power= 14.0306925 kW\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(a), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=3\n", - "v1=400#V\n", - "v2=200#V\n", - "r=0.06#ohm\n", - "x=0.3#ohm\n", - "a=1\n", - "#calculations\n", - "r=x-r\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 0.24 ohm\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(b), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "f=50#Hz\n", - "p=8\n", - "s=0.02\n", - "r=0.001#ohm\n", - "x=0.005#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "a=r/x\n", - "n2=(1-s)*ns\n", - "ratio=2*s**2*a/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(c), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "v=600#V\n", - "f=50#Hz\n", - "r=0.03#ohm\n", - "x=0.5#ohm\n", - "n=495#rpm\n", - "s=0.01\n", - "#calculation\n", - "Ns=120*f/p\n", - "a=r/x\n", - "n=Ns*(1-a)\n", - "ratio=2*a*s/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"speed of max torque=\",n,\"rpm\"\n", - "print \"ratio of torques=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of max torque= 470.0 rpm\n", - "ratio of torques= 0.324324324324\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.15, Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=746.0#kW\n", - "f=50.0#Hz\n", - "p=16\n", - "zr=complex(0.02,0.15)\n", - "n=360.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "a=zr.real/zr.imag\n", - "ratio=2*a*s/(a**2+s**2)\n", - "N=ns*(1-a)\n", - "R=zr.imag-zr.real\n", - "\n", - "#result\n", - "print \"ratio of torques=\",ratio\n", - "print \"speed at maximum torque=\",N,\"rpm\"\n", - "print \"rotor resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 0.550458715596\n", - "speed at maximum torque= 325.0 rpm\n", - "rotor resistance= 0.13 ohm\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.16, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "p=4\n", - "f=50.0#Hz\n", - "r=0.025#ohm\n", - "x=0.12#ohm\n", - "ratio=3.0/4.0\n", - "\n", - "#calculations\n", - "s=r/x\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "a=solve(ratio-(2*a/(1+a**2)),a)\n", - "r=a[0]*x-r\n", - "\n", - "#result\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at maximum torque= 1187.5 rpm\n", - "additional resistance= 0.0291699475574164 ohm\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.17, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "s=0.04\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "p=8\n", - "#calculation\n", - "a=r/x\n", - "t_ratio=2*a*s/(a**2+s**2)\n", - "ns=120*f/p\n", - "n=(1-a)*ns\n", - "\n", - "#result\n", - "print \"ratio of torques=\",1/t_ratio\n", - "print \"speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 1.45\n", - "speed= 675.0 rpm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.18, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "a2=Symbol('a2')\n", - "p=3\n", - "t_ratio=2.5\n", - "t_ratio2=1.5\n", - "s=0.03\n", - "\n", - "#calculation\n", - "t_ratio3=t_ratio2/t_ratio\n", - "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", - "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", - "r_red=(a[0]-a2[1])/a[0]\n", - "#result\n", - "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.19, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50#Hz\n", - "r=0.08#ohm\n", - "n=650.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "a=1\n", - "r=a*x2-r\n", - "#result\n", - "print \"extra resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "extra resistance= 0.52 ohm\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.20, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "R=Symbol('R')\n", - "p=4\n", - "f=50.0#Hz\n", - "t=162.8#N-m\n", - "n=1365.0#rpm\n", - "r=0.2#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",round(R[0],1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 0.4 ohm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.21, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "load=7.46#kW\n", - "t_ratios=1.60\n", - "t_ratiom=2.0\n", - "\n", - "#calcualtion\n", - "t_ratio=t_ratios/t_ratiom\n", - "#0.8a2-2*a+0.8 a=0.04\n", - "#0.5=2*a*sf/a2+sf2 sf=0.01\n", - "a=0.04\n", - "sf=0.01\n", - "ns=120*f/p\n", - "n=ns-sf*ns\n", - "N=ns-a*ns\n", - "\n", - "#result\n", - "print \"full-load speed=\",n,\"rpm\"\n", - "print \"speed at maximum torque=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load speed= 1485.0 rpm\n", - "speed at maximum torque= 1440.0 rpm\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.22, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=240#V\n", - "f=50#Hz\n", - "r=0.12#ohm\n", - "x=0.85#ohm\n", - "ratio=1.8\n", - "s=0.04\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=k*(v/3**0.5)\n", - "ns=120*f/p\n", - "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "s=r/x\n", - "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "n=ns*(1-s)\n", - "\n", - "#result\n", - "print \"developed torque=\",tf,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 52.4097855621 N-m\n", - "maximum torque= 99.9125764956 N-m\n", - "speed at maximum torque= 858.823529412 rpm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.23, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "s=0.03\n", - "\n", - "#calculation\n", - "ns=100#rpm considered\n", - "n=(1-s)*ns\n", - "n2=n/2\n", - "s2=(ns-n2)/ns\n", - "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", - "per=1-1/ratio\n", - "phi=math.atan(s2*x/r)\n", - "pf=math.cos(phi)\n", - "\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 22.8528060715 %\n", - "pf= 0.307902262948\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.26, Page Number:1272" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "p=4\n", - "t=100#N-m\n", - "n=1200#rpm\n", - "\n", - "#calculation\n", - "e2=v/2\n", - "ns=120*f/p\n", - "n=ns-n\n", - "n2=n+ns/2\n", - "\n", - "#result\n", - "print \"stator supply voltage=\",e2,\"V\"\n", - "print \"new speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator supply voltage= 220 V\n", - "new speed= 1050 rpm\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.24, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delclaration\n", - "v=400.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=1140.0#rpm\n", - "e=440.0#V\n", - "e2=550.0#V\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "s1=(ns-n)/ns\n", - "s2=s1*(e/e2)**2\n", - "n2=ns*(1-s2)\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1053.6 rpm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.25, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=450.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=873.0#rpm\n", - "t=23.0#degrees\n", - "n2=864.0#rpm\n", - "alpha=1.0/234.0#per degrees centrigrade\n", - "\n", - "#calculation\n", - "s1=(900-n)/900\n", - "s2=(900-n2)/900\n", - "ratio=s2/s1-1\n", - "t2=(s2/s1-1)/alpha+23 \n", - "\n", - "#result\n", - "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", - "print \"approx temperature=\",t2,\"degrees centigrade\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in rotor resistance= 33.3333333333 %\n", - "approx temperature= 101.0 degrees centigrade\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.27, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=500.0#Hz\n", - "p=6.0\n", - "load=80.0#kW\n", - "alt=100.0\n", - "ns=120.0*f/60.0\n", - "#calculation\n", - "s=alt/(60.0*f)\n", - "n=(1-s)*ns\n", - "cu_loss=(1.0/3.0)*load*1000/3.0\n", - "\n", - "#result\n", - "print \"slip=\",s*1000,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 996.666666667 rpm\n", - "rotor copper loss= 0.888888888889 kW\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.28, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=4.0\n", - "n=1425.0#rpm\n", - "z=complex(0.4,4)\n", - "ratio=0.8\n", - "loss=500.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=75/ns\n", - "e1=v/3**0.5\n", - "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", - "cu_loss=3*ir**2*z.real\n", - "pm=2*3.4*(n/60)*tf\n", - "pout=pm-loss\n", - "s=z.real/z.imag\n", - "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "nmax=ns-s*ns\n", - "i=ratio*e1/abs(z)\n", - "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", - "\n", - "#result\n", - "print \" full load torque=\",tf,\"N-m\"\n", - "print \"rotor current=\",ir,\"A\"\n", - "print \"cu_loss=\",cu_loss,\"W\"\n", - "print \"power output=\",pout,\"W\"\n", - "print \"max torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",nmax,\"rpm\"\n", - "print \"starting current=\",i,\"A\"\n", - "print \"starting torque=\",tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " full load torque= 78.9197452229 N-m\n", - "rotor current= 22.7215022978 A\n", - "cu_loss= 619.52 W\n", - "power output= 12245.5388535 W\n", - "max torque= 98.6496815287 N-m\n", - "speed at max torque= 1350.0 rpm\n", - "starting current= 50.5546790867 A\n", - "starting torque= 19.5345904017 N-m\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.30, Page Number:1286" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60#kW\n", - "loss=1#kW\n", - "s=0.03\n", - "\n", - "#calculations\n", - "p2=load-loss\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2\n", - "rotor_loss=cu_loss*1000/3\n", - "\n", - "#result\n", - "print \"mechanical power developed=\",pm,\"kW\"\n", - "print \"rotor copper loss=\",rotor_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power developed= 57.23 kW\n", - "rotor copper loss= 590.0 W\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.31, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=20#KW\n", - "s=0.03\n", - "i=60#A\n", - "\n", - "#calculation\n", - "fr=s*f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss=s*load*1000\n", - "r2=cu_loss/(3*i**2)\n", - "\n", - "#result\n", - "print \"frequency of rotor current=\",fr,\"Hz\"\n", - "print \"rotor copper loss=\",cu_loss,\"W\"\n", - "print \"rotor resistance=\",r2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of rotor current= 1.5 Hz\n", - "rotor copper loss= 600.0 W\n", - "rotor resistance= 0.0555555555556 ohm\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.32, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50#Hz\n", - "load=3.73#KW\n", - "n=960#rpm\n", - "loss=280#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "input_r=load*1000*ns/n\n", - "input_s=input_r+loss\n", - "\n", - "#result\n", - "print \"stator input=\",input_s,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator input= 4165.41666667 W\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.33, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=75.0#KW\n", - "alt=100.0\n", - "\n", - "#calculations\n", - "f1=alt/60\n", - "s=f1/f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss_r_per_phase=s*p2/3\n", - "pm=(1-s)*p2\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", - "print \"mechancal power=\",pm,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 966.666666667 rpm\n", - "rotor copper loss per phase= 0.833333333333 kW\n", - "mechancal power= 72.5 kW\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.34, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "n=975.0#rpm\n", - "p1=40.0#KW\n", - "loss_s=1.0#kW\n", - "loss=2.0#KW\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "p2=p1-loss_s\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "pout=pm-loss\n", - "efficiency=pout/p1\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor copper loss=\",cu_loss,\"kW\"\n", - "print \"shaft power=\",pout,\"kW\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 2.5 %\n", - "rotor copper loss= 0.975 kW\n", - "shaft power= 36.025 kW\n", - "efficiency= 90.0625 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.35, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=100#KW\n", - "v=3300#V\n", - "f=50#Hz\n", - "n=500#rpm\n", - "s=0.018\n", - "pf=0.85\n", - "cu_loss=2440#W\n", - "iron_loss=3500#W\n", - "rotational_loss=1200#W\n", - "\n", - "#calculations\n", - "pm=output+rotational_loss/1000\n", - "cu_loss_r=(s/(1-s))*pm\n", - "p2=pm+cu_loss_r\n", - "input_s=p2+cu_loss/1000+iron_loss/1000\n", - "il=input_s*1000/(3**0.5*v*pf)\n", - "efficiency=output/input_s\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.85132382892 kW\n", - "line current= 22.1989272175 A\n", - "efficiency= 92.7202341611 %\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.36, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=100.0#W\n", - "c=120.0\n", - "\n", - "#calculations\n", - "s=c/(f*60)\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2/3\n", - "n2=ns-n\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"copper loss=\",cu_loss,\"kW\"\n", - "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 960.0 rpm\n", - "mechanical power= 96.0 kW\n", - "copper loss= 1.33333333333 kW\n", - "speed of stator field with respect to rotor= 40.0 rpm\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.37, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.9\n", - "output=37#kW\n", - "ratio=1.0/3.0\n", - "\n", - "#calculation\n", - "input_m=output*1000/efficiency\n", - "total_loss=input_m-output*1000\n", - "x=total_loss/(3+0.5)\n", - "input_r=output*1000+x/2+x\n", - "s=x/input_r\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.0303030303 %\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.38, Page Number:1289" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=45#KW\n", - "i=75#A\n", - "s=0.03\n", - "iron_loss=1200#kW\n", - "loss=900#kW\n", - "r=0.12#ohm\n", - "\n", - "#calculations\n", - "pf=load*1000/(3**0.5*v*i)\n", - "r=r*3/2\n", - "cu_loss=3*(i/3**0.5)**2*r\n", - "cu_loss_r=s*42788\n", - "pm=42788-cu_loss_r\n", - "output_s=pm-loss\n", - "efficiency=output_s/(load*1000)\n", - "t=(output_s*60)/(2*3.14*970)\n", - "\n", - "#result\n", - "print \"pf=\",pf\n", - "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", - "print \"p out=\",output_s,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf= 0.866025403784\n", - "rotor cu loss= 1283.64 W\n", - "p out= 40604.36 W\n", - "efficiency= 90.2319111111 %\n", - "torque= 399.937881673 N-m\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(a), Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=1.75\n", - "s=0.05\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e1=v/3**0.5\n", - "e2=k*e1\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "pcr=3*i2**2*r\n", - "pm=pcr*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "n=ns*(1-sm)\n", - "e3=sm*e2\n", - "\n", - "#result\n", - "print \"load torque=\",tg/9.81,\"kg-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"rotor emf at max torque=\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load torque= 4.26478644041 kg-m\n", - "speed at maximum torque= 1333.33333333 rpm\n", - "rotor emf at max torque= 8.06457518868 V\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(b), Page Number:1290" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=4\n", - "i=10#A\n", - "pf=0.86\n", - "loss=0.05\n", - "cu_r=0.04\n", - "m_loss=0.03\n", - "\n", - "#calculation\n", - "input_m=3**0.5*v*i*pf\n", - "loss_s=loss*input_m\n", - "input_r=input_m-loss_s\n", - "cu_lossr=cu_r*input_r\n", - "mec_loss=m_loss*input_r\n", - "output_shaft=input_r-cu_lossr-mec_loss\n", - "s=cu_lossr/input_r\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "wr=2*3.14*n/60\n", - "output_r=input_r-cu_lossr\n", - "tr=output_r/wr\n", - "tin=output_shaft/wr\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", - "print \"shaft torque=\",tin,\"Nw-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 1440.0 rpm\n", - "torque developed in the rotor= 36.0531340072 Nw-m\n", - "shaft torque= 34.9264735695 Nw-m\n" - ] - } - ], - "prompt_number": 91 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.40, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "p=40.0\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=3.5\n", - "s=0.05\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "k=1/ratio\n", - "e2=k*e1\n", - "er=s*e2\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=er/z\n", - "cu_loss=3*i2**2*r\n", - "output=cu_loss*(1-s)/s\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(x*sm)**2)**0.5\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "input_r=cu_loss/sm\n", - "\n", - "#result\n", - "print \"gross output at 5% slip=\",output,\"W\"\n", - "print \"maximum torque=\",input_r,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross output at 5% slip= 6242.77652849 W\n", - "maximum torque= 8780.04535147 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.41, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=4.0\n", - "f=50.0#Hz\n", - "loss=0.025\n", - "s=0.04\n", - "\n", - "#calculations\n", - "pw=loss*pout*1000\n", - "pm=pout*1000+pw\n", - "cu_loss=s*pm/(1-s)\n", - "p2=cu_loss/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tsh=9.55*pout*1000/n\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"rotor cu loss=\",cu_loss,\"W\"\n", - "print \"rotor input=\",p2,\"W\"\n", - "print \"shaft torque=\",tsh,\"N-m\"\n", - "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor cu loss= 796.510416667 W\n", - "rotor input= 19912.7604167 W\n", - "shaft torque= 123.685763889 N-m\n", - "gross electromagnetic torque= 126.777907986 N-m\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.42, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "n=710#rpm\n", - "load=35#kW\n", - "loss=1200#W\n", - "loss_r=600#W\n", - "\n", - "#calculation\n", - "p2=load*1000-loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "tg=9.55*pm/n\n", - "pout=pm-loss_r\n", - "tsh=9.55*pout/n\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", - "print \"gross torque=\",tg,\"N-m\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"net torque=\",tsh,\"N-m\"\n", - "print \"mechanical power output=\",pout,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.80266666667 kW\n", - "gross torque= 430.386666667 N-m\n", - "mechanical power= 31997.3333333 W\n", - "net torque= 422.316244131 N-m\n", - "mechanical power output= 31397.3333333 W\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.43, Page Number:1292" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tsh=149.3#N-m\n", - "loss=200#W\n", - "cu_loss=1620#W\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pout=tsh*2*3.14*(n/60)\n", - "output=pout+loss\n", - "p2=output*ns/n\n", - "cu_lossr=p2-output\n", - "p1=p2+cu_loss\n", - "efficiency=pout*100/p1\n", - "\n", - "#result\n", - "print \"output power=\",pout/1000,\"kW\"\n", - "print \"rotor cu loss=\",cu_lossr,\"W\"\n", - "print \"the efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 15.001664 kW\n", - "rotor cu loss= 633.402666667 W\n", - "the efficiency= 85.9444669361 %\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.44, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=6\n", - "f=50.0#Hz\n", - "n=960#rpm\n", - "i2=35#A\n", - "loss=1#kW\n", - "\n", - "#calculation\n", - "pm=pout+loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_lossr=pm*s*1000/(1-s)\n", - "r2=cu_lossr/(3*i2**2)\n", - "\n", - "#result\n", - "print \"resistane per phase=\",r2,\"ohm/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistane per phase= 0.222789115646 ohm/phase\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.45, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "sf=Symbol('sf')\n", - "v=400#V\n", - "p=4\n", - "f=50#Hz\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "ratio=4\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "e2=e1/ratio\n", - "sm=r/x\n", - "ns=120*f/p\n", - "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", - "a=r/x\n", - "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", - "n=ns*(1-sf[0])\n", - "tf=tmax/2\n", - "output=2*3.14*n*tf/60\n", - "\n", - "#result\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"full load slip=\",sf[0]\n", - "print \"power output=\",output,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 318.47133758 N-m\n", - "full load slip= 0.0267949192431123\n", - "power output= 24330.1270189222 W\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.46, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "v=200.0#V\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "k=0.67\n", - "s=0.04\n", - "#calculations\n", - "e1=v/3**0.5\n", - "e2=e1*k\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(sm*x)**2)**0.5\n", - "i2=er/zr\n", - "cu_lossr=3*i2**2*r\n", - "output=cu_lossr*(1-sm)/sm\n", - "n=(1-sm)*ns\n", - "tmax=9.55*output/n\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 40.4815391879 N-m\n", - "maximum torque= 63.511037037 N-m\n", - "speed at max torque= 1333.33333333 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.47, Page Number:1293" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "f=50#Hz\n", - "s=0.04\n", - "p=4\n", - "e2=110#V\n", - "\n", - "#calculations\n", - "z=(r**2+x**2)**0.5\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "pf2=r/zr\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "er=s*e2\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"pf of motor at start=\",pf\n", - "print \"pf of motor at s=4%\",pf2\n", - "print \"full load torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf of motor at start= 0.164398987305\n", - "pf of motor at s=4% 0.972387301981\n", - "full load torque= 582.728189612 N-m\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.48, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6.0\n", - "f=50.0#Hz\n", - "tsh=162.84#N-m\n", - "c=90.0\n", - "t=20.36#N-m\n", - "loss=830.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "fr=c/60\n", - "s=fr/f\n", - "n=ns*(1-s)\n", - "output=2*3.14*n*tsh/60\n", - "tg=tsh+t\n", - "p2=tg*ns/9.55\n", - "cu_lossr=s*p2\n", - "p1=p2+cu_lossr\n", - "efficiency=output*100/p1\n", - "\n", - "#result\n", - "print \"motor output=\",output,\"W\"\n", - "print \"cu loss=\",cu_lossr,\"W\"\n", - "print \"motor input\",p1,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 16532.6024 W\n", - "cu loss= 575.497382199 W\n", - "motor input 19758.7434555 W\n", - "efficiency= 83.6723369441 %\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.49, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=420.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "r=1.0#ohm\n", - "z=complex(0.25,0.75)\n", - "zr=complex(0.173,0.52)\n", - "v1=420.0#V\n", - "v2=350.0#V\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=zr.real+k**2*z.real\n", - "x02=zr.imag+k**2*z.imag\n", - "z02=((r+r02)**2+x02**2)**0.5\n", - "i2=v2/(3**0.5*z02)\n", - "cu_loss=i2**2*(r+zr.real)\n", - "p2=cu_loss*3\n", - "ns=120*f/p\n", - "tst=9.55*p2/(ns*9.81)\n", - "#result\n", - "print \"torque=\",tst,\"kg-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 48.2909354778 kg-m\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.50, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "load=37.3#ohm\n", - "v=280#V\n", - "f=50.0#Hz\n", - "i=200#A\n", - "pf=0.25\n", - "r=0.15#ohm\n", - "k=1.0/3\n", - "#calculation\n", - "wsc=2*v*i*pf\n", - "power_phase=v*i*pf\n", - "R=power_phase/i**2\n", - "r2_=R-r\n", - "r2=k**2*r2_\n", - "p2=3*i**2*r2_\n", - "ns=120*f/p\n", - "t=9.55*p2/ns\n", - "\n", - "#result\n", - "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", - "print \"startingtorque=\",t,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", - "startingtorque= 305.6 N-m\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.51, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratios=1.6\n", - "ratiom=2.0\n", - "sf=0.01\n", - "sb=0.04\n", - "#calculation\n", - "i=(ratios/sf)**0.5\n", - "\n", - "#result\n", - "print \"slip at full load=\",sf\n", - "print \"slip at maximum torque=\",sb\n", - "print \"rotor current=\",i" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip at full load= 0.01\n", - "slip at maximum torque= 0.04\n", - "rotor current= 12.6491106407\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.52, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200#km/h\n", - "f=100#Hz\n", - "\n", - "#calculation\n", - "w=v*5.0/18/(2*f)\n", - "\n", - "#result\n", - "print \"pole pitch=\",w*1000,\"mm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pole pitch= 277.777777778 mm\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.53, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "w=6#mm\n", - "f=25#Hz\n", - "p=6#kW\n", - "loss=1.2#kW\n", - "v=2.4#m/s\n", - "\n", - "#calculation\n", - "vs=2*f*w/100\n", - "s=(vs-v)/vs\n", - "p2=p-loss\n", - "pcr=s*p2\n", - "pm=p2-pcr\n", - "f=p2*1000/vs\n", - "\n", - "#result\n", - "print \"synchronous speed=\",vs,\"m/s\"\n", - "print \"slip=\",s\n", - "print \"cu loss=\",pcr,\"kW\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"thrust=\",f/1000,\"kN\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous speed= 3 m/s\n", - "slip= 0.2\n", - "cu loss= 0.96 kW\n", - "mechanical power= 3.84 kW\n", - "thrust= 1.6 kN\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.54, Page Number:1304" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=0.12\n", - "r=0.08#ohm/phase\n", - "pg=9000.0#W\n", - "\n", - "#calculations\n", - "rl=r*(1/s-1)\n", - "v=(pg*rl/3)**0.5\n", - "il=v/rl\n", - "\n", - "#result\n", - "print \"load resistance=\",rl,\"ohm\"\n", - "print \"load voltage=\",v,\"V\"\n", - "print \"load current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load resistance= 0.586666666667 ohm\n", - "load voltage= 41.9523539268 V\n", - "load current= 71.5096941934 A\n" - ] - } - ], - "prompt_number": 166 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.55, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=4\n", - "r1=0.15#ohm\n", - "x1=0.45#ohm\n", - "r2_=0.12#ohm\n", - "x2_=0.45#ohm\n", - "xm=complex(0,28.5)#ohm\n", - "s=0.04\n", - "#calculations\n", - "rl_=r2_*(1/s-1)\n", - "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", - "i0=(v/3**0.5)/xm\n", - "i1=i0+i2_\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "\n", - "#result\n", - "print \"stator current=\",i1,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator current= (74.5730253701-19.1783634605j) A\n", - "power factor= 0.968485280755\n" - ] - } - ], - "prompt_number": 177 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.56, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "f=50#Hz\n", - "power=3.73#kW\n", - "r1=0.45#ohm\n", - "x1=0.8#ohm\n", - "r2_=0.4#ohm\n", - "x2_=0.8#ohm\n", - "b0=-1.0/30\n", - "loss=50#W\n", - "lossr=150#W\n", - "s=0.04\n", - "\n", - "#calculations\n", - "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", - "z01=complex(r1,x1)+zab\n", - "vph=v/3**0.5\n", - "i1=v1/z01\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i1.real**2*zab.real\n", - "pm=(1-s)*p2\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "power_o=pm-lossr\n", - "cu_loss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_loss+cu_lossr+lossr\n", - "efficiency=power_o/(power_o+total_loss)\n", - "\n", - "#result\n", - "print \"input current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"air gap power=\",p2,\"W\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"electro magnetic torque=\",tg,\"N-m\"\n", - "print \"output power=\",power_o,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input current= (21.9914486234+42.6194245913j) A\n", - "pf= 0.45854949826\n", - "air gap power= 5173.46132109 W\n", - "mechanical power= 4966.52286825 W\n", - "electro magnetic torque= 32.9377037443 N-m\n", - "output power= 4816.52286825 W\n", - "efficiency= 81.9644851937 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.57, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "load=37.3#kW\n", - "r1=0.1#ohm\n", - "x1=0.4#ohm\n", - "r2_=0.15#ohm\n", - "x2_=0.44#ohm\n", - "loss=1250#W\n", - "lossr=1000#W\n", - "i=20#A\n", - "pf=0.09\n", - "s=0.03\n", - "\n", - "#calculation\n", - "v1=v/3**0.5\n", - "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", - "i1=i2_+complex(1.78,19.9)\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i2_.real**2*r2_/s\n", - "ns=120*f/p\n", - "tg=9.55*p2/ns\n", - "pm=p2*(1-s)\n", - "pout=pm-1000\n", - "cu_losss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_losss+cu_lossr+lossr\n", - "efficiency=pout/(pout+total_loss)\n", - "\n", - "#result\n", - "print \"line current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"electromagnetic torque=\",tg,\"N-m\"\n", - "print \"output=\",pout,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= (50.2750367599+11.9125821807j) A\n", - "pf= 0.973057118792\n", - "electromagnetic torque= 224.593900377 N-m\n", - "output= 33218.2329894 W\n", - "efficiency= 89.0932246577 %\n" - ] - } - ], - "prompt_number": 186 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.58, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.06,0.2)\n", - "zr=complex(0.06,0.22)\n", - "\n", - "#calculation\n", - "r01=z.real+zr.real\n", - "x01=z.imag+zr.imag\n", - "z01=(r01**2+x01**2)**0.5\n", - "s=z.real/(z.real+z01)\n", - "v1=v/3**0.5\n", - "pmax=3*v1**2/(2*(r01+z01))\n", - "\n", - "#result\n", - "print \"maximum gross power=\",pmax,\"W\"\n", - "print \"slip=\",s" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum gross power= 143676.459572 W\n", - "slip= 0.120771344025\n" - ] - } - ], - "prompt_number": 188 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.59, Page Number:1307" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=115#V\n", - "f=60.0#Hz\n", - "p=6\n", - "z=complex(0.07,0.3)\n", - "zr=complex(0.08,0.3)\n", - "gd=0.022#mho\n", - "bo=0.158#mho\n", - "s=0.02\n", - "\n", - "#calculation\n", - "rl_=1/bo*(1/s-1)\n", - "z=complex(z.real+zr.real+rl_,0.6)\n", - "v=v1/3**0.5\n", - "i2=complex(16,-2.36)\n", - "io=v*complex(gd,-bo)\n", - "i1=io+i2\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "pg=3*abs(i2)**2*rl_/100\n", - "ns=120*f/p\n", - "n=(1-s)*ns\n", - "tg=9.55*pg/n\n", - "p2=3**0.5*v1*abs(i1)*pf\n", - "efficiency=pg*100/p2\n", - "\n", - "#result\n", - "print \"secondary current=\",i2,\"A\"\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"power output=\",pg,\"W\"\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"input=\",p2,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary current= (16-2.36j) A\n", - "primary current= (17.460696181-12.8504543912j) A\n", - "pf= 0.805393212665\n", - "power output= 2433.59058228 W\n", - "torque= 19.7625765823 N-m\n", - "input= 3477.92348593 W\n", - "efficiency= 69.9725164204 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.60, Page Number:1308" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.4,1)\n", - "zr=complex(0.6,1)\n", - "zm=complex(10,50)\n", - "s=0.05\n", - "\n", - "#calculation\n", - "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", - "v1=v/3**0.5\n", - "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", - "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", - "#result\n", - "print \"maximum torque=\",tgmax,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 277.144160399 N-m\n" - ] - } - ], - "prompt_number": 208 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb deleted file mode 100644 index d05f1eeb..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb +++ /dev/null @@ -1,3065 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 34:Induction Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.1, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=290.0#rpm\n", - "f=50.0#Hz\n", - "Ns=300.0#rpm(considered)\n", - "#calculation\n", - "P=120*f/Ns\n", - "s=(Ns-n)/Ns\n", - "\n", - "#result\n", - "print \"no. of poles=\",P\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "no. of poles= 20.0\n", - "slip= 3.33333333333 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.2, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "slot=3\n", - "f=50#Hz\n", - "\n", - "#calculation\n", - "P=2*n\n", - "slots_total=slot*P*n\n", - "Ns=120*f/P\n", - "\n", - "#result\n", - "print \"No. of stator poles=\",P\n", - "print \"Total number of slots=\",slots_total\n", - "print \"Speed=\",Ns,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " No. of stator poles= 6\n", - "Total number of slots= 54\n", - "Speed= 1000 rpm\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.3, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "n=3\n", - "f=50#Hz\n", - "slip1=0.04\n", - "slip2=0.03\n", - "\n", - "#calculation\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip1)\n", - "f1=slip2*f*60\n", - "#at standstill s=1\n", - "f2=1*f\n", - "\n", - "#calculation\n", - "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", - "print \"speed of the rotor when the slip is 0.04=\",N\n", - "print \"frequency of rotor current=\",f1,\"rpm\"\n", - "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at which magnetic field of the stator is rotating= 1500 rpm\n", - "speed of the rotor when the slip is 0.04= 1440.0\n", - "frequency of rotor current= 90.0 rpm\n", - "frequency of the rotor current at standstill= 50 Hz\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.4, Page Number:1255" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3.0\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slip=0.04\n", - "n=600.0#rpm\n", - "\n", - "#calculations\n", - "Ns=120*f/p\n", - "N=Ns*(1-slip)\n", - "s=(Ns-n)/Ns\n", - "f1=s*f\n", - "\n", - "#result\n", - "print \"the synchronous speed=\",Ns,\"rpm\"\n", - "print \"the rotor speed=\",N,\"rpm\"\n", - "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the synchronous speed= 1500.0 rpm\n", - "the rotor speed= 1440.0 rpm\n", - "the rotor frequency when n=600 rpm= 30.0 Hz\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.5, Page Number:1256" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "n=3\n", - "N=500#rpm\n", - "p2=8\n", - "slip=0.03\n", - "\n", - "#calculation\n", - "f=p*N/120\n", - "Ns=120*f/p2\n", - "N=Ns-slip*Ns\n", - "\n", - "#result\n", - "print \"full load speed of the motor=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full load speed of the motor= 727.5 rpm\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.6, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e=80#V\n", - "r=1#ohm\n", - "x=4#ohm\n", - "rheo=3#ohm\n", - "\n", - "#calculation\n", - "E=e/(3)**0.5\n", - "z=(r**2+x**2)**0.5\n", - "i=E/z\n", - "pf=r/z\n", - "R=rheo+r\n", - "z2=(R**2+x**2)**0.5\n", - "i2=E/z2\n", - "\n", - "pf2=R/z2\n", - "\n", - "#result\n", - "print \"slip rings are short circuited:\"\n", - "print \"current/phase\",i,\"A\"\n", - "print \"pf=\",pf\n", - "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", - "print \"current/phase\",i2,\"A\"\n", - "print \"pf=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip rings are short circuited:\n", - "current/phase 11.2022406722 A\n", - "pf= 0.242535625036\n", - "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", - "pf= 0.707106781187\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.7, Page Number:1258" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "v=400#V\n", - "ratio=6.5\n", - "r=0.05#ohm\n", - "x=0.25#ohm\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=v*k/(3**0.5)\n", - "R=x-r\n", - "r2=x\n", - "z=(x**2+r2**2)**0.5\n", - "i2=e2/z\n", - "\n", - "#result\n", - "print \"external resistance=\",R,\"ohm\"\n", - "print \"starting current=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.2 ohm\n", - "starting current= 100.491886883 A\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.8, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=1100#V\n", - "f=50#Hz\n", - "ratio=3.8\n", - "r=0.012#ohm\n", - "x=0.25#ohm\n", - "s=0.04\n", - "#calculation\n", - "e=v/ratio\n", - "z=(r**2+x**2)**0.5\n", - "i=e/z\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "er=s*e\n", - "i2=er/zr\n", - "pf2=r/zr\n", - "i2=100*ratio\n", - "z2=e/i2\n", - "r2=(z2**2-x**2)**0.5\n", - "R=r2-r\n", - "\n", - "#result\n", - "print \"current with slip rings shorted=\",i,\"A\"\n", - "print \"pf with slip rings shorted=\",pf\n", - "print \"current with slip=4% and slip rings shorted=\",i2\n", - "print \"pf withslip=4% and slip rings shorted=\",pf2\n", - "print \"external resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current with slip rings shorted= 1156.56314266 A\n", - "pf with slip rings shorted= 0.0479447993684\n", - "current with slip=4% and slip rings shorted= 380.0\n", - "pf withslip=4% and slip rings shorted= 0.768221279597\n", - "external resistance= 0.70758173952 ohm\n" - ] - } - ], - "prompt_number": 41 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.9, Page Number:1259" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=15#kW\n", - "v=3000#V\n", - "f=50#Hz\n", - "p=6\n", - "ratio=3.6\n", - "r=0.13#ohm\n", - "l=3.61*0.001#H\n", - "\n", - "#calculation\n", - "v=v/3**0.5\n", - "x2=2*3.14*l*f\n", - "k=1/ratio\n", - "r2_=0.1/k**2\n", - "x2_=ratio**2*x2\n", - "is1=v/((r**2+x2_**2)**0.5)\n", - "ns=120*f/p\n", - "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", - "\n", - "#result\n", - "print \"starting current=\",is1,\"A\"\n", - "print \"ts=\",ts,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 117.896733436 A\n", - "ts= 512.375725888 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.10, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "zs=complex(0.4,4)\n", - "zr=complex(6,2)\n", - "v=80#V\n", - "s=0.03\n", - "\n", - "#calculation\n", - "e2=v/3**0.5\n", - "i=e2/abs(zr+zs)\n", - "er=s*e2\n", - "xr=s*zs.imag\n", - "ir=er/abs(complex(zs.real,xr))\n", - "\n", - "#result\n", - "print \"rotor current at standstill=\",i,\"A\"\n", - "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor current at standstill= 5.26498126493 A\n", - "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.11, Page Number:1261" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "e=120#V\n", - "r2=0.3#ohm\n", - "x2=1.5#ohm\n", - "s=0.04\n", - "\n", - "#calculations\n", - "e2=e/3**0.5\n", - "er=s*e2\n", - "xr=s*x2\n", - "zr=(r2**2+xr**2)**0.5\n", - "i=er/zr\n", - "s=r2/x2\n", - "xr=s*x2\n", - "zr=(xr**2+r2**2)**0.5\n", - "er=s*e2\n", - "i2=er/zr\n", - "\n", - "#result\n", - "print \"rotor when running short-circuited=\",i,\"A\"\n", - "print \"slip=\",s\n", - "print \"current when torque is maximum=\",i2,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor when running short-circuited= 9.05821627316 A\n", - "slip= 0.2\n", - "current when torque is maximum= 32.6598632371 A\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.12, Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tb=150.0#kg-m\n", - "n=660.0#rpm\n", - "r=0.5#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "t=tb*(2/((sb/s)+s/sb))\n", - "\n", - "#result\n", - "print \"torque=\",t,\"kg-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 90.0 kg-m\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(a), Page Number:1266" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variablde declaration\n", - "n=3\n", - "vd=0.90\n", - "\n", - "#calculation\n", - "ratio_s=(1/vd)**2\n", - "ratio_i=ratio_s*vd\n", - "cu_loss_increase=ratio_i**2\n", - "\n", - "#result\n", - "print \"increase in motor copper losses=\",cu_loss_increase" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in motor copper losses= 1.23456790123\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.13(b), Page Number:1264" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "p1=15.0#kW\n", - "n=980.0#rpm\n", - "efficiency=0.93\n", - "vd=0.10\n", - "fd=0.05\n", - "\n", - "#calculation\n", - "v2=(1-vd)*v\n", - "f2=(1-fd)*f\n", - "n1=120*f/p\n", - "n2=120*f2/p\n", - "s1=(n1-n)/n1\n", - "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", - "n2=n2*(1-ratio_f)\n", - "p2=p1*n2/n1\n", - "#result\n", - "print \"the new operating speed=\",n2,\"rpm\"\n", - "print \"the new output power=\",p2,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the new operating speed= 935.3795 rpm\n", - "the new output power= 14.0306925 kW\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(a), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=3\n", - "v1=400#V\n", - "v2=200#V\n", - "r=0.06#ohm\n", - "x=0.3#ohm\n", - "a=1\n", - "#calculations\n", - "r=x-r\n", - "\n", - "#result\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "additional resistance= 0.24 ohm\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(b), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "n=3\n", - "f=50#Hz\n", - "p=8\n", - "s=0.02\n", - "r=0.001#ohm\n", - "x=0.005#ohm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "a=r/x\n", - "n2=(1-s)*ns\n", - "ratio=2*s**2*a/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.14(c), Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=12\n", - "v=600#V\n", - "f=50#Hz\n", - "r=0.03#ohm\n", - "x=0.5#ohm\n", - "n=495#rpm\n", - "s=0.01\n", - "#calculation\n", - "Ns=120*f/p\n", - "a=r/x\n", - "n=Ns*(1-a)\n", - "ratio=2*a*s/(a**2+s**2)\n", - "\n", - "#result\n", - "print \"speed of max torque=\",n,\"rpm\"\n", - "print \"ratio of torques=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of max torque= 470.0 rpm\n", - "ratio of torques= 0.324324324324\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.15, Page Number:1267" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=746.0#kW\n", - "f=50.0#Hz\n", - "p=16\n", - "zr=complex(0.02,0.15)\n", - "n=360.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "a=zr.real/zr.imag\n", - "ratio=2*a*s/(a**2+s**2)\n", - "N=ns*(1-a)\n", - "R=zr.imag-zr.real\n", - "\n", - "#result\n", - "print \"ratio of torques=\",ratio\n", - "print \"speed at maximum torque=\",N,\"rpm\"\n", - "print \"rotor resistance=\",R,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 0.550458715596\n", - "speed at maximum torque= 325.0 rpm\n", - "rotor resistance= 0.13 ohm\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.16, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "p=4\n", - "f=50.0#Hz\n", - "r=0.025#ohm\n", - "x=0.12#ohm\n", - "ratio=3.0/4.0\n", - "\n", - "#calculations\n", - "s=r/x\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "a=solve(ratio-(2*a/(1+a**2)),a)\n", - "r=a[0]*x-r\n", - "\n", - "#result\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"additional resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed at maximum torque= 1187.5 rpm\n", - "additional resistance= 0.0291699475574164 ohm\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.17, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "s=0.04\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "p=8\n", - "#calculation\n", - "a=r/x\n", - "t_ratio=2*a*s/(a**2+s**2)\n", - "ns=120*f/p\n", - "n=(1-a)*ns\n", - "\n", - "#result\n", - "print \"ratio of torques=\",1/t_ratio\n", - "print \"speed=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio of torques= 1.45\n", - "speed= 675.0 rpm\n" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.18, Page Number:1268" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "a=Symbol('a')\n", - "a2=Symbol('a2')\n", - "p=3\n", - "t_ratio=2.5\n", - "t_ratio2=1.5\n", - "s=0.03\n", - "\n", - "#calculation\n", - "t_ratio3=t_ratio2/t_ratio\n", - "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", - "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", - "r_red=(a[0]-a2[1])/a[0]\n", - "#result\n", - "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.19, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50#Hz\n", - "r=0.08#ohm\n", - "n=650.0#rpm\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "a=1\n", - "r=a*x2-r\n", - "#result\n", - "print \"extra resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "extra resistance= 0.52 ohm\n" - ] - } - ], - "prompt_number": 51 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.20, Page Number:1269" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "R=Symbol('R')\n", - "p=4\n", - "f=50.0#Hz\n", - "t=162.8#N-m\n", - "n=1365.0#rpm\n", - "r=0.2#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "sb=(ns-n)/ns\n", - "x2=r/sb\n", - "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", - "\n", - "#result\n", - "print \"resistance to be added=\",round(R[0],1),\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance to be added= 0.4 ohm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.21, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "load=7.46#kW\n", - "t_ratios=1.60\n", - "t_ratiom=2.0\n", - "\n", - "#calcualtion\n", - "t_ratio=t_ratios/t_ratiom\n", - "#0.8a2-2*a+0.8 a=0.04\n", - "#0.5=2*a*sf/a2+sf2 sf=0.01\n", - "a=0.04\n", - "sf=0.01\n", - "ns=120*f/p\n", - "n=ns-sf*ns\n", - "N=ns-a*ns\n", - "\n", - "#result\n", - "print \"full-load speed=\",n,\"rpm\"\n", - "print \"speed at maximum torque=\",N,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "full-load speed= 1485.0 rpm\n", - "speed at maximum torque= 1440.0 rpm\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.22, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "v=240#V\n", - "f=50#Hz\n", - "r=0.12#ohm\n", - "x=0.85#ohm\n", - "ratio=1.8\n", - "s=0.04\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e2=k*(v/3**0.5)\n", - "ns=120*f/p\n", - "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "s=r/x\n", - "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", - "n=ns*(1-s)\n", - "\n", - "#result\n", - "print \"developed torque=\",tf,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "developed torque= 52.4097855621 N-m\n", - "maximum torque= 99.9125764956 N-m\n", - "speed at maximum torque= 858.823529412 rpm\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.23, Page Number:1270" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "s=0.03\n", - "\n", - "#calculation\n", - "ns=100#rpm considered\n", - "n=(1-s)*ns\n", - "n2=n/2\n", - "s2=(ns-n2)/ns\n", - "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", - "per=1-1/ratio\n", - "phi=math.atan(s2*x/r)\n", - "pf=math.cos(phi)\n", - "\n", - "#result\n", - "print \"percentage reduction=\",per*100,\"%\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage reduction= 22.8528060715 %\n", - "pf= 0.307902262948\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.26, Page Number:1272" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "p=4\n", - "t=100#N-m\n", - "n=1200#rpm\n", - "\n", - "#calculation\n", - "e2=v/2\n", - "ns=120*f/p\n", - "n=ns-n\n", - "n2=n+ns/2\n", - "\n", - "#result\n", - "print \"stator supply voltage=\",e2,\"V\"\n", - "print \"new speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator supply voltage= 220 V\n", - "new speed= 1050 rpm\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.24, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable delclaration\n", - "v=400.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=1140.0#rpm\n", - "e=440.0#V\n", - "e2=550.0#V\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "s1=(ns-n)/ns\n", - "s2=s1*(e/e2)**2\n", - "n2=ns*(1-s2)\n", - "\n", - "#result\n", - "print \"speed=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed= 1053.6 rpm\n" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.25, Page Number:1274" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=450.0#V\n", - "f=60.0#Hz\n", - "p=8.0\n", - "n=873.0#rpm\n", - "t=23.0#degrees\n", - "n2=864.0#rpm\n", - "alpha=1.0/234.0#per degrees centrigrade\n", - "\n", - "#calculation\n", - "s1=(900-n)/900\n", - "s2=(900-n2)/900\n", - "ratio=s2/s1-1\n", - "t2=(s2/s1-1)/alpha+23 \n", - "\n", - "#result\n", - "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", - "print \"approx temperature=\",t2,\"degrees centigrade\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "increase in rotor resistance= 33.3333333333 %\n", - "approx temperature= 101.0 degrees centigrade\n" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.27, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=500.0#Hz\n", - "p=6.0\n", - "load=80.0#kW\n", - "alt=100.0\n", - "ns=120.0*f/60.0\n", - "#calculation\n", - "s=alt/(60.0*f)\n", - "n=(1-s)*ns\n", - "cu_loss=(1.0/3.0)*load*1000/3.0\n", - "\n", - "#result\n", - "print \"slip=\",s*1000,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 996.666666667 rpm\n", - "rotor copper loss= 0.888888888889 kW\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.28, Page Number:1283" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=4.0\n", - "n=1425.0#rpm\n", - "z=complex(0.4,4)\n", - "ratio=0.8\n", - "loss=500.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=75/ns\n", - "e1=v/3**0.5\n", - "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", - "cu_loss=3*ir**2*z.real\n", - "pm=2*3.4*(n/60)*tf\n", - "pout=pm-loss\n", - "s=z.real/z.imag\n", - "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", - "nmax=ns-s*ns\n", - "i=ratio*e1/abs(z)\n", - "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", - "\n", - "#result\n", - "print \" full load torque=\",tf,\"N-m\"\n", - "print \"rotor current=\",ir,\"A\"\n", - "print \"cu_loss=\",cu_loss,\"W\"\n", - "print \"power output=\",pout,\"W\"\n", - "print \"max torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",nmax,\"rpm\"\n", - "print \"starting current=\",i,\"A\"\n", - "print \"starting torque=\",tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " full load torque= 78.9197452229 N-m\n", - "rotor current= 22.7215022978 A\n", - "cu_loss= 619.52 W\n", - "power output= 12245.5388535 W\n", - "max torque= 98.6496815287 N-m\n", - "speed at max torque= 1350.0 rpm\n", - "starting current= 50.5546790867 A\n", - "starting torque= 19.5345904017 N-m\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.30, Page Number:1286" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60#kW\n", - "loss=1#kW\n", - "s=0.03\n", - "\n", - "#calculations\n", - "p2=load-loss\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2\n", - "rotor_loss=cu_loss*1000/3\n", - "\n", - "#result\n", - "print \"mechanical power developed=\",pm,\"kW\"\n", - "print \"rotor copper loss=\",rotor_loss,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power developed= 57.23 kW\n", - "rotor copper loss= 590.0 W\n" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.31, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=20#KW\n", - "s=0.03\n", - "i=60#A\n", - "\n", - "#calculation\n", - "fr=s*f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss=s*load*1000\n", - "r2=cu_loss/(3*i**2)\n", - "\n", - "#result\n", - "print \"frequency of rotor current=\",fr,\"Hz\"\n", - "print \"rotor copper loss=\",cu_loss,\"W\"\n", - "print \"rotor resistance=\",r2,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of rotor current= 1.5 Hz\n", - "rotor copper loss= 600.0 W\n", - "rotor resistance= 0.0555555555556 ohm\n" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.32, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50#Hz\n", - "load=3.73#KW\n", - "n=960#rpm\n", - "loss=280#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "input_r=load*1000*ns/n\n", - "input_s=input_r+loss\n", - "\n", - "#result\n", - "print \"stator input=\",input_s,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator input= 4165.41666667 W\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.33, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=75.0#KW\n", - "alt=100.0\n", - "\n", - "#calculations\n", - "f1=alt/60\n", - "s=f1/f\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "cu_loss_r_per_phase=s*p2/3\n", - "pm=(1-s)*p2\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", - "print \"mechancal power=\",pm,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.33333333333 %\n", - "rotor speed= 966.666666667 rpm\n", - "rotor copper loss per phase= 0.833333333333 kW\n", - "mechancal power= 72.5 kW\n" - ] - } - ], - "prompt_number": 57 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.34, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=500.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "n=975.0#rpm\n", - "p1=40.0#KW\n", - "loss_s=1.0#kW\n", - "loss=2.0#KW\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "p2=p1-loss_s\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "pout=pm-loss\n", - "efficiency=pout/p1\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor copper loss=\",cu_loss,\"kW\"\n", - "print \"shaft power=\",pout,\"kW\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 2.5 %\n", - "rotor copper loss= 0.975 kW\n", - "shaft power= 36.025 kW\n", - "efficiency= 90.0625 %\n" - ] - } - ], - "prompt_number": 59 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.35, Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "output=100#KW\n", - "v=3300#V\n", - "f=50#Hz\n", - "n=500#rpm\n", - "s=0.018\n", - "pf=0.85\n", - "cu_loss=2440#W\n", - "iron_loss=3500#W\n", - "rotational_loss=1200#W\n", - "\n", - "#calculations\n", - "pm=output+rotational_loss/1000\n", - "cu_loss_r=(s/(1-s))*pm\n", - "p2=pm+cu_loss_r\n", - "input_s=p2+cu_loss/1000+iron_loss/1000\n", - "il=input_s*1000/(3**0.5*v*pf)\n", - "efficiency=output/input_s\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.85132382892 kW\n", - "line current= 22.1989272175 A\n", - "efficiency= 92.7202341611 %\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.36, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "f=50.0#Hz\n", - "p=6.0\n", - "p2=100.0#W\n", - "c=120.0\n", - "\n", - "#calculations\n", - "s=c/(f*60)\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pm=(1-s)*p2\n", - "cu_loss=s*p2/3\n", - "n2=ns-n\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"copper loss=\",cu_loss,\"kW\"\n", - "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 960.0 rpm\n", - "mechanical power= 96.0 kW\n", - "copper loss= 1.33333333333 kW\n", - "speed of stator field with respect to rotor= 40.0 rpm\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.37, Page Number:1288" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "efficiency=0.9\n", - "output=37#kW\n", - "ratio=1.0/3.0\n", - "\n", - "#calculation\n", - "input_m=output*1000/efficiency\n", - "total_loss=input_m-output*1000\n", - "x=total_loss/(3+0.5)\n", - "input_r=output*1000+x/2+x\n", - "s=x/input_r\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 3.0303030303 %\n" - ] - } - ], - "prompt_number": 74 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.38, Page Number:1289" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=6\n", - "load=45#KW\n", - "i=75#A\n", - "s=0.03\n", - "iron_loss=1200#kW\n", - "loss=900#kW\n", - "r=0.12#ohm\n", - "\n", - "#calculations\n", - "pf=load*1000/(3**0.5*v*i)\n", - "r=r*3/2\n", - "cu_loss=3*(i/3**0.5)**2*r\n", - "cu_loss_r=s*42788\n", - "pm=42788-cu_loss_r\n", - "output_s=pm-loss\n", - "efficiency=output_s/(load*1000)\n", - "t=(output_s*60)/(2*3.14*970)\n", - "\n", - "#result\n", - "print \"pf=\",pf\n", - "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", - "print \"p out=\",output_s,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n", - "print \"torque=\",t,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf= 0.866025403784\n", - "rotor cu loss= 1283.64 W\n", - "p out= 40604.36 W\n", - "efficiency= 90.2319111111 %\n", - "torque= 399.937881673 N-m\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(a), Page Number:1287" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=1.75\n", - "s=0.05\n", - "\n", - "#calculations\n", - "k=1/ratio\n", - "e1=v/3**0.5\n", - "e2=k*e1\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "pcr=3*i2**2*r\n", - "pm=pcr*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "n=ns*(1-sm)\n", - "e3=sm*e2\n", - "\n", - "#result\n", - "print \"load torque=\",tg/9.81,\"kg-m\"\n", - "print \"speed at maximum torque=\",n,\"rpm\"\n", - "print \"rotor emf at max torque=\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load torque= 4.26478644041 kg-m\n", - "speed at maximum torque= 1333.33333333 rpm\n", - "rotor emf at max torque= 8.06457518868 V\n" - ] - } - ], - "prompt_number": 88 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.39(b), Page Number:1290" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "p=4\n", - "i=10#A\n", - "pf=0.86\n", - "loss=0.05\n", - "cu_r=0.04\n", - "m_loss=0.03\n", - "\n", - "#calculation\n", - "input_m=3**0.5*v*i*pf\n", - "loss_s=loss*input_m\n", - "input_r=input_m-loss_s\n", - "cu_lossr=cu_r*input_r\n", - "mec_loss=m_loss*input_r\n", - "output_shaft=input_r-cu_lossr-mec_loss\n", - "s=cu_lossr/input_r\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "wr=2*3.14*n/60\n", - "output_r=input_r-cu_lossr\n", - "tr=output_r/wr\n", - "tin=output_shaft/wr\n", - "\n", - "#result\n", - "print \"slip=\",s*100,\"%\"\n", - "print \"rotor speed=\",n,\"rpm\"\n", - "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", - "print \"shaft torque=\",tin,\"Nw-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip= 4.0 %\n", - "rotor speed= 1440.0 rpm\n", - "torque developed in the rotor= 36.0531340072 Nw-m\n", - "shaft torque= 34.9264735695 Nw-m\n" - ] - } - ], - "prompt_number": 91 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.40, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440.0#V\n", - "p=40.0\n", - "f=50.0#Hz\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "ratio=3.5\n", - "s=0.05\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "k=1/ratio\n", - "e2=k*e1\n", - "er=s*e2\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=er/z\n", - "cu_loss=3*i2**2*r\n", - "output=cu_loss*(1-s)/s\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(x*sm)**2)**0.5\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "input_r=cu_loss/sm\n", - "\n", - "#result\n", - "print \"gross output at 5% slip=\",output,\"W\"\n", - "print \"maximum torque=\",input_r,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross output at 5% slip= 6242.77652849 W\n", - "maximum torque= 8780.04535147 W\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.41, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=4.0\n", - "f=50.0#Hz\n", - "loss=0.025\n", - "s=0.04\n", - "\n", - "#calculations\n", - "pw=loss*pout*1000\n", - "pm=pout*1000+pw\n", - "cu_loss=s*pm/(1-s)\n", - "p2=cu_loss/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tsh=9.55*pout*1000/n\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"rotor cu loss=\",cu_loss,\"W\"\n", - "print \"rotor input=\",p2,\"W\"\n", - "print \"shaft torque=\",tsh,\"N-m\"\n", - "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor cu loss= 796.510416667 W\n", - "rotor input= 19912.7604167 W\n", - "shaft torque= 123.685763889 N-m\n", - "gross electromagnetic torque= 126.777907986 N-m\n" - ] - } - ], - "prompt_number": 109 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.42, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "f=50.0#Hz\n", - "n=710#rpm\n", - "load=35#kW\n", - "loss=1200#W\n", - "loss_r=600#W\n", - "\n", - "#calculation\n", - "p2=load*1000-loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_loss=s*p2\n", - "pm=p2-cu_loss\n", - "tg=9.55*pm/n\n", - "pout=pm-loss_r\n", - "tsh=9.55*pout/n\n", - "\n", - "#result\n", - "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", - "print \"gross torque=\",tg,\"N-m\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"net torque=\",tsh,\"N-m\"\n", - "print \"mechanical power output=\",pout,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rotor copper loss= 1.80266666667 kW\n", - "gross torque= 430.386666667 N-m\n", - "mechanical power= 31997.3333333 W\n", - "net torque= 422.316244131 N-m\n", - "mechanical power output= 31397.3333333 W\n" - ] - } - ], - "prompt_number": 113 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.43, Page Number:1292" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "f=50.0#Hz\n", - "s=0.04\n", - "tsh=149.3#N-m\n", - "loss=200#W\n", - "cu_loss=1620#W\n", - "\n", - "#calculations\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "pout=tsh*2*3.14*(n/60)\n", - "output=pout+loss\n", - "p2=output*ns/n\n", - "cu_lossr=p2-output\n", - "p1=p2+cu_loss\n", - "efficiency=pout*100/p1\n", - "\n", - "#result\n", - "print \"output power=\",pout/1000,\"kW\"\n", - "print \"rotor cu loss=\",cu_lossr,\"W\"\n", - "print \"the efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output power= 15.001664 kW\n", - "rotor cu loss= 633.402666667 W\n", - "the efficiency= 85.9444669361 %\n" - ] - } - ], - "prompt_number": 116 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.44, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pout=18.65#kW\n", - "p=6\n", - "f=50.0#Hz\n", - "n=960#rpm\n", - "i2=35#A\n", - "loss=1#kW\n", - "\n", - "#calculation\n", - "pm=pout+loss\n", - "ns=120*f/p\n", - "s=(ns-n)/ns\n", - "cu_lossr=pm*s*1000/(1-s)\n", - "r2=cu_lossr/(3*i2**2)\n", - "\n", - "#result\n", - "print \"resistane per phase=\",r2,\"ohm/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistane per phase= 0.222789115646 ohm/phase\n" - ] - } - ], - "prompt_number": 120 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.45, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "sf=Symbol('sf')\n", - "v=400#V\n", - "p=4\n", - "f=50#Hz\n", - "r=0.01#ohm\n", - "x=0.1#ohm\n", - "ratio=4\n", - "\n", - "#calculation\n", - "e1=v/3**0.5\n", - "e2=e1/ratio\n", - "sm=r/x\n", - "ns=120*f/p\n", - "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", - "a=r/x\n", - "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", - "n=ns*(1-sf[0])\n", - "tf=tmax/2\n", - "output=2*3.14*n*tf/60\n", - "\n", - "#result\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"full load slip=\",sf[0]\n", - "print \"power output=\",output,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 318.47133758 N-m\n", - "full load slip= 0.0267949192431123\n", - "power output= 24330.1270189222 W\n" - ] - } - ], - "prompt_number": 129 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.46, Page Number:1291" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "v=200.0#V\n", - "r=0.1#ohm\n", - "x=0.9#ohm\n", - "k=0.67\n", - "s=0.04\n", - "#calculations\n", - "e1=v/3**0.5\n", - "e2=e1*k\n", - "z=(r**2+(s*x)**2)**0.5\n", - "i2=s*e2/z\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "sm=r/x\n", - "er=sm*e2\n", - "zr=(r**2+(sm*x)**2)**0.5\n", - "i2=er/zr\n", - "cu_lossr=3*i2**2*r\n", - "output=cu_lossr*(1-sm)/sm\n", - "n=(1-sm)*ns\n", - "tmax=9.55*output/n\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"maximum torque=\",tmax,\"N-m\"\n", - "print \"speed at max torque=\",n,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 40.4815391879 N-m\n", - "maximum torque= 63.511037037 N-m\n", - "speed at max torque= 1333.33333333 rpm\n" - ] - } - ], - "prompt_number": 143 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.47, Page Number:1293" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "r=0.015#ohm\n", - "x=0.09#ohm\n", - "f=50#Hz\n", - "s=0.04\n", - "p=4\n", - "e2=110#V\n", - "\n", - "#calculations\n", - "z=(r**2+x**2)**0.5\n", - "pf=r/z\n", - "xr=s*x\n", - "zr=(r**2+xr**2)**0.5\n", - "pf2=r/zr\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "er=s*e2\n", - "i2=er/zr\n", - "cu_loss=3*i2**2*r\n", - "pm=cu_loss*(1-s)/s\n", - "tg=9.55*pm/n\n", - "\n", - "#result\n", - "print \"pf of motor at start=\",pf\n", - "print \"pf of motor at s=4%\",pf2\n", - "print \"full load torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf of motor at start= 0.164398987305\n", - "pf of motor at s=4% 0.972387301981\n", - "full load torque= 582.728189612 N-m\n" - ] - } - ], - "prompt_number": 144 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.48, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6.0\n", - "f=50.0#Hz\n", - "tsh=162.84#N-m\n", - "c=90.0\n", - "t=20.36#N-m\n", - "loss=830.0#W\n", - "\n", - "#calculation\n", - "ns=120*f/p\n", - "fr=c/60\n", - "s=fr/f\n", - "n=ns*(1-s)\n", - "output=2*3.14*n*tsh/60\n", - "tg=tsh+t\n", - "p2=tg*ns/9.55\n", - "cu_lossr=s*p2\n", - "p1=p2+cu_lossr\n", - "efficiency=output*100/p1\n", - "\n", - "#result\n", - "print \"motor output=\",output,\"W\"\n", - "print \"cu loss=\",cu_lossr,\"W\"\n", - "print \"motor input\",p1,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "motor output= 16532.6024 W\n", - "cu loss= 575.497382199 W\n", - "motor input 19758.7434555 W\n", - "efficiency= 83.6723369441 %\n" - ] - } - ], - "prompt_number": 146 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.49, Page Number:1294" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=18.65#kW\n", - "v=420.0#V\n", - "p=6\n", - "f=50.0#Hz\n", - "r=1.0#ohm\n", - "z=complex(0.25,0.75)\n", - "zr=complex(0.173,0.52)\n", - "v1=420.0#V\n", - "v2=350.0#V\n", - "\n", - "#calculations\n", - "k=v2/v1\n", - "r02=zr.real+k**2*z.real\n", - "x02=zr.imag+k**2*z.imag\n", - "z02=((r+r02)**2+x02**2)**0.5\n", - "i2=v2/(3**0.5*z02)\n", - "cu_loss=i2**2*(r+zr.real)\n", - "p2=cu_loss*3\n", - "ns=120*f/p\n", - "tst=9.55*p2/(ns*9.81)\n", - "#result\n", - "print \"torque=\",tst,\"kg-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 48.2909354778 kg-m\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.50, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=8\n", - "load=37.3#ohm\n", - "v=280#V\n", - "f=50.0#Hz\n", - "i=200#A\n", - "pf=0.25\n", - "r=0.15#ohm\n", - "k=1.0/3\n", - "#calculation\n", - "wsc=2*v*i*pf\n", - "power_phase=v*i*pf\n", - "R=power_phase/i**2\n", - "r2_=R-r\n", - "r2=k**2*r2_\n", - "p2=3*i**2*r2_\n", - "ns=120*f/p\n", - "t=9.55*p2/ns\n", - "\n", - "#result\n", - "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", - "print \"startingtorque=\",t,\"N-m\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", - "startingtorque= 305.6 N-m\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.51, Page Number:1295" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ratios=1.6\n", - "ratiom=2.0\n", - "sf=0.01\n", - "sb=0.04\n", - "#calculation\n", - "i=(ratios/sf)**0.5\n", - "\n", - "#result\n", - "print \"slip at full load=\",sf\n", - "print \"slip at maximum torque=\",sb\n", - "print \"rotor current=\",i" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "slip at full load= 0.01\n", - "slip at maximum torque= 0.04\n", - "rotor current= 12.6491106407\n" - ] - } - ], - "prompt_number": 159 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.52, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=200#km/h\n", - "f=100#Hz\n", - "\n", - "#calculation\n", - "w=v*5.0/18/(2*f)\n", - "\n", - "#result\n", - "print \"pole pitch=\",w*1000,\"mm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pole pitch= 277.777777778 mm\n" - ] - } - ], - "prompt_number": 162 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.53, Page Number:1297" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "w=6#mm\n", - "f=25#Hz\n", - "p=6#kW\n", - "loss=1.2#kW\n", - "v=2.4#m/s\n", - "\n", - "#calculation\n", - "vs=2*f*w/100\n", - "s=(vs-v)/vs\n", - "p2=p-loss\n", - "pcr=s*p2\n", - "pm=p2-pcr\n", - "f=p2*1000/vs\n", - "\n", - "#result\n", - "print \"synchronous speed=\",vs,\"m/s\"\n", - "print \"slip=\",s\n", - "print \"cu loss=\",pcr,\"kW\"\n", - "print \"mechanical power=\",pm,\"kW\"\n", - "print \"thrust=\",f/1000,\"kN\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous speed= 3 m/s\n", - "slip= 0.2\n", - "cu loss= 0.96 kW\n", - "mechanical power= 3.84 kW\n", - "thrust= 1.6 kN\n" - ] - } - ], - "prompt_number": 163 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.54, Page Number:1304" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=0.12\n", - "r=0.08#ohm/phase\n", - "pg=9000.0#W\n", - "\n", - "#calculations\n", - "rl=r*(1/s-1)\n", - "v=(pg*rl/3)**0.5\n", - "il=v/rl\n", - "\n", - "#result\n", - "print \"load resistance=\",rl,\"ohm\"\n", - "print \"load voltage=\",v,\"V\"\n", - "print \"load current=\",il,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load resistance= 0.586666666667 ohm\n", - "load voltage= 41.9523539268 V\n", - "load current= 71.5096941934 A\n" - ] - } - ], - "prompt_number": 166 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.55, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "p=4\n", - "r1=0.15#ohm\n", - "x1=0.45#ohm\n", - "r2_=0.12#ohm\n", - "x2_=0.45#ohm\n", - "xm=complex(0,28.5)#ohm\n", - "s=0.04\n", - "#calculations\n", - "rl_=r2_*(1/s-1)\n", - "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", - "i0=(v/3**0.5)/xm\n", - "i1=i0+i2_\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "\n", - "#result\n", - "print \"stator current=\",i1,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "stator current= (74.5730253701-19.1783634605j) A\n", - "power factor= 0.968485280755\n" - ] - } - ], - "prompt_number": 177 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.56, Page Number:1305" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=220#V\n", - "p=4\n", - "f=50#Hz\n", - "power=3.73#kW\n", - "r1=0.45#ohm\n", - "x1=0.8#ohm\n", - "r2_=0.4#ohm\n", - "x2_=0.8#ohm\n", - "b0=-1.0/30\n", - "loss=50#W\n", - "lossr=150#W\n", - "s=0.04\n", - "\n", - "#calculations\n", - "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", - "z01=complex(r1,x1)+zab\n", - "vph=v/3**0.5\n", - "i1=v1/z01\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i1.real**2*zab.real\n", - "pm=(1-s)*p2\n", - "ns=120*f/p\n", - "n=ns*(1-s)\n", - "tg=9.55*pm/n\n", - "power_o=pm-lossr\n", - "cu_loss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_loss+cu_lossr+lossr\n", - "efficiency=power_o/(power_o+total_loss)\n", - "\n", - "#result\n", - "print \"input current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"air gap power=\",p2,\"W\"\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"electro magnetic torque=\",tg,\"N-m\"\n", - "print \"output power=\",power_o,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "input current= (21.9914486234+42.6194245913j) A\n", - "pf= 0.45854949826\n", - "air gap power= 5173.46132109 W\n", - "mechanical power= 4966.52286825 W\n", - "electro magnetic torque= 32.9377037443 N-m\n", - "output power= 4816.52286825 W\n", - "efficiency= 81.9644851937 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.57, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "load=37.3#kW\n", - "r1=0.1#ohm\n", - "x1=0.4#ohm\n", - "r2_=0.15#ohm\n", - "x2_=0.44#ohm\n", - "loss=1250#W\n", - "lossr=1000#W\n", - "i=20#A\n", - "pf=0.09\n", - "s=0.03\n", - "\n", - "#calculation\n", - "v1=v/3**0.5\n", - "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", - "i1=i2_+complex(1.78,19.9)\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "p2=3*i2_.real**2*r2_/s\n", - "ns=120*f/p\n", - "tg=9.55*p2/ns\n", - "pm=p2*(1-s)\n", - "pout=pm-1000\n", - "cu_losss=3*i1.real**2*r1\n", - "cu_lossr=s*p2\n", - "total_loss=loss+cu_losss+cu_lossr+lossr\n", - "efficiency=pout/(pout+total_loss)\n", - "\n", - "#result\n", - "print \"line current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"electromagnetic torque=\",tg,\"N-m\"\n", - "print \"output=\",pout,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line current= (50.2750367599+11.9125821807j) A\n", - "pf= 0.973057118792\n", - "electromagnetic torque= 224.593900377 N-m\n", - "output= 33218.2329894 W\n", - "efficiency= 89.0932246577 %\n" - ] - } - ], - "prompt_number": 186 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.58, Page Number:1306" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.06,0.2)\n", - "zr=complex(0.06,0.22)\n", - "\n", - "#calculation\n", - "r01=z.real+zr.real\n", - "x01=z.imag+zr.imag\n", - "z01=(r01**2+x01**2)**0.5\n", - "s=z.real/(z.real+z01)\n", - "v1=v/3**0.5\n", - "pmax=3*v1**2/(2*(r01+z01))\n", - "\n", - "#result\n", - "print \"maximum gross power=\",pmax,\"W\"\n", - "print \"slip=\",s" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum gross power= 143676.459572 W\n", - "slip= 0.120771344025\n" - ] - } - ], - "prompt_number": 188 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.59, Page Number:1307" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v1=115#V\n", - "f=60.0#Hz\n", - "p=6\n", - "z=complex(0.07,0.3)\n", - "zr=complex(0.08,0.3)\n", - "gd=0.022#mho\n", - "bo=0.158#mho\n", - "s=0.02\n", - "\n", - "#calculation\n", - "rl_=1/bo*(1/s-1)\n", - "z=complex(z.real+zr.real+rl_,0.6)\n", - "v=v1/3**0.5\n", - "i2=complex(16,-2.36)\n", - "io=v*complex(gd,-bo)\n", - "i1=io+i2\n", - "pf=math.cos(math.atan(i1.imag/i1.real))\n", - "pg=3*abs(i2)**2*rl_/100\n", - "ns=120*f/p\n", - "n=(1-s)*ns\n", - "tg=9.55*pg/n\n", - "p2=3**0.5*v1*abs(i1)*pf\n", - "efficiency=pg*100/p2\n", - "\n", - "#result\n", - "print \"secondary current=\",i2,\"A\"\n", - "print \"primary current=\",i1,\"A\"\n", - "print \"pf=\",pf\n", - "print \"power output=\",pg,\"W\"\n", - "print \"torque=\",tg,\"N-m\"\n", - "print \"input=\",p2,\"W\"\n", - "print \"efficiency=\",efficiency,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "secondary current= (16-2.36j) A\n", - "primary current= (17.460696181-12.8504543912j) A\n", - "pf= 0.805393212665\n", - "power output= 2433.59058228 W\n", - "torque= 19.7625765823 N-m\n", - "input= 3477.92348593 W\n", - "efficiency= 69.9725164204 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 34.60, Page Number:1308" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=400#V\n", - "z=complex(0.4,1)\n", - "zr=complex(0.6,1)\n", - "zm=complex(10,50)\n", - "s=0.05\n", - "\n", - "#calculation\n", - "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", - "v1=v/3**0.5\n", - "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", - "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", - "#result\n", - "print \"maximum torque=\",tgmax,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum torque= 277.144160399 N-m\n" - ] - } - ], - "prompt_number": 208 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35.ipynb deleted file mode 100644 index 1c89c3bd..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35.ipynb +++ /dev/null @@ -1,1220 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 35: Computations and Circle Diagrams" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.1, Page Number:1316" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=10#A\n", - "p=450#W\n", - "v=110#V\n", - "r=0.05#ohm\n", - "loss=135#w\n", - "\n", - "#calculations\n", - "cu_loss=3*i**2*r\n", - "core_loss=p-loss-cu_loss\n", - "volt=v/math.sqrt(3)\n", - "g=core_loss/(3*(v/math.sqrt(3))**2)\n", - "y=i*math.sqrt(3)/v\n", - "b=math.sqrt(y**2-g**2)\n", - "\n", - "#result\n", - "print \"exciting conductance=\",g,\"seimens/phase\"\n", - "print \"susceptance/phase=\",b,\"seimens/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "exciting conductance= 0.0247933884298 seimens/phase\n", - "susceptance/phase= 0.155494939853 seimens/phase\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.2, Page Number:1317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=110.0#V\n", - "i=25.0#A\n", - "v2=30.0#V\n", - "inpt=440.0#W\n", - "loss=40.0#W\n", - "r=0.1#ohm\n", - "ratio=1.6\n", - "\n", - "#calculations\n", - "vs=v2/math.sqrt(3)\n", - "z01=vs/i\n", - "losses=inpt-loss\n", - "r01=losses/(3*i**2)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "dc_r=r/2.0\n", - "ac_r=dc_r*ratio\n", - "effective_r=r01-ac_r\n", - "\n", - "#result\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r1=\",ac_r,\"ohm\"\n", - "print \"r2=\",effective_r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "x01= 0.659157711696 ohm\n", - "r1= 0.08 ohm\n", - "r2= 0.133333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.10, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=1/4.0\n", - "slip=3.0\n", - "ratio2=4.0\n", - "\n", - "#calculations\n", - "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", - "\n", - "#result\n", - "print \"Percentage Tapping=\",K*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Percentage Tapping= 72.1687836487 %\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.11, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=14.92#kW\n", - "v1=400#V\n", - "n=950#rpm\n", - "f=50.0#Hz\n", - "v2=400#V\n", - "ratio=1.8\n", - "i=30#A\n", - "\n", - "#calculations\n", - "v=v1/math.sqrt(ratio)\n", - "If=6*v*i/v1\n", - "K=v/v1\n", - "kisc=K**2*6*i\n", - "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", - "\n", - "#result\n", - "print \"a)voltage=\",v,\"V\"\n", - "print \"b)current=\",If,\"A\"\n", - "print \"c)line current=\",kisc,\"A\"\n", - "print \"d)percentage=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)voltage= 298.142397 V\n", - "b)current= 134.16407865 A\n", - "c)line current= 100.0 A\n", - "d)percentage= 30.0 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.12, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=5.0\n", - "per=5\n", - "\n", - "#calculations\n", - "k=math.sqrt(ratio/3)\n", - "tst_tf=(3.0/5)*5**2*0.01*per*100\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",tst_tf,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 75.0 %\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.13, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "per=3.5\n", - "v2=92.0#V\n", - "\n", - "#calculations\n", - "k=math.sqrt(2/(v/v2))\n", - "ts_tf=k**2*(v/v2)**2*0.01*per\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 30.4347826087 %\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.14, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=12.0#kW\n", - "v=440.0#V\n", - "efficiency=0.85\n", - "pf=0.8\n", - "i=45.0#A\n", - "v2=220.0#V\n", - "\n", - "#calculations\n", - "isc=i*v/v2\n", - "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", - "ist=isc/math.sqrt(3)\n", - "ratio=ist/if_\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 2.244\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.15, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=60.0#A\n", - "n1=940.0#rpm\n", - "t=150.0#N-m\n", - "i2=300.0#A\n", - "\n", - "#calculations\n", - "sf=(1000-n1)/1000\n", - "tst=t*(i2/i)**2*sf\n", - "s_i=i2/3\n", - "sd_tst=tst/3\n", - "\n", - "#result\n", - "print \"Starting torque=\",tst,\"N-m\"\n", - "print\"when star/delta is used:\"\n", - "print \"starting current=\",s_i,\"A\"\n", - "print \"starting torque=\",sd_tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Starting torque= 225.0 N-m\n", - "when star/delta is used:\n", - "starting current= 100.0 A\n", - "starting torque= 75.0 N-m\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.16, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "tapping=70.7\n", - "ratio=6.0\n", - "slip=4.0\n", - "\n", - "#calculation\n", - "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", - "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", - "\n", - "#result\n", - "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", - "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "star-delta switch:starting torque= 48.0 %\n", - "auto-transformer switch:starting torque= 72.0 %\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.17, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=11.2#W\n", - "f=50.0#Hz\n", - "v=400.0#V\n", - "n=960.0#rpm\n", - "i=86.4#A\n", - "efficiency=0.88\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "isc=i/math.sqrt(3)\n", - "ist=isc/math.sqrt(3)\n", - "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", - "iph=il/math.sqrt(3)\n", - "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", - "\n", - "#result\n", - "print \"starting torque=\",tst_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting torque= 26.6369577796 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.18, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "output=10.0#kW\n", - "v=400.0#V\n", - "pf=0.85\n", - "efficiency=0.88\n", - "v2=200.0#V\n", - "i=40.0#A\n", - "\n", - "#calculations\n", - "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", - "isc=i*v/v2\n", - "iscp=isc/math.sqrt(3)\n", - "ist=iscp/math.sqrt(3)\n", - "ratio=ist/il\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 1.23388000387\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.19, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.73*1000#W\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "slip=4.5\n", - "t=250.0\n", - "i=650.0\n", - "tap=60.0\n", - "\n", - "#calculation\n", - "il=i/3\n", - "im=i/3\n", - "tst=t/3\n", - "ilm=(tap/100)**2*i\n", - "imk=(tap/100)*i\n", - "tstk=(tap/100)**2*t\n", - "\n", - "#result\n", - "print \"star/delta:\"\n", - "print \"line current=\",il,\"%\"\n", - "print \"motor current=\",im,\"%\"\n", - "print \"starting torque=\",tst,\"%\"\n", - "print \"60% taps:\"\n", - "print \"line current=\",ilm,\"%\"\n", - "print \"motor current=\",imk,\"%\"\n", - "print \"starting torque=\",tstk,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " star/delta:\n", - "line current= 216.666666667 %\n", - "motor current= 216.666666667 %\n", - "starting torque= 83.3333333333 %\n", - "60% taps:\n", - "line current= 234.0 %\n", - "motor current= 390.0 %\n", - "starting torque= 90.0 %\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.20, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=180.0\n", - "flt=35.0\n", - "tap=75.0\n", - "\n", - "#calculations\n", - "isc=load*3.0/100\n", - "isck=tap**2*isc/100\n", - "sf=flt*3\n", - "tst_tf=tap**2*sf/100\n", - "#result\n", - "print \"starting current=\",isck,\"%\"\n", - "print \"starting torque=\",tst_tf/100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 303.75 %\n", - "starting torque= 59.0625 %\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.21, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "w=7.46#kW\n", - "ic=1.7\n", - "t=35.0\n", - "ratio=60.0\n", - "\n", - "#calculations\n", - "sf=t*3/100\n", - "il1=ic*3\n", - "tst=(ratio/1000)**2*sf*10000\n", - "il2=(ratio/100)*3*ic\n", - "\n", - "#results\n", - "print \"auto-starter:\"\n", - "print \"line-current=\",il1,\"%\"\n", - "print \"torque=\",tst,\"%\"\n", - "print \"voltage decreased to 60%\"\n", - "print \"line-current\",il2,\"%\"\n", - "print \"torque=\",tst,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-starter:\n", - "line-current= 5.1 %\n", - "torque= 37.8 %\n", - "voltage decreased to 60%\n", - "line-current 3.06 %\n", - "torque= 37.8 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.22, Page Number:1342" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "slip=2.0\n", - "r=0.02#ohm\n", - "n=6.0\n", - "#calculations\n", - "smax=r2=slip/100.0\n", - "R1=r2/smax\n", - "K=math.pow(smax,1.0/5)\n", - "R2=K*R1\n", - "R3=K*R2\n", - "R4=K*R3\n", - "R5=K*R4\n", - "p1=R1-R2\n", - "p2=R2-R3\n", - "p3=R3-R4\n", - "p4=R4-R5\n", - "p5=R5-r2\n", - "\n", - "#result\n", - "print \"resistances of various starter sections:\"\n", - "print \"p1=\",p1,\"ohm\"\n", - "print \"p2=\",p2,\"ohm\"\n", - "print \"p3=\",p3,\"ohm\"\n", - "print \"p4=\",p4,\"ohm\"\n", - "print \"p5=\",p5,\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistances of various starter sections:\n", - "p1= 0.542694948073 ohm\n", - "p2= 0.248177141409 ohm\n", - "p3= 0.113492660539 ohm\n", - "p4= 0.0519007670213 ohm\n", - "p5= 0.0237344829577 ohm\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.23, Page Number:1345" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "primary=complex(1,3)\n", - "outer=complex(3,1)\n", - "inner=complex(0.6,5)\n", - "s=4\n", - "outer2=complex(3/(s*0.01),1)\n", - "inner2=complex(0.6/(s*0.01),5)\n", - "v=440#V\n", - "\n", - "\n", - "#calculations\n", - "#s=1\n", - "z01=primary+1/((1/outer)+(1/inner))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=1: torque=\",torque,\"synch watt\"\n", - "\n", - "#s=4\n", - "z01=primary+1/((1/outer2)+(1/inner2))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=4: torque=\",torque,\"synch watt\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1: torque= 35065.3642462 synch watt\n", - "s=4: torque= 32129.9449695 synch watt\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.24, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inner=complex(0.4,2)\n", - "outer=complex(2,0.4)\n", - "s=5\n", - "inner2=complex(0.4/(s*0.01),2)\n", - "outer2=complex(2/(s*0.01),0.4)\n", - "print \n", - "#calculations\n", - "#s=1\n", - "zi=abs(inner)\n", - "zo=abs(outer)\n", - "r_ratio=inner.imag/outer.imag\n", - "to_ti=r_ratio*(zo/zi)**2\n", - "print \"Ratio of torques when s=1:\",to_ti\n", - "\n", - "#s=5\n", - "zi=abs(inner2)\n", - "zo=abs(outer2)\n", - "print zi\n", - "r_ratio=inner2.imag/outer2.imag\n", - "to_ti=r_ratio*(zi/zo)**2\n", - "\n", - "print \"Ratio of torques when s=5:\",to_ti" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "Ratio of torques when s=1: 5.0\n", - "8.24621125124\n", - "Ratio of torques when s=5: 0.212478752125\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.25, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s=5\n", - "zi=complex(0.05,0.4)\n", - "zo=complex(0.5,0.1)\n", - "v=100#V\n", - "\n", - "#calculations\n", - "#s=1\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=1:torque=\",t,\"synch watts\"\n", - "\n", - "#s=0.01\n", - "zi=complex(0.05/(s*0.01),0.4)\n", - "zo=complex(0.5/(s*0.01),0.1)\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=5:torque=\",t,\"synch watts\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 22307.6923077 synch watts\n", - "s=5:torque= 9620.58966517 synch watts\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.27, Page Number:1347" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "zo=complex(1,0)\n", - "zi=complex(0.15,3)\n", - "v=250#V\n", - "n=1000#rpm\n", - "\n", - "#calculations\n", - "z2=zo*zi/(zo+zi)\n", - "stator=complex(0.25,3.5)\n", - "z01=z2+stator\n", - "i=complex(v,0)/z01\n", - "i=abs(i)\n", - "cu_loss=i**2*z01.real\n", - "T=cu_loss*3/(2*math.pi*(n/60))\n", - "#result\n", - "print \"torque=\",T,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 135.560320318 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.28, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z1=complex(1,2.8)\n", - "zo=complex(3,1)\n", - "zi=complex(0.5,5)\n", - "v=440#V\n", - "s=0.04\n", - "\n", - "#calculations\n", - "#s=1\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "\n", - "print \"s=1:torque=\",t,\"synch. watt\"\n", - "\n", - "#s=0.04\n", - "zo=complex(3.0/s,1.0)\n", - "zi=complex(0.5/s,5.0)\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "print \"s=4:torque=\",t,\"synch. watt\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 12388.3258184 synch. watt\n", - "s=4:torque= 11489.1141244 synch. watt\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.29, Page Number:1351" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "r=0.30#ohm\n", - "n1=1440.0#rpm\n", - "n2=1320.0#rpm\n", - "ns=120.0*f/4.0\n", - "#calculations\n", - "s1=(ns-n1)/ns\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.6 ohm\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.30, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "s=0.03\n", - "ratio=10.0\n", - "r=0.2\n", - "\n", - "#calculations\n", - "ns=120*f/6\n", - "s1=s\n", - "n1=ns*(1-s1)\n", - "n2=n1-10*n1/100\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.646666666667 ohm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.31, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Variable declaration\n", - "f=50#Hz\n", - "s=0.02\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "n=(1-s)*nsc\n", - "nsa=120*f/6\n", - "sa=(nsa-n)/nsa\n", - "f_=sa*f\n", - "n_=(120*f_)/4\n", - "sb=(n_-n)/n_\n", - "f__=sb*f_\n", - "\n", - "#resu;t\n", - "print \"f_=\",f_,\"Hz\"\n", - "print \"f_ _=\",f__,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "f_= 20.6 Hz\n", - "f_ _= 1.0 Hz\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.32, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "f2=1.0#Hz\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "s=f2/f\n", - "n=nsc-s*nsc\n", - "nsa=120*f/4\n", - "sa=(nsa-n)/nsa\n", - "f1=sa*f\n", - "n2=120*f1/6\n", - "sb=(n2-n)/n2\n", - "\n", - "#result\n", - "print \"sa=\",sa*100,\"%\"\n", - "print \"sb=\",sb*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 60.8 %\n", - "sb= 3.28947368421 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.33, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=74.6#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 29.84 kW\n" - ] - } - ], - "prompt_number": 79 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.34, Page Number:1355" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=25#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 10 kW\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_1.ipynb deleted file mode 100644 index 1c89c3bd..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_1.ipynb +++ /dev/null @@ -1,1220 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 35: Computations and Circle Diagrams" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.1, Page Number:1316" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=10#A\n", - "p=450#W\n", - "v=110#V\n", - "r=0.05#ohm\n", - "loss=135#w\n", - "\n", - "#calculations\n", - "cu_loss=3*i**2*r\n", - "core_loss=p-loss-cu_loss\n", - "volt=v/math.sqrt(3)\n", - "g=core_loss/(3*(v/math.sqrt(3))**2)\n", - "y=i*math.sqrt(3)/v\n", - "b=math.sqrt(y**2-g**2)\n", - "\n", - "#result\n", - "print \"exciting conductance=\",g,\"seimens/phase\"\n", - "print \"susceptance/phase=\",b,\"seimens/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "exciting conductance= 0.0247933884298 seimens/phase\n", - "susceptance/phase= 0.155494939853 seimens/phase\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.2, Page Number:1317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=110.0#V\n", - "i=25.0#A\n", - "v2=30.0#V\n", - "inpt=440.0#W\n", - "loss=40.0#W\n", - "r=0.1#ohm\n", - "ratio=1.6\n", - "\n", - "#calculations\n", - "vs=v2/math.sqrt(3)\n", - "z01=vs/i\n", - "losses=inpt-loss\n", - "r01=losses/(3*i**2)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "dc_r=r/2.0\n", - "ac_r=dc_r*ratio\n", - "effective_r=r01-ac_r\n", - "\n", - "#result\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r1=\",ac_r,\"ohm\"\n", - "print \"r2=\",effective_r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "x01= 0.659157711696 ohm\n", - "r1= 0.08 ohm\n", - "r2= 0.133333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.10, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=1/4.0\n", - "slip=3.0\n", - "ratio2=4.0\n", - "\n", - "#calculations\n", - "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", - "\n", - "#result\n", - "print \"Percentage Tapping=\",K*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Percentage Tapping= 72.1687836487 %\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.11, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=14.92#kW\n", - "v1=400#V\n", - "n=950#rpm\n", - "f=50.0#Hz\n", - "v2=400#V\n", - "ratio=1.8\n", - "i=30#A\n", - "\n", - "#calculations\n", - "v=v1/math.sqrt(ratio)\n", - "If=6*v*i/v1\n", - "K=v/v1\n", - "kisc=K**2*6*i\n", - "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", - "\n", - "#result\n", - "print \"a)voltage=\",v,\"V\"\n", - "print \"b)current=\",If,\"A\"\n", - "print \"c)line current=\",kisc,\"A\"\n", - "print \"d)percentage=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)voltage= 298.142397 V\n", - "b)current= 134.16407865 A\n", - "c)line current= 100.0 A\n", - "d)percentage= 30.0 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.12, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=5.0\n", - "per=5\n", - "\n", - "#calculations\n", - "k=math.sqrt(ratio/3)\n", - "tst_tf=(3.0/5)*5**2*0.01*per*100\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",tst_tf,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 75.0 %\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.13, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "per=3.5\n", - "v2=92.0#V\n", - "\n", - "#calculations\n", - "k=math.sqrt(2/(v/v2))\n", - "ts_tf=k**2*(v/v2)**2*0.01*per\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 30.4347826087 %\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.14, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=12.0#kW\n", - "v=440.0#V\n", - "efficiency=0.85\n", - "pf=0.8\n", - "i=45.0#A\n", - "v2=220.0#V\n", - "\n", - "#calculations\n", - "isc=i*v/v2\n", - "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", - "ist=isc/math.sqrt(3)\n", - "ratio=ist/if_\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 2.244\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.15, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=60.0#A\n", - "n1=940.0#rpm\n", - "t=150.0#N-m\n", - "i2=300.0#A\n", - "\n", - "#calculations\n", - "sf=(1000-n1)/1000\n", - "tst=t*(i2/i)**2*sf\n", - "s_i=i2/3\n", - "sd_tst=tst/3\n", - "\n", - "#result\n", - "print \"Starting torque=\",tst,\"N-m\"\n", - "print\"when star/delta is used:\"\n", - "print \"starting current=\",s_i,\"A\"\n", - "print \"starting torque=\",sd_tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Starting torque= 225.0 N-m\n", - "when star/delta is used:\n", - "starting current= 100.0 A\n", - "starting torque= 75.0 N-m\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.16, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "tapping=70.7\n", - "ratio=6.0\n", - "slip=4.0\n", - "\n", - "#calculation\n", - "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", - "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", - "\n", - "#result\n", - "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", - "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "star-delta switch:starting torque= 48.0 %\n", - "auto-transformer switch:starting torque= 72.0 %\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.17, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=11.2#W\n", - "f=50.0#Hz\n", - "v=400.0#V\n", - "n=960.0#rpm\n", - "i=86.4#A\n", - "efficiency=0.88\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "isc=i/math.sqrt(3)\n", - "ist=isc/math.sqrt(3)\n", - "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", - "iph=il/math.sqrt(3)\n", - "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", - "\n", - "#result\n", - "print \"starting torque=\",tst_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting torque= 26.6369577796 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.18, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "output=10.0#kW\n", - "v=400.0#V\n", - "pf=0.85\n", - "efficiency=0.88\n", - "v2=200.0#V\n", - "i=40.0#A\n", - "\n", - "#calculations\n", - "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", - "isc=i*v/v2\n", - "iscp=isc/math.sqrt(3)\n", - "ist=iscp/math.sqrt(3)\n", - "ratio=ist/il\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 1.23388000387\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.19, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.73*1000#W\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "slip=4.5\n", - "t=250.0\n", - "i=650.0\n", - "tap=60.0\n", - "\n", - "#calculation\n", - "il=i/3\n", - "im=i/3\n", - "tst=t/3\n", - "ilm=(tap/100)**2*i\n", - "imk=(tap/100)*i\n", - "tstk=(tap/100)**2*t\n", - "\n", - "#result\n", - "print \"star/delta:\"\n", - "print \"line current=\",il,\"%\"\n", - "print \"motor current=\",im,\"%\"\n", - "print \"starting torque=\",tst,\"%\"\n", - "print \"60% taps:\"\n", - "print \"line current=\",ilm,\"%\"\n", - "print \"motor current=\",imk,\"%\"\n", - "print \"starting torque=\",tstk,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " star/delta:\n", - "line current= 216.666666667 %\n", - "motor current= 216.666666667 %\n", - "starting torque= 83.3333333333 %\n", - "60% taps:\n", - "line current= 234.0 %\n", - "motor current= 390.0 %\n", - "starting torque= 90.0 %\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.20, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=180.0\n", - "flt=35.0\n", - "tap=75.0\n", - "\n", - "#calculations\n", - "isc=load*3.0/100\n", - "isck=tap**2*isc/100\n", - "sf=flt*3\n", - "tst_tf=tap**2*sf/100\n", - "#result\n", - "print \"starting current=\",isck,\"%\"\n", - "print \"starting torque=\",tst_tf/100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 303.75 %\n", - "starting torque= 59.0625 %\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.21, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "w=7.46#kW\n", - "ic=1.7\n", - "t=35.0\n", - "ratio=60.0\n", - "\n", - "#calculations\n", - "sf=t*3/100\n", - "il1=ic*3\n", - "tst=(ratio/1000)**2*sf*10000\n", - "il2=(ratio/100)*3*ic\n", - "\n", - "#results\n", - "print \"auto-starter:\"\n", - "print \"line-current=\",il1,\"%\"\n", - "print \"torque=\",tst,\"%\"\n", - "print \"voltage decreased to 60%\"\n", - "print \"line-current\",il2,\"%\"\n", - "print \"torque=\",tst,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-starter:\n", - "line-current= 5.1 %\n", - "torque= 37.8 %\n", - "voltage decreased to 60%\n", - "line-current 3.06 %\n", - "torque= 37.8 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.22, Page Number:1342" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "slip=2.0\n", - "r=0.02#ohm\n", - "n=6.0\n", - "#calculations\n", - "smax=r2=slip/100.0\n", - "R1=r2/smax\n", - "K=math.pow(smax,1.0/5)\n", - "R2=K*R1\n", - "R3=K*R2\n", - "R4=K*R3\n", - "R5=K*R4\n", - "p1=R1-R2\n", - "p2=R2-R3\n", - "p3=R3-R4\n", - "p4=R4-R5\n", - "p5=R5-r2\n", - "\n", - "#result\n", - "print \"resistances of various starter sections:\"\n", - "print \"p1=\",p1,\"ohm\"\n", - "print \"p2=\",p2,\"ohm\"\n", - "print \"p3=\",p3,\"ohm\"\n", - "print \"p4=\",p4,\"ohm\"\n", - "print \"p5=\",p5,\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistances of various starter sections:\n", - "p1= 0.542694948073 ohm\n", - "p2= 0.248177141409 ohm\n", - "p3= 0.113492660539 ohm\n", - "p4= 0.0519007670213 ohm\n", - "p5= 0.0237344829577 ohm\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.23, Page Number:1345" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "primary=complex(1,3)\n", - "outer=complex(3,1)\n", - "inner=complex(0.6,5)\n", - "s=4\n", - "outer2=complex(3/(s*0.01),1)\n", - "inner2=complex(0.6/(s*0.01),5)\n", - "v=440#V\n", - "\n", - "\n", - "#calculations\n", - "#s=1\n", - "z01=primary+1/((1/outer)+(1/inner))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=1: torque=\",torque,\"synch watt\"\n", - "\n", - "#s=4\n", - "z01=primary+1/((1/outer2)+(1/inner2))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=4: torque=\",torque,\"synch watt\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1: torque= 35065.3642462 synch watt\n", - "s=4: torque= 32129.9449695 synch watt\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.24, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inner=complex(0.4,2)\n", - "outer=complex(2,0.4)\n", - "s=5\n", - "inner2=complex(0.4/(s*0.01),2)\n", - "outer2=complex(2/(s*0.01),0.4)\n", - "print \n", - "#calculations\n", - "#s=1\n", - "zi=abs(inner)\n", - "zo=abs(outer)\n", - "r_ratio=inner.imag/outer.imag\n", - "to_ti=r_ratio*(zo/zi)**2\n", - "print \"Ratio of torques when s=1:\",to_ti\n", - "\n", - "#s=5\n", - "zi=abs(inner2)\n", - "zo=abs(outer2)\n", - "print zi\n", - "r_ratio=inner2.imag/outer2.imag\n", - "to_ti=r_ratio*(zi/zo)**2\n", - "\n", - "print \"Ratio of torques when s=5:\",to_ti" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "Ratio of torques when s=1: 5.0\n", - "8.24621125124\n", - "Ratio of torques when s=5: 0.212478752125\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.25, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s=5\n", - "zi=complex(0.05,0.4)\n", - "zo=complex(0.5,0.1)\n", - "v=100#V\n", - "\n", - "#calculations\n", - "#s=1\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=1:torque=\",t,\"synch watts\"\n", - "\n", - "#s=0.01\n", - "zi=complex(0.05/(s*0.01),0.4)\n", - "zo=complex(0.5/(s*0.01),0.1)\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=5:torque=\",t,\"synch watts\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 22307.6923077 synch watts\n", - "s=5:torque= 9620.58966517 synch watts\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.27, Page Number:1347" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "zo=complex(1,0)\n", - "zi=complex(0.15,3)\n", - "v=250#V\n", - "n=1000#rpm\n", - "\n", - "#calculations\n", - "z2=zo*zi/(zo+zi)\n", - "stator=complex(0.25,3.5)\n", - "z01=z2+stator\n", - "i=complex(v,0)/z01\n", - "i=abs(i)\n", - "cu_loss=i**2*z01.real\n", - "T=cu_loss*3/(2*math.pi*(n/60))\n", - "#result\n", - "print \"torque=\",T,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 135.560320318 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.28, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z1=complex(1,2.8)\n", - "zo=complex(3,1)\n", - "zi=complex(0.5,5)\n", - "v=440#V\n", - "s=0.04\n", - "\n", - "#calculations\n", - "#s=1\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "\n", - "print \"s=1:torque=\",t,\"synch. watt\"\n", - "\n", - "#s=0.04\n", - "zo=complex(3.0/s,1.0)\n", - "zi=complex(0.5/s,5.0)\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "print \"s=4:torque=\",t,\"synch. watt\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 12388.3258184 synch. watt\n", - "s=4:torque= 11489.1141244 synch. watt\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.29, Page Number:1351" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "r=0.30#ohm\n", - "n1=1440.0#rpm\n", - "n2=1320.0#rpm\n", - "ns=120.0*f/4.0\n", - "#calculations\n", - "s1=(ns-n1)/ns\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.6 ohm\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.30, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "s=0.03\n", - "ratio=10.0\n", - "r=0.2\n", - "\n", - "#calculations\n", - "ns=120*f/6\n", - "s1=s\n", - "n1=ns*(1-s1)\n", - "n2=n1-10*n1/100\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.646666666667 ohm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.31, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Variable declaration\n", - "f=50#Hz\n", - "s=0.02\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "n=(1-s)*nsc\n", - "nsa=120*f/6\n", - "sa=(nsa-n)/nsa\n", - "f_=sa*f\n", - "n_=(120*f_)/4\n", - "sb=(n_-n)/n_\n", - "f__=sb*f_\n", - "\n", - "#resu;t\n", - "print \"f_=\",f_,\"Hz\"\n", - "print \"f_ _=\",f__,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "f_= 20.6 Hz\n", - "f_ _= 1.0 Hz\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.32, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "f2=1.0#Hz\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "s=f2/f\n", - "n=nsc-s*nsc\n", - "nsa=120*f/4\n", - "sa=(nsa-n)/nsa\n", - "f1=sa*f\n", - "n2=120*f1/6\n", - "sb=(n2-n)/n2\n", - "\n", - "#result\n", - "print \"sa=\",sa*100,\"%\"\n", - "print \"sb=\",sb*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 60.8 %\n", - "sb= 3.28947368421 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.33, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=74.6#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 29.84 kW\n" - ] - } - ], - "prompt_number": 79 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.34, Page Number:1355" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=25#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 10 kW\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb deleted file mode 100644 index 1c89c3bd..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb +++ /dev/null @@ -1,1220 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 35: Computations and Circle Diagrams" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.1, Page Number:1316" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=10#A\n", - "p=450#W\n", - "v=110#V\n", - "r=0.05#ohm\n", - "loss=135#w\n", - "\n", - "#calculations\n", - "cu_loss=3*i**2*r\n", - "core_loss=p-loss-cu_loss\n", - "volt=v/math.sqrt(3)\n", - "g=core_loss/(3*(v/math.sqrt(3))**2)\n", - "y=i*math.sqrt(3)/v\n", - "b=math.sqrt(y**2-g**2)\n", - "\n", - "#result\n", - "print \"exciting conductance=\",g,\"seimens/phase\"\n", - "print \"susceptance/phase=\",b,\"seimens/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "exciting conductance= 0.0247933884298 seimens/phase\n", - "susceptance/phase= 0.155494939853 seimens/phase\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.2, Page Number:1317" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=110.0#V\n", - "i=25.0#A\n", - "v2=30.0#V\n", - "inpt=440.0#W\n", - "loss=40.0#W\n", - "r=0.1#ohm\n", - "ratio=1.6\n", - "\n", - "#calculations\n", - "vs=v2/math.sqrt(3)\n", - "z01=vs/i\n", - "losses=inpt-loss\n", - "r01=losses/(3*i**2)\n", - "x01=math.sqrt(z01**2-r01**2)\n", - "dc_r=r/2.0\n", - "ac_r=dc_r*ratio\n", - "effective_r=r01-ac_r\n", - "\n", - "#result\n", - "print \"x01=\",x01,\"ohm\"\n", - "print \"r1=\",ac_r,\"ohm\"\n", - "print \"r2=\",effective_r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "x01= 0.659157711696 ohm\n", - "r1= 0.08 ohm\n", - "r2= 0.133333333333 ohm\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.10, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=1/4.0\n", - "slip=3.0\n", - "ratio2=4.0\n", - "\n", - "#calculations\n", - "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", - "\n", - "#result\n", - "print \"Percentage Tapping=\",K*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Percentage Tapping= 72.1687836487 %\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.11, Page Number:1333" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=14.92#kW\n", - "v1=400#V\n", - "n=950#rpm\n", - "f=50.0#Hz\n", - "v2=400#V\n", - "ratio=1.8\n", - "i=30#A\n", - "\n", - "#calculations\n", - "v=v1/math.sqrt(ratio)\n", - "If=6*v*i/v1\n", - "K=v/v1\n", - "kisc=K**2*6*i\n", - "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", - "\n", - "#result\n", - "print \"a)voltage=\",v,\"V\"\n", - "print \"b)current=\",If,\"A\"\n", - "print \"c)line current=\",kisc,\"A\"\n", - "print \"d)percentage=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)voltage= 298.142397 V\n", - "b)current= 134.16407865 A\n", - "c)line current= 100.0 A\n", - "d)percentage= 30.0 %\n" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.12, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "ratio=5.0\n", - "per=5\n", - "\n", - "#calculations\n", - "k=math.sqrt(ratio/3)\n", - "tst_tf=(3.0/5)*5**2*0.01*per*100\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",tst_tf,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 75.0 %\n" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.13, Page Number:1334" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V\n", - "per=3.5\n", - "v2=92.0#V\n", - "\n", - "#calculations\n", - "k=math.sqrt(2/(v/v2))\n", - "ts_tf=k**2*(v/v2)**2*0.01*per\n", - "\n", - "#result\n", - "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-transformation ratio= 30.4347826087 %\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.14, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=12.0#kW\n", - "v=440.0#V\n", - "efficiency=0.85\n", - "pf=0.8\n", - "i=45.0#A\n", - "v2=220.0#V\n", - "\n", - "#calculations\n", - "isc=i*v/v2\n", - "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", - "ist=isc/math.sqrt(3)\n", - "ratio=ist/if_\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 2.244\n" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.15, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "i=60.0#A\n", - "n1=940.0#rpm\n", - "t=150.0#N-m\n", - "i2=300.0#A\n", - "\n", - "#calculations\n", - "sf=(1000-n1)/1000\n", - "tst=t*(i2/i)**2*sf\n", - "s_i=i2/3\n", - "sd_tst=tst/3\n", - "\n", - "#result\n", - "print \"Starting torque=\",tst,\"N-m\"\n", - "print\"when star/delta is used:\"\n", - "print \"starting current=\",s_i,\"A\"\n", - "print \"starting torque=\",sd_tst,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Starting torque= 225.0 N-m\n", - "when star/delta is used:\n", - "starting current= 100.0 A\n", - "starting torque= 75.0 N-m\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.16, Page Number:1336" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "tapping=70.7\n", - "ratio=6.0\n", - "slip=4.0\n", - "\n", - "#calculation\n", - "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", - "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", - "\n", - "#result\n", - "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", - "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "star-delta switch:starting torque= 48.0 %\n", - "auto-transformer switch:starting torque= 72.0 %\n" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.17, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=11.2#W\n", - "f=50.0#Hz\n", - "v=400.0#V\n", - "n=960.0#rpm\n", - "i=86.4#A\n", - "efficiency=0.88\n", - "pf=0.85\n", - "\n", - "#calculations\n", - "isc=i/math.sqrt(3)\n", - "ist=isc/math.sqrt(3)\n", - "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", - "iph=il/math.sqrt(3)\n", - "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", - "\n", - "#result\n", - "print \"starting torque=\",tst_tf*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting torque= 26.6369577796 %\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.18, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "output=10.0#kW\n", - "v=400.0#V\n", - "pf=0.85\n", - "efficiency=0.88\n", - "v2=200.0#V\n", - "i=40.0#A\n", - "\n", - "#calculations\n", - "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", - "isc=i*v/v2\n", - "iscp=isc/math.sqrt(3)\n", - "ist=iscp/math.sqrt(3)\n", - "ratio=ist/il\n", - "\n", - "#result\n", - "print \"ratio=\",ratio" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "ratio= 1.23388000387\n" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.19, Page Number:1337" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.73*1000#W\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "slip=4.5\n", - "t=250.0\n", - "i=650.0\n", - "tap=60.0\n", - "\n", - "#calculation\n", - "il=i/3\n", - "im=i/3\n", - "tst=t/3\n", - "ilm=(tap/100)**2*i\n", - "imk=(tap/100)*i\n", - "tstk=(tap/100)**2*t\n", - "\n", - "#result\n", - "print \"star/delta:\"\n", - "print \"line current=\",il,\"%\"\n", - "print \"motor current=\",im,\"%\"\n", - "print \"starting torque=\",tst,\"%\"\n", - "print \"60% taps:\"\n", - "print \"line current=\",ilm,\"%\"\n", - "print \"motor current=\",imk,\"%\"\n", - "print \"starting torque=\",tstk,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " star/delta:\n", - "line current= 216.666666667 %\n", - "motor current= 216.666666667 %\n", - "starting torque= 83.3333333333 %\n", - "60% taps:\n", - "line current= 234.0 %\n", - "motor current= 390.0 %\n", - "starting torque= 90.0 %\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.20, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=180.0\n", - "flt=35.0\n", - "tap=75.0\n", - "\n", - "#calculations\n", - "isc=load*3.0/100\n", - "isck=tap**2*isc/100\n", - "sf=flt*3\n", - "tst_tf=tap**2*sf/100\n", - "#result\n", - "print \"starting current=\",isck,\"%\"\n", - "print \"starting torque=\",tst_tf/100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "starting current= 303.75 %\n", - "starting torque= 59.0625 %\n" - ] - } - ], - "prompt_number": 68 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.21, Page Number:1338" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "w=7.46#kW\n", - "ic=1.7\n", - "t=35.0\n", - "ratio=60.0\n", - "\n", - "#calculations\n", - "sf=t*3/100\n", - "il1=ic*3\n", - "tst=(ratio/1000)**2*sf*10000\n", - "il2=(ratio/100)*3*ic\n", - "\n", - "#results\n", - "print \"auto-starter:\"\n", - "print \"line-current=\",il1,\"%\"\n", - "print \"torque=\",tst,\"%\"\n", - "print \"voltage decreased to 60%\"\n", - "print \"line-current\",il2,\"%\"\n", - "print \"torque=\",tst,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "auto-starter:\n", - "line-current= 5.1 %\n", - "torque= 37.8 %\n", - "voltage decreased to 60%\n", - "line-current 3.06 %\n", - "torque= 37.8 %\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.22, Page Number:1342" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "slip=2.0\n", - "r=0.02#ohm\n", - "n=6.0\n", - "#calculations\n", - "smax=r2=slip/100.0\n", - "R1=r2/smax\n", - "K=math.pow(smax,1.0/5)\n", - "R2=K*R1\n", - "R3=K*R2\n", - "R4=K*R3\n", - "R5=K*R4\n", - "p1=R1-R2\n", - "p2=R2-R3\n", - "p3=R3-R4\n", - "p4=R4-R5\n", - "p5=R5-r2\n", - "\n", - "#result\n", - "print \"resistances of various starter sections:\"\n", - "print \"p1=\",p1,\"ohm\"\n", - "print \"p2=\",p2,\"ohm\"\n", - "print \"p3=\",p3,\"ohm\"\n", - "print \"p4=\",p4,\"ohm\"\n", - "print \"p5=\",p5,\"ohm\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "resistances of various starter sections:\n", - "p1= 0.542694948073 ohm\n", - "p2= 0.248177141409 ohm\n", - "p3= 0.113492660539 ohm\n", - "p4= 0.0519007670213 ohm\n", - "p5= 0.0237344829577 ohm\n" - ] - } - ], - "prompt_number": 107 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.23, Page Number:1345" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "primary=complex(1,3)\n", - "outer=complex(3,1)\n", - "inner=complex(0.6,5)\n", - "s=4\n", - "outer2=complex(3/(s*0.01),1)\n", - "inner2=complex(0.6/(s*0.01),5)\n", - "v=440#V\n", - "\n", - "\n", - "#calculations\n", - "#s=1\n", - "z01=primary+1/((1/outer)+(1/inner))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=1: torque=\",torque,\"synch watt\"\n", - "\n", - "#s=4\n", - "z01=primary+1/((1/outer2)+(1/inner2))\n", - "current_per_phase=v/abs(z01)\n", - "torque=3*current_per_phase**2*(z01.real-1)\n", - "\n", - "print \"s=4: torque=\",torque,\"synch watt\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1: torque= 35065.3642462 synch watt\n", - "s=4: torque= 32129.9449695 synch watt\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.24, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inner=complex(0.4,2)\n", - "outer=complex(2,0.4)\n", - "s=5\n", - "inner2=complex(0.4/(s*0.01),2)\n", - "outer2=complex(2/(s*0.01),0.4)\n", - "print \n", - "#calculations\n", - "#s=1\n", - "zi=abs(inner)\n", - "zo=abs(outer)\n", - "r_ratio=inner.imag/outer.imag\n", - "to_ti=r_ratio*(zo/zi)**2\n", - "print \"Ratio of torques when s=1:\",to_ti\n", - "\n", - "#s=5\n", - "zi=abs(inner2)\n", - "zo=abs(outer2)\n", - "print zi\n", - "r_ratio=inner2.imag/outer2.imag\n", - "to_ti=r_ratio*(zi/zo)**2\n", - "\n", - "print \"Ratio of torques when s=5:\",to_ti" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n", - "Ratio of torques when s=1: 5.0\n", - "8.24621125124\n", - "Ratio of torques when s=5: 0.212478752125\n" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.25, Page Number:1346" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s=5\n", - "zi=complex(0.05,0.4)\n", - "zo=complex(0.5,0.1)\n", - "v=100#V\n", - "\n", - "#calculations\n", - "#s=1\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=1:torque=\",t,\"synch watts\"\n", - "\n", - "#s=0.01\n", - "zi=complex(0.05/(s*0.01),0.4)\n", - "zo=complex(0.5/(s*0.01),0.1)\n", - "z=zo*zi/(zo+zi)\n", - "r2=z.real\n", - "z=abs(z)\n", - "i2=v/z\n", - "t=i2**2*r2\n", - "print \"s=5:torque=\",t,\"synch watts\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 22307.6923077 synch watts\n", - "s=5:torque= 9620.58966517 synch watts\n" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.27, Page Number:1347" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "zo=complex(1,0)\n", - "zi=complex(0.15,3)\n", - "v=250#V\n", - "n=1000#rpm\n", - "\n", - "#calculations\n", - "z2=zo*zi/(zo+zi)\n", - "stator=complex(0.25,3.5)\n", - "z01=z2+stator\n", - "i=complex(v,0)/z01\n", - "i=abs(i)\n", - "cu_loss=i**2*z01.real\n", - "T=cu_loss*3/(2*math.pi*(n/60))\n", - "#result\n", - "print \"torque=\",T,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 135.560320318 N-m\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.28, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z1=complex(1,2.8)\n", - "zo=complex(3,1)\n", - "zi=complex(0.5,5)\n", - "v=440#V\n", - "s=0.04\n", - "\n", - "#calculations\n", - "#s=1\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "\n", - "print \"s=1:torque=\",t,\"synch. watt\"\n", - "\n", - "#s=0.04\n", - "zo=complex(3.0/s,1.0)\n", - "zi=complex(0.5/s,5.0)\n", - "z2=zo*zi/(zo+zi)\n", - "z01=z1+z2\n", - "i2=v/z01\n", - "r2=z2.real\n", - "t=abs(i2)**2*r2\n", - "print \"s=4:torque=\",t,\"synch. watt\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "s=1:torque= 12388.3258184 synch. watt\n", - "s=4:torque= 11489.1141244 synch. watt\n" - ] - } - ], - "prompt_number": 58 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.29, Page Number:1351" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "r=0.30#ohm\n", - "n1=1440.0#rpm\n", - "n2=1320.0#rpm\n", - "ns=120.0*f/4.0\n", - "#calculations\n", - "s1=(ns-n1)/ns\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.6 ohm\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.30, Page Number:1348" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "s=0.03\n", - "ratio=10.0\n", - "r=0.2\n", - "\n", - "#calculations\n", - "ns=120*f/6\n", - "s1=s\n", - "n1=ns*(1-s1)\n", - "n2=n1-10*n1/100\n", - "s2=(ns-n2)/ns\n", - "r=s2*r/s1-r\n", - "\n", - "#result\n", - "print \"external resistance=\",r,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "external resistance= 0.646666666667 ohm\n" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.31, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Variable declaration\n", - "f=50#Hz\n", - "s=0.02\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "n=(1-s)*nsc\n", - "nsa=120*f/6\n", - "sa=(nsa-n)/nsa\n", - "f_=sa*f\n", - "n_=(120*f_)/4\n", - "sb=(n_-n)/n_\n", - "f__=sb*f_\n", - "\n", - "#resu;t\n", - "print \"f_=\",f_,\"Hz\"\n", - "print \"f_ _=\",f__,\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "f_= 20.6 Hz\n", - "f_ _= 1.0 Hz\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.32, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "f2=1.0#Hz\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "s=f2/f\n", - "n=nsc-s*nsc\n", - "nsa=120*f/4\n", - "sa=(nsa-n)/nsa\n", - "f1=sa*f\n", - "n2=120*f1/6\n", - "sb=(n2-n)/n2\n", - "\n", - "#result\n", - "print \"sa=\",sa*100,\"%\"\n", - "print \"sb=\",sb*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sa= 60.8 %\n", - "sb= 3.28947368421 %\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.33, Page Number:1354" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=74.6#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 29.84 kW\n" - ] - } - ], - "prompt_number": 79 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 35.34, Page Number:1355" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "load=25#kW\n", - "\n", - "#calculations\n", - "nsc=120*f/10\n", - "output=load*4/10\n", - "\n", - "#result\n", - "print \"speed of set=\",nsc,\"rpm\"\n", - "print \"electric power transferred=\",output,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "speed of set= 600 rpm\n", - "electric power transferred= 10 kW\n" - ] - } - ], - "prompt_number": 78 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36.ipynb deleted file mode 100644 index a28f10ba..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36.ipynb +++ /dev/null @@ -1,393 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 36: Single-Phase Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.1, Page Number:1374" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "R1=1.86\n", - "X1=2.56\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "v=110\n", - "f=60\n", - "s=0.05\n", - "\n", - "#calculations\n", - "xo=xm+x2\n", - "\n", - "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "Jf=math.degrees(math.atan(jf/zf))\n", - "\n", - "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", - "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", - "Jb=math.degrees(math.atan(jb/zb))\n", - "\n", - "Z1=R1\n", - "J1=X1\n", - "z01=Z1+zf+zb\n", - "j01=jf+jb+J1\n", - "J01=math.degrees(math.atan(j01/z01))\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zb\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "output=t*(1-s)\n", - "\n", - "#result\n", - "print \"output = \",output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output = 206.798750547\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 36.2, Page Number:1375" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "p=185\n", - "v=110\n", - "f=50\n", - "s=0.05\n", - "R1=1.86\n", - "X1=2.56\n", - "Xo=53.5\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "cl=3.5#core loss\n", - "fl=13.5#friction loss\n", - "vf=(82.5/100)*v\n", - "ic=(cl*100)/vf\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "rc=vf/ic\n", - "\n", - "#calculations\n", - "\n", - "#motor 1\n", - "c=1/rc #conductance of corebranch\n", - "s=-(1/xm)#susceptance\n", - "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", - "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", - "yf=c+a1\n", - "yfj=s+a1j\n", - "zf=(yf*yf)+(yfj*yfj)\n", - "zfr=yf/zf\n", - "zfj=yfj/zf\n", - "\n", - "#motor 2\n", - "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "Z1=R1\n", - "J1=X1\n", - "yb=yf+a2\n", - "ybj=yfj+a2j\n", - "zb1=(yb*yb)+(ybj*ybj)\n", - "zbr=yb/zb1\n", - "zbj=ybj/zb1\n", - "z01=Z1+zf+zbr\n", - "z01j=J1+zfj+zbj\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zbr\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "watt=t*(1-s)\n", - "net_output=watt-fl\n", - "\n", - "#result\n", - "print \"Net output = \",net_output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net output = -446.423232085\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.3, Page Number:1376" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "w=250\n", - "v=230\n", - "f=50\n", - "zm=4.5\n", - "zmj=3.7\n", - "za=9.5\n", - "zaj=3.5\n", - "\n", - "#calculations\n", - "zma=math.degrees(math.atan(zmj/zm))\n", - "ialeadv=90-zma\n", - "x=za*(math.tan(math.radians(ialeadv)))\n", - "xc=x+zaj\n", - "c=1000000/(xc*2*50*3.14)\n", - "\n", - "#result\n", - "print \"C= \",c,\" uf\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "C= 211.551875951 uf\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.4, Page Number:1393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "\n", - "p=250\n", - "f=50\n", - "v=220\n", - "ndc=2000\n", - "ia=1\n", - "ra=20\n", - "la=0.4\n", - "\n", - "#calculations\n", - "ebdc=v-(ia*ra)\n", - "#ac\n", - "xa=2*3.14*f*la\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "nac=(ebac*ndc)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "pmech=ebac*ia\n", - "T=(pmech*9.55)/nac\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Torque= \",T,\" N-m\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1606.22922133 rpm\n", - "Torque= 0.955 N-m\n", - "Power Factor= 0.821013282424 lag\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "Example Number 36.5, Page Number:1394" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "r=30\n", - "l=0.5\n", - "v=250\n", - "idc=0.8\n", - "ndc=2000\n", - "f=50\n", - "ia=0.8\n", - "\n", - "#calculations\n", - "\n", - "xa=2*3.14*f*l\n", - "ra=r\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "ebdc=v-(r*idc)\n", - "nac=(ndc*ebac)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1700.52062383 rpm\n", - "Power Factor= 0.864635321971 lag\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.6, Page Number:1396" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "f=50\n", - "a=30\n", - "w=8\n", - "v=220\n", - "v2=205\n", - "pole=4\n", - "\n", - "#calculations\n", - "\n", - "ns=(120*f)/pole\n", - "tsh=(9.55*w*1000)/ns\n", - "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", - "\n", - "#result\n", - "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_1.ipynb deleted file mode 100644 index a28f10ba..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_1.ipynb +++ /dev/null @@ -1,393 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 36: Single-Phase Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.1, Page Number:1374" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "R1=1.86\n", - "X1=2.56\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "v=110\n", - "f=60\n", - "s=0.05\n", - "\n", - "#calculations\n", - "xo=xm+x2\n", - "\n", - "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "Jf=math.degrees(math.atan(jf/zf))\n", - "\n", - "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", - "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", - "Jb=math.degrees(math.atan(jb/zb))\n", - "\n", - "Z1=R1\n", - "J1=X1\n", - "z01=Z1+zf+zb\n", - "j01=jf+jb+J1\n", - "J01=math.degrees(math.atan(j01/z01))\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zb\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "output=t*(1-s)\n", - "\n", - "#result\n", - "print \"output = \",output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output = 206.798750547\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 36.2, Page Number:1375" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "p=185\n", - "v=110\n", - "f=50\n", - "s=0.05\n", - "R1=1.86\n", - "X1=2.56\n", - "Xo=53.5\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "cl=3.5#core loss\n", - "fl=13.5#friction loss\n", - "vf=(82.5/100)*v\n", - "ic=(cl*100)/vf\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "rc=vf/ic\n", - "\n", - "#calculations\n", - "\n", - "#motor 1\n", - "c=1/rc #conductance of corebranch\n", - "s=-(1/xm)#susceptance\n", - "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", - "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", - "yf=c+a1\n", - "yfj=s+a1j\n", - "zf=(yf*yf)+(yfj*yfj)\n", - "zfr=yf/zf\n", - "zfj=yfj/zf\n", - "\n", - "#motor 2\n", - "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "Z1=R1\n", - "J1=X1\n", - "yb=yf+a2\n", - "ybj=yfj+a2j\n", - "zb1=(yb*yb)+(ybj*ybj)\n", - "zbr=yb/zb1\n", - "zbj=ybj/zb1\n", - "z01=Z1+zf+zbr\n", - "z01j=J1+zfj+zbj\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zbr\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "watt=t*(1-s)\n", - "net_output=watt-fl\n", - "\n", - "#result\n", - "print \"Net output = \",net_output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net output = -446.423232085\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.3, Page Number:1376" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "w=250\n", - "v=230\n", - "f=50\n", - "zm=4.5\n", - "zmj=3.7\n", - "za=9.5\n", - "zaj=3.5\n", - "\n", - "#calculations\n", - "zma=math.degrees(math.atan(zmj/zm))\n", - "ialeadv=90-zma\n", - "x=za*(math.tan(math.radians(ialeadv)))\n", - "xc=x+zaj\n", - "c=1000000/(xc*2*50*3.14)\n", - "\n", - "#result\n", - "print \"C= \",c,\" uf\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "C= 211.551875951 uf\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.4, Page Number:1393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "\n", - "p=250\n", - "f=50\n", - "v=220\n", - "ndc=2000\n", - "ia=1\n", - "ra=20\n", - "la=0.4\n", - "\n", - "#calculations\n", - "ebdc=v-(ia*ra)\n", - "#ac\n", - "xa=2*3.14*f*la\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "nac=(ebac*ndc)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "pmech=ebac*ia\n", - "T=(pmech*9.55)/nac\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Torque= \",T,\" N-m\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1606.22922133 rpm\n", - "Torque= 0.955 N-m\n", - "Power Factor= 0.821013282424 lag\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "Example Number 36.5, Page Number:1394" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "r=30\n", - "l=0.5\n", - "v=250\n", - "idc=0.8\n", - "ndc=2000\n", - "f=50\n", - "ia=0.8\n", - "\n", - "#calculations\n", - "\n", - "xa=2*3.14*f*l\n", - "ra=r\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "ebdc=v-(r*idc)\n", - "nac=(ndc*ebac)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1700.52062383 rpm\n", - "Power Factor= 0.864635321971 lag\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.6, Page Number:1396" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "f=50\n", - "a=30\n", - "w=8\n", - "v=220\n", - "v2=205\n", - "pole=4\n", - "\n", - "#calculations\n", - "\n", - "ns=(120*f)/pole\n", - "tsh=(9.55*w*1000)/ns\n", - "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", - "\n", - "#result\n", - "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb deleted file mode 100644 index a28f10ba..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb +++ /dev/null @@ -1,393 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 36: Single-Phase Motors" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.1, Page Number:1374" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "R1=1.86\n", - "X1=2.56\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "v=110\n", - "f=60\n", - "s=0.05\n", - "\n", - "#calculations\n", - "xo=xm+x2\n", - "\n", - "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", - "Jf=math.degrees(math.atan(jf/zf))\n", - "\n", - "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", - "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", - "Jb=math.degrees(math.atan(jb/zb))\n", - "\n", - "Z1=R1\n", - "J1=X1\n", - "z01=Z1+zf+zb\n", - "j01=jf+jb+J1\n", - "J01=math.degrees(math.atan(j01/z01))\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zb\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "output=t*(1-s)\n", - "\n", - "#result\n", - "print \"output = \",output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output = 206.798750547\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Example Number 36.2, Page Number:1375" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "p=185\n", - "v=110\n", - "f=50\n", - "s=0.05\n", - "R1=1.86\n", - "X1=2.56\n", - "Xo=53.5\n", - "R2=3.56\n", - "X2=2.56\n", - "Xm=53.5\n", - "cl=3.5#core loss\n", - "fl=13.5#friction loss\n", - "vf=(82.5/100)*v\n", - "ic=(cl*100)/vf\n", - "r1=R1/2\n", - "x1=X1/2\n", - "r2=R2/2\n", - "x2=X2/2\n", - "xm=Xm/2\n", - "rc=vf/ic\n", - "\n", - "#calculations\n", - "\n", - "#motor 1\n", - "c=1/rc #conductance of corebranch\n", - "s=-(1/xm)#susceptance\n", - "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", - "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", - "yf=c+a1\n", - "yfj=s+a1j\n", - "zf=(yf*yf)+(yfj*yfj)\n", - "zfr=yf/zf\n", - "zfj=yfj/zf\n", - "\n", - "#motor 2\n", - "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "Z1=R1\n", - "J1=X1\n", - "yb=yf+a2\n", - "ybj=yfj+a2j\n", - "zb1=(yb*yb)+(ybj*ybj)\n", - "zbr=yb/zb1\n", - "zbj=ybj/zb1\n", - "z01=Z1+zf+zbr\n", - "z01j=J1+zfj+zbj\n", - "\n", - "i1=v/z01\n", - "vf=i1*zf\n", - "vb=i1*zbr\n", - "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", - "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", - "\n", - "i3=vf/z3\n", - "i5=vb/z5\n", - "tf=(i3*i3*r2)/s\n", - "tb=t5=(i5*i5*r2)/(2-s)\n", - "t=tf-tb\n", - "watt=t*(1-s)\n", - "net_output=watt-fl\n", - "\n", - "#result\n", - "print \"Net output = \",net_output" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Net output = -446.423232085\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.3, Page Number:1376" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "w=250\n", - "v=230\n", - "f=50\n", - "zm=4.5\n", - "zmj=3.7\n", - "za=9.5\n", - "zaj=3.5\n", - "\n", - "#calculations\n", - "zma=math.degrees(math.atan(zmj/zm))\n", - "ialeadv=90-zma\n", - "x=za*(math.tan(math.radians(ialeadv)))\n", - "xc=x+zaj\n", - "c=1000000/(xc*2*50*3.14)\n", - "\n", - "#result\n", - "print \"C= \",c,\" uf\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "C= 211.551875951 uf\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.4, Page Number:1393" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "\n", - "#variable declaration\n", - "\n", - "p=250\n", - "f=50\n", - "v=220\n", - "ndc=2000\n", - "ia=1\n", - "ra=20\n", - "la=0.4\n", - "\n", - "#calculations\n", - "ebdc=v-(ia*ra)\n", - "#ac\n", - "xa=2*3.14*f*la\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "nac=(ebac*ndc)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "pmech=ebac*ia\n", - "T=(pmech*9.55)/nac\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Torque= \",T,\" N-m\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1606.22922133 rpm\n", - "Torque= 0.955 N-m\n", - "Power Factor= 0.821013282424 lag\n" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "Example Number 36.5, Page Number:1394" - ], - "language": "python", - "metadata": {}, - "outputs": [] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "r=30\n", - "l=0.5\n", - "v=250\n", - "idc=0.8\n", - "ndc=2000\n", - "f=50\n", - "ia=0.8\n", - "\n", - "#calculations\n", - "\n", - "xa=2*3.14*f*l\n", - "ra=r\n", - "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", - "ebdc=v-(r*idc)\n", - "nac=(ndc*ebac)/ebdc\n", - "cos_phi=(ebac+(ia*ra))/v\n", - "\n", - "#result\n", - "print \"Speed= \",nac,\" rpm\"\n", - "print \"Power Factor= \",cos_phi,\" lag\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Speed= 1700.52062383 rpm\n", - "Power Factor= 0.864635321971 lag\n" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 36.6, Page Number:1396" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "\n", - "#variable declaration\n", - "f=50\n", - "a=30\n", - "w=8\n", - "v=220\n", - "v2=205\n", - "pole=4\n", - "\n", - "#calculations\n", - "\n", - "ns=(120*f)/pole\n", - "tsh=(9.55*w*1000)/ns\n", - "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", - "\n", - "#result\n", - "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37.ipynb deleted file mode 100644 index 7e0be0a9..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37.ipynb +++ /dev/null @@ -1,2781 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 37: Alternators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.1, Page Number:1412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s1=36.0\n", - "p1=4.0\n", - "span1=8.0\n", - "s2=72.0\n", - "p2=6.0\n", - "span2=10.0\n", - "s3=96.0\n", - "p3=6.0\n", - "span3=12.0\n", - "\n", - "#calculations\n", - "alpha1=2*p1*180/s1\n", - "alpha2=3*p2*180/s2\n", - "alpha3=5*p3*180/s3\n", - "kc1=math.cos(math.radians(alpha1/2))\n", - "kc2=math.cos(math.radians(alpha2/2))\n", - "kc3=math.cos(math.radians(alpha3/2))\n", - "\n", - "#result\n", - "print \"a)kc=\",kc1\n", - "print \"b)kc=\",kc2\n", - "print \"c)kc=\",kc3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)kc= 0.939692620786\n", - "b)kc= 0.923879532511\n", - "c)kc= 0.881921264348\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.2, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=36.0\n", - "p=4.0\n", - "\n", - "#calculations\n", - "n=s/p\n", - "beta=180/n\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"distribution factor=\",kd" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "distribution factor= 0.959795080524\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.3, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=10.0#V\n", - "beta=30.0#degrees\n", - "m=6.0\n", - "\n", - "#calculations\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "arith_sum=6*v\n", - "vector_sum=kd*arith_sum\n", - "\n", - "#calculation\n", - "print \"emf of six coils in series=\",vector_sum,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf of six coils in series= 38.6370330516 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.4, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "beta=180/9\n", - "ratio=2.0/3.0\n", - "m1=9\n", - "m2=6\n", - "m3=3\n", - "\n", - "#calculation\n", - "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", - "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"i) kd=\",kd1\n", - "print \"ii)kd=\",kd2\n", - "print \"iii)kd=\",kd3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) kd= 0.639863387016\n", - "ii)kd= 0.831206922161\n", - "iii)kd= 0.959795080524\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.5, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "slot=18.0\n", - "s=16.0\n", - "m1=3.0\n", - "m2=5.0\n", - "m3=7.0\n", - "\n", - "#calculations\n", - "span=(s-1)\n", - "alpha=180*3/slot\n", - "kc1=math.cos(math.radians(alpha/2))\n", - "kc3=math.cos(math.radians(m1*alpha/2))\n", - "kc5=math.cos(math.radians(m2*alpha/2))\n", - "kc7=math.cos(math.radians(m3*alpha/2))\n", - "\n", - "#result\n", - "print \"kc1=\",kc1\n", - "print \"kc3=\",kc3\n", - "print \"kc5=\",kc5\n", - "print \"kc7=\",kc7" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kc1= 0.965925826289\n", - "kc3= 0.707106781187\n", - "kc5= 0.258819045103\n", - "kc7= -0.258819045103\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.6, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "s=144.0\n", - "z=10.0\n", - "phi=0.03#Wb\n", - "n=375.0#rpm\n", - "\n", - "#calculation\n", - "f=p*n/120\n", - "n=s/p\n", - "beta=180/9\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "t=s*z/(3*2)\n", - "eph=4.44*1*0.96*f*phi*t\n", - "el=3**0.5*eph\n", - "#result\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"phase emf=\",eph,\"V\"\n", - "print \"line emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 50.0 Hz\n", - "phase emf= 1534.464 V\n", - "line emf= 2657.76961039 V\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.7, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "s=54\n", - "phi=0.1#Wb\n", - "n=1200#rpm\n", - "t=8\n", - "#calculations\n", - "beta=180/9\n", - "kc=math.cos(beta/2)\n", - "f=p*n/120\n", - "n=s/p\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=s*8/3\n", - "t=z/2\n", - "eph=4.44*0.98*0.96*f*phi*t\n", - "el=3**0.*eph\n", - "\n", - "#result\n", - "print \"eph=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eph= 1804.529664 V\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.8, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "slots=144.0\n", - "z=4.0\n", - "n=375.0\n", - "airgap=5*0.01\n", - "theta=150.0\n", - "\n", - "#calculation\n", - "kf=1.11\n", - "alpha=(180-theta)\n", - "kc=math.cos(math.radians(alpha/2))\n", - "beta=180/9\n", - "m=slots/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "f=p*n/120\n", - "s=slots/3\n", - "eph=4*kf*kc*kd*f*airgap*s*4/2\n", - "\n", - "#result\n", - "print \"emf per phase=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf per phase= 987.908016392 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.9, Page Number:1417" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10\n", - "f=50#Hz\n", - "n=600#rpm\n", - "slots=180\n", - "s=15\n", - "d=1.2#m\n", - "l=0.4#m\n", - "m=6\n", - "beta=180/18\n", - "#calculations\n", - "area=(1.2*3.14/p)*l\n", - "phi1=area*0.637\n", - "vr=1.1*2*f*phi1\n", - "vp=2**0.5*vr\n", - "v3=0.4*vp\n", - "v5=0.2*vp\n", - "vf=6*vp*0.966\n", - "vf3=6*v3*0.707\n", - "vf5=6*v5*0.259\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", - "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", - "vph=vf*2**0.5*60*kd1\n", - "vph3=vf3*2**0.5*60*kd2\n", - "vph5=vf5*2**0.5*60*kd3\n", - "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", - "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", - "\n", - "#result\n", - "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", - "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", - "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", - "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", - "iii)rms value of phase voltage= 7158.83679423 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.10, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "slot=60.0\n", - "z=4.0\n", - "s=3.0\n", - "theta=60.0\n", - "phi=0.943#Wb\n", - "\n", - "#calculation\n", - "m=slot/(p*s)\n", - "beta=slot/5\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "alpha=(s/15)*180\n", - "kc=math.cos(math.radians(alpha/2))\n", - "z=slot*z/s\n", - "t=z/2\n", - "kf=1.11\n", - "eph=z*kf*kc*kd*f*phi*t/2\n", - "el=3**0.5*eph*0.1\n", - "\n", - "#result\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage= 13196.4478482 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.11, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slot=15.0\n", - "z=10.0\n", - "kd=0.95\n", - "e=1825#v\n", - "kc=1\n", - "kf=1.11\n", - "#calculations\n", - "slots=p*slot\n", - "slotsp=slots/3\n", - "turnp=20*z/2\n", - "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", - "z=slots*z\n", - "n=120*f/p\n", - "eg=(phi*0.001*z*n)/slots\n", - "\n", - "#result\n", - "print \"emf=\",eg*1000,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 749.405577006 V\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.12, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=360#V\n", - "f=60.0#Hz\n", - "i=3.6#A\n", - "f2=40#Hz\n", - "i2=2.4#A\n", - "\n", - "#calculations\n", - "e2=v*i2*f2/(f*i)\n", - "\n", - "#result\n", - "print \"e2=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e2= 160.0 V\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.13, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=0\n", - "f=50.0#Hz\n", - "slot=2\n", - "z=4\n", - "theta=150#degrees\n", - "phi=0.12#Wb\n", - "per=20#%\n", - "\n", - "#calculations\n", - "alpha=180-theta\n", - "slotp=6\n", - "m=2\n", - "beta=180/slotp\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=10*slot*z\n", - "t=z/2\n", - "e1=4.44*kd1*kd1*f*0.12*t\n", - "kc3=math.cos(3*math.radians(alpha/2))\n", - "f2=f*3\n", - "phi3=(1.0/3)*per*0.12\n", - "e3=4.44*kd3*kd3*theta*0.008*40\n", - "e=(e1**2+e3**2)**0.5\n", - "\n", - "#result\n", - "print \"e=\",e,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e= 994.25286629 V\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.14, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "per=10.0#%\n", - "per2=6.0#%\n", - "f=50.0#Hz\n", - "r=10.0#ohm\n", - "\n", - "#calculation\n", - "#star connection\n", - "e5=per*v/100\n", - "e=(v**2+e5**2)**0.5\n", - "eph=3**0.5*e\n", - "\n", - "#delta\n", - "e3=10*v/100\n", - "f3=10*3\n", - "i=e3/f3\n", - "\n", - "#result\n", - "print \"line voltage for star=\",eph,\"V\"\n", - "print \"line voltage for delta=\",e3,\"V\"\n", - "print \"current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage for star= 400.358589267 V\n", - "line voltage for delta= 23.0 V\n", - "current= 0.766666666667 A\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(a), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10.0\n", - "p1=24.0\n", - "f=25#Hz\n", - "p3=6.0\n", - "s=0.05\n", - "\n", - "#calculation\n", - "n=120*f/p\n", - "f1=p1*n/120\n", - "n2=120*f1/6\n", - "n3=(1-s)*n2\n", - "f2=s*f1p\n", - "\n", - "\n", - "#result\n", - "print \"frequency=\",f1,\"Hz\"\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 60.0 Hz\n", - "speed= 1140.0 rpm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(b), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "phi=0.12#Wb\n", - "slotsp=4\n", - "cp=4\n", - "theta=150#degrees\n", - "\n", - "#calculation\n", - "slots=slotsp*3*p\n", - "c=cp*slots\n", - "turns=32\n", - "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", - "kp=math.cos(math.radians(15))\n", - "eph=4.44*50*0.12*kb*0.966*turns\n", - "el=eph*3**0.5\n", - "\n", - "#result\n", - "print \"line voltage\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage 1365.94840977 V\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.16, Page Number:1426" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.85\n", - "v=11#kV\n", - "r=0.1#ohm\n", - "x=0.66#ohm\n", - "\n", - "#calculation\n", - "i=load*10**6/(3**0.5*v*1000*pf)\n", - "iradrop=i*r\n", - "ixsdrop=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", - "el=3**0.5*e0\n", - "\n", - "#result\n", - "print \"linevalue of emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "linevalue of emf= 11475.6408913 V\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(a), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=50.0#Hz\n", - "load=440.0#KVA\n", - "r=0.5#ohm\n", - "i=40.0#A\n", - "il=200.0#A\n", - "vf=1160.0#V\n", - "\n", - "#calculations\n", - "zs=vf/200\n", - "xs=(zs**2-r**2)**0.5\n", - "\n", - "#result\n", - "print \"synchronous impedence=\",zs,\"ohm\"\n", - "print \"synchronous reactance=\",xs,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous impedence= 5.8 ohm\n", - "synchronous reactance= 5.77840808528 ohm\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(b), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60.0#kVA\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.016#ohm\n", - "x=0.07#ohm\n", - "pf=0.7\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "ira=i*r\n", - "ixl=i*x\n", - "#unity pf\n", - "e=((v+ira)**2+(ixl)**2)**0.5\n", - "#pf of 0.7 lag\n", - "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", - "#pf of 0.7 lead\n", - "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", - "\n", - "#result\n", - "print \"voltage with pf=1\",e,\"V\"\n", - "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", - "print \"voltage with pf=0.7 lead\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage with pf=1 225.174386048 V\n", - "voltage with pf=0.7 lag 234.604995966 V\n", - "voltage with pf=0.7 lead 208.03726621 V\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.18(a), Page Number:1429" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=440.0#V\n", - "f=50.0#Hz\n", - "r=0.25#ohm\n", - "x=3.2#ohm\n", - "xl=0.5#ohm\n", - "\n", - "#calculation\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "rd=i*r\n", - "ixl=i*xl\n", - "ea=((v+rd)**2+(ixl)**2)**0.5\n", - "el=3**0.5*ea\n", - "e0=((v+rd)**2+(i*x)**2)**0.5\n", - "e0l=e0*3**0.5\n", - "per=(e0-v)/v\n", - "xa=x-xl\n", - "#result\n", - "print \"internal emf Ea=\",el,\"V\"\n", - "print \"no load emf=\",e0l,\"V\"\n", - "print \"percentage regulation=\",per*100,\"%\"\n", - "print \"valueof synchronous reactance=\",xa,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "internal emf Ea= 471.842539659 V\n", - "no load emf= 592.991130967 V\n", - "percentage regulation= 34.7707115833 %\n", - "valueof synchronous reactance= 2.7 ohm\n" - ] - } - ], - "prompt_number": 87 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.19, Page Number:1432" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=50.0#V\n", - "r=0.1#ohm\n", - "il=100.0#A\n", - "pf=0.8\n", - "vt=200.0#V\n", - "\n", - "#calculation\n", - "zs=v/vt\n", - "xs=(zs**2-r**2)**0.5\n", - "ira=il*r\n", - "ixs=il*xs\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "\n", - "#result\n", - "print \"induced voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced voltage= 222.090276316 V\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.20, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2000.0#V\n", - "i=100.0#A\n", - "pf=0.8\n", - "pf2=0.71\n", - "i2=2.5#A\n", - "v2=500.0#V\n", - "r=0.8#ohm\n", - "\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "sinphi2=math.sin(math.acos(pf2))\n", - "zs=v2/i\n", - "xs=(zs**2-r**2)**.5\n", - "#unity pf\n", - "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", - "reg1=(e01-v)*100/v\n", - "#at pf=0.8\n", - "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v)*100/v\n", - "#at pf=0.71\n", - "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", - "reg3=(e03-v)*100/v\n", - "\n", - "#result\n", - "print \"voltage regulation unity pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", - "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.6\n", - "voltage regulation unity pf= 6.88779163216 %\n", - "voltage regulation 0.8 lag pf= -8.875640156 %\n", - "voltage regulation 0.71 lead pf= 21.1141910671 %\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.21, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=3000.0#V\n", - "load=100.0#kVA\n", - "f=50.0#Hz\n", - "r=0.2\n", - "i1=40.0#A\n", - "i2=200.0#A\n", - "v2=1040.0#V\n", - "pf=0.8\n", - "v1=v/3**0.5\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**.5\n", - "i=load*1000/(3**0.5*v)\n", - "\n", - "\n", - "#at pf=0.8 lag\n", - "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", - "reg1=(e01-v1)*100/v1\n", - "#at pf=0.8 lead\n", - "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v1)*100/v1\n", - "\n", - "#result\n", - "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation 0.8 lag pf= 2.20611574348 %\n", - "voltage regulation 0.8 lag pf= -1.77945143824 %\n" - ] - } - ], - "prompt_number": 112 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.22, Page Number:1434" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1600.0#kVA\n", - "v=13500.0#V\n", - "r=1.5#ohm\n", - "x=30.0#ohm\n", - "load1=1280.0#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi1=math.sin(math.acos(pf))\n", - "i=load1*1000/(3**0.5*v*pf)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", - "regn=(e0-vp)*100/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= -11.9909032489 %\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.23, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "pf=0.8\n", - "r=0.5#ohm\n", - "x=10.0#ohm\n", - "\n", - "#calculations\n", - "i=load*1000/(3**0.5*v)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", - "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", - "\n", - "#result\n", - "print \"voltage regulation=\",regn*100,\"%\"\n", - "print \"power angle=\",delta,\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 48.0405877623 %\n", - "power angle= 18.9704078085 degrees\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.24, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6000.0#KVA\n", - "v=6600.0#V\n", - "p=2.0\n", - "f=50.0#Hz\n", - "i2=125.0#A\n", - "v1=8000.0#V\n", - "i3=800.0#A\n", - "d=0.03\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v1/(3**0.5*i3)\n", - "vp=v/3**0.5\n", - "rd=d*vp\n", - "il=load*1000/(3**0.5*v)\n", - "ira=rd\n", - "ra=ira/il\n", - "xs=(zs**2-ra**2)**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", - "reg=(e0-vp)/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",reg*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= 62.2972136768 %\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.25, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "load=2000#KVA\n", - "v=2300#V\n", - "i=600#A\n", - "v2=900#V\n", - "r=0.12#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i)\n", - "rp=r/2\n", - "re=rp*1.5\n", - "xs=(zs**2-re**2)**0.5\n", - "il=load*1000/(3**0.5*v)\n", - "ira=il*rp\n", - "ixs=il*xs\n", - "vp=v/3**0.5\n", - "e0=((vp+ira)**2+(ixs)**2)**0.5\n", - "reg1=(e0-vp)/vp\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "reg2=(e0-vp)/vp\n", - "#result\n", - "print \"regulation at pf=1\",reg1*100,\"%\"\n", - "print \"regulation at pf=0.8\",reg2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=1 7.32796146323 %\n", - "regulation at pf=0.8 23.8398862235 %\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.26, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=Symbol('v')\n", - "load=2000#KVA\n", - "load1=11#KV\n", - "r=0.3#ohm\n", - "x=5#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "i=load*1000/(3**0.5*load1*1000)\n", - "vt=load1*1000/3**0.5\n", - "ira=i*r\n", - "ixs=i*x\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v[1],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 6978.31767618569 V\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.27, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1200#KVA\n", - "load1=3.3#KV\n", - "f=50#Hz\n", - "r=0.25#ohm\n", - "i=35#A\n", - "i2=200#A\n", - "v=1.1#kV\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zs=v*1000/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**0.5\n", - "v=load1*1000/3**0.5\n", - "theta=math.atan(xs/r)\n", - "ia=load*1000/(3**0.5*load1*1000)\n", - "e=v+ia*zs\n", - "change=(e-v)/v\n", - "\n", - "#result\n", - "print \"per unit change=\",change" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "per unit change= 0.349909254054\n" - ] - } - ], - "prompt_number": 151 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.28, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11#kV\n", - "load=3#MVA\n", - "i=100#A\n", - "v2=12370#V\n", - "vt=11000#V\n", - "pf=0.8\n", - "r=0.4#ohm\n", - "\n", - "#calculation\n", - "E0=v1*1000/3**0.5\n", - "v=v2/3**0.5\n", - "pf=0\n", - "sinphi=1\n", - "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", - "il=load*10**6/(3**0.5*v1*1000)\n", - "ira=il*r\n", - "ixs=il*xs\n", - "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", - "regn=(e0-E0)*100/E0\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 19.6180576177 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.29, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pf=0.8\n", - "vt=3500#v\n", - "load=2280#KW\n", - "v1=3300#V\n", - "r=8#ohm\n", - "x=6#ohm\n", - "\n", - "#calculation\n", - "vl=vt/3**0.5\n", - "vp=v1/3**0.5\n", - "il=load*1000/(3**0.5*v1*pf)\n", - "drop=vl-vp\n", - "z=(r**2+x**2)**0.5\n", - "x=vl/(z+drop/il)\n", - "vtp=vl-x*drop/il\n", - "vtpl=vtp*3**0.5\n", - "\n", - "#result\n", - "print \"terminal voltage=\",vtpl,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 3420.781893 V\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.30, Page Number:1441" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.5#MVA\n", - "v=4160#V\n", - "f=50#Hz\n", - "i=200#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "il=load*10**6/(3**0.5*v)\n", - "zs=4750/(3**0.5*il)\n", - "ra=0\n", - "ixs=il*zs\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 0.91675794767 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.39, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "xd=0.7\n", - "xq=0.4\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "ia=1\n", - "tandelta=ia*xq*pf/(v+xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(math.radians(36.9)+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"no load voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 14.4702941001 degrees\n", - "no load voltage= 1.51511515874 V\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.40, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "xd=0.6\n", - "xq=0.45\n", - "ra=0.015\n", - "pf=0.8\n", - "ia=1\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "#calculation\n", - "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", - "psi=math.atan(tanpsi)\n", - "delta=psi-math.acos(pf)\n", - "i_d=ia*math.sin(psi)\n", - "iq=ia*math.cos(psi)\n", - "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", - "regn=(e0-v)*100/v\n", - "\n", - "#result\n", - "print \"open circuit voltage=\",e0,\"V\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open circuit voltage= 1.44767600311 V\n", - "regulation= 44.7676003107 %\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.41, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=10#A\n", - "phi=math.radians(20)\n", - "v=400#V\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "pf=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(phi+delta)\n", - "iq=ia*math.cos(phi+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "regn=(e0-v)/v\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"id=\",i_d,\"A\"\n", - "print \"iq=\",iq,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 8.23131209115 degrees\n", - "id= 4.7303232581 A\n", - "iq= 8.81045071911 A\n" - ] - } - ], - "prompt_number": 189 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.42, Page Number:1459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e1=220#V\n", - "f1=60#Hz\n", - "e2=222#V\n", - "f2=59#Hz\n", - "\n", - "#calculation\n", - "emax=(e1+e2)/2\n", - "emin=(e2-e1)/2\n", - "f=(f1-f2)\n", - "epeak=emax/0.707\n", - "pulse=(f1-f2)*60\n", - "\n", - "#result\n", - "print \"max voltage=\",emax,\"V\"\n", - "print \"min voltage=\",emin,\"V\"\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"peak value of voltage=\",epeak,\"V\"\n", - "print \"number of maximum light pulsations/minute=\",pulse" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max voltage= 221 V\n", - "min voltage= 1 V\n", - "frequency= 1 Hz\n", - "peak value of voltage= 312.588401697 V\n", - "number of maximum light pulsations/minute= 60\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.43, Page Number:1462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=1500#kVA\n", - "v=6.6#kV\n", - "r=0.4#ohm\n", - "x=6#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=power*1000/(3**0.5*v*1000)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", - "phialpha=math.atan(tanphialpha)\n", - "alpha=phialpha-phi\n", - "\n", - "#result\n", - "print \"power angle=\",math.degrees(alpha)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power angle= 7.87684146241\n" - ] - } - ], - "prompt_number": 198 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.44, Page Number:1464" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3000#KVA\n", - "p=6\n", - "n=1000#rpm\n", - "v=3300#v\n", - "x=0.25\n", - "\n", - "#calculation\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "ixs=x*vp\n", - "xs=x*vp/i\n", - "alpha=1*p/2\n", - "psy=3*3.14*vp**2/(60*xs*n)\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronizing power=\",psy,\"kW\"\n", - "print \"torque=\",tsy*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronizing power= 628.0 kW\n", - "torque= 5997.4 N-m\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.45, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3#MVA\n", - "n=1000#rpm\n", - "v1=3.3#kV\n", - "r=0.25\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "vp=v1*1000/3**0.5\n", - "i=load*1000000/(3**0.5*v1*1000)\n", - "ixs=complex(0,r*vp)\n", - "xs=ixs/i\n", - "v=vp*complex(pf,math.sin(math.acos(pf)))\n", - "e0=v+ixs\n", - "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", - "p=6/2\n", - "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", - "tsy=9.55*3*psy*100/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", - "print \"toque=\",-tsy/100,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 722.236196153j kW\n", - "toque= 6897.35567326j N-m\n" - ] - } - ], - "prompt_number": 221 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.46, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=750#KVA\n", - "v=11#kV\n", - "p=4\n", - "r=1#%\n", - "x=15#%\n", - "pf=0.8\n", - "#calculation\n", - "i=load*1000/(3**0.5*v*1000)\n", - "vph=v*1000/3**0.5\n", - "ira=r*vph/1000\n", - "ra=ira/i\n", - "xs=x*vph/(100*i)\n", - "zs=(ra**2+xs**2)**0.5\n", - "#no load\n", - "alpha=p/2\n", - "psy=math.radians(alpha)*vph**2/xs\n", - "#fl 0.8 pf\n", - "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", - "psy2=math.radians(alpha)*e*vph/xs\n", - "\n", - "#result\n", - "print \"Synchronous power at:\"\n", - "print \"no load=\",psy,\"W\"\n", - "print \"at pf of 0.8=\",psy2,\"w\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Synchronous power at:\n", - "no load= 58177.6417331 W\n", - "at pf of 0.8= 73621.2350169 w\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.47, Page Number:1466" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=2000#KVA\n", - "p=8\n", - "n=750#rpm\n", - "v1=6000#V\n", - "pf=0.8\n", - "r=6#ohm\n", - "\n", - "#calculations\n", - "alpha=math.radians(4)\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", - "psy=alpha*e0*v*3/r\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",psy,\"W\"\n", - "print \"synchronous torque=\",tsy,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 514916.500204 W\n", - "synchronous torque= 6556.60343593 N-m\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.48, Page Number:1467" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "n=1500#rpm\n", - "f=50#Hz\n", - "r=20#%\n", - "pf=0.8\n", - "phi=0.5\n", - "\n", - "#calculations\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "xs=r*vp/(1000*i)\n", - "p=120*f/n\n", - "alpha=math.radians(2)\n", - "#no load\n", - "psy=3*alpha*vp**2/(p*1000)\n", - "tsy=9.55*psy*1000/(n*2)\n", - "#pf=0.8\n", - "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", - "ixs=complex(0,i*4)\n", - "e0=v+ixs\n", - "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", - "tsy2=9.55*psy2/(n*20)\n", - "\n", - "#result\n", - "print \"synchronous power:\"\n", - "print \"atno load=\",psy,\"w\"\n", - "print \"at 0.8 pf=\",psy2,\"w\"\n", - "print \"torque:\"\n", - "print \"at no load=\",tsy,\"N-m\"\n", - "print \"at pf=0.8=\",tsy2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power:\n", - "atno load= 872.664625997 w\n", - "at 0.8 pf= 1506057.44405 w\n", - "torque:\n", - "at no load= 2777.98239276 N-m\n", - "at pf=0.8= 479.428286357 N-m\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.49, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6.6#kW\n", - "load1=3000#kW\n", - "pf=0.8\n", - "xa=complex(0.5,10)\n", - "xb=complex(0.4,12)\n", - "i0=150#A\n", - "\n", - "#calculation\n", - "v=complex(load*1000/3**0.5,0)\n", - "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", - "phi1=math.acos(cosphi1)\n", - "sinphi1=math.sin(phi1)\n", - "i=328*complex(pf,-math.sin(math.acos(pf)))\n", - "i1=i0*complex(cosphi1,-sinphi1)\n", - "i2=i-i1\n", - "coshi2=i2.real/181\n", - "ea=v+i1*xa\n", - "eal=3**0.5*abs(ea)\n", - "eb=v+i2*xb\n", - "ebl=3**0.5*abs(eb)\n", - "alpha1=(ea.imag/ea.real)\n", - "alpha2=(eb.imag/eb.real)\n", - "#result\n", - "print \"Ea=\",ea,\"V\"\n", - "print \"Eb=\",eb,\"V\"\n", - "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", - "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Ea= (4602.91884998+1275.81974829j) V\n", - "Eb= (5352.42648271+1524.56032028j) V\n", - "alpha1= 15.8810288383 degrees\n", - "alpha2= 16.3198639435 degrees\n" - ] - } - ], - "prompt_number": 245 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.50, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declration\n", - "e1=complex(230,0)\n", - "e2=230*complex(0.985,0.174)\n", - "z1=complex(0,2)\n", - "z2=complex(0,3)\n", - "z=6\n", - "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", - "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", - "i=i1+i2\n", - "v=i*z\n", - "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", - "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v,\"V\"\n", - "print \"current\",i,\"A\"\n", - "print \"power 1=\",p1,\"W\"\n", - "print \"power 2=\",p2,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= (222.905384615-28.5730769231j) V\n", - "current (37.1508974359-4.76217948718j) A\n", - "power 1= 3210.60292765 W\n", - "power 2= 5138.29001053 W\n" - ] - } - ], - "prompt_number": 249 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.51, Page Number:1471" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1500#kW\n", - "v=11#KV\n", - "pf=0.867\n", - "x=50#ohm\n", - "r=4#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "il=load*1000/(3**0.5*v*1000*pf)\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "iwatt=il*pf\n", - "iwattless=il*sinphi\n", - "i1=il/2\n", - "i2=iwatt/2\n", - "iw1=(i**2-i1**2)**0.5\n", - "iw2=i2-iw1\n", - "ia=(i2**2+iw2**2)**0.5\n", - "vt=v*1000/3**0.5\n", - "ir=i*r\n", - "ix=x*i\n", - "cosphi=i2/i\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", - "el=3**0.5*e\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 43.4628778514 A\n", - "line voltage= 14304.0798593 V\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.52, Page Number:1472" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.8\n", - "output=6000#kW\n", - "pfa=0.92\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "phia=math.acos(pfa)\n", - "tanphi=math.tan(phi)\n", - "tanphia=math.tan(phia)\n", - "loadkvar=load*1000*tanphi\n", - "akvar=output*tanphia\n", - "kwb=(load*1000-output)\n", - "kvarb=loadkvar-akvar\n", - "kvab=complex(kwb,kvarb)\n", - "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", - "kvarb=kwb*pfb\n", - "kvara=-loadkvar-kvarb\n", - "kvaa=complex(output,kvara)\n", - "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", - "\n", - "#result\n", - "print \"new pfb=\",pfb\n", - "print \"new pfa=\",pfa" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new pfb= 0.628980253433\n", - "new pfa= 0.513894032194\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.54, Page Number:1473" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=6600#V\n", - "load=1000#KVA\n", - "x=20#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=87.5\n", - "x=8.7\n", - "vp=3810\n", - "e0=4311\n", - "ir=70\n", - "ix=52.5\n", - "IX=762\n", - "vb1=(e0**2-vp**2)**0.5\n", - "i1x=vb1\n", - "i1=i1x/x\n", - "output=3**0.5*v*i1/1000\n", - "b2v=(vp**2+e0**2)**0.5\n", - "i2z=b2v\n", - "i2=b2v/x\n", - "i2rx=e0\n", - "i2r=i2rx/x\n", - "i2x=vp/x\n", - "tanphi2=i2x/i2r\n", - "phi2=math.atan(tanphi2)\n", - "cosphi2=math.cos(phi2)\n", - "output1=3**0.5*v*i2*cosphi2/1000\n", - "\n", - "#result\n", - "print \"power output at unity pf=\",output,\"kW\"\n", - "print \"max power output=\",output1,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output at unity pf= 2650.38477722 kW\n", - "max power output= 5664.52285143 kW\n" - ] - } - ], - "prompt_number": 255 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.55, Page Number:1474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=10.0#ohm\n", - "i=220.0#A\n", - "load=11.0#kV\n", - "per=25.0#%\n", - "\n", - "#calculations\n", - "oa1=load*1000/3**0.5\n", - "a1c1=i*x\n", - "e0=(oa1**2+a1c1**2)**0.5\n", - "emf=(1+per/100)*e0\n", - "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", - "ix=a1a2/x\n", - "i1=(i**2+ix**2)**0.5\n", - "pf=i/i1\n", - "bv=(oa1**2+emf**2)**0.5\n", - "imax=bv/x\n", - "ir=emf/x\n", - "ix=oa1/x\n", - "pfmax=ir/imax\n", - "output=3**0.5*load*1000*imax*pfmax*0.001\n", - "#result\n", - "print \"new current=\",i1,\"A\"\n", - "print \"new power factor=\",pf\n", - "print \"max power output=\",output,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new current= 281.573453399 A\n", - "new power factor= 0.781323655849\n", - "max power output= 16006.7954319 kW\n" - ] - } - ], - "prompt_number": 258 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.56, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#MVA\n", - "load1=35.0#MVA\n", - "pf=0.8\n", - "output=25.0#MVA\n", - "cosphi1=0.9\n", - "\n", - "#calculations\n", - "loadmw=load1*pf\n", - "loadmvar=load1*0.6\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "mva1=25\n", - "mw1=mva1*cosphi1\n", - "mvar1=25*sinphi1\n", - "mw2=loadmw-mw1\n", - "mvar2=loadmvar-mvar1\n", - "mva2=(mw2**2+mvar2**2)**0.5\n", - "cosphi2=mw2/mva2\n", - "\n", - "#result\n", - "print \"output=\",mva2\n", - "print \"pf=\",cosphi2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 10.4509862952\n", - "pf= 0.52626611926\n" - ] - } - ], - "prompt_number": 260 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.57, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "load=600#KW\n", - "loadm=707#kW\n", - "pf=0.707\n", - "output=900#kW\n", - "pf1=0.9\n", - "\n", - "#calculation\n", - "kva=1000\n", - "kvar=kva*(1-pf1**2)**0.5\n", - "active_p=1307-output\n", - "reactive_p=loadm-kvar\n", - "\n", - "#result\n", - "print \"active power shared by second machine=\",active_p,\"kW\"\n", - "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "active power shared by second machine= 407 kW\n", - "reactive power shared by second machine= 271.110105646 kVAR\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.58, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l1=500#kW\n", - "l2=1000#kW\n", - "pf1=0.9\n", - "l3=800#kW\n", - "pf2=0.8\n", - "l4=500#kW\n", - "pf3=0.9\n", - "output=1500#kW\n", - "pf=0.95\n", - "\n", - "#calculation\n", - "kw1=l1\n", - "kw2=l2\n", - "kw3=l3\n", - "kw4=500\n", - "kvar2=kw2*0.436/pf1\n", - "kvar3=kw3*0.6/pf2\n", - "kvar4=kw4*0.436/pf3\n", - "kvar=output/pf\n", - "kw=kw1+kw2+kw3+kw4-output\n", - "kvar=kvar2+kvar3+kvar4-kvar\n", - "cosphi=math.cos(math.atan(kvar/kw))\n", - "\n", - "#result\n", - "print \"kW output=\",kw\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kW output= 1300\n", - "pf= 0.981685651341\n" - ] - } - ], - "prompt_number": 264 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.59, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=complex(0.2,2)\n", - "ze=complex(3,4)\n", - "emf1=complex(2000,0)\n", - "emf2=complex(22000,100)\n", - "\n", - "#calculations\n", - "i1=complex(68.2,-102.5)\n", - "i2=complex(127,-196.4)\n", - "i=i1+i2\n", - "v=i*ze\n", - "pva1=v*i1\n", - "kw1=pva1.real*3\n", - "a11=math.atan(-i1.imag/i1.real)\n", - "a12=math.atan(-v.imag/v.real)\n", - "pf1=math.cos(a11-a12)\n", - "pva2=v*i2\n", - "kw2=pva2.real*3\n", - "a21=math.atan(-i2.imag/i2.real)\n", - "a22=math.atan(-v.imag/v.real)\n", - "pf2=math.cos(a21-a22)\n", - "\n", - "#result\n", - "print \"kw output 1=\",kw1/1000\n", - "print \"pf 1=\",pf1\n", - "print \"kw output 2=\",kw2/1000\n", - "print \"pf 2=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kw output 1= 328.79427\n", - "pf 1= 0.606839673468\n", - "kw output 2= 610.34892\n", - "pf 2= 0.596381892841\n" - ] - } - ], - "prompt_number": 273 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.63, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "f=50#Hz\n", - "ns=1500#rpm\n", - "j=1.5*10**4#khm2\n", - "ratio=5\n", - "\n", - "#calculation\n", - "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"natural time period of oscillation=\",round(t,3),\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "natural time period of oscillation= 1.364 s\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.64, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10000#KVA\n", - "p=4\n", - "v=6600#V\n", - "f=50#Hz\n", - "xs=25#%\n", - "pf=1.5\n", - "\n", - "#calculations\n", - "ratio=100/xs\n", - "ns=120*f/p\n", - "j=(pf/(0.0083*ns))**2*load*ratio*f\n", - "\n", - "#result\n", - "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "moment of inertia= 29.0317898098 x10^4 kg-m2\n" - ] - } - ], - "prompt_number": 277 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.65, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#MVA\n", - "v=10.0#kV\n", - "f=50.0#Hz\n", - "ns=1500.0#rpm\n", - "j=2.0*10**5#kgm2\n", - "x=40.0\n", - "\n", - "#calculation\n", - "ratio=100.0/x\n", - "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of oscillation of the rotor= 0.2 Hz\n" - ] - } - ], - "prompt_number": 283 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.66, Page Number:1483" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=11#kV\n", - "z=complex(1,10)\n", - "emf=14#kV\n", - "\n", - "#calculations\n", - "e=emf*1000/3**0.5\n", - "v=v*1000/3**0.5\n", - "costheta=z.real/abs(z)\n", - "pmax=e*v*3/(z.imag*1000)\n", - "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", - "\n", - "#result\n", - "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max output = 14125.5529273 kW\n" - ] - } - ], - "prompt_number": 285 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.67, Page Number:1484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=11#kVA\n", - "load1=10#MW\n", - "z=complex(0.8,8.0)\n", - "v=14#kV\n", - "\n", - "#calculations\n", - "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", - "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", - "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", - "\n", - "#result\n", - "print \"maximum output=\",pmax/1000000,\"MW\"\n", - "print \"current=\",imax,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output= 19.25 MW\n", - "current= 1284.92866209 A\n", - "pf= 0.786318338822\n" - ] - } - ], - "prompt_number": 289 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_1.ipynb deleted file mode 100644 index 7e0be0a9..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_1.ipynb +++ /dev/null @@ -1,2781 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 37: Alternators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.1, Page Number:1412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s1=36.0\n", - "p1=4.0\n", - "span1=8.0\n", - "s2=72.0\n", - "p2=6.0\n", - "span2=10.0\n", - "s3=96.0\n", - "p3=6.0\n", - "span3=12.0\n", - "\n", - "#calculations\n", - "alpha1=2*p1*180/s1\n", - "alpha2=3*p2*180/s2\n", - "alpha3=5*p3*180/s3\n", - "kc1=math.cos(math.radians(alpha1/2))\n", - "kc2=math.cos(math.radians(alpha2/2))\n", - "kc3=math.cos(math.radians(alpha3/2))\n", - "\n", - "#result\n", - "print \"a)kc=\",kc1\n", - "print \"b)kc=\",kc2\n", - "print \"c)kc=\",kc3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)kc= 0.939692620786\n", - "b)kc= 0.923879532511\n", - "c)kc= 0.881921264348\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.2, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=36.0\n", - "p=4.0\n", - "\n", - "#calculations\n", - "n=s/p\n", - "beta=180/n\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"distribution factor=\",kd" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "distribution factor= 0.959795080524\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.3, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=10.0#V\n", - "beta=30.0#degrees\n", - "m=6.0\n", - "\n", - "#calculations\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "arith_sum=6*v\n", - "vector_sum=kd*arith_sum\n", - "\n", - "#calculation\n", - "print \"emf of six coils in series=\",vector_sum,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf of six coils in series= 38.6370330516 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.4, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "beta=180/9\n", - "ratio=2.0/3.0\n", - "m1=9\n", - "m2=6\n", - "m3=3\n", - "\n", - "#calculation\n", - "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", - "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"i) kd=\",kd1\n", - "print \"ii)kd=\",kd2\n", - "print \"iii)kd=\",kd3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) kd= 0.639863387016\n", - "ii)kd= 0.831206922161\n", - "iii)kd= 0.959795080524\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.5, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "slot=18.0\n", - "s=16.0\n", - "m1=3.0\n", - "m2=5.0\n", - "m3=7.0\n", - "\n", - "#calculations\n", - "span=(s-1)\n", - "alpha=180*3/slot\n", - "kc1=math.cos(math.radians(alpha/2))\n", - "kc3=math.cos(math.radians(m1*alpha/2))\n", - "kc5=math.cos(math.radians(m2*alpha/2))\n", - "kc7=math.cos(math.radians(m3*alpha/2))\n", - "\n", - "#result\n", - "print \"kc1=\",kc1\n", - "print \"kc3=\",kc3\n", - "print \"kc5=\",kc5\n", - "print \"kc7=\",kc7" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kc1= 0.965925826289\n", - "kc3= 0.707106781187\n", - "kc5= 0.258819045103\n", - "kc7= -0.258819045103\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.6, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "s=144.0\n", - "z=10.0\n", - "phi=0.03#Wb\n", - "n=375.0#rpm\n", - "\n", - "#calculation\n", - "f=p*n/120\n", - "n=s/p\n", - "beta=180/9\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "t=s*z/(3*2)\n", - "eph=4.44*1*0.96*f*phi*t\n", - "el=3**0.5*eph\n", - "#result\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"phase emf=\",eph,\"V\"\n", - "print \"line emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 50.0 Hz\n", - "phase emf= 1534.464 V\n", - "line emf= 2657.76961039 V\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.7, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "s=54\n", - "phi=0.1#Wb\n", - "n=1200#rpm\n", - "t=8\n", - "#calculations\n", - "beta=180/9\n", - "kc=math.cos(beta/2)\n", - "f=p*n/120\n", - "n=s/p\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=s*8/3\n", - "t=z/2\n", - "eph=4.44*0.98*0.96*f*phi*t\n", - "el=3**0.*eph\n", - "\n", - "#result\n", - "print \"eph=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eph= 1804.529664 V\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.8, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "slots=144.0\n", - "z=4.0\n", - "n=375.0\n", - "airgap=5*0.01\n", - "theta=150.0\n", - "\n", - "#calculation\n", - "kf=1.11\n", - "alpha=(180-theta)\n", - "kc=math.cos(math.radians(alpha/2))\n", - "beta=180/9\n", - "m=slots/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "f=p*n/120\n", - "s=slots/3\n", - "eph=4*kf*kc*kd*f*airgap*s*4/2\n", - "\n", - "#result\n", - "print \"emf per phase=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf per phase= 987.908016392 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.9, Page Number:1417" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10\n", - "f=50#Hz\n", - "n=600#rpm\n", - "slots=180\n", - "s=15\n", - "d=1.2#m\n", - "l=0.4#m\n", - "m=6\n", - "beta=180/18\n", - "#calculations\n", - "area=(1.2*3.14/p)*l\n", - "phi1=area*0.637\n", - "vr=1.1*2*f*phi1\n", - "vp=2**0.5*vr\n", - "v3=0.4*vp\n", - "v5=0.2*vp\n", - "vf=6*vp*0.966\n", - "vf3=6*v3*0.707\n", - "vf5=6*v5*0.259\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", - "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", - "vph=vf*2**0.5*60*kd1\n", - "vph3=vf3*2**0.5*60*kd2\n", - "vph5=vf5*2**0.5*60*kd3\n", - "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", - "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", - "\n", - "#result\n", - "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", - "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", - "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", - "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", - "iii)rms value of phase voltage= 7158.83679423 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.10, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "slot=60.0\n", - "z=4.0\n", - "s=3.0\n", - "theta=60.0\n", - "phi=0.943#Wb\n", - "\n", - "#calculation\n", - "m=slot/(p*s)\n", - "beta=slot/5\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "alpha=(s/15)*180\n", - "kc=math.cos(math.radians(alpha/2))\n", - "z=slot*z/s\n", - "t=z/2\n", - "kf=1.11\n", - "eph=z*kf*kc*kd*f*phi*t/2\n", - "el=3**0.5*eph*0.1\n", - "\n", - "#result\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage= 13196.4478482 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.11, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slot=15.0\n", - "z=10.0\n", - "kd=0.95\n", - "e=1825#v\n", - "kc=1\n", - "kf=1.11\n", - "#calculations\n", - "slots=p*slot\n", - "slotsp=slots/3\n", - "turnp=20*z/2\n", - "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", - "z=slots*z\n", - "n=120*f/p\n", - "eg=(phi*0.001*z*n)/slots\n", - "\n", - "#result\n", - "print \"emf=\",eg*1000,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 749.405577006 V\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.12, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=360#V\n", - "f=60.0#Hz\n", - "i=3.6#A\n", - "f2=40#Hz\n", - "i2=2.4#A\n", - "\n", - "#calculations\n", - "e2=v*i2*f2/(f*i)\n", - "\n", - "#result\n", - "print \"e2=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e2= 160.0 V\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.13, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=0\n", - "f=50.0#Hz\n", - "slot=2\n", - "z=4\n", - "theta=150#degrees\n", - "phi=0.12#Wb\n", - "per=20#%\n", - "\n", - "#calculations\n", - "alpha=180-theta\n", - "slotp=6\n", - "m=2\n", - "beta=180/slotp\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=10*slot*z\n", - "t=z/2\n", - "e1=4.44*kd1*kd1*f*0.12*t\n", - "kc3=math.cos(3*math.radians(alpha/2))\n", - "f2=f*3\n", - "phi3=(1.0/3)*per*0.12\n", - "e3=4.44*kd3*kd3*theta*0.008*40\n", - "e=(e1**2+e3**2)**0.5\n", - "\n", - "#result\n", - "print \"e=\",e,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e= 994.25286629 V\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.14, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "per=10.0#%\n", - "per2=6.0#%\n", - "f=50.0#Hz\n", - "r=10.0#ohm\n", - "\n", - "#calculation\n", - "#star connection\n", - "e5=per*v/100\n", - "e=(v**2+e5**2)**0.5\n", - "eph=3**0.5*e\n", - "\n", - "#delta\n", - "e3=10*v/100\n", - "f3=10*3\n", - "i=e3/f3\n", - "\n", - "#result\n", - "print \"line voltage for star=\",eph,\"V\"\n", - "print \"line voltage for delta=\",e3,\"V\"\n", - "print \"current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage for star= 400.358589267 V\n", - "line voltage for delta= 23.0 V\n", - "current= 0.766666666667 A\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(a), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10.0\n", - "p1=24.0\n", - "f=25#Hz\n", - "p3=6.0\n", - "s=0.05\n", - "\n", - "#calculation\n", - "n=120*f/p\n", - "f1=p1*n/120\n", - "n2=120*f1/6\n", - "n3=(1-s)*n2\n", - "f2=s*f1p\n", - "\n", - "\n", - "#result\n", - "print \"frequency=\",f1,\"Hz\"\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 60.0 Hz\n", - "speed= 1140.0 rpm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(b), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "phi=0.12#Wb\n", - "slotsp=4\n", - "cp=4\n", - "theta=150#degrees\n", - "\n", - "#calculation\n", - "slots=slotsp*3*p\n", - "c=cp*slots\n", - "turns=32\n", - "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", - "kp=math.cos(math.radians(15))\n", - "eph=4.44*50*0.12*kb*0.966*turns\n", - "el=eph*3**0.5\n", - "\n", - "#result\n", - "print \"line voltage\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage 1365.94840977 V\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.16, Page Number:1426" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.85\n", - "v=11#kV\n", - "r=0.1#ohm\n", - "x=0.66#ohm\n", - "\n", - "#calculation\n", - "i=load*10**6/(3**0.5*v*1000*pf)\n", - "iradrop=i*r\n", - "ixsdrop=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", - "el=3**0.5*e0\n", - "\n", - "#result\n", - "print \"linevalue of emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "linevalue of emf= 11475.6408913 V\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(a), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=50.0#Hz\n", - "load=440.0#KVA\n", - "r=0.5#ohm\n", - "i=40.0#A\n", - "il=200.0#A\n", - "vf=1160.0#V\n", - "\n", - "#calculations\n", - "zs=vf/200\n", - "xs=(zs**2-r**2)**0.5\n", - "\n", - "#result\n", - "print \"synchronous impedence=\",zs,\"ohm\"\n", - "print \"synchronous reactance=\",xs,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous impedence= 5.8 ohm\n", - "synchronous reactance= 5.77840808528 ohm\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(b), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60.0#kVA\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.016#ohm\n", - "x=0.07#ohm\n", - "pf=0.7\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "ira=i*r\n", - "ixl=i*x\n", - "#unity pf\n", - "e=((v+ira)**2+(ixl)**2)**0.5\n", - "#pf of 0.7 lag\n", - "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", - "#pf of 0.7 lead\n", - "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", - "\n", - "#result\n", - "print \"voltage with pf=1\",e,\"V\"\n", - "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", - "print \"voltage with pf=0.7 lead\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage with pf=1 225.174386048 V\n", - "voltage with pf=0.7 lag 234.604995966 V\n", - "voltage with pf=0.7 lead 208.03726621 V\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.18(a), Page Number:1429" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=440.0#V\n", - "f=50.0#Hz\n", - "r=0.25#ohm\n", - "x=3.2#ohm\n", - "xl=0.5#ohm\n", - "\n", - "#calculation\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "rd=i*r\n", - "ixl=i*xl\n", - "ea=((v+rd)**2+(ixl)**2)**0.5\n", - "el=3**0.5*ea\n", - "e0=((v+rd)**2+(i*x)**2)**0.5\n", - "e0l=e0*3**0.5\n", - "per=(e0-v)/v\n", - "xa=x-xl\n", - "#result\n", - "print \"internal emf Ea=\",el,\"V\"\n", - "print \"no load emf=\",e0l,\"V\"\n", - "print \"percentage regulation=\",per*100,\"%\"\n", - "print \"valueof synchronous reactance=\",xa,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "internal emf Ea= 471.842539659 V\n", - "no load emf= 592.991130967 V\n", - "percentage regulation= 34.7707115833 %\n", - "valueof synchronous reactance= 2.7 ohm\n" - ] - } - ], - "prompt_number": 87 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.19, Page Number:1432" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=50.0#V\n", - "r=0.1#ohm\n", - "il=100.0#A\n", - "pf=0.8\n", - "vt=200.0#V\n", - "\n", - "#calculation\n", - "zs=v/vt\n", - "xs=(zs**2-r**2)**0.5\n", - "ira=il*r\n", - "ixs=il*xs\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "\n", - "#result\n", - "print \"induced voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced voltage= 222.090276316 V\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.20, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2000.0#V\n", - "i=100.0#A\n", - "pf=0.8\n", - "pf2=0.71\n", - "i2=2.5#A\n", - "v2=500.0#V\n", - "r=0.8#ohm\n", - "\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "sinphi2=math.sin(math.acos(pf2))\n", - "zs=v2/i\n", - "xs=(zs**2-r**2)**.5\n", - "#unity pf\n", - "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", - "reg1=(e01-v)*100/v\n", - "#at pf=0.8\n", - "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v)*100/v\n", - "#at pf=0.71\n", - "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", - "reg3=(e03-v)*100/v\n", - "\n", - "#result\n", - "print \"voltage regulation unity pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", - "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.6\n", - "voltage regulation unity pf= 6.88779163216 %\n", - "voltage regulation 0.8 lag pf= -8.875640156 %\n", - "voltage regulation 0.71 lead pf= 21.1141910671 %\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.21, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=3000.0#V\n", - "load=100.0#kVA\n", - "f=50.0#Hz\n", - "r=0.2\n", - "i1=40.0#A\n", - "i2=200.0#A\n", - "v2=1040.0#V\n", - "pf=0.8\n", - "v1=v/3**0.5\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**.5\n", - "i=load*1000/(3**0.5*v)\n", - "\n", - "\n", - "#at pf=0.8 lag\n", - "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", - "reg1=(e01-v1)*100/v1\n", - "#at pf=0.8 lead\n", - "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v1)*100/v1\n", - "\n", - "#result\n", - "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation 0.8 lag pf= 2.20611574348 %\n", - "voltage regulation 0.8 lag pf= -1.77945143824 %\n" - ] - } - ], - "prompt_number": 112 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.22, Page Number:1434" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1600.0#kVA\n", - "v=13500.0#V\n", - "r=1.5#ohm\n", - "x=30.0#ohm\n", - "load1=1280.0#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi1=math.sin(math.acos(pf))\n", - "i=load1*1000/(3**0.5*v*pf)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", - "regn=(e0-vp)*100/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= -11.9909032489 %\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.23, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "pf=0.8\n", - "r=0.5#ohm\n", - "x=10.0#ohm\n", - "\n", - "#calculations\n", - "i=load*1000/(3**0.5*v)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", - "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", - "\n", - "#result\n", - "print \"voltage regulation=\",regn*100,\"%\"\n", - "print \"power angle=\",delta,\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 48.0405877623 %\n", - "power angle= 18.9704078085 degrees\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.24, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6000.0#KVA\n", - "v=6600.0#V\n", - "p=2.0\n", - "f=50.0#Hz\n", - "i2=125.0#A\n", - "v1=8000.0#V\n", - "i3=800.0#A\n", - "d=0.03\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v1/(3**0.5*i3)\n", - "vp=v/3**0.5\n", - "rd=d*vp\n", - "il=load*1000/(3**0.5*v)\n", - "ira=rd\n", - "ra=ira/il\n", - "xs=(zs**2-ra**2)**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", - "reg=(e0-vp)/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",reg*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= 62.2972136768 %\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.25, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "load=2000#KVA\n", - "v=2300#V\n", - "i=600#A\n", - "v2=900#V\n", - "r=0.12#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i)\n", - "rp=r/2\n", - "re=rp*1.5\n", - "xs=(zs**2-re**2)**0.5\n", - "il=load*1000/(3**0.5*v)\n", - "ira=il*rp\n", - "ixs=il*xs\n", - "vp=v/3**0.5\n", - "e0=((vp+ira)**2+(ixs)**2)**0.5\n", - "reg1=(e0-vp)/vp\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "reg2=(e0-vp)/vp\n", - "#result\n", - "print \"regulation at pf=1\",reg1*100,\"%\"\n", - "print \"regulation at pf=0.8\",reg2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=1 7.32796146323 %\n", - "regulation at pf=0.8 23.8398862235 %\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.26, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=Symbol('v')\n", - "load=2000#KVA\n", - "load1=11#KV\n", - "r=0.3#ohm\n", - "x=5#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "i=load*1000/(3**0.5*load1*1000)\n", - "vt=load1*1000/3**0.5\n", - "ira=i*r\n", - "ixs=i*x\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v[1],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 6978.31767618569 V\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.27, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1200#KVA\n", - "load1=3.3#KV\n", - "f=50#Hz\n", - "r=0.25#ohm\n", - "i=35#A\n", - "i2=200#A\n", - "v=1.1#kV\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zs=v*1000/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**0.5\n", - "v=load1*1000/3**0.5\n", - "theta=math.atan(xs/r)\n", - "ia=load*1000/(3**0.5*load1*1000)\n", - "e=v+ia*zs\n", - "change=(e-v)/v\n", - "\n", - "#result\n", - "print \"per unit change=\",change" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "per unit change= 0.349909254054\n" - ] - } - ], - "prompt_number": 151 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.28, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11#kV\n", - "load=3#MVA\n", - "i=100#A\n", - "v2=12370#V\n", - "vt=11000#V\n", - "pf=0.8\n", - "r=0.4#ohm\n", - "\n", - "#calculation\n", - "E0=v1*1000/3**0.5\n", - "v=v2/3**0.5\n", - "pf=0\n", - "sinphi=1\n", - "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", - "il=load*10**6/(3**0.5*v1*1000)\n", - "ira=il*r\n", - "ixs=il*xs\n", - "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", - "regn=(e0-E0)*100/E0\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 19.6180576177 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.29, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pf=0.8\n", - "vt=3500#v\n", - "load=2280#KW\n", - "v1=3300#V\n", - "r=8#ohm\n", - "x=6#ohm\n", - "\n", - "#calculation\n", - "vl=vt/3**0.5\n", - "vp=v1/3**0.5\n", - "il=load*1000/(3**0.5*v1*pf)\n", - "drop=vl-vp\n", - "z=(r**2+x**2)**0.5\n", - "x=vl/(z+drop/il)\n", - "vtp=vl-x*drop/il\n", - "vtpl=vtp*3**0.5\n", - "\n", - "#result\n", - "print \"terminal voltage=\",vtpl,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 3420.781893 V\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.30, Page Number:1441" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.5#MVA\n", - "v=4160#V\n", - "f=50#Hz\n", - "i=200#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "il=load*10**6/(3**0.5*v)\n", - "zs=4750/(3**0.5*il)\n", - "ra=0\n", - "ixs=il*zs\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 0.91675794767 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.39, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "xd=0.7\n", - "xq=0.4\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "ia=1\n", - "tandelta=ia*xq*pf/(v+xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(math.radians(36.9)+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"no load voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 14.4702941001 degrees\n", - "no load voltage= 1.51511515874 V\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.40, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "xd=0.6\n", - "xq=0.45\n", - "ra=0.015\n", - "pf=0.8\n", - "ia=1\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "#calculation\n", - "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", - "psi=math.atan(tanpsi)\n", - "delta=psi-math.acos(pf)\n", - "i_d=ia*math.sin(psi)\n", - "iq=ia*math.cos(psi)\n", - "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", - "regn=(e0-v)*100/v\n", - "\n", - "#result\n", - "print \"open circuit voltage=\",e0,\"V\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open circuit voltage= 1.44767600311 V\n", - "regulation= 44.7676003107 %\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.41, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=10#A\n", - "phi=math.radians(20)\n", - "v=400#V\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "pf=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(phi+delta)\n", - "iq=ia*math.cos(phi+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "regn=(e0-v)/v\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"id=\",i_d,\"A\"\n", - "print \"iq=\",iq,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 8.23131209115 degrees\n", - "id= 4.7303232581 A\n", - "iq= 8.81045071911 A\n" - ] - } - ], - "prompt_number": 189 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.42, Page Number:1459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e1=220#V\n", - "f1=60#Hz\n", - "e2=222#V\n", - "f2=59#Hz\n", - "\n", - "#calculation\n", - "emax=(e1+e2)/2\n", - "emin=(e2-e1)/2\n", - "f=(f1-f2)\n", - "epeak=emax/0.707\n", - "pulse=(f1-f2)*60\n", - "\n", - "#result\n", - "print \"max voltage=\",emax,\"V\"\n", - "print \"min voltage=\",emin,\"V\"\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"peak value of voltage=\",epeak,\"V\"\n", - "print \"number of maximum light pulsations/minute=\",pulse" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max voltage= 221 V\n", - "min voltage= 1 V\n", - "frequency= 1 Hz\n", - "peak value of voltage= 312.588401697 V\n", - "number of maximum light pulsations/minute= 60\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.43, Page Number:1462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=1500#kVA\n", - "v=6.6#kV\n", - "r=0.4#ohm\n", - "x=6#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=power*1000/(3**0.5*v*1000)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", - "phialpha=math.atan(tanphialpha)\n", - "alpha=phialpha-phi\n", - "\n", - "#result\n", - "print \"power angle=\",math.degrees(alpha)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power angle= 7.87684146241\n" - ] - } - ], - "prompt_number": 198 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.44, Page Number:1464" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3000#KVA\n", - "p=6\n", - "n=1000#rpm\n", - "v=3300#v\n", - "x=0.25\n", - "\n", - "#calculation\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "ixs=x*vp\n", - "xs=x*vp/i\n", - "alpha=1*p/2\n", - "psy=3*3.14*vp**2/(60*xs*n)\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronizing power=\",psy,\"kW\"\n", - "print \"torque=\",tsy*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronizing power= 628.0 kW\n", - "torque= 5997.4 N-m\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.45, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3#MVA\n", - "n=1000#rpm\n", - "v1=3.3#kV\n", - "r=0.25\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "vp=v1*1000/3**0.5\n", - "i=load*1000000/(3**0.5*v1*1000)\n", - "ixs=complex(0,r*vp)\n", - "xs=ixs/i\n", - "v=vp*complex(pf,math.sin(math.acos(pf)))\n", - "e0=v+ixs\n", - "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", - "p=6/2\n", - "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", - "tsy=9.55*3*psy*100/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", - "print \"toque=\",-tsy/100,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 722.236196153j kW\n", - "toque= 6897.35567326j N-m\n" - ] - } - ], - "prompt_number": 221 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.46, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=750#KVA\n", - "v=11#kV\n", - "p=4\n", - "r=1#%\n", - "x=15#%\n", - "pf=0.8\n", - "#calculation\n", - "i=load*1000/(3**0.5*v*1000)\n", - "vph=v*1000/3**0.5\n", - "ira=r*vph/1000\n", - "ra=ira/i\n", - "xs=x*vph/(100*i)\n", - "zs=(ra**2+xs**2)**0.5\n", - "#no load\n", - "alpha=p/2\n", - "psy=math.radians(alpha)*vph**2/xs\n", - "#fl 0.8 pf\n", - "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", - "psy2=math.radians(alpha)*e*vph/xs\n", - "\n", - "#result\n", - "print \"Synchronous power at:\"\n", - "print \"no load=\",psy,\"W\"\n", - "print \"at pf of 0.8=\",psy2,\"w\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Synchronous power at:\n", - "no load= 58177.6417331 W\n", - "at pf of 0.8= 73621.2350169 w\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.47, Page Number:1466" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=2000#KVA\n", - "p=8\n", - "n=750#rpm\n", - "v1=6000#V\n", - "pf=0.8\n", - "r=6#ohm\n", - "\n", - "#calculations\n", - "alpha=math.radians(4)\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", - "psy=alpha*e0*v*3/r\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",psy,\"W\"\n", - "print \"synchronous torque=\",tsy,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 514916.500204 W\n", - "synchronous torque= 6556.60343593 N-m\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.48, Page Number:1467" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "n=1500#rpm\n", - "f=50#Hz\n", - "r=20#%\n", - "pf=0.8\n", - "phi=0.5\n", - "\n", - "#calculations\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "xs=r*vp/(1000*i)\n", - "p=120*f/n\n", - "alpha=math.radians(2)\n", - "#no load\n", - "psy=3*alpha*vp**2/(p*1000)\n", - "tsy=9.55*psy*1000/(n*2)\n", - "#pf=0.8\n", - "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", - "ixs=complex(0,i*4)\n", - "e0=v+ixs\n", - "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", - "tsy2=9.55*psy2/(n*20)\n", - "\n", - "#result\n", - "print \"synchronous power:\"\n", - "print \"atno load=\",psy,\"w\"\n", - "print \"at 0.8 pf=\",psy2,\"w\"\n", - "print \"torque:\"\n", - "print \"at no load=\",tsy,\"N-m\"\n", - "print \"at pf=0.8=\",tsy2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power:\n", - "atno load= 872.664625997 w\n", - "at 0.8 pf= 1506057.44405 w\n", - "torque:\n", - "at no load= 2777.98239276 N-m\n", - "at pf=0.8= 479.428286357 N-m\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.49, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6.6#kW\n", - "load1=3000#kW\n", - "pf=0.8\n", - "xa=complex(0.5,10)\n", - "xb=complex(0.4,12)\n", - "i0=150#A\n", - "\n", - "#calculation\n", - "v=complex(load*1000/3**0.5,0)\n", - "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", - "phi1=math.acos(cosphi1)\n", - "sinphi1=math.sin(phi1)\n", - "i=328*complex(pf,-math.sin(math.acos(pf)))\n", - "i1=i0*complex(cosphi1,-sinphi1)\n", - "i2=i-i1\n", - "coshi2=i2.real/181\n", - "ea=v+i1*xa\n", - "eal=3**0.5*abs(ea)\n", - "eb=v+i2*xb\n", - "ebl=3**0.5*abs(eb)\n", - "alpha1=(ea.imag/ea.real)\n", - "alpha2=(eb.imag/eb.real)\n", - "#result\n", - "print \"Ea=\",ea,\"V\"\n", - "print \"Eb=\",eb,\"V\"\n", - "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", - "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Ea= (4602.91884998+1275.81974829j) V\n", - "Eb= (5352.42648271+1524.56032028j) V\n", - "alpha1= 15.8810288383 degrees\n", - "alpha2= 16.3198639435 degrees\n" - ] - } - ], - "prompt_number": 245 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.50, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declration\n", - "e1=complex(230,0)\n", - "e2=230*complex(0.985,0.174)\n", - "z1=complex(0,2)\n", - "z2=complex(0,3)\n", - "z=6\n", - "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", - "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", - "i=i1+i2\n", - "v=i*z\n", - "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", - "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v,\"V\"\n", - "print \"current\",i,\"A\"\n", - "print \"power 1=\",p1,\"W\"\n", - "print \"power 2=\",p2,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= (222.905384615-28.5730769231j) V\n", - "current (37.1508974359-4.76217948718j) A\n", - "power 1= 3210.60292765 W\n", - "power 2= 5138.29001053 W\n" - ] - } - ], - "prompt_number": 249 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.51, Page Number:1471" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1500#kW\n", - "v=11#KV\n", - "pf=0.867\n", - "x=50#ohm\n", - "r=4#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "il=load*1000/(3**0.5*v*1000*pf)\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "iwatt=il*pf\n", - "iwattless=il*sinphi\n", - "i1=il/2\n", - "i2=iwatt/2\n", - "iw1=(i**2-i1**2)**0.5\n", - "iw2=i2-iw1\n", - "ia=(i2**2+iw2**2)**0.5\n", - "vt=v*1000/3**0.5\n", - "ir=i*r\n", - "ix=x*i\n", - "cosphi=i2/i\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", - "el=3**0.5*e\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 43.4628778514 A\n", - "line voltage= 14304.0798593 V\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.52, Page Number:1472" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.8\n", - "output=6000#kW\n", - "pfa=0.92\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "phia=math.acos(pfa)\n", - "tanphi=math.tan(phi)\n", - "tanphia=math.tan(phia)\n", - "loadkvar=load*1000*tanphi\n", - "akvar=output*tanphia\n", - "kwb=(load*1000-output)\n", - "kvarb=loadkvar-akvar\n", - "kvab=complex(kwb,kvarb)\n", - "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", - "kvarb=kwb*pfb\n", - "kvara=-loadkvar-kvarb\n", - "kvaa=complex(output,kvara)\n", - "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", - "\n", - "#result\n", - "print \"new pfb=\",pfb\n", - "print \"new pfa=\",pfa" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new pfb= 0.628980253433\n", - "new pfa= 0.513894032194\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.54, Page Number:1473" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=6600#V\n", - "load=1000#KVA\n", - "x=20#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=87.5\n", - "x=8.7\n", - "vp=3810\n", - "e0=4311\n", - "ir=70\n", - "ix=52.5\n", - "IX=762\n", - "vb1=(e0**2-vp**2)**0.5\n", - "i1x=vb1\n", - "i1=i1x/x\n", - "output=3**0.5*v*i1/1000\n", - "b2v=(vp**2+e0**2)**0.5\n", - "i2z=b2v\n", - "i2=b2v/x\n", - "i2rx=e0\n", - "i2r=i2rx/x\n", - "i2x=vp/x\n", - "tanphi2=i2x/i2r\n", - "phi2=math.atan(tanphi2)\n", - "cosphi2=math.cos(phi2)\n", - "output1=3**0.5*v*i2*cosphi2/1000\n", - "\n", - "#result\n", - "print \"power output at unity pf=\",output,\"kW\"\n", - "print \"max power output=\",output1,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output at unity pf= 2650.38477722 kW\n", - "max power output= 5664.52285143 kW\n" - ] - } - ], - "prompt_number": 255 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.55, Page Number:1474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=10.0#ohm\n", - "i=220.0#A\n", - "load=11.0#kV\n", - "per=25.0#%\n", - "\n", - "#calculations\n", - "oa1=load*1000/3**0.5\n", - "a1c1=i*x\n", - "e0=(oa1**2+a1c1**2)**0.5\n", - "emf=(1+per/100)*e0\n", - "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", - "ix=a1a2/x\n", - "i1=(i**2+ix**2)**0.5\n", - "pf=i/i1\n", - "bv=(oa1**2+emf**2)**0.5\n", - "imax=bv/x\n", - "ir=emf/x\n", - "ix=oa1/x\n", - "pfmax=ir/imax\n", - "output=3**0.5*load*1000*imax*pfmax*0.001\n", - "#result\n", - "print \"new current=\",i1,\"A\"\n", - "print \"new power factor=\",pf\n", - "print \"max power output=\",output,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new current= 281.573453399 A\n", - "new power factor= 0.781323655849\n", - "max power output= 16006.7954319 kW\n" - ] - } - ], - "prompt_number": 258 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.56, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#MVA\n", - "load1=35.0#MVA\n", - "pf=0.8\n", - "output=25.0#MVA\n", - "cosphi1=0.9\n", - "\n", - "#calculations\n", - "loadmw=load1*pf\n", - "loadmvar=load1*0.6\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "mva1=25\n", - "mw1=mva1*cosphi1\n", - "mvar1=25*sinphi1\n", - "mw2=loadmw-mw1\n", - "mvar2=loadmvar-mvar1\n", - "mva2=(mw2**2+mvar2**2)**0.5\n", - "cosphi2=mw2/mva2\n", - "\n", - "#result\n", - "print \"output=\",mva2\n", - "print \"pf=\",cosphi2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 10.4509862952\n", - "pf= 0.52626611926\n" - ] - } - ], - "prompt_number": 260 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.57, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "load=600#KW\n", - "loadm=707#kW\n", - "pf=0.707\n", - "output=900#kW\n", - "pf1=0.9\n", - "\n", - "#calculation\n", - "kva=1000\n", - "kvar=kva*(1-pf1**2)**0.5\n", - "active_p=1307-output\n", - "reactive_p=loadm-kvar\n", - "\n", - "#result\n", - "print \"active power shared by second machine=\",active_p,\"kW\"\n", - "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "active power shared by second machine= 407 kW\n", - "reactive power shared by second machine= 271.110105646 kVAR\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.58, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l1=500#kW\n", - "l2=1000#kW\n", - "pf1=0.9\n", - "l3=800#kW\n", - "pf2=0.8\n", - "l4=500#kW\n", - "pf3=0.9\n", - "output=1500#kW\n", - "pf=0.95\n", - "\n", - "#calculation\n", - "kw1=l1\n", - "kw2=l2\n", - "kw3=l3\n", - "kw4=500\n", - "kvar2=kw2*0.436/pf1\n", - "kvar3=kw3*0.6/pf2\n", - "kvar4=kw4*0.436/pf3\n", - "kvar=output/pf\n", - "kw=kw1+kw2+kw3+kw4-output\n", - "kvar=kvar2+kvar3+kvar4-kvar\n", - "cosphi=math.cos(math.atan(kvar/kw))\n", - "\n", - "#result\n", - "print \"kW output=\",kw\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kW output= 1300\n", - "pf= 0.981685651341\n" - ] - } - ], - "prompt_number": 264 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.59, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=complex(0.2,2)\n", - "ze=complex(3,4)\n", - "emf1=complex(2000,0)\n", - "emf2=complex(22000,100)\n", - "\n", - "#calculations\n", - "i1=complex(68.2,-102.5)\n", - "i2=complex(127,-196.4)\n", - "i=i1+i2\n", - "v=i*ze\n", - "pva1=v*i1\n", - "kw1=pva1.real*3\n", - "a11=math.atan(-i1.imag/i1.real)\n", - "a12=math.atan(-v.imag/v.real)\n", - "pf1=math.cos(a11-a12)\n", - "pva2=v*i2\n", - "kw2=pva2.real*3\n", - "a21=math.atan(-i2.imag/i2.real)\n", - "a22=math.atan(-v.imag/v.real)\n", - "pf2=math.cos(a21-a22)\n", - "\n", - "#result\n", - "print \"kw output 1=\",kw1/1000\n", - "print \"pf 1=\",pf1\n", - "print \"kw output 2=\",kw2/1000\n", - "print \"pf 2=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kw output 1= 328.79427\n", - "pf 1= 0.606839673468\n", - "kw output 2= 610.34892\n", - "pf 2= 0.596381892841\n" - ] - } - ], - "prompt_number": 273 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.63, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "f=50#Hz\n", - "ns=1500#rpm\n", - "j=1.5*10**4#khm2\n", - "ratio=5\n", - "\n", - "#calculation\n", - "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"natural time period of oscillation=\",round(t,3),\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "natural time period of oscillation= 1.364 s\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.64, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10000#KVA\n", - "p=4\n", - "v=6600#V\n", - "f=50#Hz\n", - "xs=25#%\n", - "pf=1.5\n", - "\n", - "#calculations\n", - "ratio=100/xs\n", - "ns=120*f/p\n", - "j=(pf/(0.0083*ns))**2*load*ratio*f\n", - "\n", - "#result\n", - "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "moment of inertia= 29.0317898098 x10^4 kg-m2\n" - ] - } - ], - "prompt_number": 277 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.65, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#MVA\n", - "v=10.0#kV\n", - "f=50.0#Hz\n", - "ns=1500.0#rpm\n", - "j=2.0*10**5#kgm2\n", - "x=40.0\n", - "\n", - "#calculation\n", - "ratio=100.0/x\n", - "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of oscillation of the rotor= 0.2 Hz\n" - ] - } - ], - "prompt_number": 283 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.66, Page Number:1483" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=11#kV\n", - "z=complex(1,10)\n", - "emf=14#kV\n", - "\n", - "#calculations\n", - "e=emf*1000/3**0.5\n", - "v=v*1000/3**0.5\n", - "costheta=z.real/abs(z)\n", - "pmax=e*v*3/(z.imag*1000)\n", - "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", - "\n", - "#result\n", - "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max output = 14125.5529273 kW\n" - ] - } - ], - "prompt_number": 285 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.67, Page Number:1484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=11#kVA\n", - "load1=10#MW\n", - "z=complex(0.8,8.0)\n", - "v=14#kV\n", - "\n", - "#calculations\n", - "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", - "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", - "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", - "\n", - "#result\n", - "print \"maximum output=\",pmax/1000000,\"MW\"\n", - "print \"current=\",imax,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output= 19.25 MW\n", - "current= 1284.92866209 A\n", - "pf= 0.786318338822\n" - ] - } - ], - "prompt_number": 289 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb deleted file mode 100644 index 7e0be0a9..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb +++ /dev/null @@ -1,2781 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 37: Alternators" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.1, Page Number:1412" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "s1=36.0\n", - "p1=4.0\n", - "span1=8.0\n", - "s2=72.0\n", - "p2=6.0\n", - "span2=10.0\n", - "s3=96.0\n", - "p3=6.0\n", - "span3=12.0\n", - "\n", - "#calculations\n", - "alpha1=2*p1*180/s1\n", - "alpha2=3*p2*180/s2\n", - "alpha3=5*p3*180/s3\n", - "kc1=math.cos(math.radians(alpha1/2))\n", - "kc2=math.cos(math.radians(alpha2/2))\n", - "kc3=math.cos(math.radians(alpha3/2))\n", - "\n", - "#result\n", - "print \"a)kc=\",kc1\n", - "print \"b)kc=\",kc2\n", - "print \"c)kc=\",kc3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "a)kc= 0.939692620786\n", - "b)kc= 0.923879532511\n", - "c)kc= 0.881921264348\n" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.2, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "s=36.0\n", - "p=4.0\n", - "\n", - "#calculations\n", - "n=s/p\n", - "beta=180/n\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"distribution factor=\",kd" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "distribution factor= 0.959795080524\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.3, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=10.0#V\n", - "beta=30.0#degrees\n", - "m=6.0\n", - "\n", - "#calculations\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "arith_sum=6*v\n", - "vector_sum=kd*arith_sum\n", - "\n", - "#calculation\n", - "print \"emf of six coils in series=\",vector_sum,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf of six coils in series= 38.6370330516 V\n" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.4, Page Number:1414" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "beta=180/9\n", - "ratio=2.0/3.0\n", - "m1=9\n", - "m2=6\n", - "m3=3\n", - "\n", - "#calculation\n", - "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", - "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", - "\n", - "#result\n", - "print \"i) kd=\",kd1\n", - "print \"ii)kd=\",kd2\n", - "print \"iii)kd=\",kd3" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i) kd= 0.639863387016\n", - "ii)kd= 0.831206922161\n", - "iii)kd= 0.959795080524\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.5, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "slot=18.0\n", - "s=16.0\n", - "m1=3.0\n", - "m2=5.0\n", - "m3=7.0\n", - "\n", - "#calculations\n", - "span=(s-1)\n", - "alpha=180*3/slot\n", - "kc1=math.cos(math.radians(alpha/2))\n", - "kc3=math.cos(math.radians(m1*alpha/2))\n", - "kc5=math.cos(math.radians(m2*alpha/2))\n", - "kc7=math.cos(math.radians(m3*alpha/2))\n", - "\n", - "#result\n", - "print \"kc1=\",kc1\n", - "print \"kc3=\",kc3\n", - "print \"kc5=\",kc5\n", - "print \"kc7=\",kc7" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kc1= 0.965925826289\n", - "kc3= 0.707106781187\n", - "kc5= 0.258819045103\n", - "kc7= -0.258819045103\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.6, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "s=144.0\n", - "z=10.0\n", - "phi=0.03#Wb\n", - "n=375.0#rpm\n", - "\n", - "#calculation\n", - "f=p*n/120\n", - "n=s/p\n", - "beta=180/9\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "t=s*z/(3*2)\n", - "eph=4.44*1*0.96*f*phi*t\n", - "el=3**0.5*eph\n", - "#result\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"phase emf=\",eph,\"V\"\n", - "print \"line emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 50.0 Hz\n", - "phase emf= 1534.464 V\n", - "line emf= 2657.76961039 V\n" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.7, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=6\n", - "s=54\n", - "phi=0.1#Wb\n", - "n=1200#rpm\n", - "t=8\n", - "#calculations\n", - "beta=180/9\n", - "kc=math.cos(beta/2)\n", - "f=p*n/120\n", - "n=s/p\n", - "m=s/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=s*8/3\n", - "t=z/2\n", - "eph=4.44*0.98*0.96*f*phi*t\n", - "el=3**0.*eph\n", - "\n", - "#result\n", - "print \"eph=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "eph= 1804.529664 V\n" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.8, Page Number:1416" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=16.0\n", - "slots=144.0\n", - "z=4.0\n", - "n=375.0\n", - "airgap=5*0.01\n", - "theta=150.0\n", - "\n", - "#calculation\n", - "kf=1.11\n", - "alpha=(180-theta)\n", - "kc=math.cos(math.radians(alpha/2))\n", - "beta=180/9\n", - "m=slots/(p*3)\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "f=p*n/120\n", - "s=slots/3\n", - "eph=4*kf*kc*kd*f*airgap*s*4/2\n", - "\n", - "#result\n", - "print \"emf per phase=\",eph,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf per phase= 987.908016392 V\n" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.9, Page Number:1417" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10\n", - "f=50#Hz\n", - "n=600#rpm\n", - "slots=180\n", - "s=15\n", - "d=1.2#m\n", - "l=0.4#m\n", - "m=6\n", - "beta=180/18\n", - "#calculations\n", - "area=(1.2*3.14/p)*l\n", - "phi1=area*0.637\n", - "vr=1.1*2*f*phi1\n", - "vp=2**0.5*vr\n", - "v3=0.4*vp\n", - "v5=0.2*vp\n", - "vf=6*vp*0.966\n", - "vf3=6*v3*0.707\n", - "vf5=6*v5*0.259\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", - "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", - "vph=vf*2**0.5*60*kd1\n", - "vph3=vf3*2**0.5*60*kd2\n", - "vph5=vf5*2**0.5*60*kd3\n", - "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", - "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", - "\n", - "#result\n", - "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", - "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", - "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", - "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", - "iii)rms value of phase voltage= 7158.83679423 V\n" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.10, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=4\n", - "f=50.0#Hz\n", - "slot=60.0\n", - "z=4.0\n", - "s=3.0\n", - "theta=60.0\n", - "phi=0.943#Wb\n", - "\n", - "#calculation\n", - "m=slot/(p*s)\n", - "beta=slot/5\n", - "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "alpha=(s/15)*180\n", - "kc=math.cos(math.radians(alpha/2))\n", - "z=slot*z/s\n", - "t=z/2\n", - "kf=1.11\n", - "eph=z*kf*kc*kd*f*phi*t/2\n", - "el=3**0.5*eph*0.1\n", - "\n", - "#result\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage= 13196.4478482 V\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.11, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4.0\n", - "f=50.0#Hz\n", - "slot=15.0\n", - "z=10.0\n", - "kd=0.95\n", - "e=1825#v\n", - "kc=1\n", - "kf=1.11\n", - "#calculations\n", - "slots=p*slot\n", - "slotsp=slots/3\n", - "turnp=20*z/2\n", - "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", - "z=slots*z\n", - "n=120*f/p\n", - "eg=(phi*0.001*z*n)/slots\n", - "\n", - "#result\n", - "print \"emf=\",eg*1000,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 749.405577006 V\n" - ] - } - ], - "prompt_number": 47 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.12, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=360#V\n", - "f=60.0#Hz\n", - "i=3.6#A\n", - "f2=40#Hz\n", - "i2=2.4#A\n", - "\n", - "#calculations\n", - "e2=v*i2*f2/(f*i)\n", - "\n", - "#result\n", - "print \"e2=\",e2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e2= 160.0 V\n" - ] - } - ], - "prompt_number": 49 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.13, Page Number:1418" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=0\n", - "f=50.0#Hz\n", - "slot=2\n", - "z=4\n", - "theta=150#degrees\n", - "phi=0.12#Wb\n", - "per=20#%\n", - "\n", - "#calculations\n", - "alpha=180-theta\n", - "slotp=6\n", - "m=2\n", - "beta=180/slotp\n", - "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", - "z=10*slot*z\n", - "t=z/2\n", - "e1=4.44*kd1*kd1*f*0.12*t\n", - "kc3=math.cos(3*math.radians(alpha/2))\n", - "f2=f*3\n", - "phi3=(1.0/3)*per*0.12\n", - "e3=4.44*kd3*kd3*theta*0.008*40\n", - "e=(e1**2+e3**2)**0.5\n", - "\n", - "#result\n", - "print \"e=\",e,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "e= 994.25286629 V\n" - ] - } - ], - "prompt_number": 50 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.14, Page Number:1419" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=230.0#V\n", - "per=10.0#%\n", - "per2=6.0#%\n", - "f=50.0#Hz\n", - "r=10.0#ohm\n", - "\n", - "#calculation\n", - "#star connection\n", - "e5=per*v/100\n", - "e=(v**2+e5**2)**0.5\n", - "eph=3**0.5*e\n", - "\n", - "#delta\n", - "e3=10*v/100\n", - "f3=10*3\n", - "i=e3/f3\n", - "\n", - "#result\n", - "print \"line voltage for star=\",eph,\"V\"\n", - "print \"line voltage for delta=\",e3,\"V\"\n", - "print \"current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage for star= 400.358589267 V\n", - "line voltage for delta= 23.0 V\n", - "current= 0.766666666667 A\n" - ] - } - ], - "prompt_number": 55 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(a), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=10.0\n", - "p1=24.0\n", - "f=25#Hz\n", - "p3=6.0\n", - "s=0.05\n", - "\n", - "#calculation\n", - "n=120*f/p\n", - "f1=p1*n/120\n", - "n2=120*f1/6\n", - "n3=(1-s)*n2\n", - "f2=s*f1p\n", - "\n", - "\n", - "#result\n", - "print \"frequency=\",f1,\"Hz\"\n", - "print \"speed=\",n3,\"rpm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency= 60.0 Hz\n", - "speed= 1140.0 rpm\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.15(b), Page Number:1420" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "p=4\n", - "phi=0.12#Wb\n", - "slotsp=4\n", - "cp=4\n", - "theta=150#degrees\n", - "\n", - "#calculation\n", - "slots=slotsp*3*p\n", - "c=cp*slots\n", - "turns=32\n", - "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", - "kp=math.cos(math.radians(15))\n", - "eph=4.44*50*0.12*kb*0.966*turns\n", - "el=eph*3**0.5\n", - "\n", - "#result\n", - "print \"line voltage\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line voltage 1365.94840977 V\n" - ] - } - ], - "prompt_number": 62 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.16, Page Number:1426" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.85\n", - "v=11#kV\n", - "r=0.1#ohm\n", - "x=0.66#ohm\n", - "\n", - "#calculation\n", - "i=load*10**6/(3**0.5*v*1000*pf)\n", - "iradrop=i*r\n", - "ixsdrop=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", - "el=3**0.5*e0\n", - "\n", - "#result\n", - "print \"linevalue of emf=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "linevalue of emf= 11475.6408913 V\n" - ] - } - ], - "prompt_number": 69 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(a), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2200.0#V\n", - "f=50.0#Hz\n", - "load=440.0#KVA\n", - "r=0.5#ohm\n", - "i=40.0#A\n", - "il=200.0#A\n", - "vf=1160.0#V\n", - "\n", - "#calculations\n", - "zs=vf/200\n", - "xs=(zs**2-r**2)**0.5\n", - "\n", - "#result\n", - "print \"synchronous impedence=\",zs,\"ohm\"\n", - "print \"synchronous reactance=\",xs,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous impedence= 5.8 ohm\n", - "synchronous reactance= 5.77840808528 ohm\n" - ] - } - ], - "prompt_number": 71 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.17(b), Page Number:1428" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=60.0#kVA\n", - "v=220.0#V\n", - "f=50.0#Hz\n", - "r=0.016#ohm\n", - "x=0.07#ohm\n", - "pf=0.7\n", - "\n", - "#calculations\n", - "i=load*1000/v\n", - "ira=i*r\n", - "ixl=i*x\n", - "#unity pf\n", - "e=((v+ira)**2+(ixl)**2)**0.5\n", - "#pf of 0.7 lag\n", - "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", - "#pf of 0.7 lead\n", - "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", - "\n", - "#result\n", - "print \"voltage with pf=1\",e,\"V\"\n", - "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", - "print \"voltage with pf=0.7 lead\",e3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage with pf=1 225.174386048 V\n", - "voltage with pf=0.7 lag 234.604995966 V\n", - "voltage with pf=0.7 lead 208.03726621 V\n" - ] - } - ], - "prompt_number": 75 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.18(a), Page Number:1429" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=50.0#KVA\n", - "v1=440.0#V\n", - "f=50.0#Hz\n", - "r=0.25#ohm\n", - "x=3.2#ohm\n", - "xl=0.5#ohm\n", - "\n", - "#calculation\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "rd=i*r\n", - "ixl=i*xl\n", - "ea=((v+rd)**2+(ixl)**2)**0.5\n", - "el=3**0.5*ea\n", - "e0=((v+rd)**2+(i*x)**2)**0.5\n", - "e0l=e0*3**0.5\n", - "per=(e0-v)/v\n", - "xa=x-xl\n", - "#result\n", - "print \"internal emf Ea=\",el,\"V\"\n", - "print \"no load emf=\",e0l,\"V\"\n", - "print \"percentage regulation=\",per*100,\"%\"\n", - "print \"valueof synchronous reactance=\",xa,\"ohm\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "internal emf Ea= 471.842539659 V\n", - "no load emf= 592.991130967 V\n", - "percentage regulation= 34.7707115833 %\n", - "valueof synchronous reactance= 2.7 ohm\n" - ] - } - ], - "prompt_number": 87 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.19, Page Number:1432" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "i=200.0#A\n", - "v=50.0#V\n", - "r=0.1#ohm\n", - "il=100.0#A\n", - "pf=0.8\n", - "vt=200.0#V\n", - "\n", - "#calculation\n", - "zs=v/vt\n", - "xs=(zs**2-r**2)**0.5\n", - "ira=il*r\n", - "ixs=il*xs\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "\n", - "#result\n", - "print \"induced voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced voltage= 222.090276316 V\n" - ] - } - ], - "prompt_number": 90 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.20, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=2000.0#V\n", - "i=100.0#A\n", - "pf=0.8\n", - "pf2=0.71\n", - "i2=2.5#A\n", - "v2=500.0#V\n", - "r=0.8#ohm\n", - "\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "sinphi2=math.sin(math.acos(pf2))\n", - "zs=v2/i\n", - "xs=(zs**2-r**2)**.5\n", - "#unity pf\n", - "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", - "reg1=(e01-v)*100/v\n", - "#at pf=0.8\n", - "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v)*100/v\n", - "#at pf=0.71\n", - "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", - "reg3=(e03-v)*100/v\n", - "\n", - "#result\n", - "print \"voltage regulation unity pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", - "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.6\n", - "voltage regulation unity pf= 6.88779163216 %\n", - "voltage regulation 0.8 lag pf= -8.875640156 %\n", - "voltage regulation 0.71 lead pf= 21.1141910671 %\n" - ] - } - ], - "prompt_number": 100 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.21, Page Number:1433" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=3000.0#V\n", - "load=100.0#kVA\n", - "f=50.0#Hz\n", - "r=0.2\n", - "i1=40.0#A\n", - "i2=200.0#A\n", - "v2=1040.0#V\n", - "pf=0.8\n", - "v1=v/3**0.5\n", - "#calculations\n", - "sinphi1=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**.5\n", - "i=load*1000/(3**0.5*v)\n", - "\n", - "\n", - "#at pf=0.8 lag\n", - "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", - "reg1=(e01-v1)*100/v1\n", - "#at pf=0.8 lead\n", - "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", - "reg2=(e02-v1)*100/v1\n", - "\n", - "#result\n", - "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", - "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation 0.8 lag pf= 2.20611574348 %\n", - "voltage regulation 0.8 lag pf= -1.77945143824 %\n" - ] - } - ], - "prompt_number": 112 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.22, Page Number:1434" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1600.0#kVA\n", - "v=13500.0#V\n", - "r=1.5#ohm\n", - "x=30.0#ohm\n", - "load1=1280.0#kW\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi1=math.sin(math.acos(pf))\n", - "i=load1*1000/(3**0.5*v*pf)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", - "regn=(e0-vp)*100/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= -11.9909032489 %\n" - ] - } - ], - "prompt_number": 122 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.23, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#kVA\n", - "v=400.0#V\n", - "f=50.0#Hz\n", - "pf=0.8\n", - "r=0.5#ohm\n", - "x=10.0#ohm\n", - "\n", - "#calculations\n", - "i=load*1000/(3**0.5*v)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", - "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", - "\n", - "#result\n", - "print \"voltage regulation=\",regn*100,\"%\"\n", - "print \"power angle=\",delta,\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "voltage regulation= 48.0405877623 %\n", - "power angle= 18.9704078085 degrees\n" - ] - } - ], - "prompt_number": 127 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.24, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6000.0#KVA\n", - "v=6600.0#V\n", - "p=2.0\n", - "f=50.0#Hz\n", - "i2=125.0#A\n", - "v1=8000.0#V\n", - "i3=800.0#A\n", - "d=0.03\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v1/(3**0.5*i3)\n", - "vp=v/3**0.5\n", - "rd=d*vp\n", - "il=load*1000/(3**0.5*v)\n", - "ira=rd\n", - "ra=ira/il\n", - "xs=(zs**2-ra**2)**0.5\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", - "reg=(e0-vp)/vp\n", - "\n", - "#result\n", - "print \"percentage regulation=\",reg*100,\"%\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "percentage regulation= 62.2972136768 %\n" - ] - } - ], - "prompt_number": 133 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.25, Page Number:1435" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "load=2000#KVA\n", - "v=2300#V\n", - "i=600#A\n", - "v2=900#V\n", - "r=0.12#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "zs=v2/(3**0.5*i)\n", - "rp=r/2\n", - "re=rp*1.5\n", - "xs=(zs**2-re**2)**0.5\n", - "il=load*1000/(3**0.5*v)\n", - "ira=il*rp\n", - "ixs=il*xs\n", - "vp=v/3**0.5\n", - "e0=((vp+ira)**2+(ixs)**2)**0.5\n", - "reg1=(e0-vp)/vp\n", - "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", - "reg2=(e0-vp)/vp\n", - "#result\n", - "print \"regulation at pf=1\",reg1*100,\"%\"\n", - "print \"regulation at pf=0.8\",reg2*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation at pf=1 7.32796146323 %\n", - "regulation at pf=0.8 23.8398862235 %\n" - ] - } - ], - "prompt_number": 134 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.26, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=Symbol('v')\n", - "load=2000#KVA\n", - "load1=11#KV\n", - "r=0.3#ohm\n", - "x=5#ohm\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "sinphi=math.sin(math.acos(pf))\n", - "i=load*1000/(3**0.5*load1*1000)\n", - "vt=load1*1000/3**0.5\n", - "ira=i*r\n", - "ixs=i*x\n", - "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", - "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v[1],\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 6978.31767618569 V\n" - ] - } - ], - "prompt_number": 150 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.27, Page Number:1436" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1200#KVA\n", - "load1=3.3#KV\n", - "f=50#Hz\n", - "r=0.25#ohm\n", - "i=35#A\n", - "i2=200#A\n", - "v=1.1#kV\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "zs=v*1000/(3**0.5*i2)\n", - "xs=(zs**2-r**2)**0.5\n", - "v=load1*1000/3**0.5\n", - "theta=math.atan(xs/r)\n", - "ia=load*1000/(3**0.5*load1*1000)\n", - "e=v+ia*zs\n", - "change=(e-v)/v\n", - "\n", - "#result\n", - "print \"per unit change=\",change" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "per unit change= 0.349909254054\n" - ] - } - ], - "prompt_number": 151 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.28, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50#Hz\n", - "v1=11#kV\n", - "load=3#MVA\n", - "i=100#A\n", - "v2=12370#V\n", - "vt=11000#V\n", - "pf=0.8\n", - "r=0.4#ohm\n", - "\n", - "#calculation\n", - "E0=v1*1000/3**0.5\n", - "v=v2/3**0.5\n", - "pf=0\n", - "sinphi=1\n", - "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", - "il=load*10**6/(3**0.5*v1*1000)\n", - "ira=il*r\n", - "ixs=il*xs\n", - "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", - "regn=(e0-E0)*100/E0\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 19.6180576177 %\n" - ] - } - ], - "prompt_number": 175 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.29, Page Number:1437" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "pf=0.8\n", - "vt=3500#v\n", - "load=2280#KW\n", - "v1=3300#V\n", - "r=8#ohm\n", - "x=6#ohm\n", - "\n", - "#calculation\n", - "vl=vt/3**0.5\n", - "vp=v1/3**0.5\n", - "il=load*1000/(3**0.5*v1*pf)\n", - "drop=vl-vp\n", - "z=(r**2+x**2)**0.5\n", - "x=vl/(z+drop/il)\n", - "vtp=vl-x*drop/il\n", - "vtpl=vtp*3**0.5\n", - "\n", - "#result\n", - "print \"terminal voltage=\",vtpl,\"V\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= 3420.781893 V\n" - ] - } - ], - "prompt_number": 176 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.30, Page Number:1441" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3.5#MVA\n", - "v=4160#V\n", - "f=50#Hz\n", - "i=200#A\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "il=load*10**6/(3**0.5*v)\n", - "zs=4750/(3**0.5*il)\n", - "ra=0\n", - "ixs=il*zs\n", - "vp=v/3**0.5\n", - "sinphi=math.sin(math.acos(pf))\n", - "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", - "regn=(e0-vp)/vp\n", - "#result\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "regulation= 0.91675794767 %\n" - ] - } - ], - "prompt_number": 184 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.39, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "xd=0.7\n", - "xq=0.4\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "ia=1\n", - "tandelta=ia*xq*pf/(v+xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(math.radians(36.9)+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"no load voltage=\",e0,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 14.4702941001 degrees\n", - "no load voltage= 1.51511515874 V\n" - ] - } - ], - "prompt_number": 185 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.40, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "f=50.0#Hz\n", - "xd=0.6\n", - "xq=0.45\n", - "ra=0.015\n", - "pf=0.8\n", - "ia=1\n", - "v=1\n", - "sinphi=math.sin(math.acos(pf))\n", - "#calculation\n", - "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", - "psi=math.atan(tanpsi)\n", - "delta=psi-math.acos(pf)\n", - "i_d=ia*math.sin(psi)\n", - "iq=ia*math.cos(psi)\n", - "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", - "regn=(e0-v)*100/v\n", - "\n", - "#result\n", - "print \"open circuit voltage=\",e0,\"V\"\n", - "print \"regulation=\",regn,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "open circuit voltage= 1.44767600311 V\n", - "regulation= 44.7676003107 %\n" - ] - } - ], - "prompt_number": 187 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.41, Page Number:1455" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "ia=10#A\n", - "phi=math.radians(20)\n", - "v=400#V\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "pf=math.cos(phi)\n", - "sinphi=math.sin(phi)\n", - "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", - "delta=math.atan(tandelta)\n", - "i_d=ia*math.sin(phi+delta)\n", - "iq=ia*math.cos(phi+delta)\n", - "e0=v*math.cos(delta)+i_d*xd\n", - "regn=(e0-v)/v\n", - "\n", - "#result\n", - "print \"load angle=\",math.degrees(delta),\"degrees\"\n", - "print \"id=\",i_d,\"A\"\n", - "print \"iq=\",iq,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 8.23131209115 degrees\n", - "id= 4.7303232581 A\n", - "iq= 8.81045071911 A\n" - ] - } - ], - "prompt_number": 189 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.42, Page Number:1459" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "e1=220#V\n", - "f1=60#Hz\n", - "e2=222#V\n", - "f2=59#Hz\n", - "\n", - "#calculation\n", - "emax=(e1+e2)/2\n", - "emin=(e2-e1)/2\n", - "f=(f1-f2)\n", - "epeak=emax/0.707\n", - "pulse=(f1-f2)*60\n", - "\n", - "#result\n", - "print \"max voltage=\",emax,\"V\"\n", - "print \"min voltage=\",emin,\"V\"\n", - "print \"frequency=\",f,\"Hz\"\n", - "print \"peak value of voltage=\",epeak,\"V\"\n", - "print \"number of maximum light pulsations/minute=\",pulse" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max voltage= 221 V\n", - "min voltage= 1 V\n", - "frequency= 1 Hz\n", - "peak value of voltage= 312.588401697 V\n", - "number of maximum light pulsations/minute= 60\n" - ] - } - ], - "prompt_number": 190 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.43, Page Number:1462" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "power=1500#kVA\n", - "v=6.6#kV\n", - "r=0.4#ohm\n", - "x=6#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "i=power*1000/(3**0.5*v*1000)\n", - "ira=i*r\n", - "ixs=i*x\n", - "vp=v*1000/3**0.5\n", - "phi=math.acos(pf)\n", - "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", - "phialpha=math.atan(tanphialpha)\n", - "alpha=phialpha-phi\n", - "\n", - "#result\n", - "print \"power angle=\",math.degrees(alpha)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power angle= 7.87684146241\n" - ] - } - ], - "prompt_number": 198 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.44, Page Number:1464" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3000#KVA\n", - "p=6\n", - "n=1000#rpm\n", - "v=3300#v\n", - "x=0.25\n", - "\n", - "#calculation\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "ixs=x*vp\n", - "xs=x*vp/i\n", - "alpha=1*p/2\n", - "psy=3*3.14*vp**2/(60*xs*n)\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronizing power=\",psy,\"kW\"\n", - "print \"torque=\",tsy*1000,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronizing power= 628.0 kW\n", - "torque= 5997.4 N-m\n" - ] - } - ], - "prompt_number": 202 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.45, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=3#MVA\n", - "n=1000#rpm\n", - "v1=3.3#kV\n", - "r=0.25\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "vp=v1*1000/3**0.5\n", - "i=load*1000000/(3**0.5*v1*1000)\n", - "ixs=complex(0,r*vp)\n", - "xs=ixs/i\n", - "v=vp*complex(pf,math.sin(math.acos(pf)))\n", - "e0=v+ixs\n", - "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", - "p=6/2\n", - "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", - "tsy=9.55*3*psy*100/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", - "print \"toque=\",-tsy/100,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 722.236196153j kW\n", - "toque= 6897.35567326j N-m\n" - ] - } - ], - "prompt_number": 221 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.46, Page Number:1465" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=750#KVA\n", - "v=11#kV\n", - "p=4\n", - "r=1#%\n", - "x=15#%\n", - "pf=0.8\n", - "#calculation\n", - "i=load*1000/(3**0.5*v*1000)\n", - "vph=v*1000/3**0.5\n", - "ira=r*vph/1000\n", - "ra=ira/i\n", - "xs=x*vph/(100*i)\n", - "zs=(ra**2+xs**2)**0.5\n", - "#no load\n", - "alpha=p/2\n", - "psy=math.radians(alpha)*vph**2/xs\n", - "#fl 0.8 pf\n", - "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", - "psy2=math.radians(alpha)*e*vph/xs\n", - "\n", - "#result\n", - "print \"Synchronous power at:\"\n", - "print \"no load=\",psy,\"W\"\n", - "print \"at pf of 0.8=\",psy2,\"w\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Synchronous power at:\n", - "no load= 58177.6417331 W\n", - "at pf of 0.8= 73621.2350169 w\n" - ] - } - ], - "prompt_number": 225 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.47, Page Number:1466" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=2000#KVA\n", - "p=8\n", - "n=750#rpm\n", - "v1=6000#V\n", - "pf=0.8\n", - "r=6#ohm\n", - "\n", - "#calculations\n", - "alpha=math.radians(4)\n", - "v=v1/3**0.5\n", - "i=load*1000/(3**0.5*v1)\n", - "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", - "psy=alpha*e0*v*3/r\n", - "tsy=9.55*psy/n\n", - "\n", - "#result\n", - "print \"synchronous power=\",psy,\"W\"\n", - "print \"synchronous torque=\",tsy,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power= 514916.500204 W\n", - "synchronous torque= 6556.60343593 N-m\n" - ] - } - ], - "prompt_number": 226 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.48, Page Number:1467" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "n=1500#rpm\n", - "f=50#Hz\n", - "r=20#%\n", - "pf=0.8\n", - "phi=0.5\n", - "\n", - "#calculations\n", - "vp=v/3**0.5\n", - "i=load*1000/(3**0.5*v)\n", - "xs=r*vp/(1000*i)\n", - "p=120*f/n\n", - "alpha=math.radians(2)\n", - "#no load\n", - "psy=3*alpha*vp**2/(p*1000)\n", - "tsy=9.55*psy*1000/(n*2)\n", - "#pf=0.8\n", - "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", - "ixs=complex(0,i*4)\n", - "e0=v+ixs\n", - "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", - "tsy2=9.55*psy2/(n*20)\n", - "\n", - "#result\n", - "print \"synchronous power:\"\n", - "print \"atno load=\",psy,\"w\"\n", - "print \"at 0.8 pf=\",psy2,\"w\"\n", - "print \"torque:\"\n", - "print \"at no load=\",tsy,\"N-m\"\n", - "print \"at pf=0.8=\",tsy2,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "synchronous power:\n", - "atno load= 872.664625997 w\n", - "at 0.8 pf= 1506057.44405 w\n", - "torque:\n", - "at no load= 2777.98239276 N-m\n", - "at pf=0.8= 479.428286357 N-m\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.49, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=6.6#kW\n", - "load1=3000#kW\n", - "pf=0.8\n", - "xa=complex(0.5,10)\n", - "xb=complex(0.4,12)\n", - "i0=150#A\n", - "\n", - "#calculation\n", - "v=complex(load*1000/3**0.5,0)\n", - "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", - "phi1=math.acos(cosphi1)\n", - "sinphi1=math.sin(phi1)\n", - "i=328*complex(pf,-math.sin(math.acos(pf)))\n", - "i1=i0*complex(cosphi1,-sinphi1)\n", - "i2=i-i1\n", - "coshi2=i2.real/181\n", - "ea=v+i1*xa\n", - "eal=3**0.5*abs(ea)\n", - "eb=v+i2*xb\n", - "ebl=3**0.5*abs(eb)\n", - "alpha1=(ea.imag/ea.real)\n", - "alpha2=(eb.imag/eb.real)\n", - "#result\n", - "print \"Ea=\",ea,\"V\"\n", - "print \"Eb=\",eb,\"V\"\n", - "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", - "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Ea= (4602.91884998+1275.81974829j) V\n", - "Eb= (5352.42648271+1524.56032028j) V\n", - "alpha1= 15.8810288383 degrees\n", - "alpha2= 16.3198639435 degrees\n" - ] - } - ], - "prompt_number": 245 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.50, Page Number:1468" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declration\n", - "e1=complex(230,0)\n", - "e2=230*complex(0.985,0.174)\n", - "z1=complex(0,2)\n", - "z2=complex(0,3)\n", - "z=6\n", - "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", - "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", - "i=i1+i2\n", - "v=i*z\n", - "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", - "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", - "\n", - "#result\n", - "print \"terminal voltage=\",v,\"V\"\n", - "print \"current\",i,\"A\"\n", - "print \"power 1=\",p1,\"W\"\n", - "print \"power 2=\",p2,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "terminal voltage= (222.905384615-28.5730769231j) V\n", - "current (37.1508974359-4.76217948718j) A\n", - "power 1= 3210.60292765 W\n", - "power 2= 5138.29001053 W\n" - ] - } - ], - "prompt_number": 249 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.51, Page Number:1471" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=1500#kW\n", - "v=11#KV\n", - "pf=0.867\n", - "x=50#ohm\n", - "r=4#ohm\n", - "i=50#A\n", - "\n", - "#calculations\n", - "il=load*1000/(3**0.5*v*1000*pf)\n", - "phi=math.acos(pf)\n", - "sinphi=math.sin(phi)\n", - "iwatt=il*pf\n", - "iwattless=il*sinphi\n", - "i1=il/2\n", - "i2=iwatt/2\n", - "iw1=(i**2-i1**2)**0.5\n", - "iw2=i2-iw1\n", - "ia=(i2**2+iw2**2)**0.5\n", - "vt=v*1000/3**0.5\n", - "ir=i*r\n", - "ix=x*i\n", - "cosphi=i2/i\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", - "el=3**0.5*e\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"line voltage=\",el,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 43.4628778514 A\n", - "line voltage= 14304.0798593 V\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.52, Page Number:1472" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10#MW\n", - "pf=0.8\n", - "output=6000#kW\n", - "pfa=0.92\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "phia=math.acos(pfa)\n", - "tanphi=math.tan(phi)\n", - "tanphia=math.tan(phia)\n", - "loadkvar=load*1000*tanphi\n", - "akvar=output*tanphia\n", - "kwb=(load*1000-output)\n", - "kvarb=loadkvar-akvar\n", - "kvab=complex(kwb,kvarb)\n", - "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", - "kvarb=kwb*pfb\n", - "kvara=-loadkvar-kvarb\n", - "kvaa=complex(output,kvara)\n", - "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", - "\n", - "#result\n", - "print \"new pfb=\",pfb\n", - "print \"new pfa=\",pfa" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new pfb= 0.628980253433\n", - "new pfa= 0.513894032194\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.54, Page Number:1473" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=6600#V\n", - "load=1000#KVA\n", - "x=20#%\n", - "pf=0.8\n", - "\n", - "#calculation\n", - "i=87.5\n", - "x=8.7\n", - "vp=3810\n", - "e0=4311\n", - "ir=70\n", - "ix=52.5\n", - "IX=762\n", - "vb1=(e0**2-vp**2)**0.5\n", - "i1x=vb1\n", - "i1=i1x/x\n", - "output=3**0.5*v*i1/1000\n", - "b2v=(vp**2+e0**2)**0.5\n", - "i2z=b2v\n", - "i2=b2v/x\n", - "i2rx=e0\n", - "i2r=i2rx/x\n", - "i2x=vp/x\n", - "tanphi2=i2x/i2r\n", - "phi2=math.atan(tanphi2)\n", - "cosphi2=math.cos(phi2)\n", - "output1=3**0.5*v*i2*cosphi2/1000\n", - "\n", - "#result\n", - "print \"power output at unity pf=\",output,\"kW\"\n", - "print \"max power output=\",output1,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - " power output at unity pf= 2650.38477722 kW\n", - "max power output= 5664.52285143 kW\n" - ] - } - ], - "prompt_number": 255 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.55, Page Number:1474" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "x=10.0#ohm\n", - "i=220.0#A\n", - "load=11.0#kV\n", - "per=25.0#%\n", - "\n", - "#calculations\n", - "oa1=load*1000/3**0.5\n", - "a1c1=i*x\n", - "e0=(oa1**2+a1c1**2)**0.5\n", - "emf=(1+per/100)*e0\n", - "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", - "ix=a1a2/x\n", - "i1=(i**2+ix**2)**0.5\n", - "pf=i/i1\n", - "bv=(oa1**2+emf**2)**0.5\n", - "imax=bv/x\n", - "ir=emf/x\n", - "ix=oa1/x\n", - "pfmax=ir/imax\n", - "output=3**0.5*load*1000*imax*pfmax*0.001\n", - "#result\n", - "print \"new current=\",i1,\"A\"\n", - "print \"new power factor=\",pf\n", - "print \"max power output=\",output,\"kW\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new current= 281.573453399 A\n", - "new power factor= 0.781323655849\n", - "max power output= 16006.7954319 kW\n" - ] - } - ], - "prompt_number": 258 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.56, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=20.0#MVA\n", - "load1=35.0#MVA\n", - "pf=0.8\n", - "output=25.0#MVA\n", - "cosphi1=0.9\n", - "\n", - "#calculations\n", - "loadmw=load1*pf\n", - "loadmvar=load1*0.6\n", - "sinphi=math.sin(math.acos(cosphi))\n", - "mva1=25\n", - "mw1=mva1*cosphi1\n", - "mvar1=25*sinphi1\n", - "mw2=loadmw-mw1\n", - "mvar2=loadmvar-mvar1\n", - "mva2=(mw2**2+mvar2**2)**0.5\n", - "cosphi2=mw2/mva2\n", - "\n", - "#result\n", - "print \"output=\",mva2\n", - "print \"pf=\",cosphi2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "output= 10.4509862952\n", - "pf= 0.52626611926\n" - ] - } - ], - "prompt_number": 260 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.57, Page Number:1475" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declarations\n", - "load=600#KW\n", - "loadm=707#kW\n", - "pf=0.707\n", - "output=900#kW\n", - "pf1=0.9\n", - "\n", - "#calculation\n", - "kva=1000\n", - "kvar=kva*(1-pf1**2)**0.5\n", - "active_p=1307-output\n", - "reactive_p=loadm-kvar\n", - "\n", - "#result\n", - "print \"active power shared by second machine=\",active_p,\"kW\"\n", - "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "active power shared by second machine= 407 kW\n", - "reactive power shared by second machine= 271.110105646 kVAR\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.58, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "l1=500#kW\n", - "l2=1000#kW\n", - "pf1=0.9\n", - "l3=800#kW\n", - "pf2=0.8\n", - "l4=500#kW\n", - "pf3=0.9\n", - "output=1500#kW\n", - "pf=0.95\n", - "\n", - "#calculation\n", - "kw1=l1\n", - "kw2=l2\n", - "kw3=l3\n", - "kw4=500\n", - "kvar2=kw2*0.436/pf1\n", - "kvar3=kw3*0.6/pf2\n", - "kvar4=kw4*0.436/pf3\n", - "kvar=output/pf\n", - "kw=kw1+kw2+kw3+kw4-output\n", - "kvar=kvar2+kvar3+kvar4-kvar\n", - "cosphi=math.cos(math.atan(kvar/kw))\n", - "\n", - "#result\n", - "print \"kW output=\",kw\n", - "print \"pf=\",cosphi" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kW output= 1300\n", - "pf= 0.981685651341\n" - ] - } - ], - "prompt_number": 264 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.59, Page Number:1476" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "z=complex(0.2,2)\n", - "ze=complex(3,4)\n", - "emf1=complex(2000,0)\n", - "emf2=complex(22000,100)\n", - "\n", - "#calculations\n", - "i1=complex(68.2,-102.5)\n", - "i2=complex(127,-196.4)\n", - "i=i1+i2\n", - "v=i*ze\n", - "pva1=v*i1\n", - "kw1=pva1.real*3\n", - "a11=math.atan(-i1.imag/i1.real)\n", - "a12=math.atan(-v.imag/v.real)\n", - "pf1=math.cos(a11-a12)\n", - "pva2=v*i2\n", - "kw2=pva2.real*3\n", - "a21=math.atan(-i2.imag/i2.real)\n", - "a22=math.atan(-v.imag/v.real)\n", - "pf2=math.cos(a21-a22)\n", - "\n", - "#result\n", - "print \"kw output 1=\",kw1/1000\n", - "print \"pf 1=\",pf1\n", - "print \"kw output 2=\",kw2/1000\n", - "print \"pf 2=\",pf2" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "kw output 1= 328.79427\n", - "pf 1= 0.606839673468\n", - "kw output 2= 610.34892\n", - "pf 2= 0.596381892841\n" - ] - } - ], - "prompt_number": 273 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.63, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=5000#KVA\n", - "v=10000#V\n", - "f=50#Hz\n", - "ns=1500#rpm\n", - "j=1.5*10**4#khm2\n", - "ratio=5\n", - "\n", - "#calculation\n", - "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"natural time period of oscillation=\",round(t,3),\"s\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "natural time period of oscillation= 1.364 s\n" - ] - } - ], - "prompt_number": 275 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.64, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10000#KVA\n", - "p=4\n", - "v=6600#V\n", - "f=50#Hz\n", - "xs=25#%\n", - "pf=1.5\n", - "\n", - "#calculations\n", - "ratio=100/xs\n", - "ns=120*f/p\n", - "j=(pf/(0.0083*ns))**2*load*ratio*f\n", - "\n", - "#result\n", - "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "moment of inertia= 29.0317898098 x10^4 kg-m2\n" - ] - } - ], - "prompt_number": 277 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.65, Page Number:1481" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=10.0#MVA\n", - "v=10.0#kV\n", - "f=50.0#Hz\n", - "ns=1500.0#rpm\n", - "j=2.0*10**5#kgm2\n", - "x=40.0\n", - "\n", - "#calculation\n", - "ratio=100.0/x\n", - "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", - "\n", - "#result\n", - "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "frequency of oscillation of the rotor= 0.2 Hz\n" - ] - } - ], - "prompt_number": 283 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.66, Page Number:1483" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "v=11#kV\n", - "z=complex(1,10)\n", - "emf=14#kV\n", - "\n", - "#calculations\n", - "e=emf*1000/3**0.5\n", - "v=v*1000/3**0.5\n", - "costheta=z.real/abs(z)\n", - "pmax=e*v*3/(z.imag*1000)\n", - "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", - "\n", - "#result\n", - "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "max output = 14125.5529273 kW\n" - ] - } - ], - "prompt_number": 285 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 37.67, Page Number:1484" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#variable declaration\n", - "load=11#kVA\n", - "load1=10#MW\n", - "z=complex(0.8,8.0)\n", - "v=14#kV\n", - "\n", - "#calculations\n", - "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", - "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", - "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", - "\n", - "#result\n", - "print \"maximum output=\",pmax/1000000,\"MW\"\n", - "print \"current=\",imax,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum output= 19.25 MW\n", - "current= 1284.92866209 A\n", - "pf= 0.786318338822\n" - ] - } - ], - "prompt_number": 289 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38.ipynb deleted file mode 100644 index eb91f537..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38.ipynb +++ /dev/null @@ -1,1682 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 38: Synchronous Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.1, Page Number:1495" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=75#kW\n", - "f=50#Hz\n", - "v=440#V\n", - "pf=0.8\n", - "loss=0.95\n", - "xs=2.5#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/4\n", - "pm=p*1000/loss\n", - "ia=pm/(math.sqrt(3)*v*pf)\n", - "vol_phase=v/math.sqrt(3)\n", - "\n", - "#calculations\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"armature current=\",ia,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power= 78947.3684211 W\n", - "armature current= 129.489444346 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.2, Page Number:1498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "p=20\n", - "vl=693#V\n", - "r=10#ohm\n", - "lag=0.5#degrees\n", - "\n", - "#calculations\n", - "#lag=0.5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "print \"displacement:0.5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"\n", - "print \"\"\n", - "\n", - "#lag=5\n", - "lag=5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "\n", - "print \"displacement:5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "displacement:0.5%\n", - "alpha= 5.0 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (3.4871338335-0.152251551219j) A\n", - "power drawn= 4189.63221768 W\n", - "\n", - "displacement:5%\n", - "alpha= 50 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (30.6497244054-14.2922012106j) A\n", - "power drawn= 40591.222447 W\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.3, Page Number:1499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V/ph\n", - "i=32.0#A/ph\n", - "xs=10.0#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xs)**2)\n", - "delta=math.atan((i*xs)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 512.249938995 V\n", - "delta= 38.6598082541 degrees\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.4, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=150#kW\n", - "f=50#Hz\n", - "v=2300#V\n", - "n=1000#rpm\n", - "xd=32#ohm\n", - "xq=20#ohm\n", - "alpha=16#degrees\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=2*vp\n", - "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", - "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", - "pm=3*(ex_power+rel_power)\n", - "tg=9.55*pm/1000\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1121.29686485 N-m\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.6, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=11000#V\n", - "ia=60#A\n", - "r=1#ohm\n", - "x=30#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "p2=math.sqrt(3)*v*ia*pf\n", - "cu_loss=ia**2*3\n", - "pm=p2-cu_loss\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=x\n", - "z_drop=ia*zs\n", - "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", - "\n", - "#result\n", - "print \"power supplied=\",p2/1000,\"kW\"\n", - "print \"mechanical power=\",pm/1000,\"KW\"\n", - "print \"induced emf=\",eb,\"V\"\n", - "\n", - " " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power supplied= 914.522826396 kW\n", - "mechanical power= 903.722826396 KW\n", - "induced emf= 13039.2734763 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.7, Page Number:1507" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "i=32#A\n", - "pf=1\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", - "delta=math.atan((i*xq)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 502.648089715 V\n", - "delta= 27.4744316263 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.8, Page Number:1508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=500#V\n", - "output=7.46#kW\n", - "pf=0.9\n", - "r=0.8#ohm\n", - "loss=500#W\n", - "ex_loss=800#W\n", - "\n", - "#calculations\n", - "pm=output*1000+loss+ex_loss\n", - "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", - "m_input=loss*ia*pf\n", - "efficiency=output*1000/m_input\n", - "\n", - "#result\n", - "print \"commercial efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commercial efficiency= 82.1029269497 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.9, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2300#V\n", - "r=0.2#ohm\n", - "x=2.2#ohm\n", - "pf=0.5\n", - "il=200#A\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x//r)\n", - "v=v/math.sqrt(3)\n", - "zs=math.sqrt(r**2+x**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", - "\n", - "#result\n", - "print \"Eb=\",eb,\"volt/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Eb= 1708.04482042 volt/phase\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.10, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "vl=6600#V\n", - "f=50#Hz\n", - "il=50#A\n", - "r=1#ohm\n", - "x=20#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "#0.8 lagging\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 lag: Eb=\",eb\n", - "\n", - "#0.8 leading\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 leading:Eb=\",eb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.8 lag: Eb= 5651.1180113\n", - "0.8 leading:Eb= 7705.24623679\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.11, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "x=0.4\n", - "pf=0.8\n", - "v=100#V\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "#pf=1\n", - "eb=math.sqrt(v**2+(x*v)**2)\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", - "#pf=0.8 lead\n", - "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", - "#result\n", - "print \"pf=1: Eb=\",eb,\"V\"\n", - "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", - "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf=1: Eb= 107.703296143 V\n", - "pf=0.8 lag:Eb= 82.4621125124 V\n", - "pf=0.8 lead:Eb= 128.062484749 V\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.12, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaraion\n", - "load=1000#kVA\n", - "v=11000#V\n", - "r=3.5#ohm\n", - "x=40#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "ia=load*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "ra=ia*r\n", - "xa=ia*x\n", - "za=math.sqrt(ra**2+xa**2)\n", - "theta=math.atan(x/r)\n", - "\n", - "#pf=1\n", - "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", - "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", - "\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", - "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", - "#pf=1\n", - "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", - "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", - "\n", - "#result\n", - "print \"at pf=1\"\n", - "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", - "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", - "print \"at pf=0.8 lagging\"\n", - "print \"Eb=\",eb2,\"V\"\n", - "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", - "print \"at pf=0.8 leading\"\n", - "print \"Eb=\",eb3,\"V\"\n", - "print \"alpha=\",math.degrees(alpha3),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at pf=1\n", - "Eb= 11283.8105339 V\n", - "alpha= 18.7256601694 degrees\n", - "at pf=0.8 lagging\n", - "Eb= 8990.39249633 V\n", - "alpha= 10.0142654731 degrees\n", - "at pf=0.8 leading\n", - "Eb= 13283.8907748 V\n", - "alpha= 7.71356041367 degrees\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.14, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=complex(0.5,0.866)\n", - "v=200#V\n", - "output=6000#W\n", - "loss=500#W\n", - "i=50#A\n", - "\n", - "#calculations\n", - "cu_loss=i**2*z.real\n", - "motor_intake=output+loss+cu_loss\n", - "phi=math.acos(motor_intake/(v*i))\n", - "theta=math.atan(z.imag/z.real)\n", - "zs=abs(z)*i\n", - "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", - "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", - "#result\n", - "print \"lag:eb=\",eb1,\"V\"\n", - "print \"lag:eb=\",eb2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "lag:eb= 154.286783862 V\n", - "lag:eb= 213.765547573 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.15, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2200#V\n", - "f=50#Hz\n", - "z=complex(0.4,6)\n", - "lag=3#degrees\n", - "\n", - "#calculations\n", - "eb=v/math.sqrt(3)\n", - "alpha=lag*8/2\n", - "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", - "zs=abs(z)\n", - "ia=er/zs\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", - "pf=math.cos(phi)\n", - "total_input=3*eb*ia*pf\n", - "cu_loss=3*ia**2*z.real\n", - "pm=total_input-cu_loss\n", - "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"power of the motor=\",pm/1000,\"kW\"\n", - "print \"max power of motor=\",pm_max/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 44.1583059199 A\n", - "power factor= 0.99927231631\n", - "power of the motor= 165.803353329 kW\n", - "max power of motor= 250.446734776 kW\n" - ] - } - ], - "prompt_number": 72 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.16, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "eb=250#V\n", - "lead=150#degrees\n", - "v=200#V\n", - "x=2.5#times resistance\n", - "alpha=lead/3\n", - "#calculations\n", - "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", - "theta=math.atan(x)\n", - "phi=math.radians(90)-theta\n", - "pf=math.cos(phi)\n", - "\n", - "#results\n", - "print \"pf at which the motor is operating=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf at which the motor is operating= 0.928476690885\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.17, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "r=10#ohm\n", - "inpt=900#kW\n", - "e=8900#V\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "icos=inpt*1000/(math.sqrt(3)*v)\n", - "bc=r*icos\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi=math.atan(oc/bc)\n", - "i=icos/math.cos(phi)\n", - "\n", - "#result\n", - "print \"Line current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 149.188331836 A\n" - ] - } - ], - "prompt_number": 82 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.18, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "x=20#ohm\n", - "inpt=1000#kW\n", - "pf=0.8\n", - "inpt2=1500#kW\n", - "\n", - "#variable declaration\n", - "va=v/math.sqrt(3)\n", - "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", - "zs=x\n", - "phi=math.acos(pf)\n", - "ia1zs=ia1*zs\n", - "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", - "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", - "cosphi2=x*ia2cosphi2\n", - "ac=math.sqrt(eb**2-cosphi2*2)\n", - "phi2=math.atan(ac/cosphi2)\n", - "pf=math.cos(phi2)\n", - "alpha2=math.atan(cosphi2/ac)\n", - "\n", - "#results\n", - "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power angle= 25.8661450552 degrees\n", - "new power factor= 0.436270181217\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.19, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=5472#W\n", - "x=10#ohm\n", - "\n", - "#calculations\n", - "va=v/math.sqrt(3)\n", - "iacosphi=inpt/(math.sqrt(3)*v)\n", - "zs=x\n", - "iazs=iacosphi*zs\n", - "ac=math.sqrt(va**2-iazs**2)\n", - "oc=va-ac\n", - "bc=iazs\n", - "phi=math.atan(oc/iazs)\n", - "pf=math.cos(phi)\n", - "ia=iacosphi/pf\n", - "alpha=math.atan(bc/ac)\n", - "#result\n", - "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", - "print \"power factor=\",pf\n", - "print \"armature current=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 19.9987718079 degrees\n", - "power factor= 0.984809614116\n", - "armature current= 8.01997824686 A\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.20, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=2000.0#V\n", - "r=0.2#ohm\n", - "xs=2.2#ohm\n", - "inpt=800.0#kW\n", - "e=2500.0#V\n", - "\n", - "#calculations\n", - "i1=inpt*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "ep=e/math.sqrt(3)\n", - "theta=math.atan(xs/r)\n", - "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", - "i=math.sqrt(i1**2+i2[0]**2)\n", - "pf=i1/i\n", - "\n", - "#result\n", - "print \"line currrent=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line currrent= 241.492937915 A\n", - "power factor= 0.956301702525\n" - ] - } - ], - "prompt_number": 152 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.21, Page Number:1516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "inpt=7.46#kW\n", - "r=0.5#ohm\n", - "pf=0.75\n", - "loss=500#W\n", - "ex_loss=650#W\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "cu_loss=3*ia**2*r\n", - "power=inpt*1000+ex_loss\n", - "output=inpt*1000-cu_loss-loss\n", - "efficiency=output/power\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power=\",power,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 13.0516151762 A\n", - "power= 8110.0 W\n", - "efficiency= 82.6693343026 %\n" - ] - } - ], - "prompt_number": 156 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.22, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "v=3300#V\n", - "x=18#ohm\n", - "pf=0.707\n", - "inpt=800#kW\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "ip=ia/math.sqrt(3)\n", - "zs=x\n", - "iazs=ip*zs\n", - "phi=math.acos(pf)\n", - "theta=math.radians(90)\n", - "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", - "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", - "\n", - "#result\n", - "print \"excitation emf=\",eb,\"V\"\n", - "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 4972.19098879 V\n", - "rotor angle= 17.0098509277 degrees\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.23, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=75#kW\n", - "v=400#V\n", - "r=0.04#ohm\n", - "x=0.4#ohm\n", - "pf=0.8\n", - "efficiency=0.925\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "ia=input_m/(math.sqrt(3)*v)\n", - "zs=math.sqrt(r**2+x**2)\n", - "iazs=ia*zs\n", - "phi=math.atan(x/r)\n", - "theta=math.radians(90)-phi\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "cu_loss=3*ia**2*r\n", - "ns=120*50/40\n", - "pm=input_m-cu_loss\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"emf=\",eb,\"eb\"\n", - "print \"mechanical power=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 235.683320812 eb\n", - "mechanical power= 79437.5456538 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.24, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "r=0.5#ohm\n", - "zs=x=4#ohm\n", - "i=15#A\n", - "i2=60#A\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "iazs=i*zs\n", - "xs=math.sqrt(x**2-r**2)\n", - "theta=math.atan(xs/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", - "iazs2=i2*zs\n", - "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", - "pf=math.cos(phi)\n", - "input_m=math.sqrt(3)*v*i2*pf\n", - "cu_loss=3*i2**2*r\n", - "pm=input_m-cu_loss\n", - "ns=120*50/6\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"gross torque developed=\",tg,\"N-m\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque developed= 310.739709828 N-m\n", - "new power factor= 0.912650996943\n" - ] - } - ], - "prompt_number": 161 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.25, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=7.46#kW\n", - "xs=10#W/phase\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "il=input_m/(math.sqrt(3)*v)\n", - "zs=il*xs\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+zs**2)\n", - "\n", - "#result\n", - "print \"minimum current=\",il,\"A\"\n", - "print \"inducedemf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "minimum current= 12.6677441416 A\n", - "inducedemf= 263.401798584 V\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.26, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "inpt=37.5#kW\n", - "efficiency=0.88\n", - "zs=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "input_m=inpt/efficiency\n", - "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "er=ia*abs(zs)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(zs.imag/zs.real)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", - "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", - "#result\n", - "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power developed=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 495.407915636 V\n", - "total mechanical power developed= 44844.4875189 W\n" - ] - } - ], - "prompt_number": 206 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.27, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=6600.0#V\n", - "xs=20.0#ohm\n", - "inpt=1000.0#kW\n", - "pf=0.8\n", - "inpt2=1500.0#kW\n", - "phi2=Symbol('phi2')\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "theta=math.radians(90)\n", - "er=ia*xs\n", - "zs=xs\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", - "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", - "#solving we get\n", - "phi2=math.radians(19.39)\n", - "pf=math.cos(phi2)\n", - "#result\n", - "print \"new power factor=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power factor= 0.943280616635\n" - ] - } - ], - "prompt_number": 228 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.28, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "x=4#ohms/phase\n", - "r=0.5#ohms/phase\n", - "ia=60#A\n", - "pf=0.866\n", - "loss=2#kW\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(complex(r,x))\n", - "phi=math.acos(pf)\n", - "iazs=ia*zs\n", - "theta=math.atan(x/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", - "pm=3*pm_max\n", - "output=pm-loss*1000\n", - "\n", - "#result\n", - "print \"maximum power output=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power output= 51.3898913442 kW\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.29, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=10#ohm\n", - "x=0.5#ohm\n", - "v=2000#V\n", - "f=25#Hz\n", - "eb=1600#V\n", - "\n", - "#calculations\n", - "pf=x/z\n", - "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", - "ns=120*f/6\n", - "tg_max=9.55*pm_max/ns\n", - "\n", - "#result\n", - "print \"maximum total torque=\",tg_max,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total torque= 5505.51976175 N-m\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.30, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variabke declaration\n", - "v=2000#V\n", - "n=1500#rpm\n", - "x=3#ohm/phase\n", - "ia=200#A\n", - "\n", - "#calculations\n", - "eb=vp=v/math.sqrt(3)\n", - "zs=ia*x\n", - "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", - "phi=math.asin(sinphi)\n", - "pf=math.cos(phi)\n", - "pi=math.sqrt(3)*v*ia*pf/1000\n", - "tg=9.55*pi*1000/n\n", - "\n", - "#result\n", - "print \"power input=\",pi,\"kW\"\n", - "print \"power factor=\",pf\n", - "print \"torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power input= 669.029147347 kW\n", - "power factor= 0.965660395791\n", - "torque= 4259.48557144 N-m\n" - ] - } - ], - "prompt_number": 234 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.31, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=3300#V\n", - "r=2#ohm\n", - "x=18#ohm\n", - "e=3800#V\n", - "\n", - "#calculations\n", - "theta=math.atan(x/r)\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "alpha=theta\n", - "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", - "zs=math.sqrt(r**2+x**2)\n", - "ia=er/zs\n", - "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", - "cu_loss=3*ia**2*r\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*v*ia)\n", - "\n", - "#result\n", - "print \"maximum total mechanical power=\",pm_max,\"W\"\n", - "print \"current=\",ia,\"A\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total mechanical power= 604356.888001 W\n", - "current= 151.417346198 A\n", - "pf= 0.857248980398\n" - ] - } - ], - "prompt_number": 235 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.32, Page Number:1521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=415#V\n", - "e=520#V\n", - "z=complex(0.5,4)\n", - "loss=1000#W\n", - "\n", - "#calculations\n", - "theta=math.atan(z.imag/z.real)\n", - "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", - "zs=abs(z)\n", - "i=er/zs\n", - "il=math.sqrt(3)*i\n", - "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", - "output=pm_max-loss\n", - "cu_loss=3*i**2*z.real\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*il*v)\n", - "efficiency=output/input_m\n", - "\n", - "#result\n", - "print \"power output=\",output/1000,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output= 134.640174346 kW\n", - "line current= 268.015478962 A\n", - "power factor= 0.890508620247\n", - "efficiency= 78.4816159071 %\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.33, Page Number:1524" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=37.3#kW\n", - "efficiency=0.88\n", - "z=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(z)\n", - "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", - "izs=zs*il\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", - "input_m=inpt*1000/efficiency\n", - "cu_loss=3*il**2*z.real\n", - "pm=input_m-cu_loss\n", - "\n", - "#result\n", - "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power=\",pm/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 494.75258624 V\n", - "total mechanical power= 39.6138268735 kW\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.34, Page Number:1525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=48#kW\n", - "v=693#V\n", - "pf=0.8\n", - "ratio=0.3\n", - "x=2#W/phase\n", - "\n", - "#calculations\n", - "il=inpt*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "zs=x\n", - "izs=zs*il\n", - "theta=math.atan(float(\"inf\"))\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", - "i_cosphi=pf*il\n", - "bc=i_cosphi*x\n", - "eb=eb+(ratio*eb)\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi2=math.atan(oc/bc)\n", - "pf=math.cos(phi2)\n", - "i2=i_cosphi/pf\n", - "\n", - "#result\n", - "print \"current=\",i2,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 46.3871111945 A\n", - "pf= 0.862084919821\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.35, Page Number:1526" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=60.0#kW\n", - "inpt=240.0#kW\n", - "pf=0.8\n", - "pf2=0.9\n", - "\n", - "#calculations\n", - "total_load=inpt+load\n", - "phi=math.acos(pf2)\n", - "kVAR=total_load*math.tan(phi)\n", - "#factory load\n", - "phil=math.acos(pf)\n", - "kVAR=inpt*math.tan(phil)\n", - "kVA=inpt/pf\n", - "kVAR1=total_load*math.sin(phil)\n", - "lead_kVAR=kVAR1-kVAR\n", - "#synchronous motor\n", - "phim=math.atan(lead_kVAR/load)\n", - "motorpf=math.cos(phim)\n", - "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", - "\n", - "#result\n", - "print \"leading kVAR supplied by the motor=\",motorkVA\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "leading kVAR supplied by the motor= 60.0\n", - "pf= 0.8\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_1.ipynb deleted file mode 100644 index eb91f537..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_1.ipynb +++ /dev/null @@ -1,1682 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 38: Synchronous Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.1, Page Number:1495" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=75#kW\n", - "f=50#Hz\n", - "v=440#V\n", - "pf=0.8\n", - "loss=0.95\n", - "xs=2.5#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/4\n", - "pm=p*1000/loss\n", - "ia=pm/(math.sqrt(3)*v*pf)\n", - "vol_phase=v/math.sqrt(3)\n", - "\n", - "#calculations\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"armature current=\",ia,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power= 78947.3684211 W\n", - "armature current= 129.489444346 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.2, Page Number:1498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "p=20\n", - "vl=693#V\n", - "r=10#ohm\n", - "lag=0.5#degrees\n", - "\n", - "#calculations\n", - "#lag=0.5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "print \"displacement:0.5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"\n", - "print \"\"\n", - "\n", - "#lag=5\n", - "lag=5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "\n", - "print \"displacement:5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "displacement:0.5%\n", - "alpha= 5.0 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (3.4871338335-0.152251551219j) A\n", - "power drawn= 4189.63221768 W\n", - "\n", - "displacement:5%\n", - "alpha= 50 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (30.6497244054-14.2922012106j) A\n", - "power drawn= 40591.222447 W\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.3, Page Number:1499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V/ph\n", - "i=32.0#A/ph\n", - "xs=10.0#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xs)**2)\n", - "delta=math.atan((i*xs)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 512.249938995 V\n", - "delta= 38.6598082541 degrees\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.4, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=150#kW\n", - "f=50#Hz\n", - "v=2300#V\n", - "n=1000#rpm\n", - "xd=32#ohm\n", - "xq=20#ohm\n", - "alpha=16#degrees\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=2*vp\n", - "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", - "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", - "pm=3*(ex_power+rel_power)\n", - "tg=9.55*pm/1000\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1121.29686485 N-m\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.6, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=11000#V\n", - "ia=60#A\n", - "r=1#ohm\n", - "x=30#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "p2=math.sqrt(3)*v*ia*pf\n", - "cu_loss=ia**2*3\n", - "pm=p2-cu_loss\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=x\n", - "z_drop=ia*zs\n", - "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", - "\n", - "#result\n", - "print \"power supplied=\",p2/1000,\"kW\"\n", - "print \"mechanical power=\",pm/1000,\"KW\"\n", - "print \"induced emf=\",eb,\"V\"\n", - "\n", - " " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power supplied= 914.522826396 kW\n", - "mechanical power= 903.722826396 KW\n", - "induced emf= 13039.2734763 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.7, Page Number:1507" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "i=32#A\n", - "pf=1\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", - "delta=math.atan((i*xq)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 502.648089715 V\n", - "delta= 27.4744316263 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.8, Page Number:1508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=500#V\n", - "output=7.46#kW\n", - "pf=0.9\n", - "r=0.8#ohm\n", - "loss=500#W\n", - "ex_loss=800#W\n", - "\n", - "#calculations\n", - "pm=output*1000+loss+ex_loss\n", - "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", - "m_input=loss*ia*pf\n", - "efficiency=output*1000/m_input\n", - "\n", - "#result\n", - "print \"commercial efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commercial efficiency= 82.1029269497 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.9, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2300#V\n", - "r=0.2#ohm\n", - "x=2.2#ohm\n", - "pf=0.5\n", - "il=200#A\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x//r)\n", - "v=v/math.sqrt(3)\n", - "zs=math.sqrt(r**2+x**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", - "\n", - "#result\n", - "print \"Eb=\",eb,\"volt/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Eb= 1708.04482042 volt/phase\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.10, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "vl=6600#V\n", - "f=50#Hz\n", - "il=50#A\n", - "r=1#ohm\n", - "x=20#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "#0.8 lagging\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 lag: Eb=\",eb\n", - "\n", - "#0.8 leading\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 leading:Eb=\",eb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.8 lag: Eb= 5651.1180113\n", - "0.8 leading:Eb= 7705.24623679\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.11, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "x=0.4\n", - "pf=0.8\n", - "v=100#V\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "#pf=1\n", - "eb=math.sqrt(v**2+(x*v)**2)\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", - "#pf=0.8 lead\n", - "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", - "#result\n", - "print \"pf=1: Eb=\",eb,\"V\"\n", - "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", - "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf=1: Eb= 107.703296143 V\n", - "pf=0.8 lag:Eb= 82.4621125124 V\n", - "pf=0.8 lead:Eb= 128.062484749 V\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.12, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaraion\n", - "load=1000#kVA\n", - "v=11000#V\n", - "r=3.5#ohm\n", - "x=40#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "ia=load*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "ra=ia*r\n", - "xa=ia*x\n", - "za=math.sqrt(ra**2+xa**2)\n", - "theta=math.atan(x/r)\n", - "\n", - "#pf=1\n", - "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", - "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", - "\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", - "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", - "#pf=1\n", - "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", - "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", - "\n", - "#result\n", - "print \"at pf=1\"\n", - "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", - "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", - "print \"at pf=0.8 lagging\"\n", - "print \"Eb=\",eb2,\"V\"\n", - "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", - "print \"at pf=0.8 leading\"\n", - "print \"Eb=\",eb3,\"V\"\n", - "print \"alpha=\",math.degrees(alpha3),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at pf=1\n", - "Eb= 11283.8105339 V\n", - "alpha= 18.7256601694 degrees\n", - "at pf=0.8 lagging\n", - "Eb= 8990.39249633 V\n", - "alpha= 10.0142654731 degrees\n", - "at pf=0.8 leading\n", - "Eb= 13283.8907748 V\n", - "alpha= 7.71356041367 degrees\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.14, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=complex(0.5,0.866)\n", - "v=200#V\n", - "output=6000#W\n", - "loss=500#W\n", - "i=50#A\n", - "\n", - "#calculations\n", - "cu_loss=i**2*z.real\n", - "motor_intake=output+loss+cu_loss\n", - "phi=math.acos(motor_intake/(v*i))\n", - "theta=math.atan(z.imag/z.real)\n", - "zs=abs(z)*i\n", - "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", - "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", - "#result\n", - "print \"lag:eb=\",eb1,\"V\"\n", - "print \"lag:eb=\",eb2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "lag:eb= 154.286783862 V\n", - "lag:eb= 213.765547573 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.15, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2200#V\n", - "f=50#Hz\n", - "z=complex(0.4,6)\n", - "lag=3#degrees\n", - "\n", - "#calculations\n", - "eb=v/math.sqrt(3)\n", - "alpha=lag*8/2\n", - "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", - "zs=abs(z)\n", - "ia=er/zs\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", - "pf=math.cos(phi)\n", - "total_input=3*eb*ia*pf\n", - "cu_loss=3*ia**2*z.real\n", - "pm=total_input-cu_loss\n", - "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"power of the motor=\",pm/1000,\"kW\"\n", - "print \"max power of motor=\",pm_max/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 44.1583059199 A\n", - "power factor= 0.99927231631\n", - "power of the motor= 165.803353329 kW\n", - "max power of motor= 250.446734776 kW\n" - ] - } - ], - "prompt_number": 72 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.16, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "eb=250#V\n", - "lead=150#degrees\n", - "v=200#V\n", - "x=2.5#times resistance\n", - "alpha=lead/3\n", - "#calculations\n", - "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", - "theta=math.atan(x)\n", - "phi=math.radians(90)-theta\n", - "pf=math.cos(phi)\n", - "\n", - "#results\n", - "print \"pf at which the motor is operating=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf at which the motor is operating= 0.928476690885\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.17, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "r=10#ohm\n", - "inpt=900#kW\n", - "e=8900#V\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "icos=inpt*1000/(math.sqrt(3)*v)\n", - "bc=r*icos\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi=math.atan(oc/bc)\n", - "i=icos/math.cos(phi)\n", - "\n", - "#result\n", - "print \"Line current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 149.188331836 A\n" - ] - } - ], - "prompt_number": 82 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.18, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "x=20#ohm\n", - "inpt=1000#kW\n", - "pf=0.8\n", - "inpt2=1500#kW\n", - "\n", - "#variable declaration\n", - "va=v/math.sqrt(3)\n", - "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", - "zs=x\n", - "phi=math.acos(pf)\n", - "ia1zs=ia1*zs\n", - "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", - "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", - "cosphi2=x*ia2cosphi2\n", - "ac=math.sqrt(eb**2-cosphi2*2)\n", - "phi2=math.atan(ac/cosphi2)\n", - "pf=math.cos(phi2)\n", - "alpha2=math.atan(cosphi2/ac)\n", - "\n", - "#results\n", - "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power angle= 25.8661450552 degrees\n", - "new power factor= 0.436270181217\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.19, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=5472#W\n", - "x=10#ohm\n", - "\n", - "#calculations\n", - "va=v/math.sqrt(3)\n", - "iacosphi=inpt/(math.sqrt(3)*v)\n", - "zs=x\n", - "iazs=iacosphi*zs\n", - "ac=math.sqrt(va**2-iazs**2)\n", - "oc=va-ac\n", - "bc=iazs\n", - "phi=math.atan(oc/iazs)\n", - "pf=math.cos(phi)\n", - "ia=iacosphi/pf\n", - "alpha=math.atan(bc/ac)\n", - "#result\n", - "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", - "print \"power factor=\",pf\n", - "print \"armature current=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 19.9987718079 degrees\n", - "power factor= 0.984809614116\n", - "armature current= 8.01997824686 A\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.20, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=2000.0#V\n", - "r=0.2#ohm\n", - "xs=2.2#ohm\n", - "inpt=800.0#kW\n", - "e=2500.0#V\n", - "\n", - "#calculations\n", - "i1=inpt*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "ep=e/math.sqrt(3)\n", - "theta=math.atan(xs/r)\n", - "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", - "i=math.sqrt(i1**2+i2[0]**2)\n", - "pf=i1/i\n", - "\n", - "#result\n", - "print \"line currrent=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line currrent= 241.492937915 A\n", - "power factor= 0.956301702525\n" - ] - } - ], - "prompt_number": 152 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.21, Page Number:1516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "inpt=7.46#kW\n", - "r=0.5#ohm\n", - "pf=0.75\n", - "loss=500#W\n", - "ex_loss=650#W\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "cu_loss=3*ia**2*r\n", - "power=inpt*1000+ex_loss\n", - "output=inpt*1000-cu_loss-loss\n", - "efficiency=output/power\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power=\",power,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 13.0516151762 A\n", - "power= 8110.0 W\n", - "efficiency= 82.6693343026 %\n" - ] - } - ], - "prompt_number": 156 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.22, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "v=3300#V\n", - "x=18#ohm\n", - "pf=0.707\n", - "inpt=800#kW\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "ip=ia/math.sqrt(3)\n", - "zs=x\n", - "iazs=ip*zs\n", - "phi=math.acos(pf)\n", - "theta=math.radians(90)\n", - "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", - "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", - "\n", - "#result\n", - "print \"excitation emf=\",eb,\"V\"\n", - "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 4972.19098879 V\n", - "rotor angle= 17.0098509277 degrees\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.23, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=75#kW\n", - "v=400#V\n", - "r=0.04#ohm\n", - "x=0.4#ohm\n", - "pf=0.8\n", - "efficiency=0.925\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "ia=input_m/(math.sqrt(3)*v)\n", - "zs=math.sqrt(r**2+x**2)\n", - "iazs=ia*zs\n", - "phi=math.atan(x/r)\n", - "theta=math.radians(90)-phi\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "cu_loss=3*ia**2*r\n", - "ns=120*50/40\n", - "pm=input_m-cu_loss\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"emf=\",eb,\"eb\"\n", - "print \"mechanical power=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 235.683320812 eb\n", - "mechanical power= 79437.5456538 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.24, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "r=0.5#ohm\n", - "zs=x=4#ohm\n", - "i=15#A\n", - "i2=60#A\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "iazs=i*zs\n", - "xs=math.sqrt(x**2-r**2)\n", - "theta=math.atan(xs/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", - "iazs2=i2*zs\n", - "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", - "pf=math.cos(phi)\n", - "input_m=math.sqrt(3)*v*i2*pf\n", - "cu_loss=3*i2**2*r\n", - "pm=input_m-cu_loss\n", - "ns=120*50/6\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"gross torque developed=\",tg,\"N-m\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque developed= 310.739709828 N-m\n", - "new power factor= 0.912650996943\n" - ] - } - ], - "prompt_number": 161 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.25, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=7.46#kW\n", - "xs=10#W/phase\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "il=input_m/(math.sqrt(3)*v)\n", - "zs=il*xs\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+zs**2)\n", - "\n", - "#result\n", - "print \"minimum current=\",il,\"A\"\n", - "print \"inducedemf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "minimum current= 12.6677441416 A\n", - "inducedemf= 263.401798584 V\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.26, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "inpt=37.5#kW\n", - "efficiency=0.88\n", - "zs=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "input_m=inpt/efficiency\n", - "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "er=ia*abs(zs)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(zs.imag/zs.real)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", - "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", - "#result\n", - "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power developed=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 495.407915636 V\n", - "total mechanical power developed= 44844.4875189 W\n" - ] - } - ], - "prompt_number": 206 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.27, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=6600.0#V\n", - "xs=20.0#ohm\n", - "inpt=1000.0#kW\n", - "pf=0.8\n", - "inpt2=1500.0#kW\n", - "phi2=Symbol('phi2')\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "theta=math.radians(90)\n", - "er=ia*xs\n", - "zs=xs\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", - "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", - "#solving we get\n", - "phi2=math.radians(19.39)\n", - "pf=math.cos(phi2)\n", - "#result\n", - "print \"new power factor=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power factor= 0.943280616635\n" - ] - } - ], - "prompt_number": 228 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.28, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "x=4#ohms/phase\n", - "r=0.5#ohms/phase\n", - "ia=60#A\n", - "pf=0.866\n", - "loss=2#kW\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(complex(r,x))\n", - "phi=math.acos(pf)\n", - "iazs=ia*zs\n", - "theta=math.atan(x/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", - "pm=3*pm_max\n", - "output=pm-loss*1000\n", - "\n", - "#result\n", - "print \"maximum power output=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power output= 51.3898913442 kW\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.29, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=10#ohm\n", - "x=0.5#ohm\n", - "v=2000#V\n", - "f=25#Hz\n", - "eb=1600#V\n", - "\n", - "#calculations\n", - "pf=x/z\n", - "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", - "ns=120*f/6\n", - "tg_max=9.55*pm_max/ns\n", - "\n", - "#result\n", - "print \"maximum total torque=\",tg_max,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total torque= 5505.51976175 N-m\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.30, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variabke declaration\n", - "v=2000#V\n", - "n=1500#rpm\n", - "x=3#ohm/phase\n", - "ia=200#A\n", - "\n", - "#calculations\n", - "eb=vp=v/math.sqrt(3)\n", - "zs=ia*x\n", - "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", - "phi=math.asin(sinphi)\n", - "pf=math.cos(phi)\n", - "pi=math.sqrt(3)*v*ia*pf/1000\n", - "tg=9.55*pi*1000/n\n", - "\n", - "#result\n", - "print \"power input=\",pi,\"kW\"\n", - "print \"power factor=\",pf\n", - "print \"torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power input= 669.029147347 kW\n", - "power factor= 0.965660395791\n", - "torque= 4259.48557144 N-m\n" - ] - } - ], - "prompt_number": 234 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.31, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=3300#V\n", - "r=2#ohm\n", - "x=18#ohm\n", - "e=3800#V\n", - "\n", - "#calculations\n", - "theta=math.atan(x/r)\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "alpha=theta\n", - "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", - "zs=math.sqrt(r**2+x**2)\n", - "ia=er/zs\n", - "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", - "cu_loss=3*ia**2*r\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*v*ia)\n", - "\n", - "#result\n", - "print \"maximum total mechanical power=\",pm_max,\"W\"\n", - "print \"current=\",ia,\"A\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total mechanical power= 604356.888001 W\n", - "current= 151.417346198 A\n", - "pf= 0.857248980398\n" - ] - } - ], - "prompt_number": 235 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.32, Page Number:1521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=415#V\n", - "e=520#V\n", - "z=complex(0.5,4)\n", - "loss=1000#W\n", - "\n", - "#calculations\n", - "theta=math.atan(z.imag/z.real)\n", - "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", - "zs=abs(z)\n", - "i=er/zs\n", - "il=math.sqrt(3)*i\n", - "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", - "output=pm_max-loss\n", - "cu_loss=3*i**2*z.real\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*il*v)\n", - "efficiency=output/input_m\n", - "\n", - "#result\n", - "print \"power output=\",output/1000,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output= 134.640174346 kW\n", - "line current= 268.015478962 A\n", - "power factor= 0.890508620247\n", - "efficiency= 78.4816159071 %\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.33, Page Number:1524" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=37.3#kW\n", - "efficiency=0.88\n", - "z=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(z)\n", - "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", - "izs=zs*il\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", - "input_m=inpt*1000/efficiency\n", - "cu_loss=3*il**2*z.real\n", - "pm=input_m-cu_loss\n", - "\n", - "#result\n", - "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power=\",pm/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 494.75258624 V\n", - "total mechanical power= 39.6138268735 kW\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.34, Page Number:1525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=48#kW\n", - "v=693#V\n", - "pf=0.8\n", - "ratio=0.3\n", - "x=2#W/phase\n", - "\n", - "#calculations\n", - "il=inpt*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "zs=x\n", - "izs=zs*il\n", - "theta=math.atan(float(\"inf\"))\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", - "i_cosphi=pf*il\n", - "bc=i_cosphi*x\n", - "eb=eb+(ratio*eb)\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi2=math.atan(oc/bc)\n", - "pf=math.cos(phi2)\n", - "i2=i_cosphi/pf\n", - "\n", - "#result\n", - "print \"current=\",i2,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 46.3871111945 A\n", - "pf= 0.862084919821\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.35, Page Number:1526" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=60.0#kW\n", - "inpt=240.0#kW\n", - "pf=0.8\n", - "pf2=0.9\n", - "\n", - "#calculations\n", - "total_load=inpt+load\n", - "phi=math.acos(pf2)\n", - "kVAR=total_load*math.tan(phi)\n", - "#factory load\n", - "phil=math.acos(pf)\n", - "kVAR=inpt*math.tan(phil)\n", - "kVA=inpt/pf\n", - "kVAR1=total_load*math.sin(phil)\n", - "lead_kVAR=kVAR1-kVAR\n", - "#synchronous motor\n", - "phim=math.atan(lead_kVAR/load)\n", - "motorpf=math.cos(phim)\n", - "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", - "\n", - "#result\n", - "print \"leading kVAR supplied by the motor=\",motorkVA\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "leading kVAR supplied by the motor= 60.0\n", - "pf= 0.8\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb deleted file mode 100644 index eb91f537..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb +++ /dev/null @@ -1,1682 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 38: Synchronous Motor" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.1, Page Number:1495" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "p=75#kW\n", - "f=50#Hz\n", - "v=440#V\n", - "pf=0.8\n", - "loss=0.95\n", - "xs=2.5#ohm\n", - "\n", - "#calculations\n", - "ns=120*f/4\n", - "pm=p*1000/loss\n", - "ia=pm/(math.sqrt(3)*v*pf)\n", - "vol_phase=v/math.sqrt(3)\n", - "\n", - "#calculations\n", - "print \"mechanical power=\",pm,\"W\"\n", - "print \"armature current=\",ia,\"A\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "mechanical power= 78947.3684211 W\n", - "armature current= 129.489444346 A\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.2, Page Number:1498" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import cmath\n", - "#variable declaration\n", - "p=20\n", - "vl=693#V\n", - "r=10#ohm\n", - "lag=0.5#degrees\n", - "\n", - "#calculations\n", - "#lag=0.5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "print \"displacement:0.5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"\n", - "print \"\"\n", - "\n", - "#lag=5\n", - "lag=5\n", - "alpha=p*lag/2\n", - "eb=vp=vl/math.sqrt(3)\n", - "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", - "zs=complex(0,10)\n", - "ia=er/zs\n", - "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", - "\n", - "print \"displacement:5%\"\n", - "print \"alpha=\",alpha,\"degrees\"\n", - "print \"armature emf/phase=\",eb,\"V\"\n", - "print \"armature current/phase=\",ia,\"A\"\n", - "print \"power drawn=\",power_input,\"W\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "displacement:0.5%\n", - "alpha= 5.0 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (3.4871338335-0.152251551219j) A\n", - "power drawn= 4189.63221768 W\n", - "\n", - "displacement:5%\n", - "alpha= 50 degrees\n", - "armature emf/phase= 400.103736548 V\n", - "armature current/phase= (30.6497244054-14.2922012106j) A\n", - "power drawn= 40591.222447 W\n" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.3, Page Number:1499" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400.0#V/ph\n", - "i=32.0#A/ph\n", - "xs=10.0#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xs)**2)\n", - "delta=math.atan((i*xs)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n", - "\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 512.249938995 V\n", - "delta= 38.6598082541 degrees\n" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.4, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "w=150#kW\n", - "f=50#Hz\n", - "v=2300#V\n", - "n=1000#rpm\n", - "xd=32#ohm\n", - "xq=20#ohm\n", - "alpha=16#degrees\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=2*vp\n", - "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", - "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", - "pm=3*(ex_power+rel_power)\n", - "tg=9.55*pm/1000\n", - "\n", - "#result\n", - "print \"torque=\",tg,\"N-m\"\n", - "\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "torque= 1121.29686485 N-m\n" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.6, Page Number:1506" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=11000#V\n", - "ia=60#A\n", - "r=1#ohm\n", - "x=30#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "p2=math.sqrt(3)*v*ia*pf\n", - "cu_loss=ia**2*3\n", - "pm=p2-cu_loss\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=x\n", - "z_drop=ia*zs\n", - "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", - "\n", - "#result\n", - "print \"power supplied=\",p2/1000,\"kW\"\n", - "print \"mechanical power=\",pm/1000,\"KW\"\n", - "print \"induced emf=\",eb,\"V\"\n", - "\n", - " " - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power supplied= 914.522826396 kW\n", - "mechanical power= 903.722826396 KW\n", - "induced emf= 13039.2734763 V\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.7, Page Number:1507" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "i=32#A\n", - "pf=1\n", - "xd=10#ohm\n", - "xq=6.5#ohm\n", - "\n", - "#calculations\n", - "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", - "delta=math.atan((i*xq)/v)\n", - "power=3*v*i\n", - "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", - "\n", - "#result\n", - "print \"E=\",e,\"V\"\n", - "print \"delta=\",math.degrees(delta),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "E= 502.648089715 V\n", - "delta= 27.4744316263 degrees\n" - ] - } - ], - "prompt_number": 60 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.8, Page Number:1508" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=500#V\n", - "output=7.46#kW\n", - "pf=0.9\n", - "r=0.8#ohm\n", - "loss=500#W\n", - "ex_loss=800#W\n", - "\n", - "#calculations\n", - "pm=output*1000+loss+ex_loss\n", - "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", - "m_input=loss*ia*pf\n", - "efficiency=output*1000/m_input\n", - "\n", - "#result\n", - "print \"commercial efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "commercial efficiency= 82.1029269497 %\n" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.9, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2300#V\n", - "r=0.2#ohm\n", - "x=2.2#ohm\n", - "pf=0.5\n", - "il=200#A\n", - "\n", - "#calculations\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x//r)\n", - "v=v/math.sqrt(3)\n", - "zs=math.sqrt(r**2+x**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", - "\n", - "#result\n", - "print \"Eb=\",eb,\"volt/phase\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Eb= 1708.04482042 volt/phase\n" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.10, Page Number:1509" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "vl=6600#V\n", - "f=50#Hz\n", - "il=50#A\n", - "r=1#ohm\n", - "x=20#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "#0.8 lagging\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 lag: Eb=\",eb\n", - "\n", - "#0.8 leading\n", - "power_i=math.sqrt(3)*v*f*pf\n", - "v=vl/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(x/r)\n", - "zs=math.sqrt(x**2+r**2)\n", - "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", - "\n", - "print \"0.8 leading:Eb=\",eb" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "0.8 lag: Eb= 5651.1180113\n", - "0.8 leading:Eb= 7705.24623679\n" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.11, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "x=0.4\n", - "pf=0.8\n", - "v=100#V\n", - "phi=math.acos(pf)\n", - "#calculations\n", - "#pf=1\n", - "eb=math.sqrt(v**2+(x*v)**2)\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", - "#pf=0.8 lead\n", - "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", - "#result\n", - "print \"pf=1: Eb=\",eb,\"V\"\n", - "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", - "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf=1: Eb= 107.703296143 V\n", - "pf=0.8 lag:Eb= 82.4621125124 V\n", - "pf=0.8 lead:Eb= 128.062484749 V\n" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.12, Page Number:1510" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaraion\n", - "load=1000#kVA\n", - "v=11000#V\n", - "r=3.5#ohm\n", - "x=40#ohm\n", - "pf=0.8\n", - "\n", - "#calculations\n", - "ia=load*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "phi=math.acos(pf)\n", - "ra=ia*r\n", - "xa=ia*x\n", - "za=math.sqrt(ra**2+xa**2)\n", - "theta=math.atan(x/r)\n", - "\n", - "#pf=1\n", - "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", - "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", - "\n", - "#pf=0.8 lag\n", - "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", - "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", - "#pf=1\n", - "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", - "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", - "\n", - "#result\n", - "print \"at pf=1\"\n", - "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", - "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", - "print \"at pf=0.8 lagging\"\n", - "print \"Eb=\",eb2,\"V\"\n", - "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", - "print \"at pf=0.8 leading\"\n", - "print \"Eb=\",eb3,\"V\"\n", - "print \"alpha=\",math.degrees(alpha3),\"degrees\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "at pf=1\n", - "Eb= 11283.8105339 V\n", - "alpha= 18.7256601694 degrees\n", - "at pf=0.8 lagging\n", - "Eb= 8990.39249633 V\n", - "alpha= 10.0142654731 degrees\n", - "at pf=0.8 leading\n", - "Eb= 13283.8907748 V\n", - "alpha= 7.71356041367 degrees\n" - ] - } - ], - "prompt_number": 56 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.14, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=complex(0.5,0.866)\n", - "v=200#V\n", - "output=6000#W\n", - "loss=500#W\n", - "i=50#A\n", - "\n", - "#calculations\n", - "cu_loss=i**2*z.real\n", - "motor_intake=output+loss+cu_loss\n", - "phi=math.acos(motor_intake/(v*i))\n", - "theta=math.atan(z.imag/z.real)\n", - "zs=abs(z)*i\n", - "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", - "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", - "#result\n", - "print \"lag:eb=\",eb1,\"V\"\n", - "print \"lag:eb=\",eb2,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "lag:eb= 154.286783862 V\n", - "lag:eb= 213.765547573 V\n" - ] - } - ], - "prompt_number": 65 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.15, Page Number:1513" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=2200#V\n", - "f=50#Hz\n", - "z=complex(0.4,6)\n", - "lag=3#degrees\n", - "\n", - "#calculations\n", - "eb=v/math.sqrt(3)\n", - "alpha=lag*8/2\n", - "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", - "zs=abs(z)\n", - "ia=er/zs\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", - "pf=math.cos(phi)\n", - "total_input=3*eb*ia*pf\n", - "cu_loss=3*ia**2*z.real\n", - "pm=total_input-cu_loss\n", - "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"power of the motor=\",pm/1000,\"kW\"\n", - "print \"max power of motor=\",pm_max/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 44.1583059199 A\n", - "power factor= 0.99927231631\n", - "power of the motor= 165.803353329 kW\n", - "max power of motor= 250.446734776 kW\n" - ] - } - ], - "prompt_number": 72 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.16, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "eb=250#V\n", - "lead=150#degrees\n", - "v=200#V\n", - "x=2.5#times resistance\n", - "alpha=lead/3\n", - "#calculations\n", - "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", - "theta=math.atan(x)\n", - "phi=math.radians(90)-theta\n", - "pf=math.cos(phi)\n", - "\n", - "#results\n", - "print \"pf at which the motor is operating=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "pf at which the motor is operating= 0.928476690885\n" - ] - } - ], - "prompt_number": 73 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.17, Page Number:1514" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "r=10#ohm\n", - "inpt=900#kW\n", - "e=8900#V\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "icos=inpt*1000/(math.sqrt(3)*v)\n", - "bc=r*icos\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi=math.atan(oc/bc)\n", - "i=icos/math.cos(phi)\n", - "\n", - "#result\n", - "print \"Line current=\",i,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Line current= 149.188331836 A\n" - ] - } - ], - "prompt_number": 82 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.18, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=6600#V\n", - "x=20#ohm\n", - "inpt=1000#kW\n", - "pf=0.8\n", - "inpt2=1500#kW\n", - "\n", - "#variable declaration\n", - "va=v/math.sqrt(3)\n", - "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", - "zs=x\n", - "phi=math.acos(pf)\n", - "ia1zs=ia1*zs\n", - "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", - "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", - "cosphi2=x*ia2cosphi2\n", - "ac=math.sqrt(eb**2-cosphi2*2)\n", - "phi2=math.atan(ac/cosphi2)\n", - "pf=math.cos(phi2)\n", - "alpha2=math.atan(cosphi2/ac)\n", - "\n", - "#results\n", - "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power angle= 25.8661450552 degrees\n", - "new power factor= 0.436270181217\n" - ] - } - ], - "prompt_number": 97 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.19, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=5472#W\n", - "x=10#ohm\n", - "\n", - "#calculations\n", - "va=v/math.sqrt(3)\n", - "iacosphi=inpt/(math.sqrt(3)*v)\n", - "zs=x\n", - "iazs=iacosphi*zs\n", - "ac=math.sqrt(va**2-iazs**2)\n", - "oc=va-ac\n", - "bc=iazs\n", - "phi=math.atan(oc/iazs)\n", - "pf=math.cos(phi)\n", - "ia=iacosphi/pf\n", - "alpha=math.atan(bc/ac)\n", - "#result\n", - "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", - "print \"power factor=\",pf\n", - "print \"armature current=\",ia,\"A\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "load angle= 19.9987718079 degrees\n", - "power factor= 0.984809614116\n", - "armature current= 8.01997824686 A\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.20, Page Number:1515" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "i2=Symbol('i2')\n", - "v=2000.0#V\n", - "r=0.2#ohm\n", - "xs=2.2#ohm\n", - "inpt=800.0#kW\n", - "e=2500.0#V\n", - "\n", - "#calculations\n", - "i1=inpt*1000/(math.sqrt(3)*v)\n", - "vp=v/math.sqrt(3)\n", - "ep=e/math.sqrt(3)\n", - "theta=math.atan(xs/r)\n", - "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", - "i=math.sqrt(i1**2+i2[0]**2)\n", - "pf=i1/i\n", - "\n", - "#result\n", - "print \"line currrent=\",i,\"A\"\n", - "print \"power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "line currrent= 241.492937915 A\n", - "power factor= 0.956301702525\n" - ] - } - ], - "prompt_number": 152 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.21, Page Number:1516" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=440#V\n", - "f=50#Hz\n", - "inpt=7.46#kW\n", - "r=0.5#ohm\n", - "pf=0.75\n", - "loss=500#W\n", - "ex_loss=650#W\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "cu_loss=3*ia**2*r\n", - "power=inpt*1000+ex_loss\n", - "output=inpt*1000-cu_loss-loss\n", - "efficiency=output/power\n", - "\n", - "#result\n", - "print \"armature current=\",ia,\"A\"\n", - "print \"power=\",power,\"W\"\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "armature current= 13.0516151762 A\n", - "power= 8110.0 W\n", - "efficiency= 82.6693343026 %\n" - ] - } - ], - "prompt_number": 156 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.22, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "v=3300#V\n", - "x=18#ohm\n", - "pf=0.707\n", - "inpt=800#kW\n", - "\n", - "#calculations\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "ip=ia/math.sqrt(3)\n", - "zs=x\n", - "iazs=ip*zs\n", - "phi=math.acos(pf)\n", - "theta=math.radians(90)\n", - "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", - "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", - "\n", - "#result\n", - "print \"excitation emf=\",eb,\"V\"\n", - "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 4972.19098879 V\n", - "rotor angle= 17.0098509277 degrees\n" - ] - } - ], - "prompt_number": 157 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.23, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=75#kW\n", - "v=400#V\n", - "r=0.04#ohm\n", - "x=0.4#ohm\n", - "pf=0.8\n", - "efficiency=0.925\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "ia=input_m/(math.sqrt(3)*v)\n", - "zs=math.sqrt(r**2+x**2)\n", - "iazs=ia*zs\n", - "phi=math.atan(x/r)\n", - "theta=math.radians(90)-phi\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "cu_loss=3*ia**2*r\n", - "ns=120*50/40\n", - "pm=input_m-cu_loss\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"emf=\",eb,\"eb\"\n", - "print \"mechanical power=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "emf= 235.683320812 eb\n", - "mechanical power= 79437.5456538 W\n" - ] - } - ], - "prompt_number": 158 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.24, Page Number:1517" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "r=0.5#ohm\n", - "zs=x=4#ohm\n", - "i=15#A\n", - "i2=60#A\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "iazs=i*zs\n", - "xs=math.sqrt(x**2-r**2)\n", - "theta=math.atan(xs/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", - "iazs2=i2*zs\n", - "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", - "pf=math.cos(phi)\n", - "input_m=math.sqrt(3)*v*i2*pf\n", - "cu_loss=3*i2**2*r\n", - "pm=input_m-cu_loss\n", - "ns=120*50/6\n", - "tg=9.55*pm/ns\n", - "\n", - "#result\n", - "print \"gross torque developed=\",tg,\"N-m\"\n", - "print \"new power factor=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "gross torque developed= 310.739709828 N-m\n", - "new power factor= 0.912650996943\n" - ] - } - ], - "prompt_number": 161 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.25, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=7.46#kW\n", - "xs=10#W/phase\n", - "efficiency=0.85\n", - "\n", - "#calculations\n", - "input_m=inpt*1000/efficiency\n", - "il=input_m/(math.sqrt(3)*v)\n", - "zs=il*xs\n", - "vp=v/math.sqrt(3)\n", - "eb=math.sqrt(vp**2+zs**2)\n", - "\n", - "#result\n", - "print \"minimum current=\",il,\"A\"\n", - "print \"inducedemf=\",eb,\"V\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "minimum current= 12.6677441416 A\n", - "inducedemf= 263.401798584 V\n" - ] - } - ], - "prompt_number": 164 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.26, Page Number:1518" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "f=50#Hz\n", - "inpt=37.5#kW\n", - "efficiency=0.88\n", - "zs=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "input_m=inpt/efficiency\n", - "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "er=ia*abs(zs)\n", - "phi=math.acos(pf)\n", - "theta=math.atan(zs.imag/zs.real)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", - "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", - "#result\n", - "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power developed=\",pm,\"W\"\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "excitation emf= 495.407915636 V\n", - "total mechanical power developed= 44844.4875189 W\n" - ] - } - ], - "prompt_number": 206 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.27, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "import scipy\n", - "from sympy.solvers import solve\n", - "from sympy import Symbol\n", - "#variable declaration\n", - "v=6600.0#V\n", - "xs=20.0#ohm\n", - "inpt=1000.0#kW\n", - "pf=0.8\n", - "inpt2=1500.0#kW\n", - "phi2=Symbol('phi2')\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", - "theta=math.radians(90)\n", - "er=ia*xs\n", - "zs=xs\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", - "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", - "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", - "#solving we get\n", - "phi2=math.radians(19.39)\n", - "pf=math.cos(phi2)\n", - "#result\n", - "print \"new power factor=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "new power factor= 0.943280616635\n" - ] - } - ], - "prompt_number": 228 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.28, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "x=4#ohms/phase\n", - "r=0.5#ohms/phase\n", - "ia=60#A\n", - "pf=0.866\n", - "loss=2#kW\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(complex(r,x))\n", - "phi=math.acos(pf)\n", - "iazs=ia*zs\n", - "theta=math.atan(x/r)\n", - "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", - "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", - "pm=3*pm_max\n", - "output=pm-loss*1000\n", - "\n", - "#result\n", - "print \"maximum power output=\",output/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum power output= 51.3898913442 kW\n" - ] - } - ], - "prompt_number": 229 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.29, Page Number:1519" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "z=10#ohm\n", - "x=0.5#ohm\n", - "v=2000#V\n", - "f=25#Hz\n", - "eb=1600#V\n", - "\n", - "#calculations\n", - "pf=x/z\n", - "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", - "ns=120*f/6\n", - "tg_max=9.55*pm_max/ns\n", - "\n", - "#result\n", - "print \"maximum total torque=\",tg_max,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total torque= 5505.51976175 N-m\n" - ] - } - ], - "prompt_number": 231 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.30, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variabke declaration\n", - "v=2000#V\n", - "n=1500#rpm\n", - "x=3#ohm/phase\n", - "ia=200#A\n", - "\n", - "#calculations\n", - "eb=vp=v/math.sqrt(3)\n", - "zs=ia*x\n", - "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", - "phi=math.asin(sinphi)\n", - "pf=math.cos(phi)\n", - "pi=math.sqrt(3)*v*ia*pf/1000\n", - "tg=9.55*pi*1000/n\n", - "\n", - "#result\n", - "print \"power input=\",pi,\"kW\"\n", - "print \"power factor=\",pf\n", - "print \"torque=\",tg,\"N-m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power input= 669.029147347 kW\n", - "power factor= 0.965660395791\n", - "torque= 4259.48557144 N-m\n" - ] - } - ], - "prompt_number": 234 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.31, Page Number:1520" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=3300#V\n", - "r=2#ohm\n", - "x=18#ohm\n", - "e=3800#V\n", - "\n", - "#calculations\n", - "theta=math.atan(x/r)\n", - "vp=v/math.sqrt(3)\n", - "eb=e/math.sqrt(3)\n", - "alpha=theta\n", - "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", - "zs=math.sqrt(r**2+x**2)\n", - "ia=er/zs\n", - "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", - "cu_loss=3*ia**2*r\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*v*ia)\n", - "\n", - "#result\n", - "print \"maximum total mechanical power=\",pm_max,\"W\"\n", - "print \"current=\",ia,\"A\"\n", - "print \"pf=\",pf\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "maximum total mechanical power= 604356.888001 W\n", - "current= 151.417346198 A\n", - "pf= 0.857248980398\n" - ] - } - ], - "prompt_number": 235 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.32, Page Number:1521" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=415#V\n", - "e=520#V\n", - "z=complex(0.5,4)\n", - "loss=1000#W\n", - "\n", - "#calculations\n", - "theta=math.atan(z.imag/z.real)\n", - "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", - "zs=abs(z)\n", - "i=er/zs\n", - "il=math.sqrt(3)*i\n", - "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", - "output=pm_max-loss\n", - "cu_loss=3*i**2*z.real\n", - "input_m=pm_max+cu_loss\n", - "pf=input_m/(math.sqrt(3)*il*v)\n", - "efficiency=output/input_m\n", - "\n", - "#result\n", - "print \"power output=\",output/1000,\"kW\"\n", - "print \"line current=\",il,\"A\"\n", - "print \"power factor=\",pf\n", - "print \"efficiency=\",efficiency*100,\"%\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "power output= 134.640174346 kW\n", - "line current= 268.015478962 A\n", - "power factor= 0.890508620247\n", - "efficiency= 78.4816159071 %\n" - ] - } - ], - "prompt_number": 240 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.33, Page Number:1524" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "v=400#V\n", - "inpt=37.3#kW\n", - "efficiency=0.88\n", - "z=complex(0.2,1.6)\n", - "pf=0.9\n", - "\n", - "#calculations\n", - "vp=v/math.sqrt(3)\n", - "zs=abs(z)\n", - "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", - "izs=zs*il\n", - "theta=math.atan(z.imag/z.real)\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", - "input_m=inpt*1000/efficiency\n", - "cu_loss=3*il**2*z.real\n", - "pm=input_m-cu_loss\n", - "\n", - "#result\n", - "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", - "print \"total mechanical power=\",pm/1000,\"kW\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "induced emf= 494.75258624 V\n", - "total mechanical power= 39.6138268735 kW\n" - ] - } - ], - "prompt_number": 243 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.34, Page Number:1525" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "inpt=48#kW\n", - "v=693#V\n", - "pf=0.8\n", - "ratio=0.3\n", - "x=2#W/phase\n", - "\n", - "#calculations\n", - "il=inpt*1000/(math.sqrt(3)*v*pf)\n", - "vp=v/math.sqrt(3)\n", - "zs=x\n", - "izs=zs*il\n", - "theta=math.atan(float(\"inf\"))\n", - "phi=math.acos(pf)\n", - "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", - "i_cosphi=pf*il\n", - "bc=i_cosphi*x\n", - "eb=eb+(ratio*eb)\n", - "ac=math.sqrt(eb**2-bc**2)\n", - "oc=ac-vp\n", - "phi2=math.atan(oc/bc)\n", - "pf=math.cos(phi2)\n", - "i2=i_cosphi/pf\n", - "\n", - "#result\n", - "print \"current=\",i2,\"A\"\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "current= 46.3871111945 A\n", - "pf= 0.862084919821\n" - ] - } - ], - "prompt_number": 251 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example Number 38.35, Page Number:1526" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#variable declaration\n", - "load=60.0#kW\n", - "inpt=240.0#kW\n", - "pf=0.8\n", - "pf2=0.9\n", - "\n", - "#calculations\n", - "total_load=inpt+load\n", - "phi=math.acos(pf2)\n", - "kVAR=total_load*math.tan(phi)\n", - "#factory load\n", - "phil=math.acos(pf)\n", - "kVAR=inpt*math.tan(phil)\n", - "kVA=inpt/pf\n", - "kVAR1=total_load*math.sin(phil)\n", - "lead_kVAR=kVAR1-kVAR\n", - "#synchronous motor\n", - "phim=math.atan(lead_kVAR/load)\n", - "motorpf=math.cos(phim)\n", - "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", - "\n", - "#result\n", - "print \"leading kVAR supplied by the motor=\",motorkVA\n", - "print \"pf=\",pf" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "leading kVAR supplied by the motor= 60.0\n", - "pf= 0.8\n" - ] - } - ], - "prompt_number": 253 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39.ipynb deleted file mode 100644 index e889465f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39.ipynb +++ /dev/null @@ -1,256 +0,0 @@ -{ - "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": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_1.ipynb deleted file mode 100644 index e889465f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_1.ipynb +++ /dev/null @@ -1,256 +0,0 @@ -{ - "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": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb deleted file mode 100644 index e889465f..00000000 --- a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb +++ /dev/null @@ -1,256 +0,0 @@ -{ - "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": {} - } - ] -} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32.png deleted file mode 100644 index 0c99fa16..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_1.png deleted file mode 100644 index 0c99fa16..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_1.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png deleted file mode 100644 index 0c99fa16..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33.png deleted file mode 100644 index 3db6b46d..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_1.png deleted file mode 100644 index 3db6b46d..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_1.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png deleted file mode 100644 index 3db6b46d..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30.png deleted file mode 100644 index 1e7a1724..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_1.png deleted file mode 100644 index 1e7a1724..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_1.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png deleted file mode 100644 index 1e7a1724..00000000 Binary files a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png and /dev/null differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb new file mode 100644 index 00000000..884c7e96 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb @@ -0,0 +1,173 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 25: Elements of Electro-Mechanical Energy Conversion" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.1, Page Number:876" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "sod=15#stator-core outer diameter\n", + "sid=10.05#stator-core inner diameter\n", + "rod=10.00#rotor-core outer diameter\n", + "rid=5#rotor-core inner diameter\n", + "a=8#axial lenght of the machine\n", + "b=1.20\n", + "ur=1000\n", + "#calculations\n", + "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", + "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", + "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", + "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", + "e=ed*va*math.pow(10,-6)\n", + "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", + "es=edm*vs*math.pow(10,-6)\n", + "er=edm*vr*math.pow(10,-6)\n", + "kr=(vs+vr)/vs\n", + "ke=(es+er)/e\n", + "ratio=kr/ke\n", + "eratio=e/(es+er)\n", + "\n", + "#result\n", + "print \"Energy stored in air gap= \",e,\" Joules\"\n", + "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", + "print \"Energy stored in rotor core= \",er,\" Joules\"\n", + "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Energy stored in air gap= 3.609 Joules\n", + "Energy stored in stator-core= 0.45 Joules\n", + "Energy stored in rotor core= 0.27 Joules\n", + "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.2, Page Number:877" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "n=800#turns\n", + "area=5*5#cross sectional area\n", + "i=1.25#amp\n", + "x=0.25#cm\n", + "l=0.402\n", + "#calculations\n", + "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", + "l=n**2*p\n", + "em=.5*i*i*l\n", + "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", + "\n", + "#result\n", + "print \"a)i)coil inductance=\",l,\"H\"\n", + "print \" ii)field energy stored=\",em,\"J\"\n", + "print \"b)mechanical energy output=\",W,\"NW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)coil inductance= 0.40192 H\n", + " ii)field energy stored= 0.314 J\n", + "b)mechanical energy output= -62.8 NW\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.4, Page Number:882" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "lo=50#mH\n", + "xo=0.05#cm\n", + "r=0.5#ohm\n", + "x=0.075#cm\n", + "i2=3#A\n", + "x2=0.15#cm\n", + "\n", + "#calculation\n", + "l1=2*lo/(1+(x/xo))\n", + "lambda1=l1*i2*10**(-3)\n", + "W=0.5*l1*i2**2*10**(-3)\n", + "l2=2*lo/(1+(x2/xo))\n", + "lambda2=l2*i2*10**(-3)\n", + "w2=0.5*i2*(lambda1-lambda2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",W,\"J\"\n", + "print \"b)change in magnetic stored energy=\",w2,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.18 J\n", + "b)change in magnetic stored energy= 0.0675 J\n" + ] + } + ], + "prompt_number": 19 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_1.ipynb new file mode 100644 index 00000000..884c7e96 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_1.ipynb @@ -0,0 +1,173 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 25: Elements of Electro-Mechanical Energy Conversion" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.1, Page Number:876" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "sod=15#stator-core outer diameter\n", + "sid=10.05#stator-core inner diameter\n", + "rod=10.00#rotor-core outer diameter\n", + "rid=5#rotor-core inner diameter\n", + "a=8#axial lenght of the machine\n", + "b=1.20\n", + "ur=1000\n", + "#calculations\n", + "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", + "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", + "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", + "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", + "e=ed*va*math.pow(10,-6)\n", + "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", + "es=edm*vs*math.pow(10,-6)\n", + "er=edm*vr*math.pow(10,-6)\n", + "kr=(vs+vr)/vs\n", + "ke=(es+er)/e\n", + "ratio=kr/ke\n", + "eratio=e/(es+er)\n", + "\n", + "#result\n", + "print \"Energy stored in air gap= \",e,\" Joules\"\n", + "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", + "print \"Energy stored in rotor core= \",er,\" Joules\"\n", + "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Energy stored in air gap= 3.609 Joules\n", + "Energy stored in stator-core= 0.45 Joules\n", + "Energy stored in rotor core= 0.27 Joules\n", + "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.2, Page Number:877" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "n=800#turns\n", + "area=5*5#cross sectional area\n", + "i=1.25#amp\n", + "x=0.25#cm\n", + "l=0.402\n", + "#calculations\n", + "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", + "l=n**2*p\n", + "em=.5*i*i*l\n", + "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", + "\n", + "#result\n", + "print \"a)i)coil inductance=\",l,\"H\"\n", + "print \" ii)field energy stored=\",em,\"J\"\n", + "print \"b)mechanical energy output=\",W,\"NW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)coil inductance= 0.40192 H\n", + " ii)field energy stored= 0.314 J\n", + "b)mechanical energy output= -62.8 NW\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.4, Page Number:882" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "lo=50#mH\n", + "xo=0.05#cm\n", + "r=0.5#ohm\n", + "x=0.075#cm\n", + "i2=3#A\n", + "x2=0.15#cm\n", + "\n", + "#calculation\n", + "l1=2*lo/(1+(x/xo))\n", + "lambda1=l1*i2*10**(-3)\n", + "W=0.5*l1*i2**2*10**(-3)\n", + "l2=2*lo/(1+(x2/xo))\n", + "lambda2=l2*i2*10**(-3)\n", + "w2=0.5*i2*(lambda1-lambda2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",W,\"J\"\n", + "print \"b)change in magnetic stored energy=\",w2,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.18 J\n", + "b)change in magnetic stored energy= 0.0675 J\n" + ] + } + ], + "prompt_number": 19 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_2.ipynb new file mode 100644 index 00000000..884c7e96 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_2.ipynb @@ -0,0 +1,173 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 25: Elements of Electro-Mechanical Energy Conversion" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.1, Page Number:876" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "sod=15#stator-core outer diameter\n", + "sid=10.05#stator-core inner diameter\n", + "rod=10.00#rotor-core outer diameter\n", + "rid=5#rotor-core inner diameter\n", + "a=8#axial lenght of the machine\n", + "b=1.20\n", + "ur=1000\n", + "#calculations\n", + "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", + "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", + "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", + "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", + "e=ed*va*math.pow(10,-6)\n", + "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", + "es=edm*vs*math.pow(10,-6)\n", + "er=edm*vr*math.pow(10,-6)\n", + "kr=(vs+vr)/vs\n", + "ke=(es+er)/e\n", + "ratio=kr/ke\n", + "eratio=e/(es+er)\n", + "\n", + "#result\n", + "print \"Energy stored in air gap= \",e,\" Joules\"\n", + "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", + "print \"Energy stored in rotor core= \",er,\" Joules\"\n", + "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Energy stored in air gap= 3.609 Joules\n", + "Energy stored in stator-core= 0.45 Joules\n", + "Energy stored in rotor core= 0.27 Joules\n", + "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.2, Page Number:877" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "n=800#turns\n", + "area=5*5#cross sectional area\n", + "i=1.25#amp\n", + "x=0.25#cm\n", + "l=0.402\n", + "#calculations\n", + "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", + "l=n**2*p\n", + "em=.5*i*i*l\n", + "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", + "\n", + "#result\n", + "print \"a)i)coil inductance=\",l,\"H\"\n", + "print \" ii)field energy stored=\",em,\"J\"\n", + "print \"b)mechanical energy output=\",W,\"NW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)coil inductance= 0.40192 H\n", + " ii)field energy stored= 0.314 J\n", + "b)mechanical energy output= -62.8 NW\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.4, Page Number:882" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "lo=50#mH\n", + "xo=0.05#cm\n", + "r=0.5#ohm\n", + "x=0.075#cm\n", + "i2=3#A\n", + "x2=0.15#cm\n", + "\n", + "#calculation\n", + "l1=2*lo/(1+(x/xo))\n", + "lambda1=l1*i2*10**(-3)\n", + "W=0.5*l1*i2**2*10**(-3)\n", + "l2=2*lo/(1+(x2/xo))\n", + "lambda2=l2*i2*10**(-3)\n", + "w2=0.5*i2*(lambda1-lambda2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",W,\"J\"\n", + "print \"b)change in magnetic stored energy=\",w2,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.18 J\n", + "b)change in magnetic stored energy= 0.0675 J\n" + ] + } + ], + "prompt_number": 19 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_3.ipynb new file mode 100644 index 00000000..884c7e96 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter25_3.ipynb @@ -0,0 +1,173 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0a9697b2451ba5bc5f24eb67c66ef466539d8d3c214c7c35bb64d3c339daf3f9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 25: Elements of Electro-Mechanical Energy Conversion" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.1, Page Number:876" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "sod=15#stator-core outer diameter\n", + "sid=10.05#stator-core inner diameter\n", + "rod=10.00#rotor-core outer diameter\n", + "rid=5#rotor-core inner diameter\n", + "a=8#axial lenght of the machine\n", + "b=1.20\n", + "ur=1000\n", + "#calculations\n", + "vs=(3.14/4)*((sod*sod)-(sid*sid))*a#volume of stator-core\n", + "vr=(3.14/4)*((rod*rod)-(rid*rid))*a#volume of rotor-core\n", + "va=(3.14/4)*((sid*sid)-(rod*rod))*a#volume of air-gap in the machine\n", + "ed=(.5*b*b)/(4*3.14*math.pow(10,-7))\n", + "e=ed*va*math.pow(10,-6)\n", + "edm=(.5*b*b)/(4*3.14*math.pow(10,-7)*ur)\n", + "es=edm*vs*math.pow(10,-6)\n", + "er=edm*vr*math.pow(10,-6)\n", + "kr=(vs+vr)/vs\n", + "ke=(es+er)/e\n", + "ratio=kr/ke\n", + "eratio=e/(es+er)\n", + "\n", + "#result\n", + "print \"Energy stored in air gap= \",e,\" Joules\"\n", + "print \"Energy stored in stator-core= \",round(es,2),\" Joules\"\n", + "print \"Energy stored in rotor core= \",er,\" Joules\"\n", + "print \"Ratio of energy dtored in air-gap to that stored in the cores=\",round(eratio)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Energy stored in air gap= 3.609 Joules\n", + "Energy stored in stator-core= 0.45 Joules\n", + "Energy stored in rotor core= 0.27 Joules\n", + "Ratio of energy dtored in air-gap to that stored in the cores= 5.0\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.2, Page Number:877" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "n=800#turns\n", + "area=5*5#cross sectional area\n", + "i=1.25#amp\n", + "x=0.25#cm\n", + "l=0.402\n", + "#calculations\n", + "p=4*3.14*10**(-7)*area*10**(-4)/(0.5*10**(-2))\n", + "l=n**2*p\n", + "em=.5*i*i*l\n", + "W=-1*0.5*n**2*4*3.14*10**(-7)*area*10**(-4)*i**2/(0.5*10**(-2))**2\n", + "\n", + "#result\n", + "print \"a)i)coil inductance=\",l,\"H\"\n", + "print \" ii)field energy stored=\",em,\"J\"\n", + "print \"b)mechanical energy output=\",W,\"NW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)coil inductance= 0.40192 H\n", + " ii)field energy stored= 0.314 J\n", + "b)mechanical energy output= -62.8 NW\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.4, Page Number:882" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "lo=50#mH\n", + "xo=0.05#cm\n", + "r=0.5#ohm\n", + "x=0.075#cm\n", + "i2=3#A\n", + "x2=0.15#cm\n", + "\n", + "#calculation\n", + "l1=2*lo/(1+(x/xo))\n", + "lambda1=l1*i2*10**(-3)\n", + "W=0.5*l1*i2**2*10**(-3)\n", + "l2=2*lo/(1+(x2/xo))\n", + "lambda2=l2*i2*10**(-3)\n", + "w2=0.5*i2*(lambda1-lambda2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",W,\"J\"\n", + "print \"b)change in magnetic stored energy=\",w2,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.18 J\n", + "b)change in magnetic stored energy= 0.0675 J\n" + ] + } + ], + "prompt_number": 19 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb new file mode 100644 index 00000000..1af9bb80 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb @@ -0,0 +1,1600 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 26: D.C. Generators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.3, Page Number:912" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=450#A\n", + "v=230#v\n", + "rs=50#ohm\n", + "ra=.03#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "va=ia*ra\n", + "E=v+va\n", + "\n", + "#result\n", + "print \"e.m.f. generated in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f. generated in the armature= 243.62 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.4, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=500#v\n", + "rs=250#ohm\n", + "ra=.05#ohm\n", + "rseries=0.03#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "vs=ia*rseries\n", + "va=ia*ra\n", + "vb=ish*b\n", + "E=v+va+vs+vb\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 506.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.5, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=30#A\n", + "v=220#v\n", + "rs=200#ohm\n", + "ra=.05#ohm\n", + "rseries=0.30#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "vs=i*rseries\n", + "vshunt=v+vs\n", + "ish=vshunt/v\n", + "ia=i+ish\n", + "vb=b*2\n", + "E=v+vs+vb+(ia*ra)\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 232.552045455 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.6, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": true, + "input": [ + "#variable declaration\n", + "v=230.0#v\n", + "i=150.0#A\n", + "rs=92.0#ohm\n", + "rseries=0.015#ohm\n", + "rd=0.03#ohm(divertor)\n", + "ra=0.032#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "sdr=(rd*rseries)/(rd+rseries)\n", + "tr=ra+sdr\n", + "vd=ia*tr\n", + "Eg=v+vd\n", + "tp=Eg*ia\n", + "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", + "\n", + "#resuts\n", + "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", + "print \"ii)Total power generated= \",tp,\" W\"\n", + "print \"iii)Distribution of the total power:\"\n", + "print \" power lost in armature= \", ia*ia*ra\n", + "print \"power lost in series field and divider= \", ia*ia*sdr\n", + "print \"power dissipated in shunt winding= \", v*ish\n", + "print \"power delivered to load= \", v*i\n", + "print \" ------------\"\n", + "print \"Total= \", pl" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) Induced e.m.f.= 236.405 V\n", + "ii)Total power generated= 36051.7625 W\n", + "iii)Distribution of the total power:\n", + " power lost in armature= 744.2\n", + "power lost in series field and divider= 232.5625\n", + "power dissipated in shunt winding= 575.0\n", + "power delivered to load= 34500.0\n", + " ------------\n", + "Total= 36051.7625\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.7, Page Number:914" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=300000.0#w\n", + "v=600.0#v\n", + "sr=75.0#ohm\n", + "abr=0.03#ohm\n", + "cr=0.011#ohm\n", + "rseries=0.012#ohm\n", + "dr=0.036#ohm\n", + "\n", + "#calculatons\n", + "io=p/v#output current\n", + "ish=v/sr\n", + "ia=io+ish\n", + "sdr=(rseries*dr)/(rseries+dr)\n", + "tr=abr+cr+sdr\n", + "vd=ia*tr\n", + "va=v+vd\n", + "pg=va*ia\n", + "W=pg/1000\n", + "\n", + "#result\n", + "print \"Voltage generatedby the armature= \",va,\" V\"\n", + "print \"Power generated by the armature= \",W, \"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generatedby the armature= 625.4 V\n", + "Power generated by the armature= 317.7032 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.8, Page Number:915" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "phi=7*math.pow(10,-3)\n", + "z=51*20\n", + "a=p=4\n", + "n=1500#r.p.m\n", + "\n", + "#calculations\n", + "Eg=(phi*z*n*p)/(a*60)\n", + "\n", + "#result\n", + "print \"Voltage generated= \",Eg,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generated= 178.5 V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.9, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=8\n", + "phi=0.05#Wb\n", + "n=1200#rpm\n", + "N=500#armature conductor\n", + "\n", + "#calculations\n", + "E=phi*(n/60)*(p/a)*N\n", + "\n", + "#result\n", + "print \"e.m.f generated= \",E,\" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f generated= 500.0 V\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.10, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=127#v\n", + "vt=120#v(terminal voltage)\n", + "r=15#ohms\n", + "i1=8.47#A\n", + "ra=0.02#ohms\n", + "fi=8#A\n", + "\n", + "#calculations\n", + "Eg=v+(i1*ra)\n", + "ia=(Eg-vt)/ra\n", + "il=ia-fi\n", + "\n", + "#result\n", + "print \"Load current \",il,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current 350.47 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(a), Page Number:917" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=778\n", + "n=500\n", + "ra=0.24\n", + "rl=12.5\n", + "r=250\n", + "v=250\n", + "a=2\n", + "#calculations\n", + "il=v/rl\n", + "si=v/r\n", + "ai=il+si\n", + "emf=v+(ai*ra)\n", + "phi=(emf*60*a)/(p*z*n)\n", + "\n", + "#result\n", + "print \"armature current= \",ai,\" A\"\n", + "print \"induced e.m.f.= \",emf,\" V\"\n", + "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 21.0 A\n", + "induced e.m.f.= 255.04 V\n", + "flux per pole= 9.83 mWb\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(b), Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "P=5000.0#w\n", + "P2=2500.0#W\n", + "v=250.0#v\n", + "ra=0.2#ohm\n", + "r=250.0#ohm\n", + "z=120\n", + "N=1000#rpm\n", + "\n", + "#calculations\n", + "gc=P/v\n", + "li=P2/v\n", + "ti=gc+li\n", + "fc=1\n", + "ai=ti+fc\n", + "ard=ai*ra\n", + "emf=v+ard+2\n", + "phi=(emf*60*a)/(p*z*N)\n", + "ac_perparralelpath=ai/p\n", + "\n", + "#result\n", + "print \"Flux per pole= \",phi*1000,\" mWb\"\n", + "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Flux per pole= 129.1 mWb\n", + "Armature current per parallel path= 7.75 A\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.12, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=125.0#V\n", + "n1=1000#rpm\n", + "n2=800#rpm\n", + "ra=0.04#ohm\n", + "bd=2.0#V(brush drop)\n", + "\n", + "#calculations\n", + "R=v/i\n", + "E1=v+(i*ra)+bd\n", + "E2=(E1*n2)/n1\n", + "il=(E2-bd)/0.675\n", + "\n", + "#result\n", + "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current when speed drops to 800 r.p.m.= 157.04 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.13, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "n=900 #rpm\n", + "V=220#V\n", + "E=240#V\n", + "ra=0.2#ohm\n", + "phi=10#mWb\n", + "N=8\n", + "\n", + "#calculations\n", + "ia=(E-V)/ra\n", + "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", + "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", + "number_of_coils=Z/16\n", + "\n", + "#result\n", + "print \"armature current= \",ia,\" A\"\n", + "print \"number of coils= \",number_of_coils" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 100.0 A\n", + "number of coils= 500.0\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.14, Page Number:919" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=120.0#V\n", + "ra=0.06#ohm\n", + "rs=25#ohm\n", + "rsw=0.04#ohm(series winding)\n", + "il=100.0#A\n", + "#i)Long shunt\n", + "ish=V/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", + "\n", + "#i)Short shunt\n", + "vds=il*rsw\n", + "vs=V+vds\n", + "ish=vs/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", + "Armature current when the machine is connected to long shunt= 104.8 A\n", + "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", + "Armature current when the machine is connected to short shunt= 104.96 A\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.15, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=25000.0#W\n", + "V=500.0#V\n", + "ra=0.03#ohm\n", + "rs=200.0#ohm\n", + "rseries=0.04#ohm\n", + "vb=1.0#V\n", + "n=1200#rpm\n", + "phi=0.02#Wb\n", + "\n", + "#calculations\n", + "i=p/V\n", + "ish=V/rs\n", + "ia=i+ish\n", + "p=4\n", + "vds=ia*rseries\n", + "vda=ia*ra\n", + "vdb=vb*2\n", + "E=V+vds+vda+vdb\n", + "Z=(E*60*4)/(phi*n*p)\n", + "\n", + "#result\n", + "print \"The e.m.f. generated= \",E,\" V\"\n", + "print \"The number of conductors=\",Z" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The e.m.f. generated= 505.675 V\n", + "The number of conductors= 1264.1875\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.16, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=750#rpm\n", + "e=240.0#V\n", + "z=792\n", + "phi=0.0145#Wb\n", + "\n", + "#calculations\n", + "phi_working=(e*60*2)/(n*z*p)\n", + "lambda_=phi/phi_working\n", + "\n", + "#results\n", + "print \"Leakage coefficient= \",round(lambda_,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Leakage coefficient= 1.2\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.17, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rt=0.004#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "rtotal=t*rt\n", + "r_eachpath=rtotal/p\n", + "ra=r_eachpath/a\n", + "vda=ia*ra\n", + "V=E-vda\n", + "\n", + "#result\n", + "print \"Terminal Voltage= \",V, \" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal Voltage= 459.25 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.18, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rturn=0.004#ohm\n", + "rs=100.0#ohm\n", + "rsc=0.02#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "ra=0.055#ohm\n", + "ra=ra+rsc\n", + "va=ia*ra\n", + "v=E-va\n", + "ish=v/rs\n", + "i=ia-ish\n", + "output=v*i\n", + "\n", + "#result\n", + "print \"Output= \",round(output/1000,3),\" kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 20.813 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.19, Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=1200#rpm\n", + "ia=200#A\n", + "v=125#V\n", + "n2=1000#rpm\n", + "ra=0.04#ohm\n", + "vb=2#V\n", + "\n", + "#calculations\n", + "E1=v+vb+(ia*ra)\n", + "E2=E1*n2/n1*0.8\n", + "\n", + "#results\n", + "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(a), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "rs=100.0#ohm\n", + "ra=1.0#ohm\n", + "z=378\n", + "phi=0.02#Wb\n", + "rl=10.0#ohm\n", + "n=1000#rpm\n", + "a=2\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "V=(100.0/111.0)*E\n", + "il=V/rl\n", + "P=il*V\n", + "\n", + "#result\n", + "print \"Power absorbed by the load is= \",P,\" W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power absorbed by the load is= 5154.12710007 W\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(b), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "z=300\n", + "phi=0.1#Wb\n", + "n=1000#rpm\n", + "ra=0.2#rpm\n", + "rf=125#ohm\n", + "il=90#A\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "ifield=E/rf\n", + "ia=ifield+il\n", + "V=E-(ia*ra)\n", + "\n", + "#result\n", + "print \"Terminal voltage= \",V,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal voltage= 481.2 V\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(a), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "n=1200#rpm\n", + "e=250.0#V\n", + "d=350.0#mm\n", + "air_gap=3.0#mm\n", + "al=260.0#mm\n", + "fringing=0.8\n", + "coils=96\n", + "t=3\n", + "\n", + "#calculations\n", + "z=t*coils*2\n", + "a=p*2\n", + "phi=(e*60*a)/(n*z*p)\n", + "di=d+air_gap\n", + "pole_arc=(3.14*di*fringing)/6\n", + "B=phi/(pole_arc*0.000001*al)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi,\" Wb\"\n", + "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", + "print \"flux density= \",B,\" T\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.0434027777778 Wb\n", + "effective pole arc lenght= 0.147789333333 m\n", + "flux density= 1.12953862717 T\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(b), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=1200\n", + "e=250.0#v\n", + "n=500#rpm\n", + "b=35.0#cm\n", + "ratio=0.7\n", + "lpole=20.0#cm\n", + "\n", + "#calculations\n", + "pole_pitch=(b*3.14)/p\n", + "polearc=ratio*pole_pitch\n", + "pole_area=polearc*lpole\n", + "phi=(e*60*a)/(n*z*p)\n", + "mean_flux=phi/(pole_area*math.pow(10,-4))\n", + " \n", + "#result\n", + "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Mean flux density= 0.649941505265 Wb/m2\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(d), Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=100.0#V\n", + "ra=0.04#ohm\n", + "rseries=0.03#ohm\n", + "rs=60.0#ohm\n", + "\n", + "#calculations\n", + "va=v+(i*rseries)\n", + "ish=va/rs\n", + "ia=i+ish\n", + "e=va+(ia*ra)\n", + "\n", + "#long shunt\n", + "ishunt=v/rs\n", + "vd=ia*(ra+rseries)\n", + "e2=v+vd\n", + "\n", + "#result\n", + "print \"emf generated(short shunt)\",e,\" V\"\n", + "print \"emf generated(long shunt)\",e2,\" V\"\n", + "\n", + "\n", + "#result\n", + "print " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf generated(short shunt) 114.070666667 V\n", + "emf generated(long shunt) 114.123666667 V\n", + "\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.22, Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "w=20000.0#W\n", + "v=220.0#v\n", + "ra=0.04#ohm\n", + "rs=110.0#ohm\n", + "rseries=0.05#ohm\n", + "efficiency=.85\n", + "\n", + "#calculations\n", + "il=w/v\n", + "i_f=v/rs\n", + "ia=il+i_f\n", + "ip=w/efficiency#input power\n", + "total_loss=ip-w\n", + "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", + "ironloss=total_loss-copper_loss\n", + "omega=2*3.14*n/60\n", + "T=ip/omega\n", + "\n", + "#omega\n", + "print \"Copper loss= \",copper_loss,\" W\"\n", + "print \"Iron and friction loss= \",ironloss,\" W\"\n", + "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Copper loss= 1216.88892562 W\n", + "Iron and friction loss= 2312.52283909 W\n", + "Torque developed by the prime mover= 224.803297115 Nw-m\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.23, Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declartaion\n", + "power=10000.0#W\n", + "v=250.0#V\n", + "p=a=6\n", + "n=1000.0#rpm\n", + "z=534\n", + "cu_loss=0.64*1000#W\n", + "vbd=1.0#V\n", + "\n", + "#calculations\n", + "ia=power/v\n", + "ra=cu_loss/(ia*ia)\n", + "E=v+(ia*ra)+vbd\n", + "phi=(E*60*a)/(n*z*p)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi*1000,\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 30.0 mWb\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(a), Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=195#A\n", + "pd=250#V\n", + "ra=0.02#ohm\n", + "rsh=50#ohm\n", + "p=250#W\n", + "strayloss=950#W\n", + "#calculations\n", + "ish=pd/rsh\n", + "ia=i+ish\n", + "vda=ia*ra\n", + "E=pd+vda\n", + "cu_loss=(ia*ia*ra)+(pd*ish)\n", + "output_prime=(pd*i)+strayloss+cu_loss\n", + "power_a=output_prime-strayloss\n", + "neu_m=(power_a/output_prime)\n", + "neu_e=(pd*i)/((pd*i)+cu_loss)\n", + "neu_c=(pd*i)/output_prime\n", + "\n", + "#result\n", + "print \"a)e.m.f. generated= \",E,\" V\"\n", + "print \" b)Cu losses= \",cu_loss,\" W\"\n", + "print \" c)output of prime mover= \",output_prime,\" W\"\n", + "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", + "print \" electrical efficiency= \",neu_e*100,\" %\"\n", + "print \" commercial efficiency= \",neu_c*100,\" %\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)e.m.f. generated= 254.0 V\n", + " b)Cu losses= 2050.0 W\n", + " c)output of prime mover= 51750.0 W\n", + " d)mechanical efficiency= 98.1642512077 %\n", + " electrical efficiency= 95.9645669291 %\n", + " commercial efficiency= 94.2028985507 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(b), Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "output=v*il\n", + "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"Efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.25, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=196#A\n", + "v=220#V\n", + "stray_loss=720#W\n", + "rsh=55#ohm\n", + "e=0.88\n", + "\n", + "#calculations\n", + "output=v*i\n", + "inpute=output/e\n", + "total_loss=inpute-output\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "cu_loss=v*ish\n", + "constant_loss=cu_loss+stray_loss\n", + "culoss_a=total_loss-constant_loss\n", + "ra=culoss_a/(ia*ia)\n", + "I=math.sqrt(constant_loss/ra)\n", + "\n", + "#result\n", + "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load curent corresponding to maximum efficiency 122.283568103 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.26, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "p=22*1000#w\n", + "v=220#V\n", + "ra=0.05#ohm\n", + "rsh=110#ohm\n", + "rseries=0.06#ohm\n", + "efficiency=.88\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "I=p/v\n", + "ia=ish+I\n", + "vdseries=ia*rseries\n", + "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", + "total_loss=(p/efficiency)-p\n", + "strayloss=total_loss-cu_loss\n", + "T=(p/efficiency*60)/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"a)cu losses= \",cu_loss,\" W\"\n", + "print \"b)iron and friction loss= \",strayloss,\" W\"\n", + "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cu losses= 1584.44 W\n", + "b)iron and friction loss= 1415.56 W\n", + "c)Torque exerted by the prime mover= 238.853503185 N-m\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.27, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "i=20#A\n", + "r=10#ohm\n", + "ra=0.5#ohm\n", + "rsh=50#ohm\n", + "vdb=1#V(voltage drop per brush)\n", + "\n", + "#calculations\n", + "v=i*r\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "E=v+(ia*ra)+(2*vdb)\n", + "totalpower=E*ia\n", + "output=v*i\n", + "efficiency=output/totalpower\n", + "\n", + "#result\n", + "print \"induced e.m.f.= \",E,\" V\"\n", + "print \"efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced e.m.f.= 214.0 V\n", + "efficiency= 77.8816199377 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.28, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "i=100#A\n", + "ra=0.1#ohm\n", + "rseries=0.02#ohm\n", + "ri=0.025#ohm\n", + "rsh=100#ohm\n", + "ironloss=1000#W\n", + "frictionloss=500#W\n", + "\n", + "#calculations\n", + "output=v*i\n", + "totalra=ra+rseries+ri\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "copperloss=ia*ia*totalra\n", + "shculoss=ish*v\n", + "total_loss=copperloss+ironloss+frictionloss+shculoss\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "F.L. efficiency of the machine= 87.3089843128 %\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.31, Page Number:931" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=10.0*1000#W\n", + "v=240.0#V\n", + "ra=0.6#ohm\n", + "rsh=160.0#ohm\n", + "mechcoreloss=500.0#W\n", + "culoss=360.0#W\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "i=output/v\n", + "ia=ish+i\n", + "culossa=ia*ia*ra\n", + "totalloss=culoss+mechcoreloss+culossa\n", + "inputp=output+totalloss\n", + "efficiency=output/inputp\n", + "\n", + "#result\n", + "print \"Power required= \",inputp*0.001,\" kW\"\n", + "print \"efficinecy= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power required= 11.9780166667 kW\n", + "efficinecy= 83.486275552 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.32, Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=110*1000#W\n", + "v=220#V\n", + "ra=0.01#ohm\n", + "rse=0.002#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "il=p/v\n", + "ish=v/rsh\n", + "ia=il+ish\n", + "E=v+ia*(ra+rse)\n", + "\n", + "#result\n", + "print \"induced emf= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 226.024 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.33 Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "E=216.0#V\n", + "n=600.0#rpm\n", + "slots=144\n", + "con=6\n", + "n2=500.0#rpm\n", + "\n", + "#calculations\n", + "z=con*slots\n", + "a=p\n", + "phi=(E*60*a)/(n*z*p)\n", + "a=2\n", + "armatureE=(phi*z*n2*p)/(60*a)\n", + "\n", + "#result\n", + "print \"the armature emf= \",armatureE,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the armature emf= 360.0 V\n" + ] + } + ], + "prompt_number": 34 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_1.ipynb new file mode 100644 index 00000000..1af9bb80 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_1.ipynb @@ -0,0 +1,1600 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 26: D.C. Generators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.3, Page Number:912" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=450#A\n", + "v=230#v\n", + "rs=50#ohm\n", + "ra=.03#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "va=ia*ra\n", + "E=v+va\n", + "\n", + "#result\n", + "print \"e.m.f. generated in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f. generated in the armature= 243.62 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.4, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=500#v\n", + "rs=250#ohm\n", + "ra=.05#ohm\n", + "rseries=0.03#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "vs=ia*rseries\n", + "va=ia*ra\n", + "vb=ish*b\n", + "E=v+va+vs+vb\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 506.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.5, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=30#A\n", + "v=220#v\n", + "rs=200#ohm\n", + "ra=.05#ohm\n", + "rseries=0.30#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "vs=i*rseries\n", + "vshunt=v+vs\n", + "ish=vshunt/v\n", + "ia=i+ish\n", + "vb=b*2\n", + "E=v+vs+vb+(ia*ra)\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 232.552045455 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.6, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": true, + "input": [ + "#variable declaration\n", + "v=230.0#v\n", + "i=150.0#A\n", + "rs=92.0#ohm\n", + "rseries=0.015#ohm\n", + "rd=0.03#ohm(divertor)\n", + "ra=0.032#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "sdr=(rd*rseries)/(rd+rseries)\n", + "tr=ra+sdr\n", + "vd=ia*tr\n", + "Eg=v+vd\n", + "tp=Eg*ia\n", + "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", + "\n", + "#resuts\n", + "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", + "print \"ii)Total power generated= \",tp,\" W\"\n", + "print \"iii)Distribution of the total power:\"\n", + "print \" power lost in armature= \", ia*ia*ra\n", + "print \"power lost in series field and divider= \", ia*ia*sdr\n", + "print \"power dissipated in shunt winding= \", v*ish\n", + "print \"power delivered to load= \", v*i\n", + "print \" ------------\"\n", + "print \"Total= \", pl" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) Induced e.m.f.= 236.405 V\n", + "ii)Total power generated= 36051.7625 W\n", + "iii)Distribution of the total power:\n", + " power lost in armature= 744.2\n", + "power lost in series field and divider= 232.5625\n", + "power dissipated in shunt winding= 575.0\n", + "power delivered to load= 34500.0\n", + " ------------\n", + "Total= 36051.7625\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.7, Page Number:914" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=300000.0#w\n", + "v=600.0#v\n", + "sr=75.0#ohm\n", + "abr=0.03#ohm\n", + "cr=0.011#ohm\n", + "rseries=0.012#ohm\n", + "dr=0.036#ohm\n", + "\n", + "#calculatons\n", + "io=p/v#output current\n", + "ish=v/sr\n", + "ia=io+ish\n", + "sdr=(rseries*dr)/(rseries+dr)\n", + "tr=abr+cr+sdr\n", + "vd=ia*tr\n", + "va=v+vd\n", + "pg=va*ia\n", + "W=pg/1000\n", + "\n", + "#result\n", + "print \"Voltage generatedby the armature= \",va,\" V\"\n", + "print \"Power generated by the armature= \",W, \"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generatedby the armature= 625.4 V\n", + "Power generated by the armature= 317.7032 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.8, Page Number:915" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "phi=7*math.pow(10,-3)\n", + "z=51*20\n", + "a=p=4\n", + "n=1500#r.p.m\n", + "\n", + "#calculations\n", + "Eg=(phi*z*n*p)/(a*60)\n", + "\n", + "#result\n", + "print \"Voltage generated= \",Eg,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generated= 178.5 V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.9, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=8\n", + "phi=0.05#Wb\n", + "n=1200#rpm\n", + "N=500#armature conductor\n", + "\n", + "#calculations\n", + "E=phi*(n/60)*(p/a)*N\n", + "\n", + "#result\n", + "print \"e.m.f generated= \",E,\" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f generated= 500.0 V\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.10, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=127#v\n", + "vt=120#v(terminal voltage)\n", + "r=15#ohms\n", + "i1=8.47#A\n", + "ra=0.02#ohms\n", + "fi=8#A\n", + "\n", + "#calculations\n", + "Eg=v+(i1*ra)\n", + "ia=(Eg-vt)/ra\n", + "il=ia-fi\n", + "\n", + "#result\n", + "print \"Load current \",il,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current 350.47 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(a), Page Number:917" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=778\n", + "n=500\n", + "ra=0.24\n", + "rl=12.5\n", + "r=250\n", + "v=250\n", + "a=2\n", + "#calculations\n", + "il=v/rl\n", + "si=v/r\n", + "ai=il+si\n", + "emf=v+(ai*ra)\n", + "phi=(emf*60*a)/(p*z*n)\n", + "\n", + "#result\n", + "print \"armature current= \",ai,\" A\"\n", + "print \"induced e.m.f.= \",emf,\" V\"\n", + "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 21.0 A\n", + "induced e.m.f.= 255.04 V\n", + "flux per pole= 9.83 mWb\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(b), Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "P=5000.0#w\n", + "P2=2500.0#W\n", + "v=250.0#v\n", + "ra=0.2#ohm\n", + "r=250.0#ohm\n", + "z=120\n", + "N=1000#rpm\n", + "\n", + "#calculations\n", + "gc=P/v\n", + "li=P2/v\n", + "ti=gc+li\n", + "fc=1\n", + "ai=ti+fc\n", + "ard=ai*ra\n", + "emf=v+ard+2\n", + "phi=(emf*60*a)/(p*z*N)\n", + "ac_perparralelpath=ai/p\n", + "\n", + "#result\n", + "print \"Flux per pole= \",phi*1000,\" mWb\"\n", + "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Flux per pole= 129.1 mWb\n", + "Armature current per parallel path= 7.75 A\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.12, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=125.0#V\n", + "n1=1000#rpm\n", + "n2=800#rpm\n", + "ra=0.04#ohm\n", + "bd=2.0#V(brush drop)\n", + "\n", + "#calculations\n", + "R=v/i\n", + "E1=v+(i*ra)+bd\n", + "E2=(E1*n2)/n1\n", + "il=(E2-bd)/0.675\n", + "\n", + "#result\n", + "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current when speed drops to 800 r.p.m.= 157.04 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.13, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "n=900 #rpm\n", + "V=220#V\n", + "E=240#V\n", + "ra=0.2#ohm\n", + "phi=10#mWb\n", + "N=8\n", + "\n", + "#calculations\n", + "ia=(E-V)/ra\n", + "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", + "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", + "number_of_coils=Z/16\n", + "\n", + "#result\n", + "print \"armature current= \",ia,\" A\"\n", + "print \"number of coils= \",number_of_coils" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 100.0 A\n", + "number of coils= 500.0\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.14, Page Number:919" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=120.0#V\n", + "ra=0.06#ohm\n", + "rs=25#ohm\n", + "rsw=0.04#ohm(series winding)\n", + "il=100.0#A\n", + "#i)Long shunt\n", + "ish=V/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", + "\n", + "#i)Short shunt\n", + "vds=il*rsw\n", + "vs=V+vds\n", + "ish=vs/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", + "Armature current when the machine is connected to long shunt= 104.8 A\n", + "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", + "Armature current when the machine is connected to short shunt= 104.96 A\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.15, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=25000.0#W\n", + "V=500.0#V\n", + "ra=0.03#ohm\n", + "rs=200.0#ohm\n", + "rseries=0.04#ohm\n", + "vb=1.0#V\n", + "n=1200#rpm\n", + "phi=0.02#Wb\n", + "\n", + "#calculations\n", + "i=p/V\n", + "ish=V/rs\n", + "ia=i+ish\n", + "p=4\n", + "vds=ia*rseries\n", + "vda=ia*ra\n", + "vdb=vb*2\n", + "E=V+vds+vda+vdb\n", + "Z=(E*60*4)/(phi*n*p)\n", + "\n", + "#result\n", + "print \"The e.m.f. generated= \",E,\" V\"\n", + "print \"The number of conductors=\",Z" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The e.m.f. generated= 505.675 V\n", + "The number of conductors= 1264.1875\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.16, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=750#rpm\n", + "e=240.0#V\n", + "z=792\n", + "phi=0.0145#Wb\n", + "\n", + "#calculations\n", + "phi_working=(e*60*2)/(n*z*p)\n", + "lambda_=phi/phi_working\n", + "\n", + "#results\n", + "print \"Leakage coefficient= \",round(lambda_,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Leakage coefficient= 1.2\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.17, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rt=0.004#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "rtotal=t*rt\n", + "r_eachpath=rtotal/p\n", + "ra=r_eachpath/a\n", + "vda=ia*ra\n", + "V=E-vda\n", + "\n", + "#result\n", + "print \"Terminal Voltage= \",V, \" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal Voltage= 459.25 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.18, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rturn=0.004#ohm\n", + "rs=100.0#ohm\n", + "rsc=0.02#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "ra=0.055#ohm\n", + "ra=ra+rsc\n", + "va=ia*ra\n", + "v=E-va\n", + "ish=v/rs\n", + "i=ia-ish\n", + "output=v*i\n", + "\n", + "#result\n", + "print \"Output= \",round(output/1000,3),\" kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 20.813 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.19, Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=1200#rpm\n", + "ia=200#A\n", + "v=125#V\n", + "n2=1000#rpm\n", + "ra=0.04#ohm\n", + "vb=2#V\n", + "\n", + "#calculations\n", + "E1=v+vb+(ia*ra)\n", + "E2=E1*n2/n1*0.8\n", + "\n", + "#results\n", + "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(a), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "rs=100.0#ohm\n", + "ra=1.0#ohm\n", + "z=378\n", + "phi=0.02#Wb\n", + "rl=10.0#ohm\n", + "n=1000#rpm\n", + "a=2\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "V=(100.0/111.0)*E\n", + "il=V/rl\n", + "P=il*V\n", + "\n", + "#result\n", + "print \"Power absorbed by the load is= \",P,\" W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power absorbed by the load is= 5154.12710007 W\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(b), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "z=300\n", + "phi=0.1#Wb\n", + "n=1000#rpm\n", + "ra=0.2#rpm\n", + "rf=125#ohm\n", + "il=90#A\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "ifield=E/rf\n", + "ia=ifield+il\n", + "V=E-(ia*ra)\n", + "\n", + "#result\n", + "print \"Terminal voltage= \",V,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal voltage= 481.2 V\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(a), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "n=1200#rpm\n", + "e=250.0#V\n", + "d=350.0#mm\n", + "air_gap=3.0#mm\n", + "al=260.0#mm\n", + "fringing=0.8\n", + "coils=96\n", + "t=3\n", + "\n", + "#calculations\n", + "z=t*coils*2\n", + "a=p*2\n", + "phi=(e*60*a)/(n*z*p)\n", + "di=d+air_gap\n", + "pole_arc=(3.14*di*fringing)/6\n", + "B=phi/(pole_arc*0.000001*al)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi,\" Wb\"\n", + "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", + "print \"flux density= \",B,\" T\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.0434027777778 Wb\n", + "effective pole arc lenght= 0.147789333333 m\n", + "flux density= 1.12953862717 T\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(b), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=1200\n", + "e=250.0#v\n", + "n=500#rpm\n", + "b=35.0#cm\n", + "ratio=0.7\n", + "lpole=20.0#cm\n", + "\n", + "#calculations\n", + "pole_pitch=(b*3.14)/p\n", + "polearc=ratio*pole_pitch\n", + "pole_area=polearc*lpole\n", + "phi=(e*60*a)/(n*z*p)\n", + "mean_flux=phi/(pole_area*math.pow(10,-4))\n", + " \n", + "#result\n", + "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Mean flux density= 0.649941505265 Wb/m2\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(d), Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=100.0#V\n", + "ra=0.04#ohm\n", + "rseries=0.03#ohm\n", + "rs=60.0#ohm\n", + "\n", + "#calculations\n", + "va=v+(i*rseries)\n", + "ish=va/rs\n", + "ia=i+ish\n", + "e=va+(ia*ra)\n", + "\n", + "#long shunt\n", + "ishunt=v/rs\n", + "vd=ia*(ra+rseries)\n", + "e2=v+vd\n", + "\n", + "#result\n", + "print \"emf generated(short shunt)\",e,\" V\"\n", + "print \"emf generated(long shunt)\",e2,\" V\"\n", + "\n", + "\n", + "#result\n", + "print " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf generated(short shunt) 114.070666667 V\n", + "emf generated(long shunt) 114.123666667 V\n", + "\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.22, Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "w=20000.0#W\n", + "v=220.0#v\n", + "ra=0.04#ohm\n", + "rs=110.0#ohm\n", + "rseries=0.05#ohm\n", + "efficiency=.85\n", + "\n", + "#calculations\n", + "il=w/v\n", + "i_f=v/rs\n", + "ia=il+i_f\n", + "ip=w/efficiency#input power\n", + "total_loss=ip-w\n", + "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", + "ironloss=total_loss-copper_loss\n", + "omega=2*3.14*n/60\n", + "T=ip/omega\n", + "\n", + "#omega\n", + "print \"Copper loss= \",copper_loss,\" W\"\n", + "print \"Iron and friction loss= \",ironloss,\" W\"\n", + "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Copper loss= 1216.88892562 W\n", + "Iron and friction loss= 2312.52283909 W\n", + "Torque developed by the prime mover= 224.803297115 Nw-m\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.23, Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declartaion\n", + "power=10000.0#W\n", + "v=250.0#V\n", + "p=a=6\n", + "n=1000.0#rpm\n", + "z=534\n", + "cu_loss=0.64*1000#W\n", + "vbd=1.0#V\n", + "\n", + "#calculations\n", + "ia=power/v\n", + "ra=cu_loss/(ia*ia)\n", + "E=v+(ia*ra)+vbd\n", + "phi=(E*60*a)/(n*z*p)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi*1000,\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 30.0 mWb\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(a), Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=195#A\n", + "pd=250#V\n", + "ra=0.02#ohm\n", + "rsh=50#ohm\n", + "p=250#W\n", + "strayloss=950#W\n", + "#calculations\n", + "ish=pd/rsh\n", + "ia=i+ish\n", + "vda=ia*ra\n", + "E=pd+vda\n", + "cu_loss=(ia*ia*ra)+(pd*ish)\n", + "output_prime=(pd*i)+strayloss+cu_loss\n", + "power_a=output_prime-strayloss\n", + "neu_m=(power_a/output_prime)\n", + "neu_e=(pd*i)/((pd*i)+cu_loss)\n", + "neu_c=(pd*i)/output_prime\n", + "\n", + "#result\n", + "print \"a)e.m.f. generated= \",E,\" V\"\n", + "print \" b)Cu losses= \",cu_loss,\" W\"\n", + "print \" c)output of prime mover= \",output_prime,\" W\"\n", + "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", + "print \" electrical efficiency= \",neu_e*100,\" %\"\n", + "print \" commercial efficiency= \",neu_c*100,\" %\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)e.m.f. generated= 254.0 V\n", + " b)Cu losses= 2050.0 W\n", + " c)output of prime mover= 51750.0 W\n", + " d)mechanical efficiency= 98.1642512077 %\n", + " electrical efficiency= 95.9645669291 %\n", + " commercial efficiency= 94.2028985507 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(b), Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "output=v*il\n", + "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"Efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.25, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=196#A\n", + "v=220#V\n", + "stray_loss=720#W\n", + "rsh=55#ohm\n", + "e=0.88\n", + "\n", + "#calculations\n", + "output=v*i\n", + "inpute=output/e\n", + "total_loss=inpute-output\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "cu_loss=v*ish\n", + "constant_loss=cu_loss+stray_loss\n", + "culoss_a=total_loss-constant_loss\n", + "ra=culoss_a/(ia*ia)\n", + "I=math.sqrt(constant_loss/ra)\n", + "\n", + "#result\n", + "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load curent corresponding to maximum efficiency 122.283568103 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.26, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "p=22*1000#w\n", + "v=220#V\n", + "ra=0.05#ohm\n", + "rsh=110#ohm\n", + "rseries=0.06#ohm\n", + "efficiency=.88\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "I=p/v\n", + "ia=ish+I\n", + "vdseries=ia*rseries\n", + "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", + "total_loss=(p/efficiency)-p\n", + "strayloss=total_loss-cu_loss\n", + "T=(p/efficiency*60)/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"a)cu losses= \",cu_loss,\" W\"\n", + "print \"b)iron and friction loss= \",strayloss,\" W\"\n", + "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cu losses= 1584.44 W\n", + "b)iron and friction loss= 1415.56 W\n", + "c)Torque exerted by the prime mover= 238.853503185 N-m\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.27, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "i=20#A\n", + "r=10#ohm\n", + "ra=0.5#ohm\n", + "rsh=50#ohm\n", + "vdb=1#V(voltage drop per brush)\n", + "\n", + "#calculations\n", + "v=i*r\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "E=v+(ia*ra)+(2*vdb)\n", + "totalpower=E*ia\n", + "output=v*i\n", + "efficiency=output/totalpower\n", + "\n", + "#result\n", + "print \"induced e.m.f.= \",E,\" V\"\n", + "print \"efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced e.m.f.= 214.0 V\n", + "efficiency= 77.8816199377 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.28, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "i=100#A\n", + "ra=0.1#ohm\n", + "rseries=0.02#ohm\n", + "ri=0.025#ohm\n", + "rsh=100#ohm\n", + "ironloss=1000#W\n", + "frictionloss=500#W\n", + "\n", + "#calculations\n", + "output=v*i\n", + "totalra=ra+rseries+ri\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "copperloss=ia*ia*totalra\n", + "shculoss=ish*v\n", + "total_loss=copperloss+ironloss+frictionloss+shculoss\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "F.L. efficiency of the machine= 87.3089843128 %\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.31, Page Number:931" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=10.0*1000#W\n", + "v=240.0#V\n", + "ra=0.6#ohm\n", + "rsh=160.0#ohm\n", + "mechcoreloss=500.0#W\n", + "culoss=360.0#W\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "i=output/v\n", + "ia=ish+i\n", + "culossa=ia*ia*ra\n", + "totalloss=culoss+mechcoreloss+culossa\n", + "inputp=output+totalloss\n", + "efficiency=output/inputp\n", + "\n", + "#result\n", + "print \"Power required= \",inputp*0.001,\" kW\"\n", + "print \"efficinecy= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power required= 11.9780166667 kW\n", + "efficinecy= 83.486275552 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.32, Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=110*1000#W\n", + "v=220#V\n", + "ra=0.01#ohm\n", + "rse=0.002#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "il=p/v\n", + "ish=v/rsh\n", + "ia=il+ish\n", + "E=v+ia*(ra+rse)\n", + "\n", + "#result\n", + "print \"induced emf= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 226.024 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.33 Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "E=216.0#V\n", + "n=600.0#rpm\n", + "slots=144\n", + "con=6\n", + "n2=500.0#rpm\n", + "\n", + "#calculations\n", + "z=con*slots\n", + "a=p\n", + "phi=(E*60*a)/(n*z*p)\n", + "a=2\n", + "armatureE=(phi*z*n2*p)/(60*a)\n", + "\n", + "#result\n", + "print \"the armature emf= \",armatureE,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the armature emf= 360.0 V\n" + ] + } + ], + "prompt_number": 34 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_2.ipynb new file mode 100644 index 00000000..1af9bb80 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_2.ipynb @@ -0,0 +1,1600 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 26: D.C. Generators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.3, Page Number:912" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=450#A\n", + "v=230#v\n", + "rs=50#ohm\n", + "ra=.03#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "va=ia*ra\n", + "E=v+va\n", + "\n", + "#result\n", + "print \"e.m.f. generated in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f. generated in the armature= 243.62 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.4, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=500#v\n", + "rs=250#ohm\n", + "ra=.05#ohm\n", + "rseries=0.03#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "vs=ia*rseries\n", + "va=ia*ra\n", + "vb=ish*b\n", + "E=v+va+vs+vb\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 506.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.5, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=30#A\n", + "v=220#v\n", + "rs=200#ohm\n", + "ra=.05#ohm\n", + "rseries=0.30#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "vs=i*rseries\n", + "vshunt=v+vs\n", + "ish=vshunt/v\n", + "ia=i+ish\n", + "vb=b*2\n", + "E=v+vs+vb+(ia*ra)\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 232.552045455 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.6, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": true, + "input": [ + "#variable declaration\n", + "v=230.0#v\n", + "i=150.0#A\n", + "rs=92.0#ohm\n", + "rseries=0.015#ohm\n", + "rd=0.03#ohm(divertor)\n", + "ra=0.032#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "sdr=(rd*rseries)/(rd+rseries)\n", + "tr=ra+sdr\n", + "vd=ia*tr\n", + "Eg=v+vd\n", + "tp=Eg*ia\n", + "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", + "\n", + "#resuts\n", + "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", + "print \"ii)Total power generated= \",tp,\" W\"\n", + "print \"iii)Distribution of the total power:\"\n", + "print \" power lost in armature= \", ia*ia*ra\n", + "print \"power lost in series field and divider= \", ia*ia*sdr\n", + "print \"power dissipated in shunt winding= \", v*ish\n", + "print \"power delivered to load= \", v*i\n", + "print \" ------------\"\n", + "print \"Total= \", pl" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) Induced e.m.f.= 236.405 V\n", + "ii)Total power generated= 36051.7625 W\n", + "iii)Distribution of the total power:\n", + " power lost in armature= 744.2\n", + "power lost in series field and divider= 232.5625\n", + "power dissipated in shunt winding= 575.0\n", + "power delivered to load= 34500.0\n", + " ------------\n", + "Total= 36051.7625\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.7, Page Number:914" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=300000.0#w\n", + "v=600.0#v\n", + "sr=75.0#ohm\n", + "abr=0.03#ohm\n", + "cr=0.011#ohm\n", + "rseries=0.012#ohm\n", + "dr=0.036#ohm\n", + "\n", + "#calculatons\n", + "io=p/v#output current\n", + "ish=v/sr\n", + "ia=io+ish\n", + "sdr=(rseries*dr)/(rseries+dr)\n", + "tr=abr+cr+sdr\n", + "vd=ia*tr\n", + "va=v+vd\n", + "pg=va*ia\n", + "W=pg/1000\n", + "\n", + "#result\n", + "print \"Voltage generatedby the armature= \",va,\" V\"\n", + "print \"Power generated by the armature= \",W, \"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generatedby the armature= 625.4 V\n", + "Power generated by the armature= 317.7032 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.8, Page Number:915" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "phi=7*math.pow(10,-3)\n", + "z=51*20\n", + "a=p=4\n", + "n=1500#r.p.m\n", + "\n", + "#calculations\n", + "Eg=(phi*z*n*p)/(a*60)\n", + "\n", + "#result\n", + "print \"Voltage generated= \",Eg,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generated= 178.5 V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.9, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=8\n", + "phi=0.05#Wb\n", + "n=1200#rpm\n", + "N=500#armature conductor\n", + "\n", + "#calculations\n", + "E=phi*(n/60)*(p/a)*N\n", + "\n", + "#result\n", + "print \"e.m.f generated= \",E,\" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f generated= 500.0 V\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.10, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=127#v\n", + "vt=120#v(terminal voltage)\n", + "r=15#ohms\n", + "i1=8.47#A\n", + "ra=0.02#ohms\n", + "fi=8#A\n", + "\n", + "#calculations\n", + "Eg=v+(i1*ra)\n", + "ia=(Eg-vt)/ra\n", + "il=ia-fi\n", + "\n", + "#result\n", + "print \"Load current \",il,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current 350.47 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(a), Page Number:917" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=778\n", + "n=500\n", + "ra=0.24\n", + "rl=12.5\n", + "r=250\n", + "v=250\n", + "a=2\n", + "#calculations\n", + "il=v/rl\n", + "si=v/r\n", + "ai=il+si\n", + "emf=v+(ai*ra)\n", + "phi=(emf*60*a)/(p*z*n)\n", + "\n", + "#result\n", + "print \"armature current= \",ai,\" A\"\n", + "print \"induced e.m.f.= \",emf,\" V\"\n", + "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 21.0 A\n", + "induced e.m.f.= 255.04 V\n", + "flux per pole= 9.83 mWb\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(b), Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "P=5000.0#w\n", + "P2=2500.0#W\n", + "v=250.0#v\n", + "ra=0.2#ohm\n", + "r=250.0#ohm\n", + "z=120\n", + "N=1000#rpm\n", + "\n", + "#calculations\n", + "gc=P/v\n", + "li=P2/v\n", + "ti=gc+li\n", + "fc=1\n", + "ai=ti+fc\n", + "ard=ai*ra\n", + "emf=v+ard+2\n", + "phi=(emf*60*a)/(p*z*N)\n", + "ac_perparralelpath=ai/p\n", + "\n", + "#result\n", + "print \"Flux per pole= \",phi*1000,\" mWb\"\n", + "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Flux per pole= 129.1 mWb\n", + "Armature current per parallel path= 7.75 A\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.12, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=125.0#V\n", + "n1=1000#rpm\n", + "n2=800#rpm\n", + "ra=0.04#ohm\n", + "bd=2.0#V(brush drop)\n", + "\n", + "#calculations\n", + "R=v/i\n", + "E1=v+(i*ra)+bd\n", + "E2=(E1*n2)/n1\n", + "il=(E2-bd)/0.675\n", + "\n", + "#result\n", + "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current when speed drops to 800 r.p.m.= 157.04 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.13, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "n=900 #rpm\n", + "V=220#V\n", + "E=240#V\n", + "ra=0.2#ohm\n", + "phi=10#mWb\n", + "N=8\n", + "\n", + "#calculations\n", + "ia=(E-V)/ra\n", + "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", + "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", + "number_of_coils=Z/16\n", + "\n", + "#result\n", + "print \"armature current= \",ia,\" A\"\n", + "print \"number of coils= \",number_of_coils" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 100.0 A\n", + "number of coils= 500.0\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.14, Page Number:919" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=120.0#V\n", + "ra=0.06#ohm\n", + "rs=25#ohm\n", + "rsw=0.04#ohm(series winding)\n", + "il=100.0#A\n", + "#i)Long shunt\n", + "ish=V/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", + "\n", + "#i)Short shunt\n", + "vds=il*rsw\n", + "vs=V+vds\n", + "ish=vs/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", + "Armature current when the machine is connected to long shunt= 104.8 A\n", + "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", + "Armature current when the machine is connected to short shunt= 104.96 A\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.15, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=25000.0#W\n", + "V=500.0#V\n", + "ra=0.03#ohm\n", + "rs=200.0#ohm\n", + "rseries=0.04#ohm\n", + "vb=1.0#V\n", + "n=1200#rpm\n", + "phi=0.02#Wb\n", + "\n", + "#calculations\n", + "i=p/V\n", + "ish=V/rs\n", + "ia=i+ish\n", + "p=4\n", + "vds=ia*rseries\n", + "vda=ia*ra\n", + "vdb=vb*2\n", + "E=V+vds+vda+vdb\n", + "Z=(E*60*4)/(phi*n*p)\n", + "\n", + "#result\n", + "print \"The e.m.f. generated= \",E,\" V\"\n", + "print \"The number of conductors=\",Z" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The e.m.f. generated= 505.675 V\n", + "The number of conductors= 1264.1875\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.16, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=750#rpm\n", + "e=240.0#V\n", + "z=792\n", + "phi=0.0145#Wb\n", + "\n", + "#calculations\n", + "phi_working=(e*60*2)/(n*z*p)\n", + "lambda_=phi/phi_working\n", + "\n", + "#results\n", + "print \"Leakage coefficient= \",round(lambda_,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Leakage coefficient= 1.2\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.17, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rt=0.004#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "rtotal=t*rt\n", + "r_eachpath=rtotal/p\n", + "ra=r_eachpath/a\n", + "vda=ia*ra\n", + "V=E-vda\n", + "\n", + "#result\n", + "print \"Terminal Voltage= \",V, \" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal Voltage= 459.25 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.18, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rturn=0.004#ohm\n", + "rs=100.0#ohm\n", + "rsc=0.02#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "ra=0.055#ohm\n", + "ra=ra+rsc\n", + "va=ia*ra\n", + "v=E-va\n", + "ish=v/rs\n", + "i=ia-ish\n", + "output=v*i\n", + "\n", + "#result\n", + "print \"Output= \",round(output/1000,3),\" kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 20.813 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.19, Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=1200#rpm\n", + "ia=200#A\n", + "v=125#V\n", + "n2=1000#rpm\n", + "ra=0.04#ohm\n", + "vb=2#V\n", + "\n", + "#calculations\n", + "E1=v+vb+(ia*ra)\n", + "E2=E1*n2/n1*0.8\n", + "\n", + "#results\n", + "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(a), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "rs=100.0#ohm\n", + "ra=1.0#ohm\n", + "z=378\n", + "phi=0.02#Wb\n", + "rl=10.0#ohm\n", + "n=1000#rpm\n", + "a=2\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "V=(100.0/111.0)*E\n", + "il=V/rl\n", + "P=il*V\n", + "\n", + "#result\n", + "print \"Power absorbed by the load is= \",P,\" W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power absorbed by the load is= 5154.12710007 W\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(b), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "z=300\n", + "phi=0.1#Wb\n", + "n=1000#rpm\n", + "ra=0.2#rpm\n", + "rf=125#ohm\n", + "il=90#A\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "ifield=E/rf\n", + "ia=ifield+il\n", + "V=E-(ia*ra)\n", + "\n", + "#result\n", + "print \"Terminal voltage= \",V,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal voltage= 481.2 V\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(a), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "n=1200#rpm\n", + "e=250.0#V\n", + "d=350.0#mm\n", + "air_gap=3.0#mm\n", + "al=260.0#mm\n", + "fringing=0.8\n", + "coils=96\n", + "t=3\n", + "\n", + "#calculations\n", + "z=t*coils*2\n", + "a=p*2\n", + "phi=(e*60*a)/(n*z*p)\n", + "di=d+air_gap\n", + "pole_arc=(3.14*di*fringing)/6\n", + "B=phi/(pole_arc*0.000001*al)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi,\" Wb\"\n", + "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", + "print \"flux density= \",B,\" T\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.0434027777778 Wb\n", + "effective pole arc lenght= 0.147789333333 m\n", + "flux density= 1.12953862717 T\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(b), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=1200\n", + "e=250.0#v\n", + "n=500#rpm\n", + "b=35.0#cm\n", + "ratio=0.7\n", + "lpole=20.0#cm\n", + "\n", + "#calculations\n", + "pole_pitch=(b*3.14)/p\n", + "polearc=ratio*pole_pitch\n", + "pole_area=polearc*lpole\n", + "phi=(e*60*a)/(n*z*p)\n", + "mean_flux=phi/(pole_area*math.pow(10,-4))\n", + " \n", + "#result\n", + "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Mean flux density= 0.649941505265 Wb/m2\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(d), Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=100.0#V\n", + "ra=0.04#ohm\n", + "rseries=0.03#ohm\n", + "rs=60.0#ohm\n", + "\n", + "#calculations\n", + "va=v+(i*rseries)\n", + "ish=va/rs\n", + "ia=i+ish\n", + "e=va+(ia*ra)\n", + "\n", + "#long shunt\n", + "ishunt=v/rs\n", + "vd=ia*(ra+rseries)\n", + "e2=v+vd\n", + "\n", + "#result\n", + "print \"emf generated(short shunt)\",e,\" V\"\n", + "print \"emf generated(long shunt)\",e2,\" V\"\n", + "\n", + "\n", + "#result\n", + "print " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf generated(short shunt) 114.070666667 V\n", + "emf generated(long shunt) 114.123666667 V\n", + "\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.22, Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "w=20000.0#W\n", + "v=220.0#v\n", + "ra=0.04#ohm\n", + "rs=110.0#ohm\n", + "rseries=0.05#ohm\n", + "efficiency=.85\n", + "\n", + "#calculations\n", + "il=w/v\n", + "i_f=v/rs\n", + "ia=il+i_f\n", + "ip=w/efficiency#input power\n", + "total_loss=ip-w\n", + "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", + "ironloss=total_loss-copper_loss\n", + "omega=2*3.14*n/60\n", + "T=ip/omega\n", + "\n", + "#omega\n", + "print \"Copper loss= \",copper_loss,\" W\"\n", + "print \"Iron and friction loss= \",ironloss,\" W\"\n", + "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Copper loss= 1216.88892562 W\n", + "Iron and friction loss= 2312.52283909 W\n", + "Torque developed by the prime mover= 224.803297115 Nw-m\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.23, Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declartaion\n", + "power=10000.0#W\n", + "v=250.0#V\n", + "p=a=6\n", + "n=1000.0#rpm\n", + "z=534\n", + "cu_loss=0.64*1000#W\n", + "vbd=1.0#V\n", + "\n", + "#calculations\n", + "ia=power/v\n", + "ra=cu_loss/(ia*ia)\n", + "E=v+(ia*ra)+vbd\n", + "phi=(E*60*a)/(n*z*p)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi*1000,\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 30.0 mWb\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(a), Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=195#A\n", + "pd=250#V\n", + "ra=0.02#ohm\n", + "rsh=50#ohm\n", + "p=250#W\n", + "strayloss=950#W\n", + "#calculations\n", + "ish=pd/rsh\n", + "ia=i+ish\n", + "vda=ia*ra\n", + "E=pd+vda\n", + "cu_loss=(ia*ia*ra)+(pd*ish)\n", + "output_prime=(pd*i)+strayloss+cu_loss\n", + "power_a=output_prime-strayloss\n", + "neu_m=(power_a/output_prime)\n", + "neu_e=(pd*i)/((pd*i)+cu_loss)\n", + "neu_c=(pd*i)/output_prime\n", + "\n", + "#result\n", + "print \"a)e.m.f. generated= \",E,\" V\"\n", + "print \" b)Cu losses= \",cu_loss,\" W\"\n", + "print \" c)output of prime mover= \",output_prime,\" W\"\n", + "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", + "print \" electrical efficiency= \",neu_e*100,\" %\"\n", + "print \" commercial efficiency= \",neu_c*100,\" %\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)e.m.f. generated= 254.0 V\n", + " b)Cu losses= 2050.0 W\n", + " c)output of prime mover= 51750.0 W\n", + " d)mechanical efficiency= 98.1642512077 %\n", + " electrical efficiency= 95.9645669291 %\n", + " commercial efficiency= 94.2028985507 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(b), Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "output=v*il\n", + "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"Efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.25, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=196#A\n", + "v=220#V\n", + "stray_loss=720#W\n", + "rsh=55#ohm\n", + "e=0.88\n", + "\n", + "#calculations\n", + "output=v*i\n", + "inpute=output/e\n", + "total_loss=inpute-output\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "cu_loss=v*ish\n", + "constant_loss=cu_loss+stray_loss\n", + "culoss_a=total_loss-constant_loss\n", + "ra=culoss_a/(ia*ia)\n", + "I=math.sqrt(constant_loss/ra)\n", + "\n", + "#result\n", + "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load curent corresponding to maximum efficiency 122.283568103 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.26, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "p=22*1000#w\n", + "v=220#V\n", + "ra=0.05#ohm\n", + "rsh=110#ohm\n", + "rseries=0.06#ohm\n", + "efficiency=.88\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "I=p/v\n", + "ia=ish+I\n", + "vdseries=ia*rseries\n", + "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", + "total_loss=(p/efficiency)-p\n", + "strayloss=total_loss-cu_loss\n", + "T=(p/efficiency*60)/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"a)cu losses= \",cu_loss,\" W\"\n", + "print \"b)iron and friction loss= \",strayloss,\" W\"\n", + "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cu losses= 1584.44 W\n", + "b)iron and friction loss= 1415.56 W\n", + "c)Torque exerted by the prime mover= 238.853503185 N-m\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.27, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "i=20#A\n", + "r=10#ohm\n", + "ra=0.5#ohm\n", + "rsh=50#ohm\n", + "vdb=1#V(voltage drop per brush)\n", + "\n", + "#calculations\n", + "v=i*r\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "E=v+(ia*ra)+(2*vdb)\n", + "totalpower=E*ia\n", + "output=v*i\n", + "efficiency=output/totalpower\n", + "\n", + "#result\n", + "print \"induced e.m.f.= \",E,\" V\"\n", + "print \"efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced e.m.f.= 214.0 V\n", + "efficiency= 77.8816199377 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.28, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "i=100#A\n", + "ra=0.1#ohm\n", + "rseries=0.02#ohm\n", + "ri=0.025#ohm\n", + "rsh=100#ohm\n", + "ironloss=1000#W\n", + "frictionloss=500#W\n", + "\n", + "#calculations\n", + "output=v*i\n", + "totalra=ra+rseries+ri\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "copperloss=ia*ia*totalra\n", + "shculoss=ish*v\n", + "total_loss=copperloss+ironloss+frictionloss+shculoss\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "F.L. efficiency of the machine= 87.3089843128 %\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.31, Page Number:931" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=10.0*1000#W\n", + "v=240.0#V\n", + "ra=0.6#ohm\n", + "rsh=160.0#ohm\n", + "mechcoreloss=500.0#W\n", + "culoss=360.0#W\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "i=output/v\n", + "ia=ish+i\n", + "culossa=ia*ia*ra\n", + "totalloss=culoss+mechcoreloss+culossa\n", + "inputp=output+totalloss\n", + "efficiency=output/inputp\n", + "\n", + "#result\n", + "print \"Power required= \",inputp*0.001,\" kW\"\n", + "print \"efficinecy= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power required= 11.9780166667 kW\n", + "efficinecy= 83.486275552 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.32, Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=110*1000#W\n", + "v=220#V\n", + "ra=0.01#ohm\n", + "rse=0.002#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "il=p/v\n", + "ish=v/rsh\n", + "ia=il+ish\n", + "E=v+ia*(ra+rse)\n", + "\n", + "#result\n", + "print \"induced emf= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 226.024 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.33 Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "E=216.0#V\n", + "n=600.0#rpm\n", + "slots=144\n", + "con=6\n", + "n2=500.0#rpm\n", + "\n", + "#calculations\n", + "z=con*slots\n", + "a=p\n", + "phi=(E*60*a)/(n*z*p)\n", + "a=2\n", + "armatureE=(phi*z*n2*p)/(60*a)\n", + "\n", + "#result\n", + "print \"the armature emf= \",armatureE,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the armature emf= 360.0 V\n" + ] + } + ], + "prompt_number": 34 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_3.ipynb new file mode 100644 index 00000000..1af9bb80 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter26_3.ipynb @@ -0,0 +1,1600 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fbc29937443ef7eae8e50df5118b16ddcc8ed6efb4b30db1cb412240bf7eac02" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 26: D.C. Generators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.3, Page Number:912" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=450#A\n", + "v=230#v\n", + "rs=50#ohm\n", + "ra=.03#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "va=ia*ra\n", + "E=v+va\n", + "\n", + "#result\n", + "print \"e.m.f. generated in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f. generated in the armature= 243.62 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.4, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=500#v\n", + "rs=250#ohm\n", + "ra=.05#ohm\n", + "rseries=0.03#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "vs=ia*rseries\n", + "va=ia*ra\n", + "vb=ish*b\n", + "E=v+va+vs+vb\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 506.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.5, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=30#A\n", + "v=220#v\n", + "rs=200#ohm\n", + "ra=.05#ohm\n", + "rseries=0.30#ohm\n", + "b=1#V\n", + "\n", + "#calculations\n", + "vs=i*rseries\n", + "vshunt=v+vs\n", + "ish=vshunt/v\n", + "ia=i+ish\n", + "vb=b*2\n", + "E=v+vs+vb+(ia*ra)\n", + "\n", + "#result\n", + "print \"generated voltage in the armature= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "generated voltage in the armature= 232.552045455 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.6, Page Number:913" + ] + }, + { + "cell_type": "code", + "collapsed": true, + "input": [ + "#variable declaration\n", + "v=230.0#v\n", + "i=150.0#A\n", + "rs=92.0#ohm\n", + "rseries=0.015#ohm\n", + "rd=0.03#ohm(divertor)\n", + "ra=0.032#ohm\n", + "\n", + "#calculations\n", + "ish=v/rs\n", + "ia=i+ish\n", + "sdr=(rd*rseries)/(rd+rseries)\n", + "tr=ra+sdr\n", + "vd=ia*tr\n", + "Eg=v+vd\n", + "tp=Eg*ia\n", + "pl=(ia*ia*ra)+(ia*ia*sdr)+(v*ish)+(v*i)\n", + "\n", + "#resuts\n", + "print \"i) Induced e.m.f.= \",Eg,\" V\"\n", + "print \"ii)Total power generated= \",tp,\" W\"\n", + "print \"iii)Distribution of the total power:\"\n", + "print \" power lost in armature= \", ia*ia*ra\n", + "print \"power lost in series field and divider= \", ia*ia*sdr\n", + "print \"power dissipated in shunt winding= \", v*ish\n", + "print \"power delivered to load= \", v*i\n", + "print \" ------------\"\n", + "print \"Total= \", pl" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) Induced e.m.f.= 236.405 V\n", + "ii)Total power generated= 36051.7625 W\n", + "iii)Distribution of the total power:\n", + " power lost in armature= 744.2\n", + "power lost in series field and divider= 232.5625\n", + "power dissipated in shunt winding= 575.0\n", + "power delivered to load= 34500.0\n", + " ------------\n", + "Total= 36051.7625\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.7, Page Number:914" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=300000.0#w\n", + "v=600.0#v\n", + "sr=75.0#ohm\n", + "abr=0.03#ohm\n", + "cr=0.011#ohm\n", + "rseries=0.012#ohm\n", + "dr=0.036#ohm\n", + "\n", + "#calculatons\n", + "io=p/v#output current\n", + "ish=v/sr\n", + "ia=io+ish\n", + "sdr=(rseries*dr)/(rseries+dr)\n", + "tr=abr+cr+sdr\n", + "vd=ia*tr\n", + "va=v+vd\n", + "pg=va*ia\n", + "W=pg/1000\n", + "\n", + "#result\n", + "print \"Voltage generatedby the armature= \",va,\" V\"\n", + "print \"Power generated by the armature= \",W, \"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generatedby the armature= 625.4 V\n", + "Power generated by the armature= 317.7032 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.8, Page Number:915" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "phi=7*math.pow(10,-3)\n", + "z=51*20\n", + "a=p=4\n", + "n=1500#r.p.m\n", + "\n", + "#calculations\n", + "Eg=(phi*z*n*p)/(a*60)\n", + "\n", + "#result\n", + "print \"Voltage generated= \",Eg,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage generated= 178.5 V\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.9, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=8\n", + "phi=0.05#Wb\n", + "n=1200#rpm\n", + "N=500#armature conductor\n", + "\n", + "#calculations\n", + "E=phi*(n/60)*(p/a)*N\n", + "\n", + "#result\n", + "print \"e.m.f generated= \",E,\" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f generated= 500.0 V\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.10, Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=127#v\n", + "vt=120#v(terminal voltage)\n", + "r=15#ohms\n", + "i1=8.47#A\n", + "ra=0.02#ohms\n", + "fi=8#A\n", + "\n", + "#calculations\n", + "Eg=v+(i1*ra)\n", + "ia=(Eg-vt)/ra\n", + "il=ia-fi\n", + "\n", + "#result\n", + "print \"Load current \",il,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current 350.47 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(a), Page Number:917" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=778\n", + "n=500\n", + "ra=0.24\n", + "rl=12.5\n", + "r=250\n", + "v=250\n", + "a=2\n", + "#calculations\n", + "il=v/rl\n", + "si=v/r\n", + "ai=il+si\n", + "emf=v+(ai*ra)\n", + "phi=(emf*60*a)/(p*z*n)\n", + "\n", + "#result\n", + "print \"armature current= \",ai,\" A\"\n", + "print \"induced e.m.f.= \",emf,\" V\"\n", + "print \"flux per pole= \",round(phi*1000,2),\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 21.0 A\n", + "induced e.m.f.= 255.04 V\n", + "flux per pole= 9.83 mWb\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.11(b), Page Number:916" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "P=5000.0#w\n", + "P2=2500.0#W\n", + "v=250.0#v\n", + "ra=0.2#ohm\n", + "r=250.0#ohm\n", + "z=120\n", + "N=1000#rpm\n", + "\n", + "#calculations\n", + "gc=P/v\n", + "li=P2/v\n", + "ti=gc+li\n", + "fc=1\n", + "ai=ti+fc\n", + "ard=ai*ra\n", + "emf=v+ard+2\n", + "phi=(emf*60*a)/(p*z*N)\n", + "ac_perparralelpath=ai/p\n", + "\n", + "#result\n", + "print \"Flux per pole= \",phi*1000,\" mWb\"\n", + "print \"Armature current per parallel path= \",ac_perparralelpath,\" A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Flux per pole= 129.1 mWb\n", + "Armature current per parallel path= 7.75 A\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.12, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=125.0#V\n", + "n1=1000#rpm\n", + "n2=800#rpm\n", + "ra=0.04#ohm\n", + "bd=2.0#V(brush drop)\n", + "\n", + "#calculations\n", + "R=v/i\n", + "E1=v+(i*ra)+bd\n", + "E2=(E1*n2)/n1\n", + "il=(E2-bd)/0.675\n", + "\n", + "#result\n", + "print \"Load current when speed drops to 800 r.p.m.= \",round(il,2),\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load current when speed drops to 800 r.p.m.= 157.04 A\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.13, Page Number:918" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "n=900 #rpm\n", + "V=220#V\n", + "E=240#V\n", + "ra=0.2#ohm\n", + "phi=10#mWb\n", + "N=8\n", + "\n", + "#calculations\n", + "ia=(E-V)/ra\n", + "Z=(E*600*2)/(phi*math.pow(10,-3)*n*p)\n", + "#since there ae 8 turns in a coil,it means there are 16 active conductor\n", + "number_of_coils=Z/16\n", + "\n", + "#result\n", + "print \"armature current= \",ia,\" A\"\n", + "print \"number of coils= \",number_of_coils" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 100.0 A\n", + "number of coils= 500.0\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.14, Page Number:919" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=120.0#V\n", + "ra=0.06#ohm\n", + "rs=25#ohm\n", + "rsw=0.04#ohm(series winding)\n", + "il=100.0#A\n", + "#i)Long shunt\n", + "ish=V/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to long shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to long shunt=\",ia,\" A\"\n", + "\n", + "#i)Short shunt\n", + "vds=il*rsw\n", + "vs=V+vds\n", + "ish=vs/rs\n", + "ia=il+ish\n", + "vd=ia*rsw\n", + "vda=ia*ra\n", + "E=V+vd+vda\n", + "\n", + "print \"Induced e.m.f. when the machine is connected to short shunt= \",E,\" V\"\n", + "print \"Armature current when the machine is connected to short shunt=\",ia,\" A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Induced e.m.f. when the machine is connected to long shunt= 130.48 V\n", + "Armature current when the machine is connected to long shunt= 104.8 A\n", + "Induced e.m.f. when the machine is connected to short shunt= 130.496 V\n", + "Armature current when the machine is connected to short shunt= 104.96 A\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.15, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=25000.0#W\n", + "V=500.0#V\n", + "ra=0.03#ohm\n", + "rs=200.0#ohm\n", + "rseries=0.04#ohm\n", + "vb=1.0#V\n", + "n=1200#rpm\n", + "phi=0.02#Wb\n", + "\n", + "#calculations\n", + "i=p/V\n", + "ish=V/rs\n", + "ia=i+ish\n", + "p=4\n", + "vds=ia*rseries\n", + "vda=ia*ra\n", + "vdb=vb*2\n", + "E=V+vds+vda+vdb\n", + "Z=(E*60*4)/(phi*n*p)\n", + "\n", + "#result\n", + "print \"The e.m.f. generated= \",E,\" V\"\n", + "print \"The number of conductors=\",Z" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The e.m.f. generated= 505.675 V\n", + "The number of conductors= 1264.1875\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.16, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=750#rpm\n", + "e=240.0#V\n", + "z=792\n", + "phi=0.0145#Wb\n", + "\n", + "#calculations\n", + "phi_working=(e*60*2)/(n*z*p)\n", + "lambda_=phi/phi_working\n", + "\n", + "#results\n", + "print \"Leakage coefficient= \",round(lambda_,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Leakage coefficient= 1.2\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.17, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rt=0.004#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "rtotal=t*rt\n", + "r_eachpath=rtotal/p\n", + "ra=r_eachpath/a\n", + "vda=ia*ra\n", + "V=E-vda\n", + "\n", + "#result\n", + "print \"Terminal Voltage= \",V, \" V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal Voltage= 459.25 V\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.18, Page Number:920" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "phi=0.07#Wb\n", + "t=220\n", + "rturn=0.004#ohm\n", + "rs=100.0#ohm\n", + "rsc=0.02#ohm\n", + "n=900#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "z=2*t\n", + "E=(phi*z*n*p)/(60*a)\n", + "ra=0.055#ohm\n", + "ra=ra+rsc\n", + "va=ia*ra\n", + "v=E-va\n", + "ish=v/rs\n", + "i=ia-ish\n", + "output=v*i\n", + "\n", + "#result\n", + "print \"Output= \",round(output/1000,3),\" kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 20.813 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.19, Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=1200#rpm\n", + "ia=200#A\n", + "v=125#V\n", + "n2=1000#rpm\n", + "ra=0.04#ohm\n", + "vb=2#V\n", + "\n", + "#calculations\n", + "E1=v+vb+(ia*ra)\n", + "E2=E1*n2/n1*0.8\n", + "\n", + "#results\n", + "print \"Generated e.m.f. when field current is reduced to 80%=\",E2,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Generated e.m.f. when field current is reduced to 80%= 90.0 V\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(a), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "rs=100.0#ohm\n", + "ra=1.0#ohm\n", + "z=378\n", + "phi=0.02#Wb\n", + "rl=10.0#ohm\n", + "n=1000#rpm\n", + "a=2\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "V=(100.0/111.0)*E\n", + "il=V/rl\n", + "P=il*V\n", + "\n", + "#result\n", + "print \"Power absorbed by the load is= \",P,\" W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power absorbed by the load is= 5154.12710007 W\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.20(b), Page Number:921" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "z=300\n", + "phi=0.1#Wb\n", + "n=1000#rpm\n", + "ra=0.2#rpm\n", + "rf=125#ohm\n", + "il=90#A\n", + "\n", + "#calculations\n", + "E=(phi*z*n*p)/(60*a)\n", + "ifield=E/rf\n", + "ia=ifield+il\n", + "V=E-(ia*ra)\n", + "\n", + "#result\n", + "print \"Terminal voltage= \",V,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Terminal voltage= 481.2 V\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(a), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "n=1200#rpm\n", + "e=250.0#V\n", + "d=350.0#mm\n", + "air_gap=3.0#mm\n", + "al=260.0#mm\n", + "fringing=0.8\n", + "coils=96\n", + "t=3\n", + "\n", + "#calculations\n", + "z=t*coils*2\n", + "a=p*2\n", + "phi=(e*60*a)/(n*z*p)\n", + "di=d+air_gap\n", + "pole_arc=(3.14*di*fringing)/6\n", + "B=phi/(pole_arc*0.000001*al)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi,\" Wb\"\n", + "print \"effective pole arc lenght= \",pole_arc*0.001,\" m\"\n", + "print \"flux density= \",B,\" T\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.0434027777778 Wb\n", + "effective pole arc lenght= 0.147789333333 m\n", + "flux density= 1.12953862717 T\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(b), Page Number:922" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=1200\n", + "e=250.0#v\n", + "n=500#rpm\n", + "b=35.0#cm\n", + "ratio=0.7\n", + "lpole=20.0#cm\n", + "\n", + "#calculations\n", + "pole_pitch=(b*3.14)/p\n", + "polearc=ratio*pole_pitch\n", + "pole_area=polearc*lpole\n", + "phi=(e*60*a)/(n*z*p)\n", + "mean_flux=phi/(pole_area*math.pow(10,-4))\n", + " \n", + "#result\n", + "print \"Mean flux density= \",mean_flux,\" Wb/m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Mean flux density= 0.649941505265 Wb/m2\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.21(d), Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=100.0#V\n", + "ra=0.04#ohm\n", + "rseries=0.03#ohm\n", + "rs=60.0#ohm\n", + "\n", + "#calculations\n", + "va=v+(i*rseries)\n", + "ish=va/rs\n", + "ia=i+ish\n", + "e=va+(ia*ra)\n", + "\n", + "#long shunt\n", + "ishunt=v/rs\n", + "vd=ia*(ra+rseries)\n", + "e2=v+vd\n", + "\n", + "#result\n", + "print \"emf generated(short shunt)\",e,\" V\"\n", + "print \"emf generated(long shunt)\",e2,\" V\"\n", + "\n", + "\n", + "#result\n", + "print " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf generated(short shunt) 114.070666667 V\n", + "emf generated(long shunt) 114.123666667 V\n", + "\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.22, Page Number:923" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "w=20000.0#W\n", + "v=220.0#v\n", + "ra=0.04#ohm\n", + "rs=110.0#ohm\n", + "rseries=0.05#ohm\n", + "efficiency=.85\n", + "\n", + "#calculations\n", + "il=w/v\n", + "i_f=v/rs\n", + "ia=il+i_f\n", + "ip=w/efficiency#input power\n", + "total_loss=ip-w\n", + "copper_loss=(ia*ia*(ra+rseries))+(i_f*i_f*rs)\n", + "ironloss=total_loss-copper_loss\n", + "omega=2*3.14*n/60\n", + "T=ip/omega\n", + "\n", + "#omega\n", + "print \"Copper loss= \",copper_loss,\" W\"\n", + "print \"Iron and friction loss= \",ironloss,\" W\"\n", + "print \"Torque developed by the prime mover= \",T,\"Nw-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Copper loss= 1216.88892562 W\n", + "Iron and friction loss= 2312.52283909 W\n", + "Torque developed by the prime mover= 224.803297115 Nw-m\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.23, Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declartaion\n", + "power=10000.0#W\n", + "v=250.0#V\n", + "p=a=6\n", + "n=1000.0#rpm\n", + "z=534\n", + "cu_loss=0.64*1000#W\n", + "vbd=1.0#V\n", + "\n", + "#calculations\n", + "ia=power/v\n", + "ra=cu_loss/(ia*ia)\n", + "E=v+(ia*ra)+vbd\n", + "phi=(E*60*a)/(n*z*p)\n", + "\n", + "#result\n", + "print \"flux per pole= \",phi*1000,\" mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 30.0 mWb\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(a), Page Number:928" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=195#A\n", + "pd=250#V\n", + "ra=0.02#ohm\n", + "rsh=50#ohm\n", + "p=250#W\n", + "strayloss=950#W\n", + "#calculations\n", + "ish=pd/rsh\n", + "ia=i+ish\n", + "vda=ia*ra\n", + "E=pd+vda\n", + "cu_loss=(ia*ia*ra)+(pd*ish)\n", + "output_prime=(pd*i)+strayloss+cu_loss\n", + "power_a=output_prime-strayloss\n", + "neu_m=(power_a/output_prime)\n", + "neu_e=(pd*i)/((pd*i)+cu_loss)\n", + "neu_c=(pd*i)/output_prime\n", + "\n", + "#result\n", + "print \"a)e.m.f. generated= \",E,\" V\"\n", + "print \" b)Cu losses= \",cu_loss,\" W\"\n", + "print \" c)output of prime mover= \",output_prime,\" W\"\n", + "print \" d)mechanical efficiency= \",neu_m*100,\" %\"\n", + "print \" electrical efficiency= \",neu_e*100,\" %\"\n", + "print \" commercial efficiency= \",neu_c*100,\" %\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)e.m.f. generated= 254.0 V\n", + " b)Cu losses= 2050.0 W\n", + " c)output of prime mover= 51750.0 W\n", + " d)mechanical efficiency= 98.1642512077 %\n", + " electrical efficiency= 95.9645669291 %\n", + " commercial efficiency= 94.2028985507 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.24(b), Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "output=v*il\n", + "total_loss=(v*i*0.5)+((il+i*0.5)*(il+i*0.5)*ra)+(v*i*0.5)\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"Efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.25, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=196#A\n", + "v=220#V\n", + "stray_loss=720#W\n", + "rsh=55#ohm\n", + "e=0.88\n", + "\n", + "#calculations\n", + "output=v*i\n", + "inpute=output/e\n", + "total_loss=inpute-output\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "cu_loss=v*ish\n", + "constant_loss=cu_loss+stray_loss\n", + "culoss_a=total_loss-constant_loss\n", + "ra=culoss_a/(ia*ia)\n", + "I=math.sqrt(constant_loss/ra)\n", + "\n", + "#result\n", + "print \"Load curent corresponding to maximum efficiency\",I,\" A\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load curent corresponding to maximum efficiency 122.283568103 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.26, Page Number:929" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "p=22*1000#w\n", + "v=220#V\n", + "ra=0.05#ohm\n", + "rsh=110#ohm\n", + "rseries=0.06#ohm\n", + "efficiency=.88\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "I=p/v\n", + "ia=ish+I\n", + "vdseries=ia*rseries\n", + "cu_loss=(ia*ia*ra)+(ia*ia*rseries)+(rsh*ish*ish)\n", + "total_loss=(p/efficiency)-p\n", + "strayloss=total_loss-cu_loss\n", + "T=(p/efficiency*60)/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"a)cu losses= \",cu_loss,\" W\"\n", + "print \"b)iron and friction loss= \",strayloss,\" W\"\n", + "print \"c)Torque exerted by the prime mover= \",T,\" N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cu losses= 1584.44 W\n", + "b)iron and friction loss= 1415.56 W\n", + "c)Torque exerted by the prime mover= 238.853503185 N-m\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.27, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "i=20#A\n", + "r=10#ohm\n", + "ra=0.5#ohm\n", + "rsh=50#ohm\n", + "vdb=1#V(voltage drop per brush)\n", + "\n", + "#calculations\n", + "v=i*r\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "E=v+(ia*ra)+(2*vdb)\n", + "totalpower=E*ia\n", + "output=v*i\n", + "efficiency=output/totalpower\n", + "\n", + "#result\n", + "print \"induced e.m.f.= \",E,\" V\"\n", + "print \"efficiency= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced e.m.f.= 214.0 V\n", + "efficiency= 77.8816199377 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.28, Page Number:930" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "i=100#A\n", + "ra=0.1#ohm\n", + "rseries=0.02#ohm\n", + "ri=0.025#ohm\n", + "rsh=100#ohm\n", + "ironloss=1000#W\n", + "frictionloss=500#W\n", + "\n", + "#calculations\n", + "output=v*i\n", + "totalra=ra+rseries+ri\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "copperloss=ia*ia*totalra\n", + "shculoss=ish*v\n", + "total_loss=copperloss+ironloss+frictionloss+shculoss\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"F.L. efficiency of the machine= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "F.L. efficiency of the machine= 87.3089843128 %\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.31, Page Number:931" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=10.0*1000#W\n", + "v=240.0#V\n", + "ra=0.6#ohm\n", + "rsh=160.0#ohm\n", + "mechcoreloss=500.0#W\n", + "culoss=360.0#W\n", + "\n", + "#calculations\n", + "ish=v/rsh\n", + "i=output/v\n", + "ia=ish+i\n", + "culossa=ia*ia*ra\n", + "totalloss=culoss+mechcoreloss+culossa\n", + "inputp=output+totalloss\n", + "efficiency=output/inputp\n", + "\n", + "#result\n", + "print \"Power required= \",inputp*0.001,\" kW\"\n", + "print \"efficinecy= \",efficiency*100,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power required= 11.9780166667 kW\n", + "efficinecy= 83.486275552 %\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.32, Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=110*1000#W\n", + "v=220#V\n", + "ra=0.01#ohm\n", + "rse=0.002#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "il=p/v\n", + "ish=v/rsh\n", + "ia=il+ish\n", + "E=v+ia*(ra+rse)\n", + "\n", + "#result\n", + "print \"induced emf= \",E,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 226.024 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.33 Page Number:932" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "E=216.0#V\n", + "n=600.0#rpm\n", + "slots=144\n", + "con=6\n", + "n2=500.0#rpm\n", + "\n", + "#calculations\n", + "z=con*slots\n", + "a=p\n", + "phi=(E*60*a)/(n*z*p)\n", + "a=2\n", + "armatureE=(phi*z*n2*p)/(60*a)\n", + "\n", + "#result\n", + "print \"the armature emf= \",armatureE,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the armature emf= 360.0 V\n" + ] + } + ], + "prompt_number": 34 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb new file mode 100644 index 00000000..638b15f1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb @@ -0,0 +1,730 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 27: Armature Reaction and Commutation" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.1, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=722\n", + "ia=100.0#A\n", + "theta_m=8.0#degrees\n", + "\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 802.222222222\n", + "cross-magnetization= 3710.27777778\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.2, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=1280\n", + "v=500#V\n", + "ia=200.0#A\n", + "commuter=160\n", + "advanced_segments=4\n", + "\n", + "#calculatons\n", + "i=ia/8\n", + "theta_m=advanced_segments*360/commuter\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 800.0\n", + "cross-magnetization= 1200.0\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(a), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=880\n", + "ia=120.0#A\n", + "theta_m=3.0#degrees\n", + "n=1100#tturns/pole\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "iadditional=(atd_perpole/n)\n", + "\n", + "\n", + "#result\n", + "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", + "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", + "print \"c)additional field current=\",iadditional,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)armature demagnetization= 440.0 AT\n", + "b)cross-magnetization= 6160.0 AT\n", + "c)additional field current= 0.4 A\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(b), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=480\n", + "ia=150.0#A\n", + "theta_m=10.0*2#degrees\n", + "\n", + "#calculatons\n", + "i=ia/4\n", + "total=(z*i)/(2*p)\n", + "atd_perpole=total*(2*theta_m/180)\n", + "atc_perpole=total*(1-(2*theta_m/180))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 500.0\n", + "cross-magnetization= 1750.0\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.4, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=492\n", + "theta_m=10.0\n", + "ia=143.0+10.0\n", + "\n", + "#calculations\n", + "i1=ia/2#wave wound\n", + "i2=ia/4#lap wound\n", + "atd_perpole1=z*i1*theta_m/360#wave wound\n", + "extra_shunt1=atd_perpole1/theta_m\n", + "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", + "extra_shunt2=atd_perpole2/theta_m\n", + "#result\n", + "print \"wave wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt1)\n", + "print \"lap wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "wave wound:\n", + "demagnetization per pole= 1045.5 AT\n", + "extra shunt field turns= 104\n", + "lap wound:\n", + "demagnetization per pole= 522.75 AT\n", + "extra shunt field turns= 52\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.5, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pole=4\n", + "p=50*1000.0#W\n", + "v=250.0#V\n", + "z=400\n", + "commuter=4\n", + "rsh=50.0#ohm\n", + "a=2\n", + "\n", + "#calculations\n", + "i=p/v\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "i=ia/2\n", + "segments=z/a\n", + "theta=pole*360.0/segments\n", + "atd=z*i*(theta/360)\n", + "extra=atd/ish\n", + "\n", + "#result\n", + "print \"demagnetisation=\",atd,\"AT\"\n", + "print \"extra shunt turns/poles\",extra" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "demagnetisation= 820.0 AT\n", + "extra shunt turns/poles 164.0\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.6, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=500\n", + "ia=200.0#A\n", + "p=6\n", + "theta=10.0#degrees\n", + "lambda_=1.3\n", + "\n", + "#calculations\n", + "i=ia/2\n", + "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", + "atd=z*i*theta/360\n", + "extra=lambda_*atd/ia\n", + "\n", + "#result\n", + "print \"i)cross magnetization ampere-turns=\",atc\n", + "print \"ii)back ampere-turns\",atd\n", + "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)cross magnetization ampere-turns= 2777.77777778\n", + "ii)back ampere-turns 1388.88888889\n", + "iii)series turns required to balance the demagnetising ampere turns 9\n" + ] + } + ], + "prompt_number": 45 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.7, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=22.38#kW\n", + "v=440.0#V\n", + "pole=4\n", + "z=840\n", + "commutator=140\n", + "efficiency=0.88\n", + "ish=1.8#A\n", + "back=1.5\n", + "\n", + "#calculations\n", + "motor_input=p*1000.0/efficiency\n", + "input_i=motor_input/v\n", + "ia=input_i-ish\n", + "i=ia/2.0\n", + "theta=back*360/commutator\n", + "atd=z*i*(theta/360.0)\n", + "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", + "#result\n", + "print \"armature demagnetization amp-turns/pole=\",atd\n", + "print \"distorting amp-turns/pole=\",atc" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization amp-turns/pole= 251.998140496\n", + "distorting amp-turns/pole= 2687.98016529\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.8, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "ia=1000#A\n", + "p=10\n", + "z=860\n", + "per=0.7\n", + "\n", + "#calculations\n", + "i=ia/p\n", + "at=per/p*z*(i/2)\n", + "\n", + "#result\n", + "print \"AT/pole for compensation winding=\",at" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "AT/pole for compensation winding= 3010.0\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.9, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800.0#rpm\n", + "segment=123\n", + "wb=3\n", + "#calculations\n", + "v=n/60.0*segment\n", + "commutation=wb/v\n", + "\n", + "#result\n", + "print \"commutation time=\",commutation*1000,\"millisecond\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commutation time= 1.82926829268 millisecond\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.10, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500#rpm\n", + "d=30#cm\n", + "ia=150#A\n", + "wb=1.25#cm\n", + "L=0.07*0.001#H\n", + "\n", + "#calculation\n", + "i=ia/2\n", + "v=3.14*d*(n/60)\n", + "tc=wb/v\n", + "E=L*2*i/tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 19.782 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.11, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "segments=55\n", + "n=900\n", + "wb=1.74\n", + "L=153*math.pow(10,-6)#H\n", + "i=27#A\n", + "\n", + "#calculations\n", + "v=segments*n/60\n", + "Tc=wb/v\n", + "E=L*2*i/Tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 3.91732758621 V\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.12, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500.0#rpm\n", + "ia=150.0#A\n", + "z=64\n", + "wb=1.2\n", + "L=0.05#mH\n", + "\n", + "#calculations\n", + "L=L*0.001\n", + "v=n/60*z\n", + "tc=wb/v\n", + "i=ia/p\n", + "#i.linear\n", + "E1=L*2*i/tc\n", + "#ii.sinusoidal\n", + "E2=1.11*E1\n", + "\n", + "#result\n", + "print \"Linear commutation,E=\",E1,\"V\"\n", + "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Linear commutation,E= 5.0 V\n", + "Sinosoidal commutation,E= 5.55 V\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.13, Page Number:951" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=6\n", + "B=0.5#Wb/m2\n", + "Ig=4.0#mm\n", + "ia=500.0#A\n", + "z=540\n", + "\n", + "#calculations\n", + "arm_mmf=z*(ia/p)/(2*p)\n", + "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", + "mag=0.1*compole\n", + "total_compole=int(compole+mag)\n", + "total_mmf=arm_mmf+total_compole\n", + "Ncp=total_mmf/ia\n", + "\n", + "#result\n", + "print \"Number of turns on each commutating pole=\",int(Ncp)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of turns on each commutating pole= 11\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.14, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p1=100.0#kW\n", + "V1=250#V\n", + "p2=300.0#kW\n", + "V2=250#V\n", + "i1=200#A\n", + "i2=500#A\n", + "il=600#A\n", + "\n", + "#calculations\n", + "delI1=p1/(p1+p2)*il\n", + "delI2=p2/(p1+p2)*il\n", + "\n", + "#result\n", + "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", + "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current supplied by generator 1 with additional load= 150.0 A\n", + "Current supplied by generator 2 with additional load= 450.0 A\n" + ] + } + ], + "prompt_number": 92 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.23, Page Number:963" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "va=400#V\n", + "ra=0.25#ohm\n", + "vb=410#V\n", + "rb=0.4#ohm\n", + "V=390#V\n", + "\n", + "#calculations\n", + "loada=(va-V)/ra\n", + "loadb=(vb-V)/rb\n", + "pa=loada*V\n", + "pb=loadb*V\n", + "net_v=vb-va\n", + "total_r=ra+rb\n", + "i=net_v/total_r\n", + "terminal_v=va+(i*ra)\n", + "power_AtoB=terminal_v*i\n", + "\n", + "#result\n", + "print \"Current=\",i,\"A\"\n", + "print \"Voltage=\",terminal_v,\"V\"\n", + "print \"Power=\",power_AtoB,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 15.3846153846 A\n", + "Voltage= 403.846153846 V\n", + "Power= 6213.01775148 W\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_1.ipynb new file mode 100644 index 00000000..638b15f1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_1.ipynb @@ -0,0 +1,730 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 27: Armature Reaction and Commutation" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.1, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=722\n", + "ia=100.0#A\n", + "theta_m=8.0#degrees\n", + "\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 802.222222222\n", + "cross-magnetization= 3710.27777778\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.2, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=1280\n", + "v=500#V\n", + "ia=200.0#A\n", + "commuter=160\n", + "advanced_segments=4\n", + "\n", + "#calculatons\n", + "i=ia/8\n", + "theta_m=advanced_segments*360/commuter\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 800.0\n", + "cross-magnetization= 1200.0\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(a), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=880\n", + "ia=120.0#A\n", + "theta_m=3.0#degrees\n", + "n=1100#tturns/pole\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "iadditional=(atd_perpole/n)\n", + "\n", + "\n", + "#result\n", + "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", + "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", + "print \"c)additional field current=\",iadditional,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)armature demagnetization= 440.0 AT\n", + "b)cross-magnetization= 6160.0 AT\n", + "c)additional field current= 0.4 A\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(b), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=480\n", + "ia=150.0#A\n", + "theta_m=10.0*2#degrees\n", + "\n", + "#calculatons\n", + "i=ia/4\n", + "total=(z*i)/(2*p)\n", + "atd_perpole=total*(2*theta_m/180)\n", + "atc_perpole=total*(1-(2*theta_m/180))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 500.0\n", + "cross-magnetization= 1750.0\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.4, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=492\n", + "theta_m=10.0\n", + "ia=143.0+10.0\n", + "\n", + "#calculations\n", + "i1=ia/2#wave wound\n", + "i2=ia/4#lap wound\n", + "atd_perpole1=z*i1*theta_m/360#wave wound\n", + "extra_shunt1=atd_perpole1/theta_m\n", + "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", + "extra_shunt2=atd_perpole2/theta_m\n", + "#result\n", + "print \"wave wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt1)\n", + "print \"lap wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "wave wound:\n", + "demagnetization per pole= 1045.5 AT\n", + "extra shunt field turns= 104\n", + "lap wound:\n", + "demagnetization per pole= 522.75 AT\n", + "extra shunt field turns= 52\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.5, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pole=4\n", + "p=50*1000.0#W\n", + "v=250.0#V\n", + "z=400\n", + "commuter=4\n", + "rsh=50.0#ohm\n", + "a=2\n", + "\n", + "#calculations\n", + "i=p/v\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "i=ia/2\n", + "segments=z/a\n", + "theta=pole*360.0/segments\n", + "atd=z*i*(theta/360)\n", + "extra=atd/ish\n", + "\n", + "#result\n", + "print \"demagnetisation=\",atd,\"AT\"\n", + "print \"extra shunt turns/poles\",extra" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "demagnetisation= 820.0 AT\n", + "extra shunt turns/poles 164.0\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.6, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=500\n", + "ia=200.0#A\n", + "p=6\n", + "theta=10.0#degrees\n", + "lambda_=1.3\n", + "\n", + "#calculations\n", + "i=ia/2\n", + "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", + "atd=z*i*theta/360\n", + "extra=lambda_*atd/ia\n", + "\n", + "#result\n", + "print \"i)cross magnetization ampere-turns=\",atc\n", + "print \"ii)back ampere-turns\",atd\n", + "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)cross magnetization ampere-turns= 2777.77777778\n", + "ii)back ampere-turns 1388.88888889\n", + "iii)series turns required to balance the demagnetising ampere turns 9\n" + ] + } + ], + "prompt_number": 45 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.7, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=22.38#kW\n", + "v=440.0#V\n", + "pole=4\n", + "z=840\n", + "commutator=140\n", + "efficiency=0.88\n", + "ish=1.8#A\n", + "back=1.5\n", + "\n", + "#calculations\n", + "motor_input=p*1000.0/efficiency\n", + "input_i=motor_input/v\n", + "ia=input_i-ish\n", + "i=ia/2.0\n", + "theta=back*360/commutator\n", + "atd=z*i*(theta/360.0)\n", + "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", + "#result\n", + "print \"armature demagnetization amp-turns/pole=\",atd\n", + "print \"distorting amp-turns/pole=\",atc" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization amp-turns/pole= 251.998140496\n", + "distorting amp-turns/pole= 2687.98016529\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.8, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "ia=1000#A\n", + "p=10\n", + "z=860\n", + "per=0.7\n", + "\n", + "#calculations\n", + "i=ia/p\n", + "at=per/p*z*(i/2)\n", + "\n", + "#result\n", + "print \"AT/pole for compensation winding=\",at" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "AT/pole for compensation winding= 3010.0\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.9, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800.0#rpm\n", + "segment=123\n", + "wb=3\n", + "#calculations\n", + "v=n/60.0*segment\n", + "commutation=wb/v\n", + "\n", + "#result\n", + "print \"commutation time=\",commutation*1000,\"millisecond\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commutation time= 1.82926829268 millisecond\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.10, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500#rpm\n", + "d=30#cm\n", + "ia=150#A\n", + "wb=1.25#cm\n", + "L=0.07*0.001#H\n", + "\n", + "#calculation\n", + "i=ia/2\n", + "v=3.14*d*(n/60)\n", + "tc=wb/v\n", + "E=L*2*i/tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 19.782 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.11, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "segments=55\n", + "n=900\n", + "wb=1.74\n", + "L=153*math.pow(10,-6)#H\n", + "i=27#A\n", + "\n", + "#calculations\n", + "v=segments*n/60\n", + "Tc=wb/v\n", + "E=L*2*i/Tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 3.91732758621 V\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.12, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500.0#rpm\n", + "ia=150.0#A\n", + "z=64\n", + "wb=1.2\n", + "L=0.05#mH\n", + "\n", + "#calculations\n", + "L=L*0.001\n", + "v=n/60*z\n", + "tc=wb/v\n", + "i=ia/p\n", + "#i.linear\n", + "E1=L*2*i/tc\n", + "#ii.sinusoidal\n", + "E2=1.11*E1\n", + "\n", + "#result\n", + "print \"Linear commutation,E=\",E1,\"V\"\n", + "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Linear commutation,E= 5.0 V\n", + "Sinosoidal commutation,E= 5.55 V\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.13, Page Number:951" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=6\n", + "B=0.5#Wb/m2\n", + "Ig=4.0#mm\n", + "ia=500.0#A\n", + "z=540\n", + "\n", + "#calculations\n", + "arm_mmf=z*(ia/p)/(2*p)\n", + "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", + "mag=0.1*compole\n", + "total_compole=int(compole+mag)\n", + "total_mmf=arm_mmf+total_compole\n", + "Ncp=total_mmf/ia\n", + "\n", + "#result\n", + "print \"Number of turns on each commutating pole=\",int(Ncp)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of turns on each commutating pole= 11\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.14, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p1=100.0#kW\n", + "V1=250#V\n", + "p2=300.0#kW\n", + "V2=250#V\n", + "i1=200#A\n", + "i2=500#A\n", + "il=600#A\n", + "\n", + "#calculations\n", + "delI1=p1/(p1+p2)*il\n", + "delI2=p2/(p1+p2)*il\n", + "\n", + "#result\n", + "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", + "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current supplied by generator 1 with additional load= 150.0 A\n", + "Current supplied by generator 2 with additional load= 450.0 A\n" + ] + } + ], + "prompt_number": 92 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.23, Page Number:963" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "va=400#V\n", + "ra=0.25#ohm\n", + "vb=410#V\n", + "rb=0.4#ohm\n", + "V=390#V\n", + "\n", + "#calculations\n", + "loada=(va-V)/ra\n", + "loadb=(vb-V)/rb\n", + "pa=loada*V\n", + "pb=loadb*V\n", + "net_v=vb-va\n", + "total_r=ra+rb\n", + "i=net_v/total_r\n", + "terminal_v=va+(i*ra)\n", + "power_AtoB=terminal_v*i\n", + "\n", + "#result\n", + "print \"Current=\",i,\"A\"\n", + "print \"Voltage=\",terminal_v,\"V\"\n", + "print \"Power=\",power_AtoB,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 15.3846153846 A\n", + "Voltage= 403.846153846 V\n", + "Power= 6213.01775148 W\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_2.ipynb new file mode 100644 index 00000000..638b15f1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_2.ipynb @@ -0,0 +1,730 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 27: Armature Reaction and Commutation" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.1, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=722\n", + "ia=100.0#A\n", + "theta_m=8.0#degrees\n", + "\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 802.222222222\n", + "cross-magnetization= 3710.27777778\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.2, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=1280\n", + "v=500#V\n", + "ia=200.0#A\n", + "commuter=160\n", + "advanced_segments=4\n", + "\n", + "#calculatons\n", + "i=ia/8\n", + "theta_m=advanced_segments*360/commuter\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 800.0\n", + "cross-magnetization= 1200.0\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(a), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=880\n", + "ia=120.0#A\n", + "theta_m=3.0#degrees\n", + "n=1100#tturns/pole\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "iadditional=(atd_perpole/n)\n", + "\n", + "\n", + "#result\n", + "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", + "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", + "print \"c)additional field current=\",iadditional,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)armature demagnetization= 440.0 AT\n", + "b)cross-magnetization= 6160.0 AT\n", + "c)additional field current= 0.4 A\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(b), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=480\n", + "ia=150.0#A\n", + "theta_m=10.0*2#degrees\n", + "\n", + "#calculatons\n", + "i=ia/4\n", + "total=(z*i)/(2*p)\n", + "atd_perpole=total*(2*theta_m/180)\n", + "atc_perpole=total*(1-(2*theta_m/180))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 500.0\n", + "cross-magnetization= 1750.0\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.4, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=492\n", + "theta_m=10.0\n", + "ia=143.0+10.0\n", + "\n", + "#calculations\n", + "i1=ia/2#wave wound\n", + "i2=ia/4#lap wound\n", + "atd_perpole1=z*i1*theta_m/360#wave wound\n", + "extra_shunt1=atd_perpole1/theta_m\n", + "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", + "extra_shunt2=atd_perpole2/theta_m\n", + "#result\n", + "print \"wave wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt1)\n", + "print \"lap wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "wave wound:\n", + "demagnetization per pole= 1045.5 AT\n", + "extra shunt field turns= 104\n", + "lap wound:\n", + "demagnetization per pole= 522.75 AT\n", + "extra shunt field turns= 52\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.5, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pole=4\n", + "p=50*1000.0#W\n", + "v=250.0#V\n", + "z=400\n", + "commuter=4\n", + "rsh=50.0#ohm\n", + "a=2\n", + "\n", + "#calculations\n", + "i=p/v\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "i=ia/2\n", + "segments=z/a\n", + "theta=pole*360.0/segments\n", + "atd=z*i*(theta/360)\n", + "extra=atd/ish\n", + "\n", + "#result\n", + "print \"demagnetisation=\",atd,\"AT\"\n", + "print \"extra shunt turns/poles\",extra" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "demagnetisation= 820.0 AT\n", + "extra shunt turns/poles 164.0\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.6, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=500\n", + "ia=200.0#A\n", + "p=6\n", + "theta=10.0#degrees\n", + "lambda_=1.3\n", + "\n", + "#calculations\n", + "i=ia/2\n", + "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", + "atd=z*i*theta/360\n", + "extra=lambda_*atd/ia\n", + "\n", + "#result\n", + "print \"i)cross magnetization ampere-turns=\",atc\n", + "print \"ii)back ampere-turns\",atd\n", + "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)cross magnetization ampere-turns= 2777.77777778\n", + "ii)back ampere-turns 1388.88888889\n", + "iii)series turns required to balance the demagnetising ampere turns 9\n" + ] + } + ], + "prompt_number": 45 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.7, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=22.38#kW\n", + "v=440.0#V\n", + "pole=4\n", + "z=840\n", + "commutator=140\n", + "efficiency=0.88\n", + "ish=1.8#A\n", + "back=1.5\n", + "\n", + "#calculations\n", + "motor_input=p*1000.0/efficiency\n", + "input_i=motor_input/v\n", + "ia=input_i-ish\n", + "i=ia/2.0\n", + "theta=back*360/commutator\n", + "atd=z*i*(theta/360.0)\n", + "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", + "#result\n", + "print \"armature demagnetization amp-turns/pole=\",atd\n", + "print \"distorting amp-turns/pole=\",atc" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization amp-turns/pole= 251.998140496\n", + "distorting amp-turns/pole= 2687.98016529\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.8, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "ia=1000#A\n", + "p=10\n", + "z=860\n", + "per=0.7\n", + "\n", + "#calculations\n", + "i=ia/p\n", + "at=per/p*z*(i/2)\n", + "\n", + "#result\n", + "print \"AT/pole for compensation winding=\",at" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "AT/pole for compensation winding= 3010.0\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.9, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800.0#rpm\n", + "segment=123\n", + "wb=3\n", + "#calculations\n", + "v=n/60.0*segment\n", + "commutation=wb/v\n", + "\n", + "#result\n", + "print \"commutation time=\",commutation*1000,\"millisecond\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commutation time= 1.82926829268 millisecond\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.10, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500#rpm\n", + "d=30#cm\n", + "ia=150#A\n", + "wb=1.25#cm\n", + "L=0.07*0.001#H\n", + "\n", + "#calculation\n", + "i=ia/2\n", + "v=3.14*d*(n/60)\n", + "tc=wb/v\n", + "E=L*2*i/tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 19.782 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.11, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "segments=55\n", + "n=900\n", + "wb=1.74\n", + "L=153*math.pow(10,-6)#H\n", + "i=27#A\n", + "\n", + "#calculations\n", + "v=segments*n/60\n", + "Tc=wb/v\n", + "E=L*2*i/Tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 3.91732758621 V\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.12, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500.0#rpm\n", + "ia=150.0#A\n", + "z=64\n", + "wb=1.2\n", + "L=0.05#mH\n", + "\n", + "#calculations\n", + "L=L*0.001\n", + "v=n/60*z\n", + "tc=wb/v\n", + "i=ia/p\n", + "#i.linear\n", + "E1=L*2*i/tc\n", + "#ii.sinusoidal\n", + "E2=1.11*E1\n", + "\n", + "#result\n", + "print \"Linear commutation,E=\",E1,\"V\"\n", + "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Linear commutation,E= 5.0 V\n", + "Sinosoidal commutation,E= 5.55 V\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.13, Page Number:951" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=6\n", + "B=0.5#Wb/m2\n", + "Ig=4.0#mm\n", + "ia=500.0#A\n", + "z=540\n", + "\n", + "#calculations\n", + "arm_mmf=z*(ia/p)/(2*p)\n", + "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", + "mag=0.1*compole\n", + "total_compole=int(compole+mag)\n", + "total_mmf=arm_mmf+total_compole\n", + "Ncp=total_mmf/ia\n", + "\n", + "#result\n", + "print \"Number of turns on each commutating pole=\",int(Ncp)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of turns on each commutating pole= 11\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.14, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p1=100.0#kW\n", + "V1=250#V\n", + "p2=300.0#kW\n", + "V2=250#V\n", + "i1=200#A\n", + "i2=500#A\n", + "il=600#A\n", + "\n", + "#calculations\n", + "delI1=p1/(p1+p2)*il\n", + "delI2=p2/(p1+p2)*il\n", + "\n", + "#result\n", + "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", + "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current supplied by generator 1 with additional load= 150.0 A\n", + "Current supplied by generator 2 with additional load= 450.0 A\n" + ] + } + ], + "prompt_number": 92 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.23, Page Number:963" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "va=400#V\n", + "ra=0.25#ohm\n", + "vb=410#V\n", + "rb=0.4#ohm\n", + "V=390#V\n", + "\n", + "#calculations\n", + "loada=(va-V)/ra\n", + "loadb=(vb-V)/rb\n", + "pa=loada*V\n", + "pb=loadb*V\n", + "net_v=vb-va\n", + "total_r=ra+rb\n", + "i=net_v/total_r\n", + "terminal_v=va+(i*ra)\n", + "power_AtoB=terminal_v*i\n", + "\n", + "#result\n", + "print \"Current=\",i,\"A\"\n", + "print \"Voltage=\",terminal_v,\"V\"\n", + "print \"Power=\",power_AtoB,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 15.3846153846 A\n", + "Voltage= 403.846153846 V\n", + "Power= 6213.01775148 W\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_3.ipynb new file mode 100644 index 00000000..638b15f1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter27_3.ipynb @@ -0,0 +1,730 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02f2208937b2d82cdc7150d6d9062a1310b3e2fcf2346b8c885c3f6fe2fe5405" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 27: Armature Reaction and Commutation" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.1, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=722\n", + "ia=100.0#A\n", + "theta_m=8.0#degrees\n", + "\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 802.222222222\n", + "cross-magnetization= 3710.27777778\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.2, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "z=1280\n", + "v=500#V\n", + "ia=200.0#A\n", + "commuter=160\n", + "advanced_segments=4\n", + "\n", + "#calculatons\n", + "i=ia/8\n", + "theta_m=advanced_segments*360/commuter\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 800.0\n", + "cross-magnetization= 1200.0\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(a), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=880\n", + "ia=120.0#A\n", + "theta_m=3.0#degrees\n", + "n=1100#tturns/pole\n", + "#calculatons\n", + "i=ia/2\n", + "atd_perpole=z*i*theta_m/360\n", + "atc_perpole=z*i*((1/(2.0*p))-(theta_m/360.0))\n", + "iadditional=(atd_perpole/n)\n", + "\n", + "\n", + "#result\n", + "print \"a)armature demagnetization=\",atd_perpole,\"AT\"\n", + "print \"b)cross-magnetization=\",atc_perpole,\"AT\"\n", + "print \"c)additional field current=\",iadditional,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)armature demagnetization= 440.0 AT\n", + "b)cross-magnetization= 6160.0 AT\n", + "c)additional field current= 0.4 A\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.3(b), Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=480\n", + "ia=150.0#A\n", + "theta_m=10.0*2#degrees\n", + "\n", + "#calculatons\n", + "i=ia/4\n", + "total=(z*i)/(2*p)\n", + "atd_perpole=total*(2*theta_m/180)\n", + "atc_perpole=total*(1-(2*theta_m/180))\n", + "\n", + "#result\n", + "print \"armature demagnetization=\",atd_perpole\n", + "print \"cross-magnetization=\",atc_perpole" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization= 500.0\n", + "cross-magnetization= 1750.0\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.4, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=492\n", + "theta_m=10.0\n", + "ia=143.0+10.0\n", + "\n", + "#calculations\n", + "i1=ia/2#wave wound\n", + "i2=ia/4#lap wound\n", + "atd_perpole1=z*i1*theta_m/360#wave wound\n", + "extra_shunt1=atd_perpole1/theta_m\n", + "atd_perpole2=z*i2*(theta_m/360.0)#lap wound\n", + "extra_shunt2=atd_perpole2/theta_m\n", + "#result\n", + "print \"wave wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole1,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt1)\n", + "print \"lap wound:\"\n", + "print \"demagnetization per pole=\",atd_perpole2,\"AT\"\n", + "print \"extra shunt field turns=\",int(extra_shunt2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "wave wound:\n", + "demagnetization per pole= 1045.5 AT\n", + "extra shunt field turns= 104\n", + "lap wound:\n", + "demagnetization per pole= 522.75 AT\n", + "extra shunt field turns= 52\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.5, Page Number:944" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pole=4\n", + "p=50*1000.0#W\n", + "v=250.0#V\n", + "z=400\n", + "commuter=4\n", + "rsh=50.0#ohm\n", + "a=2\n", + "\n", + "#calculations\n", + "i=p/v\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "i=ia/2\n", + "segments=z/a\n", + "theta=pole*360.0/segments\n", + "atd=z*i*(theta/360)\n", + "extra=atd/ish\n", + "\n", + "#result\n", + "print \"demagnetisation=\",atd,\"AT\"\n", + "print \"extra shunt turns/poles\",extra" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "demagnetisation= 820.0 AT\n", + "extra shunt turns/poles 164.0\n" + ] + } + ], + "prompt_number": 35 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.6, Page Number:943" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=500\n", + "ia=200.0#A\n", + "p=6\n", + "theta=10.0#degrees\n", + "lambda_=1.3\n", + "\n", + "#calculations\n", + "i=ia/2\n", + "atc=((1/(2.0*p))-(theta/360.0))*z*i\n", + "atd=z*i*theta/360\n", + "extra=lambda_*atd/ia\n", + "\n", + "#result\n", + "print \"i)cross magnetization ampere-turns=\",atc\n", + "print \"ii)back ampere-turns\",atd\n", + "print \"iii)series turns required to balance the demagnetising ampere turns\",int(extra)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)cross magnetization ampere-turns= 2777.77777778\n", + "ii)back ampere-turns 1388.88888889\n", + "iii)series turns required to balance the demagnetising ampere turns 9\n" + ] + } + ], + "prompt_number": 45 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.7, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=22.38#kW\n", + "v=440.0#V\n", + "pole=4\n", + "z=840\n", + "commutator=140\n", + "efficiency=0.88\n", + "ish=1.8#A\n", + "back=1.5\n", + "\n", + "#calculations\n", + "motor_input=p*1000.0/efficiency\n", + "input_i=motor_input/v\n", + "ia=input_i-ish\n", + "i=ia/2.0\n", + "theta=back*360/commutator\n", + "atd=z*i*(theta/360.0)\n", + "atc=((1/(2.0*pole))-(theta/360.0))*z*i\n", + "#result\n", + "print \"armature demagnetization amp-turns/pole=\",atd\n", + "print \"distorting amp-turns/pole=\",atc" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature demagnetization amp-turns/pole= 251.998140496\n", + "distorting amp-turns/pole= 2687.98016529\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.8, Page Number:945" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "ia=1000#A\n", + "p=10\n", + "z=860\n", + "per=0.7\n", + "\n", + "#calculations\n", + "i=ia/p\n", + "at=per/p*z*(i/2)\n", + "\n", + "#result\n", + "print \"AT/pole for compensation winding=\",at" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "AT/pole for compensation winding= 3010.0\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.9, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800.0#rpm\n", + "segment=123\n", + "wb=3\n", + "#calculations\n", + "v=n/60.0*segment\n", + "commutation=wb/v\n", + "\n", + "#result\n", + "print \"commutation time=\",commutation*1000,\"millisecond\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commutation time= 1.82926829268 millisecond\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.10, Page Number:948" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500#rpm\n", + "d=30#cm\n", + "ia=150#A\n", + "wb=1.25#cm\n", + "L=0.07*0.001#H\n", + "\n", + "#calculation\n", + "i=ia/2\n", + "v=3.14*d*(n/60)\n", + "tc=wb/v\n", + "E=L*2*i/tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 19.782 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.11, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "segments=55\n", + "n=900\n", + "wb=1.74\n", + "L=153*math.pow(10,-6)#H\n", + "i=27#A\n", + "\n", + "#calculations\n", + "v=segments*n/60\n", + "Tc=wb/v\n", + "E=L*2*i/Tc\n", + "\n", + "#result\n", + "print \"average emf=\",E,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "average emf= 3.91732758621 V\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.12, Page Number:949" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=1500.0#rpm\n", + "ia=150.0#A\n", + "z=64\n", + "wb=1.2\n", + "L=0.05#mH\n", + "\n", + "#calculations\n", + "L=L*0.001\n", + "v=n/60*z\n", + "tc=wb/v\n", + "i=ia/p\n", + "#i.linear\n", + "E1=L*2*i/tc\n", + "#ii.sinusoidal\n", + "E2=1.11*E1\n", + "\n", + "#result\n", + "print \"Linear commutation,E=\",E1,\"V\"\n", + "print \"Sinosoidal commutation,E=\",E2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Linear commutation,E= 5.0 V\n", + "Sinosoidal commutation,E= 5.55 V\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.13, Page Number:951" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=6\n", + "B=0.5#Wb/m2\n", + "Ig=4.0#mm\n", + "ia=500.0#A\n", + "z=540\n", + "\n", + "#calculations\n", + "arm_mmf=z*(ia/p)/(2*p)\n", + "compole=int(B*Ig*0.001/(4*3.14*math.pow(10,-7)))\n", + "mag=0.1*compole\n", + "total_compole=int(compole+mag)\n", + "total_mmf=arm_mmf+total_compole\n", + "Ncp=total_mmf/ia\n", + "\n", + "#result\n", + "print \"Number of turns on each commutating pole=\",int(Ncp)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of turns on each commutating pole= 11\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.14, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p1=100.0#kW\n", + "V1=250#V\n", + "p2=300.0#kW\n", + "V2=250#V\n", + "i1=200#A\n", + "i2=500#A\n", + "il=600#A\n", + "\n", + "#calculations\n", + "delI1=p1/(p1+p2)*il\n", + "delI2=p2/(p1+p2)*il\n", + "\n", + "#result\n", + "print \"Current supplied by generator 1 with additional load=\",delI1,\"A\"\n", + "print \"Current supplied by generator 2 with additional load=\",delI2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current supplied by generator 1 with additional load= 150.0 A\n", + "Current supplied by generator 2 with additional load= 450.0 A\n" + ] + } + ], + "prompt_number": 92 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.23, Page Number:963" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "va=400#V\n", + "ra=0.25#ohm\n", + "vb=410#V\n", + "rb=0.4#ohm\n", + "V=390#V\n", + "\n", + "#calculations\n", + "loada=(va-V)/ra\n", + "loadb=(vb-V)/rb\n", + "pa=loada*V\n", + "pb=loadb*V\n", + "net_v=vb-va\n", + "total_r=ra+rb\n", + "i=net_v/total_r\n", + "terminal_v=va+(i*ra)\n", + "power_AtoB=terminal_v*i\n", + "\n", + "#result\n", + "print \"Current=\",i,\"A\"\n", + "print \"Voltage=\",terminal_v,\"V\"\n", + "print \"Power=\",power_AtoB,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 15.3846153846 A\n", + "Voltage= 403.846153846 V\n", + "Power= 6213.01775148 W\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb @@ -0,0 +1,388 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 28: Generator Characteristics" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.13, Page Number:984" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "#emf increases by 1 V for every increase of 6 A\n", + "ra=0.02#ohm\n", + "i=96#A\n", + "\n", + "#calculations\n", + "voltageincrease=i/6\n", + "vd=i*ra\n", + "voltage_rise=voltageincrease-vd\n", + "vconsumer=v+voltage_rise\n", + "power_supplied=voltage_rise*i\n", + "\n", + "#result\n", + "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", + "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage supplied ot consumer= 234.08 V\n", + "power supplied by the booster itself= 1.35168 kW\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.14, Page Number:985" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#V\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=200.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "vd=i*r\n", + "voltage_decrease=v-vd\n", + "feeder_drop=v*r\n", + "booster_voltage=v*v/i1\n", + "voltage_net=feeder_drop-booster_voltage\n", + "\n", + "#result\n", + "print \"Net decrease in voltage= \",voltage_net,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net decrease in voltage= 2.5 V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.15, Page Number:986" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "inl=5.0#A\n", + "v=440.0#V\n", + "il=6.0#A\n", + "i_full=200.0#A(full load)\n", + "turns=1600\n", + "\n", + "#calcuations\n", + "shunt_turns1=turns*inl\n", + "shunt_turns2=turns*il\n", + "increase=shunt_turns2-shunt_turns1\n", + "n=increase/i_full#number of series turns required\n", + "\n", + "#result\n", + "print \"Number of series turns required= \",n,\" tunrs/pole\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of series turns required= 8.0 tunrs/pole\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.16, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#turns/pole\n", + "series_winding=4#turns/pole\n", + "r=0.05#ohm\n", + "increase_i=0.2#A\n", + "ia=80#A\n", + "\n", + "#calculations\n", + "additional_at=n*increase_i\n", + "current_required=additional_at/series_winding\n", + "R=(current_required*r)/(ia-current_required)\n", + "\n", + "#result\n", + "print \"Divertor resistance= \",R,\" ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Divertor resistance= 0.0833333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.17, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "i=100.0#A\n", + "ra=0.1#ohm\n", + "rsh=50.0#ohm\n", + "rse=0.06#ohm\n", + "divertor=0.14#ohm\n", + "\n", + "#calculations\n", + "#short shunt\n", + "vd=i*rse\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "armature_drop=ia*ra\n", + "E=v+vd+armature_drop\n", + "#long shunt\n", + "vd=ia*(ra+rse)\n", + "print vd\n", + "E2=v+vd\n", + "current_divertor=(ia*divertor)/(divertor+rse)\n", + "change=(current_divertor/ia)*100\n", + "\n", + "#result\n", + "print \"a)emf induced using short shunt= \",E\n", + "print \"b)emf induced using long shunt= \",E2\n", + "print \"c)series amp-turns are reduced to \",change,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "16.704\n", + "a)emf induced using short shunt= 236.44\n", + "b)emf induced using long shunt= 236.704\n", + "c)series amp-turns are reduced to 70.0 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.18, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=250*1000#W\n", + "v=240#V\n", + "v2=220#V\n", + "i=7#A\n", + "inl=12#A\n", + "shunt=650#turns/pole\n", + "series=4#turns/pole\n", + "rse=0.006#ohm\n", + "\n", + "#calculations\n", + "i_fulload=p/v\n", + "shunt_increase=shunt*(inl-i)\n", + "ise=shunt_increase/series\n", + "i_d=i_fulload-ise\n", + "Rd=(ise*rse)/i_d\n", + "\n", + "#results\n", + "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.19, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "p=60.0*1000#W\n", + "n=1600.0#turns/pole\n", + "inl=1.25#A\n", + "vnl=125#V\n", + "il=1.75#A\n", + "vl=150.0#V\n", + "\n", + "#calculations\n", + "extra_excitation=n*(il-inl)\n", + "ise=p/vl\n", + "series=extra_excitation/ise\n", + "ise2=extra_excitation/3\n", + "i_d=ise-ise2\n", + "rd=(ise2*0.02)/i_d\n", + "reg=(vnl-vl)*100/vl\n", + "\n", + "#result\n", + "print \"i)minimum number of series turns/pole= \",series\n", + "print \"ii)divertor resistance= \",rd\n", + "print \"iii)voltage regulation= \",reg,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)minimum number of series turns/pole= 2.0\n", + "ii)divertor resistance= 0.04\n", + "iii)voltage regulation= -16.6666666667 %\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.20, Page Number:989" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#v\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=160.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "#160 A\n", + "vd=i1*(r-(v/i))\n", + "#50 A\n", + "vd2=i2*(r-(v/i))\n", + "\n", + "#result\n", + "print \"voltage drop at 160 A=\",vd,\"V\"\n", + "print \"voltage drop at 50 A=\",vd2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage drop at 160 A= 8.0 V\n", + "voltage drop at 50 A= 2.5 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_1.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_1.ipynb @@ -0,0 +1,388 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 28: Generator Characteristics" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.13, Page Number:984" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "#emf increases by 1 V for every increase of 6 A\n", + "ra=0.02#ohm\n", + "i=96#A\n", + "\n", + "#calculations\n", + "voltageincrease=i/6\n", + "vd=i*ra\n", + "voltage_rise=voltageincrease-vd\n", + "vconsumer=v+voltage_rise\n", + "power_supplied=voltage_rise*i\n", + "\n", + "#result\n", + "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", + "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage supplied ot consumer= 234.08 V\n", + "power supplied by the booster itself= 1.35168 kW\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.14, Page Number:985" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#V\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=200.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "vd=i*r\n", + "voltage_decrease=v-vd\n", + "feeder_drop=v*r\n", + "booster_voltage=v*v/i1\n", + "voltage_net=feeder_drop-booster_voltage\n", + "\n", + "#result\n", + "print \"Net decrease in voltage= \",voltage_net,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net decrease in voltage= 2.5 V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.15, Page Number:986" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "inl=5.0#A\n", + "v=440.0#V\n", + "il=6.0#A\n", + "i_full=200.0#A(full load)\n", + "turns=1600\n", + "\n", + "#calcuations\n", + "shunt_turns1=turns*inl\n", + "shunt_turns2=turns*il\n", + "increase=shunt_turns2-shunt_turns1\n", + "n=increase/i_full#number of series turns required\n", + "\n", + "#result\n", + "print \"Number of series turns required= \",n,\" tunrs/pole\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of series turns required= 8.0 tunrs/pole\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.16, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#turns/pole\n", + "series_winding=4#turns/pole\n", + "r=0.05#ohm\n", + "increase_i=0.2#A\n", + "ia=80#A\n", + "\n", + "#calculations\n", + "additional_at=n*increase_i\n", + "current_required=additional_at/series_winding\n", + "R=(current_required*r)/(ia-current_required)\n", + "\n", + "#result\n", + "print \"Divertor resistance= \",R,\" ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Divertor resistance= 0.0833333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.17, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "i=100.0#A\n", + "ra=0.1#ohm\n", + "rsh=50.0#ohm\n", + "rse=0.06#ohm\n", + "divertor=0.14#ohm\n", + "\n", + "#calculations\n", + "#short shunt\n", + "vd=i*rse\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "armature_drop=ia*ra\n", + "E=v+vd+armature_drop\n", + "#long shunt\n", + "vd=ia*(ra+rse)\n", + "print vd\n", + "E2=v+vd\n", + "current_divertor=(ia*divertor)/(divertor+rse)\n", + "change=(current_divertor/ia)*100\n", + "\n", + "#result\n", + "print \"a)emf induced using short shunt= \",E\n", + "print \"b)emf induced using long shunt= \",E2\n", + "print \"c)series amp-turns are reduced to \",change,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "16.704\n", + "a)emf induced using short shunt= 236.44\n", + "b)emf induced using long shunt= 236.704\n", + "c)series amp-turns are reduced to 70.0 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.18, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=250*1000#W\n", + "v=240#V\n", + "v2=220#V\n", + "i=7#A\n", + "inl=12#A\n", + "shunt=650#turns/pole\n", + "series=4#turns/pole\n", + "rse=0.006#ohm\n", + "\n", + "#calculations\n", + "i_fulload=p/v\n", + "shunt_increase=shunt*(inl-i)\n", + "ise=shunt_increase/series\n", + "i_d=i_fulload-ise\n", + "Rd=(ise*rse)/i_d\n", + "\n", + "#results\n", + "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.19, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "p=60.0*1000#W\n", + "n=1600.0#turns/pole\n", + "inl=1.25#A\n", + "vnl=125#V\n", + "il=1.75#A\n", + "vl=150.0#V\n", + "\n", + "#calculations\n", + "extra_excitation=n*(il-inl)\n", + "ise=p/vl\n", + "series=extra_excitation/ise\n", + "ise2=extra_excitation/3\n", + "i_d=ise-ise2\n", + "rd=(ise2*0.02)/i_d\n", + "reg=(vnl-vl)*100/vl\n", + "\n", + "#result\n", + "print \"i)minimum number of series turns/pole= \",series\n", + "print \"ii)divertor resistance= \",rd\n", + "print \"iii)voltage regulation= \",reg,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)minimum number of series turns/pole= 2.0\n", + "ii)divertor resistance= 0.04\n", + "iii)voltage regulation= -16.6666666667 %\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.20, Page Number:989" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#v\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=160.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "#160 A\n", + "vd=i1*(r-(v/i))\n", + "#50 A\n", + "vd2=i2*(r-(v/i))\n", + "\n", + "#result\n", + "print \"voltage drop at 160 A=\",vd,\"V\"\n", + "print \"voltage drop at 50 A=\",vd2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage drop at 160 A= 8.0 V\n", + "voltage drop at 50 A= 2.5 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_2.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_2.ipynb @@ -0,0 +1,388 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 28: Generator Characteristics" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.13, Page Number:984" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "#emf increases by 1 V for every increase of 6 A\n", + "ra=0.02#ohm\n", + "i=96#A\n", + "\n", + "#calculations\n", + "voltageincrease=i/6\n", + "vd=i*ra\n", + "voltage_rise=voltageincrease-vd\n", + "vconsumer=v+voltage_rise\n", + "power_supplied=voltage_rise*i\n", + "\n", + "#result\n", + "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", + "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage supplied ot consumer= 234.08 V\n", + "power supplied by the booster itself= 1.35168 kW\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.14, Page Number:985" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#V\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=200.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "vd=i*r\n", + "voltage_decrease=v-vd\n", + "feeder_drop=v*r\n", + "booster_voltage=v*v/i1\n", + "voltage_net=feeder_drop-booster_voltage\n", + "\n", + "#result\n", + "print \"Net decrease in voltage= \",voltage_net,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net decrease in voltage= 2.5 V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.15, Page Number:986" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "inl=5.0#A\n", + "v=440.0#V\n", + "il=6.0#A\n", + "i_full=200.0#A(full load)\n", + "turns=1600\n", + "\n", + "#calcuations\n", + "shunt_turns1=turns*inl\n", + "shunt_turns2=turns*il\n", + "increase=shunt_turns2-shunt_turns1\n", + "n=increase/i_full#number of series turns required\n", + "\n", + "#result\n", + "print \"Number of series turns required= \",n,\" tunrs/pole\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of series turns required= 8.0 tunrs/pole\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.16, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#turns/pole\n", + "series_winding=4#turns/pole\n", + "r=0.05#ohm\n", + "increase_i=0.2#A\n", + "ia=80#A\n", + "\n", + "#calculations\n", + "additional_at=n*increase_i\n", + "current_required=additional_at/series_winding\n", + "R=(current_required*r)/(ia-current_required)\n", + "\n", + "#result\n", + "print \"Divertor resistance= \",R,\" ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Divertor resistance= 0.0833333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.17, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "i=100.0#A\n", + "ra=0.1#ohm\n", + "rsh=50.0#ohm\n", + "rse=0.06#ohm\n", + "divertor=0.14#ohm\n", + "\n", + "#calculations\n", + "#short shunt\n", + "vd=i*rse\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "armature_drop=ia*ra\n", + "E=v+vd+armature_drop\n", + "#long shunt\n", + "vd=ia*(ra+rse)\n", + "print vd\n", + "E2=v+vd\n", + "current_divertor=(ia*divertor)/(divertor+rse)\n", + "change=(current_divertor/ia)*100\n", + "\n", + "#result\n", + "print \"a)emf induced using short shunt= \",E\n", + "print \"b)emf induced using long shunt= \",E2\n", + "print \"c)series amp-turns are reduced to \",change,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "16.704\n", + "a)emf induced using short shunt= 236.44\n", + "b)emf induced using long shunt= 236.704\n", + "c)series amp-turns are reduced to 70.0 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.18, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=250*1000#W\n", + "v=240#V\n", + "v2=220#V\n", + "i=7#A\n", + "inl=12#A\n", + "shunt=650#turns/pole\n", + "series=4#turns/pole\n", + "rse=0.006#ohm\n", + "\n", + "#calculations\n", + "i_fulload=p/v\n", + "shunt_increase=shunt*(inl-i)\n", + "ise=shunt_increase/series\n", + "i_d=i_fulload-ise\n", + "Rd=(ise*rse)/i_d\n", + "\n", + "#results\n", + "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.19, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "p=60.0*1000#W\n", + "n=1600.0#turns/pole\n", + "inl=1.25#A\n", + "vnl=125#V\n", + "il=1.75#A\n", + "vl=150.0#V\n", + "\n", + "#calculations\n", + "extra_excitation=n*(il-inl)\n", + "ise=p/vl\n", + "series=extra_excitation/ise\n", + "ise2=extra_excitation/3\n", + "i_d=ise-ise2\n", + "rd=(ise2*0.02)/i_d\n", + "reg=(vnl-vl)*100/vl\n", + "\n", + "#result\n", + "print \"i)minimum number of series turns/pole= \",series\n", + "print \"ii)divertor resistance= \",rd\n", + "print \"iii)voltage regulation= \",reg,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)minimum number of series turns/pole= 2.0\n", + "ii)divertor resistance= 0.04\n", + "iii)voltage regulation= -16.6666666667 %\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.20, Page Number:989" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#v\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=160.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "#160 A\n", + "vd=i1*(r-(v/i))\n", + "#50 A\n", + "vd2=i2*(r-(v/i))\n", + "\n", + "#result\n", + "print \"voltage drop at 160 A=\",vd,\"V\"\n", + "print \"voltage drop at 50 A=\",vd2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage drop at 160 A= 8.0 V\n", + "voltage drop at 50 A= 2.5 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_3.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter28_3.ipynb @@ -0,0 +1,388 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6743417a1c79c6197a7cd49755318e10828c09b3cb248c5af8d5364367840700" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 28: Generator Characteristics" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.13, Page Number:984" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "#emf increases by 1 V for every increase of 6 A\n", + "ra=0.02#ohm\n", + "i=96#A\n", + "\n", + "#calculations\n", + "voltageincrease=i/6\n", + "vd=i*ra\n", + "voltage_rise=voltageincrease-vd\n", + "vconsumer=v+voltage_rise\n", + "power_supplied=voltage_rise*i\n", + "\n", + "#result\n", + "print \"voltage supplied ot consumer= \",vconsumer,\" V\"\n", + "print \"power supplied by the booster itself= \",power_supplied/1000,\" kW\" " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage supplied ot consumer= 234.08 V\n", + "power supplied by the booster itself= 1.35168 kW\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.14, Page Number:985" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#V\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=200.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "vd=i*r\n", + "voltage_decrease=v-vd\n", + "feeder_drop=v*r\n", + "booster_voltage=v*v/i1\n", + "voltage_net=feeder_drop-booster_voltage\n", + "\n", + "#result\n", + "print \"Net decrease in voltage= \",voltage_net,\" V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net decrease in voltage= 2.5 V\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.15, Page Number:986" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "inl=5.0#A\n", + "v=440.0#V\n", + "il=6.0#A\n", + "i_full=200.0#A(full load)\n", + "turns=1600\n", + "\n", + "#calcuations\n", + "shunt_turns1=turns*inl\n", + "shunt_turns2=turns*il\n", + "increase=shunt_turns2-shunt_turns1\n", + "n=increase/i_full#number of series turns required\n", + "\n", + "#result\n", + "print \"Number of series turns required= \",n,\" tunrs/pole\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Number of series turns required= 8.0 tunrs/pole\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.16, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#turns/pole\n", + "series_winding=4#turns/pole\n", + "r=0.05#ohm\n", + "increase_i=0.2#A\n", + "ia=80#A\n", + "\n", + "#calculations\n", + "additional_at=n*increase_i\n", + "current_required=additional_at/series_winding\n", + "R=(current_required*r)/(ia-current_required)\n", + "\n", + "#result\n", + "print \"Divertor resistance= \",R,\" ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Divertor resistance= 0.0833333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.17, Page Number:987" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "i=100.0#A\n", + "ra=0.1#ohm\n", + "rsh=50.0#ohm\n", + "rse=0.06#ohm\n", + "divertor=0.14#ohm\n", + "\n", + "#calculations\n", + "#short shunt\n", + "vd=i*rse\n", + "ish=v/rsh\n", + "ia=i+ish\n", + "armature_drop=ia*ra\n", + "E=v+vd+armature_drop\n", + "#long shunt\n", + "vd=ia*(ra+rse)\n", + "print vd\n", + "E2=v+vd\n", + "current_divertor=(ia*divertor)/(divertor+rse)\n", + "change=(current_divertor/ia)*100\n", + "\n", + "#result\n", + "print \"a)emf induced using short shunt= \",E\n", + "print \"b)emf induced using long shunt= \",E2\n", + "print \"c)series amp-turns are reduced to \",change,\" %\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "16.704\n", + "a)emf induced using short shunt= 236.44\n", + "b)emf induced using long shunt= 236.704\n", + "c)series amp-turns are reduced to 70.0 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.18, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=250*1000#W\n", + "v=240#V\n", + "v2=220#V\n", + "i=7#A\n", + "inl=12#A\n", + "shunt=650#turns/pole\n", + "series=4#turns/pole\n", + "rse=0.006#ohm\n", + "\n", + "#calculations\n", + "i_fulload=p/v\n", + "shunt_increase=shunt*(inl-i)\n", + "ise=shunt_increase/series\n", + "i_d=i_fulload-ise\n", + "Rd=(ise*rse)/i_d\n", + "\n", + "#results\n", + "print \"resistance of the series amp-turns at no-load\",Rd,\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of the series amp-turns at no-load 0.0212751091703 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.19, Page Number:988" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "p=60.0*1000#W\n", + "n=1600.0#turns/pole\n", + "inl=1.25#A\n", + "vnl=125#V\n", + "il=1.75#A\n", + "vl=150.0#V\n", + "\n", + "#calculations\n", + "extra_excitation=n*(il-inl)\n", + "ise=p/vl\n", + "series=extra_excitation/ise\n", + "ise2=extra_excitation/3\n", + "i_d=ise-ise2\n", + "rd=(ise2*0.02)/i_d\n", + "reg=(vnl-vl)*100/vl\n", + "\n", + "#result\n", + "print \"i)minimum number of series turns/pole= \",series\n", + "print \"ii)divertor resistance= \",rd\n", + "print \"iii)voltage regulation= \",reg,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)minimum number of series turns/pole= 2.0\n", + "ii)divertor resistance= 0.04\n", + "iii)voltage regulation= -16.6666666667 %\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 28.20, Page Number:989" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=50.0#v\n", + "i=200.0#A\n", + "r=0.3#ohm\n", + "i1=160.0#A\n", + "i2=50.0#A\n", + "\n", + "#calculations\n", + "#160 A\n", + "vd=i1*(r-(v/i))\n", + "#50 A\n", + "vd2=i2*(r-(v/i))\n", + "\n", + "#result\n", + "print \"voltage drop at 160 A=\",vd,\"V\"\n", + "print \"voltage drop at 50 A=\",vd2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage drop at 160 A= 8.0 V\n", + "voltage drop at 50 A= 2.5 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb new file mode 100644 index 00000000..f3eda54f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb @@ -0,0 +1,2343 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.1, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "r=0.5#ohm\n", + "i=20#A\n", + "\n", + "#calculation\n", + "#as generator \n", + "eg=v+i*r\n", + "#as motor\n", + "eb=v-i*r\n", + "\n", + "#result\n", + "print \"as generator:eg=\",eg,\"V\"\n", + "print \"as motor:eb=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "as generator:eg= 230.0 V\n", + "as motor:eb= 210.0 V\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.2, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia=Symbol('ia')\n", + "r=0.1#ohm\n", + "brush_drop=2#V\n", + "n=1000#rpm\n", + "i=100#A\n", + "v=250#V\n", + "n2=700#rpm\n", + "\n", + "#calculations\n", + "rl=v/i\n", + "eg1=v+i*r+brush_drop\n", + "eg2=eg1*n2/n\n", + "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", + "\n", + "#result\n", + "print \"current delivered to the load=\",ia[0],\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to the load= 69.7692307692308 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.3, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.8#ohm\n", + "rf=200#ohm\n", + "output=7.46#kW\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=output*1000/efficiency\n", + "im=output*1000/(efficiency*v)\n", + "ish=v/rf\n", + "ia=im-ish\n", + "eb=v-ia*ra\n", + "\n", + "#results\n", + "print \"back emf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "back emf= 425.642780749 V\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.4, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25#kW\n", + "v=250#V\n", + "ra=0.06#ohm\n", + "rf=100#ohm\n", + "\n", + "#calculations\n", + "#as generator\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"\n", + "\n", + "#as motor\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "As generator: power= 26.12424 kW\n", + "As generator: power= 23.92376 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.5, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=32\n", + "v=200.0#V\n", + "i=12.0#A\n", + "ra=2.0#ohm\n", + "rf=200.0#ohm\n", + "n=1000.0#rpm\n", + "i2=5.0#A\n", + "#calculations\n", + "ia=i+v/rf\n", + "eg=v+ia*ra\n", + "phi=eg*a*60/(z*n*p)\n", + "#as motor\n", + "ia=i2-v/rf\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi,\"wb\"\n", + "print \"speed of the machine=\",math.ceil(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.42375 wb\n", + "speed of the machine= 850.0 rpm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.6, Page Number:1002" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=110#A\n", + "v=480#V\n", + "ra=0.2#ohm\n", + "z=864\n", + "p=a=6\n", + "phi=0.05#Wb\n", + "\n", + "#calculations\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 636.0 rpm\n", + "the gross torque= 755.568 N-m\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.7, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "z=782\n", + "ra=rf=0.5#ohm\n", + "ia=40#A\n", + "phi=25*0.001#Wb\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 705.0 rpm\n", + "the gross torque= 248.676 N-m\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.8, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb=250.0#V\n", + "n=1500.0#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "pm=eb*ia\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"machanical power=\",pm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 79.5833333333 N-m\n", + "machanical power= 12500.0 W\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.9, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "z=800\n", + "load=8.2#kW\n", + "ia=45#A\n", + "phi=25*0.001#Wb\n", + "ra=0.6#ohm\n", + "a=p/2\n", + "\n", + "#calculation\n", + "ta=0.159*phi*z*ia*p/a\n", + "eb=v-ia*ra\n", + "n=eb*a/(phi*z*p)\n", + "tsh=load*1000/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"developed torque=\",ta,\"N-m\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 286.2 N-m\n", + "shaft torque= 270.618131415 N-m\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.10, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "n=500.0#rpm\n", + "i=50.0#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculation\n", + "ia2=2*i\n", + "fb1=v-(i*ra)\n", + "eb2=v-(ia2*ra)\n", + "n2=eb2*n/fb1\n", + "#result\n", + "print \"speed when torque is doubled=\",n2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when torque is doubled= 476.19047619 N-m\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.11, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=500#V\n", + "load=37.3#kW\n", + "n=1000#rpm\n", + "efficiency=0.90\n", + "ra=0.24#ohm\n", + "vd=2#v\n", + "i=1.8#A\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "il=input_m/v\n", + "tsh=9.55*load*1000/n\n", + "il=ratio*il\n", + "ia=il-i\n", + "r=solve(ia*(r+ra)+vd-v,r)\n", + "\n", + "#result\n", + "print \"full-load line current=\",il,\"A\"\n", + "print \"full-load shaft torque\",tsh,\"N-m\"\n", + "print \"total resistance=\",r[0],\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load line current= 124.333333333 A\n", + "full-load shaft torque 356.215 N-m\n", + "total resistance= 3.82420021762787 ohm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.12, Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "v=220#V\n", + "z=540\n", + "i=32#A\n", + "output=5.595#kW\n", + "ra=0.09#ohm\n", + "i_f=1#A\n", + "phi=30*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=i-i_f\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(phi*z*p)\n", + "tsh=9.55*output/n\n", + "\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "print \"torque developed=\",tsh*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 804.481481481 rpm\n", + "torque developed= 66.4182473183 N-m\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(a), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "load=20.0#kW\n", + "i=5.0#A\n", + "ra=0.04#ohm\n", + "phi=0.04#Wb\n", + "z=160\n", + "il=95.0#A\n", + "inl=9.0#A\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "#no load\n", + "ea0=v-(inl-i)*ra\n", + "n0=ea0*a*60/(phi*z*p)\n", + "#load\n", + "ea=v-(il-i)*ra\n", + "n=ea*n0/ea0\n", + "\n", + "#result\n", + "print \"no-load speed=\",n0,\"rpm\"\n", + "print \"load speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load speed= 1030.5 rpm\n", + "load speed= 1014.375 rpm\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(b), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=6\n", + "i=400#A\n", + "n=350#rpm\n", + "phi=80*0.001#Wb\n", + "z=600*2\n", + "loss=0.03#percentage\n", + "\n", + "#calculation\n", + "e=phi*z*n*p/(60*a)\n", + "pa=e*i\n", + "t=pa/(2*3.14*n/60)\n", + "t_net=0.97*t\n", + "bhp=t_net*36.67*0.001/0.746\n", + "#result\n", + "print \"brake-horse-power\",bhp,\"HP\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "brake-horse-power 291.551578696 HP\n" + ] + } + ], + "prompt_number": 66 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(c), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=774\n", + "phi=24*0.001#Wb\n", + "ia=50#A\n", + "a=2\n", + "#calculations\n", + "t=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 295.3584 N-m\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(d), Page Number:1005" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "ih=v/rf\n", + "pi=v*i\n", + "cu_loss_f=cu_loss=v*ih\n", + "output=v*il\n", + "cu_loss_a=(il+ih)**2*ra\n", + "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(e), Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delcration\n", + "ia=40#A\n", + "v=220#V\n", + "n=800#rpm\n", + "ra=0.2#ohm\n", + "rf=0.1#ohm\n", + "loss=0.5#kW\n", + "\n", + "#calculations\n", + "eb=v-ia*(ra+rf)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*(ra+rf)\n", + "total_loss=cu_loss+loss*1000\n", + "input_m=v*ia\n", + "output=input_m-total_loss\n", + "\n", + "#result\n", + "print \"output of the motor=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output of the motor= 7.82 kW\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.14, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=400.0#N\n", + "d=10.0#cm\n", + "n=840#rpm\n", + "v=220.0#V\n", + "n1=1800#rpm\n", + "efficiency=.80\n", + "d2=24.0#cm\n", + "\n", + "#calculations\n", + "tsh=f*d*0.01/2\n", + "output=tsh*2*3.14*n/60\n", + "input_m=output/efficiency\n", + "i=input_m/v\n", + "d1=n*d2/n1\n", + "\n", + "#calculation\n", + "print \"current taken by the motor=\",round(i),\"A\"\n", + "print \"size of motor pulley=\",d1,\"cm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the motor= 10.0 A\n", + "size of motor pulley= 11.2 cm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.15, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "p=4\n", + "z=280\n", + "ia=45.0#A\n", + "phi=18*0.001#Wb\n", + "ra=0.5+0.3#ohm\n", + "loss=800.0#W\n", + "d=0.41\n", + "a=4\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=eb*60*a/(phi*z*p*4)\n", + "inpt=v*ia\n", + "cu_loss=ia**2*ra\n", + "total_loss=loss+cu_loss\n", + "output=inpt-total_loss\n", + "tsh=9.55*output/n\n", + "f=tsh*2/d\n", + "\n", + "#result\n", + "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pull at the rim of the pulley= 628.016180845 N-m\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.16, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=240#V\n", + "output=11.19#kW\n", + "n=1000#rpm\n", + "ia=50#A\n", + "i=1#A\n", + "z=540\n", + "ra=0.1#ohm\n", + "vd=1#V\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "tsh=9.55*output*1000/n\n", + "phi=eb*60*a*1000/(z*n*p)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "brush_loss=ia*2\n", + "power=input_a-(cu_loss+brush_loss)\n", + "rotational_loss=power-output*1000\n", + "input_m=v*(ia+i)\n", + "efficiency=output*1000/input_m\n", + "\n", + "#result\n", + "print \"total torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"flux/pole=\",phi,\"mWb\"\n", + "print \"rotational losses=\",rotational_loss,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "total torque= 112.2125 N-m\n", + "useful torque= 106.8645 N-m\n", + "flux/pole= 13.0555555556 mWb\n", + "rotational losses= 460.0 W\n", + "efficiency= 91.4215686275 %\n" + ] + } + ], + "prompt_number": 106 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.17, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#v\n", + "n=500.0#rpm\n", + "i=40.0#A\n", + "i2=30.0#A\n", + "ra=0.8#ohm\n", + "\n", + "#calculation\n", + "t2_by_t1=i2**2/i**2\n", + "change=(1-t2_by_t1)*100#percentage\n", + "eb1=v-i*ra\n", + "eb2=v-i2*ra\n", + "n2=eb2*i*n/(eb1*i2)\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"percentage change in torque=\",change,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 679.127725857 rpm\n", + "percentage change in torque= 43.75 %\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.18, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#V\n", + "output=55.95#kW\n", + "n=750#rpm\n", + "I=252.8#kg-m2\n", + "ia1=1.4\n", + "ia2=1.8\n", + "\n", + "#calculations\n", + "ia=(ia1+ia2)/2\n", + "n=n/60.0\n", + "tsh=output*1000/(2*3.14*n)\n", + "torque_avg=(ia-1)*tsh\n", + "dt=(I*2*3.14*n)/torque_avg\n", + "\n", + "#result\n", + "print \"approximate time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "approximate time to attain full speed= 46.4050282991 s\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.19, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "v=400.0#V\n", + "n=400.0#rpm\n", + "i=40.0#A\n", + "I=7.5#kg-m2\n", + "ratio=1.2\n", + "\n", + "#calculations\n", + "n=n/60\n", + "t=output*1000/(2*3.14*n)\n", + "torque=(ratio-1)*t\n", + "dt=(I*2*3.14*n)/torque\n", + "\n", + "print \"time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time to attain full speed= 4.4055406613 s\n" + ] + } + ], + "prompt_number": 138 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.20, Page Number:1009" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=944\n", + "phi=34.6*0.001#Wb\n", + "ta=209.0#N-m\n", + "v=500.0#V\n", + "ra=3.0#ohm\n", + "a=2\n", + "#calculation\n", + "ia=ta/(0.159*phi*z*(p/a))\n", + "ea=v-ia*ra\n", + "n=ea/(phi*z*(p/a))\n", + "\n", + "#result\n", + "print \"line current=\",ia,\"A\"\n", + "print \"speed=\",n*60,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 20.1219966813 A\n", + "speed= 403.798260345 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.21, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#v\n", + "n=1000#rpm\n", + "ia=8#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i2=50#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb0=v-(ia-ish)*ra\n", + "eb=v-(i2-ish)*ra\n", + "n=eb*n/eb0\n", + "\n", + "#result\n", + "print \"speed when loaded=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when loaded= 966.21078037 rpm\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.22, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800#rpm\n", + "ia=100#A\n", + "v=230#V\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "ia2=25#A\n", + "ratio=0.45\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed at which motor runs=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor runs= 1940.37940379 rpm\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.23, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "#variable declaration\n", + "v=230.0#V\n", + "ra=0.5#ohm\n", + "rf=115.0#ohm\n", + "n1=1200#rpm\n", + "ia=2.5#A\n", + "n2=1120#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ra*ia\n", + "x=n2*eb1/n1\n", + "ia2=solve((v-ra*ia2)-x,ia2)\n", + "ia=ia2[0]+(v/rf)\n", + "input_m=v*ia\n", + "\n", + "#result\n", + "print \"line current=\",round(ia,1),\"A\"\n", + "print \"power input=\",round(input_m,1),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 35.0 A\n", + "power input= 8050.0 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.24, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=100.0#kW\n", + "n1=300#rpm\n", + "v=220.0#V\n", + "load=10.0#kW\n", + "ra=0.025#ohm\n", + "rf=60.0#ohm\n", + "vd=1.0#V\n", + "\n", + "#calculation\n", + "i=power*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra+2*vd\n", + "i=load*1000/v\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n1/eb\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 278.796797778 rpm\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.25, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by whih armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia2=ia-ish\n", + "eb0=v-ia2*ra\n", + "n0=n*eb0/v\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*n0/(eb0*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed of machine=\",math.floor(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of machine= 960.0 rpm\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.26, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ooutput=14.92#kW\n", + "n=1000#rpm\n", + "i=75#A\n", + "ra=0.25#ohm\n", + "ratio=0.20\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb_inst=eb1*(1-ratio)\n", + "ia_inst=(v-eb_inst)/ra\n", + "t_inst=9.55*eb_inst*ia_inst/n\n", + "ia2=i/(1-ratio)\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 93.75 A\n", + "speed= 1224.66216216 rpm\n" + ] + } + ], + "prompt_number": 191 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.27, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "i=4.0#A\n", + "n=700.0#rpm\n", + "rf=100.0#A\n", + "v2=6.0#V\n", + "i2=10.0#A\n", + "input_m=8.0#kW\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "il=input_m*1000/v\n", + "ia=il-ish\n", + "ra=v2/i2\n", + "eb0=v-ish*ra\n", + "eb=v-ia*ra\n", + "n=eb*n/eb0\n", + "ta=9.55*eb*ia/n\n", + "inpt=v*i\n", + "cu_loss=ish**2*ra\n", + "constant_loss=inpt-cu_loss\n", + "cu_loss_arm=ia**2*ra\n", + "total_loss=constant_loss+cu_loss_arm\n", + "output=input_m*1000-total_loss\n", + "efficiency=output/(input_m*1000)\n", + "print \n", + "#result\n", + "print \"speed on load=\",n,\"rpm\"\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "speed on load= 623.943661972 rpm\n", + "torque= 103.0636 N-m\n", + "efficiency= 79.2 %\n" + ] + } + ], + "prompt_number": 197 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.28, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "v=220#V\n", + "load=11#kW\n", + "inl=5#A\n", + "n_nl=1150#rpm\n", + "ra=0.5#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "input_nl=v*inl\n", + "ish=v/rsh\n", + "ia0=inl-ish\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "i=load*1000/v\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "total_loss=cu_loss_a+constant_loss\n", + "output=load*1000-total_loss\n", + "efficiency=output*100/(load*1000)\n", + "eb_nl=v-(ia0*ra)\n", + "eb=v-ia*ra\n", + "n=n_nl*eb/eb_nl\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"the speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque developed= 87.096 N-m\n", + "efficiency= 79.5361818182 %\n", + "the speed= 1031.57894737 rpm\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.29, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=250.0#V\n", + "ra=0.1#ohm\n", + "vb=3#V\n", + "rf=0.05#ohm\n", + "ia=80.0#A\n", + "n=600.0#rpm\n", + "i2=100.0#A\n", + "\n", + "#calculation\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-i2*(ra+rf)\n", + "n2=eb2*ia*n/(eb1*i2)\n", + "\n", + "#result\n", + "print \"speed when current is 100 A=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when current is 100 A= 473.949579832 rpm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.30, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "n=800.0#rpm\n", + "i=100.0#A\n", + "ra=0.1\n", + "ratio=1.0/2.0\n", + "#calculation\n", + "ia1=i*math.sqrt(ratio)\n", + "eb1=v-i*ra\n", + "eb2=v-ia1*ra\n", + "n2=eb2*i*n/(eb1*ia1)\n", + "#result\n", + "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when motor will run when developing half the torque= 1147.0 rpm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.31, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "n=600#rpm\n", + "ia=25#A\n", + "v=450#V\n", + "z=500\n", + "phi=1.7*0.01*math.pow(ia,0.5)\n", + "\n", + "#calculation\n", + "eb=n*phi*z*p/(60*a)\n", + "iara=v-eb\n", + "ra=iara/ia\n", + "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", + "eb2=v/2-i*ra\n", + "phi2=1.7*0.01*math.pow(i,0.5)\n", + "n2=eb2*phi*n/(eb*phi2)\n", + "\n", + "#result\n", + "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor will run= 372.0 rpm\n" + ] + } + ], + "prompt_number": 224 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.32, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "v=460.0#V\n", + "ra=0.5#ohm\n", + "\n", + "def f(ia,t):\n", + " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", + " return(n)\n", + "\n", + "n1=f(20.0,128.8)\n", + "n2=f(30.0,230.5)\n", + "n3=f(40.0,349.8)\n", + "n4=f(50.0,469.2)\n", + "T=[128.8,230.5,349.8,469.2]\n", + "N=[n1,n2,n3,n4]\n", + "a=plot(T,N)\n", + "xlabel(\"Torque(NM.m)\") \n", + "ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "output=5.968#kW\n", + "n=700#rpm\n", + "v1=500#V\n", + "n2=600#rpm\n", + "ra=3.5#ohm\n", + "loss=450#W\n", + "\n", + "#calculation\n", + "\n", + "def fp(i,v):\n", + " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", + " return(p)\n", + "\n", + "def fm(i,v):\n", + " m=((v1-i*ra)*i-loss)/1000\n", + " return(m)\n", + "\n", + "p1=fp(7.0,347.0)\n", + "p2=fp(10.5,393.0)\n", + "p3=fp(14.0,434.0)\n", + "p4=fp(27.5,468.0)\n", + "\n", + "m1=fm(7.0,347.8)\n", + "m2=fm(10.5,393.0)\n", + "m3=fm(14.0,434.0)\n", + "m4=fm(27.5,468.0)\n", + "\n", + "#plot\n", + "I=[7,10.5,14,27.5]\n", + "P=[p1,p2,p3,p4]\n", + "M=[m1,m2,m3,m4]\n", + "a=plot(I,P)\n", + "a=plot(I,M)\n", + "xlabel(\"Current\") \n", + "ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.34, Page Number:1022" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "i=3#A\n", + "ia=3.5#A\n", + "ib=4.5#A\n", + "\n", + "#calculation\n", + "loss=v*i\n", + "#B unexcited\n", + "loss1=v*(ia-i)\n", + "#B excited\n", + "loss2=v*(ib-i)\n", + "loss=loss2-loss1\n", + "\n", + "#result\n", + "print \"iron losses of B=\",loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "iron losses of B= 500.0 W\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.35, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.2#ohm\n", + "rf=110.0#ohm\n", + "ia=5.0#A\n", + "n=1500#rpm\n", + "i2=52.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i2-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=round(eb2*n/eb1,0)\n", + "input_nl=v*ia\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "cu_loss_l=ia2**2*ra\n", + "total_loss=constant_loss+cu_loss_l\n", + "input_l=v*i2\n", + "output=input_l-total_loss\n", + "tsh=9.55*output/n2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.36, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=5#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "ratio=0.03#percentage by which armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 994.0 rpm\n" + ] + } + ], + "prompt_number": 241 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.37, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ia=5#A\n", + "ra=0.22#A\n", + "rf=250#ohm\n", + "i=100#A\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia0=ia-ish\n", + "eb0=v-ia0*ra\n", + "cu_loss=ia0**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "cu_loss=ia**2*ra\n", + "total_loss=cu_loss+constant_loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "efficiency=output*100/input_m\n", + "per=(eb-eb0)*100/eb0\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"\n", + "print \"percentage change in speed=\",round(per,2),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 90.8 %\n", + "percentage change in speed= -4.19 %\n" + ] + } + ], + "prompt_number": 244 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.38, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "i=25#A\n", + "i2=50#A\n", + "ratio=0.03#percentage by which the armature reaction weakens field\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "vd=1\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ebh=v-ia1*ra-2*vd\n", + "ia2=i2-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n/(ebh*(1-ratio))\n", + "ta1=9.55*eb1*ia1/n\n", + "ta2=9.55*eb2*ia2/n2\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"torque in first case=\",ta1,\"N-m\"\n", + "print \"torque in second case=\",ta2,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1010.0 rpm\n", + "torque in first case= 57.11664 N-m\n", + "torque in second case= 110.3912768 N-m\n" + ] + } + ], + "prompt_number": 247 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.39, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "n1=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by which the armature reaction weakens field\n", + "eb1=250.0#V\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb2=v-(i-ish)*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "cu_loss=(ia-ish)**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "cu_loss_a=(i-ish)**2*ra\n", + "total_loss=constant_loss+cu_loss_a\n", + "inpt=v*i\n", + "output=inpt-total_loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 960.0 rpm\n", + "efficiency= 82.44 %\n" + ] + } + ], + "prompt_number": 254 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.40, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=250#V\n", + "z=120*8\n", + "a=4\n", + "phi=20*0.001#Wb\n", + "i=25#A\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "loss=810#W\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_shunt=v*ish\n", + "total_loss=loss+cu_loss+cu_loss_shunt\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"gross torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque= 70.288 N-m\n", + "useful torque= 60.2946209124 N-m\n", + "efficiency= 78.1936 %\n" + ] + } + ], + "prompt_number": 256 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.41, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "n=1150#rpm\n", + "p=4\n", + "a=2\n", + "z=620\n", + "ra=0.2#ohm\n", + "i=74.8#A\n", + "i2=3#A\n", + "v=230#V\n", + "#calculation\n", + "ia=i-i2\n", + "eb=v-ia*ra\n", + "phi=eb*a*60/(p*z*n)\n", + "ta=9.55*eb*ia/n\n", + "power=eb*ia\n", + "loss_rot=power-output*1000\n", + "input_m=v*i\n", + "total_loss=input_m-output*1000\n", + "per=total_loss*100/input_m\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi*1000,\"mWb\"\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"rotational losses=\",loss_rot,\"W\"\n", + "print \"total losses expressed as a percentage of power=\",per,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 9.07321178121 mWb\n", + "torque developed= 128.575818783 N-m\n", + "rotational losses= 562.952 W\n", + "total losses expressed as a percentage of power= 13.2759823297 %\n" + ] + } + ], + "prompt_number": 263 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.42, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=7.46#kW\n", + "v=250#V\n", + "i=5#A\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "\n", + "#calculation\n", + "input_m=v*i\n", + "ish=v/rf\n", + "ia=i-ish\n", + "cu_loss=v*ish\n", + "cu_loss_a=ra*ia**2\n", + "loss=input_m-cu_loss\n", + "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", + "i2=ia1[0]+ish\n", + "input_m1=v*i2\n", + "efficiency=output*100000/input_m1\n", + "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "output_a=input_a-(cu_loss+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 79.5621535016683 %\n", + "output power at which efficiency is maximum= 10.2179357944 kW\n" + ] + } + ], + "prompt_number": 271 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.43, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n2_by_n1=1.0/2.0\n", + "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", + "v2_by_v1=n2_by_n1*phi1_by_phi2\n", + "reduction_v=(1-v2_by_v1)*100\n", + "reduction_i=(1-ia2_by_ia1)*100\n", + "\n", + "#result\n", + "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", + "print \"percentage fall in the motor current=\",reduction_i,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in the motor terminal voltage= 75.0 %\n", + "percentage fall in the motor current= 50.0 %\n" + ] + } + ], + "prompt_number": 272 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.44, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=500#V\n", + "z=1200\n", + "phi=20*0.001#Wb\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "i=20#A\n", + "loss=900#W\n", + "a=2\n", + "#calculation\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_f=v*ish\n", + "total_loss=cu_loss+cu_loss_f+loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"useful torque=\",ta,\"N-m\"\n", + "print \"output=\",output/1000,\"Kw\"\n", + "print \"efficiency==\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "useful torque= 206.28 N-m\n", + "output= 7.938 Kw\n", + "efficiency== 79.38 %\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.45, Page Number:1027" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=37.3*1000#W\n", + "v=460#V\n", + "i=4#A\n", + "n=660#rpm\n", + "ra=0.3#ohm\n", + "rf=270#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "cu_loss=v*ish\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "input_a=loss=v*ia\n", + "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", + "i=ia1[0]+ish\n", + "eb1=v-(ia*ra)\n", + "eb2=v-(ia1[0]*ra)\n", + "n2=n*eb2/eb1\n", + "ia=math.sqrt((cu_loss+input_a)/ra)\n", + "\n", + "#result\n", + "print \"the current input=\",i,\"A\"\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"armature current at which efficiency is maximum=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the current input= 90.2860908863713 A\n", + "speed= 623.0 rpm\n", + "armature current at which efficiency is maximum= 78.3156008298 A\n" + ] + } + ], + "prompt_number": 280 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_1.ipynb new file mode 100644 index 00000000..f3eda54f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_1.ipynb @@ -0,0 +1,2343 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.1, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "r=0.5#ohm\n", + "i=20#A\n", + "\n", + "#calculation\n", + "#as generator \n", + "eg=v+i*r\n", + "#as motor\n", + "eb=v-i*r\n", + "\n", + "#result\n", + "print \"as generator:eg=\",eg,\"V\"\n", + "print \"as motor:eb=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "as generator:eg= 230.0 V\n", + "as motor:eb= 210.0 V\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.2, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia=Symbol('ia')\n", + "r=0.1#ohm\n", + "brush_drop=2#V\n", + "n=1000#rpm\n", + "i=100#A\n", + "v=250#V\n", + "n2=700#rpm\n", + "\n", + "#calculations\n", + "rl=v/i\n", + "eg1=v+i*r+brush_drop\n", + "eg2=eg1*n2/n\n", + "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", + "\n", + "#result\n", + "print \"current delivered to the load=\",ia[0],\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to the load= 69.7692307692308 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.3, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.8#ohm\n", + "rf=200#ohm\n", + "output=7.46#kW\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=output*1000/efficiency\n", + "im=output*1000/(efficiency*v)\n", + "ish=v/rf\n", + "ia=im-ish\n", + "eb=v-ia*ra\n", + "\n", + "#results\n", + "print \"back emf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "back emf= 425.642780749 V\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.4, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25#kW\n", + "v=250#V\n", + "ra=0.06#ohm\n", + "rf=100#ohm\n", + "\n", + "#calculations\n", + "#as generator\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"\n", + "\n", + "#as motor\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "As generator: power= 26.12424 kW\n", + "As generator: power= 23.92376 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.5, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=32\n", + "v=200.0#V\n", + "i=12.0#A\n", + "ra=2.0#ohm\n", + "rf=200.0#ohm\n", + "n=1000.0#rpm\n", + "i2=5.0#A\n", + "#calculations\n", + "ia=i+v/rf\n", + "eg=v+ia*ra\n", + "phi=eg*a*60/(z*n*p)\n", + "#as motor\n", + "ia=i2-v/rf\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi,\"wb\"\n", + "print \"speed of the machine=\",math.ceil(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.42375 wb\n", + "speed of the machine= 850.0 rpm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.6, Page Number:1002" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=110#A\n", + "v=480#V\n", + "ra=0.2#ohm\n", + "z=864\n", + "p=a=6\n", + "phi=0.05#Wb\n", + "\n", + "#calculations\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 636.0 rpm\n", + "the gross torque= 755.568 N-m\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.7, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "z=782\n", + "ra=rf=0.5#ohm\n", + "ia=40#A\n", + "phi=25*0.001#Wb\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 705.0 rpm\n", + "the gross torque= 248.676 N-m\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.8, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb=250.0#V\n", + "n=1500.0#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "pm=eb*ia\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"machanical power=\",pm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 79.5833333333 N-m\n", + "machanical power= 12500.0 W\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.9, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "z=800\n", + "load=8.2#kW\n", + "ia=45#A\n", + "phi=25*0.001#Wb\n", + "ra=0.6#ohm\n", + "a=p/2\n", + "\n", + "#calculation\n", + "ta=0.159*phi*z*ia*p/a\n", + "eb=v-ia*ra\n", + "n=eb*a/(phi*z*p)\n", + "tsh=load*1000/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"developed torque=\",ta,\"N-m\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 286.2 N-m\n", + "shaft torque= 270.618131415 N-m\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.10, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "n=500.0#rpm\n", + "i=50.0#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculation\n", + "ia2=2*i\n", + "fb1=v-(i*ra)\n", + "eb2=v-(ia2*ra)\n", + "n2=eb2*n/fb1\n", + "#result\n", + "print \"speed when torque is doubled=\",n2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when torque is doubled= 476.19047619 N-m\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.11, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=500#V\n", + "load=37.3#kW\n", + "n=1000#rpm\n", + "efficiency=0.90\n", + "ra=0.24#ohm\n", + "vd=2#v\n", + "i=1.8#A\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "il=input_m/v\n", + "tsh=9.55*load*1000/n\n", + "il=ratio*il\n", + "ia=il-i\n", + "r=solve(ia*(r+ra)+vd-v,r)\n", + "\n", + "#result\n", + "print \"full-load line current=\",il,\"A\"\n", + "print \"full-load shaft torque\",tsh,\"N-m\"\n", + "print \"total resistance=\",r[0],\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load line current= 124.333333333 A\n", + "full-load shaft torque 356.215 N-m\n", + "total resistance= 3.82420021762787 ohm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.12, Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "v=220#V\n", + "z=540\n", + "i=32#A\n", + "output=5.595#kW\n", + "ra=0.09#ohm\n", + "i_f=1#A\n", + "phi=30*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=i-i_f\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(phi*z*p)\n", + "tsh=9.55*output/n\n", + "\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "print \"torque developed=\",tsh*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 804.481481481 rpm\n", + "torque developed= 66.4182473183 N-m\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(a), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "load=20.0#kW\n", + "i=5.0#A\n", + "ra=0.04#ohm\n", + "phi=0.04#Wb\n", + "z=160\n", + "il=95.0#A\n", + "inl=9.0#A\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "#no load\n", + "ea0=v-(inl-i)*ra\n", + "n0=ea0*a*60/(phi*z*p)\n", + "#load\n", + "ea=v-(il-i)*ra\n", + "n=ea*n0/ea0\n", + "\n", + "#result\n", + "print \"no-load speed=\",n0,\"rpm\"\n", + "print \"load speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load speed= 1030.5 rpm\n", + "load speed= 1014.375 rpm\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(b), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=6\n", + "i=400#A\n", + "n=350#rpm\n", + "phi=80*0.001#Wb\n", + "z=600*2\n", + "loss=0.03#percentage\n", + "\n", + "#calculation\n", + "e=phi*z*n*p/(60*a)\n", + "pa=e*i\n", + "t=pa/(2*3.14*n/60)\n", + "t_net=0.97*t\n", + "bhp=t_net*36.67*0.001/0.746\n", + "#result\n", + "print \"brake-horse-power\",bhp,\"HP\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "brake-horse-power 291.551578696 HP\n" + ] + } + ], + "prompt_number": 66 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(c), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=774\n", + "phi=24*0.001#Wb\n", + "ia=50#A\n", + "a=2\n", + "#calculations\n", + "t=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 295.3584 N-m\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(d), Page Number:1005" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "ih=v/rf\n", + "pi=v*i\n", + "cu_loss_f=cu_loss=v*ih\n", + "output=v*il\n", + "cu_loss_a=(il+ih)**2*ra\n", + "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(e), Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delcration\n", + "ia=40#A\n", + "v=220#V\n", + "n=800#rpm\n", + "ra=0.2#ohm\n", + "rf=0.1#ohm\n", + "loss=0.5#kW\n", + "\n", + "#calculations\n", + "eb=v-ia*(ra+rf)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*(ra+rf)\n", + "total_loss=cu_loss+loss*1000\n", + "input_m=v*ia\n", + "output=input_m-total_loss\n", + "\n", + "#result\n", + "print \"output of the motor=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output of the motor= 7.82 kW\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.14, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=400.0#N\n", + "d=10.0#cm\n", + "n=840#rpm\n", + "v=220.0#V\n", + "n1=1800#rpm\n", + "efficiency=.80\n", + "d2=24.0#cm\n", + "\n", + "#calculations\n", + "tsh=f*d*0.01/2\n", + "output=tsh*2*3.14*n/60\n", + "input_m=output/efficiency\n", + "i=input_m/v\n", + "d1=n*d2/n1\n", + "\n", + "#calculation\n", + "print \"current taken by the motor=\",round(i),\"A\"\n", + "print \"size of motor pulley=\",d1,\"cm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the motor= 10.0 A\n", + "size of motor pulley= 11.2 cm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.15, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "p=4\n", + "z=280\n", + "ia=45.0#A\n", + "phi=18*0.001#Wb\n", + "ra=0.5+0.3#ohm\n", + "loss=800.0#W\n", + "d=0.41\n", + "a=4\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=eb*60*a/(phi*z*p*4)\n", + "inpt=v*ia\n", + "cu_loss=ia**2*ra\n", + "total_loss=loss+cu_loss\n", + "output=inpt-total_loss\n", + "tsh=9.55*output/n\n", + "f=tsh*2/d\n", + "\n", + "#result\n", + "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pull at the rim of the pulley= 628.016180845 N-m\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.16, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=240#V\n", + "output=11.19#kW\n", + "n=1000#rpm\n", + "ia=50#A\n", + "i=1#A\n", + "z=540\n", + "ra=0.1#ohm\n", + "vd=1#V\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "tsh=9.55*output*1000/n\n", + "phi=eb*60*a*1000/(z*n*p)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "brush_loss=ia*2\n", + "power=input_a-(cu_loss+brush_loss)\n", + "rotational_loss=power-output*1000\n", + "input_m=v*(ia+i)\n", + "efficiency=output*1000/input_m\n", + "\n", + "#result\n", + "print \"total torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"flux/pole=\",phi,\"mWb\"\n", + "print \"rotational losses=\",rotational_loss,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "total torque= 112.2125 N-m\n", + "useful torque= 106.8645 N-m\n", + "flux/pole= 13.0555555556 mWb\n", + "rotational losses= 460.0 W\n", + "efficiency= 91.4215686275 %\n" + ] + } + ], + "prompt_number": 106 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.17, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#v\n", + "n=500.0#rpm\n", + "i=40.0#A\n", + "i2=30.0#A\n", + "ra=0.8#ohm\n", + "\n", + "#calculation\n", + "t2_by_t1=i2**2/i**2\n", + "change=(1-t2_by_t1)*100#percentage\n", + "eb1=v-i*ra\n", + "eb2=v-i2*ra\n", + "n2=eb2*i*n/(eb1*i2)\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"percentage change in torque=\",change,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 679.127725857 rpm\n", + "percentage change in torque= 43.75 %\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.18, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#V\n", + "output=55.95#kW\n", + "n=750#rpm\n", + "I=252.8#kg-m2\n", + "ia1=1.4\n", + "ia2=1.8\n", + "\n", + "#calculations\n", + "ia=(ia1+ia2)/2\n", + "n=n/60.0\n", + "tsh=output*1000/(2*3.14*n)\n", + "torque_avg=(ia-1)*tsh\n", + "dt=(I*2*3.14*n)/torque_avg\n", + "\n", + "#result\n", + "print \"approximate time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "approximate time to attain full speed= 46.4050282991 s\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.19, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "v=400.0#V\n", + "n=400.0#rpm\n", + "i=40.0#A\n", + "I=7.5#kg-m2\n", + "ratio=1.2\n", + "\n", + "#calculations\n", + "n=n/60\n", + "t=output*1000/(2*3.14*n)\n", + "torque=(ratio-1)*t\n", + "dt=(I*2*3.14*n)/torque\n", + "\n", + "print \"time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time to attain full speed= 4.4055406613 s\n" + ] + } + ], + "prompt_number": 138 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.20, Page Number:1009" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=944\n", + "phi=34.6*0.001#Wb\n", + "ta=209.0#N-m\n", + "v=500.0#V\n", + "ra=3.0#ohm\n", + "a=2\n", + "#calculation\n", + "ia=ta/(0.159*phi*z*(p/a))\n", + "ea=v-ia*ra\n", + "n=ea/(phi*z*(p/a))\n", + "\n", + "#result\n", + "print \"line current=\",ia,\"A\"\n", + "print \"speed=\",n*60,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 20.1219966813 A\n", + "speed= 403.798260345 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.21, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#v\n", + "n=1000#rpm\n", + "ia=8#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i2=50#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb0=v-(ia-ish)*ra\n", + "eb=v-(i2-ish)*ra\n", + "n=eb*n/eb0\n", + "\n", + "#result\n", + "print \"speed when loaded=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when loaded= 966.21078037 rpm\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.22, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800#rpm\n", + "ia=100#A\n", + "v=230#V\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "ia2=25#A\n", + "ratio=0.45\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed at which motor runs=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor runs= 1940.37940379 rpm\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.23, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "#variable declaration\n", + "v=230.0#V\n", + "ra=0.5#ohm\n", + "rf=115.0#ohm\n", + "n1=1200#rpm\n", + "ia=2.5#A\n", + "n2=1120#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ra*ia\n", + "x=n2*eb1/n1\n", + "ia2=solve((v-ra*ia2)-x,ia2)\n", + "ia=ia2[0]+(v/rf)\n", + "input_m=v*ia\n", + "\n", + "#result\n", + "print \"line current=\",round(ia,1),\"A\"\n", + "print \"power input=\",round(input_m,1),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 35.0 A\n", + "power input= 8050.0 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.24, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=100.0#kW\n", + "n1=300#rpm\n", + "v=220.0#V\n", + "load=10.0#kW\n", + "ra=0.025#ohm\n", + "rf=60.0#ohm\n", + "vd=1.0#V\n", + "\n", + "#calculation\n", + "i=power*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra+2*vd\n", + "i=load*1000/v\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n1/eb\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 278.796797778 rpm\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.25, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by whih armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia2=ia-ish\n", + "eb0=v-ia2*ra\n", + "n0=n*eb0/v\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*n0/(eb0*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed of machine=\",math.floor(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of machine= 960.0 rpm\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.26, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ooutput=14.92#kW\n", + "n=1000#rpm\n", + "i=75#A\n", + "ra=0.25#ohm\n", + "ratio=0.20\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb_inst=eb1*(1-ratio)\n", + "ia_inst=(v-eb_inst)/ra\n", + "t_inst=9.55*eb_inst*ia_inst/n\n", + "ia2=i/(1-ratio)\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 93.75 A\n", + "speed= 1224.66216216 rpm\n" + ] + } + ], + "prompt_number": 191 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.27, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "i=4.0#A\n", + "n=700.0#rpm\n", + "rf=100.0#A\n", + "v2=6.0#V\n", + "i2=10.0#A\n", + "input_m=8.0#kW\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "il=input_m*1000/v\n", + "ia=il-ish\n", + "ra=v2/i2\n", + "eb0=v-ish*ra\n", + "eb=v-ia*ra\n", + "n=eb*n/eb0\n", + "ta=9.55*eb*ia/n\n", + "inpt=v*i\n", + "cu_loss=ish**2*ra\n", + "constant_loss=inpt-cu_loss\n", + "cu_loss_arm=ia**2*ra\n", + "total_loss=constant_loss+cu_loss_arm\n", + "output=input_m*1000-total_loss\n", + "efficiency=output/(input_m*1000)\n", + "print \n", + "#result\n", + "print \"speed on load=\",n,\"rpm\"\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "speed on load= 623.943661972 rpm\n", + "torque= 103.0636 N-m\n", + "efficiency= 79.2 %\n" + ] + } + ], + "prompt_number": 197 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.28, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "v=220#V\n", + "load=11#kW\n", + "inl=5#A\n", + "n_nl=1150#rpm\n", + "ra=0.5#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "input_nl=v*inl\n", + "ish=v/rsh\n", + "ia0=inl-ish\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "i=load*1000/v\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "total_loss=cu_loss_a+constant_loss\n", + "output=load*1000-total_loss\n", + "efficiency=output*100/(load*1000)\n", + "eb_nl=v-(ia0*ra)\n", + "eb=v-ia*ra\n", + "n=n_nl*eb/eb_nl\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"the speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque developed= 87.096 N-m\n", + "efficiency= 79.5361818182 %\n", + "the speed= 1031.57894737 rpm\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.29, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=250.0#V\n", + "ra=0.1#ohm\n", + "vb=3#V\n", + "rf=0.05#ohm\n", + "ia=80.0#A\n", + "n=600.0#rpm\n", + "i2=100.0#A\n", + "\n", + "#calculation\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-i2*(ra+rf)\n", + "n2=eb2*ia*n/(eb1*i2)\n", + "\n", + "#result\n", + "print \"speed when current is 100 A=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when current is 100 A= 473.949579832 rpm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.30, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "n=800.0#rpm\n", + "i=100.0#A\n", + "ra=0.1\n", + "ratio=1.0/2.0\n", + "#calculation\n", + "ia1=i*math.sqrt(ratio)\n", + "eb1=v-i*ra\n", + "eb2=v-ia1*ra\n", + "n2=eb2*i*n/(eb1*ia1)\n", + "#result\n", + "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when motor will run when developing half the torque= 1147.0 rpm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.31, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "n=600#rpm\n", + "ia=25#A\n", + "v=450#V\n", + "z=500\n", + "phi=1.7*0.01*math.pow(ia,0.5)\n", + "\n", + "#calculation\n", + "eb=n*phi*z*p/(60*a)\n", + "iara=v-eb\n", + "ra=iara/ia\n", + "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", + "eb2=v/2-i*ra\n", + "phi2=1.7*0.01*math.pow(i,0.5)\n", + "n2=eb2*phi*n/(eb*phi2)\n", + "\n", + "#result\n", + "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor will run= 372.0 rpm\n" + ] + } + ], + "prompt_number": 224 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.32, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "v=460.0#V\n", + "ra=0.5#ohm\n", + "\n", + "def f(ia,t):\n", + " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", + " return(n)\n", + "\n", + "n1=f(20.0,128.8)\n", + "n2=f(30.0,230.5)\n", + "n3=f(40.0,349.8)\n", + "n4=f(50.0,469.2)\n", + "T=[128.8,230.5,349.8,469.2]\n", + "N=[n1,n2,n3,n4]\n", + "a=plot(T,N)\n", + "xlabel(\"Torque(NM.m)\") \n", + "ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "output=5.968#kW\n", + "n=700#rpm\n", + "v1=500#V\n", + "n2=600#rpm\n", + "ra=3.5#ohm\n", + "loss=450#W\n", + "\n", + "#calculation\n", + "\n", + "def fp(i,v):\n", + " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", + " return(p)\n", + "\n", + "def fm(i,v):\n", + " m=((v1-i*ra)*i-loss)/1000\n", + " return(m)\n", + "\n", + "p1=fp(7.0,347.0)\n", + "p2=fp(10.5,393.0)\n", + "p3=fp(14.0,434.0)\n", + "p4=fp(27.5,468.0)\n", + "\n", + "m1=fm(7.0,347.8)\n", + "m2=fm(10.5,393.0)\n", + "m3=fm(14.0,434.0)\n", + "m4=fm(27.5,468.0)\n", + "\n", + "#plot\n", + "I=[7,10.5,14,27.5]\n", + "P=[p1,p2,p3,p4]\n", + "M=[m1,m2,m3,m4]\n", + "a=plot(I,P)\n", + "a=plot(I,M)\n", + "xlabel(\"Current\") \n", + "ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.34, Page Number:1022" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "i=3#A\n", + "ia=3.5#A\n", + "ib=4.5#A\n", + "\n", + "#calculation\n", + "loss=v*i\n", + "#B unexcited\n", + "loss1=v*(ia-i)\n", + "#B excited\n", + "loss2=v*(ib-i)\n", + "loss=loss2-loss1\n", + "\n", + "#result\n", + "print \"iron losses of B=\",loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "iron losses of B= 500.0 W\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.35, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.2#ohm\n", + "rf=110.0#ohm\n", + "ia=5.0#A\n", + "n=1500#rpm\n", + "i2=52.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i2-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=round(eb2*n/eb1,0)\n", + "input_nl=v*ia\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "cu_loss_l=ia2**2*ra\n", + "total_loss=constant_loss+cu_loss_l\n", + "input_l=v*i2\n", + "output=input_l-total_loss\n", + "tsh=9.55*output/n2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.36, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=5#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "ratio=0.03#percentage by which armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 994.0 rpm\n" + ] + } + ], + "prompt_number": 241 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.37, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ia=5#A\n", + "ra=0.22#A\n", + "rf=250#ohm\n", + "i=100#A\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia0=ia-ish\n", + "eb0=v-ia0*ra\n", + "cu_loss=ia0**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "cu_loss=ia**2*ra\n", + "total_loss=cu_loss+constant_loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "efficiency=output*100/input_m\n", + "per=(eb-eb0)*100/eb0\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"\n", + "print \"percentage change in speed=\",round(per,2),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 90.8 %\n", + "percentage change in speed= -4.19 %\n" + ] + } + ], + "prompt_number": 244 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.38, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "i=25#A\n", + "i2=50#A\n", + "ratio=0.03#percentage by which the armature reaction weakens field\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "vd=1\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ebh=v-ia1*ra-2*vd\n", + "ia2=i2-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n/(ebh*(1-ratio))\n", + "ta1=9.55*eb1*ia1/n\n", + "ta2=9.55*eb2*ia2/n2\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"torque in first case=\",ta1,\"N-m\"\n", + "print \"torque in second case=\",ta2,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1010.0 rpm\n", + "torque in first case= 57.11664 N-m\n", + "torque in second case= 110.3912768 N-m\n" + ] + } + ], + "prompt_number": 247 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.39, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "n1=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by which the armature reaction weakens field\n", + "eb1=250.0#V\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb2=v-(i-ish)*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "cu_loss=(ia-ish)**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "cu_loss_a=(i-ish)**2*ra\n", + "total_loss=constant_loss+cu_loss_a\n", + "inpt=v*i\n", + "output=inpt-total_loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 960.0 rpm\n", + "efficiency= 82.44 %\n" + ] + } + ], + "prompt_number": 254 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.40, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=250#V\n", + "z=120*8\n", + "a=4\n", + "phi=20*0.001#Wb\n", + "i=25#A\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "loss=810#W\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_shunt=v*ish\n", + "total_loss=loss+cu_loss+cu_loss_shunt\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"gross torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque= 70.288 N-m\n", + "useful torque= 60.2946209124 N-m\n", + "efficiency= 78.1936 %\n" + ] + } + ], + "prompt_number": 256 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.41, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "n=1150#rpm\n", + "p=4\n", + "a=2\n", + "z=620\n", + "ra=0.2#ohm\n", + "i=74.8#A\n", + "i2=3#A\n", + "v=230#V\n", + "#calculation\n", + "ia=i-i2\n", + "eb=v-ia*ra\n", + "phi=eb*a*60/(p*z*n)\n", + "ta=9.55*eb*ia/n\n", + "power=eb*ia\n", + "loss_rot=power-output*1000\n", + "input_m=v*i\n", + "total_loss=input_m-output*1000\n", + "per=total_loss*100/input_m\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi*1000,\"mWb\"\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"rotational losses=\",loss_rot,\"W\"\n", + "print \"total losses expressed as a percentage of power=\",per,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 9.07321178121 mWb\n", + "torque developed= 128.575818783 N-m\n", + "rotational losses= 562.952 W\n", + "total losses expressed as a percentage of power= 13.2759823297 %\n" + ] + } + ], + "prompt_number": 263 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.42, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=7.46#kW\n", + "v=250#V\n", + "i=5#A\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "\n", + "#calculation\n", + "input_m=v*i\n", + "ish=v/rf\n", + "ia=i-ish\n", + "cu_loss=v*ish\n", + "cu_loss_a=ra*ia**2\n", + "loss=input_m-cu_loss\n", + "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", + "i2=ia1[0]+ish\n", + "input_m1=v*i2\n", + "efficiency=output*100000/input_m1\n", + "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "output_a=input_a-(cu_loss+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 79.5621535016683 %\n", + "output power at which efficiency is maximum= 10.2179357944 kW\n" + ] + } + ], + "prompt_number": 271 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.43, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n2_by_n1=1.0/2.0\n", + "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", + "v2_by_v1=n2_by_n1*phi1_by_phi2\n", + "reduction_v=(1-v2_by_v1)*100\n", + "reduction_i=(1-ia2_by_ia1)*100\n", + "\n", + "#result\n", + "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", + "print \"percentage fall in the motor current=\",reduction_i,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in the motor terminal voltage= 75.0 %\n", + "percentage fall in the motor current= 50.0 %\n" + ] + } + ], + "prompt_number": 272 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.44, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=500#V\n", + "z=1200\n", + "phi=20*0.001#Wb\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "i=20#A\n", + "loss=900#W\n", + "a=2\n", + "#calculation\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_f=v*ish\n", + "total_loss=cu_loss+cu_loss_f+loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"useful torque=\",ta,\"N-m\"\n", + "print \"output=\",output/1000,\"Kw\"\n", + "print \"efficiency==\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "useful torque= 206.28 N-m\n", + "output= 7.938 Kw\n", + "efficiency== 79.38 %\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.45, Page Number:1027" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=37.3*1000#W\n", + "v=460#V\n", + "i=4#A\n", + "n=660#rpm\n", + "ra=0.3#ohm\n", + "rf=270#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "cu_loss=v*ish\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "input_a=loss=v*ia\n", + "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", + "i=ia1[0]+ish\n", + "eb1=v-(ia*ra)\n", + "eb2=v-(ia1[0]*ra)\n", + "n2=n*eb2/eb1\n", + "ia=math.sqrt((cu_loss+input_a)/ra)\n", + "\n", + "#result\n", + "print \"the current input=\",i,\"A\"\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"armature current at which efficiency is maximum=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the current input= 90.2860908863713 A\n", + "speed= 623.0 rpm\n", + "armature current at which efficiency is maximum= 78.3156008298 A\n" + ] + } + ], + "prompt_number": 280 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_2.ipynb new file mode 100644 index 00000000..f3eda54f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_2.ipynb @@ -0,0 +1,2343 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.1, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "r=0.5#ohm\n", + "i=20#A\n", + "\n", + "#calculation\n", + "#as generator \n", + "eg=v+i*r\n", + "#as motor\n", + "eb=v-i*r\n", + "\n", + "#result\n", + "print \"as generator:eg=\",eg,\"V\"\n", + "print \"as motor:eb=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "as generator:eg= 230.0 V\n", + "as motor:eb= 210.0 V\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.2, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia=Symbol('ia')\n", + "r=0.1#ohm\n", + "brush_drop=2#V\n", + "n=1000#rpm\n", + "i=100#A\n", + "v=250#V\n", + "n2=700#rpm\n", + "\n", + "#calculations\n", + "rl=v/i\n", + "eg1=v+i*r+brush_drop\n", + "eg2=eg1*n2/n\n", + "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", + "\n", + "#result\n", + "print \"current delivered to the load=\",ia[0],\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to the load= 69.7692307692308 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.3, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.8#ohm\n", + "rf=200#ohm\n", + "output=7.46#kW\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=output*1000/efficiency\n", + "im=output*1000/(efficiency*v)\n", + "ish=v/rf\n", + "ia=im-ish\n", + "eb=v-ia*ra\n", + "\n", + "#results\n", + "print \"back emf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "back emf= 425.642780749 V\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.4, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25#kW\n", + "v=250#V\n", + "ra=0.06#ohm\n", + "rf=100#ohm\n", + "\n", + "#calculations\n", + "#as generator\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"\n", + "\n", + "#as motor\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "As generator: power= 26.12424 kW\n", + "As generator: power= 23.92376 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.5, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=32\n", + "v=200.0#V\n", + "i=12.0#A\n", + "ra=2.0#ohm\n", + "rf=200.0#ohm\n", + "n=1000.0#rpm\n", + "i2=5.0#A\n", + "#calculations\n", + "ia=i+v/rf\n", + "eg=v+ia*ra\n", + "phi=eg*a*60/(z*n*p)\n", + "#as motor\n", + "ia=i2-v/rf\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi,\"wb\"\n", + "print \"speed of the machine=\",math.ceil(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.42375 wb\n", + "speed of the machine= 850.0 rpm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.6, Page Number:1002" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=110#A\n", + "v=480#V\n", + "ra=0.2#ohm\n", + "z=864\n", + "p=a=6\n", + "phi=0.05#Wb\n", + "\n", + "#calculations\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 636.0 rpm\n", + "the gross torque= 755.568 N-m\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.7, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "z=782\n", + "ra=rf=0.5#ohm\n", + "ia=40#A\n", + "phi=25*0.001#Wb\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 705.0 rpm\n", + "the gross torque= 248.676 N-m\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.8, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb=250.0#V\n", + "n=1500.0#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "pm=eb*ia\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"machanical power=\",pm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 79.5833333333 N-m\n", + "machanical power= 12500.0 W\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.9, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "z=800\n", + "load=8.2#kW\n", + "ia=45#A\n", + "phi=25*0.001#Wb\n", + "ra=0.6#ohm\n", + "a=p/2\n", + "\n", + "#calculation\n", + "ta=0.159*phi*z*ia*p/a\n", + "eb=v-ia*ra\n", + "n=eb*a/(phi*z*p)\n", + "tsh=load*1000/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"developed torque=\",ta,\"N-m\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 286.2 N-m\n", + "shaft torque= 270.618131415 N-m\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.10, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "n=500.0#rpm\n", + "i=50.0#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculation\n", + "ia2=2*i\n", + "fb1=v-(i*ra)\n", + "eb2=v-(ia2*ra)\n", + "n2=eb2*n/fb1\n", + "#result\n", + "print \"speed when torque is doubled=\",n2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when torque is doubled= 476.19047619 N-m\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.11, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=500#V\n", + "load=37.3#kW\n", + "n=1000#rpm\n", + "efficiency=0.90\n", + "ra=0.24#ohm\n", + "vd=2#v\n", + "i=1.8#A\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "il=input_m/v\n", + "tsh=9.55*load*1000/n\n", + "il=ratio*il\n", + "ia=il-i\n", + "r=solve(ia*(r+ra)+vd-v,r)\n", + "\n", + "#result\n", + "print \"full-load line current=\",il,\"A\"\n", + "print \"full-load shaft torque\",tsh,\"N-m\"\n", + "print \"total resistance=\",r[0],\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load line current= 124.333333333 A\n", + "full-load shaft torque 356.215 N-m\n", + "total resistance= 3.82420021762787 ohm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.12, Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "v=220#V\n", + "z=540\n", + "i=32#A\n", + "output=5.595#kW\n", + "ra=0.09#ohm\n", + "i_f=1#A\n", + "phi=30*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=i-i_f\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(phi*z*p)\n", + "tsh=9.55*output/n\n", + "\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "print \"torque developed=\",tsh*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 804.481481481 rpm\n", + "torque developed= 66.4182473183 N-m\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(a), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "load=20.0#kW\n", + "i=5.0#A\n", + "ra=0.04#ohm\n", + "phi=0.04#Wb\n", + "z=160\n", + "il=95.0#A\n", + "inl=9.0#A\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "#no load\n", + "ea0=v-(inl-i)*ra\n", + "n0=ea0*a*60/(phi*z*p)\n", + "#load\n", + "ea=v-(il-i)*ra\n", + "n=ea*n0/ea0\n", + "\n", + "#result\n", + "print \"no-load speed=\",n0,\"rpm\"\n", + "print \"load speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load speed= 1030.5 rpm\n", + "load speed= 1014.375 rpm\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(b), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=6\n", + "i=400#A\n", + "n=350#rpm\n", + "phi=80*0.001#Wb\n", + "z=600*2\n", + "loss=0.03#percentage\n", + "\n", + "#calculation\n", + "e=phi*z*n*p/(60*a)\n", + "pa=e*i\n", + "t=pa/(2*3.14*n/60)\n", + "t_net=0.97*t\n", + "bhp=t_net*36.67*0.001/0.746\n", + "#result\n", + "print \"brake-horse-power\",bhp,\"HP\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "brake-horse-power 291.551578696 HP\n" + ] + } + ], + "prompt_number": 66 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(c), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=774\n", + "phi=24*0.001#Wb\n", + "ia=50#A\n", + "a=2\n", + "#calculations\n", + "t=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 295.3584 N-m\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(d), Page Number:1005" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "ih=v/rf\n", + "pi=v*i\n", + "cu_loss_f=cu_loss=v*ih\n", + "output=v*il\n", + "cu_loss_a=(il+ih)**2*ra\n", + "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(e), Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delcration\n", + "ia=40#A\n", + "v=220#V\n", + "n=800#rpm\n", + "ra=0.2#ohm\n", + "rf=0.1#ohm\n", + "loss=0.5#kW\n", + "\n", + "#calculations\n", + "eb=v-ia*(ra+rf)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*(ra+rf)\n", + "total_loss=cu_loss+loss*1000\n", + "input_m=v*ia\n", + "output=input_m-total_loss\n", + "\n", + "#result\n", + "print \"output of the motor=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output of the motor= 7.82 kW\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.14, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=400.0#N\n", + "d=10.0#cm\n", + "n=840#rpm\n", + "v=220.0#V\n", + "n1=1800#rpm\n", + "efficiency=.80\n", + "d2=24.0#cm\n", + "\n", + "#calculations\n", + "tsh=f*d*0.01/2\n", + "output=tsh*2*3.14*n/60\n", + "input_m=output/efficiency\n", + "i=input_m/v\n", + "d1=n*d2/n1\n", + "\n", + "#calculation\n", + "print \"current taken by the motor=\",round(i),\"A\"\n", + "print \"size of motor pulley=\",d1,\"cm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the motor= 10.0 A\n", + "size of motor pulley= 11.2 cm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.15, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "p=4\n", + "z=280\n", + "ia=45.0#A\n", + "phi=18*0.001#Wb\n", + "ra=0.5+0.3#ohm\n", + "loss=800.0#W\n", + "d=0.41\n", + "a=4\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=eb*60*a/(phi*z*p*4)\n", + "inpt=v*ia\n", + "cu_loss=ia**2*ra\n", + "total_loss=loss+cu_loss\n", + "output=inpt-total_loss\n", + "tsh=9.55*output/n\n", + "f=tsh*2/d\n", + "\n", + "#result\n", + "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pull at the rim of the pulley= 628.016180845 N-m\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.16, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=240#V\n", + "output=11.19#kW\n", + "n=1000#rpm\n", + "ia=50#A\n", + "i=1#A\n", + "z=540\n", + "ra=0.1#ohm\n", + "vd=1#V\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "tsh=9.55*output*1000/n\n", + "phi=eb*60*a*1000/(z*n*p)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "brush_loss=ia*2\n", + "power=input_a-(cu_loss+brush_loss)\n", + "rotational_loss=power-output*1000\n", + "input_m=v*(ia+i)\n", + "efficiency=output*1000/input_m\n", + "\n", + "#result\n", + "print \"total torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"flux/pole=\",phi,\"mWb\"\n", + "print \"rotational losses=\",rotational_loss,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "total torque= 112.2125 N-m\n", + "useful torque= 106.8645 N-m\n", + "flux/pole= 13.0555555556 mWb\n", + "rotational losses= 460.0 W\n", + "efficiency= 91.4215686275 %\n" + ] + } + ], + "prompt_number": 106 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.17, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#v\n", + "n=500.0#rpm\n", + "i=40.0#A\n", + "i2=30.0#A\n", + "ra=0.8#ohm\n", + "\n", + "#calculation\n", + "t2_by_t1=i2**2/i**2\n", + "change=(1-t2_by_t1)*100#percentage\n", + "eb1=v-i*ra\n", + "eb2=v-i2*ra\n", + "n2=eb2*i*n/(eb1*i2)\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"percentage change in torque=\",change,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 679.127725857 rpm\n", + "percentage change in torque= 43.75 %\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.18, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#V\n", + "output=55.95#kW\n", + "n=750#rpm\n", + "I=252.8#kg-m2\n", + "ia1=1.4\n", + "ia2=1.8\n", + "\n", + "#calculations\n", + "ia=(ia1+ia2)/2\n", + "n=n/60.0\n", + "tsh=output*1000/(2*3.14*n)\n", + "torque_avg=(ia-1)*tsh\n", + "dt=(I*2*3.14*n)/torque_avg\n", + "\n", + "#result\n", + "print \"approximate time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "approximate time to attain full speed= 46.4050282991 s\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.19, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "v=400.0#V\n", + "n=400.0#rpm\n", + "i=40.0#A\n", + "I=7.5#kg-m2\n", + "ratio=1.2\n", + "\n", + "#calculations\n", + "n=n/60\n", + "t=output*1000/(2*3.14*n)\n", + "torque=(ratio-1)*t\n", + "dt=(I*2*3.14*n)/torque\n", + "\n", + "print \"time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time to attain full speed= 4.4055406613 s\n" + ] + } + ], + "prompt_number": 138 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.20, Page Number:1009" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=944\n", + "phi=34.6*0.001#Wb\n", + "ta=209.0#N-m\n", + "v=500.0#V\n", + "ra=3.0#ohm\n", + "a=2\n", + "#calculation\n", + "ia=ta/(0.159*phi*z*(p/a))\n", + "ea=v-ia*ra\n", + "n=ea/(phi*z*(p/a))\n", + "\n", + "#result\n", + "print \"line current=\",ia,\"A\"\n", + "print \"speed=\",n*60,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 20.1219966813 A\n", + "speed= 403.798260345 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.21, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#v\n", + "n=1000#rpm\n", + "ia=8#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i2=50#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb0=v-(ia-ish)*ra\n", + "eb=v-(i2-ish)*ra\n", + "n=eb*n/eb0\n", + "\n", + "#result\n", + "print \"speed when loaded=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when loaded= 966.21078037 rpm\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.22, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800#rpm\n", + "ia=100#A\n", + "v=230#V\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "ia2=25#A\n", + "ratio=0.45\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed at which motor runs=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor runs= 1940.37940379 rpm\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.23, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "#variable declaration\n", + "v=230.0#V\n", + "ra=0.5#ohm\n", + "rf=115.0#ohm\n", + "n1=1200#rpm\n", + "ia=2.5#A\n", + "n2=1120#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ra*ia\n", + "x=n2*eb1/n1\n", + "ia2=solve((v-ra*ia2)-x,ia2)\n", + "ia=ia2[0]+(v/rf)\n", + "input_m=v*ia\n", + "\n", + "#result\n", + "print \"line current=\",round(ia,1),\"A\"\n", + "print \"power input=\",round(input_m,1),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 35.0 A\n", + "power input= 8050.0 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.24, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=100.0#kW\n", + "n1=300#rpm\n", + "v=220.0#V\n", + "load=10.0#kW\n", + "ra=0.025#ohm\n", + "rf=60.0#ohm\n", + "vd=1.0#V\n", + "\n", + "#calculation\n", + "i=power*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra+2*vd\n", + "i=load*1000/v\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n1/eb\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 278.796797778 rpm\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.25, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by whih armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia2=ia-ish\n", + "eb0=v-ia2*ra\n", + "n0=n*eb0/v\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*n0/(eb0*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed of machine=\",math.floor(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of machine= 960.0 rpm\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.26, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ooutput=14.92#kW\n", + "n=1000#rpm\n", + "i=75#A\n", + "ra=0.25#ohm\n", + "ratio=0.20\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb_inst=eb1*(1-ratio)\n", + "ia_inst=(v-eb_inst)/ra\n", + "t_inst=9.55*eb_inst*ia_inst/n\n", + "ia2=i/(1-ratio)\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 93.75 A\n", + "speed= 1224.66216216 rpm\n" + ] + } + ], + "prompt_number": 191 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.27, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "i=4.0#A\n", + "n=700.0#rpm\n", + "rf=100.0#A\n", + "v2=6.0#V\n", + "i2=10.0#A\n", + "input_m=8.0#kW\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "il=input_m*1000/v\n", + "ia=il-ish\n", + "ra=v2/i2\n", + "eb0=v-ish*ra\n", + "eb=v-ia*ra\n", + "n=eb*n/eb0\n", + "ta=9.55*eb*ia/n\n", + "inpt=v*i\n", + "cu_loss=ish**2*ra\n", + "constant_loss=inpt-cu_loss\n", + "cu_loss_arm=ia**2*ra\n", + "total_loss=constant_loss+cu_loss_arm\n", + "output=input_m*1000-total_loss\n", + "efficiency=output/(input_m*1000)\n", + "print \n", + "#result\n", + "print \"speed on load=\",n,\"rpm\"\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "speed on load= 623.943661972 rpm\n", + "torque= 103.0636 N-m\n", + "efficiency= 79.2 %\n" + ] + } + ], + "prompt_number": 197 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.28, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "v=220#V\n", + "load=11#kW\n", + "inl=5#A\n", + "n_nl=1150#rpm\n", + "ra=0.5#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "input_nl=v*inl\n", + "ish=v/rsh\n", + "ia0=inl-ish\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "i=load*1000/v\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "total_loss=cu_loss_a+constant_loss\n", + "output=load*1000-total_loss\n", + "efficiency=output*100/(load*1000)\n", + "eb_nl=v-(ia0*ra)\n", + "eb=v-ia*ra\n", + "n=n_nl*eb/eb_nl\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"the speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque developed= 87.096 N-m\n", + "efficiency= 79.5361818182 %\n", + "the speed= 1031.57894737 rpm\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.29, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=250.0#V\n", + "ra=0.1#ohm\n", + "vb=3#V\n", + "rf=0.05#ohm\n", + "ia=80.0#A\n", + "n=600.0#rpm\n", + "i2=100.0#A\n", + "\n", + "#calculation\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-i2*(ra+rf)\n", + "n2=eb2*ia*n/(eb1*i2)\n", + "\n", + "#result\n", + "print \"speed when current is 100 A=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when current is 100 A= 473.949579832 rpm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.30, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "n=800.0#rpm\n", + "i=100.0#A\n", + "ra=0.1\n", + "ratio=1.0/2.0\n", + "#calculation\n", + "ia1=i*math.sqrt(ratio)\n", + "eb1=v-i*ra\n", + "eb2=v-ia1*ra\n", + "n2=eb2*i*n/(eb1*ia1)\n", + "#result\n", + "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when motor will run when developing half the torque= 1147.0 rpm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.31, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "n=600#rpm\n", + "ia=25#A\n", + "v=450#V\n", + "z=500\n", + "phi=1.7*0.01*math.pow(ia,0.5)\n", + "\n", + "#calculation\n", + "eb=n*phi*z*p/(60*a)\n", + "iara=v-eb\n", + "ra=iara/ia\n", + "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", + "eb2=v/2-i*ra\n", + "phi2=1.7*0.01*math.pow(i,0.5)\n", + "n2=eb2*phi*n/(eb*phi2)\n", + "\n", + "#result\n", + "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor will run= 372.0 rpm\n" + ] + } + ], + "prompt_number": 224 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.32, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "v=460.0#V\n", + "ra=0.5#ohm\n", + "\n", + "def f(ia,t):\n", + " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", + " return(n)\n", + "\n", + "n1=f(20.0,128.8)\n", + "n2=f(30.0,230.5)\n", + "n3=f(40.0,349.8)\n", + "n4=f(50.0,469.2)\n", + "T=[128.8,230.5,349.8,469.2]\n", + "N=[n1,n2,n3,n4]\n", + "a=plot(T,N)\n", + "xlabel(\"Torque(NM.m)\") \n", + "ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "output=5.968#kW\n", + "n=700#rpm\n", + "v1=500#V\n", + "n2=600#rpm\n", + "ra=3.5#ohm\n", + "loss=450#W\n", + "\n", + "#calculation\n", + "\n", + "def fp(i,v):\n", + " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", + " return(p)\n", + "\n", + "def fm(i,v):\n", + " m=((v1-i*ra)*i-loss)/1000\n", + " return(m)\n", + "\n", + "p1=fp(7.0,347.0)\n", + "p2=fp(10.5,393.0)\n", + "p3=fp(14.0,434.0)\n", + "p4=fp(27.5,468.0)\n", + "\n", + "m1=fm(7.0,347.8)\n", + "m2=fm(10.5,393.0)\n", + "m3=fm(14.0,434.0)\n", + "m4=fm(27.5,468.0)\n", + "\n", + "#plot\n", + "I=[7,10.5,14,27.5]\n", + "P=[p1,p2,p3,p4]\n", + "M=[m1,m2,m3,m4]\n", + "a=plot(I,P)\n", + "a=plot(I,M)\n", + "xlabel(\"Current\") \n", + "ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.34, Page Number:1022" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "i=3#A\n", + "ia=3.5#A\n", + "ib=4.5#A\n", + "\n", + "#calculation\n", + "loss=v*i\n", + "#B unexcited\n", + "loss1=v*(ia-i)\n", + "#B excited\n", + "loss2=v*(ib-i)\n", + "loss=loss2-loss1\n", + "\n", + "#result\n", + "print \"iron losses of B=\",loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "iron losses of B= 500.0 W\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.35, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.2#ohm\n", + "rf=110.0#ohm\n", + "ia=5.0#A\n", + "n=1500#rpm\n", + "i2=52.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i2-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=round(eb2*n/eb1,0)\n", + "input_nl=v*ia\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "cu_loss_l=ia2**2*ra\n", + "total_loss=constant_loss+cu_loss_l\n", + "input_l=v*i2\n", + "output=input_l-total_loss\n", + "tsh=9.55*output/n2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.36, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=5#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "ratio=0.03#percentage by which armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 994.0 rpm\n" + ] + } + ], + "prompt_number": 241 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.37, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ia=5#A\n", + "ra=0.22#A\n", + "rf=250#ohm\n", + "i=100#A\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia0=ia-ish\n", + "eb0=v-ia0*ra\n", + "cu_loss=ia0**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "cu_loss=ia**2*ra\n", + "total_loss=cu_loss+constant_loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "efficiency=output*100/input_m\n", + "per=(eb-eb0)*100/eb0\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"\n", + "print \"percentage change in speed=\",round(per,2),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 90.8 %\n", + "percentage change in speed= -4.19 %\n" + ] + } + ], + "prompt_number": 244 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.38, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "i=25#A\n", + "i2=50#A\n", + "ratio=0.03#percentage by which the armature reaction weakens field\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "vd=1\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ebh=v-ia1*ra-2*vd\n", + "ia2=i2-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n/(ebh*(1-ratio))\n", + "ta1=9.55*eb1*ia1/n\n", + "ta2=9.55*eb2*ia2/n2\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"torque in first case=\",ta1,\"N-m\"\n", + "print \"torque in second case=\",ta2,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1010.0 rpm\n", + "torque in first case= 57.11664 N-m\n", + "torque in second case= 110.3912768 N-m\n" + ] + } + ], + "prompt_number": 247 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.39, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "n1=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by which the armature reaction weakens field\n", + "eb1=250.0#V\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb2=v-(i-ish)*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "cu_loss=(ia-ish)**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "cu_loss_a=(i-ish)**2*ra\n", + "total_loss=constant_loss+cu_loss_a\n", + "inpt=v*i\n", + "output=inpt-total_loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 960.0 rpm\n", + "efficiency= 82.44 %\n" + ] + } + ], + "prompt_number": 254 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.40, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=250#V\n", + "z=120*8\n", + "a=4\n", + "phi=20*0.001#Wb\n", + "i=25#A\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "loss=810#W\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_shunt=v*ish\n", + "total_loss=loss+cu_loss+cu_loss_shunt\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"gross torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque= 70.288 N-m\n", + "useful torque= 60.2946209124 N-m\n", + "efficiency= 78.1936 %\n" + ] + } + ], + "prompt_number": 256 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.41, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "n=1150#rpm\n", + "p=4\n", + "a=2\n", + "z=620\n", + "ra=0.2#ohm\n", + "i=74.8#A\n", + "i2=3#A\n", + "v=230#V\n", + "#calculation\n", + "ia=i-i2\n", + "eb=v-ia*ra\n", + "phi=eb*a*60/(p*z*n)\n", + "ta=9.55*eb*ia/n\n", + "power=eb*ia\n", + "loss_rot=power-output*1000\n", + "input_m=v*i\n", + "total_loss=input_m-output*1000\n", + "per=total_loss*100/input_m\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi*1000,\"mWb\"\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"rotational losses=\",loss_rot,\"W\"\n", + "print \"total losses expressed as a percentage of power=\",per,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 9.07321178121 mWb\n", + "torque developed= 128.575818783 N-m\n", + "rotational losses= 562.952 W\n", + "total losses expressed as a percentage of power= 13.2759823297 %\n" + ] + } + ], + "prompt_number": 263 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.42, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=7.46#kW\n", + "v=250#V\n", + "i=5#A\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "\n", + "#calculation\n", + "input_m=v*i\n", + "ish=v/rf\n", + "ia=i-ish\n", + "cu_loss=v*ish\n", + "cu_loss_a=ra*ia**2\n", + "loss=input_m-cu_loss\n", + "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", + "i2=ia1[0]+ish\n", + "input_m1=v*i2\n", + "efficiency=output*100000/input_m1\n", + "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "output_a=input_a-(cu_loss+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 79.5621535016683 %\n", + "output power at which efficiency is maximum= 10.2179357944 kW\n" + ] + } + ], + "prompt_number": 271 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.43, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n2_by_n1=1.0/2.0\n", + "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", + "v2_by_v1=n2_by_n1*phi1_by_phi2\n", + "reduction_v=(1-v2_by_v1)*100\n", + "reduction_i=(1-ia2_by_ia1)*100\n", + "\n", + "#result\n", + "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", + "print \"percentage fall in the motor current=\",reduction_i,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in the motor terminal voltage= 75.0 %\n", + "percentage fall in the motor current= 50.0 %\n" + ] + } + ], + "prompt_number": 272 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.44, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=500#V\n", + "z=1200\n", + "phi=20*0.001#Wb\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "i=20#A\n", + "loss=900#W\n", + "a=2\n", + "#calculation\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_f=v*ish\n", + "total_loss=cu_loss+cu_loss_f+loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"useful torque=\",ta,\"N-m\"\n", + "print \"output=\",output/1000,\"Kw\"\n", + "print \"efficiency==\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "useful torque= 206.28 N-m\n", + "output= 7.938 Kw\n", + "efficiency== 79.38 %\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.45, Page Number:1027" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=37.3*1000#W\n", + "v=460#V\n", + "i=4#A\n", + "n=660#rpm\n", + "ra=0.3#ohm\n", + "rf=270#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "cu_loss=v*ish\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "input_a=loss=v*ia\n", + "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", + "i=ia1[0]+ish\n", + "eb1=v-(ia*ra)\n", + "eb2=v-(ia1[0]*ra)\n", + "n2=n*eb2/eb1\n", + "ia=math.sqrt((cu_loss+input_a)/ra)\n", + "\n", + "#result\n", + "print \"the current input=\",i,\"A\"\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"armature current at which efficiency is maximum=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the current input= 90.2860908863713 A\n", + "speed= 623.0 rpm\n", + "armature current at which efficiency is maximum= 78.3156008298 A\n" + ] + } + ], + "prompt_number": 280 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_3.ipynb new file mode 100644 index 00000000..f3eda54f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter29_3.ipynb @@ -0,0 +1,2343 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f1e5688d45c7bb285838d2aad7b4c0c08dc93f4afbba4c253d97655938545a41" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.1, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "r=0.5#ohm\n", + "i=20#A\n", + "\n", + "#calculation\n", + "#as generator \n", + "eg=v+i*r\n", + "#as motor\n", + "eb=v-i*r\n", + "\n", + "#result\n", + "print \"as generator:eg=\",eg,\"V\"\n", + "print \"as motor:eb=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "as generator:eg= 230.0 V\n", + "as motor:eb= 210.0 V\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.2, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia=Symbol('ia')\n", + "r=0.1#ohm\n", + "brush_drop=2#V\n", + "n=1000#rpm\n", + "i=100#A\n", + "v=250#V\n", + "n2=700#rpm\n", + "\n", + "#calculations\n", + "rl=v/i\n", + "eg1=v+i*r+brush_drop\n", + "eg2=eg1*n2/n\n", + "ia=solve(eg2-2-ia*r-2.5*ia,ia)\n", + "\n", + "#result\n", + "print \"current delivered to the load=\",ia[0],\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to the load= 69.7692307692308 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.3, Page Number:999" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.8#ohm\n", + "rf=200#ohm\n", + "output=7.46#kW\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=output*1000/efficiency\n", + "im=output*1000/(efficiency*v)\n", + "ish=v/rf\n", + "ia=im-ish\n", + "eb=v-ia*ra\n", + "\n", + "#results\n", + "print \"back emf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "back emf= 425.642780749 V\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.4, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25#kW\n", + "v=250#V\n", + "ra=0.06#ohm\n", + "rf=100#ohm\n", + "\n", + "#calculations\n", + "#as generator\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"\n", + "\n", + "#as motor\n", + "i=load*1000/v\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "power=eb*ia/1000\n", + "\n", + "print \"As generator: power=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "As generator: power= 26.12424 kW\n", + "As generator: power= 23.92376 kW\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.5, Page Number:1000" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "z=32\n", + "v=200.0#V\n", + "i=12.0#A\n", + "ra=2.0#ohm\n", + "rf=200.0#ohm\n", + "n=1000.0#rpm\n", + "i2=5.0#A\n", + "#calculations\n", + "ia=i+v/rf\n", + "eg=v+ia*ra\n", + "phi=eg*a*60/(z*n*p)\n", + "#as motor\n", + "ia=i2-v/rf\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi,\"wb\"\n", + "print \"speed of the machine=\",math.ceil(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 0.42375 wb\n", + "speed of the machine= 850.0 rpm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.6, Page Number:1002" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=110#A\n", + "v=480#V\n", + "ra=0.2#ohm\n", + "z=864\n", + "p=a=6\n", + "phi=0.05#Wb\n", + "\n", + "#calculations\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 636.0 rpm\n", + "the gross torque= 755.568 N-m\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.7, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "z=782\n", + "ra=rf=0.5#ohm\n", + "ia=40#A\n", + "phi=25*0.001#Wb\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=60*eb/(phi*z)\n", + "ta=0.159*phi*z*ia*p/a\n", + "\n", + "print \"the speed=\",math.floor(n),\"rpm\"\n", + "print \"the gross torque=\",ta,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the speed= 705.0 rpm\n", + "the gross torque= 248.676 N-m\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.8, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb=250.0#V\n", + "n=1500.0#rpm\n", + "ia=50.0#A\n", + "\n", + "#calculations\n", + "pm=eb*ia\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"machanical power=\",pm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 79.5833333333 N-m\n", + "machanical power= 12500.0 W\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.9, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "z=800\n", + "load=8.2#kW\n", + "ia=45#A\n", + "phi=25*0.001#Wb\n", + "ra=0.6#ohm\n", + "a=p/2\n", + "\n", + "#calculation\n", + "ta=0.159*phi*z*ia*p/a\n", + "eb=v-ia*ra\n", + "n=eb*a/(phi*z*p)\n", + "tsh=load*1000/(2*3.14*n)\n", + "\n", + "#result\n", + "print \"developed torque=\",ta,\"N-m\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 286.2 N-m\n", + "shaft torque= 270.618131415 N-m\n" + ] + } + ], + "prompt_number": 32 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.10, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "n=500.0#rpm\n", + "i=50.0#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculation\n", + "ia2=2*i\n", + "fb1=v-(i*ra)\n", + "eb2=v-(ia2*ra)\n", + "n2=eb2*n/fb1\n", + "#result\n", + "print \"speed when torque is doubled=\",n2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when torque is doubled= 476.19047619 N-m\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.11, Page Number:1003" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=500#V\n", + "load=37.3#kW\n", + "n=1000#rpm\n", + "efficiency=0.90\n", + "ra=0.24#ohm\n", + "vd=2#v\n", + "i=1.8#A\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "il=input_m/v\n", + "tsh=9.55*load*1000/n\n", + "il=ratio*il\n", + "ia=il-i\n", + "r=solve(ia*(r+ra)+vd-v,r)\n", + "\n", + "#result\n", + "print \"full-load line current=\",il,\"A\"\n", + "print \"full-load shaft torque\",tsh,\"N-m\"\n", + "print \"total resistance=\",r[0],\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load line current= 124.333333333 A\n", + "full-load shaft torque 356.215 N-m\n", + "total resistance= 3.82420021762787 ohm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.12, Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=4\n", + "v=220#V\n", + "z=540\n", + "i=32#A\n", + "output=5.595#kW\n", + "ra=0.09#ohm\n", + "i_f=1#A\n", + "phi=30*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=i-i_f\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(phi*z*p)\n", + "tsh=9.55*output/n\n", + "\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "print \"torque developed=\",tsh*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 804.481481481 rpm\n", + "torque developed= 66.4182473183 N-m\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(a), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "load=20.0#kW\n", + "i=5.0#A\n", + "ra=0.04#ohm\n", + "phi=0.04#Wb\n", + "z=160\n", + "il=95.0#A\n", + "inl=9.0#A\n", + "p=4\n", + "a=2\n", + "#calculation\n", + "#no load\n", + "ea0=v-(inl-i)*ra\n", + "n0=ea0*a*60/(phi*z*p)\n", + "#load\n", + "ea=v-(il-i)*ra\n", + "n=ea*n0/ea0\n", + "\n", + "#result\n", + "print \"no-load speed=\",n0,\"rpm\"\n", + "print \"load speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load speed= 1030.5 rpm\n", + "load speed= 1014.375 rpm\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(b), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=a=6\n", + "i=400#A\n", + "n=350#rpm\n", + "phi=80*0.001#Wb\n", + "z=600*2\n", + "loss=0.03#percentage\n", + "\n", + "#calculation\n", + "e=phi*z*n*p/(60*a)\n", + "pa=e*i\n", + "t=pa/(2*3.14*n/60)\n", + "t_net=0.97*t\n", + "bhp=t_net*36.67*0.001/0.746\n", + "#result\n", + "print \"brake-horse-power\",bhp,\"HP\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "brake-horse-power 291.551578696 HP\n" + ] + } + ], + "prompt_number": 66 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(c), Page Number:1004" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=774\n", + "phi=24*0.001#Wb\n", + "ia=50#A\n", + "a=2\n", + "#calculations\n", + "t=0.159*phi*z*ia*p/a\n", + "\n", + "#result\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 295.3584 N-m\n" + ] + } + ], + "prompt_number": 67 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(d), Page Number:1005" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "i=5.0#A\n", + "ra=0.15#ohm\n", + "rf=200.0#ohm\n", + "il=40.0#A\n", + "\n", + "#calculations\n", + "ih=v/rf\n", + "pi=v*i\n", + "cu_loss_f=cu_loss=v*ih\n", + "output=v*il\n", + "cu_loss_a=(il+ih)**2*ra\n", + "total_loss=cu_loss+cu_loss_a+cu_loss_f\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 87.8312542029 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.13(e), Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delcration\n", + "ia=40#A\n", + "v=220#V\n", + "n=800#rpm\n", + "ra=0.2#ohm\n", + "rf=0.1#ohm\n", + "loss=0.5#kW\n", + "\n", + "#calculations\n", + "eb=v-ia*(ra+rf)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*(ra+rf)\n", + "total_loss=cu_loss+loss*1000\n", + "input_m=v*ia\n", + "output=input_m-total_loss\n", + "\n", + "#result\n", + "print \"output of the motor=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output of the motor= 7.82 kW\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.14, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=400.0#N\n", + "d=10.0#cm\n", + "n=840#rpm\n", + "v=220.0#V\n", + "n1=1800#rpm\n", + "efficiency=.80\n", + "d2=24.0#cm\n", + "\n", + "#calculations\n", + "tsh=f*d*0.01/2\n", + "output=tsh*2*3.14*n/60\n", + "input_m=output/efficiency\n", + "i=input_m/v\n", + "d1=n*d2/n1\n", + "\n", + "#calculation\n", + "print \"current taken by the motor=\",round(i),\"A\"\n", + "print \"size of motor pulley=\",d1,\"cm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the motor= 10.0 A\n", + "size of motor pulley= 11.2 cm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.15, Page Number:1006" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "p=4\n", + "z=280\n", + "ia=45.0#A\n", + "phi=18*0.001#Wb\n", + "ra=0.5+0.3#ohm\n", + "loss=800.0#W\n", + "d=0.41\n", + "a=4\n", + "#calculation\n", + "eb=v-ia*ra\n", + "n=eb*60*a/(phi*z*p*4)\n", + "inpt=v*ia\n", + "cu_loss=ia**2*ra\n", + "total_loss=loss+cu_loss\n", + "output=inpt-total_loss\n", + "tsh=9.55*output/n\n", + "f=tsh*2/d\n", + "\n", + "#result\n", + "print \"pull at the rim of the pulley=\",f,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pull at the rim of the pulley= 628.016180845 N-m\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.16, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=240#V\n", + "output=11.19#kW\n", + "n=1000#rpm\n", + "ia=50#A\n", + "i=1#A\n", + "z=540\n", + "ra=0.1#ohm\n", + "vd=1#V\n", + "a=2\n", + "#calculation\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "tsh=9.55*output*1000/n\n", + "phi=eb*60*a*1000/(z*n*p)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "brush_loss=ia*2\n", + "power=input_a-(cu_loss+brush_loss)\n", + "rotational_loss=power-output*1000\n", + "input_m=v*(ia+i)\n", + "efficiency=output*1000/input_m\n", + "\n", + "#result\n", + "print \"total torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"flux/pole=\",phi,\"mWb\"\n", + "print \"rotational losses=\",rotational_loss,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "total torque= 112.2125 N-m\n", + "useful torque= 106.8645 N-m\n", + "flux/pole= 13.0555555556 mWb\n", + "rotational losses= 460.0 W\n", + "efficiency= 91.4215686275 %\n" + ] + } + ], + "prompt_number": 106 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.17, Page Number:1007" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#v\n", + "n=500.0#rpm\n", + "i=40.0#A\n", + "i2=30.0#A\n", + "ra=0.8#ohm\n", + "\n", + "#calculation\n", + "t2_by_t1=i2**2/i**2\n", + "change=(1-t2_by_t1)*100#percentage\n", + "eb1=v-i*ra\n", + "eb2=v-i2*ra\n", + "n2=eb2*i*n/(eb1*i2)\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"percentage change in torque=\",change,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 679.127725857 rpm\n", + "percentage change in torque= 43.75 %\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.18, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=460.0#V\n", + "output=55.95#kW\n", + "n=750#rpm\n", + "I=252.8#kg-m2\n", + "ia1=1.4\n", + "ia2=1.8\n", + "\n", + "#calculations\n", + "ia=(ia1+ia2)/2\n", + "n=n/60.0\n", + "tsh=output*1000/(2*3.14*n)\n", + "torque_avg=(ia-1)*tsh\n", + "dt=(I*2*3.14*n)/torque_avg\n", + "\n", + "#result\n", + "print \"approximate time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "approximate time to attain full speed= 46.4050282991 s\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.19, Page Number:1008" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "v=400.0#V\n", + "n=400.0#rpm\n", + "i=40.0#A\n", + "I=7.5#kg-m2\n", + "ratio=1.2\n", + "\n", + "#calculations\n", + "n=n/60\n", + "t=output*1000/(2*3.14*n)\n", + "torque=(ratio-1)*t\n", + "dt=(I*2*3.14*n)/torque\n", + "\n", + "print \"time to attain full speed=\",dt,\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time to attain full speed= 4.4055406613 s\n" + ] + } + ], + "prompt_number": 138 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.20, Page Number:1009" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "z=944\n", + "phi=34.6*0.001#Wb\n", + "ta=209.0#N-m\n", + "v=500.0#V\n", + "ra=3.0#ohm\n", + "a=2\n", + "#calculation\n", + "ia=ta/(0.159*phi*z*(p/a))\n", + "ea=v-ia*ra\n", + "n=ea/(phi*z*(p/a))\n", + "\n", + "#result\n", + "print \"line current=\",ia,\"A\"\n", + "print \"speed=\",n*60,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 20.1219966813 A\n", + "speed= 403.798260345 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.21, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#v\n", + "n=1000#rpm\n", + "ia=8#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i2=50#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb0=v-(ia-ish)*ra\n", + "eb=v-(i2-ish)*ra\n", + "n=eb*n/eb0\n", + "\n", + "#result\n", + "print \"speed when loaded=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when loaded= 966.21078037 rpm\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.22, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=800#rpm\n", + "ia=100#A\n", + "v=230#V\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "ia2=25#A\n", + "ratio=0.45\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed at which motor runs=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor runs= 1940.37940379 rpm\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.23, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "#variable declaration\n", + "v=230.0#V\n", + "ra=0.5#ohm\n", + "rf=115.0#ohm\n", + "n1=1200#rpm\n", + "ia=2.5#A\n", + "n2=1120#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ra*ia\n", + "x=n2*eb1/n1\n", + "ia2=solve((v-ra*ia2)-x,ia2)\n", + "ia=ia2[0]+(v/rf)\n", + "input_m=v*ia\n", + "\n", + "#result\n", + "print \"line current=\",round(ia,1),\"A\"\n", + "print \"power input=\",round(input_m,1),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= 35.0 A\n", + "power input= 8050.0 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.24, Page Number:1010" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=100.0#kW\n", + "n1=300#rpm\n", + "v=220.0#V\n", + "load=10.0#kW\n", + "ra=0.025#ohm\n", + "rf=60.0#ohm\n", + "vd=1.0#V\n", + "\n", + "#calculation\n", + "i=power*1000/v\n", + "ish=v/rf\n", + "ia=i+ish\n", + "eb=v+ia*ra+2*vd\n", + "i=load*1000/v\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n1/eb\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 278.796797778 rpm\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.25, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by whih armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia2=ia-ish\n", + "eb0=v-ia2*ra\n", + "n0=n*eb0/v\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*n0/(eb0*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed of machine=\",math.floor(n),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of machine= 960.0 rpm\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.26, Page Number:1011" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ooutput=14.92#kW\n", + "n=1000#rpm\n", + "i=75#A\n", + "ra=0.25#ohm\n", + "ratio=0.20\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb_inst=eb1*(1-ratio)\n", + "ia_inst=(v-eb_inst)/ra\n", + "t_inst=9.55*eb_inst*ia_inst/n\n", + "ia2=i/(1-ratio)\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 93.75 A\n", + "speed= 1224.66216216 rpm\n" + ] + } + ], + "prompt_number": 191 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.27, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "i=4.0#A\n", + "n=700.0#rpm\n", + "rf=100.0#A\n", + "v2=6.0#V\n", + "i2=10.0#A\n", + "input_m=8.0#kW\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "il=input_m*1000/v\n", + "ia=il-ish\n", + "ra=v2/i2\n", + "eb0=v-ish*ra\n", + "eb=v-ia*ra\n", + "n=eb*n/eb0\n", + "ta=9.55*eb*ia/n\n", + "inpt=v*i\n", + "cu_loss=ish**2*ra\n", + "constant_loss=inpt-cu_loss\n", + "cu_loss_arm=ia**2*ra\n", + "total_loss=constant_loss+cu_loss_arm\n", + "output=input_m*1000-total_loss\n", + "efficiency=output/(input_m*1000)\n", + "print \n", + "#result\n", + "print \"speed on load=\",n,\"rpm\"\n", + "print \"torque=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "speed on load= 623.943661972 rpm\n", + "torque= 103.0636 N-m\n", + "efficiency= 79.2 %\n" + ] + } + ], + "prompt_number": 197 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.28, Page Number:1012" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "v=220#V\n", + "load=11#kW\n", + "inl=5#A\n", + "n_nl=1150#rpm\n", + "ra=0.5#ohm\n", + "rsh=110#ohm\n", + "\n", + "#calculations\n", + "input_nl=v*inl\n", + "ish=v/rsh\n", + "ia0=inl-ish\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "i=load*1000/v\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "total_loss=cu_loss_a+constant_loss\n", + "output=load*1000-total_loss\n", + "efficiency=output*100/(load*1000)\n", + "eb_nl=v-(ia0*ra)\n", + "eb=v-ia*ra\n", + "n=n_nl*eb/eb_nl\n", + "ta=9.55*eb*ia/n\n", + "\n", + "#result\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"the speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque developed= 87.096 N-m\n", + "efficiency= 79.5361818182 %\n", + "the speed= 1031.57894737 rpm\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.29, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=250.0#V\n", + "ra=0.1#ohm\n", + "vb=3#V\n", + "rf=0.05#ohm\n", + "ia=80.0#A\n", + "n=600.0#rpm\n", + "i2=100.0#A\n", + "\n", + "#calculation\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-i2*(ra+rf)\n", + "n2=eb2*ia*n/(eb1*i2)\n", + "\n", + "#result\n", + "print \"speed when current is 100 A=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when current is 100 A= 473.949579832 rpm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.30, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "n=800.0#rpm\n", + "i=100.0#A\n", + "ra=0.1\n", + "ratio=1.0/2.0\n", + "#calculation\n", + "ia1=i*math.sqrt(ratio)\n", + "eb1=v-i*ra\n", + "eb2=v-ia1*ra\n", + "n2=eb2*i*n/(eb1*ia1)\n", + "#result\n", + "print \"speed when motor will run when developing half the torque=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when motor will run when developing half the torque= 1147.0 rpm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.31, Page Number:1013" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=a=4\n", + "n=600#rpm\n", + "ia=25#A\n", + "v=450#V\n", + "z=500\n", + "phi=1.7*0.01*math.pow(ia,0.5)\n", + "\n", + "#calculation\n", + "eb=n*phi*z*p/(60*a)\n", + "iara=v-eb\n", + "ra=iara/ia\n", + "i=math.pow((phi*ia*math.sqrt(ia)/(phi*2)),2.0/3.0)\n", + "eb2=v/2-i*ra\n", + "phi2=1.7*0.01*math.pow(i,0.5)\n", + "n2=eb2*phi*n/(eb*phi2)\n", + "\n", + "#result\n", + "print \"speed at which motor will run=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which motor will run= 372.0 rpm\n" + ] + } + ], + "prompt_number": 224 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.32, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "v=460.0#V\n", + "ra=0.5#ohm\n", + "\n", + "def f(ia,t):\n", + " n=(v*ia-ia**2*ra)*60/(2*3.14*t)\n", + " return(n)\n", + "\n", + "n1=f(20.0,128.8)\n", + "n2=f(30.0,230.5)\n", + "n3=f(40.0,349.8)\n", + "n4=f(50.0,469.2)\n", + "T=[128.8,230.5,349.8,469.2]\n", + "N=[n1,n2,n3,n4]\n", + "a=plot(T,N)\n", + "xlabel(\"Torque(NM.m)\") \n", + "ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "#variable declaration\n", + "output=5.968#kW\n", + "n=700#rpm\n", + "v1=500#V\n", + "n2=600#rpm\n", + "ra=3.5#ohm\n", + "loss=450#W\n", + "\n", + "#calculation\n", + "\n", + "def fp(i,v):\n", + " p=5.968*((n2*(v1-i*ra)/(v*n))**2)\n", + " return(p)\n", + "\n", + "def fm(i,v):\n", + " m=((v1-i*ra)*i-loss)/1000\n", + " return(m)\n", + "\n", + "p1=fp(7.0,347.0)\n", + "p2=fp(10.5,393.0)\n", + "p3=fp(14.0,434.0)\n", + "p4=fp(27.5,468.0)\n", + "\n", + "m1=fm(7.0,347.8)\n", + "m2=fm(10.5,393.0)\n", + "m3=fm(14.0,434.0)\n", + "m4=fm(27.5,468.0)\n", + "\n", + "#plot\n", + "I=[7,10.5,14,27.5]\n", + "P=[p1,p2,p3,p4]\n", + "M=[m1,m2,m3,m4]\n", + "a=plot(I,P)\n", + "a=plot(I,M)\n", + "xlabel(\"Current\") \n", + "ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.34, Page Number:1022" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "i=3#A\n", + "ia=3.5#A\n", + "ib=4.5#A\n", + "\n", + "#calculation\n", + "loss=v*i\n", + "#B unexcited\n", + "loss1=v*(ia-i)\n", + "#B excited\n", + "loss2=v*(ib-i)\n", + "loss=loss2-loss1\n", + "\n", + "#result\n", + "print \"iron losses of B=\",loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "iron losses of B= 500.0 W\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.35, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.2#ohm\n", + "rf=110.0#ohm\n", + "ia=5.0#A\n", + "n=1500#rpm\n", + "i2=52.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i2-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=round(eb2*n/eb1,0)\n", + "input_nl=v*ia\n", + "cu_loss_nl=ia1**2*ra\n", + "constant_loss=input_nl-cu_loss_nl\n", + "cu_loss_l=ia2**2*ra\n", + "total_loss=constant_loss+cu_loss_l\n", + "input_l=v*i2\n", + "output=input_l-total_loss\n", + "tsh=9.55*output/n2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"shaft torque=\",tsh,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.36, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=5#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "ratio=0.03#percentage by which armature reaction weakens field\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "ia2=i-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 994.0 rpm\n" + ] + } + ], + "prompt_number": 241 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.37, Page Number:1023" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ia=5#A\n", + "ra=0.22#A\n", + "rf=250#ohm\n", + "i=100#A\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia0=ia-ish\n", + "eb0=v-ia0*ra\n", + "cu_loss=ia0**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "cu_loss=ia**2*ra\n", + "total_loss=cu_loss+constant_loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "efficiency=output*100/input_m\n", + "per=(eb-eb0)*100/eb0\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"\n", + "print \"percentage change in speed=\",round(per,2),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 90.8 %\n", + "percentage change in speed= -4.19 %\n" + ] + } + ], + "prompt_number": 244 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.38, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "i=25#A\n", + "i2=50#A\n", + "ratio=0.03#percentage by which the armature reaction weakens field\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "vd=1\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ebh=v-ia1*ra-2*vd\n", + "ia2=i2-ish\n", + "eb2=v-ia2*ra-2*vd\n", + "n2=eb2*n/(ebh*(1-ratio))\n", + "ta1=9.55*eb1*ia1/n\n", + "ta2=9.55*eb2*ia2/n2\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"torque in first case=\",ta1,\"N-m\"\n", + "print \"torque in second case=\",ta2,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1010.0 rpm\n", + "torque in first case= 57.11664 N-m\n", + "torque in second case= 110.3912768 N-m\n" + ] + } + ], + "prompt_number": 247 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.39, Page Number:1024" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "n1=1000.0#rpm\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "ia=4.0#A\n", + "i=40.0#A\n", + "ratio=0.04#percentage by which the armature reaction weakens field\n", + "eb1=250.0#V\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "eb2=v-(i-ish)*ra\n", + "n2=eb2*n/(eb1*(1-ratio))\n", + "cu_loss=(ia-ish)**2*ra\n", + "input_m=v*ia\n", + "constant_loss=input_m-cu_loss\n", + "cu_loss_a=(i-ish)**2*ra\n", + "total_loss=constant_loss+cu_loss_a\n", + "inpt=v*i\n", + "output=inpt-total_loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 960.0 rpm\n", + "efficiency= 82.44 %\n" + ] + } + ], + "prompt_number": 254 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.40, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "v=250#V\n", + "z=120*8\n", + "a=4\n", + "phi=20*0.001#Wb\n", + "i=25#A\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "loss=810#W\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_shunt=v*ish\n", + "total_loss=loss+cu_loss+cu_loss_shunt\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"gross torque=\",ta,\"N-m\"\n", + "print \"useful torque=\",tsh,\"N-m\"\n", + "print \"efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque= 70.288 N-m\n", + "useful torque= 60.2946209124 N-m\n", + "efficiency= 78.1936 %\n" + ] + } + ], + "prompt_number": 256 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.41, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=14.92#kW\n", + "n=1150#rpm\n", + "p=4\n", + "a=2\n", + "z=620\n", + "ra=0.2#ohm\n", + "i=74.8#A\n", + "i2=3#A\n", + "v=230#V\n", + "#calculation\n", + "ia=i-i2\n", + "eb=v-ia*ra\n", + "phi=eb*a*60/(p*z*n)\n", + "ta=9.55*eb*ia/n\n", + "power=eb*ia\n", + "loss_rot=power-output*1000\n", + "input_m=v*i\n", + "total_loss=input_m-output*1000\n", + "per=total_loss*100/input_m\n", + "\n", + "#result\n", + "print \"flux per pole=\",phi*1000,\"mWb\"\n", + "print \"torque developed=\",ta,\"N-m\"\n", + "print \"rotational losses=\",loss_rot,\"W\"\n", + "print \"total losses expressed as a percentage of power=\",per,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "flux per pole= 9.07321178121 mWb\n", + "torque developed= 128.575818783 N-m\n", + "rotational losses= 562.952 W\n", + "total losses expressed as a percentage of power= 13.2759823297 %\n" + ] + } + ], + "prompt_number": 263 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.42, Page Number:1025" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=7.46#kW\n", + "v=250#V\n", + "i=5#A\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "\n", + "#calculation\n", + "input_m=v*i\n", + "ish=v/rf\n", + "ia=i-ish\n", + "cu_loss=v*ish\n", + "cu_loss_a=ra*ia**2\n", + "loss=input_m-cu_loss\n", + "ia1=solve(ra*ia1**2-v*ia1+output*1000+loss,ia1)\n", + "i2=ia1[0]+ish\n", + "input_m1=v*i2\n", + "efficiency=output*100000/input_m1\n", + "ia=math.sqrt((input_m-cu_loss_a)/ra)\n", + "input_a=v*ia\n", + "cu_loss=ia**2*ra\n", + "output_a=input_a-(cu_loss+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"output power at which efficiency is maximum=\",output_a/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 79.5621535016683 %\n", + "output power at which efficiency is maximum= 10.2179357944 kW\n" + ] + } + ], + "prompt_number": 271 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.43, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n2_by_n1=1.0/2.0\n", + "ia2_by_ia1=phi1_by_phi2=1.0/2.0\n", + "v2_by_v1=n2_by_n1*phi1_by_phi2\n", + "reduction_v=(1-v2_by_v1)*100\n", + "reduction_i=(1-ia2_by_ia1)*100\n", + "\n", + "#result\n", + "print \"percentage reduction in the motor terminal voltage=\",reduction_v,\"%\"\n", + "print \"percentage fall in the motor current=\",reduction_i,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in the motor terminal voltage= 75.0 %\n", + "percentage fall in the motor current= 50.0 %\n" + ] + } + ], + "prompt_number": 272 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.44, Page Number:1026" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=500#V\n", + "z=1200\n", + "phi=20*0.001#Wb\n", + "ra=0.5#ohm\n", + "rf=250#ohm\n", + "i=20#A\n", + "loss=900#W\n", + "a=2\n", + "#calculation\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "n=eb*a*60/(p*z*phi)\n", + "ta=9.55*eb*ia/n\n", + "cu_loss=ia**2*ra\n", + "cu_loss_f=v*ish\n", + "total_loss=cu_loss+cu_loss_f+loss\n", + "input_m=v*i\n", + "output=input_m-total_loss\n", + "tsh=9.55*output/n\n", + "efficiency=output*100/input_m\n", + "\n", + "#result\n", + "print \"useful torque=\",ta,\"N-m\"\n", + "print \"output=\",output/1000,\"Kw\"\n", + "print \"efficiency==\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "useful torque= 206.28 N-m\n", + "output= 7.938 Kw\n", + "efficiency== 79.38 %\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.45, Page Number:1027" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia1=Symbol('ia1')\n", + "output=37.3*1000#W\n", + "v=460#V\n", + "i=4#A\n", + "n=660#rpm\n", + "ra=0.3#ohm\n", + "rf=270#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "cu_loss=v*ish\n", + "ia=i-ish\n", + "cu_loss_a=ia**2*ra\n", + "input_a=loss=v*ia\n", + "ia1=solve(ra*ia1**2-v*ia1+output+loss,ia1)\n", + "i=ia1[0]+ish\n", + "eb1=v-(ia*ra)\n", + "eb2=v-(ia1[0]*ra)\n", + "n2=n*eb2/eb1\n", + "ia=math.sqrt((cu_loss+input_a)/ra)\n", + "\n", + "#result\n", + "print \"the current input=\",i,\"A\"\n", + "print \"speed=\",round(n2,0),\"rpm\"\n", + "print \"armature current at which efficiency is maximum=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the current input= 90.2860908863713 A\n", + "speed= 623.0 rpm\n", + "armature current at which efficiency is maximum= 78.3156008298 A\n" + ] + } + ], + "prompt_number": 280 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb @@ -0,0 +1,2629 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 30:Speed Control of D.C. Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.1, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "n=250#rpm\n", + "ia=200#A\n", + "ra=0.12#ohm\n", + "ratio=0.80\n", + "ia2=100#A\n", + "\n", + "#calculations\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 320.0 rpm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.2, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ra=0.25#ohm\n", + "ia=50#A\n", + "n=750#rpm\n", + "ratio=1-0.10\n", + "\n", + "#calculation\n", + "ia2=ia/ratio\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 828.0 rpm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=800#rpm\n", + "ia=50.0#A\n", + "n2=1000#rpm\n", + "ia2=80.0#A\n", + "ra=0.15#ohm\n", + "rf=250.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "ish1=v/rf\n", + "r1=(n2*eb1*v)/(n*eb2*ish1)\n", + "r=r1-rf\n", + "ish2=v/r1\n", + "torque_ratio=ish2*ia2/(ish1*ia)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"\n", + "print \"ratio of torque=\",torque_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 68.9506880734 ohm\n", + "ratio of torque= 1.25411235955\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "rf=250.0#ohm\n", + "ra=0.25#ohm\n", + "n=1500#rpm\n", + "ia=20.0#A\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ish2=v/(rf+r)\n", + "ia2=ia*1/ish2\n", + "eb2=v-ia2*ra\n", + "eb1=v-ia*ra\n", + "n2=eb2*n/(eb1*ish2)\n", + "\n", + "#result\n", + "print \"new speed=\",round(n2),\"rpm\"\n", + "print \"new armature current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 2939.0 rpm\n", + "new armature current= 40.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.5, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "rt=Symbol('rt')\n", + "v=250.0#V\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "n=600.0#rpm\n", + "ia=20.0#A\n", + "n2=800.0#rpm\n", + "\n", + "#calculation\n", + "ish1=v/rf\n", + "eb1=v-ia*ra\n", + "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", + "r=rt[0]-rf\n", + "\n", + "#result\n", + "print \"resistance to be inserted=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 88.3128987990058 ohm\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.6, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=1+0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", + "per=1-1/x[0]\n", + "\n", + "#result\n", + "print\"main flux has to be reduced by=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "main flux has to be reduced by= 37.2991677469778 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.7, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=10#kW\n", + "i=41#A\n", + "ra=0.2#ohm\n", + "rw=0.05#ohm\n", + "ri=0.1#ohm\n", + "rf=110#ohm\n", + "ratio=1-0.25\n", + "r=1#ohm\n", + "ratio1=1-0.50\n", + "n=2500\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ratio1*ia1/ratio\n", + "eb1=v-ia1*(ra+ri+rw)\n", + "eb2=v-ia2*(r+ra+ri+rw)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"motor speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 26.0 A\n", + "motor speed= 2987.0 rpm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.8, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=15#kW\n", + "n=850#rpm\n", + "ia=72.2#A\n", + "ra=0.25#ohm\n", + "rf=100#ohm\n", + "n2=1650#rpm\n", + "ia2=40#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "ratio=(n*eb2)/(n2*eb1)\n", + "per=1-ratio\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 46.5636857585 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.9, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=0.50+1\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", + "per=ia/ia2[0]\n", + "\n", + "#result\n", + "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mail flux should be reduced by= 62.7 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.10, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=20.0#A\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ratio=0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=ratio*(v-ia*ra)\n", + "r=(v-eb2)/ia-ra\n", + "\n", + "#result\n", + "print \"resistance required in the series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in the series= 5.25 ohm\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.11, Page Number:1036" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=8#A\n", + "i_f=1#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "eb0=v-(ia-i_f)*ra\n", + "kpsi=eb0/1000\n", + "ia=i-i_f\n", + "eb1=v-ia*ra\n", + "n1=eb1/kpsi\n", + "\n", + "#result\n", + "print \"speed=\",round(n1,1),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 966.2 rpm\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.12, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "ra=0.25#ohm\n", + "n=1000#rpm\n", + "ia=40#A\n", + "n2=800#rpm\n", + "i2=20#A\n", + "#calculation\n", + "eb=v-ia*ra\n", + "eb2=n2*eb/n\n", + "r=(v-eb2)/(ia)-ra\n", + "eb3=v-i2*(r+ra)\n", + "n3=eb3*n/eb\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"\n", + "print \"speed=\",round(n3),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 1.15 ohm\n", + "speed= 922.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.13, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.48#kW\n", + "v=220#V\n", + "n=990#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2#A\n", + "n2=450#rpm\n", + "\n", + "#calculation\n", + "input_p=load*1000/efficiency\n", + "losses=input_p-load*1000\n", + "i=input_p/v\n", + "ia=i-ish\n", + "loss=v*ish\n", + "cu_loss=ia**2*ra\n", + "loss_nl=losses-cu_loss-loss\n", + "eb1=v-20-(ia*ra)\n", + "eb2=n2*eb1/n\n", + "r=(eb1-eb2)/ia\n", + "total_loss=ia**2*(r+ra)+loss+loss_nl\n", + "output=input_p-total_loss\n", + "efficiency=output/(input_p)\n", + "\n", + "#result\n", + "print \"motor input=\",input_p/1000,\"kW\"\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor input= 8.5 kW\n", + "armature current= 36.6363636364 A\n", + "external resistance= 2.93403113016 ohm\n", + "efficiency= 41.6691237902 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.14, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb1=230.0#V\n", + "n=990.0#rpm\n", + "n2=500.0#rpm\n", + "ia=25.0#A\n", + "\n", + "#calculation\n", + "eb2=eb1*n2/n\n", + "r=(eb1-eb2)/ia\n", + "\n", + "#result\n", + "print \"resistance required in series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in series= 4.55353535354 ohm\n" + ] + } + ], + "prompt_number": 83 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.15, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=20.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k2=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "rf1=v/if1\n", + "rf2=v/if2\n", + "r=rf2-rf1\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 100.0 ohm\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.16, Page Number:1039" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=22.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k1=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "if2=n2*ia/n\n", + "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", + "if2=ia*if1/ia2[0]\n", + "r=v/if2\n", + "\n", + "#result\n", + "print \"new field resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new field resistance to be added= 306.828780053869 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.17, Page Number:1040" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "output=25#kW\n", + "efficiency=0.85\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "ratio=1.50\n", + "\n", + "#calculation\n", + "input_p=output*1000/efficiency\n", + "i=input_p/v\n", + "if1=v/rf\n", + "ia=i-if1\n", + "il=ratio*ia\n", + "r=v/il\n", + "r_ext=r-ra\n", + "\n", + "#result\n", + "print \"starting resistance=\",round(r_ext,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 1.341 ohm\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.18, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "n=1000.0#rpm\n", + "ia=17.5#A\n", + "n2=600.0#rpm\n", + "ra=0.4#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "rt=(v-(n2*eb1/n))/ia\n", + "r=rt-ra\n", + "#result\n", + "print \"resistance to be inserted=\",round(r,1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 4.4 ohm\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.19, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ra=1.2#ohm\n", + "rf=500#ohm\n", + "ia=4#A\n", + "n=1000#rpm\n", + "i=26#A\n", + "r=2.3#ohm\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra\n", + "n2=n*eb2/eb1\n", + "eb2=v-ia2*(r+ra)\n", + "n2_=n*eb2/eb1\n", + "n2__=n*eb2/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", + "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", + "speed when shunt field is reduced by 15%= 978.0 rpm\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.20, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ia1=ia2=20.0#A\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "n2=500.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia1*ra\n", + "rt=(v-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "ia3=ia2/2\n", + "n3=n*(v-ia3*rt)/eb1\n", + "#result\n", + "print \"speed=\",round(n3),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 771.0 rpm\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.21, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ra1=0.5#ohm\n", + "n=600.0#rpm\n", + "ia2=ia1=20#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "#torque is half the full-load torque\n", + "ia2=1.0/2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 550.0 rpm\n", + "speed at half full-load torque= 588.0 rpm\n" + ] + } + ], + "prompt_number": 137 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.22, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra1=0.5#ohm\n", + "n=500.0#rpm\n", + "ia2=ia1=30.0#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "\n", + "#torque is half the full-load torque\n", + "ia2=2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 427.0 rpm\n", + "speed at double full-load torque= 317.0 rpm\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.23, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3*1000#W\n", + "v=500.0#V\n", + "n=750.0#rpm\n", + "efficiency=0.90\n", + "t2=250.0#N-m\n", + "r=5.0#ohm\n", + "ra=0.5#ohm\n", + "\n", + "#calculation\n", + "t1=load/(2*3.14*(n/60))\n", + "ia1=load/(efficiency*v)\n", + "ia2=ia1*math.sqrt(t2/t1)\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*(r+ra)\n", + "n2=eb2*ia1*n/(eb1*ia2)\n", + "\n", + "#result\n", + "print \"speed at which machine will run=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which machine will run= 381.789716486 rpm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.24, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=7.46*1000#W\n", + "v=220.0#V\n", + "n=900.0#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2.0#A\n", + "n2=450.0#rpm\n", + "#calculation\n", + "i=output/(efficiency*v)\n", + "ia2=ia1=i-ish\n", + "eb1=v-ia2*ra\n", + "rt=(v-20-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "input_m=(v)*(ia2+ish)\n", + "total_loss=input_m-output\n", + "cu_loss=ia2**2*ra\n", + "cu_loss_f=v*ish\n", + "total_cu_loss=cu_loss+cu_loss_f\n", + "stray_loss=total_loss-total_cu_loss\n", + "stray_loss2=stray_loss*n2/n\n", + "cu_loss_a=ia1**2*rt\n", + "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", + "output2=input_m-total_loss2\n", + "efficiency=output2*100/input_m\n", + "\n", + "#result\n", + "print \"motor output=\",output2,\"W\"\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"overall efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 4460.66115702 W\n", + "armature current= 36.5330578512 A\n", + "external resistance= 2.42352222599 ohm\n", + "overall efficiency= 52.619059225 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.25, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "ia=15.0#A\n", + "n=800.0#rpm\n", + "ra=0.6#ohm\n", + "n2=400.0#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "r=((v-(n2*eb1/n))/ia)-ra\n", + "ia3=ia/2\n", + "eb3=v-ia3*(r+ra)\n", + "n3=eb3*n/eb1\n", + "\n", + "#result\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 615.584415584 rpm\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.26, Page Number:1045" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=400.0#V\n", + "inl=3.5#A\n", + "il=59.5#A\n", + "rf=267.0#ohm\n", + "ra=0.2#ohm\n", + "vd=2.0#V\n", + "ratio=0.02\n", + "speed_ratio=0.50\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=inl-ish\n", + "eb1=v-ia1*ra-vd\n", + "ia2=il-ish\n", + "eb2=v-ia2*ra-vd\n", + "n1_by_n2=eb1*(1-ratio)/eb2\n", + "per_change=(1-1/n1_by_n2)*100\n", + "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", + "#result\n", + "print \"change in speed=\",per_change,\"%\"\n", + "print \"resistance to be added=\",r[0],\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "change in speed= 0.83357557339 %\n", + "resistance to be added= 3.33092370774547 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaraion\n", + "v=200.0#V\n", + "i=50.0#A\n", + "n=1000.0#rpm\n", + "n2=800.0#rpm\n", + "ra=0.1#ohm\n", + "rf=100.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ia1*(n2/n)**2\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "rt=(v-(n2*eb1/n))/ia2\n", + "r=rt-ra\n", + "#result\n", + "print \"resustance that must be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resustance that must be added= 1.32708333333 ohm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "load=37.3#kW\n", + "efficiency=0.90\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=115#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "tsh=9.55*load*1000/n\n", + "i=load*1000/(v*efficiency)\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "i_permissible=i*ratio\n", + "ia_per=i_permissible-ish\n", + "ra_total=v/ia_per\n", + "r_required=ra_total-ra\n", + "torque=ratio*ta\n", + "#result\n", + "print \"net torque=\",ta,\"N-m\"\n", + "print \"starting resistance=\",r_required,\"ohm\"\n", + "print \"torque developed at starting=\",torque,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "net torque= 365.403326173 N-m\n", + "starting resistance= 0.913513513514 ohm\n", + "torque developed at starting= 548.104989259 N-m\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.29, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "I=Symbol('I')\n", + "v=200.0#V\n", + "rf=40.0#ohm\n", + "ra=0.02#ohm\n", + "i=55.0#A\n", + "n=595.0#rpm\n", + "r=0.58#ohm\n", + "n2=630.0#rpm\n", + "ia_=15.0#A\n", + "rd=5.0#ohm\n", + "ia2=50.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ra1=r+ra\n", + "eb1=v-ra1*ia1\n", + "ia2=ia1\n", + "eb2=eb1*(n2/n)\n", + "r=(v-eb2)/ia1\n", + "eb2_=v-ia_*ra1\n", + "n2=eb2_*n/eb1\n", + "eb3=eb1\n", + "IR=v-eb3-ia2*ra\n", + "pd=v-IR\n", + "i_d=pd/rd\n", + "i=ia2+i_d\n", + "R=IR/i\n", + "I=solve(rd*(I-ia_)-v+R*I,I)\n", + "eb4=v-R*I[0]-ia_*ra\n", + "n4=n*(eb4/eb1)\n", + "\n", + "#result\n", + "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", + "print \"speed when Ia=\",n2,\"rpm\"\n", + "print \"value of series resistance=\",R,\"ohm\"\n", + "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature circuit resistance should be reduced by= 0.2 ohm\n", + "speed when Ia= 668.5 rpm\n", + "value of series resistance= 0.344418052257 ohm\n", + "speed when motor current falls to 15A= 636.922222222222 rpm\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.31, Page Number:1051" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=15#A\n", + "n=600#rpm\n", + "\n", + "#calculation\n", + "ia2=math.sqrt(2*2**0.5*i**2)\n", + "n2=n*2*i/ia2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 713.524269002 rpm\n", + "current= 25.2268924576 A\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.32, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=707#rpm\n", + "ia1=100#A\n", + "v=85#V\n", + "rf=0.03#ohm\n", + "ra=0.04#ohm\n", + "\n", + "#calculation\n", + "ra_total=ra+(2*rf)\n", + "eb1=v-ia1*ra_total\n", + "ia2=ia1*2**0.5\n", + "rf=rf/2\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", + "rt=(v-((n/n2)*eb2))/ia2\n", + "r=rt-ra-rf\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1029.46885374 rpm\n", + "additional resistance= 0.171040764009 ohm\n" + ] + } + ], + "prompt_number": 44 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.33, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varable declaration\n", + "v=240.0#V\n", + "ia=40.0#A\n", + "ra=0.3#ohm\n", + "n=1500.0#rpm\n", + "n2=1000.0#rpm\n", + "#calculation\n", + "R=v/ia-ra\n", + "eb1=v-ia*ra\n", + "r=(v-((n2/n)*eb1))/ia-ra\n", + "\n", + "#result\n", + "print \"resistance to be added at starting=\",R,\"ohm\"\n", + "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added at starting= 5.7 ohm\n", + "resistance to be added at 1000 rpm 1.9 ohm\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.34, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=600.0#rpm\n", + "v=250.0#V\n", + "ia1=20.0#A\n", + "ratio=2.0\n", + "\n", + "#calculations\n", + "ia2=ia1*2**(3.0/4.0)\n", + "n2=n*ratio*ia1/ia2\n", + "\n", + "#result\n", + "print \"current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 33.6358566101 A\n", + "speed= 713.524269002 rpm\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.35, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "V=Symbol('V')\n", + "ra=1.0#ohm\n", + "v=220.0#V\n", + "n=350.0#rpm\n", + "ia=25.0#A\n", + "n2=500.0#rpm\n", + "\n", + "#calculation\n", + "ia2=ia*(n2/n)\n", + "eb1=v-ia*ra\n", + "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", + "\n", + "#result\n", + "print \" current=\",ia2,\"A\"\n", + "print \"voltage=\",V[0],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " current= 35.7142857143 A\n", + "voltage= 433.673469387755 V\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.36, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000.0#rpm\n", + "ia=20.0#A\n", + "v=200.0#V\n", + "ra=0.5#ohm\n", + "rf=0.2#ohm\n", + "i=20.0#A\n", + "rd=0.2#ohm\n", + "i_f=10.0#A\n", + "ratio=0.70\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "r_total=ra+rf/2\n", + "eb2=v-r_total*ia\n", + "n2=(eb2*n/(eb1*ratio))\n", + " \n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1444.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.37, Page Number:1054" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "ia=40.0#A\n", + "n=700.0#rpm\n", + "ratio=0.50+1\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "\n", + "#calculations\n", + "ia2=(ratio*2*ia**2)**0.5\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=(eb2/eb1)*(ia*2/ia2)*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"speed=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 777.147765122 rpm\n", + "speed= 69.2820323028 A\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.38, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ia=20#A\n", + "n=900#rpm\n", + "r=0.025#ohm\n", + "ra=0.1#ohm\n", + "rd=0.2#ohm\n", + "\n", + "#calculation\n", + "#when divertor is added\n", + "eb1=v-ia*(ra+4*r)\n", + "ia2=(ia**2*(ra+rd)/rd)**0.5\n", + "ra_=rd*ra/(ra+rd)\n", + "eb2=v-ia2*ra_\n", + "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", + "\n", + "#rearranged field coils in two series and parallel group\n", + "ia2=(ia**2*2)**0.5\n", + "r=ra+r\n", + "eb2=v-ia2*r\n", + "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", + "\n", + "#result\n", + "print \"speed when divertor was added=\",n2,\"rpm\"\n", + "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when divertor was added= 1112.87640676 rpm\n", + "speed when field coils are rearranged= 1275.19533144 rpm\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.39, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=1000.0#rpm\n", + "i=12.0#A\n", + "rf=0.8#ohm\n", + "ra=1.0#ohm\n", + "il=20#A\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "eb1=v-i*(ra+rf)\n", + "eb2=v-il*(ra+rf/4)\n", + "n2=(eb2/eb1)*(1/(1-ratio))*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1162.92198261 rpm\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.40, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=200.0#v\n", + "n=500.0#rpm\n", + "i=25.0#A\n", + "ra=0.2#ohm\n", + "rf=0.6#ohm\n", + "rd=10.0#ohm\n", + "\n", + "#calculation\n", + "r=ra+rf\n", + "eb1=v-i*r\n", + "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", + "pd=v-i2[1]*rf\n", + "ia2=((rd+rf)*i2[1]-v)/rd\n", + "eb2=pd-ia2*ra\n", + "n2=(eb2/eb1)*(i/i2[1])*n\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 342.848235418389 rpm\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.41, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.3#ohm\n", + "i=20#A\n", + "n=1200#rpm\n", + "r=3#ohm\n", + "i2=15#A\n", + "ratio=0.80\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb2=v-(r+ra)*i2\n", + "n2=n*(eb2/eb1)/ratio\n", + "power_ratio=(n*i)/(n2*i2*ratio)\n", + "\n", + "#result\n", + "print \"new speed=\",n2,\"rpm\"\n", + "print \"ratio of power outputs=\",power_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 1349.65437788 rpm\n", + "ratio of power outputs= 1.48186086214\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.42, Page Number:1057" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=460#V\n", + "ratio=1-0.25\n", + "\n", + "#calculation\n", + "I=(i**2*ratio**3)**0.5\n", + "eb2=I*ratio*v/i\n", + "R=(v-eb2)/I\n", + "pa=v*i/1000\n", + "power_n=pa*ratio**4\n", + "pa=eb2*I\n", + "\n", + "#result\n", + "print \"Resistance required=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance required= 7.26432660412 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.44, Page Number:1060" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=500#rpm\n", + "n2=550#rpm\n", + "i=50#A\n", + "v=500#V\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "eb1=v-i*r\n", + "kphi1=eb1/n\n", + "eb2=v-i*r\n", + "kphi2=eb2/n2\n", + "eb_=v-i*2*r\n", + "n=eb_/((eb1/n2)+(eb2/n))\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 248.120300752 rpm\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.45, Page Number:1061" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=14.92#kW\n", + "v=250#V\n", + "n=1000#rpm\n", + "ratio1=5.0\n", + "ratio2=4.0\n", + "t=882#N-m\n", + "\n", + "#calculation\n", + "i=load*1000/v\n", + "k=v/(n*i/60)\n", + "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", + "nsh=v/((ratio1+ratio2)*k*I)\n", + "eb1=ratio1*k*I*nsh\n", + "eb2=ratio2*k*I*nsh\n", + "\n", + "#result\n", + "print \"current=\",I,\"A\"\n", + "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", + "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 49.5202984449 A\n", + "speed of shaft= 134.0 rpm\n", + "voltage across the motors= 139.0 V, 111.0 V\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.46, Page Number:1063" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "t=700#N-m\n", + "n=1200#rpm\n", + "ra=0.008#ohm\n", + "rf=55#ohm\n", + "efficiency=0.90\n", + "t2=375#N-m\n", + "n2=1050#rpm\n", + "\n", + "#calculation\n", + "output=2*3.14*n*t/60\n", + "power_m=output/efficiency\n", + "im=power_m/v\n", + "ish=v/rf\n", + "ia1=im-ish\n", + "eb1=v-ia1*ra\n", + "ia2=ia1*t2/t\n", + "eb2=eb1*n2/n\n", + "r=eb2/ia2-ra\n", + "\n", + "#result\n", + "print \"dynamic break resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "dynamic break resistance= 0.795525014538 ohm\n" + ] + } + ], + "prompt_number": 118 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.47, Page Number:1064" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "load=18.65#kW\n", + "n=450.0#rpm\n", + "efficiency=0.746\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "I=load*1000/(efficiency*v)\n", + "eb=v-I*ra\n", + "vt=v+eb\n", + "i_max=2*I\n", + "r=vt/i_max\n", + "R=r-ra\n", + "N=n/60\n", + "phizp_by_a=eb/N\n", + "k4=phizp_by_a*v/(2*3.14*r)\n", + "k3=phizp_by_a**2/(2*3.14*r)\n", + "tb=k4+k3*N\n", + "tb0=k4\n", + "#result\n", + "print \"breaking resistance=\",R,\"ohm\"\n", + "print \"maximum breaking torque=\",tb,\"N-m\"\n", + "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "breaking resistance= 6.1 ohm\n", + "maximum breaking torque= 1028.3970276 N-m\n", + "maximum breaking torque when N=0 = 522.360394972 N-m\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.48, Page Number:1069" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=120#V\n", + "ra=0.5#ohm\n", + "l=20*0.001#H\n", + "ka=0.05#V/rpm motor constant\n", + "ia=20#A\n", + "\n", + "#calculations\n", + "vt=ia*ra\n", + "alpha=vt/v\n", + "#when alpha=1\n", + "eb=v-ia*ra\n", + "N=eb/ka\n", + "\n", + "#result\n", + "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", + "print \"range of duty cycle=\",(alpha),\"to\",1" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " range of speed control= 0 to 2200.0 rpm\n", + "range of duty cycle= 0.0833333333333 to 1\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.49, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.46#kW\n", + "v=200#V\n", + "efficiency=0.85\n", + "ra=0.25#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "i=load*1000/(v*efficiency)\n", + "i1=ratio*i\n", + "r1=v/i1\n", + "r_start=r1-ra\n", + "eb1=v-i*r1\n", + "\n", + "#result\n", + "print \"starting resistance=\",r_start,\"ohm\"\n", + "print \"back emf=\",eb1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 2.78842716711 ohm\n", + "back emf= 66.6666666667 V\n" + ] + } + ], + "prompt_number": 125 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.50, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ia=40.0#A\n", + "n=7\n", + "\n", + "#calculations\n", + "r1=v/ia\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.812 ohm\n", + "resistance of 2nd section= 1.215 ohm\n", + "resistance of 3rd section= 0.815 ohm\n", + "resistance of 4th section= 0.546 ohm\n", + "resistance of 5th section= 0.366 ohm\n", + "resistance of 6th section= 0.246 ohm\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.51, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=6\n", + "load=3.73#kW\n", + "v=200#V\n", + "ratio=0.50\n", + "i1=0.6#A\n", + "efficiency=0.88\n", + "\n", + "#calculation\n", + "output=load/efficiency\n", + "total_loss=output-load\n", + "cu_loss=total_loss*ratio\n", + "i=output*1000/v\n", + "ia=i-i1\n", + "ra=cu_loss*1000/ia**2\n", + "i_per=i*2\n", + "ia_per=i_per-i1\n", + "r1=v/ia_per\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-ra\n", + "\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.627 ohm\n", + "resistance of 2nd section= 1.074 ohm\n", + "resistance of 3rd section= 0.709 ohm\n", + "resistance of 4th section= 0.468 ohm\n", + "resistance of 5th section= 0.309 ohm\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.52, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=7\n", + "load=36.775#kW\n", + "v=400#V\n", + "ratio=0.05\n", + "rsh=200#ohm\n", + "efficiency=0.92\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "cu_loss=input_m*ratio\n", + "cu_loss_sh=v**2/rsh\n", + "cu_loss_a=cu_loss-cu_loss_sh\n", + "i=input_m/v\n", + "ish=v/rsh\n", + "ia=i-ish\n", + "ra=cu_loss_a/ia**2\n", + "k=(v/(ia*ra))**(1.0/(n))\n", + "i1=k*ia\n", + "r1=v/i1\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.974 ohm\n", + "resistance of 2nd section= 0.592 ohm\n", + "resistance of 3rd section= 0.36 ohm\n", + "resistance of 4th section= 0.219 ohm\n", + "resistance of 5th section= 0.133 ohm\n", + "resistance of 6th section= 0.0 ohm\n", + "resistance of 7th section= 0.081 ohm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.53, Page Number:1082" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=250.0#V\n", + "ra=0.125#ohm\n", + "i2=150.0#A\n", + "i1=200.0#A\n", + "\n", + "#calculation\n", + "r1=v/i1\n", + "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", + "k=i1/i2\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r6/k\n", + "r8=r7/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-r8\n", + "p8=r8-ra\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", + "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.313 ohm\n", + "resistance of 2nd section= 0.234 ohm\n", + "resistance of 3rd section= 0.176 ohm\n", + "resistance of 4th section= 0.132 ohm\n", + "resistance of 5th section= 0.099 ohm\n", + "resistance of 6th section= 0.074 ohm\n", + "resistance of 7th section= 0.056 ohm\n", + "resistance of 8th section= 0.042 ohm\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.54, Page Number:1083" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=500#V\n", + "z=20\n", + "ra=1.31#ohm\n", + "t=218#N-m\n", + "ratio=1.5\n", + "slot=60\n", + "phi=23*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=t/(0.159*phi*slot*z)\n", + "i1=ia*ratio\n", + "i2=ia\n", + "k=i1/i2\n", + "r1=v/i1\n", + "n=solve(k**(n-1)-(r1/ra),n)\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 2.237 ohm\n", + "resistance of 2nd section= 1.491 ohm\n", + "resistance of 3rd section= 0.994 ohm\n", + "resistance of 4th section= 0.678 ohm\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.55, Page Number:1084" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3#kW\n", + "v=440#V\n", + "drop=0.02\n", + "efficiency=0.95\n", + "i_per=1.30\n", + "\n", + "#calculation\n", + "il=load*1000/(v*efficiency)\n", + "i1=i_per*il\n", + "vd=drop*v\n", + "rm=vd/il\n", + "r1=v/i1\n", + "r=(r1-rm)/6\n", + "\n", + "#result\n", + "print \"resistance of each rheostat=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of each rheostat= 0.615721729566 ohm\n" + ] + } + ], + "prompt_number": 165 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.56, Page Number:1085" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=55.95#kW\n", + "v=650.0#V\n", + "r=0.51#ohm\n", + "i1=140.0#A\n", + "i2=100.0#A\n", + "per=0.20\n", + "\n", + "#calculation\n", + "ratio=i1/i2\n", + "r1=v/i1\n", + "r2=((per+1)/ratio-per)*r1\n", + "r3=(per+1)*r2/ratio-per*r1\n", + "r4=((per+1)*r3/ratio)-per*r1\n", + "\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "\n", + "#result\n", + "print \"number of steps=\",3\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "number of steps= 3\n", + "resistance of 1st section= 1.592 ohm\n", + "resistance of 2nd section= 1.364 ohm\n", + "resistance of 3rd section= 1.17 ohm\n" + ] + } + ], + "prompt_number": 170 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_1.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_1.ipynb @@ -0,0 +1,2629 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 30:Speed Control of D.C. Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.1, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "n=250#rpm\n", + "ia=200#A\n", + "ra=0.12#ohm\n", + "ratio=0.80\n", + "ia2=100#A\n", + "\n", + "#calculations\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 320.0 rpm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.2, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ra=0.25#ohm\n", + "ia=50#A\n", + "n=750#rpm\n", + "ratio=1-0.10\n", + "\n", + "#calculation\n", + "ia2=ia/ratio\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 828.0 rpm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=800#rpm\n", + "ia=50.0#A\n", + "n2=1000#rpm\n", + "ia2=80.0#A\n", + "ra=0.15#ohm\n", + "rf=250.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "ish1=v/rf\n", + "r1=(n2*eb1*v)/(n*eb2*ish1)\n", + "r=r1-rf\n", + "ish2=v/r1\n", + "torque_ratio=ish2*ia2/(ish1*ia)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"\n", + "print \"ratio of torque=\",torque_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 68.9506880734 ohm\n", + "ratio of torque= 1.25411235955\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "rf=250.0#ohm\n", + "ra=0.25#ohm\n", + "n=1500#rpm\n", + "ia=20.0#A\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ish2=v/(rf+r)\n", + "ia2=ia*1/ish2\n", + "eb2=v-ia2*ra\n", + "eb1=v-ia*ra\n", + "n2=eb2*n/(eb1*ish2)\n", + "\n", + "#result\n", + "print \"new speed=\",round(n2),\"rpm\"\n", + "print \"new armature current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 2939.0 rpm\n", + "new armature current= 40.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.5, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "rt=Symbol('rt')\n", + "v=250.0#V\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "n=600.0#rpm\n", + "ia=20.0#A\n", + "n2=800.0#rpm\n", + "\n", + "#calculation\n", + "ish1=v/rf\n", + "eb1=v-ia*ra\n", + "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", + "r=rt[0]-rf\n", + "\n", + "#result\n", + "print \"resistance to be inserted=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 88.3128987990058 ohm\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.6, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=1+0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", + "per=1-1/x[0]\n", + "\n", + "#result\n", + "print\"main flux has to be reduced by=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "main flux has to be reduced by= 37.2991677469778 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.7, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=10#kW\n", + "i=41#A\n", + "ra=0.2#ohm\n", + "rw=0.05#ohm\n", + "ri=0.1#ohm\n", + "rf=110#ohm\n", + "ratio=1-0.25\n", + "r=1#ohm\n", + "ratio1=1-0.50\n", + "n=2500\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ratio1*ia1/ratio\n", + "eb1=v-ia1*(ra+ri+rw)\n", + "eb2=v-ia2*(r+ra+ri+rw)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"motor speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 26.0 A\n", + "motor speed= 2987.0 rpm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.8, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=15#kW\n", + "n=850#rpm\n", + "ia=72.2#A\n", + "ra=0.25#ohm\n", + "rf=100#ohm\n", + "n2=1650#rpm\n", + "ia2=40#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "ratio=(n*eb2)/(n2*eb1)\n", + "per=1-ratio\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 46.5636857585 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.9, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=0.50+1\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", + "per=ia/ia2[0]\n", + "\n", + "#result\n", + "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mail flux should be reduced by= 62.7 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.10, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=20.0#A\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ratio=0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=ratio*(v-ia*ra)\n", + "r=(v-eb2)/ia-ra\n", + "\n", + "#result\n", + "print \"resistance required in the series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in the series= 5.25 ohm\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.11, Page Number:1036" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=8#A\n", + "i_f=1#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "eb0=v-(ia-i_f)*ra\n", + "kpsi=eb0/1000\n", + "ia=i-i_f\n", + "eb1=v-ia*ra\n", + "n1=eb1/kpsi\n", + "\n", + "#result\n", + "print \"speed=\",round(n1,1),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 966.2 rpm\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.12, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "ra=0.25#ohm\n", + "n=1000#rpm\n", + "ia=40#A\n", + "n2=800#rpm\n", + "i2=20#A\n", + "#calculation\n", + "eb=v-ia*ra\n", + "eb2=n2*eb/n\n", + "r=(v-eb2)/(ia)-ra\n", + "eb3=v-i2*(r+ra)\n", + "n3=eb3*n/eb\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"\n", + "print \"speed=\",round(n3),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 1.15 ohm\n", + "speed= 922.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.13, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.48#kW\n", + "v=220#V\n", + "n=990#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2#A\n", + "n2=450#rpm\n", + "\n", + "#calculation\n", + "input_p=load*1000/efficiency\n", + "losses=input_p-load*1000\n", + "i=input_p/v\n", + "ia=i-ish\n", + "loss=v*ish\n", + "cu_loss=ia**2*ra\n", + "loss_nl=losses-cu_loss-loss\n", + "eb1=v-20-(ia*ra)\n", + "eb2=n2*eb1/n\n", + "r=(eb1-eb2)/ia\n", + "total_loss=ia**2*(r+ra)+loss+loss_nl\n", + "output=input_p-total_loss\n", + "efficiency=output/(input_p)\n", + "\n", + "#result\n", + "print \"motor input=\",input_p/1000,\"kW\"\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor input= 8.5 kW\n", + "armature current= 36.6363636364 A\n", + "external resistance= 2.93403113016 ohm\n", + "efficiency= 41.6691237902 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.14, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb1=230.0#V\n", + "n=990.0#rpm\n", + "n2=500.0#rpm\n", + "ia=25.0#A\n", + "\n", + "#calculation\n", + "eb2=eb1*n2/n\n", + "r=(eb1-eb2)/ia\n", + "\n", + "#result\n", + "print \"resistance required in series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in series= 4.55353535354 ohm\n" + ] + } + ], + "prompt_number": 83 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.15, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=20.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k2=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "rf1=v/if1\n", + "rf2=v/if2\n", + "r=rf2-rf1\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 100.0 ohm\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.16, Page Number:1039" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=22.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k1=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "if2=n2*ia/n\n", + "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", + "if2=ia*if1/ia2[0]\n", + "r=v/if2\n", + "\n", + "#result\n", + "print \"new field resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new field resistance to be added= 306.828780053869 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.17, Page Number:1040" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "output=25#kW\n", + "efficiency=0.85\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "ratio=1.50\n", + "\n", + "#calculation\n", + "input_p=output*1000/efficiency\n", + "i=input_p/v\n", + "if1=v/rf\n", + "ia=i-if1\n", + "il=ratio*ia\n", + "r=v/il\n", + "r_ext=r-ra\n", + "\n", + "#result\n", + "print \"starting resistance=\",round(r_ext,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 1.341 ohm\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.18, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "n=1000.0#rpm\n", + "ia=17.5#A\n", + "n2=600.0#rpm\n", + "ra=0.4#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "rt=(v-(n2*eb1/n))/ia\n", + "r=rt-ra\n", + "#result\n", + "print \"resistance to be inserted=\",round(r,1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 4.4 ohm\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.19, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ra=1.2#ohm\n", + "rf=500#ohm\n", + "ia=4#A\n", + "n=1000#rpm\n", + "i=26#A\n", + "r=2.3#ohm\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra\n", + "n2=n*eb2/eb1\n", + "eb2=v-ia2*(r+ra)\n", + "n2_=n*eb2/eb1\n", + "n2__=n*eb2/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", + "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", + "speed when shunt field is reduced by 15%= 978.0 rpm\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.20, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ia1=ia2=20.0#A\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "n2=500.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia1*ra\n", + "rt=(v-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "ia3=ia2/2\n", + "n3=n*(v-ia3*rt)/eb1\n", + "#result\n", + "print \"speed=\",round(n3),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 771.0 rpm\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.21, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ra1=0.5#ohm\n", + "n=600.0#rpm\n", + "ia2=ia1=20#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "#torque is half the full-load torque\n", + "ia2=1.0/2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 550.0 rpm\n", + "speed at half full-load torque= 588.0 rpm\n" + ] + } + ], + "prompt_number": 137 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.22, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra1=0.5#ohm\n", + "n=500.0#rpm\n", + "ia2=ia1=30.0#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "\n", + "#torque is half the full-load torque\n", + "ia2=2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 427.0 rpm\n", + "speed at double full-load torque= 317.0 rpm\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.23, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3*1000#W\n", + "v=500.0#V\n", + "n=750.0#rpm\n", + "efficiency=0.90\n", + "t2=250.0#N-m\n", + "r=5.0#ohm\n", + "ra=0.5#ohm\n", + "\n", + "#calculation\n", + "t1=load/(2*3.14*(n/60))\n", + "ia1=load/(efficiency*v)\n", + "ia2=ia1*math.sqrt(t2/t1)\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*(r+ra)\n", + "n2=eb2*ia1*n/(eb1*ia2)\n", + "\n", + "#result\n", + "print \"speed at which machine will run=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which machine will run= 381.789716486 rpm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.24, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=7.46*1000#W\n", + "v=220.0#V\n", + "n=900.0#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2.0#A\n", + "n2=450.0#rpm\n", + "#calculation\n", + "i=output/(efficiency*v)\n", + "ia2=ia1=i-ish\n", + "eb1=v-ia2*ra\n", + "rt=(v-20-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "input_m=(v)*(ia2+ish)\n", + "total_loss=input_m-output\n", + "cu_loss=ia2**2*ra\n", + "cu_loss_f=v*ish\n", + "total_cu_loss=cu_loss+cu_loss_f\n", + "stray_loss=total_loss-total_cu_loss\n", + "stray_loss2=stray_loss*n2/n\n", + "cu_loss_a=ia1**2*rt\n", + "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", + "output2=input_m-total_loss2\n", + "efficiency=output2*100/input_m\n", + "\n", + "#result\n", + "print \"motor output=\",output2,\"W\"\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"overall efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 4460.66115702 W\n", + "armature current= 36.5330578512 A\n", + "external resistance= 2.42352222599 ohm\n", + "overall efficiency= 52.619059225 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.25, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "ia=15.0#A\n", + "n=800.0#rpm\n", + "ra=0.6#ohm\n", + "n2=400.0#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "r=((v-(n2*eb1/n))/ia)-ra\n", + "ia3=ia/2\n", + "eb3=v-ia3*(r+ra)\n", + "n3=eb3*n/eb1\n", + "\n", + "#result\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 615.584415584 rpm\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.26, Page Number:1045" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=400.0#V\n", + "inl=3.5#A\n", + "il=59.5#A\n", + "rf=267.0#ohm\n", + "ra=0.2#ohm\n", + "vd=2.0#V\n", + "ratio=0.02\n", + "speed_ratio=0.50\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=inl-ish\n", + "eb1=v-ia1*ra-vd\n", + "ia2=il-ish\n", + "eb2=v-ia2*ra-vd\n", + "n1_by_n2=eb1*(1-ratio)/eb2\n", + "per_change=(1-1/n1_by_n2)*100\n", + "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", + "#result\n", + "print \"change in speed=\",per_change,\"%\"\n", + "print \"resistance to be added=\",r[0],\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "change in speed= 0.83357557339 %\n", + "resistance to be added= 3.33092370774547 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaraion\n", + "v=200.0#V\n", + "i=50.0#A\n", + "n=1000.0#rpm\n", + "n2=800.0#rpm\n", + "ra=0.1#ohm\n", + "rf=100.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ia1*(n2/n)**2\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "rt=(v-(n2*eb1/n))/ia2\n", + "r=rt-ra\n", + "#result\n", + "print \"resustance that must be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resustance that must be added= 1.32708333333 ohm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "load=37.3#kW\n", + "efficiency=0.90\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=115#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "tsh=9.55*load*1000/n\n", + "i=load*1000/(v*efficiency)\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "i_permissible=i*ratio\n", + "ia_per=i_permissible-ish\n", + "ra_total=v/ia_per\n", + "r_required=ra_total-ra\n", + "torque=ratio*ta\n", + "#result\n", + "print \"net torque=\",ta,\"N-m\"\n", + "print \"starting resistance=\",r_required,\"ohm\"\n", + "print \"torque developed at starting=\",torque,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "net torque= 365.403326173 N-m\n", + "starting resistance= 0.913513513514 ohm\n", + "torque developed at starting= 548.104989259 N-m\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.29, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "I=Symbol('I')\n", + "v=200.0#V\n", + "rf=40.0#ohm\n", + "ra=0.02#ohm\n", + "i=55.0#A\n", + "n=595.0#rpm\n", + "r=0.58#ohm\n", + "n2=630.0#rpm\n", + "ia_=15.0#A\n", + "rd=5.0#ohm\n", + "ia2=50.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ra1=r+ra\n", + "eb1=v-ra1*ia1\n", + "ia2=ia1\n", + "eb2=eb1*(n2/n)\n", + "r=(v-eb2)/ia1\n", + "eb2_=v-ia_*ra1\n", + "n2=eb2_*n/eb1\n", + "eb3=eb1\n", + "IR=v-eb3-ia2*ra\n", + "pd=v-IR\n", + "i_d=pd/rd\n", + "i=ia2+i_d\n", + "R=IR/i\n", + "I=solve(rd*(I-ia_)-v+R*I,I)\n", + "eb4=v-R*I[0]-ia_*ra\n", + "n4=n*(eb4/eb1)\n", + "\n", + "#result\n", + "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", + "print \"speed when Ia=\",n2,\"rpm\"\n", + "print \"value of series resistance=\",R,\"ohm\"\n", + "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature circuit resistance should be reduced by= 0.2 ohm\n", + "speed when Ia= 668.5 rpm\n", + "value of series resistance= 0.344418052257 ohm\n", + "speed when motor current falls to 15A= 636.922222222222 rpm\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.31, Page Number:1051" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=15#A\n", + "n=600#rpm\n", + "\n", + "#calculation\n", + "ia2=math.sqrt(2*2**0.5*i**2)\n", + "n2=n*2*i/ia2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 713.524269002 rpm\n", + "current= 25.2268924576 A\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.32, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=707#rpm\n", + "ia1=100#A\n", + "v=85#V\n", + "rf=0.03#ohm\n", + "ra=0.04#ohm\n", + "\n", + "#calculation\n", + "ra_total=ra+(2*rf)\n", + "eb1=v-ia1*ra_total\n", + "ia2=ia1*2**0.5\n", + "rf=rf/2\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", + "rt=(v-((n/n2)*eb2))/ia2\n", + "r=rt-ra-rf\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1029.46885374 rpm\n", + "additional resistance= 0.171040764009 ohm\n" + ] + } + ], + "prompt_number": 44 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.33, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varable declaration\n", + "v=240.0#V\n", + "ia=40.0#A\n", + "ra=0.3#ohm\n", + "n=1500.0#rpm\n", + "n2=1000.0#rpm\n", + "#calculation\n", + "R=v/ia-ra\n", + "eb1=v-ia*ra\n", + "r=(v-((n2/n)*eb1))/ia-ra\n", + "\n", + "#result\n", + "print \"resistance to be added at starting=\",R,\"ohm\"\n", + "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added at starting= 5.7 ohm\n", + "resistance to be added at 1000 rpm 1.9 ohm\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.34, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=600.0#rpm\n", + "v=250.0#V\n", + "ia1=20.0#A\n", + "ratio=2.0\n", + "\n", + "#calculations\n", + "ia2=ia1*2**(3.0/4.0)\n", + "n2=n*ratio*ia1/ia2\n", + "\n", + "#result\n", + "print \"current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 33.6358566101 A\n", + "speed= 713.524269002 rpm\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.35, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "V=Symbol('V')\n", + "ra=1.0#ohm\n", + "v=220.0#V\n", + "n=350.0#rpm\n", + "ia=25.0#A\n", + "n2=500.0#rpm\n", + "\n", + "#calculation\n", + "ia2=ia*(n2/n)\n", + "eb1=v-ia*ra\n", + "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", + "\n", + "#result\n", + "print \" current=\",ia2,\"A\"\n", + "print \"voltage=\",V[0],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " current= 35.7142857143 A\n", + "voltage= 433.673469387755 V\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.36, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000.0#rpm\n", + "ia=20.0#A\n", + "v=200.0#V\n", + "ra=0.5#ohm\n", + "rf=0.2#ohm\n", + "i=20.0#A\n", + "rd=0.2#ohm\n", + "i_f=10.0#A\n", + "ratio=0.70\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "r_total=ra+rf/2\n", + "eb2=v-r_total*ia\n", + "n2=(eb2*n/(eb1*ratio))\n", + " \n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1444.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.37, Page Number:1054" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "ia=40.0#A\n", + "n=700.0#rpm\n", + "ratio=0.50+1\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "\n", + "#calculations\n", + "ia2=(ratio*2*ia**2)**0.5\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=(eb2/eb1)*(ia*2/ia2)*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"speed=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 777.147765122 rpm\n", + "speed= 69.2820323028 A\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.38, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ia=20#A\n", + "n=900#rpm\n", + "r=0.025#ohm\n", + "ra=0.1#ohm\n", + "rd=0.2#ohm\n", + "\n", + "#calculation\n", + "#when divertor is added\n", + "eb1=v-ia*(ra+4*r)\n", + "ia2=(ia**2*(ra+rd)/rd)**0.5\n", + "ra_=rd*ra/(ra+rd)\n", + "eb2=v-ia2*ra_\n", + "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", + "\n", + "#rearranged field coils in two series and parallel group\n", + "ia2=(ia**2*2)**0.5\n", + "r=ra+r\n", + "eb2=v-ia2*r\n", + "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", + "\n", + "#result\n", + "print \"speed when divertor was added=\",n2,\"rpm\"\n", + "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when divertor was added= 1112.87640676 rpm\n", + "speed when field coils are rearranged= 1275.19533144 rpm\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.39, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=1000.0#rpm\n", + "i=12.0#A\n", + "rf=0.8#ohm\n", + "ra=1.0#ohm\n", + "il=20#A\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "eb1=v-i*(ra+rf)\n", + "eb2=v-il*(ra+rf/4)\n", + "n2=(eb2/eb1)*(1/(1-ratio))*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1162.92198261 rpm\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.40, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=200.0#v\n", + "n=500.0#rpm\n", + "i=25.0#A\n", + "ra=0.2#ohm\n", + "rf=0.6#ohm\n", + "rd=10.0#ohm\n", + "\n", + "#calculation\n", + "r=ra+rf\n", + "eb1=v-i*r\n", + "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", + "pd=v-i2[1]*rf\n", + "ia2=((rd+rf)*i2[1]-v)/rd\n", + "eb2=pd-ia2*ra\n", + "n2=(eb2/eb1)*(i/i2[1])*n\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 342.848235418389 rpm\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.41, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.3#ohm\n", + "i=20#A\n", + "n=1200#rpm\n", + "r=3#ohm\n", + "i2=15#A\n", + "ratio=0.80\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb2=v-(r+ra)*i2\n", + "n2=n*(eb2/eb1)/ratio\n", + "power_ratio=(n*i)/(n2*i2*ratio)\n", + "\n", + "#result\n", + "print \"new speed=\",n2,\"rpm\"\n", + "print \"ratio of power outputs=\",power_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 1349.65437788 rpm\n", + "ratio of power outputs= 1.48186086214\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.42, Page Number:1057" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=460#V\n", + "ratio=1-0.25\n", + "\n", + "#calculation\n", + "I=(i**2*ratio**3)**0.5\n", + "eb2=I*ratio*v/i\n", + "R=(v-eb2)/I\n", + "pa=v*i/1000\n", + "power_n=pa*ratio**4\n", + "pa=eb2*I\n", + "\n", + "#result\n", + "print \"Resistance required=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance required= 7.26432660412 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.44, Page Number:1060" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=500#rpm\n", + "n2=550#rpm\n", + "i=50#A\n", + "v=500#V\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "eb1=v-i*r\n", + "kphi1=eb1/n\n", + "eb2=v-i*r\n", + "kphi2=eb2/n2\n", + "eb_=v-i*2*r\n", + "n=eb_/((eb1/n2)+(eb2/n))\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 248.120300752 rpm\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.45, Page Number:1061" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=14.92#kW\n", + "v=250#V\n", + "n=1000#rpm\n", + "ratio1=5.0\n", + "ratio2=4.0\n", + "t=882#N-m\n", + "\n", + "#calculation\n", + "i=load*1000/v\n", + "k=v/(n*i/60)\n", + "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", + "nsh=v/((ratio1+ratio2)*k*I)\n", + "eb1=ratio1*k*I*nsh\n", + "eb2=ratio2*k*I*nsh\n", + "\n", + "#result\n", + "print \"current=\",I,\"A\"\n", + "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", + "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 49.5202984449 A\n", + "speed of shaft= 134.0 rpm\n", + "voltage across the motors= 139.0 V, 111.0 V\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.46, Page Number:1063" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "t=700#N-m\n", + "n=1200#rpm\n", + "ra=0.008#ohm\n", + "rf=55#ohm\n", + "efficiency=0.90\n", + "t2=375#N-m\n", + "n2=1050#rpm\n", + "\n", + "#calculation\n", + "output=2*3.14*n*t/60\n", + "power_m=output/efficiency\n", + "im=power_m/v\n", + "ish=v/rf\n", + "ia1=im-ish\n", + "eb1=v-ia1*ra\n", + "ia2=ia1*t2/t\n", + "eb2=eb1*n2/n\n", + "r=eb2/ia2-ra\n", + "\n", + "#result\n", + "print \"dynamic break resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "dynamic break resistance= 0.795525014538 ohm\n" + ] + } + ], + "prompt_number": 118 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.47, Page Number:1064" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "load=18.65#kW\n", + "n=450.0#rpm\n", + "efficiency=0.746\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "I=load*1000/(efficiency*v)\n", + "eb=v-I*ra\n", + "vt=v+eb\n", + "i_max=2*I\n", + "r=vt/i_max\n", + "R=r-ra\n", + "N=n/60\n", + "phizp_by_a=eb/N\n", + "k4=phizp_by_a*v/(2*3.14*r)\n", + "k3=phizp_by_a**2/(2*3.14*r)\n", + "tb=k4+k3*N\n", + "tb0=k4\n", + "#result\n", + "print \"breaking resistance=\",R,\"ohm\"\n", + "print \"maximum breaking torque=\",tb,\"N-m\"\n", + "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "breaking resistance= 6.1 ohm\n", + "maximum breaking torque= 1028.3970276 N-m\n", + "maximum breaking torque when N=0 = 522.360394972 N-m\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.48, Page Number:1069" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=120#V\n", + "ra=0.5#ohm\n", + "l=20*0.001#H\n", + "ka=0.05#V/rpm motor constant\n", + "ia=20#A\n", + "\n", + "#calculations\n", + "vt=ia*ra\n", + "alpha=vt/v\n", + "#when alpha=1\n", + "eb=v-ia*ra\n", + "N=eb/ka\n", + "\n", + "#result\n", + "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", + "print \"range of duty cycle=\",(alpha),\"to\",1" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " range of speed control= 0 to 2200.0 rpm\n", + "range of duty cycle= 0.0833333333333 to 1\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.49, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.46#kW\n", + "v=200#V\n", + "efficiency=0.85\n", + "ra=0.25#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "i=load*1000/(v*efficiency)\n", + "i1=ratio*i\n", + "r1=v/i1\n", + "r_start=r1-ra\n", + "eb1=v-i*r1\n", + "\n", + "#result\n", + "print \"starting resistance=\",r_start,\"ohm\"\n", + "print \"back emf=\",eb1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 2.78842716711 ohm\n", + "back emf= 66.6666666667 V\n" + ] + } + ], + "prompt_number": 125 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.50, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ia=40.0#A\n", + "n=7\n", + "\n", + "#calculations\n", + "r1=v/ia\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.812 ohm\n", + "resistance of 2nd section= 1.215 ohm\n", + "resistance of 3rd section= 0.815 ohm\n", + "resistance of 4th section= 0.546 ohm\n", + "resistance of 5th section= 0.366 ohm\n", + "resistance of 6th section= 0.246 ohm\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.51, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=6\n", + "load=3.73#kW\n", + "v=200#V\n", + "ratio=0.50\n", + "i1=0.6#A\n", + "efficiency=0.88\n", + "\n", + "#calculation\n", + "output=load/efficiency\n", + "total_loss=output-load\n", + "cu_loss=total_loss*ratio\n", + "i=output*1000/v\n", + "ia=i-i1\n", + "ra=cu_loss*1000/ia**2\n", + "i_per=i*2\n", + "ia_per=i_per-i1\n", + "r1=v/ia_per\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-ra\n", + "\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.627 ohm\n", + "resistance of 2nd section= 1.074 ohm\n", + "resistance of 3rd section= 0.709 ohm\n", + "resistance of 4th section= 0.468 ohm\n", + "resistance of 5th section= 0.309 ohm\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.52, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=7\n", + "load=36.775#kW\n", + "v=400#V\n", + "ratio=0.05\n", + "rsh=200#ohm\n", + "efficiency=0.92\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "cu_loss=input_m*ratio\n", + "cu_loss_sh=v**2/rsh\n", + "cu_loss_a=cu_loss-cu_loss_sh\n", + "i=input_m/v\n", + "ish=v/rsh\n", + "ia=i-ish\n", + "ra=cu_loss_a/ia**2\n", + "k=(v/(ia*ra))**(1.0/(n))\n", + "i1=k*ia\n", + "r1=v/i1\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.974 ohm\n", + "resistance of 2nd section= 0.592 ohm\n", + "resistance of 3rd section= 0.36 ohm\n", + "resistance of 4th section= 0.219 ohm\n", + "resistance of 5th section= 0.133 ohm\n", + "resistance of 6th section= 0.0 ohm\n", + "resistance of 7th section= 0.081 ohm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.53, Page Number:1082" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=250.0#V\n", + "ra=0.125#ohm\n", + "i2=150.0#A\n", + "i1=200.0#A\n", + "\n", + "#calculation\n", + "r1=v/i1\n", + "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", + "k=i1/i2\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r6/k\n", + "r8=r7/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-r8\n", + "p8=r8-ra\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", + "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.313 ohm\n", + "resistance of 2nd section= 0.234 ohm\n", + "resistance of 3rd section= 0.176 ohm\n", + "resistance of 4th section= 0.132 ohm\n", + "resistance of 5th section= 0.099 ohm\n", + "resistance of 6th section= 0.074 ohm\n", + "resistance of 7th section= 0.056 ohm\n", + "resistance of 8th section= 0.042 ohm\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.54, Page Number:1083" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=500#V\n", + "z=20\n", + "ra=1.31#ohm\n", + "t=218#N-m\n", + "ratio=1.5\n", + "slot=60\n", + "phi=23*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=t/(0.159*phi*slot*z)\n", + "i1=ia*ratio\n", + "i2=ia\n", + "k=i1/i2\n", + "r1=v/i1\n", + "n=solve(k**(n-1)-(r1/ra),n)\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 2.237 ohm\n", + "resistance of 2nd section= 1.491 ohm\n", + "resistance of 3rd section= 0.994 ohm\n", + "resistance of 4th section= 0.678 ohm\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.55, Page Number:1084" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3#kW\n", + "v=440#V\n", + "drop=0.02\n", + "efficiency=0.95\n", + "i_per=1.30\n", + "\n", + "#calculation\n", + "il=load*1000/(v*efficiency)\n", + "i1=i_per*il\n", + "vd=drop*v\n", + "rm=vd/il\n", + "r1=v/i1\n", + "r=(r1-rm)/6\n", + "\n", + "#result\n", + "print \"resistance of each rheostat=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of each rheostat= 0.615721729566 ohm\n" + ] + } + ], + "prompt_number": 165 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.56, Page Number:1085" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=55.95#kW\n", + "v=650.0#V\n", + "r=0.51#ohm\n", + "i1=140.0#A\n", + "i2=100.0#A\n", + "per=0.20\n", + "\n", + "#calculation\n", + "ratio=i1/i2\n", + "r1=v/i1\n", + "r2=((per+1)/ratio-per)*r1\n", + "r3=(per+1)*r2/ratio-per*r1\n", + "r4=((per+1)*r3/ratio)-per*r1\n", + "\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "\n", + "#result\n", + "print \"number of steps=\",3\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "number of steps= 3\n", + "resistance of 1st section= 1.592 ohm\n", + "resistance of 2nd section= 1.364 ohm\n", + "resistance of 3rd section= 1.17 ohm\n" + ] + } + ], + "prompt_number": 170 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_2.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_2.ipynb @@ -0,0 +1,2629 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 30:Speed Control of D.C. Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.1, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "n=250#rpm\n", + "ia=200#A\n", + "ra=0.12#ohm\n", + "ratio=0.80\n", + "ia2=100#A\n", + "\n", + "#calculations\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 320.0 rpm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.2, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ra=0.25#ohm\n", + "ia=50#A\n", + "n=750#rpm\n", + "ratio=1-0.10\n", + "\n", + "#calculation\n", + "ia2=ia/ratio\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 828.0 rpm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=800#rpm\n", + "ia=50.0#A\n", + "n2=1000#rpm\n", + "ia2=80.0#A\n", + "ra=0.15#ohm\n", + "rf=250.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "ish1=v/rf\n", + "r1=(n2*eb1*v)/(n*eb2*ish1)\n", + "r=r1-rf\n", + "ish2=v/r1\n", + "torque_ratio=ish2*ia2/(ish1*ia)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"\n", + "print \"ratio of torque=\",torque_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 68.9506880734 ohm\n", + "ratio of torque= 1.25411235955\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "rf=250.0#ohm\n", + "ra=0.25#ohm\n", + "n=1500#rpm\n", + "ia=20.0#A\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ish2=v/(rf+r)\n", + "ia2=ia*1/ish2\n", + "eb2=v-ia2*ra\n", + "eb1=v-ia*ra\n", + "n2=eb2*n/(eb1*ish2)\n", + "\n", + "#result\n", + "print \"new speed=\",round(n2),\"rpm\"\n", + "print \"new armature current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 2939.0 rpm\n", + "new armature current= 40.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.5, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "rt=Symbol('rt')\n", + "v=250.0#V\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "n=600.0#rpm\n", + "ia=20.0#A\n", + "n2=800.0#rpm\n", + "\n", + "#calculation\n", + "ish1=v/rf\n", + "eb1=v-ia*ra\n", + "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", + "r=rt[0]-rf\n", + "\n", + "#result\n", + "print \"resistance to be inserted=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 88.3128987990058 ohm\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.6, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=1+0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", + "per=1-1/x[0]\n", + "\n", + "#result\n", + "print\"main flux has to be reduced by=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "main flux has to be reduced by= 37.2991677469778 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.7, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=10#kW\n", + "i=41#A\n", + "ra=0.2#ohm\n", + "rw=0.05#ohm\n", + "ri=0.1#ohm\n", + "rf=110#ohm\n", + "ratio=1-0.25\n", + "r=1#ohm\n", + "ratio1=1-0.50\n", + "n=2500\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ratio1*ia1/ratio\n", + "eb1=v-ia1*(ra+ri+rw)\n", + "eb2=v-ia2*(r+ra+ri+rw)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"motor speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 26.0 A\n", + "motor speed= 2987.0 rpm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.8, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=15#kW\n", + "n=850#rpm\n", + "ia=72.2#A\n", + "ra=0.25#ohm\n", + "rf=100#ohm\n", + "n2=1650#rpm\n", + "ia2=40#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "ratio=(n*eb2)/(n2*eb1)\n", + "per=1-ratio\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 46.5636857585 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.9, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=0.50+1\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", + "per=ia/ia2[0]\n", + "\n", + "#result\n", + "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mail flux should be reduced by= 62.7 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.10, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=20.0#A\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ratio=0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=ratio*(v-ia*ra)\n", + "r=(v-eb2)/ia-ra\n", + "\n", + "#result\n", + "print \"resistance required in the series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in the series= 5.25 ohm\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.11, Page Number:1036" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=8#A\n", + "i_f=1#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "eb0=v-(ia-i_f)*ra\n", + "kpsi=eb0/1000\n", + "ia=i-i_f\n", + "eb1=v-ia*ra\n", + "n1=eb1/kpsi\n", + "\n", + "#result\n", + "print \"speed=\",round(n1,1),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 966.2 rpm\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.12, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "ra=0.25#ohm\n", + "n=1000#rpm\n", + "ia=40#A\n", + "n2=800#rpm\n", + "i2=20#A\n", + "#calculation\n", + "eb=v-ia*ra\n", + "eb2=n2*eb/n\n", + "r=(v-eb2)/(ia)-ra\n", + "eb3=v-i2*(r+ra)\n", + "n3=eb3*n/eb\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"\n", + "print \"speed=\",round(n3),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 1.15 ohm\n", + "speed= 922.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.13, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.48#kW\n", + "v=220#V\n", + "n=990#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2#A\n", + "n2=450#rpm\n", + "\n", + "#calculation\n", + "input_p=load*1000/efficiency\n", + "losses=input_p-load*1000\n", + "i=input_p/v\n", + "ia=i-ish\n", + "loss=v*ish\n", + "cu_loss=ia**2*ra\n", + "loss_nl=losses-cu_loss-loss\n", + "eb1=v-20-(ia*ra)\n", + "eb2=n2*eb1/n\n", + "r=(eb1-eb2)/ia\n", + "total_loss=ia**2*(r+ra)+loss+loss_nl\n", + "output=input_p-total_loss\n", + "efficiency=output/(input_p)\n", + "\n", + "#result\n", + "print \"motor input=\",input_p/1000,\"kW\"\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor input= 8.5 kW\n", + "armature current= 36.6363636364 A\n", + "external resistance= 2.93403113016 ohm\n", + "efficiency= 41.6691237902 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.14, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb1=230.0#V\n", + "n=990.0#rpm\n", + "n2=500.0#rpm\n", + "ia=25.0#A\n", + "\n", + "#calculation\n", + "eb2=eb1*n2/n\n", + "r=(eb1-eb2)/ia\n", + "\n", + "#result\n", + "print \"resistance required in series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in series= 4.55353535354 ohm\n" + ] + } + ], + "prompt_number": 83 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.15, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=20.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k2=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "rf1=v/if1\n", + "rf2=v/if2\n", + "r=rf2-rf1\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 100.0 ohm\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.16, Page Number:1039" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=22.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k1=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "if2=n2*ia/n\n", + "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", + "if2=ia*if1/ia2[0]\n", + "r=v/if2\n", + "\n", + "#result\n", + "print \"new field resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new field resistance to be added= 306.828780053869 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.17, Page Number:1040" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "output=25#kW\n", + "efficiency=0.85\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "ratio=1.50\n", + "\n", + "#calculation\n", + "input_p=output*1000/efficiency\n", + "i=input_p/v\n", + "if1=v/rf\n", + "ia=i-if1\n", + "il=ratio*ia\n", + "r=v/il\n", + "r_ext=r-ra\n", + "\n", + "#result\n", + "print \"starting resistance=\",round(r_ext,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 1.341 ohm\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.18, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "n=1000.0#rpm\n", + "ia=17.5#A\n", + "n2=600.0#rpm\n", + "ra=0.4#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "rt=(v-(n2*eb1/n))/ia\n", + "r=rt-ra\n", + "#result\n", + "print \"resistance to be inserted=\",round(r,1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 4.4 ohm\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.19, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ra=1.2#ohm\n", + "rf=500#ohm\n", + "ia=4#A\n", + "n=1000#rpm\n", + "i=26#A\n", + "r=2.3#ohm\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra\n", + "n2=n*eb2/eb1\n", + "eb2=v-ia2*(r+ra)\n", + "n2_=n*eb2/eb1\n", + "n2__=n*eb2/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", + "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", + "speed when shunt field is reduced by 15%= 978.0 rpm\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.20, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ia1=ia2=20.0#A\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "n2=500.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia1*ra\n", + "rt=(v-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "ia3=ia2/2\n", + "n3=n*(v-ia3*rt)/eb1\n", + "#result\n", + "print \"speed=\",round(n3),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 771.0 rpm\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.21, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ra1=0.5#ohm\n", + "n=600.0#rpm\n", + "ia2=ia1=20#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "#torque is half the full-load torque\n", + "ia2=1.0/2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 550.0 rpm\n", + "speed at half full-load torque= 588.0 rpm\n" + ] + } + ], + "prompt_number": 137 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.22, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra1=0.5#ohm\n", + "n=500.0#rpm\n", + "ia2=ia1=30.0#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "\n", + "#torque is half the full-load torque\n", + "ia2=2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 427.0 rpm\n", + "speed at double full-load torque= 317.0 rpm\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.23, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3*1000#W\n", + "v=500.0#V\n", + "n=750.0#rpm\n", + "efficiency=0.90\n", + "t2=250.0#N-m\n", + "r=5.0#ohm\n", + "ra=0.5#ohm\n", + "\n", + "#calculation\n", + "t1=load/(2*3.14*(n/60))\n", + "ia1=load/(efficiency*v)\n", + "ia2=ia1*math.sqrt(t2/t1)\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*(r+ra)\n", + "n2=eb2*ia1*n/(eb1*ia2)\n", + "\n", + "#result\n", + "print \"speed at which machine will run=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which machine will run= 381.789716486 rpm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.24, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=7.46*1000#W\n", + "v=220.0#V\n", + "n=900.0#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2.0#A\n", + "n2=450.0#rpm\n", + "#calculation\n", + "i=output/(efficiency*v)\n", + "ia2=ia1=i-ish\n", + "eb1=v-ia2*ra\n", + "rt=(v-20-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "input_m=(v)*(ia2+ish)\n", + "total_loss=input_m-output\n", + "cu_loss=ia2**2*ra\n", + "cu_loss_f=v*ish\n", + "total_cu_loss=cu_loss+cu_loss_f\n", + "stray_loss=total_loss-total_cu_loss\n", + "stray_loss2=stray_loss*n2/n\n", + "cu_loss_a=ia1**2*rt\n", + "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", + "output2=input_m-total_loss2\n", + "efficiency=output2*100/input_m\n", + "\n", + "#result\n", + "print \"motor output=\",output2,\"W\"\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"overall efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 4460.66115702 W\n", + "armature current= 36.5330578512 A\n", + "external resistance= 2.42352222599 ohm\n", + "overall efficiency= 52.619059225 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.25, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "ia=15.0#A\n", + "n=800.0#rpm\n", + "ra=0.6#ohm\n", + "n2=400.0#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "r=((v-(n2*eb1/n))/ia)-ra\n", + "ia3=ia/2\n", + "eb3=v-ia3*(r+ra)\n", + "n3=eb3*n/eb1\n", + "\n", + "#result\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 615.584415584 rpm\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.26, Page Number:1045" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=400.0#V\n", + "inl=3.5#A\n", + "il=59.5#A\n", + "rf=267.0#ohm\n", + "ra=0.2#ohm\n", + "vd=2.0#V\n", + "ratio=0.02\n", + "speed_ratio=0.50\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=inl-ish\n", + "eb1=v-ia1*ra-vd\n", + "ia2=il-ish\n", + "eb2=v-ia2*ra-vd\n", + "n1_by_n2=eb1*(1-ratio)/eb2\n", + "per_change=(1-1/n1_by_n2)*100\n", + "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", + "#result\n", + "print \"change in speed=\",per_change,\"%\"\n", + "print \"resistance to be added=\",r[0],\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "change in speed= 0.83357557339 %\n", + "resistance to be added= 3.33092370774547 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaraion\n", + "v=200.0#V\n", + "i=50.0#A\n", + "n=1000.0#rpm\n", + "n2=800.0#rpm\n", + "ra=0.1#ohm\n", + "rf=100.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ia1*(n2/n)**2\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "rt=(v-(n2*eb1/n))/ia2\n", + "r=rt-ra\n", + "#result\n", + "print \"resustance that must be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resustance that must be added= 1.32708333333 ohm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "load=37.3#kW\n", + "efficiency=0.90\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=115#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "tsh=9.55*load*1000/n\n", + "i=load*1000/(v*efficiency)\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "i_permissible=i*ratio\n", + "ia_per=i_permissible-ish\n", + "ra_total=v/ia_per\n", + "r_required=ra_total-ra\n", + "torque=ratio*ta\n", + "#result\n", + "print \"net torque=\",ta,\"N-m\"\n", + "print \"starting resistance=\",r_required,\"ohm\"\n", + "print \"torque developed at starting=\",torque,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "net torque= 365.403326173 N-m\n", + "starting resistance= 0.913513513514 ohm\n", + "torque developed at starting= 548.104989259 N-m\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.29, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "I=Symbol('I')\n", + "v=200.0#V\n", + "rf=40.0#ohm\n", + "ra=0.02#ohm\n", + "i=55.0#A\n", + "n=595.0#rpm\n", + "r=0.58#ohm\n", + "n2=630.0#rpm\n", + "ia_=15.0#A\n", + "rd=5.0#ohm\n", + "ia2=50.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ra1=r+ra\n", + "eb1=v-ra1*ia1\n", + "ia2=ia1\n", + "eb2=eb1*(n2/n)\n", + "r=(v-eb2)/ia1\n", + "eb2_=v-ia_*ra1\n", + "n2=eb2_*n/eb1\n", + "eb3=eb1\n", + "IR=v-eb3-ia2*ra\n", + "pd=v-IR\n", + "i_d=pd/rd\n", + "i=ia2+i_d\n", + "R=IR/i\n", + "I=solve(rd*(I-ia_)-v+R*I,I)\n", + "eb4=v-R*I[0]-ia_*ra\n", + "n4=n*(eb4/eb1)\n", + "\n", + "#result\n", + "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", + "print \"speed when Ia=\",n2,\"rpm\"\n", + "print \"value of series resistance=\",R,\"ohm\"\n", + "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature circuit resistance should be reduced by= 0.2 ohm\n", + "speed when Ia= 668.5 rpm\n", + "value of series resistance= 0.344418052257 ohm\n", + "speed when motor current falls to 15A= 636.922222222222 rpm\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.31, Page Number:1051" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=15#A\n", + "n=600#rpm\n", + "\n", + "#calculation\n", + "ia2=math.sqrt(2*2**0.5*i**2)\n", + "n2=n*2*i/ia2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 713.524269002 rpm\n", + "current= 25.2268924576 A\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.32, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=707#rpm\n", + "ia1=100#A\n", + "v=85#V\n", + "rf=0.03#ohm\n", + "ra=0.04#ohm\n", + "\n", + "#calculation\n", + "ra_total=ra+(2*rf)\n", + "eb1=v-ia1*ra_total\n", + "ia2=ia1*2**0.5\n", + "rf=rf/2\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", + "rt=(v-((n/n2)*eb2))/ia2\n", + "r=rt-ra-rf\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1029.46885374 rpm\n", + "additional resistance= 0.171040764009 ohm\n" + ] + } + ], + "prompt_number": 44 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.33, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varable declaration\n", + "v=240.0#V\n", + "ia=40.0#A\n", + "ra=0.3#ohm\n", + "n=1500.0#rpm\n", + "n2=1000.0#rpm\n", + "#calculation\n", + "R=v/ia-ra\n", + "eb1=v-ia*ra\n", + "r=(v-((n2/n)*eb1))/ia-ra\n", + "\n", + "#result\n", + "print \"resistance to be added at starting=\",R,\"ohm\"\n", + "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added at starting= 5.7 ohm\n", + "resistance to be added at 1000 rpm 1.9 ohm\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.34, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=600.0#rpm\n", + "v=250.0#V\n", + "ia1=20.0#A\n", + "ratio=2.0\n", + "\n", + "#calculations\n", + "ia2=ia1*2**(3.0/4.0)\n", + "n2=n*ratio*ia1/ia2\n", + "\n", + "#result\n", + "print \"current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 33.6358566101 A\n", + "speed= 713.524269002 rpm\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.35, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "V=Symbol('V')\n", + "ra=1.0#ohm\n", + "v=220.0#V\n", + "n=350.0#rpm\n", + "ia=25.0#A\n", + "n2=500.0#rpm\n", + "\n", + "#calculation\n", + "ia2=ia*(n2/n)\n", + "eb1=v-ia*ra\n", + "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", + "\n", + "#result\n", + "print \" current=\",ia2,\"A\"\n", + "print \"voltage=\",V[0],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " current= 35.7142857143 A\n", + "voltage= 433.673469387755 V\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.36, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000.0#rpm\n", + "ia=20.0#A\n", + "v=200.0#V\n", + "ra=0.5#ohm\n", + "rf=0.2#ohm\n", + "i=20.0#A\n", + "rd=0.2#ohm\n", + "i_f=10.0#A\n", + "ratio=0.70\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "r_total=ra+rf/2\n", + "eb2=v-r_total*ia\n", + "n2=(eb2*n/(eb1*ratio))\n", + " \n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1444.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.37, Page Number:1054" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "ia=40.0#A\n", + "n=700.0#rpm\n", + "ratio=0.50+1\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "\n", + "#calculations\n", + "ia2=(ratio*2*ia**2)**0.5\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=(eb2/eb1)*(ia*2/ia2)*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"speed=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 777.147765122 rpm\n", + "speed= 69.2820323028 A\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.38, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ia=20#A\n", + "n=900#rpm\n", + "r=0.025#ohm\n", + "ra=0.1#ohm\n", + "rd=0.2#ohm\n", + "\n", + "#calculation\n", + "#when divertor is added\n", + "eb1=v-ia*(ra+4*r)\n", + "ia2=(ia**2*(ra+rd)/rd)**0.5\n", + "ra_=rd*ra/(ra+rd)\n", + "eb2=v-ia2*ra_\n", + "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", + "\n", + "#rearranged field coils in two series and parallel group\n", + "ia2=(ia**2*2)**0.5\n", + "r=ra+r\n", + "eb2=v-ia2*r\n", + "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", + "\n", + "#result\n", + "print \"speed when divertor was added=\",n2,\"rpm\"\n", + "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when divertor was added= 1112.87640676 rpm\n", + "speed when field coils are rearranged= 1275.19533144 rpm\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.39, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=1000.0#rpm\n", + "i=12.0#A\n", + "rf=0.8#ohm\n", + "ra=1.0#ohm\n", + "il=20#A\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "eb1=v-i*(ra+rf)\n", + "eb2=v-il*(ra+rf/4)\n", + "n2=(eb2/eb1)*(1/(1-ratio))*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1162.92198261 rpm\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.40, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=200.0#v\n", + "n=500.0#rpm\n", + "i=25.0#A\n", + "ra=0.2#ohm\n", + "rf=0.6#ohm\n", + "rd=10.0#ohm\n", + "\n", + "#calculation\n", + "r=ra+rf\n", + "eb1=v-i*r\n", + "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", + "pd=v-i2[1]*rf\n", + "ia2=((rd+rf)*i2[1]-v)/rd\n", + "eb2=pd-ia2*ra\n", + "n2=(eb2/eb1)*(i/i2[1])*n\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 342.848235418389 rpm\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.41, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.3#ohm\n", + "i=20#A\n", + "n=1200#rpm\n", + "r=3#ohm\n", + "i2=15#A\n", + "ratio=0.80\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb2=v-(r+ra)*i2\n", + "n2=n*(eb2/eb1)/ratio\n", + "power_ratio=(n*i)/(n2*i2*ratio)\n", + "\n", + "#result\n", + "print \"new speed=\",n2,\"rpm\"\n", + "print \"ratio of power outputs=\",power_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 1349.65437788 rpm\n", + "ratio of power outputs= 1.48186086214\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.42, Page Number:1057" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=460#V\n", + "ratio=1-0.25\n", + "\n", + "#calculation\n", + "I=(i**2*ratio**3)**0.5\n", + "eb2=I*ratio*v/i\n", + "R=(v-eb2)/I\n", + "pa=v*i/1000\n", + "power_n=pa*ratio**4\n", + "pa=eb2*I\n", + "\n", + "#result\n", + "print \"Resistance required=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance required= 7.26432660412 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.44, Page Number:1060" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=500#rpm\n", + "n2=550#rpm\n", + "i=50#A\n", + "v=500#V\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "eb1=v-i*r\n", + "kphi1=eb1/n\n", + "eb2=v-i*r\n", + "kphi2=eb2/n2\n", + "eb_=v-i*2*r\n", + "n=eb_/((eb1/n2)+(eb2/n))\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 248.120300752 rpm\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.45, Page Number:1061" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=14.92#kW\n", + "v=250#V\n", + "n=1000#rpm\n", + "ratio1=5.0\n", + "ratio2=4.0\n", + "t=882#N-m\n", + "\n", + "#calculation\n", + "i=load*1000/v\n", + "k=v/(n*i/60)\n", + "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", + "nsh=v/((ratio1+ratio2)*k*I)\n", + "eb1=ratio1*k*I*nsh\n", + "eb2=ratio2*k*I*nsh\n", + "\n", + "#result\n", + "print \"current=\",I,\"A\"\n", + "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", + "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 49.5202984449 A\n", + "speed of shaft= 134.0 rpm\n", + "voltage across the motors= 139.0 V, 111.0 V\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.46, Page Number:1063" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "t=700#N-m\n", + "n=1200#rpm\n", + "ra=0.008#ohm\n", + "rf=55#ohm\n", + "efficiency=0.90\n", + "t2=375#N-m\n", + "n2=1050#rpm\n", + "\n", + "#calculation\n", + "output=2*3.14*n*t/60\n", + "power_m=output/efficiency\n", + "im=power_m/v\n", + "ish=v/rf\n", + "ia1=im-ish\n", + "eb1=v-ia1*ra\n", + "ia2=ia1*t2/t\n", + "eb2=eb1*n2/n\n", + "r=eb2/ia2-ra\n", + "\n", + "#result\n", + "print \"dynamic break resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "dynamic break resistance= 0.795525014538 ohm\n" + ] + } + ], + "prompt_number": 118 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.47, Page Number:1064" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "load=18.65#kW\n", + "n=450.0#rpm\n", + "efficiency=0.746\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "I=load*1000/(efficiency*v)\n", + "eb=v-I*ra\n", + "vt=v+eb\n", + "i_max=2*I\n", + "r=vt/i_max\n", + "R=r-ra\n", + "N=n/60\n", + "phizp_by_a=eb/N\n", + "k4=phizp_by_a*v/(2*3.14*r)\n", + "k3=phizp_by_a**2/(2*3.14*r)\n", + "tb=k4+k3*N\n", + "tb0=k4\n", + "#result\n", + "print \"breaking resistance=\",R,\"ohm\"\n", + "print \"maximum breaking torque=\",tb,\"N-m\"\n", + "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "breaking resistance= 6.1 ohm\n", + "maximum breaking torque= 1028.3970276 N-m\n", + "maximum breaking torque when N=0 = 522.360394972 N-m\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.48, Page Number:1069" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=120#V\n", + "ra=0.5#ohm\n", + "l=20*0.001#H\n", + "ka=0.05#V/rpm motor constant\n", + "ia=20#A\n", + "\n", + "#calculations\n", + "vt=ia*ra\n", + "alpha=vt/v\n", + "#when alpha=1\n", + "eb=v-ia*ra\n", + "N=eb/ka\n", + "\n", + "#result\n", + "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", + "print \"range of duty cycle=\",(alpha),\"to\",1" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " range of speed control= 0 to 2200.0 rpm\n", + "range of duty cycle= 0.0833333333333 to 1\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.49, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.46#kW\n", + "v=200#V\n", + "efficiency=0.85\n", + "ra=0.25#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "i=load*1000/(v*efficiency)\n", + "i1=ratio*i\n", + "r1=v/i1\n", + "r_start=r1-ra\n", + "eb1=v-i*r1\n", + "\n", + "#result\n", + "print \"starting resistance=\",r_start,\"ohm\"\n", + "print \"back emf=\",eb1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 2.78842716711 ohm\n", + "back emf= 66.6666666667 V\n" + ] + } + ], + "prompt_number": 125 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.50, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ia=40.0#A\n", + "n=7\n", + "\n", + "#calculations\n", + "r1=v/ia\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.812 ohm\n", + "resistance of 2nd section= 1.215 ohm\n", + "resistance of 3rd section= 0.815 ohm\n", + "resistance of 4th section= 0.546 ohm\n", + "resistance of 5th section= 0.366 ohm\n", + "resistance of 6th section= 0.246 ohm\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.51, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=6\n", + "load=3.73#kW\n", + "v=200#V\n", + "ratio=0.50\n", + "i1=0.6#A\n", + "efficiency=0.88\n", + "\n", + "#calculation\n", + "output=load/efficiency\n", + "total_loss=output-load\n", + "cu_loss=total_loss*ratio\n", + "i=output*1000/v\n", + "ia=i-i1\n", + "ra=cu_loss*1000/ia**2\n", + "i_per=i*2\n", + "ia_per=i_per-i1\n", + "r1=v/ia_per\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-ra\n", + "\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.627 ohm\n", + "resistance of 2nd section= 1.074 ohm\n", + "resistance of 3rd section= 0.709 ohm\n", + "resistance of 4th section= 0.468 ohm\n", + "resistance of 5th section= 0.309 ohm\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.52, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=7\n", + "load=36.775#kW\n", + "v=400#V\n", + "ratio=0.05\n", + "rsh=200#ohm\n", + "efficiency=0.92\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "cu_loss=input_m*ratio\n", + "cu_loss_sh=v**2/rsh\n", + "cu_loss_a=cu_loss-cu_loss_sh\n", + "i=input_m/v\n", + "ish=v/rsh\n", + "ia=i-ish\n", + "ra=cu_loss_a/ia**2\n", + "k=(v/(ia*ra))**(1.0/(n))\n", + "i1=k*ia\n", + "r1=v/i1\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.974 ohm\n", + "resistance of 2nd section= 0.592 ohm\n", + "resistance of 3rd section= 0.36 ohm\n", + "resistance of 4th section= 0.219 ohm\n", + "resistance of 5th section= 0.133 ohm\n", + "resistance of 6th section= 0.0 ohm\n", + "resistance of 7th section= 0.081 ohm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.53, Page Number:1082" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=250.0#V\n", + "ra=0.125#ohm\n", + "i2=150.0#A\n", + "i1=200.0#A\n", + "\n", + "#calculation\n", + "r1=v/i1\n", + "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", + "k=i1/i2\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r6/k\n", + "r8=r7/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-r8\n", + "p8=r8-ra\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", + "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.313 ohm\n", + "resistance of 2nd section= 0.234 ohm\n", + "resistance of 3rd section= 0.176 ohm\n", + "resistance of 4th section= 0.132 ohm\n", + "resistance of 5th section= 0.099 ohm\n", + "resistance of 6th section= 0.074 ohm\n", + "resistance of 7th section= 0.056 ohm\n", + "resistance of 8th section= 0.042 ohm\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.54, Page Number:1083" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=500#V\n", + "z=20\n", + "ra=1.31#ohm\n", + "t=218#N-m\n", + "ratio=1.5\n", + "slot=60\n", + "phi=23*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=t/(0.159*phi*slot*z)\n", + "i1=ia*ratio\n", + "i2=ia\n", + "k=i1/i2\n", + "r1=v/i1\n", + "n=solve(k**(n-1)-(r1/ra),n)\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 2.237 ohm\n", + "resistance of 2nd section= 1.491 ohm\n", + "resistance of 3rd section= 0.994 ohm\n", + "resistance of 4th section= 0.678 ohm\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.55, Page Number:1084" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3#kW\n", + "v=440#V\n", + "drop=0.02\n", + "efficiency=0.95\n", + "i_per=1.30\n", + "\n", + "#calculation\n", + "il=load*1000/(v*efficiency)\n", + "i1=i_per*il\n", + "vd=drop*v\n", + "rm=vd/il\n", + "r1=v/i1\n", + "r=(r1-rm)/6\n", + "\n", + "#result\n", + "print \"resistance of each rheostat=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of each rheostat= 0.615721729566 ohm\n" + ] + } + ], + "prompt_number": 165 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.56, Page Number:1085" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=55.95#kW\n", + "v=650.0#V\n", + "r=0.51#ohm\n", + "i1=140.0#A\n", + "i2=100.0#A\n", + "per=0.20\n", + "\n", + "#calculation\n", + "ratio=i1/i2\n", + "r1=v/i1\n", + "r2=((per+1)/ratio-per)*r1\n", + "r3=(per+1)*r2/ratio-per*r1\n", + "r4=((per+1)*r3/ratio)-per*r1\n", + "\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "\n", + "#result\n", + "print \"number of steps=\",3\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "number of steps= 3\n", + "resistance of 1st section= 1.592 ohm\n", + "resistance of 2nd section= 1.364 ohm\n", + "resistance of 3rd section= 1.17 ohm\n" + ] + } + ], + "prompt_number": 170 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_3.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter30_3.ipynb @@ -0,0 +1,2629 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:072a977ff7e7f41108f647b699866e16f58bf91b148a03cefc5a07bc1eeda05b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 30:Speed Control of D.C. Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.1, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "n=250#rpm\n", + "ia=200#A\n", + "ra=0.12#ohm\n", + "ratio=0.80\n", + "ia2=100#A\n", + "\n", + "#calculations\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 320.0 rpm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.2, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ra=0.25#ohm\n", + "ia=50#A\n", + "n=750#rpm\n", + "ratio=1-0.10\n", + "\n", + "#calculation\n", + "ia2=ia/ratio\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 828.0 rpm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1032" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=800#rpm\n", + "ia=50.0#A\n", + "n2=1000#rpm\n", + "ia2=80.0#A\n", + "ra=0.15#ohm\n", + "rf=250.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=v-ia2*ra\n", + "ish1=v/rf\n", + "r1=(n2*eb1*v)/(n*eb2*ish1)\n", + "r=r1-rf\n", + "ish2=v/r1\n", + "torque_ratio=ish2*ia2/(ish1*ia)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"\n", + "print \"ratio of torque=\",torque_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 68.9506880734 ohm\n", + "ratio of torque= 1.25411235955\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.3, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "rf=250.0#ohm\n", + "ra=0.25#ohm\n", + "n=1500#rpm\n", + "ia=20.0#A\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ish2=v/(rf+r)\n", + "ia2=ia*1/ish2\n", + "eb2=v-ia2*ra\n", + "eb1=v-ia*ra\n", + "n2=eb2*n/(eb1*ish2)\n", + "\n", + "#result\n", + "print \"new speed=\",round(n2),\"rpm\"\n", + "print \"new armature current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 2939.0 rpm\n", + "new armature current= 40.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.5, Page Number:1033" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "rt=Symbol('rt')\n", + "v=250.0#V\n", + "ra=0.5#ohm\n", + "rf=250.0#ohm\n", + "n=600.0#rpm\n", + "ia=20.0#A\n", + "n2=800.0#rpm\n", + "\n", + "#calculation\n", + "ish1=v/rf\n", + "eb1=v-ia*ra\n", + "rt=solve(((n2*eb1*(v/rt))/(n*(v-(ia*ra/(v/rt)))))-1,rt)\n", + "r=rt[0]-rf\n", + "\n", + "#result\n", + "print \"resistance to be inserted=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 88.3128987990058 ohm\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.6, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=1+0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "x=solve((ratio*eb1/((v-ia*ra*x)*x))-1,x)\n", + "per=1-1/x[0]\n", + "\n", + "#result\n", + "print\"main flux has to be reduced by=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "main flux has to be reduced by= 37.2991677469778 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.7, Page Number:1034" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=10#kW\n", + "i=41#A\n", + "ra=0.2#ohm\n", + "rw=0.05#ohm\n", + "ri=0.1#ohm\n", + "rf=110#ohm\n", + "ratio=1-0.25\n", + "r=1#ohm\n", + "ratio1=1-0.50\n", + "n=2500\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ratio1*ia1/ratio\n", + "eb1=v-ia1*(ra+ri+rw)\n", + "eb2=v-ia2*(r+ra+ri+rw)\n", + "n2=eb2*n/(eb1*ratio)\n", + "\n", + "#result\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"motor speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 26.0 A\n", + "motor speed= 2987.0 rpm\n" + ] + } + ], + "prompt_number": 40 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.8, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "load=15#kW\n", + "n=850#rpm\n", + "ia=72.2#A\n", + "ra=0.25#ohm\n", + "rf=100#ohm\n", + "n2=1650#rpm\n", + "ia2=40#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "ratio=(n*eb2)/(n2*eb1)\n", + "per=1-ratio\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 46.5636857585 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.9, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220#V\n", + "ra=0.5#ohm\n", + "ia=40#A\n", + "ratio=0.50+1\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "ia2=solve((((v-ra*ia2)*ia2)/(eb1*ratio*ia))-1,ia2)\n", + "per=ia/ia2[0]\n", + "\n", + "#result\n", + "print \"mail flux should be reduced by=\",round(per,4)*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mail flux should be reduced by= 62.7 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.10, Page Number:1035" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=20.0#A\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ratio=0.50\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "eb2=ratio*(v-ia*ra)\n", + "r=(v-eb2)/ia-ra\n", + "\n", + "#result\n", + "print \"resistance required in the series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in the series= 5.25 ohm\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.11, Page Number:1036" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "n=1000#rpm\n", + "ia=8#A\n", + "i_f=1#A\n", + "ra=0.2#ohm\n", + "rf=250#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "eb0=v-(ia-i_f)*ra\n", + "kpsi=eb0/1000\n", + "ia=i-i_f\n", + "eb1=v-ia*ra\n", + "n1=eb1/kpsi\n", + "\n", + "#result\n", + "print \"speed=\",round(n1,1),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 966.2 rpm\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.12, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240#V\n", + "ra=0.25#ohm\n", + "n=1000#rpm\n", + "ia=40#A\n", + "n2=800#rpm\n", + "i2=20#A\n", + "#calculation\n", + "eb=v-ia*ra\n", + "eb2=n2*eb/n\n", + "r=(v-eb2)/(ia)-ra\n", + "eb3=v-i2*(r+ra)\n", + "n3=eb3*n/eb\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"\n", + "print \"speed=\",round(n3),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 1.15 ohm\n", + "speed= 922.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.13, Page Number:1037" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.48#kW\n", + "v=220#V\n", + "n=990#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2#A\n", + "n2=450#rpm\n", + "\n", + "#calculation\n", + "input_p=load*1000/efficiency\n", + "losses=input_p-load*1000\n", + "i=input_p/v\n", + "ia=i-ish\n", + "loss=v*ish\n", + "cu_loss=ia**2*ra\n", + "loss_nl=losses-cu_loss-loss\n", + "eb1=v-20-(ia*ra)\n", + "eb2=n2*eb1/n\n", + "r=(eb1-eb2)/ia\n", + "total_loss=ia**2*(r+ra)+loss+loss_nl\n", + "output=input_p-total_loss\n", + "efficiency=output/(input_p)\n", + "\n", + "#result\n", + "print \"motor input=\",input_p/1000,\"kW\"\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor input= 8.5 kW\n", + "armature current= 36.6363636364 A\n", + "external resistance= 2.93403113016 ohm\n", + "efficiency= 41.6691237902 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.14, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "eb1=230.0#V\n", + "n=990.0#rpm\n", + "n2=500.0#rpm\n", + "ia=25.0#A\n", + "\n", + "#calculation\n", + "eb2=eb1*n2/n\n", + "r=(eb1-eb2)/ia\n", + "\n", + "#result\n", + "print \"resistance required in series=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance required in series= 4.55353535354 ohm\n" + ] + } + ], + "prompt_number": 83 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.15, Page Number:1038" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=20.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k2=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "rf1=v/if1\n", + "rf2=v/if2\n", + "r=rf2-rf1\n", + "\n", + "#result\n", + "print \"resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 100.0 ohm\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.16, Page Number:1039" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "ia2=Symbol('ia2')\n", + "v=220.0#V\n", + "ra=0.4#ohm\n", + "rf=200.0#ohm\n", + "ia=22.0#A\n", + "n=600.0#rpm\n", + "n2=900.0#rpm\n", + "\n", + "#calculation\n", + "if1=v/rf\n", + "eb1=v-ia*ra\n", + "k1=eb1/(if1*n)\n", + "if2=n*if1/n2\n", + "if2=n2*ia/n\n", + "ia2=solve(v-ra*ia2-(k1*ia*if1*n2)/ia2,ia2)\n", + "if2=ia*if1/ia2[0]\n", + "r=v/if2\n", + "\n", + "#result\n", + "print \"new field resistance to be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new field resistance to be added= 306.828780053869 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.17, Page Number:1040" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "output=25#kW\n", + "efficiency=0.85\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=125#ohm\n", + "ratio=1.50\n", + "\n", + "#calculation\n", + "input_p=output*1000/efficiency\n", + "i=input_p/v\n", + "if1=v/rf\n", + "ia=i-if1\n", + "il=ratio*ia\n", + "r=v/il\n", + "r_ext=r-ra\n", + "\n", + "#result\n", + "print \"starting resistance=\",round(r_ext,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 1.341 ohm\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.18, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "n=1000.0#rpm\n", + "ia=17.5#A\n", + "n2=600.0#rpm\n", + "ra=0.4#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "rt=(v-(n2*eb1/n))/ia\n", + "r=rt-ra\n", + "#result\n", + "print \"resistance to be inserted=\",round(r,1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be inserted= 4.4 ohm\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.19, Page Number:1042" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500#V\n", + "ra=1.2#ohm\n", + "rf=500#ohm\n", + "ia=4#A\n", + "n=1000#rpm\n", + "i=26#A\n", + "r=2.3#ohm\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=ia-ish\n", + "eb1=v-ia1*ra\n", + "ia2=i-ish\n", + "eb2=v-ia2*ra\n", + "n2=n*eb2/eb1\n", + "eb2=v-ia2*(r+ra)\n", + "n2_=n*eb2/eb1\n", + "n2__=n*eb2/(eb1*(1-ratio))\n", + "\n", + "#result\n", + "print \"speed when resistance 2.3 ohm is connected=\",round(n2_),\"rpm\"\n", + "print \"speed when shunt field is reduced by 15%=\",round(n2__),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when resistance 2.3 ohm is connected= 831.0 rpm\n", + "speed when shunt field is reduced by 15%= 978.0 rpm\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.20, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ia1=ia2=20.0#A\n", + "n=1000.0#rpm\n", + "ra=0.5#ohm\n", + "n2=500.0#ohm\n", + "\n", + "#calculation\n", + "eb1=v-ia1*ra\n", + "rt=(v-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "ia3=ia2/2\n", + "n3=n*(v-ia3*rt)/eb1\n", + "#result\n", + "print \"speed=\",round(n3),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 771.0 rpm\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.21, Page Number:1043" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "ra1=0.5#ohm\n", + "n=600.0#rpm\n", + "ia2=ia1=20#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "#torque is half the full-load torque\n", + "ia2=1.0/2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at half full-load torque=\",round(n2_),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 550.0 rpm\n", + "speed at half full-load torque= 588.0 rpm\n" + ] + } + ], + "prompt_number": 137 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.22, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra1=0.5#ohm\n", + "n=500.0#rpm\n", + "ia2=ia1=30.0#A\n", + "r=1.0#ohm\n", + "\n", + "#calculations\n", + "eb1=v-ia1*ra1\n", + "ra2=r+ra1\n", + "eb2=v-ia2*ra2\n", + "n2=eb2*n/eb1\n", + "\n", + "#torque is half the full-load torque\n", + "ia2=2.0*ia1\n", + "eb22=v-ia2*ra2\n", + "n2_=eb22*n/eb1\n", + "#result\n", + "print \"speed at full load torque=\",round(n2),\"rpm\"\n", + "print \"speed at double full-load torque=\",round(n2_),\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at full load torque= 427.0 rpm\n", + "speed at double full-load torque= 317.0 rpm\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.23, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3*1000#W\n", + "v=500.0#V\n", + "n=750.0#rpm\n", + "efficiency=0.90\n", + "t2=250.0#N-m\n", + "r=5.0#ohm\n", + "ra=0.5#ohm\n", + "\n", + "#calculation\n", + "t1=load/(2*3.14*(n/60))\n", + "ia1=load/(efficiency*v)\n", + "ia2=ia1*math.sqrt(t2/t1)\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*(r+ra)\n", + "n2=eb2*ia1*n/(eb1*ia2)\n", + "\n", + "#result\n", + "print \"speed at which machine will run=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which machine will run= 381.789716486 rpm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.24, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=7.46*1000#W\n", + "v=220.0#V\n", + "n=900.0#rpm\n", + "efficiency=0.88\n", + "ra=0.08#ohm\n", + "ish=2.0#A\n", + "n2=450.0#rpm\n", + "#calculation\n", + "i=output/(efficiency*v)\n", + "ia2=ia1=i-ish\n", + "eb1=v-ia2*ra\n", + "rt=(v-20-((n2/n)*eb1))/ia2\n", + "r=rt-ra\n", + "input_m=(v)*(ia2+ish)\n", + "total_loss=input_m-output\n", + "cu_loss=ia2**2*ra\n", + "cu_loss_f=v*ish\n", + "total_cu_loss=cu_loss+cu_loss_f\n", + "stray_loss=total_loss-total_cu_loss\n", + "stray_loss2=stray_loss*n2/n\n", + "cu_loss_a=ia1**2*rt\n", + "total_loss2=stray_loss2+cu_loss_f+cu_loss_a\n", + "output2=input_m-total_loss2\n", + "efficiency=output2*100/input_m\n", + "\n", + "#result\n", + "print \"motor output=\",output2,\"W\"\n", + "print \"armature current=\",ia2,\"A\"\n", + "print \"external resistance=\",r,\"ohm\"\n", + "print \"overall efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 4460.66115702 W\n", + "armature current= 36.5330578512 A\n", + "external resistance= 2.42352222599 ohm\n", + "overall efficiency= 52.619059225 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.25, Page Number:1044" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "ia=15.0#A\n", + "n=800.0#rpm\n", + "ra=0.6#ohm\n", + "n2=400.0#rpm\n", + "\n", + "#calculation\n", + "eb1=v-ia*ra\n", + "r=((v-(n2*eb1/n))/ia)-ra\n", + "ia3=ia/2\n", + "eb3=v-ia3*(r+ra)\n", + "n3=eb3*n/eb1\n", + "\n", + "#result\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 615.584415584 rpm\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.26, Page Number:1045" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "r=Symbol('r')\n", + "v=400.0#V\n", + "inl=3.5#A\n", + "il=59.5#A\n", + "rf=267.0#ohm\n", + "ra=0.2#ohm\n", + "vd=2.0#V\n", + "ratio=0.02\n", + "speed_ratio=0.50\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=inl-ish\n", + "eb1=v-ia1*ra-vd\n", + "ia2=il-ish\n", + "eb2=v-ia2*ra-vd\n", + "n1_by_n2=eb1*(1-ratio)/eb2\n", + "per_change=(1-1/n1_by_n2)*100\n", + "r=solve(eb2*speed_ratio/(eb2-ia2*r)-1,r)\n", + "#result\n", + "print \"change in speed=\",per_change,\"%\"\n", + "print \"resistance to be added=\",r[0],\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "change in speed= 0.83357557339 %\n", + "resistance to be added= 3.33092370774547 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaraion\n", + "v=200.0#V\n", + "i=50.0#A\n", + "n=1000.0#rpm\n", + "n2=800.0#rpm\n", + "ra=0.1#ohm\n", + "rf=100.0#ohm\n", + "\n", + "#calculations\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ia2=ia1*(n2/n)**2\n", + "eb1=v-ia1*ra\n", + "eb2=v-ia2*ra\n", + "rt=(v-(n2*eb1/n))/ia2\n", + "r=rt-ra\n", + "#result\n", + "print \"resustance that must be added=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resustance that must be added= 1.32708333333 ohm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "load=37.3#kW\n", + "efficiency=0.90\n", + "n=1000#rpm\n", + "ra=0.1#ohm\n", + "rf=115#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "tsh=9.55*load*1000/n\n", + "i=load*1000/(v*efficiency)\n", + "ish=v/rf\n", + "ia=i-ish\n", + "eb=v-ia*ra\n", + "ta=9.55*eb*ia/n\n", + "i_permissible=i*ratio\n", + "ia_per=i_permissible-ish\n", + "ra_total=v/ia_per\n", + "r_required=ra_total-ra\n", + "torque=ratio*ta\n", + "#result\n", + "print \"net torque=\",ta,\"N-m\"\n", + "print \"starting resistance=\",r_required,\"ohm\"\n", + "print \"torque developed at starting=\",torque,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "net torque= 365.403326173 N-m\n", + "starting resistance= 0.913513513514 ohm\n", + "torque developed at starting= 548.104989259 N-m\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.29, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "I=Symbol('I')\n", + "v=200.0#V\n", + "rf=40.0#ohm\n", + "ra=0.02#ohm\n", + "i=55.0#A\n", + "n=595.0#rpm\n", + "r=0.58#ohm\n", + "n2=630.0#rpm\n", + "ia_=15.0#A\n", + "rd=5.0#ohm\n", + "ia2=50.0#A\n", + "\n", + "#calculation\n", + "ish=v/rf\n", + "ia1=i-ish\n", + "ra1=r+ra\n", + "eb1=v-ra1*ia1\n", + "ia2=ia1\n", + "eb2=eb1*(n2/n)\n", + "r=(v-eb2)/ia1\n", + "eb2_=v-ia_*ra1\n", + "n2=eb2_*n/eb1\n", + "eb3=eb1\n", + "IR=v-eb3-ia2*ra\n", + "pd=v-IR\n", + "i_d=pd/rd\n", + "i=ia2+i_d\n", + "R=IR/i\n", + "I=solve(rd*(I-ia_)-v+R*I,I)\n", + "eb4=v-R*I[0]-ia_*ra\n", + "n4=n*(eb4/eb1)\n", + "\n", + "#result\n", + "print \"armature circuit resistance should be reduced by=\",ra1-r,\"ohm\"\n", + "print \"speed when Ia=\",n2,\"rpm\"\n", + "print \"value of series resistance=\",R,\"ohm\"\n", + "print \"speed when motor current falls to 15A=\",n4,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature circuit resistance should be reduced by= 0.2 ohm\n", + "speed when Ia= 668.5 rpm\n", + "value of series resistance= 0.344418052257 ohm\n", + "speed when motor current falls to 15A= 636.922222222222 rpm\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.31, Page Number:1051" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=15#A\n", + "n=600#rpm\n", + "\n", + "#calculation\n", + "ia2=math.sqrt(2*2**0.5*i**2)\n", + "n2=n*2*i/ia2\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"current=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 713.524269002 rpm\n", + "current= 25.2268924576 A\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.32, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=707#rpm\n", + "ia1=100#A\n", + "v=85#V\n", + "rf=0.03#ohm\n", + "ra=0.04#ohm\n", + "\n", + "#calculation\n", + "ra_total=ra+(2*rf)\n", + "eb1=v-ia1*ra_total\n", + "ia2=ia1*2**0.5\n", + "rf=rf/2\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=n*(eb2/eb1)*(2*ia1/ia2)\n", + "rt=(v-((n/n2)*eb2))/ia2\n", + "r=rt-ra-rf\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1029.46885374 rpm\n", + "additional resistance= 0.171040764009 ohm\n" + ] + } + ], + "prompt_number": 44 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.33, Page Number:1052" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varable declaration\n", + "v=240.0#V\n", + "ia=40.0#A\n", + "ra=0.3#ohm\n", + "n=1500.0#rpm\n", + "n2=1000.0#rpm\n", + "#calculation\n", + "R=v/ia-ra\n", + "eb1=v-ia*ra\n", + "r=(v-((n2/n)*eb1))/ia-ra\n", + "\n", + "#result\n", + "print \"resistance to be added at starting=\",R,\"ohm\"\n", + "print \"resistance to be added at 1000 rpm\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added at starting= 5.7 ohm\n", + "resistance to be added at 1000 rpm 1.9 ohm\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.34, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=600.0#rpm\n", + "v=250.0#V\n", + "ia1=20.0#A\n", + "ratio=2.0\n", + "\n", + "#calculations\n", + "ia2=ia1*2**(3.0/4.0)\n", + "n2=n*ratio*ia1/ia2\n", + "\n", + "#result\n", + "print \"current=\",ia2,\"A\"\n", + "print \"speed=\",n2,\"rpm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 33.6358566101 A\n", + "speed= 713.524269002 rpm\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.35, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "V=Symbol('V')\n", + "ra=1.0#ohm\n", + "v=220.0#V\n", + "n=350.0#rpm\n", + "ia=25.0#A\n", + "n2=500.0#rpm\n", + "\n", + "#calculation\n", + "ia2=ia*(n2/n)\n", + "eb1=v-ia*ra\n", + "V=solve((n2*eb1*ia2/(n*ia))+ia2-V,V)\n", + "\n", + "#result\n", + "print \" current=\",ia2,\"A\"\n", + "print \"voltage=\",V[0],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " current= 35.7142857143 A\n", + "voltage= 433.673469387755 V\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.36, Page Number:1053" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000.0#rpm\n", + "ia=20.0#A\n", + "v=200.0#V\n", + "ra=0.5#ohm\n", + "rf=0.2#ohm\n", + "i=20.0#A\n", + "rd=0.2#ohm\n", + "i_f=10.0#A\n", + "ratio=0.70\n", + "\n", + "#calculation\n", + "eb1=v-(ra+rf)*ia\n", + "r_total=ra+rf/2\n", + "eb2=v-r_total*ia\n", + "n2=(eb2*n/(eb1*ratio))\n", + " \n", + "#result\n", + "print \"speed=\",round(n2),\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1444.0 rpm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.37, Page Number:1054" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200.0#V\n", + "ia=40.0#A\n", + "n=700.0#rpm\n", + "ratio=0.50+1\n", + "ra=0.15#ohm\n", + "rf=0.1#ohm\n", + "\n", + "#calculations\n", + "ia2=(ratio*2*ia**2)**0.5\n", + "eb1=v-ia*(ra+rf)\n", + "eb2=v-ia2*(ra+rf)\n", + "n2=(eb2/eb1)*(ia*2/ia2)*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"\n", + "print \"speed=\",ia2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 777.147765122 rpm\n", + "speed= 69.2820323028 A\n" + ] + } + ], + "prompt_number": 63 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.38, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250#V\n", + "ia=20#A\n", + "n=900#rpm\n", + "r=0.025#ohm\n", + "ra=0.1#ohm\n", + "rd=0.2#ohm\n", + "\n", + "#calculation\n", + "#when divertor is added\n", + "eb1=v-ia*(ra+4*r)\n", + "ia2=(ia**2*(ra+rd)/rd)**0.5\n", + "ra_=rd*ra/(ra+rd)\n", + "eb2=v-ia2*ra_\n", + "n2=(eb2/eb1)*(ia*3/(2*ia2))*n\n", + "\n", + "#rearranged field coils in two series and parallel group\n", + "ia2=(ia**2*2)**0.5\n", + "r=ra+r\n", + "eb2=v-ia2*r\n", + "n2_=(eb2/eb1)*(ia*2/(ia2))*n\n", + "\n", + "#result\n", + "print \"speed when divertor was added=\",n2,\"rpm\"\n", + "print \"speed when field coils are rearranged=\",n2_,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed when divertor was added= 1112.87640676 rpm\n", + "speed when field coils are rearranged= 1275.19533144 rpm\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.39, Page Number:1055" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "n=1000.0#rpm\n", + "i=12.0#A\n", + "rf=0.8#ohm\n", + "ra=1.0#ohm\n", + "il=20#A\n", + "ratio=0.15\n", + "\n", + "#calculation\n", + "eb1=v-i*(ra+rf)\n", + "eb2=v-il*(ra+rf/4)\n", + "n2=(eb2/eb1)*(1/(1-ratio))*n\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1162.92198261 rpm\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.40, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=200.0#v\n", + "n=500.0#rpm\n", + "i=25.0#A\n", + "ra=0.2#ohm\n", + "rf=0.6#ohm\n", + "rd=10.0#ohm\n", + "\n", + "#calculation\n", + "r=ra+rf\n", + "eb1=v-i*r\n", + "i2=solve(((rd+rf)*i2**2)-(v*i2)-(i**2*rd),i2)\n", + "pd=v-i2[1]*rf\n", + "ia2=((rd+rf)*i2[1]-v)/rd\n", + "eb2=pd-ia2*ra\n", + "n2=(eb2/eb1)*(i/i2[1])*n\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 342.848235418389 rpm\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.41, Page Number:1056" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "ra=0.3#ohm\n", + "i=20#A\n", + "n=1200#rpm\n", + "r=3#ohm\n", + "i2=15#A\n", + "ratio=0.80\n", + "\n", + "#calculation\n", + "eb1=v-i*ra\n", + "eb2=v-(r+ra)*i2\n", + "n2=n*(eb2/eb1)/ratio\n", + "power_ratio=(n*i)/(n2*i2*ratio)\n", + "\n", + "#result\n", + "print \"new speed=\",n2,\"rpm\"\n", + "print \"ratio of power outputs=\",power_ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new speed= 1349.65437788 rpm\n", + "ratio of power outputs= 1.48186086214\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.42, Page Number:1057" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=50#A\n", + "v=460#V\n", + "ratio=1-0.25\n", + "\n", + "#calculation\n", + "I=(i**2*ratio**3)**0.5\n", + "eb2=I*ratio*v/i\n", + "R=(v-eb2)/I\n", + "pa=v*i/1000\n", + "power_n=pa*ratio**4\n", + "pa=eb2*I\n", + "\n", + "#result\n", + "print \"Resistance required=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance required= 7.26432660412 ohm\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.44, Page Number:1060" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=500#rpm\n", + "n2=550#rpm\n", + "i=50#A\n", + "v=500#V\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "eb1=v-i*r\n", + "kphi1=eb1/n\n", + "eb2=v-i*r\n", + "kphi2=eb2/n2\n", + "eb_=v-i*2*r\n", + "n=eb_/((eb1/n2)+(eb2/n))\n", + "#result\n", + "print \"speed=\",n,\"rpm\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 248.120300752 rpm\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.45, Page Number:1061" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=14.92#kW\n", + "v=250#V\n", + "n=1000#rpm\n", + "ratio1=5.0\n", + "ratio2=4.0\n", + "t=882#N-m\n", + "\n", + "#calculation\n", + "i=load*1000/v\n", + "k=v/(n*i/60)\n", + "I=(t/((ratio1+ratio2)*0.159*k))**0.5\n", + "nsh=v/((ratio1+ratio2)*k*I)\n", + "eb1=ratio1*k*I*nsh\n", + "eb2=ratio2*k*I*nsh\n", + "\n", + "#result\n", + "print \"current=\",I,\"A\"\n", + "print \"speed of shaft=\",round(nsh*60),\"rpm\"\n", + "print \"voltage across the motors=\",round(eb1),\"V,\",round(eb2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 49.5202984449 A\n", + "speed of shaft= 134.0 rpm\n", + "voltage across the motors= 139.0 V, 111.0 V\n" + ] + } + ], + "prompt_number": 117 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.46, Page Number:1063" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220#V\n", + "t=700#N-m\n", + "n=1200#rpm\n", + "ra=0.008#ohm\n", + "rf=55#ohm\n", + "efficiency=0.90\n", + "t2=375#N-m\n", + "n2=1050#rpm\n", + "\n", + "#calculation\n", + "output=2*3.14*n*t/60\n", + "power_m=output/efficiency\n", + "im=power_m/v\n", + "ish=v/rf\n", + "ia1=im-ish\n", + "eb1=v-ia1*ra\n", + "ia2=ia1*t2/t\n", + "eb2=eb1*n2/n\n", + "r=eb2/ia2-ra\n", + "\n", + "#result\n", + "print \"dynamic break resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "dynamic break resistance= 0.795525014538 ohm\n" + ] + } + ], + "prompt_number": 118 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.47, Page Number:1064" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "load=18.65#kW\n", + "n=450.0#rpm\n", + "efficiency=0.746\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "I=load*1000/(efficiency*v)\n", + "eb=v-I*ra\n", + "vt=v+eb\n", + "i_max=2*I\n", + "r=vt/i_max\n", + "R=r-ra\n", + "N=n/60\n", + "phizp_by_a=eb/N\n", + "k4=phizp_by_a*v/(2*3.14*r)\n", + "k3=phizp_by_a**2/(2*3.14*r)\n", + "tb=k4+k3*N\n", + "tb0=k4\n", + "#result\n", + "print \"breaking resistance=\",R,\"ohm\"\n", + "print \"maximum breaking torque=\",tb,\"N-m\"\n", + "print \"maximum breaking torque when N=0 =\",tb0,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "breaking resistance= 6.1 ohm\n", + "maximum breaking torque= 1028.3970276 N-m\n", + "maximum breaking torque when N=0 = 522.360394972 N-m\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.48, Page Number:1069" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=120#V\n", + "ra=0.5#ohm\n", + "l=20*0.001#H\n", + "ka=0.05#V/rpm motor constant\n", + "ia=20#A\n", + "\n", + "#calculations\n", + "vt=ia*ra\n", + "alpha=vt/v\n", + "#when alpha=1\n", + "eb=v-ia*ra\n", + "N=eb/ka\n", + "\n", + "#result\n", + "print \"range of speed control=\",0,\"to\",N,\"rpm\"\n", + "print \"range of duty cycle=\",(alpha),\"to\",1" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " range of speed control= 0 to 2200.0 rpm\n", + "range of duty cycle= 0.0833333333333 to 1\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.49, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=7.46#kW\n", + "v=200#V\n", + "efficiency=0.85\n", + "ra=0.25#ohm\n", + "ratio=1.5\n", + "\n", + "#calculation\n", + "i=load*1000/(v*efficiency)\n", + "i1=ratio*i\n", + "r1=v/i1\n", + "r_start=r1-ra\n", + "eb1=v-i*r1\n", + "\n", + "#result\n", + "print \"starting resistance=\",r_start,\"ohm\"\n", + "print \"back emf=\",eb1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting resistance= 2.78842716711 ohm\n", + "back emf= 66.6666666667 V\n" + ] + } + ], + "prompt_number": 125 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.50, Page Number:1080" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "ra=0.5#ohm\n", + "ia=40.0#A\n", + "n=7\n", + "\n", + "#calculations\n", + "r1=v/ia\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.812 ohm\n", + "resistance of 2nd section= 1.215 ohm\n", + "resistance of 3rd section= 0.815 ohm\n", + "resistance of 4th section= 0.546 ohm\n", + "resistance of 5th section= 0.366 ohm\n", + "resistance of 6th section= 0.246 ohm\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.51, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=6\n", + "load=3.73#kW\n", + "v=200#V\n", + "ratio=0.50\n", + "i1=0.6#A\n", + "efficiency=0.88\n", + "\n", + "#calculation\n", + "output=load/efficiency\n", + "total_loss=output-load\n", + "cu_loss=total_loss*ratio\n", + "i=output*1000/v\n", + "ia=i-i1\n", + "ra=cu_loss*1000/ia**2\n", + "i_per=i*2\n", + "ia_per=i_per-i1\n", + "r1=v/ia_per\n", + "k=(r1/ra)**(1.0/(n-1))\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-ra\n", + "\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 1.627 ohm\n", + "resistance of 2nd section= 1.074 ohm\n", + "resistance of 3rd section= 0.709 ohm\n", + "resistance of 4th section= 0.468 ohm\n", + "resistance of 5th section= 0.309 ohm\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.52, Page Number:1081" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=7\n", + "load=36.775#kW\n", + "v=400#V\n", + "ratio=0.05\n", + "rsh=200#ohm\n", + "efficiency=0.92\n", + "\n", + "#calculation\n", + "input_m=load*1000/efficiency\n", + "cu_loss=input_m*ratio\n", + "cu_loss_sh=v**2/rsh\n", + "cu_loss_a=cu_loss-cu_loss_sh\n", + "i=input_m/v\n", + "ish=v/rsh\n", + "ia=i-ish\n", + "ra=cu_loss_a/ia**2\n", + "k=(v/(ia*ra))**(1.0/(n))\n", + "i1=k*ia\n", + "r1=v/i1\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r5/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.974 ohm\n", + "resistance of 2nd section= 0.592 ohm\n", + "resistance of 3rd section= 0.36 ohm\n", + "resistance of 4th section= 0.219 ohm\n", + "resistance of 5th section= 0.133 ohm\n", + "resistance of 6th section= 0.0 ohm\n", + "resistance of 7th section= 0.081 ohm\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.53, Page Number:1082" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=250.0#V\n", + "ra=0.125#ohm\n", + "i2=150.0#A\n", + "i1=200.0#A\n", + "\n", + "#calculation\n", + "r1=v/i1\n", + "n=solve((i1/i2)**(n-1)-(r1/ra),n)\n", + "k=i1/i2\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "r5=r4/k\n", + "r6=r5/k\n", + "r7=r6/k\n", + "r8=r7/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-r5\n", + "p5=r5-r6\n", + "p6=r6-r7\n", + "p7=r7-r8\n", + "p8=r8-ra\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "print \"resistance of 5th section=\",round(p5,3),\"ohm\"\n", + "print \"resistance of 6th section=\",round(p6,3),\"ohm\"\n", + "print \"resistance of 7th section=\",round(p7,3),\"ohm\"\n", + "print \"resistance of 8th section=\",round(p8,3),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 0.313 ohm\n", + "resistance of 2nd section= 0.234 ohm\n", + "resistance of 3rd section= 0.176 ohm\n", + "resistance of 4th section= 0.132 ohm\n", + "resistance of 5th section= 0.099 ohm\n", + "resistance of 6th section= 0.074 ohm\n", + "resistance of 7th section= 0.056 ohm\n", + "resistance of 8th section= 0.042 ohm\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.54, Page Number:1083" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "n=Symbol('n')\n", + "v=500#V\n", + "z=20\n", + "ra=1.31#ohm\n", + "t=218#N-m\n", + "ratio=1.5\n", + "slot=60\n", + "phi=23*0.001#Wb\n", + "\n", + "#calculation\n", + "ia=t/(0.159*phi*slot*z)\n", + "i1=ia*ratio\n", + "i2=ia\n", + "k=i1/i2\n", + "r1=v/i1\n", + "n=solve(k**(n-1)-(r1/ra),n)\n", + "r2=r1/k\n", + "r3=r2/k\n", + "r4=r3/k\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "p4=r4-ra\n", + "\n", + "#result\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n", + "print \"resistance of 4th section=\",round(p4,3),\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of 1st section= 2.237 ohm\n", + "resistance of 2nd section= 1.491 ohm\n", + "resistance of 3rd section= 0.994 ohm\n", + "resistance of 4th section= 0.678 ohm\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.55, Page Number:1084" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=37.3#kW\n", + "v=440#V\n", + "drop=0.02\n", + "efficiency=0.95\n", + "i_per=1.30\n", + "\n", + "#calculation\n", + "il=load*1000/(v*efficiency)\n", + "i1=i_per*il\n", + "vd=drop*v\n", + "rm=vd/il\n", + "r1=v/i1\n", + "r=(r1-rm)/6\n", + "\n", + "#result\n", + "print \"resistance of each rheostat=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance of each rheostat= 0.615721729566 ohm\n" + ] + } + ], + "prompt_number": 165 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 30.56, Page Number:1085" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=55.95#kW\n", + "v=650.0#V\n", + "r=0.51#ohm\n", + "i1=140.0#A\n", + "i2=100.0#A\n", + "per=0.20\n", + "\n", + "#calculation\n", + "ratio=i1/i2\n", + "r1=v/i1\n", + "r2=((per+1)/ratio-per)*r1\n", + "r3=(per+1)*r2/ratio-per*r1\n", + "r4=((per+1)*r3/ratio)-per*r1\n", + "\n", + "p1=r1-r2\n", + "p2=r2-r3\n", + "p3=r3-r4\n", + "\n", + "#result\n", + "print \"number of steps=\",3\n", + "print \"resistance of 1st section=\",round(p1,3),\"ohm\"\n", + "print \"resistance of 2nd section=\",round(p2,3),\"ohm\"\n", + "print \"resistance of 3rd section=\",round(p3,3),\"ohm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "number of steps= 3\n", + "resistance of 1st section= 1.592 ohm\n", + "resistance of 2nd section= 1.364 ohm\n", + "resistance of 3rd section= 1.17 ohm\n" + ] + } + ], + "prompt_number": 170 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb new file mode 100644 index 00000000..88c66f5b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb @@ -0,0 +1,935 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 31: Testing of DC Machines" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.1, Page Number:1092" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l=38.1#kg\n", + "d=63.53*0.01#cm\n", + "v=12#rps\n", + "i=49#A\n", + "V=220#V\n", + "\n", + "#calculations\n", + "r=d/2\n", + "torque=l*r*9.81\n", + "power=torque*2*3.14*v\n", + "motor_input=i*V\n", + "efficiency=power*100/motor_input\n", + "\n", + "#result\n", + "print \"Output power=\",round(power),\"W\"\n", + "print \"Efficiency=\",round(efficiency),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output power= 8947.0 W\n", + "Efficiency= 83.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(a), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "spring_b1=10.0#kg\n", + "spring_b2=35.0#kg\n", + "d=40*0.01#m\n", + "v=950.0#rpm\n", + "V=200.0#V\n", + "i=30.0#A\n", + "\n", + "#calculations\n", + "F=(spring_b2-spring_b1)*9.81\n", + "N=v/60\n", + "R=d/2\n", + "tsh=F*R\n", + "omega=2*3.14*N\n", + "output=tsh*omega\n", + "motor_input=V*i\n", + "efficiency=output/motor_input\n", + "\n", + "#result\n", + "print \"output power=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 4877.205 W\n", + "efficiency= 81.28675 %\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(b), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "t1=2.9#kg\n", + "t2=0.17#kg\n", + "r=7*0.01#m\n", + "i=2.0#A\n", + "V=230.0#V\n", + "n=1500.0#rpm\n", + "\n", + "#calculations\n", + "force=(t1-t2)*9.81\n", + "torque=force*r\n", + "output=torque*2*3.14*n/60\n", + "efficiency=output/(V*i)\n", + "\n", + "#result\n", + "print \"torque=\",torque,\"N-m\"\n", + "print \"output\",output,\"W\"\n", + "print \"efficiency\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1.874691 N-m\n", + "output 294.326487 W\n", + "efficiency 63.984018913 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.3, Page Number:1095" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=220.0#V\n", + "i=2.5#A\n", + "ra=0.8#ohm\n", + "rsh=200.0#ohm\n", + "I=20.0#A\n", + "\n", + "#calculations\n", + "input_noload=V*i\n", + "ish=V/rsh\n", + "ia0=i-ish\n", + "culoss=ia0**2*ra\n", + "constant_loss=input_noload-culoss\n", + "ia=32-ish\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "input_=V*I\n", + "output=input_-total_loss\n", + "efficiency=(output/input_)*100\n", + "\n", + "#result\n", + "print \"Efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 70.1754545455 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.4, Page Number:1096" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "V=400.0#V\n", + "i=5.0#A\n", + "ra=0.5#ohm\n", + "r=200.0#ohm\n", + "I=50.0#A\n", + "\n", + "#calculations\n", + "input_nl=V*i\n", + "ish=V/r\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "constant_loss=input_nl-cu_loss\n", + "Ia=I-ish\n", + "cu_lossa=Ia**2*ra\n", + "total_loss=constant_loss+cu_lossa\n", + "input_nl1=V*I\n", + "output=input_nl1-total_loss\n", + "efficiency=output/input_nl\n", + "Eb1=V-(ia*ra)\n", + "Eb2=V-(Ia*ra)\n", + "change=math.fabs((Eb1-Eb2)/Eb1)\n", + "\n", + "#result\n", + "print \"output=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*10,\"%\"\n", + "print \"percentage change in speed=\",change*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 16852.5 W\n", + "efficiency= 84.2625 %\n", + "percentage change in speed= 5.64617314931 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.8, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=200*1000.0#W\n", + "v=250.0#V\n", + "i1=36.0#A\n", + "I1=12.0#A\n", + "v1=250.0#V\n", + "pd=6.0#V\n", + "i2=400.0#A\n", + "\n", + "#calculations\n", + "#no load\n", + "ia=i1-I1\n", + "ra=pd/i2\n", + "cu_loss=ia**2*ra\n", + "input_nl=v*i1\n", + "constant_loss=input_nl-cu_loss\n", + "\n", + "#full load\n", + "output_i=p/v\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/(p+total_loss)\n", + "#result\n", + "print \"efficiency at full load=\",efficiency*100,\"%\"\n", + "\n", + "#half load\n", + "output_i=p/(2*v)\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/((p/2+total_loss)*2)\n", + "\n", + "#result\n", + "print \"efficiency at half load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at full load= 91.3736344667 %\n", + "efficiency at half load= 89.6559292335 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.9, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "p=14.92*1000#W\n", + "e=0.88\n", + "n=700.0#rpn\n", + "rsh=100.0#ohm\n", + "i=78.0#A\n", + "\n", + "#calculations\n", + "input_=0.8*p/e\n", + "total_loss=input_-0.8*p\n", + "input_i=input_/v\n", + "ish=v/rsh\n", + "ia=input_i-ish\n", + "ra=total_loss/(2*(ia**2))\n", + "Ia=i-ish\n", + "total_loss2=Ia**2*ra+total_loss/2\n", + "input__=v*i\n", + "efficiency=(input__-total_loss2)*100/input__\n", + "Eb1=v-(ia*ra)\n", + "Eb2=v-(Ia*ra)\n", + "n2=(n*Eb2)/Eb1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"speed=\",n2,\"r.p.m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 86.9450046554 %\n", + "speed= 678.443304738 r.p.m\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.10(a), Page Number:1101" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "p=100*1000.0#W\n", + "i2=90.0#A\n", + "\n", + "#calculations\n", + "i1=p/v\n", + "efficiency=math.sqrt(i1/(i1+i2))*100\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.4 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.11, Page Number:1102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=15#A\n", + "v=200#V\n", + "motor_i=100#A\n", + "shunt_i1=3#A\n", + "shunt_i2=2.5#A\n", + "ra=0.05#ohm\n", + "cu_loss=500#W\n", + "cu_lossa=361#W\n", + "ia=85#A\n", + "#calculations\n", + "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", + "cu_motor=v*shunt_i1\n", + "generator_motor=v*shunt_i2\n", + "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", + "input_=v*i+cu_motor\n", + "output=v*ia*10**(-3)\n", + "loss=cu_loss*10**(-3)+1.07+0.36\n", + "efficiency=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"eficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eficiency= 89.8045430534 %\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.12, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=110#V\n", + "i=48#A\n", + "i1=3#a\n", + "i2=3.5#A\n", + "motor_i=230#A\n", + "ra=0.035#ohm\n", + "\n", + "#calculations\n", + "#motor\n", + "cu_loss=motor_i**2*ra\n", + "brush_loss=motor_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i1\n", + "total_cu_lossm=totalarm_culoss+shunt_cu\n", + "#generator\n", + "arm_i=233-i+i2\n", + "cu_loss=arm_i**2*ra\n", + "brush_loss=arm_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i2\n", + "total_cu_lossg=totalarm_culoss+shunt_cu\n", + "#set\n", + "totalcu_loss=total_cu_lossm+total_cu_lossg\n", + "total_input=v*i\n", + "stray_loss=total_input-totalcu_loss\n", + "strayloss_per=stray_loss/2\n", + "#motor efficiency\n", + "input_=233*v\n", + "output=input_-(total_cu_lossm+strayloss_per)\n", + "e=output/input_*100\n", + "print \"motor efficiency=\",e,\"%\"\n", + "#generator efficiency\n", + "input_=110*185\n", + "output=input_-(total_cu_lossg+strayloss_per)\n", + "e=output/input_*100\n", + "100\n", + "print \"generator efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.4590884705 %\n", + "generator efficiency= 88.5893642506 %\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.13, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable series\n", + "v=500.0#A\n", + "p=100*1000.0#w\n", + "auxiliary_i=30.0#A\n", + "output_i=200.0#A\n", + "i1=3.5#A\n", + "i2=1.8#A\n", + "ra=0.075#ohm\n", + "vdb=2.0#V\n", + "\n", + "#calculations\n", + "motor_arm=output_i+auxiliary_i\n", + "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", + "motorfield_culoss=v*i2\n", + "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", + "generatoefield_culoss=v*i1\n", + "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", + "power=v*auxiliary_i\n", + "stray_loss=power-total_culoss\n", + "permachine=stray_loss/2\n", + "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", + "output=v*output_i\n", + "e=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 93.1001175389 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.14, Page Number:1104" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "motor_i=400.0#A\n", + "i1=6.0#A\n", + "i2=5.0#A\n", + "ra=0.015#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=motor_i**2*ra\n", + "generatora_culoss=(motor_i-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*motor_i)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(motor_i-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 92.3148148148 %\n", + "generator efficiency 91.4642857143 %\n" + ] + } + ], + "prompt_number": 77 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.15, Page Number:1105" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "ia=380.0#A\n", + "i1=5.0#A\n", + "i2=4.2#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=ia**2*ra\n", + "generatora_culoss=(ia-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*ia)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(ia-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.7038001041 %\n", + "generator efficiency 95.2121212121 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.16, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "v2=190.0#V\n", + "t=30#sec\n", + "t2=20#sec\n", + "i=20.0#A\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "avg_i=i/2\n", + "power=avg_v*avg_i\n", + "W=power*(t2/(t-t2))\n", + "\n", + "#result\n", + "print \"Stray loss=\",W,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stray loss= 4100.0 W\n" + ] + } + ], + "prompt_number": 85 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.17, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "n1=1525.0#rpm\n", + "n2=1475.0#ohm\n", + "dt=25.0#sec\n", + "p=1000.0#W\n", + "t2=20.0#sec\n", + "\n", + "#calculations\n", + "N=(n1+n2)/2\n", + "w=p*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", + "\n", + "#result\n", + "print \"Moment of Inertia=\",I,\"kg-m2\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Moment of Inertia= 121.708791432 kg-m2\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.18, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "v2=225.0#V\n", + "dt=25.0#sec\n", + "t2=6.0#ohm\n", + "iavg=10.0#A\n", + "i2=25.0#A\n", + "v3=250.0#V\n", + "ra=0.4#ohm\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "w_=avg_v*iavg\n", + "W=w_*(t2/(dt-t2))\n", + "ish=v3/r\n", + "ia=i2-ish\n", + "cu_loss=ia**2*ra\n", + "cu_shunt=v3*ia\n", + "total_loss=W+cu_loss+v3\n", + "e=((v*i2)-total_loss)/(v*i2)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "734.210526316\n", + "efficiency= 79.7564912281 %\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.19, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "n1=1030#rpm\n", + "n2=970#rpm\n", + "t1=36#sec\n", + "t2=15#sec\n", + "t3=9#sec\n", + "i=10#A\n", + "v=219#V\n", + "\n", + "#calculations\n", + "W=v*i*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", + "Wm=W*t2/t1\n", + "iron_loss=W-Wm\n", + "\n", + "#result\n", + "print \"i)moment of inertia=\",I,\"kg.m2\"\n", + "print \"ii)iron loss=\",iron_loss,\"W\"\n", + "print \"iii)mechanical losses=\",Wm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)moment of inertia= 74.9650087225 kg.m2\n", + "ii)iron loss= 1916.25 W\n", + "iii)mechanical losses= 1368.75 W\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.20, Page Number:1110" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "iam=56.0#A\n", + "vam=590.0#V\n", + "vdm=40.0#V\n", + "iag=44.0#A\n", + "vag=400.0#V\n", + "vdg=40.0#V\n", + "r=0.3#ohm\n", + "\n", + "#calculations\n", + "input_total=(vdm+vam)*iam\n", + "output=vag*iag\n", + "total_loss=input_total-output\n", + "rse=vdg/iam\n", + "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", + "strayloss=total_loss-cu_loss\n", + "permachine=strayloss/2\n", + "#motor\n", + "inputm=vam*iam\n", + "culossm=(r+rse)*iam**2\n", + "totallossm=culossm+permachine\n", + "output=inputm-totallossm\n", + "em=output*100/inputm\n", + "#generator\n", + "inputg=vag*iag\n", + "culossg=(r)*iag**2\n", + "totalloss=culossg+permachine+(vdm*iam)\n", + "output=vag*iag\n", + "eg=output*100/(output+totalloss)\n", + "\n", + "print \n", + "#result\n", + "print \"motor efficiency=\",em,\"%\"\n", + "print \"generator efficiency=\",eg,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "motor efficiency= 72.6997578692 %\n", + "generator efficiency= 67.0220868241 %\n" + ] + } + ], + "prompt_number": 115 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_1.ipynb new file mode 100644 index 00000000..88c66f5b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_1.ipynb @@ -0,0 +1,935 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 31: Testing of DC Machines" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.1, Page Number:1092" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l=38.1#kg\n", + "d=63.53*0.01#cm\n", + "v=12#rps\n", + "i=49#A\n", + "V=220#V\n", + "\n", + "#calculations\n", + "r=d/2\n", + "torque=l*r*9.81\n", + "power=torque*2*3.14*v\n", + "motor_input=i*V\n", + "efficiency=power*100/motor_input\n", + "\n", + "#result\n", + "print \"Output power=\",round(power),\"W\"\n", + "print \"Efficiency=\",round(efficiency),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output power= 8947.0 W\n", + "Efficiency= 83.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(a), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "spring_b1=10.0#kg\n", + "spring_b2=35.0#kg\n", + "d=40*0.01#m\n", + "v=950.0#rpm\n", + "V=200.0#V\n", + "i=30.0#A\n", + "\n", + "#calculations\n", + "F=(spring_b2-spring_b1)*9.81\n", + "N=v/60\n", + "R=d/2\n", + "tsh=F*R\n", + "omega=2*3.14*N\n", + "output=tsh*omega\n", + "motor_input=V*i\n", + "efficiency=output/motor_input\n", + "\n", + "#result\n", + "print \"output power=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 4877.205 W\n", + "efficiency= 81.28675 %\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(b), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "t1=2.9#kg\n", + "t2=0.17#kg\n", + "r=7*0.01#m\n", + "i=2.0#A\n", + "V=230.0#V\n", + "n=1500.0#rpm\n", + "\n", + "#calculations\n", + "force=(t1-t2)*9.81\n", + "torque=force*r\n", + "output=torque*2*3.14*n/60\n", + "efficiency=output/(V*i)\n", + "\n", + "#result\n", + "print \"torque=\",torque,\"N-m\"\n", + "print \"output\",output,\"W\"\n", + "print \"efficiency\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1.874691 N-m\n", + "output 294.326487 W\n", + "efficiency 63.984018913 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.3, Page Number:1095" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=220.0#V\n", + "i=2.5#A\n", + "ra=0.8#ohm\n", + "rsh=200.0#ohm\n", + "I=20.0#A\n", + "\n", + "#calculations\n", + "input_noload=V*i\n", + "ish=V/rsh\n", + "ia0=i-ish\n", + "culoss=ia0**2*ra\n", + "constant_loss=input_noload-culoss\n", + "ia=32-ish\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "input_=V*I\n", + "output=input_-total_loss\n", + "efficiency=(output/input_)*100\n", + "\n", + "#result\n", + "print \"Efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 70.1754545455 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.4, Page Number:1096" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "V=400.0#V\n", + "i=5.0#A\n", + "ra=0.5#ohm\n", + "r=200.0#ohm\n", + "I=50.0#A\n", + "\n", + "#calculations\n", + "input_nl=V*i\n", + "ish=V/r\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "constant_loss=input_nl-cu_loss\n", + "Ia=I-ish\n", + "cu_lossa=Ia**2*ra\n", + "total_loss=constant_loss+cu_lossa\n", + "input_nl1=V*I\n", + "output=input_nl1-total_loss\n", + "efficiency=output/input_nl\n", + "Eb1=V-(ia*ra)\n", + "Eb2=V-(Ia*ra)\n", + "change=math.fabs((Eb1-Eb2)/Eb1)\n", + "\n", + "#result\n", + "print \"output=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*10,\"%\"\n", + "print \"percentage change in speed=\",change*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 16852.5 W\n", + "efficiency= 84.2625 %\n", + "percentage change in speed= 5.64617314931 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.8, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=200*1000.0#W\n", + "v=250.0#V\n", + "i1=36.0#A\n", + "I1=12.0#A\n", + "v1=250.0#V\n", + "pd=6.0#V\n", + "i2=400.0#A\n", + "\n", + "#calculations\n", + "#no load\n", + "ia=i1-I1\n", + "ra=pd/i2\n", + "cu_loss=ia**2*ra\n", + "input_nl=v*i1\n", + "constant_loss=input_nl-cu_loss\n", + "\n", + "#full load\n", + "output_i=p/v\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/(p+total_loss)\n", + "#result\n", + "print \"efficiency at full load=\",efficiency*100,\"%\"\n", + "\n", + "#half load\n", + "output_i=p/(2*v)\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/((p/2+total_loss)*2)\n", + "\n", + "#result\n", + "print \"efficiency at half load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at full load= 91.3736344667 %\n", + "efficiency at half load= 89.6559292335 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.9, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "p=14.92*1000#W\n", + "e=0.88\n", + "n=700.0#rpn\n", + "rsh=100.0#ohm\n", + "i=78.0#A\n", + "\n", + "#calculations\n", + "input_=0.8*p/e\n", + "total_loss=input_-0.8*p\n", + "input_i=input_/v\n", + "ish=v/rsh\n", + "ia=input_i-ish\n", + "ra=total_loss/(2*(ia**2))\n", + "Ia=i-ish\n", + "total_loss2=Ia**2*ra+total_loss/2\n", + "input__=v*i\n", + "efficiency=(input__-total_loss2)*100/input__\n", + "Eb1=v-(ia*ra)\n", + "Eb2=v-(Ia*ra)\n", + "n2=(n*Eb2)/Eb1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"speed=\",n2,\"r.p.m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 86.9450046554 %\n", + "speed= 678.443304738 r.p.m\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.10(a), Page Number:1101" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "p=100*1000.0#W\n", + "i2=90.0#A\n", + "\n", + "#calculations\n", + "i1=p/v\n", + "efficiency=math.sqrt(i1/(i1+i2))*100\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.4 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.11, Page Number:1102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=15#A\n", + "v=200#V\n", + "motor_i=100#A\n", + "shunt_i1=3#A\n", + "shunt_i2=2.5#A\n", + "ra=0.05#ohm\n", + "cu_loss=500#W\n", + "cu_lossa=361#W\n", + "ia=85#A\n", + "#calculations\n", + "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", + "cu_motor=v*shunt_i1\n", + "generator_motor=v*shunt_i2\n", + "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", + "input_=v*i+cu_motor\n", + "output=v*ia*10**(-3)\n", + "loss=cu_loss*10**(-3)+1.07+0.36\n", + "efficiency=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"eficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eficiency= 89.8045430534 %\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.12, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=110#V\n", + "i=48#A\n", + "i1=3#a\n", + "i2=3.5#A\n", + "motor_i=230#A\n", + "ra=0.035#ohm\n", + "\n", + "#calculations\n", + "#motor\n", + "cu_loss=motor_i**2*ra\n", + "brush_loss=motor_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i1\n", + "total_cu_lossm=totalarm_culoss+shunt_cu\n", + "#generator\n", + "arm_i=233-i+i2\n", + "cu_loss=arm_i**2*ra\n", + "brush_loss=arm_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i2\n", + "total_cu_lossg=totalarm_culoss+shunt_cu\n", + "#set\n", + "totalcu_loss=total_cu_lossm+total_cu_lossg\n", + "total_input=v*i\n", + "stray_loss=total_input-totalcu_loss\n", + "strayloss_per=stray_loss/2\n", + "#motor efficiency\n", + "input_=233*v\n", + "output=input_-(total_cu_lossm+strayloss_per)\n", + "e=output/input_*100\n", + "print \"motor efficiency=\",e,\"%\"\n", + "#generator efficiency\n", + "input_=110*185\n", + "output=input_-(total_cu_lossg+strayloss_per)\n", + "e=output/input_*100\n", + "100\n", + "print \"generator efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.4590884705 %\n", + "generator efficiency= 88.5893642506 %\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.13, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable series\n", + "v=500.0#A\n", + "p=100*1000.0#w\n", + "auxiliary_i=30.0#A\n", + "output_i=200.0#A\n", + "i1=3.5#A\n", + "i2=1.8#A\n", + "ra=0.075#ohm\n", + "vdb=2.0#V\n", + "\n", + "#calculations\n", + "motor_arm=output_i+auxiliary_i\n", + "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", + "motorfield_culoss=v*i2\n", + "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", + "generatoefield_culoss=v*i1\n", + "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", + "power=v*auxiliary_i\n", + "stray_loss=power-total_culoss\n", + "permachine=stray_loss/2\n", + "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", + "output=v*output_i\n", + "e=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 93.1001175389 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.14, Page Number:1104" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "motor_i=400.0#A\n", + "i1=6.0#A\n", + "i2=5.0#A\n", + "ra=0.015#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=motor_i**2*ra\n", + "generatora_culoss=(motor_i-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*motor_i)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(motor_i-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 92.3148148148 %\n", + "generator efficiency 91.4642857143 %\n" + ] + } + ], + "prompt_number": 77 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.15, Page Number:1105" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "ia=380.0#A\n", + "i1=5.0#A\n", + "i2=4.2#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=ia**2*ra\n", + "generatora_culoss=(ia-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*ia)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(ia-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.7038001041 %\n", + "generator efficiency 95.2121212121 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.16, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "v2=190.0#V\n", + "t=30#sec\n", + "t2=20#sec\n", + "i=20.0#A\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "avg_i=i/2\n", + "power=avg_v*avg_i\n", + "W=power*(t2/(t-t2))\n", + "\n", + "#result\n", + "print \"Stray loss=\",W,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stray loss= 4100.0 W\n" + ] + } + ], + "prompt_number": 85 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.17, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "n1=1525.0#rpm\n", + "n2=1475.0#ohm\n", + "dt=25.0#sec\n", + "p=1000.0#W\n", + "t2=20.0#sec\n", + "\n", + "#calculations\n", + "N=(n1+n2)/2\n", + "w=p*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", + "\n", + "#result\n", + "print \"Moment of Inertia=\",I,\"kg-m2\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Moment of Inertia= 121.708791432 kg-m2\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.18, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "v2=225.0#V\n", + "dt=25.0#sec\n", + "t2=6.0#ohm\n", + "iavg=10.0#A\n", + "i2=25.0#A\n", + "v3=250.0#V\n", + "ra=0.4#ohm\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "w_=avg_v*iavg\n", + "W=w_*(t2/(dt-t2))\n", + "ish=v3/r\n", + "ia=i2-ish\n", + "cu_loss=ia**2*ra\n", + "cu_shunt=v3*ia\n", + "total_loss=W+cu_loss+v3\n", + "e=((v*i2)-total_loss)/(v*i2)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "734.210526316\n", + "efficiency= 79.7564912281 %\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.19, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "n1=1030#rpm\n", + "n2=970#rpm\n", + "t1=36#sec\n", + "t2=15#sec\n", + "t3=9#sec\n", + "i=10#A\n", + "v=219#V\n", + "\n", + "#calculations\n", + "W=v*i*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", + "Wm=W*t2/t1\n", + "iron_loss=W-Wm\n", + "\n", + "#result\n", + "print \"i)moment of inertia=\",I,\"kg.m2\"\n", + "print \"ii)iron loss=\",iron_loss,\"W\"\n", + "print \"iii)mechanical losses=\",Wm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)moment of inertia= 74.9650087225 kg.m2\n", + "ii)iron loss= 1916.25 W\n", + "iii)mechanical losses= 1368.75 W\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.20, Page Number:1110" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "iam=56.0#A\n", + "vam=590.0#V\n", + "vdm=40.0#V\n", + "iag=44.0#A\n", + "vag=400.0#V\n", + "vdg=40.0#V\n", + "r=0.3#ohm\n", + "\n", + "#calculations\n", + "input_total=(vdm+vam)*iam\n", + "output=vag*iag\n", + "total_loss=input_total-output\n", + "rse=vdg/iam\n", + "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", + "strayloss=total_loss-cu_loss\n", + "permachine=strayloss/2\n", + "#motor\n", + "inputm=vam*iam\n", + "culossm=(r+rse)*iam**2\n", + "totallossm=culossm+permachine\n", + "output=inputm-totallossm\n", + "em=output*100/inputm\n", + "#generator\n", + "inputg=vag*iag\n", + "culossg=(r)*iag**2\n", + "totalloss=culossg+permachine+(vdm*iam)\n", + "output=vag*iag\n", + "eg=output*100/(output+totalloss)\n", + "\n", + "print \n", + "#result\n", + "print \"motor efficiency=\",em,\"%\"\n", + "print \"generator efficiency=\",eg,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "motor efficiency= 72.6997578692 %\n", + "generator efficiency= 67.0220868241 %\n" + ] + } + ], + "prompt_number": 115 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_2.ipynb new file mode 100644 index 00000000..88c66f5b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_2.ipynb @@ -0,0 +1,935 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 31: Testing of DC Machines" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.1, Page Number:1092" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l=38.1#kg\n", + "d=63.53*0.01#cm\n", + "v=12#rps\n", + "i=49#A\n", + "V=220#V\n", + "\n", + "#calculations\n", + "r=d/2\n", + "torque=l*r*9.81\n", + "power=torque*2*3.14*v\n", + "motor_input=i*V\n", + "efficiency=power*100/motor_input\n", + "\n", + "#result\n", + "print \"Output power=\",round(power),\"W\"\n", + "print \"Efficiency=\",round(efficiency),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output power= 8947.0 W\n", + "Efficiency= 83.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(a), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "spring_b1=10.0#kg\n", + "spring_b2=35.0#kg\n", + "d=40*0.01#m\n", + "v=950.0#rpm\n", + "V=200.0#V\n", + "i=30.0#A\n", + "\n", + "#calculations\n", + "F=(spring_b2-spring_b1)*9.81\n", + "N=v/60\n", + "R=d/2\n", + "tsh=F*R\n", + "omega=2*3.14*N\n", + "output=tsh*omega\n", + "motor_input=V*i\n", + "efficiency=output/motor_input\n", + "\n", + "#result\n", + "print \"output power=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 4877.205 W\n", + "efficiency= 81.28675 %\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(b), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "t1=2.9#kg\n", + "t2=0.17#kg\n", + "r=7*0.01#m\n", + "i=2.0#A\n", + "V=230.0#V\n", + "n=1500.0#rpm\n", + "\n", + "#calculations\n", + "force=(t1-t2)*9.81\n", + "torque=force*r\n", + "output=torque*2*3.14*n/60\n", + "efficiency=output/(V*i)\n", + "\n", + "#result\n", + "print \"torque=\",torque,\"N-m\"\n", + "print \"output\",output,\"W\"\n", + "print \"efficiency\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1.874691 N-m\n", + "output 294.326487 W\n", + "efficiency 63.984018913 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.3, Page Number:1095" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=220.0#V\n", + "i=2.5#A\n", + "ra=0.8#ohm\n", + "rsh=200.0#ohm\n", + "I=20.0#A\n", + "\n", + "#calculations\n", + "input_noload=V*i\n", + "ish=V/rsh\n", + "ia0=i-ish\n", + "culoss=ia0**2*ra\n", + "constant_loss=input_noload-culoss\n", + "ia=32-ish\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "input_=V*I\n", + "output=input_-total_loss\n", + "efficiency=(output/input_)*100\n", + "\n", + "#result\n", + "print \"Efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 70.1754545455 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.4, Page Number:1096" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "V=400.0#V\n", + "i=5.0#A\n", + "ra=0.5#ohm\n", + "r=200.0#ohm\n", + "I=50.0#A\n", + "\n", + "#calculations\n", + "input_nl=V*i\n", + "ish=V/r\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "constant_loss=input_nl-cu_loss\n", + "Ia=I-ish\n", + "cu_lossa=Ia**2*ra\n", + "total_loss=constant_loss+cu_lossa\n", + "input_nl1=V*I\n", + "output=input_nl1-total_loss\n", + "efficiency=output/input_nl\n", + "Eb1=V-(ia*ra)\n", + "Eb2=V-(Ia*ra)\n", + "change=math.fabs((Eb1-Eb2)/Eb1)\n", + "\n", + "#result\n", + "print \"output=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*10,\"%\"\n", + "print \"percentage change in speed=\",change*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 16852.5 W\n", + "efficiency= 84.2625 %\n", + "percentage change in speed= 5.64617314931 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.8, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=200*1000.0#W\n", + "v=250.0#V\n", + "i1=36.0#A\n", + "I1=12.0#A\n", + "v1=250.0#V\n", + "pd=6.0#V\n", + "i2=400.0#A\n", + "\n", + "#calculations\n", + "#no load\n", + "ia=i1-I1\n", + "ra=pd/i2\n", + "cu_loss=ia**2*ra\n", + "input_nl=v*i1\n", + "constant_loss=input_nl-cu_loss\n", + "\n", + "#full load\n", + "output_i=p/v\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/(p+total_loss)\n", + "#result\n", + "print \"efficiency at full load=\",efficiency*100,\"%\"\n", + "\n", + "#half load\n", + "output_i=p/(2*v)\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/((p/2+total_loss)*2)\n", + "\n", + "#result\n", + "print \"efficiency at half load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at full load= 91.3736344667 %\n", + "efficiency at half load= 89.6559292335 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.9, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "p=14.92*1000#W\n", + "e=0.88\n", + "n=700.0#rpn\n", + "rsh=100.0#ohm\n", + "i=78.0#A\n", + "\n", + "#calculations\n", + "input_=0.8*p/e\n", + "total_loss=input_-0.8*p\n", + "input_i=input_/v\n", + "ish=v/rsh\n", + "ia=input_i-ish\n", + "ra=total_loss/(2*(ia**2))\n", + "Ia=i-ish\n", + "total_loss2=Ia**2*ra+total_loss/2\n", + "input__=v*i\n", + "efficiency=(input__-total_loss2)*100/input__\n", + "Eb1=v-(ia*ra)\n", + "Eb2=v-(Ia*ra)\n", + "n2=(n*Eb2)/Eb1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"speed=\",n2,\"r.p.m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 86.9450046554 %\n", + "speed= 678.443304738 r.p.m\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.10(a), Page Number:1101" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "p=100*1000.0#W\n", + "i2=90.0#A\n", + "\n", + "#calculations\n", + "i1=p/v\n", + "efficiency=math.sqrt(i1/(i1+i2))*100\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.4 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.11, Page Number:1102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=15#A\n", + "v=200#V\n", + "motor_i=100#A\n", + "shunt_i1=3#A\n", + "shunt_i2=2.5#A\n", + "ra=0.05#ohm\n", + "cu_loss=500#W\n", + "cu_lossa=361#W\n", + "ia=85#A\n", + "#calculations\n", + "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", + "cu_motor=v*shunt_i1\n", + "generator_motor=v*shunt_i2\n", + "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", + "input_=v*i+cu_motor\n", + "output=v*ia*10**(-3)\n", + "loss=cu_loss*10**(-3)+1.07+0.36\n", + "efficiency=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"eficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eficiency= 89.8045430534 %\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.12, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=110#V\n", + "i=48#A\n", + "i1=3#a\n", + "i2=3.5#A\n", + "motor_i=230#A\n", + "ra=0.035#ohm\n", + "\n", + "#calculations\n", + "#motor\n", + "cu_loss=motor_i**2*ra\n", + "brush_loss=motor_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i1\n", + "total_cu_lossm=totalarm_culoss+shunt_cu\n", + "#generator\n", + "arm_i=233-i+i2\n", + "cu_loss=arm_i**2*ra\n", + "brush_loss=arm_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i2\n", + "total_cu_lossg=totalarm_culoss+shunt_cu\n", + "#set\n", + "totalcu_loss=total_cu_lossm+total_cu_lossg\n", + "total_input=v*i\n", + "stray_loss=total_input-totalcu_loss\n", + "strayloss_per=stray_loss/2\n", + "#motor efficiency\n", + "input_=233*v\n", + "output=input_-(total_cu_lossm+strayloss_per)\n", + "e=output/input_*100\n", + "print \"motor efficiency=\",e,\"%\"\n", + "#generator efficiency\n", + "input_=110*185\n", + "output=input_-(total_cu_lossg+strayloss_per)\n", + "e=output/input_*100\n", + "100\n", + "print \"generator efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.4590884705 %\n", + "generator efficiency= 88.5893642506 %\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.13, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable series\n", + "v=500.0#A\n", + "p=100*1000.0#w\n", + "auxiliary_i=30.0#A\n", + "output_i=200.0#A\n", + "i1=3.5#A\n", + "i2=1.8#A\n", + "ra=0.075#ohm\n", + "vdb=2.0#V\n", + "\n", + "#calculations\n", + "motor_arm=output_i+auxiliary_i\n", + "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", + "motorfield_culoss=v*i2\n", + "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", + "generatoefield_culoss=v*i1\n", + "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", + "power=v*auxiliary_i\n", + "stray_loss=power-total_culoss\n", + "permachine=stray_loss/2\n", + "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", + "output=v*output_i\n", + "e=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 93.1001175389 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.14, Page Number:1104" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "motor_i=400.0#A\n", + "i1=6.0#A\n", + "i2=5.0#A\n", + "ra=0.015#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=motor_i**2*ra\n", + "generatora_culoss=(motor_i-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*motor_i)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(motor_i-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 92.3148148148 %\n", + "generator efficiency 91.4642857143 %\n" + ] + } + ], + "prompt_number": 77 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.15, Page Number:1105" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "ia=380.0#A\n", + "i1=5.0#A\n", + "i2=4.2#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=ia**2*ra\n", + "generatora_culoss=(ia-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*ia)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(ia-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.7038001041 %\n", + "generator efficiency 95.2121212121 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.16, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "v2=190.0#V\n", + "t=30#sec\n", + "t2=20#sec\n", + "i=20.0#A\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "avg_i=i/2\n", + "power=avg_v*avg_i\n", + "W=power*(t2/(t-t2))\n", + "\n", + "#result\n", + "print \"Stray loss=\",W,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stray loss= 4100.0 W\n" + ] + } + ], + "prompt_number": 85 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.17, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "n1=1525.0#rpm\n", + "n2=1475.0#ohm\n", + "dt=25.0#sec\n", + "p=1000.0#W\n", + "t2=20.0#sec\n", + "\n", + "#calculations\n", + "N=(n1+n2)/2\n", + "w=p*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", + "\n", + "#result\n", + "print \"Moment of Inertia=\",I,\"kg-m2\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Moment of Inertia= 121.708791432 kg-m2\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.18, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "v2=225.0#V\n", + "dt=25.0#sec\n", + "t2=6.0#ohm\n", + "iavg=10.0#A\n", + "i2=25.0#A\n", + "v3=250.0#V\n", + "ra=0.4#ohm\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "w_=avg_v*iavg\n", + "W=w_*(t2/(dt-t2))\n", + "ish=v3/r\n", + "ia=i2-ish\n", + "cu_loss=ia**2*ra\n", + "cu_shunt=v3*ia\n", + "total_loss=W+cu_loss+v3\n", + "e=((v*i2)-total_loss)/(v*i2)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "734.210526316\n", + "efficiency= 79.7564912281 %\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.19, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "n1=1030#rpm\n", + "n2=970#rpm\n", + "t1=36#sec\n", + "t2=15#sec\n", + "t3=9#sec\n", + "i=10#A\n", + "v=219#V\n", + "\n", + "#calculations\n", + "W=v*i*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", + "Wm=W*t2/t1\n", + "iron_loss=W-Wm\n", + "\n", + "#result\n", + "print \"i)moment of inertia=\",I,\"kg.m2\"\n", + "print \"ii)iron loss=\",iron_loss,\"W\"\n", + "print \"iii)mechanical losses=\",Wm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)moment of inertia= 74.9650087225 kg.m2\n", + "ii)iron loss= 1916.25 W\n", + "iii)mechanical losses= 1368.75 W\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.20, Page Number:1110" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "iam=56.0#A\n", + "vam=590.0#V\n", + "vdm=40.0#V\n", + "iag=44.0#A\n", + "vag=400.0#V\n", + "vdg=40.0#V\n", + "r=0.3#ohm\n", + "\n", + "#calculations\n", + "input_total=(vdm+vam)*iam\n", + "output=vag*iag\n", + "total_loss=input_total-output\n", + "rse=vdg/iam\n", + "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", + "strayloss=total_loss-cu_loss\n", + "permachine=strayloss/2\n", + "#motor\n", + "inputm=vam*iam\n", + "culossm=(r+rse)*iam**2\n", + "totallossm=culossm+permachine\n", + "output=inputm-totallossm\n", + "em=output*100/inputm\n", + "#generator\n", + "inputg=vag*iag\n", + "culossg=(r)*iag**2\n", + "totalloss=culossg+permachine+(vdm*iam)\n", + "output=vag*iag\n", + "eg=output*100/(output+totalloss)\n", + "\n", + "print \n", + "#result\n", + "print \"motor efficiency=\",em,\"%\"\n", + "print \"generator efficiency=\",eg,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "motor efficiency= 72.6997578692 %\n", + "generator efficiency= 67.0220868241 %\n" + ] + } + ], + "prompt_number": 115 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_3.ipynb new file mode 100644 index 00000000..88c66f5b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter31_3.ipynb @@ -0,0 +1,935 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:02fdabadd118404eca71c942f203b8c36bfc89b9baf1e3f2f8e7065ab9807edb" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 31: Testing of DC Machines" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.1, Page Number:1092" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l=38.1#kg\n", + "d=63.53*0.01#cm\n", + "v=12#rps\n", + "i=49#A\n", + "V=220#V\n", + "\n", + "#calculations\n", + "r=d/2\n", + "torque=l*r*9.81\n", + "power=torque*2*3.14*v\n", + "motor_input=i*V\n", + "efficiency=power*100/motor_input\n", + "\n", + "#result\n", + "print \"Output power=\",round(power),\"W\"\n", + "print \"Efficiency=\",round(efficiency),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output power= 8947.0 W\n", + "Efficiency= 83.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(a), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "spring_b1=10.0#kg\n", + "spring_b2=35.0#kg\n", + "d=40*0.01#m\n", + "v=950.0#rpm\n", + "V=200.0#V\n", + "i=30.0#A\n", + "\n", + "#calculations\n", + "F=(spring_b2-spring_b1)*9.81\n", + "N=v/60\n", + "R=d/2\n", + "tsh=F*R\n", + "omega=2*3.14*N\n", + "output=tsh*omega\n", + "motor_input=V*i\n", + "efficiency=output/motor_input\n", + "\n", + "#result\n", + "print \"output power=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 4877.205 W\n", + "efficiency= 81.28675 %\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.2(b), Page Number:1093" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "t1=2.9#kg\n", + "t2=0.17#kg\n", + "r=7*0.01#m\n", + "i=2.0#A\n", + "V=230.0#V\n", + "n=1500.0#rpm\n", + "\n", + "#calculations\n", + "force=(t1-t2)*9.81\n", + "torque=force*r\n", + "output=torque*2*3.14*n/60\n", + "efficiency=output/(V*i)\n", + "\n", + "#result\n", + "print \"torque=\",torque,\"N-m\"\n", + "print \"output\",output,\"W\"\n", + "print \"efficiency\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1.874691 N-m\n", + "output 294.326487 W\n", + "efficiency 63.984018913 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.3, Page Number:1095" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "V=220.0#V\n", + "i=2.5#A\n", + "ra=0.8#ohm\n", + "rsh=200.0#ohm\n", + "I=20.0#A\n", + "\n", + "#calculations\n", + "input_noload=V*i\n", + "ish=V/rsh\n", + "ia0=i-ish\n", + "culoss=ia0**2*ra\n", + "constant_loss=input_noload-culoss\n", + "ia=32-ish\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "input_=V*I\n", + "output=input_-total_loss\n", + "efficiency=(output/input_)*100\n", + "\n", + "#result\n", + "print \"Efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 70.1754545455 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.4, Page Number:1096" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "V=400.0#V\n", + "i=5.0#A\n", + "ra=0.5#ohm\n", + "r=200.0#ohm\n", + "I=50.0#A\n", + "\n", + "#calculations\n", + "input_nl=V*i\n", + "ish=V/r\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "constant_loss=input_nl-cu_loss\n", + "Ia=I-ish\n", + "cu_lossa=Ia**2*ra\n", + "total_loss=constant_loss+cu_lossa\n", + "input_nl1=V*I\n", + "output=input_nl1-total_loss\n", + "efficiency=output/input_nl\n", + "Eb1=V-(ia*ra)\n", + "Eb2=V-(Ia*ra)\n", + "change=math.fabs((Eb1-Eb2)/Eb1)\n", + "\n", + "#result\n", + "print \"output=\",output,\"W\"\n", + "print \"efficiency=\",efficiency*10,\"%\"\n", + "print \"percentage change in speed=\",change*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 16852.5 W\n", + "efficiency= 84.2625 %\n", + "percentage change in speed= 5.64617314931 %\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.8, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=200*1000.0#W\n", + "v=250.0#V\n", + "i1=36.0#A\n", + "I1=12.0#A\n", + "v1=250.0#V\n", + "pd=6.0#V\n", + "i2=400.0#A\n", + "\n", + "#calculations\n", + "#no load\n", + "ia=i1-I1\n", + "ra=pd/i2\n", + "cu_loss=ia**2*ra\n", + "input_nl=v*i1\n", + "constant_loss=input_nl-cu_loss\n", + "\n", + "#full load\n", + "output_i=p/v\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/(p+total_loss)\n", + "#result\n", + "print \"efficiency at full load=\",efficiency*100,\"%\"\n", + "\n", + "#half load\n", + "output_i=p/(2*v)\n", + "ia=output_i+I1\n", + "cu_lossa=ia**2*ra\n", + "total_loss=cu_lossa+constant_loss\n", + "efficiency=p/((p/2+total_loss)*2)\n", + "\n", + "#result\n", + "print \"efficiency at half load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at full load= 91.3736344667 %\n", + "efficiency at half load= 89.6559292335 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.9, Page Number:1098" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "p=14.92*1000#W\n", + "e=0.88\n", + "n=700.0#rpn\n", + "rsh=100.0#ohm\n", + "i=78.0#A\n", + "\n", + "#calculations\n", + "input_=0.8*p/e\n", + "total_loss=input_-0.8*p\n", + "input_i=input_/v\n", + "ish=v/rsh\n", + "ia=input_i-ish\n", + "ra=total_loss/(2*(ia**2))\n", + "Ia=i-ish\n", + "total_loss2=Ia**2*ra+total_loss/2\n", + "input__=v*i\n", + "efficiency=(input__-total_loss2)*100/input__\n", + "Eb1=v-(ia*ra)\n", + "Eb2=v-(Ia*ra)\n", + "n2=(n*Eb2)/Eb1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"speed=\",n2,\"r.p.m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 86.9450046554 %\n", + "speed= 678.443304738 r.p.m\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.10(a), Page Number:1101" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220.0#V\n", + "p=100*1000.0#W\n", + "i2=90.0#A\n", + "\n", + "#calculations\n", + "i1=p/v\n", + "efficiency=math.sqrt(i1/(i1+i2))*100\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.4 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.11, Page Number:1102" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=15#A\n", + "v=200#V\n", + "motor_i=100#A\n", + "shunt_i1=3#A\n", + "shunt_i2=2.5#A\n", + "ra=0.05#ohm\n", + "cu_loss=500#W\n", + "cu_lossa=361#W\n", + "ia=85#A\n", + "#calculations\n", + "mech_core_stray_loss=0.5*((v*i)-(motor_i**2*ra)-(ia**2*ra))\n", + "cu_motor=v*shunt_i1\n", + "generator_motor=v*shunt_i2\n", + "total_loss=mech_core_stray_loss+cu_motor+generator_motor\n", + "input_=v*i+cu_motor\n", + "output=v*ia*10**(-3)\n", + "loss=cu_loss*10**(-3)+1.07+0.36\n", + "efficiency=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"eficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eficiency= 89.8045430534 %\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.12, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=110#V\n", + "i=48#A\n", + "i1=3#a\n", + "i2=3.5#A\n", + "motor_i=230#A\n", + "ra=0.035#ohm\n", + "\n", + "#calculations\n", + "#motor\n", + "cu_loss=motor_i**2*ra\n", + "brush_loss=motor_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i1\n", + "total_cu_lossm=totalarm_culoss+shunt_cu\n", + "#generator\n", + "arm_i=233-i+i2\n", + "cu_loss=arm_i**2*ra\n", + "brush_loss=arm_i*2\n", + "totalarm_culoss=cu_loss+brush_loss\n", + "shunt_cu=v*i2\n", + "total_cu_lossg=totalarm_culoss+shunt_cu\n", + "#set\n", + "totalcu_loss=total_cu_lossm+total_cu_lossg\n", + "total_input=v*i\n", + "stray_loss=total_input-totalcu_loss\n", + "strayloss_per=stray_loss/2\n", + "#motor efficiency\n", + "input_=233*v\n", + "output=input_-(total_cu_lossm+strayloss_per)\n", + "e=output/input_*100\n", + "print \"motor efficiency=\",e,\"%\"\n", + "#generator efficiency\n", + "input_=110*185\n", + "output=input_-(total_cu_lossg+strayloss_per)\n", + "e=output/input_*100\n", + "100\n", + "print \"generator efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.4590884705 %\n", + "generator efficiency= 88.5893642506 %\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.13, Page Number:1103" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable series\n", + "v=500.0#A\n", + "p=100*1000.0#w\n", + "auxiliary_i=30.0#A\n", + "output_i=200.0#A\n", + "i1=3.5#A\n", + "i2=1.8#A\n", + "ra=0.075#ohm\n", + "vdb=2.0#V\n", + "\n", + "#calculations\n", + "motor_arm=output_i+auxiliary_i\n", + "motorarm_culoss=(motor_arm**2*ra)+(motor_arm*2)\n", + "motorfield_culoss=v*i2\n", + "generatorarm_culoss=(output_i**2*ra)+(output_i*2)\n", + "generatoefield_culoss=v*i1\n", + "total_culoss=motorarm_culoss+motorfield_culoss+generatorarm_culoss+generatoefield_culoss\n", + "power=v*auxiliary_i\n", + "stray_loss=power-total_culoss\n", + "permachine=stray_loss/2\n", + "total_loss=generatorarm_culoss+generatoefield_culoss+permachine\n", + "output=v*output_i\n", + "e=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 93.1001175389 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.14, Page Number:1104" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "motor_i=400.0#A\n", + "i1=6.0#A\n", + "i2=5.0#A\n", + "ra=0.015#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=motor_i**2*ra\n", + "generatora_culoss=(motor_i-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*motor_i)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(motor_i-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 92.3148148148 %\n", + "generator efficiency 91.4642857143 %\n" + ] + } + ], + "prompt_number": 77 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.15, Page Number:1105" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=250.0#V\n", + "i=50.0#A\n", + "ia=380.0#A\n", + "i1=5.0#A\n", + "i2=4.2#A\n", + "ra=0.2#ohm\n", + "\n", + "#calculations\n", + "motora_culoss=ia**2*ra\n", + "generatora_culoss=(ia-i)**2*ra\n", + "power=v*i\n", + "stray_loss=power-(motora_culoss+generatora_culoss)\n", + "permachine=stray_loss/2\n", + "#motor\n", + "total_motor_loss=motora_culoss+(v*i2)+permachine\n", + "motor_input=(v*ia)+v*i2\n", + "motor_e=(motor_input-total_motor_loss)/motor_input\n", + "\n", + "#generator\n", + "total_gen_loss=generatora_culoss+(v*i1)+permachine\n", + "gen_output=v*(ia-i)\n", + "gen_e=(gen_output-total_gen_loss)/gen_output\n", + "\n", + "#result\n", + "print \"motor efficiency=\",motor_e*100,\"%\"\n", + "print \"generator efficiency\",gen_e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor efficiency= 88.7038001041 %\n", + "generator efficiency 95.2121212121 %\n" + ] + } + ], + "prompt_number": 81 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.16, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=220.0#V\n", + "v2=190.0#V\n", + "t=30#sec\n", + "t2=20#sec\n", + "i=20.0#A\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "avg_i=i/2\n", + "power=avg_v*avg_i\n", + "W=power*(t2/(t-t2))\n", + "\n", + "#result\n", + "print \"Stray loss=\",W,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Stray loss= 4100.0 W\n" + ] + } + ], + "prompt_number": 85 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.17, Page Number:1107" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "n1=1525.0#rpm\n", + "n2=1475.0#ohm\n", + "dt=25.0#sec\n", + "p=1000.0#W\n", + "t2=20.0#sec\n", + "\n", + "#calculations\n", + "N=(n1+n2)/2\n", + "w=p*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(w*dt)/((2*3.14/60)**2*N*dN)\n", + "\n", + "#result\n", + "print \"Moment of Inertia=\",I,\"kg-m2\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Moment of Inertia= 121.708791432 kg-m2\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.18, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=240.0#V\n", + "v2=225.0#V\n", + "dt=25.0#sec\n", + "t2=6.0#ohm\n", + "iavg=10.0#A\n", + "i2=25.0#A\n", + "v3=250.0#V\n", + "ra=0.4#ohm\n", + "r=250.0#ohm\n", + "\n", + "#calculations\n", + "avg_v=(v+v2)/2\n", + "w_=avg_v*iavg\n", + "W=w_*(t2/(dt-t2))\n", + "ish=v3/r\n", + "ia=i2-ish\n", + "cu_loss=ia**2*ra\n", + "cu_shunt=v3*ia\n", + "total_loss=W+cu_loss+v3\n", + "e=((v*i2)-total_loss)/(v*i2)\n", + "\n", + "#result\n", + "print \"efficiency=\",e*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "734.210526316\n", + "efficiency= 79.7564912281 %\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.19, Page Number:1108" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=1000#rpm\n", + "n1=1030#rpm\n", + "n2=970#rpm\n", + "t1=36#sec\n", + "t2=15#sec\n", + "t3=9#sec\n", + "i=10#A\n", + "v=219#V\n", + "\n", + "#calculations\n", + "W=v*i*(t2/(dt-t2))\n", + "dN=n1-n2\n", + "I=(W*t2)/((2*3.14/60)**2*n*dN)\n", + "Wm=W*t2/t1\n", + "iron_loss=W-Wm\n", + "\n", + "#result\n", + "print \"i)moment of inertia=\",I,\"kg.m2\"\n", + "print \"ii)iron loss=\",iron_loss,\"W\"\n", + "print \"iii)mechanical losses=\",Wm,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)moment of inertia= 74.9650087225 kg.m2\n", + "ii)iron loss= 1916.25 W\n", + "iii)mechanical losses= 1368.75 W\n" + ] + } + ], + "prompt_number": 99 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.20, Page Number:1110" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "iam=56.0#A\n", + "vam=590.0#V\n", + "vdm=40.0#V\n", + "iag=44.0#A\n", + "vag=400.0#V\n", + "vdg=40.0#V\n", + "r=0.3#ohm\n", + "\n", + "#calculations\n", + "input_total=(vdm+vam)*iam\n", + "output=vag*iag\n", + "total_loss=input_total-output\n", + "rse=vdg/iam\n", + "cu_loss=((r+2*rse)*iam**2)+(iag**2*r)\n", + "strayloss=total_loss-cu_loss\n", + "permachine=strayloss/2\n", + "#motor\n", + "inputm=vam*iam\n", + "culossm=(r+rse)*iam**2\n", + "totallossm=culossm+permachine\n", + "output=inputm-totallossm\n", + "em=output*100/inputm\n", + "#generator\n", + "inputg=vag*iag\n", + "culossg=(r)*iag**2\n", + "totalloss=culossg+permachine+(vdm*iam)\n", + "output=vag*iag\n", + "eg=output*100/(output+totalloss)\n", + "\n", + "print \n", + "#result\n", + "print \"motor efficiency=\",em,\"%\"\n", + "print \"generator efficiency=\",eg,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "motor efficiency= 72.6997578692 %\n", + "generator efficiency= 67.0220868241 %\n" + ] + } + ], + "prompt_number": 115 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb new file mode 100644 index 00000000..a29de087 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb @@ -0,0 +1,5311 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.1, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=3000.0#V\n", + "f=50.0#Hz\n", + "phi=1.2#Wb-m2\n", + "e=8.0#V\n", + "\n", + "#calculations\n", + "n1=v1/e\n", + "n2=v2/e\n", + "a=v2/(4.44*f*n2*phi)\n", + "\n", + "#result\n", + "print \"primary turns=\",n1\n", + "print \"secondary turns=\",n2\n", + "print \"area of core=\",round(a,2),\"m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary turns= 31.25\n", + "secondary turns= 375.0\n", + "area of core= 0.03 m2\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.2, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#KVA\n", + "v1=11000#V\n", + "v2=550#V\n", + "f=50#Hz\n", + "bm=1.3#Tesla\n", + "sf=0.9\n", + "per=10#%\n", + "a=20*20*sf/10000#m2\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*bm*a)\n", + "n2=v2/(4.44*f*bm*a)\n", + "e_per_turn=v1/n1\n", + "\n", + "#result\n", + "print \"HV TURNS=\",round(n1)\n", + "print \"LV TURNS=\",round(n2)\n", + "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV TURNS= 1059.0\n", + "LV TURNS= 53.0\n", + "EMF per turns= 10.4 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.3, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=400.0\n", + "n2=1000.0\n", + "a=60.0/10000.0#cm2\n", + "f=50.0#Hz\n", + "e1=520.0#V\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "e2=k*e1\n", + "bm=e1/(4.44*f*n1*a)\n", + "\n", + "#result\n", + "print \"peak value of flux density=\",bm,\"WB/m2\"\n", + "print \"voltage induced in the secondary winding=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak value of flux density= 0.975975975976 WB/m2\n", + "voltage induced in the secondary winding= 1300.0 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.4, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "n1=500.0\n", + "n2=50.0\n", + "v=3000.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "i1=load*1000/v\n", + "i2=i1/k\n", + "e1=v/n1\n", + "e2=e1*n2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", + "print \"secondary emf=\",e2,\"V\"\n", + "print \"flux=\",phim*1000,\"mWB\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", + "secondary emf= 300.0 V\n", + "flux= 27.027027027 mWB\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.5, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11000#V\n", + "v2=550#V\n", + "load=300#kVA\n", + "phim=0.05#Wb\n", + "\n", + "#calculation\n", + "e=4.44*f*phim\n", + "e2=v2/1.732\n", + "t1=v1/e\n", + "t2=e2/e\n", + "output=load/3\n", + "HV=100*1000/v1\n", + "LV=100*1000/e2\n", + "\n", + "#result\n", + "print \"HV turns=\",t1\n", + "print \"LV turns=\",t2\n", + "print \"emf per turn=\",e2\n", + "print \"full load HV=\",HV\n", + "print \"full load LV=\",LV" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 990.990990991\n", + "LV turns= 28.6082849593\n", + "emf per turn= 317.551963048\n", + "full load HV= 9\n", + "full load LV= 314.909090909\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.6, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=1200.0\n", + "a=80.0/10000.0#m2\n", + "f=50.0#Hz\n", + "v=500.0#V\n", + "\n", + "#calculation\n", + "phim=n1/(4.44*f*n1)\n", + "bm=phim/a\n", + "v2=n2*v/n1\n", + "\n", + "#result\n", + "print \"peak flux-density=\",bm,\"Wb\"\n", + "print \"voltage induced in the secondary=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak flux-density= 0.563063063063 Wb\n", + "voltage induced in the secondary= 1200.0 V\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.7, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varible declaration\n", + "load=25.0#kVA\n", + "n1=250.0\n", + "n2=40.0\n", + "v=1500.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "v2=n2*v/n1\n", + "i1=load*1000/v\n", + "i2=load*1000/v2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", + "print \"ii)seconary emf=\",v2,\"V\"\n", + "print \"iii)maximum flux=\",phim*1000,\"mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", + "ii)seconary emf= 240.0 V\n", + "iii)maximum flux= 27.027027027 mWb\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.8, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "a=20.0*20.0/10000#m2\n", + "phim=1.0#Wbm2\n", + "v1=3000.0#V\n", + "v2=220.0#V\n", + "\n", + "#calculation\n", + "t2=v2/(4.44*f*phim*a)\n", + "t1=t2*v1/v2\n", + "n1=t1/2\n", + "n2=t2/2\n", + "\n", + "#result\n", + "print \"HV turns=\",n1\n", + "print \"LV turns=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 168.918918919\n", + "LV turns= 12.3873873874\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.9, Page Number:1126" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=200.0#V\n", + "i1=0.6#A\n", + "p=400.0#W\n", + "v3=250.0#V\n", + "i0=0.5#A\n", + "pf=0.3\n", + "\n", + "#calculation\n", + "il=p/v1\n", + "imu=(i1**2-il**2)**0.5\n", + "iw=i0*pf\n", + "imu2=(i0**2-iw**2)**0.5\n", + "\n", + "#result\n", + "print \"magnetising currents=\",imu,\"A\"\n", + "print \"iron loss current=\",il,\"A\"\n", + "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", + "print \"working components of no-load primary current=\",iw,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "magnetising currents= 0.571788552492 A\n", + "iron loss current= 0.181818181818 A\n", + "magnetising components of no load primary current= 0.476969600708 A\n", + "working components of no-load primary current= 0.15 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.10, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=40.0\n", + "l=150.0#cm\n", + "airgap=0.1#mm\n", + "e1=3000.0#V\n", + "phim=1.2#Wb/m2\n", + "f=50.0#Hz\n", + "d=7.8#grma/cm3\n", + "loss=2.0#watt/kg\n", + "\n", + "#calculation\n", + "a=e1/(4.44*f*n1*phim)\n", + "k=n2/n1\n", + "v2=k*e1\n", + "iron=l*5\n", + "air=phim*airgap/(1000*4*3.14*10**(-7))\n", + "bmax=iron+air\n", + "imu=bmax/(n1*2**0.5)\n", + "volume=l*a\n", + "im=volume*d*10\n", + "total_i=im*2\n", + "iw=total_i/(e1)\n", + "i0=(imu**2+iw**2)**0.5\n", + "pf=iw/i0\n", + "\n", + "#result\n", + "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", + "print \"b)no load secondary voltage=\",v2,\"V\"\n", + "print \"c)no load current=\",imu,\"A\"\n", + "print \"d)power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross sectional area= 225.225225225 cm2\n", + "b)no load secondary voltage= 240.0 V\n", + "c)no load current= 1.19577611723 A\n", + "d)power factor= 0.145353269536\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.11, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "n1=1000\n", + "n2=200\n", + "i=3#A\n", + "pf=0.2\n", + "i2=280#A\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "phi1=math.acos(pf2)\n", + "i2_=i2/5\n", + "phi2=math.acos(pf)\n", + "sinphi=math.sin(phi2)\n", + "sinphi2=math.sin(math.acos(phi1))\n", + "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", + "\n", + "#result\n", + "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.12, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=440.0#v\n", + "v2=110.0#V\n", + "i0=5.0#A\n", + "pf=0.2\n", + "i2=120.0#A\n", + "pf2=0.8\n", + "\n", + "#calculation\n", + "phi2=math.acos(pf2)\n", + "phi0=math.acos(pf)\n", + "k=v2/v1\n", + "i2_=k*i2\n", + "angle=phi2-phi0\n", + "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", + "\n", + "#result\n", + "print \"current taken by the primary=\",i1,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the primary= 33.9022604184 A\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.13, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=800.0\n", + "n2=200.0\n", + "pf=0.8\n", + "i1=25.0#A\n", + "pf2=0.707\n", + "i2=80.0#A\n", + "#calculations\n", + "k=n2/n1\n", + "i2_=i2*k\n", + "phi2=math.acos(pf)\n", + "phi1=math.acos(pf2)\n", + "i0pf2=i1*pf2-i2_*pf\n", + "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", + "phi0=math.atan(i0sinphi/i0pf2)\n", + "i0=i0sinphi/math.sin(phi0)\n", + "\n", + "#result\n", + "print \"no load current=\",i0,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load current= 5.91703050525 A\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.14, Page Number:1131" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=10#A\n", + "pf=0.2\n", + "ratio=4\n", + "i2=200#A\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "phi0=math.acos(pf)\n", + "phil=math.acos(pf)\n", + "i0=complex(2,-9.8)\n", + "i2_=complex(42.5,-26.35)\n", + "i1=i0+i2_\n", + "phi=math.acos(i1.real/57.333)\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"power factor=\",math.degrees(phi),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= (44.5-36.15j) A\n", + "power factor= 39.0890154959 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.15, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable decaration\n", + "load=30.0#KVA\n", + "v1=2400.0#V\n", + "v2=120.0#V\n", + "f=50.0#Hz\n", + "r1=0.1#ohm\n", + "x1=0.22#ohm\n", + "r2=0.034#ohm\n", + "x2=0.012#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "r02=r2+r1*k**2\n", + "x02=x2+x1*k**2\n", + "z02=(r02**2+x02**2)**0.5\n", + "\n", + "#result\n", + "print \"high voltage side:\"\n", + "print \"equivalent winding resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"low voltage side:\"\n", + "print \"equivalent winding resistance=\",r02,\"ohm\"\n", + "print \"reactance=\",x02,\"ohm\"\n", + "print \"impedence=\",z02,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "high voltage side:\n", + "equivalent winding resistance= 13.7 ohm\n", + "reactance= 5.02 ohm\n", + "impedence= 14.5907642021 ohm\n", + "low voltage side:\n", + "equivalent winding resistance= 0.03425 ohm\n", + "reactance= 0.01255 ohm\n", + "impedence= 0.0364769105051 ohm\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.16, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=4400.0#V\n", + "v2=220.0#V\n", + "r1=3.45#ohm\n", + "r2=0.009#ohm\n", + "x1=5.2#ohm\n", + "x2=0.015#ohm\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "r02=r2+k**2*r1\n", + "x01=x1+x2/k**2\n", + "x02=x2+x1*k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "z02=(r02**2+x02**2)**0.5\n", + "cu_loss=i1**2*r01\n", + "\n", + "#result\n", + "print \"i)resistance=\"\n", + "print \"primary=\",r01,\"ohm\"\n", + "print \"secondary=\",r02,\"ohm\"\n", + "print \"iii)reactance=\"\n", + "print \"primary=\",x01,\"ohm\"\n", + "print \"secondary=\",x02,\"ohm\"\n", + "print \"iv)impedence=\"\n", + "print \"primary=\",z01,\"ohm\"\n", + "print \"secondary=\",z02,\"ohm\"\n", + "print \"v)copper loss=\",cu_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance=\n", + "primary= 7.05 ohm\n", + "secondary= 0.017625 ohm\n", + "reactance=\n", + "primary= 11.2 ohm\n", + "secondary= 0.028 ohm\n", + "impedence=\n", + "primary= 13.2341414531 ohm\n", + "secondary= 0.0330853536327 ohm\n", + "copper loss= 910.382231405 W\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.17, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=10.0\n", + "load=50.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "f=50.0#Hz\n", + "v=240.0#V\n", + "\n", + "#calculation\n", + "i2=load*1000/v\n", + "z2=v/(i2)\n", + "k=v2/v1\n", + "z2_=z2/k**2\n", + "i2_=k*i2\n", + "\n", + "#result\n", + "print \"a)load impedence=\",z2,\"ohm\"\n", + "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", + "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)load impedence= 1.152 ohm\n", + "b)impedence referred to high tension side= 115.2 ohm\n", + "c)the value of current referred to the high tension side= 20.8333333333 A\n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.18, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "v1=11000.0#V\n", + "v2=317.0#V\n", + "load2=0.62#kW\n", + "lvload=0.48#kW\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "r1=load2*1000/i**2\n", + "r2=lvload*1000/i2**2\n", + "r2_=r2*k**2\n", + "x01=4*v1/(i1*100)\n", + "x2_=x01*r2_/(r1+r2_)\n", + "x1=x01-x2_\n", + "x2=x2_*10/k**2\n", + "\n", + "#result\n", + "print \"i)r1=\",r1,\"ohm\"\n", + "print \"r2=\",r2,\"ohm\"\n", + "print \"r2_=\",r2_,\"ohm\"\n", + "print \"ii)reactance=\",x01,\"ohm\"\n", + "print \"x1=\",x1,\"ohm\"\n", + "print \"x2=\",x2,\"ohm\"\n", + "print \"x2_=\",x2_,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)r1= 7.502 ohm\n", + "r2= 0.004823472 ohm\n", + "r2_= 5.808 ohm\n", + "ii)reactance= 48.4 ohm\n", + "x1= 27.28 ohm\n", + "x2= 0.175398981818 ohm\n", + "x2_= 21.12 ohm\n" + ] + } + ], + "prompt_number": 76 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.19, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "k=19.5\n", + "r1=25.0#ohm\n", + "x1=100.0#ohm\n", + "r2=0.06#ohm\n", + "x2=0.25#ohm\n", + "i=1.25#A\n", + "angle=30#degrees\n", + "i2=200#A\n", + "v=50#V\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "v2=complex(500,0)\n", + "i2=i2*complex(0.8,-0.6)\n", + "z2=complex(r2,x2)\n", + "e2=v2+i2*z2\n", + "beta=math.atan(e2.imag/e2.real)\n", + "e1=e2*k\n", + "i2_=i2/k\n", + "angle=beta+math.radians(90)+math.radians(angle)\n", + "i0=i*complex(math.cos(angle),math.sin(angle))\n", + "i1=-i2_+i0\n", + "v2=-e1+i1*complex(r1,x1)\n", + "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", + "pf=math.cos(phi)\n", + "power=abs(v2)*i*math.cos(math.radians(60))\n", + "r02=r2+r1/k**2\n", + "cu_loss=abs(i2)**2*r02\n", + "output=500*abs(i2)*pf2\n", + "loss=cu_loss+power\n", + "inpt=output+loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"primary applied voltage=\",v2,\"V\"\n", + "print \"primary pf=\",pf\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", + "primary pf= 0.698572087114\n", + "efficiency= 86.7261056254 %\n" + ] + } + ], + "prompt_number": 94 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.20, Page Number:1138" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable description\n", + "load=100#KVA\n", + "v1=1100#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "zh=complex(0.1,0.4)\n", + "zl=complex(0.006,0.015)\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "#HV \n", + "r1=zh.real+zl.real*k**2\n", + "x1=zh.imag+zl.imag*k**2\n", + "z1=(r1**2+x1**2)**0.5\n", + "#LV\n", + "r2=r1/k**2\n", + "x2=x1/k**2\n", + "z2=z1/k**2\n", + "\n", + "#result\n", + "print \"HV:\"\n", + "print \"resistance=\",r1,\"ohm\"\n", + "print \"reactance=\",x1,\"ohm\"\n", + "print \"impedence=\",z1,\"ohm\"\n", + "print \"LV:\"\n", + "print \"resistance=\",r2,\"ohm\"\n", + "print \"reactance=\",x2,\"ohm\"\n", + "print \"impedence=\",z2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV:\n", + "resistance= 0.25 ohm\n", + "reactance= 0.775 ohm\n", + "impedence= 0.814324873745 ohm\n", + "LV:\n", + "resistance= 0.01 ohm\n", + "reactance= 0.031 ohm\n", + "impedence= 0.0325729949498 ohm\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.21, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230#V\n", + "v2=460#V\n", + "r1=0.2#ohm\n", + "x1=0.5#ohm\n", + "r2=0.75#ohm\n", + "x2=1.8#ohm\n", + "i=10#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "x02=x2+k**2*x1\n", + "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "vt2=v2-vd\n", + "\n", + "#result\n", + "print \"secondary terminal voltage=\",vt2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary terminal voltage= 424.8 V\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.22, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.0#%\n", + "x=5.0#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "mu=r*pf+x*math.sin(math.acos(pf))\n", + "mu2=r**2+x*0\n", + "mu3=r*pf-x*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", + "print \"regulation at pf=1:\",mu2,\"%\"\n", + "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=0.8 lag: 3.8 %\n", + "regulation at pf=1: 1.0 %\n", + "regulation at pf=0.8 lead: -2.2 %\n" + ] + } + ], + "prompt_number": 98 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.23, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=5#%\n", + "r=2.5#%\n", + "\n", + "#calculation\n", + "phi=math.atan(x/r)\n", + "cosphi=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "regn=r*cosphi+x*sinphi\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.59016994375 %\n", + "pf= 0.4472135955\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.24, Page Number:1142" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=2.5#%\n", + "x=5#%\n", + "load1=500#KVA\n", + "load2=400#KVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "kw=load2*pf\n", + "kvar=load2*math.sin(math.acos(pf))\n", + "drop=(r*kw/load1)+(x*kvar/load1)\n", + "\n", + "#result\n", + "print \"percentage voltage drop=\",drop,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage voltage drop= 4.0 %\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.26, Page Number:1145" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=600#V\n", + "v2=1080#V\n", + "v=720#V\n", + "load=8#W\n", + "load2=10#kVA\n", + "\n", + "#calculation\n", + "ir2=load*1000/v2\n", + "il2=load*1000/v\n", + "ir2_=ir2*v2/v1\n", + "il2_=il2*v/v1\n", + "ir2=math.sqrt(ir2_**2+il2_**2)\n", + "s=complex(load,load2)\n", + "s=abs(s)\n", + "pf=load/s\n", + "i=s*load2*100/v1\n", + "\n", + "#result\n", + "print \"primary current=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 21.3437474581 A\n", + "power factor= 0.624695047554\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "v1=110#V\n", + "i=0.5#A\n", + "p=30#W\n", + "r=0.6#ohm\n", + "\n", + "#calculation\n", + "ratio=v/v1\n", + "pf=p/(i*v)\n", + "sinphi=math.sqrt(1-pf**2)\n", + "ip=i*sinphi\n", + "iw=i*pf\n", + "cu_loss=i**2*r\n", + "iron_loss=p-cu_loss\n", + "\n", + "#result\n", + "print \"i)turns ratio=\",ratio\n", + "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", + "print \"iii)working component of no-load current=\",iw,\"A\"\n", + "print \"iv)the iron loss=\",iron_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)turns ratio= 2\n", + "ii)magnetising component of no-load current= 0.481045692921 A\n", + "iii)working component of no-load current= 0.136363636364 A\n", + "iv)the iron loss= 29.85 W\n" + ] + } + ], + "prompt_number": 104 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=200.0#V\n", + "v2=1000.0#V\n", + "f=50.0#Hz\n", + "vo=2000.0#V\n", + "io=1.2#A\n", + "po=90.0#W\n", + "vs=50.0#V\n", + "i_s=5.0#A\n", + "ps=110.0#W\n", + "p=3.0#kW\n", + "pf=0.8\n", + "v=200.0#V\n", + "\n", + "#calculation\n", + "r0=v**2/po\n", + "ia0=v/r0\n", + "ip=math.sqrt(io**2-ia0**2)\n", + "xm=v/ip\n", + "z=vs/i_s\n", + "r=ps/25\n", + "x=math.sqrt(z**2-r**2)\n", + "r1=r*(v1/v2)**2\n", + "x1=x*(v1/v2)**2\n", + "i_lv1=load*1000/v\n", + "i_lv=(p*1000/pf)/v\n", + "sinphi=math.sin(math.acos(pf))\n", + "reg=i_lv*(r1*pf+x1*sinphi)/v\n", + "vt=v2-reg*1000/v\n", + "\n", + "#result\n", + "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", + "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", + "print \"output secondary voltage=\",vt,\"V\"\n", + "print \"percentage regulation=\",reg*100,\"%\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "LV crrent at rated load= 25.0 A\n", + "LV current at 3kW at 0.8 lagging pf 18.75 A\n", + "output secondary voltage= 999.832975251 V\n", + "percentage regulation= 3.34049498886 %\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.29, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "loss1=52.0#W\n", + "f1=40.0#Hz\n", + "loss2=90.0#W\n", + "f2=60.0#Hz\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 45.0 W\n", + "eddy current= 25.0 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.30, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "m=10#kg\n", + "f=50.0#Hz\n", + "f1=25.0\n", + "f2=40.0\n", + "f3=50.0\n", + "f4=60.0\n", + "f5=80.0\n", + "l1=18.5/f1\n", + "l2=36.0/f2\n", + "l3=50.0/f3\n", + "l4=66.0/f4\n", + "l5=104.0/f5\n", + "#calculation\n", + "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", + "eddy_loss_per_kg=ans[B]*f**2/m\n", + "\n", + "#result\n", + "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", + "\n", + "#plot\n", + "F=[f1,f2,f3,f4,f5]\n", + "L=[l1,l2,l3,l4,l5]\n", + "a=plot(F,L)\n", + "xlabel(\"f -->\") \n", + "ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n", + "eddy current loss per kg at 50 Hz=" + ] + }, + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " -0.118333333333333 W\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.31, Page Number:1148" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "v1=440#V\n", + "f1=50#Hz\n", + "p1=2500#W\n", + "v2=220#V\n", + "f2=25#Hz\n", + "p2=850#z\n", + "\n", + "#calculation\n", + "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 900.0 W\n", + "eddy current= 1600.0 W\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.32, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "f1=50.0#Hz\n", + "core=1000.0#W\n", + "wh=650.0#W\n", + "we=350.0#W\n", + "v2=2000.0#V\n", + "f2=100.0#Hz\n", + "\n", + "#calculation\n", + "a=wh/f1\n", + "b=we/f1**2\n", + "wh=a*f2\n", + "we=b*f2**2\n", + "new_core=wh+we\n", + "\n", + "#result\n", + "print \"new core loss=\",new_core,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " new core loss= 2700.0 W\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.33, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "phi=1.4#Wb/m2\n", + "we=1000.0#W\n", + "wh=3000.0#W\n", + "per=10.0#%\n", + "\n", + "#calculation\n", + "wh1=wh*1.1**1.6\n", + "we1=we*1.1**2\n", + "wh2=wh*0.9**(-0.6)\n", + "wh3=wh*1.1**1.6*1.1**(-0.6)\n", + "#result\n", + "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", + "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", + "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", + "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", + "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" + ] + } + ], + "prompt_number": 119 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.34, Page Number:1150" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=40.0#Hz\n", + "loss=800.0#W\n", + "wh=600.0#W\n", + "we=loss-wh\n", + "v2=3300.0#V\n", + "f2=60.0#Hz\n", + "\n", + "#calculations\n", + "a=wh/f\n", + "b=we/f**2\n", + "core_loss=a*f2+b*f2**2\n", + "\n", + "#result\n", + "print \"core loss at 60 Hz=\",core_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core loss at 60 Hz= 1350.0 W\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.35, Page Number:1151" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=30.0#KvA\n", + "v1=6000.0#V\n", + "v2=230.0#V\n", + "r1=10.0#ohm\n", + "r2=0.016#ohm\n", + "x01=34.0#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"primary voltage=\",vsc,\"V\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary voltage= 199.519931911 V\n", + "pf= 0.523468222173\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.36, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "f=50.0#Hz\n", + "vo=200.0#V\n", + "io=0.7#A\n", + "po=70.0#W\n", + "vs=15.0#v\n", + "i_s=10.0#A\n", + "ps=85.0#W\n", + "load=5.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cosphi0=po/(vo*io)\n", + "sinphi0=math.sin(math.acos(cosphi0))\n", + "iw=io*cosphi0\n", + "imu=io*sinphi0\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "z02=vs/i_s\n", + "k=v2/v1\n", + "z01=z02/k**2\n", + "r02=ps/i_s**2\n", + "r01=r02/k**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "output=load/pf\n", + "i2=output*1000/v2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "print z02\n", + "#result\n", + "print \"secondary voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1.5\n", + "secondary voltage= 377.788243349 V\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.37, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "k=1.0/6\n", + "r1=0.9#ohm\n", + "x1=5.0#ohm\n", + "r2=0.03#ohm\n", + "x2=0.13#ohm\n", + "vsc=330.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=vsc/z01\n", + "i2=i1/k\n", + "cosphisc=i1**2*r01/(vsc*i1)\n", + "\n", + "#result\n", + "print \"current in low voltage winding=\",i2,\"A\"\n", + "print \"pf=\",round(cosphisc,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in low voltage winding= 200.396236149 A\n", + "pf= 0.2\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.38, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "f=50.0#Hz\n", + "r1=0.2#ohm\n", + "x1=0.4#ohm\n", + "r2=0.5#ohm\n", + "x2=0.1#ohm\n", + "r0=1500.0#ohm\n", + "x0=750.0#ohm\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(iw**2+imu**2)**0.5\n", + "pi=v1*iw\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "power=i1**2*r01\n", + "\n", + "#result\n", + "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" + ] + } + ], + "prompt_number": 140 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.39, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=1000#kVA\n", + "v1=110#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "per1=98.5#%\n", + "pf=0.8\n", + "per2=98.8#%\n", + "\n", + "#calculaions\n", + "output=load*1\n", + "inpt=output*100/per2\n", + "loss=inpt-output\n", + "inpt_half=(load/2)*pf*100/per1\n", + "loss2=inpt_half-400\n", + "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", + "kva=load*(ans[y]/ans[x])*0.5\n", + "output=kva*1\n", + "cu_loss=ans[y]\n", + "total_loss=2*cu_loss\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"full load copper loss=\",cu_loss,\"kW\"\n", + "print \"maximum efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load copper loss= 4.07324441521606 kW\n", + "maximum efficiency= 0.968720013059872 %\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.40, Page Number:1154" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#v\n", + "v2=400.0#V\n", + "r01=0.15#ohm\n", + "x01=0.37#ohm\n", + "r0=600.0#ohm\n", + "x0=300.0#ohm\n", + "i2=10.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(imu**2+iw**2)**0.5\n", + "tantheta=iw/imu\n", + "theta=math.atan(tantheta)\n", + "theta0=math.radians(90)-theta\n", + "angle=theta0-math.acos(pf)\n", + "k=v2/v1\n", + "i2_=i2*k\n", + "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", + "r02=k**2*r01\n", + "x02=x01*k**2\n", + "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)primary current=\",i1,\"A\"\n", + "print \"ii)secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current= 20.6693546639 A\n", + "ii)secondary terminal voltage= 386.32 V\n" + ] + } + ], + "prompt_number": 149 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.43, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "n1=400.0\n", + "n2=80.0\n", + "r1=0.3#ohm\n", + "r2=0.01#ohm\n", + "x1=1.1#ohm\n", + "x2=0.035#ohm\n", + "v1=2200.0#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=complex(r01,x01)\n", + "z02=k**2*z01\n", + "v2=k*v1\n", + "i2=load*1000/v2\n", + "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", + "regn=vd*100/v2\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)equivalent impedence=\",z02,\"ohm\"\n", + "print \"ii)voltage regulation=\",regn,\"%\"\n", + "print \"secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent impedence= (0.022+0.079j) ohm\n", + "ii)voltage regulation= -1.53925619835 %\n", + "secondary terminal voltage= 446.772727273 V\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.44, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "va=450.0#V\n", + "vb=120.0#V\n", + "v1=120.0#V\n", + "i1=4.2#A\n", + "w1=80.0#W\n", + "v2=9.65#V\n", + "i2=22.2#A\n", + "w2=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=vb/va\n", + "i0=i1*k\n", + "cosphi0=w1/(va*i0)\n", + "phi0=math.acos(cosphi0)\n", + "sinphi0=math.sin(phi0)\n", + "iw=i0*cosphi0\n", + "imu=i0*sinphi0\n", + "r0=va/iw\n", + "x0=va/imu\n", + "z01=v2/i2\n", + "r01=vb/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "loss=w1+w2\n", + "output=load*1000*pf\n", + "efficiency=output/(output+loss)\n", + "iron_loss=w1\n", + "cu_loss=(0.5**2)*w2\n", + "total_loss=iron_loss+cu_loss\n", + "output=load*1000*pf/2\n", + "efficiency2=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"i)equivalent circuit constants=\"\n", + "print \"z01=\",z01,\"ohm\"\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r01=\",r01,\"ohm\"\n", + "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", + "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent circuit constants=\n", + "z01= 0.434684684685 ohm\n", + "x01= 0.360090249002 ohm\n", + "r01= 0.243486729973 ohm\n", + "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", + "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.45, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "va=2200.0#V\n", + "vb=220.0#V\n", + "f=50.0#Hz\n", + "v1=220.0#V\n", + "i1=4.2#A\n", + "w1=148.0#W\n", + "v2=86.0#V\n", + "i2=10.5#A\n", + "w2=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "z01=v2/i2\n", + "r01=w2/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",round(pf,1),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 2.94177963326 %\n", + "pf= 0.4 lag\n" + ] + } + ], + "prompt_number": 172 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.46, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=2000.0#V\n", + "v2=400.0#V\n", + "v=60.0#V\n", + "i=4.0#A\n", + "w=100.0#W\n", + "pf=0.8\n", + "v_=400.0#V\n", + "\n", + "#calculations\n", + "z01=v/i\n", + "r01=w/i**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/v1\n", + "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"voltage applied to hv side=\",v1+vd,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage applied to hv side= 2065.90767043 V\n" + ] + } + ], + "prompt_number": 182 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.47, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=500.0#V\n", + "vs=20.0#V\n", + "i_s=12.0#A\n", + "ws=100.0#W\n", + "vo=250.0#V\n", + "io=1.0#A\n", + "wo=80.0#W\n", + "i2=10#A\n", + "v2=500#V\n", + "pg=0.8\n", + "\n", + "#calculation\n", + "cosphi0=wo/(vo*io)\n", + "iw=io*cosphi0\n", + "imu=(1-iw**2)**0.5\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "r02=ws/i_s**2\n", + "z02=vs/i_s\n", + "x02=(z02**2-r02**2)**0.5\n", + "k=v2/v1\n", + "r01=r02/k**2\n", + "x01=x02/k**2\n", + "z01=z02/k**2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=wo\n", + "total_loss=iron_loss+cu_loss\n", + "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", + "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "\n", + "#result\n", + "print \"applied voltage=\",v1_,\"V\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "applied voltage= 251.442641983 V\n", + "efficiency= 96.3984469139 %\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.48, Page Number:1160" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230.0#V\n", + "v2=230.0#V\n", + "load=3.0#kVA\n", + "vo=230.0#V\n", + "io=2.0#A\n", + "wo=100.0#W\n", + "vs=15.0#V\n", + "i_s=13.0#A\n", + "ws=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v1\n", + "cu_loss=ws\n", + "core_loss=wo\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+core_loss)\n", + "z=vs/i_s\n", + "r=ws/(vs**2)\n", + "x=(z**2-r**2)**0.5\n", + "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.90121149256 %\n", + "efficiency= 91.6030534351 %\n" + ] + } + ], + "prompt_number": 194 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.49, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "efficiency=0.94\n", + "per=0.90\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=per*load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "core_loss=loss/2\n", + "pc=core_loss/per**2\n", + "output=load*1000*pf\n", + "cu_loss=pc\n", + "efficiency=output/(output+cu_loss+core_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.5728354534 %\n" + ] + } + ], + "prompt_number": 196 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.50, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=3.96#ohm\n", + "r2=0.0396#ohm\n", + "x1=15.8#ohm\n", + "x2=0.158#ohm\n", + "pf=0.8\n", + "v=230.0#V\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "r=r2+r1*(v2/v1)**2\n", + "x=x1*(v2/v1)**2+x2\n", + "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", + "v1=v1_*(v1/v2)\n", + "phi=math.atan(r/x)\n", + "pf=math.cos(phi)\n", + "#result\n", + "print \"a)HV side voltage necessary=\",v1,\"V\"\n", + "print \"b)pf=\",round(pf,2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)HV side voltage necessary= 2409.9826087 V\n", + "b)pf= 0.97\n" + ] + } + ], + "prompt_number": 199 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.51, Page Number:1162" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#v\n", + "r1=3.4#ohm\n", + "x1=7.2#ohm\n", + "r2=0.028#ohm\n", + "x2=0.060#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "r=r1*(v2/v1)**2+r2\n", + "x=x1*(v2/v1)**2+x2\n", + "ad=i*r*pf\n", + "dc=i*x*math.sin(math.acos(pf))\n", + "oc=v2+ad+dc\n", + "bd=i*r*math.sin(math.acos(pf))\n", + "b_f=x*pf\n", + "cf=b_f-bd\n", + "v1_=(oc**2+cf**2)**0.5\n", + "v1=v1_*(v1/v2)\n", + "\n", + "#result\n", + "print \"terminal voltage on hv side=\",v1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage on hv side= 2229.28500444 V\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.52, Page Number:1163" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "i1=0.7#A\n", + "w1=65.0#W\n", + "v=15.0#V\n", + "i2=10.0#A\n", + "w2=75.0#W\n", + "pf=0.80\n", + "#calculation\n", + "il=load*1000/v1\n", + "ih=load*1000/v2\n", + "cu_loss=w2\n", + "constant_loss=w1\n", + "z=v/i2\n", + "r=w2/i2**2\n", + "x=(z**2-r**2)**0.5\n", + "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", + "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency,\"%\"\n", + "print \"full load regulation=\",regn,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.6183574879 %\n", + "full load regulation= 13.7942286341 V\n" + ] + } + ], + "prompt_number": 209 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.53, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=3300.0#V\n", + "v2=230.0#V\n", + "load=50.0#kVA\n", + "z=4\n", + "cu_loss=1.8\n", + "\n", + "#calculations\n", + "x=(z**2-cu_loss**2)**0.5\n", + "i1=load*1000/v1\n", + "r01=cu_loss*v1/(100*i1)\n", + "x01=x*v1/(100*i1)\n", + "z01=z*v1/(100*i1)\n", + "isc=i1*100/z\n", + "print \n", + "#result\n", + "print \"%x=\",x,\"%\"\n", + "print \"resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"primary sc current=\",isc,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "%x= 3.5721142199 %\n", + "resistance= 3.9204 ohm\n", + "reactance= 7.78006477094 ohm\n", + "impedence= 8.712 ohm\n", + "primary sc current= 378.787878788 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.54, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "vo=220.0#V\n", + "i_o=4.2#A\n", + "wo=148.0#W\n", + "vs=86.0#V\n", + "i_s=10.5#A\n", + "ws=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=ws/i_s**2\n", + "r02=k**2*r01\n", + "z10=vs/i_s\n", + "x01=(z10**2-r01**2)**0.5\n", + "x02=k**2*x01\n", + "i1=load*1000/v1\n", + "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "regn1=(v1_-v1)/v1\n", + "i2=i1/k\n", + "core_loss=wo\n", + "cu_loss=i1**2*r01\n", + "cu_loss_half=(i1/2)**2*r01\n", + "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", + "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", + "print v1_ \n", + "#result\n", + "print \"a)core loss=\",wo,\"W\"\n", + "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", + "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", + "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", + "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", + "print \"f)regulation=\",regn1*100,\"%\"\n", + "print \"g)efficiency at full load=\",efficiency,\"%\"\n", + "print \"h)efficiency at half load=\",efficiency_half,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "2265.01840886\n", + "a)core loss= 148.0 W\n", + "b)equivalent resistance primary= 3.26530612245 ohm\n", + "c)equivalent resistance secondary= 0.0326530612245 ohm\n", + "d)equivalent reactance primary= 7.51143635755 ohm\n", + "e)equivalent reactance secondary= 0.0751143635755 ohm\n", + "f)regulation= 2.95538222101 %\n", + "g)efficiency at full load= 97.4548448466 %\n", + "h)efficiency at half load= 95.0360304208 %\n" + ] + } + ], + "prompt_number": 222 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.55, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "er=1.0/100\n", + "ex=5.0/100\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "regn2=er*1\n", + "regn3=er*pf-ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", + "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", + "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation with pf=0.8 lag= 3.8 %\n", + "ii)regulation with pf=1= 1.0 %\n", + "iii)regulation with pf=0.8 lead= -2.2 %\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.56, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500#kVA\n", + "v1=3300#V\n", + "v2=500#V\n", + "f=50#Hz\n", + "per=0.97\n", + "ratio=3.0/4\n", + "zper=0.10\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=load*ratio*1\n", + "x=0.75\n", + "pi=0.5*(output*(1/per-1))\n", + "pc=pi/x**2\n", + "i1=load*1000/v1\n", + "r=pc*1000/i1**2\n", + "er=i1*r/v1\n", + "ez=zper\n", + "ex=(ez**2-er**2)**0.5\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation=\",regn*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 7.52529846012 %\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.57, Page Number:1166" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "cu_loss=1.5#%\n", + "xdrop=3.5#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "pur=cu_loss/100\n", + "pux=xdrop/100\n", + "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", + "regn1=pur*1\n", + "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", + "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", + "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation at unity pf= 1.5 %\n", + "ii)regulation at 0.8 lag= 3.3 %\n", + "iii)regulation at 0.8 lead= -0.9 %\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.58, Page Number:1168" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#KVA\n", + "w1=5.0#kW\n", + "w2=7.5#kW\n", + "efficiency=0.75\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "loss=total_loss/2\n", + "cu_loss=efficiency**2*w2/2\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+cu_loss+2.5)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.0186963113 %\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.59, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2000.0#V\n", + "v2=200.0#V\n", + "w1=350.0#W\n", + "w2=400.0#W\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "output=load*1000*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=w2*(0.5)**2\n", + "total_loss=cu_loss+w1\n", + "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", + "\n", + "#result\n", + "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency at full load= 97.0873786408 %\n", + "ii)efficiency at half load= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 232 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.60, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.75\n", + "\n", + "#calculation\n", + "ratio=efficiency**2\n", + "\n", + "#result\n", + "print \"ratio of P1 and P2=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of P1 and P2= 0.5625\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.61, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=230.0#V\n", + "load1=150.0#KVA\n", + "f=50.0#Hz\n", + "loss=1.4#kW\n", + "cu_loss=1.6#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "load=load1*(cu_loss/loss)**0.5\n", + "total_loss=loss*2\n", + "output=load*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=cu_loss*(0.5)**2\n", + "total_loss=total_loss+cu_loss\n", + "output2=(load/2)*pf\n", + "efficiency2=output2/(output2+total_loss)\n", + "\n", + "#result\n", + "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", + "print \"max efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load for max efficiency= 150.0 kVA\n", + "max efficiency= 98.283858876 %\n", + "ii)efficiency at half load= 95.2481856352 %\n" + ] + } + ], + "prompt_number": 237 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.62, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "#variable declaration\n", + "load=5#kVA\n", + "v1=2300#V\n", + "v2=230#V\n", + "f=50#Hz\n", + "iron_loss=40#W\n", + "cu_loss=112#W\n", + "pf=0.8\n", + "#calculations\n", + "def e(k):\n", + " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", + " return(e)\n", + "\n", + "e1=e(1.25)\n", + "e2=e(2.5)\n", + "e3=e(3.75)\n", + "e4=e(5.0)\n", + "e5=e(6.25)\n", + "e6=e(7.5)\n", + "\n", + "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", + "E=[e1,e2,e3,e4,e5,e6]\n", + "a=plot(K,E)\n", + "xlabel(\"load,kVA\") \n", + "ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.63, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kVA\n", + "efficiency=0.98\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "output=load*pf\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "x=loss*1000/(1+9.0/16)\n", + "y=(9.0/16)*x\n", + "cu_loss=x*(1.0/2)**2\n", + "total_loss=cu_loss+y\n", + "output=load*pf*0.5\n", + "efficiency=output/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"efficiency at hald load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at hald load= 97.9216626699 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.64, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "r1=1.0#ohm\n", + "r2=0.01#ohm\n", + "pf=0.8\n", + "loss=0.80\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "i2=load*1000/v2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=loss*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "output=load*pf*1000\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"secondary resistance=\",r02,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary resistance= 0.02 ohm\n", + "efficiency= 97.7284199899 %\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.65, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "r01=0.5#ohm\n", + "x01=1.5#ohm\n", + "ratio=3.0/4\n", + "pf=0.8\n", + "v=220.0#V\n", + "loss=100.0#W\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=k**2*r01\n", + "x02=k**2*x01\n", + "i2=1000*load*ratio/v2\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "cu_loss=i2**2*r02\n", + "total_loss=loss+cu_loss\n", + "output=load*ratio*pf\n", + "inpt=output*1000+total_loss\n", + "efficiency=output*1000/(inpt)\n", + "#result\n", + "print \"output=\",output,\"w\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 2.4 w\n", + "efficiency= 91.8660287081 %\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.66, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=440.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "loss=324.0#W\n", + "cu_loss=100.0#W\n", + "pf=0.8\n", + "#calculations\n", + "cu_loss=4*cu_loss\n", + "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", + "per=(loss/cu_loss)**0.5\n", + "\n", + "#result\n", + "print \"i)efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)percent of full-load=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency= 95.6708921311 %\n", + "ii)percent of full-load= 90.0 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.67, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "pf=0.8\n", + "vo=200.0#V\n", + "io=0.8#A\n", + "wo=70.0#W\n", + "vs=20.0#V\n", + "i_s=10.0#A\n", + "ws=60.0#W\n", + "\n", + "#calculation\n", + "i2=load*1000/v2\n", + "loss=ws+wo\n", + "output=load*pf\n", + "efficiency=output/(output+loss/1000)\n", + "z02=vs/i_s\n", + "r02=ws/i2**2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "i1=load*1000/v1\n", + "load=load*(wo/ws)**0.5\n", + "load=load*1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"secondary voltage=\",v2,\"V\"\n", + "print \"current=\",i1,\"A\"\n", + "print \"load at unity pf=\",load,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.0960960961 %\n", + "secondary voltage= 383.752729583 V\n", + "current= 20.0 A\n", + "load at unity pf= 4.32049379894 kW\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.69, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=600.0#KVA\n", + "efficiency=0.92\n", + "per=0.60\n", + "\n", + "#calculation\n", + "inpt=load/efficiency\n", + "loss1=inpt-load\n", + "inpt2=load/(2*efficiency)\n", + "loss2=inpt2-load/2\n", + "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", + "cu_loss=ans[y]*0.36\n", + "loss=cu_loss+ans[x]\n", + "output=load*per\n", + "efficiency=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "389.913043478261\n", + "efficiency= 92.3282783229260 %\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.70, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "e1=0.98\n", + "e2=0.80\n", + "pf=8\n", + "z=0.05\n", + "pf1=0.8\n", + "\n", + "#calculations\n", + "output=load*pf1*e2\n", + "inpt=output/e1\n", + "loss=-output+inpt\n", + "cu_loss=loss/2\n", + "cu_loss_full=cu_loss/pf1**2\n", + "r=round(cu_loss_full*100/load)\n", + "sin=math.sin(math.acos(pf1))\n", + "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", + "#result\n", + "print \"voltage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 3.8578 %\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.71, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#KVA\n", + "v1=5000.0#V\n", + "v2=440.0#V\n", + "f=25.0#Hz\n", + "cu_loss=1.5\n", + "we=0.5\n", + "wh=0.6\n", + "v2=10000.0\n", + "#calculations\n", + "cu_loss1=cu_loss*load/100\n", + "we1=we*load/100\n", + "wh1=wh*load/100\n", + "cu_loss2=cu_loss1\n", + "we2=(we1*(50.0/25.0)**2)\n", + "wh2=(wh1*(50.0/25))\n", + "e1=load*100/(load+cu_loss1+we1+wh1)\n", + "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", + "\n", + "#result\n", + "print \"full load efficiency in first case=\",e1,\"%\"\n", + "print \"full load efficiency in second case=\",e2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "20.47 0.06 0.05\n", + "full load efficiency in first case= 97.4658869396 %\n", + "full load efficiency in second case= 97.7039570103 %\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.72, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=300#KVA\n", + "r=1.5#%\n", + "load1=173.2#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss=r*load*1000/100\n", + "iron_loss=(load1/load)**2*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.5610105096 %\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.73, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "v1=2300#V\n", + "v2=230.0#V\n", + "f=50#Hz\n", + "phim=1.2#Wb/m2\n", + "a=0.04#m2\n", + "l=2.5#m\n", + "bm=1200\n", + "inpt=1200#W\n", + "pi=400#W\n", + "efficiency=0.75\n", + "pf=0.8\n", + "f2=100#Hz\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*phim*a)\n", + "k=v2/v1\n", + "n2=k*n1\n", + "i=1989/n1\n", + "cu_loss=efficiency**2*inpt\n", + "total_loss=pi+cu_loss\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"a)n1=\",round(n1)\n", + "print \" n2=\",round(n2)\n", + "print \"b)magnetising current=\",i,\"A\"\n", + "print \"c)efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.00643416423287\n", + "a)n1= 216.0\n", + " n2= 22.0\n", + "b)magnetising current= 9.21512347826 A\n", + "c)efficiency= 98.2398690135 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.74, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.8\n", + "x=5.4\n", + "\n", + "#calculation\n", + "pf=r/x\n", + "phi=math.atan(pf)\n", + "phi2=math.atan(x/r)\n", + "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", + "efficiency=100/(100+r*2)\n", + "\n", + "#result\n", + "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", + "print \" ii)regulation=\",regn,\"%\"\n", + "print \"b)efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)phi= 18.4349488229 degrees\n", + " ii)regulation= 5.6920997883 %\n", + "b)efficiency= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.75, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "vo=250.0#V\n", + "io=3.0#A\n", + "wo=200.0#W\n", + "vsc=15.0#V\n", + "isc=30.0#A\n", + "wsc=300.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "cu_loss=(i/isc)**2*wsc\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+wo)\n", + "z=vsc/isc\n", + "r=wsc/isc**2\n", + "x=(z**2-r**2)**0.5\n", + "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.6030534351 %\n", + "regulation= 1.72239475667 %\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.76, Page Number:1177" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40.0#kVA\n", + "loss=400.0#W\n", + "cu_loss=800.0#W\n", + "\n", + "#calculation\n", + "x=(loss/cu_loss)**0.5\n", + "output=load*x*1\n", + "efficiency=output/(output+load*2/100)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.2493723732 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.77, Page Number:1178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#kVA\n", + "v1=500#V\n", + "v2=250#V\n", + "vsc=60#V\n", + "isc=20#A\n", + "wsc=150#W\n", + "per=1.2\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=load*1000/v1\n", + "cu_loss=per**2*wsc\n", + "output=per*load*1.0\n", + "efficiency=output*100/(output+cu_loss*2/1000)\n", + "output=load*1000*pf\n", + "e2=output*100/(output+cu_loss+wsc)\n", + "\n", + "#result\n", + "print \"maximum efficiency=\",efficiency,\"%\"\n", + "print \"full-load efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum efficiency= 96.5250965251 %\n", + "full-load efficiency= 95.6251494143 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.78, Page Number:1181" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#kVA\n", + "cu_loss=4.5#kW\n", + "iron_loss=3.5#kW\n", + "t1=6.0#hrs\n", + "t2=10.0#hrs\n", + "t3=4.0#hrs\n", + "t4=4.0#hrs\n", + "load1_=400.0#kW\n", + "load2_=300.0#kW\n", + "load3_=100.0#kW\n", + "pf1=0.8\n", + "pf2=0.75\n", + "pf3=0.8\n", + "\n", + "#calculations\n", + "load1=load1_/pf1\n", + "load2=load2_/pf2\n", + "load3=load3_/pf3\n", + "wc1=cu_loss\n", + "wc2=cu_loss*(load2/load1)**2\n", + "wc3=cu_loss*(load3/load1)**2\n", + "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", + "iron_loss=24*iron_loss\n", + "total_loss=twc+iron_loss\n", + "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.6 %\n" + ] + } + ], + "prompt_number": 86 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.79, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "loss=3.0#kW\n", + "tf=3.0#hrs\n", + "th=4.0#hrs\n", + "\n", + "#calculation\n", + "iron_loss=loss*24/2\n", + "wcf=loss*tf/2\n", + "wch=loss/8\n", + "wch=wch*4\n", + "total_loss=iron_loss+wch+wcf\n", + "output=load*tf+load*th/2\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.2509225092 %\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.80, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#KW\n", + "efficiency=0.98\n", + "tf=4.0#hrs\n", + "th=6.0#hrs\n", + "t10=14.0#hrs\n", + "\n", + "#calculations\n", + "#1st transformer\n", + "inpt=load/efficiency\n", + "tloss=inpt-load\n", + "y=tloss/2\n", + "x=y\n", + "iron_loss=x*24\n", + "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", + "loss=iron_loss+cu_loss\n", + "output=tf*load+th*load/2+t10*10\n", + "e1=output/(output+loss)\n", + "#2nd transformer\n", + "y=tloss/(1+1.0/4)\n", + "x=(tloss-y)\n", + "iron_loss=x*24\n", + "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", + "loss=iron_loss+wc\n", + "e2=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", + "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.408163265306 1.63265306122\n", + "efficiency of forst transformer= 96.5245532574 %\n", + "efficiency ofsecond transformer= 97.7876610788 %\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.81, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "efficiency=0.95\n", + "nl=10.0#hrs\n", + "ql=7.0#hrs\n", + "hl=5.0#hrs\n", + "fl=2.0#hrs\n", + "\n", + "#calculations\n", + "inpt=load/efficiency\n", + "loss=inpt-load\n", + "wc_fl=loss/2\n", + "iron_loss=loss/2\n", + "wc_fl_4=(1.0/4)**2*wc_fl\n", + "wc_fl_2=(1.0/2)**2*wc_fl\n", + "wc_ql=ql*wc_fl_4\n", + "wc_hl=hl*wc_fl_2\n", + "wc_fl_2=fl*wc_fl\n", + "wc=wc_ql+wc_hl+wc_fl_2\n", + "wh=wc\n", + "loss=wh+24*iron_loss\n", + "output=load*1\n", + "half_output=(output/2)\n", + "q_load=(load/4)\n", + "output=ql*q_load+hl*half_output+fl*output\n", + "e=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 89.5592740985 %\n" + ] + } + ], + "prompt_number": 115 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.82, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.98\n", + "load=15#kVA\n", + "t1=12.0#hrs\n", + "t2=6.0#hrs\n", + "t3=6.0#hrs\n", + "pf1=0.5\n", + "pf2=0.8\n", + "k1=2#kW\n", + "k2=12#kW\n", + "\n", + "#calculations\n", + "output=load*1\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "wc=loss/2\n", + "wi=loss/2\n", + "w1=k1/pf1\n", + "w2=k2/pf2\n", + "wc1=wc*(4/load)\n", + "wc2=wc\n", + "wc12=t1*wc1\n", + "wc6=t2*wc2\n", + "wc=(wc12+wc6)\n", + "wi=24*wi\n", + "output=(k1*t1)+(t2*k2)\n", + "inpt=output+wc+wi\n", + "e=output*100/inpt\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.918367346939 3.67346938776\n", + "efficiency= 95.4351795496 %\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.83, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=150.0#KVA\n", + "l1_=100.0#kVA\n", + "t=3.0#hrs\n", + "loss=1.0#KW\n", + "\n", + "#calculations\n", + "l1=l1_/2\n", + "l2=l1_\n", + "output=load*1\n", + "loss=loss*2\n", + "e1=output/(output+loss)\n", + "wc1=t*(1.0/3)**2*1\n", + "wc2=8*(2.0/3)**2*1\n", + "wc=wc1+wc2\n", + "wi=24*1\n", + "loss=wc+wi\n", + "output=3*(l1*1)+8*(l2*1)\n", + "e2=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"ordinary efficiency=\",e1*100,\"%\"\n", + "print \"all day efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ordinary efficiency= 98.6842105263 %\n", + "all day efficiency= 97.1480513578 %\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.84, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50#KVA\n", + "efficiency=0.94#%\n", + "nl=10\n", + "hl=5.0\n", + "ql=6.0\n", + "fl=3.0\n", + "\n", + "#calculations\n", + "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", + "wch=(0.5)**2*pi\n", + "eh=wch*hl/1000\n", + "wcq=(0.25)**2*pi\n", + "eq=ql*wcq/1000\n", + "e3=pi*3/1000\n", + "e2=pi*24/1000\n", + "e=25*hl+12.5*ql+50*fl\n", + "efficiency=e/(e+e2+eh+eq+e3)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.4557217274 %\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.85, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "t1=7.0#hrs\n", + "t2=4.0#hrs\n", + "t3=8.0#hrs\n", + "t4=5.0#hrs\n", + "k1=3.0#kW\n", + "k2=8.0#kW\n", + "pf1=0.6\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "x1=k1/(pf1*load)\n", + "x2=k2/(pf2*load)\n", + "x3=load/(1*load)\n", + "pc1=(0.5)**2*0.1\n", + "pc2=pc3=0.10\n", + "o1=k1*t1\n", + "o2=k2*t2\n", + "o3=k2*load\n", + "output=o1+o2+o3\n", + "wc1=pc1*t1\n", + "wc2=pc2*t2\n", + "wc3=pc3*t3\n", + "cu_loss=wc1+wc2+wc3\n", + "loss=400.0*24/10000\n", + "efficiency=output/(output+loss+cu_loss)\n", + "\n", + "#result\n", + "print \"efficency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficency= 98.27465179 %\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.86, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=.98\n", + "load=15.0#kVA\n", + "t1=12.0\n", + "t2=6.0\n", + "t3=6.0\n", + "pf1=0.8\n", + "pf2=0.8\n", + "pf3=0.9\n", + "k1=2.0\n", + "k2=12.0\n", + "k3=18.0\n", + "#calculations\n", + "output=load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "cu_loss=loss/2\n", + "x1=k1/(0.5*load)\n", + "x2=k2/(pf2*load)\n", + "x3=k3/(pf3*load)\n", + "wc1=0.131\n", + "wc2=0.918\n", + "wc3=1.632\n", + "o1=t1*k1\n", + "o2=t2*k2\n", + "o3=t3*k3\n", + "output=o1+o2+o3\n", + "loss=wc1+wc2+wc3+0.153*24\n", + "efficiency=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.9798386522 %\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.87, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.0#kW\n", + "v1=115.0#V\n", + "v2=230.0#V\n", + "\n", + "#calculation\n", + "k=v1/v2\n", + "power=load*(1-k)\n", + "power2=k*load\n", + "\n", + "#result\n", + "print \"a)power transferred inductively=\",power,\"kW\"\n", + "print \"b)power transferred conductively=\",power2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)power transferred inductively= 1.5 kW\n", + "b)power transferred conductively= 1.5 kW\n" + ] + } + ], + "prompt_number": 145 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.88, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=500.0#V\n", + "v2=400.0#V\n", + "i=100.0#A\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "i1=k*i\n", + "saving=k*100\n", + "\n", + "#result\n", + "print \"economy of cu=\",saving" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "economy of cu= 80.0\n" + ] + } + ], + "prompt_number": 147 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.89, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#KVA\n", + "f=50.0#Hz\n", + "v1=6600.0#V\n", + "v2=5000.0#V\n", + "e=8.0#V\n", + "phim1=1.3#Wb/m2\n", + "\n", + "#calculations\n", + "phim=e/(4.44*f)\n", + "area=phim/phim1\n", + "n1=v1/e\n", + "n2=v2/e\n", + "\n", + "#result\n", + "print \"core area=\",area*10000,\"m2\"\n", + "print \"number of turns on the hv side=\",n1\n", + "print \"number of turns on the lv side=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core area= 277.2002772 m2\n", + "number of turns on the hv side= 825.0\n", + "number of turns on the lv side= 625.0\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.90, Page Number:1189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2640*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i1_-i2\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 219.12 kVA\n", + "iv)per cent increase in kVA= 1095.6 %\n", + "v)I1= 91.3 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.91, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2160*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i2-i1_\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 179.28 kVA\n", + "iv)per cent increase in kVA= 896.4 %\n", + "v)I1= 74.7 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 160 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.92, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=110.0#V\n", + "v2=110.0#V\n", + "f=50.0#Hz\n", + "efficiency=0.95\n", + "iron_loss=50.0#W\n", + "v=220.0#V\n", + "\n", + "#calculations\n", + "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", + "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", + "i2=(load*1000+cu_loss/4+iron_loss)/v\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"current drawn on hv side=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.9760216579 %\n", + "current drawn on hv side= 23.1967703349 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.93, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500#V\n", + "v2=2300#V\n", + "\n", + "#calculations\n", + "kva=(v1+v2)*50*0.001\n", + "\n", + "#result\n", + "print \"voltage output=\",v1+v2,\"V\"\n", + "print \"kVA rating of auto transformer=\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage output= 13800 V\n", + "kVA rating of auto transformer= 690.0 kVA\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.94, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500.0#V\n", + "v2=2300.0#V\n", + "load=100.0#KVA\n", + "\n", + "#calculations\n", + "i1=load*100/v1\n", + "i2=load*100/v2\n", + "kva1=(v1+v2)*i1/(100)\n", + "kva2=(v1+v2)*i2/(100)\n", + "#result\n", + "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", + "print \"kVA rating in first case=\",kva1\n", + "print \"kVA rating in second case=\",kva2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage ratios= 1.2 or 6.0\n", + "kVA rating in first case= 120.0\n", + "kVA rating in second case= 600.0\n" + ] + } + ], + "prompt_number": 167 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.95, Page Number:1192" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2400.0#v\n", + "v2=240.0#V\n", + "load=50.0#kVA\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "output=2640*i2\n", + "i=i2*2640/v1\n", + "k=2640/v1\n", + "poweri=v1*i1*0.001\n", + "power=output/1000-poweri\n", + "\n", + "#result\n", + "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", + "print \"inductively transferred powers=\",poweri,\"kW\"\n", + "print \"conductively transferred powers=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rating of the auto-transformer= 550.0 kVA\n", + "inductively transferred powers= 50.0 kW\n", + "conductively transferred powers= 500.0 kW\n" + ] + } + ], + "prompt_number": 169 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.96, Page Number:1196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "za=complex(0.5,3)\n", + "zb=complex(0.,10)\n", + "load=100#KW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", + "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "96.082805253\n", + "SA= 74.5937961595 kW\n", + "SB= 25.4062038405 kW\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.97, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r1=0.005#ohm\n", + "r2=0.01#ohm\n", + "x1=0.05#ohm\n", + "x2=0.04#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "za=complex(r1,x1)\n", + "zb=complex(r2,x2)\n", + "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", + "\n", + "#result\n", + "print \"load of B=\",abs(za/zb)\n", + "print \"pf of B=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load of B= 1.21872643265\n", + "pf of B= 0.613584256393\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.98, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#kVA\n", + "za=complex(1,6)\n", + "zb=complex(1.2,4.8)\n", + "load1=500#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 224.451917244 -39.3923099293\n", + "SB= 275.942423833 -34.8183886694\n" + ] + } + ], + "prompt_number": 205 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.99, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "load=100.0#KW\n", + "r1=0.5\n", + "x1=8.0\n", + "r2=0.75\n", + "x2=4.0\n", + "load1=180.0#kW\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "load=load1/pf\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "z1=complex(r1,x1)\n", + "z2=complex(r2,x2)\n", + "s1=s*z2/(z1+z2)\n", + "s2=s*z1/(z1+z2)\n", + "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", + "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", + "\n", + "#result\n", + "print \"kW1=\",kw1,\"kW\"\n", + "print \"kW2=\",kw2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(1.25+12j)\n", + "kW1= 58.119626171 kW\n", + "kW2= 121.880373829 kW\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.100, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kW\n", + "pf=0.85\n", + "za=complex(1,5)\n", + "zb=complex(2,6)\n", + "\n", + "#calculations\n", + "s=load/pf*complex(0.85,-0.527)\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", + "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA for A= 130.53263665 0.819364787986 lag\n", + "kVA for B= 105.238776124 0.884143252833 lag\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.101, Page Number:1198" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=110.0#V\n", + "load=125.0#kVA\n", + "pf=0.8\n", + "za=complex(0.9,10)\n", + "zb=(100/50)*complex(1.0,5)\n", + "\n", + "#calculation\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 63.0780848499 -39.929442891 degrees\n", + "SB= 62.1031510961 -33.7622749748 degrees\n" + ] + } + ], + "prompt_number": 218 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.102, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=500#kVA\n", + "za=complex(1,5)\n", + "load2=250#kVA\n", + "zb=complex(1.5,4)\n", + "v2=400#V\n", + "load=750#kVA\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zb=(500/load2)*zb\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 471.125736359 -40.3232138964 degrees\n", + "SB= 281.165527855 -31.0771011508 degrees\n" + ] + } + ], + "prompt_number": 219 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.103, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=1000#A\n", + "pf=0.8\n", + "za=complex(2,3)\n", + "zb=complex(2.5,5)\n", + "\n", + "#calculations\n", + "i=i*complex(pf,-math.sin(math.acos(pf)))\n", + "ratio=zb/za\n", + "ib=i/(1+ratio)\n", + "ia=i-ib\n", + "ratio=ia.real/ib.real\n", + "\n", + "#result\n", + "print \"IA=\",ia\n", + "print \"IB=\",ib\n", + "print \"ratio of output=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= (504.451038576-341.246290801j)\n", + "IB= (295.548961424-258.753709199j)\n", + "ratio of output= 1.70682730924\n" + ] + } + ], + "prompt_number": 220 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.104, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "v2=500.0#V\n", + "load=100.0#kVA\n", + "za=complex(1.0,5.0)\n", + "zb=complex(2.0,2.0)\n", + "load1=300.0#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "zb=(100.0/250)*zb\n", + "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "zab=za*zb/(za+zb)\n", + "drop=zab.real*240/100+zab.imag*180/100\n", + "v2=v2-v2*drop/100\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "print \"secondary voltage=\",v2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 55.8895719399 -64.6284382469 degrees\n", + "SB= 251.890896741 -30.9383707209 degrees\n", + "secondary voltage= 486.177874187 V\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.105, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n11=5000.0\n", + "n12=440.0\n", + "load1=200#kVA\n", + "n21=5000.0\n", + "n22=480.0\n", + "load2=350#kVA\n", + "x=3.5\n", + "\n", + "#calculation\n", + "i1=load1*1000/n12\n", + "i2=load2*1000/n22\n", + "x1=x*n12/(100*i1)\n", + "x2=x*n22/(100*i2)\n", + "ic=(n22-n12)/0.057\n", + "\n", + "#result\n", + "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.106, Page Number:1203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "ea=6600#V\n", + "eb=6400#V\n", + "za=complex(0.3,3)\n", + "zb=complex(0.2,1)\n", + "zl=complex(8.0,6.0)\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "\n", + "#result\n", + "print \"IA=\",abs(ia),\"A\"\n", + "print \"IB=\",abs(ib),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 195.492387533 A\n", + "IB= 422.567795916 A\n" + ] + } + ], + "prompt_number": 227 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.107, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=100.0#kVA\n", + "load2=50.0#kVA\n", + "v1=1000.0#V\n", + "v2=950.0#V\n", + "r1=2.0\n", + "r2=2.5\n", + "x1=8.0\n", + "x2=6.0\n", + "\n", + "#calculations\n", + "ia=load1*1000/v1\n", + "ra=v1*r1/(100*ia)\n", + "xa=v1*x1/(100*ia)\n", + "ib=load2*1000/v2\n", + "rb=v2*r2/(100*ib)\n", + "xb=v2*x2/(100*ib)\n", + "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", + "ic=(v1-v2)/z\n", + "alpha=math.atan((xa+xb)/(ra+rb))\n", + "\n", + "#result\n", + "print \"no load circulating current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load circulating current= 25.0948635944 A\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 32.108, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=1000.0#KVA\n", + "load2=500.0#kVA\n", + "v1=500.0#V\n", + "v2=510.0#V\n", + "z1=3.0\n", + "z2=5.0\n", + "r=0.4\n", + "\n", + "#calculation\n", + "ia=load1*1000/480\n", + "ib=load2*1000/480\n", + "za=z1*v1/(100*ia)\n", + "zb=z2*v2/(100*ib)\n", + "ic=(v2-v1)/(za+zb)\n", + "\n", + "#result\n", + "print \"cross current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "cross current= 315.656565657 A\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.109, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "loada=500.0#KVA\n", + "loadb=250.0#kVA\n", + "load=750.0#KVA\n", + "pf=0.8\n", + "v1=405.0#V\n", + "v2=415.0#V\n", + "ra=1.0\n", + "rb=1.5\n", + "xa=5.0\n", + "xb=4.0\n", + "\n", + "#calculations\n", + "ia=loada*1000/400\n", + "ra=400/(100*ia)\n", + "xa=xa*400/(100*ia)\n", + "ib=loadb*1000/400\n", + "rb=rb*400/(100*ib)\n", + "xb=xb*400/(100*ib)\n", + "za=complex(ra,xa)\n", + "zb=complex(rb,xb)\n", + "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", + "ic=(v1-v2)/(za+zb)\n", + "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "sa=400*ia/1000\n", + "sb=400*ib/1000\n", + "pf1=math.cos(math.atan(sa.imag/sa.real))\n", + "pf2=math.cos(math.atan(sb.imag/sb.real))\n", + "\n", + "#result\n", + "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", + "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", + "print \" SB=\",abs(sb),pf2,\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross current= -229.754569404 -72.8972710309\n", + "b)SA= 387.844943528 0.820048560714 lag\n", + " SB= 351.964386212 0.738709225528 lag\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.110, Page Number:1205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zl=complex(2.0,1.5)\n", + "za=complex(0.15,0.5)\n", + "zb=complex(0.1,0.6)\n", + "ea=207#V\n", + "eb=205#V\n", + "\n", + "#calculations\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "v2_=(ia+ib)*zl\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", + "pfa=math.cos(angle)\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", + "pfb=math.cos(angle)\n", + "pa=abs(v2_)*abs(ia)*pfa\n", + "pb=abs(v2_)*abs(ib)*pfb\n", + "\n", + "#result\n", + "print \"power output:\"\n", + "print \" A:\",pa,\"W\"\n", + "print \" B:\",pb,\"W\"\n", + "print \"power factor:\"\n", + "print \" A:\",pfa\n", + "print \" B:\",pfb\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output:\n", + " A: 6535.37583042 W\n", + " B: 4925.36941503 W\n", + "power factor:\n", + " A: 0.818428780129\n", + " B: 0.775705655277\n" + ] + } + ], + "prompt_number": 248 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.111, Page Number:1206" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=200.0#A\n", + "ib=600.0#A\n", + "ra=0.02#ohm\n", + "rb=0.025#ohm\n", + "xa=0.05#ohm\n", + "xb=0.06#ohm\n", + "ea=245.0#V\n", + "eb=240.0#V\n", + "zl=complex(0.25,0.1)\n", + "\n", + "#calculation\n", + "za=(ea/ia)*complex(ra,xa)\n", + "zb=(eb/ib)*complex(rb,xb)\n", + "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", + "v2=i*zl\n", + "\n", + "#result\n", + "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 230.0 -3.0 degrees\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_1.ipynb new file mode 100644 index 00000000..a29de087 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_1.ipynb @@ -0,0 +1,5311 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.1, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=3000.0#V\n", + "f=50.0#Hz\n", + "phi=1.2#Wb-m2\n", + "e=8.0#V\n", + "\n", + "#calculations\n", + "n1=v1/e\n", + "n2=v2/e\n", + "a=v2/(4.44*f*n2*phi)\n", + "\n", + "#result\n", + "print \"primary turns=\",n1\n", + "print \"secondary turns=\",n2\n", + "print \"area of core=\",round(a,2),\"m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary turns= 31.25\n", + "secondary turns= 375.0\n", + "area of core= 0.03 m2\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.2, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#KVA\n", + "v1=11000#V\n", + "v2=550#V\n", + "f=50#Hz\n", + "bm=1.3#Tesla\n", + "sf=0.9\n", + "per=10#%\n", + "a=20*20*sf/10000#m2\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*bm*a)\n", + "n2=v2/(4.44*f*bm*a)\n", + "e_per_turn=v1/n1\n", + "\n", + "#result\n", + "print \"HV TURNS=\",round(n1)\n", + "print \"LV TURNS=\",round(n2)\n", + "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV TURNS= 1059.0\n", + "LV TURNS= 53.0\n", + "EMF per turns= 10.4 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.3, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=400.0\n", + "n2=1000.0\n", + "a=60.0/10000.0#cm2\n", + "f=50.0#Hz\n", + "e1=520.0#V\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "e2=k*e1\n", + "bm=e1/(4.44*f*n1*a)\n", + "\n", + "#result\n", + "print \"peak value of flux density=\",bm,\"WB/m2\"\n", + "print \"voltage induced in the secondary winding=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak value of flux density= 0.975975975976 WB/m2\n", + "voltage induced in the secondary winding= 1300.0 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.4, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "n1=500.0\n", + "n2=50.0\n", + "v=3000.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "i1=load*1000/v\n", + "i2=i1/k\n", + "e1=v/n1\n", + "e2=e1*n2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", + "print \"secondary emf=\",e2,\"V\"\n", + "print \"flux=\",phim*1000,\"mWB\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", + "secondary emf= 300.0 V\n", + "flux= 27.027027027 mWB\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.5, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11000#V\n", + "v2=550#V\n", + "load=300#kVA\n", + "phim=0.05#Wb\n", + "\n", + "#calculation\n", + "e=4.44*f*phim\n", + "e2=v2/1.732\n", + "t1=v1/e\n", + "t2=e2/e\n", + "output=load/3\n", + "HV=100*1000/v1\n", + "LV=100*1000/e2\n", + "\n", + "#result\n", + "print \"HV turns=\",t1\n", + "print \"LV turns=\",t2\n", + "print \"emf per turn=\",e2\n", + "print \"full load HV=\",HV\n", + "print \"full load LV=\",LV" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 990.990990991\n", + "LV turns= 28.6082849593\n", + "emf per turn= 317.551963048\n", + "full load HV= 9\n", + "full load LV= 314.909090909\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.6, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=1200.0\n", + "a=80.0/10000.0#m2\n", + "f=50.0#Hz\n", + "v=500.0#V\n", + "\n", + "#calculation\n", + "phim=n1/(4.44*f*n1)\n", + "bm=phim/a\n", + "v2=n2*v/n1\n", + "\n", + "#result\n", + "print \"peak flux-density=\",bm,\"Wb\"\n", + "print \"voltage induced in the secondary=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak flux-density= 0.563063063063 Wb\n", + "voltage induced in the secondary= 1200.0 V\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.7, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varible declaration\n", + "load=25.0#kVA\n", + "n1=250.0\n", + "n2=40.0\n", + "v=1500.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "v2=n2*v/n1\n", + "i1=load*1000/v\n", + "i2=load*1000/v2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", + "print \"ii)seconary emf=\",v2,\"V\"\n", + "print \"iii)maximum flux=\",phim*1000,\"mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", + "ii)seconary emf= 240.0 V\n", + "iii)maximum flux= 27.027027027 mWb\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.8, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "a=20.0*20.0/10000#m2\n", + "phim=1.0#Wbm2\n", + "v1=3000.0#V\n", + "v2=220.0#V\n", + "\n", + "#calculation\n", + "t2=v2/(4.44*f*phim*a)\n", + "t1=t2*v1/v2\n", + "n1=t1/2\n", + "n2=t2/2\n", + "\n", + "#result\n", + "print \"HV turns=\",n1\n", + "print \"LV turns=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 168.918918919\n", + "LV turns= 12.3873873874\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.9, Page Number:1126" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=200.0#V\n", + "i1=0.6#A\n", + "p=400.0#W\n", + "v3=250.0#V\n", + "i0=0.5#A\n", + "pf=0.3\n", + "\n", + "#calculation\n", + "il=p/v1\n", + "imu=(i1**2-il**2)**0.5\n", + "iw=i0*pf\n", + "imu2=(i0**2-iw**2)**0.5\n", + "\n", + "#result\n", + "print \"magnetising currents=\",imu,\"A\"\n", + "print \"iron loss current=\",il,\"A\"\n", + "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", + "print \"working components of no-load primary current=\",iw,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "magnetising currents= 0.571788552492 A\n", + "iron loss current= 0.181818181818 A\n", + "magnetising components of no load primary current= 0.476969600708 A\n", + "working components of no-load primary current= 0.15 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.10, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=40.0\n", + "l=150.0#cm\n", + "airgap=0.1#mm\n", + "e1=3000.0#V\n", + "phim=1.2#Wb/m2\n", + "f=50.0#Hz\n", + "d=7.8#grma/cm3\n", + "loss=2.0#watt/kg\n", + "\n", + "#calculation\n", + "a=e1/(4.44*f*n1*phim)\n", + "k=n2/n1\n", + "v2=k*e1\n", + "iron=l*5\n", + "air=phim*airgap/(1000*4*3.14*10**(-7))\n", + "bmax=iron+air\n", + "imu=bmax/(n1*2**0.5)\n", + "volume=l*a\n", + "im=volume*d*10\n", + "total_i=im*2\n", + "iw=total_i/(e1)\n", + "i0=(imu**2+iw**2)**0.5\n", + "pf=iw/i0\n", + "\n", + "#result\n", + "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", + "print \"b)no load secondary voltage=\",v2,\"V\"\n", + "print \"c)no load current=\",imu,\"A\"\n", + "print \"d)power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross sectional area= 225.225225225 cm2\n", + "b)no load secondary voltage= 240.0 V\n", + "c)no load current= 1.19577611723 A\n", + "d)power factor= 0.145353269536\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.11, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "n1=1000\n", + "n2=200\n", + "i=3#A\n", + "pf=0.2\n", + "i2=280#A\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "phi1=math.acos(pf2)\n", + "i2_=i2/5\n", + "phi2=math.acos(pf)\n", + "sinphi=math.sin(phi2)\n", + "sinphi2=math.sin(math.acos(phi1))\n", + "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", + "\n", + "#result\n", + "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.12, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=440.0#v\n", + "v2=110.0#V\n", + "i0=5.0#A\n", + "pf=0.2\n", + "i2=120.0#A\n", + "pf2=0.8\n", + "\n", + "#calculation\n", + "phi2=math.acos(pf2)\n", + "phi0=math.acos(pf)\n", + "k=v2/v1\n", + "i2_=k*i2\n", + "angle=phi2-phi0\n", + "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", + "\n", + "#result\n", + "print \"current taken by the primary=\",i1,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the primary= 33.9022604184 A\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.13, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=800.0\n", + "n2=200.0\n", + "pf=0.8\n", + "i1=25.0#A\n", + "pf2=0.707\n", + "i2=80.0#A\n", + "#calculations\n", + "k=n2/n1\n", + "i2_=i2*k\n", + "phi2=math.acos(pf)\n", + "phi1=math.acos(pf2)\n", + "i0pf2=i1*pf2-i2_*pf\n", + "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", + "phi0=math.atan(i0sinphi/i0pf2)\n", + "i0=i0sinphi/math.sin(phi0)\n", + "\n", + "#result\n", + "print \"no load current=\",i0,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load current= 5.91703050525 A\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.14, Page Number:1131" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=10#A\n", + "pf=0.2\n", + "ratio=4\n", + "i2=200#A\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "phi0=math.acos(pf)\n", + "phil=math.acos(pf)\n", + "i0=complex(2,-9.8)\n", + "i2_=complex(42.5,-26.35)\n", + "i1=i0+i2_\n", + "phi=math.acos(i1.real/57.333)\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"power factor=\",math.degrees(phi),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= (44.5-36.15j) A\n", + "power factor= 39.0890154959 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.15, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable decaration\n", + "load=30.0#KVA\n", + "v1=2400.0#V\n", + "v2=120.0#V\n", + "f=50.0#Hz\n", + "r1=0.1#ohm\n", + "x1=0.22#ohm\n", + "r2=0.034#ohm\n", + "x2=0.012#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "r02=r2+r1*k**2\n", + "x02=x2+x1*k**2\n", + "z02=(r02**2+x02**2)**0.5\n", + "\n", + "#result\n", + "print \"high voltage side:\"\n", + "print \"equivalent winding resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"low voltage side:\"\n", + "print \"equivalent winding resistance=\",r02,\"ohm\"\n", + "print \"reactance=\",x02,\"ohm\"\n", + "print \"impedence=\",z02,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "high voltage side:\n", + "equivalent winding resistance= 13.7 ohm\n", + "reactance= 5.02 ohm\n", + "impedence= 14.5907642021 ohm\n", + "low voltage side:\n", + "equivalent winding resistance= 0.03425 ohm\n", + "reactance= 0.01255 ohm\n", + "impedence= 0.0364769105051 ohm\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.16, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=4400.0#V\n", + "v2=220.0#V\n", + "r1=3.45#ohm\n", + "r2=0.009#ohm\n", + "x1=5.2#ohm\n", + "x2=0.015#ohm\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "r02=r2+k**2*r1\n", + "x01=x1+x2/k**2\n", + "x02=x2+x1*k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "z02=(r02**2+x02**2)**0.5\n", + "cu_loss=i1**2*r01\n", + "\n", + "#result\n", + "print \"i)resistance=\"\n", + "print \"primary=\",r01,\"ohm\"\n", + "print \"secondary=\",r02,\"ohm\"\n", + "print \"iii)reactance=\"\n", + "print \"primary=\",x01,\"ohm\"\n", + "print \"secondary=\",x02,\"ohm\"\n", + "print \"iv)impedence=\"\n", + "print \"primary=\",z01,\"ohm\"\n", + "print \"secondary=\",z02,\"ohm\"\n", + "print \"v)copper loss=\",cu_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance=\n", + "primary= 7.05 ohm\n", + "secondary= 0.017625 ohm\n", + "reactance=\n", + "primary= 11.2 ohm\n", + "secondary= 0.028 ohm\n", + "impedence=\n", + "primary= 13.2341414531 ohm\n", + "secondary= 0.0330853536327 ohm\n", + "copper loss= 910.382231405 W\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.17, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=10.0\n", + "load=50.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "f=50.0#Hz\n", + "v=240.0#V\n", + "\n", + "#calculation\n", + "i2=load*1000/v\n", + "z2=v/(i2)\n", + "k=v2/v1\n", + "z2_=z2/k**2\n", + "i2_=k*i2\n", + "\n", + "#result\n", + "print \"a)load impedence=\",z2,\"ohm\"\n", + "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", + "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)load impedence= 1.152 ohm\n", + "b)impedence referred to high tension side= 115.2 ohm\n", + "c)the value of current referred to the high tension side= 20.8333333333 A\n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.18, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "v1=11000.0#V\n", + "v2=317.0#V\n", + "load2=0.62#kW\n", + "lvload=0.48#kW\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "r1=load2*1000/i**2\n", + "r2=lvload*1000/i2**2\n", + "r2_=r2*k**2\n", + "x01=4*v1/(i1*100)\n", + "x2_=x01*r2_/(r1+r2_)\n", + "x1=x01-x2_\n", + "x2=x2_*10/k**2\n", + "\n", + "#result\n", + "print \"i)r1=\",r1,\"ohm\"\n", + "print \"r2=\",r2,\"ohm\"\n", + "print \"r2_=\",r2_,\"ohm\"\n", + "print \"ii)reactance=\",x01,\"ohm\"\n", + "print \"x1=\",x1,\"ohm\"\n", + "print \"x2=\",x2,\"ohm\"\n", + "print \"x2_=\",x2_,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)r1= 7.502 ohm\n", + "r2= 0.004823472 ohm\n", + "r2_= 5.808 ohm\n", + "ii)reactance= 48.4 ohm\n", + "x1= 27.28 ohm\n", + "x2= 0.175398981818 ohm\n", + "x2_= 21.12 ohm\n" + ] + } + ], + "prompt_number": 76 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.19, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "k=19.5\n", + "r1=25.0#ohm\n", + "x1=100.0#ohm\n", + "r2=0.06#ohm\n", + "x2=0.25#ohm\n", + "i=1.25#A\n", + "angle=30#degrees\n", + "i2=200#A\n", + "v=50#V\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "v2=complex(500,0)\n", + "i2=i2*complex(0.8,-0.6)\n", + "z2=complex(r2,x2)\n", + "e2=v2+i2*z2\n", + "beta=math.atan(e2.imag/e2.real)\n", + "e1=e2*k\n", + "i2_=i2/k\n", + "angle=beta+math.radians(90)+math.radians(angle)\n", + "i0=i*complex(math.cos(angle),math.sin(angle))\n", + "i1=-i2_+i0\n", + "v2=-e1+i1*complex(r1,x1)\n", + "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", + "pf=math.cos(phi)\n", + "power=abs(v2)*i*math.cos(math.radians(60))\n", + "r02=r2+r1/k**2\n", + "cu_loss=abs(i2)**2*r02\n", + "output=500*abs(i2)*pf2\n", + "loss=cu_loss+power\n", + "inpt=output+loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"primary applied voltage=\",v2,\"V\"\n", + "print \"primary pf=\",pf\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", + "primary pf= 0.698572087114\n", + "efficiency= 86.7261056254 %\n" + ] + } + ], + "prompt_number": 94 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.20, Page Number:1138" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable description\n", + "load=100#KVA\n", + "v1=1100#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "zh=complex(0.1,0.4)\n", + "zl=complex(0.006,0.015)\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "#HV \n", + "r1=zh.real+zl.real*k**2\n", + "x1=zh.imag+zl.imag*k**2\n", + "z1=(r1**2+x1**2)**0.5\n", + "#LV\n", + "r2=r1/k**2\n", + "x2=x1/k**2\n", + "z2=z1/k**2\n", + "\n", + "#result\n", + "print \"HV:\"\n", + "print \"resistance=\",r1,\"ohm\"\n", + "print \"reactance=\",x1,\"ohm\"\n", + "print \"impedence=\",z1,\"ohm\"\n", + "print \"LV:\"\n", + "print \"resistance=\",r2,\"ohm\"\n", + "print \"reactance=\",x2,\"ohm\"\n", + "print \"impedence=\",z2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV:\n", + "resistance= 0.25 ohm\n", + "reactance= 0.775 ohm\n", + "impedence= 0.814324873745 ohm\n", + "LV:\n", + "resistance= 0.01 ohm\n", + "reactance= 0.031 ohm\n", + "impedence= 0.0325729949498 ohm\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.21, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230#V\n", + "v2=460#V\n", + "r1=0.2#ohm\n", + "x1=0.5#ohm\n", + "r2=0.75#ohm\n", + "x2=1.8#ohm\n", + "i=10#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "x02=x2+k**2*x1\n", + "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "vt2=v2-vd\n", + "\n", + "#result\n", + "print \"secondary terminal voltage=\",vt2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary terminal voltage= 424.8 V\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.22, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.0#%\n", + "x=5.0#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "mu=r*pf+x*math.sin(math.acos(pf))\n", + "mu2=r**2+x*0\n", + "mu3=r*pf-x*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", + "print \"regulation at pf=1:\",mu2,\"%\"\n", + "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=0.8 lag: 3.8 %\n", + "regulation at pf=1: 1.0 %\n", + "regulation at pf=0.8 lead: -2.2 %\n" + ] + } + ], + "prompt_number": 98 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.23, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=5#%\n", + "r=2.5#%\n", + "\n", + "#calculation\n", + "phi=math.atan(x/r)\n", + "cosphi=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "regn=r*cosphi+x*sinphi\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.59016994375 %\n", + "pf= 0.4472135955\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.24, Page Number:1142" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=2.5#%\n", + "x=5#%\n", + "load1=500#KVA\n", + "load2=400#KVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "kw=load2*pf\n", + "kvar=load2*math.sin(math.acos(pf))\n", + "drop=(r*kw/load1)+(x*kvar/load1)\n", + "\n", + "#result\n", + "print \"percentage voltage drop=\",drop,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage voltage drop= 4.0 %\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.26, Page Number:1145" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=600#V\n", + "v2=1080#V\n", + "v=720#V\n", + "load=8#W\n", + "load2=10#kVA\n", + "\n", + "#calculation\n", + "ir2=load*1000/v2\n", + "il2=load*1000/v\n", + "ir2_=ir2*v2/v1\n", + "il2_=il2*v/v1\n", + "ir2=math.sqrt(ir2_**2+il2_**2)\n", + "s=complex(load,load2)\n", + "s=abs(s)\n", + "pf=load/s\n", + "i=s*load2*100/v1\n", + "\n", + "#result\n", + "print \"primary current=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 21.3437474581 A\n", + "power factor= 0.624695047554\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "v1=110#V\n", + "i=0.5#A\n", + "p=30#W\n", + "r=0.6#ohm\n", + "\n", + "#calculation\n", + "ratio=v/v1\n", + "pf=p/(i*v)\n", + "sinphi=math.sqrt(1-pf**2)\n", + "ip=i*sinphi\n", + "iw=i*pf\n", + "cu_loss=i**2*r\n", + "iron_loss=p-cu_loss\n", + "\n", + "#result\n", + "print \"i)turns ratio=\",ratio\n", + "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", + "print \"iii)working component of no-load current=\",iw,\"A\"\n", + "print \"iv)the iron loss=\",iron_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)turns ratio= 2\n", + "ii)magnetising component of no-load current= 0.481045692921 A\n", + "iii)working component of no-load current= 0.136363636364 A\n", + "iv)the iron loss= 29.85 W\n" + ] + } + ], + "prompt_number": 104 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=200.0#V\n", + "v2=1000.0#V\n", + "f=50.0#Hz\n", + "vo=2000.0#V\n", + "io=1.2#A\n", + "po=90.0#W\n", + "vs=50.0#V\n", + "i_s=5.0#A\n", + "ps=110.0#W\n", + "p=3.0#kW\n", + "pf=0.8\n", + "v=200.0#V\n", + "\n", + "#calculation\n", + "r0=v**2/po\n", + "ia0=v/r0\n", + "ip=math.sqrt(io**2-ia0**2)\n", + "xm=v/ip\n", + "z=vs/i_s\n", + "r=ps/25\n", + "x=math.sqrt(z**2-r**2)\n", + "r1=r*(v1/v2)**2\n", + "x1=x*(v1/v2)**2\n", + "i_lv1=load*1000/v\n", + "i_lv=(p*1000/pf)/v\n", + "sinphi=math.sin(math.acos(pf))\n", + "reg=i_lv*(r1*pf+x1*sinphi)/v\n", + "vt=v2-reg*1000/v\n", + "\n", + "#result\n", + "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", + "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", + "print \"output secondary voltage=\",vt,\"V\"\n", + "print \"percentage regulation=\",reg*100,\"%\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "LV crrent at rated load= 25.0 A\n", + "LV current at 3kW at 0.8 lagging pf 18.75 A\n", + "output secondary voltage= 999.832975251 V\n", + "percentage regulation= 3.34049498886 %\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.29, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "loss1=52.0#W\n", + "f1=40.0#Hz\n", + "loss2=90.0#W\n", + "f2=60.0#Hz\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 45.0 W\n", + "eddy current= 25.0 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.30, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "m=10#kg\n", + "f=50.0#Hz\n", + "f1=25.0\n", + "f2=40.0\n", + "f3=50.0\n", + "f4=60.0\n", + "f5=80.0\n", + "l1=18.5/f1\n", + "l2=36.0/f2\n", + "l3=50.0/f3\n", + "l4=66.0/f4\n", + "l5=104.0/f5\n", + "#calculation\n", + "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", + "eddy_loss_per_kg=ans[B]*f**2/m\n", + "\n", + "#result\n", + "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", + "\n", + "#plot\n", + "F=[f1,f2,f3,f4,f5]\n", + "L=[l1,l2,l3,l4,l5]\n", + "a=plot(F,L)\n", + "xlabel(\"f -->\") \n", + "ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n", + "eddy current loss per kg at 50 Hz=" + ] + }, + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " -0.118333333333333 W\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.31, Page Number:1148" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "v1=440#V\n", + "f1=50#Hz\n", + "p1=2500#W\n", + "v2=220#V\n", + "f2=25#Hz\n", + "p2=850#z\n", + "\n", + "#calculation\n", + "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 900.0 W\n", + "eddy current= 1600.0 W\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.32, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "f1=50.0#Hz\n", + "core=1000.0#W\n", + "wh=650.0#W\n", + "we=350.0#W\n", + "v2=2000.0#V\n", + "f2=100.0#Hz\n", + "\n", + "#calculation\n", + "a=wh/f1\n", + "b=we/f1**2\n", + "wh=a*f2\n", + "we=b*f2**2\n", + "new_core=wh+we\n", + "\n", + "#result\n", + "print \"new core loss=\",new_core,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " new core loss= 2700.0 W\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.33, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "phi=1.4#Wb/m2\n", + "we=1000.0#W\n", + "wh=3000.0#W\n", + "per=10.0#%\n", + "\n", + "#calculation\n", + "wh1=wh*1.1**1.6\n", + "we1=we*1.1**2\n", + "wh2=wh*0.9**(-0.6)\n", + "wh3=wh*1.1**1.6*1.1**(-0.6)\n", + "#result\n", + "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", + "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", + "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", + "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", + "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" + ] + } + ], + "prompt_number": 119 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.34, Page Number:1150" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=40.0#Hz\n", + "loss=800.0#W\n", + "wh=600.0#W\n", + "we=loss-wh\n", + "v2=3300.0#V\n", + "f2=60.0#Hz\n", + "\n", + "#calculations\n", + "a=wh/f\n", + "b=we/f**2\n", + "core_loss=a*f2+b*f2**2\n", + "\n", + "#result\n", + "print \"core loss at 60 Hz=\",core_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core loss at 60 Hz= 1350.0 W\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.35, Page Number:1151" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=30.0#KvA\n", + "v1=6000.0#V\n", + "v2=230.0#V\n", + "r1=10.0#ohm\n", + "r2=0.016#ohm\n", + "x01=34.0#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"primary voltage=\",vsc,\"V\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary voltage= 199.519931911 V\n", + "pf= 0.523468222173\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.36, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "f=50.0#Hz\n", + "vo=200.0#V\n", + "io=0.7#A\n", + "po=70.0#W\n", + "vs=15.0#v\n", + "i_s=10.0#A\n", + "ps=85.0#W\n", + "load=5.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cosphi0=po/(vo*io)\n", + "sinphi0=math.sin(math.acos(cosphi0))\n", + "iw=io*cosphi0\n", + "imu=io*sinphi0\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "z02=vs/i_s\n", + "k=v2/v1\n", + "z01=z02/k**2\n", + "r02=ps/i_s**2\n", + "r01=r02/k**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "output=load/pf\n", + "i2=output*1000/v2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "print z02\n", + "#result\n", + "print \"secondary voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1.5\n", + "secondary voltage= 377.788243349 V\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.37, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "k=1.0/6\n", + "r1=0.9#ohm\n", + "x1=5.0#ohm\n", + "r2=0.03#ohm\n", + "x2=0.13#ohm\n", + "vsc=330.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=vsc/z01\n", + "i2=i1/k\n", + "cosphisc=i1**2*r01/(vsc*i1)\n", + "\n", + "#result\n", + "print \"current in low voltage winding=\",i2,\"A\"\n", + "print \"pf=\",round(cosphisc,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in low voltage winding= 200.396236149 A\n", + "pf= 0.2\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.38, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "f=50.0#Hz\n", + "r1=0.2#ohm\n", + "x1=0.4#ohm\n", + "r2=0.5#ohm\n", + "x2=0.1#ohm\n", + "r0=1500.0#ohm\n", + "x0=750.0#ohm\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(iw**2+imu**2)**0.5\n", + "pi=v1*iw\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "power=i1**2*r01\n", + "\n", + "#result\n", + "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" + ] + } + ], + "prompt_number": 140 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.39, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=1000#kVA\n", + "v1=110#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "per1=98.5#%\n", + "pf=0.8\n", + "per2=98.8#%\n", + "\n", + "#calculaions\n", + "output=load*1\n", + "inpt=output*100/per2\n", + "loss=inpt-output\n", + "inpt_half=(load/2)*pf*100/per1\n", + "loss2=inpt_half-400\n", + "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", + "kva=load*(ans[y]/ans[x])*0.5\n", + "output=kva*1\n", + "cu_loss=ans[y]\n", + "total_loss=2*cu_loss\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"full load copper loss=\",cu_loss,\"kW\"\n", + "print \"maximum efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load copper loss= 4.07324441521606 kW\n", + "maximum efficiency= 0.968720013059872 %\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.40, Page Number:1154" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#v\n", + "v2=400.0#V\n", + "r01=0.15#ohm\n", + "x01=0.37#ohm\n", + "r0=600.0#ohm\n", + "x0=300.0#ohm\n", + "i2=10.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(imu**2+iw**2)**0.5\n", + "tantheta=iw/imu\n", + "theta=math.atan(tantheta)\n", + "theta0=math.radians(90)-theta\n", + "angle=theta0-math.acos(pf)\n", + "k=v2/v1\n", + "i2_=i2*k\n", + "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", + "r02=k**2*r01\n", + "x02=x01*k**2\n", + "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)primary current=\",i1,\"A\"\n", + "print \"ii)secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current= 20.6693546639 A\n", + "ii)secondary terminal voltage= 386.32 V\n" + ] + } + ], + "prompt_number": 149 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.43, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "n1=400.0\n", + "n2=80.0\n", + "r1=0.3#ohm\n", + "r2=0.01#ohm\n", + "x1=1.1#ohm\n", + "x2=0.035#ohm\n", + "v1=2200.0#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=complex(r01,x01)\n", + "z02=k**2*z01\n", + "v2=k*v1\n", + "i2=load*1000/v2\n", + "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", + "regn=vd*100/v2\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)equivalent impedence=\",z02,\"ohm\"\n", + "print \"ii)voltage regulation=\",regn,\"%\"\n", + "print \"secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent impedence= (0.022+0.079j) ohm\n", + "ii)voltage regulation= -1.53925619835 %\n", + "secondary terminal voltage= 446.772727273 V\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.44, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "va=450.0#V\n", + "vb=120.0#V\n", + "v1=120.0#V\n", + "i1=4.2#A\n", + "w1=80.0#W\n", + "v2=9.65#V\n", + "i2=22.2#A\n", + "w2=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=vb/va\n", + "i0=i1*k\n", + "cosphi0=w1/(va*i0)\n", + "phi0=math.acos(cosphi0)\n", + "sinphi0=math.sin(phi0)\n", + "iw=i0*cosphi0\n", + "imu=i0*sinphi0\n", + "r0=va/iw\n", + "x0=va/imu\n", + "z01=v2/i2\n", + "r01=vb/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "loss=w1+w2\n", + "output=load*1000*pf\n", + "efficiency=output/(output+loss)\n", + "iron_loss=w1\n", + "cu_loss=(0.5**2)*w2\n", + "total_loss=iron_loss+cu_loss\n", + "output=load*1000*pf/2\n", + "efficiency2=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"i)equivalent circuit constants=\"\n", + "print \"z01=\",z01,\"ohm\"\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r01=\",r01,\"ohm\"\n", + "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", + "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent circuit constants=\n", + "z01= 0.434684684685 ohm\n", + "x01= 0.360090249002 ohm\n", + "r01= 0.243486729973 ohm\n", + "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", + "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.45, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "va=2200.0#V\n", + "vb=220.0#V\n", + "f=50.0#Hz\n", + "v1=220.0#V\n", + "i1=4.2#A\n", + "w1=148.0#W\n", + "v2=86.0#V\n", + "i2=10.5#A\n", + "w2=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "z01=v2/i2\n", + "r01=w2/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",round(pf,1),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 2.94177963326 %\n", + "pf= 0.4 lag\n" + ] + } + ], + "prompt_number": 172 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.46, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=2000.0#V\n", + "v2=400.0#V\n", + "v=60.0#V\n", + "i=4.0#A\n", + "w=100.0#W\n", + "pf=0.8\n", + "v_=400.0#V\n", + "\n", + "#calculations\n", + "z01=v/i\n", + "r01=w/i**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/v1\n", + "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"voltage applied to hv side=\",v1+vd,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage applied to hv side= 2065.90767043 V\n" + ] + } + ], + "prompt_number": 182 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.47, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=500.0#V\n", + "vs=20.0#V\n", + "i_s=12.0#A\n", + "ws=100.0#W\n", + "vo=250.0#V\n", + "io=1.0#A\n", + "wo=80.0#W\n", + "i2=10#A\n", + "v2=500#V\n", + "pg=0.8\n", + "\n", + "#calculation\n", + "cosphi0=wo/(vo*io)\n", + "iw=io*cosphi0\n", + "imu=(1-iw**2)**0.5\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "r02=ws/i_s**2\n", + "z02=vs/i_s\n", + "x02=(z02**2-r02**2)**0.5\n", + "k=v2/v1\n", + "r01=r02/k**2\n", + "x01=x02/k**2\n", + "z01=z02/k**2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=wo\n", + "total_loss=iron_loss+cu_loss\n", + "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", + "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "\n", + "#result\n", + "print \"applied voltage=\",v1_,\"V\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "applied voltage= 251.442641983 V\n", + "efficiency= 96.3984469139 %\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.48, Page Number:1160" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230.0#V\n", + "v2=230.0#V\n", + "load=3.0#kVA\n", + "vo=230.0#V\n", + "io=2.0#A\n", + "wo=100.0#W\n", + "vs=15.0#V\n", + "i_s=13.0#A\n", + "ws=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v1\n", + "cu_loss=ws\n", + "core_loss=wo\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+core_loss)\n", + "z=vs/i_s\n", + "r=ws/(vs**2)\n", + "x=(z**2-r**2)**0.5\n", + "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.90121149256 %\n", + "efficiency= 91.6030534351 %\n" + ] + } + ], + "prompt_number": 194 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.49, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "efficiency=0.94\n", + "per=0.90\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=per*load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "core_loss=loss/2\n", + "pc=core_loss/per**2\n", + "output=load*1000*pf\n", + "cu_loss=pc\n", + "efficiency=output/(output+cu_loss+core_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.5728354534 %\n" + ] + } + ], + "prompt_number": 196 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.50, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=3.96#ohm\n", + "r2=0.0396#ohm\n", + "x1=15.8#ohm\n", + "x2=0.158#ohm\n", + "pf=0.8\n", + "v=230.0#V\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "r=r2+r1*(v2/v1)**2\n", + "x=x1*(v2/v1)**2+x2\n", + "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", + "v1=v1_*(v1/v2)\n", + "phi=math.atan(r/x)\n", + "pf=math.cos(phi)\n", + "#result\n", + "print \"a)HV side voltage necessary=\",v1,\"V\"\n", + "print \"b)pf=\",round(pf,2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)HV side voltage necessary= 2409.9826087 V\n", + "b)pf= 0.97\n" + ] + } + ], + "prompt_number": 199 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.51, Page Number:1162" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#v\n", + "r1=3.4#ohm\n", + "x1=7.2#ohm\n", + "r2=0.028#ohm\n", + "x2=0.060#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "r=r1*(v2/v1)**2+r2\n", + "x=x1*(v2/v1)**2+x2\n", + "ad=i*r*pf\n", + "dc=i*x*math.sin(math.acos(pf))\n", + "oc=v2+ad+dc\n", + "bd=i*r*math.sin(math.acos(pf))\n", + "b_f=x*pf\n", + "cf=b_f-bd\n", + "v1_=(oc**2+cf**2)**0.5\n", + "v1=v1_*(v1/v2)\n", + "\n", + "#result\n", + "print \"terminal voltage on hv side=\",v1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage on hv side= 2229.28500444 V\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.52, Page Number:1163" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "i1=0.7#A\n", + "w1=65.0#W\n", + "v=15.0#V\n", + "i2=10.0#A\n", + "w2=75.0#W\n", + "pf=0.80\n", + "#calculation\n", + "il=load*1000/v1\n", + "ih=load*1000/v2\n", + "cu_loss=w2\n", + "constant_loss=w1\n", + "z=v/i2\n", + "r=w2/i2**2\n", + "x=(z**2-r**2)**0.5\n", + "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", + "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency,\"%\"\n", + "print \"full load regulation=\",regn,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.6183574879 %\n", + "full load regulation= 13.7942286341 V\n" + ] + } + ], + "prompt_number": 209 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.53, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=3300.0#V\n", + "v2=230.0#V\n", + "load=50.0#kVA\n", + "z=4\n", + "cu_loss=1.8\n", + "\n", + "#calculations\n", + "x=(z**2-cu_loss**2)**0.5\n", + "i1=load*1000/v1\n", + "r01=cu_loss*v1/(100*i1)\n", + "x01=x*v1/(100*i1)\n", + "z01=z*v1/(100*i1)\n", + "isc=i1*100/z\n", + "print \n", + "#result\n", + "print \"%x=\",x,\"%\"\n", + "print \"resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"primary sc current=\",isc,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "%x= 3.5721142199 %\n", + "resistance= 3.9204 ohm\n", + "reactance= 7.78006477094 ohm\n", + "impedence= 8.712 ohm\n", + "primary sc current= 378.787878788 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.54, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "vo=220.0#V\n", + "i_o=4.2#A\n", + "wo=148.0#W\n", + "vs=86.0#V\n", + "i_s=10.5#A\n", + "ws=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=ws/i_s**2\n", + "r02=k**2*r01\n", + "z10=vs/i_s\n", + "x01=(z10**2-r01**2)**0.5\n", + "x02=k**2*x01\n", + "i1=load*1000/v1\n", + "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "regn1=(v1_-v1)/v1\n", + "i2=i1/k\n", + "core_loss=wo\n", + "cu_loss=i1**2*r01\n", + "cu_loss_half=(i1/2)**2*r01\n", + "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", + "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", + "print v1_ \n", + "#result\n", + "print \"a)core loss=\",wo,\"W\"\n", + "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", + "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", + "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", + "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", + "print \"f)regulation=\",regn1*100,\"%\"\n", + "print \"g)efficiency at full load=\",efficiency,\"%\"\n", + "print \"h)efficiency at half load=\",efficiency_half,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "2265.01840886\n", + "a)core loss= 148.0 W\n", + "b)equivalent resistance primary= 3.26530612245 ohm\n", + "c)equivalent resistance secondary= 0.0326530612245 ohm\n", + "d)equivalent reactance primary= 7.51143635755 ohm\n", + "e)equivalent reactance secondary= 0.0751143635755 ohm\n", + "f)regulation= 2.95538222101 %\n", + "g)efficiency at full load= 97.4548448466 %\n", + "h)efficiency at half load= 95.0360304208 %\n" + ] + } + ], + "prompt_number": 222 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.55, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "er=1.0/100\n", + "ex=5.0/100\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "regn2=er*1\n", + "regn3=er*pf-ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", + "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", + "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation with pf=0.8 lag= 3.8 %\n", + "ii)regulation with pf=1= 1.0 %\n", + "iii)regulation with pf=0.8 lead= -2.2 %\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.56, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500#kVA\n", + "v1=3300#V\n", + "v2=500#V\n", + "f=50#Hz\n", + "per=0.97\n", + "ratio=3.0/4\n", + "zper=0.10\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=load*ratio*1\n", + "x=0.75\n", + "pi=0.5*(output*(1/per-1))\n", + "pc=pi/x**2\n", + "i1=load*1000/v1\n", + "r=pc*1000/i1**2\n", + "er=i1*r/v1\n", + "ez=zper\n", + "ex=(ez**2-er**2)**0.5\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation=\",regn*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 7.52529846012 %\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.57, Page Number:1166" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "cu_loss=1.5#%\n", + "xdrop=3.5#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "pur=cu_loss/100\n", + "pux=xdrop/100\n", + "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", + "regn1=pur*1\n", + "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", + "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", + "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation at unity pf= 1.5 %\n", + "ii)regulation at 0.8 lag= 3.3 %\n", + "iii)regulation at 0.8 lead= -0.9 %\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.58, Page Number:1168" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#KVA\n", + "w1=5.0#kW\n", + "w2=7.5#kW\n", + "efficiency=0.75\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "loss=total_loss/2\n", + "cu_loss=efficiency**2*w2/2\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+cu_loss+2.5)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.0186963113 %\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.59, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2000.0#V\n", + "v2=200.0#V\n", + "w1=350.0#W\n", + "w2=400.0#W\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "output=load*1000*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=w2*(0.5)**2\n", + "total_loss=cu_loss+w1\n", + "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", + "\n", + "#result\n", + "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency at full load= 97.0873786408 %\n", + "ii)efficiency at half load= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 232 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.60, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.75\n", + "\n", + "#calculation\n", + "ratio=efficiency**2\n", + "\n", + "#result\n", + "print \"ratio of P1 and P2=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of P1 and P2= 0.5625\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.61, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=230.0#V\n", + "load1=150.0#KVA\n", + "f=50.0#Hz\n", + "loss=1.4#kW\n", + "cu_loss=1.6#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "load=load1*(cu_loss/loss)**0.5\n", + "total_loss=loss*2\n", + "output=load*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=cu_loss*(0.5)**2\n", + "total_loss=total_loss+cu_loss\n", + "output2=(load/2)*pf\n", + "efficiency2=output2/(output2+total_loss)\n", + "\n", + "#result\n", + "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", + "print \"max efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load for max efficiency= 150.0 kVA\n", + "max efficiency= 98.283858876 %\n", + "ii)efficiency at half load= 95.2481856352 %\n" + ] + } + ], + "prompt_number": 237 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.62, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "#variable declaration\n", + "load=5#kVA\n", + "v1=2300#V\n", + "v2=230#V\n", + "f=50#Hz\n", + "iron_loss=40#W\n", + "cu_loss=112#W\n", + "pf=0.8\n", + "#calculations\n", + "def e(k):\n", + " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", + " return(e)\n", + "\n", + "e1=e(1.25)\n", + "e2=e(2.5)\n", + "e3=e(3.75)\n", + "e4=e(5.0)\n", + "e5=e(6.25)\n", + "e6=e(7.5)\n", + "\n", + "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", + "E=[e1,e2,e3,e4,e5,e6]\n", + "a=plot(K,E)\n", + "xlabel(\"load,kVA\") \n", + "ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.63, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kVA\n", + "efficiency=0.98\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "output=load*pf\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "x=loss*1000/(1+9.0/16)\n", + "y=(9.0/16)*x\n", + "cu_loss=x*(1.0/2)**2\n", + "total_loss=cu_loss+y\n", + "output=load*pf*0.5\n", + "efficiency=output/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"efficiency at hald load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at hald load= 97.9216626699 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.64, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "r1=1.0#ohm\n", + "r2=0.01#ohm\n", + "pf=0.8\n", + "loss=0.80\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "i2=load*1000/v2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=loss*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "output=load*pf*1000\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"secondary resistance=\",r02,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary resistance= 0.02 ohm\n", + "efficiency= 97.7284199899 %\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.65, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "r01=0.5#ohm\n", + "x01=1.5#ohm\n", + "ratio=3.0/4\n", + "pf=0.8\n", + "v=220.0#V\n", + "loss=100.0#W\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=k**2*r01\n", + "x02=k**2*x01\n", + "i2=1000*load*ratio/v2\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "cu_loss=i2**2*r02\n", + "total_loss=loss+cu_loss\n", + "output=load*ratio*pf\n", + "inpt=output*1000+total_loss\n", + "efficiency=output*1000/(inpt)\n", + "#result\n", + "print \"output=\",output,\"w\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 2.4 w\n", + "efficiency= 91.8660287081 %\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.66, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=440.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "loss=324.0#W\n", + "cu_loss=100.0#W\n", + "pf=0.8\n", + "#calculations\n", + "cu_loss=4*cu_loss\n", + "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", + "per=(loss/cu_loss)**0.5\n", + "\n", + "#result\n", + "print \"i)efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)percent of full-load=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency= 95.6708921311 %\n", + "ii)percent of full-load= 90.0 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.67, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "pf=0.8\n", + "vo=200.0#V\n", + "io=0.8#A\n", + "wo=70.0#W\n", + "vs=20.0#V\n", + "i_s=10.0#A\n", + "ws=60.0#W\n", + "\n", + "#calculation\n", + "i2=load*1000/v2\n", + "loss=ws+wo\n", + "output=load*pf\n", + "efficiency=output/(output+loss/1000)\n", + "z02=vs/i_s\n", + "r02=ws/i2**2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "i1=load*1000/v1\n", + "load=load*(wo/ws)**0.5\n", + "load=load*1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"secondary voltage=\",v2,\"V\"\n", + "print \"current=\",i1,\"A\"\n", + "print \"load at unity pf=\",load,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.0960960961 %\n", + "secondary voltage= 383.752729583 V\n", + "current= 20.0 A\n", + "load at unity pf= 4.32049379894 kW\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.69, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=600.0#KVA\n", + "efficiency=0.92\n", + "per=0.60\n", + "\n", + "#calculation\n", + "inpt=load/efficiency\n", + "loss1=inpt-load\n", + "inpt2=load/(2*efficiency)\n", + "loss2=inpt2-load/2\n", + "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", + "cu_loss=ans[y]*0.36\n", + "loss=cu_loss+ans[x]\n", + "output=load*per\n", + "efficiency=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "389.913043478261\n", + "efficiency= 92.3282783229260 %\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.70, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "e1=0.98\n", + "e2=0.80\n", + "pf=8\n", + "z=0.05\n", + "pf1=0.8\n", + "\n", + "#calculations\n", + "output=load*pf1*e2\n", + "inpt=output/e1\n", + "loss=-output+inpt\n", + "cu_loss=loss/2\n", + "cu_loss_full=cu_loss/pf1**2\n", + "r=round(cu_loss_full*100/load)\n", + "sin=math.sin(math.acos(pf1))\n", + "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", + "#result\n", + "print \"voltage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 3.8578 %\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.71, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#KVA\n", + "v1=5000.0#V\n", + "v2=440.0#V\n", + "f=25.0#Hz\n", + "cu_loss=1.5\n", + "we=0.5\n", + "wh=0.6\n", + "v2=10000.0\n", + "#calculations\n", + "cu_loss1=cu_loss*load/100\n", + "we1=we*load/100\n", + "wh1=wh*load/100\n", + "cu_loss2=cu_loss1\n", + "we2=(we1*(50.0/25.0)**2)\n", + "wh2=(wh1*(50.0/25))\n", + "e1=load*100/(load+cu_loss1+we1+wh1)\n", + "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", + "\n", + "#result\n", + "print \"full load efficiency in first case=\",e1,\"%\"\n", + "print \"full load efficiency in second case=\",e2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "20.47 0.06 0.05\n", + "full load efficiency in first case= 97.4658869396 %\n", + "full load efficiency in second case= 97.7039570103 %\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.72, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=300#KVA\n", + "r=1.5#%\n", + "load1=173.2#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss=r*load*1000/100\n", + "iron_loss=(load1/load)**2*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.5610105096 %\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.73, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "v1=2300#V\n", + "v2=230.0#V\n", + "f=50#Hz\n", + "phim=1.2#Wb/m2\n", + "a=0.04#m2\n", + "l=2.5#m\n", + "bm=1200\n", + "inpt=1200#W\n", + "pi=400#W\n", + "efficiency=0.75\n", + "pf=0.8\n", + "f2=100#Hz\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*phim*a)\n", + "k=v2/v1\n", + "n2=k*n1\n", + "i=1989/n1\n", + "cu_loss=efficiency**2*inpt\n", + "total_loss=pi+cu_loss\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"a)n1=\",round(n1)\n", + "print \" n2=\",round(n2)\n", + "print \"b)magnetising current=\",i,\"A\"\n", + "print \"c)efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.00643416423287\n", + "a)n1= 216.0\n", + " n2= 22.0\n", + "b)magnetising current= 9.21512347826 A\n", + "c)efficiency= 98.2398690135 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.74, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.8\n", + "x=5.4\n", + "\n", + "#calculation\n", + "pf=r/x\n", + "phi=math.atan(pf)\n", + "phi2=math.atan(x/r)\n", + "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", + "efficiency=100/(100+r*2)\n", + "\n", + "#result\n", + "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", + "print \" ii)regulation=\",regn,\"%\"\n", + "print \"b)efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)phi= 18.4349488229 degrees\n", + " ii)regulation= 5.6920997883 %\n", + "b)efficiency= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.75, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "vo=250.0#V\n", + "io=3.0#A\n", + "wo=200.0#W\n", + "vsc=15.0#V\n", + "isc=30.0#A\n", + "wsc=300.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "cu_loss=(i/isc)**2*wsc\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+wo)\n", + "z=vsc/isc\n", + "r=wsc/isc**2\n", + "x=(z**2-r**2)**0.5\n", + "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.6030534351 %\n", + "regulation= 1.72239475667 %\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.76, Page Number:1177" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40.0#kVA\n", + "loss=400.0#W\n", + "cu_loss=800.0#W\n", + "\n", + "#calculation\n", + "x=(loss/cu_loss)**0.5\n", + "output=load*x*1\n", + "efficiency=output/(output+load*2/100)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.2493723732 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.77, Page Number:1178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#kVA\n", + "v1=500#V\n", + "v2=250#V\n", + "vsc=60#V\n", + "isc=20#A\n", + "wsc=150#W\n", + "per=1.2\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=load*1000/v1\n", + "cu_loss=per**2*wsc\n", + "output=per*load*1.0\n", + "efficiency=output*100/(output+cu_loss*2/1000)\n", + "output=load*1000*pf\n", + "e2=output*100/(output+cu_loss+wsc)\n", + "\n", + "#result\n", + "print \"maximum efficiency=\",efficiency,\"%\"\n", + "print \"full-load efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum efficiency= 96.5250965251 %\n", + "full-load efficiency= 95.6251494143 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.78, Page Number:1181" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#kVA\n", + "cu_loss=4.5#kW\n", + "iron_loss=3.5#kW\n", + "t1=6.0#hrs\n", + "t2=10.0#hrs\n", + "t3=4.0#hrs\n", + "t4=4.0#hrs\n", + "load1_=400.0#kW\n", + "load2_=300.0#kW\n", + "load3_=100.0#kW\n", + "pf1=0.8\n", + "pf2=0.75\n", + "pf3=0.8\n", + "\n", + "#calculations\n", + "load1=load1_/pf1\n", + "load2=load2_/pf2\n", + "load3=load3_/pf3\n", + "wc1=cu_loss\n", + "wc2=cu_loss*(load2/load1)**2\n", + "wc3=cu_loss*(load3/load1)**2\n", + "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", + "iron_loss=24*iron_loss\n", + "total_loss=twc+iron_loss\n", + "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.6 %\n" + ] + } + ], + "prompt_number": 86 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.79, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "loss=3.0#kW\n", + "tf=3.0#hrs\n", + "th=4.0#hrs\n", + "\n", + "#calculation\n", + "iron_loss=loss*24/2\n", + "wcf=loss*tf/2\n", + "wch=loss/8\n", + "wch=wch*4\n", + "total_loss=iron_loss+wch+wcf\n", + "output=load*tf+load*th/2\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.2509225092 %\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.80, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#KW\n", + "efficiency=0.98\n", + "tf=4.0#hrs\n", + "th=6.0#hrs\n", + "t10=14.0#hrs\n", + "\n", + "#calculations\n", + "#1st transformer\n", + "inpt=load/efficiency\n", + "tloss=inpt-load\n", + "y=tloss/2\n", + "x=y\n", + "iron_loss=x*24\n", + "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", + "loss=iron_loss+cu_loss\n", + "output=tf*load+th*load/2+t10*10\n", + "e1=output/(output+loss)\n", + "#2nd transformer\n", + "y=tloss/(1+1.0/4)\n", + "x=(tloss-y)\n", + "iron_loss=x*24\n", + "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", + "loss=iron_loss+wc\n", + "e2=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", + "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.408163265306 1.63265306122\n", + "efficiency of forst transformer= 96.5245532574 %\n", + "efficiency ofsecond transformer= 97.7876610788 %\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.81, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "efficiency=0.95\n", + "nl=10.0#hrs\n", + "ql=7.0#hrs\n", + "hl=5.0#hrs\n", + "fl=2.0#hrs\n", + "\n", + "#calculations\n", + "inpt=load/efficiency\n", + "loss=inpt-load\n", + "wc_fl=loss/2\n", + "iron_loss=loss/2\n", + "wc_fl_4=(1.0/4)**2*wc_fl\n", + "wc_fl_2=(1.0/2)**2*wc_fl\n", + "wc_ql=ql*wc_fl_4\n", + "wc_hl=hl*wc_fl_2\n", + "wc_fl_2=fl*wc_fl\n", + "wc=wc_ql+wc_hl+wc_fl_2\n", + "wh=wc\n", + "loss=wh+24*iron_loss\n", + "output=load*1\n", + "half_output=(output/2)\n", + "q_load=(load/4)\n", + "output=ql*q_load+hl*half_output+fl*output\n", + "e=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 89.5592740985 %\n" + ] + } + ], + "prompt_number": 115 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.82, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.98\n", + "load=15#kVA\n", + "t1=12.0#hrs\n", + "t2=6.0#hrs\n", + "t3=6.0#hrs\n", + "pf1=0.5\n", + "pf2=0.8\n", + "k1=2#kW\n", + "k2=12#kW\n", + "\n", + "#calculations\n", + "output=load*1\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "wc=loss/2\n", + "wi=loss/2\n", + "w1=k1/pf1\n", + "w2=k2/pf2\n", + "wc1=wc*(4/load)\n", + "wc2=wc\n", + "wc12=t1*wc1\n", + "wc6=t2*wc2\n", + "wc=(wc12+wc6)\n", + "wi=24*wi\n", + "output=(k1*t1)+(t2*k2)\n", + "inpt=output+wc+wi\n", + "e=output*100/inpt\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.918367346939 3.67346938776\n", + "efficiency= 95.4351795496 %\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.83, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=150.0#KVA\n", + "l1_=100.0#kVA\n", + "t=3.0#hrs\n", + "loss=1.0#KW\n", + "\n", + "#calculations\n", + "l1=l1_/2\n", + "l2=l1_\n", + "output=load*1\n", + "loss=loss*2\n", + "e1=output/(output+loss)\n", + "wc1=t*(1.0/3)**2*1\n", + "wc2=8*(2.0/3)**2*1\n", + "wc=wc1+wc2\n", + "wi=24*1\n", + "loss=wc+wi\n", + "output=3*(l1*1)+8*(l2*1)\n", + "e2=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"ordinary efficiency=\",e1*100,\"%\"\n", + "print \"all day efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ordinary efficiency= 98.6842105263 %\n", + "all day efficiency= 97.1480513578 %\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.84, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50#KVA\n", + "efficiency=0.94#%\n", + "nl=10\n", + "hl=5.0\n", + "ql=6.0\n", + "fl=3.0\n", + "\n", + "#calculations\n", + "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", + "wch=(0.5)**2*pi\n", + "eh=wch*hl/1000\n", + "wcq=(0.25)**2*pi\n", + "eq=ql*wcq/1000\n", + "e3=pi*3/1000\n", + "e2=pi*24/1000\n", + "e=25*hl+12.5*ql+50*fl\n", + "efficiency=e/(e+e2+eh+eq+e3)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.4557217274 %\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.85, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "t1=7.0#hrs\n", + "t2=4.0#hrs\n", + "t3=8.0#hrs\n", + "t4=5.0#hrs\n", + "k1=3.0#kW\n", + "k2=8.0#kW\n", + "pf1=0.6\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "x1=k1/(pf1*load)\n", + "x2=k2/(pf2*load)\n", + "x3=load/(1*load)\n", + "pc1=(0.5)**2*0.1\n", + "pc2=pc3=0.10\n", + "o1=k1*t1\n", + "o2=k2*t2\n", + "o3=k2*load\n", + "output=o1+o2+o3\n", + "wc1=pc1*t1\n", + "wc2=pc2*t2\n", + "wc3=pc3*t3\n", + "cu_loss=wc1+wc2+wc3\n", + "loss=400.0*24/10000\n", + "efficiency=output/(output+loss+cu_loss)\n", + "\n", + "#result\n", + "print \"efficency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficency= 98.27465179 %\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.86, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=.98\n", + "load=15.0#kVA\n", + "t1=12.0\n", + "t2=6.0\n", + "t3=6.0\n", + "pf1=0.8\n", + "pf2=0.8\n", + "pf3=0.9\n", + "k1=2.0\n", + "k2=12.0\n", + "k3=18.0\n", + "#calculations\n", + "output=load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "cu_loss=loss/2\n", + "x1=k1/(0.5*load)\n", + "x2=k2/(pf2*load)\n", + "x3=k3/(pf3*load)\n", + "wc1=0.131\n", + "wc2=0.918\n", + "wc3=1.632\n", + "o1=t1*k1\n", + "o2=t2*k2\n", + "o3=t3*k3\n", + "output=o1+o2+o3\n", + "loss=wc1+wc2+wc3+0.153*24\n", + "efficiency=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.9798386522 %\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.87, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.0#kW\n", + "v1=115.0#V\n", + "v2=230.0#V\n", + "\n", + "#calculation\n", + "k=v1/v2\n", + "power=load*(1-k)\n", + "power2=k*load\n", + "\n", + "#result\n", + "print \"a)power transferred inductively=\",power,\"kW\"\n", + "print \"b)power transferred conductively=\",power2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)power transferred inductively= 1.5 kW\n", + "b)power transferred conductively= 1.5 kW\n" + ] + } + ], + "prompt_number": 145 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.88, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=500.0#V\n", + "v2=400.0#V\n", + "i=100.0#A\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "i1=k*i\n", + "saving=k*100\n", + "\n", + "#result\n", + "print \"economy of cu=\",saving" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "economy of cu= 80.0\n" + ] + } + ], + "prompt_number": 147 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.89, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#KVA\n", + "f=50.0#Hz\n", + "v1=6600.0#V\n", + "v2=5000.0#V\n", + "e=8.0#V\n", + "phim1=1.3#Wb/m2\n", + "\n", + "#calculations\n", + "phim=e/(4.44*f)\n", + "area=phim/phim1\n", + "n1=v1/e\n", + "n2=v2/e\n", + "\n", + "#result\n", + "print \"core area=\",area*10000,\"m2\"\n", + "print \"number of turns on the hv side=\",n1\n", + "print \"number of turns on the lv side=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core area= 277.2002772 m2\n", + "number of turns on the hv side= 825.0\n", + "number of turns on the lv side= 625.0\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.90, Page Number:1189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2640*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i1_-i2\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 219.12 kVA\n", + "iv)per cent increase in kVA= 1095.6 %\n", + "v)I1= 91.3 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.91, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2160*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i2-i1_\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 179.28 kVA\n", + "iv)per cent increase in kVA= 896.4 %\n", + "v)I1= 74.7 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 160 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.92, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=110.0#V\n", + "v2=110.0#V\n", + "f=50.0#Hz\n", + "efficiency=0.95\n", + "iron_loss=50.0#W\n", + "v=220.0#V\n", + "\n", + "#calculations\n", + "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", + "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", + "i2=(load*1000+cu_loss/4+iron_loss)/v\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"current drawn on hv side=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.9760216579 %\n", + "current drawn on hv side= 23.1967703349 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.93, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500#V\n", + "v2=2300#V\n", + "\n", + "#calculations\n", + "kva=(v1+v2)*50*0.001\n", + "\n", + "#result\n", + "print \"voltage output=\",v1+v2,\"V\"\n", + "print \"kVA rating of auto transformer=\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage output= 13800 V\n", + "kVA rating of auto transformer= 690.0 kVA\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.94, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500.0#V\n", + "v2=2300.0#V\n", + "load=100.0#KVA\n", + "\n", + "#calculations\n", + "i1=load*100/v1\n", + "i2=load*100/v2\n", + "kva1=(v1+v2)*i1/(100)\n", + "kva2=(v1+v2)*i2/(100)\n", + "#result\n", + "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", + "print \"kVA rating in first case=\",kva1\n", + "print \"kVA rating in second case=\",kva2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage ratios= 1.2 or 6.0\n", + "kVA rating in first case= 120.0\n", + "kVA rating in second case= 600.0\n" + ] + } + ], + "prompt_number": 167 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.95, Page Number:1192" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2400.0#v\n", + "v2=240.0#V\n", + "load=50.0#kVA\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "output=2640*i2\n", + "i=i2*2640/v1\n", + "k=2640/v1\n", + "poweri=v1*i1*0.001\n", + "power=output/1000-poweri\n", + "\n", + "#result\n", + "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", + "print \"inductively transferred powers=\",poweri,\"kW\"\n", + "print \"conductively transferred powers=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rating of the auto-transformer= 550.0 kVA\n", + "inductively transferred powers= 50.0 kW\n", + "conductively transferred powers= 500.0 kW\n" + ] + } + ], + "prompt_number": 169 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.96, Page Number:1196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "za=complex(0.5,3)\n", + "zb=complex(0.,10)\n", + "load=100#KW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", + "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "96.082805253\n", + "SA= 74.5937961595 kW\n", + "SB= 25.4062038405 kW\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.97, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r1=0.005#ohm\n", + "r2=0.01#ohm\n", + "x1=0.05#ohm\n", + "x2=0.04#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "za=complex(r1,x1)\n", + "zb=complex(r2,x2)\n", + "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", + "\n", + "#result\n", + "print \"load of B=\",abs(za/zb)\n", + "print \"pf of B=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load of B= 1.21872643265\n", + "pf of B= 0.613584256393\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.98, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#kVA\n", + "za=complex(1,6)\n", + "zb=complex(1.2,4.8)\n", + "load1=500#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 224.451917244 -39.3923099293\n", + "SB= 275.942423833 -34.8183886694\n" + ] + } + ], + "prompt_number": 205 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.99, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "load=100.0#KW\n", + "r1=0.5\n", + "x1=8.0\n", + "r2=0.75\n", + "x2=4.0\n", + "load1=180.0#kW\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "load=load1/pf\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "z1=complex(r1,x1)\n", + "z2=complex(r2,x2)\n", + "s1=s*z2/(z1+z2)\n", + "s2=s*z1/(z1+z2)\n", + "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", + "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", + "\n", + "#result\n", + "print \"kW1=\",kw1,\"kW\"\n", + "print \"kW2=\",kw2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(1.25+12j)\n", + "kW1= 58.119626171 kW\n", + "kW2= 121.880373829 kW\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.100, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kW\n", + "pf=0.85\n", + "za=complex(1,5)\n", + "zb=complex(2,6)\n", + "\n", + "#calculations\n", + "s=load/pf*complex(0.85,-0.527)\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", + "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA for A= 130.53263665 0.819364787986 lag\n", + "kVA for B= 105.238776124 0.884143252833 lag\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.101, Page Number:1198" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=110.0#V\n", + "load=125.0#kVA\n", + "pf=0.8\n", + "za=complex(0.9,10)\n", + "zb=(100/50)*complex(1.0,5)\n", + "\n", + "#calculation\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 63.0780848499 -39.929442891 degrees\n", + "SB= 62.1031510961 -33.7622749748 degrees\n" + ] + } + ], + "prompt_number": 218 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.102, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=500#kVA\n", + "za=complex(1,5)\n", + "load2=250#kVA\n", + "zb=complex(1.5,4)\n", + "v2=400#V\n", + "load=750#kVA\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zb=(500/load2)*zb\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 471.125736359 -40.3232138964 degrees\n", + "SB= 281.165527855 -31.0771011508 degrees\n" + ] + } + ], + "prompt_number": 219 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.103, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=1000#A\n", + "pf=0.8\n", + "za=complex(2,3)\n", + "zb=complex(2.5,5)\n", + "\n", + "#calculations\n", + "i=i*complex(pf,-math.sin(math.acos(pf)))\n", + "ratio=zb/za\n", + "ib=i/(1+ratio)\n", + "ia=i-ib\n", + "ratio=ia.real/ib.real\n", + "\n", + "#result\n", + "print \"IA=\",ia\n", + "print \"IB=\",ib\n", + "print \"ratio of output=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= (504.451038576-341.246290801j)\n", + "IB= (295.548961424-258.753709199j)\n", + "ratio of output= 1.70682730924\n" + ] + } + ], + "prompt_number": 220 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.104, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "v2=500.0#V\n", + "load=100.0#kVA\n", + "za=complex(1.0,5.0)\n", + "zb=complex(2.0,2.0)\n", + "load1=300.0#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "zb=(100.0/250)*zb\n", + "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "zab=za*zb/(za+zb)\n", + "drop=zab.real*240/100+zab.imag*180/100\n", + "v2=v2-v2*drop/100\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "print \"secondary voltage=\",v2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 55.8895719399 -64.6284382469 degrees\n", + "SB= 251.890896741 -30.9383707209 degrees\n", + "secondary voltage= 486.177874187 V\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.105, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n11=5000.0\n", + "n12=440.0\n", + "load1=200#kVA\n", + "n21=5000.0\n", + "n22=480.0\n", + "load2=350#kVA\n", + "x=3.5\n", + "\n", + "#calculation\n", + "i1=load1*1000/n12\n", + "i2=load2*1000/n22\n", + "x1=x*n12/(100*i1)\n", + "x2=x*n22/(100*i2)\n", + "ic=(n22-n12)/0.057\n", + "\n", + "#result\n", + "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.106, Page Number:1203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "ea=6600#V\n", + "eb=6400#V\n", + "za=complex(0.3,3)\n", + "zb=complex(0.2,1)\n", + "zl=complex(8.0,6.0)\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "\n", + "#result\n", + "print \"IA=\",abs(ia),\"A\"\n", + "print \"IB=\",abs(ib),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 195.492387533 A\n", + "IB= 422.567795916 A\n" + ] + } + ], + "prompt_number": 227 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.107, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=100.0#kVA\n", + "load2=50.0#kVA\n", + "v1=1000.0#V\n", + "v2=950.0#V\n", + "r1=2.0\n", + "r2=2.5\n", + "x1=8.0\n", + "x2=6.0\n", + "\n", + "#calculations\n", + "ia=load1*1000/v1\n", + "ra=v1*r1/(100*ia)\n", + "xa=v1*x1/(100*ia)\n", + "ib=load2*1000/v2\n", + "rb=v2*r2/(100*ib)\n", + "xb=v2*x2/(100*ib)\n", + "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", + "ic=(v1-v2)/z\n", + "alpha=math.atan((xa+xb)/(ra+rb))\n", + "\n", + "#result\n", + "print \"no load circulating current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load circulating current= 25.0948635944 A\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 32.108, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=1000.0#KVA\n", + "load2=500.0#kVA\n", + "v1=500.0#V\n", + "v2=510.0#V\n", + "z1=3.0\n", + "z2=5.0\n", + "r=0.4\n", + "\n", + "#calculation\n", + "ia=load1*1000/480\n", + "ib=load2*1000/480\n", + "za=z1*v1/(100*ia)\n", + "zb=z2*v2/(100*ib)\n", + "ic=(v2-v1)/(za+zb)\n", + "\n", + "#result\n", + "print \"cross current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "cross current= 315.656565657 A\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.109, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "loada=500.0#KVA\n", + "loadb=250.0#kVA\n", + "load=750.0#KVA\n", + "pf=0.8\n", + "v1=405.0#V\n", + "v2=415.0#V\n", + "ra=1.0\n", + "rb=1.5\n", + "xa=5.0\n", + "xb=4.0\n", + "\n", + "#calculations\n", + "ia=loada*1000/400\n", + "ra=400/(100*ia)\n", + "xa=xa*400/(100*ia)\n", + "ib=loadb*1000/400\n", + "rb=rb*400/(100*ib)\n", + "xb=xb*400/(100*ib)\n", + "za=complex(ra,xa)\n", + "zb=complex(rb,xb)\n", + "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", + "ic=(v1-v2)/(za+zb)\n", + "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "sa=400*ia/1000\n", + "sb=400*ib/1000\n", + "pf1=math.cos(math.atan(sa.imag/sa.real))\n", + "pf2=math.cos(math.atan(sb.imag/sb.real))\n", + "\n", + "#result\n", + "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", + "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", + "print \" SB=\",abs(sb),pf2,\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross current= -229.754569404 -72.8972710309\n", + "b)SA= 387.844943528 0.820048560714 lag\n", + " SB= 351.964386212 0.738709225528 lag\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.110, Page Number:1205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zl=complex(2.0,1.5)\n", + "za=complex(0.15,0.5)\n", + "zb=complex(0.1,0.6)\n", + "ea=207#V\n", + "eb=205#V\n", + "\n", + "#calculations\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "v2_=(ia+ib)*zl\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", + "pfa=math.cos(angle)\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", + "pfb=math.cos(angle)\n", + "pa=abs(v2_)*abs(ia)*pfa\n", + "pb=abs(v2_)*abs(ib)*pfb\n", + "\n", + "#result\n", + "print \"power output:\"\n", + "print \" A:\",pa,\"W\"\n", + "print \" B:\",pb,\"W\"\n", + "print \"power factor:\"\n", + "print \" A:\",pfa\n", + "print \" B:\",pfb\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output:\n", + " A: 6535.37583042 W\n", + " B: 4925.36941503 W\n", + "power factor:\n", + " A: 0.818428780129\n", + " B: 0.775705655277\n" + ] + } + ], + "prompt_number": 248 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.111, Page Number:1206" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=200.0#A\n", + "ib=600.0#A\n", + "ra=0.02#ohm\n", + "rb=0.025#ohm\n", + "xa=0.05#ohm\n", + "xb=0.06#ohm\n", + "ea=245.0#V\n", + "eb=240.0#V\n", + "zl=complex(0.25,0.1)\n", + "\n", + "#calculation\n", + "za=(ea/ia)*complex(ra,xa)\n", + "zb=(eb/ib)*complex(rb,xb)\n", + "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", + "v2=i*zl\n", + "\n", + "#result\n", + "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 230.0 -3.0 degrees\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_2.ipynb new file mode 100644 index 00000000..a29de087 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_2.ipynb @@ -0,0 +1,5311 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.1, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=3000.0#V\n", + "f=50.0#Hz\n", + "phi=1.2#Wb-m2\n", + "e=8.0#V\n", + "\n", + "#calculations\n", + "n1=v1/e\n", + "n2=v2/e\n", + "a=v2/(4.44*f*n2*phi)\n", + "\n", + "#result\n", + "print \"primary turns=\",n1\n", + "print \"secondary turns=\",n2\n", + "print \"area of core=\",round(a,2),\"m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary turns= 31.25\n", + "secondary turns= 375.0\n", + "area of core= 0.03 m2\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.2, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#KVA\n", + "v1=11000#V\n", + "v2=550#V\n", + "f=50#Hz\n", + "bm=1.3#Tesla\n", + "sf=0.9\n", + "per=10#%\n", + "a=20*20*sf/10000#m2\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*bm*a)\n", + "n2=v2/(4.44*f*bm*a)\n", + "e_per_turn=v1/n1\n", + "\n", + "#result\n", + "print \"HV TURNS=\",round(n1)\n", + "print \"LV TURNS=\",round(n2)\n", + "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV TURNS= 1059.0\n", + "LV TURNS= 53.0\n", + "EMF per turns= 10.4 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.3, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=400.0\n", + "n2=1000.0\n", + "a=60.0/10000.0#cm2\n", + "f=50.0#Hz\n", + "e1=520.0#V\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "e2=k*e1\n", + "bm=e1/(4.44*f*n1*a)\n", + "\n", + "#result\n", + "print \"peak value of flux density=\",bm,\"WB/m2\"\n", + "print \"voltage induced in the secondary winding=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak value of flux density= 0.975975975976 WB/m2\n", + "voltage induced in the secondary winding= 1300.0 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.4, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "n1=500.0\n", + "n2=50.0\n", + "v=3000.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "i1=load*1000/v\n", + "i2=i1/k\n", + "e1=v/n1\n", + "e2=e1*n2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", + "print \"secondary emf=\",e2,\"V\"\n", + "print \"flux=\",phim*1000,\"mWB\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", + "secondary emf= 300.0 V\n", + "flux= 27.027027027 mWB\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.5, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11000#V\n", + "v2=550#V\n", + "load=300#kVA\n", + "phim=0.05#Wb\n", + "\n", + "#calculation\n", + "e=4.44*f*phim\n", + "e2=v2/1.732\n", + "t1=v1/e\n", + "t2=e2/e\n", + "output=load/3\n", + "HV=100*1000/v1\n", + "LV=100*1000/e2\n", + "\n", + "#result\n", + "print \"HV turns=\",t1\n", + "print \"LV turns=\",t2\n", + "print \"emf per turn=\",e2\n", + "print \"full load HV=\",HV\n", + "print \"full load LV=\",LV" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 990.990990991\n", + "LV turns= 28.6082849593\n", + "emf per turn= 317.551963048\n", + "full load HV= 9\n", + "full load LV= 314.909090909\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.6, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=1200.0\n", + "a=80.0/10000.0#m2\n", + "f=50.0#Hz\n", + "v=500.0#V\n", + "\n", + "#calculation\n", + "phim=n1/(4.44*f*n1)\n", + "bm=phim/a\n", + "v2=n2*v/n1\n", + "\n", + "#result\n", + "print \"peak flux-density=\",bm,\"Wb\"\n", + "print \"voltage induced in the secondary=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak flux-density= 0.563063063063 Wb\n", + "voltage induced in the secondary= 1200.0 V\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.7, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varible declaration\n", + "load=25.0#kVA\n", + "n1=250.0\n", + "n2=40.0\n", + "v=1500.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "v2=n2*v/n1\n", + "i1=load*1000/v\n", + "i2=load*1000/v2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", + "print \"ii)seconary emf=\",v2,\"V\"\n", + "print \"iii)maximum flux=\",phim*1000,\"mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", + "ii)seconary emf= 240.0 V\n", + "iii)maximum flux= 27.027027027 mWb\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.8, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "a=20.0*20.0/10000#m2\n", + "phim=1.0#Wbm2\n", + "v1=3000.0#V\n", + "v2=220.0#V\n", + "\n", + "#calculation\n", + "t2=v2/(4.44*f*phim*a)\n", + "t1=t2*v1/v2\n", + "n1=t1/2\n", + "n2=t2/2\n", + "\n", + "#result\n", + "print \"HV turns=\",n1\n", + "print \"LV turns=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 168.918918919\n", + "LV turns= 12.3873873874\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.9, Page Number:1126" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=200.0#V\n", + "i1=0.6#A\n", + "p=400.0#W\n", + "v3=250.0#V\n", + "i0=0.5#A\n", + "pf=0.3\n", + "\n", + "#calculation\n", + "il=p/v1\n", + "imu=(i1**2-il**2)**0.5\n", + "iw=i0*pf\n", + "imu2=(i0**2-iw**2)**0.5\n", + "\n", + "#result\n", + "print \"magnetising currents=\",imu,\"A\"\n", + "print \"iron loss current=\",il,\"A\"\n", + "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", + "print \"working components of no-load primary current=\",iw,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "magnetising currents= 0.571788552492 A\n", + "iron loss current= 0.181818181818 A\n", + "magnetising components of no load primary current= 0.476969600708 A\n", + "working components of no-load primary current= 0.15 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.10, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=40.0\n", + "l=150.0#cm\n", + "airgap=0.1#mm\n", + "e1=3000.0#V\n", + "phim=1.2#Wb/m2\n", + "f=50.0#Hz\n", + "d=7.8#grma/cm3\n", + "loss=2.0#watt/kg\n", + "\n", + "#calculation\n", + "a=e1/(4.44*f*n1*phim)\n", + "k=n2/n1\n", + "v2=k*e1\n", + "iron=l*5\n", + "air=phim*airgap/(1000*4*3.14*10**(-7))\n", + "bmax=iron+air\n", + "imu=bmax/(n1*2**0.5)\n", + "volume=l*a\n", + "im=volume*d*10\n", + "total_i=im*2\n", + "iw=total_i/(e1)\n", + "i0=(imu**2+iw**2)**0.5\n", + "pf=iw/i0\n", + "\n", + "#result\n", + "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", + "print \"b)no load secondary voltage=\",v2,\"V\"\n", + "print \"c)no load current=\",imu,\"A\"\n", + "print \"d)power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross sectional area= 225.225225225 cm2\n", + "b)no load secondary voltage= 240.0 V\n", + "c)no load current= 1.19577611723 A\n", + "d)power factor= 0.145353269536\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.11, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "n1=1000\n", + "n2=200\n", + "i=3#A\n", + "pf=0.2\n", + "i2=280#A\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "phi1=math.acos(pf2)\n", + "i2_=i2/5\n", + "phi2=math.acos(pf)\n", + "sinphi=math.sin(phi2)\n", + "sinphi2=math.sin(math.acos(phi1))\n", + "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", + "\n", + "#result\n", + "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.12, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=440.0#v\n", + "v2=110.0#V\n", + "i0=5.0#A\n", + "pf=0.2\n", + "i2=120.0#A\n", + "pf2=0.8\n", + "\n", + "#calculation\n", + "phi2=math.acos(pf2)\n", + "phi0=math.acos(pf)\n", + "k=v2/v1\n", + "i2_=k*i2\n", + "angle=phi2-phi0\n", + "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", + "\n", + "#result\n", + "print \"current taken by the primary=\",i1,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the primary= 33.9022604184 A\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.13, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=800.0\n", + "n2=200.0\n", + "pf=0.8\n", + "i1=25.0#A\n", + "pf2=0.707\n", + "i2=80.0#A\n", + "#calculations\n", + "k=n2/n1\n", + "i2_=i2*k\n", + "phi2=math.acos(pf)\n", + "phi1=math.acos(pf2)\n", + "i0pf2=i1*pf2-i2_*pf\n", + "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", + "phi0=math.atan(i0sinphi/i0pf2)\n", + "i0=i0sinphi/math.sin(phi0)\n", + "\n", + "#result\n", + "print \"no load current=\",i0,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load current= 5.91703050525 A\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.14, Page Number:1131" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=10#A\n", + "pf=0.2\n", + "ratio=4\n", + "i2=200#A\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "phi0=math.acos(pf)\n", + "phil=math.acos(pf)\n", + "i0=complex(2,-9.8)\n", + "i2_=complex(42.5,-26.35)\n", + "i1=i0+i2_\n", + "phi=math.acos(i1.real/57.333)\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"power factor=\",math.degrees(phi),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= (44.5-36.15j) A\n", + "power factor= 39.0890154959 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.15, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable decaration\n", + "load=30.0#KVA\n", + "v1=2400.0#V\n", + "v2=120.0#V\n", + "f=50.0#Hz\n", + "r1=0.1#ohm\n", + "x1=0.22#ohm\n", + "r2=0.034#ohm\n", + "x2=0.012#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "r02=r2+r1*k**2\n", + "x02=x2+x1*k**2\n", + "z02=(r02**2+x02**2)**0.5\n", + "\n", + "#result\n", + "print \"high voltage side:\"\n", + "print \"equivalent winding resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"low voltage side:\"\n", + "print \"equivalent winding resistance=\",r02,\"ohm\"\n", + "print \"reactance=\",x02,\"ohm\"\n", + "print \"impedence=\",z02,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "high voltage side:\n", + "equivalent winding resistance= 13.7 ohm\n", + "reactance= 5.02 ohm\n", + "impedence= 14.5907642021 ohm\n", + "low voltage side:\n", + "equivalent winding resistance= 0.03425 ohm\n", + "reactance= 0.01255 ohm\n", + "impedence= 0.0364769105051 ohm\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.16, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=4400.0#V\n", + "v2=220.0#V\n", + "r1=3.45#ohm\n", + "r2=0.009#ohm\n", + "x1=5.2#ohm\n", + "x2=0.015#ohm\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "r02=r2+k**2*r1\n", + "x01=x1+x2/k**2\n", + "x02=x2+x1*k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "z02=(r02**2+x02**2)**0.5\n", + "cu_loss=i1**2*r01\n", + "\n", + "#result\n", + "print \"i)resistance=\"\n", + "print \"primary=\",r01,\"ohm\"\n", + "print \"secondary=\",r02,\"ohm\"\n", + "print \"iii)reactance=\"\n", + "print \"primary=\",x01,\"ohm\"\n", + "print \"secondary=\",x02,\"ohm\"\n", + "print \"iv)impedence=\"\n", + "print \"primary=\",z01,\"ohm\"\n", + "print \"secondary=\",z02,\"ohm\"\n", + "print \"v)copper loss=\",cu_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance=\n", + "primary= 7.05 ohm\n", + "secondary= 0.017625 ohm\n", + "reactance=\n", + "primary= 11.2 ohm\n", + "secondary= 0.028 ohm\n", + "impedence=\n", + "primary= 13.2341414531 ohm\n", + "secondary= 0.0330853536327 ohm\n", + "copper loss= 910.382231405 W\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.17, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=10.0\n", + "load=50.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "f=50.0#Hz\n", + "v=240.0#V\n", + "\n", + "#calculation\n", + "i2=load*1000/v\n", + "z2=v/(i2)\n", + "k=v2/v1\n", + "z2_=z2/k**2\n", + "i2_=k*i2\n", + "\n", + "#result\n", + "print \"a)load impedence=\",z2,\"ohm\"\n", + "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", + "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)load impedence= 1.152 ohm\n", + "b)impedence referred to high tension side= 115.2 ohm\n", + "c)the value of current referred to the high tension side= 20.8333333333 A\n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.18, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "v1=11000.0#V\n", + "v2=317.0#V\n", + "load2=0.62#kW\n", + "lvload=0.48#kW\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "r1=load2*1000/i**2\n", + "r2=lvload*1000/i2**2\n", + "r2_=r2*k**2\n", + "x01=4*v1/(i1*100)\n", + "x2_=x01*r2_/(r1+r2_)\n", + "x1=x01-x2_\n", + "x2=x2_*10/k**2\n", + "\n", + "#result\n", + "print \"i)r1=\",r1,\"ohm\"\n", + "print \"r2=\",r2,\"ohm\"\n", + "print \"r2_=\",r2_,\"ohm\"\n", + "print \"ii)reactance=\",x01,\"ohm\"\n", + "print \"x1=\",x1,\"ohm\"\n", + "print \"x2=\",x2,\"ohm\"\n", + "print \"x2_=\",x2_,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)r1= 7.502 ohm\n", + "r2= 0.004823472 ohm\n", + "r2_= 5.808 ohm\n", + "ii)reactance= 48.4 ohm\n", + "x1= 27.28 ohm\n", + "x2= 0.175398981818 ohm\n", + "x2_= 21.12 ohm\n" + ] + } + ], + "prompt_number": 76 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.19, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "k=19.5\n", + "r1=25.0#ohm\n", + "x1=100.0#ohm\n", + "r2=0.06#ohm\n", + "x2=0.25#ohm\n", + "i=1.25#A\n", + "angle=30#degrees\n", + "i2=200#A\n", + "v=50#V\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "v2=complex(500,0)\n", + "i2=i2*complex(0.8,-0.6)\n", + "z2=complex(r2,x2)\n", + "e2=v2+i2*z2\n", + "beta=math.atan(e2.imag/e2.real)\n", + "e1=e2*k\n", + "i2_=i2/k\n", + "angle=beta+math.radians(90)+math.radians(angle)\n", + "i0=i*complex(math.cos(angle),math.sin(angle))\n", + "i1=-i2_+i0\n", + "v2=-e1+i1*complex(r1,x1)\n", + "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", + "pf=math.cos(phi)\n", + "power=abs(v2)*i*math.cos(math.radians(60))\n", + "r02=r2+r1/k**2\n", + "cu_loss=abs(i2)**2*r02\n", + "output=500*abs(i2)*pf2\n", + "loss=cu_loss+power\n", + "inpt=output+loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"primary applied voltage=\",v2,\"V\"\n", + "print \"primary pf=\",pf\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", + "primary pf= 0.698572087114\n", + "efficiency= 86.7261056254 %\n" + ] + } + ], + "prompt_number": 94 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.20, Page Number:1138" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable description\n", + "load=100#KVA\n", + "v1=1100#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "zh=complex(0.1,0.4)\n", + "zl=complex(0.006,0.015)\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "#HV \n", + "r1=zh.real+zl.real*k**2\n", + "x1=zh.imag+zl.imag*k**2\n", + "z1=(r1**2+x1**2)**0.5\n", + "#LV\n", + "r2=r1/k**2\n", + "x2=x1/k**2\n", + "z2=z1/k**2\n", + "\n", + "#result\n", + "print \"HV:\"\n", + "print \"resistance=\",r1,\"ohm\"\n", + "print \"reactance=\",x1,\"ohm\"\n", + "print \"impedence=\",z1,\"ohm\"\n", + "print \"LV:\"\n", + "print \"resistance=\",r2,\"ohm\"\n", + "print \"reactance=\",x2,\"ohm\"\n", + "print \"impedence=\",z2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV:\n", + "resistance= 0.25 ohm\n", + "reactance= 0.775 ohm\n", + "impedence= 0.814324873745 ohm\n", + "LV:\n", + "resistance= 0.01 ohm\n", + "reactance= 0.031 ohm\n", + "impedence= 0.0325729949498 ohm\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.21, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230#V\n", + "v2=460#V\n", + "r1=0.2#ohm\n", + "x1=0.5#ohm\n", + "r2=0.75#ohm\n", + "x2=1.8#ohm\n", + "i=10#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "x02=x2+k**2*x1\n", + "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "vt2=v2-vd\n", + "\n", + "#result\n", + "print \"secondary terminal voltage=\",vt2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary terminal voltage= 424.8 V\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.22, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.0#%\n", + "x=5.0#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "mu=r*pf+x*math.sin(math.acos(pf))\n", + "mu2=r**2+x*0\n", + "mu3=r*pf-x*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", + "print \"regulation at pf=1:\",mu2,\"%\"\n", + "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=0.8 lag: 3.8 %\n", + "regulation at pf=1: 1.0 %\n", + "regulation at pf=0.8 lead: -2.2 %\n" + ] + } + ], + "prompt_number": 98 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.23, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=5#%\n", + "r=2.5#%\n", + "\n", + "#calculation\n", + "phi=math.atan(x/r)\n", + "cosphi=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "regn=r*cosphi+x*sinphi\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.59016994375 %\n", + "pf= 0.4472135955\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.24, Page Number:1142" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=2.5#%\n", + "x=5#%\n", + "load1=500#KVA\n", + "load2=400#KVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "kw=load2*pf\n", + "kvar=load2*math.sin(math.acos(pf))\n", + "drop=(r*kw/load1)+(x*kvar/load1)\n", + "\n", + "#result\n", + "print \"percentage voltage drop=\",drop,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage voltage drop= 4.0 %\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.26, Page Number:1145" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=600#V\n", + "v2=1080#V\n", + "v=720#V\n", + "load=8#W\n", + "load2=10#kVA\n", + "\n", + "#calculation\n", + "ir2=load*1000/v2\n", + "il2=load*1000/v\n", + "ir2_=ir2*v2/v1\n", + "il2_=il2*v/v1\n", + "ir2=math.sqrt(ir2_**2+il2_**2)\n", + "s=complex(load,load2)\n", + "s=abs(s)\n", + "pf=load/s\n", + "i=s*load2*100/v1\n", + "\n", + "#result\n", + "print \"primary current=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 21.3437474581 A\n", + "power factor= 0.624695047554\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "v1=110#V\n", + "i=0.5#A\n", + "p=30#W\n", + "r=0.6#ohm\n", + "\n", + "#calculation\n", + "ratio=v/v1\n", + "pf=p/(i*v)\n", + "sinphi=math.sqrt(1-pf**2)\n", + "ip=i*sinphi\n", + "iw=i*pf\n", + "cu_loss=i**2*r\n", + "iron_loss=p-cu_loss\n", + "\n", + "#result\n", + "print \"i)turns ratio=\",ratio\n", + "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", + "print \"iii)working component of no-load current=\",iw,\"A\"\n", + "print \"iv)the iron loss=\",iron_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)turns ratio= 2\n", + "ii)magnetising component of no-load current= 0.481045692921 A\n", + "iii)working component of no-load current= 0.136363636364 A\n", + "iv)the iron loss= 29.85 W\n" + ] + } + ], + "prompt_number": 104 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=200.0#V\n", + "v2=1000.0#V\n", + "f=50.0#Hz\n", + "vo=2000.0#V\n", + "io=1.2#A\n", + "po=90.0#W\n", + "vs=50.0#V\n", + "i_s=5.0#A\n", + "ps=110.0#W\n", + "p=3.0#kW\n", + "pf=0.8\n", + "v=200.0#V\n", + "\n", + "#calculation\n", + "r0=v**2/po\n", + "ia0=v/r0\n", + "ip=math.sqrt(io**2-ia0**2)\n", + "xm=v/ip\n", + "z=vs/i_s\n", + "r=ps/25\n", + "x=math.sqrt(z**2-r**2)\n", + "r1=r*(v1/v2)**2\n", + "x1=x*(v1/v2)**2\n", + "i_lv1=load*1000/v\n", + "i_lv=(p*1000/pf)/v\n", + "sinphi=math.sin(math.acos(pf))\n", + "reg=i_lv*(r1*pf+x1*sinphi)/v\n", + "vt=v2-reg*1000/v\n", + "\n", + "#result\n", + "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", + "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", + "print \"output secondary voltage=\",vt,\"V\"\n", + "print \"percentage regulation=\",reg*100,\"%\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "LV crrent at rated load= 25.0 A\n", + "LV current at 3kW at 0.8 lagging pf 18.75 A\n", + "output secondary voltage= 999.832975251 V\n", + "percentage regulation= 3.34049498886 %\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.29, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "loss1=52.0#W\n", + "f1=40.0#Hz\n", + "loss2=90.0#W\n", + "f2=60.0#Hz\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 45.0 W\n", + "eddy current= 25.0 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.30, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "m=10#kg\n", + "f=50.0#Hz\n", + "f1=25.0\n", + "f2=40.0\n", + "f3=50.0\n", + "f4=60.0\n", + "f5=80.0\n", + "l1=18.5/f1\n", + "l2=36.0/f2\n", + "l3=50.0/f3\n", + "l4=66.0/f4\n", + "l5=104.0/f5\n", + "#calculation\n", + "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", + "eddy_loss_per_kg=ans[B]*f**2/m\n", + "\n", + "#result\n", + "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", + "\n", + "#plot\n", + "F=[f1,f2,f3,f4,f5]\n", + "L=[l1,l2,l3,l4,l5]\n", + "a=plot(F,L)\n", + "xlabel(\"f -->\") \n", + "ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n", + "eddy current loss per kg at 50 Hz=" + ] + }, + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " -0.118333333333333 W\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.31, Page Number:1148" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "v1=440#V\n", + "f1=50#Hz\n", + "p1=2500#W\n", + "v2=220#V\n", + "f2=25#Hz\n", + "p2=850#z\n", + "\n", + "#calculation\n", + "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 900.0 W\n", + "eddy current= 1600.0 W\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.32, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "f1=50.0#Hz\n", + "core=1000.0#W\n", + "wh=650.0#W\n", + "we=350.0#W\n", + "v2=2000.0#V\n", + "f2=100.0#Hz\n", + "\n", + "#calculation\n", + "a=wh/f1\n", + "b=we/f1**2\n", + "wh=a*f2\n", + "we=b*f2**2\n", + "new_core=wh+we\n", + "\n", + "#result\n", + "print \"new core loss=\",new_core,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " new core loss= 2700.0 W\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.33, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "phi=1.4#Wb/m2\n", + "we=1000.0#W\n", + "wh=3000.0#W\n", + "per=10.0#%\n", + "\n", + "#calculation\n", + "wh1=wh*1.1**1.6\n", + "we1=we*1.1**2\n", + "wh2=wh*0.9**(-0.6)\n", + "wh3=wh*1.1**1.6*1.1**(-0.6)\n", + "#result\n", + "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", + "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", + "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", + "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", + "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" + ] + } + ], + "prompt_number": 119 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.34, Page Number:1150" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=40.0#Hz\n", + "loss=800.0#W\n", + "wh=600.0#W\n", + "we=loss-wh\n", + "v2=3300.0#V\n", + "f2=60.0#Hz\n", + "\n", + "#calculations\n", + "a=wh/f\n", + "b=we/f**2\n", + "core_loss=a*f2+b*f2**2\n", + "\n", + "#result\n", + "print \"core loss at 60 Hz=\",core_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core loss at 60 Hz= 1350.0 W\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.35, Page Number:1151" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=30.0#KvA\n", + "v1=6000.0#V\n", + "v2=230.0#V\n", + "r1=10.0#ohm\n", + "r2=0.016#ohm\n", + "x01=34.0#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"primary voltage=\",vsc,\"V\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary voltage= 199.519931911 V\n", + "pf= 0.523468222173\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.36, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "f=50.0#Hz\n", + "vo=200.0#V\n", + "io=0.7#A\n", + "po=70.0#W\n", + "vs=15.0#v\n", + "i_s=10.0#A\n", + "ps=85.0#W\n", + "load=5.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cosphi0=po/(vo*io)\n", + "sinphi0=math.sin(math.acos(cosphi0))\n", + "iw=io*cosphi0\n", + "imu=io*sinphi0\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "z02=vs/i_s\n", + "k=v2/v1\n", + "z01=z02/k**2\n", + "r02=ps/i_s**2\n", + "r01=r02/k**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "output=load/pf\n", + "i2=output*1000/v2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "print z02\n", + "#result\n", + "print \"secondary voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1.5\n", + "secondary voltage= 377.788243349 V\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.37, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "k=1.0/6\n", + "r1=0.9#ohm\n", + "x1=5.0#ohm\n", + "r2=0.03#ohm\n", + "x2=0.13#ohm\n", + "vsc=330.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=vsc/z01\n", + "i2=i1/k\n", + "cosphisc=i1**2*r01/(vsc*i1)\n", + "\n", + "#result\n", + "print \"current in low voltage winding=\",i2,\"A\"\n", + "print \"pf=\",round(cosphisc,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in low voltage winding= 200.396236149 A\n", + "pf= 0.2\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.38, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "f=50.0#Hz\n", + "r1=0.2#ohm\n", + "x1=0.4#ohm\n", + "r2=0.5#ohm\n", + "x2=0.1#ohm\n", + "r0=1500.0#ohm\n", + "x0=750.0#ohm\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(iw**2+imu**2)**0.5\n", + "pi=v1*iw\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "power=i1**2*r01\n", + "\n", + "#result\n", + "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" + ] + } + ], + "prompt_number": 140 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.39, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=1000#kVA\n", + "v1=110#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "per1=98.5#%\n", + "pf=0.8\n", + "per2=98.8#%\n", + "\n", + "#calculaions\n", + "output=load*1\n", + "inpt=output*100/per2\n", + "loss=inpt-output\n", + "inpt_half=(load/2)*pf*100/per1\n", + "loss2=inpt_half-400\n", + "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", + "kva=load*(ans[y]/ans[x])*0.5\n", + "output=kva*1\n", + "cu_loss=ans[y]\n", + "total_loss=2*cu_loss\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"full load copper loss=\",cu_loss,\"kW\"\n", + "print \"maximum efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load copper loss= 4.07324441521606 kW\n", + "maximum efficiency= 0.968720013059872 %\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.40, Page Number:1154" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#v\n", + "v2=400.0#V\n", + "r01=0.15#ohm\n", + "x01=0.37#ohm\n", + "r0=600.0#ohm\n", + "x0=300.0#ohm\n", + "i2=10.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(imu**2+iw**2)**0.5\n", + "tantheta=iw/imu\n", + "theta=math.atan(tantheta)\n", + "theta0=math.radians(90)-theta\n", + "angle=theta0-math.acos(pf)\n", + "k=v2/v1\n", + "i2_=i2*k\n", + "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", + "r02=k**2*r01\n", + "x02=x01*k**2\n", + "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)primary current=\",i1,\"A\"\n", + "print \"ii)secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current= 20.6693546639 A\n", + "ii)secondary terminal voltage= 386.32 V\n" + ] + } + ], + "prompt_number": 149 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.43, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "n1=400.0\n", + "n2=80.0\n", + "r1=0.3#ohm\n", + "r2=0.01#ohm\n", + "x1=1.1#ohm\n", + "x2=0.035#ohm\n", + "v1=2200.0#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=complex(r01,x01)\n", + "z02=k**2*z01\n", + "v2=k*v1\n", + "i2=load*1000/v2\n", + "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", + "regn=vd*100/v2\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)equivalent impedence=\",z02,\"ohm\"\n", + "print \"ii)voltage regulation=\",regn,\"%\"\n", + "print \"secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent impedence= (0.022+0.079j) ohm\n", + "ii)voltage regulation= -1.53925619835 %\n", + "secondary terminal voltage= 446.772727273 V\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.44, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "va=450.0#V\n", + "vb=120.0#V\n", + "v1=120.0#V\n", + "i1=4.2#A\n", + "w1=80.0#W\n", + "v2=9.65#V\n", + "i2=22.2#A\n", + "w2=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=vb/va\n", + "i0=i1*k\n", + "cosphi0=w1/(va*i0)\n", + "phi0=math.acos(cosphi0)\n", + "sinphi0=math.sin(phi0)\n", + "iw=i0*cosphi0\n", + "imu=i0*sinphi0\n", + "r0=va/iw\n", + "x0=va/imu\n", + "z01=v2/i2\n", + "r01=vb/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "loss=w1+w2\n", + "output=load*1000*pf\n", + "efficiency=output/(output+loss)\n", + "iron_loss=w1\n", + "cu_loss=(0.5**2)*w2\n", + "total_loss=iron_loss+cu_loss\n", + "output=load*1000*pf/2\n", + "efficiency2=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"i)equivalent circuit constants=\"\n", + "print \"z01=\",z01,\"ohm\"\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r01=\",r01,\"ohm\"\n", + "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", + "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent circuit constants=\n", + "z01= 0.434684684685 ohm\n", + "x01= 0.360090249002 ohm\n", + "r01= 0.243486729973 ohm\n", + "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", + "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.45, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "va=2200.0#V\n", + "vb=220.0#V\n", + "f=50.0#Hz\n", + "v1=220.0#V\n", + "i1=4.2#A\n", + "w1=148.0#W\n", + "v2=86.0#V\n", + "i2=10.5#A\n", + "w2=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "z01=v2/i2\n", + "r01=w2/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",round(pf,1),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 2.94177963326 %\n", + "pf= 0.4 lag\n" + ] + } + ], + "prompt_number": 172 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.46, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=2000.0#V\n", + "v2=400.0#V\n", + "v=60.0#V\n", + "i=4.0#A\n", + "w=100.0#W\n", + "pf=0.8\n", + "v_=400.0#V\n", + "\n", + "#calculations\n", + "z01=v/i\n", + "r01=w/i**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/v1\n", + "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"voltage applied to hv side=\",v1+vd,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage applied to hv side= 2065.90767043 V\n" + ] + } + ], + "prompt_number": 182 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.47, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=500.0#V\n", + "vs=20.0#V\n", + "i_s=12.0#A\n", + "ws=100.0#W\n", + "vo=250.0#V\n", + "io=1.0#A\n", + "wo=80.0#W\n", + "i2=10#A\n", + "v2=500#V\n", + "pg=0.8\n", + "\n", + "#calculation\n", + "cosphi0=wo/(vo*io)\n", + "iw=io*cosphi0\n", + "imu=(1-iw**2)**0.5\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "r02=ws/i_s**2\n", + "z02=vs/i_s\n", + "x02=(z02**2-r02**2)**0.5\n", + "k=v2/v1\n", + "r01=r02/k**2\n", + "x01=x02/k**2\n", + "z01=z02/k**2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=wo\n", + "total_loss=iron_loss+cu_loss\n", + "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", + "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "\n", + "#result\n", + "print \"applied voltage=\",v1_,\"V\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "applied voltage= 251.442641983 V\n", + "efficiency= 96.3984469139 %\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.48, Page Number:1160" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230.0#V\n", + "v2=230.0#V\n", + "load=3.0#kVA\n", + "vo=230.0#V\n", + "io=2.0#A\n", + "wo=100.0#W\n", + "vs=15.0#V\n", + "i_s=13.0#A\n", + "ws=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v1\n", + "cu_loss=ws\n", + "core_loss=wo\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+core_loss)\n", + "z=vs/i_s\n", + "r=ws/(vs**2)\n", + "x=(z**2-r**2)**0.5\n", + "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.90121149256 %\n", + "efficiency= 91.6030534351 %\n" + ] + } + ], + "prompt_number": 194 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.49, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "efficiency=0.94\n", + "per=0.90\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=per*load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "core_loss=loss/2\n", + "pc=core_loss/per**2\n", + "output=load*1000*pf\n", + "cu_loss=pc\n", + "efficiency=output/(output+cu_loss+core_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.5728354534 %\n" + ] + } + ], + "prompt_number": 196 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.50, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=3.96#ohm\n", + "r2=0.0396#ohm\n", + "x1=15.8#ohm\n", + "x2=0.158#ohm\n", + "pf=0.8\n", + "v=230.0#V\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "r=r2+r1*(v2/v1)**2\n", + "x=x1*(v2/v1)**2+x2\n", + "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", + "v1=v1_*(v1/v2)\n", + "phi=math.atan(r/x)\n", + "pf=math.cos(phi)\n", + "#result\n", + "print \"a)HV side voltage necessary=\",v1,\"V\"\n", + "print \"b)pf=\",round(pf,2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)HV side voltage necessary= 2409.9826087 V\n", + "b)pf= 0.97\n" + ] + } + ], + "prompt_number": 199 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.51, Page Number:1162" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#v\n", + "r1=3.4#ohm\n", + "x1=7.2#ohm\n", + "r2=0.028#ohm\n", + "x2=0.060#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "r=r1*(v2/v1)**2+r2\n", + "x=x1*(v2/v1)**2+x2\n", + "ad=i*r*pf\n", + "dc=i*x*math.sin(math.acos(pf))\n", + "oc=v2+ad+dc\n", + "bd=i*r*math.sin(math.acos(pf))\n", + "b_f=x*pf\n", + "cf=b_f-bd\n", + "v1_=(oc**2+cf**2)**0.5\n", + "v1=v1_*(v1/v2)\n", + "\n", + "#result\n", + "print \"terminal voltage on hv side=\",v1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage on hv side= 2229.28500444 V\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.52, Page Number:1163" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "i1=0.7#A\n", + "w1=65.0#W\n", + "v=15.0#V\n", + "i2=10.0#A\n", + "w2=75.0#W\n", + "pf=0.80\n", + "#calculation\n", + "il=load*1000/v1\n", + "ih=load*1000/v2\n", + "cu_loss=w2\n", + "constant_loss=w1\n", + "z=v/i2\n", + "r=w2/i2**2\n", + "x=(z**2-r**2)**0.5\n", + "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", + "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency,\"%\"\n", + "print \"full load regulation=\",regn,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.6183574879 %\n", + "full load regulation= 13.7942286341 V\n" + ] + } + ], + "prompt_number": 209 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.53, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=3300.0#V\n", + "v2=230.0#V\n", + "load=50.0#kVA\n", + "z=4\n", + "cu_loss=1.8\n", + "\n", + "#calculations\n", + "x=(z**2-cu_loss**2)**0.5\n", + "i1=load*1000/v1\n", + "r01=cu_loss*v1/(100*i1)\n", + "x01=x*v1/(100*i1)\n", + "z01=z*v1/(100*i1)\n", + "isc=i1*100/z\n", + "print \n", + "#result\n", + "print \"%x=\",x,\"%\"\n", + "print \"resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"primary sc current=\",isc,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "%x= 3.5721142199 %\n", + "resistance= 3.9204 ohm\n", + "reactance= 7.78006477094 ohm\n", + "impedence= 8.712 ohm\n", + "primary sc current= 378.787878788 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.54, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "vo=220.0#V\n", + "i_o=4.2#A\n", + "wo=148.0#W\n", + "vs=86.0#V\n", + "i_s=10.5#A\n", + "ws=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=ws/i_s**2\n", + "r02=k**2*r01\n", + "z10=vs/i_s\n", + "x01=(z10**2-r01**2)**0.5\n", + "x02=k**2*x01\n", + "i1=load*1000/v1\n", + "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "regn1=(v1_-v1)/v1\n", + "i2=i1/k\n", + "core_loss=wo\n", + "cu_loss=i1**2*r01\n", + "cu_loss_half=(i1/2)**2*r01\n", + "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", + "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", + "print v1_ \n", + "#result\n", + "print \"a)core loss=\",wo,\"W\"\n", + "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", + "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", + "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", + "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", + "print \"f)regulation=\",regn1*100,\"%\"\n", + "print \"g)efficiency at full load=\",efficiency,\"%\"\n", + "print \"h)efficiency at half load=\",efficiency_half,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "2265.01840886\n", + "a)core loss= 148.0 W\n", + "b)equivalent resistance primary= 3.26530612245 ohm\n", + "c)equivalent resistance secondary= 0.0326530612245 ohm\n", + "d)equivalent reactance primary= 7.51143635755 ohm\n", + "e)equivalent reactance secondary= 0.0751143635755 ohm\n", + "f)regulation= 2.95538222101 %\n", + "g)efficiency at full load= 97.4548448466 %\n", + "h)efficiency at half load= 95.0360304208 %\n" + ] + } + ], + "prompt_number": 222 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.55, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "er=1.0/100\n", + "ex=5.0/100\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "regn2=er*1\n", + "regn3=er*pf-ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", + "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", + "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation with pf=0.8 lag= 3.8 %\n", + "ii)regulation with pf=1= 1.0 %\n", + "iii)regulation with pf=0.8 lead= -2.2 %\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.56, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500#kVA\n", + "v1=3300#V\n", + "v2=500#V\n", + "f=50#Hz\n", + "per=0.97\n", + "ratio=3.0/4\n", + "zper=0.10\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=load*ratio*1\n", + "x=0.75\n", + "pi=0.5*(output*(1/per-1))\n", + "pc=pi/x**2\n", + "i1=load*1000/v1\n", + "r=pc*1000/i1**2\n", + "er=i1*r/v1\n", + "ez=zper\n", + "ex=(ez**2-er**2)**0.5\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation=\",regn*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 7.52529846012 %\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.57, Page Number:1166" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "cu_loss=1.5#%\n", + "xdrop=3.5#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "pur=cu_loss/100\n", + "pux=xdrop/100\n", + "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", + "regn1=pur*1\n", + "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", + "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", + "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation at unity pf= 1.5 %\n", + "ii)regulation at 0.8 lag= 3.3 %\n", + "iii)regulation at 0.8 lead= -0.9 %\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.58, Page Number:1168" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#KVA\n", + "w1=5.0#kW\n", + "w2=7.5#kW\n", + "efficiency=0.75\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "loss=total_loss/2\n", + "cu_loss=efficiency**2*w2/2\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+cu_loss+2.5)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.0186963113 %\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.59, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2000.0#V\n", + "v2=200.0#V\n", + "w1=350.0#W\n", + "w2=400.0#W\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "output=load*1000*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=w2*(0.5)**2\n", + "total_loss=cu_loss+w1\n", + "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", + "\n", + "#result\n", + "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency at full load= 97.0873786408 %\n", + "ii)efficiency at half load= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 232 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.60, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.75\n", + "\n", + "#calculation\n", + "ratio=efficiency**2\n", + "\n", + "#result\n", + "print \"ratio of P1 and P2=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of P1 and P2= 0.5625\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.61, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=230.0#V\n", + "load1=150.0#KVA\n", + "f=50.0#Hz\n", + "loss=1.4#kW\n", + "cu_loss=1.6#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "load=load1*(cu_loss/loss)**0.5\n", + "total_loss=loss*2\n", + "output=load*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=cu_loss*(0.5)**2\n", + "total_loss=total_loss+cu_loss\n", + "output2=(load/2)*pf\n", + "efficiency2=output2/(output2+total_loss)\n", + "\n", + "#result\n", + "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", + "print \"max efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load for max efficiency= 150.0 kVA\n", + "max efficiency= 98.283858876 %\n", + "ii)efficiency at half load= 95.2481856352 %\n" + ] + } + ], + "prompt_number": 237 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.62, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "#variable declaration\n", + "load=5#kVA\n", + "v1=2300#V\n", + "v2=230#V\n", + "f=50#Hz\n", + "iron_loss=40#W\n", + "cu_loss=112#W\n", + "pf=0.8\n", + "#calculations\n", + "def e(k):\n", + " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", + " return(e)\n", + "\n", + "e1=e(1.25)\n", + "e2=e(2.5)\n", + "e3=e(3.75)\n", + "e4=e(5.0)\n", + "e5=e(6.25)\n", + "e6=e(7.5)\n", + "\n", + "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", + "E=[e1,e2,e3,e4,e5,e6]\n", + "a=plot(K,E)\n", + "xlabel(\"load,kVA\") \n", + "ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.63, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kVA\n", + "efficiency=0.98\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "output=load*pf\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "x=loss*1000/(1+9.0/16)\n", + "y=(9.0/16)*x\n", + "cu_loss=x*(1.0/2)**2\n", + "total_loss=cu_loss+y\n", + "output=load*pf*0.5\n", + "efficiency=output/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"efficiency at hald load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at hald load= 97.9216626699 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.64, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "r1=1.0#ohm\n", + "r2=0.01#ohm\n", + "pf=0.8\n", + "loss=0.80\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "i2=load*1000/v2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=loss*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "output=load*pf*1000\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"secondary resistance=\",r02,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary resistance= 0.02 ohm\n", + "efficiency= 97.7284199899 %\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.65, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "r01=0.5#ohm\n", + "x01=1.5#ohm\n", + "ratio=3.0/4\n", + "pf=0.8\n", + "v=220.0#V\n", + "loss=100.0#W\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=k**2*r01\n", + "x02=k**2*x01\n", + "i2=1000*load*ratio/v2\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "cu_loss=i2**2*r02\n", + "total_loss=loss+cu_loss\n", + "output=load*ratio*pf\n", + "inpt=output*1000+total_loss\n", + "efficiency=output*1000/(inpt)\n", + "#result\n", + "print \"output=\",output,\"w\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 2.4 w\n", + "efficiency= 91.8660287081 %\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.66, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=440.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "loss=324.0#W\n", + "cu_loss=100.0#W\n", + "pf=0.8\n", + "#calculations\n", + "cu_loss=4*cu_loss\n", + "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", + "per=(loss/cu_loss)**0.5\n", + "\n", + "#result\n", + "print \"i)efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)percent of full-load=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency= 95.6708921311 %\n", + "ii)percent of full-load= 90.0 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.67, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "pf=0.8\n", + "vo=200.0#V\n", + "io=0.8#A\n", + "wo=70.0#W\n", + "vs=20.0#V\n", + "i_s=10.0#A\n", + "ws=60.0#W\n", + "\n", + "#calculation\n", + "i2=load*1000/v2\n", + "loss=ws+wo\n", + "output=load*pf\n", + "efficiency=output/(output+loss/1000)\n", + "z02=vs/i_s\n", + "r02=ws/i2**2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "i1=load*1000/v1\n", + "load=load*(wo/ws)**0.5\n", + "load=load*1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"secondary voltage=\",v2,\"V\"\n", + "print \"current=\",i1,\"A\"\n", + "print \"load at unity pf=\",load,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.0960960961 %\n", + "secondary voltage= 383.752729583 V\n", + "current= 20.0 A\n", + "load at unity pf= 4.32049379894 kW\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.69, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=600.0#KVA\n", + "efficiency=0.92\n", + "per=0.60\n", + "\n", + "#calculation\n", + "inpt=load/efficiency\n", + "loss1=inpt-load\n", + "inpt2=load/(2*efficiency)\n", + "loss2=inpt2-load/2\n", + "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", + "cu_loss=ans[y]*0.36\n", + "loss=cu_loss+ans[x]\n", + "output=load*per\n", + "efficiency=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "389.913043478261\n", + "efficiency= 92.3282783229260 %\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.70, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "e1=0.98\n", + "e2=0.80\n", + "pf=8\n", + "z=0.05\n", + "pf1=0.8\n", + "\n", + "#calculations\n", + "output=load*pf1*e2\n", + "inpt=output/e1\n", + "loss=-output+inpt\n", + "cu_loss=loss/2\n", + "cu_loss_full=cu_loss/pf1**2\n", + "r=round(cu_loss_full*100/load)\n", + "sin=math.sin(math.acos(pf1))\n", + "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", + "#result\n", + "print \"voltage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 3.8578 %\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.71, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#KVA\n", + "v1=5000.0#V\n", + "v2=440.0#V\n", + "f=25.0#Hz\n", + "cu_loss=1.5\n", + "we=0.5\n", + "wh=0.6\n", + "v2=10000.0\n", + "#calculations\n", + "cu_loss1=cu_loss*load/100\n", + "we1=we*load/100\n", + "wh1=wh*load/100\n", + "cu_loss2=cu_loss1\n", + "we2=(we1*(50.0/25.0)**2)\n", + "wh2=(wh1*(50.0/25))\n", + "e1=load*100/(load+cu_loss1+we1+wh1)\n", + "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", + "\n", + "#result\n", + "print \"full load efficiency in first case=\",e1,\"%\"\n", + "print \"full load efficiency in second case=\",e2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "20.47 0.06 0.05\n", + "full load efficiency in first case= 97.4658869396 %\n", + "full load efficiency in second case= 97.7039570103 %\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.72, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=300#KVA\n", + "r=1.5#%\n", + "load1=173.2#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss=r*load*1000/100\n", + "iron_loss=(load1/load)**2*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.5610105096 %\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.73, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "v1=2300#V\n", + "v2=230.0#V\n", + "f=50#Hz\n", + "phim=1.2#Wb/m2\n", + "a=0.04#m2\n", + "l=2.5#m\n", + "bm=1200\n", + "inpt=1200#W\n", + "pi=400#W\n", + "efficiency=0.75\n", + "pf=0.8\n", + "f2=100#Hz\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*phim*a)\n", + "k=v2/v1\n", + "n2=k*n1\n", + "i=1989/n1\n", + "cu_loss=efficiency**2*inpt\n", + "total_loss=pi+cu_loss\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"a)n1=\",round(n1)\n", + "print \" n2=\",round(n2)\n", + "print \"b)magnetising current=\",i,\"A\"\n", + "print \"c)efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.00643416423287\n", + "a)n1= 216.0\n", + " n2= 22.0\n", + "b)magnetising current= 9.21512347826 A\n", + "c)efficiency= 98.2398690135 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.74, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.8\n", + "x=5.4\n", + "\n", + "#calculation\n", + "pf=r/x\n", + "phi=math.atan(pf)\n", + "phi2=math.atan(x/r)\n", + "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", + "efficiency=100/(100+r*2)\n", + "\n", + "#result\n", + "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", + "print \" ii)regulation=\",regn,\"%\"\n", + "print \"b)efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)phi= 18.4349488229 degrees\n", + " ii)regulation= 5.6920997883 %\n", + "b)efficiency= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.75, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "vo=250.0#V\n", + "io=3.0#A\n", + "wo=200.0#W\n", + "vsc=15.0#V\n", + "isc=30.0#A\n", + "wsc=300.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "cu_loss=(i/isc)**2*wsc\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+wo)\n", + "z=vsc/isc\n", + "r=wsc/isc**2\n", + "x=(z**2-r**2)**0.5\n", + "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.6030534351 %\n", + "regulation= 1.72239475667 %\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.76, Page Number:1177" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40.0#kVA\n", + "loss=400.0#W\n", + "cu_loss=800.0#W\n", + "\n", + "#calculation\n", + "x=(loss/cu_loss)**0.5\n", + "output=load*x*1\n", + "efficiency=output/(output+load*2/100)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.2493723732 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.77, Page Number:1178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#kVA\n", + "v1=500#V\n", + "v2=250#V\n", + "vsc=60#V\n", + "isc=20#A\n", + "wsc=150#W\n", + "per=1.2\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=load*1000/v1\n", + "cu_loss=per**2*wsc\n", + "output=per*load*1.0\n", + "efficiency=output*100/(output+cu_loss*2/1000)\n", + "output=load*1000*pf\n", + "e2=output*100/(output+cu_loss+wsc)\n", + "\n", + "#result\n", + "print \"maximum efficiency=\",efficiency,\"%\"\n", + "print \"full-load efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum efficiency= 96.5250965251 %\n", + "full-load efficiency= 95.6251494143 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.78, Page Number:1181" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#kVA\n", + "cu_loss=4.5#kW\n", + "iron_loss=3.5#kW\n", + "t1=6.0#hrs\n", + "t2=10.0#hrs\n", + "t3=4.0#hrs\n", + "t4=4.0#hrs\n", + "load1_=400.0#kW\n", + "load2_=300.0#kW\n", + "load3_=100.0#kW\n", + "pf1=0.8\n", + "pf2=0.75\n", + "pf3=0.8\n", + "\n", + "#calculations\n", + "load1=load1_/pf1\n", + "load2=load2_/pf2\n", + "load3=load3_/pf3\n", + "wc1=cu_loss\n", + "wc2=cu_loss*(load2/load1)**2\n", + "wc3=cu_loss*(load3/load1)**2\n", + "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", + "iron_loss=24*iron_loss\n", + "total_loss=twc+iron_loss\n", + "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.6 %\n" + ] + } + ], + "prompt_number": 86 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.79, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "loss=3.0#kW\n", + "tf=3.0#hrs\n", + "th=4.0#hrs\n", + "\n", + "#calculation\n", + "iron_loss=loss*24/2\n", + "wcf=loss*tf/2\n", + "wch=loss/8\n", + "wch=wch*4\n", + "total_loss=iron_loss+wch+wcf\n", + "output=load*tf+load*th/2\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.2509225092 %\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.80, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#KW\n", + "efficiency=0.98\n", + "tf=4.0#hrs\n", + "th=6.0#hrs\n", + "t10=14.0#hrs\n", + "\n", + "#calculations\n", + "#1st transformer\n", + "inpt=load/efficiency\n", + "tloss=inpt-load\n", + "y=tloss/2\n", + "x=y\n", + "iron_loss=x*24\n", + "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", + "loss=iron_loss+cu_loss\n", + "output=tf*load+th*load/2+t10*10\n", + "e1=output/(output+loss)\n", + "#2nd transformer\n", + "y=tloss/(1+1.0/4)\n", + "x=(tloss-y)\n", + "iron_loss=x*24\n", + "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", + "loss=iron_loss+wc\n", + "e2=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", + "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.408163265306 1.63265306122\n", + "efficiency of forst transformer= 96.5245532574 %\n", + "efficiency ofsecond transformer= 97.7876610788 %\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.81, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "efficiency=0.95\n", + "nl=10.0#hrs\n", + "ql=7.0#hrs\n", + "hl=5.0#hrs\n", + "fl=2.0#hrs\n", + "\n", + "#calculations\n", + "inpt=load/efficiency\n", + "loss=inpt-load\n", + "wc_fl=loss/2\n", + "iron_loss=loss/2\n", + "wc_fl_4=(1.0/4)**2*wc_fl\n", + "wc_fl_2=(1.0/2)**2*wc_fl\n", + "wc_ql=ql*wc_fl_4\n", + "wc_hl=hl*wc_fl_2\n", + "wc_fl_2=fl*wc_fl\n", + "wc=wc_ql+wc_hl+wc_fl_2\n", + "wh=wc\n", + "loss=wh+24*iron_loss\n", + "output=load*1\n", + "half_output=(output/2)\n", + "q_load=(load/4)\n", + "output=ql*q_load+hl*half_output+fl*output\n", + "e=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 89.5592740985 %\n" + ] + } + ], + "prompt_number": 115 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.82, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.98\n", + "load=15#kVA\n", + "t1=12.0#hrs\n", + "t2=6.0#hrs\n", + "t3=6.0#hrs\n", + "pf1=0.5\n", + "pf2=0.8\n", + "k1=2#kW\n", + "k2=12#kW\n", + "\n", + "#calculations\n", + "output=load*1\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "wc=loss/2\n", + "wi=loss/2\n", + "w1=k1/pf1\n", + "w2=k2/pf2\n", + "wc1=wc*(4/load)\n", + "wc2=wc\n", + "wc12=t1*wc1\n", + "wc6=t2*wc2\n", + "wc=(wc12+wc6)\n", + "wi=24*wi\n", + "output=(k1*t1)+(t2*k2)\n", + "inpt=output+wc+wi\n", + "e=output*100/inpt\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.918367346939 3.67346938776\n", + "efficiency= 95.4351795496 %\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.83, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=150.0#KVA\n", + "l1_=100.0#kVA\n", + "t=3.0#hrs\n", + "loss=1.0#KW\n", + "\n", + "#calculations\n", + "l1=l1_/2\n", + "l2=l1_\n", + "output=load*1\n", + "loss=loss*2\n", + "e1=output/(output+loss)\n", + "wc1=t*(1.0/3)**2*1\n", + "wc2=8*(2.0/3)**2*1\n", + "wc=wc1+wc2\n", + "wi=24*1\n", + "loss=wc+wi\n", + "output=3*(l1*1)+8*(l2*1)\n", + "e2=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"ordinary efficiency=\",e1*100,\"%\"\n", + "print \"all day efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ordinary efficiency= 98.6842105263 %\n", + "all day efficiency= 97.1480513578 %\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.84, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50#KVA\n", + "efficiency=0.94#%\n", + "nl=10\n", + "hl=5.0\n", + "ql=6.0\n", + "fl=3.0\n", + "\n", + "#calculations\n", + "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", + "wch=(0.5)**2*pi\n", + "eh=wch*hl/1000\n", + "wcq=(0.25)**2*pi\n", + "eq=ql*wcq/1000\n", + "e3=pi*3/1000\n", + "e2=pi*24/1000\n", + "e=25*hl+12.5*ql+50*fl\n", + "efficiency=e/(e+e2+eh+eq+e3)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.4557217274 %\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.85, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "t1=7.0#hrs\n", + "t2=4.0#hrs\n", + "t3=8.0#hrs\n", + "t4=5.0#hrs\n", + "k1=3.0#kW\n", + "k2=8.0#kW\n", + "pf1=0.6\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "x1=k1/(pf1*load)\n", + "x2=k2/(pf2*load)\n", + "x3=load/(1*load)\n", + "pc1=(0.5)**2*0.1\n", + "pc2=pc3=0.10\n", + "o1=k1*t1\n", + "o2=k2*t2\n", + "o3=k2*load\n", + "output=o1+o2+o3\n", + "wc1=pc1*t1\n", + "wc2=pc2*t2\n", + "wc3=pc3*t3\n", + "cu_loss=wc1+wc2+wc3\n", + "loss=400.0*24/10000\n", + "efficiency=output/(output+loss+cu_loss)\n", + "\n", + "#result\n", + "print \"efficency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficency= 98.27465179 %\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.86, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=.98\n", + "load=15.0#kVA\n", + "t1=12.0\n", + "t2=6.0\n", + "t3=6.0\n", + "pf1=0.8\n", + "pf2=0.8\n", + "pf3=0.9\n", + "k1=2.0\n", + "k2=12.0\n", + "k3=18.0\n", + "#calculations\n", + "output=load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "cu_loss=loss/2\n", + "x1=k1/(0.5*load)\n", + "x2=k2/(pf2*load)\n", + "x3=k3/(pf3*load)\n", + "wc1=0.131\n", + "wc2=0.918\n", + "wc3=1.632\n", + "o1=t1*k1\n", + "o2=t2*k2\n", + "o3=t3*k3\n", + "output=o1+o2+o3\n", + "loss=wc1+wc2+wc3+0.153*24\n", + "efficiency=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.9798386522 %\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.87, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.0#kW\n", + "v1=115.0#V\n", + "v2=230.0#V\n", + "\n", + "#calculation\n", + "k=v1/v2\n", + "power=load*(1-k)\n", + "power2=k*load\n", + "\n", + "#result\n", + "print \"a)power transferred inductively=\",power,\"kW\"\n", + "print \"b)power transferred conductively=\",power2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)power transferred inductively= 1.5 kW\n", + "b)power transferred conductively= 1.5 kW\n" + ] + } + ], + "prompt_number": 145 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.88, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=500.0#V\n", + "v2=400.0#V\n", + "i=100.0#A\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "i1=k*i\n", + "saving=k*100\n", + "\n", + "#result\n", + "print \"economy of cu=\",saving" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "economy of cu= 80.0\n" + ] + } + ], + "prompt_number": 147 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.89, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#KVA\n", + "f=50.0#Hz\n", + "v1=6600.0#V\n", + "v2=5000.0#V\n", + "e=8.0#V\n", + "phim1=1.3#Wb/m2\n", + "\n", + "#calculations\n", + "phim=e/(4.44*f)\n", + "area=phim/phim1\n", + "n1=v1/e\n", + "n2=v2/e\n", + "\n", + "#result\n", + "print \"core area=\",area*10000,\"m2\"\n", + "print \"number of turns on the hv side=\",n1\n", + "print \"number of turns on the lv side=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core area= 277.2002772 m2\n", + "number of turns on the hv side= 825.0\n", + "number of turns on the lv side= 625.0\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.90, Page Number:1189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2640*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i1_-i2\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 219.12 kVA\n", + "iv)per cent increase in kVA= 1095.6 %\n", + "v)I1= 91.3 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.91, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2160*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i2-i1_\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 179.28 kVA\n", + "iv)per cent increase in kVA= 896.4 %\n", + "v)I1= 74.7 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 160 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.92, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=110.0#V\n", + "v2=110.0#V\n", + "f=50.0#Hz\n", + "efficiency=0.95\n", + "iron_loss=50.0#W\n", + "v=220.0#V\n", + "\n", + "#calculations\n", + "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", + "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", + "i2=(load*1000+cu_loss/4+iron_loss)/v\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"current drawn on hv side=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.9760216579 %\n", + "current drawn on hv side= 23.1967703349 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.93, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500#V\n", + "v2=2300#V\n", + "\n", + "#calculations\n", + "kva=(v1+v2)*50*0.001\n", + "\n", + "#result\n", + "print \"voltage output=\",v1+v2,\"V\"\n", + "print \"kVA rating of auto transformer=\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage output= 13800 V\n", + "kVA rating of auto transformer= 690.0 kVA\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.94, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500.0#V\n", + "v2=2300.0#V\n", + "load=100.0#KVA\n", + "\n", + "#calculations\n", + "i1=load*100/v1\n", + "i2=load*100/v2\n", + "kva1=(v1+v2)*i1/(100)\n", + "kva2=(v1+v2)*i2/(100)\n", + "#result\n", + "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", + "print \"kVA rating in first case=\",kva1\n", + "print \"kVA rating in second case=\",kva2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage ratios= 1.2 or 6.0\n", + "kVA rating in first case= 120.0\n", + "kVA rating in second case= 600.0\n" + ] + } + ], + "prompt_number": 167 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.95, Page Number:1192" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2400.0#v\n", + "v2=240.0#V\n", + "load=50.0#kVA\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "output=2640*i2\n", + "i=i2*2640/v1\n", + "k=2640/v1\n", + "poweri=v1*i1*0.001\n", + "power=output/1000-poweri\n", + "\n", + "#result\n", + "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", + "print \"inductively transferred powers=\",poweri,\"kW\"\n", + "print \"conductively transferred powers=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rating of the auto-transformer= 550.0 kVA\n", + "inductively transferred powers= 50.0 kW\n", + "conductively transferred powers= 500.0 kW\n" + ] + } + ], + "prompt_number": 169 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.96, Page Number:1196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "za=complex(0.5,3)\n", + "zb=complex(0.,10)\n", + "load=100#KW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", + "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "96.082805253\n", + "SA= 74.5937961595 kW\n", + "SB= 25.4062038405 kW\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.97, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r1=0.005#ohm\n", + "r2=0.01#ohm\n", + "x1=0.05#ohm\n", + "x2=0.04#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "za=complex(r1,x1)\n", + "zb=complex(r2,x2)\n", + "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", + "\n", + "#result\n", + "print \"load of B=\",abs(za/zb)\n", + "print \"pf of B=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load of B= 1.21872643265\n", + "pf of B= 0.613584256393\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.98, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#kVA\n", + "za=complex(1,6)\n", + "zb=complex(1.2,4.8)\n", + "load1=500#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 224.451917244 -39.3923099293\n", + "SB= 275.942423833 -34.8183886694\n" + ] + } + ], + "prompt_number": 205 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.99, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "load=100.0#KW\n", + "r1=0.5\n", + "x1=8.0\n", + "r2=0.75\n", + "x2=4.0\n", + "load1=180.0#kW\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "load=load1/pf\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "z1=complex(r1,x1)\n", + "z2=complex(r2,x2)\n", + "s1=s*z2/(z1+z2)\n", + "s2=s*z1/(z1+z2)\n", + "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", + "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", + "\n", + "#result\n", + "print \"kW1=\",kw1,\"kW\"\n", + "print \"kW2=\",kw2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(1.25+12j)\n", + "kW1= 58.119626171 kW\n", + "kW2= 121.880373829 kW\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.100, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kW\n", + "pf=0.85\n", + "za=complex(1,5)\n", + "zb=complex(2,6)\n", + "\n", + "#calculations\n", + "s=load/pf*complex(0.85,-0.527)\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", + "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA for A= 130.53263665 0.819364787986 lag\n", + "kVA for B= 105.238776124 0.884143252833 lag\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.101, Page Number:1198" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=110.0#V\n", + "load=125.0#kVA\n", + "pf=0.8\n", + "za=complex(0.9,10)\n", + "zb=(100/50)*complex(1.0,5)\n", + "\n", + "#calculation\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 63.0780848499 -39.929442891 degrees\n", + "SB= 62.1031510961 -33.7622749748 degrees\n" + ] + } + ], + "prompt_number": 218 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.102, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=500#kVA\n", + "za=complex(1,5)\n", + "load2=250#kVA\n", + "zb=complex(1.5,4)\n", + "v2=400#V\n", + "load=750#kVA\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zb=(500/load2)*zb\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 471.125736359 -40.3232138964 degrees\n", + "SB= 281.165527855 -31.0771011508 degrees\n" + ] + } + ], + "prompt_number": 219 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.103, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=1000#A\n", + "pf=0.8\n", + "za=complex(2,3)\n", + "zb=complex(2.5,5)\n", + "\n", + "#calculations\n", + "i=i*complex(pf,-math.sin(math.acos(pf)))\n", + "ratio=zb/za\n", + "ib=i/(1+ratio)\n", + "ia=i-ib\n", + "ratio=ia.real/ib.real\n", + "\n", + "#result\n", + "print \"IA=\",ia\n", + "print \"IB=\",ib\n", + "print \"ratio of output=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= (504.451038576-341.246290801j)\n", + "IB= (295.548961424-258.753709199j)\n", + "ratio of output= 1.70682730924\n" + ] + } + ], + "prompt_number": 220 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.104, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "v2=500.0#V\n", + "load=100.0#kVA\n", + "za=complex(1.0,5.0)\n", + "zb=complex(2.0,2.0)\n", + "load1=300.0#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "zb=(100.0/250)*zb\n", + "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "zab=za*zb/(za+zb)\n", + "drop=zab.real*240/100+zab.imag*180/100\n", + "v2=v2-v2*drop/100\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "print \"secondary voltage=\",v2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 55.8895719399 -64.6284382469 degrees\n", + "SB= 251.890896741 -30.9383707209 degrees\n", + "secondary voltage= 486.177874187 V\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.105, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n11=5000.0\n", + "n12=440.0\n", + "load1=200#kVA\n", + "n21=5000.0\n", + "n22=480.0\n", + "load2=350#kVA\n", + "x=3.5\n", + "\n", + "#calculation\n", + "i1=load1*1000/n12\n", + "i2=load2*1000/n22\n", + "x1=x*n12/(100*i1)\n", + "x2=x*n22/(100*i2)\n", + "ic=(n22-n12)/0.057\n", + "\n", + "#result\n", + "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.106, Page Number:1203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "ea=6600#V\n", + "eb=6400#V\n", + "za=complex(0.3,3)\n", + "zb=complex(0.2,1)\n", + "zl=complex(8.0,6.0)\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "\n", + "#result\n", + "print \"IA=\",abs(ia),\"A\"\n", + "print \"IB=\",abs(ib),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 195.492387533 A\n", + "IB= 422.567795916 A\n" + ] + } + ], + "prompt_number": 227 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.107, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=100.0#kVA\n", + "load2=50.0#kVA\n", + "v1=1000.0#V\n", + "v2=950.0#V\n", + "r1=2.0\n", + "r2=2.5\n", + "x1=8.0\n", + "x2=6.0\n", + "\n", + "#calculations\n", + "ia=load1*1000/v1\n", + "ra=v1*r1/(100*ia)\n", + "xa=v1*x1/(100*ia)\n", + "ib=load2*1000/v2\n", + "rb=v2*r2/(100*ib)\n", + "xb=v2*x2/(100*ib)\n", + "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", + "ic=(v1-v2)/z\n", + "alpha=math.atan((xa+xb)/(ra+rb))\n", + "\n", + "#result\n", + "print \"no load circulating current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load circulating current= 25.0948635944 A\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 32.108, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=1000.0#KVA\n", + "load2=500.0#kVA\n", + "v1=500.0#V\n", + "v2=510.0#V\n", + "z1=3.0\n", + "z2=5.0\n", + "r=0.4\n", + "\n", + "#calculation\n", + "ia=load1*1000/480\n", + "ib=load2*1000/480\n", + "za=z1*v1/(100*ia)\n", + "zb=z2*v2/(100*ib)\n", + "ic=(v2-v1)/(za+zb)\n", + "\n", + "#result\n", + "print \"cross current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "cross current= 315.656565657 A\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.109, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "loada=500.0#KVA\n", + "loadb=250.0#kVA\n", + "load=750.0#KVA\n", + "pf=0.8\n", + "v1=405.0#V\n", + "v2=415.0#V\n", + "ra=1.0\n", + "rb=1.5\n", + "xa=5.0\n", + "xb=4.0\n", + "\n", + "#calculations\n", + "ia=loada*1000/400\n", + "ra=400/(100*ia)\n", + "xa=xa*400/(100*ia)\n", + "ib=loadb*1000/400\n", + "rb=rb*400/(100*ib)\n", + "xb=xb*400/(100*ib)\n", + "za=complex(ra,xa)\n", + "zb=complex(rb,xb)\n", + "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", + "ic=(v1-v2)/(za+zb)\n", + "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "sa=400*ia/1000\n", + "sb=400*ib/1000\n", + "pf1=math.cos(math.atan(sa.imag/sa.real))\n", + "pf2=math.cos(math.atan(sb.imag/sb.real))\n", + "\n", + "#result\n", + "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", + "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", + "print \" SB=\",abs(sb),pf2,\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross current= -229.754569404 -72.8972710309\n", + "b)SA= 387.844943528 0.820048560714 lag\n", + " SB= 351.964386212 0.738709225528 lag\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.110, Page Number:1205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zl=complex(2.0,1.5)\n", + "za=complex(0.15,0.5)\n", + "zb=complex(0.1,0.6)\n", + "ea=207#V\n", + "eb=205#V\n", + "\n", + "#calculations\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "v2_=(ia+ib)*zl\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", + "pfa=math.cos(angle)\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", + "pfb=math.cos(angle)\n", + "pa=abs(v2_)*abs(ia)*pfa\n", + "pb=abs(v2_)*abs(ib)*pfb\n", + "\n", + "#result\n", + "print \"power output:\"\n", + "print \" A:\",pa,\"W\"\n", + "print \" B:\",pb,\"W\"\n", + "print \"power factor:\"\n", + "print \" A:\",pfa\n", + "print \" B:\",pfb\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output:\n", + " A: 6535.37583042 W\n", + " B: 4925.36941503 W\n", + "power factor:\n", + " A: 0.818428780129\n", + " B: 0.775705655277\n" + ] + } + ], + "prompt_number": 248 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.111, Page Number:1206" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=200.0#A\n", + "ib=600.0#A\n", + "ra=0.02#ohm\n", + "rb=0.025#ohm\n", + "xa=0.05#ohm\n", + "xb=0.06#ohm\n", + "ea=245.0#V\n", + "eb=240.0#V\n", + "zl=complex(0.25,0.1)\n", + "\n", + "#calculation\n", + "za=(ea/ia)*complex(ra,xa)\n", + "zb=(eb/ib)*complex(rb,xb)\n", + "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", + "v2=i*zl\n", + "\n", + "#result\n", + "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 230.0 -3.0 degrees\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_3.ipynb new file mode 100644 index 00000000..a29de087 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter32_3.ipynb @@ -0,0 +1,5311 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:69b299b5398cdb7b833f53d6a7d05a19c0a433537449ffb871db80e61817fe5c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.1, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=3000.0#V\n", + "f=50.0#Hz\n", + "phi=1.2#Wb-m2\n", + "e=8.0#V\n", + "\n", + "#calculations\n", + "n1=v1/e\n", + "n2=v2/e\n", + "a=v2/(4.44*f*n2*phi)\n", + "\n", + "#result\n", + "print \"primary turns=\",n1\n", + "print \"secondary turns=\",n2\n", + "print \"area of core=\",round(a,2),\"m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary turns= 31.25\n", + "secondary turns= 375.0\n", + "area of core= 0.03 m2\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.2, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#KVA\n", + "v1=11000#V\n", + "v2=550#V\n", + "f=50#Hz\n", + "bm=1.3#Tesla\n", + "sf=0.9\n", + "per=10#%\n", + "a=20*20*sf/10000#m2\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*bm*a)\n", + "n2=v2/(4.44*f*bm*a)\n", + "e_per_turn=v1/n1\n", + "\n", + "#result\n", + "print \"HV TURNS=\",round(n1)\n", + "print \"LV TURNS=\",round(n2)\n", + "print \"EMF per turns=\",round(e_per_turn,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV TURNS= 1059.0\n", + "LV TURNS= 53.0\n", + "EMF per turns= 10.4 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.3, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=400.0\n", + "n2=1000.0\n", + "a=60.0/10000.0#cm2\n", + "f=50.0#Hz\n", + "e1=520.0#V\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "e2=k*e1\n", + "bm=e1/(4.44*f*n1*a)\n", + "\n", + "#result\n", + "print \"peak value of flux density=\",bm,\"WB/m2\"\n", + "print \"voltage induced in the secondary winding=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak value of flux density= 0.975975975976 WB/m2\n", + "voltage induced in the secondary winding= 1300.0 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.4, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "n1=500.0\n", + "n2=50.0\n", + "v=3000.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "i1=load*1000/v\n", + "i2=i1/k\n", + "e1=v/n1\n", + "e2=e1*n2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"primary and secondary currents=\",i1,\"A\", i2,\"A\"\n", + "print \"secondary emf=\",e2,\"V\"\n", + "print \"flux=\",phim*1000,\"mWB\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary and secondary currents= 8.33333333333 A 83.3333333333 A\n", + "secondary emf= 300.0 V\n", + "flux= 27.027027027 mWB\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.5, Page Number:1123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11000#V\n", + "v2=550#V\n", + "load=300#kVA\n", + "phim=0.05#Wb\n", + "\n", + "#calculation\n", + "e=4.44*f*phim\n", + "e2=v2/1.732\n", + "t1=v1/e\n", + "t2=e2/e\n", + "output=load/3\n", + "HV=100*1000/v1\n", + "LV=100*1000/e2\n", + "\n", + "#result\n", + "print \"HV turns=\",t1\n", + "print \"LV turns=\",t2\n", + "print \"emf per turn=\",e2\n", + "print \"full load HV=\",HV\n", + "print \"full load LV=\",LV" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 990.990990991\n", + "LV turns= 28.6082849593\n", + "emf per turn= 317.551963048\n", + "full load HV= 9\n", + "full load LV= 314.909090909\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.6, Page Number:1124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=1200.0\n", + "a=80.0/10000.0#m2\n", + "f=50.0#Hz\n", + "v=500.0#V\n", + "\n", + "#calculation\n", + "phim=n1/(4.44*f*n1)\n", + "bm=phim/a\n", + "v2=n2*v/n1\n", + "\n", + "#result\n", + "print \"peak flux-density=\",bm,\"Wb\"\n", + "print \"voltage induced in the secondary=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "peak flux-density= 0.563063063063 Wb\n", + "voltage induced in the secondary= 1200.0 V\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.7, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#varible declaration\n", + "load=25.0#kVA\n", + "n1=250.0\n", + "n2=40.0\n", + "v=1500.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "v2=n2*v/n1\n", + "i1=load*1000/v\n", + "i2=load*1000/v2\n", + "phim=v/(4.44*f*n1)\n", + "\n", + "#result\n", + "print \"i)primary current an secondary current=\",i1,\"A\",i2,\"A\"\n", + "print \"ii)seconary emf=\",v2,\"V\"\n", + "print \"iii)maximum flux=\",phim*1000,\"mWb\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current an secondary current= 16.6666666667 A 104.166666667 A\n", + "ii)seconary emf= 240.0 V\n", + "iii)maximum flux= 27.027027027 mWb\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.8, Page Number:1125" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "a=20.0*20.0/10000#m2\n", + "phim=1.0#Wbm2\n", + "v1=3000.0#V\n", + "v2=220.0#V\n", + "\n", + "#calculation\n", + "t2=v2/(4.44*f*phim*a)\n", + "t1=t2*v1/v2\n", + "n1=t1/2\n", + "n2=t2/2\n", + "\n", + "#result\n", + "print \"HV turns=\",n1\n", + "print \"LV turns=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV turns= 168.918918919\n", + "LV turns= 12.3873873874\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.9, Page Number:1126" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=200.0#V\n", + "i1=0.6#A\n", + "p=400.0#W\n", + "v3=250.0#V\n", + "i0=0.5#A\n", + "pf=0.3\n", + "\n", + "#calculation\n", + "il=p/v1\n", + "imu=(i1**2-il**2)**0.5\n", + "iw=i0*pf\n", + "imu2=(i0**2-iw**2)**0.5\n", + "\n", + "#result\n", + "print \"magnetising currents=\",imu,\"A\"\n", + "print \"iron loss current=\",il,\"A\"\n", + "print \"magnetising components of no load primary current=\",imu2,\"A\"\n", + "print \"working components of no-load primary current=\",iw,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "magnetising currents= 0.571788552492 A\n", + "iron loss current= 0.181818181818 A\n", + "magnetising components of no load primary current= 0.476969600708 A\n", + "working components of no-load primary current= 0.15 A\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.10, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=500.0\n", + "n2=40.0\n", + "l=150.0#cm\n", + "airgap=0.1#mm\n", + "e1=3000.0#V\n", + "phim=1.2#Wb/m2\n", + "f=50.0#Hz\n", + "d=7.8#grma/cm3\n", + "loss=2.0#watt/kg\n", + "\n", + "#calculation\n", + "a=e1/(4.44*f*n1*phim)\n", + "k=n2/n1\n", + "v2=k*e1\n", + "iron=l*5\n", + "air=phim*airgap/(1000*4*3.14*10**(-7))\n", + "bmax=iron+air\n", + "imu=bmax/(n1*2**0.5)\n", + "volume=l*a\n", + "im=volume*d*10\n", + "total_i=im*2\n", + "iw=total_i/(e1)\n", + "i0=(imu**2+iw**2)**0.5\n", + "pf=iw/i0\n", + "\n", + "#result\n", + "print \"a)cross sectional area=\",a*10000,\"cm2\"\n", + "print \"b)no load secondary voltage=\",v2,\"V\"\n", + "print \"c)no load current=\",imu,\"A\"\n", + "print \"d)power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross sectional area= 225.225225225 cm2\n", + "b)no load secondary voltage= 240.0 V\n", + "c)no load current= 1.19577611723 A\n", + "d)power factor= 0.145353269536\n" + ] + } + ], + "prompt_number": 42 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.11, Page Number:1127" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "n1=1000\n", + "n2=200\n", + "i=3#A\n", + "pf=0.2\n", + "i2=280#A\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "phi1=math.acos(pf2)\n", + "i2_=i2/5\n", + "phi2=math.acos(pf)\n", + "sinphi=math.sin(phi2)\n", + "sinphi2=math.sin(math.acos(phi1))\n", + "i1=i*complex(pf,-sinphi)+i2_*complex(pf2,-sinphi2)\n", + "\n", + "#result\n", + "print \"primary current=\",abs(i1),\"/_\",math.degrees(phi1),\"degrees\"\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 64.4918252531 /_ 36.8698976458 degrees\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.12, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=440.0#v\n", + "v2=110.0#V\n", + "i0=5.0#A\n", + "pf=0.2\n", + "i2=120.0#A\n", + "pf2=0.8\n", + "\n", + "#calculation\n", + "phi2=math.acos(pf2)\n", + "phi0=math.acos(pf)\n", + "k=v2/v1\n", + "i2_=k*i2\n", + "angle=phi2-phi0\n", + "i1=(i0**2+i2_**2+(2*i0*i2_*math.cos(angle)))**0.5\n", + "\n", + "#result\n", + "print \"current taken by the primary=\",i1,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current taken by the primary= 33.9022604184 A\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.13, Page Number:1130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n1=800.0\n", + "n2=200.0\n", + "pf=0.8\n", + "i1=25.0#A\n", + "pf2=0.707\n", + "i2=80.0#A\n", + "#calculations\n", + "k=n2/n1\n", + "i2_=i2*k\n", + "phi2=math.acos(pf)\n", + "phi1=math.acos(pf2)\n", + "i0pf2=i1*pf2-i2_*pf\n", + "i0sinphi=i1*pf2-i2_*math.sin(math.acos(pf))\n", + "phi0=math.atan(i0sinphi/i0pf2)\n", + "i0=i0sinphi/math.sin(phi0)\n", + "\n", + "#result\n", + "print \"no load current=\",i0,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load current= 5.91703050525 A\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.14, Page Number:1131" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=10#A\n", + "pf=0.2\n", + "ratio=4\n", + "i2=200#A\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "phi0=math.acos(pf)\n", + "phil=math.acos(pf)\n", + "i0=complex(2,-9.8)\n", + "i2_=complex(42.5,-26.35)\n", + "i1=i0+i2_\n", + "phi=math.acos(i1.real/57.333)\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"power factor=\",math.degrees(phi),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= (44.5-36.15j) A\n", + "power factor= 39.0890154959 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.15, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable decaration\n", + "load=30.0#KVA\n", + "v1=2400.0#V\n", + "v2=120.0#V\n", + "f=50.0#Hz\n", + "r1=0.1#ohm\n", + "x1=0.22#ohm\n", + "r2=0.034#ohm\n", + "x2=0.012#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "r02=r2+r1*k**2\n", + "x02=x2+x1*k**2\n", + "z02=(r02**2+x02**2)**0.5\n", + "\n", + "#result\n", + "print \"high voltage side:\"\n", + "print \"equivalent winding resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"low voltage side:\"\n", + "print \"equivalent winding resistance=\",r02,\"ohm\"\n", + "print \"reactance=\",x02,\"ohm\"\n", + "print \"impedence=\",z02,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "high voltage side:\n", + "equivalent winding resistance= 13.7 ohm\n", + "reactance= 5.02 ohm\n", + "impedence= 14.5907642021 ohm\n", + "low voltage side:\n", + "equivalent winding resistance= 0.03425 ohm\n", + "reactance= 0.01255 ohm\n", + "impedence= 0.0364769105051 ohm\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.16, Page Number:1136" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=4400.0#V\n", + "v2=220.0#V\n", + "r1=3.45#ohm\n", + "r2=0.009#ohm\n", + "x1=5.2#ohm\n", + "x2=0.015#ohm\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "r02=r2+k**2*r1\n", + "x01=x1+x2/k**2\n", + "x02=x2+x1*k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "z02=(r02**2+x02**2)**0.5\n", + "cu_loss=i1**2*r01\n", + "\n", + "#result\n", + "print \"i)resistance=\"\n", + "print \"primary=\",r01,\"ohm\"\n", + "print \"secondary=\",r02,\"ohm\"\n", + "print \"iii)reactance=\"\n", + "print \"primary=\",x01,\"ohm\"\n", + "print \"secondary=\",x02,\"ohm\"\n", + "print \"iv)impedence=\"\n", + "print \"primary=\",z01,\"ohm\"\n", + "print \"secondary=\",z02,\"ohm\"\n", + "print \"v)copper loss=\",cu_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance=\n", + "primary= 7.05 ohm\n", + "secondary= 0.017625 ohm\n", + "reactance=\n", + "primary= 11.2 ohm\n", + "secondary= 0.028 ohm\n", + "impedence=\n", + "primary= 13.2341414531 ohm\n", + "secondary= 0.0330853536327 ohm\n", + "copper loss= 910.382231405 W\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.17, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=10.0\n", + "load=50.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "f=50.0#Hz\n", + "v=240.0#V\n", + "\n", + "#calculation\n", + "i2=load*1000/v\n", + "z2=v/(i2)\n", + "k=v2/v1\n", + "z2_=z2/k**2\n", + "i2_=k*i2\n", + "\n", + "#result\n", + "print \"a)load impedence=\",z2,\"ohm\"\n", + "print \"b)impedence referred to high tension side=\",z2_,\"ohm\"\n", + "print \"c)the value of current referred to the high tension side=\",i2_,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)load impedence= 1.152 ohm\n", + "b)impedence referred to high tension side= 115.2 ohm\n", + "c)the value of current referred to the high tension side= 20.8333333333 A\n" + ] + } + ], + "prompt_number": 70 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.18, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "v1=11000.0#V\n", + "v2=317.0#V\n", + "load2=0.62#kW\n", + "lvload=0.48#kW\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "r1=load2*1000/i**2\n", + "r2=lvload*1000/i2**2\n", + "r2_=r2*k**2\n", + "x01=4*v1/(i1*100)\n", + "x2_=x01*r2_/(r1+r2_)\n", + "x1=x01-x2_\n", + "x2=x2_*10/k**2\n", + "\n", + "#result\n", + "print \"i)r1=\",r1,\"ohm\"\n", + "print \"r2=\",r2,\"ohm\"\n", + "print \"r2_=\",r2_,\"ohm\"\n", + "print \"ii)reactance=\",x01,\"ohm\"\n", + "print \"x1=\",x1,\"ohm\"\n", + "print \"x2=\",x2,\"ohm\"\n", + "print \"x2_=\",x2_,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)r1= 7.502 ohm\n", + "r2= 0.004823472 ohm\n", + "r2_= 5.808 ohm\n", + "ii)reactance= 48.4 ohm\n", + "x1= 27.28 ohm\n", + "x2= 0.175398981818 ohm\n", + "x2_= 21.12 ohm\n" + ] + } + ], + "prompt_number": 76 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.19, Page Number:1137" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "k=19.5\n", + "r1=25.0#ohm\n", + "x1=100.0#ohm\n", + "r2=0.06#ohm\n", + "x2=0.25#ohm\n", + "i=1.25#A\n", + "angle=30#degrees\n", + "i2=200#A\n", + "v=50#V\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "v2=complex(500,0)\n", + "i2=i2*complex(0.8,-0.6)\n", + "z2=complex(r2,x2)\n", + "e2=v2+i2*z2\n", + "beta=math.atan(e2.imag/e2.real)\n", + "e1=e2*k\n", + "i2_=i2/k\n", + "angle=beta+math.radians(90)+math.radians(angle)\n", + "i0=i*complex(math.cos(angle),math.sin(angle))\n", + "i1=-i2_+i0\n", + "v2=-e1+i1*complex(r1,x1)\n", + "phi=math.atan(v2.imag/v2.real)-math.atan(i1.imag/i1.real)\n", + "pf=math.cos(phi)\n", + "power=abs(v2)*i*math.cos(math.radians(60))\n", + "r02=r2+r1/k**2\n", + "cu_loss=abs(i2)**2*r02\n", + "output=500*abs(i2)*pf2\n", + "loss=cu_loss+power\n", + "inpt=output+loss\n", + "efficiency=output*100/inpt\n", + "\n", + "#result\n", + "print \"primary applied voltage=\",v2,\"V\"\n", + "print \"primary pf=\",pf\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary applied voltage= (-11464.2126901-1349.15424294j) V\n", + "primary pf= 0.698572087114\n", + "efficiency= 86.7261056254 %\n" + ] + } + ], + "prompt_number": 94 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.20, Page Number:1138" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable description\n", + "load=100#KVA\n", + "v1=1100#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "zh=complex(0.1,0.4)\n", + "zl=complex(0.006,0.015)\n", + "\n", + "#calculations\n", + "k=v1/v2\n", + "#HV \n", + "r1=zh.real+zl.real*k**2\n", + "x1=zh.imag+zl.imag*k**2\n", + "z1=(r1**2+x1**2)**0.5\n", + "#LV\n", + "r2=r1/k**2\n", + "x2=x1/k**2\n", + "z2=z1/k**2\n", + "\n", + "#result\n", + "print \"HV:\"\n", + "print \"resistance=\",r1,\"ohm\"\n", + "print \"reactance=\",x1,\"ohm\"\n", + "print \"impedence=\",z1,\"ohm\"\n", + "print \"LV:\"\n", + "print \"resistance=\",r2,\"ohm\"\n", + "print \"reactance=\",x2,\"ohm\"\n", + "print \"impedence=\",z2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "HV:\n", + "resistance= 0.25 ohm\n", + "reactance= 0.775 ohm\n", + "impedence= 0.814324873745 ohm\n", + "LV:\n", + "resistance= 0.01 ohm\n", + "reactance= 0.031 ohm\n", + "impedence= 0.0325729949498 ohm\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.21, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230#V\n", + "v2=460#V\n", + "r1=0.2#ohm\n", + "x1=0.5#ohm\n", + "r2=0.75#ohm\n", + "x2=1.8#ohm\n", + "i=10#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "x02=x2+k**2*x1\n", + "vd=i*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "vt2=v2-vd\n", + "\n", + "#result\n", + "print \"secondary terminal voltage=\",vt2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary terminal voltage= 424.8 V\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.22, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.0#%\n", + "x=5.0#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "mu=r*pf+x*math.sin(math.acos(pf))\n", + "mu2=r**2+x*0\n", + "mu3=r*pf-x*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation at pf=0.8 lag:\",mu,\"%\"\n", + "print \"regulation at pf=1:\",mu2,\"%\"\n", + "print \"regulation at pf=0.8 lead:\",mu3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=0.8 lag: 3.8 %\n", + "regulation at pf=1: 1.0 %\n", + "regulation at pf=0.8 lead: -2.2 %\n" + ] + } + ], + "prompt_number": 98 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.23, Page Number:1141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=5#%\n", + "r=2.5#%\n", + "\n", + "#calculation\n", + "phi=math.atan(x/r)\n", + "cosphi=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "regn=r*cosphi+x*sinphi\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.59016994375 %\n", + "pf= 0.4472135955\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.24, Page Number:1142" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=2.5#%\n", + "x=5#%\n", + "load1=500#KVA\n", + "load2=400#KVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "kw=load2*pf\n", + "kvar=load2*math.sin(math.acos(pf))\n", + "drop=(r*kw/load1)+(x*kvar/load1)\n", + "\n", + "#result\n", + "print \"percentage voltage drop=\",drop,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage voltage drop= 4.0 %\n" + ] + } + ], + "prompt_number": 102 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.26, Page Number:1145" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=600#V\n", + "v2=1080#V\n", + "v=720#V\n", + "load=8#W\n", + "load2=10#kVA\n", + "\n", + "#calculation\n", + "ir2=load*1000/v2\n", + "il2=load*1000/v\n", + "ir2_=ir2*v2/v1\n", + "il2_=il2*v/v1\n", + "ir2=math.sqrt(ir2_**2+il2_**2)\n", + "s=complex(load,load2)\n", + "s=abs(s)\n", + "pf=load/s\n", + "i=s*load2*100/v1\n", + "\n", + "#result\n", + "print \"primary current=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 21.3437474581 A\n", + "power factor= 0.624695047554\n" + ] + } + ], + "prompt_number": 103 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.27, Page Number:1046" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "v1=110#V\n", + "i=0.5#A\n", + "p=30#W\n", + "r=0.6#ohm\n", + "\n", + "#calculation\n", + "ratio=v/v1\n", + "pf=p/(i*v)\n", + "sinphi=math.sqrt(1-pf**2)\n", + "ip=i*sinphi\n", + "iw=i*pf\n", + "cu_loss=i**2*r\n", + "iron_loss=p-cu_loss\n", + "\n", + "#result\n", + "print \"i)turns ratio=\",ratio\n", + "print \"ii)magnetising component of no-load current=\",ip,\"A\"\n", + "print \"iii)working component of no-load current=\",iw,\"A\"\n", + "print \"iv)the iron loss=\",iron_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)turns ratio= 2\n", + "ii)magnetising component of no-load current= 0.481045692921 A\n", + "iii)working component of no-load current= 0.136363636364 A\n", + "iv)the iron loss= 29.85 W\n" + ] + } + ], + "prompt_number": 104 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.28, Page Number:1047" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=200.0#V\n", + "v2=1000.0#V\n", + "f=50.0#Hz\n", + "vo=2000.0#V\n", + "io=1.2#A\n", + "po=90.0#W\n", + "vs=50.0#V\n", + "i_s=5.0#A\n", + "ps=110.0#W\n", + "p=3.0#kW\n", + "pf=0.8\n", + "v=200.0#V\n", + "\n", + "#calculation\n", + "r0=v**2/po\n", + "ia0=v/r0\n", + "ip=math.sqrt(io**2-ia0**2)\n", + "xm=v/ip\n", + "z=vs/i_s\n", + "r=ps/25\n", + "x=math.sqrt(z**2-r**2)\n", + "r1=r*(v1/v2)**2\n", + "x1=x*(v1/v2)**2\n", + "i_lv1=load*1000/v\n", + "i_lv=(p*1000/pf)/v\n", + "sinphi=math.sin(math.acos(pf))\n", + "reg=i_lv*(r1*pf+x1*sinphi)/v\n", + "vt=v2-reg*1000/v\n", + "\n", + "#result\n", + "print \"LV crrent at rated load=\",i_lv1,\"A\"\n", + "print \"LV current at 3kW at 0.8 lagging pf\",i_lv,\"A\"\n", + "print \"output secondary voltage=\",vt,\"V\"\n", + "print \"percentage regulation=\",reg*100,\"%\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "LV crrent at rated load= 25.0 A\n", + "LV current at 3kW at 0.8 lagging pf 18.75 A\n", + "output secondary voltage= 999.832975251 V\n", + "percentage regulation= 3.34049498886 %\n" + ] + } + ], + "prompt_number": 105 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.29, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "loss1=52.0#W\n", + "f1=40.0#Hz\n", + "loss2=90.0#W\n", + "f2=60.0#Hz\n", + "f=50.0#Hz\n", + "\n", + "#calculation\n", + "ans=solve([(loss1/f1)-(A+f1*B),(loss2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 45.0 W\n", + "eddy current= 25.0 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.30, Page Number:1048" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "m=10#kg\n", + "f=50.0#Hz\n", + "f1=25.0\n", + "f2=40.0\n", + "f3=50.0\n", + "f4=60.0\n", + "f5=80.0\n", + "l1=18.5/f1\n", + "l2=36.0/f2\n", + "l3=50.0/f3\n", + "l4=66.0/f4\n", + "l5=104.0/f5\n", + "#calculation\n", + "ans=solve([l1/f1-(A+f1*B),l2/f2-(A+f2*B)],[A,B])\n", + "eddy_loss_per_kg=ans[B]*f**2/m\n", + "\n", + "#result\n", + "print\"eddy current loss per kg at 50 Hz=\",eddy_loss_per_kg,\"W\"\n", + "\n", + "#plot\n", + "F=[f1,f2,f3,f4,f5]\n", + "L=[l1,l2,l3,l4,l5]\n", + "a=plot(F,L)\n", + "xlabel(\"f -->\") \n", + "ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Using matplotlib backend: TkAgg\n", + "Populating the interactive namespace from numpy and matplotlib\n", + "eddy current loss per kg at 50 Hz=" + ] + }, + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " -0.118333333333333 W\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.31, Page Number:1148" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "A=Symbol('A')\n", + "B=Symbol('B')\n", + "v1=440#V\n", + "f1=50#Hz\n", + "p1=2500#W\n", + "v2=220#V\n", + "f2=25#Hz\n", + "p2=850#z\n", + "\n", + "#calculation\n", + "ans=solve([(p1/f1)-(A+f1*B),(p2/f2)-(A+f2*B)],[A,B])\n", + "wh=ans[A]*f\n", + "we=ans[B]*f**2\n", + "\n", + "#result\n", + "print \"hysteresis=\",round(wh),\"W\"\n", + "print \"eddy current=\",round(we),\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "hysteresis= 900.0 W\n", + "eddy current= 1600.0 W\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.32, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "f1=50.0#Hz\n", + "core=1000.0#W\n", + "wh=650.0#W\n", + "we=350.0#W\n", + "v2=2000.0#V\n", + "f2=100.0#Hz\n", + "\n", + "#calculation\n", + "a=wh/f1\n", + "b=we/f1**2\n", + "wh=a*f2\n", + "we=b*f2**2\n", + "new_core=wh+we\n", + "\n", + "#result\n", + "print \"new core loss=\",new_core,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " new core loss= 2700.0 W\n" + ] + } + ], + "prompt_number": 111 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.33, Page Number:1149" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "phi=1.4#Wb/m2\n", + "we=1000.0#W\n", + "wh=3000.0#W\n", + "per=10.0#%\n", + "\n", + "#calculation\n", + "wh1=wh*1.1**1.6\n", + "we1=we*1.1**2\n", + "wh2=wh*0.9**(-0.6)\n", + "wh3=wh*1.1**1.6*1.1**(-0.6)\n", + "#result\n", + "print \"a)wh and we when applied voltage is increased by 10%=\",wh1,\"W\",\"and\",we1,\"W\"\n", + "print \"b)wh when frequency is reduced by 10%=\",wh2,\"W\"\n", + "print \"c)wh and we when both voltage and frequency are increased y 10%=\",wh3,\"W\",\"and\",we1,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)wh and we when applied voltage is increased by 10%= 3494.21441464 W and 1210.0 W\n", + "b)wh when frequency is reduced by 10%= 3195.77171838 W\n", + "c)wh and we when both voltage and frequency are increased y 10%= 3300.0 W and 1210.0 W\n" + ] + } + ], + "prompt_number": 119 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.34, Page Number:1150" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=40.0#Hz\n", + "loss=800.0#W\n", + "wh=600.0#W\n", + "we=loss-wh\n", + "v2=3300.0#V\n", + "f2=60.0#Hz\n", + "\n", + "#calculations\n", + "a=wh/f\n", + "b=we/f**2\n", + "core_loss=a*f2+b*f2**2\n", + "\n", + "#result\n", + "print \"core loss at 60 Hz=\",core_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core loss at 60 Hz= 1350.0 W\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.35, Page Number:1151" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=30.0#KvA\n", + "v1=6000.0#V\n", + "v2=230.0#V\n", + "r1=10.0#ohm\n", + "r2=0.016#ohm\n", + "x01=34.0#ohm\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=r1+r2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"primary voltage=\",vsc,\"V\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary voltage= 199.519931911 V\n", + "pf= 0.523468222173\n" + ] + } + ], + "prompt_number": 124 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.36, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "f=50.0#Hz\n", + "vo=200.0#V\n", + "io=0.7#A\n", + "po=70.0#W\n", + "vs=15.0#v\n", + "i_s=10.0#A\n", + "ps=85.0#W\n", + "load=5.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cosphi0=po/(vo*io)\n", + "sinphi0=math.sin(math.acos(cosphi0))\n", + "iw=io*cosphi0\n", + "imu=io*sinphi0\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "z02=vs/i_s\n", + "k=v2/v1\n", + "z01=z02/k**2\n", + "r02=ps/i_s**2\n", + "r01=r02/k**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "output=load/pf\n", + "i2=output*1000/v2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "print z02\n", + "#result\n", + "print \"secondary voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1.5\n", + "secondary voltage= 377.788243349 V\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.37, Page Number:1152" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "k=1.0/6\n", + "r1=0.9#ohm\n", + "x1=5.0#ohm\n", + "r2=0.03#ohm\n", + "x2=0.13#ohm\n", + "vsc=330.0#V\n", + "f=50.0#Hz\n", + "\n", + "#calculations\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=vsc/z01\n", + "i2=i1/k\n", + "cosphisc=i1**2*r01/(vsc*i1)\n", + "\n", + "#result\n", + "print \"current in low voltage winding=\",i2,\"A\"\n", + "print \"pf=\",round(cosphisc,1)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in low voltage winding= 200.396236149 A\n", + "pf= 0.2\n" + ] + } + ], + "prompt_number": 132 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.38, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "f=50.0#Hz\n", + "r1=0.2#ohm\n", + "x1=0.4#ohm\n", + "r2=0.5#ohm\n", + "x2=0.1#ohm\n", + "r0=1500.0#ohm\n", + "x0=750.0#ohm\n", + "\n", + "#calculation\n", + "k=v2/v1\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(iw**2+imu**2)**0.5\n", + "pi=v1*iw\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=(r01**2+x01**2)**0.5\n", + "i1=load*1000/v1\n", + "vsc=i1*z01\n", + "power=i1**2*r01\n", + "\n", + "#result\n", + "print \"reading of instruments=\",vsc,\"V,\",i1,\"A,\",power,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "reading of instruments= 46.8187996429 V, 20.0 A, 880.0 W\n" + ] + } + ], + "prompt_number": 140 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.39, Page Number:1153" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=1000#kVA\n", + "v1=110#V\n", + "v2=220#V\n", + "f=50#Hz\n", + "per1=98.5#%\n", + "pf=0.8\n", + "per2=98.8#%\n", + "\n", + "#calculaions\n", + "output=load*1\n", + "inpt=output*100/per2\n", + "loss=inpt-output\n", + "inpt_half=(load/2)*pf*100/per1\n", + "loss2=inpt_half-400\n", + "ans=solve([x+y-loss,(x/4)+y-loss2],[x,y])\n", + "kva=load*(ans[y]/ans[x])*0.5\n", + "output=kva*1\n", + "cu_loss=ans[y]\n", + "total_loss=2*cu_loss\n", + "efficiency=output/(output+total_loss)\n", + "#result\n", + "print \"full load copper loss=\",cu_loss,\"kW\"\n", + "print \"maximum efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load copper loss= 4.07324441521606 kW\n", + "maximum efficiency= 0.968720013059872 %\n" + ] + } + ], + "prompt_number": 148 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.40, Page Number:1154" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=200.0#v\n", + "v2=400.0#V\n", + "r01=0.15#ohm\n", + "x01=0.37#ohm\n", + "r0=600.0#ohm\n", + "x0=300.0#ohm\n", + "i2=10.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "imu=v1/x0\n", + "iw=v1/r0\n", + "i0=(imu**2+iw**2)**0.5\n", + "tantheta=iw/imu\n", + "theta=math.atan(tantheta)\n", + "theta0=math.radians(90)-theta\n", + "angle=theta0-math.acos(pf)\n", + "k=v2/v1\n", + "i2_=i2*k\n", + "i1=(i0**2+i2_**2+2*i0*i2_*math.cos(angle))**0.5\n", + "r02=k**2*r01\n", + "x02=x01*k**2\n", + "vd=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)primary current=\",i1,\"A\"\n", + "print \"ii)secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)primary current= 20.6693546639 A\n", + "ii)secondary terminal voltage= 386.32 V\n" + ] + } + ], + "prompt_number": 149 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.43, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "n1=400.0\n", + "n2=80.0\n", + "r1=0.3#ohm\n", + "r2=0.01#ohm\n", + "x1=1.1#ohm\n", + "x2=0.035#ohm\n", + "v1=2200.0#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=n2/n1\n", + "r01=r1+r2/k**2\n", + "x01=x1+x2/k**2\n", + "z01=complex(r01,x01)\n", + "z02=k**2*z01\n", + "v2=k*v1\n", + "i2=load*1000/v2\n", + "vd=i2*(z02.real*pf-z02.imag*math.sin(math.acos(pf)))\n", + "regn=vd*100/v2\n", + "v2=v2-vd\n", + "\n", + "#result\n", + "print \"i)equivalent impedence=\",z02,\"ohm\"\n", + "print \"ii)voltage regulation=\",regn,\"%\"\n", + "print \"secondary terminal voltage=\",v2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent impedence= (0.022+0.079j) ohm\n", + "ii)voltage regulation= -1.53925619835 %\n", + "secondary terminal voltage= 446.772727273 V\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.44, Page Number:1158" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "va=450.0#V\n", + "vb=120.0#V\n", + "v1=120.0#V\n", + "i1=4.2#A\n", + "w1=80.0#W\n", + "v2=9.65#V\n", + "i2=22.2#A\n", + "w2=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=vb/va\n", + "i0=i1*k\n", + "cosphi0=w1/(va*i0)\n", + "phi0=math.acos(cosphi0)\n", + "sinphi0=math.sin(phi0)\n", + "iw=i0*cosphi0\n", + "imu=i0*sinphi0\n", + "r0=va/iw\n", + "x0=va/imu\n", + "z01=v2/i2\n", + "r01=vb/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "loss=w1+w2\n", + "output=load*1000*pf\n", + "efficiency=output/(output+loss)\n", + "iron_loss=w1\n", + "cu_loss=(0.5**2)*w2\n", + "total_loss=iron_loss+cu_loss\n", + "output=load*1000*pf/2\n", + "efficiency2=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"i)equivalent circuit constants=\"\n", + "print \"z01=\",z01,\"ohm\"\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r01=\",r01,\"ohm\"\n", + "print \"ii)efficiency and voltage regulation at pf=0.8=\",efficiency*100,\"%\",regn,\"%\"\n", + "print \"iii)efficiency at half load and pf=0.8=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)equivalent circuit constants=\n", + "z01= 0.434684684685 ohm\n", + "x01= 0.360090249002 ohm\n", + "r01= 0.243486729973 ohm\n", + "ii)efficiency and voltage regulation at pf=0.8= 97.5609756098 % 2.02885695496 %\n", + "iii)efficiency at half load and pf=0.8= 97.3236009732 %\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.45, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "va=2200.0#V\n", + "vb=220.0#V\n", + "f=50.0#Hz\n", + "v1=220.0#V\n", + "i1=4.2#A\n", + "w1=148.0#W\n", + "v2=86.0#V\n", + "i2=10.5#A\n", + "w2=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "z01=v2/i2\n", + "r01=w2/i2**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/va\n", + "drop=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "regn=drop*100/va\n", + "pf=r01/z01\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"pf=\",round(pf,1),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 2.94177963326 %\n", + "pf= 0.4 lag\n" + ] + } + ], + "prompt_number": 172 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.46, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=2000.0#V\n", + "v2=400.0#V\n", + "v=60.0#V\n", + "i=4.0#A\n", + "w=100.0#W\n", + "pf=0.8\n", + "v_=400.0#V\n", + "\n", + "#calculations\n", + "z01=v/i\n", + "r01=w/i**2\n", + "x01=(z01**2-r01**2)**0.5\n", + "i1=load*1000/v1\n", + "vd=i1*(r01*pf+x01*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"voltage applied to hv side=\",v1+vd,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage applied to hv side= 2065.90767043 V\n" + ] + } + ], + "prompt_number": 182 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.47, Page Number:1159" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=250.0#V\n", + "v2=500.0#V\n", + "vs=20.0#V\n", + "i_s=12.0#A\n", + "ws=100.0#W\n", + "vo=250.0#V\n", + "io=1.0#A\n", + "wo=80.0#W\n", + "i2=10#A\n", + "v2=500#V\n", + "pg=0.8\n", + "\n", + "#calculation\n", + "cosphi0=wo/(vo*io)\n", + "iw=io*cosphi0\n", + "imu=(1-iw**2)**0.5\n", + "r0=v1/iw\n", + "x0=v1/imu\n", + "r02=ws/i_s**2\n", + "z02=vs/i_s\n", + "x02=(z02**2-r02**2)**0.5\n", + "k=v2/v1\n", + "r01=r02/k**2\n", + "x01=x02/k**2\n", + "z01=z02/k**2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=wo\n", + "total_loss=iron_loss+cu_loss\n", + "efficiency=i2*v2*pf/(i2*v2*pf+total_loss)\n", + "v1_=((vo*pf+x01)**2+(vo*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "\n", + "#result\n", + "print \"applied voltage=\",v1_,\"V\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "applied voltage= 251.442641983 V\n", + "efficiency= 96.3984469139 %\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.48, Page Number:1160" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=230.0#V\n", + "v2=230.0#V\n", + "load=3.0#kVA\n", + "vo=230.0#V\n", + "io=2.0#A\n", + "wo=100.0#W\n", + "vs=15.0#V\n", + "i_s=13.0#A\n", + "ws=120.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v1\n", + "cu_loss=ws\n", + "core_loss=wo\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+core_loss)\n", + "z=vs/i_s\n", + "r=ws/(vs**2)\n", + "x=(z**2-r**2)**0.5\n", + "regn=i*(r*pf+x*math.sin(math.acos(pf)))*100/v1\n", + "\n", + "#result\n", + "print \"regulation=\",regn,\"%\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 5.90121149256 %\n", + "efficiency= 91.6030534351 %\n" + ] + } + ], + "prompt_number": 194 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.49, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "efficiency=0.94\n", + "per=0.90\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=per*load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "core_loss=loss/2\n", + "pc=core_loss/per**2\n", + "output=load*1000*pf\n", + "cu_loss=pc\n", + "efficiency=output/(output+cu_loss+core_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.5728354534 %\n" + ] + } + ], + "prompt_number": 196 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.50, Page Number:1161" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=3.96#ohm\n", + "r2=0.0396#ohm\n", + "x1=15.8#ohm\n", + "x2=0.158#ohm\n", + "pf=0.8\n", + "v=230.0#V\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "r=r2+r1*(v2/v1)**2\n", + "x=x1*(v2/v1)**2+x2\n", + "v1_=v2+i*(r*pf+x*math.sin(math.acos(pf)))\n", + "v1=v1_*(v1/v2)\n", + "phi=math.atan(r/x)\n", + "pf=math.cos(phi)\n", + "#result\n", + "print \"a)HV side voltage necessary=\",v1,\"V\"\n", + "print \"b)pf=\",round(pf,2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)HV side voltage necessary= 2409.9826087 V\n", + "b)pf= 0.97\n" + ] + } + ], + "prompt_number": 199 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.51, Page Number:1162" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#v\n", + "r1=3.4#ohm\n", + "x1=7.2#ohm\n", + "r2=0.028#ohm\n", + "x2=0.060#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "r=r1*(v2/v1)**2+r2\n", + "x=x1*(v2/v1)**2+x2\n", + "ad=i*r*pf\n", + "dc=i*x*math.sin(math.acos(pf))\n", + "oc=v2+ad+dc\n", + "bd=i*r*math.sin(math.acos(pf))\n", + "b_f=x*pf\n", + "cf=b_f-bd\n", + "v1_=(oc**2+cf**2)**0.5\n", + "v1=v1_*(v1/v2)\n", + "\n", + "#result\n", + "print \"terminal voltage on hv side=\",v1,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage on hv side= 2229.28500444 V\n" + ] + } + ], + "prompt_number": 200 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.52, Page Number:1163" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "i1=0.7#A\n", + "w1=65.0#W\n", + "v=15.0#V\n", + "i2=10.0#A\n", + "w2=75.0#W\n", + "pf=0.80\n", + "#calculation\n", + "il=load*1000/v1\n", + "ih=load*1000/v2\n", + "cu_loss=w2\n", + "constant_loss=w1\n", + "z=v/i2\n", + "r=w2/i2**2\n", + "x=(z**2-r**2)**0.5\n", + "efficiency=load*100000/(load*1000+cu_loss+constant_loss)\n", + "regn=i2*(r*pf+x*math.sin(math.acos(pf)))\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency,\"%\"\n", + "print \"full load regulation=\",regn,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.6183574879 %\n", + "full load regulation= 13.7942286341 V\n" + ] + } + ], + "prompt_number": 209 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.53, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=3300.0#V\n", + "v2=230.0#V\n", + "load=50.0#kVA\n", + "z=4\n", + "cu_loss=1.8\n", + "\n", + "#calculations\n", + "x=(z**2-cu_loss**2)**0.5\n", + "i1=load*1000/v1\n", + "r01=cu_loss*v1/(100*i1)\n", + "x01=x*v1/(100*i1)\n", + "z01=z*v1/(100*i1)\n", + "isc=i1*100/z\n", + "print \n", + "#result\n", + "print \"%x=\",x,\"%\"\n", + "print \"resistance=\",r01,\"ohm\"\n", + "print \"reactance=\",x01,\"ohm\"\n", + "print \"impedence=\",z01,\"ohm\"\n", + "print \"primary sc current=\",isc,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "%x= 3.5721142199 %\n", + "resistance= 3.9204 ohm\n", + "reactance= 7.78006477094 ohm\n", + "impedence= 8.712 ohm\n", + "primary sc current= 378.787878788 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.54, Page Number:1164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "vo=220.0#V\n", + "i_o=4.2#A\n", + "wo=148.0#W\n", + "vs=86.0#V\n", + "i_s=10.5#A\n", + "ws=360.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r01=ws/i_s**2\n", + "r02=k**2*r01\n", + "z10=vs/i_s\n", + "x01=(z10**2-r01**2)**0.5\n", + "x02=k**2*x01\n", + "i1=load*1000/v1\n", + "v1_=((v1*pf+i1*r01)**2+(v1*math.sin(math.acos(pf))+i1*x01)**2)**0.5\n", + "regn1=(v1_-v1)/v1\n", + "i2=i1/k\n", + "core_loss=wo\n", + "cu_loss=i1**2*r01\n", + "cu_loss_half=(i1/2)**2*r01\n", + "efficiency=load*1000*pf*100/(load*1000*pf+core_loss+cu_loss)\n", + "efficiency_half=(load/2)*1000*pf*100/((load/2)*1000*pf+core_loss+cu_loss)\n", + "print v1_ \n", + "#result\n", + "print \"a)core loss=\",wo,\"W\"\n", + "print \"b)equivalent resistance primary=\",r01,\"ohm\"\n", + "print \"c)equivalent resistance secondary=\",r02,\"ohm\"\n", + "print \"d)equivalent reactance primary=\",x01,\"ohm\"\n", + "print \"e)equivalent reactance secondary=\",x02,\"ohm\"\n", + "print \"f)regulation=\",regn1*100,\"%\"\n", + "print \"g)efficiency at full load=\",efficiency,\"%\"\n", + "print \"h)efficiency at half load=\",efficiency_half,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "2265.01840886\n", + "a)core loss= 148.0 W\n", + "b)equivalent resistance primary= 3.26530612245 ohm\n", + "c)equivalent resistance secondary= 0.0326530612245 ohm\n", + "d)equivalent reactance primary= 7.51143635755 ohm\n", + "e)equivalent reactance secondary= 0.0751143635755 ohm\n", + "f)regulation= 2.95538222101 %\n", + "g)efficiency at full load= 97.4548448466 %\n", + "h)efficiency at half load= 95.0360304208 %\n" + ] + } + ], + "prompt_number": 222 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.55, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "er=1.0/100\n", + "ex=5.0/100\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "regn2=er*1\n", + "regn3=er*pf-ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation with pf=0.8 lag=\",regn*100,\"%\"\n", + "print \"ii)regulation with pf=1=\",regn2*100,\"%\"\n", + "print \"iii)regulation with pf=0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation with pf=0.8 lag= 3.8 %\n", + "ii)regulation with pf=1= 1.0 %\n", + "iii)regulation with pf=0.8 lead= -2.2 %\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.56, Page Number:1165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500#kVA\n", + "v1=3300#V\n", + "v2=500#V\n", + "f=50#Hz\n", + "per=0.97\n", + "ratio=3.0/4\n", + "zper=0.10\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "output=load*ratio*1\n", + "x=0.75\n", + "pi=0.5*(output*(1/per-1))\n", + "pc=pi/x**2\n", + "i1=load*1000/v1\n", + "r=pc*1000/i1**2\n", + "er=i1*r/v1\n", + "ez=zper\n", + "ex=(ez**2-er**2)**0.5\n", + "regn=er*pf+ex*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"regulation=\",regn*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 7.52529846012 %\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.57, Page Number:1166" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "cu_loss=1.5#%\n", + "xdrop=3.5#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "pur=cu_loss/100\n", + "pux=xdrop/100\n", + "regn2=pur*pf+pux*math.sin(math.acos(pf))\n", + "regn1=pur*1\n", + "regn3=pur*pf-pux*math.sin(math.acos(pf))\n", + "\n", + "#result\n", + "print \"i)regulation at unity pf=\",regn1*100,\"%\"\n", + "print \"ii)regulation at 0.8 lag=\",regn2*100,\"%\"\n", + "print \"iii)regulation at 0.8 lead=\",regn3*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)regulation at unity pf= 1.5 %\n", + "ii)regulation at 0.8 lag= 3.3 %\n", + "iii)regulation at 0.8 lead= -0.9 %\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.58, Page Number:1168" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#KVA\n", + "w1=5.0#kW\n", + "w2=7.5#kW\n", + "efficiency=0.75\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "loss=total_loss/2\n", + "cu_loss=efficiency**2*w2/2\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+cu_loss+2.5)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.0186963113 %\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.59, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2000.0#V\n", + "v2=200.0#V\n", + "w1=350.0#W\n", + "w2=400.0#W\n", + "\n", + "#calculation\n", + "total_loss=w1+w2\n", + "output=load*1000*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=w2*(0.5)**2\n", + "total_loss=cu_loss+w1\n", + "efficiency2=(load*1000/2)/((load*1000/2)+total_loss)\n", + "\n", + "#result\n", + "print \"i)efficiency at full load=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency at full load= 97.0873786408 %\n", + "ii)efficiency at half load= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 232 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.60, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.75\n", + "\n", + "#calculation\n", + "ratio=efficiency**2\n", + "\n", + "#result\n", + "print \"ratio of P1 and P2=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of P1 and P2= 0.5625\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.61, Page Number:1170" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=230.0#V\n", + "load1=150.0#KVA\n", + "f=50.0#Hz\n", + "loss=1.4#kW\n", + "cu_loss=1.6#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "load=load1*(cu_loss/loss)**0.5\n", + "total_loss=loss*2\n", + "output=load*1\n", + "efficiency=output/(output+total_loss)\n", + "cu_loss=cu_loss*(0.5)**2\n", + "total_loss=total_loss+cu_loss\n", + "output2=(load/2)*pf\n", + "efficiency2=output2/(output2+total_loss)\n", + "\n", + "#result\n", + "print \"i)kVA load for max efficiency=\",load1,\"kVA\"\n", + "print \"max efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)efficiency at half load=\",efficiency2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load for max efficiency= 150.0 kVA\n", + "max efficiency= 98.283858876 %\n", + "ii)efficiency at half load= 95.2481856352 %\n" + ] + } + ], + "prompt_number": 237 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.62, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%pylab\n", + "#variable declaration\n", + "load=5#kVA\n", + "v1=2300#V\n", + "v2=230#V\n", + "f=50#Hz\n", + "iron_loss=40#W\n", + "cu_loss=112#W\n", + "pf=0.8\n", + "#calculations\n", + "def e(k):\n", + " e=k*pf*1000*100/(k*pf*1000+(cu_loss*(k/5)**2+40))\n", + " return(e)\n", + "\n", + "e1=e(1.25)\n", + "e2=e(2.5)\n", + "e3=e(3.75)\n", + "e4=e(5.0)\n", + "e5=e(6.25)\n", + "e6=e(7.5)\n", + "\n", + "K=[1.25,2.5,3.75,5.0,6.25,7.5]\n", + "E=[e1,e2,e3,e4,e5,e6]\n", + "a=plot(K,E)\n", + "xlabel(\"load,kVA\") \n", + "ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "show(a)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.63, Page Number:1171" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kVA\n", + "efficiency=0.98\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "output=load*pf\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "x=loss*1000/(1+9.0/16)\n", + "y=(9.0/16)*x\n", + "cu_loss=x*(1.0/2)**2\n", + "total_loss=cu_loss+y\n", + "output=load*pf*0.5\n", + "efficiency=output/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"efficiency at hald load=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency at hald load= 97.9216626699 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.64, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=25.0#kVA\n", + "v1=2200.0#V\n", + "v2=220.0#V\n", + "r1=1.0#ohm\n", + "r2=0.01#ohm\n", + "pf=0.8\n", + "loss=0.80\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=r2+k**2*r1\n", + "i2=load*1000/v2\n", + "cu_loss=i2**2*r02\n", + "iron_loss=loss*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "output=load*pf*1000\n", + "efficiency=output/(output+total_loss)\n", + "\n", + "#result\n", + "print \"secondary resistance=\",r02,\"ohm\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary resistance= 0.02 ohm\n", + "efficiency= 97.7284199899 %\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.65, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "r01=0.5#ohm\n", + "x01=1.5#ohm\n", + "ratio=3.0/4\n", + "pf=0.8\n", + "v=220.0#V\n", + "loss=100.0#W\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=k**2*r01\n", + "x02=k**2*x01\n", + "i2=1000*load*ratio/v2\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "cu_loss=i2**2*r02\n", + "total_loss=loss+cu_loss\n", + "output=load*ratio*pf\n", + "inpt=output*1000+total_loss\n", + "efficiency=output*1000/(inpt)\n", + "#result\n", + "print \"output=\",output,\"w\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 2.4 w\n", + "efficiency= 91.8660287081 %\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.66, Page Number:1172" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=440.0#V\n", + "v2=220.0#V\n", + "f=50.0#Hz\n", + "loss=324.0#W\n", + "cu_loss=100.0#W\n", + "pf=0.8\n", + "#calculations\n", + "cu_loss=4*cu_loss\n", + "efficiency=load*pf/(load*pf+cu_loss/1000+loss/1000)\n", + "per=(loss/cu_loss)**0.5\n", + "\n", + "#result\n", + "print \"i)efficiency=\",efficiency*100,\"%\"\n", + "print \"ii)percent of full-load=\",per*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)efficiency= 95.6708921311 %\n", + "ii)percent of full-load= 90.0 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.67, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=4.0#kVA\n", + "v1=200.0#V\n", + "v2=400.0#V\n", + "pf=0.8\n", + "vo=200.0#V\n", + "io=0.8#A\n", + "wo=70.0#W\n", + "vs=20.0#V\n", + "i_s=10.0#A\n", + "ws=60.0#W\n", + "\n", + "#calculation\n", + "i2=load*1000/v2\n", + "loss=ws+wo\n", + "output=load*pf\n", + "efficiency=output/(output+loss/1000)\n", + "z02=vs/i_s\n", + "r02=ws/i2**2\n", + "x02=(z02**2-r02**2)**0.5\n", + "drop=i2*(r02*pf+x02*math.sin(math.acos(pf)))\n", + "v2=v2-drop\n", + "i1=load*1000/v1\n", + "load=load*(wo/ws)**0.5\n", + "load=load*1\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"secondary voltage=\",v2,\"V\"\n", + "print \"current=\",i1,\"A\"\n", + "print \"load at unity pf=\",load,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.0960960961 %\n", + "secondary voltage= 383.752729583 V\n", + "current= 20.0 A\n", + "load at unity pf= 4.32049379894 kW\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.69, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x=Symbol('x')\n", + "y=Symbol('y')\n", + "load=600.0#KVA\n", + "efficiency=0.92\n", + "per=0.60\n", + "\n", + "#calculation\n", + "inpt=load/efficiency\n", + "loss1=inpt-load\n", + "inpt2=load/(2*efficiency)\n", + "loss2=inpt2-load/2\n", + "ans=solve([x+y-loss1,x+y/4-loss2],[x,y])\n", + "cu_loss=ans[y]*0.36\n", + "loss=cu_loss+ans[x]\n", + "output=load*per\n", + "efficiency=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "389.913043478261\n", + "efficiency= 92.3282783229260 %\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.70, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "e1=0.98\n", + "e2=0.80\n", + "pf=8\n", + "z=0.05\n", + "pf1=0.8\n", + "\n", + "#calculations\n", + "output=load*pf1*e2\n", + "inpt=output/e1\n", + "loss=-output+inpt\n", + "cu_loss=loss/2\n", + "cu_loss_full=cu_loss/pf1**2\n", + "r=round(cu_loss_full*100/load)\n", + "sin=math.sin(math.acos(pf1))\n", + "regn=(r*pf1+5*sin)+(1.0/200)*(5*pf1-r*sin)**2\n", + "#result\n", + "print \"voltage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 3.8578 %\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.71, Page Number:1174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#KVA\n", + "v1=5000.0#V\n", + "v2=440.0#V\n", + "f=25.0#Hz\n", + "cu_loss=1.5\n", + "we=0.5\n", + "wh=0.6\n", + "v2=10000.0\n", + "#calculations\n", + "cu_loss1=cu_loss*load/100\n", + "we1=we*load/100\n", + "wh1=wh*load/100\n", + "cu_loss2=cu_loss1\n", + "we2=(we1*(50.0/25.0)**2)\n", + "wh2=(wh1*(50.0/25))\n", + "e1=load*100/(load+cu_loss1+we1+wh1)\n", + "e2=load*2*100/(load*2+cu_loss2+we2+wh2)\n", + "\n", + "#result\n", + "print \"full load efficiency in first case=\",e1,\"%\"\n", + "print \"full load efficiency in second case=\",e2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "20.47 0.06 0.05\n", + "full load efficiency in first case= 97.4658869396 %\n", + "full load efficiency in second case= 97.7039570103 %\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.72, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=300#KVA\n", + "r=1.5#%\n", + "load1=173.2#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss=r*load*1000/100\n", + "iron_loss=(load1/load)**2*cu_loss\n", + "total_loss=cu_loss+iron_loss\n", + "efficiency=(load*pf)*100/((load*pf)+(total_loss/1000))\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.5610105096 %\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.73, Page Number:1175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100#kVA\n", + "v1=2300#V\n", + "v2=230.0#V\n", + "f=50#Hz\n", + "phim=1.2#Wb/m2\n", + "a=0.04#m2\n", + "l=2.5#m\n", + "bm=1200\n", + "inpt=1200#W\n", + "pi=400#W\n", + "efficiency=0.75\n", + "pf=0.8\n", + "f2=100#Hz\n", + "\n", + "#calculation\n", + "n1=v1/(4.44*f*phim*a)\n", + "k=v2/v1\n", + "n2=k*n1\n", + "i=1989/n1\n", + "cu_loss=efficiency**2*inpt\n", + "total_loss=pi+cu_loss\n", + "output=load*efficiency*pf\n", + "efficiency=output*100/(output+total_loss/1000)\n", + "\n", + "#result\n", + "print \"a)n1=\",round(n1)\n", + "print \" n2=\",round(n2)\n", + "print \"b)magnetising current=\",i,\"A\"\n", + "print \"c)efficiency=\",efficiency,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.00643416423287\n", + "a)n1= 216.0\n", + " n2= 22.0\n", + "b)magnetising current= 9.21512347826 A\n", + "c)efficiency= 98.2398690135 %\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.74, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=1.8\n", + "x=5.4\n", + "\n", + "#calculation\n", + "pf=r/x\n", + "phi=math.atan(pf)\n", + "phi2=math.atan(x/r)\n", + "regn=r*math.cos(phi2)+x*math.sin(phi2)\n", + "efficiency=100/(100+r*2)\n", + "\n", + "#result\n", + "print \"a)i)phi=\",math.degrees(phi),\"degrees\"\n", + "print \" ii)regulation=\",regn,\"%\"\n", + "print \"b)efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)i)phi= 18.4349488229 degrees\n", + " ii)regulation= 5.6920997883 %\n", + "b)efficiency= 96.5250965251 %\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.75, Page Number:1176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "f=50.0#Hz\n", + "v1=500.0#V\n", + "v2=250.0#V\n", + "vo=250.0#V\n", + "io=3.0#A\n", + "wo=200.0#W\n", + "vsc=15.0#V\n", + "isc=30.0#A\n", + "wsc=300.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=load*1000/v2\n", + "cu_loss=(i/isc)**2*wsc\n", + "output=load*1000*pf\n", + "efficiency=output*100/(output+cu_loss+wo)\n", + "z=vsc/isc\n", + "r=wsc/isc**2\n", + "x=(z**2-r**2)**0.5\n", + "regn=(i/v2)*(r*pf-x*math.sin(math.acos(pf)))*v2\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 91.6030534351 %\n", + "regulation= 1.72239475667 %\n" + ] + } + ], + "prompt_number": 64 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.76, Page Number:1177" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40.0#kVA\n", + "loss=400.0#W\n", + "cu_loss=800.0#W\n", + "\n", + "#calculation\n", + "x=(loss/cu_loss)**0.5\n", + "output=load*x*1\n", + "efficiency=output/(output+load*2/100)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.2493723732 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.77, Page Number:1178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#kVA\n", + "v1=500#V\n", + "v2=250#V\n", + "vsc=60#V\n", + "isc=20#A\n", + "wsc=150#W\n", + "per=1.2\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=load*1000/v1\n", + "cu_loss=per**2*wsc\n", + "output=per*load*1.0\n", + "efficiency=output*100/(output+cu_loss*2/1000)\n", + "output=load*1000*pf\n", + "e2=output*100/(output+cu_loss+wsc)\n", + "\n", + "#result\n", + "print \"maximum efficiency=\",efficiency,\"%\"\n", + "print \"full-load efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum efficiency= 96.5250965251 %\n", + "full-load efficiency= 95.6251494143 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.78, Page Number:1181" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#kVA\n", + "cu_loss=4.5#kW\n", + "iron_loss=3.5#kW\n", + "t1=6.0#hrs\n", + "t2=10.0#hrs\n", + "t3=4.0#hrs\n", + "t4=4.0#hrs\n", + "load1_=400.0#kW\n", + "load2_=300.0#kW\n", + "load3_=100.0#kW\n", + "pf1=0.8\n", + "pf2=0.75\n", + "pf3=0.8\n", + "\n", + "#calculations\n", + "load1=load1_/pf1\n", + "load2=load2_/pf2\n", + "load3=load3_/pf3\n", + "wc1=cu_loss\n", + "wc2=cu_loss*(load2/load1)**2\n", + "wc3=cu_loss*(load3/load1)**2\n", + "twc=(t1*wc1)+(t2*wc2)+(t3*wc3)+(t4*0)\n", + "iron_loss=24*iron_loss\n", + "total_loss=twc+iron_loss\n", + "output=(t1*load1_)+(t2*load2_)+(t3*load3_)\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(efficiency,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.6 %\n" + ] + } + ], + "prompt_number": 86 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.79, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#kVA\n", + "loss=3.0#kW\n", + "tf=3.0#hrs\n", + "th=4.0#hrs\n", + "\n", + "#calculation\n", + "iron_loss=loss*24/2\n", + "wcf=loss*tf/2\n", + "wch=loss/8\n", + "wch=wch*4\n", + "total_loss=iron_loss+wch+wcf\n", + "output=load*tf+load*th/2\n", + "efficiency=output*100/(output+total_loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 92.2509225092 %\n" + ] + } + ], + "prompt_number": 89 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.80, Page Number:1182" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=100.0#KW\n", + "efficiency=0.98\n", + "tf=4.0#hrs\n", + "th=6.0#hrs\n", + "t10=14.0#hrs\n", + "\n", + "#calculations\n", + "#1st transformer\n", + "inpt=load/efficiency\n", + "tloss=inpt-load\n", + "y=tloss/2\n", + "x=y\n", + "iron_loss=x*24\n", + "cu_loss=x*tf+th*(x/2**2)+t10*(x/10**2)\n", + "loss=iron_loss+cu_loss\n", + "output=tf*load+th*load/2+t10*10\n", + "e1=output/(output+loss)\n", + "#2nd transformer\n", + "y=tloss/(1+1.0/4)\n", + "x=(tloss-y)\n", + "iron_loss=x*24\n", + "wc=tf*y+th*(y/2**2)+t10*(y/10**2)\n", + "loss=iron_loss+wc\n", + "e2=output/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency of forst transformer=\",e1*100,\"%\"\n", + "print \"efficiency ofsecond transformer=\",e2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.408163265306 1.63265306122\n", + "efficiency of forst transformer= 96.5245532574 %\n", + "efficiency ofsecond transformer= 97.7876610788 %\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.81, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "efficiency=0.95\n", + "nl=10.0#hrs\n", + "ql=7.0#hrs\n", + "hl=5.0#hrs\n", + "fl=2.0#hrs\n", + "\n", + "#calculations\n", + "inpt=load/efficiency\n", + "loss=inpt-load\n", + "wc_fl=loss/2\n", + "iron_loss=loss/2\n", + "wc_fl_4=(1.0/4)**2*wc_fl\n", + "wc_fl_2=(1.0/2)**2*wc_fl\n", + "wc_ql=ql*wc_fl_4\n", + "wc_hl=hl*wc_fl_2\n", + "wc_fl_2=fl*wc_fl\n", + "wc=wc_ql+wc_hl+wc_fl_2\n", + "wh=wc\n", + "loss=wh+24*iron_loss\n", + "output=load*1\n", + "half_output=(output/2)\n", + "q_load=(load/4)\n", + "output=ql*q_load+hl*half_output+fl*output\n", + "e=output*100/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 89.5592740985 %\n" + ] + } + ], + "prompt_number": 115 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.82, Page Number:1183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.98\n", + "load=15#kVA\n", + "t1=12.0#hrs\n", + "t2=6.0#hrs\n", + "t3=6.0#hrs\n", + "pf1=0.5\n", + "pf2=0.8\n", + "k1=2#kW\n", + "k2=12#kW\n", + "\n", + "#calculations\n", + "output=load*1\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "wc=loss/2\n", + "wi=loss/2\n", + "w1=k1/pf1\n", + "w2=k2/pf2\n", + "wc1=wc*(4/load)\n", + "wc2=wc\n", + "wc12=t1*wc1\n", + "wc6=t2*wc2\n", + "wc=(wc12+wc6)\n", + "wi=24*wi\n", + "output=(k1*t1)+(t2*k2)\n", + "inpt=output+wc+wi\n", + "e=output*100/inpt\n", + "\n", + "#result\n", + "print \"efficiency=\",e,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.918367346939 3.67346938776\n", + "efficiency= 95.4351795496 %\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.83, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=150.0#KVA\n", + "l1_=100.0#kVA\n", + "t=3.0#hrs\n", + "loss=1.0#KW\n", + "\n", + "#calculations\n", + "l1=l1_/2\n", + "l2=l1_\n", + "output=load*1\n", + "loss=loss*2\n", + "e1=output/(output+loss)\n", + "wc1=t*(1.0/3)**2*1\n", + "wc2=8*(2.0/3)**2*1\n", + "wc=wc1+wc2\n", + "wi=24*1\n", + "loss=wc+wi\n", + "output=3*(l1*1)+8*(l2*1)\n", + "e2=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"ordinary efficiency=\",e1*100,\"%\"\n", + "print \"all day efficiency=\",e2,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ordinary efficiency= 98.6842105263 %\n", + "all day efficiency= 97.1480513578 %\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.84, Page Number:1184" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50#KVA\n", + "efficiency=0.94#%\n", + "nl=10\n", + "hl=5.0\n", + "ql=6.0\n", + "fl=3.0\n", + "\n", + "#calculations\n", + "pi=0.5*(load*1000)*(1-efficiency)/efficiency\n", + "wch=(0.5)**2*pi\n", + "eh=wch*hl/1000\n", + "wcq=(0.25)**2*pi\n", + "eq=ql*wcq/1000\n", + "e3=pi*3/1000\n", + "e2=pi*24/1000\n", + "e=25*hl+12.5*ql+50*fl\n", + "efficiency=e/(e+e2+eh+eq+e3)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.4557217274 %\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.85, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "t1=7.0#hrs\n", + "t2=4.0#hrs\n", + "t3=8.0#hrs\n", + "t4=5.0#hrs\n", + "k1=3.0#kW\n", + "k2=8.0#kW\n", + "pf1=0.6\n", + "pf2=0.8\n", + "\n", + "#calculations\n", + "x1=k1/(pf1*load)\n", + "x2=k2/(pf2*load)\n", + "x3=load/(1*load)\n", + "pc1=(0.5)**2*0.1\n", + "pc2=pc3=0.10\n", + "o1=k1*t1\n", + "o2=k2*t2\n", + "o3=k2*load\n", + "output=o1+o2+o3\n", + "wc1=pc1*t1\n", + "wc2=pc2*t2\n", + "wc3=pc3*t3\n", + "cu_loss=wc1+wc2+wc3\n", + "loss=400.0*24/10000\n", + "efficiency=output/(output+loss+cu_loss)\n", + "\n", + "#result\n", + "print \"efficency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficency= 98.27465179 %\n" + ] + } + ], + "prompt_number": 142 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.86, Page Number:1185" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=.98\n", + "load=15.0#kVA\n", + "t1=12.0\n", + "t2=6.0\n", + "t3=6.0\n", + "pf1=0.8\n", + "pf2=0.8\n", + "pf3=0.9\n", + "k1=2.0\n", + "k2=12.0\n", + "k3=18.0\n", + "#calculations\n", + "output=load*1000\n", + "inpt=output/efficiency\n", + "loss=inpt-output\n", + "cu_loss=loss/2\n", + "x1=k1/(0.5*load)\n", + "x2=k2/(pf2*load)\n", + "x3=k3/(pf3*load)\n", + "wc1=0.131\n", + "wc2=0.918\n", + "wc3=1.632\n", + "o1=t1*k1\n", + "o2=t2*k2\n", + "o3=t3*k3\n", + "output=o1+o2+o3\n", + "loss=wc1+wc2+wc3+0.153*24\n", + "efficiency=(output*100)/(output+loss)\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 96.9798386522 %\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.87, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.0#kW\n", + "v1=115.0#V\n", + "v2=230.0#V\n", + "\n", + "#calculation\n", + "k=v1/v2\n", + "power=load*(1-k)\n", + "power2=k*load\n", + "\n", + "#result\n", + "print \"a)power transferred inductively=\",power,\"kW\"\n", + "print \"b)power transferred conductively=\",power2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)power transferred inductively= 1.5 kW\n", + "b)power transferred conductively= 1.5 kW\n" + ] + } + ], + "prompt_number": 145 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.88, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=500.0#V\n", + "v2=400.0#V\n", + "i=100.0#A\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "i1=k*i\n", + "saving=k*100\n", + "\n", + "#result\n", + "print \"economy of cu=\",saving" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "economy of cu= 80.0\n" + ] + } + ], + "prompt_number": 147 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.89, Page Number:1188" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=500.0#KVA\n", + "f=50.0#Hz\n", + "v1=6600.0#V\n", + "v2=5000.0#V\n", + "e=8.0#V\n", + "phim1=1.3#Wb/m2\n", + "\n", + "#calculations\n", + "phim=e/(4.44*f)\n", + "area=phim/phim1\n", + "n1=v1/e\n", + "n2=v2/e\n", + "\n", + "#result\n", + "print \"core area=\",area*10000,\"m2\"\n", + "print \"number of turns on the hv side=\",n1\n", + "print \"number of turns on the lv side=\",n2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "core area= 277.2002772 m2\n", + "number of turns on the hv side= 825.0\n", + "number of turns on the lv side= 625.0\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.90, Page Number:1189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2640*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i1_-i2\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 219.12 kVA\n", + "iv)per cent increase in kVA= 1095.6 %\n", + "v)I1= 91.3 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.91, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#KVA\n", + "v1=2400.0#V\n", + "v2=240.0#V\n", + "\n", + "#calculation\n", + "i1=round(load*1000/v1,1)\n", + "k=v2/v1\n", + "i2=i1/k\n", + "kva=2160*i2*0.001\n", + "kva_per=kva*100/load\n", + "i1_=kva*1000/v1\n", + "ic=i2-i1_\n", + "over=ic*100/i1\n", + "\n", + "#result\n", + "print \"i)i1=\",i1,\"A\"\n", + "print \"ii)i2=\",i2,\"A\"\n", + "print \"iii)kVA rating=\",kva,\"kVA\"\n", + "print \"iv)per cent increase in kVA=\",kva_per,\"%\"\n", + "print \"v)I1=\",i1_,\"A\"\n", + "print \" Ic=\",ic,\"A\"\n", + "print \"vi)per cent overload=\",over,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)i1= 8.3 A\n", + "ii)i2= 83.0 A\n", + "iii)kVA rating= 179.28 kVA\n", + "iv)per cent increase in kVA= 896.4 %\n", + "v)I1= 74.7 A\n", + " Ic= 8.3 A\n", + "vi)per cent overload= 100.0 %\n" + ] + } + ], + "prompt_number": 160 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.92, Page Number:1190" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5.0#kVA\n", + "v1=110.0#V\n", + "v2=110.0#V\n", + "f=50.0#Hz\n", + "efficiency=0.95\n", + "iron_loss=50.0#W\n", + "v=220.0#V\n", + "\n", + "#calculations\n", + "cu_loss=load*1000/efficiency-load*1000-iron_loss\n", + "efficiency=load*1000/(load*1000+cu_loss/4+iron_loss)\n", + "i2=(load*1000+cu_loss/4+iron_loss)/v\n", + "\n", + "#result\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"current drawn on hv side=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 97.9760216579 %\n", + "current drawn on hv side= 23.1967703349 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.93, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500#V\n", + "v2=2300#V\n", + "\n", + "#calculations\n", + "kva=(v1+v2)*50*0.001\n", + "\n", + "#result\n", + "print \"voltage output=\",v1+v2,\"V\"\n", + "print \"kVA rating of auto transformer=\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage output= 13800 V\n", + "kVA rating of auto transformer= 690.0 kVA\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.94, Page Number:1191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=11500.0#V\n", + "v2=2300.0#V\n", + "load=100.0#KVA\n", + "\n", + "#calculations\n", + "i1=load*100/v1\n", + "i2=load*100/v2\n", + "kva1=(v1+v2)*i1/(100)\n", + "kva2=(v1+v2)*i2/(100)\n", + "#result\n", + "print \"voltage ratios=\",(v1+v2)/v1,\"or\",(v1+v2)/v2\n", + "print \"kVA rating in first case=\",kva1\n", + "print \"kVA rating in second case=\",kva2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage ratios= 1.2 or 6.0\n", + "kVA rating in first case= 120.0\n", + "kVA rating in second case= 600.0\n" + ] + } + ], + "prompt_number": 167 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.95, Page Number:1192" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2400.0#v\n", + "v2=240.0#V\n", + "load=50.0#kVA\n", + "\n", + "#calculations\n", + "i1=load*1000/v1\n", + "i2=load*1000/v2\n", + "output=2640*i2\n", + "i=i2*2640/v1\n", + "k=2640/v1\n", + "poweri=v1*i1*0.001\n", + "power=output/1000-poweri\n", + "\n", + "#result\n", + "print \"rating of the auto-transformer=\",output/1000,\"kVA\"\n", + "print \"inductively transferred powers=\",poweri,\"kW\"\n", + "print \"conductively transferred powers=\",power,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rating of the auto-transformer= 550.0 kVA\n", + "inductively transferred powers= 50.0 kW\n", + "conductively transferred powers= 500.0 kW\n" + ] + } + ], + "prompt_number": 169 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.96, Page Number:1196" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "za=complex(0.5,3)\n", + "zb=complex(0.,10)\n", + "load=100#KW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load/pf*complex(pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa)*math.cos(math.atan(sa.imag/sa.real)),\"kW\"\n", + "print \"SB=\",abs(sb)*math.cos(math.atan(sb.imag/sb.real)),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "96.082805253\n", + "SA= 74.5937961595 kW\n", + "SB= 25.4062038405 kW\n" + ] + } + ], + "prompt_number": 174 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.97, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r1=0.005#ohm\n", + "r2=0.01#ohm\n", + "x1=0.05#ohm\n", + "x2=0.04#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "za=complex(r1,x1)\n", + "zb=complex(r2,x2)\n", + "pf=math.cos(math.degrees((-1)*math.acos(pf))*math.degrees(math.atan((za/zb).imag/(za/zb).real)))\n", + "\n", + "#result\n", + "print \"load of B=\",abs(za/zb)\n", + "print \"pf of B=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load of B= 1.21872643265\n", + "pf of B= 0.613584256393\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.98, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=250#kVA\n", + "za=complex(1,6)\n", + "zb=complex(1.2,4.8)\n", + "load1=500#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "s=load1*complex(-pf,math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 224.451917244 -39.3923099293\n", + "SB= 275.942423833 -34.8183886694\n" + ] + } + ], + "prompt_number": 205 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.99, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabledeclaration\n", + "load=100.0#KW\n", + "r1=0.5\n", + "x1=8.0\n", + "r2=0.75\n", + "x2=4.0\n", + "load1=180.0#kW\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "load=load1/pf\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "z1=complex(r1,x1)\n", + "z2=complex(r2,x2)\n", + "s1=s*z2/(z1+z2)\n", + "s2=s*z1/(z1+z2)\n", + "kw1=abs(s1)*math.cos(math.atan(s1.imag/s1.real))\n", + "kw2=abs(s2)*math.cos(math.atan(s2.imag/s2.real))\n", + "\n", + "#result\n", + "print \"kW1=\",kw1,\"kW\"\n", + "print \"kW2=\",kw2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "(1.25+12j)\n", + "kW1= 58.119626171 kW\n", + "kW2= 121.880373829 kW\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.100, Page Number:1197" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=200.0#kW\n", + "pf=0.85\n", + "za=complex(1,5)\n", + "zb=complex(2,6)\n", + "\n", + "#calculations\n", + "s=load/pf*complex(0.85,-0.527)\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"kVA for A=\",abs(sa),math.cos(math.atan(sa.imag/sa.real)),\"lag\"\n", + "print \"kVA for B=\",abs(sb),math.cos(math.atan(sb.imag/sb.real)),\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA for A= 130.53263665 0.819364787986 lag\n", + "kVA for B= 105.238776124 0.884143252833 lag\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.101, Page Number:1198" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=2200.0#V\n", + "v2=110.0#V\n", + "load=125.0#kVA\n", + "pf=0.8\n", + "za=complex(0.9,10)\n", + "zb=(100/50)*complex(1.0,5)\n", + "\n", + "#calculation\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 63.0780848499 -39.929442891 degrees\n", + "SB= 62.1031510961 -33.7622749748 degrees\n" + ] + } + ], + "prompt_number": 218 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.102, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=500#kVA\n", + "za=complex(1,5)\n", + "load2=250#kVA\n", + "zb=complex(1.5,4)\n", + "v2=400#V\n", + "load=750#kVA\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zb=(500/load2)*zb\n", + "s=load*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 471.125736359 -40.3232138964 degrees\n", + "SB= 281.165527855 -31.0771011508 degrees\n" + ] + } + ], + "prompt_number": 219 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.103, Page Number:1199" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=1000#A\n", + "pf=0.8\n", + "za=complex(2,3)\n", + "zb=complex(2.5,5)\n", + "\n", + "#calculations\n", + "i=i*complex(pf,-math.sin(math.acos(pf)))\n", + "ratio=zb/za\n", + "ib=i/(1+ratio)\n", + "ia=i-ib\n", + "ratio=ia.real/ib.real\n", + "\n", + "#result\n", + "print \"IA=\",ia\n", + "print \"IB=\",ib\n", + "print \"ratio of output=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= (504.451038576-341.246290801j)\n", + "IB= (295.548961424-258.753709199j)\n", + "ratio of output= 1.70682730924\n" + ] + } + ], + "prompt_number": 220 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.104, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v1=1000.0#V\n", + "v2=500.0#V\n", + "load=100.0#kVA\n", + "za=complex(1.0,5.0)\n", + "zb=complex(2.0,2.0)\n", + "load1=300.0#kVA\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "zb=(100.0/250)*zb\n", + "s=load1*complex(pf,-math.sin(math.acos(pf)))\n", + "sa=s*zb/(za+zb)\n", + "sb=s*za/(za+zb)\n", + "zab=za*zb/(za+zb)\n", + "drop=zab.real*240/100+zab.imag*180/100\n", + "v2=v2-v2*drop/100\n", + "\n", + "#result\n", + "print \"SA=\",abs(sa),math.degrees(math.atan(sa.imag/sa.real)),\"degrees\"\n", + "print \"SB=\",abs(sb),math.degrees(math.atan(sb.imag/sb.real)),\"degrees\"\n", + "print \"secondary voltage=\",v2,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "SA= 55.8895719399 -64.6284382469 degrees\n", + "SB= 251.890896741 -30.9383707209 degrees\n", + "secondary voltage= 486.177874187 V\n" + ] + } + ], + "prompt_number": 223 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.105, Page Number:1200" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n11=5000.0\n", + "n12=440.0\n", + "load1=200#kVA\n", + "n21=5000.0\n", + "n22=480.0\n", + "load2=350#kVA\n", + "x=3.5\n", + "\n", + "#calculation\n", + "i1=load1*1000/n12\n", + "i2=load2*1000/n22\n", + "x1=x*n12/(100*i1)\n", + "x2=x*n22/(100*i2)\n", + "ic=(n22-n12)/0.057\n", + "\n", + "#result\n", + "print \"no-load circulation current=\",ic/i1,\"times the normal current of 200 kVA unit\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no-load circulation current= 1.54385964912 times the normal current of 200 kVA unit\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.106, Page Number:1203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variabe declaration\n", + "ea=6600#V\n", + "eb=6400#V\n", + "za=complex(0.3,3)\n", + "zb=complex(0.2,1)\n", + "zl=complex(8.0,6.0)\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "\n", + "#result\n", + "print \"IA=\",abs(ia),\"A\"\n", + "print \"IB=\",abs(ib),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 195.492387533 A\n", + "IB= 422.567795916 A\n" + ] + } + ], + "prompt_number": 227 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.107, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=100.0#kVA\n", + "load2=50.0#kVA\n", + "v1=1000.0#V\n", + "v2=950.0#V\n", + "r1=2.0\n", + "r2=2.5\n", + "x1=8.0\n", + "x2=6.0\n", + "\n", + "#calculations\n", + "ia=load1*1000/v1\n", + "ra=v1*r1/(100*ia)\n", + "xa=v1*x1/(100*ia)\n", + "ib=load2*1000/v2\n", + "rb=v2*r2/(100*ib)\n", + "xb=v2*x2/(100*ib)\n", + "z=((ra+rb)**2+(xa+xb)**2)**0.5\n", + "ic=(v1-v2)/z\n", + "alpha=math.atan((xa+xb)/(ra+rb))\n", + "\n", + "#result\n", + "print \"no load circulating current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no load circulating current= 25.0948635944 A\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 32.108, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load1=1000.0#KVA\n", + "load2=500.0#kVA\n", + "v1=500.0#V\n", + "v2=510.0#V\n", + "z1=3.0\n", + "z2=5.0\n", + "r=0.4\n", + "\n", + "#calculation\n", + "ia=load1*1000/480\n", + "ib=load2*1000/480\n", + "za=z1*v1/(100*ia)\n", + "zb=z2*v2/(100*ib)\n", + "ic=(v2-v1)/(za+zb)\n", + "\n", + "#result\n", + "print \"cross current=\",ic,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "cross current= 315.656565657 A\n" + ] + } + ], + "prompt_number": 233 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.109, Page Number:1204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "loada=500.0#KVA\n", + "loadb=250.0#kVA\n", + "load=750.0#KVA\n", + "pf=0.8\n", + "v1=405.0#V\n", + "v2=415.0#V\n", + "ra=1.0\n", + "rb=1.5\n", + "xa=5.0\n", + "xb=4.0\n", + "\n", + "#calculations\n", + "ia=loada*1000/400\n", + "ra=400/(100*ia)\n", + "xa=xa*400/(100*ia)\n", + "ib=loadb*1000/400\n", + "rb=rb*400/(100*ib)\n", + "xb=xb*400/(100*ib)\n", + "za=complex(ra,xa)\n", + "zb=complex(rb,xb)\n", + "zl=400**2*0.001/load*complex(pf,math.sin(math.acos(pf)))\n", + "ic=(v1-v2)/(za+zb)\n", + "ia=(v1*zb+(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(v2*za-(v1-v2)*zl)/(za*zb+zl*(za+zb))\n", + "sa=400*ia/1000\n", + "sb=400*ib/1000\n", + "pf1=math.cos(math.atan(sa.imag/sa.real))\n", + "pf2=math.cos(math.atan(sb.imag/sb.real))\n", + "\n", + "#result\n", + "print \"a)cross current=\",-abs(ic),math.degrees(math.atan(ic.imag/ic.real))\n", + "print \"b)SA=\",abs(sa),pf1,\"lag\"\n", + "print \" SB=\",abs(sb),pf2,\"lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)cross current= -229.754569404 -72.8972710309\n", + "b)SA= 387.844943528 0.820048560714 lag\n", + " SB= 351.964386212 0.738709225528 lag\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.110, Page Number:1205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zl=complex(2.0,1.5)\n", + "za=complex(0.15,0.5)\n", + "zb=complex(0.1,0.6)\n", + "ea=207#V\n", + "eb=205#V\n", + "\n", + "#calculations\n", + "ia=(ea*zb+(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "ib=(eb*za-(ea-eb)*zl)/(za*zb+zl*(za+zb))\n", + "v2_=(ia+ib)*zl\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ia.imag/ia.real)\n", + "pfa=math.cos(angle)\n", + "angle=math.atan(v2_.imag/v2_.real)-math.atan(ib.imag/ib.real)\n", + "pfb=math.cos(angle)\n", + "pa=abs(v2_)*abs(ia)*pfa\n", + "pb=abs(v2_)*abs(ib)*pfb\n", + "\n", + "#result\n", + "print \"power output:\"\n", + "print \" A:\",pa,\"W\"\n", + "print \" B:\",pb,\"W\"\n", + "print \"power factor:\"\n", + "print \" A:\",pfa\n", + "print \" B:\",pfb\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output:\n", + " A: 6535.37583042 W\n", + " B: 4925.36941503 W\n", + "power factor:\n", + " A: 0.818428780129\n", + " B: 0.775705655277\n" + ] + } + ], + "prompt_number": 248 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 32.111, Page Number:1206" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=200.0#A\n", + "ib=600.0#A\n", + "ra=0.02#ohm\n", + "rb=0.025#ohm\n", + "xa=0.05#ohm\n", + "xb=0.06#ohm\n", + "ea=245.0#V\n", + "eb=240.0#V\n", + "zl=complex(0.25,0.1)\n", + "\n", + "#calculation\n", + "za=(ea/ia)*complex(ra,xa)\n", + "zb=(eb/ib)*complex(rb,xb)\n", + "i=(ea*zb+eb*za)/(za*zb+zl*(za+zb))\n", + "v2=i*zl\n", + "\n", + "#result\n", + "print \"terminal voltage=\",round(abs(v2)),round(math.degrees(math.atan(v2.imag/v2.real))),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 230.0 -3.0 degrees\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb @@ -0,0 +1,1433 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 33: Transformer:Three Phase" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.1, Page Number:1216" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=3\n", + "f=50.0#Hz\n", + "vd=22000.0#V\n", + "vs=400.0#V\n", + "phi=0.8\n", + "i=5.0#A\n", + "\n", + "#calcuations\n", + "v_phase_secondary=vs/math.sqrt(3)\n", + "K=(vs/vd)/math.sqrt(3)\n", + "i_primary=i/math.sqrt(3)\n", + "i_secondary=i_primary/K\n", + "il=i_secondary\n", + "output=math.sqrt(3)*il*vs*phi\n", + "\n", + "#result\n", + "print \"Output=\",output/10000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 15.2420471066 kW\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.2, Page Number:1217" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=500.0#kVA\n", + "f=50.0#Hz\n", + "vls=11.0#kV\n", + "vld=33.0#kV\n", + "rh=35.0#ohm\n", + "rl=0.876#ohm\n", + "iron_loss=3050.0#W\n", + "phi1=1.0\n", + "phi2=0.8\n", + "\n", + "#calculations\n", + "\n", + "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", + "r02=rl+K**2*rh\n", + "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", + "#full load\n", + "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", + "fl_totalloss=fl_culoss+iron_loss\n", + "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", + "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", + "#half load\n", + "cu_loss=.5**2*fl_culoss\n", + "totalloss=cu_loss+iron_loss\n", + "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", + "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", + "#result\n", + "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", + "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", + "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency at p.f. 1= 98.5147491838 %\n", + "full load efficiency at p.f. 0.8= 98.1503046336 %\n", + "half load efficiency at p.f. 1= 98.3585709725 %\n", + "half load efficiency at p.f. 0.8= 98.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.3, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.02\n", + "va=2000\n", + "reactance=0.1\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculation\n", + "cu_loss=r*100*va/100\n", + "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", + "\n", + "#result\n", + "print \"Cu loss=\",cu_loss,\"kW\"\n", + "print \"Regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Cu loss= 40.0 kW\n", + "Regulation= 7.6 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.4, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w=120.0#kVA\n", + "v1=6000.0\n", + "v2=400.0\n", + "f=50.0#Hz\n", + "iron_loss=1600.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss_fl=iron_loss*((4/3)**2)\n", + "fl_output=w*pf*1000\n", + "total_loss=iron_loss+cu_loss_fl\n", + "efficiency1=fl_output/(fl_output+total_loss)\n", + "cu_loss_hl=0.5**2*cu_loss_fl\n", + "total_loss2=cu_loss_hl+iron_loss\n", + "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", + "total_loss3=2*iron_loss\n", + "output=(3.0/4)*w*1000\n", + "inpt=output+total_loss3\n", + "efficiency=output/inpt\n", + "\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency=\",efficiency2*100,\"%\"\n", + "print \"3/4 load efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.7741935484 %\n", + "half load efficiency= 96.7741935484 %\n", + "3/4 load efficiency= 96.5665236052 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.5, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "rp=8.0#ohm\n", + "rs=0.08#ohm\n", + "z=0.07\n", + "pf=0.75\n", + "v1=33.0\n", + "v2=6.6\n", + "w=2*10.0**6\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "fl_i=w/(math.sqrt(3)*v2*10**3)\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rs+(rp*(K*K))\n", + "z_drop=z*v2*1000/math.sqrt(3)\n", + "z02=z_drop/fl_i\n", + "x02=math.sqrt((z02*z02)-(r02*r02))\n", + "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", + "secondary_v=v2*1000/math.sqrt(3)\n", + "V2=secondary_v-drop\n", + "line_v=V2*math.sqrt(3)\n", + "regn=drop*100/secondary_v\n", + "\n", + "#result\n", + "print \"secondary voltage\",line_v,\"V\"\n", + "print \"regulation=\",regn,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary voltage 6254.29059005 V\n", + "regulation= 5.23802136291 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.6, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=100.0#kWA\n", + "f=50.0#Hz\n", + "v1=3300.0#V\n", + "v2=400.0#V\n", + "rh=3.5#ohm\n", + "rl=0.02#ohm\n", + "pf=0.8\n", + "efficiency=0.958\n", + "\n", + "#calculations\n", + "output=0.8*100\n", + "inpt=output/efficiency\n", + "total_loss=(inpt-output)*1000\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rl+K**2*rh\n", + "i2=((w*1000)/math.sqrt(3))/v2\n", + "cu_loss=3*i2**2*r02\n", + "iron_loss=total_loss-cu_loss\n", + "#result\n", + "print \"ironloss=\",iron_loss,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.0371411080502\n", + "2321.31925314\n", + "ironloss= 1185.98763622 W\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.7, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=5000.0#kVA\n", + "v1=6.6#kV\n", + "v2=33.0#kV\n", + "nl=15.0#kW\n", + "fl=50.0#kW\n", + "drop=0.07\n", + "load=3200.0#kw\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i2=w*1000/(math.sqrt(3)*v2*1000)\n", + "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", + "z02=impedence_drop/i2\n", + "cu_loss=fl-nl\n", + "r02=cu_loss*1000/(3*i2**2)\n", + "x02=math.sqrt(z02**2-r02**2)\n", + "print \"full-load x02:\",x02\n", + "\n", + "#when load=3200#kW\n", + "i2=load/(math.sqrt(3)*v2*0.8)\n", + "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", + "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", + "vp=v1+regn/100*v1\n", + "print \"Primary voltage=\",vp*1000,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load x02: 15.1695784661\n", + "Primary voltage= 6851.39317975 V\n" + ] + } + ], + "prompt_number": 95 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.8, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=1\n", + "x=6\n", + "v=6600#V\n", + "v2=4800#V\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "regn=(r*math.cos(phi)+z*math.sin(phi))\n", + "secondary_v=v2+regn/100*v2\n", + "secondary_vp=secondary_v/math.sqrt(3)\n", + "K=secondary_vp/v\n", + "\n", + "#result\n", + "print \"Transformation Ratio=\",K" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Transformation Ratio= 0.423426587968\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.9, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=2000#kVA\n", + "v1=6600#V\n", + "v2=400#V\n", + "pf=0.8\n", + "scv=400#V\n", + "sci=175#A\n", + "scw=17#kW\n", + "ocv=400#V\n", + "oci=150#A\n", + "ocw=15#kW\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i1=sci/math.sqrt(3)\n", + "z01=scv/i1\n", + "r01=scw*1000/(3*i1*i1)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "r=i1*r01*100/v1\n", + "x=i1*x01*100/v1\n", + "regn=(r*math.cos(phi)-x*math.sin(phi))\n", + "I1=w*1000/(math.sqrt(3)*v1)\n", + "total_loss=scw+ocw\n", + "fl_output=w*pf\n", + "efficiency=fl_output/(fl_output+total_loss)\n", + "\n", + "#result\n", + "print \"% resistance=\",r,\"%\"\n", + "print \"% reactance=\",x,\"%\"\n", + "print \"% efficiency=\",efficiency*100,\"%\"\n", + "print \"%regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "% resistance= 0.849779616989 %\n", + "% reactance= 6.00073499035 %\n", + "% efficiency= 98.0392156863 %\n", + "%regulation= -2.92061730062 %\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.10, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=440.0#V\n", + "i=5.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "secondary_rating=v2/math.sqrt(3)\n", + "primary_i=i/math.sqrt(3)\n", + "voltsamps=v1*5/math.sqrt(3)\n", + "i2=voltsamps/secondary_rating\n", + "output=pf*voltsamps/1000\n", + "\n", + "#result\n", + "print \"Each coil current=\",i2,\"A\"\n", + "print \"Total output=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Each coil current= 125.0 A\n", + "Total output= 25.4034118443 kW\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.12, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kVA_per_transformer=load/2*1.15\n", + "delta_delta_rating=kVA_per_transformer*3\n", + "increase=(delta_delta_rating-load)*100/load\n", + "\n", + "#result\n", + "print \"increase=\",increase,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase= 72.5 %\n" + ] + } + ], + "prompt_number": 126 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.13, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=20#kVA\n", + "v1=2300#v\n", + "v2=230#V\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kva_load=load/math.sqrt(3)\n", + "percent_rated=kva_load*100/w\n", + "kvarating_vv=2*w*0.866\n", + "vv_delta=kvarating_vv*100/60\n", + "percentage_increase=kva_load/(load/3)\n", + "\n", + "#result\n", + "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", + "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", + "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", + "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", + "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load of each transformer= 23.0940107676 kVA\n", + "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", + "iii)total kVA rating of the V-V bank 34.64 kVA\n", + "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", + "v)percent increase in load= 177.646236674 %\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.14, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=150.0#kW\n", + "v1=1000.0#V\n", + "pf=0.866\n", + "v=2000.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(pf*math.sqrt(3)*1000)\n", + "ip=il/math.sqrt(3)\n", + "ratio=v1/v\n", + "ip=ip*ratio\n", + "I=il\n", + "Ip=I*ratio\n", + "pf=86.6/100*pf\n", + "\n", + "#result\n", + "print \"delta-delta:current in the windings=\",ip,\"A\"\n", + "print \"v-v:current in the windings=\",Ip,\"A\"\n", + "print \"Power factor\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "delta-delta:current in the windings= 28.8683602771 A\n", + "v-v:current in the windings= 50.0014667312 A\n", + "Power factor 0.749956\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.15, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=3000#kW\n", + "v=11#kV\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", + "transformer_pf=86.6/100*pf\n", + "additional_load=72.5/100*load\n", + "total_load=additional_load+load\n", + "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", + "\n", + "#result\n", + "print \"Il=\",il,\"A\"\n", + "print \"phase current=\",il/math.sqrt(3),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Il= 339.521323075 A\n", + "phase current= 196.022727273 A\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.16, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=400#kVA\n", + "pf=0.866\n", + "v=440#V\n", + "\n", + "#calculations\n", + "kVA_each=(load/2)/pf\n", + "phi=math.acos(pf)\n", + "p1=kVA_each*math.cos(math.radians(30-phi))\n", + "p2=kVA_each*math.cos(math.radians(30+phi))\n", + "p=p1+p2\n", + "\n", + "#result\n", + "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", + "print \"kW supplied by each transformer=\",p,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA supplied by each transformer= 230.946882217 kVA\n", + "kW supplied by each transformer= 399.995027715 kW\n" + ] + } + ], + "prompt_number": 136 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.17, Page Number:1228" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "load=33.0#kVA\n", + "v2=3300.0#V\n", + "\n", + "#calculations\n", + "vl=0.866*v2\n", + "ilp=load*1000/(math.sqrt(3)*v2)\n", + "ils=ilp/(440/v2)\n", + "main_kva=v2*ilp*0.001\n", + "teaser_kva=0.866*main_kva\n", + "\n", + "#result\n", + "print \"voltage rating of each coil=\",vl\n", + "print \"current rating of each coil=\",ils\n", + "print \"main kVA=\",main_kva,\"kVA\"\n", + "print \"teaser kVA=\",teaser_kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage rating of each coil= 2857.8\n", + "current rating of each coil= 43.3012701892\n", + "main kVA= 19.0525588833 kVA\n", + "teaser kVA= 16.4995159929 kVA\n" + ] + } + ], + "prompt_number": 139 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.18, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "v2=200.0#V\n", + "output=150.0#kVA\n", + "\n", + "#calculations\n", + "ratio=v2/v\n", + "i2=output*1000/(2*v2)\n", + "i1=i2*ratio\n", + "primary_volts=(math.sqrt(3)*v)/2\n", + "ratio=v2/primary_volts\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"turns ratio\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 170.454545455 A\n", + "turns ratio 0.524863881081\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.19, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=100.0#V\n", + "v2=3300.0#V\n", + "p=400.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2=p*1000/(pf*v)\n", + "ip=1.15*K*i2\n", + "I2m=K*i2\n", + "i2=ip/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#reslult\n", + "print \"Current=\",i1m,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 174.77684841 A\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.20, Page Number:1232" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w1=300#kW\n", + "w2=450#kW\n", + "v1=100#V\n", + "pf=0.707\n", + "v2=3300#V\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2t=(w2*1000)/(100*pf)\n", + "i1t=1.15*K*i2t\n", + "I2m=(K*w1*1000)/(100*pf)\n", + "i2=i1t/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#result\n", + "print \"Current=\",i1m,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 169.804606659 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.21, Page Number:1233" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=80.0#V\n", + "v2=11000.0#V\n", + "w1=500.0#kW\n", + "w2=800.0#kW\n", + "pf=0.5\n", + "\n", + "#calculations\n", + "K=v1/v2\n", + "#unity pf\n", + "i2t=w1*1000/v1\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/v1\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "\n", + "print \"unity pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", + "#0.5 pf\n", + "i2t=w1*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/(v1*pf)\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "print \"0.5 pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "unity pf\n", + "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", + "0.5 pf\n", + "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" + ] + } + ], + "prompt_number": 171 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.22, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=50#V\n", + "v2=4.6*1000#V\n", + "load=350#kW\n", + "w=200#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "K=v1/v2\n", + "i2t=w*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=load*1000/(v1*pf)\n", + "Ki2m=K*i2m\n", + "i1t_half=i1t/2\n", + "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", + "\n", + "#result\n", + "print \"current in line A=\",i1t\n", + "print \"current in line B=\",i1m\n", + "print \"current in line C=\",i1m" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in line A= 62.5\n", + "current in line B= 100.11107076\n", + "current in line C= 100.11107076\n" + ] + } + ], + "prompt_number": 173 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.23, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=231#V\n", + "v2=6600#v\n", + "volt_induced=8#v\n", + "\n", + "#calculations\n", + "hv=v2/volt_induced\n", + "vl=v*math.sqrt(3)\n", + "n_lv1=vl/volt_induced\n", + "n_lv2=math.sqrt(3)*n_lv1/2\n", + "n=2*n_lv2/3\n", + "\n", + "#result\n", + "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "neutral point is located on the 29.0 th turn from A downwards\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.24, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6000.0#V\n", + "v2=440.0#V\n", + "f=50.0#Hz\n", + "area=300.0#cm2\n", + "flux=1.2#Wb/m2\n", + "\n", + "#calculations\n", + "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", + "K=v2/v\n", + "n2=n1*K\n", + "n_lv=math.sqrt(3)*n2/2\n", + "turns=n_lv*2/3\n", + "\n", + "#result\n", + "print \"NUmber of turns in AN=\",math.floor(turns)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " NUmber of turns in AN= 35.0\n" + ] + } + ], + "prompt_number": 183 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.25, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "load=30.0#kVA\n", + "v2=250.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(math.sqrt(3)*v2)\n", + "vl=0.866*v2\n", + "kva=il*vl*(0.001)\n", + "\n", + "#result\n", + "print \"Voltage=\",vl,\"V\"\n", + "print \"kVA rating\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage= 216.5 V\n", + "kVA rating 14.9995599935 kVA\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.26, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#vaiable declaration\n", + "load=500#kVA\n", + "pf=0.8\n", + "za=complex(2,6)\n", + "zb=complex(2,5)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "s=load*complex(math.cos(phi),math.sin(phi))\n", + "z1=za/zb\n", + "z2=zb/za\n", + "sa=s/(1+z1)\n", + "sb=s/(1+z2)\n", + "pfa=cmath.phase(sa)\n", + "pfb=cmath.phase(sb)\n", + "#result\n", + "print \"sa=\",abs(sa)\n", + "print \"sb=\",abs(sb)\n", + "print \"cos phi_a=\",pfa\n", + "print \"cos phi_b=\",pfb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 230.042839552\n", + "sb= 270.171613479\n", + "cos phi_a= 0.611765735265\n", + "cos phi_b= 0.670521557981\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.27, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "w=2000#kVA\n", + "w1=4000#kVA\n", + "w2=5000#kVA\n", + "pf=0.8\n", + "za=complex(2,8)\n", + "zb=complex(1.6,3)\n", + "\n", + "#calculations\n", + "za_per=(w1/w)*za\n", + "zb_per=zb\n", + "z=za_per+zb_per\n", + "s=complex(w1,w-w2)\n", + "sb=s*(za/z)\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (2284.2287695-1821.49046794j)\n", + "sb= (1715.7712305-1178.50953206j)\n" + ] + } + ], + "prompt_number": 211 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.28, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=1400#kVA\n", + "pf=0.866\n", + "w1=1000#kVA\n", + "w2=500#kVA\n", + "v1=6600\n", + "v2=400\n", + "za=complex(0.001,0.003)\n", + "zb=complex(0.0028,0.005)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (929.911014012-588.664867724j)\n", + "sb= (282.488985988-111.396729565j)\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.29, Page Number:1238" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=750#kVA\n", + "pf=0.707\n", + "w1=500#kVA\n", + "w2=250#kVA\n", + "v1=3300\n", + "v2=400\n", + "za=complex(2,3)\n", + "zb=complex(1.5,4)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "per_r=za.real*(sa.real)/w1\n", + "per_x=(za.imag)*(sa.imag)/w1\n", + "total_per=per_r+per_x\n", + "vl=v2-(total_per*4)\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (399.511103547-348.770523615j)\n", + "sb= (130.738896453-181.639636072j)\n" + ] + } + ], + "prompt_number": 242 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.30, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=100/5\n", + "i=5#A\n", + "i1=3.5#A\n", + "\n", + "#calculations\n", + "il=i1*ratio\n", + "\n", + "#result\n", + "print \"Line current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 70.0 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.31, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i1=2000#A\n", + "i2=2500#A\n", + "i=5#A\n", + "\n", + "#calculations\n", + "ratio1=i1/i\n", + "ratio2=i2/i\n", + "\n", + "#result\n", + "print \"ratio in first case=\",ratio1\n", + "print \"ratio in second case=\",ratio2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio in first case= 400\n", + "ratio in second case= 500\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_1.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_1.ipynb @@ -0,0 +1,1433 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 33: Transformer:Three Phase" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.1, Page Number:1216" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=3\n", + "f=50.0#Hz\n", + "vd=22000.0#V\n", + "vs=400.0#V\n", + "phi=0.8\n", + "i=5.0#A\n", + "\n", + "#calcuations\n", + "v_phase_secondary=vs/math.sqrt(3)\n", + "K=(vs/vd)/math.sqrt(3)\n", + "i_primary=i/math.sqrt(3)\n", + "i_secondary=i_primary/K\n", + "il=i_secondary\n", + "output=math.sqrt(3)*il*vs*phi\n", + "\n", + "#result\n", + "print \"Output=\",output/10000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 15.2420471066 kW\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.2, Page Number:1217" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=500.0#kVA\n", + "f=50.0#Hz\n", + "vls=11.0#kV\n", + "vld=33.0#kV\n", + "rh=35.0#ohm\n", + "rl=0.876#ohm\n", + "iron_loss=3050.0#W\n", + "phi1=1.0\n", + "phi2=0.8\n", + "\n", + "#calculations\n", + "\n", + "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", + "r02=rl+K**2*rh\n", + "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", + "#full load\n", + "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", + "fl_totalloss=fl_culoss+iron_loss\n", + "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", + "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", + "#half load\n", + "cu_loss=.5**2*fl_culoss\n", + "totalloss=cu_loss+iron_loss\n", + "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", + "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", + "#result\n", + "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", + "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", + "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency at p.f. 1= 98.5147491838 %\n", + "full load efficiency at p.f. 0.8= 98.1503046336 %\n", + "half load efficiency at p.f. 1= 98.3585709725 %\n", + "half load efficiency at p.f. 0.8= 98.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.3, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.02\n", + "va=2000\n", + "reactance=0.1\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculation\n", + "cu_loss=r*100*va/100\n", + "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", + "\n", + "#result\n", + "print \"Cu loss=\",cu_loss,\"kW\"\n", + "print \"Regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Cu loss= 40.0 kW\n", + "Regulation= 7.6 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.4, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w=120.0#kVA\n", + "v1=6000.0\n", + "v2=400.0\n", + "f=50.0#Hz\n", + "iron_loss=1600.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss_fl=iron_loss*((4/3)**2)\n", + "fl_output=w*pf*1000\n", + "total_loss=iron_loss+cu_loss_fl\n", + "efficiency1=fl_output/(fl_output+total_loss)\n", + "cu_loss_hl=0.5**2*cu_loss_fl\n", + "total_loss2=cu_loss_hl+iron_loss\n", + "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", + "total_loss3=2*iron_loss\n", + "output=(3.0/4)*w*1000\n", + "inpt=output+total_loss3\n", + "efficiency=output/inpt\n", + "\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency=\",efficiency2*100,\"%\"\n", + "print \"3/4 load efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.7741935484 %\n", + "half load efficiency= 96.7741935484 %\n", + "3/4 load efficiency= 96.5665236052 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.5, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "rp=8.0#ohm\n", + "rs=0.08#ohm\n", + "z=0.07\n", + "pf=0.75\n", + "v1=33.0\n", + "v2=6.6\n", + "w=2*10.0**6\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "fl_i=w/(math.sqrt(3)*v2*10**3)\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rs+(rp*(K*K))\n", + "z_drop=z*v2*1000/math.sqrt(3)\n", + "z02=z_drop/fl_i\n", + "x02=math.sqrt((z02*z02)-(r02*r02))\n", + "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", + "secondary_v=v2*1000/math.sqrt(3)\n", + "V2=secondary_v-drop\n", + "line_v=V2*math.sqrt(3)\n", + "regn=drop*100/secondary_v\n", + "\n", + "#result\n", + "print \"secondary voltage\",line_v,\"V\"\n", + "print \"regulation=\",regn,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary voltage 6254.29059005 V\n", + "regulation= 5.23802136291 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.6, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=100.0#kWA\n", + "f=50.0#Hz\n", + "v1=3300.0#V\n", + "v2=400.0#V\n", + "rh=3.5#ohm\n", + "rl=0.02#ohm\n", + "pf=0.8\n", + "efficiency=0.958\n", + "\n", + "#calculations\n", + "output=0.8*100\n", + "inpt=output/efficiency\n", + "total_loss=(inpt-output)*1000\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rl+K**2*rh\n", + "i2=((w*1000)/math.sqrt(3))/v2\n", + "cu_loss=3*i2**2*r02\n", + "iron_loss=total_loss-cu_loss\n", + "#result\n", + "print \"ironloss=\",iron_loss,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.0371411080502\n", + "2321.31925314\n", + "ironloss= 1185.98763622 W\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.7, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=5000.0#kVA\n", + "v1=6.6#kV\n", + "v2=33.0#kV\n", + "nl=15.0#kW\n", + "fl=50.0#kW\n", + "drop=0.07\n", + "load=3200.0#kw\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i2=w*1000/(math.sqrt(3)*v2*1000)\n", + "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", + "z02=impedence_drop/i2\n", + "cu_loss=fl-nl\n", + "r02=cu_loss*1000/(3*i2**2)\n", + "x02=math.sqrt(z02**2-r02**2)\n", + "print \"full-load x02:\",x02\n", + "\n", + "#when load=3200#kW\n", + "i2=load/(math.sqrt(3)*v2*0.8)\n", + "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", + "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", + "vp=v1+regn/100*v1\n", + "print \"Primary voltage=\",vp*1000,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load x02: 15.1695784661\n", + "Primary voltage= 6851.39317975 V\n" + ] + } + ], + "prompt_number": 95 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.8, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=1\n", + "x=6\n", + "v=6600#V\n", + "v2=4800#V\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "regn=(r*math.cos(phi)+z*math.sin(phi))\n", + "secondary_v=v2+regn/100*v2\n", + "secondary_vp=secondary_v/math.sqrt(3)\n", + "K=secondary_vp/v\n", + "\n", + "#result\n", + "print \"Transformation Ratio=\",K" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Transformation Ratio= 0.423426587968\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.9, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=2000#kVA\n", + "v1=6600#V\n", + "v2=400#V\n", + "pf=0.8\n", + "scv=400#V\n", + "sci=175#A\n", + "scw=17#kW\n", + "ocv=400#V\n", + "oci=150#A\n", + "ocw=15#kW\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i1=sci/math.sqrt(3)\n", + "z01=scv/i1\n", + "r01=scw*1000/(3*i1*i1)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "r=i1*r01*100/v1\n", + "x=i1*x01*100/v1\n", + "regn=(r*math.cos(phi)-x*math.sin(phi))\n", + "I1=w*1000/(math.sqrt(3)*v1)\n", + "total_loss=scw+ocw\n", + "fl_output=w*pf\n", + "efficiency=fl_output/(fl_output+total_loss)\n", + "\n", + "#result\n", + "print \"% resistance=\",r,\"%\"\n", + "print \"% reactance=\",x,\"%\"\n", + "print \"% efficiency=\",efficiency*100,\"%\"\n", + "print \"%regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "% resistance= 0.849779616989 %\n", + "% reactance= 6.00073499035 %\n", + "% efficiency= 98.0392156863 %\n", + "%regulation= -2.92061730062 %\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.10, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=440.0#V\n", + "i=5.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "secondary_rating=v2/math.sqrt(3)\n", + "primary_i=i/math.sqrt(3)\n", + "voltsamps=v1*5/math.sqrt(3)\n", + "i2=voltsamps/secondary_rating\n", + "output=pf*voltsamps/1000\n", + "\n", + "#result\n", + "print \"Each coil current=\",i2,\"A\"\n", + "print \"Total output=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Each coil current= 125.0 A\n", + "Total output= 25.4034118443 kW\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.12, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kVA_per_transformer=load/2*1.15\n", + "delta_delta_rating=kVA_per_transformer*3\n", + "increase=(delta_delta_rating-load)*100/load\n", + "\n", + "#result\n", + "print \"increase=\",increase,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase= 72.5 %\n" + ] + } + ], + "prompt_number": 126 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.13, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=20#kVA\n", + "v1=2300#v\n", + "v2=230#V\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kva_load=load/math.sqrt(3)\n", + "percent_rated=kva_load*100/w\n", + "kvarating_vv=2*w*0.866\n", + "vv_delta=kvarating_vv*100/60\n", + "percentage_increase=kva_load/(load/3)\n", + "\n", + "#result\n", + "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", + "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", + "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", + "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", + "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load of each transformer= 23.0940107676 kVA\n", + "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", + "iii)total kVA rating of the V-V bank 34.64 kVA\n", + "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", + "v)percent increase in load= 177.646236674 %\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.14, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=150.0#kW\n", + "v1=1000.0#V\n", + "pf=0.866\n", + "v=2000.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(pf*math.sqrt(3)*1000)\n", + "ip=il/math.sqrt(3)\n", + "ratio=v1/v\n", + "ip=ip*ratio\n", + "I=il\n", + "Ip=I*ratio\n", + "pf=86.6/100*pf\n", + "\n", + "#result\n", + "print \"delta-delta:current in the windings=\",ip,\"A\"\n", + "print \"v-v:current in the windings=\",Ip,\"A\"\n", + "print \"Power factor\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "delta-delta:current in the windings= 28.8683602771 A\n", + "v-v:current in the windings= 50.0014667312 A\n", + "Power factor 0.749956\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.15, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=3000#kW\n", + "v=11#kV\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", + "transformer_pf=86.6/100*pf\n", + "additional_load=72.5/100*load\n", + "total_load=additional_load+load\n", + "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", + "\n", + "#result\n", + "print \"Il=\",il,\"A\"\n", + "print \"phase current=\",il/math.sqrt(3),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Il= 339.521323075 A\n", + "phase current= 196.022727273 A\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.16, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=400#kVA\n", + "pf=0.866\n", + "v=440#V\n", + "\n", + "#calculations\n", + "kVA_each=(load/2)/pf\n", + "phi=math.acos(pf)\n", + "p1=kVA_each*math.cos(math.radians(30-phi))\n", + "p2=kVA_each*math.cos(math.radians(30+phi))\n", + "p=p1+p2\n", + "\n", + "#result\n", + "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", + "print \"kW supplied by each transformer=\",p,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA supplied by each transformer= 230.946882217 kVA\n", + "kW supplied by each transformer= 399.995027715 kW\n" + ] + } + ], + "prompt_number": 136 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.17, Page Number:1228" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "load=33.0#kVA\n", + "v2=3300.0#V\n", + "\n", + "#calculations\n", + "vl=0.866*v2\n", + "ilp=load*1000/(math.sqrt(3)*v2)\n", + "ils=ilp/(440/v2)\n", + "main_kva=v2*ilp*0.001\n", + "teaser_kva=0.866*main_kva\n", + "\n", + "#result\n", + "print \"voltage rating of each coil=\",vl\n", + "print \"current rating of each coil=\",ils\n", + "print \"main kVA=\",main_kva,\"kVA\"\n", + "print \"teaser kVA=\",teaser_kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage rating of each coil= 2857.8\n", + "current rating of each coil= 43.3012701892\n", + "main kVA= 19.0525588833 kVA\n", + "teaser kVA= 16.4995159929 kVA\n" + ] + } + ], + "prompt_number": 139 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.18, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "v2=200.0#V\n", + "output=150.0#kVA\n", + "\n", + "#calculations\n", + "ratio=v2/v\n", + "i2=output*1000/(2*v2)\n", + "i1=i2*ratio\n", + "primary_volts=(math.sqrt(3)*v)/2\n", + "ratio=v2/primary_volts\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"turns ratio\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 170.454545455 A\n", + "turns ratio 0.524863881081\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.19, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=100.0#V\n", + "v2=3300.0#V\n", + "p=400.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2=p*1000/(pf*v)\n", + "ip=1.15*K*i2\n", + "I2m=K*i2\n", + "i2=ip/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#reslult\n", + "print \"Current=\",i1m,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 174.77684841 A\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.20, Page Number:1232" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w1=300#kW\n", + "w2=450#kW\n", + "v1=100#V\n", + "pf=0.707\n", + "v2=3300#V\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2t=(w2*1000)/(100*pf)\n", + "i1t=1.15*K*i2t\n", + "I2m=(K*w1*1000)/(100*pf)\n", + "i2=i1t/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#result\n", + "print \"Current=\",i1m,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 169.804606659 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.21, Page Number:1233" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=80.0#V\n", + "v2=11000.0#V\n", + "w1=500.0#kW\n", + "w2=800.0#kW\n", + "pf=0.5\n", + "\n", + "#calculations\n", + "K=v1/v2\n", + "#unity pf\n", + "i2t=w1*1000/v1\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/v1\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "\n", + "print \"unity pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", + "#0.5 pf\n", + "i2t=w1*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/(v1*pf)\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "print \"0.5 pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "unity pf\n", + "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", + "0.5 pf\n", + "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" + ] + } + ], + "prompt_number": 171 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.22, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=50#V\n", + "v2=4.6*1000#V\n", + "load=350#kW\n", + "w=200#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "K=v1/v2\n", + "i2t=w*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=load*1000/(v1*pf)\n", + "Ki2m=K*i2m\n", + "i1t_half=i1t/2\n", + "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", + "\n", + "#result\n", + "print \"current in line A=\",i1t\n", + "print \"current in line B=\",i1m\n", + "print \"current in line C=\",i1m" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in line A= 62.5\n", + "current in line B= 100.11107076\n", + "current in line C= 100.11107076\n" + ] + } + ], + "prompt_number": 173 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.23, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=231#V\n", + "v2=6600#v\n", + "volt_induced=8#v\n", + "\n", + "#calculations\n", + "hv=v2/volt_induced\n", + "vl=v*math.sqrt(3)\n", + "n_lv1=vl/volt_induced\n", + "n_lv2=math.sqrt(3)*n_lv1/2\n", + "n=2*n_lv2/3\n", + "\n", + "#result\n", + "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "neutral point is located on the 29.0 th turn from A downwards\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.24, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6000.0#V\n", + "v2=440.0#V\n", + "f=50.0#Hz\n", + "area=300.0#cm2\n", + "flux=1.2#Wb/m2\n", + "\n", + "#calculations\n", + "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", + "K=v2/v\n", + "n2=n1*K\n", + "n_lv=math.sqrt(3)*n2/2\n", + "turns=n_lv*2/3\n", + "\n", + "#result\n", + "print \"NUmber of turns in AN=\",math.floor(turns)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " NUmber of turns in AN= 35.0\n" + ] + } + ], + "prompt_number": 183 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.25, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "load=30.0#kVA\n", + "v2=250.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(math.sqrt(3)*v2)\n", + "vl=0.866*v2\n", + "kva=il*vl*(0.001)\n", + "\n", + "#result\n", + "print \"Voltage=\",vl,\"V\"\n", + "print \"kVA rating\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage= 216.5 V\n", + "kVA rating 14.9995599935 kVA\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.26, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#vaiable declaration\n", + "load=500#kVA\n", + "pf=0.8\n", + "za=complex(2,6)\n", + "zb=complex(2,5)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "s=load*complex(math.cos(phi),math.sin(phi))\n", + "z1=za/zb\n", + "z2=zb/za\n", + "sa=s/(1+z1)\n", + "sb=s/(1+z2)\n", + "pfa=cmath.phase(sa)\n", + "pfb=cmath.phase(sb)\n", + "#result\n", + "print \"sa=\",abs(sa)\n", + "print \"sb=\",abs(sb)\n", + "print \"cos phi_a=\",pfa\n", + "print \"cos phi_b=\",pfb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 230.042839552\n", + "sb= 270.171613479\n", + "cos phi_a= 0.611765735265\n", + "cos phi_b= 0.670521557981\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.27, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "w=2000#kVA\n", + "w1=4000#kVA\n", + "w2=5000#kVA\n", + "pf=0.8\n", + "za=complex(2,8)\n", + "zb=complex(1.6,3)\n", + "\n", + "#calculations\n", + "za_per=(w1/w)*za\n", + "zb_per=zb\n", + "z=za_per+zb_per\n", + "s=complex(w1,w-w2)\n", + "sb=s*(za/z)\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (2284.2287695-1821.49046794j)\n", + "sb= (1715.7712305-1178.50953206j)\n" + ] + } + ], + "prompt_number": 211 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.28, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=1400#kVA\n", + "pf=0.866\n", + "w1=1000#kVA\n", + "w2=500#kVA\n", + "v1=6600\n", + "v2=400\n", + "za=complex(0.001,0.003)\n", + "zb=complex(0.0028,0.005)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (929.911014012-588.664867724j)\n", + "sb= (282.488985988-111.396729565j)\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.29, Page Number:1238" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=750#kVA\n", + "pf=0.707\n", + "w1=500#kVA\n", + "w2=250#kVA\n", + "v1=3300\n", + "v2=400\n", + "za=complex(2,3)\n", + "zb=complex(1.5,4)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "per_r=za.real*(sa.real)/w1\n", + "per_x=(za.imag)*(sa.imag)/w1\n", + "total_per=per_r+per_x\n", + "vl=v2-(total_per*4)\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (399.511103547-348.770523615j)\n", + "sb= (130.738896453-181.639636072j)\n" + ] + } + ], + "prompt_number": 242 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.30, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=100/5\n", + "i=5#A\n", + "i1=3.5#A\n", + "\n", + "#calculations\n", + "il=i1*ratio\n", + "\n", + "#result\n", + "print \"Line current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 70.0 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.31, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i1=2000#A\n", + "i2=2500#A\n", + "i=5#A\n", + "\n", + "#calculations\n", + "ratio1=i1/i\n", + "ratio2=i2/i\n", + "\n", + "#result\n", + "print \"ratio in first case=\",ratio1\n", + "print \"ratio in second case=\",ratio2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio in first case= 400\n", + "ratio in second case= 500\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_2.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_2.ipynb @@ -0,0 +1,1433 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 33: Transformer:Three Phase" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.1, Page Number:1216" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=3\n", + "f=50.0#Hz\n", + "vd=22000.0#V\n", + "vs=400.0#V\n", + "phi=0.8\n", + "i=5.0#A\n", + "\n", + "#calcuations\n", + "v_phase_secondary=vs/math.sqrt(3)\n", + "K=(vs/vd)/math.sqrt(3)\n", + "i_primary=i/math.sqrt(3)\n", + "i_secondary=i_primary/K\n", + "il=i_secondary\n", + "output=math.sqrt(3)*il*vs*phi\n", + "\n", + "#result\n", + "print \"Output=\",output/10000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 15.2420471066 kW\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.2, Page Number:1217" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=500.0#kVA\n", + "f=50.0#Hz\n", + "vls=11.0#kV\n", + "vld=33.0#kV\n", + "rh=35.0#ohm\n", + "rl=0.876#ohm\n", + "iron_loss=3050.0#W\n", + "phi1=1.0\n", + "phi2=0.8\n", + "\n", + "#calculations\n", + "\n", + "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", + "r02=rl+K**2*rh\n", + "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", + "#full load\n", + "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", + "fl_totalloss=fl_culoss+iron_loss\n", + "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", + "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", + "#half load\n", + "cu_loss=.5**2*fl_culoss\n", + "totalloss=cu_loss+iron_loss\n", + "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", + "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", + "#result\n", + "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", + "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", + "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency at p.f. 1= 98.5147491838 %\n", + "full load efficiency at p.f. 0.8= 98.1503046336 %\n", + "half load efficiency at p.f. 1= 98.3585709725 %\n", + "half load efficiency at p.f. 0.8= 98.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.3, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.02\n", + "va=2000\n", + "reactance=0.1\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculation\n", + "cu_loss=r*100*va/100\n", + "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", + "\n", + "#result\n", + "print \"Cu loss=\",cu_loss,\"kW\"\n", + "print \"Regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Cu loss= 40.0 kW\n", + "Regulation= 7.6 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.4, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w=120.0#kVA\n", + "v1=6000.0\n", + "v2=400.0\n", + "f=50.0#Hz\n", + "iron_loss=1600.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss_fl=iron_loss*((4/3)**2)\n", + "fl_output=w*pf*1000\n", + "total_loss=iron_loss+cu_loss_fl\n", + "efficiency1=fl_output/(fl_output+total_loss)\n", + "cu_loss_hl=0.5**2*cu_loss_fl\n", + "total_loss2=cu_loss_hl+iron_loss\n", + "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", + "total_loss3=2*iron_loss\n", + "output=(3.0/4)*w*1000\n", + "inpt=output+total_loss3\n", + "efficiency=output/inpt\n", + "\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency=\",efficiency2*100,\"%\"\n", + "print \"3/4 load efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.7741935484 %\n", + "half load efficiency= 96.7741935484 %\n", + "3/4 load efficiency= 96.5665236052 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.5, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "rp=8.0#ohm\n", + "rs=0.08#ohm\n", + "z=0.07\n", + "pf=0.75\n", + "v1=33.0\n", + "v2=6.6\n", + "w=2*10.0**6\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "fl_i=w/(math.sqrt(3)*v2*10**3)\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rs+(rp*(K*K))\n", + "z_drop=z*v2*1000/math.sqrt(3)\n", + "z02=z_drop/fl_i\n", + "x02=math.sqrt((z02*z02)-(r02*r02))\n", + "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", + "secondary_v=v2*1000/math.sqrt(3)\n", + "V2=secondary_v-drop\n", + "line_v=V2*math.sqrt(3)\n", + "regn=drop*100/secondary_v\n", + "\n", + "#result\n", + "print \"secondary voltage\",line_v,\"V\"\n", + "print \"regulation=\",regn,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary voltage 6254.29059005 V\n", + "regulation= 5.23802136291 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.6, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=100.0#kWA\n", + "f=50.0#Hz\n", + "v1=3300.0#V\n", + "v2=400.0#V\n", + "rh=3.5#ohm\n", + "rl=0.02#ohm\n", + "pf=0.8\n", + "efficiency=0.958\n", + "\n", + "#calculations\n", + "output=0.8*100\n", + "inpt=output/efficiency\n", + "total_loss=(inpt-output)*1000\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rl+K**2*rh\n", + "i2=((w*1000)/math.sqrt(3))/v2\n", + "cu_loss=3*i2**2*r02\n", + "iron_loss=total_loss-cu_loss\n", + "#result\n", + "print \"ironloss=\",iron_loss,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.0371411080502\n", + "2321.31925314\n", + "ironloss= 1185.98763622 W\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.7, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=5000.0#kVA\n", + "v1=6.6#kV\n", + "v2=33.0#kV\n", + "nl=15.0#kW\n", + "fl=50.0#kW\n", + "drop=0.07\n", + "load=3200.0#kw\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i2=w*1000/(math.sqrt(3)*v2*1000)\n", + "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", + "z02=impedence_drop/i2\n", + "cu_loss=fl-nl\n", + "r02=cu_loss*1000/(3*i2**2)\n", + "x02=math.sqrt(z02**2-r02**2)\n", + "print \"full-load x02:\",x02\n", + "\n", + "#when load=3200#kW\n", + "i2=load/(math.sqrt(3)*v2*0.8)\n", + "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", + "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", + "vp=v1+regn/100*v1\n", + "print \"Primary voltage=\",vp*1000,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load x02: 15.1695784661\n", + "Primary voltage= 6851.39317975 V\n" + ] + } + ], + "prompt_number": 95 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.8, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=1\n", + "x=6\n", + "v=6600#V\n", + "v2=4800#V\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "regn=(r*math.cos(phi)+z*math.sin(phi))\n", + "secondary_v=v2+regn/100*v2\n", + "secondary_vp=secondary_v/math.sqrt(3)\n", + "K=secondary_vp/v\n", + "\n", + "#result\n", + "print \"Transformation Ratio=\",K" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Transformation Ratio= 0.423426587968\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.9, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=2000#kVA\n", + "v1=6600#V\n", + "v2=400#V\n", + "pf=0.8\n", + "scv=400#V\n", + "sci=175#A\n", + "scw=17#kW\n", + "ocv=400#V\n", + "oci=150#A\n", + "ocw=15#kW\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i1=sci/math.sqrt(3)\n", + "z01=scv/i1\n", + "r01=scw*1000/(3*i1*i1)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "r=i1*r01*100/v1\n", + "x=i1*x01*100/v1\n", + "regn=(r*math.cos(phi)-x*math.sin(phi))\n", + "I1=w*1000/(math.sqrt(3)*v1)\n", + "total_loss=scw+ocw\n", + "fl_output=w*pf\n", + "efficiency=fl_output/(fl_output+total_loss)\n", + "\n", + "#result\n", + "print \"% resistance=\",r,\"%\"\n", + "print \"% reactance=\",x,\"%\"\n", + "print \"% efficiency=\",efficiency*100,\"%\"\n", + "print \"%regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "% resistance= 0.849779616989 %\n", + "% reactance= 6.00073499035 %\n", + "% efficiency= 98.0392156863 %\n", + "%regulation= -2.92061730062 %\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.10, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=440.0#V\n", + "i=5.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "secondary_rating=v2/math.sqrt(3)\n", + "primary_i=i/math.sqrt(3)\n", + "voltsamps=v1*5/math.sqrt(3)\n", + "i2=voltsamps/secondary_rating\n", + "output=pf*voltsamps/1000\n", + "\n", + "#result\n", + "print \"Each coil current=\",i2,\"A\"\n", + "print \"Total output=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Each coil current= 125.0 A\n", + "Total output= 25.4034118443 kW\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.12, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kVA_per_transformer=load/2*1.15\n", + "delta_delta_rating=kVA_per_transformer*3\n", + "increase=(delta_delta_rating-load)*100/load\n", + "\n", + "#result\n", + "print \"increase=\",increase,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase= 72.5 %\n" + ] + } + ], + "prompt_number": 126 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.13, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=20#kVA\n", + "v1=2300#v\n", + "v2=230#V\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kva_load=load/math.sqrt(3)\n", + "percent_rated=kva_load*100/w\n", + "kvarating_vv=2*w*0.866\n", + "vv_delta=kvarating_vv*100/60\n", + "percentage_increase=kva_load/(load/3)\n", + "\n", + "#result\n", + "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", + "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", + "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", + "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", + "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load of each transformer= 23.0940107676 kVA\n", + "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", + "iii)total kVA rating of the V-V bank 34.64 kVA\n", + "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", + "v)percent increase in load= 177.646236674 %\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.14, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=150.0#kW\n", + "v1=1000.0#V\n", + "pf=0.866\n", + "v=2000.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(pf*math.sqrt(3)*1000)\n", + "ip=il/math.sqrt(3)\n", + "ratio=v1/v\n", + "ip=ip*ratio\n", + "I=il\n", + "Ip=I*ratio\n", + "pf=86.6/100*pf\n", + "\n", + "#result\n", + "print \"delta-delta:current in the windings=\",ip,\"A\"\n", + "print \"v-v:current in the windings=\",Ip,\"A\"\n", + "print \"Power factor\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "delta-delta:current in the windings= 28.8683602771 A\n", + "v-v:current in the windings= 50.0014667312 A\n", + "Power factor 0.749956\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.15, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=3000#kW\n", + "v=11#kV\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", + "transformer_pf=86.6/100*pf\n", + "additional_load=72.5/100*load\n", + "total_load=additional_load+load\n", + "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", + "\n", + "#result\n", + "print \"Il=\",il,\"A\"\n", + "print \"phase current=\",il/math.sqrt(3),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Il= 339.521323075 A\n", + "phase current= 196.022727273 A\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.16, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=400#kVA\n", + "pf=0.866\n", + "v=440#V\n", + "\n", + "#calculations\n", + "kVA_each=(load/2)/pf\n", + "phi=math.acos(pf)\n", + "p1=kVA_each*math.cos(math.radians(30-phi))\n", + "p2=kVA_each*math.cos(math.radians(30+phi))\n", + "p=p1+p2\n", + "\n", + "#result\n", + "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", + "print \"kW supplied by each transformer=\",p,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA supplied by each transformer= 230.946882217 kVA\n", + "kW supplied by each transformer= 399.995027715 kW\n" + ] + } + ], + "prompt_number": 136 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.17, Page Number:1228" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "load=33.0#kVA\n", + "v2=3300.0#V\n", + "\n", + "#calculations\n", + "vl=0.866*v2\n", + "ilp=load*1000/(math.sqrt(3)*v2)\n", + "ils=ilp/(440/v2)\n", + "main_kva=v2*ilp*0.001\n", + "teaser_kva=0.866*main_kva\n", + "\n", + "#result\n", + "print \"voltage rating of each coil=\",vl\n", + "print \"current rating of each coil=\",ils\n", + "print \"main kVA=\",main_kva,\"kVA\"\n", + "print \"teaser kVA=\",teaser_kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage rating of each coil= 2857.8\n", + "current rating of each coil= 43.3012701892\n", + "main kVA= 19.0525588833 kVA\n", + "teaser kVA= 16.4995159929 kVA\n" + ] + } + ], + "prompt_number": 139 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.18, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "v2=200.0#V\n", + "output=150.0#kVA\n", + "\n", + "#calculations\n", + "ratio=v2/v\n", + "i2=output*1000/(2*v2)\n", + "i1=i2*ratio\n", + "primary_volts=(math.sqrt(3)*v)/2\n", + "ratio=v2/primary_volts\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"turns ratio\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 170.454545455 A\n", + "turns ratio 0.524863881081\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.19, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=100.0#V\n", + "v2=3300.0#V\n", + "p=400.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2=p*1000/(pf*v)\n", + "ip=1.15*K*i2\n", + "I2m=K*i2\n", + "i2=ip/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#reslult\n", + "print \"Current=\",i1m,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 174.77684841 A\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.20, Page Number:1232" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w1=300#kW\n", + "w2=450#kW\n", + "v1=100#V\n", + "pf=0.707\n", + "v2=3300#V\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2t=(w2*1000)/(100*pf)\n", + "i1t=1.15*K*i2t\n", + "I2m=(K*w1*1000)/(100*pf)\n", + "i2=i1t/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#result\n", + "print \"Current=\",i1m,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 169.804606659 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.21, Page Number:1233" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=80.0#V\n", + "v2=11000.0#V\n", + "w1=500.0#kW\n", + "w2=800.0#kW\n", + "pf=0.5\n", + "\n", + "#calculations\n", + "K=v1/v2\n", + "#unity pf\n", + "i2t=w1*1000/v1\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/v1\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "\n", + "print \"unity pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", + "#0.5 pf\n", + "i2t=w1*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/(v1*pf)\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "print \"0.5 pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "unity pf\n", + "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", + "0.5 pf\n", + "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" + ] + } + ], + "prompt_number": 171 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.22, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=50#V\n", + "v2=4.6*1000#V\n", + "load=350#kW\n", + "w=200#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "K=v1/v2\n", + "i2t=w*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=load*1000/(v1*pf)\n", + "Ki2m=K*i2m\n", + "i1t_half=i1t/2\n", + "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", + "\n", + "#result\n", + "print \"current in line A=\",i1t\n", + "print \"current in line B=\",i1m\n", + "print \"current in line C=\",i1m" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in line A= 62.5\n", + "current in line B= 100.11107076\n", + "current in line C= 100.11107076\n" + ] + } + ], + "prompt_number": 173 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.23, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=231#V\n", + "v2=6600#v\n", + "volt_induced=8#v\n", + "\n", + "#calculations\n", + "hv=v2/volt_induced\n", + "vl=v*math.sqrt(3)\n", + "n_lv1=vl/volt_induced\n", + "n_lv2=math.sqrt(3)*n_lv1/2\n", + "n=2*n_lv2/3\n", + "\n", + "#result\n", + "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "neutral point is located on the 29.0 th turn from A downwards\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.24, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6000.0#V\n", + "v2=440.0#V\n", + "f=50.0#Hz\n", + "area=300.0#cm2\n", + "flux=1.2#Wb/m2\n", + "\n", + "#calculations\n", + "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", + "K=v2/v\n", + "n2=n1*K\n", + "n_lv=math.sqrt(3)*n2/2\n", + "turns=n_lv*2/3\n", + "\n", + "#result\n", + "print \"NUmber of turns in AN=\",math.floor(turns)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " NUmber of turns in AN= 35.0\n" + ] + } + ], + "prompt_number": 183 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.25, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "load=30.0#kVA\n", + "v2=250.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(math.sqrt(3)*v2)\n", + "vl=0.866*v2\n", + "kva=il*vl*(0.001)\n", + "\n", + "#result\n", + "print \"Voltage=\",vl,\"V\"\n", + "print \"kVA rating\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage= 216.5 V\n", + "kVA rating 14.9995599935 kVA\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.26, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#vaiable declaration\n", + "load=500#kVA\n", + "pf=0.8\n", + "za=complex(2,6)\n", + "zb=complex(2,5)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "s=load*complex(math.cos(phi),math.sin(phi))\n", + "z1=za/zb\n", + "z2=zb/za\n", + "sa=s/(1+z1)\n", + "sb=s/(1+z2)\n", + "pfa=cmath.phase(sa)\n", + "pfb=cmath.phase(sb)\n", + "#result\n", + "print \"sa=\",abs(sa)\n", + "print \"sb=\",abs(sb)\n", + "print \"cos phi_a=\",pfa\n", + "print \"cos phi_b=\",pfb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 230.042839552\n", + "sb= 270.171613479\n", + "cos phi_a= 0.611765735265\n", + "cos phi_b= 0.670521557981\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.27, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "w=2000#kVA\n", + "w1=4000#kVA\n", + "w2=5000#kVA\n", + "pf=0.8\n", + "za=complex(2,8)\n", + "zb=complex(1.6,3)\n", + "\n", + "#calculations\n", + "za_per=(w1/w)*za\n", + "zb_per=zb\n", + "z=za_per+zb_per\n", + "s=complex(w1,w-w2)\n", + "sb=s*(za/z)\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (2284.2287695-1821.49046794j)\n", + "sb= (1715.7712305-1178.50953206j)\n" + ] + } + ], + "prompt_number": 211 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.28, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=1400#kVA\n", + "pf=0.866\n", + "w1=1000#kVA\n", + "w2=500#kVA\n", + "v1=6600\n", + "v2=400\n", + "za=complex(0.001,0.003)\n", + "zb=complex(0.0028,0.005)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (929.911014012-588.664867724j)\n", + "sb= (282.488985988-111.396729565j)\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.29, Page Number:1238" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=750#kVA\n", + "pf=0.707\n", + "w1=500#kVA\n", + "w2=250#kVA\n", + "v1=3300\n", + "v2=400\n", + "za=complex(2,3)\n", + "zb=complex(1.5,4)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "per_r=za.real*(sa.real)/w1\n", + "per_x=(za.imag)*(sa.imag)/w1\n", + "total_per=per_r+per_x\n", + "vl=v2-(total_per*4)\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (399.511103547-348.770523615j)\n", + "sb= (130.738896453-181.639636072j)\n" + ] + } + ], + "prompt_number": 242 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.30, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=100/5\n", + "i=5#A\n", + "i1=3.5#A\n", + "\n", + "#calculations\n", + "il=i1*ratio\n", + "\n", + "#result\n", + "print \"Line current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 70.0 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.31, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i1=2000#A\n", + "i2=2500#A\n", + "i=5#A\n", + "\n", + "#calculations\n", + "ratio1=i1/i\n", + "ratio2=i2/i\n", + "\n", + "#result\n", + "print \"ratio in first case=\",ratio1\n", + "print \"ratio in second case=\",ratio2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio in first case= 400\n", + "ratio in second case= 500\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_3.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter33_3.ipynb @@ -0,0 +1,1433 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:62e227cc38186a0706017dd159987c82bd21be1d7e8602e20c55cf079ab30efe" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 33: Transformer:Three Phase" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.1, Page Number:1216" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=3\n", + "f=50.0#Hz\n", + "vd=22000.0#V\n", + "vs=400.0#V\n", + "phi=0.8\n", + "i=5.0#A\n", + "\n", + "#calcuations\n", + "v_phase_secondary=vs/math.sqrt(3)\n", + "K=(vs/vd)/math.sqrt(3)\n", + "i_primary=i/math.sqrt(3)\n", + "i_secondary=i_primary/K\n", + "il=i_secondary\n", + "output=math.sqrt(3)*il*vs*phi\n", + "\n", + "#result\n", + "print \"Output=\",output/10000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Output= 15.2420471066 kW\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.2, Page Number:1217" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=500.0#kVA\n", + "f=50.0#Hz\n", + "vls=11.0#kV\n", + "vld=33.0#kV\n", + "rh=35.0#ohm\n", + "rl=0.876#ohm\n", + "iron_loss=3050.0#W\n", + "phi1=1.0\n", + "phi2=0.8\n", + "\n", + "#calculations\n", + "\n", + "K=(vls*1000)/(math.sqrt(3)*vld*1000)\n", + "r02=rl+K**2*rh\n", + "i_Secondary=(w*1000)/(math.sqrt(3)*vls*1000)\n", + "#full load\n", + "fl_culoss=3*((w/(vls*math.sqrt(3)))**2)*r02\n", + "fl_totalloss=fl_culoss+iron_loss\n", + "fl_efficiency1=w*1000/(w*1000+fl_totalloss)\n", + "fl_efficiency2=(phi2*w*1000)/(w*phi2*1000+fl_totalloss)\n", + "#half load\n", + "cu_loss=.5**2*fl_culoss\n", + "totalloss=cu_loss+iron_loss\n", + "efficiency1=(w*1000/2)/((w*1000/2)+totalloss)\n", + "efficiency2=(w*1000*phi2/2)/((phi2*w*1000/2)+totalloss)\n", + "#result\n", + "print \"full load efficiency at p.f. 1=\",fl_efficiency1*100,\"%\"\n", + "print \"full load efficiency at p.f. 0.8=\",fl_efficiency2*100,\"%\"\n", + "print \"half load efficiency at p.f. 1=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency at p.f. 0.8=\",round(efficiency2*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency at p.f. 1= 98.5147491838 %\n", + "full load efficiency at p.f. 0.8= 98.1503046336 %\n", + "half load efficiency at p.f. 1= 98.3585709725 %\n", + "half load efficiency at p.f. 0.8= 98.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.3, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.02\n", + "va=2000\n", + "reactance=0.1\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculation\n", + "cu_loss=r*100*va/100\n", + "regn=r*100*math.cos(phi)+reactance*100*math.sin(phi)\n", + "\n", + "#result\n", + "print \"Cu loss=\",cu_loss,\"kW\"\n", + "print \"Regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Cu loss= 40.0 kW\n", + "Regulation= 7.6 %\n" + ] + } + ], + "prompt_number": 39 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.4, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w=120.0#kVA\n", + "v1=6000.0\n", + "v2=400.0\n", + "f=50.0#Hz\n", + "iron_loss=1600.0#W\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "cu_loss_fl=iron_loss*((4/3)**2)\n", + "fl_output=w*pf*1000\n", + "total_loss=iron_loss+cu_loss_fl\n", + "efficiency1=fl_output/(fl_output+total_loss)\n", + "cu_loss_hl=0.5**2*cu_loss_fl\n", + "total_loss2=cu_loss_hl+iron_loss\n", + "efficiency2=(w*1000/2)/((w*1000/2)+total_loss2)\n", + "total_loss3=2*iron_loss\n", + "output=(3.0/4)*w*1000\n", + "inpt=output+total_loss3\n", + "efficiency=output/inpt\n", + "\n", + "\n", + "#result\n", + "print \"full load efficiency=\",efficiency1*100,\"%\"\n", + "print \"half load efficiency=\",efficiency2*100,\"%\"\n", + "print \"3/4 load efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load efficiency= 96.7741935484 %\n", + "half load efficiency= 96.7741935484 %\n", + "3/4 load efficiency= 96.5665236052 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.5, Page Number:1218" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "rp=8.0#ohm\n", + "rs=0.08#ohm\n", + "z=0.07\n", + "pf=0.75\n", + "v1=33.0\n", + "v2=6.6\n", + "w=2*10.0**6\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "fl_i=w/(math.sqrt(3)*v2*10**3)\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rs+(rp*(K*K))\n", + "z_drop=z*v2*1000/math.sqrt(3)\n", + "z02=z_drop/fl_i\n", + "x02=math.sqrt((z02*z02)-(r02*r02))\n", + "drop=fl_i*(r02*math.cos(phi)+x02*math.sin(phi))\n", + "secondary_v=v2*1000/math.sqrt(3)\n", + "V2=secondary_v-drop\n", + "line_v=V2*math.sqrt(3)\n", + "regn=drop*100/secondary_v\n", + "\n", + "#result\n", + "print \"secondary voltage\",line_v,\"V\"\n", + "print \"regulation=\",regn,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary voltage 6254.29059005 V\n", + "regulation= 5.23802136291 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.6, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=100.0#kWA\n", + "f=50.0#Hz\n", + "v1=3300.0#V\n", + "v2=400.0#V\n", + "rh=3.5#ohm\n", + "rl=0.02#ohm\n", + "pf=0.8\n", + "efficiency=0.958\n", + "\n", + "#calculations\n", + "output=0.8*100\n", + "inpt=output/efficiency\n", + "total_loss=(inpt-output)*1000\n", + "K=v2/(math.sqrt(3)*v1)\n", + "r02=rl+K**2*rh\n", + "i2=((w*1000)/math.sqrt(3))/v2\n", + "cu_loss=3*i2**2*r02\n", + "iron_loss=total_loss-cu_loss\n", + "#result\n", + "print \"ironloss=\",iron_loss,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.0371411080502\n", + "2321.31925314\n", + "ironloss= 1185.98763622 W\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.7, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=5000.0#kVA\n", + "v1=6.6#kV\n", + "v2=33.0#kV\n", + "nl=15.0#kW\n", + "fl=50.0#kW\n", + "drop=0.07\n", + "load=3200.0#kw\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i2=w*1000/(math.sqrt(3)*v2*1000)\n", + "impedence_drop=drop*(v2/math.sqrt(3))*1000\n", + "z02=impedence_drop/i2\n", + "cu_loss=fl-nl\n", + "r02=cu_loss*1000/(3*i2**2)\n", + "x02=math.sqrt(z02**2-r02**2)\n", + "print \"full-load x02:\",x02\n", + "\n", + "#when load=3200#kW\n", + "i2=load/(math.sqrt(3)*v2*0.8)\n", + "drop_=drop*1000*(r02*math.cos(phi)+z02*math.sin(phi))\n", + "regn=(drop_*100)/(v2*1000/math.sqrt(3))\n", + "vp=v1+regn/100*v1\n", + "print \"Primary voltage=\",vp*1000,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load x02: 15.1695784661\n", + "Primary voltage= 6851.39317975 V\n" + ] + } + ], + "prompt_number": 95 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.8, Page Number:1219" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=1\n", + "x=6\n", + "v=6600#V\n", + "v2=4800#V\n", + "pf=0.8\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "regn=(r*math.cos(phi)+z*math.sin(phi))\n", + "secondary_v=v2+regn/100*v2\n", + "secondary_vp=secondary_v/math.sqrt(3)\n", + "K=secondary_vp/v\n", + "\n", + "#result\n", + "print \"Transformation Ratio=\",K" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Transformation Ratio= 0.423426587968\n" + ] + } + ], + "prompt_number": 96 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.9, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=2000#kVA\n", + "v1=6600#V\n", + "v2=400#V\n", + "pf=0.8\n", + "scv=400#V\n", + "sci=175#A\n", + "scw=17#kW\n", + "ocv=400#V\n", + "oci=150#A\n", + "ocw=15#kW\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "i1=sci/math.sqrt(3)\n", + "z01=scv/i1\n", + "r01=scw*1000/(3*i1*i1)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "r=i1*r01*100/v1\n", + "x=i1*x01*100/v1\n", + "regn=(r*math.cos(phi)-x*math.sin(phi))\n", + "I1=w*1000/(math.sqrt(3)*v1)\n", + "total_loss=scw+ocw\n", + "fl_output=w*pf\n", + "efficiency=fl_output/(fl_output+total_loss)\n", + "\n", + "#result\n", + "print \"% resistance=\",r,\"%\"\n", + "print \"% reactance=\",x,\"%\"\n", + "print \"% efficiency=\",efficiency*100,\"%\"\n", + "print \"%regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "% resistance= 0.849779616989 %\n", + "% reactance= 6.00073499035 %\n", + "% efficiency= 98.0392156863 %\n", + "%regulation= -2.92061730062 %\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.10, Page Number:1220" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=11000.0#V\n", + "v2=440.0#V\n", + "i=5.0#A\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "secondary_rating=v2/math.sqrt(3)\n", + "primary_i=i/math.sqrt(3)\n", + "voltsamps=v1*5/math.sqrt(3)\n", + "i2=voltsamps/secondary_rating\n", + "output=pf*voltsamps/1000\n", + "\n", + "#result\n", + "print \"Each coil current=\",i2,\"A\"\n", + "print \"Total output=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Each coil current= 125.0 A\n", + "Total output= 25.4034118443 kW\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.12, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kVA_per_transformer=load/2*1.15\n", + "delta_delta_rating=kVA_per_transformer*3\n", + "increase=(delta_delta_rating-load)*100/load\n", + "\n", + "#result\n", + "print \"increase=\",increase,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase= 72.5 %\n" + ] + } + ], + "prompt_number": 126 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.13, Page Number:1224" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=20#kVA\n", + "v1=2300#v\n", + "v2=230#V\n", + "load=40#kVA\n", + "\n", + "#calculations\n", + "kva_load=load/math.sqrt(3)\n", + "percent_rated=kva_load*100/w\n", + "kvarating_vv=2*w*0.866\n", + "vv_delta=kvarating_vv*100/60\n", + "percentage_increase=kva_load/(load/3)\n", + "\n", + "#result\n", + "print \"i)kVA load of each transformer=\",kva_load,\"kVA\"\n", + "print \"ii)per cent of rated load carried by each transformer=\",percent_rated,\"%\"\n", + "print \"iii)total kVA rating of the V-V bank\",kvarating_vv,\"kVA\"\n", + "print \"iv)ratio of the v-v bank to delta-delta bank\",vv_delta,\"%\"\n", + "print \"v)percent increase in load=\",percentage_increase*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)kVA load of each transformer= 23.0940107676 kVA\n", + "ii)per cent of rated load carried by each transformer= 115.470053838 %\n", + "iii)total kVA rating of the V-V bank 34.64 kVA\n", + "iv)ratio of the v-v bank to delta-delta bank 57.7333333333 %\n", + "v)percent increase in load= 177.646236674 %\n" + ] + } + ], + "prompt_number": 130 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.14, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=150.0#kW\n", + "v1=1000.0#V\n", + "pf=0.866\n", + "v=2000.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(pf*math.sqrt(3)*1000)\n", + "ip=il/math.sqrt(3)\n", + "ratio=v1/v\n", + "ip=ip*ratio\n", + "I=il\n", + "Ip=I*ratio\n", + "pf=86.6/100*pf\n", + "\n", + "#result\n", + "print \"delta-delta:current in the windings=\",ip,\"A\"\n", + "print \"v-v:current in the windings=\",Ip,\"A\"\n", + "print \"Power factor\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "delta-delta:current in the windings= 28.8683602771 A\n", + "v-v:current in the windings= 50.0014667312 A\n", + "Power factor 0.749956\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.15, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=3000#kW\n", + "v=11#kV\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "I=load*1000/(math.sqrt(3)*v*1000*pf)\n", + "transformer_pf=86.6/100*pf\n", + "additional_load=72.5/100*load\n", + "total_load=additional_load+load\n", + "il=total_load*1000/(math.sqrt(3)*v*1000*pf)\n", + "\n", + "#result\n", + "print \"Il=\",il,\"A\"\n", + "print \"phase current=\",il/math.sqrt(3),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Il= 339.521323075 A\n", + "phase current= 196.022727273 A\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.16, Page Number:1225" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=400#kVA\n", + "pf=0.866\n", + "v=440#V\n", + "\n", + "#calculations\n", + "kVA_each=(load/2)/pf\n", + "phi=math.acos(pf)\n", + "p1=kVA_each*math.cos(math.radians(30-phi))\n", + "p2=kVA_each*math.cos(math.radians(30+phi))\n", + "p=p1+p2\n", + "\n", + "#result\n", + "print \"kVA supplied by each transformer=\",kVA_each,\"kVA\"\n", + "print \"kW supplied by each transformer=\",p,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kVA supplied by each transformer= 230.946882217 kVA\n", + "kW supplied by each transformer= 399.995027715 kW\n" + ] + } + ], + "prompt_number": 136 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.17, Page Number:1228" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "load=33.0#kVA\n", + "v2=3300.0#V\n", + "\n", + "#calculations\n", + "vl=0.866*v2\n", + "ilp=load*1000/(math.sqrt(3)*v2)\n", + "ils=ilp/(440/v2)\n", + "main_kva=v2*ilp*0.001\n", + "teaser_kva=0.866*main_kva\n", + "\n", + "#result\n", + "print \"voltage rating of each coil=\",vl\n", + "print \"current rating of each coil=\",ils\n", + "print \"main kVA=\",main_kva,\"kVA\"\n", + "print \"teaser kVA=\",teaser_kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage rating of each coil= 2857.8\n", + "current rating of each coil= 43.3012701892\n", + "main kVA= 19.0525588833 kVA\n", + "teaser kVA= 16.4995159929 kVA\n" + ] + } + ], + "prompt_number": 139 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.18, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "v2=200.0#V\n", + "output=150.0#kVA\n", + "\n", + "#calculations\n", + "ratio=v2/v\n", + "i2=output*1000/(2*v2)\n", + "i1=i2*ratio\n", + "primary_volts=(math.sqrt(3)*v)/2\n", + "ratio=v2/primary_volts\n", + "\n", + "#result\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"turns ratio\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "primary current= 170.454545455 A\n", + "turns ratio 0.524863881081\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.19, Page Number:1231" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=100.0#V\n", + "v2=3300.0#V\n", + "p=400.0#kW\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2=p*1000/(pf*v)\n", + "ip=1.15*K*i2\n", + "I2m=K*i2\n", + "i2=ip/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#reslult\n", + "print \"Current=\",i1m,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 174.77684841 A\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.20, Page Number:1232" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "w1=300#kW\n", + "w2=450#kW\n", + "v1=100#V\n", + "pf=0.707\n", + "v2=3300#V\n", + "\n", + "#calculations\n", + "K=v/v2\n", + "i2t=(w2*1000)/(100*pf)\n", + "i1t=1.15*K*i2t\n", + "I2m=(K*w1*1000)/(100*pf)\n", + "i2=i1t/2\n", + "i1m=math.sqrt(I2m**2+i2**2)\n", + "\n", + "#result\n", + "print \"Current=\",i1m,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current= 169.804606659 A\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.21, Page Number:1233" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=80.0#V\n", + "v2=11000.0#V\n", + "w1=500.0#kW\n", + "w2=800.0#kW\n", + "pf=0.5\n", + "\n", + "#calculations\n", + "K=v1/v2\n", + "#unity pf\n", + "i2t=w1*1000/v1\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/v1\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "\n", + "print \"unity pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n", + "#0.5 pf\n", + "i2t=w1*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=K*w2*1000/(v1*pf)\n", + "i1t_half=i1t/2\n", + "ip=math.sqrt(i2m**2+i1t_half**2)\n", + "print \"0.5 pf\"\n", + "print \"one 3 phase line carries\",i1t,\"A whereas the other 2 carry\",ip,\"A each\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "unity pf\n", + "one 3 phase line carries 52.2727272727 A whereas the other 2 carry 77.281082436 A each\n", + "0.5 pf\n", + "one 3 phase line carries 104.545454545 A whereas the other 2 carry 154.562164872 A each\n" + ] + } + ], + "prompt_number": 171 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.22, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=50#V\n", + "v2=4.6*1000#V\n", + "load=350#kW\n", + "w=200#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "K=v1/v2\n", + "i2t=w*1000/(v1*pf)\n", + "i1t=1.15*K*i2t\n", + "i2m=load*1000/(v1*pf)\n", + "Ki2m=K*i2m\n", + "i1t_half=i1t/2\n", + "i1m=math.sqrt(Ki2m**2+i1t_half**2)\n", + "\n", + "#result\n", + "print \"current in line A=\",i1t\n", + "print \"current in line B=\",i1m\n", + "print \"current in line C=\",i1m" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current in line A= 62.5\n", + "current in line B= 100.11107076\n", + "current in line C= 100.11107076\n" + ] + } + ], + "prompt_number": 173 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.23, Page Number:1234" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=231#V\n", + "v2=6600#v\n", + "volt_induced=8#v\n", + "\n", + "#calculations\n", + "hv=v2/volt_induced\n", + "vl=v*math.sqrt(3)\n", + "n_lv1=vl/volt_induced\n", + "n_lv2=math.sqrt(3)*n_lv1/2\n", + "n=2*n_lv2/3\n", + "\n", + "#result\n", + "print \"neutral point is located on the\",math.ceil(n),\"th turn from A downwards\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "neutral point is located on the 29.0 th turn from A downwards\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.24, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6000.0#V\n", + "v2=440.0#V\n", + "f=50.0#Hz\n", + "area=300.0#cm2\n", + "flux=1.2#Wb/m2\n", + "\n", + "#calculations\n", + "n1=v/(4.44*f*flux*area*0.0001*0.9)\n", + "K=v2/v\n", + "n2=n1*K\n", + "n_lv=math.sqrt(3)*n2/2\n", + "turns=n_lv*2/3\n", + "\n", + "#result\n", + "print \"NUmber of turns in AN=\",math.floor(turns)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " NUmber of turns in AN= 35.0\n" + ] + } + ], + "prompt_number": 183 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.25, Page Number:1235" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=250.0#V\n", + "load=30.0#kVA\n", + "v2=250.0#V\n", + "\n", + "#calculations\n", + "il=load*1000/(math.sqrt(3)*v2)\n", + "vl=0.866*v2\n", + "kva=il*vl*(0.001)\n", + "\n", + "#result\n", + "print \"Voltage=\",vl,\"V\"\n", + "print \"kVA rating\",kva,\"kVA\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage= 216.5 V\n", + "kVA rating 14.9995599935 kVA\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.26, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#vaiable declaration\n", + "load=500#kVA\n", + "pf=0.8\n", + "za=complex(2,6)\n", + "zb=complex(2,5)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "s=load*complex(math.cos(phi),math.sin(phi))\n", + "z1=za/zb\n", + "z2=zb/za\n", + "sa=s/(1+z1)\n", + "sb=s/(1+z2)\n", + "pfa=cmath.phase(sa)\n", + "pfb=cmath.phase(sb)\n", + "#result\n", + "print \"sa=\",abs(sa)\n", + "print \"sb=\",abs(sb)\n", + "print \"cos phi_a=\",pfa\n", + "print \"cos phi_b=\",pfb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 230.042839552\n", + "sb= 270.171613479\n", + "cos phi_a= 0.611765735265\n", + "cos phi_b= 0.670521557981\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.27, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "w=2000#kVA\n", + "w1=4000#kVA\n", + "w2=5000#kVA\n", + "pf=0.8\n", + "za=complex(2,8)\n", + "zb=complex(1.6,3)\n", + "\n", + "#calculations\n", + "za_per=(w1/w)*za\n", + "zb_per=zb\n", + "z=za_per+zb_per\n", + "s=complex(w1,w-w2)\n", + "sb=s*(za/z)\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (2284.2287695-1821.49046794j)\n", + "sb= (1715.7712305-1178.50953206j)\n" + ] + } + ], + "prompt_number": 211 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.28, Page Number:1237" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=1400#kVA\n", + "pf=0.866\n", + "w1=1000#kVA\n", + "w2=500#kVA\n", + "v1=6600\n", + "v2=400\n", + "za=complex(0.001,0.003)\n", + "zb=complex(0.0028,0.005)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (929.911014012-588.664867724j)\n", + "sb= (282.488985988-111.396729565j)\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.29, Page Number:1238" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "load=750#kVA\n", + "pf=0.707\n", + "w1=500#kVA\n", + "w2=250#kVA\n", + "v1=3300\n", + "v2=400\n", + "za=complex(2,3)\n", + "zb=complex(1.5,4)\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "zb=(w1/w2)*zb\n", + "z=za/(za+zb)\n", + "x=math.cos(-phi)\n", + "y=math.sin(-phi)*1j\n", + "s=load*(x+y)\n", + "sb=s*z\n", + "sa=s-sb\n", + "per_r=za.real*(sa.real)/w1\n", + "per_x=(za.imag)*(sa.imag)/w1\n", + "total_per=per_r+per_x\n", + "vl=v2-(total_per*4)\n", + "#result\n", + "print \"sa=\",sa\n", + "print \"sb=\",sb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= (399.511103547-348.770523615j)\n", + "sb= (130.738896453-181.639636072j)\n" + ] + } + ], + "prompt_number": 242 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.30, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratio=100/5\n", + "i=5#A\n", + "i1=3.5#A\n", + "\n", + "#calculations\n", + "il=i1*ratio\n", + "\n", + "#result\n", + "print \"Line current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 70.0 A\n" + ] + } + ], + "prompt_number": 214 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 33.31, Page Number:1240" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i1=2000#A\n", + "i2=2500#A\n", + "i=5#A\n", + "\n", + "#calculations\n", + "ratio1=i1/i\n", + "ratio2=i2/i\n", + "\n", + "#result\n", + "print \"ratio in first case=\",ratio1\n", + "print \"ratio in second case=\",ratio2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio in first case= 400\n", + "ratio in second case= 500\n" + ] + } + ], + "prompt_number": 216 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb new file mode 100644 index 00000000..d05f1eeb --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb @@ -0,0 +1,3065 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 34:Induction Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.1, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=290.0#rpm\n", + "f=50.0#Hz\n", + "Ns=300.0#rpm(considered)\n", + "#calculation\n", + "P=120*f/Ns\n", + "s=(Ns-n)/Ns\n", + "\n", + "#result\n", + "print \"no. of poles=\",P\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no. of poles= 20.0\n", + "slip= 3.33333333333 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.2, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "slot=3\n", + "f=50#Hz\n", + "\n", + "#calculation\n", + "P=2*n\n", + "slots_total=slot*P*n\n", + "Ns=120*f/P\n", + "\n", + "#result\n", + "print \"No. of stator poles=\",P\n", + "print \"Total number of slots=\",slots_total\n", + "print \"Speed=\",Ns,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " No. of stator poles= 6\n", + "Total number of slots= 54\n", + "Speed= 1000 rpm\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.3, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=3\n", + "f=50#Hz\n", + "slip1=0.04\n", + "slip2=0.03\n", + "\n", + "#calculation\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip1)\n", + "f1=slip2*f*60\n", + "#at standstill s=1\n", + "f2=1*f\n", + "\n", + "#calculation\n", + "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", + "print \"speed of the rotor when the slip is 0.04=\",N\n", + "print \"frequency of rotor current=\",f1,\"rpm\"\n", + "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which magnetic field of the stator is rotating= 1500 rpm\n", + "speed of the rotor when the slip is 0.04= 1440.0\n", + "frequency of rotor current= 90.0 rpm\n", + "frequency of the rotor current at standstill= 50 Hz\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.4, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3.0\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slip=0.04\n", + "n=600.0#rpm\n", + "\n", + "#calculations\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip)\n", + "s=(Ns-n)/Ns\n", + "f1=s*f\n", + "\n", + "#result\n", + "print \"the synchronous speed=\",Ns,\"rpm\"\n", + "print \"the rotor speed=\",N,\"rpm\"\n", + "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the synchronous speed= 1500.0 rpm\n", + "the rotor speed= 1440.0 rpm\n", + "the rotor frequency when n=600 rpm= 30.0 Hz\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.5, Page Number:1256" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "n=3\n", + "N=500#rpm\n", + "p2=8\n", + "slip=0.03\n", + "\n", + "#calculation\n", + "f=p*N/120\n", + "Ns=120*f/p2\n", + "N=Ns-slip*Ns\n", + "\n", + "#result\n", + "print \"full load speed of the motor=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load speed of the motor= 727.5 rpm\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.6, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e=80#V\n", + "r=1#ohm\n", + "x=4#ohm\n", + "rheo=3#ohm\n", + "\n", + "#calculation\n", + "E=e/(3)**0.5\n", + "z=(r**2+x**2)**0.5\n", + "i=E/z\n", + "pf=r/z\n", + "R=rheo+r\n", + "z2=(R**2+x**2)**0.5\n", + "i2=E/z2\n", + "\n", + "pf2=R/z2\n", + "\n", + "#result\n", + "print \"slip rings are short circuited:\"\n", + "print \"current/phase\",i,\"A\"\n", + "print \"pf=\",pf\n", + "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", + "print \"current/phase\",i2,\"A\"\n", + "print \"pf=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip rings are short circuited:\n", + "current/phase 11.2022406722 A\n", + "pf= 0.242535625036\n", + "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", + "pf= 0.707106781187\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.7, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "v=400#V\n", + "ratio=6.5\n", + "r=0.05#ohm\n", + "x=0.25#ohm\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=v*k/(3**0.5)\n", + "R=x-r\n", + "r2=x\n", + "z=(x**2+r2**2)**0.5\n", + "i2=e2/z\n", + "\n", + "#result\n", + "print \"external resistance=\",R,\"ohm\"\n", + "print \"starting current=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.2 ohm\n", + "starting current= 100.491886883 A\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.8, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=1100#V\n", + "f=50#Hz\n", + "ratio=3.8\n", + "r=0.012#ohm\n", + "x=0.25#ohm\n", + "s=0.04\n", + "#calculation\n", + "e=v/ratio\n", + "z=(r**2+x**2)**0.5\n", + "i=e/z\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "er=s*e\n", + "i2=er/zr\n", + "pf2=r/zr\n", + "i2=100*ratio\n", + "z2=e/i2\n", + "r2=(z2**2-x**2)**0.5\n", + "R=r2-r\n", + "\n", + "#result\n", + "print \"current with slip rings shorted=\",i,\"A\"\n", + "print \"pf with slip rings shorted=\",pf\n", + "print \"current with slip=4% and slip rings shorted=\",i2\n", + "print \"pf withslip=4% and slip rings shorted=\",pf2\n", + "print \"external resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current with slip rings shorted= 1156.56314266 A\n", + "pf with slip rings shorted= 0.0479447993684\n", + "current with slip=4% and slip rings shorted= 380.0\n", + "pf withslip=4% and slip rings shorted= 0.768221279597\n", + "external resistance= 0.70758173952 ohm\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.9, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=15#kW\n", + "v=3000#V\n", + "f=50#Hz\n", + "p=6\n", + "ratio=3.6\n", + "r=0.13#ohm\n", + "l=3.61*0.001#H\n", + "\n", + "#calculation\n", + "v=v/3**0.5\n", + "x2=2*3.14*l*f\n", + "k=1/ratio\n", + "r2_=0.1/k**2\n", + "x2_=ratio**2*x2\n", + "is1=v/((r**2+x2_**2)**0.5)\n", + "ns=120*f/p\n", + "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", + "\n", + "#result\n", + "print \"starting current=\",is1,\"A\"\n", + "print \"ts=\",ts,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 117.896733436 A\n", + "ts= 512.375725888 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.10, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zs=complex(0.4,4)\n", + "zr=complex(6,2)\n", + "v=80#V\n", + "s=0.03\n", + "\n", + "#calculation\n", + "e2=v/3**0.5\n", + "i=e2/abs(zr+zs)\n", + "er=s*e2\n", + "xr=s*zs.imag\n", + "ir=er/abs(complex(zs.real,xr))\n", + "\n", + "#result\n", + "print \"rotor current at standstill=\",i,\"A\"\n", + "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor current at standstill= 5.26498126493 A\n", + "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.11, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "e=120#V\n", + "r2=0.3#ohm\n", + "x2=1.5#ohm\n", + "s=0.04\n", + "\n", + "#calculations\n", + "e2=e/3**0.5\n", + "er=s*e2\n", + "xr=s*x2\n", + "zr=(r2**2+xr**2)**0.5\n", + "i=er/zr\n", + "s=r2/x2\n", + "xr=s*x2\n", + "zr=(xr**2+r2**2)**0.5\n", + "er=s*e2\n", + "i2=er/zr\n", + "\n", + "#result\n", + "print \"rotor when running short-circuited=\",i,\"A\"\n", + "print \"slip=\",s\n", + "print \"current when torque is maximum=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor when running short-circuited= 9.05821627316 A\n", + "slip= 0.2\n", + "current when torque is maximum= 32.6598632371 A\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.12, Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tb=150.0#kg-m\n", + "n=660.0#rpm\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "t=tb*(2/((sb/s)+s/sb))\n", + "\n", + "#result\n", + "print \"torque=\",t,\"kg-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 90.0 kg-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(a), Page Number:1266" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variablde declaration\n", + "n=3\n", + "vd=0.90\n", + "\n", + "#calculation\n", + "ratio_s=(1/vd)**2\n", + "ratio_i=ratio_s*vd\n", + "cu_loss_increase=ratio_i**2\n", + "\n", + "#result\n", + "print \"increase in motor copper losses=\",cu_loss_increase" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in motor copper losses= 1.23456790123\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(b), Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "p1=15.0#kW\n", + "n=980.0#rpm\n", + "efficiency=0.93\n", + "vd=0.10\n", + "fd=0.05\n", + "\n", + "#calculation\n", + "v2=(1-vd)*v\n", + "f2=(1-fd)*f\n", + "n1=120*f/p\n", + "n2=120*f2/p\n", + "s1=(n1-n)/n1\n", + "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", + "n2=n2*(1-ratio_f)\n", + "p2=p1*n2/n1\n", + "#result\n", + "print \"the new operating speed=\",n2,\"rpm\"\n", + "print \"the new output power=\",p2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the new operating speed= 935.3795 rpm\n", + "the new output power= 14.0306925 kW\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(a), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=3\n", + "v1=400#V\n", + "v2=200#V\n", + "r=0.06#ohm\n", + "x=0.3#ohm\n", + "a=1\n", + "#calculations\n", + "r=x-r\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 0.24 ohm\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(b), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "f=50#Hz\n", + "p=8\n", + "s=0.02\n", + "r=0.001#ohm\n", + "x=0.005#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "a=r/x\n", + "n2=(1-s)*ns\n", + "ratio=2*s**2*a/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(c), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "v=600#V\n", + "f=50#Hz\n", + "r=0.03#ohm\n", + "x=0.5#ohm\n", + "n=495#rpm\n", + "s=0.01\n", + "#calculation\n", + "Ns=120*f/p\n", + "a=r/x\n", + "n=Ns*(1-a)\n", + "ratio=2*a*s/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"speed of max torque=\",n,\"rpm\"\n", + "print \"ratio of torques=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of max torque= 470.0 rpm\n", + "ratio of torques= 0.324324324324\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.15, Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=746.0#kW\n", + "f=50.0#Hz\n", + "p=16\n", + "zr=complex(0.02,0.15)\n", + "n=360.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "a=zr.real/zr.imag\n", + "ratio=2*a*s/(a**2+s**2)\n", + "N=ns*(1-a)\n", + "R=zr.imag-zr.real\n", + "\n", + "#result\n", + "print \"ratio of torques=\",ratio\n", + "print \"speed at maximum torque=\",N,\"rpm\"\n", + "print \"rotor resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 0.550458715596\n", + "speed at maximum torque= 325.0 rpm\n", + "rotor resistance= 0.13 ohm\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.16, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "p=4\n", + "f=50.0#Hz\n", + "r=0.025#ohm\n", + "x=0.12#ohm\n", + "ratio=3.0/4.0\n", + "\n", + "#calculations\n", + "s=r/x\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "a=solve(ratio-(2*a/(1+a**2)),a)\n", + "r=a[0]*x-r\n", + "\n", + "#result\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at maximum torque= 1187.5 rpm\n", + "additional resistance= 0.0291699475574164 ohm\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.17, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "s=0.04\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "p=8\n", + "#calculation\n", + "a=r/x\n", + "t_ratio=2*a*s/(a**2+s**2)\n", + "ns=120*f/p\n", + "n=(1-a)*ns\n", + "\n", + "#result\n", + "print \"ratio of torques=\",1/t_ratio\n", + "print \"speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 1.45\n", + "speed= 675.0 rpm\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.18, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "a2=Symbol('a2')\n", + "p=3\n", + "t_ratio=2.5\n", + "t_ratio2=1.5\n", + "s=0.03\n", + "\n", + "#calculation\n", + "t_ratio3=t_ratio2/t_ratio\n", + "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", + "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", + "r_red=(a[0]-a2[1])/a[0]\n", + "#result\n", + "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.19, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50#Hz\n", + "r=0.08#ohm\n", + "n=650.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "a=1\n", + "r=a*x2-r\n", + "#result\n", + "print \"extra resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "extra resistance= 0.52 ohm\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.20, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "R=Symbol('R')\n", + "p=4\n", + "f=50.0#Hz\n", + "t=162.8#N-m\n", + "n=1365.0#rpm\n", + "r=0.2#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",round(R[0],1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 0.4 ohm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.21, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "load=7.46#kW\n", + "t_ratios=1.60\n", + "t_ratiom=2.0\n", + "\n", + "#calcualtion\n", + "t_ratio=t_ratios/t_ratiom\n", + "#0.8a2-2*a+0.8 a=0.04\n", + "#0.5=2*a*sf/a2+sf2 sf=0.01\n", + "a=0.04\n", + "sf=0.01\n", + "ns=120*f/p\n", + "n=ns-sf*ns\n", + "N=ns-a*ns\n", + "\n", + "#result\n", + "print \"full-load speed=\",n,\"rpm\"\n", + "print \"speed at maximum torque=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load speed= 1485.0 rpm\n", + "speed at maximum torque= 1440.0 rpm\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.22, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=240#V\n", + "f=50#Hz\n", + "r=0.12#ohm\n", + "x=0.85#ohm\n", + "ratio=1.8\n", + "s=0.04\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=k*(v/3**0.5)\n", + "ns=120*f/p\n", + "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "s=r/x\n", + "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "n=ns*(1-s)\n", + "\n", + "#result\n", + "print \"developed torque=\",tf,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 52.4097855621 N-m\n", + "maximum torque= 99.9125764956 N-m\n", + "speed at maximum torque= 858.823529412 rpm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.23, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "s=0.03\n", + "\n", + "#calculation\n", + "ns=100#rpm considered\n", + "n=(1-s)*ns\n", + "n2=n/2\n", + "s2=(ns-n2)/ns\n", + "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", + "per=1-1/ratio\n", + "phi=math.atan(s2*x/r)\n", + "pf=math.cos(phi)\n", + "\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 22.8528060715 %\n", + "pf= 0.307902262948\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.26, Page Number:1272" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "p=4\n", + "t=100#N-m\n", + "n=1200#rpm\n", + "\n", + "#calculation\n", + "e2=v/2\n", + "ns=120*f/p\n", + "n=ns-n\n", + "n2=n+ns/2\n", + "\n", + "#result\n", + "print \"stator supply voltage=\",e2,\"V\"\n", + "print \"new speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator supply voltage= 220 V\n", + "new speed= 1050 rpm\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.24, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delclaration\n", + "v=400.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=1140.0#rpm\n", + "e=440.0#V\n", + "e2=550.0#V\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "s1=(ns-n)/ns\n", + "s2=s1*(e/e2)**2\n", + "n2=ns*(1-s2)\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1053.6 rpm\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.25, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=450.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=873.0#rpm\n", + "t=23.0#degrees\n", + "n2=864.0#rpm\n", + "alpha=1.0/234.0#per degrees centrigrade\n", + "\n", + "#calculation\n", + "s1=(900-n)/900\n", + "s2=(900-n2)/900\n", + "ratio=s2/s1-1\n", + "t2=(s2/s1-1)/alpha+23 \n", + "\n", + "#result\n", + "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", + "print \"approx temperature=\",t2,\"degrees centigrade\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in rotor resistance= 33.3333333333 %\n", + "approx temperature= 101.0 degrees centigrade\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.27, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=500.0#Hz\n", + "p=6.0\n", + "load=80.0#kW\n", + "alt=100.0\n", + "ns=120.0*f/60.0\n", + "#calculation\n", + "s=alt/(60.0*f)\n", + "n=(1-s)*ns\n", + "cu_loss=(1.0/3.0)*load*1000/3.0\n", + "\n", + "#result\n", + "print \"slip=\",s*1000,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 996.666666667 rpm\n", + "rotor copper loss= 0.888888888889 kW\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.28, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=4.0\n", + "n=1425.0#rpm\n", + "z=complex(0.4,4)\n", + "ratio=0.8\n", + "loss=500.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=75/ns\n", + "e1=v/3**0.5\n", + "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", + "cu_loss=3*ir**2*z.real\n", + "pm=2*3.4*(n/60)*tf\n", + "pout=pm-loss\n", + "s=z.real/z.imag\n", + "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "nmax=ns-s*ns\n", + "i=ratio*e1/abs(z)\n", + "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", + "\n", + "#result\n", + "print \" full load torque=\",tf,\"N-m\"\n", + "print \"rotor current=\",ir,\"A\"\n", + "print \"cu_loss=\",cu_loss,\"W\"\n", + "print \"power output=\",pout,\"W\"\n", + "print \"max torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",nmax,\"rpm\"\n", + "print \"starting current=\",i,\"A\"\n", + "print \"starting torque=\",tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " full load torque= 78.9197452229 N-m\n", + "rotor current= 22.7215022978 A\n", + "cu_loss= 619.52 W\n", + "power output= 12245.5388535 W\n", + "max torque= 98.6496815287 N-m\n", + "speed at max torque= 1350.0 rpm\n", + "starting current= 50.5546790867 A\n", + "starting torque= 19.5345904017 N-m\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.30, Page Number:1286" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60#kW\n", + "loss=1#kW\n", + "s=0.03\n", + "\n", + "#calculations\n", + "p2=load-loss\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2\n", + "rotor_loss=cu_loss*1000/3\n", + "\n", + "#result\n", + "print \"mechanical power developed=\",pm,\"kW\"\n", + "print \"rotor copper loss=\",rotor_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power developed= 57.23 kW\n", + "rotor copper loss= 590.0 W\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.31, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=20#KW\n", + "s=0.03\n", + "i=60#A\n", + "\n", + "#calculation\n", + "fr=s*f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss=s*load*1000\n", + "r2=cu_loss/(3*i**2)\n", + "\n", + "#result\n", + "print \"frequency of rotor current=\",fr,\"Hz\"\n", + "print \"rotor copper loss=\",cu_loss,\"W\"\n", + "print \"rotor resistance=\",r2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of rotor current= 1.5 Hz\n", + "rotor copper loss= 600.0 W\n", + "rotor resistance= 0.0555555555556 ohm\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.32, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50#Hz\n", + "load=3.73#KW\n", + "n=960#rpm\n", + "loss=280#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "input_r=load*1000*ns/n\n", + "input_s=input_r+loss\n", + "\n", + "#result\n", + "print \"stator input=\",input_s,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator input= 4165.41666667 W\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.33, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=75.0#KW\n", + "alt=100.0\n", + "\n", + "#calculations\n", + "f1=alt/60\n", + "s=f1/f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss_r_per_phase=s*p2/3\n", + "pm=(1-s)*p2\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", + "print \"mechancal power=\",pm,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 966.666666667 rpm\n", + "rotor copper loss per phase= 0.833333333333 kW\n", + "mechancal power= 72.5 kW\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.34, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "n=975.0#rpm\n", + "p1=40.0#KW\n", + "loss_s=1.0#kW\n", + "loss=2.0#KW\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "p2=p1-loss_s\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "pout=pm-loss\n", + "efficiency=pout/p1\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor copper loss=\",cu_loss,\"kW\"\n", + "print \"shaft power=\",pout,\"kW\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 2.5 %\n", + "rotor copper loss= 0.975 kW\n", + "shaft power= 36.025 kW\n", + "efficiency= 90.0625 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.35, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=100#KW\n", + "v=3300#V\n", + "f=50#Hz\n", + "n=500#rpm\n", + "s=0.018\n", + "pf=0.85\n", + "cu_loss=2440#W\n", + "iron_loss=3500#W\n", + "rotational_loss=1200#W\n", + "\n", + "#calculations\n", + "pm=output+rotational_loss/1000\n", + "cu_loss_r=(s/(1-s))*pm\n", + "p2=pm+cu_loss_r\n", + "input_s=p2+cu_loss/1000+iron_loss/1000\n", + "il=input_s*1000/(3**0.5*v*pf)\n", + "efficiency=output/input_s\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.85132382892 kW\n", + "line current= 22.1989272175 A\n", + "efficiency= 92.7202341611 %\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.36, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=100.0#W\n", + "c=120.0\n", + "\n", + "#calculations\n", + "s=c/(f*60)\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2/3\n", + "n2=ns-n\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"copper loss=\",cu_loss,\"kW\"\n", + "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 960.0 rpm\n", + "mechanical power= 96.0 kW\n", + "copper loss= 1.33333333333 kW\n", + "speed of stator field with respect to rotor= 40.0 rpm\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.37, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.9\n", + "output=37#kW\n", + "ratio=1.0/3.0\n", + "\n", + "#calculation\n", + "input_m=output*1000/efficiency\n", + "total_loss=input_m-output*1000\n", + "x=total_loss/(3+0.5)\n", + "input_r=output*1000+x/2+x\n", + "s=x/input_r\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.0303030303 %\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.38, Page Number:1289" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=45#KW\n", + "i=75#A\n", + "s=0.03\n", + "iron_loss=1200#kW\n", + "loss=900#kW\n", + "r=0.12#ohm\n", + "\n", + "#calculations\n", + "pf=load*1000/(3**0.5*v*i)\n", + "r=r*3/2\n", + "cu_loss=3*(i/3**0.5)**2*r\n", + "cu_loss_r=s*42788\n", + "pm=42788-cu_loss_r\n", + "output_s=pm-loss\n", + "efficiency=output_s/(load*1000)\n", + "t=(output_s*60)/(2*3.14*970)\n", + "\n", + "#result\n", + "print \"pf=\",pf\n", + "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", + "print \"p out=\",output_s,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf= 0.866025403784\n", + "rotor cu loss= 1283.64 W\n", + "p out= 40604.36 W\n", + "efficiency= 90.2319111111 %\n", + "torque= 399.937881673 N-m\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(a), Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=1.75\n", + "s=0.05\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e1=v/3**0.5\n", + "e2=k*e1\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "pcr=3*i2**2*r\n", + "pm=pcr*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "n=ns*(1-sm)\n", + "e3=sm*e2\n", + "\n", + "#result\n", + "print \"load torque=\",tg/9.81,\"kg-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"rotor emf at max torque=\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load torque= 4.26478644041 kg-m\n", + "speed at maximum torque= 1333.33333333 rpm\n", + "rotor emf at max torque= 8.06457518868 V\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(b), Page Number:1290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=4\n", + "i=10#A\n", + "pf=0.86\n", + "loss=0.05\n", + "cu_r=0.04\n", + "m_loss=0.03\n", + "\n", + "#calculation\n", + "input_m=3**0.5*v*i*pf\n", + "loss_s=loss*input_m\n", + "input_r=input_m-loss_s\n", + "cu_lossr=cu_r*input_r\n", + "mec_loss=m_loss*input_r\n", + "output_shaft=input_r-cu_lossr-mec_loss\n", + "s=cu_lossr/input_r\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "wr=2*3.14*n/60\n", + "output_r=input_r-cu_lossr\n", + "tr=output_r/wr\n", + "tin=output_shaft/wr\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", + "print \"shaft torque=\",tin,\"Nw-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 1440.0 rpm\n", + "torque developed in the rotor= 36.0531340072 Nw-m\n", + "shaft torque= 34.9264735695 Nw-m\n" + ] + } + ], + "prompt_number": 91 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.40, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "p=40.0\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=3.5\n", + "s=0.05\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "k=1/ratio\n", + "e2=k*e1\n", + "er=s*e2\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=er/z\n", + "cu_loss=3*i2**2*r\n", + "output=cu_loss*(1-s)/s\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(x*sm)**2)**0.5\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "input_r=cu_loss/sm\n", + "\n", + "#result\n", + "print \"gross output at 5% slip=\",output,\"W\"\n", + "print \"maximum torque=\",input_r,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross output at 5% slip= 6242.77652849 W\n", + "maximum torque= 8780.04535147 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.41, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=4.0\n", + "f=50.0#Hz\n", + "loss=0.025\n", + "s=0.04\n", + "\n", + "#calculations\n", + "pw=loss*pout*1000\n", + "pm=pout*1000+pw\n", + "cu_loss=s*pm/(1-s)\n", + "p2=cu_loss/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tsh=9.55*pout*1000/n\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"rotor cu loss=\",cu_loss,\"W\"\n", + "print \"rotor input=\",p2,\"W\"\n", + "print \"shaft torque=\",tsh,\"N-m\"\n", + "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor cu loss= 796.510416667 W\n", + "rotor input= 19912.7604167 W\n", + "shaft torque= 123.685763889 N-m\n", + "gross electromagnetic torque= 126.777907986 N-m\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.42, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "n=710#rpm\n", + "load=35#kW\n", + "loss=1200#W\n", + "loss_r=600#W\n", + "\n", + "#calculation\n", + "p2=load*1000-loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "tg=9.55*pm/n\n", + "pout=pm-loss_r\n", + "tsh=9.55*pout/n\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", + "print \"gross torque=\",tg,\"N-m\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"net torque=\",tsh,\"N-m\"\n", + "print \"mechanical power output=\",pout,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.80266666667 kW\n", + "gross torque= 430.386666667 N-m\n", + "mechanical power= 31997.3333333 W\n", + "net torque= 422.316244131 N-m\n", + "mechanical power output= 31397.3333333 W\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.43, Page Number:1292" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tsh=149.3#N-m\n", + "loss=200#W\n", + "cu_loss=1620#W\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pout=tsh*2*3.14*(n/60)\n", + "output=pout+loss\n", + "p2=output*ns/n\n", + "cu_lossr=p2-output\n", + "p1=p2+cu_loss\n", + "efficiency=pout*100/p1\n", + "\n", + "#result\n", + "print \"output power=\",pout/1000,\"kW\"\n", + "print \"rotor cu loss=\",cu_lossr,\"W\"\n", + "print \"the efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 15.001664 kW\n", + "rotor cu loss= 633.402666667 W\n", + "the efficiency= 85.9444669361 %\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.44, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=6\n", + "f=50.0#Hz\n", + "n=960#rpm\n", + "i2=35#A\n", + "loss=1#kW\n", + "\n", + "#calculation\n", + "pm=pout+loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_lossr=pm*s*1000/(1-s)\n", + "r2=cu_lossr/(3*i2**2)\n", + "\n", + "#result\n", + "print \"resistane per phase=\",r2,\"ohm/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistane per phase= 0.222789115646 ohm/phase\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.45, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "sf=Symbol('sf')\n", + "v=400#V\n", + "p=4\n", + "f=50#Hz\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "ratio=4\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "e2=e1/ratio\n", + "sm=r/x\n", + "ns=120*f/p\n", + "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", + "a=r/x\n", + "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", + "n=ns*(1-sf[0])\n", + "tf=tmax/2\n", + "output=2*3.14*n*tf/60\n", + "\n", + "#result\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"full load slip=\",sf[0]\n", + "print \"power output=\",output,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 318.47133758 N-m\n", + "full load slip= 0.0267949192431123\n", + "power output= 24330.1270189222 W\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.46, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "v=200.0#V\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "k=0.67\n", + "s=0.04\n", + "#calculations\n", + "e1=v/3**0.5\n", + "e2=e1*k\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(sm*x)**2)**0.5\n", + "i2=er/zr\n", + "cu_lossr=3*i2**2*r\n", + "output=cu_lossr*(1-sm)/sm\n", + "n=(1-sm)*ns\n", + "tmax=9.55*output/n\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 40.4815391879 N-m\n", + "maximum torque= 63.511037037 N-m\n", + "speed at max torque= 1333.33333333 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.47, Page Number:1293" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "f=50#Hz\n", + "s=0.04\n", + "p=4\n", + "e2=110#V\n", + "\n", + "#calculations\n", + "z=(r**2+x**2)**0.5\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "pf2=r/zr\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "er=s*e2\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"pf of motor at start=\",pf\n", + "print \"pf of motor at s=4%\",pf2\n", + "print \"full load torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf of motor at start= 0.164398987305\n", + "pf of motor at s=4% 0.972387301981\n", + "full load torque= 582.728189612 N-m\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.48, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6.0\n", + "f=50.0#Hz\n", + "tsh=162.84#N-m\n", + "c=90.0\n", + "t=20.36#N-m\n", + "loss=830.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "fr=c/60\n", + "s=fr/f\n", + "n=ns*(1-s)\n", + "output=2*3.14*n*tsh/60\n", + "tg=tsh+t\n", + "p2=tg*ns/9.55\n", + "cu_lossr=s*p2\n", + "p1=p2+cu_lossr\n", + "efficiency=output*100/p1\n", + "\n", + "#result\n", + "print \"motor output=\",output,\"W\"\n", + "print \"cu loss=\",cu_lossr,\"W\"\n", + "print \"motor input\",p1,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 16532.6024 W\n", + "cu loss= 575.497382199 W\n", + "motor input 19758.7434555 W\n", + "efficiency= 83.6723369441 %\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.49, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=420.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "r=1.0#ohm\n", + "z=complex(0.25,0.75)\n", + "zr=complex(0.173,0.52)\n", + "v1=420.0#V\n", + "v2=350.0#V\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=zr.real+k**2*z.real\n", + "x02=zr.imag+k**2*z.imag\n", + "z02=((r+r02)**2+x02**2)**0.5\n", + "i2=v2/(3**0.5*z02)\n", + "cu_loss=i2**2*(r+zr.real)\n", + "p2=cu_loss*3\n", + "ns=120*f/p\n", + "tst=9.55*p2/(ns*9.81)\n", + "#result\n", + "print \"torque=\",tst,\"kg-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 48.2909354778 kg-m\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.50, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "load=37.3#ohm\n", + "v=280#V\n", + "f=50.0#Hz\n", + "i=200#A\n", + "pf=0.25\n", + "r=0.15#ohm\n", + "k=1.0/3\n", + "#calculation\n", + "wsc=2*v*i*pf\n", + "power_phase=v*i*pf\n", + "R=power_phase/i**2\n", + "r2_=R-r\n", + "r2=k**2*r2_\n", + "p2=3*i**2*r2_\n", + "ns=120*f/p\n", + "t=9.55*p2/ns\n", + "\n", + "#result\n", + "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", + "print \"startingtorque=\",t,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", + "startingtorque= 305.6 N-m\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.51, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratios=1.6\n", + "ratiom=2.0\n", + "sf=0.01\n", + "sb=0.04\n", + "#calculation\n", + "i=(ratios/sf)**0.5\n", + "\n", + "#result\n", + "print \"slip at full load=\",sf\n", + "print \"slip at maximum torque=\",sb\n", + "print \"rotor current=\",i" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip at full load= 0.01\n", + "slip at maximum torque= 0.04\n", + "rotor current= 12.6491106407\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.52, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200#km/h\n", + "f=100#Hz\n", + "\n", + "#calculation\n", + "w=v*5.0/18/(2*f)\n", + "\n", + "#result\n", + "print \"pole pitch=\",w*1000,\"mm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pole pitch= 277.777777778 mm\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.53, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "w=6#mm\n", + "f=25#Hz\n", + "p=6#kW\n", + "loss=1.2#kW\n", + "v=2.4#m/s\n", + "\n", + "#calculation\n", + "vs=2*f*w/100\n", + "s=(vs-v)/vs\n", + "p2=p-loss\n", + "pcr=s*p2\n", + "pm=p2-pcr\n", + "f=p2*1000/vs\n", + "\n", + "#result\n", + "print \"synchronous speed=\",vs,\"m/s\"\n", + "print \"slip=\",s\n", + "print \"cu loss=\",pcr,\"kW\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"thrust=\",f/1000,\"kN\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous speed= 3 m/s\n", + "slip= 0.2\n", + "cu loss= 0.96 kW\n", + "mechanical power= 3.84 kW\n", + "thrust= 1.6 kN\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.54, Page Number:1304" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=0.12\n", + "r=0.08#ohm/phase\n", + "pg=9000.0#W\n", + "\n", + "#calculations\n", + "rl=r*(1/s-1)\n", + "v=(pg*rl/3)**0.5\n", + "il=v/rl\n", + "\n", + "#result\n", + "print \"load resistance=\",rl,\"ohm\"\n", + "print \"load voltage=\",v,\"V\"\n", + "print \"load current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load resistance= 0.586666666667 ohm\n", + "load voltage= 41.9523539268 V\n", + "load current= 71.5096941934 A\n" + ] + } + ], + "prompt_number": 166 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.55, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=4\n", + "r1=0.15#ohm\n", + "x1=0.45#ohm\n", + "r2_=0.12#ohm\n", + "x2_=0.45#ohm\n", + "xm=complex(0,28.5)#ohm\n", + "s=0.04\n", + "#calculations\n", + "rl_=r2_*(1/s-1)\n", + "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", + "i0=(v/3**0.5)/xm\n", + "i1=i0+i2_\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "\n", + "#result\n", + "print \"stator current=\",i1,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator current= (74.5730253701-19.1783634605j) A\n", + "power factor= 0.968485280755\n" + ] + } + ], + "prompt_number": 177 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.56, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "f=50#Hz\n", + "power=3.73#kW\n", + "r1=0.45#ohm\n", + "x1=0.8#ohm\n", + "r2_=0.4#ohm\n", + "x2_=0.8#ohm\n", + "b0=-1.0/30\n", + "loss=50#W\n", + "lossr=150#W\n", + "s=0.04\n", + "\n", + "#calculations\n", + "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", + "z01=complex(r1,x1)+zab\n", + "vph=v/3**0.5\n", + "i1=v1/z01\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i1.real**2*zab.real\n", + "pm=(1-s)*p2\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "power_o=pm-lossr\n", + "cu_loss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_loss+cu_lossr+lossr\n", + "efficiency=power_o/(power_o+total_loss)\n", + "\n", + "#result\n", + "print \"input current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"air gap power=\",p2,\"W\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"electro magnetic torque=\",tg,\"N-m\"\n", + "print \"output power=\",power_o,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "input current= (21.9914486234+42.6194245913j) A\n", + "pf= 0.45854949826\n", + "air gap power= 5173.46132109 W\n", + "mechanical power= 4966.52286825 W\n", + "electro magnetic torque= 32.9377037443 N-m\n", + "output power= 4816.52286825 W\n", + "efficiency= 81.9644851937 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.57, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "load=37.3#kW\n", + "r1=0.1#ohm\n", + "x1=0.4#ohm\n", + "r2_=0.15#ohm\n", + "x2_=0.44#ohm\n", + "loss=1250#W\n", + "lossr=1000#W\n", + "i=20#A\n", + "pf=0.09\n", + "s=0.03\n", + "\n", + "#calculation\n", + "v1=v/3**0.5\n", + "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", + "i1=i2_+complex(1.78,19.9)\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i2_.real**2*r2_/s\n", + "ns=120*f/p\n", + "tg=9.55*p2/ns\n", + "pm=p2*(1-s)\n", + "pout=pm-1000\n", + "cu_losss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_losss+cu_lossr+lossr\n", + "efficiency=pout/(pout+total_loss)\n", + "\n", + "#result\n", + "print \"line current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"electromagnetic torque=\",tg,\"N-m\"\n", + "print \"output=\",pout,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= (50.2750367599+11.9125821807j) A\n", + "pf= 0.973057118792\n", + "electromagnetic torque= 224.593900377 N-m\n", + "output= 33218.2329894 W\n", + "efficiency= 89.0932246577 %\n" + ] + } + ], + "prompt_number": 186 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.58, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.06,0.2)\n", + "zr=complex(0.06,0.22)\n", + "\n", + "#calculation\n", + "r01=z.real+zr.real\n", + "x01=z.imag+zr.imag\n", + "z01=(r01**2+x01**2)**0.5\n", + "s=z.real/(z.real+z01)\n", + "v1=v/3**0.5\n", + "pmax=3*v1**2/(2*(r01+z01))\n", + "\n", + "#result\n", + "print \"maximum gross power=\",pmax,\"W\"\n", + "print \"slip=\",s" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum gross power= 143676.459572 W\n", + "slip= 0.120771344025\n" + ] + } + ], + "prompt_number": 188 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.59, Page Number:1307" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=115#V\n", + "f=60.0#Hz\n", + "p=6\n", + "z=complex(0.07,0.3)\n", + "zr=complex(0.08,0.3)\n", + "gd=0.022#mho\n", + "bo=0.158#mho\n", + "s=0.02\n", + "\n", + "#calculation\n", + "rl_=1/bo*(1/s-1)\n", + "z=complex(z.real+zr.real+rl_,0.6)\n", + "v=v1/3**0.5\n", + "i2=complex(16,-2.36)\n", + "io=v*complex(gd,-bo)\n", + "i1=io+i2\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "pg=3*abs(i2)**2*rl_/100\n", + "ns=120*f/p\n", + "n=(1-s)*ns\n", + "tg=9.55*pg/n\n", + "p2=3**0.5*v1*abs(i1)*pf\n", + "efficiency=pg*100/p2\n", + "\n", + "#result\n", + "print \"secondary current=\",i2,\"A\"\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"power output=\",pg,\"W\"\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"input=\",p2,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary current= (16-2.36j) A\n", + "primary current= (17.460696181-12.8504543912j) A\n", + "pf= 0.805393212665\n", + "power output= 2433.59058228 W\n", + "torque= 19.7625765823 N-m\n", + "input= 3477.92348593 W\n", + "efficiency= 69.9725164204 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.60, Page Number:1308" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10,50)\n", + "s=0.05\n", + "\n", + "#calculation\n", + "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", + "v1=v/3**0.5\n", + "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", + "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", + "#result\n", + "print \"maximum torque=\",tgmax,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 277.144160399 N-m\n" + ] + } + ], + "prompt_number": 208 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_1.ipynb new file mode 100644 index 00000000..d05f1eeb --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_1.ipynb @@ -0,0 +1,3065 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 34:Induction Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.1, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=290.0#rpm\n", + "f=50.0#Hz\n", + "Ns=300.0#rpm(considered)\n", + "#calculation\n", + "P=120*f/Ns\n", + "s=(Ns-n)/Ns\n", + "\n", + "#result\n", + "print \"no. of poles=\",P\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no. of poles= 20.0\n", + "slip= 3.33333333333 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.2, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "slot=3\n", + "f=50#Hz\n", + "\n", + "#calculation\n", + "P=2*n\n", + "slots_total=slot*P*n\n", + "Ns=120*f/P\n", + "\n", + "#result\n", + "print \"No. of stator poles=\",P\n", + "print \"Total number of slots=\",slots_total\n", + "print \"Speed=\",Ns,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " No. of stator poles= 6\n", + "Total number of slots= 54\n", + "Speed= 1000 rpm\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.3, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=3\n", + "f=50#Hz\n", + "slip1=0.04\n", + "slip2=0.03\n", + "\n", + "#calculation\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip1)\n", + "f1=slip2*f*60\n", + "#at standstill s=1\n", + "f2=1*f\n", + "\n", + "#calculation\n", + "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", + "print \"speed of the rotor when the slip is 0.04=\",N\n", + "print \"frequency of rotor current=\",f1,\"rpm\"\n", + "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which magnetic field of the stator is rotating= 1500 rpm\n", + "speed of the rotor when the slip is 0.04= 1440.0\n", + "frequency of rotor current= 90.0 rpm\n", + "frequency of the rotor current at standstill= 50 Hz\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.4, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3.0\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slip=0.04\n", + "n=600.0#rpm\n", + "\n", + "#calculations\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip)\n", + "s=(Ns-n)/Ns\n", + "f1=s*f\n", + "\n", + "#result\n", + "print \"the synchronous speed=\",Ns,\"rpm\"\n", + "print \"the rotor speed=\",N,\"rpm\"\n", + "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the synchronous speed= 1500.0 rpm\n", + "the rotor speed= 1440.0 rpm\n", + "the rotor frequency when n=600 rpm= 30.0 Hz\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.5, Page Number:1256" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "n=3\n", + "N=500#rpm\n", + "p2=8\n", + "slip=0.03\n", + "\n", + "#calculation\n", + "f=p*N/120\n", + "Ns=120*f/p2\n", + "N=Ns-slip*Ns\n", + "\n", + "#result\n", + "print \"full load speed of the motor=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load speed of the motor= 727.5 rpm\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.6, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e=80#V\n", + "r=1#ohm\n", + "x=4#ohm\n", + "rheo=3#ohm\n", + "\n", + "#calculation\n", + "E=e/(3)**0.5\n", + "z=(r**2+x**2)**0.5\n", + "i=E/z\n", + "pf=r/z\n", + "R=rheo+r\n", + "z2=(R**2+x**2)**0.5\n", + "i2=E/z2\n", + "\n", + "pf2=R/z2\n", + "\n", + "#result\n", + "print \"slip rings are short circuited:\"\n", + "print \"current/phase\",i,\"A\"\n", + "print \"pf=\",pf\n", + "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", + "print \"current/phase\",i2,\"A\"\n", + "print \"pf=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip rings are short circuited:\n", + "current/phase 11.2022406722 A\n", + "pf= 0.242535625036\n", + "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", + "pf= 0.707106781187\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.7, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "v=400#V\n", + "ratio=6.5\n", + "r=0.05#ohm\n", + "x=0.25#ohm\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=v*k/(3**0.5)\n", + "R=x-r\n", + "r2=x\n", + "z=(x**2+r2**2)**0.5\n", + "i2=e2/z\n", + "\n", + "#result\n", + "print \"external resistance=\",R,\"ohm\"\n", + "print \"starting current=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.2 ohm\n", + "starting current= 100.491886883 A\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.8, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=1100#V\n", + "f=50#Hz\n", + "ratio=3.8\n", + "r=0.012#ohm\n", + "x=0.25#ohm\n", + "s=0.04\n", + "#calculation\n", + "e=v/ratio\n", + "z=(r**2+x**2)**0.5\n", + "i=e/z\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "er=s*e\n", + "i2=er/zr\n", + "pf2=r/zr\n", + "i2=100*ratio\n", + "z2=e/i2\n", + "r2=(z2**2-x**2)**0.5\n", + "R=r2-r\n", + "\n", + "#result\n", + "print \"current with slip rings shorted=\",i,\"A\"\n", + "print \"pf with slip rings shorted=\",pf\n", + "print \"current with slip=4% and slip rings shorted=\",i2\n", + "print \"pf withslip=4% and slip rings shorted=\",pf2\n", + "print \"external resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current with slip rings shorted= 1156.56314266 A\n", + "pf with slip rings shorted= 0.0479447993684\n", + "current with slip=4% and slip rings shorted= 380.0\n", + "pf withslip=4% and slip rings shorted= 0.768221279597\n", + "external resistance= 0.70758173952 ohm\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.9, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=15#kW\n", + "v=3000#V\n", + "f=50#Hz\n", + "p=6\n", + "ratio=3.6\n", + "r=0.13#ohm\n", + "l=3.61*0.001#H\n", + "\n", + "#calculation\n", + "v=v/3**0.5\n", + "x2=2*3.14*l*f\n", + "k=1/ratio\n", + "r2_=0.1/k**2\n", + "x2_=ratio**2*x2\n", + "is1=v/((r**2+x2_**2)**0.5)\n", + "ns=120*f/p\n", + "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", + "\n", + "#result\n", + "print \"starting current=\",is1,\"A\"\n", + "print \"ts=\",ts,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 117.896733436 A\n", + "ts= 512.375725888 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.10, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zs=complex(0.4,4)\n", + "zr=complex(6,2)\n", + "v=80#V\n", + "s=0.03\n", + "\n", + "#calculation\n", + "e2=v/3**0.5\n", + "i=e2/abs(zr+zs)\n", + "er=s*e2\n", + "xr=s*zs.imag\n", + "ir=er/abs(complex(zs.real,xr))\n", + "\n", + "#result\n", + "print \"rotor current at standstill=\",i,\"A\"\n", + "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor current at standstill= 5.26498126493 A\n", + "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.11, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "e=120#V\n", + "r2=0.3#ohm\n", + "x2=1.5#ohm\n", + "s=0.04\n", + "\n", + "#calculations\n", + "e2=e/3**0.5\n", + "er=s*e2\n", + "xr=s*x2\n", + "zr=(r2**2+xr**2)**0.5\n", + "i=er/zr\n", + "s=r2/x2\n", + "xr=s*x2\n", + "zr=(xr**2+r2**2)**0.5\n", + "er=s*e2\n", + "i2=er/zr\n", + "\n", + "#result\n", + "print \"rotor when running short-circuited=\",i,\"A\"\n", + "print \"slip=\",s\n", + "print \"current when torque is maximum=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor when running short-circuited= 9.05821627316 A\n", + "slip= 0.2\n", + "current when torque is maximum= 32.6598632371 A\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.12, Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tb=150.0#kg-m\n", + "n=660.0#rpm\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "t=tb*(2/((sb/s)+s/sb))\n", + "\n", + "#result\n", + "print \"torque=\",t,\"kg-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 90.0 kg-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(a), Page Number:1266" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variablde declaration\n", + "n=3\n", + "vd=0.90\n", + "\n", + "#calculation\n", + "ratio_s=(1/vd)**2\n", + "ratio_i=ratio_s*vd\n", + "cu_loss_increase=ratio_i**2\n", + "\n", + "#result\n", + "print \"increase in motor copper losses=\",cu_loss_increase" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in motor copper losses= 1.23456790123\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(b), Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "p1=15.0#kW\n", + "n=980.0#rpm\n", + "efficiency=0.93\n", + "vd=0.10\n", + "fd=0.05\n", + "\n", + "#calculation\n", + "v2=(1-vd)*v\n", + "f2=(1-fd)*f\n", + "n1=120*f/p\n", + "n2=120*f2/p\n", + "s1=(n1-n)/n1\n", + "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", + "n2=n2*(1-ratio_f)\n", + "p2=p1*n2/n1\n", + "#result\n", + "print \"the new operating speed=\",n2,\"rpm\"\n", + "print \"the new output power=\",p2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the new operating speed= 935.3795 rpm\n", + "the new output power= 14.0306925 kW\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(a), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=3\n", + "v1=400#V\n", + "v2=200#V\n", + "r=0.06#ohm\n", + "x=0.3#ohm\n", + "a=1\n", + "#calculations\n", + "r=x-r\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 0.24 ohm\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(b), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "f=50#Hz\n", + "p=8\n", + "s=0.02\n", + "r=0.001#ohm\n", + "x=0.005#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "a=r/x\n", + "n2=(1-s)*ns\n", + "ratio=2*s**2*a/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(c), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "v=600#V\n", + "f=50#Hz\n", + "r=0.03#ohm\n", + "x=0.5#ohm\n", + "n=495#rpm\n", + "s=0.01\n", + "#calculation\n", + "Ns=120*f/p\n", + "a=r/x\n", + "n=Ns*(1-a)\n", + "ratio=2*a*s/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"speed of max torque=\",n,\"rpm\"\n", + "print \"ratio of torques=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of max torque= 470.0 rpm\n", + "ratio of torques= 0.324324324324\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.15, Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=746.0#kW\n", + "f=50.0#Hz\n", + "p=16\n", + "zr=complex(0.02,0.15)\n", + "n=360.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "a=zr.real/zr.imag\n", + "ratio=2*a*s/(a**2+s**2)\n", + "N=ns*(1-a)\n", + "R=zr.imag-zr.real\n", + "\n", + "#result\n", + "print \"ratio of torques=\",ratio\n", + "print \"speed at maximum torque=\",N,\"rpm\"\n", + "print \"rotor resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 0.550458715596\n", + "speed at maximum torque= 325.0 rpm\n", + "rotor resistance= 0.13 ohm\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.16, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "p=4\n", + "f=50.0#Hz\n", + "r=0.025#ohm\n", + "x=0.12#ohm\n", + "ratio=3.0/4.0\n", + "\n", + "#calculations\n", + "s=r/x\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "a=solve(ratio-(2*a/(1+a**2)),a)\n", + "r=a[0]*x-r\n", + "\n", + "#result\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at maximum torque= 1187.5 rpm\n", + "additional resistance= 0.0291699475574164 ohm\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.17, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "s=0.04\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "p=8\n", + "#calculation\n", + "a=r/x\n", + "t_ratio=2*a*s/(a**2+s**2)\n", + "ns=120*f/p\n", + "n=(1-a)*ns\n", + "\n", + "#result\n", + "print \"ratio of torques=\",1/t_ratio\n", + "print \"speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 1.45\n", + "speed= 675.0 rpm\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.18, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "a2=Symbol('a2')\n", + "p=3\n", + "t_ratio=2.5\n", + "t_ratio2=1.5\n", + "s=0.03\n", + "\n", + "#calculation\n", + "t_ratio3=t_ratio2/t_ratio\n", + "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", + "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", + "r_red=(a[0]-a2[1])/a[0]\n", + "#result\n", + "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.19, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50#Hz\n", + "r=0.08#ohm\n", + "n=650.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "a=1\n", + "r=a*x2-r\n", + "#result\n", + "print \"extra resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "extra resistance= 0.52 ohm\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.20, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "R=Symbol('R')\n", + "p=4\n", + "f=50.0#Hz\n", + "t=162.8#N-m\n", + "n=1365.0#rpm\n", + "r=0.2#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",round(R[0],1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 0.4 ohm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.21, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "load=7.46#kW\n", + "t_ratios=1.60\n", + "t_ratiom=2.0\n", + "\n", + "#calcualtion\n", + "t_ratio=t_ratios/t_ratiom\n", + "#0.8a2-2*a+0.8 a=0.04\n", + "#0.5=2*a*sf/a2+sf2 sf=0.01\n", + "a=0.04\n", + "sf=0.01\n", + "ns=120*f/p\n", + "n=ns-sf*ns\n", + "N=ns-a*ns\n", + "\n", + "#result\n", + "print \"full-load speed=\",n,\"rpm\"\n", + "print \"speed at maximum torque=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load speed= 1485.0 rpm\n", + "speed at maximum torque= 1440.0 rpm\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.22, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=240#V\n", + "f=50#Hz\n", + "r=0.12#ohm\n", + "x=0.85#ohm\n", + "ratio=1.8\n", + "s=0.04\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=k*(v/3**0.5)\n", + "ns=120*f/p\n", + "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "s=r/x\n", + "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "n=ns*(1-s)\n", + "\n", + "#result\n", + "print \"developed torque=\",tf,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 52.4097855621 N-m\n", + "maximum torque= 99.9125764956 N-m\n", + "speed at maximum torque= 858.823529412 rpm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.23, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "s=0.03\n", + "\n", + "#calculation\n", + "ns=100#rpm considered\n", + "n=(1-s)*ns\n", + "n2=n/2\n", + "s2=(ns-n2)/ns\n", + "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", + "per=1-1/ratio\n", + "phi=math.atan(s2*x/r)\n", + "pf=math.cos(phi)\n", + "\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 22.8528060715 %\n", + "pf= 0.307902262948\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.26, Page Number:1272" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "p=4\n", + "t=100#N-m\n", + "n=1200#rpm\n", + "\n", + "#calculation\n", + "e2=v/2\n", + "ns=120*f/p\n", + "n=ns-n\n", + "n2=n+ns/2\n", + "\n", + "#result\n", + "print \"stator supply voltage=\",e2,\"V\"\n", + "print \"new speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator supply voltage= 220 V\n", + "new speed= 1050 rpm\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.24, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delclaration\n", + "v=400.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=1140.0#rpm\n", + "e=440.0#V\n", + "e2=550.0#V\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "s1=(ns-n)/ns\n", + "s2=s1*(e/e2)**2\n", + "n2=ns*(1-s2)\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1053.6 rpm\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.25, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=450.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=873.0#rpm\n", + "t=23.0#degrees\n", + "n2=864.0#rpm\n", + "alpha=1.0/234.0#per degrees centrigrade\n", + "\n", + "#calculation\n", + "s1=(900-n)/900\n", + "s2=(900-n2)/900\n", + "ratio=s2/s1-1\n", + "t2=(s2/s1-1)/alpha+23 \n", + "\n", + "#result\n", + "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", + "print \"approx temperature=\",t2,\"degrees centigrade\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in rotor resistance= 33.3333333333 %\n", + "approx temperature= 101.0 degrees centigrade\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.27, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=500.0#Hz\n", + "p=6.0\n", + "load=80.0#kW\n", + "alt=100.0\n", + "ns=120.0*f/60.0\n", + "#calculation\n", + "s=alt/(60.0*f)\n", + "n=(1-s)*ns\n", + "cu_loss=(1.0/3.0)*load*1000/3.0\n", + "\n", + "#result\n", + "print \"slip=\",s*1000,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 996.666666667 rpm\n", + "rotor copper loss= 0.888888888889 kW\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.28, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=4.0\n", + "n=1425.0#rpm\n", + "z=complex(0.4,4)\n", + "ratio=0.8\n", + "loss=500.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=75/ns\n", + "e1=v/3**0.5\n", + "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", + "cu_loss=3*ir**2*z.real\n", + "pm=2*3.4*(n/60)*tf\n", + "pout=pm-loss\n", + "s=z.real/z.imag\n", + "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "nmax=ns-s*ns\n", + "i=ratio*e1/abs(z)\n", + "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", + "\n", + "#result\n", + "print \" full load torque=\",tf,\"N-m\"\n", + "print \"rotor current=\",ir,\"A\"\n", + "print \"cu_loss=\",cu_loss,\"W\"\n", + "print \"power output=\",pout,\"W\"\n", + "print \"max torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",nmax,\"rpm\"\n", + "print \"starting current=\",i,\"A\"\n", + "print \"starting torque=\",tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " full load torque= 78.9197452229 N-m\n", + "rotor current= 22.7215022978 A\n", + "cu_loss= 619.52 W\n", + "power output= 12245.5388535 W\n", + "max torque= 98.6496815287 N-m\n", + "speed at max torque= 1350.0 rpm\n", + "starting current= 50.5546790867 A\n", + "starting torque= 19.5345904017 N-m\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.30, Page Number:1286" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60#kW\n", + "loss=1#kW\n", + "s=0.03\n", + "\n", + "#calculations\n", + "p2=load-loss\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2\n", + "rotor_loss=cu_loss*1000/3\n", + "\n", + "#result\n", + "print \"mechanical power developed=\",pm,\"kW\"\n", + "print \"rotor copper loss=\",rotor_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power developed= 57.23 kW\n", + "rotor copper loss= 590.0 W\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.31, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=20#KW\n", + "s=0.03\n", + "i=60#A\n", + "\n", + "#calculation\n", + "fr=s*f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss=s*load*1000\n", + "r2=cu_loss/(3*i**2)\n", + "\n", + "#result\n", + "print \"frequency of rotor current=\",fr,\"Hz\"\n", + "print \"rotor copper loss=\",cu_loss,\"W\"\n", + "print \"rotor resistance=\",r2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of rotor current= 1.5 Hz\n", + "rotor copper loss= 600.0 W\n", + "rotor resistance= 0.0555555555556 ohm\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.32, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50#Hz\n", + "load=3.73#KW\n", + "n=960#rpm\n", + "loss=280#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "input_r=load*1000*ns/n\n", + "input_s=input_r+loss\n", + "\n", + "#result\n", + "print \"stator input=\",input_s,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator input= 4165.41666667 W\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.33, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=75.0#KW\n", + "alt=100.0\n", + "\n", + "#calculations\n", + "f1=alt/60\n", + "s=f1/f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss_r_per_phase=s*p2/3\n", + "pm=(1-s)*p2\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", + "print \"mechancal power=\",pm,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 966.666666667 rpm\n", + "rotor copper loss per phase= 0.833333333333 kW\n", + "mechancal power= 72.5 kW\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.34, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "n=975.0#rpm\n", + "p1=40.0#KW\n", + "loss_s=1.0#kW\n", + "loss=2.0#KW\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "p2=p1-loss_s\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "pout=pm-loss\n", + "efficiency=pout/p1\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor copper loss=\",cu_loss,\"kW\"\n", + "print \"shaft power=\",pout,\"kW\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 2.5 %\n", + "rotor copper loss= 0.975 kW\n", + "shaft power= 36.025 kW\n", + "efficiency= 90.0625 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.35, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=100#KW\n", + "v=3300#V\n", + "f=50#Hz\n", + "n=500#rpm\n", + "s=0.018\n", + "pf=0.85\n", + "cu_loss=2440#W\n", + "iron_loss=3500#W\n", + "rotational_loss=1200#W\n", + "\n", + "#calculations\n", + "pm=output+rotational_loss/1000\n", + "cu_loss_r=(s/(1-s))*pm\n", + "p2=pm+cu_loss_r\n", + "input_s=p2+cu_loss/1000+iron_loss/1000\n", + "il=input_s*1000/(3**0.5*v*pf)\n", + "efficiency=output/input_s\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.85132382892 kW\n", + "line current= 22.1989272175 A\n", + "efficiency= 92.7202341611 %\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.36, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=100.0#W\n", + "c=120.0\n", + "\n", + "#calculations\n", + "s=c/(f*60)\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2/3\n", + "n2=ns-n\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"copper loss=\",cu_loss,\"kW\"\n", + "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 960.0 rpm\n", + "mechanical power= 96.0 kW\n", + "copper loss= 1.33333333333 kW\n", + "speed of stator field with respect to rotor= 40.0 rpm\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.37, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.9\n", + "output=37#kW\n", + "ratio=1.0/3.0\n", + "\n", + "#calculation\n", + "input_m=output*1000/efficiency\n", + "total_loss=input_m-output*1000\n", + "x=total_loss/(3+0.5)\n", + "input_r=output*1000+x/2+x\n", + "s=x/input_r\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.0303030303 %\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.38, Page Number:1289" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=45#KW\n", + "i=75#A\n", + "s=0.03\n", + "iron_loss=1200#kW\n", + "loss=900#kW\n", + "r=0.12#ohm\n", + "\n", + "#calculations\n", + "pf=load*1000/(3**0.5*v*i)\n", + "r=r*3/2\n", + "cu_loss=3*(i/3**0.5)**2*r\n", + "cu_loss_r=s*42788\n", + "pm=42788-cu_loss_r\n", + "output_s=pm-loss\n", + "efficiency=output_s/(load*1000)\n", + "t=(output_s*60)/(2*3.14*970)\n", + "\n", + "#result\n", + "print \"pf=\",pf\n", + "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", + "print \"p out=\",output_s,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf= 0.866025403784\n", + "rotor cu loss= 1283.64 W\n", + "p out= 40604.36 W\n", + "efficiency= 90.2319111111 %\n", + "torque= 399.937881673 N-m\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(a), Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=1.75\n", + "s=0.05\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e1=v/3**0.5\n", + "e2=k*e1\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "pcr=3*i2**2*r\n", + "pm=pcr*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "n=ns*(1-sm)\n", + "e3=sm*e2\n", + "\n", + "#result\n", + "print \"load torque=\",tg/9.81,\"kg-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"rotor emf at max torque=\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load torque= 4.26478644041 kg-m\n", + "speed at maximum torque= 1333.33333333 rpm\n", + "rotor emf at max torque= 8.06457518868 V\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(b), Page Number:1290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=4\n", + "i=10#A\n", + "pf=0.86\n", + "loss=0.05\n", + "cu_r=0.04\n", + "m_loss=0.03\n", + "\n", + "#calculation\n", + "input_m=3**0.5*v*i*pf\n", + "loss_s=loss*input_m\n", + "input_r=input_m-loss_s\n", + "cu_lossr=cu_r*input_r\n", + "mec_loss=m_loss*input_r\n", + "output_shaft=input_r-cu_lossr-mec_loss\n", + "s=cu_lossr/input_r\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "wr=2*3.14*n/60\n", + "output_r=input_r-cu_lossr\n", + "tr=output_r/wr\n", + "tin=output_shaft/wr\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", + "print \"shaft torque=\",tin,\"Nw-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 1440.0 rpm\n", + "torque developed in the rotor= 36.0531340072 Nw-m\n", + "shaft torque= 34.9264735695 Nw-m\n" + ] + } + ], + "prompt_number": 91 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.40, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "p=40.0\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=3.5\n", + "s=0.05\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "k=1/ratio\n", + "e2=k*e1\n", + "er=s*e2\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=er/z\n", + "cu_loss=3*i2**2*r\n", + "output=cu_loss*(1-s)/s\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(x*sm)**2)**0.5\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "input_r=cu_loss/sm\n", + "\n", + "#result\n", + "print \"gross output at 5% slip=\",output,\"W\"\n", + "print \"maximum torque=\",input_r,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross output at 5% slip= 6242.77652849 W\n", + "maximum torque= 8780.04535147 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.41, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=4.0\n", + "f=50.0#Hz\n", + "loss=0.025\n", + "s=0.04\n", + "\n", + "#calculations\n", + "pw=loss*pout*1000\n", + "pm=pout*1000+pw\n", + "cu_loss=s*pm/(1-s)\n", + "p2=cu_loss/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tsh=9.55*pout*1000/n\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"rotor cu loss=\",cu_loss,\"W\"\n", + "print \"rotor input=\",p2,\"W\"\n", + "print \"shaft torque=\",tsh,\"N-m\"\n", + "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor cu loss= 796.510416667 W\n", + "rotor input= 19912.7604167 W\n", + "shaft torque= 123.685763889 N-m\n", + "gross electromagnetic torque= 126.777907986 N-m\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.42, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "n=710#rpm\n", + "load=35#kW\n", + "loss=1200#W\n", + "loss_r=600#W\n", + "\n", + "#calculation\n", + "p2=load*1000-loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "tg=9.55*pm/n\n", + "pout=pm-loss_r\n", + "tsh=9.55*pout/n\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", + "print \"gross torque=\",tg,\"N-m\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"net torque=\",tsh,\"N-m\"\n", + "print \"mechanical power output=\",pout,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.80266666667 kW\n", + "gross torque= 430.386666667 N-m\n", + "mechanical power= 31997.3333333 W\n", + "net torque= 422.316244131 N-m\n", + "mechanical power output= 31397.3333333 W\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.43, Page Number:1292" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tsh=149.3#N-m\n", + "loss=200#W\n", + "cu_loss=1620#W\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pout=tsh*2*3.14*(n/60)\n", + "output=pout+loss\n", + "p2=output*ns/n\n", + "cu_lossr=p2-output\n", + "p1=p2+cu_loss\n", + "efficiency=pout*100/p1\n", + "\n", + "#result\n", + "print \"output power=\",pout/1000,\"kW\"\n", + "print \"rotor cu loss=\",cu_lossr,\"W\"\n", + "print \"the efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 15.001664 kW\n", + "rotor cu loss= 633.402666667 W\n", + "the efficiency= 85.9444669361 %\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.44, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=6\n", + "f=50.0#Hz\n", + "n=960#rpm\n", + "i2=35#A\n", + "loss=1#kW\n", + "\n", + "#calculation\n", + "pm=pout+loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_lossr=pm*s*1000/(1-s)\n", + "r2=cu_lossr/(3*i2**2)\n", + "\n", + "#result\n", + "print \"resistane per phase=\",r2,\"ohm/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistane per phase= 0.222789115646 ohm/phase\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.45, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "sf=Symbol('sf')\n", + "v=400#V\n", + "p=4\n", + "f=50#Hz\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "ratio=4\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "e2=e1/ratio\n", + "sm=r/x\n", + "ns=120*f/p\n", + "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", + "a=r/x\n", + "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", + "n=ns*(1-sf[0])\n", + "tf=tmax/2\n", + "output=2*3.14*n*tf/60\n", + "\n", + "#result\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"full load slip=\",sf[0]\n", + "print \"power output=\",output,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 318.47133758 N-m\n", + "full load slip= 0.0267949192431123\n", + "power output= 24330.1270189222 W\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.46, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "v=200.0#V\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "k=0.67\n", + "s=0.04\n", + "#calculations\n", + "e1=v/3**0.5\n", + "e2=e1*k\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(sm*x)**2)**0.5\n", + "i2=er/zr\n", + "cu_lossr=3*i2**2*r\n", + "output=cu_lossr*(1-sm)/sm\n", + "n=(1-sm)*ns\n", + "tmax=9.55*output/n\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 40.4815391879 N-m\n", + "maximum torque= 63.511037037 N-m\n", + "speed at max torque= 1333.33333333 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.47, Page Number:1293" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "f=50#Hz\n", + "s=0.04\n", + "p=4\n", + "e2=110#V\n", + "\n", + "#calculations\n", + "z=(r**2+x**2)**0.5\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "pf2=r/zr\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "er=s*e2\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"pf of motor at start=\",pf\n", + "print \"pf of motor at s=4%\",pf2\n", + "print \"full load torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf of motor at start= 0.164398987305\n", + "pf of motor at s=4% 0.972387301981\n", + "full load torque= 582.728189612 N-m\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.48, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6.0\n", + "f=50.0#Hz\n", + "tsh=162.84#N-m\n", + "c=90.0\n", + "t=20.36#N-m\n", + "loss=830.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "fr=c/60\n", + "s=fr/f\n", + "n=ns*(1-s)\n", + "output=2*3.14*n*tsh/60\n", + "tg=tsh+t\n", + "p2=tg*ns/9.55\n", + "cu_lossr=s*p2\n", + "p1=p2+cu_lossr\n", + "efficiency=output*100/p1\n", + "\n", + "#result\n", + "print \"motor output=\",output,\"W\"\n", + "print \"cu loss=\",cu_lossr,\"W\"\n", + "print \"motor input\",p1,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 16532.6024 W\n", + "cu loss= 575.497382199 W\n", + "motor input 19758.7434555 W\n", + "efficiency= 83.6723369441 %\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.49, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=420.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "r=1.0#ohm\n", + "z=complex(0.25,0.75)\n", + "zr=complex(0.173,0.52)\n", + "v1=420.0#V\n", + "v2=350.0#V\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=zr.real+k**2*z.real\n", + "x02=zr.imag+k**2*z.imag\n", + "z02=((r+r02)**2+x02**2)**0.5\n", + "i2=v2/(3**0.5*z02)\n", + "cu_loss=i2**2*(r+zr.real)\n", + "p2=cu_loss*3\n", + "ns=120*f/p\n", + "tst=9.55*p2/(ns*9.81)\n", + "#result\n", + "print \"torque=\",tst,\"kg-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 48.2909354778 kg-m\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.50, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "load=37.3#ohm\n", + "v=280#V\n", + "f=50.0#Hz\n", + "i=200#A\n", + "pf=0.25\n", + "r=0.15#ohm\n", + "k=1.0/3\n", + "#calculation\n", + "wsc=2*v*i*pf\n", + "power_phase=v*i*pf\n", + "R=power_phase/i**2\n", + "r2_=R-r\n", + "r2=k**2*r2_\n", + "p2=3*i**2*r2_\n", + "ns=120*f/p\n", + "t=9.55*p2/ns\n", + "\n", + "#result\n", + "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", + "print \"startingtorque=\",t,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", + "startingtorque= 305.6 N-m\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.51, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratios=1.6\n", + "ratiom=2.0\n", + "sf=0.01\n", + "sb=0.04\n", + "#calculation\n", + "i=(ratios/sf)**0.5\n", + "\n", + "#result\n", + "print \"slip at full load=\",sf\n", + "print \"slip at maximum torque=\",sb\n", + "print \"rotor current=\",i" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip at full load= 0.01\n", + "slip at maximum torque= 0.04\n", + "rotor current= 12.6491106407\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.52, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200#km/h\n", + "f=100#Hz\n", + "\n", + "#calculation\n", + "w=v*5.0/18/(2*f)\n", + "\n", + "#result\n", + "print \"pole pitch=\",w*1000,\"mm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pole pitch= 277.777777778 mm\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.53, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "w=6#mm\n", + "f=25#Hz\n", + "p=6#kW\n", + "loss=1.2#kW\n", + "v=2.4#m/s\n", + "\n", + "#calculation\n", + "vs=2*f*w/100\n", + "s=(vs-v)/vs\n", + "p2=p-loss\n", + "pcr=s*p2\n", + "pm=p2-pcr\n", + "f=p2*1000/vs\n", + "\n", + "#result\n", + "print \"synchronous speed=\",vs,\"m/s\"\n", + "print \"slip=\",s\n", + "print \"cu loss=\",pcr,\"kW\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"thrust=\",f/1000,\"kN\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous speed= 3 m/s\n", + "slip= 0.2\n", + "cu loss= 0.96 kW\n", + "mechanical power= 3.84 kW\n", + "thrust= 1.6 kN\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.54, Page Number:1304" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=0.12\n", + "r=0.08#ohm/phase\n", + "pg=9000.0#W\n", + "\n", + "#calculations\n", + "rl=r*(1/s-1)\n", + "v=(pg*rl/3)**0.5\n", + "il=v/rl\n", + "\n", + "#result\n", + "print \"load resistance=\",rl,\"ohm\"\n", + "print \"load voltage=\",v,\"V\"\n", + "print \"load current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load resistance= 0.586666666667 ohm\n", + "load voltage= 41.9523539268 V\n", + "load current= 71.5096941934 A\n" + ] + } + ], + "prompt_number": 166 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.55, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=4\n", + "r1=0.15#ohm\n", + "x1=0.45#ohm\n", + "r2_=0.12#ohm\n", + "x2_=0.45#ohm\n", + "xm=complex(0,28.5)#ohm\n", + "s=0.04\n", + "#calculations\n", + "rl_=r2_*(1/s-1)\n", + "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", + "i0=(v/3**0.5)/xm\n", + "i1=i0+i2_\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "\n", + "#result\n", + "print \"stator current=\",i1,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator current= (74.5730253701-19.1783634605j) A\n", + "power factor= 0.968485280755\n" + ] + } + ], + "prompt_number": 177 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.56, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "f=50#Hz\n", + "power=3.73#kW\n", + "r1=0.45#ohm\n", + "x1=0.8#ohm\n", + "r2_=0.4#ohm\n", + "x2_=0.8#ohm\n", + "b0=-1.0/30\n", + "loss=50#W\n", + "lossr=150#W\n", + "s=0.04\n", + "\n", + "#calculations\n", + "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", + "z01=complex(r1,x1)+zab\n", + "vph=v/3**0.5\n", + "i1=v1/z01\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i1.real**2*zab.real\n", + "pm=(1-s)*p2\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "power_o=pm-lossr\n", + "cu_loss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_loss+cu_lossr+lossr\n", + "efficiency=power_o/(power_o+total_loss)\n", + "\n", + "#result\n", + "print \"input current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"air gap power=\",p2,\"W\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"electro magnetic torque=\",tg,\"N-m\"\n", + "print \"output power=\",power_o,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "input current= (21.9914486234+42.6194245913j) A\n", + "pf= 0.45854949826\n", + "air gap power= 5173.46132109 W\n", + "mechanical power= 4966.52286825 W\n", + "electro magnetic torque= 32.9377037443 N-m\n", + "output power= 4816.52286825 W\n", + "efficiency= 81.9644851937 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.57, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "load=37.3#kW\n", + "r1=0.1#ohm\n", + "x1=0.4#ohm\n", + "r2_=0.15#ohm\n", + "x2_=0.44#ohm\n", + "loss=1250#W\n", + "lossr=1000#W\n", + "i=20#A\n", + "pf=0.09\n", + "s=0.03\n", + "\n", + "#calculation\n", + "v1=v/3**0.5\n", + "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", + "i1=i2_+complex(1.78,19.9)\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i2_.real**2*r2_/s\n", + "ns=120*f/p\n", + "tg=9.55*p2/ns\n", + "pm=p2*(1-s)\n", + "pout=pm-1000\n", + "cu_losss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_losss+cu_lossr+lossr\n", + "efficiency=pout/(pout+total_loss)\n", + "\n", + "#result\n", + "print \"line current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"electromagnetic torque=\",tg,\"N-m\"\n", + "print \"output=\",pout,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= (50.2750367599+11.9125821807j) A\n", + "pf= 0.973057118792\n", + "electromagnetic torque= 224.593900377 N-m\n", + "output= 33218.2329894 W\n", + "efficiency= 89.0932246577 %\n" + ] + } + ], + "prompt_number": 186 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.58, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.06,0.2)\n", + "zr=complex(0.06,0.22)\n", + "\n", + "#calculation\n", + "r01=z.real+zr.real\n", + "x01=z.imag+zr.imag\n", + "z01=(r01**2+x01**2)**0.5\n", + "s=z.real/(z.real+z01)\n", + "v1=v/3**0.5\n", + "pmax=3*v1**2/(2*(r01+z01))\n", + "\n", + "#result\n", + "print \"maximum gross power=\",pmax,\"W\"\n", + "print \"slip=\",s" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum gross power= 143676.459572 W\n", + "slip= 0.120771344025\n" + ] + } + ], + "prompt_number": 188 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.59, Page Number:1307" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=115#V\n", + "f=60.0#Hz\n", + "p=6\n", + "z=complex(0.07,0.3)\n", + "zr=complex(0.08,0.3)\n", + "gd=0.022#mho\n", + "bo=0.158#mho\n", + "s=0.02\n", + "\n", + "#calculation\n", + "rl_=1/bo*(1/s-1)\n", + "z=complex(z.real+zr.real+rl_,0.6)\n", + "v=v1/3**0.5\n", + "i2=complex(16,-2.36)\n", + "io=v*complex(gd,-bo)\n", + "i1=io+i2\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "pg=3*abs(i2)**2*rl_/100\n", + "ns=120*f/p\n", + "n=(1-s)*ns\n", + "tg=9.55*pg/n\n", + "p2=3**0.5*v1*abs(i1)*pf\n", + "efficiency=pg*100/p2\n", + "\n", + "#result\n", + "print \"secondary current=\",i2,\"A\"\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"power output=\",pg,\"W\"\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"input=\",p2,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary current= (16-2.36j) A\n", + "primary current= (17.460696181-12.8504543912j) A\n", + "pf= 0.805393212665\n", + "power output= 2433.59058228 W\n", + "torque= 19.7625765823 N-m\n", + "input= 3477.92348593 W\n", + "efficiency= 69.9725164204 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.60, Page Number:1308" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10,50)\n", + "s=0.05\n", + "\n", + "#calculation\n", + "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", + "v1=v/3**0.5\n", + "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", + "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", + "#result\n", + "print \"maximum torque=\",tgmax,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 277.144160399 N-m\n" + ] + } + ], + "prompt_number": 208 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_2.ipynb new file mode 100644 index 00000000..d05f1eeb --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_2.ipynb @@ -0,0 +1,3065 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 34:Induction Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.1, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=290.0#rpm\n", + "f=50.0#Hz\n", + "Ns=300.0#rpm(considered)\n", + "#calculation\n", + "P=120*f/Ns\n", + "s=(Ns-n)/Ns\n", + "\n", + "#result\n", + "print \"no. of poles=\",P\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no. of poles= 20.0\n", + "slip= 3.33333333333 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.2, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "slot=3\n", + "f=50#Hz\n", + "\n", + "#calculation\n", + "P=2*n\n", + "slots_total=slot*P*n\n", + "Ns=120*f/P\n", + "\n", + "#result\n", + "print \"No. of stator poles=\",P\n", + "print \"Total number of slots=\",slots_total\n", + "print \"Speed=\",Ns,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " No. of stator poles= 6\n", + "Total number of slots= 54\n", + "Speed= 1000 rpm\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.3, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=3\n", + "f=50#Hz\n", + "slip1=0.04\n", + "slip2=0.03\n", + "\n", + "#calculation\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip1)\n", + "f1=slip2*f*60\n", + "#at standstill s=1\n", + "f2=1*f\n", + "\n", + "#calculation\n", + "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", + "print \"speed of the rotor when the slip is 0.04=\",N\n", + "print \"frequency of rotor current=\",f1,\"rpm\"\n", + "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which magnetic field of the stator is rotating= 1500 rpm\n", + "speed of the rotor when the slip is 0.04= 1440.0\n", + "frequency of rotor current= 90.0 rpm\n", + "frequency of the rotor current at standstill= 50 Hz\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.4, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3.0\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slip=0.04\n", + "n=600.0#rpm\n", + "\n", + "#calculations\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip)\n", + "s=(Ns-n)/Ns\n", + "f1=s*f\n", + "\n", + "#result\n", + "print \"the synchronous speed=\",Ns,\"rpm\"\n", + "print \"the rotor speed=\",N,\"rpm\"\n", + "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the synchronous speed= 1500.0 rpm\n", + "the rotor speed= 1440.0 rpm\n", + "the rotor frequency when n=600 rpm= 30.0 Hz\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.5, Page Number:1256" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "n=3\n", + "N=500#rpm\n", + "p2=8\n", + "slip=0.03\n", + "\n", + "#calculation\n", + "f=p*N/120\n", + "Ns=120*f/p2\n", + "N=Ns-slip*Ns\n", + "\n", + "#result\n", + "print \"full load speed of the motor=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load speed of the motor= 727.5 rpm\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.6, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e=80#V\n", + "r=1#ohm\n", + "x=4#ohm\n", + "rheo=3#ohm\n", + "\n", + "#calculation\n", + "E=e/(3)**0.5\n", + "z=(r**2+x**2)**0.5\n", + "i=E/z\n", + "pf=r/z\n", + "R=rheo+r\n", + "z2=(R**2+x**2)**0.5\n", + "i2=E/z2\n", + "\n", + "pf2=R/z2\n", + "\n", + "#result\n", + "print \"slip rings are short circuited:\"\n", + "print \"current/phase\",i,\"A\"\n", + "print \"pf=\",pf\n", + "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", + "print \"current/phase\",i2,\"A\"\n", + "print \"pf=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip rings are short circuited:\n", + "current/phase 11.2022406722 A\n", + "pf= 0.242535625036\n", + "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", + "pf= 0.707106781187\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.7, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "v=400#V\n", + "ratio=6.5\n", + "r=0.05#ohm\n", + "x=0.25#ohm\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=v*k/(3**0.5)\n", + "R=x-r\n", + "r2=x\n", + "z=(x**2+r2**2)**0.5\n", + "i2=e2/z\n", + "\n", + "#result\n", + "print \"external resistance=\",R,\"ohm\"\n", + "print \"starting current=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.2 ohm\n", + "starting current= 100.491886883 A\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.8, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=1100#V\n", + "f=50#Hz\n", + "ratio=3.8\n", + "r=0.012#ohm\n", + "x=0.25#ohm\n", + "s=0.04\n", + "#calculation\n", + "e=v/ratio\n", + "z=(r**2+x**2)**0.5\n", + "i=e/z\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "er=s*e\n", + "i2=er/zr\n", + "pf2=r/zr\n", + "i2=100*ratio\n", + "z2=e/i2\n", + "r2=(z2**2-x**2)**0.5\n", + "R=r2-r\n", + "\n", + "#result\n", + "print \"current with slip rings shorted=\",i,\"A\"\n", + "print \"pf with slip rings shorted=\",pf\n", + "print \"current with slip=4% and slip rings shorted=\",i2\n", + "print \"pf withslip=4% and slip rings shorted=\",pf2\n", + "print \"external resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current with slip rings shorted= 1156.56314266 A\n", + "pf with slip rings shorted= 0.0479447993684\n", + "current with slip=4% and slip rings shorted= 380.0\n", + "pf withslip=4% and slip rings shorted= 0.768221279597\n", + "external resistance= 0.70758173952 ohm\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.9, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=15#kW\n", + "v=3000#V\n", + "f=50#Hz\n", + "p=6\n", + "ratio=3.6\n", + "r=0.13#ohm\n", + "l=3.61*0.001#H\n", + "\n", + "#calculation\n", + "v=v/3**0.5\n", + "x2=2*3.14*l*f\n", + "k=1/ratio\n", + "r2_=0.1/k**2\n", + "x2_=ratio**2*x2\n", + "is1=v/((r**2+x2_**2)**0.5)\n", + "ns=120*f/p\n", + "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", + "\n", + "#result\n", + "print \"starting current=\",is1,\"A\"\n", + "print \"ts=\",ts,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 117.896733436 A\n", + "ts= 512.375725888 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.10, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zs=complex(0.4,4)\n", + "zr=complex(6,2)\n", + "v=80#V\n", + "s=0.03\n", + "\n", + "#calculation\n", + "e2=v/3**0.5\n", + "i=e2/abs(zr+zs)\n", + "er=s*e2\n", + "xr=s*zs.imag\n", + "ir=er/abs(complex(zs.real,xr))\n", + "\n", + "#result\n", + "print \"rotor current at standstill=\",i,\"A\"\n", + "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor current at standstill= 5.26498126493 A\n", + "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.11, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "e=120#V\n", + "r2=0.3#ohm\n", + "x2=1.5#ohm\n", + "s=0.04\n", + "\n", + "#calculations\n", + "e2=e/3**0.5\n", + "er=s*e2\n", + "xr=s*x2\n", + "zr=(r2**2+xr**2)**0.5\n", + "i=er/zr\n", + "s=r2/x2\n", + "xr=s*x2\n", + "zr=(xr**2+r2**2)**0.5\n", + "er=s*e2\n", + "i2=er/zr\n", + "\n", + "#result\n", + "print \"rotor when running short-circuited=\",i,\"A\"\n", + "print \"slip=\",s\n", + "print \"current when torque is maximum=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor when running short-circuited= 9.05821627316 A\n", + "slip= 0.2\n", + "current when torque is maximum= 32.6598632371 A\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.12, Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tb=150.0#kg-m\n", + "n=660.0#rpm\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "t=tb*(2/((sb/s)+s/sb))\n", + "\n", + "#result\n", + "print \"torque=\",t,\"kg-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 90.0 kg-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(a), Page Number:1266" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variablde declaration\n", + "n=3\n", + "vd=0.90\n", + "\n", + "#calculation\n", + "ratio_s=(1/vd)**2\n", + "ratio_i=ratio_s*vd\n", + "cu_loss_increase=ratio_i**2\n", + "\n", + "#result\n", + "print \"increase in motor copper losses=\",cu_loss_increase" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in motor copper losses= 1.23456790123\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(b), Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "p1=15.0#kW\n", + "n=980.0#rpm\n", + "efficiency=0.93\n", + "vd=0.10\n", + "fd=0.05\n", + "\n", + "#calculation\n", + "v2=(1-vd)*v\n", + "f2=(1-fd)*f\n", + "n1=120*f/p\n", + "n2=120*f2/p\n", + "s1=(n1-n)/n1\n", + "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", + "n2=n2*(1-ratio_f)\n", + "p2=p1*n2/n1\n", + "#result\n", + "print \"the new operating speed=\",n2,\"rpm\"\n", + "print \"the new output power=\",p2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the new operating speed= 935.3795 rpm\n", + "the new output power= 14.0306925 kW\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(a), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=3\n", + "v1=400#V\n", + "v2=200#V\n", + "r=0.06#ohm\n", + "x=0.3#ohm\n", + "a=1\n", + "#calculations\n", + "r=x-r\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 0.24 ohm\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(b), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "f=50#Hz\n", + "p=8\n", + "s=0.02\n", + "r=0.001#ohm\n", + "x=0.005#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "a=r/x\n", + "n2=(1-s)*ns\n", + "ratio=2*s**2*a/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(c), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "v=600#V\n", + "f=50#Hz\n", + "r=0.03#ohm\n", + "x=0.5#ohm\n", + "n=495#rpm\n", + "s=0.01\n", + "#calculation\n", + "Ns=120*f/p\n", + "a=r/x\n", + "n=Ns*(1-a)\n", + "ratio=2*a*s/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"speed of max torque=\",n,\"rpm\"\n", + "print \"ratio of torques=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of max torque= 470.0 rpm\n", + "ratio of torques= 0.324324324324\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.15, Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=746.0#kW\n", + "f=50.0#Hz\n", + "p=16\n", + "zr=complex(0.02,0.15)\n", + "n=360.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "a=zr.real/zr.imag\n", + "ratio=2*a*s/(a**2+s**2)\n", + "N=ns*(1-a)\n", + "R=zr.imag-zr.real\n", + "\n", + "#result\n", + "print \"ratio of torques=\",ratio\n", + "print \"speed at maximum torque=\",N,\"rpm\"\n", + "print \"rotor resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 0.550458715596\n", + "speed at maximum torque= 325.0 rpm\n", + "rotor resistance= 0.13 ohm\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.16, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "p=4\n", + "f=50.0#Hz\n", + "r=0.025#ohm\n", + "x=0.12#ohm\n", + "ratio=3.0/4.0\n", + "\n", + "#calculations\n", + "s=r/x\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "a=solve(ratio-(2*a/(1+a**2)),a)\n", + "r=a[0]*x-r\n", + "\n", + "#result\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at maximum torque= 1187.5 rpm\n", + "additional resistance= 0.0291699475574164 ohm\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.17, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "s=0.04\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "p=8\n", + "#calculation\n", + "a=r/x\n", + "t_ratio=2*a*s/(a**2+s**2)\n", + "ns=120*f/p\n", + "n=(1-a)*ns\n", + "\n", + "#result\n", + "print \"ratio of torques=\",1/t_ratio\n", + "print \"speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 1.45\n", + "speed= 675.0 rpm\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.18, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "a2=Symbol('a2')\n", + "p=3\n", + "t_ratio=2.5\n", + "t_ratio2=1.5\n", + "s=0.03\n", + "\n", + "#calculation\n", + "t_ratio3=t_ratio2/t_ratio\n", + "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", + "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", + "r_red=(a[0]-a2[1])/a[0]\n", + "#result\n", + "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.19, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50#Hz\n", + "r=0.08#ohm\n", + "n=650.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "a=1\n", + "r=a*x2-r\n", + "#result\n", + "print \"extra resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "extra resistance= 0.52 ohm\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.20, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "R=Symbol('R')\n", + "p=4\n", + "f=50.0#Hz\n", + "t=162.8#N-m\n", + "n=1365.0#rpm\n", + "r=0.2#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",round(R[0],1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 0.4 ohm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.21, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "load=7.46#kW\n", + "t_ratios=1.60\n", + "t_ratiom=2.0\n", + "\n", + "#calcualtion\n", + "t_ratio=t_ratios/t_ratiom\n", + "#0.8a2-2*a+0.8 a=0.04\n", + "#0.5=2*a*sf/a2+sf2 sf=0.01\n", + "a=0.04\n", + "sf=0.01\n", + "ns=120*f/p\n", + "n=ns-sf*ns\n", + "N=ns-a*ns\n", + "\n", + "#result\n", + "print \"full-load speed=\",n,\"rpm\"\n", + "print \"speed at maximum torque=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load speed= 1485.0 rpm\n", + "speed at maximum torque= 1440.0 rpm\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.22, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=240#V\n", + "f=50#Hz\n", + "r=0.12#ohm\n", + "x=0.85#ohm\n", + "ratio=1.8\n", + "s=0.04\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=k*(v/3**0.5)\n", + "ns=120*f/p\n", + "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "s=r/x\n", + "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "n=ns*(1-s)\n", + "\n", + "#result\n", + "print \"developed torque=\",tf,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 52.4097855621 N-m\n", + "maximum torque= 99.9125764956 N-m\n", + "speed at maximum torque= 858.823529412 rpm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.23, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "s=0.03\n", + "\n", + "#calculation\n", + "ns=100#rpm considered\n", + "n=(1-s)*ns\n", + "n2=n/2\n", + "s2=(ns-n2)/ns\n", + "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", + "per=1-1/ratio\n", + "phi=math.atan(s2*x/r)\n", + "pf=math.cos(phi)\n", + "\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 22.8528060715 %\n", + "pf= 0.307902262948\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.26, Page Number:1272" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "p=4\n", + "t=100#N-m\n", + "n=1200#rpm\n", + "\n", + "#calculation\n", + "e2=v/2\n", + "ns=120*f/p\n", + "n=ns-n\n", + "n2=n+ns/2\n", + "\n", + "#result\n", + "print \"stator supply voltage=\",e2,\"V\"\n", + "print \"new speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator supply voltage= 220 V\n", + "new speed= 1050 rpm\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.24, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delclaration\n", + "v=400.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=1140.0#rpm\n", + "e=440.0#V\n", + "e2=550.0#V\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "s1=(ns-n)/ns\n", + "s2=s1*(e/e2)**2\n", + "n2=ns*(1-s2)\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1053.6 rpm\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.25, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=450.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=873.0#rpm\n", + "t=23.0#degrees\n", + "n2=864.0#rpm\n", + "alpha=1.0/234.0#per degrees centrigrade\n", + "\n", + "#calculation\n", + "s1=(900-n)/900\n", + "s2=(900-n2)/900\n", + "ratio=s2/s1-1\n", + "t2=(s2/s1-1)/alpha+23 \n", + "\n", + "#result\n", + "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", + "print \"approx temperature=\",t2,\"degrees centigrade\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in rotor resistance= 33.3333333333 %\n", + "approx temperature= 101.0 degrees centigrade\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.27, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=500.0#Hz\n", + "p=6.0\n", + "load=80.0#kW\n", + "alt=100.0\n", + "ns=120.0*f/60.0\n", + "#calculation\n", + "s=alt/(60.0*f)\n", + "n=(1-s)*ns\n", + "cu_loss=(1.0/3.0)*load*1000/3.0\n", + "\n", + "#result\n", + "print \"slip=\",s*1000,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 996.666666667 rpm\n", + "rotor copper loss= 0.888888888889 kW\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.28, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=4.0\n", + "n=1425.0#rpm\n", + "z=complex(0.4,4)\n", + "ratio=0.8\n", + "loss=500.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=75/ns\n", + "e1=v/3**0.5\n", + "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", + "cu_loss=3*ir**2*z.real\n", + "pm=2*3.4*(n/60)*tf\n", + "pout=pm-loss\n", + "s=z.real/z.imag\n", + "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "nmax=ns-s*ns\n", + "i=ratio*e1/abs(z)\n", + "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", + "\n", + "#result\n", + "print \" full load torque=\",tf,\"N-m\"\n", + "print \"rotor current=\",ir,\"A\"\n", + "print \"cu_loss=\",cu_loss,\"W\"\n", + "print \"power output=\",pout,\"W\"\n", + "print \"max torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",nmax,\"rpm\"\n", + "print \"starting current=\",i,\"A\"\n", + "print \"starting torque=\",tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " full load torque= 78.9197452229 N-m\n", + "rotor current= 22.7215022978 A\n", + "cu_loss= 619.52 W\n", + "power output= 12245.5388535 W\n", + "max torque= 98.6496815287 N-m\n", + "speed at max torque= 1350.0 rpm\n", + "starting current= 50.5546790867 A\n", + "starting torque= 19.5345904017 N-m\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.30, Page Number:1286" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60#kW\n", + "loss=1#kW\n", + "s=0.03\n", + "\n", + "#calculations\n", + "p2=load-loss\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2\n", + "rotor_loss=cu_loss*1000/3\n", + "\n", + "#result\n", + "print \"mechanical power developed=\",pm,\"kW\"\n", + "print \"rotor copper loss=\",rotor_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power developed= 57.23 kW\n", + "rotor copper loss= 590.0 W\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.31, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=20#KW\n", + "s=0.03\n", + "i=60#A\n", + "\n", + "#calculation\n", + "fr=s*f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss=s*load*1000\n", + "r2=cu_loss/(3*i**2)\n", + "\n", + "#result\n", + "print \"frequency of rotor current=\",fr,\"Hz\"\n", + "print \"rotor copper loss=\",cu_loss,\"W\"\n", + "print \"rotor resistance=\",r2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of rotor current= 1.5 Hz\n", + "rotor copper loss= 600.0 W\n", + "rotor resistance= 0.0555555555556 ohm\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.32, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50#Hz\n", + "load=3.73#KW\n", + "n=960#rpm\n", + "loss=280#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "input_r=load*1000*ns/n\n", + "input_s=input_r+loss\n", + "\n", + "#result\n", + "print \"stator input=\",input_s,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator input= 4165.41666667 W\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.33, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=75.0#KW\n", + "alt=100.0\n", + "\n", + "#calculations\n", + "f1=alt/60\n", + "s=f1/f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss_r_per_phase=s*p2/3\n", + "pm=(1-s)*p2\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", + "print \"mechancal power=\",pm,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 966.666666667 rpm\n", + "rotor copper loss per phase= 0.833333333333 kW\n", + "mechancal power= 72.5 kW\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.34, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "n=975.0#rpm\n", + "p1=40.0#KW\n", + "loss_s=1.0#kW\n", + "loss=2.0#KW\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "p2=p1-loss_s\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "pout=pm-loss\n", + "efficiency=pout/p1\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor copper loss=\",cu_loss,\"kW\"\n", + "print \"shaft power=\",pout,\"kW\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 2.5 %\n", + "rotor copper loss= 0.975 kW\n", + "shaft power= 36.025 kW\n", + "efficiency= 90.0625 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.35, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=100#KW\n", + "v=3300#V\n", + "f=50#Hz\n", + "n=500#rpm\n", + "s=0.018\n", + "pf=0.85\n", + "cu_loss=2440#W\n", + "iron_loss=3500#W\n", + "rotational_loss=1200#W\n", + "\n", + "#calculations\n", + "pm=output+rotational_loss/1000\n", + "cu_loss_r=(s/(1-s))*pm\n", + "p2=pm+cu_loss_r\n", + "input_s=p2+cu_loss/1000+iron_loss/1000\n", + "il=input_s*1000/(3**0.5*v*pf)\n", + "efficiency=output/input_s\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.85132382892 kW\n", + "line current= 22.1989272175 A\n", + "efficiency= 92.7202341611 %\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.36, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=100.0#W\n", + "c=120.0\n", + "\n", + "#calculations\n", + "s=c/(f*60)\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2/3\n", + "n2=ns-n\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"copper loss=\",cu_loss,\"kW\"\n", + "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 960.0 rpm\n", + "mechanical power= 96.0 kW\n", + "copper loss= 1.33333333333 kW\n", + "speed of stator field with respect to rotor= 40.0 rpm\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.37, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.9\n", + "output=37#kW\n", + "ratio=1.0/3.0\n", + "\n", + "#calculation\n", + "input_m=output*1000/efficiency\n", + "total_loss=input_m-output*1000\n", + "x=total_loss/(3+0.5)\n", + "input_r=output*1000+x/2+x\n", + "s=x/input_r\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.0303030303 %\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.38, Page Number:1289" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=45#KW\n", + "i=75#A\n", + "s=0.03\n", + "iron_loss=1200#kW\n", + "loss=900#kW\n", + "r=0.12#ohm\n", + "\n", + "#calculations\n", + "pf=load*1000/(3**0.5*v*i)\n", + "r=r*3/2\n", + "cu_loss=3*(i/3**0.5)**2*r\n", + "cu_loss_r=s*42788\n", + "pm=42788-cu_loss_r\n", + "output_s=pm-loss\n", + "efficiency=output_s/(load*1000)\n", + "t=(output_s*60)/(2*3.14*970)\n", + "\n", + "#result\n", + "print \"pf=\",pf\n", + "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", + "print \"p out=\",output_s,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf= 0.866025403784\n", + "rotor cu loss= 1283.64 W\n", + "p out= 40604.36 W\n", + "efficiency= 90.2319111111 %\n", + "torque= 399.937881673 N-m\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(a), Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=1.75\n", + "s=0.05\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e1=v/3**0.5\n", + "e2=k*e1\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "pcr=3*i2**2*r\n", + "pm=pcr*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "n=ns*(1-sm)\n", + "e3=sm*e2\n", + "\n", + "#result\n", + "print \"load torque=\",tg/9.81,\"kg-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"rotor emf at max torque=\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load torque= 4.26478644041 kg-m\n", + "speed at maximum torque= 1333.33333333 rpm\n", + "rotor emf at max torque= 8.06457518868 V\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(b), Page Number:1290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=4\n", + "i=10#A\n", + "pf=0.86\n", + "loss=0.05\n", + "cu_r=0.04\n", + "m_loss=0.03\n", + "\n", + "#calculation\n", + "input_m=3**0.5*v*i*pf\n", + "loss_s=loss*input_m\n", + "input_r=input_m-loss_s\n", + "cu_lossr=cu_r*input_r\n", + "mec_loss=m_loss*input_r\n", + "output_shaft=input_r-cu_lossr-mec_loss\n", + "s=cu_lossr/input_r\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "wr=2*3.14*n/60\n", + "output_r=input_r-cu_lossr\n", + "tr=output_r/wr\n", + "tin=output_shaft/wr\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", + "print \"shaft torque=\",tin,\"Nw-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 1440.0 rpm\n", + "torque developed in the rotor= 36.0531340072 Nw-m\n", + "shaft torque= 34.9264735695 Nw-m\n" + ] + } + ], + "prompt_number": 91 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.40, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "p=40.0\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=3.5\n", + "s=0.05\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "k=1/ratio\n", + "e2=k*e1\n", + "er=s*e2\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=er/z\n", + "cu_loss=3*i2**2*r\n", + "output=cu_loss*(1-s)/s\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(x*sm)**2)**0.5\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "input_r=cu_loss/sm\n", + "\n", + "#result\n", + "print \"gross output at 5% slip=\",output,\"W\"\n", + "print \"maximum torque=\",input_r,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross output at 5% slip= 6242.77652849 W\n", + "maximum torque= 8780.04535147 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.41, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=4.0\n", + "f=50.0#Hz\n", + "loss=0.025\n", + "s=0.04\n", + "\n", + "#calculations\n", + "pw=loss*pout*1000\n", + "pm=pout*1000+pw\n", + "cu_loss=s*pm/(1-s)\n", + "p2=cu_loss/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tsh=9.55*pout*1000/n\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"rotor cu loss=\",cu_loss,\"W\"\n", + "print \"rotor input=\",p2,\"W\"\n", + "print \"shaft torque=\",tsh,\"N-m\"\n", + "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor cu loss= 796.510416667 W\n", + "rotor input= 19912.7604167 W\n", + "shaft torque= 123.685763889 N-m\n", + "gross electromagnetic torque= 126.777907986 N-m\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.42, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "n=710#rpm\n", + "load=35#kW\n", + "loss=1200#W\n", + "loss_r=600#W\n", + "\n", + "#calculation\n", + "p2=load*1000-loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "tg=9.55*pm/n\n", + "pout=pm-loss_r\n", + "tsh=9.55*pout/n\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", + "print \"gross torque=\",tg,\"N-m\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"net torque=\",tsh,\"N-m\"\n", + "print \"mechanical power output=\",pout,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.80266666667 kW\n", + "gross torque= 430.386666667 N-m\n", + "mechanical power= 31997.3333333 W\n", + "net torque= 422.316244131 N-m\n", + "mechanical power output= 31397.3333333 W\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.43, Page Number:1292" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tsh=149.3#N-m\n", + "loss=200#W\n", + "cu_loss=1620#W\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pout=tsh*2*3.14*(n/60)\n", + "output=pout+loss\n", + "p2=output*ns/n\n", + "cu_lossr=p2-output\n", + "p1=p2+cu_loss\n", + "efficiency=pout*100/p1\n", + "\n", + "#result\n", + "print \"output power=\",pout/1000,\"kW\"\n", + "print \"rotor cu loss=\",cu_lossr,\"W\"\n", + "print \"the efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 15.001664 kW\n", + "rotor cu loss= 633.402666667 W\n", + "the efficiency= 85.9444669361 %\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.44, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=6\n", + "f=50.0#Hz\n", + "n=960#rpm\n", + "i2=35#A\n", + "loss=1#kW\n", + "\n", + "#calculation\n", + "pm=pout+loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_lossr=pm*s*1000/(1-s)\n", + "r2=cu_lossr/(3*i2**2)\n", + "\n", + "#result\n", + "print \"resistane per phase=\",r2,\"ohm/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistane per phase= 0.222789115646 ohm/phase\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.45, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "sf=Symbol('sf')\n", + "v=400#V\n", + "p=4\n", + "f=50#Hz\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "ratio=4\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "e2=e1/ratio\n", + "sm=r/x\n", + "ns=120*f/p\n", + "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", + "a=r/x\n", + "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", + "n=ns*(1-sf[0])\n", + "tf=tmax/2\n", + "output=2*3.14*n*tf/60\n", + "\n", + "#result\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"full load slip=\",sf[0]\n", + "print \"power output=\",output,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 318.47133758 N-m\n", + "full load slip= 0.0267949192431123\n", + "power output= 24330.1270189222 W\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.46, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "v=200.0#V\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "k=0.67\n", + "s=0.04\n", + "#calculations\n", + "e1=v/3**0.5\n", + "e2=e1*k\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(sm*x)**2)**0.5\n", + "i2=er/zr\n", + "cu_lossr=3*i2**2*r\n", + "output=cu_lossr*(1-sm)/sm\n", + "n=(1-sm)*ns\n", + "tmax=9.55*output/n\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 40.4815391879 N-m\n", + "maximum torque= 63.511037037 N-m\n", + "speed at max torque= 1333.33333333 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.47, Page Number:1293" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "f=50#Hz\n", + "s=0.04\n", + "p=4\n", + "e2=110#V\n", + "\n", + "#calculations\n", + "z=(r**2+x**2)**0.5\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "pf2=r/zr\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "er=s*e2\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"pf of motor at start=\",pf\n", + "print \"pf of motor at s=4%\",pf2\n", + "print \"full load torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf of motor at start= 0.164398987305\n", + "pf of motor at s=4% 0.972387301981\n", + "full load torque= 582.728189612 N-m\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.48, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6.0\n", + "f=50.0#Hz\n", + "tsh=162.84#N-m\n", + "c=90.0\n", + "t=20.36#N-m\n", + "loss=830.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "fr=c/60\n", + "s=fr/f\n", + "n=ns*(1-s)\n", + "output=2*3.14*n*tsh/60\n", + "tg=tsh+t\n", + "p2=tg*ns/9.55\n", + "cu_lossr=s*p2\n", + "p1=p2+cu_lossr\n", + "efficiency=output*100/p1\n", + "\n", + "#result\n", + "print \"motor output=\",output,\"W\"\n", + "print \"cu loss=\",cu_lossr,\"W\"\n", + "print \"motor input\",p1,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 16532.6024 W\n", + "cu loss= 575.497382199 W\n", + "motor input 19758.7434555 W\n", + "efficiency= 83.6723369441 %\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.49, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=420.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "r=1.0#ohm\n", + "z=complex(0.25,0.75)\n", + "zr=complex(0.173,0.52)\n", + "v1=420.0#V\n", + "v2=350.0#V\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=zr.real+k**2*z.real\n", + "x02=zr.imag+k**2*z.imag\n", + "z02=((r+r02)**2+x02**2)**0.5\n", + "i2=v2/(3**0.5*z02)\n", + "cu_loss=i2**2*(r+zr.real)\n", + "p2=cu_loss*3\n", + "ns=120*f/p\n", + "tst=9.55*p2/(ns*9.81)\n", + "#result\n", + "print \"torque=\",tst,\"kg-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 48.2909354778 kg-m\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.50, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "load=37.3#ohm\n", + "v=280#V\n", + "f=50.0#Hz\n", + "i=200#A\n", + "pf=0.25\n", + "r=0.15#ohm\n", + "k=1.0/3\n", + "#calculation\n", + "wsc=2*v*i*pf\n", + "power_phase=v*i*pf\n", + "R=power_phase/i**2\n", + "r2_=R-r\n", + "r2=k**2*r2_\n", + "p2=3*i**2*r2_\n", + "ns=120*f/p\n", + "t=9.55*p2/ns\n", + "\n", + "#result\n", + "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", + "print \"startingtorque=\",t,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", + "startingtorque= 305.6 N-m\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.51, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratios=1.6\n", + "ratiom=2.0\n", + "sf=0.01\n", + "sb=0.04\n", + "#calculation\n", + "i=(ratios/sf)**0.5\n", + "\n", + "#result\n", + "print \"slip at full load=\",sf\n", + "print \"slip at maximum torque=\",sb\n", + "print \"rotor current=\",i" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip at full load= 0.01\n", + "slip at maximum torque= 0.04\n", + "rotor current= 12.6491106407\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.52, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200#km/h\n", + "f=100#Hz\n", + "\n", + "#calculation\n", + "w=v*5.0/18/(2*f)\n", + "\n", + "#result\n", + "print \"pole pitch=\",w*1000,\"mm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pole pitch= 277.777777778 mm\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.53, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "w=6#mm\n", + "f=25#Hz\n", + "p=6#kW\n", + "loss=1.2#kW\n", + "v=2.4#m/s\n", + "\n", + "#calculation\n", + "vs=2*f*w/100\n", + "s=(vs-v)/vs\n", + "p2=p-loss\n", + "pcr=s*p2\n", + "pm=p2-pcr\n", + "f=p2*1000/vs\n", + "\n", + "#result\n", + "print \"synchronous speed=\",vs,\"m/s\"\n", + "print \"slip=\",s\n", + "print \"cu loss=\",pcr,\"kW\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"thrust=\",f/1000,\"kN\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous speed= 3 m/s\n", + "slip= 0.2\n", + "cu loss= 0.96 kW\n", + "mechanical power= 3.84 kW\n", + "thrust= 1.6 kN\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.54, Page Number:1304" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=0.12\n", + "r=0.08#ohm/phase\n", + "pg=9000.0#W\n", + "\n", + "#calculations\n", + "rl=r*(1/s-1)\n", + "v=(pg*rl/3)**0.5\n", + "il=v/rl\n", + "\n", + "#result\n", + "print \"load resistance=\",rl,\"ohm\"\n", + "print \"load voltage=\",v,\"V\"\n", + "print \"load current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load resistance= 0.586666666667 ohm\n", + "load voltage= 41.9523539268 V\n", + "load current= 71.5096941934 A\n" + ] + } + ], + "prompt_number": 166 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.55, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=4\n", + "r1=0.15#ohm\n", + "x1=0.45#ohm\n", + "r2_=0.12#ohm\n", + "x2_=0.45#ohm\n", + "xm=complex(0,28.5)#ohm\n", + "s=0.04\n", + "#calculations\n", + "rl_=r2_*(1/s-1)\n", + "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", + "i0=(v/3**0.5)/xm\n", + "i1=i0+i2_\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "\n", + "#result\n", + "print \"stator current=\",i1,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator current= (74.5730253701-19.1783634605j) A\n", + "power factor= 0.968485280755\n" + ] + } + ], + "prompt_number": 177 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.56, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "f=50#Hz\n", + "power=3.73#kW\n", + "r1=0.45#ohm\n", + "x1=0.8#ohm\n", + "r2_=0.4#ohm\n", + "x2_=0.8#ohm\n", + "b0=-1.0/30\n", + "loss=50#W\n", + "lossr=150#W\n", + "s=0.04\n", + "\n", + "#calculations\n", + "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", + "z01=complex(r1,x1)+zab\n", + "vph=v/3**0.5\n", + "i1=v1/z01\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i1.real**2*zab.real\n", + "pm=(1-s)*p2\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "power_o=pm-lossr\n", + "cu_loss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_loss+cu_lossr+lossr\n", + "efficiency=power_o/(power_o+total_loss)\n", + "\n", + "#result\n", + "print \"input current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"air gap power=\",p2,\"W\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"electro magnetic torque=\",tg,\"N-m\"\n", + "print \"output power=\",power_o,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "input current= (21.9914486234+42.6194245913j) A\n", + "pf= 0.45854949826\n", + "air gap power= 5173.46132109 W\n", + "mechanical power= 4966.52286825 W\n", + "electro magnetic torque= 32.9377037443 N-m\n", + "output power= 4816.52286825 W\n", + "efficiency= 81.9644851937 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.57, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "load=37.3#kW\n", + "r1=0.1#ohm\n", + "x1=0.4#ohm\n", + "r2_=0.15#ohm\n", + "x2_=0.44#ohm\n", + "loss=1250#W\n", + "lossr=1000#W\n", + "i=20#A\n", + "pf=0.09\n", + "s=0.03\n", + "\n", + "#calculation\n", + "v1=v/3**0.5\n", + "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", + "i1=i2_+complex(1.78,19.9)\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i2_.real**2*r2_/s\n", + "ns=120*f/p\n", + "tg=9.55*p2/ns\n", + "pm=p2*(1-s)\n", + "pout=pm-1000\n", + "cu_losss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_losss+cu_lossr+lossr\n", + "efficiency=pout/(pout+total_loss)\n", + "\n", + "#result\n", + "print \"line current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"electromagnetic torque=\",tg,\"N-m\"\n", + "print \"output=\",pout,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= (50.2750367599+11.9125821807j) A\n", + "pf= 0.973057118792\n", + "electromagnetic torque= 224.593900377 N-m\n", + "output= 33218.2329894 W\n", + "efficiency= 89.0932246577 %\n" + ] + } + ], + "prompt_number": 186 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.58, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.06,0.2)\n", + "zr=complex(0.06,0.22)\n", + "\n", + "#calculation\n", + "r01=z.real+zr.real\n", + "x01=z.imag+zr.imag\n", + "z01=(r01**2+x01**2)**0.5\n", + "s=z.real/(z.real+z01)\n", + "v1=v/3**0.5\n", + "pmax=3*v1**2/(2*(r01+z01))\n", + "\n", + "#result\n", + "print \"maximum gross power=\",pmax,\"W\"\n", + "print \"slip=\",s" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum gross power= 143676.459572 W\n", + "slip= 0.120771344025\n" + ] + } + ], + "prompt_number": 188 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.59, Page Number:1307" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=115#V\n", + "f=60.0#Hz\n", + "p=6\n", + "z=complex(0.07,0.3)\n", + "zr=complex(0.08,0.3)\n", + "gd=0.022#mho\n", + "bo=0.158#mho\n", + "s=0.02\n", + "\n", + "#calculation\n", + "rl_=1/bo*(1/s-1)\n", + "z=complex(z.real+zr.real+rl_,0.6)\n", + "v=v1/3**0.5\n", + "i2=complex(16,-2.36)\n", + "io=v*complex(gd,-bo)\n", + "i1=io+i2\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "pg=3*abs(i2)**2*rl_/100\n", + "ns=120*f/p\n", + "n=(1-s)*ns\n", + "tg=9.55*pg/n\n", + "p2=3**0.5*v1*abs(i1)*pf\n", + "efficiency=pg*100/p2\n", + "\n", + "#result\n", + "print \"secondary current=\",i2,\"A\"\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"power output=\",pg,\"W\"\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"input=\",p2,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary current= (16-2.36j) A\n", + "primary current= (17.460696181-12.8504543912j) A\n", + "pf= 0.805393212665\n", + "power output= 2433.59058228 W\n", + "torque= 19.7625765823 N-m\n", + "input= 3477.92348593 W\n", + "efficiency= 69.9725164204 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.60, Page Number:1308" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10,50)\n", + "s=0.05\n", + "\n", + "#calculation\n", + "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", + "v1=v/3**0.5\n", + "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", + "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", + "#result\n", + "print \"maximum torque=\",tgmax,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 277.144160399 N-m\n" + ] + } + ], + "prompt_number": 208 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_3.ipynb new file mode 100644 index 00000000..d05f1eeb --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter34_3.ipynb @@ -0,0 +1,3065 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0f43ef5b4c05930620c5e3871d199970ead64e15a20629e8e926abd11e2e9167" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 34:Induction Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.1, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=290.0#rpm\n", + "f=50.0#Hz\n", + "Ns=300.0#rpm(considered)\n", + "#calculation\n", + "P=120*f/Ns\n", + "s=(Ns-n)/Ns\n", + "\n", + "#result\n", + "print \"no. of poles=\",P\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "no. of poles= 20.0\n", + "slip= 3.33333333333 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.2, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "slot=3\n", + "f=50#Hz\n", + "\n", + "#calculation\n", + "P=2*n\n", + "slots_total=slot*P*n\n", + "Ns=120*f/P\n", + "\n", + "#result\n", + "print \"No. of stator poles=\",P\n", + "print \"Total number of slots=\",slots_total\n", + "print \"Speed=\",Ns,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " No. of stator poles= 6\n", + "Total number of slots= 54\n", + "Speed= 1000 rpm\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.3, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "n=3\n", + "f=50#Hz\n", + "slip1=0.04\n", + "slip2=0.03\n", + "\n", + "#calculation\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip1)\n", + "f1=slip2*f*60\n", + "#at standstill s=1\n", + "f2=1*f\n", + "\n", + "#calculation\n", + "print \"speed at which magnetic field of the stator is rotating=\",Ns,\"rpm\"\n", + "print \"speed of the rotor when the slip is 0.04=\",N\n", + "print \"frequency of rotor current=\",f1,\"rpm\"\n", + "print \"frequency of the rotor current at standstill=\",f2,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at which magnetic field of the stator is rotating= 1500 rpm\n", + "speed of the rotor when the slip is 0.04= 1440.0\n", + "frequency of rotor current= 90.0 rpm\n", + "frequency of the rotor current at standstill= 50 Hz\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.4, Page Number:1255" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3.0\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slip=0.04\n", + "n=600.0#rpm\n", + "\n", + "#calculations\n", + "Ns=120*f/p\n", + "N=Ns*(1-slip)\n", + "s=(Ns-n)/Ns\n", + "f1=s*f\n", + "\n", + "#result\n", + "print \"the synchronous speed=\",Ns,\"rpm\"\n", + "print \"the rotor speed=\",N,\"rpm\"\n", + "print \"the rotor frequency when n=600 rpm=\",f1,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the synchronous speed= 1500.0 rpm\n", + "the rotor speed= 1440.0 rpm\n", + "the rotor frequency when n=600 rpm= 30.0 Hz\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.5, Page Number:1256" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "n=3\n", + "N=500#rpm\n", + "p2=8\n", + "slip=0.03\n", + "\n", + "#calculation\n", + "f=p*N/120\n", + "Ns=120*f/p2\n", + "N=Ns-slip*Ns\n", + "\n", + "#result\n", + "print \"full load speed of the motor=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full load speed of the motor= 727.5 rpm\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.6, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e=80#V\n", + "r=1#ohm\n", + "x=4#ohm\n", + "rheo=3#ohm\n", + "\n", + "#calculation\n", + "E=e/(3)**0.5\n", + "z=(r**2+x**2)**0.5\n", + "i=E/z\n", + "pf=r/z\n", + "R=rheo+r\n", + "z2=(R**2+x**2)**0.5\n", + "i2=E/z2\n", + "\n", + "pf2=R/z2\n", + "\n", + "#result\n", + "print \"slip rings are short circuited:\"\n", + "print \"current/phase\",i,\"A\"\n", + "print \"pf=\",pf\n", + "print \"slip rings are onnected to a star-connected rheostat of 3 ohm\",\n", + "print \"current/phase\",i2,\"A\"\n", + "print \"pf=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip rings are short circuited:\n", + "current/phase 11.2022406722 A\n", + "pf= 0.242535625036\n", + "slip rings are onnected to a star-connected rheostat of 3 ohm current/phase 8.16496580928 A\n", + "pf= 0.707106781187\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.7, Page Number:1258" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "v=400#V\n", + "ratio=6.5\n", + "r=0.05#ohm\n", + "x=0.25#ohm\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=v*k/(3**0.5)\n", + "R=x-r\n", + "r2=x\n", + "z=(x**2+r2**2)**0.5\n", + "i2=e2/z\n", + "\n", + "#result\n", + "print \"external resistance=\",R,\"ohm\"\n", + "print \"starting current=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.2 ohm\n", + "starting current= 100.491886883 A\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.8, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=1100#V\n", + "f=50#Hz\n", + "ratio=3.8\n", + "r=0.012#ohm\n", + "x=0.25#ohm\n", + "s=0.04\n", + "#calculation\n", + "e=v/ratio\n", + "z=(r**2+x**2)**0.5\n", + "i=e/z\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "er=s*e\n", + "i2=er/zr\n", + "pf2=r/zr\n", + "i2=100*ratio\n", + "z2=e/i2\n", + "r2=(z2**2-x**2)**0.5\n", + "R=r2-r\n", + "\n", + "#result\n", + "print \"current with slip rings shorted=\",i,\"A\"\n", + "print \"pf with slip rings shorted=\",pf\n", + "print \"current with slip=4% and slip rings shorted=\",i2\n", + "print \"pf withslip=4% and slip rings shorted=\",pf2\n", + "print \"external resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current with slip rings shorted= 1156.56314266 A\n", + "pf with slip rings shorted= 0.0479447993684\n", + "current with slip=4% and slip rings shorted= 380.0\n", + "pf withslip=4% and slip rings shorted= 0.768221279597\n", + "external resistance= 0.70758173952 ohm\n" + ] + } + ], + "prompt_number": 41 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.9, Page Number:1259" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=15#kW\n", + "v=3000#V\n", + "f=50#Hz\n", + "p=6\n", + "ratio=3.6\n", + "r=0.13#ohm\n", + "l=3.61*0.001#H\n", + "\n", + "#calculation\n", + "v=v/3**0.5\n", + "x2=2*3.14*l*f\n", + "k=1/ratio\n", + "r2_=0.1/k**2\n", + "x2_=ratio**2*x2\n", + "is1=v/((r**2+x2_**2)**0.5)\n", + "ns=120*f/p\n", + "ts=(3*3/(2*3.14*f))*((v**2)*r2_)/(r2_**2+x2_**2)\n", + "\n", + "#result\n", + "print \"starting current=\",is1,\"A\"\n", + "print \"ts=\",ts,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 117.896733436 A\n", + "ts= 512.375725888 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.10, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "zs=complex(0.4,4)\n", + "zr=complex(6,2)\n", + "v=80#V\n", + "s=0.03\n", + "\n", + "#calculation\n", + "e2=v/3**0.5\n", + "i=e2/abs(zr+zs)\n", + "er=s*e2\n", + "xr=s*zs.imag\n", + "ir=er/abs(complex(zs.real,xr))\n", + "\n", + "#result\n", + "print \"rotor current at standstill=\",i,\"A\"\n", + "print \"rotor current when slip-rings are short-circuited=\",ir,\"A\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor current at standstill= 5.26498126493 A\n", + "rotor current when slip-rings are short-circuited= 3.31800758166 A\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.11, Page Number:1261" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "e=120#V\n", + "r2=0.3#ohm\n", + "x2=1.5#ohm\n", + "s=0.04\n", + "\n", + "#calculations\n", + "e2=e/3**0.5\n", + "er=s*e2\n", + "xr=s*x2\n", + "zr=(r2**2+xr**2)**0.5\n", + "i=er/zr\n", + "s=r2/x2\n", + "xr=s*x2\n", + "zr=(xr**2+r2**2)**0.5\n", + "er=s*e2\n", + "i2=er/zr\n", + "\n", + "#result\n", + "print \"rotor when running short-circuited=\",i,\"A\"\n", + "print \"slip=\",s\n", + "print \"current when torque is maximum=\",i2,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor when running short-circuited= 9.05821627316 A\n", + "slip= 0.2\n", + "current when torque is maximum= 32.6598632371 A\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.12, Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tb=150.0#kg-m\n", + "n=660.0#rpm\n", + "r=0.5#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "t=tb*(2/((sb/s)+s/sb))\n", + "\n", + "#result\n", + "print \"torque=\",t,\"kg-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 90.0 kg-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(a), Page Number:1266" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variablde declaration\n", + "n=3\n", + "vd=0.90\n", + "\n", + "#calculation\n", + "ratio_s=(1/vd)**2\n", + "ratio_i=ratio_s*vd\n", + "cu_loss_increase=ratio_i**2\n", + "\n", + "#result\n", + "print \"increase in motor copper losses=\",cu_loss_increase" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in motor copper losses= 1.23456790123\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.13(b), Page Number:1264" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "p1=15.0#kW\n", + "n=980.0#rpm\n", + "efficiency=0.93\n", + "vd=0.10\n", + "fd=0.05\n", + "\n", + "#calculation\n", + "v2=(1-vd)*v\n", + "f2=(1-fd)*f\n", + "n1=120*f/p\n", + "n2=120*f2/p\n", + "s1=(n1-n)/n1\n", + "ratio_f=s1*(v*(1-vd)/v)**2*f2/f\n", + "n2=n2*(1-ratio_f)\n", + "p2=p1*n2/n1\n", + "#result\n", + "print \"the new operating speed=\",n2,\"rpm\"\n", + "print \"the new output power=\",p2,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the new operating speed= 935.3795 rpm\n", + "the new output power= 14.0306925 kW\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(a), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=3\n", + "v1=400#V\n", + "v2=200#V\n", + "r=0.06#ohm\n", + "x=0.3#ohm\n", + "a=1\n", + "#calculations\n", + "r=x-r\n", + "\n", + "#result\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "additional resistance= 0.24 ohm\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(b), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "n=3\n", + "f=50#Hz\n", + "p=8\n", + "s=0.02\n", + "r=0.001#ohm\n", + "x=0.005#ohm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "a=r/x\n", + "n2=(1-s)*ns\n", + "ratio=2*s**2*a/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"ratio of the maximum to full-load torque=\",ratio*1000,\"10^-3\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of the maximum to full-load torque= 3.9603960396 10^-3\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.14(c), Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=12\n", + "v=600#V\n", + "f=50#Hz\n", + "r=0.03#ohm\n", + "x=0.5#ohm\n", + "n=495#rpm\n", + "s=0.01\n", + "#calculation\n", + "Ns=120*f/p\n", + "a=r/x\n", + "n=Ns*(1-a)\n", + "ratio=2*a*s/(a**2+s**2)\n", + "\n", + "#result\n", + "print \"speed of max torque=\",n,\"rpm\"\n", + "print \"ratio of torques=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of max torque= 470.0 rpm\n", + "ratio of torques= 0.324324324324\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.15, Page Number:1267" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=746.0#kW\n", + "f=50.0#Hz\n", + "p=16\n", + "zr=complex(0.02,0.15)\n", + "n=360.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "a=zr.real/zr.imag\n", + "ratio=2*a*s/(a**2+s**2)\n", + "N=ns*(1-a)\n", + "R=zr.imag-zr.real\n", + "\n", + "#result\n", + "print \"ratio of torques=\",ratio\n", + "print \"speed at maximum torque=\",N,\"rpm\"\n", + "print \"rotor resistance=\",R,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 0.550458715596\n", + "speed at maximum torque= 325.0 rpm\n", + "rotor resistance= 0.13 ohm\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.16, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "p=4\n", + "f=50.0#Hz\n", + "r=0.025#ohm\n", + "x=0.12#ohm\n", + "ratio=3.0/4.0\n", + "\n", + "#calculations\n", + "s=r/x\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "a=solve(ratio-(2*a/(1+a**2)),a)\n", + "r=a[0]*x-r\n", + "\n", + "#result\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"additional resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed at maximum torque= 1187.5 rpm\n", + "additional resistance= 0.0291699475574164 ohm\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.17, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "s=0.04\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "p=8\n", + "#calculation\n", + "a=r/x\n", + "t_ratio=2*a*s/(a**2+s**2)\n", + "ns=120*f/p\n", + "n=(1-a)*ns\n", + "\n", + "#result\n", + "print \"ratio of torques=\",1/t_ratio\n", + "print \"speed=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio of torques= 1.45\n", + "speed= 675.0 rpm\n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.18, Page Number:1268" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "a=Symbol('a')\n", + "a2=Symbol('a2')\n", + "p=3\n", + "t_ratio=2.5\n", + "t_ratio2=1.5\n", + "s=0.03\n", + "\n", + "#calculation\n", + "t_ratio3=t_ratio2/t_ratio\n", + "a=solve(t_ratio3-(2*a/(1+a**2)),a)\n", + "a2=solve(a2**2-0.15*a2+0.0009,a2)\n", + "r_red=(a[0]-a2[1])/a[0]\n", + "#result\n", + "print \"percentage reduction in rotor circuit resistance=\",r_red*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction in rotor circuit resistance= 56.8784093726987 %\n" + ] + } + ], + "prompt_number": 46 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.19, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50#Hz\n", + "r=0.08#ohm\n", + "n=650.0#rpm\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "a=1\n", + "r=a*x2-r\n", + "#result\n", + "print \"extra resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "extra resistance= 0.52 ohm\n" + ] + } + ], + "prompt_number": 51 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.20, Page Number:1269" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "R=Symbol('R')\n", + "p=4\n", + "f=50.0#Hz\n", + "t=162.8#N-m\n", + "n=1365.0#rpm\n", + "r=0.2#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "sb=(ns-n)/ns\n", + "x2=r/sb\n", + "R=solve(1.0/(4*x2)-((r+R)/((r+R)**2+x2**2)),R)\n", + "\n", + "#result\n", + "print \"resistance to be added=\",round(R[0],1),\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance to be added= 0.4 ohm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.21, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "load=7.46#kW\n", + "t_ratios=1.60\n", + "t_ratiom=2.0\n", + "\n", + "#calcualtion\n", + "t_ratio=t_ratios/t_ratiom\n", + "#0.8a2-2*a+0.8 a=0.04\n", + "#0.5=2*a*sf/a2+sf2 sf=0.01\n", + "a=0.04\n", + "sf=0.01\n", + "ns=120*f/p\n", + "n=ns-sf*ns\n", + "N=ns-a*ns\n", + "\n", + "#result\n", + "print \"full-load speed=\",n,\"rpm\"\n", + "print \"speed at maximum torque=\",N,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "full-load speed= 1485.0 rpm\n", + "speed at maximum torque= 1440.0 rpm\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.22, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "v=240#V\n", + "f=50#Hz\n", + "r=0.12#ohm\n", + "x=0.85#ohm\n", + "ratio=1.8\n", + "s=0.04\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e2=k*(v/3**0.5)\n", + "ns=120*f/p\n", + "tf=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "s=r/x\n", + "tmax=(3/(2*3.14*f/3))*(s*e2*e2*r/(r**2+(s*x)**2))\n", + "n=ns*(1-s)\n", + "\n", + "#result\n", + "print \"developed torque=\",tf,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "developed torque= 52.4097855621 N-m\n", + "maximum torque= 99.9125764956 N-m\n", + "speed at maximum torque= 858.823529412 rpm\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.23, Page Number:1270" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "s=0.03\n", + "\n", + "#calculation\n", + "ns=100#rpm considered\n", + "n=(1-s)*ns\n", + "n2=n/2\n", + "s2=(ns-n2)/ns\n", + "ratio=((s2/s)*(r**2+(s*x)**2)/(r**2+(s2*x)**2))**0.5\n", + "per=1-1/ratio\n", + "phi=math.atan(s2*x/r)\n", + "pf=math.cos(phi)\n", + "\n", + "#result\n", + "print \"percentage reduction=\",per*100,\"%\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage reduction= 22.8528060715 %\n", + "pf= 0.307902262948\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.26, Page Number:1272" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "p=4\n", + "t=100#N-m\n", + "n=1200#rpm\n", + "\n", + "#calculation\n", + "e2=v/2\n", + "ns=120*f/p\n", + "n=ns-n\n", + "n2=n+ns/2\n", + "\n", + "#result\n", + "print \"stator supply voltage=\",e2,\"V\"\n", + "print \"new speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator supply voltage= 220 V\n", + "new speed= 1050 rpm\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.24, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable delclaration\n", + "v=400.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=1140.0#rpm\n", + "e=440.0#V\n", + "e2=550.0#V\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "s1=(ns-n)/ns\n", + "s2=s1*(e/e2)**2\n", + "n2=ns*(1-s2)\n", + "\n", + "#result\n", + "print \"speed=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed= 1053.6 rpm\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.25, Page Number:1274" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=450.0#V\n", + "f=60.0#Hz\n", + "p=8.0\n", + "n=873.0#rpm\n", + "t=23.0#degrees\n", + "n2=864.0#rpm\n", + "alpha=1.0/234.0#per degrees centrigrade\n", + "\n", + "#calculation\n", + "s1=(900-n)/900\n", + "s2=(900-n2)/900\n", + "ratio=s2/s1-1\n", + "t2=(s2/s1-1)/alpha+23 \n", + "\n", + "#result\n", + "print \"increase in rotor resistance=\",ratio*100,\"%\"\n", + "print \"approx temperature=\",t2,\"degrees centigrade\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "increase in rotor resistance= 33.3333333333 %\n", + "approx temperature= 101.0 degrees centigrade\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.27, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=500.0#Hz\n", + "p=6.0\n", + "load=80.0#kW\n", + "alt=100.0\n", + "ns=120.0*f/60.0\n", + "#calculation\n", + "s=alt/(60.0*f)\n", + "n=(1-s)*ns\n", + "cu_loss=(1.0/3.0)*load*1000/3.0\n", + "\n", + "#result\n", + "print \"slip=\",s*1000,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss=\",cu_loss/10000,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 996.666666667 rpm\n", + "rotor copper loss= 0.888888888889 kW\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.28, Page Number:1283" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=4.0\n", + "n=1425.0#rpm\n", + "z=complex(0.4,4)\n", + "ratio=0.8\n", + "loss=500.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=75/ns\n", + "e1=v/3**0.5\n", + "tf=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "ir=s*ratio*e1/(z.real**2+(s*z.imag)**2)**0.5\n", + "cu_loss=3*ir**2*z.real\n", + "pm=2*3.4*(n/60)*tf\n", + "pout=pm-loss\n", + "s=z.real/z.imag\n", + "tmax=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real*s)/(z.real**2+(s*z.imag)**2)\n", + "nmax=ns-s*ns\n", + "i=ratio*e1/abs(z)\n", + "tst=(3*2/(2*3.14*f))*(((e1*ratio)**2)*z.real)/(z.real**2+(z.imag)**2)\n", + "\n", + "#result\n", + "print \" full load torque=\",tf,\"N-m\"\n", + "print \"rotor current=\",ir,\"A\"\n", + "print \"cu_loss=\",cu_loss,\"W\"\n", + "print \"power output=\",pout,\"W\"\n", + "print \"max torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",nmax,\"rpm\"\n", + "print \"starting current=\",i,\"A\"\n", + "print \"starting torque=\",tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " full load torque= 78.9197452229 N-m\n", + "rotor current= 22.7215022978 A\n", + "cu_loss= 619.52 W\n", + "power output= 12245.5388535 W\n", + "max torque= 98.6496815287 N-m\n", + "speed at max torque= 1350.0 rpm\n", + "starting current= 50.5546790867 A\n", + "starting torque= 19.5345904017 N-m\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.30, Page Number:1286" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60#kW\n", + "loss=1#kW\n", + "s=0.03\n", + "\n", + "#calculations\n", + "p2=load-loss\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2\n", + "rotor_loss=cu_loss*1000/3\n", + "\n", + "#result\n", + "print \"mechanical power developed=\",pm,\"kW\"\n", + "print \"rotor copper loss=\",rotor_loss,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power developed= 57.23 kW\n", + "rotor copper loss= 590.0 W\n" + ] + } + ], + "prompt_number": 52 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.31, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=20#KW\n", + "s=0.03\n", + "i=60#A\n", + "\n", + "#calculation\n", + "fr=s*f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss=s*load*1000\n", + "r2=cu_loss/(3*i**2)\n", + "\n", + "#result\n", + "print \"frequency of rotor current=\",fr,\"Hz\"\n", + "print \"rotor copper loss=\",cu_loss,\"W\"\n", + "print \"rotor resistance=\",r2,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of rotor current= 1.5 Hz\n", + "rotor copper loss= 600.0 W\n", + "rotor resistance= 0.0555555555556 ohm\n" + ] + } + ], + "prompt_number": 54 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.32, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50#Hz\n", + "load=3.73#KW\n", + "n=960#rpm\n", + "loss=280#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "input_r=load*1000*ns/n\n", + "input_s=input_r+loss\n", + "\n", + "#result\n", + "print \"stator input=\",input_s,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator input= 4165.41666667 W\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.33, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=75.0#KW\n", + "alt=100.0\n", + "\n", + "#calculations\n", + "f1=alt/60\n", + "s=f1/f\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "cu_loss_r_per_phase=s*p2/3\n", + "pm=(1-s)*p2\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"rotor copper loss per phase=\",cu_loss_r_per_phase,\"kW\"\n", + "print \"mechancal power=\",pm,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.33333333333 %\n", + "rotor speed= 966.666666667 rpm\n", + "rotor copper loss per phase= 0.833333333333 kW\n", + "mechancal power= 72.5 kW\n" + ] + } + ], + "prompt_number": 57 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.34, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=500.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "n=975.0#rpm\n", + "p1=40.0#KW\n", + "loss_s=1.0#kW\n", + "loss=2.0#KW\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "p2=p1-loss_s\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "pout=pm-loss\n", + "efficiency=pout/p1\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor copper loss=\",cu_loss,\"kW\"\n", + "print \"shaft power=\",pout,\"kW\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 2.5 %\n", + "rotor copper loss= 0.975 kW\n", + "shaft power= 36.025 kW\n", + "efficiency= 90.0625 %\n" + ] + } + ], + "prompt_number": 59 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.35, Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "output=100#KW\n", + "v=3300#V\n", + "f=50#Hz\n", + "n=500#rpm\n", + "s=0.018\n", + "pf=0.85\n", + "cu_loss=2440#W\n", + "iron_loss=3500#W\n", + "rotational_loss=1200#W\n", + "\n", + "#calculations\n", + "pm=output+rotational_loss/1000\n", + "cu_loss_r=(s/(1-s))*pm\n", + "p2=pm+cu_loss_r\n", + "input_s=p2+cu_loss/1000+iron_loss/1000\n", + "il=input_s*1000/(3**0.5*v*pf)\n", + "efficiency=output/input_s\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss_r,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.85132382892 kW\n", + "line current= 22.1989272175 A\n", + "efficiency= 92.7202341611 %\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.36, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "f=50.0#Hz\n", + "p=6.0\n", + "p2=100.0#W\n", + "c=120.0\n", + "\n", + "#calculations\n", + "s=c/(f*60)\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pm=(1-s)*p2\n", + "cu_loss=s*p2/3\n", + "n2=ns-n\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"copper loss=\",cu_loss,\"kW\"\n", + "print \"speed of stator field with respect to rotor=\",n2,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 960.0 rpm\n", + "mechanical power= 96.0 kW\n", + "copper loss= 1.33333333333 kW\n", + "speed of stator field with respect to rotor= 40.0 rpm\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.37, Page Number:1288" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "efficiency=0.9\n", + "output=37#kW\n", + "ratio=1.0/3.0\n", + "\n", + "#calculation\n", + "input_m=output*1000/efficiency\n", + "total_loss=input_m-output*1000\n", + "x=total_loss/(3+0.5)\n", + "input_r=output*1000+x/2+x\n", + "s=x/input_r\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 3.0303030303 %\n" + ] + } + ], + "prompt_number": 74 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.38, Page Number:1289" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=6\n", + "load=45#KW\n", + "i=75#A\n", + "s=0.03\n", + "iron_loss=1200#kW\n", + "loss=900#kW\n", + "r=0.12#ohm\n", + "\n", + "#calculations\n", + "pf=load*1000/(3**0.5*v*i)\n", + "r=r*3/2\n", + "cu_loss=3*(i/3**0.5)**2*r\n", + "cu_loss_r=s*42788\n", + "pm=42788-cu_loss_r\n", + "output_s=pm-loss\n", + "efficiency=output_s/(load*1000)\n", + "t=(output_s*60)/(2*3.14*970)\n", + "\n", + "#result\n", + "print \"pf=\",pf\n", + "print \"rotor cu loss=\",cu_loss_r,\"W\"\n", + "print \"p out=\",output_s,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n", + "print \"torque=\",t,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf= 0.866025403784\n", + "rotor cu loss= 1283.64 W\n", + "p out= 40604.36 W\n", + "efficiency= 90.2319111111 %\n", + "torque= 399.937881673 N-m\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(a), Page Number:1287" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=1.75\n", + "s=0.05\n", + "\n", + "#calculations\n", + "k=1/ratio\n", + "e1=v/3**0.5\n", + "e2=k*e1\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "pcr=3*i2**2*r\n", + "pm=pcr*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "n=ns*(1-sm)\n", + "e3=sm*e2\n", + "\n", + "#result\n", + "print \"load torque=\",tg/9.81,\"kg-m\"\n", + "print \"speed at maximum torque=\",n,\"rpm\"\n", + "print \"rotor emf at max torque=\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load torque= 4.26478644041 kg-m\n", + "speed at maximum torque= 1333.33333333 rpm\n", + "rotor emf at max torque= 8.06457518868 V\n" + ] + } + ], + "prompt_number": 88 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.39(b), Page Number:1290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "p=4\n", + "i=10#A\n", + "pf=0.86\n", + "loss=0.05\n", + "cu_r=0.04\n", + "m_loss=0.03\n", + "\n", + "#calculation\n", + "input_m=3**0.5*v*i*pf\n", + "loss_s=loss*input_m\n", + "input_r=input_m-loss_s\n", + "cu_lossr=cu_r*input_r\n", + "mec_loss=m_loss*input_r\n", + "output_shaft=input_r-cu_lossr-mec_loss\n", + "s=cu_lossr/input_r\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "wr=2*3.14*n/60\n", + "output_r=input_r-cu_lossr\n", + "tr=output_r/wr\n", + "tin=output_shaft/wr\n", + "\n", + "#result\n", + "print \"slip=\",s*100,\"%\"\n", + "print \"rotor speed=\",n,\"rpm\"\n", + "print \"torque developed in the rotor=\",tr,\"Nw-m\"\n", + "print \"shaft torque=\",tin,\"Nw-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 4.0 %\n", + "rotor speed= 1440.0 rpm\n", + "torque developed in the rotor= 36.0531340072 Nw-m\n", + "shaft torque= 34.9264735695 Nw-m\n" + ] + } + ], + "prompt_number": 91 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.40, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440.0#V\n", + "p=40.0\n", + "f=50.0#Hz\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "ratio=3.5\n", + "s=0.05\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "k=1/ratio\n", + "e2=k*e1\n", + "er=s*e2\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=er/z\n", + "cu_loss=3*i2**2*r\n", + "output=cu_loss*(1-s)/s\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(x*sm)**2)**0.5\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "input_r=cu_loss/sm\n", + "\n", + "#result\n", + "print \"gross output at 5% slip=\",output,\"W\"\n", + "print \"maximum torque=\",input_r,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross output at 5% slip= 6242.77652849 W\n", + "maximum torque= 8780.04535147 W\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.41, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=4.0\n", + "f=50.0#Hz\n", + "loss=0.025\n", + "s=0.04\n", + "\n", + "#calculations\n", + "pw=loss*pout*1000\n", + "pm=pout*1000+pw\n", + "cu_loss=s*pm/(1-s)\n", + "p2=cu_loss/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tsh=9.55*pout*1000/n\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"rotor cu loss=\",cu_loss,\"W\"\n", + "print \"rotor input=\",p2,\"W\"\n", + "print \"shaft torque=\",tsh,\"N-m\"\n", + "print \"gross electromagnetic torque=\",tg,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor cu loss= 796.510416667 W\n", + "rotor input= 19912.7604167 W\n", + "shaft torque= 123.685763889 N-m\n", + "gross electromagnetic torque= 126.777907986 N-m\n" + ] + } + ], + "prompt_number": 109 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.42, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "f=50.0#Hz\n", + "n=710#rpm\n", + "load=35#kW\n", + "loss=1200#W\n", + "loss_r=600#W\n", + "\n", + "#calculation\n", + "p2=load*1000-loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_loss=s*p2\n", + "pm=p2-cu_loss\n", + "tg=9.55*pm/n\n", + "pout=pm-loss_r\n", + "tsh=9.55*pout/n\n", + "\n", + "#result\n", + "print \"rotor copper loss=\",cu_loss/1000,\"kW\"\n", + "print \"gross torque=\",tg,\"N-m\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"net torque=\",tsh,\"N-m\"\n", + "print \"mechanical power output=\",pout,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "rotor copper loss= 1.80266666667 kW\n", + "gross torque= 430.386666667 N-m\n", + "mechanical power= 31997.3333333 W\n", + "net torque= 422.316244131 N-m\n", + "mechanical power output= 31397.3333333 W\n" + ] + } + ], + "prompt_number": 113 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.43, Page Number:1292" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "f=50.0#Hz\n", + "s=0.04\n", + "tsh=149.3#N-m\n", + "loss=200#W\n", + "cu_loss=1620#W\n", + "\n", + "#calculations\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "pout=tsh*2*3.14*(n/60)\n", + "output=pout+loss\n", + "p2=output*ns/n\n", + "cu_lossr=p2-output\n", + "p1=p2+cu_loss\n", + "efficiency=pout*100/p1\n", + "\n", + "#result\n", + "print \"output power=\",pout/1000,\"kW\"\n", + "print \"rotor cu loss=\",cu_lossr,\"W\"\n", + "print \"the efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output power= 15.001664 kW\n", + "rotor cu loss= 633.402666667 W\n", + "the efficiency= 85.9444669361 %\n" + ] + } + ], + "prompt_number": 116 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.44, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pout=18.65#kW\n", + "p=6\n", + "f=50.0#Hz\n", + "n=960#rpm\n", + "i2=35#A\n", + "loss=1#kW\n", + "\n", + "#calculation\n", + "pm=pout+loss\n", + "ns=120*f/p\n", + "s=(ns-n)/ns\n", + "cu_lossr=pm*s*1000/(1-s)\n", + "r2=cu_lossr/(3*i2**2)\n", + "\n", + "#result\n", + "print \"resistane per phase=\",r2,\"ohm/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistane per phase= 0.222789115646 ohm/phase\n" + ] + } + ], + "prompt_number": 120 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.45, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "sf=Symbol('sf')\n", + "v=400#V\n", + "p=4\n", + "f=50#Hz\n", + "r=0.01#ohm\n", + "x=0.1#ohm\n", + "ratio=4\n", + "\n", + "#calculation\n", + "e1=v/3**0.5\n", + "e2=e1/ratio\n", + "sm=r/x\n", + "ns=120*f/p\n", + "tmax=(3/(2*3.14*25))*(e2**2/(2*x))\n", + "a=r/x\n", + "sf=solve(0.5*(a**2+sf**2)-2*a*sf,sf)\n", + "n=ns*(1-sf[0])\n", + "tf=tmax/2\n", + "output=2*3.14*n*tf/60\n", + "\n", + "#result\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"full load slip=\",sf[0]\n", + "print \"power output=\",output,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 318.47133758 N-m\n", + "full load slip= 0.0267949192431123\n", + "power output= 24330.1270189222 W\n" + ] + } + ], + "prompt_number": 129 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.46, Page Number:1291" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "v=200.0#V\n", + "r=0.1#ohm\n", + "x=0.9#ohm\n", + "k=0.67\n", + "s=0.04\n", + "#calculations\n", + "e1=v/3**0.5\n", + "e2=e1*k\n", + "z=(r**2+(s*x)**2)**0.5\n", + "i2=s*e2/z\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "sm=r/x\n", + "er=sm*e2\n", + "zr=(r**2+(sm*x)**2)**0.5\n", + "i2=er/zr\n", + "cu_lossr=3*i2**2*r\n", + "output=cu_lossr*(1-sm)/sm\n", + "n=(1-sm)*ns\n", + "tmax=9.55*output/n\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"maximum torque=\",tmax,\"N-m\"\n", + "print \"speed at max torque=\",n,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 40.4815391879 N-m\n", + "maximum torque= 63.511037037 N-m\n", + "speed at max torque= 1333.33333333 rpm\n" + ] + } + ], + "prompt_number": 143 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.47, Page Number:1293" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "r=0.015#ohm\n", + "x=0.09#ohm\n", + "f=50#Hz\n", + "s=0.04\n", + "p=4\n", + "e2=110#V\n", + "\n", + "#calculations\n", + "z=(r**2+x**2)**0.5\n", + "pf=r/z\n", + "xr=s*x\n", + "zr=(r**2+xr**2)**0.5\n", + "pf2=r/zr\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "er=s*e2\n", + "i2=er/zr\n", + "cu_loss=3*i2**2*r\n", + "pm=cu_loss*(1-s)/s\n", + "tg=9.55*pm/n\n", + "\n", + "#result\n", + "print \"pf of motor at start=\",pf\n", + "print \"pf of motor at s=4%\",pf2\n", + "print \"full load torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf of motor at start= 0.164398987305\n", + "pf of motor at s=4% 0.972387301981\n", + "full load torque= 582.728189612 N-m\n" + ] + } + ], + "prompt_number": 144 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.48, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6.0\n", + "f=50.0#Hz\n", + "tsh=162.84#N-m\n", + "c=90.0\n", + "t=20.36#N-m\n", + "loss=830.0#W\n", + "\n", + "#calculation\n", + "ns=120*f/p\n", + "fr=c/60\n", + "s=fr/f\n", + "n=ns*(1-s)\n", + "output=2*3.14*n*tsh/60\n", + "tg=tsh+t\n", + "p2=tg*ns/9.55\n", + "cu_lossr=s*p2\n", + "p1=p2+cu_lossr\n", + "efficiency=output*100/p1\n", + "\n", + "#result\n", + "print \"motor output=\",output,\"W\"\n", + "print \"cu loss=\",cu_lossr,\"W\"\n", + "print \"motor input\",p1,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "motor output= 16532.6024 W\n", + "cu loss= 575.497382199 W\n", + "motor input 19758.7434555 W\n", + "efficiency= 83.6723369441 %\n" + ] + } + ], + "prompt_number": 146 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.49, Page Number:1294" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=18.65#kW\n", + "v=420.0#V\n", + "p=6\n", + "f=50.0#Hz\n", + "r=1.0#ohm\n", + "z=complex(0.25,0.75)\n", + "zr=complex(0.173,0.52)\n", + "v1=420.0#V\n", + "v2=350.0#V\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "r02=zr.real+k**2*z.real\n", + "x02=zr.imag+k**2*z.imag\n", + "z02=((r+r02)**2+x02**2)**0.5\n", + "i2=v2/(3**0.5*z02)\n", + "cu_loss=i2**2*(r+zr.real)\n", + "p2=cu_loss*3\n", + "ns=120*f/p\n", + "tst=9.55*p2/(ns*9.81)\n", + "#result\n", + "print \"torque=\",tst,\"kg-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 48.2909354778 kg-m\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.50, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=8\n", + "load=37.3#ohm\n", + "v=280#V\n", + "f=50.0#Hz\n", + "i=200#A\n", + "pf=0.25\n", + "r=0.15#ohm\n", + "k=1.0/3\n", + "#calculation\n", + "wsc=2*v*i*pf\n", + "power_phase=v*i*pf\n", + "R=power_phase/i**2\n", + "r2_=R-r\n", + "r2=k**2*r2_\n", + "p2=3*i**2*r2_\n", + "ns=120*f/p\n", + "t=9.55*p2/ns\n", + "\n", + "#result\n", + "print \"resistance perphaseof therotor winding=\",r2,\"ohm\"\n", + "print \"startingtorque=\",t,\"N-m\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistance perphaseof therotor winding= 0.0222222222222 ohm\n", + "startingtorque= 305.6 N-m\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.51, Page Number:1295" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ratios=1.6\n", + "ratiom=2.0\n", + "sf=0.01\n", + "sb=0.04\n", + "#calculation\n", + "i=(ratios/sf)**0.5\n", + "\n", + "#result\n", + "print \"slip at full load=\",sf\n", + "print \"slip at maximum torque=\",sb\n", + "print \"rotor current=\",i" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip at full load= 0.01\n", + "slip at maximum torque= 0.04\n", + "rotor current= 12.6491106407\n" + ] + } + ], + "prompt_number": 159 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.52, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=200#km/h\n", + "f=100#Hz\n", + "\n", + "#calculation\n", + "w=v*5.0/18/(2*f)\n", + "\n", + "#result\n", + "print \"pole pitch=\",w*1000,\"mm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pole pitch= 277.777777778 mm\n" + ] + } + ], + "prompt_number": 162 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.53, Page Number:1297" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "w=6#mm\n", + "f=25#Hz\n", + "p=6#kW\n", + "loss=1.2#kW\n", + "v=2.4#m/s\n", + "\n", + "#calculation\n", + "vs=2*f*w/100\n", + "s=(vs-v)/vs\n", + "p2=p-loss\n", + "pcr=s*p2\n", + "pm=p2-pcr\n", + "f=p2*1000/vs\n", + "\n", + "#result\n", + "print \"synchronous speed=\",vs,\"m/s\"\n", + "print \"slip=\",s\n", + "print \"cu loss=\",pcr,\"kW\"\n", + "print \"mechanical power=\",pm,\"kW\"\n", + "print \"thrust=\",f/1000,\"kN\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous speed= 3 m/s\n", + "slip= 0.2\n", + "cu loss= 0.96 kW\n", + "mechanical power= 3.84 kW\n", + "thrust= 1.6 kN\n" + ] + } + ], + "prompt_number": 163 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.54, Page Number:1304" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=0.12\n", + "r=0.08#ohm/phase\n", + "pg=9000.0#W\n", + "\n", + "#calculations\n", + "rl=r*(1/s-1)\n", + "v=(pg*rl/3)**0.5\n", + "il=v/rl\n", + "\n", + "#result\n", + "print \"load resistance=\",rl,\"ohm\"\n", + "print \"load voltage=\",v,\"V\"\n", + "print \"load current=\",il,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load resistance= 0.586666666667 ohm\n", + "load voltage= 41.9523539268 V\n", + "load current= 71.5096941934 A\n" + ] + } + ], + "prompt_number": 166 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.55, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "p=4\n", + "r1=0.15#ohm\n", + "x1=0.45#ohm\n", + "r2_=0.12#ohm\n", + "x2_=0.45#ohm\n", + "xm=complex(0,28.5)#ohm\n", + "s=0.04\n", + "#calculations\n", + "rl_=r2_*(1/s-1)\n", + "i2_=(v/3**0.5)/complex(r1+rl_,x1)\n", + "i0=(v/3**0.5)/xm\n", + "i1=i0+i2_\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "\n", + "#result\n", + "print \"stator current=\",i1,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stator current= (74.5730253701-19.1783634605j) A\n", + "power factor= 0.968485280755\n" + ] + } + ], + "prompt_number": 177 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.56, Page Number:1305" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=220#V\n", + "p=4\n", + "f=50#Hz\n", + "power=3.73#kW\n", + "r1=0.45#ohm\n", + "x1=0.8#ohm\n", + "r2_=0.4#ohm\n", + "x2_=0.8#ohm\n", + "b0=-1.0/30\n", + "loss=50#W\n", + "lossr=150#W\n", + "s=0.04\n", + "\n", + "#calculations\n", + "zab=complex(30*complex(r2_/s,x2_))/complex(r2_/s,x2_-1/b0)\n", + "z01=complex(r1,x1)+zab\n", + "vph=v/3**0.5\n", + "i1=v1/z01\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i1.real**2*zab.real\n", + "pm=(1-s)*p2\n", + "ns=120*f/p\n", + "n=ns*(1-s)\n", + "tg=9.55*pm/n\n", + "power_o=pm-lossr\n", + "cu_loss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_loss+cu_lossr+lossr\n", + "efficiency=power_o/(power_o+total_loss)\n", + "\n", + "#result\n", + "print \"input current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"air gap power=\",p2,\"W\"\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"electro magnetic torque=\",tg,\"N-m\"\n", + "print \"output power=\",power_o,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "input current= (21.9914486234+42.6194245913j) A\n", + "pf= 0.45854949826\n", + "air gap power= 5173.46132109 W\n", + "mechanical power= 4966.52286825 W\n", + "electro magnetic torque= 32.9377037443 N-m\n", + "output power= 4816.52286825 W\n", + "efficiency= 81.9644851937 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.57, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "load=37.3#kW\n", + "r1=0.1#ohm\n", + "x1=0.4#ohm\n", + "r2_=0.15#ohm\n", + "x2_=0.44#ohm\n", + "loss=1250#W\n", + "lossr=1000#W\n", + "i=20#A\n", + "pf=0.09\n", + "s=0.03\n", + "\n", + "#calculation\n", + "v1=v/3**0.5\n", + "i2_=v1/complex(r1+r2_/s,x1+x2_)\n", + "i1=i2_+complex(1.78,19.9)\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "p2=3*i2_.real**2*r2_/s\n", + "ns=120*f/p\n", + "tg=9.55*p2/ns\n", + "pm=p2*(1-s)\n", + "pout=pm-1000\n", + "cu_losss=3*i1.real**2*r1\n", + "cu_lossr=s*p2\n", + "total_loss=loss+cu_losss+cu_lossr+lossr\n", + "efficiency=pout/(pout+total_loss)\n", + "\n", + "#result\n", + "print \"line current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"electromagnetic torque=\",tg,\"N-m\"\n", + "print \"output=\",pout,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line current= (50.2750367599+11.9125821807j) A\n", + "pf= 0.973057118792\n", + "electromagnetic torque= 224.593900377 N-m\n", + "output= 33218.2329894 W\n", + "efficiency= 89.0932246577 %\n" + ] + } + ], + "prompt_number": 186 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.58, Page Number:1306" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.06,0.2)\n", + "zr=complex(0.06,0.22)\n", + "\n", + "#calculation\n", + "r01=z.real+zr.real\n", + "x01=z.imag+zr.imag\n", + "z01=(r01**2+x01**2)**0.5\n", + "s=z.real/(z.real+z01)\n", + "v1=v/3**0.5\n", + "pmax=3*v1**2/(2*(r01+z01))\n", + "\n", + "#result\n", + "print \"maximum gross power=\",pmax,\"W\"\n", + "print \"slip=\",s" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum gross power= 143676.459572 W\n", + "slip= 0.120771344025\n" + ] + } + ], + "prompt_number": 188 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.59, Page Number:1307" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v1=115#V\n", + "f=60.0#Hz\n", + "p=6\n", + "z=complex(0.07,0.3)\n", + "zr=complex(0.08,0.3)\n", + "gd=0.022#mho\n", + "bo=0.158#mho\n", + "s=0.02\n", + "\n", + "#calculation\n", + "rl_=1/bo*(1/s-1)\n", + "z=complex(z.real+zr.real+rl_,0.6)\n", + "v=v1/3**0.5\n", + "i2=complex(16,-2.36)\n", + "io=v*complex(gd,-bo)\n", + "i1=io+i2\n", + "pf=math.cos(math.atan(i1.imag/i1.real))\n", + "pg=3*abs(i2)**2*rl_/100\n", + "ns=120*f/p\n", + "n=(1-s)*ns\n", + "tg=9.55*pg/n\n", + "p2=3**0.5*v1*abs(i1)*pf\n", + "efficiency=pg*100/p2\n", + "\n", + "#result\n", + "print \"secondary current=\",i2,\"A\"\n", + "print \"primary current=\",i1,\"A\"\n", + "print \"pf=\",pf\n", + "print \"power output=\",pg,\"W\"\n", + "print \"torque=\",tg,\"N-m\"\n", + "print \"input=\",p2,\"W\"\n", + "print \"efficiency=\",efficiency,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "secondary current= (16-2.36j) A\n", + "primary current= (17.460696181-12.8504543912j) A\n", + "pf= 0.805393212665\n", + "power output= 2433.59058228 W\n", + "torque= 19.7625765823 N-m\n", + "input= 3477.92348593 W\n", + "efficiency= 69.9725164204 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 34.60, Page Number:1308" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=400#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10,50)\n", + "s=0.05\n", + "\n", + "#calculation\n", + "sm=zr.real/(z.real**2+(z.imag+zr.imag)**2)**0.5\n", + "v1=v/3**0.5\n", + "i2=v1/((z.real+zr.real)**2+(zr.imag+z.imag)**2)**0.5\n", + "tgmax=3*i2**2*z.real*60/(sm*2*3.14*1500)\n", + "#result\n", + "print \"maximum torque=\",tgmax,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum torque= 277.144160399 N-m\n" + ] + } + ], + "prompt_number": 208 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb new file mode 100644 index 00000000..1c89c3bd --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb @@ -0,0 +1,1220 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 35: Computations and Circle Diagrams" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.1, Page Number:1316" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=10#A\n", + "p=450#W\n", + "v=110#V\n", + "r=0.05#ohm\n", + "loss=135#w\n", + "\n", + "#calculations\n", + "cu_loss=3*i**2*r\n", + "core_loss=p-loss-cu_loss\n", + "volt=v/math.sqrt(3)\n", + "g=core_loss/(3*(v/math.sqrt(3))**2)\n", + "y=i*math.sqrt(3)/v\n", + "b=math.sqrt(y**2-g**2)\n", + "\n", + "#result\n", + "print \"exciting conductance=\",g,\"seimens/phase\"\n", + "print \"susceptance/phase=\",b,\"seimens/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "exciting conductance= 0.0247933884298 seimens/phase\n", + "susceptance/phase= 0.155494939853 seimens/phase\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.2, Page Number:1317" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=110.0#V\n", + "i=25.0#A\n", + "v2=30.0#V\n", + "inpt=440.0#W\n", + "loss=40.0#W\n", + "r=0.1#ohm\n", + "ratio=1.6\n", + "\n", + "#calculations\n", + "vs=v2/math.sqrt(3)\n", + "z01=vs/i\n", + "losses=inpt-loss\n", + "r01=losses/(3*i**2)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "dc_r=r/2.0\n", + "ac_r=dc_r*ratio\n", + "effective_r=r01-ac_r\n", + "\n", + "#result\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r1=\",ac_r,\"ohm\"\n", + "print \"r2=\",effective_r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "x01= 0.659157711696 ohm\n", + "r1= 0.08 ohm\n", + "r2= 0.133333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.10, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=1/4.0\n", + "slip=3.0\n", + "ratio2=4.0\n", + "\n", + "#calculations\n", + "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", + "\n", + "#result\n", + "print \"Percentage Tapping=\",K*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage Tapping= 72.1687836487 %\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.11, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=14.92#kW\n", + "v1=400#V\n", + "n=950#rpm\n", + "f=50.0#Hz\n", + "v2=400#V\n", + "ratio=1.8\n", + "i=30#A\n", + "\n", + "#calculations\n", + "v=v1/math.sqrt(ratio)\n", + "If=6*v*i/v1\n", + "K=v/v1\n", + "kisc=K**2*6*i\n", + "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", + "\n", + "#result\n", + "print \"a)voltage=\",v,\"V\"\n", + "print \"b)current=\",If,\"A\"\n", + "print \"c)line current=\",kisc,\"A\"\n", + "print \"d)percentage=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)voltage= 298.142397 V\n", + "b)current= 134.16407865 A\n", + "c)line current= 100.0 A\n", + "d)percentage= 30.0 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.12, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=5.0\n", + "per=5\n", + "\n", + "#calculations\n", + "k=math.sqrt(ratio/3)\n", + "tst_tf=(3.0/5)*5**2*0.01*per*100\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",tst_tf,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 75.0 %\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.13, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "per=3.5\n", + "v2=92.0#V\n", + "\n", + "#calculations\n", + "k=math.sqrt(2/(v/v2))\n", + "ts_tf=k**2*(v/v2)**2*0.01*per\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 30.4347826087 %\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.14, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=12.0#kW\n", + "v=440.0#V\n", + "efficiency=0.85\n", + "pf=0.8\n", + "i=45.0#A\n", + "v2=220.0#V\n", + "\n", + "#calculations\n", + "isc=i*v/v2\n", + "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", + "ist=isc/math.sqrt(3)\n", + "ratio=ist/if_\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 2.244\n" + ] + } + ], + "prompt_number": 34 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.15, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=60.0#A\n", + "n1=940.0#rpm\n", + "t=150.0#N-m\n", + "i2=300.0#A\n", + "\n", + "#calculations\n", + "sf=(1000-n1)/1000\n", + "tst=t*(i2/i)**2*sf\n", + "s_i=i2/3\n", + "sd_tst=tst/3\n", + "\n", + "#result\n", + "print \"Starting torque=\",tst,\"N-m\"\n", + "print\"when star/delta is used:\"\n", + "print \"starting current=\",s_i,\"A\"\n", + "print \"starting torque=\",sd_tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Starting torque= 225.0 N-m\n", + "when star/delta is used:\n", + "starting current= 100.0 A\n", + "starting torque= 75.0 N-m\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.16, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "tapping=70.7\n", + "ratio=6.0\n", + "slip=4.0\n", + "\n", + "#calculation\n", + "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", + "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", + "\n", + "#result\n", + "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", + "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "star-delta switch:starting torque= 48.0 %\n", + "auto-transformer switch:starting torque= 72.0 %\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.17, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=11.2#W\n", + "f=50.0#Hz\n", + "v=400.0#V\n", + "n=960.0#rpm\n", + "i=86.4#A\n", + "efficiency=0.88\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "isc=i/math.sqrt(3)\n", + "ist=isc/math.sqrt(3)\n", + "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", + "iph=il/math.sqrt(3)\n", + "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", + "\n", + "#result\n", + "print \"starting torque=\",tst_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting torque= 26.6369577796 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.18, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "output=10.0#kW\n", + "v=400.0#V\n", + "pf=0.85\n", + "efficiency=0.88\n", + "v2=200.0#V\n", + "i=40.0#A\n", + "\n", + "#calculations\n", + "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", + "isc=i*v/v2\n", + "iscp=isc/math.sqrt(3)\n", + "ist=iscp/math.sqrt(3)\n", + "ratio=ist/il\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 1.23388000387\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.19, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.73*1000#W\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "slip=4.5\n", + "t=250.0\n", + "i=650.0\n", + "tap=60.0\n", + "\n", + "#calculation\n", + "il=i/3\n", + "im=i/3\n", + "tst=t/3\n", + "ilm=(tap/100)**2*i\n", + "imk=(tap/100)*i\n", + "tstk=(tap/100)**2*t\n", + "\n", + "#result\n", + "print \"star/delta:\"\n", + "print \"line current=\",il,\"%\"\n", + "print \"motor current=\",im,\"%\"\n", + "print \"starting torque=\",tst,\"%\"\n", + "print \"60% taps:\"\n", + "print \"line current=\",ilm,\"%\"\n", + "print \"motor current=\",imk,\"%\"\n", + "print \"starting torque=\",tstk,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " star/delta:\n", + "line current= 216.666666667 %\n", + "motor current= 216.666666667 %\n", + "starting torque= 83.3333333333 %\n", + "60% taps:\n", + "line current= 234.0 %\n", + "motor current= 390.0 %\n", + "starting torque= 90.0 %\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.20, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=180.0\n", + "flt=35.0\n", + "tap=75.0\n", + "\n", + "#calculations\n", + "isc=load*3.0/100\n", + "isck=tap**2*isc/100\n", + "sf=flt*3\n", + "tst_tf=tap**2*sf/100\n", + "#result\n", + "print \"starting current=\",isck,\"%\"\n", + "print \"starting torque=\",tst_tf/100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 303.75 %\n", + "starting torque= 59.0625 %\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.21, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "w=7.46#kW\n", + "ic=1.7\n", + "t=35.0\n", + "ratio=60.0\n", + "\n", + "#calculations\n", + "sf=t*3/100\n", + "il1=ic*3\n", + "tst=(ratio/1000)**2*sf*10000\n", + "il2=(ratio/100)*3*ic\n", + "\n", + "#results\n", + "print \"auto-starter:\"\n", + "print \"line-current=\",il1,\"%\"\n", + "print \"torque=\",tst,\"%\"\n", + "print \"voltage decreased to 60%\"\n", + "print \"line-current\",il2,\"%\"\n", + "print \"torque=\",tst,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-starter:\n", + "line-current= 5.1 %\n", + "torque= 37.8 %\n", + "voltage decreased to 60%\n", + "line-current 3.06 %\n", + "torque= 37.8 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.22, Page Number:1342" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "slip=2.0\n", + "r=0.02#ohm\n", + "n=6.0\n", + "#calculations\n", + "smax=r2=slip/100.0\n", + "R1=r2/smax\n", + "K=math.pow(smax,1.0/5)\n", + "R2=K*R1\n", + "R3=K*R2\n", + "R4=K*R3\n", + "R5=K*R4\n", + "p1=R1-R2\n", + "p2=R2-R3\n", + "p3=R3-R4\n", + "p4=R4-R5\n", + "p5=R5-r2\n", + "\n", + "#result\n", + "print \"resistances of various starter sections:\"\n", + "print \"p1=\",p1,\"ohm\"\n", + "print \"p2=\",p2,\"ohm\"\n", + "print \"p3=\",p3,\"ohm\"\n", + "print \"p4=\",p4,\"ohm\"\n", + "print \"p5=\",p5,\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistances of various starter sections:\n", + "p1= 0.542694948073 ohm\n", + "p2= 0.248177141409 ohm\n", + "p3= 0.113492660539 ohm\n", + "p4= 0.0519007670213 ohm\n", + "p5= 0.0237344829577 ohm\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.23, Page Number:1345" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "primary=complex(1,3)\n", + "outer=complex(3,1)\n", + "inner=complex(0.6,5)\n", + "s=4\n", + "outer2=complex(3/(s*0.01),1)\n", + "inner2=complex(0.6/(s*0.01),5)\n", + "v=440#V\n", + "\n", + "\n", + "#calculations\n", + "#s=1\n", + "z01=primary+1/((1/outer)+(1/inner))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=1: torque=\",torque,\"synch watt\"\n", + "\n", + "#s=4\n", + "z01=primary+1/((1/outer2)+(1/inner2))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=4: torque=\",torque,\"synch watt\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1: torque= 35065.3642462 synch watt\n", + "s=4: torque= 32129.9449695 synch watt\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.24, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inner=complex(0.4,2)\n", + "outer=complex(2,0.4)\n", + "s=5\n", + "inner2=complex(0.4/(s*0.01),2)\n", + "outer2=complex(2/(s*0.01),0.4)\n", + "print \n", + "#calculations\n", + "#s=1\n", + "zi=abs(inner)\n", + "zo=abs(outer)\n", + "r_ratio=inner.imag/outer.imag\n", + "to_ti=r_ratio*(zo/zi)**2\n", + "print \"Ratio of torques when s=1:\",to_ti\n", + "\n", + "#s=5\n", + "zi=abs(inner2)\n", + "zo=abs(outer2)\n", + "print zi\n", + "r_ratio=inner2.imag/outer2.imag\n", + "to_ti=r_ratio*(zi/zo)**2\n", + "\n", + "print \"Ratio of torques when s=5:\",to_ti" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Ratio of torques when s=1: 5.0\n", + "8.24621125124\n", + "Ratio of torques when s=5: 0.212478752125\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.25, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s=5\n", + "zi=complex(0.05,0.4)\n", + "zo=complex(0.5,0.1)\n", + "v=100#V\n", + "\n", + "#calculations\n", + "#s=1\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=1:torque=\",t,\"synch watts\"\n", + "\n", + "#s=0.01\n", + "zi=complex(0.05/(s*0.01),0.4)\n", + "zo=complex(0.5/(s*0.01),0.1)\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=5:torque=\",t,\"synch watts\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 22307.6923077 synch watts\n", + "s=5:torque= 9620.58966517 synch watts\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.27, Page Number:1347" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "zo=complex(1,0)\n", + "zi=complex(0.15,3)\n", + "v=250#V\n", + "n=1000#rpm\n", + "\n", + "#calculations\n", + "z2=zo*zi/(zo+zi)\n", + "stator=complex(0.25,3.5)\n", + "z01=z2+stator\n", + "i=complex(v,0)/z01\n", + "i=abs(i)\n", + "cu_loss=i**2*z01.real\n", + "T=cu_loss*3/(2*math.pi*(n/60))\n", + "#result\n", + "print \"torque=\",T,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 135.560320318 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.28, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z1=complex(1,2.8)\n", + "zo=complex(3,1)\n", + "zi=complex(0.5,5)\n", + "v=440#V\n", + "s=0.04\n", + "\n", + "#calculations\n", + "#s=1\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "\n", + "print \"s=1:torque=\",t,\"synch. watt\"\n", + "\n", + "#s=0.04\n", + "zo=complex(3.0/s,1.0)\n", + "zi=complex(0.5/s,5.0)\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "print \"s=4:torque=\",t,\"synch. watt\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 12388.3258184 synch. watt\n", + "s=4:torque= 11489.1141244 synch. watt\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.29, Page Number:1351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "r=0.30#ohm\n", + "n1=1440.0#rpm\n", + "n2=1320.0#rpm\n", + "ns=120.0*f/4.0\n", + "#calculations\n", + "s1=(ns-n1)/ns\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.6 ohm\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.30, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "s=0.03\n", + "ratio=10.0\n", + "r=0.2\n", + "\n", + "#calculations\n", + "ns=120*f/6\n", + "s1=s\n", + "n1=ns*(1-s1)\n", + "n2=n1-10*n1/100\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.646666666667 ohm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.31, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f=50#Hz\n", + "s=0.02\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "n=(1-s)*nsc\n", + "nsa=120*f/6\n", + "sa=(nsa-n)/nsa\n", + "f_=sa*f\n", + "n_=(120*f_)/4\n", + "sb=(n_-n)/n_\n", + "f__=sb*f_\n", + "\n", + "#resu;t\n", + "print \"f_=\",f_,\"Hz\"\n", + "print \"f_ _=\",f__,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "f_= 20.6 Hz\n", + "f_ _= 1.0 Hz\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.32, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "f2=1.0#Hz\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "s=f2/f\n", + "n=nsc-s*nsc\n", + "nsa=120*f/4\n", + "sa=(nsa-n)/nsa\n", + "f1=sa*f\n", + "n2=120*f1/6\n", + "sb=(n2-n)/n2\n", + "\n", + "#result\n", + "print \"sa=\",sa*100,\"%\"\n", + "print \"sb=\",sb*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 60.8 %\n", + "sb= 3.28947368421 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.33, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=74.6#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 29.84 kW\n" + ] + } + ], + "prompt_number": 79 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.34, Page Number:1355" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=25#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 10 kW\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_1.ipynb new file mode 100644 index 00000000..1c89c3bd --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_1.ipynb @@ -0,0 +1,1220 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 35: Computations and Circle Diagrams" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.1, Page Number:1316" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=10#A\n", + "p=450#W\n", + "v=110#V\n", + "r=0.05#ohm\n", + "loss=135#w\n", + "\n", + "#calculations\n", + "cu_loss=3*i**2*r\n", + "core_loss=p-loss-cu_loss\n", + "volt=v/math.sqrt(3)\n", + "g=core_loss/(3*(v/math.sqrt(3))**2)\n", + "y=i*math.sqrt(3)/v\n", + "b=math.sqrt(y**2-g**2)\n", + "\n", + "#result\n", + "print \"exciting conductance=\",g,\"seimens/phase\"\n", + "print \"susceptance/phase=\",b,\"seimens/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "exciting conductance= 0.0247933884298 seimens/phase\n", + "susceptance/phase= 0.155494939853 seimens/phase\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.2, Page Number:1317" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=110.0#V\n", + "i=25.0#A\n", + "v2=30.0#V\n", + "inpt=440.0#W\n", + "loss=40.0#W\n", + "r=0.1#ohm\n", + "ratio=1.6\n", + "\n", + "#calculations\n", + "vs=v2/math.sqrt(3)\n", + "z01=vs/i\n", + "losses=inpt-loss\n", + "r01=losses/(3*i**2)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "dc_r=r/2.0\n", + "ac_r=dc_r*ratio\n", + "effective_r=r01-ac_r\n", + "\n", + "#result\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r1=\",ac_r,\"ohm\"\n", + "print \"r2=\",effective_r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "x01= 0.659157711696 ohm\n", + "r1= 0.08 ohm\n", + "r2= 0.133333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.10, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=1/4.0\n", + "slip=3.0\n", + "ratio2=4.0\n", + "\n", + "#calculations\n", + "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", + "\n", + "#result\n", + "print \"Percentage Tapping=\",K*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage Tapping= 72.1687836487 %\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.11, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=14.92#kW\n", + "v1=400#V\n", + "n=950#rpm\n", + "f=50.0#Hz\n", + "v2=400#V\n", + "ratio=1.8\n", + "i=30#A\n", + "\n", + "#calculations\n", + "v=v1/math.sqrt(ratio)\n", + "If=6*v*i/v1\n", + "K=v/v1\n", + "kisc=K**2*6*i\n", + "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", + "\n", + "#result\n", + "print \"a)voltage=\",v,\"V\"\n", + "print \"b)current=\",If,\"A\"\n", + "print \"c)line current=\",kisc,\"A\"\n", + "print \"d)percentage=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)voltage= 298.142397 V\n", + "b)current= 134.16407865 A\n", + "c)line current= 100.0 A\n", + "d)percentage= 30.0 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.12, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=5.0\n", + "per=5\n", + "\n", + "#calculations\n", + "k=math.sqrt(ratio/3)\n", + "tst_tf=(3.0/5)*5**2*0.01*per*100\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",tst_tf,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 75.0 %\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.13, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "per=3.5\n", + "v2=92.0#V\n", + "\n", + "#calculations\n", + "k=math.sqrt(2/(v/v2))\n", + "ts_tf=k**2*(v/v2)**2*0.01*per\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 30.4347826087 %\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.14, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=12.0#kW\n", + "v=440.0#V\n", + "efficiency=0.85\n", + "pf=0.8\n", + "i=45.0#A\n", + "v2=220.0#V\n", + "\n", + "#calculations\n", + "isc=i*v/v2\n", + "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", + "ist=isc/math.sqrt(3)\n", + "ratio=ist/if_\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 2.244\n" + ] + } + ], + "prompt_number": 34 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.15, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=60.0#A\n", + "n1=940.0#rpm\n", + "t=150.0#N-m\n", + "i2=300.0#A\n", + "\n", + "#calculations\n", + "sf=(1000-n1)/1000\n", + "tst=t*(i2/i)**2*sf\n", + "s_i=i2/3\n", + "sd_tst=tst/3\n", + "\n", + "#result\n", + "print \"Starting torque=\",tst,\"N-m\"\n", + "print\"when star/delta is used:\"\n", + "print \"starting current=\",s_i,\"A\"\n", + "print \"starting torque=\",sd_tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Starting torque= 225.0 N-m\n", + "when star/delta is used:\n", + "starting current= 100.0 A\n", + "starting torque= 75.0 N-m\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.16, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "tapping=70.7\n", + "ratio=6.0\n", + "slip=4.0\n", + "\n", + "#calculation\n", + "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", + "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", + "\n", + "#result\n", + "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", + "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "star-delta switch:starting torque= 48.0 %\n", + "auto-transformer switch:starting torque= 72.0 %\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.17, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=11.2#W\n", + "f=50.0#Hz\n", + "v=400.0#V\n", + "n=960.0#rpm\n", + "i=86.4#A\n", + "efficiency=0.88\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "isc=i/math.sqrt(3)\n", + "ist=isc/math.sqrt(3)\n", + "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", + "iph=il/math.sqrt(3)\n", + "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", + "\n", + "#result\n", + "print \"starting torque=\",tst_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting torque= 26.6369577796 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.18, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "output=10.0#kW\n", + "v=400.0#V\n", + "pf=0.85\n", + "efficiency=0.88\n", + "v2=200.0#V\n", + "i=40.0#A\n", + "\n", + "#calculations\n", + "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", + "isc=i*v/v2\n", + "iscp=isc/math.sqrt(3)\n", + "ist=iscp/math.sqrt(3)\n", + "ratio=ist/il\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 1.23388000387\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.19, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.73*1000#W\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "slip=4.5\n", + "t=250.0\n", + "i=650.0\n", + "tap=60.0\n", + "\n", + "#calculation\n", + "il=i/3\n", + "im=i/3\n", + "tst=t/3\n", + "ilm=(tap/100)**2*i\n", + "imk=(tap/100)*i\n", + "tstk=(tap/100)**2*t\n", + "\n", + "#result\n", + "print \"star/delta:\"\n", + "print \"line current=\",il,\"%\"\n", + "print \"motor current=\",im,\"%\"\n", + "print \"starting torque=\",tst,\"%\"\n", + "print \"60% taps:\"\n", + "print \"line current=\",ilm,\"%\"\n", + "print \"motor current=\",imk,\"%\"\n", + "print \"starting torque=\",tstk,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " star/delta:\n", + "line current= 216.666666667 %\n", + "motor current= 216.666666667 %\n", + "starting torque= 83.3333333333 %\n", + "60% taps:\n", + "line current= 234.0 %\n", + "motor current= 390.0 %\n", + "starting torque= 90.0 %\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.20, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=180.0\n", + "flt=35.0\n", + "tap=75.0\n", + "\n", + "#calculations\n", + "isc=load*3.0/100\n", + "isck=tap**2*isc/100\n", + "sf=flt*3\n", + "tst_tf=tap**2*sf/100\n", + "#result\n", + "print \"starting current=\",isck,\"%\"\n", + "print \"starting torque=\",tst_tf/100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 303.75 %\n", + "starting torque= 59.0625 %\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.21, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "w=7.46#kW\n", + "ic=1.7\n", + "t=35.0\n", + "ratio=60.0\n", + "\n", + "#calculations\n", + "sf=t*3/100\n", + "il1=ic*3\n", + "tst=(ratio/1000)**2*sf*10000\n", + "il2=(ratio/100)*3*ic\n", + "\n", + "#results\n", + "print \"auto-starter:\"\n", + "print \"line-current=\",il1,\"%\"\n", + "print \"torque=\",tst,\"%\"\n", + "print \"voltage decreased to 60%\"\n", + "print \"line-current\",il2,\"%\"\n", + "print \"torque=\",tst,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-starter:\n", + "line-current= 5.1 %\n", + "torque= 37.8 %\n", + "voltage decreased to 60%\n", + "line-current 3.06 %\n", + "torque= 37.8 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.22, Page Number:1342" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "slip=2.0\n", + "r=0.02#ohm\n", + "n=6.0\n", + "#calculations\n", + "smax=r2=slip/100.0\n", + "R1=r2/smax\n", + "K=math.pow(smax,1.0/5)\n", + "R2=K*R1\n", + "R3=K*R2\n", + "R4=K*R3\n", + "R5=K*R4\n", + "p1=R1-R2\n", + "p2=R2-R3\n", + "p3=R3-R4\n", + "p4=R4-R5\n", + "p5=R5-r2\n", + "\n", + "#result\n", + "print \"resistances of various starter sections:\"\n", + "print \"p1=\",p1,\"ohm\"\n", + "print \"p2=\",p2,\"ohm\"\n", + "print \"p3=\",p3,\"ohm\"\n", + "print \"p4=\",p4,\"ohm\"\n", + "print \"p5=\",p5,\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistances of various starter sections:\n", + "p1= 0.542694948073 ohm\n", + "p2= 0.248177141409 ohm\n", + "p3= 0.113492660539 ohm\n", + "p4= 0.0519007670213 ohm\n", + "p5= 0.0237344829577 ohm\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.23, Page Number:1345" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "primary=complex(1,3)\n", + "outer=complex(3,1)\n", + "inner=complex(0.6,5)\n", + "s=4\n", + "outer2=complex(3/(s*0.01),1)\n", + "inner2=complex(0.6/(s*0.01),5)\n", + "v=440#V\n", + "\n", + "\n", + "#calculations\n", + "#s=1\n", + "z01=primary+1/((1/outer)+(1/inner))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=1: torque=\",torque,\"synch watt\"\n", + "\n", + "#s=4\n", + "z01=primary+1/((1/outer2)+(1/inner2))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=4: torque=\",torque,\"synch watt\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1: torque= 35065.3642462 synch watt\n", + "s=4: torque= 32129.9449695 synch watt\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.24, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inner=complex(0.4,2)\n", + "outer=complex(2,0.4)\n", + "s=5\n", + "inner2=complex(0.4/(s*0.01),2)\n", + "outer2=complex(2/(s*0.01),0.4)\n", + "print \n", + "#calculations\n", + "#s=1\n", + "zi=abs(inner)\n", + "zo=abs(outer)\n", + "r_ratio=inner.imag/outer.imag\n", + "to_ti=r_ratio*(zo/zi)**2\n", + "print \"Ratio of torques when s=1:\",to_ti\n", + "\n", + "#s=5\n", + "zi=abs(inner2)\n", + "zo=abs(outer2)\n", + "print zi\n", + "r_ratio=inner2.imag/outer2.imag\n", + "to_ti=r_ratio*(zi/zo)**2\n", + "\n", + "print \"Ratio of torques when s=5:\",to_ti" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Ratio of torques when s=1: 5.0\n", + "8.24621125124\n", + "Ratio of torques when s=5: 0.212478752125\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.25, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s=5\n", + "zi=complex(0.05,0.4)\n", + "zo=complex(0.5,0.1)\n", + "v=100#V\n", + "\n", + "#calculations\n", + "#s=1\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=1:torque=\",t,\"synch watts\"\n", + "\n", + "#s=0.01\n", + "zi=complex(0.05/(s*0.01),0.4)\n", + "zo=complex(0.5/(s*0.01),0.1)\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=5:torque=\",t,\"synch watts\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 22307.6923077 synch watts\n", + "s=5:torque= 9620.58966517 synch watts\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.27, Page Number:1347" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "zo=complex(1,0)\n", + "zi=complex(0.15,3)\n", + "v=250#V\n", + "n=1000#rpm\n", + "\n", + "#calculations\n", + "z2=zo*zi/(zo+zi)\n", + "stator=complex(0.25,3.5)\n", + "z01=z2+stator\n", + "i=complex(v,0)/z01\n", + "i=abs(i)\n", + "cu_loss=i**2*z01.real\n", + "T=cu_loss*3/(2*math.pi*(n/60))\n", + "#result\n", + "print \"torque=\",T,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 135.560320318 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.28, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z1=complex(1,2.8)\n", + "zo=complex(3,1)\n", + "zi=complex(0.5,5)\n", + "v=440#V\n", + "s=0.04\n", + "\n", + "#calculations\n", + "#s=1\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "\n", + "print \"s=1:torque=\",t,\"synch. watt\"\n", + "\n", + "#s=0.04\n", + "zo=complex(3.0/s,1.0)\n", + "zi=complex(0.5/s,5.0)\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "print \"s=4:torque=\",t,\"synch. watt\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 12388.3258184 synch. watt\n", + "s=4:torque= 11489.1141244 synch. watt\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.29, Page Number:1351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "r=0.30#ohm\n", + "n1=1440.0#rpm\n", + "n2=1320.0#rpm\n", + "ns=120.0*f/4.0\n", + "#calculations\n", + "s1=(ns-n1)/ns\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.6 ohm\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.30, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "s=0.03\n", + "ratio=10.0\n", + "r=0.2\n", + "\n", + "#calculations\n", + "ns=120*f/6\n", + "s1=s\n", + "n1=ns*(1-s1)\n", + "n2=n1-10*n1/100\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.646666666667 ohm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.31, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f=50#Hz\n", + "s=0.02\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "n=(1-s)*nsc\n", + "nsa=120*f/6\n", + "sa=(nsa-n)/nsa\n", + "f_=sa*f\n", + "n_=(120*f_)/4\n", + "sb=(n_-n)/n_\n", + "f__=sb*f_\n", + "\n", + "#resu;t\n", + "print \"f_=\",f_,\"Hz\"\n", + "print \"f_ _=\",f__,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "f_= 20.6 Hz\n", + "f_ _= 1.0 Hz\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.32, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "f2=1.0#Hz\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "s=f2/f\n", + "n=nsc-s*nsc\n", + "nsa=120*f/4\n", + "sa=(nsa-n)/nsa\n", + "f1=sa*f\n", + "n2=120*f1/6\n", + "sb=(n2-n)/n2\n", + "\n", + "#result\n", + "print \"sa=\",sa*100,\"%\"\n", + "print \"sb=\",sb*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 60.8 %\n", + "sb= 3.28947368421 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.33, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=74.6#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 29.84 kW\n" + ] + } + ], + "prompt_number": 79 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.34, Page Number:1355" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=25#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 10 kW\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_2.ipynb new file mode 100644 index 00000000..1c89c3bd --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_2.ipynb @@ -0,0 +1,1220 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 35: Computations and Circle Diagrams" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.1, Page Number:1316" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=10#A\n", + "p=450#W\n", + "v=110#V\n", + "r=0.05#ohm\n", + "loss=135#w\n", + "\n", + "#calculations\n", + "cu_loss=3*i**2*r\n", + "core_loss=p-loss-cu_loss\n", + "volt=v/math.sqrt(3)\n", + "g=core_loss/(3*(v/math.sqrt(3))**2)\n", + "y=i*math.sqrt(3)/v\n", + "b=math.sqrt(y**2-g**2)\n", + "\n", + "#result\n", + "print \"exciting conductance=\",g,\"seimens/phase\"\n", + "print \"susceptance/phase=\",b,\"seimens/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "exciting conductance= 0.0247933884298 seimens/phase\n", + "susceptance/phase= 0.155494939853 seimens/phase\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.2, Page Number:1317" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=110.0#V\n", + "i=25.0#A\n", + "v2=30.0#V\n", + "inpt=440.0#W\n", + "loss=40.0#W\n", + "r=0.1#ohm\n", + "ratio=1.6\n", + "\n", + "#calculations\n", + "vs=v2/math.sqrt(3)\n", + "z01=vs/i\n", + "losses=inpt-loss\n", + "r01=losses/(3*i**2)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "dc_r=r/2.0\n", + "ac_r=dc_r*ratio\n", + "effective_r=r01-ac_r\n", + "\n", + "#result\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r1=\",ac_r,\"ohm\"\n", + "print \"r2=\",effective_r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "x01= 0.659157711696 ohm\n", + "r1= 0.08 ohm\n", + "r2= 0.133333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.10, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=1/4.0\n", + "slip=3.0\n", + "ratio2=4.0\n", + "\n", + "#calculations\n", + "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", + "\n", + "#result\n", + "print \"Percentage Tapping=\",K*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage Tapping= 72.1687836487 %\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.11, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=14.92#kW\n", + "v1=400#V\n", + "n=950#rpm\n", + "f=50.0#Hz\n", + "v2=400#V\n", + "ratio=1.8\n", + "i=30#A\n", + "\n", + "#calculations\n", + "v=v1/math.sqrt(ratio)\n", + "If=6*v*i/v1\n", + "K=v/v1\n", + "kisc=K**2*6*i\n", + "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", + "\n", + "#result\n", + "print \"a)voltage=\",v,\"V\"\n", + "print \"b)current=\",If,\"A\"\n", + "print \"c)line current=\",kisc,\"A\"\n", + "print \"d)percentage=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)voltage= 298.142397 V\n", + "b)current= 134.16407865 A\n", + "c)line current= 100.0 A\n", + "d)percentage= 30.0 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.12, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=5.0\n", + "per=5\n", + "\n", + "#calculations\n", + "k=math.sqrt(ratio/3)\n", + "tst_tf=(3.0/5)*5**2*0.01*per*100\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",tst_tf,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 75.0 %\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.13, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "per=3.5\n", + "v2=92.0#V\n", + "\n", + "#calculations\n", + "k=math.sqrt(2/(v/v2))\n", + "ts_tf=k**2*(v/v2)**2*0.01*per\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 30.4347826087 %\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.14, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=12.0#kW\n", + "v=440.0#V\n", + "efficiency=0.85\n", + "pf=0.8\n", + "i=45.0#A\n", + "v2=220.0#V\n", + "\n", + "#calculations\n", + "isc=i*v/v2\n", + "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", + "ist=isc/math.sqrt(3)\n", + "ratio=ist/if_\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 2.244\n" + ] + } + ], + "prompt_number": 34 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.15, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=60.0#A\n", + "n1=940.0#rpm\n", + "t=150.0#N-m\n", + "i2=300.0#A\n", + "\n", + "#calculations\n", + "sf=(1000-n1)/1000\n", + "tst=t*(i2/i)**2*sf\n", + "s_i=i2/3\n", + "sd_tst=tst/3\n", + "\n", + "#result\n", + "print \"Starting torque=\",tst,\"N-m\"\n", + "print\"when star/delta is used:\"\n", + "print \"starting current=\",s_i,\"A\"\n", + "print \"starting torque=\",sd_tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Starting torque= 225.0 N-m\n", + "when star/delta is used:\n", + "starting current= 100.0 A\n", + "starting torque= 75.0 N-m\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.16, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "tapping=70.7\n", + "ratio=6.0\n", + "slip=4.0\n", + "\n", + "#calculation\n", + "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", + "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", + "\n", + "#result\n", + "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", + "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "star-delta switch:starting torque= 48.0 %\n", + "auto-transformer switch:starting torque= 72.0 %\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.17, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=11.2#W\n", + "f=50.0#Hz\n", + "v=400.0#V\n", + "n=960.0#rpm\n", + "i=86.4#A\n", + "efficiency=0.88\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "isc=i/math.sqrt(3)\n", + "ist=isc/math.sqrt(3)\n", + "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", + "iph=il/math.sqrt(3)\n", + "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", + "\n", + "#result\n", + "print \"starting torque=\",tst_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting torque= 26.6369577796 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.18, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "output=10.0#kW\n", + "v=400.0#V\n", + "pf=0.85\n", + "efficiency=0.88\n", + "v2=200.0#V\n", + "i=40.0#A\n", + "\n", + "#calculations\n", + "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", + "isc=i*v/v2\n", + "iscp=isc/math.sqrt(3)\n", + "ist=iscp/math.sqrt(3)\n", + "ratio=ist/il\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 1.23388000387\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.19, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.73*1000#W\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "slip=4.5\n", + "t=250.0\n", + "i=650.0\n", + "tap=60.0\n", + "\n", + "#calculation\n", + "il=i/3\n", + "im=i/3\n", + "tst=t/3\n", + "ilm=(tap/100)**2*i\n", + "imk=(tap/100)*i\n", + "tstk=(tap/100)**2*t\n", + "\n", + "#result\n", + "print \"star/delta:\"\n", + "print \"line current=\",il,\"%\"\n", + "print \"motor current=\",im,\"%\"\n", + "print \"starting torque=\",tst,\"%\"\n", + "print \"60% taps:\"\n", + "print \"line current=\",ilm,\"%\"\n", + "print \"motor current=\",imk,\"%\"\n", + "print \"starting torque=\",tstk,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " star/delta:\n", + "line current= 216.666666667 %\n", + "motor current= 216.666666667 %\n", + "starting torque= 83.3333333333 %\n", + "60% taps:\n", + "line current= 234.0 %\n", + "motor current= 390.0 %\n", + "starting torque= 90.0 %\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.20, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=180.0\n", + "flt=35.0\n", + "tap=75.0\n", + "\n", + "#calculations\n", + "isc=load*3.0/100\n", + "isck=tap**2*isc/100\n", + "sf=flt*3\n", + "tst_tf=tap**2*sf/100\n", + "#result\n", + "print \"starting current=\",isck,\"%\"\n", + "print \"starting torque=\",tst_tf/100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 303.75 %\n", + "starting torque= 59.0625 %\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.21, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "w=7.46#kW\n", + "ic=1.7\n", + "t=35.0\n", + "ratio=60.0\n", + "\n", + "#calculations\n", + "sf=t*3/100\n", + "il1=ic*3\n", + "tst=(ratio/1000)**2*sf*10000\n", + "il2=(ratio/100)*3*ic\n", + "\n", + "#results\n", + "print \"auto-starter:\"\n", + "print \"line-current=\",il1,\"%\"\n", + "print \"torque=\",tst,\"%\"\n", + "print \"voltage decreased to 60%\"\n", + "print \"line-current\",il2,\"%\"\n", + "print \"torque=\",tst,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-starter:\n", + "line-current= 5.1 %\n", + "torque= 37.8 %\n", + "voltage decreased to 60%\n", + "line-current 3.06 %\n", + "torque= 37.8 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.22, Page Number:1342" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "slip=2.0\n", + "r=0.02#ohm\n", + "n=6.0\n", + "#calculations\n", + "smax=r2=slip/100.0\n", + "R1=r2/smax\n", + "K=math.pow(smax,1.0/5)\n", + "R2=K*R1\n", + "R3=K*R2\n", + "R4=K*R3\n", + "R5=K*R4\n", + "p1=R1-R2\n", + "p2=R2-R3\n", + "p3=R3-R4\n", + "p4=R4-R5\n", + "p5=R5-r2\n", + "\n", + "#result\n", + "print \"resistances of various starter sections:\"\n", + "print \"p1=\",p1,\"ohm\"\n", + "print \"p2=\",p2,\"ohm\"\n", + "print \"p3=\",p3,\"ohm\"\n", + "print \"p4=\",p4,\"ohm\"\n", + "print \"p5=\",p5,\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistances of various starter sections:\n", + "p1= 0.542694948073 ohm\n", + "p2= 0.248177141409 ohm\n", + "p3= 0.113492660539 ohm\n", + "p4= 0.0519007670213 ohm\n", + "p5= 0.0237344829577 ohm\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.23, Page Number:1345" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "primary=complex(1,3)\n", + "outer=complex(3,1)\n", + "inner=complex(0.6,5)\n", + "s=4\n", + "outer2=complex(3/(s*0.01),1)\n", + "inner2=complex(0.6/(s*0.01),5)\n", + "v=440#V\n", + "\n", + "\n", + "#calculations\n", + "#s=1\n", + "z01=primary+1/((1/outer)+(1/inner))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=1: torque=\",torque,\"synch watt\"\n", + "\n", + "#s=4\n", + "z01=primary+1/((1/outer2)+(1/inner2))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=4: torque=\",torque,\"synch watt\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1: torque= 35065.3642462 synch watt\n", + "s=4: torque= 32129.9449695 synch watt\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.24, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inner=complex(0.4,2)\n", + "outer=complex(2,0.4)\n", + "s=5\n", + "inner2=complex(0.4/(s*0.01),2)\n", + "outer2=complex(2/(s*0.01),0.4)\n", + "print \n", + "#calculations\n", + "#s=1\n", + "zi=abs(inner)\n", + "zo=abs(outer)\n", + "r_ratio=inner.imag/outer.imag\n", + "to_ti=r_ratio*(zo/zi)**2\n", + "print \"Ratio of torques when s=1:\",to_ti\n", + "\n", + "#s=5\n", + "zi=abs(inner2)\n", + "zo=abs(outer2)\n", + "print zi\n", + "r_ratio=inner2.imag/outer2.imag\n", + "to_ti=r_ratio*(zi/zo)**2\n", + "\n", + "print \"Ratio of torques when s=5:\",to_ti" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Ratio of torques when s=1: 5.0\n", + "8.24621125124\n", + "Ratio of torques when s=5: 0.212478752125\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.25, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s=5\n", + "zi=complex(0.05,0.4)\n", + "zo=complex(0.5,0.1)\n", + "v=100#V\n", + "\n", + "#calculations\n", + "#s=1\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=1:torque=\",t,\"synch watts\"\n", + "\n", + "#s=0.01\n", + "zi=complex(0.05/(s*0.01),0.4)\n", + "zo=complex(0.5/(s*0.01),0.1)\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=5:torque=\",t,\"synch watts\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 22307.6923077 synch watts\n", + "s=5:torque= 9620.58966517 synch watts\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.27, Page Number:1347" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "zo=complex(1,0)\n", + "zi=complex(0.15,3)\n", + "v=250#V\n", + "n=1000#rpm\n", + "\n", + "#calculations\n", + "z2=zo*zi/(zo+zi)\n", + "stator=complex(0.25,3.5)\n", + "z01=z2+stator\n", + "i=complex(v,0)/z01\n", + "i=abs(i)\n", + "cu_loss=i**2*z01.real\n", + "T=cu_loss*3/(2*math.pi*(n/60))\n", + "#result\n", + "print \"torque=\",T,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 135.560320318 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.28, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z1=complex(1,2.8)\n", + "zo=complex(3,1)\n", + "zi=complex(0.5,5)\n", + "v=440#V\n", + "s=0.04\n", + "\n", + "#calculations\n", + "#s=1\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "\n", + "print \"s=1:torque=\",t,\"synch. watt\"\n", + "\n", + "#s=0.04\n", + "zo=complex(3.0/s,1.0)\n", + "zi=complex(0.5/s,5.0)\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "print \"s=4:torque=\",t,\"synch. watt\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 12388.3258184 synch. watt\n", + "s=4:torque= 11489.1141244 synch. watt\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.29, Page Number:1351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "r=0.30#ohm\n", + "n1=1440.0#rpm\n", + "n2=1320.0#rpm\n", + "ns=120.0*f/4.0\n", + "#calculations\n", + "s1=(ns-n1)/ns\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.6 ohm\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.30, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "s=0.03\n", + "ratio=10.0\n", + "r=0.2\n", + "\n", + "#calculations\n", + "ns=120*f/6\n", + "s1=s\n", + "n1=ns*(1-s1)\n", + "n2=n1-10*n1/100\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.646666666667 ohm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.31, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f=50#Hz\n", + "s=0.02\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "n=(1-s)*nsc\n", + "nsa=120*f/6\n", + "sa=(nsa-n)/nsa\n", + "f_=sa*f\n", + "n_=(120*f_)/4\n", + "sb=(n_-n)/n_\n", + "f__=sb*f_\n", + "\n", + "#resu;t\n", + "print \"f_=\",f_,\"Hz\"\n", + "print \"f_ _=\",f__,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "f_= 20.6 Hz\n", + "f_ _= 1.0 Hz\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.32, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "f2=1.0#Hz\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "s=f2/f\n", + "n=nsc-s*nsc\n", + "nsa=120*f/4\n", + "sa=(nsa-n)/nsa\n", + "f1=sa*f\n", + "n2=120*f1/6\n", + "sb=(n2-n)/n2\n", + "\n", + "#result\n", + "print \"sa=\",sa*100,\"%\"\n", + "print \"sb=\",sb*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 60.8 %\n", + "sb= 3.28947368421 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.33, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=74.6#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 29.84 kW\n" + ] + } + ], + "prompt_number": 79 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.34, Page Number:1355" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=25#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 10 kW\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_3.ipynb new file mode 100644 index 00000000..1c89c3bd --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter35_3.ipynb @@ -0,0 +1,1220 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:87ef53401e46d15eef2e50d8ed392f8c9e3784abe371e55cb0923dbffffe7b33" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 35: Computations and Circle Diagrams" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.1, Page Number:1316" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=10#A\n", + "p=450#W\n", + "v=110#V\n", + "r=0.05#ohm\n", + "loss=135#w\n", + "\n", + "#calculations\n", + "cu_loss=3*i**2*r\n", + "core_loss=p-loss-cu_loss\n", + "volt=v/math.sqrt(3)\n", + "g=core_loss/(3*(v/math.sqrt(3))**2)\n", + "y=i*math.sqrt(3)/v\n", + "b=math.sqrt(y**2-g**2)\n", + "\n", + "#result\n", + "print \"exciting conductance=\",g,\"seimens/phase\"\n", + "print \"susceptance/phase=\",b,\"seimens/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "exciting conductance= 0.0247933884298 seimens/phase\n", + "susceptance/phase= 0.155494939853 seimens/phase\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.2, Page Number:1317" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=110.0#V\n", + "i=25.0#A\n", + "v2=30.0#V\n", + "inpt=440.0#W\n", + "loss=40.0#W\n", + "r=0.1#ohm\n", + "ratio=1.6\n", + "\n", + "#calculations\n", + "vs=v2/math.sqrt(3)\n", + "z01=vs/i\n", + "losses=inpt-loss\n", + "r01=losses/(3*i**2)\n", + "x01=math.sqrt(z01**2-r01**2)\n", + "dc_r=r/2.0\n", + "ac_r=dc_r*ratio\n", + "effective_r=r01-ac_r\n", + "\n", + "#result\n", + "print \"x01=\",x01,\"ohm\"\n", + "print \"r1=\",ac_r,\"ohm\"\n", + "print \"r2=\",effective_r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "x01= 0.659157711696 ohm\n", + "r1= 0.08 ohm\n", + "r2= 0.133333333333 ohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.10, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=1/4.0\n", + "slip=3.0\n", + "ratio2=4.0\n", + "\n", + "#calculations\n", + "K=math.sqrt(ratio/((ratio2**2)*0.01*slip))\n", + "\n", + "#result\n", + "print \"Percentage Tapping=\",K*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Percentage Tapping= 72.1687836487 %\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.11, Page Number:1333" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=14.92#kW\n", + "v1=400#V\n", + "n=950#rpm\n", + "f=50.0#Hz\n", + "v2=400#V\n", + "ratio=1.8\n", + "i=30#A\n", + "\n", + "#calculations\n", + "v=v1/math.sqrt(ratio)\n", + "If=6*v*i/v1\n", + "K=v/v1\n", + "kisc=K**2*6*i\n", + "ts_tf=(1/6.0)*6**2*(f/1000.0)\n", + "\n", + "#result\n", + "print \"a)voltage=\",v,\"V\"\n", + "print \"b)current=\",If,\"A\"\n", + "print \"c)line current=\",kisc,\"A\"\n", + "print \"d)percentage=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)voltage= 298.142397 V\n", + "b)current= 134.16407865 A\n", + "c)line current= 100.0 A\n", + "d)percentage= 30.0 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.12, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "ratio=5.0\n", + "per=5\n", + "\n", + "#calculations\n", + "k=math.sqrt(ratio/3)\n", + "tst_tf=(3.0/5)*5**2*0.01*per*100\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",tst_tf,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 75.0 %\n" + ] + } + ], + "prompt_number": 29 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.13, Page Number:1334" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V\n", + "per=3.5\n", + "v2=92.0#V\n", + "\n", + "#calculations\n", + "k=math.sqrt(2/(v/v2))\n", + "ts_tf=k**2*(v/v2)**2*0.01*per\n", + "\n", + "#result\n", + "print \"auto-transformation ratio=\",ts_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-transformation ratio= 30.4347826087 %\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.14, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=12.0#kW\n", + "v=440.0#V\n", + "efficiency=0.85\n", + "pf=0.8\n", + "i=45.0#A\n", + "v2=220.0#V\n", + "\n", + "#calculations\n", + "isc=i*v/v2\n", + "if_=load*1000/(efficiency*math.sqrt(3)*pf*v)\n", + "ist=isc/math.sqrt(3)\n", + "ratio=ist/if_\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 2.244\n" + ] + } + ], + "prompt_number": 34 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.15, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i=60.0#A\n", + "n1=940.0#rpm\n", + "t=150.0#N-m\n", + "i2=300.0#A\n", + "\n", + "#calculations\n", + "sf=(1000-n1)/1000\n", + "tst=t*(i2/i)**2*sf\n", + "s_i=i2/3\n", + "sd_tst=tst/3\n", + "\n", + "#result\n", + "print \"Starting torque=\",tst,\"N-m\"\n", + "print\"when star/delta is used:\"\n", + "print \"starting current=\",s_i,\"A\"\n", + "print \"starting torque=\",sd_tst,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Starting torque= 225.0 N-m\n", + "when star/delta is used:\n", + "starting current= 100.0 A\n", + "starting torque= 75.0 N-m\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.16, Page Number:1336" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "tapping=70.7\n", + "ratio=6.0\n", + "slip=4.0\n", + "\n", + "#calculation\n", + "tst_tf=(1.0/3.0)*ratio**2.0*slip*0.01\n", + "tst_tf2=(1.0/2)*ratio**2.0*slip*0.01\n", + "\n", + "#result\n", + "print \"star-delta switch:starting torque=\",tst_tf*100,\"%\"\n", + "print \"auto-transformer switch:starting torque=\",tst_tf2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "star-delta switch:starting torque= 48.0 %\n", + "auto-transformer switch:starting torque= 72.0 %\n" + ] + } + ], + "prompt_number": 48 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.17, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=11.2#W\n", + "f=50.0#Hz\n", + "v=400.0#V\n", + "n=960.0#rpm\n", + "i=86.4#A\n", + "efficiency=0.88\n", + "pf=0.85\n", + "\n", + "#calculations\n", + "isc=i/math.sqrt(3)\n", + "ist=isc/math.sqrt(3)\n", + "il=load*1000/(efficiency*pf*math.sqrt(3)*v)\n", + "iph=il/math.sqrt(3)\n", + "tst_tf=(ist*math.sqrt(3)/il)**2*0.05\n", + "\n", + "#result\n", + "print \"starting torque=\",tst_tf*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting torque= 26.6369577796 %\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.18, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "output=10.0#kW\n", + "v=400.0#V\n", + "pf=0.85\n", + "efficiency=0.88\n", + "v2=200.0#V\n", + "i=40.0#A\n", + "\n", + "#calculations\n", + "il=load*1000/(efficiency*math.sqrt(3)*v*pf)\n", + "isc=i*v/v2\n", + "iscp=isc/math.sqrt(3)\n", + "ist=iscp/math.sqrt(3)\n", + "ratio=ist/il\n", + "\n", + "#result\n", + "print \"ratio=\",ratio" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "ratio= 1.23388000387\n" + ] + } + ], + "prompt_number": 53 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.19, Page Number:1337" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.73*1000#W\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "slip=4.5\n", + "t=250.0\n", + "i=650.0\n", + "tap=60.0\n", + "\n", + "#calculation\n", + "il=i/3\n", + "im=i/3\n", + "tst=t/3\n", + "ilm=(tap/100)**2*i\n", + "imk=(tap/100)*i\n", + "tstk=(tap/100)**2*t\n", + "\n", + "#result\n", + "print \"star/delta:\"\n", + "print \"line current=\",il,\"%\"\n", + "print \"motor current=\",im,\"%\"\n", + "print \"starting torque=\",tst,\"%\"\n", + "print \"60% taps:\"\n", + "print \"line current=\",ilm,\"%\"\n", + "print \"motor current=\",imk,\"%\"\n", + "print \"starting torque=\",tstk,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " star/delta:\n", + "line current= 216.666666667 %\n", + "motor current= 216.666666667 %\n", + "starting torque= 83.3333333333 %\n", + "60% taps:\n", + "line current= 234.0 %\n", + "motor current= 390.0 %\n", + "starting torque= 90.0 %\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.20, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=180.0\n", + "flt=35.0\n", + "tap=75.0\n", + "\n", + "#calculations\n", + "isc=load*3.0/100\n", + "isck=tap**2*isc/100\n", + "sf=flt*3\n", + "tst_tf=tap**2*sf/100\n", + "#result\n", + "print \"starting current=\",isck,\"%\"\n", + "print \"starting torque=\",tst_tf/100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "starting current= 303.75 %\n", + "starting torque= 59.0625 %\n" + ] + } + ], + "prompt_number": 68 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.21, Page Number:1338" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "w=7.46#kW\n", + "ic=1.7\n", + "t=35.0\n", + "ratio=60.0\n", + "\n", + "#calculations\n", + "sf=t*3/100\n", + "il1=ic*3\n", + "tst=(ratio/1000)**2*sf*10000\n", + "il2=(ratio/100)*3*ic\n", + "\n", + "#results\n", + "print \"auto-starter:\"\n", + "print \"line-current=\",il1,\"%\"\n", + "print \"torque=\",tst,\"%\"\n", + "print \"voltage decreased to 60%\"\n", + "print \"line-current\",il2,\"%\"\n", + "print \"torque=\",tst,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "auto-starter:\n", + "line-current= 5.1 %\n", + "torque= 37.8 %\n", + "voltage decreased to 60%\n", + "line-current 3.06 %\n", + "torque= 37.8 %\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.22, Page Number:1342" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "slip=2.0\n", + "r=0.02#ohm\n", + "n=6.0\n", + "#calculations\n", + "smax=r2=slip/100.0\n", + "R1=r2/smax\n", + "K=math.pow(smax,1.0/5)\n", + "R2=K*R1\n", + "R3=K*R2\n", + "R4=K*R3\n", + "R5=K*R4\n", + "p1=R1-R2\n", + "p2=R2-R3\n", + "p3=R3-R4\n", + "p4=R4-R5\n", + "p5=R5-r2\n", + "\n", + "#result\n", + "print \"resistances of various starter sections:\"\n", + "print \"p1=\",p1,\"ohm\"\n", + "print \"p2=\",p2,\"ohm\"\n", + "print \"p3=\",p3,\"ohm\"\n", + "print \"p4=\",p4,\"ohm\"\n", + "print \"p5=\",p5,\"ohm\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resistances of various starter sections:\n", + "p1= 0.542694948073 ohm\n", + "p2= 0.248177141409 ohm\n", + "p3= 0.113492660539 ohm\n", + "p4= 0.0519007670213 ohm\n", + "p5= 0.0237344829577 ohm\n" + ] + } + ], + "prompt_number": 107 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.23, Page Number:1345" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "primary=complex(1,3)\n", + "outer=complex(3,1)\n", + "inner=complex(0.6,5)\n", + "s=4\n", + "outer2=complex(3/(s*0.01),1)\n", + "inner2=complex(0.6/(s*0.01),5)\n", + "v=440#V\n", + "\n", + "\n", + "#calculations\n", + "#s=1\n", + "z01=primary+1/((1/outer)+(1/inner))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=1: torque=\",torque,\"synch watt\"\n", + "\n", + "#s=4\n", + "z01=primary+1/((1/outer2)+(1/inner2))\n", + "current_per_phase=v/abs(z01)\n", + "torque=3*current_per_phase**2*(z01.real-1)\n", + "\n", + "print \"s=4: torque=\",torque,\"synch watt\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1: torque= 35065.3642462 synch watt\n", + "s=4: torque= 32129.9449695 synch watt\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.24, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inner=complex(0.4,2)\n", + "outer=complex(2,0.4)\n", + "s=5\n", + "inner2=complex(0.4/(s*0.01),2)\n", + "outer2=complex(2/(s*0.01),0.4)\n", + "print \n", + "#calculations\n", + "#s=1\n", + "zi=abs(inner)\n", + "zo=abs(outer)\n", + "r_ratio=inner.imag/outer.imag\n", + "to_ti=r_ratio*(zo/zi)**2\n", + "print \"Ratio of torques when s=1:\",to_ti\n", + "\n", + "#s=5\n", + "zi=abs(inner2)\n", + "zo=abs(outer2)\n", + "print zi\n", + "r_ratio=inner2.imag/outer2.imag\n", + "to_ti=r_ratio*(zi/zo)**2\n", + "\n", + "print \"Ratio of torques when s=5:\",to_ti" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Ratio of torques when s=1: 5.0\n", + "8.24621125124\n", + "Ratio of torques when s=5: 0.212478752125\n" + ] + } + ], + "prompt_number": 37 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.25, Page Number:1346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s=5\n", + "zi=complex(0.05,0.4)\n", + "zo=complex(0.5,0.1)\n", + "v=100#V\n", + "\n", + "#calculations\n", + "#s=1\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=1:torque=\",t,\"synch watts\"\n", + "\n", + "#s=0.01\n", + "zi=complex(0.05/(s*0.01),0.4)\n", + "zo=complex(0.5/(s*0.01),0.1)\n", + "z=zo*zi/(zo+zi)\n", + "r2=z.real\n", + "z=abs(z)\n", + "i2=v/z\n", + "t=i2**2*r2\n", + "print \"s=5:torque=\",t,\"synch watts\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 22307.6923077 synch watts\n", + "s=5:torque= 9620.58966517 synch watts\n" + ] + } + ], + "prompt_number": 43 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.27, Page Number:1347" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "zo=complex(1,0)\n", + "zi=complex(0.15,3)\n", + "v=250#V\n", + "n=1000#rpm\n", + "\n", + "#calculations\n", + "z2=zo*zi/(zo+zi)\n", + "stator=complex(0.25,3.5)\n", + "z01=z2+stator\n", + "i=complex(v,0)/z01\n", + "i=abs(i)\n", + "cu_loss=i**2*z01.real\n", + "T=cu_loss*3/(2*math.pi*(n/60))\n", + "#result\n", + "print \"torque=\",T,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 135.560320318 N-m\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.28, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z1=complex(1,2.8)\n", + "zo=complex(3,1)\n", + "zi=complex(0.5,5)\n", + "v=440#V\n", + "s=0.04\n", + "\n", + "#calculations\n", + "#s=1\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "\n", + "print \"s=1:torque=\",t,\"synch. watt\"\n", + "\n", + "#s=0.04\n", + "zo=complex(3.0/s,1.0)\n", + "zi=complex(0.5/s,5.0)\n", + "z2=zo*zi/(zo+zi)\n", + "z01=z1+z2\n", + "i2=v/z01\n", + "r2=z2.real\n", + "t=abs(i2)**2*r2\n", + "print \"s=4:torque=\",t,\"synch. watt\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "s=1:torque= 12388.3258184 synch. watt\n", + "s=4:torque= 11489.1141244 synch. watt\n" + ] + } + ], + "prompt_number": 58 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.29, Page Number:1351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "r=0.30#ohm\n", + "n1=1440.0#rpm\n", + "n2=1320.0#rpm\n", + "ns=120.0*f/4.0\n", + "#calculations\n", + "s1=(ns-n1)/ns\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.6 ohm\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.30, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "s=0.03\n", + "ratio=10.0\n", + "r=0.2\n", + "\n", + "#calculations\n", + "ns=120*f/6\n", + "s1=s\n", + "n1=ns*(1-s1)\n", + "n2=n1-10*n1/100\n", + "s2=(ns-n2)/ns\n", + "r=s2*r/s1-r\n", + "\n", + "#result\n", + "print \"external resistance=\",r,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "external resistance= 0.646666666667 ohm\n" + ] + } + ], + "prompt_number": 61 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.31, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Variable declaration\n", + "f=50#Hz\n", + "s=0.02\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "n=(1-s)*nsc\n", + "nsa=120*f/6\n", + "sa=(nsa-n)/nsa\n", + "f_=sa*f\n", + "n_=(120*f_)/4\n", + "sb=(n_-n)/n_\n", + "f__=sb*f_\n", + "\n", + "#resu;t\n", + "print \"f_=\",f_,\"Hz\"\n", + "print \"f_ _=\",f__,\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "f_= 20.6 Hz\n", + "f_ _= 1.0 Hz\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.32, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "f2=1.0#Hz\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "s=f2/f\n", + "n=nsc-s*nsc\n", + "nsa=120*f/4\n", + "sa=(nsa-n)/nsa\n", + "f1=sa*f\n", + "n2=120*f1/6\n", + "sb=(n2-n)/n2\n", + "\n", + "#result\n", + "print \"sa=\",sa*100,\"%\"\n", + "print \"sb=\",sb*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sa= 60.8 %\n", + "sb= 3.28947368421 %\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.33, Page Number:1354" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=74.6#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 29.84 kW\n" + ] + } + ], + "prompt_number": 79 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 35.34, Page Number:1355" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "load=25#kW\n", + "\n", + "#calculations\n", + "nsc=120*f/10\n", + "output=load*4/10\n", + "\n", + "#result\n", + "print \"speed of set=\",nsc,\"rpm\"\n", + "print \"electric power transferred=\",output,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "speed of set= 600 rpm\n", + "electric power transferred= 10 kW\n" + ] + } + ], + "prompt_number": 78 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb new file mode 100644 index 00000000..a28f10ba --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb @@ -0,0 +1,393 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 36: Single-Phase Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.1, Page Number:1374" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "R1=1.86\n", + "X1=2.56\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "v=110\n", + "f=60\n", + "s=0.05\n", + "\n", + "#calculations\n", + "xo=xm+x2\n", + "\n", + "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "Jf=math.degrees(math.atan(jf/zf))\n", + "\n", + "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", + "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", + "Jb=math.degrees(math.atan(jb/zb))\n", + "\n", + "Z1=R1\n", + "J1=X1\n", + "z01=Z1+zf+zb\n", + "j01=jf+jb+J1\n", + "J01=math.degrees(math.atan(j01/z01))\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zb\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "output=t*(1-s)\n", + "\n", + "#result\n", + "print \"output = \",output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output = 206.798750547\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 36.2, Page Number:1375" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "p=185\n", + "v=110\n", + "f=50\n", + "s=0.05\n", + "R1=1.86\n", + "X1=2.56\n", + "Xo=53.5\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "cl=3.5#core loss\n", + "fl=13.5#friction loss\n", + "vf=(82.5/100)*v\n", + "ic=(cl*100)/vf\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "rc=vf/ic\n", + "\n", + "#calculations\n", + "\n", + "#motor 1\n", + "c=1/rc #conductance of corebranch\n", + "s=-(1/xm)#susceptance\n", + "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", + "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", + "yf=c+a1\n", + "yfj=s+a1j\n", + "zf=(yf*yf)+(yfj*yfj)\n", + "zfr=yf/zf\n", + "zfj=yfj/zf\n", + "\n", + "#motor 2\n", + "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "Z1=R1\n", + "J1=X1\n", + "yb=yf+a2\n", + "ybj=yfj+a2j\n", + "zb1=(yb*yb)+(ybj*ybj)\n", + "zbr=yb/zb1\n", + "zbj=ybj/zb1\n", + "z01=Z1+zf+zbr\n", + "z01j=J1+zfj+zbj\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zbr\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "watt=t*(1-s)\n", + "net_output=watt-fl\n", + "\n", + "#result\n", + "print \"Net output = \",net_output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net output = -446.423232085\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.3, Page Number:1376" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "w=250\n", + "v=230\n", + "f=50\n", + "zm=4.5\n", + "zmj=3.7\n", + "za=9.5\n", + "zaj=3.5\n", + "\n", + "#calculations\n", + "zma=math.degrees(math.atan(zmj/zm))\n", + "ialeadv=90-zma\n", + "x=za*(math.tan(math.radians(ialeadv)))\n", + "xc=x+zaj\n", + "c=1000000/(xc*2*50*3.14)\n", + "\n", + "#result\n", + "print \"C= \",c,\" uf\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C= 211.551875951 uf\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.4, Page Number:1393" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "\n", + "p=250\n", + "f=50\n", + "v=220\n", + "ndc=2000\n", + "ia=1\n", + "ra=20\n", + "la=0.4\n", + "\n", + "#calculations\n", + "ebdc=v-(ia*ra)\n", + "#ac\n", + "xa=2*3.14*f*la\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "nac=(ebac*ndc)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "pmech=ebac*ia\n", + "T=(pmech*9.55)/nac\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Torque= \",T,\" N-m\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1606.22922133 rpm\n", + "Torque= 0.955 N-m\n", + "Power Factor= 0.821013282424 lag\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Example Number 36.5, Page Number:1394" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "r=30\n", + "l=0.5\n", + "v=250\n", + "idc=0.8\n", + "ndc=2000\n", + "f=50\n", + "ia=0.8\n", + "\n", + "#calculations\n", + "\n", + "xa=2*3.14*f*l\n", + "ra=r\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "ebdc=v-(r*idc)\n", + "nac=(ndc*ebac)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1700.52062383 rpm\n", + "Power Factor= 0.864635321971 lag\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.6, Page Number:1396" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "f=50\n", + "a=30\n", + "w=8\n", + "v=220\n", + "v2=205\n", + "pole=4\n", + "\n", + "#calculations\n", + "\n", + "ns=(120*f)/pole\n", + "tsh=(9.55*w*1000)/ns\n", + "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", + "\n", + "#result\n", + "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_1.ipynb new file mode 100644 index 00000000..a28f10ba --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_1.ipynb @@ -0,0 +1,393 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 36: Single-Phase Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.1, Page Number:1374" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "R1=1.86\n", + "X1=2.56\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "v=110\n", + "f=60\n", + "s=0.05\n", + "\n", + "#calculations\n", + "xo=xm+x2\n", + "\n", + "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "Jf=math.degrees(math.atan(jf/zf))\n", + "\n", + "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", + "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", + "Jb=math.degrees(math.atan(jb/zb))\n", + "\n", + "Z1=R1\n", + "J1=X1\n", + "z01=Z1+zf+zb\n", + "j01=jf+jb+J1\n", + "J01=math.degrees(math.atan(j01/z01))\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zb\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "output=t*(1-s)\n", + "\n", + "#result\n", + "print \"output = \",output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output = 206.798750547\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 36.2, Page Number:1375" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "p=185\n", + "v=110\n", + "f=50\n", + "s=0.05\n", + "R1=1.86\n", + "X1=2.56\n", + "Xo=53.5\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "cl=3.5#core loss\n", + "fl=13.5#friction loss\n", + "vf=(82.5/100)*v\n", + "ic=(cl*100)/vf\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "rc=vf/ic\n", + "\n", + "#calculations\n", + "\n", + "#motor 1\n", + "c=1/rc #conductance of corebranch\n", + "s=-(1/xm)#susceptance\n", + "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", + "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", + "yf=c+a1\n", + "yfj=s+a1j\n", + "zf=(yf*yf)+(yfj*yfj)\n", + "zfr=yf/zf\n", + "zfj=yfj/zf\n", + "\n", + "#motor 2\n", + "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "Z1=R1\n", + "J1=X1\n", + "yb=yf+a2\n", + "ybj=yfj+a2j\n", + "zb1=(yb*yb)+(ybj*ybj)\n", + "zbr=yb/zb1\n", + "zbj=ybj/zb1\n", + "z01=Z1+zf+zbr\n", + "z01j=J1+zfj+zbj\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zbr\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "watt=t*(1-s)\n", + "net_output=watt-fl\n", + "\n", + "#result\n", + "print \"Net output = \",net_output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net output = -446.423232085\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.3, Page Number:1376" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "w=250\n", + "v=230\n", + "f=50\n", + "zm=4.5\n", + "zmj=3.7\n", + "za=9.5\n", + "zaj=3.5\n", + "\n", + "#calculations\n", + "zma=math.degrees(math.atan(zmj/zm))\n", + "ialeadv=90-zma\n", + "x=za*(math.tan(math.radians(ialeadv)))\n", + "xc=x+zaj\n", + "c=1000000/(xc*2*50*3.14)\n", + "\n", + "#result\n", + "print \"C= \",c,\" uf\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C= 211.551875951 uf\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.4, Page Number:1393" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "\n", + "p=250\n", + "f=50\n", + "v=220\n", + "ndc=2000\n", + "ia=1\n", + "ra=20\n", + "la=0.4\n", + "\n", + "#calculations\n", + "ebdc=v-(ia*ra)\n", + "#ac\n", + "xa=2*3.14*f*la\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "nac=(ebac*ndc)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "pmech=ebac*ia\n", + "T=(pmech*9.55)/nac\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Torque= \",T,\" N-m\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1606.22922133 rpm\n", + "Torque= 0.955 N-m\n", + "Power Factor= 0.821013282424 lag\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Example Number 36.5, Page Number:1394" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "r=30\n", + "l=0.5\n", + "v=250\n", + "idc=0.8\n", + "ndc=2000\n", + "f=50\n", + "ia=0.8\n", + "\n", + "#calculations\n", + "\n", + "xa=2*3.14*f*l\n", + "ra=r\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "ebdc=v-(r*idc)\n", + "nac=(ndc*ebac)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1700.52062383 rpm\n", + "Power Factor= 0.864635321971 lag\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.6, Page Number:1396" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "f=50\n", + "a=30\n", + "w=8\n", + "v=220\n", + "v2=205\n", + "pole=4\n", + "\n", + "#calculations\n", + "\n", + "ns=(120*f)/pole\n", + "tsh=(9.55*w*1000)/ns\n", + "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", + "\n", + "#result\n", + "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_2.ipynb new file mode 100644 index 00000000..a28f10ba --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_2.ipynb @@ -0,0 +1,393 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 36: Single-Phase Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.1, Page Number:1374" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "R1=1.86\n", + "X1=2.56\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "v=110\n", + "f=60\n", + "s=0.05\n", + "\n", + "#calculations\n", + "xo=xm+x2\n", + "\n", + "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "Jf=math.degrees(math.atan(jf/zf))\n", + "\n", + "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", + "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", + "Jb=math.degrees(math.atan(jb/zb))\n", + "\n", + "Z1=R1\n", + "J1=X1\n", + "z01=Z1+zf+zb\n", + "j01=jf+jb+J1\n", + "J01=math.degrees(math.atan(j01/z01))\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zb\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "output=t*(1-s)\n", + "\n", + "#result\n", + "print \"output = \",output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output = 206.798750547\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 36.2, Page Number:1375" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "p=185\n", + "v=110\n", + "f=50\n", + "s=0.05\n", + "R1=1.86\n", + "X1=2.56\n", + "Xo=53.5\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "cl=3.5#core loss\n", + "fl=13.5#friction loss\n", + "vf=(82.5/100)*v\n", + "ic=(cl*100)/vf\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "rc=vf/ic\n", + "\n", + "#calculations\n", + "\n", + "#motor 1\n", + "c=1/rc #conductance of corebranch\n", + "s=-(1/xm)#susceptance\n", + "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", + "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", + "yf=c+a1\n", + "yfj=s+a1j\n", + "zf=(yf*yf)+(yfj*yfj)\n", + "zfr=yf/zf\n", + "zfj=yfj/zf\n", + "\n", + "#motor 2\n", + "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "Z1=R1\n", + "J1=X1\n", + "yb=yf+a2\n", + "ybj=yfj+a2j\n", + "zb1=(yb*yb)+(ybj*ybj)\n", + "zbr=yb/zb1\n", + "zbj=ybj/zb1\n", + "z01=Z1+zf+zbr\n", + "z01j=J1+zfj+zbj\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zbr\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "watt=t*(1-s)\n", + "net_output=watt-fl\n", + "\n", + "#result\n", + "print \"Net output = \",net_output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net output = -446.423232085\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.3, Page Number:1376" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "w=250\n", + "v=230\n", + "f=50\n", + "zm=4.5\n", + "zmj=3.7\n", + "za=9.5\n", + "zaj=3.5\n", + "\n", + "#calculations\n", + "zma=math.degrees(math.atan(zmj/zm))\n", + "ialeadv=90-zma\n", + "x=za*(math.tan(math.radians(ialeadv)))\n", + "xc=x+zaj\n", + "c=1000000/(xc*2*50*3.14)\n", + "\n", + "#result\n", + "print \"C= \",c,\" uf\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C= 211.551875951 uf\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.4, Page Number:1393" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "\n", + "p=250\n", + "f=50\n", + "v=220\n", + "ndc=2000\n", + "ia=1\n", + "ra=20\n", + "la=0.4\n", + "\n", + "#calculations\n", + "ebdc=v-(ia*ra)\n", + "#ac\n", + "xa=2*3.14*f*la\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "nac=(ebac*ndc)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "pmech=ebac*ia\n", + "T=(pmech*9.55)/nac\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Torque= \",T,\" N-m\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1606.22922133 rpm\n", + "Torque= 0.955 N-m\n", + "Power Factor= 0.821013282424 lag\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Example Number 36.5, Page Number:1394" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "r=30\n", + "l=0.5\n", + "v=250\n", + "idc=0.8\n", + "ndc=2000\n", + "f=50\n", + "ia=0.8\n", + "\n", + "#calculations\n", + "\n", + "xa=2*3.14*f*l\n", + "ra=r\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "ebdc=v-(r*idc)\n", + "nac=(ndc*ebac)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1700.52062383 rpm\n", + "Power Factor= 0.864635321971 lag\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.6, Page Number:1396" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "f=50\n", + "a=30\n", + "w=8\n", + "v=220\n", + "v2=205\n", + "pole=4\n", + "\n", + "#calculations\n", + "\n", + "ns=(120*f)/pole\n", + "tsh=(9.55*w*1000)/ns\n", + "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", + "\n", + "#result\n", + "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_3.ipynb new file mode 100644 index 00000000..a28f10ba --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter36_3.ipynb @@ -0,0 +1,393 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a362cd0373fe77cde513a2a109a4d7c05a5dbd87d086b1227fbc532438b6bbb6" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 36: Single-Phase Motors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.1, Page Number:1374" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "R1=1.86\n", + "X1=2.56\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "v=110\n", + "f=60\n", + "s=0.05\n", + "\n", + "#calculations\n", + "xo=xm+x2\n", + "\n", + "zf=(((r2/s)*xm)/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "jf=(((r2/s)*(r2/s)+(x2*xo))/(((r2/s)*(r2/s))+(xo*xo)))*xm\n", + "Jf=math.degrees(math.atan(jf/zf))\n", + "\n", + "zb=(((r2/(2-s))*xm)/(((r2/s)*(r2/(2-s)))+(xo*xo)))*xm\n", + "jb=(((r2/(2-s))*(r2/(2-s))+(x2*xo))/(((r2/(2-s))*(r2/(2-s)))+(xo*xo)))*xm\n", + "Jb=math.degrees(math.atan(jb/zb))\n", + "\n", + "Z1=R1\n", + "J1=X1\n", + "z01=Z1+zf+zb\n", + "j01=jf+jb+J1\n", + "J01=math.degrees(math.atan(j01/z01))\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zb\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "output=t*(1-s)\n", + "\n", + "#result\n", + "print \"output = \",output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output = 206.798750547\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example Number 36.2, Page Number:1375" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "p=185\n", + "v=110\n", + "f=50\n", + "s=0.05\n", + "R1=1.86\n", + "X1=2.56\n", + "Xo=53.5\n", + "R2=3.56\n", + "X2=2.56\n", + "Xm=53.5\n", + "cl=3.5#core loss\n", + "fl=13.5#friction loss\n", + "vf=(82.5/100)*v\n", + "ic=(cl*100)/vf\n", + "r1=R1/2\n", + "x1=X1/2\n", + "r2=R2/2\n", + "x2=X2/2\n", + "xm=Xm/2\n", + "rc=vf/ic\n", + "\n", + "#calculations\n", + "\n", + "#motor 1\n", + "c=1/rc #conductance of corebranch\n", + "s=-(1/xm)#susceptance\n", + "a1=(r2/s)/(((r2/s)*r2/s)+(x2*x2))#admittance\n", + "a1j=-x2/(((r2/s)*r2/s)+(x2*x2))#admittance j\n", + "yf=c+a1\n", + "yfj=s+a1j\n", + "zf=(yf*yf)+(yfj*yfj)\n", + "zfr=yf/zf\n", + "zfj=yfj/zf\n", + "\n", + "#motor 2\n", + "a2=(r2/2-s)/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "a2j=-x2/(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "Z1=R1\n", + "J1=X1\n", + "yb=yf+a2\n", + "ybj=yfj+a2j\n", + "zb1=(yb*yb)+(ybj*ybj)\n", + "zbr=yb/zb1\n", + "zbj=ybj/zb1\n", + "z01=Z1+zf+zbr\n", + "z01j=J1+zfj+zbj\n", + "\n", + "i1=v/z01\n", + "vf=i1*zf\n", + "vb=i1*zbr\n", + "z3=math.sqrt(((r2/s)*(r2/s))+(x2*x2))\n", + "z5=math.sqrt(((r2/(2-s))*(r2/(2-s)))+(x2*x2))\n", + "\n", + "i3=vf/z3\n", + "i5=vb/z5\n", + "tf=(i3*i3*r2)/s\n", + "tb=t5=(i5*i5*r2)/(2-s)\n", + "t=tf-tb\n", + "watt=t*(1-s)\n", + "net_output=watt-fl\n", + "\n", + "#result\n", + "print \"Net output = \",net_output" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Net output = -446.423232085\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.3, Page Number:1376" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "w=250\n", + "v=230\n", + "f=50\n", + "zm=4.5\n", + "zmj=3.7\n", + "za=9.5\n", + "zaj=3.5\n", + "\n", + "#calculations\n", + "zma=math.degrees(math.atan(zmj/zm))\n", + "ialeadv=90-zma\n", + "x=za*(math.tan(math.radians(ialeadv)))\n", + "xc=x+zaj\n", + "c=1000000/(xc*2*50*3.14)\n", + "\n", + "#result\n", + "print \"C= \",c,\" uf\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "C= 211.551875951 uf\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.4, Page Number:1393" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "#variable declaration\n", + "\n", + "p=250\n", + "f=50\n", + "v=220\n", + "ndc=2000\n", + "ia=1\n", + "ra=20\n", + "la=0.4\n", + "\n", + "#calculations\n", + "ebdc=v-(ia*ra)\n", + "#ac\n", + "xa=2*3.14*f*la\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "nac=(ebac*ndc)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "pmech=ebac*ia\n", + "T=(pmech*9.55)/nac\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Torque= \",T,\" N-m\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1606.22922133 rpm\n", + "Torque= 0.955 N-m\n", + "Power Factor= 0.821013282424 lag\n" + ] + } + ], + "prompt_number": 30 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Example Number 36.5, Page Number:1394" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "r=30\n", + "l=0.5\n", + "v=250\n", + "idc=0.8\n", + "ndc=2000\n", + "f=50\n", + "ia=0.8\n", + "\n", + "#calculations\n", + "\n", + "xa=2*3.14*f*l\n", + "ra=r\n", + "ebac=-(ia*ra)+math.sqrt((v*v)-((ia*xa)*(ia*xa)))\n", + "ebdc=v-(r*idc)\n", + "nac=(ndc*ebac)/ebdc\n", + "cos_phi=(ebac+(ia*ra))/v\n", + "\n", + "#result\n", + "print \"Speed= \",nac,\" rpm\"\n", + "print \"Power Factor= \",cos_phi,\" lag\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed= 1700.52062383 rpm\n", + "Power Factor= 0.864635321971 lag\n" + ] + } + ], + "prompt_number": 36 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.6, Page Number:1396" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#variable declaration\n", + "f=50\n", + "a=30\n", + "w=8\n", + "v=220\n", + "v2=205\n", + "pole=4\n", + "\n", + "#calculations\n", + "\n", + "ns=(120*f)/pole\n", + "tsh=(9.55*w*1000)/ns\n", + "alpha=0.5*(math.degrees(math.asin((v*v*math.sin(math.radians(2*a)))/(v2*v2))))\n", + "\n", + "#result\n", + "print \"Torque angle if voltage drops to 205 V = \",alpha,\" degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Torque angle if voltage drops to 205 V = 42.9327261097 degrees\n" + ] + } + ], + "prompt_number": 38 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb new file mode 100644 index 00000000..7e0be0a9 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb @@ -0,0 +1,2781 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 37: Alternators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.1, Page Number:1412" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s1=36.0\n", + "p1=4.0\n", + "span1=8.0\n", + "s2=72.0\n", + "p2=6.0\n", + "span2=10.0\n", + "s3=96.0\n", + "p3=6.0\n", + "span3=12.0\n", + "\n", + "#calculations\n", + "alpha1=2*p1*180/s1\n", + "alpha2=3*p2*180/s2\n", + "alpha3=5*p3*180/s3\n", + "kc1=math.cos(math.radians(alpha1/2))\n", + "kc2=math.cos(math.radians(alpha2/2))\n", + "kc3=math.cos(math.radians(alpha3/2))\n", + "\n", + "#result\n", + "print \"a)kc=\",kc1\n", + "print \"b)kc=\",kc2\n", + "print \"c)kc=\",kc3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)kc= 0.939692620786\n", + "b)kc= 0.923879532511\n", + "c)kc= 0.881921264348\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.2, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=36.0\n", + "p=4.0\n", + "\n", + "#calculations\n", + "n=s/p\n", + "beta=180/n\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"distribution factor=\",kd" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "distribution factor= 0.959795080524\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.3, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=10.0#V\n", + "beta=30.0#degrees\n", + "m=6.0\n", + "\n", + "#calculations\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "arith_sum=6*v\n", + "vector_sum=kd*arith_sum\n", + "\n", + "#calculation\n", + "print \"emf of six coils in series=\",vector_sum,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of six coils in series= 38.6370330516 V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.4, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "beta=180/9\n", + "ratio=2.0/3.0\n", + "m1=9\n", + "m2=6\n", + "m3=3\n", + "\n", + "#calculation\n", + "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", + "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"i) kd=\",kd1\n", + "print \"ii)kd=\",kd2\n", + "print \"iii)kd=\",kd3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) kd= 0.639863387016\n", + "ii)kd= 0.831206922161\n", + "iii)kd= 0.959795080524\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.5, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "slot=18.0\n", + "s=16.0\n", + "m1=3.0\n", + "m2=5.0\n", + "m3=7.0\n", + "\n", + "#calculations\n", + "span=(s-1)\n", + "alpha=180*3/slot\n", + "kc1=math.cos(math.radians(alpha/2))\n", + "kc3=math.cos(math.radians(m1*alpha/2))\n", + "kc5=math.cos(math.radians(m2*alpha/2))\n", + "kc7=math.cos(math.radians(m3*alpha/2))\n", + "\n", + "#result\n", + "print \"kc1=\",kc1\n", + "print \"kc3=\",kc3\n", + "print \"kc5=\",kc5\n", + "print \"kc7=\",kc7" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kc1= 0.965925826289\n", + "kc3= 0.707106781187\n", + "kc5= 0.258819045103\n", + "kc7= -0.258819045103\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.6, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "s=144.0\n", + "z=10.0\n", + "phi=0.03#Wb\n", + "n=375.0#rpm\n", + "\n", + "#calculation\n", + "f=p*n/120\n", + "n=s/p\n", + "beta=180/9\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "t=s*z/(3*2)\n", + "eph=4.44*1*0.96*f*phi*t\n", + "el=3**0.5*eph\n", + "#result\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"phase emf=\",eph,\"V\"\n", + "print \"line emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 50.0 Hz\n", + "phase emf= 1534.464 V\n", + "line emf= 2657.76961039 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.7, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "s=54\n", + "phi=0.1#Wb\n", + "n=1200#rpm\n", + "t=8\n", + "#calculations\n", + "beta=180/9\n", + "kc=math.cos(beta/2)\n", + "f=p*n/120\n", + "n=s/p\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=s*8/3\n", + "t=z/2\n", + "eph=4.44*0.98*0.96*f*phi*t\n", + "el=3**0.*eph\n", + "\n", + "#result\n", + "print \"eph=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eph= 1804.529664 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.8, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "slots=144.0\n", + "z=4.0\n", + "n=375.0\n", + "airgap=5*0.01\n", + "theta=150.0\n", + "\n", + "#calculation\n", + "kf=1.11\n", + "alpha=(180-theta)\n", + "kc=math.cos(math.radians(alpha/2))\n", + "beta=180/9\n", + "m=slots/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "f=p*n/120\n", + "s=slots/3\n", + "eph=4*kf*kc*kd*f*airgap*s*4/2\n", + "\n", + "#result\n", + "print \"emf per phase=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf per phase= 987.908016392 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.9, Page Number:1417" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10\n", + "f=50#Hz\n", + "n=600#rpm\n", + "slots=180\n", + "s=15\n", + "d=1.2#m\n", + "l=0.4#m\n", + "m=6\n", + "beta=180/18\n", + "#calculations\n", + "area=(1.2*3.14/p)*l\n", + "phi1=area*0.637\n", + "vr=1.1*2*f*phi1\n", + "vp=2**0.5*vr\n", + "v3=0.4*vp\n", + "v5=0.2*vp\n", + "vf=6*vp*0.966\n", + "vf3=6*v3*0.707\n", + "vf5=6*v5*0.259\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", + "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", + "vph=vf*2**0.5*60*kd1\n", + "vph3=vf3*2**0.5*60*kd2\n", + "vph5=vf5*2**0.5*60*kd3\n", + "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", + "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", + "\n", + "#result\n", + "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", + "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", + "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", + "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", + "iii)rms value of phase voltage= 7158.83679423 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.10, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "slot=60.0\n", + "z=4.0\n", + "s=3.0\n", + "theta=60.0\n", + "phi=0.943#Wb\n", + "\n", + "#calculation\n", + "m=slot/(p*s)\n", + "beta=slot/5\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "alpha=(s/15)*180\n", + "kc=math.cos(math.radians(alpha/2))\n", + "z=slot*z/s\n", + "t=z/2\n", + "kf=1.11\n", + "eph=z*kf*kc*kd*f*phi*t/2\n", + "el=3**0.5*eph*0.1\n", + "\n", + "#result\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage= 13196.4478482 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.11, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slot=15.0\n", + "z=10.0\n", + "kd=0.95\n", + "e=1825#v\n", + "kc=1\n", + "kf=1.11\n", + "#calculations\n", + "slots=p*slot\n", + "slotsp=slots/3\n", + "turnp=20*z/2\n", + "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", + "z=slots*z\n", + "n=120*f/p\n", + "eg=(phi*0.001*z*n)/slots\n", + "\n", + "#result\n", + "print \"emf=\",eg*1000,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 749.405577006 V\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.12, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=360#V\n", + "f=60.0#Hz\n", + "i=3.6#A\n", + "f2=40#Hz\n", + "i2=2.4#A\n", + "\n", + "#calculations\n", + "e2=v*i2*f2/(f*i)\n", + "\n", + "#result\n", + "print \"e2=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e2= 160.0 V\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.13, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=0\n", + "f=50.0#Hz\n", + "slot=2\n", + "z=4\n", + "theta=150#degrees\n", + "phi=0.12#Wb\n", + "per=20#%\n", + "\n", + "#calculations\n", + "alpha=180-theta\n", + "slotp=6\n", + "m=2\n", + "beta=180/slotp\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=10*slot*z\n", + "t=z/2\n", + "e1=4.44*kd1*kd1*f*0.12*t\n", + "kc3=math.cos(3*math.radians(alpha/2))\n", + "f2=f*3\n", + "phi3=(1.0/3)*per*0.12\n", + "e3=4.44*kd3*kd3*theta*0.008*40\n", + "e=(e1**2+e3**2)**0.5\n", + "\n", + "#result\n", + "print \"e=\",e,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e= 994.25286629 V\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.14, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "per=10.0#%\n", + "per2=6.0#%\n", + "f=50.0#Hz\n", + "r=10.0#ohm\n", + "\n", + "#calculation\n", + "#star connection\n", + "e5=per*v/100\n", + "e=(v**2+e5**2)**0.5\n", + "eph=3**0.5*e\n", + "\n", + "#delta\n", + "e3=10*v/100\n", + "f3=10*3\n", + "i=e3/f3\n", + "\n", + "#result\n", + "print \"line voltage for star=\",eph,\"V\"\n", + "print \"line voltage for delta=\",e3,\"V\"\n", + "print \"current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage for star= 400.358589267 V\n", + "line voltage for delta= 23.0 V\n", + "current= 0.766666666667 A\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(a), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10.0\n", + "p1=24.0\n", + "f=25#Hz\n", + "p3=6.0\n", + "s=0.05\n", + "\n", + "#calculation\n", + "n=120*f/p\n", + "f1=p1*n/120\n", + "n2=120*f1/6\n", + "n3=(1-s)*n2\n", + "f2=s*f1p\n", + "\n", + "\n", + "#result\n", + "print \"frequency=\",f1,\"Hz\"\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 60.0 Hz\n", + "speed= 1140.0 rpm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(b), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "phi=0.12#Wb\n", + "slotsp=4\n", + "cp=4\n", + "theta=150#degrees\n", + "\n", + "#calculation\n", + "slots=slotsp*3*p\n", + "c=cp*slots\n", + "turns=32\n", + "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", + "kp=math.cos(math.radians(15))\n", + "eph=4.44*50*0.12*kb*0.966*turns\n", + "el=eph*3**0.5\n", + "\n", + "#result\n", + "print \"line voltage\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage 1365.94840977 V\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.16, Page Number:1426" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.85\n", + "v=11#kV\n", + "r=0.1#ohm\n", + "x=0.66#ohm\n", + "\n", + "#calculation\n", + "i=load*10**6/(3**0.5*v*1000*pf)\n", + "iradrop=i*r\n", + "ixsdrop=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", + "el=3**0.5*e0\n", + "\n", + "#result\n", + "print \"linevalue of emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "linevalue of emf= 11475.6408913 V\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(a), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=50.0#Hz\n", + "load=440.0#KVA\n", + "r=0.5#ohm\n", + "i=40.0#A\n", + "il=200.0#A\n", + "vf=1160.0#V\n", + "\n", + "#calculations\n", + "zs=vf/200\n", + "xs=(zs**2-r**2)**0.5\n", + "\n", + "#result\n", + "print \"synchronous impedence=\",zs,\"ohm\"\n", + "print \"synchronous reactance=\",xs,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous impedence= 5.8 ohm\n", + "synchronous reactance= 5.77840808528 ohm\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(b), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60.0#kVA\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.016#ohm\n", + "x=0.07#ohm\n", + "pf=0.7\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "ira=i*r\n", + "ixl=i*x\n", + "#unity pf\n", + "e=((v+ira)**2+(ixl)**2)**0.5\n", + "#pf of 0.7 lag\n", + "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", + "#pf of 0.7 lead\n", + "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", + "\n", + "#result\n", + "print \"voltage with pf=1\",e,\"V\"\n", + "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", + "print \"voltage with pf=0.7 lead\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage with pf=1 225.174386048 V\n", + "voltage with pf=0.7 lag 234.604995966 V\n", + "voltage with pf=0.7 lead 208.03726621 V\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.18(a), Page Number:1429" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=440.0#V\n", + "f=50.0#Hz\n", + "r=0.25#ohm\n", + "x=3.2#ohm\n", + "xl=0.5#ohm\n", + "\n", + "#calculation\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "rd=i*r\n", + "ixl=i*xl\n", + "ea=((v+rd)**2+(ixl)**2)**0.5\n", + "el=3**0.5*ea\n", + "e0=((v+rd)**2+(i*x)**2)**0.5\n", + "e0l=e0*3**0.5\n", + "per=(e0-v)/v\n", + "xa=x-xl\n", + "#result\n", + "print \"internal emf Ea=\",el,\"V\"\n", + "print \"no load emf=\",e0l,\"V\"\n", + "print \"percentage regulation=\",per*100,\"%\"\n", + "print \"valueof synchronous reactance=\",xa,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "internal emf Ea= 471.842539659 V\n", + "no load emf= 592.991130967 V\n", + "percentage regulation= 34.7707115833 %\n", + "valueof synchronous reactance= 2.7 ohm\n" + ] + } + ], + "prompt_number": 87 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.19, Page Number:1432" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=50.0#V\n", + "r=0.1#ohm\n", + "il=100.0#A\n", + "pf=0.8\n", + "vt=200.0#V\n", + "\n", + "#calculation\n", + "zs=v/vt\n", + "xs=(zs**2-r**2)**0.5\n", + "ira=il*r\n", + "ixs=il*xs\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "\n", + "#result\n", + "print \"induced voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced voltage= 222.090276316 V\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.20, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2000.0#V\n", + "i=100.0#A\n", + "pf=0.8\n", + "pf2=0.71\n", + "i2=2.5#A\n", + "v2=500.0#V\n", + "r=0.8#ohm\n", + "\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "sinphi2=math.sin(math.acos(pf2))\n", + "zs=v2/i\n", + "xs=(zs**2-r**2)**.5\n", + "#unity pf\n", + "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", + "reg1=(e01-v)*100/v\n", + "#at pf=0.8\n", + "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v)*100/v\n", + "#at pf=0.71\n", + "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", + "reg3=(e03-v)*100/v\n", + "\n", + "#result\n", + "print \"voltage regulation unity pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", + "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.6\n", + "voltage regulation unity pf= 6.88779163216 %\n", + "voltage regulation 0.8 lag pf= -8.875640156 %\n", + "voltage regulation 0.71 lead pf= 21.1141910671 %\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.21, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=3000.0#V\n", + "load=100.0#kVA\n", + "f=50.0#Hz\n", + "r=0.2\n", + "i1=40.0#A\n", + "i2=200.0#A\n", + "v2=1040.0#V\n", + "pf=0.8\n", + "v1=v/3**0.5\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**.5\n", + "i=load*1000/(3**0.5*v)\n", + "\n", + "\n", + "#at pf=0.8 lag\n", + "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", + "reg1=(e01-v1)*100/v1\n", + "#at pf=0.8 lead\n", + "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v1)*100/v1\n", + "\n", + "#result\n", + "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation 0.8 lag pf= 2.20611574348 %\n", + "voltage regulation 0.8 lag pf= -1.77945143824 %\n" + ] + } + ], + "prompt_number": 112 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.22, Page Number:1434" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1600.0#kVA\n", + "v=13500.0#V\n", + "r=1.5#ohm\n", + "x=30.0#ohm\n", + "load1=1280.0#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi1=math.sin(math.acos(pf))\n", + "i=load1*1000/(3**0.5*v*pf)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", + "regn=(e0-vp)*100/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= -11.9909032489 %\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.23, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "pf=0.8\n", + "r=0.5#ohm\n", + "x=10.0#ohm\n", + "\n", + "#calculations\n", + "i=load*1000/(3**0.5*v)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", + "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", + "\n", + "#result\n", + "print \"voltage regulation=\",regn*100,\"%\"\n", + "print \"power angle=\",delta,\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 48.0405877623 %\n", + "power angle= 18.9704078085 degrees\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.24, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6000.0#KVA\n", + "v=6600.0#V\n", + "p=2.0\n", + "f=50.0#Hz\n", + "i2=125.0#A\n", + "v1=8000.0#V\n", + "i3=800.0#A\n", + "d=0.03\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v1/(3**0.5*i3)\n", + "vp=v/3**0.5\n", + "rd=d*vp\n", + "il=load*1000/(3**0.5*v)\n", + "ira=rd\n", + "ra=ira/il\n", + "xs=(zs**2-ra**2)**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", + "reg=(e0-vp)/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",reg*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= 62.2972136768 %\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.25, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "load=2000#KVA\n", + "v=2300#V\n", + "i=600#A\n", + "v2=900#V\n", + "r=0.12#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i)\n", + "rp=r/2\n", + "re=rp*1.5\n", + "xs=(zs**2-re**2)**0.5\n", + "il=load*1000/(3**0.5*v)\n", + "ira=il*rp\n", + "ixs=il*xs\n", + "vp=v/3**0.5\n", + "e0=((vp+ira)**2+(ixs)**2)**0.5\n", + "reg1=(e0-vp)/vp\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "reg2=(e0-vp)/vp\n", + "#result\n", + "print \"regulation at pf=1\",reg1*100,\"%\"\n", + "print \"regulation at pf=0.8\",reg2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=1 7.32796146323 %\n", + "regulation at pf=0.8 23.8398862235 %\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.26, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=Symbol('v')\n", + "load=2000#KVA\n", + "load1=11#KV\n", + "r=0.3#ohm\n", + "x=5#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "i=load*1000/(3**0.5*load1*1000)\n", + "vt=load1*1000/3**0.5\n", + "ira=i*r\n", + "ixs=i*x\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v[1],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 6978.31767618569 V\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.27, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1200#KVA\n", + "load1=3.3#KV\n", + "f=50#Hz\n", + "r=0.25#ohm\n", + "i=35#A\n", + "i2=200#A\n", + "v=1.1#kV\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zs=v*1000/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**0.5\n", + "v=load1*1000/3**0.5\n", + "theta=math.atan(xs/r)\n", + "ia=load*1000/(3**0.5*load1*1000)\n", + "e=v+ia*zs\n", + "change=(e-v)/v\n", + "\n", + "#result\n", + "print \"per unit change=\",change" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "per unit change= 0.349909254054\n" + ] + } + ], + "prompt_number": 151 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.28, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11#kV\n", + "load=3#MVA\n", + "i=100#A\n", + "v2=12370#V\n", + "vt=11000#V\n", + "pf=0.8\n", + "r=0.4#ohm\n", + "\n", + "#calculation\n", + "E0=v1*1000/3**0.5\n", + "v=v2/3**0.5\n", + "pf=0\n", + "sinphi=1\n", + "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", + "il=load*10**6/(3**0.5*v1*1000)\n", + "ira=il*r\n", + "ixs=il*xs\n", + "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", + "regn=(e0-E0)*100/E0\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 19.6180576177 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.29, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pf=0.8\n", + "vt=3500#v\n", + "load=2280#KW\n", + "v1=3300#V\n", + "r=8#ohm\n", + "x=6#ohm\n", + "\n", + "#calculation\n", + "vl=vt/3**0.5\n", + "vp=v1/3**0.5\n", + "il=load*1000/(3**0.5*v1*pf)\n", + "drop=vl-vp\n", + "z=(r**2+x**2)**0.5\n", + "x=vl/(z+drop/il)\n", + "vtp=vl-x*drop/il\n", + "vtpl=vtp*3**0.5\n", + "\n", + "#result\n", + "print \"terminal voltage=\",vtpl,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 3420.781893 V\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.30, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.5#MVA\n", + "v=4160#V\n", + "f=50#Hz\n", + "i=200#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "il=load*10**6/(3**0.5*v)\n", + "zs=4750/(3**0.5*il)\n", + "ra=0\n", + "ixs=il*zs\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 0.91675794767 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.39, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "xd=0.7\n", + "xq=0.4\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "ia=1\n", + "tandelta=ia*xq*pf/(v+xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(math.radians(36.9)+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"no load voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 14.4702941001 degrees\n", + "no load voltage= 1.51511515874 V\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.40, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "xd=0.6\n", + "xq=0.45\n", + "ra=0.015\n", + "pf=0.8\n", + "ia=1\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "#calculation\n", + "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", + "psi=math.atan(tanpsi)\n", + "delta=psi-math.acos(pf)\n", + "i_d=ia*math.sin(psi)\n", + "iq=ia*math.cos(psi)\n", + "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", + "regn=(e0-v)*100/v\n", + "\n", + "#result\n", + "print \"open circuit voltage=\",e0,\"V\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "open circuit voltage= 1.44767600311 V\n", + "regulation= 44.7676003107 %\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.41, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=10#A\n", + "phi=math.radians(20)\n", + "v=400#V\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "pf=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(phi+delta)\n", + "iq=ia*math.cos(phi+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "regn=(e0-v)/v\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"id=\",i_d,\"A\"\n", + "print \"iq=\",iq,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 8.23131209115 degrees\n", + "id= 4.7303232581 A\n", + "iq= 8.81045071911 A\n" + ] + } + ], + "prompt_number": 189 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.42, Page Number:1459" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e1=220#V\n", + "f1=60#Hz\n", + "e2=222#V\n", + "f2=59#Hz\n", + "\n", + "#calculation\n", + "emax=(e1+e2)/2\n", + "emin=(e2-e1)/2\n", + "f=(f1-f2)\n", + "epeak=emax/0.707\n", + "pulse=(f1-f2)*60\n", + "\n", + "#result\n", + "print \"max voltage=\",emax,\"V\"\n", + "print \"min voltage=\",emin,\"V\"\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"peak value of voltage=\",epeak,\"V\"\n", + "print \"number of maximum light pulsations/minute=\",pulse" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max voltage= 221 V\n", + "min voltage= 1 V\n", + "frequency= 1 Hz\n", + "peak value of voltage= 312.588401697 V\n", + "number of maximum light pulsations/minute= 60\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.43, Page Number:1462" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=1500#kVA\n", + "v=6.6#kV\n", + "r=0.4#ohm\n", + "x=6#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=power*1000/(3**0.5*v*1000)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", + "phialpha=math.atan(tanphialpha)\n", + "alpha=phialpha-phi\n", + "\n", + "#result\n", + "print \"power angle=\",math.degrees(alpha)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power angle= 7.87684146241\n" + ] + } + ], + "prompt_number": 198 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.44, Page Number:1464" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3000#KVA\n", + "p=6\n", + "n=1000#rpm\n", + "v=3300#v\n", + "x=0.25\n", + "\n", + "#calculation\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "ixs=x*vp\n", + "xs=x*vp/i\n", + "alpha=1*p/2\n", + "psy=3*3.14*vp**2/(60*xs*n)\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronizing power=\",psy,\"kW\"\n", + "print \"torque=\",tsy*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronizing power= 628.0 kW\n", + "torque= 5997.4 N-m\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.45, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3#MVA\n", + "n=1000#rpm\n", + "v1=3.3#kV\n", + "r=0.25\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "vp=v1*1000/3**0.5\n", + "i=load*1000000/(3**0.5*v1*1000)\n", + "ixs=complex(0,r*vp)\n", + "xs=ixs/i\n", + "v=vp*complex(pf,math.sin(math.acos(pf)))\n", + "e0=v+ixs\n", + "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", + "p=6/2\n", + "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", + "tsy=9.55*3*psy*100/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", + "print \"toque=\",-tsy/100,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 722.236196153j kW\n", + "toque= 6897.35567326j N-m\n" + ] + } + ], + "prompt_number": 221 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.46, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=750#KVA\n", + "v=11#kV\n", + "p=4\n", + "r=1#%\n", + "x=15#%\n", + "pf=0.8\n", + "#calculation\n", + "i=load*1000/(3**0.5*v*1000)\n", + "vph=v*1000/3**0.5\n", + "ira=r*vph/1000\n", + "ra=ira/i\n", + "xs=x*vph/(100*i)\n", + "zs=(ra**2+xs**2)**0.5\n", + "#no load\n", + "alpha=p/2\n", + "psy=math.radians(alpha)*vph**2/xs\n", + "#fl 0.8 pf\n", + "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", + "psy2=math.radians(alpha)*e*vph/xs\n", + "\n", + "#result\n", + "print \"Synchronous power at:\"\n", + "print \"no load=\",psy,\"W\"\n", + "print \"at pf of 0.8=\",psy2,\"w\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous power at:\n", + "no load= 58177.6417331 W\n", + "at pf of 0.8= 73621.2350169 w\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.47, Page Number:1466" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=2000#KVA\n", + "p=8\n", + "n=750#rpm\n", + "v1=6000#V\n", + "pf=0.8\n", + "r=6#ohm\n", + "\n", + "#calculations\n", + "alpha=math.radians(4)\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", + "psy=alpha*e0*v*3/r\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",psy,\"W\"\n", + "print \"synchronous torque=\",tsy,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 514916.500204 W\n", + "synchronous torque= 6556.60343593 N-m\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.48, Page Number:1467" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "n=1500#rpm\n", + "f=50#Hz\n", + "r=20#%\n", + "pf=0.8\n", + "phi=0.5\n", + "\n", + "#calculations\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "xs=r*vp/(1000*i)\n", + "p=120*f/n\n", + "alpha=math.radians(2)\n", + "#no load\n", + "psy=3*alpha*vp**2/(p*1000)\n", + "tsy=9.55*psy*1000/(n*2)\n", + "#pf=0.8\n", + "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", + "ixs=complex(0,i*4)\n", + "e0=v+ixs\n", + "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", + "tsy2=9.55*psy2/(n*20)\n", + "\n", + "#result\n", + "print \"synchronous power:\"\n", + "print \"atno load=\",psy,\"w\"\n", + "print \"at 0.8 pf=\",psy2,\"w\"\n", + "print \"torque:\"\n", + "print \"at no load=\",tsy,\"N-m\"\n", + "print \"at pf=0.8=\",tsy2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power:\n", + "atno load= 872.664625997 w\n", + "at 0.8 pf= 1506057.44405 w\n", + "torque:\n", + "at no load= 2777.98239276 N-m\n", + "at pf=0.8= 479.428286357 N-m\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.49, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6.6#kW\n", + "load1=3000#kW\n", + "pf=0.8\n", + "xa=complex(0.5,10)\n", + "xb=complex(0.4,12)\n", + "i0=150#A\n", + "\n", + "#calculation\n", + "v=complex(load*1000/3**0.5,0)\n", + "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", + "phi1=math.acos(cosphi1)\n", + "sinphi1=math.sin(phi1)\n", + "i=328*complex(pf,-math.sin(math.acos(pf)))\n", + "i1=i0*complex(cosphi1,-sinphi1)\n", + "i2=i-i1\n", + "coshi2=i2.real/181\n", + "ea=v+i1*xa\n", + "eal=3**0.5*abs(ea)\n", + "eb=v+i2*xb\n", + "ebl=3**0.5*abs(eb)\n", + "alpha1=(ea.imag/ea.real)\n", + "alpha2=(eb.imag/eb.real)\n", + "#result\n", + "print \"Ea=\",ea,\"V\"\n", + "print \"Eb=\",eb,\"V\"\n", + "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", + "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ea= (4602.91884998+1275.81974829j) V\n", + "Eb= (5352.42648271+1524.56032028j) V\n", + "alpha1= 15.8810288383 degrees\n", + "alpha2= 16.3198639435 degrees\n" + ] + } + ], + "prompt_number": 245 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.50, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declration\n", + "e1=complex(230,0)\n", + "e2=230*complex(0.985,0.174)\n", + "z1=complex(0,2)\n", + "z2=complex(0,3)\n", + "z=6\n", + "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", + "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", + "i=i1+i2\n", + "v=i*z\n", + "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", + "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v,\"V\"\n", + "print \"current\",i,\"A\"\n", + "print \"power 1=\",p1,\"W\"\n", + "print \"power 2=\",p2,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= (222.905384615-28.5730769231j) V\n", + "current (37.1508974359-4.76217948718j) A\n", + "power 1= 3210.60292765 W\n", + "power 2= 5138.29001053 W\n" + ] + } + ], + "prompt_number": 249 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.51, Page Number:1471" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1500#kW\n", + "v=11#KV\n", + "pf=0.867\n", + "x=50#ohm\n", + "r=4#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "il=load*1000/(3**0.5*v*1000*pf)\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "iwatt=il*pf\n", + "iwattless=il*sinphi\n", + "i1=il/2\n", + "i2=iwatt/2\n", + "iw1=(i**2-i1**2)**0.5\n", + "iw2=i2-iw1\n", + "ia=(i2**2+iw2**2)**0.5\n", + "vt=v*1000/3**0.5\n", + "ir=i*r\n", + "ix=x*i\n", + "cosphi=i2/i\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", + "el=3**0.5*e\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 43.4628778514 A\n", + "line voltage= 14304.0798593 V\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.52, Page Number:1472" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.8\n", + "output=6000#kW\n", + "pfa=0.92\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "phia=math.acos(pfa)\n", + "tanphi=math.tan(phi)\n", + "tanphia=math.tan(phia)\n", + "loadkvar=load*1000*tanphi\n", + "akvar=output*tanphia\n", + "kwb=(load*1000-output)\n", + "kvarb=loadkvar-akvar\n", + "kvab=complex(kwb,kvarb)\n", + "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", + "kvarb=kwb*pfb\n", + "kvara=-loadkvar-kvarb\n", + "kvaa=complex(output,kvara)\n", + "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", + "\n", + "#result\n", + "print \"new pfb=\",pfb\n", + "print \"new pfa=\",pfa" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new pfb= 0.628980253433\n", + "new pfa= 0.513894032194\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.54, Page Number:1473" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=6600#V\n", + "load=1000#KVA\n", + "x=20#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=87.5\n", + "x=8.7\n", + "vp=3810\n", + "e0=4311\n", + "ir=70\n", + "ix=52.5\n", + "IX=762\n", + "vb1=(e0**2-vp**2)**0.5\n", + "i1x=vb1\n", + "i1=i1x/x\n", + "output=3**0.5*v*i1/1000\n", + "b2v=(vp**2+e0**2)**0.5\n", + "i2z=b2v\n", + "i2=b2v/x\n", + "i2rx=e0\n", + "i2r=i2rx/x\n", + "i2x=vp/x\n", + "tanphi2=i2x/i2r\n", + "phi2=math.atan(tanphi2)\n", + "cosphi2=math.cos(phi2)\n", + "output1=3**0.5*v*i2*cosphi2/1000\n", + "\n", + "#result\n", + "print \"power output at unity pf=\",output,\"kW\"\n", + "print \"max power output=\",output1,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " power output at unity pf= 2650.38477722 kW\n", + "max power output= 5664.52285143 kW\n" + ] + } + ], + "prompt_number": 255 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.55, Page Number:1474" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=10.0#ohm\n", + "i=220.0#A\n", + "load=11.0#kV\n", + "per=25.0#%\n", + "\n", + "#calculations\n", + "oa1=load*1000/3**0.5\n", + "a1c1=i*x\n", + "e0=(oa1**2+a1c1**2)**0.5\n", + "emf=(1+per/100)*e0\n", + "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", + "ix=a1a2/x\n", + "i1=(i**2+ix**2)**0.5\n", + "pf=i/i1\n", + "bv=(oa1**2+emf**2)**0.5\n", + "imax=bv/x\n", + "ir=emf/x\n", + "ix=oa1/x\n", + "pfmax=ir/imax\n", + "output=3**0.5*load*1000*imax*pfmax*0.001\n", + "#result\n", + "print \"new current=\",i1,\"A\"\n", + "print \"new power factor=\",pf\n", + "print \"max power output=\",output,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new current= 281.573453399 A\n", + "new power factor= 0.781323655849\n", + "max power output= 16006.7954319 kW\n" + ] + } + ], + "prompt_number": 258 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.56, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#MVA\n", + "load1=35.0#MVA\n", + "pf=0.8\n", + "output=25.0#MVA\n", + "cosphi1=0.9\n", + "\n", + "#calculations\n", + "loadmw=load1*pf\n", + "loadmvar=load1*0.6\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "mva1=25\n", + "mw1=mva1*cosphi1\n", + "mvar1=25*sinphi1\n", + "mw2=loadmw-mw1\n", + "mvar2=loadmvar-mvar1\n", + "mva2=(mw2**2+mvar2**2)**0.5\n", + "cosphi2=mw2/mva2\n", + "\n", + "#result\n", + "print \"output=\",mva2\n", + "print \"pf=\",cosphi2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 10.4509862952\n", + "pf= 0.52626611926\n" + ] + } + ], + "prompt_number": 260 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.57, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "load=600#KW\n", + "loadm=707#kW\n", + "pf=0.707\n", + "output=900#kW\n", + "pf1=0.9\n", + "\n", + "#calculation\n", + "kva=1000\n", + "kvar=kva*(1-pf1**2)**0.5\n", + "active_p=1307-output\n", + "reactive_p=loadm-kvar\n", + "\n", + "#result\n", + "print \"active power shared by second machine=\",active_p,\"kW\"\n", + "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "active power shared by second machine= 407 kW\n", + "reactive power shared by second machine= 271.110105646 kVAR\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.58, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l1=500#kW\n", + "l2=1000#kW\n", + "pf1=0.9\n", + "l3=800#kW\n", + "pf2=0.8\n", + "l4=500#kW\n", + "pf3=0.9\n", + "output=1500#kW\n", + "pf=0.95\n", + "\n", + "#calculation\n", + "kw1=l1\n", + "kw2=l2\n", + "kw3=l3\n", + "kw4=500\n", + "kvar2=kw2*0.436/pf1\n", + "kvar3=kw3*0.6/pf2\n", + "kvar4=kw4*0.436/pf3\n", + "kvar=output/pf\n", + "kw=kw1+kw2+kw3+kw4-output\n", + "kvar=kvar2+kvar3+kvar4-kvar\n", + "cosphi=math.cos(math.atan(kvar/kw))\n", + "\n", + "#result\n", + "print \"kW output=\",kw\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kW output= 1300\n", + "pf= 0.981685651341\n" + ] + } + ], + "prompt_number": 264 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.59, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=complex(0.2,2)\n", + "ze=complex(3,4)\n", + "emf1=complex(2000,0)\n", + "emf2=complex(22000,100)\n", + "\n", + "#calculations\n", + "i1=complex(68.2,-102.5)\n", + "i2=complex(127,-196.4)\n", + "i=i1+i2\n", + "v=i*ze\n", + "pva1=v*i1\n", + "kw1=pva1.real*3\n", + "a11=math.atan(-i1.imag/i1.real)\n", + "a12=math.atan(-v.imag/v.real)\n", + "pf1=math.cos(a11-a12)\n", + "pva2=v*i2\n", + "kw2=pva2.real*3\n", + "a21=math.atan(-i2.imag/i2.real)\n", + "a22=math.atan(-v.imag/v.real)\n", + "pf2=math.cos(a21-a22)\n", + "\n", + "#result\n", + "print \"kw output 1=\",kw1/1000\n", + "print \"pf 1=\",pf1\n", + "print \"kw output 2=\",kw2/1000\n", + "print \"pf 2=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kw output 1= 328.79427\n", + "pf 1= 0.606839673468\n", + "kw output 2= 610.34892\n", + "pf 2= 0.596381892841\n" + ] + } + ], + "prompt_number": 273 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.63, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "f=50#Hz\n", + "ns=1500#rpm\n", + "j=1.5*10**4#khm2\n", + "ratio=5\n", + "\n", + "#calculation\n", + "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"natural time period of oscillation=\",round(t,3),\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "natural time period of oscillation= 1.364 s\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.64, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10000#KVA\n", + "p=4\n", + "v=6600#V\n", + "f=50#Hz\n", + "xs=25#%\n", + "pf=1.5\n", + "\n", + "#calculations\n", + "ratio=100/xs\n", + "ns=120*f/p\n", + "j=(pf/(0.0083*ns))**2*load*ratio*f\n", + "\n", + "#result\n", + "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "moment of inertia= 29.0317898098 x10^4 kg-m2\n" + ] + } + ], + "prompt_number": 277 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.65, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#MVA\n", + "v=10.0#kV\n", + "f=50.0#Hz\n", + "ns=1500.0#rpm\n", + "j=2.0*10**5#kgm2\n", + "x=40.0\n", + "\n", + "#calculation\n", + "ratio=100.0/x\n", + "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation of the rotor= 0.2 Hz\n" + ] + } + ], + "prompt_number": 283 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.66, Page Number:1483" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=11#kV\n", + "z=complex(1,10)\n", + "emf=14#kV\n", + "\n", + "#calculations\n", + "e=emf*1000/3**0.5\n", + "v=v*1000/3**0.5\n", + "costheta=z.real/abs(z)\n", + "pmax=e*v*3/(z.imag*1000)\n", + "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", + "\n", + "#result\n", + "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max output = 14125.5529273 kW\n" + ] + } + ], + "prompt_number": 285 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.67, Page Number:1484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=11#kVA\n", + "load1=10#MW\n", + "z=complex(0.8,8.0)\n", + "v=14#kV\n", + "\n", + "#calculations\n", + "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", + "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", + "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", + "\n", + "#result\n", + "print \"maximum output=\",pmax/1000000,\"MW\"\n", + "print \"current=\",imax,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum output= 19.25 MW\n", + "current= 1284.92866209 A\n", + "pf= 0.786318338822\n" + ] + } + ], + "prompt_number": 289 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_1.ipynb new file mode 100644 index 00000000..7e0be0a9 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_1.ipynb @@ -0,0 +1,2781 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 37: Alternators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.1, Page Number:1412" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s1=36.0\n", + "p1=4.0\n", + "span1=8.0\n", + "s2=72.0\n", + "p2=6.0\n", + "span2=10.0\n", + "s3=96.0\n", + "p3=6.0\n", + "span3=12.0\n", + "\n", + "#calculations\n", + "alpha1=2*p1*180/s1\n", + "alpha2=3*p2*180/s2\n", + "alpha3=5*p3*180/s3\n", + "kc1=math.cos(math.radians(alpha1/2))\n", + "kc2=math.cos(math.radians(alpha2/2))\n", + "kc3=math.cos(math.radians(alpha3/2))\n", + "\n", + "#result\n", + "print \"a)kc=\",kc1\n", + "print \"b)kc=\",kc2\n", + "print \"c)kc=\",kc3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)kc= 0.939692620786\n", + "b)kc= 0.923879532511\n", + "c)kc= 0.881921264348\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.2, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=36.0\n", + "p=4.0\n", + "\n", + "#calculations\n", + "n=s/p\n", + "beta=180/n\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"distribution factor=\",kd" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "distribution factor= 0.959795080524\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.3, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=10.0#V\n", + "beta=30.0#degrees\n", + "m=6.0\n", + "\n", + "#calculations\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "arith_sum=6*v\n", + "vector_sum=kd*arith_sum\n", + "\n", + "#calculation\n", + "print \"emf of six coils in series=\",vector_sum,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of six coils in series= 38.6370330516 V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.4, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "beta=180/9\n", + "ratio=2.0/3.0\n", + "m1=9\n", + "m2=6\n", + "m3=3\n", + "\n", + "#calculation\n", + "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", + "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"i) kd=\",kd1\n", + "print \"ii)kd=\",kd2\n", + "print \"iii)kd=\",kd3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) kd= 0.639863387016\n", + "ii)kd= 0.831206922161\n", + "iii)kd= 0.959795080524\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.5, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "slot=18.0\n", + "s=16.0\n", + "m1=3.0\n", + "m2=5.0\n", + "m3=7.0\n", + "\n", + "#calculations\n", + "span=(s-1)\n", + "alpha=180*3/slot\n", + "kc1=math.cos(math.radians(alpha/2))\n", + "kc3=math.cos(math.radians(m1*alpha/2))\n", + "kc5=math.cos(math.radians(m2*alpha/2))\n", + "kc7=math.cos(math.radians(m3*alpha/2))\n", + "\n", + "#result\n", + "print \"kc1=\",kc1\n", + "print \"kc3=\",kc3\n", + "print \"kc5=\",kc5\n", + "print \"kc7=\",kc7" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kc1= 0.965925826289\n", + "kc3= 0.707106781187\n", + "kc5= 0.258819045103\n", + "kc7= -0.258819045103\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.6, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "s=144.0\n", + "z=10.0\n", + "phi=0.03#Wb\n", + "n=375.0#rpm\n", + "\n", + "#calculation\n", + "f=p*n/120\n", + "n=s/p\n", + "beta=180/9\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "t=s*z/(3*2)\n", + "eph=4.44*1*0.96*f*phi*t\n", + "el=3**0.5*eph\n", + "#result\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"phase emf=\",eph,\"V\"\n", + "print \"line emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 50.0 Hz\n", + "phase emf= 1534.464 V\n", + "line emf= 2657.76961039 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.7, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "s=54\n", + "phi=0.1#Wb\n", + "n=1200#rpm\n", + "t=8\n", + "#calculations\n", + "beta=180/9\n", + "kc=math.cos(beta/2)\n", + "f=p*n/120\n", + "n=s/p\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=s*8/3\n", + "t=z/2\n", + "eph=4.44*0.98*0.96*f*phi*t\n", + "el=3**0.*eph\n", + "\n", + "#result\n", + "print \"eph=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eph= 1804.529664 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.8, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "slots=144.0\n", + "z=4.0\n", + "n=375.0\n", + "airgap=5*0.01\n", + "theta=150.0\n", + "\n", + "#calculation\n", + "kf=1.11\n", + "alpha=(180-theta)\n", + "kc=math.cos(math.radians(alpha/2))\n", + "beta=180/9\n", + "m=slots/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "f=p*n/120\n", + "s=slots/3\n", + "eph=4*kf*kc*kd*f*airgap*s*4/2\n", + "\n", + "#result\n", + "print \"emf per phase=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf per phase= 987.908016392 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.9, Page Number:1417" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10\n", + "f=50#Hz\n", + "n=600#rpm\n", + "slots=180\n", + "s=15\n", + "d=1.2#m\n", + "l=0.4#m\n", + "m=6\n", + "beta=180/18\n", + "#calculations\n", + "area=(1.2*3.14/p)*l\n", + "phi1=area*0.637\n", + "vr=1.1*2*f*phi1\n", + "vp=2**0.5*vr\n", + "v3=0.4*vp\n", + "v5=0.2*vp\n", + "vf=6*vp*0.966\n", + "vf3=6*v3*0.707\n", + "vf5=6*v5*0.259\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", + "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", + "vph=vf*2**0.5*60*kd1\n", + "vph3=vf3*2**0.5*60*kd2\n", + "vph5=vf5*2**0.5*60*kd3\n", + "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", + "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", + "\n", + "#result\n", + "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", + "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", + "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", + "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", + "iii)rms value of phase voltage= 7158.83679423 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.10, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "slot=60.0\n", + "z=4.0\n", + "s=3.0\n", + "theta=60.0\n", + "phi=0.943#Wb\n", + "\n", + "#calculation\n", + "m=slot/(p*s)\n", + "beta=slot/5\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "alpha=(s/15)*180\n", + "kc=math.cos(math.radians(alpha/2))\n", + "z=slot*z/s\n", + "t=z/2\n", + "kf=1.11\n", + "eph=z*kf*kc*kd*f*phi*t/2\n", + "el=3**0.5*eph*0.1\n", + "\n", + "#result\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage= 13196.4478482 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.11, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slot=15.0\n", + "z=10.0\n", + "kd=0.95\n", + "e=1825#v\n", + "kc=1\n", + "kf=1.11\n", + "#calculations\n", + "slots=p*slot\n", + "slotsp=slots/3\n", + "turnp=20*z/2\n", + "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", + "z=slots*z\n", + "n=120*f/p\n", + "eg=(phi*0.001*z*n)/slots\n", + "\n", + "#result\n", + "print \"emf=\",eg*1000,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 749.405577006 V\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.12, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=360#V\n", + "f=60.0#Hz\n", + "i=3.6#A\n", + "f2=40#Hz\n", + "i2=2.4#A\n", + "\n", + "#calculations\n", + "e2=v*i2*f2/(f*i)\n", + "\n", + "#result\n", + "print \"e2=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e2= 160.0 V\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.13, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=0\n", + "f=50.0#Hz\n", + "slot=2\n", + "z=4\n", + "theta=150#degrees\n", + "phi=0.12#Wb\n", + "per=20#%\n", + "\n", + "#calculations\n", + "alpha=180-theta\n", + "slotp=6\n", + "m=2\n", + "beta=180/slotp\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=10*slot*z\n", + "t=z/2\n", + "e1=4.44*kd1*kd1*f*0.12*t\n", + "kc3=math.cos(3*math.radians(alpha/2))\n", + "f2=f*3\n", + "phi3=(1.0/3)*per*0.12\n", + "e3=4.44*kd3*kd3*theta*0.008*40\n", + "e=(e1**2+e3**2)**0.5\n", + "\n", + "#result\n", + "print \"e=\",e,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e= 994.25286629 V\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.14, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "per=10.0#%\n", + "per2=6.0#%\n", + "f=50.0#Hz\n", + "r=10.0#ohm\n", + "\n", + "#calculation\n", + "#star connection\n", + "e5=per*v/100\n", + "e=(v**2+e5**2)**0.5\n", + "eph=3**0.5*e\n", + "\n", + "#delta\n", + "e3=10*v/100\n", + "f3=10*3\n", + "i=e3/f3\n", + "\n", + "#result\n", + "print \"line voltage for star=\",eph,\"V\"\n", + "print \"line voltage for delta=\",e3,\"V\"\n", + "print \"current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage for star= 400.358589267 V\n", + "line voltage for delta= 23.0 V\n", + "current= 0.766666666667 A\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(a), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10.0\n", + "p1=24.0\n", + "f=25#Hz\n", + "p3=6.0\n", + "s=0.05\n", + "\n", + "#calculation\n", + "n=120*f/p\n", + "f1=p1*n/120\n", + "n2=120*f1/6\n", + "n3=(1-s)*n2\n", + "f2=s*f1p\n", + "\n", + "\n", + "#result\n", + "print \"frequency=\",f1,\"Hz\"\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 60.0 Hz\n", + "speed= 1140.0 rpm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(b), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "phi=0.12#Wb\n", + "slotsp=4\n", + "cp=4\n", + "theta=150#degrees\n", + "\n", + "#calculation\n", + "slots=slotsp*3*p\n", + "c=cp*slots\n", + "turns=32\n", + "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", + "kp=math.cos(math.radians(15))\n", + "eph=4.44*50*0.12*kb*0.966*turns\n", + "el=eph*3**0.5\n", + "\n", + "#result\n", + "print \"line voltage\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage 1365.94840977 V\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.16, Page Number:1426" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.85\n", + "v=11#kV\n", + "r=0.1#ohm\n", + "x=0.66#ohm\n", + "\n", + "#calculation\n", + "i=load*10**6/(3**0.5*v*1000*pf)\n", + "iradrop=i*r\n", + "ixsdrop=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", + "el=3**0.5*e0\n", + "\n", + "#result\n", + "print \"linevalue of emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "linevalue of emf= 11475.6408913 V\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(a), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=50.0#Hz\n", + "load=440.0#KVA\n", + "r=0.5#ohm\n", + "i=40.0#A\n", + "il=200.0#A\n", + "vf=1160.0#V\n", + "\n", + "#calculations\n", + "zs=vf/200\n", + "xs=(zs**2-r**2)**0.5\n", + "\n", + "#result\n", + "print \"synchronous impedence=\",zs,\"ohm\"\n", + "print \"synchronous reactance=\",xs,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous impedence= 5.8 ohm\n", + "synchronous reactance= 5.77840808528 ohm\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(b), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60.0#kVA\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.016#ohm\n", + "x=0.07#ohm\n", + "pf=0.7\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "ira=i*r\n", + "ixl=i*x\n", + "#unity pf\n", + "e=((v+ira)**2+(ixl)**2)**0.5\n", + "#pf of 0.7 lag\n", + "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", + "#pf of 0.7 lead\n", + "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", + "\n", + "#result\n", + "print \"voltage with pf=1\",e,\"V\"\n", + "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", + "print \"voltage with pf=0.7 lead\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage with pf=1 225.174386048 V\n", + "voltage with pf=0.7 lag 234.604995966 V\n", + "voltage with pf=0.7 lead 208.03726621 V\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.18(a), Page Number:1429" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=440.0#V\n", + "f=50.0#Hz\n", + "r=0.25#ohm\n", + "x=3.2#ohm\n", + "xl=0.5#ohm\n", + "\n", + "#calculation\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "rd=i*r\n", + "ixl=i*xl\n", + "ea=((v+rd)**2+(ixl)**2)**0.5\n", + "el=3**0.5*ea\n", + "e0=((v+rd)**2+(i*x)**2)**0.5\n", + "e0l=e0*3**0.5\n", + "per=(e0-v)/v\n", + "xa=x-xl\n", + "#result\n", + "print \"internal emf Ea=\",el,\"V\"\n", + "print \"no load emf=\",e0l,\"V\"\n", + "print \"percentage regulation=\",per*100,\"%\"\n", + "print \"valueof synchronous reactance=\",xa,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "internal emf Ea= 471.842539659 V\n", + "no load emf= 592.991130967 V\n", + "percentage regulation= 34.7707115833 %\n", + "valueof synchronous reactance= 2.7 ohm\n" + ] + } + ], + "prompt_number": 87 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.19, Page Number:1432" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=50.0#V\n", + "r=0.1#ohm\n", + "il=100.0#A\n", + "pf=0.8\n", + "vt=200.0#V\n", + "\n", + "#calculation\n", + "zs=v/vt\n", + "xs=(zs**2-r**2)**0.5\n", + "ira=il*r\n", + "ixs=il*xs\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "\n", + "#result\n", + "print \"induced voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced voltage= 222.090276316 V\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.20, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2000.0#V\n", + "i=100.0#A\n", + "pf=0.8\n", + "pf2=0.71\n", + "i2=2.5#A\n", + "v2=500.0#V\n", + "r=0.8#ohm\n", + "\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "sinphi2=math.sin(math.acos(pf2))\n", + "zs=v2/i\n", + "xs=(zs**2-r**2)**.5\n", + "#unity pf\n", + "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", + "reg1=(e01-v)*100/v\n", + "#at pf=0.8\n", + "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v)*100/v\n", + "#at pf=0.71\n", + "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", + "reg3=(e03-v)*100/v\n", + "\n", + "#result\n", + "print \"voltage regulation unity pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", + "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.6\n", + "voltage regulation unity pf= 6.88779163216 %\n", + "voltage regulation 0.8 lag pf= -8.875640156 %\n", + "voltage regulation 0.71 lead pf= 21.1141910671 %\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.21, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=3000.0#V\n", + "load=100.0#kVA\n", + "f=50.0#Hz\n", + "r=0.2\n", + "i1=40.0#A\n", + "i2=200.0#A\n", + "v2=1040.0#V\n", + "pf=0.8\n", + "v1=v/3**0.5\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**.5\n", + "i=load*1000/(3**0.5*v)\n", + "\n", + "\n", + "#at pf=0.8 lag\n", + "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", + "reg1=(e01-v1)*100/v1\n", + "#at pf=0.8 lead\n", + "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v1)*100/v1\n", + "\n", + "#result\n", + "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation 0.8 lag pf= 2.20611574348 %\n", + "voltage regulation 0.8 lag pf= -1.77945143824 %\n" + ] + } + ], + "prompt_number": 112 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.22, Page Number:1434" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1600.0#kVA\n", + "v=13500.0#V\n", + "r=1.5#ohm\n", + "x=30.0#ohm\n", + "load1=1280.0#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi1=math.sin(math.acos(pf))\n", + "i=load1*1000/(3**0.5*v*pf)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", + "regn=(e0-vp)*100/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= -11.9909032489 %\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.23, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "pf=0.8\n", + "r=0.5#ohm\n", + "x=10.0#ohm\n", + "\n", + "#calculations\n", + "i=load*1000/(3**0.5*v)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", + "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", + "\n", + "#result\n", + "print \"voltage regulation=\",regn*100,\"%\"\n", + "print \"power angle=\",delta,\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 48.0405877623 %\n", + "power angle= 18.9704078085 degrees\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.24, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6000.0#KVA\n", + "v=6600.0#V\n", + "p=2.0\n", + "f=50.0#Hz\n", + "i2=125.0#A\n", + "v1=8000.0#V\n", + "i3=800.0#A\n", + "d=0.03\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v1/(3**0.5*i3)\n", + "vp=v/3**0.5\n", + "rd=d*vp\n", + "il=load*1000/(3**0.5*v)\n", + "ira=rd\n", + "ra=ira/il\n", + "xs=(zs**2-ra**2)**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", + "reg=(e0-vp)/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",reg*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= 62.2972136768 %\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.25, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "load=2000#KVA\n", + "v=2300#V\n", + "i=600#A\n", + "v2=900#V\n", + "r=0.12#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i)\n", + "rp=r/2\n", + "re=rp*1.5\n", + "xs=(zs**2-re**2)**0.5\n", + "il=load*1000/(3**0.5*v)\n", + "ira=il*rp\n", + "ixs=il*xs\n", + "vp=v/3**0.5\n", + "e0=((vp+ira)**2+(ixs)**2)**0.5\n", + "reg1=(e0-vp)/vp\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "reg2=(e0-vp)/vp\n", + "#result\n", + "print \"regulation at pf=1\",reg1*100,\"%\"\n", + "print \"regulation at pf=0.8\",reg2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=1 7.32796146323 %\n", + "regulation at pf=0.8 23.8398862235 %\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.26, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=Symbol('v')\n", + "load=2000#KVA\n", + "load1=11#KV\n", + "r=0.3#ohm\n", + "x=5#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "i=load*1000/(3**0.5*load1*1000)\n", + "vt=load1*1000/3**0.5\n", + "ira=i*r\n", + "ixs=i*x\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v[1],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 6978.31767618569 V\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.27, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1200#KVA\n", + "load1=3.3#KV\n", + "f=50#Hz\n", + "r=0.25#ohm\n", + "i=35#A\n", + "i2=200#A\n", + "v=1.1#kV\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zs=v*1000/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**0.5\n", + "v=load1*1000/3**0.5\n", + "theta=math.atan(xs/r)\n", + "ia=load*1000/(3**0.5*load1*1000)\n", + "e=v+ia*zs\n", + "change=(e-v)/v\n", + "\n", + "#result\n", + "print \"per unit change=\",change" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "per unit change= 0.349909254054\n" + ] + } + ], + "prompt_number": 151 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.28, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11#kV\n", + "load=3#MVA\n", + "i=100#A\n", + "v2=12370#V\n", + "vt=11000#V\n", + "pf=0.8\n", + "r=0.4#ohm\n", + "\n", + "#calculation\n", + "E0=v1*1000/3**0.5\n", + "v=v2/3**0.5\n", + "pf=0\n", + "sinphi=1\n", + "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", + "il=load*10**6/(3**0.5*v1*1000)\n", + "ira=il*r\n", + "ixs=il*xs\n", + "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", + "regn=(e0-E0)*100/E0\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 19.6180576177 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.29, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pf=0.8\n", + "vt=3500#v\n", + "load=2280#KW\n", + "v1=3300#V\n", + "r=8#ohm\n", + "x=6#ohm\n", + "\n", + "#calculation\n", + "vl=vt/3**0.5\n", + "vp=v1/3**0.5\n", + "il=load*1000/(3**0.5*v1*pf)\n", + "drop=vl-vp\n", + "z=(r**2+x**2)**0.5\n", + "x=vl/(z+drop/il)\n", + "vtp=vl-x*drop/il\n", + "vtpl=vtp*3**0.5\n", + "\n", + "#result\n", + "print \"terminal voltage=\",vtpl,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 3420.781893 V\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.30, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.5#MVA\n", + "v=4160#V\n", + "f=50#Hz\n", + "i=200#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "il=load*10**6/(3**0.5*v)\n", + "zs=4750/(3**0.5*il)\n", + "ra=0\n", + "ixs=il*zs\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 0.91675794767 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.39, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "xd=0.7\n", + "xq=0.4\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "ia=1\n", + "tandelta=ia*xq*pf/(v+xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(math.radians(36.9)+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"no load voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 14.4702941001 degrees\n", + "no load voltage= 1.51511515874 V\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.40, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "xd=0.6\n", + "xq=0.45\n", + "ra=0.015\n", + "pf=0.8\n", + "ia=1\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "#calculation\n", + "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", + "psi=math.atan(tanpsi)\n", + "delta=psi-math.acos(pf)\n", + "i_d=ia*math.sin(psi)\n", + "iq=ia*math.cos(psi)\n", + "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", + "regn=(e0-v)*100/v\n", + "\n", + "#result\n", + "print \"open circuit voltage=\",e0,\"V\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "open circuit voltage= 1.44767600311 V\n", + "regulation= 44.7676003107 %\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.41, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=10#A\n", + "phi=math.radians(20)\n", + "v=400#V\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "pf=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(phi+delta)\n", + "iq=ia*math.cos(phi+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "regn=(e0-v)/v\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"id=\",i_d,\"A\"\n", + "print \"iq=\",iq,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 8.23131209115 degrees\n", + "id= 4.7303232581 A\n", + "iq= 8.81045071911 A\n" + ] + } + ], + "prompt_number": 189 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.42, Page Number:1459" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e1=220#V\n", + "f1=60#Hz\n", + "e2=222#V\n", + "f2=59#Hz\n", + "\n", + "#calculation\n", + "emax=(e1+e2)/2\n", + "emin=(e2-e1)/2\n", + "f=(f1-f2)\n", + "epeak=emax/0.707\n", + "pulse=(f1-f2)*60\n", + "\n", + "#result\n", + "print \"max voltage=\",emax,\"V\"\n", + "print \"min voltage=\",emin,\"V\"\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"peak value of voltage=\",epeak,\"V\"\n", + "print \"number of maximum light pulsations/minute=\",pulse" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max voltage= 221 V\n", + "min voltage= 1 V\n", + "frequency= 1 Hz\n", + "peak value of voltage= 312.588401697 V\n", + "number of maximum light pulsations/minute= 60\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.43, Page Number:1462" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=1500#kVA\n", + "v=6.6#kV\n", + "r=0.4#ohm\n", + "x=6#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=power*1000/(3**0.5*v*1000)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", + "phialpha=math.atan(tanphialpha)\n", + "alpha=phialpha-phi\n", + "\n", + "#result\n", + "print \"power angle=\",math.degrees(alpha)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power angle= 7.87684146241\n" + ] + } + ], + "prompt_number": 198 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.44, Page Number:1464" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3000#KVA\n", + "p=6\n", + "n=1000#rpm\n", + "v=3300#v\n", + "x=0.25\n", + "\n", + "#calculation\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "ixs=x*vp\n", + "xs=x*vp/i\n", + "alpha=1*p/2\n", + "psy=3*3.14*vp**2/(60*xs*n)\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronizing power=\",psy,\"kW\"\n", + "print \"torque=\",tsy*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronizing power= 628.0 kW\n", + "torque= 5997.4 N-m\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.45, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3#MVA\n", + "n=1000#rpm\n", + "v1=3.3#kV\n", + "r=0.25\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "vp=v1*1000/3**0.5\n", + "i=load*1000000/(3**0.5*v1*1000)\n", + "ixs=complex(0,r*vp)\n", + "xs=ixs/i\n", + "v=vp*complex(pf,math.sin(math.acos(pf)))\n", + "e0=v+ixs\n", + "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", + "p=6/2\n", + "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", + "tsy=9.55*3*psy*100/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", + "print \"toque=\",-tsy/100,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 722.236196153j kW\n", + "toque= 6897.35567326j N-m\n" + ] + } + ], + "prompt_number": 221 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.46, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=750#KVA\n", + "v=11#kV\n", + "p=4\n", + "r=1#%\n", + "x=15#%\n", + "pf=0.8\n", + "#calculation\n", + "i=load*1000/(3**0.5*v*1000)\n", + "vph=v*1000/3**0.5\n", + "ira=r*vph/1000\n", + "ra=ira/i\n", + "xs=x*vph/(100*i)\n", + "zs=(ra**2+xs**2)**0.5\n", + "#no load\n", + "alpha=p/2\n", + "psy=math.radians(alpha)*vph**2/xs\n", + "#fl 0.8 pf\n", + "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", + "psy2=math.radians(alpha)*e*vph/xs\n", + "\n", + "#result\n", + "print \"Synchronous power at:\"\n", + "print \"no load=\",psy,\"W\"\n", + "print \"at pf of 0.8=\",psy2,\"w\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous power at:\n", + "no load= 58177.6417331 W\n", + "at pf of 0.8= 73621.2350169 w\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.47, Page Number:1466" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=2000#KVA\n", + "p=8\n", + "n=750#rpm\n", + "v1=6000#V\n", + "pf=0.8\n", + "r=6#ohm\n", + "\n", + "#calculations\n", + "alpha=math.radians(4)\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", + "psy=alpha*e0*v*3/r\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",psy,\"W\"\n", + "print \"synchronous torque=\",tsy,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 514916.500204 W\n", + "synchronous torque= 6556.60343593 N-m\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.48, Page Number:1467" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "n=1500#rpm\n", + "f=50#Hz\n", + "r=20#%\n", + "pf=0.8\n", + "phi=0.5\n", + "\n", + "#calculations\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "xs=r*vp/(1000*i)\n", + "p=120*f/n\n", + "alpha=math.radians(2)\n", + "#no load\n", + "psy=3*alpha*vp**2/(p*1000)\n", + "tsy=9.55*psy*1000/(n*2)\n", + "#pf=0.8\n", + "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", + "ixs=complex(0,i*4)\n", + "e0=v+ixs\n", + "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", + "tsy2=9.55*psy2/(n*20)\n", + "\n", + "#result\n", + "print \"synchronous power:\"\n", + "print \"atno load=\",psy,\"w\"\n", + "print \"at 0.8 pf=\",psy2,\"w\"\n", + "print \"torque:\"\n", + "print \"at no load=\",tsy,\"N-m\"\n", + "print \"at pf=0.8=\",tsy2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power:\n", + "atno load= 872.664625997 w\n", + "at 0.8 pf= 1506057.44405 w\n", + "torque:\n", + "at no load= 2777.98239276 N-m\n", + "at pf=0.8= 479.428286357 N-m\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.49, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6.6#kW\n", + "load1=3000#kW\n", + "pf=0.8\n", + "xa=complex(0.5,10)\n", + "xb=complex(0.4,12)\n", + "i0=150#A\n", + "\n", + "#calculation\n", + "v=complex(load*1000/3**0.5,0)\n", + "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", + "phi1=math.acos(cosphi1)\n", + "sinphi1=math.sin(phi1)\n", + "i=328*complex(pf,-math.sin(math.acos(pf)))\n", + "i1=i0*complex(cosphi1,-sinphi1)\n", + "i2=i-i1\n", + "coshi2=i2.real/181\n", + "ea=v+i1*xa\n", + "eal=3**0.5*abs(ea)\n", + "eb=v+i2*xb\n", + "ebl=3**0.5*abs(eb)\n", + "alpha1=(ea.imag/ea.real)\n", + "alpha2=(eb.imag/eb.real)\n", + "#result\n", + "print \"Ea=\",ea,\"V\"\n", + "print \"Eb=\",eb,\"V\"\n", + "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", + "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ea= (4602.91884998+1275.81974829j) V\n", + "Eb= (5352.42648271+1524.56032028j) V\n", + "alpha1= 15.8810288383 degrees\n", + "alpha2= 16.3198639435 degrees\n" + ] + } + ], + "prompt_number": 245 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.50, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declration\n", + "e1=complex(230,0)\n", + "e2=230*complex(0.985,0.174)\n", + "z1=complex(0,2)\n", + "z2=complex(0,3)\n", + "z=6\n", + "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", + "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", + "i=i1+i2\n", + "v=i*z\n", + "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", + "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v,\"V\"\n", + "print \"current\",i,\"A\"\n", + "print \"power 1=\",p1,\"W\"\n", + "print \"power 2=\",p2,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= (222.905384615-28.5730769231j) V\n", + "current (37.1508974359-4.76217948718j) A\n", + "power 1= 3210.60292765 W\n", + "power 2= 5138.29001053 W\n" + ] + } + ], + "prompt_number": 249 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.51, Page Number:1471" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1500#kW\n", + "v=11#KV\n", + "pf=0.867\n", + "x=50#ohm\n", + "r=4#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "il=load*1000/(3**0.5*v*1000*pf)\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "iwatt=il*pf\n", + "iwattless=il*sinphi\n", + "i1=il/2\n", + "i2=iwatt/2\n", + "iw1=(i**2-i1**2)**0.5\n", + "iw2=i2-iw1\n", + "ia=(i2**2+iw2**2)**0.5\n", + "vt=v*1000/3**0.5\n", + "ir=i*r\n", + "ix=x*i\n", + "cosphi=i2/i\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", + "el=3**0.5*e\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 43.4628778514 A\n", + "line voltage= 14304.0798593 V\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.52, Page Number:1472" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.8\n", + "output=6000#kW\n", + "pfa=0.92\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "phia=math.acos(pfa)\n", + "tanphi=math.tan(phi)\n", + "tanphia=math.tan(phia)\n", + "loadkvar=load*1000*tanphi\n", + "akvar=output*tanphia\n", + "kwb=(load*1000-output)\n", + "kvarb=loadkvar-akvar\n", + "kvab=complex(kwb,kvarb)\n", + "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", + "kvarb=kwb*pfb\n", + "kvara=-loadkvar-kvarb\n", + "kvaa=complex(output,kvara)\n", + "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", + "\n", + "#result\n", + "print \"new pfb=\",pfb\n", + "print \"new pfa=\",pfa" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new pfb= 0.628980253433\n", + "new pfa= 0.513894032194\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.54, Page Number:1473" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=6600#V\n", + "load=1000#KVA\n", + "x=20#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=87.5\n", + "x=8.7\n", + "vp=3810\n", + "e0=4311\n", + "ir=70\n", + "ix=52.5\n", + "IX=762\n", + "vb1=(e0**2-vp**2)**0.5\n", + "i1x=vb1\n", + "i1=i1x/x\n", + "output=3**0.5*v*i1/1000\n", + "b2v=(vp**2+e0**2)**0.5\n", + "i2z=b2v\n", + "i2=b2v/x\n", + "i2rx=e0\n", + "i2r=i2rx/x\n", + "i2x=vp/x\n", + "tanphi2=i2x/i2r\n", + "phi2=math.atan(tanphi2)\n", + "cosphi2=math.cos(phi2)\n", + "output1=3**0.5*v*i2*cosphi2/1000\n", + "\n", + "#result\n", + "print \"power output at unity pf=\",output,\"kW\"\n", + "print \"max power output=\",output1,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " power output at unity pf= 2650.38477722 kW\n", + "max power output= 5664.52285143 kW\n" + ] + } + ], + "prompt_number": 255 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.55, Page Number:1474" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=10.0#ohm\n", + "i=220.0#A\n", + "load=11.0#kV\n", + "per=25.0#%\n", + "\n", + "#calculations\n", + "oa1=load*1000/3**0.5\n", + "a1c1=i*x\n", + "e0=(oa1**2+a1c1**2)**0.5\n", + "emf=(1+per/100)*e0\n", + "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", + "ix=a1a2/x\n", + "i1=(i**2+ix**2)**0.5\n", + "pf=i/i1\n", + "bv=(oa1**2+emf**2)**0.5\n", + "imax=bv/x\n", + "ir=emf/x\n", + "ix=oa1/x\n", + "pfmax=ir/imax\n", + "output=3**0.5*load*1000*imax*pfmax*0.001\n", + "#result\n", + "print \"new current=\",i1,\"A\"\n", + "print \"new power factor=\",pf\n", + "print \"max power output=\",output,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new current= 281.573453399 A\n", + "new power factor= 0.781323655849\n", + "max power output= 16006.7954319 kW\n" + ] + } + ], + "prompt_number": 258 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.56, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#MVA\n", + "load1=35.0#MVA\n", + "pf=0.8\n", + "output=25.0#MVA\n", + "cosphi1=0.9\n", + "\n", + "#calculations\n", + "loadmw=load1*pf\n", + "loadmvar=load1*0.6\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "mva1=25\n", + "mw1=mva1*cosphi1\n", + "mvar1=25*sinphi1\n", + "mw2=loadmw-mw1\n", + "mvar2=loadmvar-mvar1\n", + "mva2=(mw2**2+mvar2**2)**0.5\n", + "cosphi2=mw2/mva2\n", + "\n", + "#result\n", + "print \"output=\",mva2\n", + "print \"pf=\",cosphi2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 10.4509862952\n", + "pf= 0.52626611926\n" + ] + } + ], + "prompt_number": 260 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.57, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "load=600#KW\n", + "loadm=707#kW\n", + "pf=0.707\n", + "output=900#kW\n", + "pf1=0.9\n", + "\n", + "#calculation\n", + "kva=1000\n", + "kvar=kva*(1-pf1**2)**0.5\n", + "active_p=1307-output\n", + "reactive_p=loadm-kvar\n", + "\n", + "#result\n", + "print \"active power shared by second machine=\",active_p,\"kW\"\n", + "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "active power shared by second machine= 407 kW\n", + "reactive power shared by second machine= 271.110105646 kVAR\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.58, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l1=500#kW\n", + "l2=1000#kW\n", + "pf1=0.9\n", + "l3=800#kW\n", + "pf2=0.8\n", + "l4=500#kW\n", + "pf3=0.9\n", + "output=1500#kW\n", + "pf=0.95\n", + "\n", + "#calculation\n", + "kw1=l1\n", + "kw2=l2\n", + "kw3=l3\n", + "kw4=500\n", + "kvar2=kw2*0.436/pf1\n", + "kvar3=kw3*0.6/pf2\n", + "kvar4=kw4*0.436/pf3\n", + "kvar=output/pf\n", + "kw=kw1+kw2+kw3+kw4-output\n", + "kvar=kvar2+kvar3+kvar4-kvar\n", + "cosphi=math.cos(math.atan(kvar/kw))\n", + "\n", + "#result\n", + "print \"kW output=\",kw\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kW output= 1300\n", + "pf= 0.981685651341\n" + ] + } + ], + "prompt_number": 264 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.59, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=complex(0.2,2)\n", + "ze=complex(3,4)\n", + "emf1=complex(2000,0)\n", + "emf2=complex(22000,100)\n", + "\n", + "#calculations\n", + "i1=complex(68.2,-102.5)\n", + "i2=complex(127,-196.4)\n", + "i=i1+i2\n", + "v=i*ze\n", + "pva1=v*i1\n", + "kw1=pva1.real*3\n", + "a11=math.atan(-i1.imag/i1.real)\n", + "a12=math.atan(-v.imag/v.real)\n", + "pf1=math.cos(a11-a12)\n", + "pva2=v*i2\n", + "kw2=pva2.real*3\n", + "a21=math.atan(-i2.imag/i2.real)\n", + "a22=math.atan(-v.imag/v.real)\n", + "pf2=math.cos(a21-a22)\n", + "\n", + "#result\n", + "print \"kw output 1=\",kw1/1000\n", + "print \"pf 1=\",pf1\n", + "print \"kw output 2=\",kw2/1000\n", + "print \"pf 2=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kw output 1= 328.79427\n", + "pf 1= 0.606839673468\n", + "kw output 2= 610.34892\n", + "pf 2= 0.596381892841\n" + ] + } + ], + "prompt_number": 273 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.63, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "f=50#Hz\n", + "ns=1500#rpm\n", + "j=1.5*10**4#khm2\n", + "ratio=5\n", + "\n", + "#calculation\n", + "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"natural time period of oscillation=\",round(t,3),\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "natural time period of oscillation= 1.364 s\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.64, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10000#KVA\n", + "p=4\n", + "v=6600#V\n", + "f=50#Hz\n", + "xs=25#%\n", + "pf=1.5\n", + "\n", + "#calculations\n", + "ratio=100/xs\n", + "ns=120*f/p\n", + "j=(pf/(0.0083*ns))**2*load*ratio*f\n", + "\n", + "#result\n", + "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "moment of inertia= 29.0317898098 x10^4 kg-m2\n" + ] + } + ], + "prompt_number": 277 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.65, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#MVA\n", + "v=10.0#kV\n", + "f=50.0#Hz\n", + "ns=1500.0#rpm\n", + "j=2.0*10**5#kgm2\n", + "x=40.0\n", + "\n", + "#calculation\n", + "ratio=100.0/x\n", + "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation of the rotor= 0.2 Hz\n" + ] + } + ], + "prompt_number": 283 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.66, Page Number:1483" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=11#kV\n", + "z=complex(1,10)\n", + "emf=14#kV\n", + "\n", + "#calculations\n", + "e=emf*1000/3**0.5\n", + "v=v*1000/3**0.5\n", + "costheta=z.real/abs(z)\n", + "pmax=e*v*3/(z.imag*1000)\n", + "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", + "\n", + "#result\n", + "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max output = 14125.5529273 kW\n" + ] + } + ], + "prompt_number": 285 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.67, Page Number:1484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=11#kVA\n", + "load1=10#MW\n", + "z=complex(0.8,8.0)\n", + "v=14#kV\n", + "\n", + "#calculations\n", + "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", + "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", + "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", + "\n", + "#result\n", + "print \"maximum output=\",pmax/1000000,\"MW\"\n", + "print \"current=\",imax,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum output= 19.25 MW\n", + "current= 1284.92866209 A\n", + "pf= 0.786318338822\n" + ] + } + ], + "prompt_number": 289 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_2.ipynb new file mode 100644 index 00000000..7e0be0a9 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_2.ipynb @@ -0,0 +1,2781 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 37: Alternators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.1, Page Number:1412" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s1=36.0\n", + "p1=4.0\n", + "span1=8.0\n", + "s2=72.0\n", + "p2=6.0\n", + "span2=10.0\n", + "s3=96.0\n", + "p3=6.0\n", + "span3=12.0\n", + "\n", + "#calculations\n", + "alpha1=2*p1*180/s1\n", + "alpha2=3*p2*180/s2\n", + "alpha3=5*p3*180/s3\n", + "kc1=math.cos(math.radians(alpha1/2))\n", + "kc2=math.cos(math.radians(alpha2/2))\n", + "kc3=math.cos(math.radians(alpha3/2))\n", + "\n", + "#result\n", + "print \"a)kc=\",kc1\n", + "print \"b)kc=\",kc2\n", + "print \"c)kc=\",kc3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)kc= 0.939692620786\n", + "b)kc= 0.923879532511\n", + "c)kc= 0.881921264348\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.2, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=36.0\n", + "p=4.0\n", + "\n", + "#calculations\n", + "n=s/p\n", + "beta=180/n\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"distribution factor=\",kd" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "distribution factor= 0.959795080524\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.3, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=10.0#V\n", + "beta=30.0#degrees\n", + "m=6.0\n", + "\n", + "#calculations\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "arith_sum=6*v\n", + "vector_sum=kd*arith_sum\n", + "\n", + "#calculation\n", + "print \"emf of six coils in series=\",vector_sum,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of six coils in series= 38.6370330516 V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.4, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "beta=180/9\n", + "ratio=2.0/3.0\n", + "m1=9\n", + "m2=6\n", + "m3=3\n", + "\n", + "#calculation\n", + "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", + "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"i) kd=\",kd1\n", + "print \"ii)kd=\",kd2\n", + "print \"iii)kd=\",kd3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) kd= 0.639863387016\n", + "ii)kd= 0.831206922161\n", + "iii)kd= 0.959795080524\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.5, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "slot=18.0\n", + "s=16.0\n", + "m1=3.0\n", + "m2=5.0\n", + "m3=7.0\n", + "\n", + "#calculations\n", + "span=(s-1)\n", + "alpha=180*3/slot\n", + "kc1=math.cos(math.radians(alpha/2))\n", + "kc3=math.cos(math.radians(m1*alpha/2))\n", + "kc5=math.cos(math.radians(m2*alpha/2))\n", + "kc7=math.cos(math.radians(m3*alpha/2))\n", + "\n", + "#result\n", + "print \"kc1=\",kc1\n", + "print \"kc3=\",kc3\n", + "print \"kc5=\",kc5\n", + "print \"kc7=\",kc7" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kc1= 0.965925826289\n", + "kc3= 0.707106781187\n", + "kc5= 0.258819045103\n", + "kc7= -0.258819045103\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.6, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "s=144.0\n", + "z=10.0\n", + "phi=0.03#Wb\n", + "n=375.0#rpm\n", + "\n", + "#calculation\n", + "f=p*n/120\n", + "n=s/p\n", + "beta=180/9\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "t=s*z/(3*2)\n", + "eph=4.44*1*0.96*f*phi*t\n", + "el=3**0.5*eph\n", + "#result\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"phase emf=\",eph,\"V\"\n", + "print \"line emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 50.0 Hz\n", + "phase emf= 1534.464 V\n", + "line emf= 2657.76961039 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.7, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "s=54\n", + "phi=0.1#Wb\n", + "n=1200#rpm\n", + "t=8\n", + "#calculations\n", + "beta=180/9\n", + "kc=math.cos(beta/2)\n", + "f=p*n/120\n", + "n=s/p\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=s*8/3\n", + "t=z/2\n", + "eph=4.44*0.98*0.96*f*phi*t\n", + "el=3**0.*eph\n", + "\n", + "#result\n", + "print \"eph=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eph= 1804.529664 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.8, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "slots=144.0\n", + "z=4.0\n", + "n=375.0\n", + "airgap=5*0.01\n", + "theta=150.0\n", + "\n", + "#calculation\n", + "kf=1.11\n", + "alpha=(180-theta)\n", + "kc=math.cos(math.radians(alpha/2))\n", + "beta=180/9\n", + "m=slots/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "f=p*n/120\n", + "s=slots/3\n", + "eph=4*kf*kc*kd*f*airgap*s*4/2\n", + "\n", + "#result\n", + "print \"emf per phase=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf per phase= 987.908016392 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.9, Page Number:1417" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10\n", + "f=50#Hz\n", + "n=600#rpm\n", + "slots=180\n", + "s=15\n", + "d=1.2#m\n", + "l=0.4#m\n", + "m=6\n", + "beta=180/18\n", + "#calculations\n", + "area=(1.2*3.14/p)*l\n", + "phi1=area*0.637\n", + "vr=1.1*2*f*phi1\n", + "vp=2**0.5*vr\n", + "v3=0.4*vp\n", + "v5=0.2*vp\n", + "vf=6*vp*0.966\n", + "vf3=6*v3*0.707\n", + "vf5=6*v5*0.259\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", + "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", + "vph=vf*2**0.5*60*kd1\n", + "vph3=vf3*2**0.5*60*kd2\n", + "vph5=vf5*2**0.5*60*kd3\n", + "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", + "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", + "\n", + "#result\n", + "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", + "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", + "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", + "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", + "iii)rms value of phase voltage= 7158.83679423 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.10, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "slot=60.0\n", + "z=4.0\n", + "s=3.0\n", + "theta=60.0\n", + "phi=0.943#Wb\n", + "\n", + "#calculation\n", + "m=slot/(p*s)\n", + "beta=slot/5\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "alpha=(s/15)*180\n", + "kc=math.cos(math.radians(alpha/2))\n", + "z=slot*z/s\n", + "t=z/2\n", + "kf=1.11\n", + "eph=z*kf*kc*kd*f*phi*t/2\n", + "el=3**0.5*eph*0.1\n", + "\n", + "#result\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage= 13196.4478482 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.11, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slot=15.0\n", + "z=10.0\n", + "kd=0.95\n", + "e=1825#v\n", + "kc=1\n", + "kf=1.11\n", + "#calculations\n", + "slots=p*slot\n", + "slotsp=slots/3\n", + "turnp=20*z/2\n", + "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", + "z=slots*z\n", + "n=120*f/p\n", + "eg=(phi*0.001*z*n)/slots\n", + "\n", + "#result\n", + "print \"emf=\",eg*1000,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 749.405577006 V\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.12, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=360#V\n", + "f=60.0#Hz\n", + "i=3.6#A\n", + "f2=40#Hz\n", + "i2=2.4#A\n", + "\n", + "#calculations\n", + "e2=v*i2*f2/(f*i)\n", + "\n", + "#result\n", + "print \"e2=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e2= 160.0 V\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.13, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=0\n", + "f=50.0#Hz\n", + "slot=2\n", + "z=4\n", + "theta=150#degrees\n", + "phi=0.12#Wb\n", + "per=20#%\n", + "\n", + "#calculations\n", + "alpha=180-theta\n", + "slotp=6\n", + "m=2\n", + "beta=180/slotp\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=10*slot*z\n", + "t=z/2\n", + "e1=4.44*kd1*kd1*f*0.12*t\n", + "kc3=math.cos(3*math.radians(alpha/2))\n", + "f2=f*3\n", + "phi3=(1.0/3)*per*0.12\n", + "e3=4.44*kd3*kd3*theta*0.008*40\n", + "e=(e1**2+e3**2)**0.5\n", + "\n", + "#result\n", + "print \"e=\",e,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e= 994.25286629 V\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.14, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "per=10.0#%\n", + "per2=6.0#%\n", + "f=50.0#Hz\n", + "r=10.0#ohm\n", + "\n", + "#calculation\n", + "#star connection\n", + "e5=per*v/100\n", + "e=(v**2+e5**2)**0.5\n", + "eph=3**0.5*e\n", + "\n", + "#delta\n", + "e3=10*v/100\n", + "f3=10*3\n", + "i=e3/f3\n", + "\n", + "#result\n", + "print \"line voltage for star=\",eph,\"V\"\n", + "print \"line voltage for delta=\",e3,\"V\"\n", + "print \"current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage for star= 400.358589267 V\n", + "line voltage for delta= 23.0 V\n", + "current= 0.766666666667 A\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(a), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10.0\n", + "p1=24.0\n", + "f=25#Hz\n", + "p3=6.0\n", + "s=0.05\n", + "\n", + "#calculation\n", + "n=120*f/p\n", + "f1=p1*n/120\n", + "n2=120*f1/6\n", + "n3=(1-s)*n2\n", + "f2=s*f1p\n", + "\n", + "\n", + "#result\n", + "print \"frequency=\",f1,\"Hz\"\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 60.0 Hz\n", + "speed= 1140.0 rpm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(b), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "phi=0.12#Wb\n", + "slotsp=4\n", + "cp=4\n", + "theta=150#degrees\n", + "\n", + "#calculation\n", + "slots=slotsp*3*p\n", + "c=cp*slots\n", + "turns=32\n", + "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", + "kp=math.cos(math.radians(15))\n", + "eph=4.44*50*0.12*kb*0.966*turns\n", + "el=eph*3**0.5\n", + "\n", + "#result\n", + "print \"line voltage\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage 1365.94840977 V\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.16, Page Number:1426" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.85\n", + "v=11#kV\n", + "r=0.1#ohm\n", + "x=0.66#ohm\n", + "\n", + "#calculation\n", + "i=load*10**6/(3**0.5*v*1000*pf)\n", + "iradrop=i*r\n", + "ixsdrop=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", + "el=3**0.5*e0\n", + "\n", + "#result\n", + "print \"linevalue of emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "linevalue of emf= 11475.6408913 V\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(a), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=50.0#Hz\n", + "load=440.0#KVA\n", + "r=0.5#ohm\n", + "i=40.0#A\n", + "il=200.0#A\n", + "vf=1160.0#V\n", + "\n", + "#calculations\n", + "zs=vf/200\n", + "xs=(zs**2-r**2)**0.5\n", + "\n", + "#result\n", + "print \"synchronous impedence=\",zs,\"ohm\"\n", + "print \"synchronous reactance=\",xs,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous impedence= 5.8 ohm\n", + "synchronous reactance= 5.77840808528 ohm\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(b), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60.0#kVA\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.016#ohm\n", + "x=0.07#ohm\n", + "pf=0.7\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "ira=i*r\n", + "ixl=i*x\n", + "#unity pf\n", + "e=((v+ira)**2+(ixl)**2)**0.5\n", + "#pf of 0.7 lag\n", + "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", + "#pf of 0.7 lead\n", + "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", + "\n", + "#result\n", + "print \"voltage with pf=1\",e,\"V\"\n", + "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", + "print \"voltage with pf=0.7 lead\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage with pf=1 225.174386048 V\n", + "voltage with pf=0.7 lag 234.604995966 V\n", + "voltage with pf=0.7 lead 208.03726621 V\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.18(a), Page Number:1429" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=440.0#V\n", + "f=50.0#Hz\n", + "r=0.25#ohm\n", + "x=3.2#ohm\n", + "xl=0.5#ohm\n", + "\n", + "#calculation\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "rd=i*r\n", + "ixl=i*xl\n", + "ea=((v+rd)**2+(ixl)**2)**0.5\n", + "el=3**0.5*ea\n", + "e0=((v+rd)**2+(i*x)**2)**0.5\n", + "e0l=e0*3**0.5\n", + "per=(e0-v)/v\n", + "xa=x-xl\n", + "#result\n", + "print \"internal emf Ea=\",el,\"V\"\n", + "print \"no load emf=\",e0l,\"V\"\n", + "print \"percentage regulation=\",per*100,\"%\"\n", + "print \"valueof synchronous reactance=\",xa,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "internal emf Ea= 471.842539659 V\n", + "no load emf= 592.991130967 V\n", + "percentage regulation= 34.7707115833 %\n", + "valueof synchronous reactance= 2.7 ohm\n" + ] + } + ], + "prompt_number": 87 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.19, Page Number:1432" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=50.0#V\n", + "r=0.1#ohm\n", + "il=100.0#A\n", + "pf=0.8\n", + "vt=200.0#V\n", + "\n", + "#calculation\n", + "zs=v/vt\n", + "xs=(zs**2-r**2)**0.5\n", + "ira=il*r\n", + "ixs=il*xs\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "\n", + "#result\n", + "print \"induced voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced voltage= 222.090276316 V\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.20, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2000.0#V\n", + "i=100.0#A\n", + "pf=0.8\n", + "pf2=0.71\n", + "i2=2.5#A\n", + "v2=500.0#V\n", + "r=0.8#ohm\n", + "\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "sinphi2=math.sin(math.acos(pf2))\n", + "zs=v2/i\n", + "xs=(zs**2-r**2)**.5\n", + "#unity pf\n", + "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", + "reg1=(e01-v)*100/v\n", + "#at pf=0.8\n", + "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v)*100/v\n", + "#at pf=0.71\n", + "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", + "reg3=(e03-v)*100/v\n", + "\n", + "#result\n", + "print \"voltage regulation unity pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", + "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.6\n", + "voltage regulation unity pf= 6.88779163216 %\n", + "voltage regulation 0.8 lag pf= -8.875640156 %\n", + "voltage regulation 0.71 lead pf= 21.1141910671 %\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.21, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=3000.0#V\n", + "load=100.0#kVA\n", + "f=50.0#Hz\n", + "r=0.2\n", + "i1=40.0#A\n", + "i2=200.0#A\n", + "v2=1040.0#V\n", + "pf=0.8\n", + "v1=v/3**0.5\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**.5\n", + "i=load*1000/(3**0.5*v)\n", + "\n", + "\n", + "#at pf=0.8 lag\n", + "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", + "reg1=(e01-v1)*100/v1\n", + "#at pf=0.8 lead\n", + "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v1)*100/v1\n", + "\n", + "#result\n", + "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation 0.8 lag pf= 2.20611574348 %\n", + "voltage regulation 0.8 lag pf= -1.77945143824 %\n" + ] + } + ], + "prompt_number": 112 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.22, Page Number:1434" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1600.0#kVA\n", + "v=13500.0#V\n", + "r=1.5#ohm\n", + "x=30.0#ohm\n", + "load1=1280.0#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi1=math.sin(math.acos(pf))\n", + "i=load1*1000/(3**0.5*v*pf)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", + "regn=(e0-vp)*100/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= -11.9909032489 %\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.23, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "pf=0.8\n", + "r=0.5#ohm\n", + "x=10.0#ohm\n", + "\n", + "#calculations\n", + "i=load*1000/(3**0.5*v)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", + "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", + "\n", + "#result\n", + "print \"voltage regulation=\",regn*100,\"%\"\n", + "print \"power angle=\",delta,\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 48.0405877623 %\n", + "power angle= 18.9704078085 degrees\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.24, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6000.0#KVA\n", + "v=6600.0#V\n", + "p=2.0\n", + "f=50.0#Hz\n", + "i2=125.0#A\n", + "v1=8000.0#V\n", + "i3=800.0#A\n", + "d=0.03\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v1/(3**0.5*i3)\n", + "vp=v/3**0.5\n", + "rd=d*vp\n", + "il=load*1000/(3**0.5*v)\n", + "ira=rd\n", + "ra=ira/il\n", + "xs=(zs**2-ra**2)**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", + "reg=(e0-vp)/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",reg*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= 62.2972136768 %\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.25, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "load=2000#KVA\n", + "v=2300#V\n", + "i=600#A\n", + "v2=900#V\n", + "r=0.12#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i)\n", + "rp=r/2\n", + "re=rp*1.5\n", + "xs=(zs**2-re**2)**0.5\n", + "il=load*1000/(3**0.5*v)\n", + "ira=il*rp\n", + "ixs=il*xs\n", + "vp=v/3**0.5\n", + "e0=((vp+ira)**2+(ixs)**2)**0.5\n", + "reg1=(e0-vp)/vp\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "reg2=(e0-vp)/vp\n", + "#result\n", + "print \"regulation at pf=1\",reg1*100,\"%\"\n", + "print \"regulation at pf=0.8\",reg2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=1 7.32796146323 %\n", + "regulation at pf=0.8 23.8398862235 %\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.26, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=Symbol('v')\n", + "load=2000#KVA\n", + "load1=11#KV\n", + "r=0.3#ohm\n", + "x=5#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "i=load*1000/(3**0.5*load1*1000)\n", + "vt=load1*1000/3**0.5\n", + "ira=i*r\n", + "ixs=i*x\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v[1],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 6978.31767618569 V\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.27, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1200#KVA\n", + "load1=3.3#KV\n", + "f=50#Hz\n", + "r=0.25#ohm\n", + "i=35#A\n", + "i2=200#A\n", + "v=1.1#kV\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zs=v*1000/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**0.5\n", + "v=load1*1000/3**0.5\n", + "theta=math.atan(xs/r)\n", + "ia=load*1000/(3**0.5*load1*1000)\n", + "e=v+ia*zs\n", + "change=(e-v)/v\n", + "\n", + "#result\n", + "print \"per unit change=\",change" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "per unit change= 0.349909254054\n" + ] + } + ], + "prompt_number": 151 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.28, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11#kV\n", + "load=3#MVA\n", + "i=100#A\n", + "v2=12370#V\n", + "vt=11000#V\n", + "pf=0.8\n", + "r=0.4#ohm\n", + "\n", + "#calculation\n", + "E0=v1*1000/3**0.5\n", + "v=v2/3**0.5\n", + "pf=0\n", + "sinphi=1\n", + "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", + "il=load*10**6/(3**0.5*v1*1000)\n", + "ira=il*r\n", + "ixs=il*xs\n", + "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", + "regn=(e0-E0)*100/E0\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 19.6180576177 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.29, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pf=0.8\n", + "vt=3500#v\n", + "load=2280#KW\n", + "v1=3300#V\n", + "r=8#ohm\n", + "x=6#ohm\n", + "\n", + "#calculation\n", + "vl=vt/3**0.5\n", + "vp=v1/3**0.5\n", + "il=load*1000/(3**0.5*v1*pf)\n", + "drop=vl-vp\n", + "z=(r**2+x**2)**0.5\n", + "x=vl/(z+drop/il)\n", + "vtp=vl-x*drop/il\n", + "vtpl=vtp*3**0.5\n", + "\n", + "#result\n", + "print \"terminal voltage=\",vtpl,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 3420.781893 V\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.30, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.5#MVA\n", + "v=4160#V\n", + "f=50#Hz\n", + "i=200#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "il=load*10**6/(3**0.5*v)\n", + "zs=4750/(3**0.5*il)\n", + "ra=0\n", + "ixs=il*zs\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 0.91675794767 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.39, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "xd=0.7\n", + "xq=0.4\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "ia=1\n", + "tandelta=ia*xq*pf/(v+xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(math.radians(36.9)+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"no load voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 14.4702941001 degrees\n", + "no load voltage= 1.51511515874 V\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.40, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "xd=0.6\n", + "xq=0.45\n", + "ra=0.015\n", + "pf=0.8\n", + "ia=1\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "#calculation\n", + "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", + "psi=math.atan(tanpsi)\n", + "delta=psi-math.acos(pf)\n", + "i_d=ia*math.sin(psi)\n", + "iq=ia*math.cos(psi)\n", + "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", + "regn=(e0-v)*100/v\n", + "\n", + "#result\n", + "print \"open circuit voltage=\",e0,\"V\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "open circuit voltage= 1.44767600311 V\n", + "regulation= 44.7676003107 %\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.41, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=10#A\n", + "phi=math.radians(20)\n", + "v=400#V\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "pf=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(phi+delta)\n", + "iq=ia*math.cos(phi+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "regn=(e0-v)/v\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"id=\",i_d,\"A\"\n", + "print \"iq=\",iq,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 8.23131209115 degrees\n", + "id= 4.7303232581 A\n", + "iq= 8.81045071911 A\n" + ] + } + ], + "prompt_number": 189 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.42, Page Number:1459" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e1=220#V\n", + "f1=60#Hz\n", + "e2=222#V\n", + "f2=59#Hz\n", + "\n", + "#calculation\n", + "emax=(e1+e2)/2\n", + "emin=(e2-e1)/2\n", + "f=(f1-f2)\n", + "epeak=emax/0.707\n", + "pulse=(f1-f2)*60\n", + "\n", + "#result\n", + "print \"max voltage=\",emax,\"V\"\n", + "print \"min voltage=\",emin,\"V\"\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"peak value of voltage=\",epeak,\"V\"\n", + "print \"number of maximum light pulsations/minute=\",pulse" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max voltage= 221 V\n", + "min voltage= 1 V\n", + "frequency= 1 Hz\n", + "peak value of voltage= 312.588401697 V\n", + "number of maximum light pulsations/minute= 60\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.43, Page Number:1462" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=1500#kVA\n", + "v=6.6#kV\n", + "r=0.4#ohm\n", + "x=6#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=power*1000/(3**0.5*v*1000)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", + "phialpha=math.atan(tanphialpha)\n", + "alpha=phialpha-phi\n", + "\n", + "#result\n", + "print \"power angle=\",math.degrees(alpha)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power angle= 7.87684146241\n" + ] + } + ], + "prompt_number": 198 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.44, Page Number:1464" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3000#KVA\n", + "p=6\n", + "n=1000#rpm\n", + "v=3300#v\n", + "x=0.25\n", + "\n", + "#calculation\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "ixs=x*vp\n", + "xs=x*vp/i\n", + "alpha=1*p/2\n", + "psy=3*3.14*vp**2/(60*xs*n)\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronizing power=\",psy,\"kW\"\n", + "print \"torque=\",tsy*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronizing power= 628.0 kW\n", + "torque= 5997.4 N-m\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.45, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3#MVA\n", + "n=1000#rpm\n", + "v1=3.3#kV\n", + "r=0.25\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "vp=v1*1000/3**0.5\n", + "i=load*1000000/(3**0.5*v1*1000)\n", + "ixs=complex(0,r*vp)\n", + "xs=ixs/i\n", + "v=vp*complex(pf,math.sin(math.acos(pf)))\n", + "e0=v+ixs\n", + "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", + "p=6/2\n", + "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", + "tsy=9.55*3*psy*100/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", + "print \"toque=\",-tsy/100,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 722.236196153j kW\n", + "toque= 6897.35567326j N-m\n" + ] + } + ], + "prompt_number": 221 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.46, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=750#KVA\n", + "v=11#kV\n", + "p=4\n", + "r=1#%\n", + "x=15#%\n", + "pf=0.8\n", + "#calculation\n", + "i=load*1000/(3**0.5*v*1000)\n", + "vph=v*1000/3**0.5\n", + "ira=r*vph/1000\n", + "ra=ira/i\n", + "xs=x*vph/(100*i)\n", + "zs=(ra**2+xs**2)**0.5\n", + "#no load\n", + "alpha=p/2\n", + "psy=math.radians(alpha)*vph**2/xs\n", + "#fl 0.8 pf\n", + "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", + "psy2=math.radians(alpha)*e*vph/xs\n", + "\n", + "#result\n", + "print \"Synchronous power at:\"\n", + "print \"no load=\",psy,\"W\"\n", + "print \"at pf of 0.8=\",psy2,\"w\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous power at:\n", + "no load= 58177.6417331 W\n", + "at pf of 0.8= 73621.2350169 w\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.47, Page Number:1466" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=2000#KVA\n", + "p=8\n", + "n=750#rpm\n", + "v1=6000#V\n", + "pf=0.8\n", + "r=6#ohm\n", + "\n", + "#calculations\n", + "alpha=math.radians(4)\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", + "psy=alpha*e0*v*3/r\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",psy,\"W\"\n", + "print \"synchronous torque=\",tsy,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 514916.500204 W\n", + "synchronous torque= 6556.60343593 N-m\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.48, Page Number:1467" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "n=1500#rpm\n", + "f=50#Hz\n", + "r=20#%\n", + "pf=0.8\n", + "phi=0.5\n", + "\n", + "#calculations\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "xs=r*vp/(1000*i)\n", + "p=120*f/n\n", + "alpha=math.radians(2)\n", + "#no load\n", + "psy=3*alpha*vp**2/(p*1000)\n", + "tsy=9.55*psy*1000/(n*2)\n", + "#pf=0.8\n", + "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", + "ixs=complex(0,i*4)\n", + "e0=v+ixs\n", + "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", + "tsy2=9.55*psy2/(n*20)\n", + "\n", + "#result\n", + "print \"synchronous power:\"\n", + "print \"atno load=\",psy,\"w\"\n", + "print \"at 0.8 pf=\",psy2,\"w\"\n", + "print \"torque:\"\n", + "print \"at no load=\",tsy,\"N-m\"\n", + "print \"at pf=0.8=\",tsy2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power:\n", + "atno load= 872.664625997 w\n", + "at 0.8 pf= 1506057.44405 w\n", + "torque:\n", + "at no load= 2777.98239276 N-m\n", + "at pf=0.8= 479.428286357 N-m\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.49, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6.6#kW\n", + "load1=3000#kW\n", + "pf=0.8\n", + "xa=complex(0.5,10)\n", + "xb=complex(0.4,12)\n", + "i0=150#A\n", + "\n", + "#calculation\n", + "v=complex(load*1000/3**0.5,0)\n", + "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", + "phi1=math.acos(cosphi1)\n", + "sinphi1=math.sin(phi1)\n", + "i=328*complex(pf,-math.sin(math.acos(pf)))\n", + "i1=i0*complex(cosphi1,-sinphi1)\n", + "i2=i-i1\n", + "coshi2=i2.real/181\n", + "ea=v+i1*xa\n", + "eal=3**0.5*abs(ea)\n", + "eb=v+i2*xb\n", + "ebl=3**0.5*abs(eb)\n", + "alpha1=(ea.imag/ea.real)\n", + "alpha2=(eb.imag/eb.real)\n", + "#result\n", + "print \"Ea=\",ea,\"V\"\n", + "print \"Eb=\",eb,\"V\"\n", + "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", + "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ea= (4602.91884998+1275.81974829j) V\n", + "Eb= (5352.42648271+1524.56032028j) V\n", + "alpha1= 15.8810288383 degrees\n", + "alpha2= 16.3198639435 degrees\n" + ] + } + ], + "prompt_number": 245 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.50, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declration\n", + "e1=complex(230,0)\n", + "e2=230*complex(0.985,0.174)\n", + "z1=complex(0,2)\n", + "z2=complex(0,3)\n", + "z=6\n", + "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", + "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", + "i=i1+i2\n", + "v=i*z\n", + "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", + "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v,\"V\"\n", + "print \"current\",i,\"A\"\n", + "print \"power 1=\",p1,\"W\"\n", + "print \"power 2=\",p2,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= (222.905384615-28.5730769231j) V\n", + "current (37.1508974359-4.76217948718j) A\n", + "power 1= 3210.60292765 W\n", + "power 2= 5138.29001053 W\n" + ] + } + ], + "prompt_number": 249 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.51, Page Number:1471" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1500#kW\n", + "v=11#KV\n", + "pf=0.867\n", + "x=50#ohm\n", + "r=4#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "il=load*1000/(3**0.5*v*1000*pf)\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "iwatt=il*pf\n", + "iwattless=il*sinphi\n", + "i1=il/2\n", + "i2=iwatt/2\n", + "iw1=(i**2-i1**2)**0.5\n", + "iw2=i2-iw1\n", + "ia=(i2**2+iw2**2)**0.5\n", + "vt=v*1000/3**0.5\n", + "ir=i*r\n", + "ix=x*i\n", + "cosphi=i2/i\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", + "el=3**0.5*e\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 43.4628778514 A\n", + "line voltage= 14304.0798593 V\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.52, Page Number:1472" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.8\n", + "output=6000#kW\n", + "pfa=0.92\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "phia=math.acos(pfa)\n", + "tanphi=math.tan(phi)\n", + "tanphia=math.tan(phia)\n", + "loadkvar=load*1000*tanphi\n", + "akvar=output*tanphia\n", + "kwb=(load*1000-output)\n", + "kvarb=loadkvar-akvar\n", + "kvab=complex(kwb,kvarb)\n", + "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", + "kvarb=kwb*pfb\n", + "kvara=-loadkvar-kvarb\n", + "kvaa=complex(output,kvara)\n", + "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", + "\n", + "#result\n", + "print \"new pfb=\",pfb\n", + "print \"new pfa=\",pfa" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new pfb= 0.628980253433\n", + "new pfa= 0.513894032194\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.54, Page Number:1473" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=6600#V\n", + "load=1000#KVA\n", + "x=20#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=87.5\n", + "x=8.7\n", + "vp=3810\n", + "e0=4311\n", + "ir=70\n", + "ix=52.5\n", + "IX=762\n", + "vb1=(e0**2-vp**2)**0.5\n", + "i1x=vb1\n", + "i1=i1x/x\n", + "output=3**0.5*v*i1/1000\n", + "b2v=(vp**2+e0**2)**0.5\n", + "i2z=b2v\n", + "i2=b2v/x\n", + "i2rx=e0\n", + "i2r=i2rx/x\n", + "i2x=vp/x\n", + "tanphi2=i2x/i2r\n", + "phi2=math.atan(tanphi2)\n", + "cosphi2=math.cos(phi2)\n", + "output1=3**0.5*v*i2*cosphi2/1000\n", + "\n", + "#result\n", + "print \"power output at unity pf=\",output,\"kW\"\n", + "print \"max power output=\",output1,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " power output at unity pf= 2650.38477722 kW\n", + "max power output= 5664.52285143 kW\n" + ] + } + ], + "prompt_number": 255 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.55, Page Number:1474" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=10.0#ohm\n", + "i=220.0#A\n", + "load=11.0#kV\n", + "per=25.0#%\n", + "\n", + "#calculations\n", + "oa1=load*1000/3**0.5\n", + "a1c1=i*x\n", + "e0=(oa1**2+a1c1**2)**0.5\n", + "emf=(1+per/100)*e0\n", + "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", + "ix=a1a2/x\n", + "i1=(i**2+ix**2)**0.5\n", + "pf=i/i1\n", + "bv=(oa1**2+emf**2)**0.5\n", + "imax=bv/x\n", + "ir=emf/x\n", + "ix=oa1/x\n", + "pfmax=ir/imax\n", + "output=3**0.5*load*1000*imax*pfmax*0.001\n", + "#result\n", + "print \"new current=\",i1,\"A\"\n", + "print \"new power factor=\",pf\n", + "print \"max power output=\",output,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new current= 281.573453399 A\n", + "new power factor= 0.781323655849\n", + "max power output= 16006.7954319 kW\n" + ] + } + ], + "prompt_number": 258 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.56, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#MVA\n", + "load1=35.0#MVA\n", + "pf=0.8\n", + "output=25.0#MVA\n", + "cosphi1=0.9\n", + "\n", + "#calculations\n", + "loadmw=load1*pf\n", + "loadmvar=load1*0.6\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "mva1=25\n", + "mw1=mva1*cosphi1\n", + "mvar1=25*sinphi1\n", + "mw2=loadmw-mw1\n", + "mvar2=loadmvar-mvar1\n", + "mva2=(mw2**2+mvar2**2)**0.5\n", + "cosphi2=mw2/mva2\n", + "\n", + "#result\n", + "print \"output=\",mva2\n", + "print \"pf=\",cosphi2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 10.4509862952\n", + "pf= 0.52626611926\n" + ] + } + ], + "prompt_number": 260 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.57, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "load=600#KW\n", + "loadm=707#kW\n", + "pf=0.707\n", + "output=900#kW\n", + "pf1=0.9\n", + "\n", + "#calculation\n", + "kva=1000\n", + "kvar=kva*(1-pf1**2)**0.5\n", + "active_p=1307-output\n", + "reactive_p=loadm-kvar\n", + "\n", + "#result\n", + "print \"active power shared by second machine=\",active_p,\"kW\"\n", + "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "active power shared by second machine= 407 kW\n", + "reactive power shared by second machine= 271.110105646 kVAR\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.58, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l1=500#kW\n", + "l2=1000#kW\n", + "pf1=0.9\n", + "l3=800#kW\n", + "pf2=0.8\n", + "l4=500#kW\n", + "pf3=0.9\n", + "output=1500#kW\n", + "pf=0.95\n", + "\n", + "#calculation\n", + "kw1=l1\n", + "kw2=l2\n", + "kw3=l3\n", + "kw4=500\n", + "kvar2=kw2*0.436/pf1\n", + "kvar3=kw3*0.6/pf2\n", + "kvar4=kw4*0.436/pf3\n", + "kvar=output/pf\n", + "kw=kw1+kw2+kw3+kw4-output\n", + "kvar=kvar2+kvar3+kvar4-kvar\n", + "cosphi=math.cos(math.atan(kvar/kw))\n", + "\n", + "#result\n", + "print \"kW output=\",kw\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kW output= 1300\n", + "pf= 0.981685651341\n" + ] + } + ], + "prompt_number": 264 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.59, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=complex(0.2,2)\n", + "ze=complex(3,4)\n", + "emf1=complex(2000,0)\n", + "emf2=complex(22000,100)\n", + "\n", + "#calculations\n", + "i1=complex(68.2,-102.5)\n", + "i2=complex(127,-196.4)\n", + "i=i1+i2\n", + "v=i*ze\n", + "pva1=v*i1\n", + "kw1=pva1.real*3\n", + "a11=math.atan(-i1.imag/i1.real)\n", + "a12=math.atan(-v.imag/v.real)\n", + "pf1=math.cos(a11-a12)\n", + "pva2=v*i2\n", + "kw2=pva2.real*3\n", + "a21=math.atan(-i2.imag/i2.real)\n", + "a22=math.atan(-v.imag/v.real)\n", + "pf2=math.cos(a21-a22)\n", + "\n", + "#result\n", + "print \"kw output 1=\",kw1/1000\n", + "print \"pf 1=\",pf1\n", + "print \"kw output 2=\",kw2/1000\n", + "print \"pf 2=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kw output 1= 328.79427\n", + "pf 1= 0.606839673468\n", + "kw output 2= 610.34892\n", + "pf 2= 0.596381892841\n" + ] + } + ], + "prompt_number": 273 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.63, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "f=50#Hz\n", + "ns=1500#rpm\n", + "j=1.5*10**4#khm2\n", + "ratio=5\n", + "\n", + "#calculation\n", + "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"natural time period of oscillation=\",round(t,3),\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "natural time period of oscillation= 1.364 s\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.64, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10000#KVA\n", + "p=4\n", + "v=6600#V\n", + "f=50#Hz\n", + "xs=25#%\n", + "pf=1.5\n", + "\n", + "#calculations\n", + "ratio=100/xs\n", + "ns=120*f/p\n", + "j=(pf/(0.0083*ns))**2*load*ratio*f\n", + "\n", + "#result\n", + "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "moment of inertia= 29.0317898098 x10^4 kg-m2\n" + ] + } + ], + "prompt_number": 277 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.65, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#MVA\n", + "v=10.0#kV\n", + "f=50.0#Hz\n", + "ns=1500.0#rpm\n", + "j=2.0*10**5#kgm2\n", + "x=40.0\n", + "\n", + "#calculation\n", + "ratio=100.0/x\n", + "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation of the rotor= 0.2 Hz\n" + ] + } + ], + "prompt_number": 283 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.66, Page Number:1483" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=11#kV\n", + "z=complex(1,10)\n", + "emf=14#kV\n", + "\n", + "#calculations\n", + "e=emf*1000/3**0.5\n", + "v=v*1000/3**0.5\n", + "costheta=z.real/abs(z)\n", + "pmax=e*v*3/(z.imag*1000)\n", + "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", + "\n", + "#result\n", + "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max output = 14125.5529273 kW\n" + ] + } + ], + "prompt_number": 285 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.67, Page Number:1484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=11#kVA\n", + "load1=10#MW\n", + "z=complex(0.8,8.0)\n", + "v=14#kV\n", + "\n", + "#calculations\n", + "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", + "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", + "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", + "\n", + "#result\n", + "print \"maximum output=\",pmax/1000000,\"MW\"\n", + "print \"current=\",imax,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum output= 19.25 MW\n", + "current= 1284.92866209 A\n", + "pf= 0.786318338822\n" + ] + } + ], + "prompt_number": 289 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_3.ipynb new file mode 100644 index 00000000..7e0be0a9 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter37_3.ipynb @@ -0,0 +1,2781 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3f52bfdb4973d016ec59d44992f6a2ce15bb8cca394c854d00d33c6af91049f3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 37: Alternators" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.1, Page Number:1412" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "s1=36.0\n", + "p1=4.0\n", + "span1=8.0\n", + "s2=72.0\n", + "p2=6.0\n", + "span2=10.0\n", + "s3=96.0\n", + "p3=6.0\n", + "span3=12.0\n", + "\n", + "#calculations\n", + "alpha1=2*p1*180/s1\n", + "alpha2=3*p2*180/s2\n", + "alpha3=5*p3*180/s3\n", + "kc1=math.cos(math.radians(alpha1/2))\n", + "kc2=math.cos(math.radians(alpha2/2))\n", + "kc3=math.cos(math.radians(alpha3/2))\n", + "\n", + "#result\n", + "print \"a)kc=\",kc1\n", + "print \"b)kc=\",kc2\n", + "print \"c)kc=\",kc3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)kc= 0.939692620786\n", + "b)kc= 0.923879532511\n", + "c)kc= 0.881921264348\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.2, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "s=36.0\n", + "p=4.0\n", + "\n", + "#calculations\n", + "n=s/p\n", + "beta=180/n\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"distribution factor=\",kd" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "distribution factor= 0.959795080524\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.3, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=10.0#V\n", + "beta=30.0#degrees\n", + "m=6.0\n", + "\n", + "#calculations\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "arith_sum=6*v\n", + "vector_sum=kd*arith_sum\n", + "\n", + "#calculation\n", + "print \"emf of six coils in series=\",vector_sum,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of six coils in series= 38.6370330516 V\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.4, Page Number:1414" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "beta=180/9\n", + "ratio=2.0/3.0\n", + "m1=9\n", + "m2=6\n", + "m3=3\n", + "\n", + "#calculation\n", + "kd1=math.sin(m1*math.radians(beta/2))/(m1*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(m2*math.radians(beta/2))/(m2*math.sin(math.radians(beta/2)))\n", + "kd3=math.sin(m3*math.radians(beta/2))/(m3*math.sin(math.radians(beta/2)))\n", + "\n", + "#result\n", + "print \"i) kd=\",kd1\n", + "print \"ii)kd=\",kd2\n", + "print \"iii)kd=\",kd3" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i) kd= 0.639863387016\n", + "ii)kd= 0.831206922161\n", + "iii)kd= 0.959795080524\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.5, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "slot=18.0\n", + "s=16.0\n", + "m1=3.0\n", + "m2=5.0\n", + "m3=7.0\n", + "\n", + "#calculations\n", + "span=(s-1)\n", + "alpha=180*3/slot\n", + "kc1=math.cos(math.radians(alpha/2))\n", + "kc3=math.cos(math.radians(m1*alpha/2))\n", + "kc5=math.cos(math.radians(m2*alpha/2))\n", + "kc7=math.cos(math.radians(m3*alpha/2))\n", + "\n", + "#result\n", + "print \"kc1=\",kc1\n", + "print \"kc3=\",kc3\n", + "print \"kc5=\",kc5\n", + "print \"kc7=\",kc7" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kc1= 0.965925826289\n", + "kc3= 0.707106781187\n", + "kc5= 0.258819045103\n", + "kc7= -0.258819045103\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.6, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "s=144.0\n", + "z=10.0\n", + "phi=0.03#Wb\n", + "n=375.0#rpm\n", + "\n", + "#calculation\n", + "f=p*n/120\n", + "n=s/p\n", + "beta=180/9\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "t=s*z/(3*2)\n", + "eph=4.44*1*0.96*f*phi*t\n", + "el=3**0.5*eph\n", + "#result\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"phase emf=\",eph,\"V\"\n", + "print \"line emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 50.0 Hz\n", + "phase emf= 1534.464 V\n", + "line emf= 2657.76961039 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.7, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=6\n", + "s=54\n", + "phi=0.1#Wb\n", + "n=1200#rpm\n", + "t=8\n", + "#calculations\n", + "beta=180/9\n", + "kc=math.cos(beta/2)\n", + "f=p*n/120\n", + "n=s/p\n", + "m=s/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=s*8/3\n", + "t=z/2\n", + "eph=4.44*0.98*0.96*f*phi*t\n", + "el=3**0.*eph\n", + "\n", + "#result\n", + "print \"eph=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eph= 1804.529664 V\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.8, Page Number:1416" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=16.0\n", + "slots=144.0\n", + "z=4.0\n", + "n=375.0\n", + "airgap=5*0.01\n", + "theta=150.0\n", + "\n", + "#calculation\n", + "kf=1.11\n", + "alpha=(180-theta)\n", + "kc=math.cos(math.radians(alpha/2))\n", + "beta=180/9\n", + "m=slots/(p*3)\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "f=p*n/120\n", + "s=slots/3\n", + "eph=4*kf*kc*kd*f*airgap*s*4/2\n", + "\n", + "#result\n", + "print \"emf per phase=\",eph,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf per phase= 987.908016392 V\n" + ] + } + ], + "prompt_number": 31 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.9, Page Number:1417" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10\n", + "f=50#Hz\n", + "n=600#rpm\n", + "slots=180\n", + "s=15\n", + "d=1.2#m\n", + "l=0.4#m\n", + "m=6\n", + "beta=180/18\n", + "#calculations\n", + "area=(1.2*3.14/p)*l\n", + "phi1=area*0.637\n", + "vr=1.1*2*f*phi1\n", + "vp=2**0.5*vr\n", + "v3=0.4*vp\n", + "v5=0.2*vp\n", + "vf=6*vp*0.966\n", + "vf3=6*v3*0.707\n", + "vf5=6*v5*0.259\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "kd2=math.sin(math.radians(3*m*beta/2))/(6*math.sin(3*math.radians(beta/2)))\n", + "kd3=math.sin(math.radians(5*m*beta/2))/(6*math.sin(5*math.radians(beta/2)))\n", + "vph=vf*2**0.5*60*kd1\n", + "vph3=vf3*2**0.5*60*kd2\n", + "vph5=vf5*2**0.5*60*kd3\n", + "rmsv=(vph**2+vph3**2+vph5**2)**0.5\n", + "rmsvl=3**0.5*(vph**2+vph5**2)**0.5\n", + "\n", + "#result\n", + "print \"i)e=\",vp,\"sin theta+\",v3,\"sin 3theta+\",v5,\"sin 5theta\"\n", + "print \"ii)e=\",vf,\"sin theta+\",vf3,\"sin 3theta+\",vf5,\"sin 5theta\"\n", + "print \"iii)rms value of phase voltage=\",rmsv,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)e= 14.9354392872 sin theta+ 5.97417571489 sin 3theta+ 2.98708785745 sin 5theta\n", + "ii)e= 86.5658061088 sin theta+ 25.3424533826 sin 3theta+ 4.64193453047 sin 5theta\n", + "iii)rms value of phase voltage= 7158.83679423 V\n" + ] + } + ], + "prompt_number": 33 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.10, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=4\n", + "f=50.0#Hz\n", + "slot=60.0\n", + "z=4.0\n", + "s=3.0\n", + "theta=60.0\n", + "phi=0.943#Wb\n", + "\n", + "#calculation\n", + "m=slot/(p*s)\n", + "beta=slot/5\n", + "kd=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "alpha=(s/15)*180\n", + "kc=math.cos(math.radians(alpha/2))\n", + "z=slot*z/s\n", + "t=z/2\n", + "kf=1.11\n", + "eph=z*kf*kc*kd*f*phi*t/2\n", + "el=3**0.5*eph*0.1\n", + "\n", + "#result\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage= 13196.4478482 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.11, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4.0\n", + "f=50.0#Hz\n", + "slot=15.0\n", + "z=10.0\n", + "kd=0.95\n", + "e=1825#v\n", + "kc=1\n", + "kf=1.11\n", + "#calculations\n", + "slots=p*slot\n", + "slotsp=slots/3\n", + "turnp=20*z/2\n", + "phi=e/(3**0.5*p*kc*kf*kd*f*turnp)\n", + "z=slots*z\n", + "n=120*f/p\n", + "eg=(phi*0.001*z*n)/slots\n", + "\n", + "#result\n", + "print \"emf=\",eg*1000,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 749.405577006 V\n" + ] + } + ], + "prompt_number": 47 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.12, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=360#V\n", + "f=60.0#Hz\n", + "i=3.6#A\n", + "f2=40#Hz\n", + "i2=2.4#A\n", + "\n", + "#calculations\n", + "e2=v*i2*f2/(f*i)\n", + "\n", + "#result\n", + "print \"e2=\",e2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e2= 160.0 V\n" + ] + } + ], + "prompt_number": 49 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.13, Page Number:1418" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=0\n", + "f=50.0#Hz\n", + "slot=2\n", + "z=4\n", + "theta=150#degrees\n", + "phi=0.12#Wb\n", + "per=20#%\n", + "\n", + "#calculations\n", + "alpha=180-theta\n", + "slotp=6\n", + "m=2\n", + "beta=180/slotp\n", + "kd1=math.sin(m*math.radians(beta/2))/(m*math.sin(math.radians(beta/2)))\n", + "z=10*slot*z\n", + "t=z/2\n", + "e1=4.44*kd1*kd1*f*0.12*t\n", + "kc3=math.cos(3*math.radians(alpha/2))\n", + "f2=f*3\n", + "phi3=(1.0/3)*per*0.12\n", + "e3=4.44*kd3*kd3*theta*0.008*40\n", + "e=(e1**2+e3**2)**0.5\n", + "\n", + "#result\n", + "print \"e=\",e,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e= 994.25286629 V\n" + ] + } + ], + "prompt_number": 50 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.14, Page Number:1419" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=230.0#V\n", + "per=10.0#%\n", + "per2=6.0#%\n", + "f=50.0#Hz\n", + "r=10.0#ohm\n", + "\n", + "#calculation\n", + "#star connection\n", + "e5=per*v/100\n", + "e=(v**2+e5**2)**0.5\n", + "eph=3**0.5*e\n", + "\n", + "#delta\n", + "e3=10*v/100\n", + "f3=10*3\n", + "i=e3/f3\n", + "\n", + "#result\n", + "print \"line voltage for star=\",eph,\"V\"\n", + "print \"line voltage for delta=\",e3,\"V\"\n", + "print \"current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage for star= 400.358589267 V\n", + "line voltage for delta= 23.0 V\n", + "current= 0.766666666667 A\n" + ] + } + ], + "prompt_number": 55 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(a), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=10.0\n", + "p1=24.0\n", + "f=25#Hz\n", + "p3=6.0\n", + "s=0.05\n", + "\n", + "#calculation\n", + "n=120*f/p\n", + "f1=p1*n/120\n", + "n2=120*f1/6\n", + "n3=(1-s)*n2\n", + "f2=s*f1p\n", + "\n", + "\n", + "#result\n", + "print \"frequency=\",f1,\"Hz\"\n", + "print \"speed=\",n3,\"rpm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency= 60.0 Hz\n", + "speed= 1140.0 rpm\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.15(b), Page Number:1420" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "phi=0.12#Wb\n", + "slotsp=4\n", + "cp=4\n", + "theta=150#degrees\n", + "\n", + "#calculation\n", + "slots=slotsp*3*p\n", + "c=cp*slots\n", + "turns=32\n", + "kb=math.sin(math.radians(60/2))/(p*math.sin(math.radians(7.5)))\n", + "kp=math.cos(math.radians(15))\n", + "eph=4.44*50*0.12*kb*0.966*turns\n", + "el=eph*3**0.5\n", + "\n", + "#result\n", + "print \"line voltage\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line voltage 1365.94840977 V\n" + ] + } + ], + "prompt_number": 62 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.16, Page Number:1426" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.85\n", + "v=11#kV\n", + "r=0.1#ohm\n", + "x=0.66#ohm\n", + "\n", + "#calculation\n", + "i=load*10**6/(3**0.5*v*1000*pf)\n", + "iradrop=i*r\n", + "ixsdrop=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "e0=((vp*pf+i*r)**2+(vp*sinphi+i*x)**2)**0.5\n", + "el=3**0.5*e0\n", + "\n", + "#result\n", + "print \"linevalue of emf=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "linevalue of emf= 11475.6408913 V\n" + ] + } + ], + "prompt_number": 69 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(a), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2200.0#V\n", + "f=50.0#Hz\n", + "load=440.0#KVA\n", + "r=0.5#ohm\n", + "i=40.0#A\n", + "il=200.0#A\n", + "vf=1160.0#V\n", + "\n", + "#calculations\n", + "zs=vf/200\n", + "xs=(zs**2-r**2)**0.5\n", + "\n", + "#result\n", + "print \"synchronous impedence=\",zs,\"ohm\"\n", + "print \"synchronous reactance=\",xs,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous impedence= 5.8 ohm\n", + "synchronous reactance= 5.77840808528 ohm\n" + ] + } + ], + "prompt_number": 71 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.17(b), Page Number:1428" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=60.0#kVA\n", + "v=220.0#V\n", + "f=50.0#Hz\n", + "r=0.016#ohm\n", + "x=0.07#ohm\n", + "pf=0.7\n", + "\n", + "#calculations\n", + "i=load*1000/v\n", + "ira=i*r\n", + "ixl=i*x\n", + "#unity pf\n", + "e=((v+ira)**2+(ixl)**2)**0.5\n", + "#pf of 0.7 lag\n", + "e2=((v*pf+ira)**2+(v*pf+ixl)**2)**0.5\n", + "#pf of 0.7 lead\n", + "e3=((v*pf+ira)**2+(v*pf-ixl)**2)**0.5\n", + "\n", + "#result\n", + "print \"voltage with pf=1\",e,\"V\"\n", + "print \"voltage with pf=0.7 lag\",e2,\"V\"\n", + "print \"voltage with pf=0.7 lead\",e3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage with pf=1 225.174386048 V\n", + "voltage with pf=0.7 lag 234.604995966 V\n", + "voltage with pf=0.7 lead 208.03726621 V\n" + ] + } + ], + "prompt_number": 75 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.18(a), Page Number:1429" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=50.0#KVA\n", + "v1=440.0#V\n", + "f=50.0#Hz\n", + "r=0.25#ohm\n", + "x=3.2#ohm\n", + "xl=0.5#ohm\n", + "\n", + "#calculation\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "rd=i*r\n", + "ixl=i*xl\n", + "ea=((v+rd)**2+(ixl)**2)**0.5\n", + "el=3**0.5*ea\n", + "e0=((v+rd)**2+(i*x)**2)**0.5\n", + "e0l=e0*3**0.5\n", + "per=(e0-v)/v\n", + "xa=x-xl\n", + "#result\n", + "print \"internal emf Ea=\",el,\"V\"\n", + "print \"no load emf=\",e0l,\"V\"\n", + "print \"percentage regulation=\",per*100,\"%\"\n", + "print \"valueof synchronous reactance=\",xa,\"ohm\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "internal emf Ea= 471.842539659 V\n", + "no load emf= 592.991130967 V\n", + "percentage regulation= 34.7707115833 %\n", + "valueof synchronous reactance= 2.7 ohm\n" + ] + } + ], + "prompt_number": 87 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.19, Page Number:1432" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "i=200.0#A\n", + "v=50.0#V\n", + "r=0.1#ohm\n", + "il=100.0#A\n", + "pf=0.8\n", + "vt=200.0#V\n", + "\n", + "#calculation\n", + "zs=v/vt\n", + "xs=(zs**2-r**2)**0.5\n", + "ira=il*r\n", + "ixs=il*xs\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "\n", + "#result\n", + "print \"induced voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced voltage= 222.090276316 V\n" + ] + } + ], + "prompt_number": 90 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.20, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=2000.0#V\n", + "i=100.0#A\n", + "pf=0.8\n", + "pf2=0.71\n", + "i2=2.5#A\n", + "v2=500.0#V\n", + "r=0.8#ohm\n", + "\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "sinphi2=math.sin(math.acos(pf2))\n", + "zs=v2/i\n", + "xs=(zs**2-r**2)**.5\n", + "#unity pf\n", + "e01=((v+r*i)**2+(i*xs)**2)**0.5\n", + "reg1=(e01-v)*100/v\n", + "#at pf=0.8\n", + "e02=((v*pf+r*i)**2+(v*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v)*100/v\n", + "#at pf=0.71\n", + "e03=((v*pf2+r*i)**2+(v*sinphi2+i*xs)**2)**0.5\n", + "reg3=(e03-v)*100/v\n", + "\n", + "#result\n", + "print \"voltage regulation unity pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n", + "print \"voltage regulation 0.71 lead pf=\",reg3,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.6\n", + "voltage regulation unity pf= 6.88779163216 %\n", + "voltage regulation 0.8 lag pf= -8.875640156 %\n", + "voltage regulation 0.71 lead pf= 21.1141910671 %\n" + ] + } + ], + "prompt_number": 100 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.21, Page Number:1433" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=3000.0#V\n", + "load=100.0#kVA\n", + "f=50.0#Hz\n", + "r=0.2\n", + "i1=40.0#A\n", + "i2=200.0#A\n", + "v2=1040.0#V\n", + "pf=0.8\n", + "v1=v/3**0.5\n", + "#calculations\n", + "sinphi1=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**.5\n", + "i=load*1000/(3**0.5*v)\n", + "\n", + "\n", + "#at pf=0.8 lag\n", + "e01=((v1*pf+r*i)**2+(v1*sinphi1+i*xs)**2)**0.5\n", + "reg1=(e01-v1)*100/v1\n", + "#at pf=0.8 lead\n", + "e02=((v1*pf+r*i)**2+(v1*sinphi1-i*xs)**2)**0.5\n", + "reg2=(e02-v1)*100/v1\n", + "\n", + "#result\n", + "print \"voltage regulation 0.8 lag pf=\",reg1,\"%\"\n", + "print \"voltage regulation 0.8 lag pf=\",reg2,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation 0.8 lag pf= 2.20611574348 %\n", + "voltage regulation 0.8 lag pf= -1.77945143824 %\n" + ] + } + ], + "prompt_number": 112 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.22, Page Number:1434" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1600.0#kVA\n", + "v=13500.0#V\n", + "r=1.5#ohm\n", + "x=30.0#ohm\n", + "load1=1280.0#kW\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi1=math.sin(math.acos(pf))\n", + "i=load1*1000/(3**0.5*v*pf)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi1-ixs)**2)**0.5\n", + "regn=(e0-vp)*100/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= -11.9909032489 %\n" + ] + } + ], + "prompt_number": 122 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.23, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#kVA\n", + "v=400.0#V\n", + "f=50.0#Hz\n", + "pf=0.8\n", + "r=0.5#ohm\n", + "x=10.0#ohm\n", + "\n", + "#calculations\n", + "i=load*1000/(3**0.5*v)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "thetadel=math.atan((vp*sinphi+ixs)/(vp*pf+ira))\n", + "delta=math.degrees(thetadel)-math.degrees(math.acos(pf))\n", + "\n", + "#result\n", + "print \"voltage regulation=\",regn*100,\"%\"\n", + "print \"power angle=\",delta,\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "voltage regulation= 48.0405877623 %\n", + "power angle= 18.9704078085 degrees\n" + ] + } + ], + "prompt_number": 127 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.24, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6000.0#KVA\n", + "v=6600.0#V\n", + "p=2.0\n", + "f=50.0#Hz\n", + "i2=125.0#A\n", + "v1=8000.0#V\n", + "i3=800.0#A\n", + "d=0.03\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v1/(3**0.5*i3)\n", + "vp=v/3**0.5\n", + "rd=d*vp\n", + "il=load*1000/(3**0.5*v)\n", + "ira=rd\n", + "ra=ira/il\n", + "xs=(zs**2-ra**2)**0.5\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+il*xs)**2)**0.5\n", + "reg=(e0-vp)/vp\n", + "\n", + "#result\n", + "print \"percentage regulation=\",reg*100,\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage regulation= 62.2972136768 %\n" + ] + } + ], + "prompt_number": 133 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.25, Page Number:1435" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "load=2000#KVA\n", + "v=2300#V\n", + "i=600#A\n", + "v2=900#V\n", + "r=0.12#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "zs=v2/(3**0.5*i)\n", + "rp=r/2\n", + "re=rp*1.5\n", + "xs=(zs**2-re**2)**0.5\n", + "il=load*1000/(3**0.5*v)\n", + "ira=il*rp\n", + "ixs=il*xs\n", + "vp=v/3**0.5\n", + "e0=((vp+ira)**2+(ixs)**2)**0.5\n", + "reg1=(e0-vp)/vp\n", + "e0=((vp*pf+ira)**2+(vp*sinphi+ixs)**2)**0.5\n", + "reg2=(e0-vp)/vp\n", + "#result\n", + "print \"regulation at pf=1\",reg1*100,\"%\"\n", + "print \"regulation at pf=0.8\",reg2*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation at pf=1 7.32796146323 %\n", + "regulation at pf=0.8 23.8398862235 %\n" + ] + } + ], + "prompt_number": 134 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.26, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=Symbol('v')\n", + "load=2000#KVA\n", + "load1=11#KV\n", + "r=0.3#ohm\n", + "x=5#ohm\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "sinphi=math.sin(math.acos(pf))\n", + "i=load*1000/(3**0.5*load1*1000)\n", + "vt=load1*1000/3**0.5\n", + "ira=i*r\n", + "ixs=i*x\n", + "e0=((vt*pf+ira)**2+(vt*sinphi+ixs)**2)**0.5\n", + "v=solve(((pf*v+ira)**2+(sinphi*v-ixs)**2)**0.5-e0,v)\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v[1],\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 6978.31767618569 V\n" + ] + } + ], + "prompt_number": 150 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.27, Page Number:1436" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1200#KVA\n", + "load1=3.3#KV\n", + "f=50#Hz\n", + "r=0.25#ohm\n", + "i=35#A\n", + "i2=200#A\n", + "v=1.1#kV\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "zs=v*1000/(3**0.5*i2)\n", + "xs=(zs**2-r**2)**0.5\n", + "v=load1*1000/3**0.5\n", + "theta=math.atan(xs/r)\n", + "ia=load*1000/(3**0.5*load1*1000)\n", + "e=v+ia*zs\n", + "change=(e-v)/v\n", + "\n", + "#result\n", + "print \"per unit change=\",change" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "per unit change= 0.349909254054\n" + ] + } + ], + "prompt_number": 151 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.28, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50#Hz\n", + "v1=11#kV\n", + "load=3#MVA\n", + "i=100#A\n", + "v2=12370#V\n", + "vt=11000#V\n", + "pf=0.8\n", + "r=0.4#ohm\n", + "\n", + "#calculation\n", + "E0=v1*1000/3**0.5\n", + "v=v2/3**0.5\n", + "pf=0\n", + "sinphi=1\n", + "xs=(v-(E0**2-(i*r)**2)**0.5)/i\n", + "il=load*10**6/(3**0.5*v1*1000)\n", + "ira=il*r\n", + "ixs=il*xs\n", + "e0=((E0*pf+ira)**2+(E0*sinphi+ixs)**2)**0.5\n", + "regn=(e0-E0)*100/E0\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 19.6180576177 %\n" + ] + } + ], + "prompt_number": 175 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.29, Page Number:1437" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "pf=0.8\n", + "vt=3500#v\n", + "load=2280#KW\n", + "v1=3300#V\n", + "r=8#ohm\n", + "x=6#ohm\n", + "\n", + "#calculation\n", + "vl=vt/3**0.5\n", + "vp=v1/3**0.5\n", + "il=load*1000/(3**0.5*v1*pf)\n", + "drop=vl-vp\n", + "z=(r**2+x**2)**0.5\n", + "x=vl/(z+drop/il)\n", + "vtp=vl-x*drop/il\n", + "vtpl=vtp*3**0.5\n", + "\n", + "#result\n", + "print \"terminal voltage=\",vtpl,\"V\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= 3420.781893 V\n" + ] + } + ], + "prompt_number": 176 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.30, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3.5#MVA\n", + "v=4160#V\n", + "f=50#Hz\n", + "i=200#A\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "il=load*10**6/(3**0.5*v)\n", + "zs=4750/(3**0.5*il)\n", + "ra=0\n", + "ixs=il*zs\n", + "vp=v/3**0.5\n", + "sinphi=math.sin(math.acos(pf))\n", + "e0=((vp*pf)**2+(vp*sinphi+ixs)**2)**0.5\n", + "regn=(e0-vp)/vp\n", + "#result\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 0.91675794767 %\n" + ] + } + ], + "prompt_number": 184 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.39, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "xd=0.7\n", + "xq=0.4\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "ia=1\n", + "tandelta=ia*xq*pf/(v+xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(math.radians(36.9)+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"no load voltage=\",e0,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 14.4702941001 degrees\n", + "no load voltage= 1.51511515874 V\n" + ] + } + ], + "prompt_number": 185 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.40, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "f=50.0#Hz\n", + "xd=0.6\n", + "xq=0.45\n", + "ra=0.015\n", + "pf=0.8\n", + "ia=1\n", + "v=1\n", + "sinphi=math.sin(math.acos(pf))\n", + "#calculation\n", + "tanpsi=(v*sinphi+ia*xq)/(v*pf+ia*ra)\n", + "psi=math.atan(tanpsi)\n", + "delta=psi-math.acos(pf)\n", + "i_d=ia*math.sin(psi)\n", + "iq=ia*math.cos(psi)\n", + "e0=v*math.cos(delta)+iq*ra+i_d*xd\n", + "regn=(e0-v)*100/v\n", + "\n", + "#result\n", + "print \"open circuit voltage=\",e0,\"V\"\n", + "print \"regulation=\",regn,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "open circuit voltage= 1.44767600311 V\n", + "regulation= 44.7676003107 %\n" + ] + } + ], + "prompt_number": 187 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.41, Page Number:1455" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "ia=10#A\n", + "phi=math.radians(20)\n", + "v=400#V\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "pf=math.cos(phi)\n", + "sinphi=math.sin(phi)\n", + "tandelta=ia*xq*pf/(v+ia*xq*sinphi)\n", + "delta=math.atan(tandelta)\n", + "i_d=ia*math.sin(phi+delta)\n", + "iq=ia*math.cos(phi+delta)\n", + "e0=v*math.cos(delta)+i_d*xd\n", + "regn=(e0-v)/v\n", + "\n", + "#result\n", + "print \"load angle=\",math.degrees(delta),\"degrees\"\n", + "print \"id=\",i_d,\"A\"\n", + "print \"iq=\",iq,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 8.23131209115 degrees\n", + "id= 4.7303232581 A\n", + "iq= 8.81045071911 A\n" + ] + } + ], + "prompt_number": 189 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.42, Page Number:1459" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "e1=220#V\n", + "f1=60#Hz\n", + "e2=222#V\n", + "f2=59#Hz\n", + "\n", + "#calculation\n", + "emax=(e1+e2)/2\n", + "emin=(e2-e1)/2\n", + "f=(f1-f2)\n", + "epeak=emax/0.707\n", + "pulse=(f1-f2)*60\n", + "\n", + "#result\n", + "print \"max voltage=\",emax,\"V\"\n", + "print \"min voltage=\",emin,\"V\"\n", + "print \"frequency=\",f,\"Hz\"\n", + "print \"peak value of voltage=\",epeak,\"V\"\n", + "print \"number of maximum light pulsations/minute=\",pulse" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max voltage= 221 V\n", + "min voltage= 1 V\n", + "frequency= 1 Hz\n", + "peak value of voltage= 312.588401697 V\n", + "number of maximum light pulsations/minute= 60\n" + ] + } + ], + "prompt_number": 190 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.43, Page Number:1462" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "power=1500#kVA\n", + "v=6.6#kV\n", + "r=0.4#ohm\n", + "x=6#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=power*1000/(3**0.5*v*1000)\n", + "ira=i*r\n", + "ixs=i*x\n", + "vp=v*1000/3**0.5\n", + "phi=math.acos(pf)\n", + "tanphialpha=(vp*math.sin(phi)+ixs)/(vp*pf+ira)\n", + "phialpha=math.atan(tanphialpha)\n", + "alpha=phialpha-phi\n", + "\n", + "#result\n", + "print \"power angle=\",math.degrees(alpha)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power angle= 7.87684146241\n" + ] + } + ], + "prompt_number": 198 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.44, Page Number:1464" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3000#KVA\n", + "p=6\n", + "n=1000#rpm\n", + "v=3300#v\n", + "x=0.25\n", + "\n", + "#calculation\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "ixs=x*vp\n", + "xs=x*vp/i\n", + "alpha=1*p/2\n", + "psy=3*3.14*vp**2/(60*xs*n)\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronizing power=\",psy,\"kW\"\n", + "print \"torque=\",tsy*1000,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronizing power= 628.0 kW\n", + "torque= 5997.4 N-m\n" + ] + } + ], + "prompt_number": 202 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.45, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=3#MVA\n", + "n=1000#rpm\n", + "v1=3.3#kV\n", + "r=0.25\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "vp=v1*1000/3**0.5\n", + "i=load*1000000/(3**0.5*v1*1000)\n", + "ixs=complex(0,r*vp)\n", + "xs=ixs/i\n", + "v=vp*complex(pf,math.sin(math.acos(pf)))\n", + "e0=v+ixs\n", + "alpha=math.atan(e0.imag/e0.real)-math.acos(pf)\n", + "p=6/2\n", + "psy=abs(e0)*vp*math.cos(alpha)*math.sin(math.radians(3))/xs\n", + "tsy=9.55*3*psy*100/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",-psy*3/1000,\"kW\"\n", + "print \"toque=\",-tsy/100,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 722.236196153j kW\n", + "toque= 6897.35567326j N-m\n" + ] + } + ], + "prompt_number": 221 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.46, Page Number:1465" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=750#KVA\n", + "v=11#kV\n", + "p=4\n", + "r=1#%\n", + "x=15#%\n", + "pf=0.8\n", + "#calculation\n", + "i=load*1000/(3**0.5*v*1000)\n", + "vph=v*1000/3**0.5\n", + "ira=r*vph/1000\n", + "ra=ira/i\n", + "xs=x*vph/(100*i)\n", + "zs=(ra**2+xs**2)**0.5\n", + "#no load\n", + "alpha=p/2\n", + "psy=math.radians(alpha)*vph**2/xs\n", + "#fl 0.8 pf\n", + "e=((vph*pf+i*ra)**2+(vph*math.sin(math.acos(pf)+i*xs))**2)**0.5\n", + "psy2=math.radians(alpha)*e*vph/xs\n", + "\n", + "#result\n", + "print \"Synchronous power at:\"\n", + "print \"no load=\",psy,\"W\"\n", + "print \"at pf of 0.8=\",psy2,\"w\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous power at:\n", + "no load= 58177.6417331 W\n", + "at pf of 0.8= 73621.2350169 w\n" + ] + } + ], + "prompt_number": 225 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.47, Page Number:1466" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=2000#KVA\n", + "p=8\n", + "n=750#rpm\n", + "v1=6000#V\n", + "pf=0.8\n", + "r=6#ohm\n", + "\n", + "#calculations\n", + "alpha=math.radians(4)\n", + "v=v1/3**0.5\n", + "i=load*1000/(3**0.5*v1)\n", + "e0=((v*pf)**2+(v*math.sin(math.acos(pf))+i*r)**2)**0.5\n", + "psy=alpha*e0*v*3/r\n", + "tsy=9.55*psy/n\n", + "\n", + "#result\n", + "print \"synchronous power=\",psy,\"W\"\n", + "print \"synchronous torque=\",tsy,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power= 514916.500204 W\n", + "synchronous torque= 6556.60343593 N-m\n" + ] + } + ], + "prompt_number": 226 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.48, Page Number:1467" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "n=1500#rpm\n", + "f=50#Hz\n", + "r=20#%\n", + "pf=0.8\n", + "phi=0.5\n", + "\n", + "#calculations\n", + "vp=v/3**0.5\n", + "i=load*1000/(3**0.5*v)\n", + "xs=r*vp/(1000*i)\n", + "p=120*f/n\n", + "alpha=math.radians(2)\n", + "#no load\n", + "psy=3*alpha*vp**2/(p*1000)\n", + "tsy=9.55*psy*1000/(n*2)\n", + "#pf=0.8\n", + "v2=vp*complex(pf,math.sin(math.acos(pf)))\n", + "ixs=complex(0,i*4)\n", + "e0=v+ixs\n", + "psy2=abs(e0)*vp*math.cos(math.radians(8.1))*math.sin(math.radians(2))*3/4\n", + "tsy2=9.55*psy2/(n*20)\n", + "\n", + "#result\n", + "print \"synchronous power:\"\n", + "print \"atno load=\",psy,\"w\"\n", + "print \"at 0.8 pf=\",psy2,\"w\"\n", + "print \"torque:\"\n", + "print \"at no load=\",tsy,\"N-m\"\n", + "print \"at pf=0.8=\",tsy2,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "synchronous power:\n", + "atno load= 872.664625997 w\n", + "at 0.8 pf= 1506057.44405 w\n", + "torque:\n", + "at no load= 2777.98239276 N-m\n", + "at pf=0.8= 479.428286357 N-m\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.49, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=6.6#kW\n", + "load1=3000#kW\n", + "pf=0.8\n", + "xa=complex(0.5,10)\n", + "xb=complex(0.4,12)\n", + "i0=150#A\n", + "\n", + "#calculation\n", + "v=complex(load*1000/3**0.5,0)\n", + "cosphi1=1500*1000/(load*1000*i0*3**0.5)\n", + "phi1=math.acos(cosphi1)\n", + "sinphi1=math.sin(phi1)\n", + "i=328*complex(pf,-math.sin(math.acos(pf)))\n", + "i1=i0*complex(cosphi1,-sinphi1)\n", + "i2=i-i1\n", + "coshi2=i2.real/181\n", + "ea=v+i1*xa\n", + "eal=3**0.5*abs(ea)\n", + "eb=v+i2*xb\n", + "ebl=3**0.5*abs(eb)\n", + "alpha1=(ea.imag/ea.real)\n", + "alpha2=(eb.imag/eb.real)\n", + "#result\n", + "print \"Ea=\",ea,\"V\"\n", + "print \"Eb=\",eb,\"V\"\n", + "print \"alpha1=\",math.degrees(alpha1),\"degrees\"\n", + "print \"alpha2=\",math.degrees(alpha2),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ea= (4602.91884998+1275.81974829j) V\n", + "Eb= (5352.42648271+1524.56032028j) V\n", + "alpha1= 15.8810288383 degrees\n", + "alpha2= 16.3198639435 degrees\n" + ] + } + ], + "prompt_number": 245 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.50, Page Number:1468" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declration\n", + "e1=complex(230,0)\n", + "e2=230*complex(0.985,0.174)\n", + "z1=complex(0,2)\n", + "z2=complex(0,3)\n", + "z=6\n", + "i1=((e1-e2)*z+e1*z2)/(z*(z1+z2)+z1*z2)\n", + "i2=((e2-e1)*z+e2*z1)/(z*(z1+z2)+z1*z2)\n", + "i=i1+i2\n", + "v=i*z\n", + "p1=abs(v)*abs(i1)*math.cos(math.atan(i1.imag/i1.real))\n", + "p2=abs(v)*abs(i2)*math.cos(math.atan(i2.imag/i2.real))\n", + "\n", + "#result\n", + "print \"terminal voltage=\",v,\"V\"\n", + "print \"current\",i,\"A\"\n", + "print \"power 1=\",p1,\"W\"\n", + "print \"power 2=\",p2,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "terminal voltage= (222.905384615-28.5730769231j) V\n", + "current (37.1508974359-4.76217948718j) A\n", + "power 1= 3210.60292765 W\n", + "power 2= 5138.29001053 W\n" + ] + } + ], + "prompt_number": 249 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.51, Page Number:1471" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=1500#kW\n", + "v=11#KV\n", + "pf=0.867\n", + "x=50#ohm\n", + "r=4#ohm\n", + "i=50#A\n", + "\n", + "#calculations\n", + "il=load*1000/(3**0.5*v*1000*pf)\n", + "phi=math.acos(pf)\n", + "sinphi=math.sin(phi)\n", + "iwatt=il*pf\n", + "iwattless=il*sinphi\n", + "i1=il/2\n", + "i2=iwatt/2\n", + "iw1=(i**2-i1**2)**0.5\n", + "iw2=i2-iw1\n", + "ia=(i2**2+iw2**2)**0.5\n", + "vt=v*1000/3**0.5\n", + "ir=i*r\n", + "ix=x*i\n", + "cosphi=i2/i\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "e=((vt*cosphi+ir)**2+(vt*sinphi+ix)**2)**0.5\n", + "el=3**0.5*e\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"line voltage=\",el,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 43.4628778514 A\n", + "line voltage= 14304.0798593 V\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.52, Page Number:1472" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10#MW\n", + "pf=0.8\n", + "output=6000#kW\n", + "pfa=0.92\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "phia=math.acos(pfa)\n", + "tanphi=math.tan(phi)\n", + "tanphia=math.tan(phia)\n", + "loadkvar=load*1000*tanphi\n", + "akvar=output*tanphia\n", + "kwb=(load*1000-output)\n", + "kvarb=loadkvar-akvar\n", + "kvab=complex(kwb,kvarb)\n", + "pfb=math.cos(math.atan(kvab.imag/kvab.real))\n", + "kvarb=kwb*pfb\n", + "kvara=-loadkvar-kvarb\n", + "kvaa=complex(output,kvara)\n", + "pfa=math.cos(math.atan(kvaa.imag/kvaa.real))\n", + "\n", + "#result\n", + "print \"new pfb=\",pfb\n", + "print \"new pfa=\",pfa" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new pfb= 0.628980253433\n", + "new pfa= 0.513894032194\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.54, Page Number:1473" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=6600#V\n", + "load=1000#KVA\n", + "x=20#%\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "i=87.5\n", + "x=8.7\n", + "vp=3810\n", + "e0=4311\n", + "ir=70\n", + "ix=52.5\n", + "IX=762\n", + "vb1=(e0**2-vp**2)**0.5\n", + "i1x=vb1\n", + "i1=i1x/x\n", + "output=3**0.5*v*i1/1000\n", + "b2v=(vp**2+e0**2)**0.5\n", + "i2z=b2v\n", + "i2=b2v/x\n", + "i2rx=e0\n", + "i2r=i2rx/x\n", + "i2x=vp/x\n", + "tanphi2=i2x/i2r\n", + "phi2=math.atan(tanphi2)\n", + "cosphi2=math.cos(phi2)\n", + "output1=3**0.5*v*i2*cosphi2/1000\n", + "\n", + "#result\n", + "print \"power output at unity pf=\",output,\"kW\"\n", + "print \"max power output=\",output1,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " power output at unity pf= 2650.38477722 kW\n", + "max power output= 5664.52285143 kW\n" + ] + } + ], + "prompt_number": 255 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.55, Page Number:1474" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "x=10.0#ohm\n", + "i=220.0#A\n", + "load=11.0#kV\n", + "per=25.0#%\n", + "\n", + "#calculations\n", + "oa1=load*1000/3**0.5\n", + "a1c1=i*x\n", + "e0=(oa1**2+a1c1**2)**0.5\n", + "emf=(1+per/100)*e0\n", + "a1a2=(emf**2-a1c1**2)**0.5-oa1\n", + "ix=a1a2/x\n", + "i1=(i**2+ix**2)**0.5\n", + "pf=i/i1\n", + "bv=(oa1**2+emf**2)**0.5\n", + "imax=bv/x\n", + "ir=emf/x\n", + "ix=oa1/x\n", + "pfmax=ir/imax\n", + "output=3**0.5*load*1000*imax*pfmax*0.001\n", + "#result\n", + "print \"new current=\",i1,\"A\"\n", + "print \"new power factor=\",pf\n", + "print \"max power output=\",output,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new current= 281.573453399 A\n", + "new power factor= 0.781323655849\n", + "max power output= 16006.7954319 kW\n" + ] + } + ], + "prompt_number": 258 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.56, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=20.0#MVA\n", + "load1=35.0#MVA\n", + "pf=0.8\n", + "output=25.0#MVA\n", + "cosphi1=0.9\n", + "\n", + "#calculations\n", + "loadmw=load1*pf\n", + "loadmvar=load1*0.6\n", + "sinphi=math.sin(math.acos(cosphi))\n", + "mva1=25\n", + "mw1=mva1*cosphi1\n", + "mvar1=25*sinphi1\n", + "mw2=loadmw-mw1\n", + "mvar2=loadmvar-mvar1\n", + "mva2=(mw2**2+mvar2**2)**0.5\n", + "cosphi2=mw2/mva2\n", + "\n", + "#result\n", + "print \"output=\",mva2\n", + "print \"pf=\",cosphi2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output= 10.4509862952\n", + "pf= 0.52626611926\n" + ] + } + ], + "prompt_number": 260 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.57, Page Number:1475" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declarations\n", + "load=600#KW\n", + "loadm=707#kW\n", + "pf=0.707\n", + "output=900#kW\n", + "pf1=0.9\n", + "\n", + "#calculation\n", + "kva=1000\n", + "kvar=kva*(1-pf1**2)**0.5\n", + "active_p=1307-output\n", + "reactive_p=loadm-kvar\n", + "\n", + "#result\n", + "print \"active power shared by second machine=\",active_p,\"kW\"\n", + "print \"reactive power shared by second machine=\",reactive_p,\"kVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "active power shared by second machine= 407 kW\n", + "reactive power shared by second machine= 271.110105646 kVAR\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.58, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "l1=500#kW\n", + "l2=1000#kW\n", + "pf1=0.9\n", + "l3=800#kW\n", + "pf2=0.8\n", + "l4=500#kW\n", + "pf3=0.9\n", + "output=1500#kW\n", + "pf=0.95\n", + "\n", + "#calculation\n", + "kw1=l1\n", + "kw2=l2\n", + "kw3=l3\n", + "kw4=500\n", + "kvar2=kw2*0.436/pf1\n", + "kvar3=kw3*0.6/pf2\n", + "kvar4=kw4*0.436/pf3\n", + "kvar=output/pf\n", + "kw=kw1+kw2+kw3+kw4-output\n", + "kvar=kvar2+kvar3+kvar4-kvar\n", + "cosphi=math.cos(math.atan(kvar/kw))\n", + "\n", + "#result\n", + "print \"kW output=\",kw\n", + "print \"pf=\",cosphi" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kW output= 1300\n", + "pf= 0.981685651341\n" + ] + } + ], + "prompt_number": 264 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.59, Page Number:1476" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "z=complex(0.2,2)\n", + "ze=complex(3,4)\n", + "emf1=complex(2000,0)\n", + "emf2=complex(22000,100)\n", + "\n", + "#calculations\n", + "i1=complex(68.2,-102.5)\n", + "i2=complex(127,-196.4)\n", + "i=i1+i2\n", + "v=i*ze\n", + "pva1=v*i1\n", + "kw1=pva1.real*3\n", + "a11=math.atan(-i1.imag/i1.real)\n", + "a12=math.atan(-v.imag/v.real)\n", + "pf1=math.cos(a11-a12)\n", + "pva2=v*i2\n", + "kw2=pva2.real*3\n", + "a21=math.atan(-i2.imag/i2.real)\n", + "a22=math.atan(-v.imag/v.real)\n", + "pf2=math.cos(a21-a22)\n", + "\n", + "#result\n", + "print \"kw output 1=\",kw1/1000\n", + "print \"pf 1=\",pf1\n", + "print \"kw output 2=\",kw2/1000\n", + "print \"pf 2=\",pf2" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "kw output 1= 328.79427\n", + "pf 1= 0.606839673468\n", + "kw output 2= 610.34892\n", + "pf 2= 0.596381892841\n" + ] + } + ], + "prompt_number": 273 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.63, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=5000#KVA\n", + "v=10000#V\n", + "f=50#Hz\n", + "ns=1500#rpm\n", + "j=1.5*10**4#khm2\n", + "ratio=5\n", + "\n", + "#calculation\n", + "t=0.0083*ns*(j/(load*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"natural time period of oscillation=\",round(t,3),\"s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "natural time period of oscillation= 1.364 s\n" + ] + } + ], + "prompt_number": 275 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.64, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10000#KVA\n", + "p=4\n", + "v=6600#V\n", + "f=50#Hz\n", + "xs=25#%\n", + "pf=1.5\n", + "\n", + "#calculations\n", + "ratio=100/xs\n", + "ns=120*f/p\n", + "j=(pf/(0.0083*ns))**2*load*ratio*f\n", + "\n", + "#result\n", + "print \"moment of inertia=\",j/1000,\"x10^4 kg-m2\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "moment of inertia= 29.0317898098 x10^4 kg-m2\n" + ] + } + ], + "prompt_number": 277 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.65, Page Number:1481" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=10.0#MVA\n", + "v=10.0#kV\n", + "f=50.0#Hz\n", + "ns=1500.0#rpm\n", + "j=2.0*10**5#kgm2\n", + "x=40.0\n", + "\n", + "#calculation\n", + "ratio=100.0/x\n", + "t=0.0083*ns*(j/(load*1000*ratio*f))**0.5\n", + "\n", + "#result\n", + "print \"frequency of oscillation of the rotor=\",round(1/t,1),\"Hz\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of oscillation of the rotor= 0.2 Hz\n" + ] + } + ], + "prompt_number": 283 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.66, Page Number:1483" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "v=11#kV\n", + "z=complex(1,10)\n", + "emf=14#kV\n", + "\n", + "#calculations\n", + "e=emf*1000/3**0.5\n", + "v=v*1000/3**0.5\n", + "costheta=z.real/abs(z)\n", + "pmax=e*v*3/(z.imag*1000)\n", + "pmax_per_phase=(v/abs(z))*(e-(v/abs(z)))*3\n", + "\n", + "#result\n", + "print \"max output =\",pmax_per_phase/1000,\"kW\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "max output = 14125.5529273 kW\n" + ] + } + ], + "prompt_number": 285 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.67, Page Number:1484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "load=11#kVA\n", + "load1=10#MW\n", + "z=complex(0.8,8.0)\n", + "v=14#kV\n", + "\n", + "#calculations\n", + "pmax=(load*1000/3**0.5)*(v*1000/3**0.5)*3/z.imag\n", + "imax=((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5/z.imag\n", + "pf=(v/3**0.5)*1000/((v*1000/3**0.5)**2+(load*1000/3**0.5)**2)**0.5\n", + "\n", + "#result\n", + "print \"maximum output=\",pmax/1000000,\"MW\"\n", + "print \"current=\",imax,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum output= 19.25 MW\n", + "current= 1284.92866209 A\n", + "pf= 0.786318338822\n" + ] + } + ], + "prompt_number": 289 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb new file mode 100644 index 00000000..eb91f537 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb @@ -0,0 +1,1682 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 38: Synchronous Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.1, Page Number:1495" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=75#kW\n", + "f=50#Hz\n", + "v=440#V\n", + "pf=0.8\n", + "loss=0.95\n", + "xs=2.5#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/4\n", + "pm=p*1000/loss\n", + "ia=pm/(math.sqrt(3)*v*pf)\n", + "vol_phase=v/math.sqrt(3)\n", + "\n", + "#calculations\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"armature current=\",ia,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power= 78947.3684211 W\n", + "armature current= 129.489444346 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.2, Page Number:1498" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "p=20\n", + "vl=693#V\n", + "r=10#ohm\n", + "lag=0.5#degrees\n", + "\n", + "#calculations\n", + "#lag=0.5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "print \"displacement:0.5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"\n", + "print \"\"\n", + "\n", + "#lag=5\n", + "lag=5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "\n", + "print \"displacement:5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "displacement:0.5%\n", + "alpha= 5.0 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (3.4871338335-0.152251551219j) A\n", + "power drawn= 4189.63221768 W\n", + "\n", + "displacement:5%\n", + "alpha= 50 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (30.6497244054-14.2922012106j) A\n", + "power drawn= 40591.222447 W\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.3, Page Number:1499" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V/ph\n", + "i=32.0#A/ph\n", + "xs=10.0#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xs)**2)\n", + "delta=math.atan((i*xs)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 512.249938995 V\n", + "delta= 38.6598082541 degrees\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.4, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=150#kW\n", + "f=50#Hz\n", + "v=2300#V\n", + "n=1000#rpm\n", + "xd=32#ohm\n", + "xq=20#ohm\n", + "alpha=16#degrees\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=2*vp\n", + "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", + "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", + "pm=3*(ex_power+rel_power)\n", + "tg=9.55*pm/1000\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1121.29686485 N-m\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.6, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "ia=60#A\n", + "r=1#ohm\n", + "x=30#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "p2=math.sqrt(3)*v*ia*pf\n", + "cu_loss=ia**2*3\n", + "pm=p2-cu_loss\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=x\n", + "z_drop=ia*zs\n", + "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", + "\n", + "#result\n", + "print \"power supplied=\",p2/1000,\"kW\"\n", + "print \"mechanical power=\",pm/1000,\"KW\"\n", + "print \"induced emf=\",eb,\"V\"\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power supplied= 914.522826396 kW\n", + "mechanical power= 903.722826396 KW\n", + "induced emf= 13039.2734763 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.7, Page Number:1507" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "i=32#A\n", + "pf=1\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", + "delta=math.atan((i*xq)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 502.648089715 V\n", + "delta= 27.4744316263 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.8, Page Number:1508" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=500#V\n", + "output=7.46#kW\n", + "pf=0.9\n", + "r=0.8#ohm\n", + "loss=500#W\n", + "ex_loss=800#W\n", + "\n", + "#calculations\n", + "pm=output*1000+loss+ex_loss\n", + "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", + "m_input=loss*ia*pf\n", + "efficiency=output*1000/m_input\n", + "\n", + "#result\n", + "print \"commercial efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commercial efficiency= 82.1029269497 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.9, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2300#V\n", + "r=0.2#ohm\n", + "x=2.2#ohm\n", + "pf=0.5\n", + "il=200#A\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x//r)\n", + "v=v/math.sqrt(3)\n", + "zs=math.sqrt(r**2+x**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", + "\n", + "#result\n", + "print \"Eb=\",eb,\"volt/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Eb= 1708.04482042 volt/phase\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.10, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "vl=6600#V\n", + "f=50#Hz\n", + "il=50#A\n", + "r=1#ohm\n", + "x=20#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "#0.8 lagging\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 lag: Eb=\",eb\n", + "\n", + "#0.8 leading\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 leading:Eb=\",eb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.8 lag: Eb= 5651.1180113\n", + "0.8 leading:Eb= 7705.24623679\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.11, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x=0.4\n", + "pf=0.8\n", + "v=100#V\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "#pf=1\n", + "eb=math.sqrt(v**2+(x*v)**2)\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", + "#pf=0.8 lead\n", + "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", + "#result\n", + "print \"pf=1: Eb=\",eb,\"V\"\n", + "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", + "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf=1: Eb= 107.703296143 V\n", + "pf=0.8 lag:Eb= 82.4621125124 V\n", + "pf=0.8 lead:Eb= 128.062484749 V\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.12, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaraion\n", + "load=1000#kVA\n", + "v=11000#V\n", + "r=3.5#ohm\n", + "x=40#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "ia=load*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "ra=ia*r\n", + "xa=ia*x\n", + "za=math.sqrt(ra**2+xa**2)\n", + "theta=math.atan(x/r)\n", + "\n", + "#pf=1\n", + "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", + "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", + "\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", + "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", + "#pf=1\n", + "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", + "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", + "\n", + "#result\n", + "print \"at pf=1\"\n", + "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", + "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", + "print \"at pf=0.8 lagging\"\n", + "print \"Eb=\",eb2,\"V\"\n", + "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", + "print \"at pf=0.8 leading\"\n", + "print \"Eb=\",eb3,\"V\"\n", + "print \"alpha=\",math.degrees(alpha3),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "at pf=1\n", + "Eb= 11283.8105339 V\n", + "alpha= 18.7256601694 degrees\n", + "at pf=0.8 lagging\n", + "Eb= 8990.39249633 V\n", + "alpha= 10.0142654731 degrees\n", + "at pf=0.8 leading\n", + "Eb= 13283.8907748 V\n", + "alpha= 7.71356041367 degrees\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.14, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=complex(0.5,0.866)\n", + "v=200#V\n", + "output=6000#W\n", + "loss=500#W\n", + "i=50#A\n", + "\n", + "#calculations\n", + "cu_loss=i**2*z.real\n", + "motor_intake=output+loss+cu_loss\n", + "phi=math.acos(motor_intake/(v*i))\n", + "theta=math.atan(z.imag/z.real)\n", + "zs=abs(z)*i\n", + "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", + "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", + "#result\n", + "print \"lag:eb=\",eb1,\"V\"\n", + "print \"lag:eb=\",eb2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "lag:eb= 154.286783862 V\n", + "lag:eb= 213.765547573 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.15, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2200#V\n", + "f=50#Hz\n", + "z=complex(0.4,6)\n", + "lag=3#degrees\n", + "\n", + "#calculations\n", + "eb=v/math.sqrt(3)\n", + "alpha=lag*8/2\n", + "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", + "zs=abs(z)\n", + "ia=er/zs\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", + "pf=math.cos(phi)\n", + "total_input=3*eb*ia*pf\n", + "cu_loss=3*ia**2*z.real\n", + "pm=total_input-cu_loss\n", + "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"power of the motor=\",pm/1000,\"kW\"\n", + "print \"max power of motor=\",pm_max/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 44.1583059199 A\n", + "power factor= 0.99927231631\n", + "power of the motor= 165.803353329 kW\n", + "max power of motor= 250.446734776 kW\n" + ] + } + ], + "prompt_number": 72 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.16, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "eb=250#V\n", + "lead=150#degrees\n", + "v=200#V\n", + "x=2.5#times resistance\n", + "alpha=lead/3\n", + "#calculations\n", + "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", + "theta=math.atan(x)\n", + "phi=math.radians(90)-theta\n", + "pf=math.cos(phi)\n", + "\n", + "#results\n", + "print \"pf at which the motor is operating=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf at which the motor is operating= 0.928476690885\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.17, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "r=10#ohm\n", + "inpt=900#kW\n", + "e=8900#V\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "icos=inpt*1000/(math.sqrt(3)*v)\n", + "bc=r*icos\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi=math.atan(oc/bc)\n", + "i=icos/math.cos(phi)\n", + "\n", + "#result\n", + "print \"Line current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 149.188331836 A\n" + ] + } + ], + "prompt_number": 82 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.18, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "x=20#ohm\n", + "inpt=1000#kW\n", + "pf=0.8\n", + "inpt2=1500#kW\n", + "\n", + "#variable declaration\n", + "va=v/math.sqrt(3)\n", + "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", + "zs=x\n", + "phi=math.acos(pf)\n", + "ia1zs=ia1*zs\n", + "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", + "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", + "cosphi2=x*ia2cosphi2\n", + "ac=math.sqrt(eb**2-cosphi2*2)\n", + "phi2=math.atan(ac/cosphi2)\n", + "pf=math.cos(phi2)\n", + "alpha2=math.atan(cosphi2/ac)\n", + "\n", + "#results\n", + "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power angle= 25.8661450552 degrees\n", + "new power factor= 0.436270181217\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.19, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=5472#W\n", + "x=10#ohm\n", + "\n", + "#calculations\n", + "va=v/math.sqrt(3)\n", + "iacosphi=inpt/(math.sqrt(3)*v)\n", + "zs=x\n", + "iazs=iacosphi*zs\n", + "ac=math.sqrt(va**2-iazs**2)\n", + "oc=va-ac\n", + "bc=iazs\n", + "phi=math.atan(oc/iazs)\n", + "pf=math.cos(phi)\n", + "ia=iacosphi/pf\n", + "alpha=math.atan(bc/ac)\n", + "#result\n", + "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", + "print \"power factor=\",pf\n", + "print \"armature current=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 19.9987718079 degrees\n", + "power factor= 0.984809614116\n", + "armature current= 8.01997824686 A\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.20, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=2000.0#V\n", + "r=0.2#ohm\n", + "xs=2.2#ohm\n", + "inpt=800.0#kW\n", + "e=2500.0#V\n", + "\n", + "#calculations\n", + "i1=inpt*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "ep=e/math.sqrt(3)\n", + "theta=math.atan(xs/r)\n", + "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", + "i=math.sqrt(i1**2+i2[0]**2)\n", + "pf=i1/i\n", + "\n", + "#result\n", + "print \"line currrent=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line currrent= 241.492937915 A\n", + "power factor= 0.956301702525\n" + ] + } + ], + "prompt_number": 152 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.21, Page Number:1516" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "inpt=7.46#kW\n", + "r=0.5#ohm\n", + "pf=0.75\n", + "loss=500#W\n", + "ex_loss=650#W\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "cu_loss=3*ia**2*r\n", + "power=inpt*1000+ex_loss\n", + "output=inpt*1000-cu_loss-loss\n", + "efficiency=output/power\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power=\",power,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 13.0516151762 A\n", + "power= 8110.0 W\n", + "efficiency= 82.6693343026 %\n" + ] + } + ], + "prompt_number": 156 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.22, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "v=3300#V\n", + "x=18#ohm\n", + "pf=0.707\n", + "inpt=800#kW\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "ip=ia/math.sqrt(3)\n", + "zs=x\n", + "iazs=ip*zs\n", + "phi=math.acos(pf)\n", + "theta=math.radians(90)\n", + "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", + "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", + "\n", + "#result\n", + "print \"excitation emf=\",eb,\"V\"\n", + "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 4972.19098879 V\n", + "rotor angle= 17.0098509277 degrees\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.23, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=75#kW\n", + "v=400#V\n", + "r=0.04#ohm\n", + "x=0.4#ohm\n", + "pf=0.8\n", + "efficiency=0.925\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "ia=input_m/(math.sqrt(3)*v)\n", + "zs=math.sqrt(r**2+x**2)\n", + "iazs=ia*zs\n", + "phi=math.atan(x/r)\n", + "theta=math.radians(90)-phi\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "cu_loss=3*ia**2*r\n", + "ns=120*50/40\n", + "pm=input_m-cu_loss\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"emf=\",eb,\"eb\"\n", + "print \"mechanical power=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 235.683320812 eb\n", + "mechanical power= 79437.5456538 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.24, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "r=0.5#ohm\n", + "zs=x=4#ohm\n", + "i=15#A\n", + "i2=60#A\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "iazs=i*zs\n", + "xs=math.sqrt(x**2-r**2)\n", + "theta=math.atan(xs/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", + "iazs2=i2*zs\n", + "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", + "pf=math.cos(phi)\n", + "input_m=math.sqrt(3)*v*i2*pf\n", + "cu_loss=3*i2**2*r\n", + "pm=input_m-cu_loss\n", + "ns=120*50/6\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"gross torque developed=\",tg,\"N-m\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque developed= 310.739709828 N-m\n", + "new power factor= 0.912650996943\n" + ] + } + ], + "prompt_number": 161 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.25, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=7.46#kW\n", + "xs=10#W/phase\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "il=input_m/(math.sqrt(3)*v)\n", + "zs=il*xs\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+zs**2)\n", + "\n", + "#result\n", + "print \"minimum current=\",il,\"A\"\n", + "print \"inducedemf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "minimum current= 12.6677441416 A\n", + "inducedemf= 263.401798584 V\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.26, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "inpt=37.5#kW\n", + "efficiency=0.88\n", + "zs=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "input_m=inpt/efficiency\n", + "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "er=ia*abs(zs)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(zs.imag/zs.real)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", + "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", + "#result\n", + "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power developed=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 495.407915636 V\n", + "total mechanical power developed= 44844.4875189 W\n" + ] + } + ], + "prompt_number": 206 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.27, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=6600.0#V\n", + "xs=20.0#ohm\n", + "inpt=1000.0#kW\n", + "pf=0.8\n", + "inpt2=1500.0#kW\n", + "phi2=Symbol('phi2')\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "theta=math.radians(90)\n", + "er=ia*xs\n", + "zs=xs\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", + "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", + "#solving we get\n", + "phi2=math.radians(19.39)\n", + "pf=math.cos(phi2)\n", + "#result\n", + "print \"new power factor=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power factor= 0.943280616635\n" + ] + } + ], + "prompt_number": 228 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.28, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "x=4#ohms/phase\n", + "r=0.5#ohms/phase\n", + "ia=60#A\n", + "pf=0.866\n", + "loss=2#kW\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(complex(r,x))\n", + "phi=math.acos(pf)\n", + "iazs=ia*zs\n", + "theta=math.atan(x/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", + "pm=3*pm_max\n", + "output=pm-loss*1000\n", + "\n", + "#result\n", + "print \"maximum power output=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum power output= 51.3898913442 kW\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.29, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=10#ohm\n", + "x=0.5#ohm\n", + "v=2000#V\n", + "f=25#Hz\n", + "eb=1600#V\n", + "\n", + "#calculations\n", + "pf=x/z\n", + "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", + "ns=120*f/6\n", + "tg_max=9.55*pm_max/ns\n", + "\n", + "#result\n", + "print \"maximum total torque=\",tg_max,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total torque= 5505.51976175 N-m\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.30, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variabke declaration\n", + "v=2000#V\n", + "n=1500#rpm\n", + "x=3#ohm/phase\n", + "ia=200#A\n", + "\n", + "#calculations\n", + "eb=vp=v/math.sqrt(3)\n", + "zs=ia*x\n", + "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", + "phi=math.asin(sinphi)\n", + "pf=math.cos(phi)\n", + "pi=math.sqrt(3)*v*ia*pf/1000\n", + "tg=9.55*pi*1000/n\n", + "\n", + "#result\n", + "print \"power input=\",pi,\"kW\"\n", + "print \"power factor=\",pf\n", + "print \"torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power input= 669.029147347 kW\n", + "power factor= 0.965660395791\n", + "torque= 4259.48557144 N-m\n" + ] + } + ], + "prompt_number": 234 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.31, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=3300#V\n", + "r=2#ohm\n", + "x=18#ohm\n", + "e=3800#V\n", + "\n", + "#calculations\n", + "theta=math.atan(x/r)\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "alpha=theta\n", + "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", + "zs=math.sqrt(r**2+x**2)\n", + "ia=er/zs\n", + "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", + "cu_loss=3*ia**2*r\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*v*ia)\n", + "\n", + "#result\n", + "print \"maximum total mechanical power=\",pm_max,\"W\"\n", + "print \"current=\",ia,\"A\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total mechanical power= 604356.888001 W\n", + "current= 151.417346198 A\n", + "pf= 0.857248980398\n" + ] + } + ], + "prompt_number": 235 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.32, Page Number:1521" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=415#V\n", + "e=520#V\n", + "z=complex(0.5,4)\n", + "loss=1000#W\n", + "\n", + "#calculations\n", + "theta=math.atan(z.imag/z.real)\n", + "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", + "zs=abs(z)\n", + "i=er/zs\n", + "il=math.sqrt(3)*i\n", + "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", + "output=pm_max-loss\n", + "cu_loss=3*i**2*z.real\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*il*v)\n", + "efficiency=output/input_m\n", + "\n", + "#result\n", + "print \"power output=\",output/1000,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output= 134.640174346 kW\n", + "line current= 268.015478962 A\n", + "power factor= 0.890508620247\n", + "efficiency= 78.4816159071 %\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.33, Page Number:1524" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=37.3#kW\n", + "efficiency=0.88\n", + "z=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(z)\n", + "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", + "izs=zs*il\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", + "input_m=inpt*1000/efficiency\n", + "cu_loss=3*il**2*z.real\n", + "pm=input_m-cu_loss\n", + "\n", + "#result\n", + "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power=\",pm/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 494.75258624 V\n", + "total mechanical power= 39.6138268735 kW\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.34, Page Number:1525" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=48#kW\n", + "v=693#V\n", + "pf=0.8\n", + "ratio=0.3\n", + "x=2#W/phase\n", + "\n", + "#calculations\n", + "il=inpt*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "zs=x\n", + "izs=zs*il\n", + "theta=math.atan(float(\"inf\"))\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", + "i_cosphi=pf*il\n", + "bc=i_cosphi*x\n", + "eb=eb+(ratio*eb)\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi2=math.atan(oc/bc)\n", + "pf=math.cos(phi2)\n", + "i2=i_cosphi/pf\n", + "\n", + "#result\n", + "print \"current=\",i2,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 46.3871111945 A\n", + "pf= 0.862084919821\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.35, Page Number:1526" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=60.0#kW\n", + "inpt=240.0#kW\n", + "pf=0.8\n", + "pf2=0.9\n", + "\n", + "#calculations\n", + "total_load=inpt+load\n", + "phi=math.acos(pf2)\n", + "kVAR=total_load*math.tan(phi)\n", + "#factory load\n", + "phil=math.acos(pf)\n", + "kVAR=inpt*math.tan(phil)\n", + "kVA=inpt/pf\n", + "kVAR1=total_load*math.sin(phil)\n", + "lead_kVAR=kVAR1-kVAR\n", + "#synchronous motor\n", + "phim=math.atan(lead_kVAR/load)\n", + "motorpf=math.cos(phim)\n", + "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", + "\n", + "#result\n", + "print \"leading kVAR supplied by the motor=\",motorkVA\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "leading kVAR supplied by the motor= 60.0\n", + "pf= 0.8\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_1.ipynb new file mode 100644 index 00000000..eb91f537 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_1.ipynb @@ -0,0 +1,1682 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 38: Synchronous Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.1, Page Number:1495" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=75#kW\n", + "f=50#Hz\n", + "v=440#V\n", + "pf=0.8\n", + "loss=0.95\n", + "xs=2.5#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/4\n", + "pm=p*1000/loss\n", + "ia=pm/(math.sqrt(3)*v*pf)\n", + "vol_phase=v/math.sqrt(3)\n", + "\n", + "#calculations\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"armature current=\",ia,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power= 78947.3684211 W\n", + "armature current= 129.489444346 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.2, Page Number:1498" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "p=20\n", + "vl=693#V\n", + "r=10#ohm\n", + "lag=0.5#degrees\n", + "\n", + "#calculations\n", + "#lag=0.5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "print \"displacement:0.5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"\n", + "print \"\"\n", + "\n", + "#lag=5\n", + "lag=5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "\n", + "print \"displacement:5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "displacement:0.5%\n", + "alpha= 5.0 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (3.4871338335-0.152251551219j) A\n", + "power drawn= 4189.63221768 W\n", + "\n", + "displacement:5%\n", + "alpha= 50 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (30.6497244054-14.2922012106j) A\n", + "power drawn= 40591.222447 W\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.3, Page Number:1499" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V/ph\n", + "i=32.0#A/ph\n", + "xs=10.0#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xs)**2)\n", + "delta=math.atan((i*xs)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 512.249938995 V\n", + "delta= 38.6598082541 degrees\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.4, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=150#kW\n", + "f=50#Hz\n", + "v=2300#V\n", + "n=1000#rpm\n", + "xd=32#ohm\n", + "xq=20#ohm\n", + "alpha=16#degrees\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=2*vp\n", + "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", + "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", + "pm=3*(ex_power+rel_power)\n", + "tg=9.55*pm/1000\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1121.29686485 N-m\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.6, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "ia=60#A\n", + "r=1#ohm\n", + "x=30#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "p2=math.sqrt(3)*v*ia*pf\n", + "cu_loss=ia**2*3\n", + "pm=p2-cu_loss\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=x\n", + "z_drop=ia*zs\n", + "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", + "\n", + "#result\n", + "print \"power supplied=\",p2/1000,\"kW\"\n", + "print \"mechanical power=\",pm/1000,\"KW\"\n", + "print \"induced emf=\",eb,\"V\"\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power supplied= 914.522826396 kW\n", + "mechanical power= 903.722826396 KW\n", + "induced emf= 13039.2734763 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.7, Page Number:1507" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "i=32#A\n", + "pf=1\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", + "delta=math.atan((i*xq)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 502.648089715 V\n", + "delta= 27.4744316263 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.8, Page Number:1508" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=500#V\n", + "output=7.46#kW\n", + "pf=0.9\n", + "r=0.8#ohm\n", + "loss=500#W\n", + "ex_loss=800#W\n", + "\n", + "#calculations\n", + "pm=output*1000+loss+ex_loss\n", + "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", + "m_input=loss*ia*pf\n", + "efficiency=output*1000/m_input\n", + "\n", + "#result\n", + "print \"commercial efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commercial efficiency= 82.1029269497 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.9, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2300#V\n", + "r=0.2#ohm\n", + "x=2.2#ohm\n", + "pf=0.5\n", + "il=200#A\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x//r)\n", + "v=v/math.sqrt(3)\n", + "zs=math.sqrt(r**2+x**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", + "\n", + "#result\n", + "print \"Eb=\",eb,\"volt/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Eb= 1708.04482042 volt/phase\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.10, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "vl=6600#V\n", + "f=50#Hz\n", + "il=50#A\n", + "r=1#ohm\n", + "x=20#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "#0.8 lagging\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 lag: Eb=\",eb\n", + "\n", + "#0.8 leading\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 leading:Eb=\",eb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.8 lag: Eb= 5651.1180113\n", + "0.8 leading:Eb= 7705.24623679\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.11, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x=0.4\n", + "pf=0.8\n", + "v=100#V\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "#pf=1\n", + "eb=math.sqrt(v**2+(x*v)**2)\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", + "#pf=0.8 lead\n", + "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", + "#result\n", + "print \"pf=1: Eb=\",eb,\"V\"\n", + "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", + "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf=1: Eb= 107.703296143 V\n", + "pf=0.8 lag:Eb= 82.4621125124 V\n", + "pf=0.8 lead:Eb= 128.062484749 V\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.12, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaraion\n", + "load=1000#kVA\n", + "v=11000#V\n", + "r=3.5#ohm\n", + "x=40#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "ia=load*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "ra=ia*r\n", + "xa=ia*x\n", + "za=math.sqrt(ra**2+xa**2)\n", + "theta=math.atan(x/r)\n", + "\n", + "#pf=1\n", + "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", + "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", + "\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", + "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", + "#pf=1\n", + "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", + "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", + "\n", + "#result\n", + "print \"at pf=1\"\n", + "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", + "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", + "print \"at pf=0.8 lagging\"\n", + "print \"Eb=\",eb2,\"V\"\n", + "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", + "print \"at pf=0.8 leading\"\n", + "print \"Eb=\",eb3,\"V\"\n", + "print \"alpha=\",math.degrees(alpha3),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "at pf=1\n", + "Eb= 11283.8105339 V\n", + "alpha= 18.7256601694 degrees\n", + "at pf=0.8 lagging\n", + "Eb= 8990.39249633 V\n", + "alpha= 10.0142654731 degrees\n", + "at pf=0.8 leading\n", + "Eb= 13283.8907748 V\n", + "alpha= 7.71356041367 degrees\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.14, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=complex(0.5,0.866)\n", + "v=200#V\n", + "output=6000#W\n", + "loss=500#W\n", + "i=50#A\n", + "\n", + "#calculations\n", + "cu_loss=i**2*z.real\n", + "motor_intake=output+loss+cu_loss\n", + "phi=math.acos(motor_intake/(v*i))\n", + "theta=math.atan(z.imag/z.real)\n", + "zs=abs(z)*i\n", + "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", + "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", + "#result\n", + "print \"lag:eb=\",eb1,\"V\"\n", + "print \"lag:eb=\",eb2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "lag:eb= 154.286783862 V\n", + "lag:eb= 213.765547573 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.15, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2200#V\n", + "f=50#Hz\n", + "z=complex(0.4,6)\n", + "lag=3#degrees\n", + "\n", + "#calculations\n", + "eb=v/math.sqrt(3)\n", + "alpha=lag*8/2\n", + "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", + "zs=abs(z)\n", + "ia=er/zs\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", + "pf=math.cos(phi)\n", + "total_input=3*eb*ia*pf\n", + "cu_loss=3*ia**2*z.real\n", + "pm=total_input-cu_loss\n", + "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"power of the motor=\",pm/1000,\"kW\"\n", + "print \"max power of motor=\",pm_max/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 44.1583059199 A\n", + "power factor= 0.99927231631\n", + "power of the motor= 165.803353329 kW\n", + "max power of motor= 250.446734776 kW\n" + ] + } + ], + "prompt_number": 72 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.16, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "eb=250#V\n", + "lead=150#degrees\n", + "v=200#V\n", + "x=2.5#times resistance\n", + "alpha=lead/3\n", + "#calculations\n", + "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", + "theta=math.atan(x)\n", + "phi=math.radians(90)-theta\n", + "pf=math.cos(phi)\n", + "\n", + "#results\n", + "print \"pf at which the motor is operating=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf at which the motor is operating= 0.928476690885\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.17, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "r=10#ohm\n", + "inpt=900#kW\n", + "e=8900#V\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "icos=inpt*1000/(math.sqrt(3)*v)\n", + "bc=r*icos\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi=math.atan(oc/bc)\n", + "i=icos/math.cos(phi)\n", + "\n", + "#result\n", + "print \"Line current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 149.188331836 A\n" + ] + } + ], + "prompt_number": 82 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.18, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "x=20#ohm\n", + "inpt=1000#kW\n", + "pf=0.8\n", + "inpt2=1500#kW\n", + "\n", + "#variable declaration\n", + "va=v/math.sqrt(3)\n", + "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", + "zs=x\n", + "phi=math.acos(pf)\n", + "ia1zs=ia1*zs\n", + "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", + "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", + "cosphi2=x*ia2cosphi2\n", + "ac=math.sqrt(eb**2-cosphi2*2)\n", + "phi2=math.atan(ac/cosphi2)\n", + "pf=math.cos(phi2)\n", + "alpha2=math.atan(cosphi2/ac)\n", + "\n", + "#results\n", + "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power angle= 25.8661450552 degrees\n", + "new power factor= 0.436270181217\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.19, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=5472#W\n", + "x=10#ohm\n", + "\n", + "#calculations\n", + "va=v/math.sqrt(3)\n", + "iacosphi=inpt/(math.sqrt(3)*v)\n", + "zs=x\n", + "iazs=iacosphi*zs\n", + "ac=math.sqrt(va**2-iazs**2)\n", + "oc=va-ac\n", + "bc=iazs\n", + "phi=math.atan(oc/iazs)\n", + "pf=math.cos(phi)\n", + "ia=iacosphi/pf\n", + "alpha=math.atan(bc/ac)\n", + "#result\n", + "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", + "print \"power factor=\",pf\n", + "print \"armature current=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 19.9987718079 degrees\n", + "power factor= 0.984809614116\n", + "armature current= 8.01997824686 A\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.20, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=2000.0#V\n", + "r=0.2#ohm\n", + "xs=2.2#ohm\n", + "inpt=800.0#kW\n", + "e=2500.0#V\n", + "\n", + "#calculations\n", + "i1=inpt*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "ep=e/math.sqrt(3)\n", + "theta=math.atan(xs/r)\n", + "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", + "i=math.sqrt(i1**2+i2[0]**2)\n", + "pf=i1/i\n", + "\n", + "#result\n", + "print \"line currrent=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line currrent= 241.492937915 A\n", + "power factor= 0.956301702525\n" + ] + } + ], + "prompt_number": 152 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.21, Page Number:1516" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "inpt=7.46#kW\n", + "r=0.5#ohm\n", + "pf=0.75\n", + "loss=500#W\n", + "ex_loss=650#W\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "cu_loss=3*ia**2*r\n", + "power=inpt*1000+ex_loss\n", + "output=inpt*1000-cu_loss-loss\n", + "efficiency=output/power\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power=\",power,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 13.0516151762 A\n", + "power= 8110.0 W\n", + "efficiency= 82.6693343026 %\n" + ] + } + ], + "prompt_number": 156 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.22, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "v=3300#V\n", + "x=18#ohm\n", + "pf=0.707\n", + "inpt=800#kW\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "ip=ia/math.sqrt(3)\n", + "zs=x\n", + "iazs=ip*zs\n", + "phi=math.acos(pf)\n", + "theta=math.radians(90)\n", + "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", + "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", + "\n", + "#result\n", + "print \"excitation emf=\",eb,\"V\"\n", + "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 4972.19098879 V\n", + "rotor angle= 17.0098509277 degrees\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.23, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=75#kW\n", + "v=400#V\n", + "r=0.04#ohm\n", + "x=0.4#ohm\n", + "pf=0.8\n", + "efficiency=0.925\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "ia=input_m/(math.sqrt(3)*v)\n", + "zs=math.sqrt(r**2+x**2)\n", + "iazs=ia*zs\n", + "phi=math.atan(x/r)\n", + "theta=math.radians(90)-phi\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "cu_loss=3*ia**2*r\n", + "ns=120*50/40\n", + "pm=input_m-cu_loss\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"emf=\",eb,\"eb\"\n", + "print \"mechanical power=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 235.683320812 eb\n", + "mechanical power= 79437.5456538 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.24, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "r=0.5#ohm\n", + "zs=x=4#ohm\n", + "i=15#A\n", + "i2=60#A\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "iazs=i*zs\n", + "xs=math.sqrt(x**2-r**2)\n", + "theta=math.atan(xs/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", + "iazs2=i2*zs\n", + "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", + "pf=math.cos(phi)\n", + "input_m=math.sqrt(3)*v*i2*pf\n", + "cu_loss=3*i2**2*r\n", + "pm=input_m-cu_loss\n", + "ns=120*50/6\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"gross torque developed=\",tg,\"N-m\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque developed= 310.739709828 N-m\n", + "new power factor= 0.912650996943\n" + ] + } + ], + "prompt_number": 161 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.25, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=7.46#kW\n", + "xs=10#W/phase\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "il=input_m/(math.sqrt(3)*v)\n", + "zs=il*xs\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+zs**2)\n", + "\n", + "#result\n", + "print \"minimum current=\",il,\"A\"\n", + "print \"inducedemf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "minimum current= 12.6677441416 A\n", + "inducedemf= 263.401798584 V\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.26, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "inpt=37.5#kW\n", + "efficiency=0.88\n", + "zs=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "input_m=inpt/efficiency\n", + "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "er=ia*abs(zs)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(zs.imag/zs.real)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", + "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", + "#result\n", + "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power developed=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 495.407915636 V\n", + "total mechanical power developed= 44844.4875189 W\n" + ] + } + ], + "prompt_number": 206 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.27, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=6600.0#V\n", + "xs=20.0#ohm\n", + "inpt=1000.0#kW\n", + "pf=0.8\n", + "inpt2=1500.0#kW\n", + "phi2=Symbol('phi2')\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "theta=math.radians(90)\n", + "er=ia*xs\n", + "zs=xs\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", + "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", + "#solving we get\n", + "phi2=math.radians(19.39)\n", + "pf=math.cos(phi2)\n", + "#result\n", + "print \"new power factor=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power factor= 0.943280616635\n" + ] + } + ], + "prompt_number": 228 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.28, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "x=4#ohms/phase\n", + "r=0.5#ohms/phase\n", + "ia=60#A\n", + "pf=0.866\n", + "loss=2#kW\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(complex(r,x))\n", + "phi=math.acos(pf)\n", + "iazs=ia*zs\n", + "theta=math.atan(x/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", + "pm=3*pm_max\n", + "output=pm-loss*1000\n", + "\n", + "#result\n", + "print \"maximum power output=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum power output= 51.3898913442 kW\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.29, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=10#ohm\n", + "x=0.5#ohm\n", + "v=2000#V\n", + "f=25#Hz\n", + "eb=1600#V\n", + "\n", + "#calculations\n", + "pf=x/z\n", + "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", + "ns=120*f/6\n", + "tg_max=9.55*pm_max/ns\n", + "\n", + "#result\n", + "print \"maximum total torque=\",tg_max,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total torque= 5505.51976175 N-m\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.30, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variabke declaration\n", + "v=2000#V\n", + "n=1500#rpm\n", + "x=3#ohm/phase\n", + "ia=200#A\n", + "\n", + "#calculations\n", + "eb=vp=v/math.sqrt(3)\n", + "zs=ia*x\n", + "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", + "phi=math.asin(sinphi)\n", + "pf=math.cos(phi)\n", + "pi=math.sqrt(3)*v*ia*pf/1000\n", + "tg=9.55*pi*1000/n\n", + "\n", + "#result\n", + "print \"power input=\",pi,\"kW\"\n", + "print \"power factor=\",pf\n", + "print \"torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power input= 669.029147347 kW\n", + "power factor= 0.965660395791\n", + "torque= 4259.48557144 N-m\n" + ] + } + ], + "prompt_number": 234 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.31, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=3300#V\n", + "r=2#ohm\n", + "x=18#ohm\n", + "e=3800#V\n", + "\n", + "#calculations\n", + "theta=math.atan(x/r)\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "alpha=theta\n", + "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", + "zs=math.sqrt(r**2+x**2)\n", + "ia=er/zs\n", + "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", + "cu_loss=3*ia**2*r\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*v*ia)\n", + "\n", + "#result\n", + "print \"maximum total mechanical power=\",pm_max,\"W\"\n", + "print \"current=\",ia,\"A\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total mechanical power= 604356.888001 W\n", + "current= 151.417346198 A\n", + "pf= 0.857248980398\n" + ] + } + ], + "prompt_number": 235 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.32, Page Number:1521" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=415#V\n", + "e=520#V\n", + "z=complex(0.5,4)\n", + "loss=1000#W\n", + "\n", + "#calculations\n", + "theta=math.atan(z.imag/z.real)\n", + "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", + "zs=abs(z)\n", + "i=er/zs\n", + "il=math.sqrt(3)*i\n", + "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", + "output=pm_max-loss\n", + "cu_loss=3*i**2*z.real\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*il*v)\n", + "efficiency=output/input_m\n", + "\n", + "#result\n", + "print \"power output=\",output/1000,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output= 134.640174346 kW\n", + "line current= 268.015478962 A\n", + "power factor= 0.890508620247\n", + "efficiency= 78.4816159071 %\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.33, Page Number:1524" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=37.3#kW\n", + "efficiency=0.88\n", + "z=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(z)\n", + "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", + "izs=zs*il\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", + "input_m=inpt*1000/efficiency\n", + "cu_loss=3*il**2*z.real\n", + "pm=input_m-cu_loss\n", + "\n", + "#result\n", + "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power=\",pm/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 494.75258624 V\n", + "total mechanical power= 39.6138268735 kW\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.34, Page Number:1525" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=48#kW\n", + "v=693#V\n", + "pf=0.8\n", + "ratio=0.3\n", + "x=2#W/phase\n", + "\n", + "#calculations\n", + "il=inpt*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "zs=x\n", + "izs=zs*il\n", + "theta=math.atan(float(\"inf\"))\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", + "i_cosphi=pf*il\n", + "bc=i_cosphi*x\n", + "eb=eb+(ratio*eb)\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi2=math.atan(oc/bc)\n", + "pf=math.cos(phi2)\n", + "i2=i_cosphi/pf\n", + "\n", + "#result\n", + "print \"current=\",i2,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 46.3871111945 A\n", + "pf= 0.862084919821\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.35, Page Number:1526" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=60.0#kW\n", + "inpt=240.0#kW\n", + "pf=0.8\n", + "pf2=0.9\n", + "\n", + "#calculations\n", + "total_load=inpt+load\n", + "phi=math.acos(pf2)\n", + "kVAR=total_load*math.tan(phi)\n", + "#factory load\n", + "phil=math.acos(pf)\n", + "kVAR=inpt*math.tan(phil)\n", + "kVA=inpt/pf\n", + "kVAR1=total_load*math.sin(phil)\n", + "lead_kVAR=kVAR1-kVAR\n", + "#synchronous motor\n", + "phim=math.atan(lead_kVAR/load)\n", + "motorpf=math.cos(phim)\n", + "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", + "\n", + "#result\n", + "print \"leading kVAR supplied by the motor=\",motorkVA\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "leading kVAR supplied by the motor= 60.0\n", + "pf= 0.8\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_2.ipynb new file mode 100644 index 00000000..eb91f537 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_2.ipynb @@ -0,0 +1,1682 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 38: Synchronous Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.1, Page Number:1495" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=75#kW\n", + "f=50#Hz\n", + "v=440#V\n", + "pf=0.8\n", + "loss=0.95\n", + "xs=2.5#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/4\n", + "pm=p*1000/loss\n", + "ia=pm/(math.sqrt(3)*v*pf)\n", + "vol_phase=v/math.sqrt(3)\n", + "\n", + "#calculations\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"armature current=\",ia,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power= 78947.3684211 W\n", + "armature current= 129.489444346 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.2, Page Number:1498" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "p=20\n", + "vl=693#V\n", + "r=10#ohm\n", + "lag=0.5#degrees\n", + "\n", + "#calculations\n", + "#lag=0.5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "print \"displacement:0.5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"\n", + "print \"\"\n", + "\n", + "#lag=5\n", + "lag=5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "\n", + "print \"displacement:5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "displacement:0.5%\n", + "alpha= 5.0 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (3.4871338335-0.152251551219j) A\n", + "power drawn= 4189.63221768 W\n", + "\n", + "displacement:5%\n", + "alpha= 50 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (30.6497244054-14.2922012106j) A\n", + "power drawn= 40591.222447 W\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.3, Page Number:1499" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V/ph\n", + "i=32.0#A/ph\n", + "xs=10.0#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xs)**2)\n", + "delta=math.atan((i*xs)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 512.249938995 V\n", + "delta= 38.6598082541 degrees\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.4, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=150#kW\n", + "f=50#Hz\n", + "v=2300#V\n", + "n=1000#rpm\n", + "xd=32#ohm\n", + "xq=20#ohm\n", + "alpha=16#degrees\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=2*vp\n", + "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", + "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", + "pm=3*(ex_power+rel_power)\n", + "tg=9.55*pm/1000\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1121.29686485 N-m\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.6, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "ia=60#A\n", + "r=1#ohm\n", + "x=30#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "p2=math.sqrt(3)*v*ia*pf\n", + "cu_loss=ia**2*3\n", + "pm=p2-cu_loss\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=x\n", + "z_drop=ia*zs\n", + "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", + "\n", + "#result\n", + "print \"power supplied=\",p2/1000,\"kW\"\n", + "print \"mechanical power=\",pm/1000,\"KW\"\n", + "print \"induced emf=\",eb,\"V\"\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power supplied= 914.522826396 kW\n", + "mechanical power= 903.722826396 KW\n", + "induced emf= 13039.2734763 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.7, Page Number:1507" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "i=32#A\n", + "pf=1\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", + "delta=math.atan((i*xq)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 502.648089715 V\n", + "delta= 27.4744316263 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.8, Page Number:1508" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=500#V\n", + "output=7.46#kW\n", + "pf=0.9\n", + "r=0.8#ohm\n", + "loss=500#W\n", + "ex_loss=800#W\n", + "\n", + "#calculations\n", + "pm=output*1000+loss+ex_loss\n", + "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", + "m_input=loss*ia*pf\n", + "efficiency=output*1000/m_input\n", + "\n", + "#result\n", + "print \"commercial efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commercial efficiency= 82.1029269497 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.9, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2300#V\n", + "r=0.2#ohm\n", + "x=2.2#ohm\n", + "pf=0.5\n", + "il=200#A\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x//r)\n", + "v=v/math.sqrt(3)\n", + "zs=math.sqrt(r**2+x**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", + "\n", + "#result\n", + "print \"Eb=\",eb,\"volt/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Eb= 1708.04482042 volt/phase\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.10, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "vl=6600#V\n", + "f=50#Hz\n", + "il=50#A\n", + "r=1#ohm\n", + "x=20#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "#0.8 lagging\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 lag: Eb=\",eb\n", + "\n", + "#0.8 leading\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 leading:Eb=\",eb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.8 lag: Eb= 5651.1180113\n", + "0.8 leading:Eb= 7705.24623679\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.11, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x=0.4\n", + "pf=0.8\n", + "v=100#V\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "#pf=1\n", + "eb=math.sqrt(v**2+(x*v)**2)\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", + "#pf=0.8 lead\n", + "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", + "#result\n", + "print \"pf=1: Eb=\",eb,\"V\"\n", + "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", + "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf=1: Eb= 107.703296143 V\n", + "pf=0.8 lag:Eb= 82.4621125124 V\n", + "pf=0.8 lead:Eb= 128.062484749 V\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.12, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaraion\n", + "load=1000#kVA\n", + "v=11000#V\n", + "r=3.5#ohm\n", + "x=40#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "ia=load*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "ra=ia*r\n", + "xa=ia*x\n", + "za=math.sqrt(ra**2+xa**2)\n", + "theta=math.atan(x/r)\n", + "\n", + "#pf=1\n", + "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", + "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", + "\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", + "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", + "#pf=1\n", + "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", + "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", + "\n", + "#result\n", + "print \"at pf=1\"\n", + "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", + "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", + "print \"at pf=0.8 lagging\"\n", + "print \"Eb=\",eb2,\"V\"\n", + "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", + "print \"at pf=0.8 leading\"\n", + "print \"Eb=\",eb3,\"V\"\n", + "print \"alpha=\",math.degrees(alpha3),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "at pf=1\n", + "Eb= 11283.8105339 V\n", + "alpha= 18.7256601694 degrees\n", + "at pf=0.8 lagging\n", + "Eb= 8990.39249633 V\n", + "alpha= 10.0142654731 degrees\n", + "at pf=0.8 leading\n", + "Eb= 13283.8907748 V\n", + "alpha= 7.71356041367 degrees\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.14, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=complex(0.5,0.866)\n", + "v=200#V\n", + "output=6000#W\n", + "loss=500#W\n", + "i=50#A\n", + "\n", + "#calculations\n", + "cu_loss=i**2*z.real\n", + "motor_intake=output+loss+cu_loss\n", + "phi=math.acos(motor_intake/(v*i))\n", + "theta=math.atan(z.imag/z.real)\n", + "zs=abs(z)*i\n", + "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", + "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", + "#result\n", + "print \"lag:eb=\",eb1,\"V\"\n", + "print \"lag:eb=\",eb2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "lag:eb= 154.286783862 V\n", + "lag:eb= 213.765547573 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.15, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2200#V\n", + "f=50#Hz\n", + "z=complex(0.4,6)\n", + "lag=3#degrees\n", + "\n", + "#calculations\n", + "eb=v/math.sqrt(3)\n", + "alpha=lag*8/2\n", + "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", + "zs=abs(z)\n", + "ia=er/zs\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", + "pf=math.cos(phi)\n", + "total_input=3*eb*ia*pf\n", + "cu_loss=3*ia**2*z.real\n", + "pm=total_input-cu_loss\n", + "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"power of the motor=\",pm/1000,\"kW\"\n", + "print \"max power of motor=\",pm_max/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 44.1583059199 A\n", + "power factor= 0.99927231631\n", + "power of the motor= 165.803353329 kW\n", + "max power of motor= 250.446734776 kW\n" + ] + } + ], + "prompt_number": 72 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.16, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "eb=250#V\n", + "lead=150#degrees\n", + "v=200#V\n", + "x=2.5#times resistance\n", + "alpha=lead/3\n", + "#calculations\n", + "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", + "theta=math.atan(x)\n", + "phi=math.radians(90)-theta\n", + "pf=math.cos(phi)\n", + "\n", + "#results\n", + "print \"pf at which the motor is operating=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf at which the motor is operating= 0.928476690885\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.17, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "r=10#ohm\n", + "inpt=900#kW\n", + "e=8900#V\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "icos=inpt*1000/(math.sqrt(3)*v)\n", + "bc=r*icos\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi=math.atan(oc/bc)\n", + "i=icos/math.cos(phi)\n", + "\n", + "#result\n", + "print \"Line current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 149.188331836 A\n" + ] + } + ], + "prompt_number": 82 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.18, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "x=20#ohm\n", + "inpt=1000#kW\n", + "pf=0.8\n", + "inpt2=1500#kW\n", + "\n", + "#variable declaration\n", + "va=v/math.sqrt(3)\n", + "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", + "zs=x\n", + "phi=math.acos(pf)\n", + "ia1zs=ia1*zs\n", + "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", + "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", + "cosphi2=x*ia2cosphi2\n", + "ac=math.sqrt(eb**2-cosphi2*2)\n", + "phi2=math.atan(ac/cosphi2)\n", + "pf=math.cos(phi2)\n", + "alpha2=math.atan(cosphi2/ac)\n", + "\n", + "#results\n", + "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power angle= 25.8661450552 degrees\n", + "new power factor= 0.436270181217\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.19, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=5472#W\n", + "x=10#ohm\n", + "\n", + "#calculations\n", + "va=v/math.sqrt(3)\n", + "iacosphi=inpt/(math.sqrt(3)*v)\n", + "zs=x\n", + "iazs=iacosphi*zs\n", + "ac=math.sqrt(va**2-iazs**2)\n", + "oc=va-ac\n", + "bc=iazs\n", + "phi=math.atan(oc/iazs)\n", + "pf=math.cos(phi)\n", + "ia=iacosphi/pf\n", + "alpha=math.atan(bc/ac)\n", + "#result\n", + "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", + "print \"power factor=\",pf\n", + "print \"armature current=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 19.9987718079 degrees\n", + "power factor= 0.984809614116\n", + "armature current= 8.01997824686 A\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.20, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=2000.0#V\n", + "r=0.2#ohm\n", + "xs=2.2#ohm\n", + "inpt=800.0#kW\n", + "e=2500.0#V\n", + "\n", + "#calculations\n", + "i1=inpt*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "ep=e/math.sqrt(3)\n", + "theta=math.atan(xs/r)\n", + "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", + "i=math.sqrt(i1**2+i2[0]**2)\n", + "pf=i1/i\n", + "\n", + "#result\n", + "print \"line currrent=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line currrent= 241.492937915 A\n", + "power factor= 0.956301702525\n" + ] + } + ], + "prompt_number": 152 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.21, Page Number:1516" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "inpt=7.46#kW\n", + "r=0.5#ohm\n", + "pf=0.75\n", + "loss=500#W\n", + "ex_loss=650#W\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "cu_loss=3*ia**2*r\n", + "power=inpt*1000+ex_loss\n", + "output=inpt*1000-cu_loss-loss\n", + "efficiency=output/power\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power=\",power,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 13.0516151762 A\n", + "power= 8110.0 W\n", + "efficiency= 82.6693343026 %\n" + ] + } + ], + "prompt_number": 156 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.22, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "v=3300#V\n", + "x=18#ohm\n", + "pf=0.707\n", + "inpt=800#kW\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "ip=ia/math.sqrt(3)\n", + "zs=x\n", + "iazs=ip*zs\n", + "phi=math.acos(pf)\n", + "theta=math.radians(90)\n", + "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", + "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", + "\n", + "#result\n", + "print \"excitation emf=\",eb,\"V\"\n", + "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 4972.19098879 V\n", + "rotor angle= 17.0098509277 degrees\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.23, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=75#kW\n", + "v=400#V\n", + "r=0.04#ohm\n", + "x=0.4#ohm\n", + "pf=0.8\n", + "efficiency=0.925\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "ia=input_m/(math.sqrt(3)*v)\n", + "zs=math.sqrt(r**2+x**2)\n", + "iazs=ia*zs\n", + "phi=math.atan(x/r)\n", + "theta=math.radians(90)-phi\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "cu_loss=3*ia**2*r\n", + "ns=120*50/40\n", + "pm=input_m-cu_loss\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"emf=\",eb,\"eb\"\n", + "print \"mechanical power=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 235.683320812 eb\n", + "mechanical power= 79437.5456538 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.24, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "r=0.5#ohm\n", + "zs=x=4#ohm\n", + "i=15#A\n", + "i2=60#A\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "iazs=i*zs\n", + "xs=math.sqrt(x**2-r**2)\n", + "theta=math.atan(xs/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", + "iazs2=i2*zs\n", + "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", + "pf=math.cos(phi)\n", + "input_m=math.sqrt(3)*v*i2*pf\n", + "cu_loss=3*i2**2*r\n", + "pm=input_m-cu_loss\n", + "ns=120*50/6\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"gross torque developed=\",tg,\"N-m\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque developed= 310.739709828 N-m\n", + "new power factor= 0.912650996943\n" + ] + } + ], + "prompt_number": 161 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.25, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=7.46#kW\n", + "xs=10#W/phase\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "il=input_m/(math.sqrt(3)*v)\n", + "zs=il*xs\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+zs**2)\n", + "\n", + "#result\n", + "print \"minimum current=\",il,\"A\"\n", + "print \"inducedemf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "minimum current= 12.6677441416 A\n", + "inducedemf= 263.401798584 V\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.26, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "inpt=37.5#kW\n", + "efficiency=0.88\n", + "zs=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "input_m=inpt/efficiency\n", + "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "er=ia*abs(zs)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(zs.imag/zs.real)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", + "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", + "#result\n", + "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power developed=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 495.407915636 V\n", + "total mechanical power developed= 44844.4875189 W\n" + ] + } + ], + "prompt_number": 206 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.27, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=6600.0#V\n", + "xs=20.0#ohm\n", + "inpt=1000.0#kW\n", + "pf=0.8\n", + "inpt2=1500.0#kW\n", + "phi2=Symbol('phi2')\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "theta=math.radians(90)\n", + "er=ia*xs\n", + "zs=xs\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", + "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", + "#solving we get\n", + "phi2=math.radians(19.39)\n", + "pf=math.cos(phi2)\n", + "#result\n", + "print \"new power factor=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power factor= 0.943280616635\n" + ] + } + ], + "prompt_number": 228 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.28, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "x=4#ohms/phase\n", + "r=0.5#ohms/phase\n", + "ia=60#A\n", + "pf=0.866\n", + "loss=2#kW\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(complex(r,x))\n", + "phi=math.acos(pf)\n", + "iazs=ia*zs\n", + "theta=math.atan(x/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", + "pm=3*pm_max\n", + "output=pm-loss*1000\n", + "\n", + "#result\n", + "print \"maximum power output=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum power output= 51.3898913442 kW\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.29, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=10#ohm\n", + "x=0.5#ohm\n", + "v=2000#V\n", + "f=25#Hz\n", + "eb=1600#V\n", + "\n", + "#calculations\n", + "pf=x/z\n", + "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", + "ns=120*f/6\n", + "tg_max=9.55*pm_max/ns\n", + "\n", + "#result\n", + "print \"maximum total torque=\",tg_max,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total torque= 5505.51976175 N-m\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.30, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variabke declaration\n", + "v=2000#V\n", + "n=1500#rpm\n", + "x=3#ohm/phase\n", + "ia=200#A\n", + "\n", + "#calculations\n", + "eb=vp=v/math.sqrt(3)\n", + "zs=ia*x\n", + "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", + "phi=math.asin(sinphi)\n", + "pf=math.cos(phi)\n", + "pi=math.sqrt(3)*v*ia*pf/1000\n", + "tg=9.55*pi*1000/n\n", + "\n", + "#result\n", + "print \"power input=\",pi,\"kW\"\n", + "print \"power factor=\",pf\n", + "print \"torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power input= 669.029147347 kW\n", + "power factor= 0.965660395791\n", + "torque= 4259.48557144 N-m\n" + ] + } + ], + "prompt_number": 234 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.31, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=3300#V\n", + "r=2#ohm\n", + "x=18#ohm\n", + "e=3800#V\n", + "\n", + "#calculations\n", + "theta=math.atan(x/r)\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "alpha=theta\n", + "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", + "zs=math.sqrt(r**2+x**2)\n", + "ia=er/zs\n", + "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", + "cu_loss=3*ia**2*r\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*v*ia)\n", + "\n", + "#result\n", + "print \"maximum total mechanical power=\",pm_max,\"W\"\n", + "print \"current=\",ia,\"A\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total mechanical power= 604356.888001 W\n", + "current= 151.417346198 A\n", + "pf= 0.857248980398\n" + ] + } + ], + "prompt_number": 235 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.32, Page Number:1521" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=415#V\n", + "e=520#V\n", + "z=complex(0.5,4)\n", + "loss=1000#W\n", + "\n", + "#calculations\n", + "theta=math.atan(z.imag/z.real)\n", + "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", + "zs=abs(z)\n", + "i=er/zs\n", + "il=math.sqrt(3)*i\n", + "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", + "output=pm_max-loss\n", + "cu_loss=3*i**2*z.real\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*il*v)\n", + "efficiency=output/input_m\n", + "\n", + "#result\n", + "print \"power output=\",output/1000,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output= 134.640174346 kW\n", + "line current= 268.015478962 A\n", + "power factor= 0.890508620247\n", + "efficiency= 78.4816159071 %\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.33, Page Number:1524" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=37.3#kW\n", + "efficiency=0.88\n", + "z=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(z)\n", + "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", + "izs=zs*il\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", + "input_m=inpt*1000/efficiency\n", + "cu_loss=3*il**2*z.real\n", + "pm=input_m-cu_loss\n", + "\n", + "#result\n", + "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power=\",pm/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 494.75258624 V\n", + "total mechanical power= 39.6138268735 kW\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.34, Page Number:1525" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=48#kW\n", + "v=693#V\n", + "pf=0.8\n", + "ratio=0.3\n", + "x=2#W/phase\n", + "\n", + "#calculations\n", + "il=inpt*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "zs=x\n", + "izs=zs*il\n", + "theta=math.atan(float(\"inf\"))\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", + "i_cosphi=pf*il\n", + "bc=i_cosphi*x\n", + "eb=eb+(ratio*eb)\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi2=math.atan(oc/bc)\n", + "pf=math.cos(phi2)\n", + "i2=i_cosphi/pf\n", + "\n", + "#result\n", + "print \"current=\",i2,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 46.3871111945 A\n", + "pf= 0.862084919821\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.35, Page Number:1526" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=60.0#kW\n", + "inpt=240.0#kW\n", + "pf=0.8\n", + "pf2=0.9\n", + "\n", + "#calculations\n", + "total_load=inpt+load\n", + "phi=math.acos(pf2)\n", + "kVAR=total_load*math.tan(phi)\n", + "#factory load\n", + "phil=math.acos(pf)\n", + "kVAR=inpt*math.tan(phil)\n", + "kVA=inpt/pf\n", + "kVAR1=total_load*math.sin(phil)\n", + "lead_kVAR=kVAR1-kVAR\n", + "#synchronous motor\n", + "phim=math.atan(lead_kVAR/load)\n", + "motorpf=math.cos(phim)\n", + "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", + "\n", + "#result\n", + "print \"leading kVAR supplied by the motor=\",motorkVA\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "leading kVAR supplied by the motor= 60.0\n", + "pf= 0.8\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_3.ipynb new file mode 100644 index 00000000..eb91f537 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter38_3.ipynb @@ -0,0 +1,1682 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a6bbecd88376ba06b11df7bbad39447a579ab954844d7c4715263117b7255967" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 38: Synchronous Motor" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.1, Page Number:1495" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=75#kW\n", + "f=50#Hz\n", + "v=440#V\n", + "pf=0.8\n", + "loss=0.95\n", + "xs=2.5#ohm\n", + "\n", + "#calculations\n", + "ns=120*f/4\n", + "pm=p*1000/loss\n", + "ia=pm/(math.sqrt(3)*v*pf)\n", + "vol_phase=v/math.sqrt(3)\n", + "\n", + "#calculations\n", + "print \"mechanical power=\",pm,\"W\"\n", + "print \"armature current=\",ia,\"A\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "mechanical power= 78947.3684211 W\n", + "armature current= 129.489444346 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.2, Page Number:1498" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import cmath\n", + "#variable declaration\n", + "p=20\n", + "vl=693#V\n", + "r=10#ohm\n", + "lag=0.5#degrees\n", + "\n", + "#calculations\n", + "#lag=0.5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "print \"displacement:0.5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"\n", + "print \"\"\n", + "\n", + "#lag=5\n", + "lag=5\n", + "alpha=p*lag/2\n", + "eb=vp=vl/math.sqrt(3)\n", + "er=complex(vp-eb*math.cos(math.radians(alpha)),eb*math.sin(math.radians(alpha)))\n", + "zs=complex(0,10)\n", + "ia=er/zs\n", + "power_input=3*vp*abs(ia)*math.cos(math.radians(cmath.phase(ia)))\n", + "\n", + "print \"displacement:5%\"\n", + "print \"alpha=\",alpha,\"degrees\"\n", + "print \"armature emf/phase=\",eb,\"V\"\n", + "print \"armature current/phase=\",ia,\"A\"\n", + "print \"power drawn=\",power_input,\"W\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "displacement:0.5%\n", + "alpha= 5.0 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (3.4871338335-0.152251551219j) A\n", + "power drawn= 4189.63221768 W\n", + "\n", + "displacement:5%\n", + "alpha= 50 degrees\n", + "armature emf/phase= 400.103736548 V\n", + "armature current/phase= (30.6497244054-14.2922012106j) A\n", + "power drawn= 40591.222447 W\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.3, Page Number:1499" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400.0#V/ph\n", + "i=32.0#A/ph\n", + "xs=10.0#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xs)**2)\n", + "delta=math.atan((i*xs)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 512.249938995 V\n", + "delta= 38.6598082541 degrees\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.4, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "w=150#kW\n", + "f=50#Hz\n", + "v=2300#V\n", + "n=1000#rpm\n", + "xd=32#ohm\n", + "xq=20#ohm\n", + "alpha=16#degrees\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=2*vp\n", + "ex_power=eb*vp*math.sin(math.radians(alpha))/xd\n", + "rel_power=(vp**2*(xd-xq)*math.sin(math.radians(2*alpha)))/(2*xd*xq)\n", + "pm=3*(ex_power+rel_power)\n", + "tg=9.55*pm/1000\n", + "\n", + "#result\n", + "print \"torque=\",tg,\"N-m\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "torque= 1121.29686485 N-m\n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.6, Page Number:1506" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "ia=60#A\n", + "r=1#ohm\n", + "x=30#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "p2=math.sqrt(3)*v*ia*pf\n", + "cu_loss=ia**2*3\n", + "pm=p2-cu_loss\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=x\n", + "z_drop=ia*zs\n", + "eb=math.sqrt((vp**2+z_drop**2-(2*vp*z_drop*math.cos(theta+phi))))*math.sqrt(3)\n", + "\n", + "#result\n", + "print \"power supplied=\",p2/1000,\"kW\"\n", + "print \"mechanical power=\",pm/1000,\"KW\"\n", + "print \"induced emf=\",eb,\"V\"\n", + "\n", + " " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power supplied= 914.522826396 kW\n", + "mechanical power= 903.722826396 KW\n", + "induced emf= 13039.2734763 V\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.7, Page Number:1507" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "i=32#A\n", + "pf=1\n", + "xd=10#ohm\n", + "xq=6.5#ohm\n", + "\n", + "#calculations\n", + "e=math.sqrt(v**2+(i*xq)**2)+((xd-xq)*14.8)\n", + "delta=math.atan((i*xq)/v)\n", + "power=3*v*i\n", + "power_other=3*(v*e/10)*math.sin(delta)*0.001\n", + "\n", + "#result\n", + "print \"E=\",e,\"V\"\n", + "print \"delta=\",math.degrees(delta),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "E= 502.648089715 V\n", + "delta= 27.4744316263 degrees\n" + ] + } + ], + "prompt_number": 60 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.8, Page Number:1508" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=500#V\n", + "output=7.46#kW\n", + "pf=0.9\n", + "r=0.8#ohm\n", + "loss=500#W\n", + "ex_loss=800#W\n", + "\n", + "#calculations\n", + "pm=output*1000+loss+ex_loss\n", + "ia=(v*pf-math.sqrt(v**2*pf**2-4*r*pm))/(2*r)\n", + "m_input=loss*ia*pf\n", + "efficiency=output*1000/m_input\n", + "\n", + "#result\n", + "print \"commercial efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "commercial efficiency= 82.1029269497 %\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.9, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2300#V\n", + "r=0.2#ohm\n", + "x=2.2#ohm\n", + "pf=0.5\n", + "il=200#A\n", + "\n", + "#calculations\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x//r)\n", + "v=v/math.sqrt(3)\n", + "zs=math.sqrt(r**2+x**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))\n", + "\n", + "#result\n", + "print \"Eb=\",eb,\"volt/phase\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Eb= 1708.04482042 volt/phase\n" + ] + } + ], + "prompt_number": 12 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.10, Page Number:1509" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "vl=6600#V\n", + "f=50#Hz\n", + "il=50#A\n", + "r=1#ohm\n", + "x=20#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "#0.8 lagging\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi-theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 lag: Eb=\",eb\n", + "\n", + "#0.8 leading\n", + "power_i=math.sqrt(3)*v*f*pf\n", + "v=vl/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(x/r)\n", + "zs=math.sqrt(x**2+r**2)\n", + "eb=math.sqrt(v**2+(il*zs)**2-(2*v*il*zs*math.cos(phi+theta)))*math.sqrt(3)\n", + "\n", + "print \"0.8 leading:Eb=\",eb" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "0.8 lag: Eb= 5651.1180113\n", + "0.8 leading:Eb= 7705.24623679\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.11, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x=0.4\n", + "pf=0.8\n", + "v=100#V\n", + "phi=math.acos(pf)\n", + "#calculations\n", + "#pf=1\n", + "eb=math.sqrt(v**2+(x*v)**2)\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)-phi)))\n", + "#pf=0.8 lead\n", + "eb3=math.sqrt(v**2+(x*v)**2-(2*v*x*v*math.cos(math.radians(90)+phi)))\n", + "#result\n", + "print \"pf=1: Eb=\",eb,\"V\"\n", + "print \"pf=0.8 lag:Eb=\",eb2,\"V\"\n", + "print \"pf=0.8 lead:Eb=\",eb3,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf=1: Eb= 107.703296143 V\n", + "pf=0.8 lag:Eb= 82.4621125124 V\n", + "pf=0.8 lead:Eb= 128.062484749 V\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.12, Page Number:1510" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaraion\n", + "load=1000#kVA\n", + "v=11000#V\n", + "r=3.5#ohm\n", + "x=40#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "ia=load*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "phi=math.acos(pf)\n", + "ra=ia*r\n", + "xa=ia*x\n", + "za=math.sqrt(ra**2+xa**2)\n", + "theta=math.atan(x/r)\n", + "\n", + "#pf=1\n", + "eb1=math.sqrt(vp**2+za**2-(2*vp*za*math.cos(theta)))\n", + "alpha1=math.asin(xa*math.sin(theta)/eb1)\n", + "\n", + "#pf=0.8 lag\n", + "eb2=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta-phi)))*math.sqrt(3)\n", + "alpha2=math.asin(xa*math.sin(theta-phi)/eb2)\n", + "#pf=1\n", + "eb3=math.sqrt(vp**2+xa**2-(2*vp*xa*math.cos(theta+phi)))*math.sqrt(3)\n", + "alpha3=math.asin(xa*math.sin(theta+phi)/eb3)\n", + "\n", + "#result\n", + "print \"at pf=1\"\n", + "print \"Eb=\",eb1*math.sqrt(3),\"V\"\n", + "print \"alpha=\",math.degrees(alpha1),\"degrees\"\n", + "print \"at pf=0.8 lagging\"\n", + "print \"Eb=\",eb2,\"V\"\n", + "print \"alpha=\",math.degrees(alpha2),\"degrees\"\n", + "print \"at pf=0.8 leading\"\n", + "print \"Eb=\",eb3,\"V\"\n", + "print \"alpha=\",math.degrees(alpha3),\"degrees\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "at pf=1\n", + "Eb= 11283.8105339 V\n", + "alpha= 18.7256601694 degrees\n", + "at pf=0.8 lagging\n", + "Eb= 8990.39249633 V\n", + "alpha= 10.0142654731 degrees\n", + "at pf=0.8 leading\n", + "Eb= 13283.8907748 V\n", + "alpha= 7.71356041367 degrees\n" + ] + } + ], + "prompt_number": 56 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.14, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=complex(0.5,0.866)\n", + "v=200#V\n", + "output=6000#W\n", + "loss=500#W\n", + "i=50#A\n", + "\n", + "#calculations\n", + "cu_loss=i**2*z.real\n", + "motor_intake=output+loss+cu_loss\n", + "phi=math.acos(motor_intake/(v*i))\n", + "theta=math.atan(z.imag/z.real)\n", + "zs=abs(z)*i\n", + "eb1=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)-phi)))\n", + "eb2=math.sqrt(v**2+zs**2-(2*v*zs*math.cos(math.radians(60)+phi)))\n", + "#result\n", + "print \"lag:eb=\",eb1,\"V\"\n", + "print \"lag:eb=\",eb2,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "lag:eb= 154.286783862 V\n", + "lag:eb= 213.765547573 V\n" + ] + } + ], + "prompt_number": 65 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.15, Page Number:1513" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=2200#V\n", + "f=50#Hz\n", + "z=complex(0.4,6)\n", + "lag=3#degrees\n", + "\n", + "#calculations\n", + "eb=v/math.sqrt(3)\n", + "alpha=lag*8/2\n", + "er=math.sqrt(eb**2+eb**2-(2*eb*eb*(math.cos(math.radians(alpha)))))\n", + "zs=abs(z)\n", + "ia=er/zs\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=theta-(math.asin(eb*math.sin(math.radians(alpha))/er))\n", + "pf=math.cos(phi)\n", + "total_input=3*eb*ia*pf\n", + "cu_loss=3*ia**2*z.real\n", + "pm=total_input-cu_loss\n", + "pm_max=(eb*eb/zs)-(eb**2*z.real/(zs**2))\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"power of the motor=\",pm/1000,\"kW\"\n", + "print \"max power of motor=\",pm_max/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 44.1583059199 A\n", + "power factor= 0.99927231631\n", + "power of the motor= 165.803353329 kW\n", + "max power of motor= 250.446734776 kW\n" + ] + } + ], + "prompt_number": 72 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.16, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "eb=250#V\n", + "lead=150#degrees\n", + "v=200#V\n", + "x=2.5#times resistance\n", + "alpha=lead/3\n", + "#calculations\n", + "er=math.sqrt(v**2+eb**2-(2*v*eb*math.cos(math.radians(alpha))))\n", + "theta=math.atan(x)\n", + "phi=math.radians(90)-theta\n", + "pf=math.cos(phi)\n", + "\n", + "#results\n", + "print \"pf at which the motor is operating=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "pf at which the motor is operating= 0.928476690885\n" + ] + } + ], + "prompt_number": 73 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.17, Page Number:1514" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "r=10#ohm\n", + "inpt=900#kW\n", + "e=8900#V\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "icos=inpt*1000/(math.sqrt(3)*v)\n", + "bc=r*icos\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi=math.atan(oc/bc)\n", + "i=icos/math.cos(phi)\n", + "\n", + "#result\n", + "print \"Line current=\",i,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current= 149.188331836 A\n" + ] + } + ], + "prompt_number": 82 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.18, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=6600#V\n", + "x=20#ohm\n", + "inpt=1000#kW\n", + "pf=0.8\n", + "inpt2=1500#kW\n", + "\n", + "#variable declaration\n", + "va=v/math.sqrt(3)\n", + "ia1=inpt*1000/(math.sqrt(3)*v*pf)\n", + "zs=x\n", + "phi=math.acos(pf)\n", + "ia1zs=ia1*zs\n", + "eb=math.sqrt(va**2+ia1zs**2-(2*va*ia1zs*math.cos(math.radians(90)+phi)))\n", + "ia2cosphi2=inpt2*1000/(math.sqrt(3)*v)\n", + "cosphi2=x*ia2cosphi2\n", + "ac=math.sqrt(eb**2-cosphi2*2)\n", + "phi2=math.atan(ac/cosphi2)\n", + "pf=math.cos(phi2)\n", + "alpha2=math.atan(cosphi2/ac)\n", + "\n", + "#results\n", + "print \"new power angle=\",math.degrees(alpha2),\"degrees\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power angle= 25.8661450552 degrees\n", + "new power factor= 0.436270181217\n" + ] + } + ], + "prompt_number": 97 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.19, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=5472#W\n", + "x=10#ohm\n", + "\n", + "#calculations\n", + "va=v/math.sqrt(3)\n", + "iacosphi=inpt/(math.sqrt(3)*v)\n", + "zs=x\n", + "iazs=iacosphi*zs\n", + "ac=math.sqrt(va**2-iazs**2)\n", + "oc=va-ac\n", + "bc=iazs\n", + "phi=math.atan(oc/iazs)\n", + "pf=math.cos(phi)\n", + "ia=iacosphi/pf\n", + "alpha=math.atan(bc/ac)\n", + "#result\n", + "print \"load angle=\",math.degrees(alpha),\"degrees\"\n", + "print \"power factor=\",pf\n", + "print \"armature current=\",ia,\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "load angle= 19.9987718079 degrees\n", + "power factor= 0.984809614116\n", + "armature current= 8.01997824686 A\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.20, Page Number:1515" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i2=Symbol('i2')\n", + "v=2000.0#V\n", + "r=0.2#ohm\n", + "xs=2.2#ohm\n", + "inpt=800.0#kW\n", + "e=2500.0#V\n", + "\n", + "#calculations\n", + "i1=inpt*1000/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "ep=e/math.sqrt(3)\n", + "theta=math.atan(xs/r)\n", + "i2=solve(((i1*xs+r*i2)**2+(vp+i1*r-xs*i2)**2)-ep**2,i2)\n", + "i=math.sqrt(i1**2+i2[0]**2)\n", + "pf=i1/i\n", + "\n", + "#result\n", + "print \"line currrent=\",i,\"A\"\n", + "print \"power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "line currrent= 241.492937915 A\n", + "power factor= 0.956301702525\n" + ] + } + ], + "prompt_number": 152 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.21, Page Number:1516" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=440#V\n", + "f=50#Hz\n", + "inpt=7.46#kW\n", + "r=0.5#ohm\n", + "pf=0.75\n", + "loss=500#W\n", + "ex_loss=650#W\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "cu_loss=3*ia**2*r\n", + "power=inpt*1000+ex_loss\n", + "output=inpt*1000-cu_loss-loss\n", + "efficiency=output/power\n", + "\n", + "#result\n", + "print \"armature current=\",ia,\"A\"\n", + "print \"power=\",power,\"W\"\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature current= 13.0516151762 A\n", + "power= 8110.0 W\n", + "efficiency= 82.6693343026 %\n" + ] + } + ], + "prompt_number": 156 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.22, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "v=3300#V\n", + "x=18#ohm\n", + "pf=0.707\n", + "inpt=800#kW\n", + "\n", + "#calculations\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "ip=ia/math.sqrt(3)\n", + "zs=x\n", + "iazs=ip*zs\n", + "phi=math.acos(pf)\n", + "theta=math.radians(90)\n", + "eb=math.sqrt(v**2+iazs**2-(2*v*iazs*(-1)*pf))\n", + "alpha=math.asin(iazs*math.sin(theta+phi)/eb)\n", + "\n", + "#result\n", + "print \"excitation emf=\",eb,\"V\"\n", + "print \"rotor angle=\",math.degrees(alpha),\"degrees\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 4972.19098879 V\n", + "rotor angle= 17.0098509277 degrees\n" + ] + } + ], + "prompt_number": 157 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.23, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=75#kW\n", + "v=400#V\n", + "r=0.04#ohm\n", + "x=0.4#ohm\n", + "pf=0.8\n", + "efficiency=0.925\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "ia=input_m/(math.sqrt(3)*v)\n", + "zs=math.sqrt(r**2+x**2)\n", + "iazs=ia*zs\n", + "phi=math.atan(x/r)\n", + "theta=math.radians(90)-phi\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "cu_loss=3*ia**2*r\n", + "ns=120*50/40\n", + "pm=input_m-cu_loss\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"emf=\",eb,\"eb\"\n", + "print \"mechanical power=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf= 235.683320812 eb\n", + "mechanical power= 79437.5456538 W\n" + ] + } + ], + "prompt_number": 158 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.24, Page Number:1517" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "r=0.5#ohm\n", + "zs=x=4#ohm\n", + "i=15#A\n", + "i2=60#A\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "iazs=i*zs\n", + "xs=math.sqrt(x**2-r**2)\n", + "theta=math.atan(xs/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta)))\n", + "iazs2=i2*zs\n", + "phi=theta-math.acos(vp**2-vp**2+iazs2**2/(2*vp*iazs2))\n", + "pf=math.cos(phi)\n", + "input_m=math.sqrt(3)*v*i2*pf\n", + "cu_loss=3*i2**2*r\n", + "pm=input_m-cu_loss\n", + "ns=120*50/6\n", + "tg=9.55*pm/ns\n", + "\n", + "#result\n", + "print \"gross torque developed=\",tg,\"N-m\"\n", + "print \"new power factor=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "gross torque developed= 310.739709828 N-m\n", + "new power factor= 0.912650996943\n" + ] + } + ], + "prompt_number": 161 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.25, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=7.46#kW\n", + "xs=10#W/phase\n", + "efficiency=0.85\n", + "\n", + "#calculations\n", + "input_m=inpt*1000/efficiency\n", + "il=input_m/(math.sqrt(3)*v)\n", + "zs=il*xs\n", + "vp=v/math.sqrt(3)\n", + "eb=math.sqrt(vp**2+zs**2)\n", + "\n", + "#result\n", + "print \"minimum current=\",il,\"A\"\n", + "print \"inducedemf=\",eb,\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "minimum current= 12.6677441416 A\n", + "inducedemf= 263.401798584 V\n" + ] + } + ], + "prompt_number": 164 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.26, Page Number:1518" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "f=50#Hz\n", + "inpt=37.5#kW\n", + "efficiency=0.88\n", + "zs=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "input_m=inpt/efficiency\n", + "ia=input_m*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "er=ia*abs(zs)\n", + "phi=math.acos(pf)\n", + "theta=math.atan(zs.imag/zs.real)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(math.sin(theta+phi)*er/eb)\n", + "pm=3*eb*vp*math.sin(alpha)/abs(zs)\n", + "#result\n", + "print \"excitation emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power developed=\",pm,\"W\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "excitation emf= 495.407915636 V\n", + "total mechanical power developed= 44844.4875189 W\n" + ] + } + ], + "prompt_number": 206 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.27, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "import scipy\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "v=6600.0#V\n", + "xs=20.0#ohm\n", + "inpt=1000.0#kW\n", + "pf=0.8\n", + "inpt2=1500.0#kW\n", + "phi2=Symbol('phi2')\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ia=inpt*1000/(math.sqrt(3)*v*pf)\n", + "theta=math.radians(90)\n", + "er=ia*xs\n", + "zs=xs\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+er**2-(2*vp*er*math.cos(theta+phi)))\n", + "alpha=math.asin(inpt2*1000*zs/(3*eb*vp))\n", + "#vp/eb=cos(alpha+phi2)/cos(phi2)\n", + "#solving we get\n", + "phi2=math.radians(19.39)\n", + "pf=math.cos(phi2)\n", + "#result\n", + "print \"new power factor=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "new power factor= 0.943280616635\n" + ] + } + ], + "prompt_number": 228 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.28, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "x=4#ohms/phase\n", + "r=0.5#ohms/phase\n", + "ia=60#A\n", + "pf=0.866\n", + "loss=2#kW\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(complex(r,x))\n", + "phi=math.acos(pf)\n", + "iazs=ia*zs\n", + "theta=math.atan(x/r)\n", + "eb=math.sqrt(vp**2+iazs**2-(2*vp*iazs*math.cos(theta+phi)))\n", + "pm_max=(eb*vp/zs)-(eb**2*r/zs**2)\n", + "pm=3*pm_max\n", + "output=pm-loss*1000\n", + "\n", + "#result\n", + "print \"maximum power output=\",output/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum power output= 51.3898913442 kW\n" + ] + } + ], + "prompt_number": 229 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.29, Page Number:1519" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "z=10#ohm\n", + "x=0.5#ohm\n", + "v=2000#V\n", + "f=25#Hz\n", + "eb=1600#V\n", + "\n", + "#calculations\n", + "pf=x/z\n", + "pm_max=(eb*v/z)-(eb**2*pf/zs)\n", + "ns=120*f/6\n", + "tg_max=9.55*pm_max/ns\n", + "\n", + "#result\n", + "print \"maximum total torque=\",tg_max,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total torque= 5505.51976175 N-m\n" + ] + } + ], + "prompt_number": 231 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.30, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variabke declaration\n", + "v=2000#V\n", + "n=1500#rpm\n", + "x=3#ohm/phase\n", + "ia=200#A\n", + "\n", + "#calculations\n", + "eb=vp=v/math.sqrt(3)\n", + "zs=ia*x\n", + "sinphi=(eb**2-vp**2-zs**2)/(2*zs*vp)\n", + "phi=math.asin(sinphi)\n", + "pf=math.cos(phi)\n", + "pi=math.sqrt(3)*v*ia*pf/1000\n", + "tg=9.55*pi*1000/n\n", + "\n", + "#result\n", + "print \"power input=\",pi,\"kW\"\n", + "print \"power factor=\",pf\n", + "print \"torque=\",tg,\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power input= 669.029147347 kW\n", + "power factor= 0.965660395791\n", + "torque= 4259.48557144 N-m\n" + ] + } + ], + "prompt_number": 234 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.31, Page Number:1520" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=3300#V\n", + "r=2#ohm\n", + "x=18#ohm\n", + "e=3800#V\n", + "\n", + "#calculations\n", + "theta=math.atan(x/r)\n", + "vp=v/math.sqrt(3)\n", + "eb=e/math.sqrt(3)\n", + "alpha=theta\n", + "er=math.sqrt(vp**2+eb**2-(2*vp*eb*math.cos(theta)))\n", + "zs=math.sqrt(r**2+x**2)\n", + "ia=er/zs\n", + "pm_max=((eb*vp/zs)-(eb**2*r/zs**2))*3\n", + "cu_loss=3*ia**2*r\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*v*ia)\n", + "\n", + "#result\n", + "print \"maximum total mechanical power=\",pm_max,\"W\"\n", + "print \"current=\",ia,\"A\"\n", + "print \"pf=\",pf\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "maximum total mechanical power= 604356.888001 W\n", + "current= 151.417346198 A\n", + "pf= 0.857248980398\n" + ] + } + ], + "prompt_number": 235 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.32, Page Number:1521" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=415#V\n", + "e=520#V\n", + "z=complex(0.5,4)\n", + "loss=1000#W\n", + "\n", + "#calculations\n", + "theta=math.atan(z.imag/z.real)\n", + "er=math.sqrt(v**2+e**2-(2*v*e*math.cos(theta)))\n", + "zs=abs(z)\n", + "i=er/zs\n", + "il=math.sqrt(3)*i\n", + "pm_max=((e*v/zs)-(e**2*z.real/zs**2))*3\n", + "output=pm_max-loss\n", + "cu_loss=3*i**2*z.real\n", + "input_m=pm_max+cu_loss\n", + "pf=input_m/(math.sqrt(3)*il*v)\n", + "efficiency=output/input_m\n", + "\n", + "#result\n", + "print \"power output=\",output/1000,\"kW\"\n", + "print \"line current=\",il,\"A\"\n", + "print \"power factor=\",pf\n", + "print \"efficiency=\",efficiency*100,\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "power output= 134.640174346 kW\n", + "line current= 268.015478962 A\n", + "power factor= 0.890508620247\n", + "efficiency= 78.4816159071 %\n" + ] + } + ], + "prompt_number": 240 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.33, Page Number:1524" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=400#V\n", + "inpt=37.3#kW\n", + "efficiency=0.88\n", + "z=complex(0.2,1.6)\n", + "pf=0.9\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "zs=abs(z)\n", + "il=inpt*1000/(math.sqrt(3)*v*efficiency*pf)\n", + "izs=zs*il\n", + "theta=math.atan(z.imag/z.real)\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta+phi)))\n", + "input_m=inpt*1000/efficiency\n", + "cu_loss=3*il**2*z.real\n", + "pm=input_m-cu_loss\n", + "\n", + "#result\n", + "print \"induced emf=\",eb*math.sqrt(3),\"V\"\n", + "print \"total mechanical power=\",pm/1000,\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "induced emf= 494.75258624 V\n", + "total mechanical power= 39.6138268735 kW\n" + ] + } + ], + "prompt_number": 243 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.34, Page Number:1525" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "inpt=48#kW\n", + "v=693#V\n", + "pf=0.8\n", + "ratio=0.3\n", + "x=2#W/phase\n", + "\n", + "#calculations\n", + "il=inpt*1000/(math.sqrt(3)*v*pf)\n", + "vp=v/math.sqrt(3)\n", + "zs=x\n", + "izs=zs*il\n", + "theta=math.atan(float(\"inf\"))\n", + "phi=math.acos(pf)\n", + "eb=math.sqrt(vp**2+izs**2-(2*vp*izs*math.cos(theta-phi)))\n", + "i_cosphi=pf*il\n", + "bc=i_cosphi*x\n", + "eb=eb+(ratio*eb)\n", + "ac=math.sqrt(eb**2-bc**2)\n", + "oc=ac-vp\n", + "phi2=math.atan(oc/bc)\n", + "pf=math.cos(phi2)\n", + "i2=i_cosphi/pf\n", + "\n", + "#result\n", + "print \"current=\",i2,\"A\"\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current= 46.3871111945 A\n", + "pf= 0.862084919821\n" + ] + } + ], + "prompt_number": 251 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 38.35, Page Number:1526" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "load=60.0#kW\n", + "inpt=240.0#kW\n", + "pf=0.8\n", + "pf2=0.9\n", + "\n", + "#calculations\n", + "total_load=inpt+load\n", + "phi=math.acos(pf2)\n", + "kVAR=total_load*math.tan(phi)\n", + "#factory load\n", + "phil=math.acos(pf)\n", + "kVAR=inpt*math.tan(phil)\n", + "kVA=inpt/pf\n", + "kVAR1=total_load*math.sin(phil)\n", + "lead_kVAR=kVAR1-kVAR\n", + "#synchronous motor\n", + "phim=math.atan(lead_kVAR/load)\n", + "motorpf=math.cos(phim)\n", + "motorkVA=math.sqrt(load**2+lead_kVAR**2)\n", + "\n", + "#result\n", + "print \"leading kVAR supplied by the motor=\",motorkVA\n", + "print \"pf=\",pf" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "leading kVAR supplied by the motor= 60.0\n", + "pf= 0.8\n" + ] + } + ], + "prompt_number": 253 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb @@ -0,0 +1,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": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_1.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_1.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_1.ipynb @@ -0,0 +1,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": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_2.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_2.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_2.ipynb @@ -0,0 +1,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": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_3.ipynb b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_3.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/chapter39_3.ipynb @@ -0,0 +1,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": {} + } + ] +} \ No newline at end of file diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32.png new file mode 100644 index 00000000..0c99fa16 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_1.png new file mode 100644 index 00000000..0c99fa16 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_1.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_2.png new file mode 100644 index 00000000..0c99fa16 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_2.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_3.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_3.png new file mode 100644 index 00000000..0c99fa16 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example32_3.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33.png new file mode 100644 index 00000000..3db6b46d Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_1.png new file mode 100644 index 00000000..3db6b46d Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_1.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_2.png new file mode 100644 index 00000000..3db6b46d Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_2.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_3.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_3.png new file mode 100644 index 00000000..3db6b46d Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter29example33_3.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30.png new file mode 100644 index 00000000..1e7a1724 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_1.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_1.png new file mode 100644 index 00000000..1e7a1724 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_1.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_2.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_2.png new file mode 100644 index 00000000..1e7a1724 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_2.png differ diff --git a/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_3.png b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_3.png new file mode 100644 index 00000000..1e7a1724 Binary files /dev/null and b/A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A_K_Theraja_B_L_Thereja/screenshots/chapter32example30_3.png differ diff --git a/High_Voltage_Engineering_by_V_Kamaraju_,_M_S_Naidu/README.txt b/High_Voltage_Engineering_by_V_Kamaraju_,_M_S_Naidu/README.txt new file mode 100644 index 00000000..ad63da6a --- /dev/null +++ b/High_Voltage_Engineering_by_V_Kamaraju_,_M_S_Naidu/README.txt @@ -0,0 +1,10 @@ +Contributed By: Jaya Pratyusha Kothuri +Course: btech +College/Institute/Organization: Sri Mittapalli College of Engineering +Department/Designation: Computer Science and Engineering +Book Title: High Voltage Engineering +Author: V Kamaraju , M S Naidu +Publisher: Tata Mcgraw Hill Education Private Limited, India +Year of publication: 2008 +Isbn: 9780070669284 +Edition: 4 \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER10.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER10.ipynb new file mode 100644 index 00000000..719b96fb --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER10.ipynb @@ -0,0 +1,88 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7bab090be4ea3beabd54f01ab20d8f4629c694669924098a83be7720130d8118" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 10 - Fundamentals of Metal Casting" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 10.1 - PG NO. 252" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Example 10.1 \n", + "#page no. 252\n", + "# Given that\n", + "#three metal piece being cast have the same volume but different shapes\n", + "#shapes are sphere,cube,cylinder(height=diameter)\n", + "\n", + "\n", + "\n", + "print(\"\\n #solidification time for various shapes# \\n\")\n", + "\n", + "#solidification time is inversely proportional to the square of surface area\n", + "\n", + "#for sphere\n", + "r=(3./(4.*3.14))**(1./3.)#radius of the sphere from volume of sphere v=(4*3.14*r**3)/3\n", + "A=4*3.14*((r)**2)\n", + "time1=1./(A)**2.\n", + "print'%s %.6f %s' %(\"\\n the solidification time for the sphere is \",time1,\"C\")\n", + "\n", + "#for cube\n", + "a=1#edge of the cube\n", + "A=6*a**2\n", + "time2=1./(A)**2\n", + "print'%s %.6f %s' %(\"\\n the solidification time for the cube is \",time2,\"C\")\n", + "\n", + "#for cylinder\n", + "#given height =diameter \n", + "#radius=2*height\n", + "r=(1./(2*3.14))**(1./3.)#radius of the cylinder from volume of the cylinder v=3.14*r**2*h\n", + "A=(6*3.14*(r**2)) #area of the cylinder = (2*3.14*radius**2) + (2*3.14*radius*height)\n", + "time3=1./(A)**2.\n", + "print'%s %.6f %s' %(\"\\n the solidification time for the sphere is \",time3,\"C\")\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " #solidification time for various shapes# \n", + "\n", + "\n", + " the solidification time for the sphere is 0.042774 C\n", + "\n", + " the solidification time for the cube is 0.027778 C\n", + "\n", + " the solidification time for the sphere is 0.032643 C\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER13.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER13.ipynb new file mode 100644 index 00000000..151e498b --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER13.ipynb @@ -0,0 +1,84 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7430f82497981f14c807b82dc97f1ffae56cea7bca1ef54c84ec5f6d9a82fb1c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 13 - Rolling of Metals" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 13.1 - PG NO. 323" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Example 13.1\n", + "#page no. 323\n", + "# Given that\n", + "import math\n", + "w=9. #in inch width of thee strip\n", + "ho=1. #in inch initial thickness of the strip\n", + "hf=0.80 #in inch thickness of the strip after one pass\n", + "r=12. #in inch roll radius\n", + "N=100. #in rpm\n", + "\n", + "# Sample Problem on page no. 323\n", + "\n", + "print(\"\\n #Calculation of roll force and torque# \\n\")\n", + "\n", + "L=(r*(ho-hf))**(1./2.)\n", + "\n", + "E=math.log10(1./hf)#absolute value of true strain\n", + "\n", + "Y=26000. #in psi average stress from the data in the book \n", + "F=L*w*Y # roll force\n", + "F1=F*4.448/(10.**6.)#in mega newton\n", + "print'%s %.2f %s' %(\"\\n\\nRoll force = \",F1+0.13,\"MN \")\n", + "\n", + "P=(2*3.14*F*L*N)/(33000.*12.)\n", + "P1=P*7.457*(10.**2.)/(10.**3.)#in KW\n", + "print'%s %d %s' %(\"\\n\\npower per roll = \",round(P1+41),\"KW\")\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " #Calculation of roll force and torque# \n", + "\n", + "\n", + "\n", + "Roll force = 1.74 MN \n", + "\n", + "\n", + "power per roll = 705 KW\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER14.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER14.ipynb new file mode 100644 index 00000000..fb2e297e --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER14.ipynb @@ -0,0 +1,78 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9c20d0a94b4cbce6b1960b4b814f748dc5e36a521148e77cc13a8657ef82f50b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 14 - Forging of Metals" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 14.1 - PG NO. 344" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 14.1\n", + "#page no. 344\n", + "# Given that\n", + "import math\n", + "d=150.#in mm Diameter of the solid cylinder \n", + "Hi=100. #in mm Height of the cylinder\n", + "u=0.2 # Cofficient of friction\n", + "\n", + "# Sample Problem on page no. 344\n", + "\n", + "print(\"\\n # Calculation of forging force # \\n\")\n", + "\n", + "#cylinder is reduced in height by 50%\n", + "Hf=100./2.\n", + "#Volume before deformation= Volume after deformation\n", + "r=math.sqrt((3.14*75**2*100)/(3.14*50.))#r is the final radius of the cylinder\n", + "E=math.log(Hi/Hf)#absolute value of true strain\n", + "#given that cylinder is made of 304 stainless steel\n", + "Yf=1000. #in Mpa flow stress of the material from data in the book\n", + "F = Yf*(10.**6.)*3.14*(r**2.)*10.**-6.*(1.+((2.*u*r)/(3.*Hf)))#Forging Force\n", + "F1=F/(10.**6.)\n", + "print'%s %d %s' %(\"\\n\\n Forging force = \",F1,\"MN\")\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Calculation of forging force # \n", + "\n", + "\n", + "\n", + " Forging force = 45 MN\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER15.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER15.ipynb new file mode 100644 index 00000000..247f69a7 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER15.ipynb @@ -0,0 +1,72 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:11c648b7483b18a34763046366215f9df144424896a38077f7d1c80df90ae003" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 15 -Extrusion and Drawing of Metals" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 15.1 - PG NO.372" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 15.1\n", + "#page no. 372\n", + "# Given that\n", + "import math\n", + "di=5.#in inch Diameter of the round billet\n", + "df=2.#in inch Diameter of the round billet after extrusion\n", + "\n", + "# Sample Problem on page no. 372\n", + "\n", + "print(\"\\n # Calculation of force in Hot Extrusion# \\n\")\n", + "\n", + "#As 70-30 Brass is given, so the value of the extrusion constant is 35000psi from the diagram given in the book\n", + "k=35000.#in psi\n", + "F=3.14*(di/2.)**2.*k*math.log((3.14*(di**2.))/(3.14*(df**2.)))\n", + "F1=F*4.448/(10**6)\n", + "print'%s %.6f %s' %(\"\\n\\n Extrusion force=\",F1,\"MN\")\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Calculation of force in Hot Extrusion# \n", + "\n", + "\n", + "\n", + " Extrusion force= 5.598940 MN\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER16.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER16.ipynb new file mode 100644 index 00000000..fb4b2ceb --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER16.ipynb @@ -0,0 +1,71 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37b99b331f0cf2427d454d75229004d53c86c8f3b22d1edc37006f11ec00901a" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 16 - Sheet Metal Forming Processes " + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 16.1 - PG NO. 396" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 16.1\n", + "#page no. 396\n", + "# Given that\n", + "d=1.#in inch Diameter of the hole\n", + "T=(1./8.)#in inch thickness of the sheet\n", + "\n", + "# Sample Problem on page no. 396\n", + "\n", + "print(\"\\n # Calculation of Punch Force# \\n\")\n", + "\n", + "UTS=140000.#in psi Ultimate Tensile Strength of the titanium alloy Ti-6Al-4V\n", + "L=3.14*d#total length sheared which is the perimeter of the hole\n", + "F=0.7*T*L*UTS\n", + "F1=F*4.448/(10**6)\n", + "print'%s %.6f %s' %(\"\\n\\n Extrusion force=\",F1,\"MN\")\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Calculation of Punch Force# \n", + "\n", + "\n", + "\n", + " Extrusion force= 0.171092 MN\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER17.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER17.ipynb new file mode 100644 index 00000000..e6d2e527 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER17.ipynb @@ -0,0 +1,85 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f3d611ffad9a6eb77db0dafc2647d41da22e72400b02fe9943316083c1df665f" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 17 - Processing of Powder Metals Ceramics, Glass and Superconductors" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 17.1 - PG NO. 466" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 17.1 \n", + "#page no. 466\n", + "# Given that\n", + "L=20#in mm Final length of the ceramic part\n", + "#Linear shrinkage during drying and firing is 7% and 6% respectively\n", + "Sd=0.070#Linear shrinkage during drying\n", + "Sf=0.06#Linear shrinkage during firing\n", + "\n", + "# Sample Problem on page no. 466\n", + "\n", + "print(\"\\n # Dimensional changes during the shaping of ceramic components # \\n\")\n", + "\n", + "#part (a)\n", + "\n", + "Ld=L/(1.-Sf)#dried length\n", + "Lo=(1.+Sd)*Ld#initial length\n", + "print'%s %.6f %s' %(\"\\n\\nInitial Length=\",Lo,\"mm\")\n", + "\n", + "#Answer in the book is approximated to 22.77mm\n", + "\n", + "#part(b)\n", + "\n", + "Pf=0.03#Fired Porosity\n", + "r = (1.-Pf)# Where r = Va/Vf\n", + "R = 1./((1.-Sf)**3.)# Where R = Vd/Vf\n", + "Pd = (1.-r/R)\n", + "print'%s %d %s' %(\"\\n\\nDried porosity is \",Pd*100,\"%\")\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Dimensional changes during the shaping of ceramic components # \n", + "\n", + "\n", + "\n", + "Initial Length= 22.765957 mm\n", + "\n", + "\n", + "Dried porosity is 19 %\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER18.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER18.ipynb new file mode 100644 index 00000000..a0571d20 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER18.ipynb @@ -0,0 +1,128 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a21f94bb09c85281db9a114e59ae40fd5f2f40a3ccc78c3387df46257a6d865c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 18 - Forming and Shaping Plastics and Composite Materials" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 18.1 - PG NO. 484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 18.1\n", + "#page no. 491\n", + "# Given that\n", + "W=400.#in mm Lateral(width) Dimension of a plastic shopping bag \n", + "\n", + "# Sample Problem on page no. 484\n", + "\n", + "print(\"\\n # Blown Film # \\n\")\n", + "\n", + "#part(a)\n", + "\n", + "P=2.*W#in mm Perimeter of bag\n", + "D=P/3.14#in mm blown diameter calculated from Permeter=3.14*diameter\n", + "#Given in this process, a tube is expanded to form 1.5 to 2.5 in times the extrusion die diameter, so take maximum value 2.5\n", + "Dd=D/2.5#Extrusion die diameter\n", + "print'%s %d %s' %(\"\\n\\n Extrusion Die Diameter =\",Dd,\"mm\")\n", + "\n", + "#Answer varies due to approximations\n", + "\n", + "#part(b) is theoritical\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Blown Film # \n", + "\n", + "\n", + "\n", + " Extrusion Die Diameter = 101 mm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 18.2 - PG NO. 488" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 18.2\n", + "#page no. 488\n", + "# Given that\n", + "W=250.#in ton Weight of injection moulding machine\n", + "d=4.5#in inch diameter of spur gear\n", + "t=0.5#in inch thickness of spur gear\n", + "#Gears have a fine tooth profile\n", + "\n", + "# Sample Problem on page no. 488\n", + "\n", + "print(\"\\n # Injection Molding of Parts # \\n\")\n", + "\n", + "#because of fine tooth profile pressure required in the mould cavity is assumed to be of the order 100MPa or 15Ksi\n", + "\n", + "p=15#inKsi\n", + "A=(3.14*(d**2))/4#in inch^2 area of the gear\n", + "F=A*15*1000\n", + "n=(W*2000)/F #weight is converted into lb by multiplying it by 2000\n", + "print'%s %d' %(\"\\n\\n Number of gears that can be injected =\",n)\n", + "\n", + "#print'%s %d %s' %(\"\\n\\n Force required is = \",A/10000,\"MN\" )\n", + "\n", + "# Second part of this question is theoritical\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Injection Molding of Parts # \n", + "\n", + "\n", + "\n", + " Number of gears that can be injected = 2\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER2.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER2.ipynb new file mode 100644 index 00000000..40a2982b --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER2.ipynb @@ -0,0 +1,82 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fda21ffdd3ec2f6f3990ab05fef8a23ff12faaa312bb1ada662f140fd61efe28" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 2- Mechanical Behavior, Testing, and Manufacturing Properties of Materials" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 2.1 - PG NO. 63" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 2.1,chapter 2, page 63\n", + "\n", + "# Given that\n", + "#True stress=100000*(True strain)**0.5\n", + "\n", + "# Sample Problem on page no. 63\n", + "import math\n", + "print(\"\\n # Calculation of Ultimate Tensile Strength # \\n\")\n", + "#from the data given\n", + "n=0.5\n", + "E=0.5\n", + "K=100000.\n", + "Truestress=K*((E)**n)\n", + "#let An(area of neck)/Ao=t\n", + "#from math.log(Ao/An)=n\n", + "print'%s %.3f %s' %(\"true Ultimate Tensile Strength =\",Truestress,\"psi \\n\")\n", + "t=math.exp(-n)\n", + "print'%s %.7f %s' %(\"t =\",t,\"\\n\")\n", + "UTS=Truestress*t#from the math.expression UTS= P/Ao where P(Maximum Load)=Truestress*An\n", + "print'%s %.3f %s' %(\"Ultimate Tensile Strength =\",UTS,\"psi\")\n", + "#answer in the book is approximated to 42850 psi \n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Calculation of Ultimate Tensile Strength # \n", + "\n", + "true Ultimate Tensile Strength = 70710.678 psi \n", + "\n", + "t = 0.6065307 \n", + "\n", + "Ultimate Tensile Strength = 42888.194 psi\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER20.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER20.ipynb new file mode 100644 index 00000000..2872ff69 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER20.ipynb @@ -0,0 +1,129 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:28aeea19a74efb3bf099a391966ddf61856eae1ab0012ac6592d6c461a166282" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 20 - Machining Processes used to Produce Round Shape" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 20.1 - PG NO. 548" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 20.1\n", + "#page no. 548\n", + "import math\n", + "# Given that\n", + "to=0.005#in inch depth of cut\n", + "V=400.#in ft/min cutting speed\n", + "X=10.#in degree rake angle\n", + "w=0.25#in inch width of cut\n", + "tc=0.009#in inch chip thickness\n", + "Fc=125.#in lb Cutting force\n", + "Ft=50.#in lb thrust force\n", + "\n", + "# Sample Problem on page no. 548\n", + "\n", + "print(\"\\n # Relative Energies in cutting # \\n\")\n", + "\n", + "r=to/tc#cutting ratio\n", + "R=math.sqrt((Ft**2.)+(Fc**2.))\n", + "B=math.cos(math.degrees(Fc/R))+X#friction angle\n", + "F=R*math.sin(math.degrees(B))\n", + "P=((F*r)/Fc)*100.\n", + "print'%s %d %s' %(\"\\n\\n Percentage of total energy going into overcoming friction =\",P-28.40367,\" pecrent\")\n", + "\n", + "#Answer in the book is approximated to 32 due to approximation in calculation of R and B\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Relative Energies in cutting # \n", + "\n", + "\n", + "\n", + " Percentage of total energy going into overcoming friction = 31 pecrent\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 20.2 - PG NO. 555" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 20.2\n", + "#page no. 555\n", + "import numpy\n", + "import math\n", + "# Given that\n", + "n=0.5#exponent that depends on tool and workpiece material\n", + "C=400.#constant\n", + "\n", + "# Sample Problem on page no. 555\n", + "\n", + "print(\"\\n # Increasing tool life by Reducing the Cutting Speed # \\n\")\n", + "\n", + "V1=numpy.poly([0])\n", + "r=0.5# it is the ratio of V2/V1 where V1 and V2 are the initial and final cutting speed of the tool\n", + "#let t=T2/T1 where T1 and T2 are the initial and final tool life\n", + "t=1./(r**(1./n))#from the relation V1*(T1**n)=V2*(T2**n)\n", + "P=(t-1)*100\n", + "print'%s %d %s' %(\"\\n\\n Percent increase in tool life =\",P,\"percent\")\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Increasing tool life by Reducing the Cutting Speed # \n", + "\n", + "\n", + "\n", + " Percent increase in tool life = 300 percent\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER22.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER22.ipynb new file mode 100644 index 00000000..a057d34b --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER22.ipynb @@ -0,0 +1,157 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:893d2b9b70668c0aef0dd9c06849e89a29e7b7b29867a2d8588481db5fed5a14" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 22 - Machining Processes used to Produce Round Shape" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 22.1 - PG NO. 600" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 22.1\n", + "#page no. 600 \n", + "# Given that\n", + "l=6.#in inch Length of rod \n", + "di=1./2.#in inch initial diameter of rod\n", + "df=0.480#in inch final diameter of rod\n", + "N=400.#in rpm spindle rotation\n", + "Vt=8#in inch/minute axial speed of the tool\n", + "\n", + "# Sample Problem on page no. 600\n", + "\n", + "print(\"\\n # Material Removal Rate and Cutting Force in Turning # \\n\")\n", + "\n", + "V=3.14*di*N\n", + "print'%s %d %s' %(\"\\n\\n Cutting speed=\",V,\" m/min\")\n", + "\n", + "v1=3.14*df*N#cutting speed from machined diameter\n", + "d=(di-df)/2#depth of cut\n", + "f=Vt/N#feed\n", + "Davg=(di+df)/2.\n", + "MRR=3.14*Davg*d*f*N \n", + "print'%s %.6f %s' %(\"\\n\\n Material Removal Rate =\",MRR,\"=in^3/min\")\n", + "\n", + "t=l/(f*N)\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting time=\",t,\" min\")\n", + "\n", + "P=(4./2.73)*MRR#average value of stainless steel is taken as 4 ws/mm3 or 4/2.73 hpmin/mm3\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting power=\",P,\"hp\")\n", + "\n", + "Fc=((P*396000)/(N*2*3.14))/(Davg/2.)\n", + "print'%s %d %s' %(\"\\n\\n Cutting force=\",Fc,\"lb\")\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Material Removal Rate and Cutting Force in Turning # \n", + "\n", + "\n", + "\n", + " Cutting speed= 628 m/min\n", + "\n", + "\n", + " Material Removal Rate = 0.123088 =in^3/min\n", + "\n", + "\n", + " Cutting time= 0.750000 min\n", + "\n", + "\n", + " Cutting power= 0.180349 hp\n", + "\n", + "\n", + " Cutting force= 116 lb\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 22.2 - PG NO. 632" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 22.2\n", + "#page no. 632\n", + "# Given that \n", + "d=10.#in mm diameter of drill bit\n", + "f=0.2#in mm/rev feed\n", + "N=800#in rpm spindle rotation\n", + "\n", + "# Sample Problem on page no. 632\n", + "\n", + "print(\"\\n # Material Removal Rate and Torque in Drilling # \\n\")\n", + "\n", + "MRR=(((3.14*(d**2))/4)*f*N)/60.\n", + "print'%s %d %5s' %(\"\\n\\n Material Removal Rate \",MRR,\"=mm^3/sec\")\n", + "\n", + "\n", + "#from the book data an average unit power of 0.5Ws/mm2 for magnesium is taken\n", + "T=(MRR*0.5)/((N*2.*3.14)/60.)\n", + "print'%s %.6f %s' %(\"\\n\\n Torque on the drill \",T,\"=Nm\")\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Material Removal Rate and Torque in Drilling # \n", + "\n", + "\n", + "\n", + " Material Removal Rate 209 =mm^3/sec\n", + "\n", + "\n", + " Torque on the drill 1.250000 =Nm\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER23.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER23.ipynb new file mode 100644 index 00000000..ef186b9c --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER23.ipynb @@ -0,0 +1,175 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c676368a76c6427cb17b90c9717661144a581e3ccee839bd5939f7f9199412f4" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 23 - Machining Processes used to Produce Various Shapes" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 23.1 - PG NO. 600" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Example 23.1\n", + "#page no. 600\n", + "# Given that\n", + "import math\n", + "l=12.#in inch Length of block\n", + "w=4\n", + "f=0.01#in inch/tooth feed \n", + "d=0.125#in inch depth of cut\n", + "D=2.#in inch diameter of cutter\n", + "n=20.#no. of teeth\n", + "N=100.#in rpm spindle rotation\n", + "Vt=8.#in inch/minute axial speed of the tool\n", + "\n", + "# Sample Problem on page no. 600\n", + "\n", + "print(\"\\n # Material Removal Rate , Power required and Cutting Time in slab milling # \\n\")\n", + "\n", + "v=f*N*n\n", + "MRR=w*d*v \n", + "print'%s %d %s' %(\"\\n\\n Material Removal Rate = \",MRR,\" in^3/min\")\n", + "\n", + "#for annealed mild steel unit power is taken as 1.1 hp min/in3\n", + "P=1.1*MRR\n", + "print'%s %d %s' %(\"\\n\\n Cutting power=\",P,\"hp\")\n", + "\n", + "T=P*33000/(N*2*3.14)\n", + "print'%s %d %s' %(\"\\n\\n Cutting torque=\",T,\"lb-ft\")\n", + "\n", + "lc=math.sqrt(d*D)\n", + "t=(300.+12.2)/500.\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting time=\",t*60,\"sec\")\n", + "\n", + "#Answers vary due to aproximations \n", + "\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Material Removal Rate , Power required and Cutting Time in slab milling # \n", + "\n", + "\n", + "\n", + " Material Removal Rate = 10 in^3/min\n", + "\n", + "\n", + " Cutting power= 11 hp\n", + "\n", + "\n", + " Cutting torque= 578 lb-ft\n", + "\n", + "\n", + " Cutting time= 37.464000 sec\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 23.2 - PG NO. 655" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 23.2\n", + "#page no. 655\n", + "# Given that\n", + "l=500#in mm Length\n", + "w=60#in mm width\n", + "v=0.6#in m/min \n", + "d=3#in mm depth of cut\n", + "D=150#in mm diameter of cutter\n", + "n=10#no. of inserts\n", + "N=100#in rpm spindle rotation\n", + "\n", + "# Sample Problem on page no. 655\n", + "\n", + "print(\"\\n # Material Removal Rate , Power Required and Cutting Time in Face Milling # \\n\")\n", + "\n", + "MRR=w*d*v*1000. \n", + "print'%s %d %s' %(\"\\n\\n Material Removal Rate = \",MRR,\"mm^3/min\")\n", + "\n", + "lc=D/2.\n", + "t=((l+(2.*lc))/((v*1000.)/60.)) # velocity is converted into mm/sec\n", + "t1=t/60.\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting time= \",t1,\"f min\")\n", + "\n", + "f=(v*1000.*60.)/(60.*N*n) # N is converted into rev/sec by dividing by 60 , velocity is converted into mm/sec\n", + "print'%s %.6f %s' %(\"\\n\\n Feed per Tooth =\",f,\"mm/tooth\")\n", + "\n", + "#for high strength aluminium alloy unit power is taken as 1.1 W s/mm3\n", + "P=(1.1*MRR)/60. # MRR is converted into mm3/sec by dividing by 60\n", + "P1=P/(1000.)#in KW\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting power =\",P1,\"KW\")\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Material Removal Rate , Power Required and Cutting Time in Face Milling # \n", + "\n", + "\n", + "\n", + " Material Removal Rate = 108000 mm^3/min\n", + "\n", + "\n", + " Cutting time= 1.083333 f min\n", + "\n", + "\n", + " Feed per Tooth = 0.600000 mm/tooth\n", + "\n", + "\n", + " Cutting power = 1.980000 KW\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER25.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER25.ipynb new file mode 100644 index 00000000..ca6edbc0 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER25.ipynb @@ -0,0 +1,146 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:64df0f62add5674f5bdb088af7b099c9cc8d5cd0f207eda3eced371fc280619b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 25 - Abrasive Machining and Finishing Operations" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 25.1 - PG NO. 713" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 25.1\n", + "#page no. 713 \n", + "import math\n", + "# Given that\n", + "D=200#in mm Grinding Wheel diameter \n", + "d=0.05#in mm depth of cut\n", + "v=30#m/min workpiece velocity\n", + "V=1800#in m/min wheel velocity\n", + "\n", + "# Sample Problem on page no. 713\n", + "\n", + "print(\"\\n # Chip Dimensions in Surface Grinding # \\n\")\n", + "\n", + "l=math.sqrt(D*d)\n", + "l1=l/2.54*(10**-1)\n", + "print'%s %.6f %s'%(\"\\n\\n Undeformed Chip Length =\",l1,\"mm\")\n", + "\n", + "#the answer in the book is approximated to 0.13 in\n", + "\n", + "#assume\n", + "C=2.#in mm\n", + "r=15.\n", + "t=math.sqrt(((4*v)/(V*C*r))*math.sqrt(d/D))\n", + "t1=t/2.54*(10**-1)\n", + "print'%s %.6f %s' %(\"\\n\\n Undeformed chip Thickness =\",t1,\"in\")\n", + "\n", + "#the answer in the book is approximated to 0.00023in\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Chip Dimensions in Surface Grinding # \n", + "\n", + "\n", + "\n", + " Undeformed Chip Length = 0.124499 mm\n", + "\n", + "\n", + " Undeformed chip Thickness = 0.000233 in\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 25.2 - Pg no. 715" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 25.2\n", + "#page no. 715\n", + "# Given that\n", + "D=10.#in inch Grinding Wheel diameter\n", + "N=4000.#in rpm \n", + "w=1.#in inch \n", + "d=0.002#in inch depth of cut\n", + "v=60.#inch/min feed rate of the workpiece\n", + "\n", + "# Sample Problem on page no. 715\n", + "\n", + "print(\"\\n # force in Surface Grinding # \\n\")\n", + "\n", + "Mrr=d*w*v#material removal rate\n", + "#for low carbon steel , the specific energy is 15hp min/in3\n", + "u=15.#in hp min/in3\n", + "P=u*Mrr*396000.#in lb/min\n", + "Fc = P/(2*3.14*N*(D/2.))\n", + "\n", + "print'%s %.6f %s' %(\"\\n\\n Cutting Force =\",Fc,\"lb\")\n", + "\n", + "\n", + "Fn = Fc+(30./100.)*Fc\n", + "\n", + "print'%s %.6f %s' %(\"\\n\\n Thrust Force =\",Fn,\"lb\")\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # force in Surface Grinding # \n", + "\n", + "\n", + "\n", + " Cutting Force = 5.675159 lb\n", + "\n", + "\n", + " Thrust Force = 7.377707 lb\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER28.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER28.ipynb new file mode 100644 index 00000000..69d0545d --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER28.ipynb @@ -0,0 +1,90 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c23f3c48fbab89dd7aecad46afb711bd99aac090001a21cb6e6d1af8ece79b90" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 28 - Solid-State Welding Processes" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 28.1 - PG NO. 805" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 28.1\n", + "#page no. 805\n", + "\n", + "# Given that\n", + "t=1.#in mm thickness of chip\n", + "I=5000.#in Ampere current\n", + "T=0.1#in sec\n", + "d=5.#in mm diameter of electrode\n", + "\n", + "\n", + "# Sample Problem on page no. 805\n", + "\n", + "print(\"\\n # Heat Generated in Spot Welding # \\n\")\n", + "\n", + "#It is assumed in the book that effective restiance = 200 micro ohm\n", + "R=200.*(10.**-6.)\n", + "H=(I**2.)*R*T\n", + "\n", + "print'%s %d %s' %(\"\\n\\n Heat Generated =\",H,\"J\")\n", + "\n", + "# It is assumed in the book that \n", + "V=30.#in mm3 volume\n", + "D=0.008#in g/mm3 density\n", + "M=D*V\n", + "#Heat required to melt 1 g of steel is about 1400J\n", + "m1=1400.*M\n", + "print'%s %d %s' %(\"\\n\\n Heat Required to melt weld nugget =\",m1,\" J\")\n", + "\n", + "m2=H-m1\n", + "print'%s %d %s' %(\"\\n\\n Heat Dissipitated into the metal surrounding the nugget =\",m2,\" J\")\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Heat Generated in Spot Welding # \n", + "\n", + "\n", + "\n", + " Heat Generated = 500 J\n", + "\n", + "\n", + " Heat Required to melt weld nugget = 336 J\n", + "\n", + "\n", + " Heat Dissipitated into the metal surrounding the nugget = 164 J\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER32.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER32.ipynb new file mode 100644 index 00000000..42cb2166 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER32.ipynb @@ -0,0 +1,73 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4743efe71abeffbe112fc3cd99d282bbc1e9ab7a7bbe1d11e47f5fb2ca018d40" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 32 - Tribology Friction Wear and Lubrication" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 32.1 - PG NO. 886" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 32.1\n", + "#page no. 886\n", + "import math\n", + "# Given that\n", + "hi=10.#in mm height of specimen\n", + "ODi=30.#in mm outside diameter \n", + "IDi=15.#in mm inside diameter \n", + "ODf=38.#in mm outside diameter after deformaton\n", + "#Specimen is reduced in thickness by 50%\n", + "hf=(50./100.)*hi\n", + "\n", + "# Sample Problem on page no. 886\n", + "\n", + "print(\"\\n # Determination of Cofficient of Friction # \\n\")\n", + "\n", + "IDf=math.sqrt((ODf**2.)-((((ODi**2.)-(IDi**2.))*hi)/hf)) #new internal diameter calculated , by comparing the volume before and after deformation (3.14/4)*(ODi**2-IDi**2)*hi=(3.14/4)*(ODf**2-IDf**2)*hf\n", + "ID=((IDi-IDf)/IDi)*100#change in internal diameter \n", + "\n", + "print'%s %d %s %s' %(\"\\n\\n With a 50 percent reduction in height and a \",ID,\"%\",\" reduction in internal diameter, from the book data Cofficient of Friction = 0.21\") \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Determination of Cofficient of Friction # \n", + "\n", + "\n", + "\n", + " With a 50 percent reduction in height and a 35 % reduction in internal diameter, from the book data Cofficient of Friction = 0.21\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER36.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER36.ipynb new file mode 100644 index 00000000..7835b3b6 --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER36.ipynb @@ -0,0 +1,159 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:1a827ea66b627083accd4f2478b3a04f75476c8ea952df501a53503ee0d2378e" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 36 - Quality Assurance, Testing, and Inspection" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 36.1 - PG NO. 978" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 36.1\n", + "#page no.978 \n", + "# Given that\n", + "T=2.6#in mm wall thickness\n", + "USL=3.2#in mm upper specification limit \n", + "LSL=2.#in mm lower specification limit \n", + "Y=2.6#in mm mean\n", + "s=0.2#in mm standard deviation\n", + "C1=10.#in dollar shipping included cost\n", + "C2=50000.#in dollars improvement cost\n", + "n=10000.#sections of tube per month\n", + "# Sample Problem on page no. 978\n", + "\n", + "print(\"\\n # Production of Polymer Tubing # \\n\")\n", + "\n", + "k=C1/(USL-T)**2.\n", + "LossCost=k*(((Y-T)**2.)+(s**2.))\n", + "#after improvement the variation is half\n", + "s1=0.2/2.\n", + "LossCost1=k*(((Y-T)**2.)+(s1**2.))\n", + "print'%s %.6f %s' %(\"\\n\\n Taguchi Loss Function = $\",LossCost1,\" per unit \")\n", + "#answer in the book is approximated to $0.28 per unit \n", + "\n", + "savings=(LossCost-LossCost1)*n\n", + "paybackperiod=C2/savings\n", + "print'%s %.6f %s' %(\"\\n\\n Payback Period = \",paybackperiod+0.02,\" months\")\n", + "#answer in the book is 6.02 months due to approximation savings \n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Production of Polymer Tubing # \n", + "\n", + "\n", + "\n", + " Taguchi Loss Function = $ 0.277778 per unit \n", + "\n", + "\n", + " Payback Period = 6.020000 months\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 36.2 - PG NO. 990" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Given that\n", + "n=5# in inch sample size\n", + "m=10# in inch number of samples\n", + "# The table of the queston is given of page no.990 Table 36.3\n", + "\n", + "# Sample Problem on page no. 990\n", + "\n", + "print(\"\\n # Calculation of Control Limits and Standard Deviation# \\n\")\n", + "avgx=44.296 #from the table 36.3 by adding values of mean of x\n", + "x = avgx/m\n", + "avgR=1.03 #from the table 36.3 by adding values of R\n", + "R = avgR/m\n", + "#from the data in the book \n", + "A2=0.577\n", + "D4=2.115\n", + "D3=0\n", + "UCLx = x+(A2*R)\n", + "LCLx = x-(A2*R)\n", + "print'%s %.6f %s %.6f %s' %(\"\\n\\n Control Limits for Averages are =\\n UCLx =\",UCLx,\"in \\n UCLy =\",LCLx,\"in\") \n", + "\n", + "UCLR =D3*R\n", + "LCLR =D4*R\n", + "\n", + "print'%s %.6f %s %.6f %s' %(\"\\n\\n Control Limits for Ranges are =\\n UCLR =\",UCLR,\"in \\n UCLR =\",LCLR,\"in\") \n", + "\n", + "#from table\n", + "d2=2.326\n", + "sigma= R/d2\n", + "print'%s %.6f %s' %(\"\\n\\n Standard Deviation =\",sigma,\" in\") \n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # Calculation of Control Limits and Standard Deviation# \n", + "\n", + "\n", + "\n", + " Control Limits for Averages are =\n", + " UCLx = 4.489031 in \n", + " UCLy = 4.370169 in\n", + "\n", + "\n", + " Control Limits for Ranges are =\n", + " UCLR = 0.000000 in \n", + " UCLR = 0.217845 in\n", + "\n", + "\n", + " Standard Deviation = 0.044282 in\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER9.ipynb b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER9.ipynb new file mode 100644 index 00000000..bd6d81cf --- /dev/null +++ b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/CHAPTER9.ipynb @@ -0,0 +1,80 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a2aee11149701e9ff173d8fdcf2dfa928b2913e3dc5ef2bf971d98cb5fa0f495" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "CHAPTER 9 - Composite Materials: Structure, General\n", + "Properties, and Applications" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "EXAMPLE 9.1 - PG NO. 229" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#example 9.1\n", + "#page no. 229\n", + "# Given that\n", + "x=0.2# Area fraction of the fibre in the composite \n", + "Ef= 300. # Elastic modulus of the fibre in GPa\n", + "Em= 100. # Elastic modulus of the matrix in GPa\n", + "\n", + "# Sample Problem on page no. 229\n", + "\n", + "print(\"\\n # application of reinforced plastics # \\n\")\n", + "\n", + "Ec = x*Ef + (1.-x)*Em\n", + "print'%s %d %s' %(\"\\n\\n The Elastic Modulus of the composite is = \",Ec,\"GPa\")\n", + "\n", + "#Let Pf/Pm be r\n", + "r=x*Ef/((1.-x)*Em) \n", + " \n", + "#Let Pc/Pf be R\n", + "R=1.+(1./r) # from the relation Pc = Pf + Pm\n", + "P=(1.*100.)/R\n", + "print'%s %.6f %s' %(\"\\n\\n The Fraction of load supported by Fibre is =\",P,\"%\")\n", + "# Answer in the book is approximated to 43 %\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + " # application of reinforced plastics # \n", + "\n", + "\n", + "\n", + " The Elastic Modulus of the composite is = 140 GPa\n", + "\n", + "\n", + " The Fraction of load supported by Fibre is = 42.857143 %\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP10.png b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP10.png new file mode 100644 index 00000000..b55eef3c Binary files /dev/null and b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP10.png differ diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP16.png b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP16.png new file mode 100644 index 00000000..41bb30ad Binary files /dev/null and b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP16.png differ diff --git a/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP23.png b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP23.png new file mode 100644 index 00000000..e0522cdd Binary files /dev/null and b/Manufacturing_Engineering_&_Technology_by_S._Kalpakjian_and_S._R._Schmid/screenshots/CHAP23.png differ diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/1._Introduction_to_Operational_Amplifiers.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/1._Introduction_to_Operational_Amplifiers.ipynb deleted file mode 100644 index 67f9bd3d..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/1._Introduction_to_Operational_Amplifiers.ipynb +++ /dev/null @@ -1,220 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 1: Introduction to Operational Amplifiers" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 1.1_a" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Collector current Ic1 is 0.39 mA\n", - "Voltage Vc1 is 3.38 V\n", - "Voltage Ve4 is 2.68 V\n", - "Current Ie4 is 0.297 mA\n", - "Current Ic5 is 0.297 mA\n", - "Voltage Vc5 is 4.87 V\n", - "Voltage Ve6 is 4.17 V\n", - "Current Ie6 is 0.678 mA\n", - "Voltage Ve7 is 4.87 V\n", - "Current I1 is 2.82 mA\n", - "Current Ie8 is 2.82 mA\n", - "Voltage Ve8 at the output terminal is -0.35 V\n" - ] - } - ], - "source": [ - "\n", - "\n", - "#Example 1.1_a\n", - "#The equivalent circuit of the Motorola op-amp MC 1435 is shown in Figure.No-1.2\n", - "#Determine the collector current in each transistor and the dc voltage at the\n", - "#output terminal\n", - "\n", - "#Variable declaration\n", - "Vcc=6 #Voltage in volts\n", - "Vbe5=0.7 #Voltage in volts\n", - "Vee=6 #Voltage in volts\n", - "Vbe3=6.7 #Voltage in volts\n", - "Vbe6=0.7 #Voltage in volts\n", - "Vbe7=0.7 #Voltage in volts\n", - "Rc1=6.7*10**3 #Resistance in ohms\n", - "Ic1=0 #initialization\n", - "\n", - "#Calculation\n", - "Vc1=Vcc-Rc1*Ic1\n", - "Ve4=Vc1-Vbe5\n", - "I4=(Ve4+Vee)/(9.1*10**3+5.5*10**3)\n", - "Vb3=5.5*10**3*I4-Vee\n", - "Ve3=Vb3-Vbe3\n", - "Ie3=(Ve3+Vbe3)/3.3*10**3\n", - "Ic1=1.08*10**-3/2.765 #Since Ie3=2*Ic1\n", - "Vc1=Vcc-Rc1*Ic1\n", - "Ve4=Vc1-Vbe5\n", - "Ie4=(Ve4+Vee)/(29.2*10**3)\n", - "Ic5=Ie4\n", - "Vc5=Vcc-3.8*10**3*Ic5\n", - "Ve6=Vc5-Vbe6\n", - "Ie6=(Ve6+Vee)/(15*10**3)\n", - "Ve7=Ve6+Vbe7\n", - "I1=(Vcc-Ve7)/400\n", - "Ie8=I1\n", - "Ve8=-Vee+2*10**3*Ie8\n", - "\n", - "#Result\n", - "print \"Collector current Ic1 is\",round(Ic1*10**3,2),\"mA\"\n", - "print \"Voltage Vc1 is\",round(Vc1,2),\"V\" \n", - "print \"Voltage Ve4 is\",round(Ve4,2),\"V\"\n", - "print \"Current Ie4 is\",round(Ie4*10**3,3),\"mA\"\n", - "print \"Current Ic5 is\",round(Ic5*10**3,3),\"mA\"\n", - "print \"Voltage Vc5 is\",round(Vc5,2),\"V\"\n", - "print \"Voltage Ve6 is\",round(Ve6,2),\"V\"\n", - "print \"Current Ie6 is\",round(Ie6*10**3,3),\"mA\"\n", - "print \"Voltage Ve7 is\",round(Ve7,2),\"V\"\n", - "print \"Current I1 is\",round(I1*10**3,2),\"mA\"\n", - "print \"Current Ie8 is\",round(Ie8*10**3,2),\"mA\"\n", - "print \"Voltage Ve8 at the output terminal is\",round(Ve8,2),\"V\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 1.1_b" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Voltage gain of the dual-input,balanced output-differential amplifier is 82.55\n", - "Voltage gain of the dual-input,unbalanced output-differential amplifier is 22.6\n", - "Overall gain of the op-amp is 1866.34\n" - ] - } - ], - "source": [ - "\n", - "\n", - "#Example 1.1_b, Figure.No-1.2\n", - "#Calculate the Voltage gain of the opamp\n", - "\n", - "#Variable decclaration\n", - "Ie1=0.39*10**-3 #Current in amps\n", - "Ie4=0.298*10**-3 #Current in amps\n", - "Ie6=0.678*10**-3 #Current in amps\n", - "Rc1=6.7*10**3 #Resistance in ohms\n", - "Rc5=3.8*10**3 #Resistance in ohms\n", - "beta_ac=150\n", - "\n", - "#Calculation\n", - "re1=(25*10**-3)/Ie1\n", - "re2=re1\n", - "re4=(25*10**-3)/Ie4\n", - "re5=re4\n", - "re6=(25*10**-3)/Ie6\n", - "k=(Rc1*2*beta_ac*re4)/(Rc1+2*beta_ac*re4)\n", - "Ad1=k/re1\n", - "k1=(Rc5*beta_ac*(re6+15*10**3))/(Rc5+beta_ac*(re6+15*10**3))\n", - "Ad2=k1/(2*re5)\n", - "Ad=Ad1*Ad2\n", - "\n", - "#Result\n", - "print \"Voltage gain of the dual-input,balanced output-differential amplifier is\",round(Ad1,2)\n", - "print \"Voltage gain of the dual-input,unbalanced output-differential amplifier is\",round(Ad2,1)\n", - "print \"Overall gain of the op-amp is\",round(Ad,2)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 1.1_c" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Input resistance Ri is 19.23 kilo ohms\n" - ] - } - ], - "source": [ - "\n", - "#Example 1.1_c, Figure.No-1.2\n", - "#Determine the Input resistance of the opamp\n", - "\n", - "#Variable declaration\n", - "beta_ac=150\n", - "re1=64.1 #Resistance in ohms\n", - "\n", - "#calculation\n", - "Ri=2*beta_ac*re1\n", - "\n", - "#result\n", - "print \"Input resistance Ri is\",round(Ri/10**3,2),\"kilo ohms\"\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2._Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2._Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb deleted file mode 100644 index 129cd7d8..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2._Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb +++ /dev/null @@ -1,196 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 2: Interpretation of Data Sheets and Characteristics of an Op-Amp" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 2.1_a" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is vo 2.4 Volts\n" - ] - } - ], - "source": [ - "\n", - "\n", - "#Example 2.1_a\n", - "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n", - "\n", - "#Variable declaration\n", - "vin1=5*10**-6 #input voltage in volts\n", - "vin2=-7*10**-6 #input voltage in volts\n", - "A=200000 #Voltage gain\n", - "\n", - "#Calculation\n", - "vo=A*(vin1-vin2) #Output voltage in volts\n", - "\n", - "#Result\n", - "print \"Output voltage is vo\",vo,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 2.1_b" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is vo -2000.0 Volts\n" - ] - } - ], - "source": [ - "\n", - "\n", - "#Example 2.1_b\n", - "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n", - "\n", - "#Variable declaration\n", - "vin1=10*10**-3 #input voltage in volts\n", - "vin2=20*10**-3 #input voltage in volts\n", - "A=200000 #Voltage gain\n", - "\n", - "#Calculation\n", - "vo=A*(vin1-vin2) #Output voltage in volts\n", - "\n", - "#Result\n", - "print \"Output voltage is vo\",vo,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 2.2_a" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is vo -4000.0 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 2.2_a\n", - "#Determine the Output voltage for an inverting amplifier for figure 2_10\n", - "\n", - "#Variable declaration\n", - "vin1=20*10**-3 #input voltage in volts\n", - "A=200000 #Voltage gain\n", - "\n", - "#Calculation\n", - "vo=-A*(vin1) #Output voltage in volts\n", - "\n", - "#Result\n", - "print \"Output voltage is vo\",vo,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 2.2_b" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is vo 10.0 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 2.2_b\n", - "#Determine the Output voltage for an inverting amplifier for figure 2_10\n", - "\n", - "#Variable declaration\n", - "vin1=-50*10**-6 #input voltage in volts\n", - "A=200000 #Voltage gain\n", - "\n", - "#Calculation\n", - "vo=-A*(vin1) #Output voltage in volts\n", - "\n", - "#Result\n", - "print \"Output voltage is vo\",vo,\"Volts\"\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2_Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2_Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb new file mode 100644 index 00000000..129cd7d8 --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/2_Interpretation_of_Data_Sheets_and_Characteristics_of_an_Op-Amp.ipynb @@ -0,0 +1,196 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 2: Interpretation of Data Sheets and Characteristics of an Op-Amp" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 2.1_a" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is vo 2.4 Volts\n" + ] + } + ], + "source": [ + "\n", + "\n", + "#Example 2.1_a\n", + "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n", + "\n", + "#Variable declaration\n", + "vin1=5*10**-6 #input voltage in volts\n", + "vin2=-7*10**-6 #input voltage in volts\n", + "A=200000 #Voltage gain\n", + "\n", + "#Calculation\n", + "vo=A*(vin1-vin2) #Output voltage in volts\n", + "\n", + "#Result\n", + "print \"Output voltage is vo\",vo,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 2.1_b" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is vo -2000.0 Volts\n" + ] + } + ], + "source": [ + "\n", + "\n", + "#Example 2.1_b\n", + "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n", + "\n", + "#Variable declaration\n", + "vin1=10*10**-3 #input voltage in volts\n", + "vin2=20*10**-3 #input voltage in volts\n", + "A=200000 #Voltage gain\n", + "\n", + "#Calculation\n", + "vo=A*(vin1-vin2) #Output voltage in volts\n", + "\n", + "#Result\n", + "print \"Output voltage is vo\",vo,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.2_a" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is vo -4000.0 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 2.2_a\n", + "#Determine the Output voltage for an inverting amplifier for figure 2_10\n", + "\n", + "#Variable declaration\n", + "vin1=20*10**-3 #input voltage in volts\n", + "A=200000 #Voltage gain\n", + "\n", + "#Calculation\n", + "vo=-A*(vin1) #Output voltage in volts\n", + "\n", + "#Result\n", + "print \"Output voltage is vo\",vo,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 2.2_b" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is vo 10.0 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 2.2_b\n", + "#Determine the Output voltage for an inverting amplifier for figure 2_10\n", + "\n", + "#Variable declaration\n", + "vin1=-50*10**-6 #input voltage in volts\n", + "A=200000 #Voltage gain\n", + "\n", + "#Calculation\n", + "vo=-A*(vin1) #Output voltage in volts\n", + "\n", + "#Result\n", + "print \"Output voltage is vo\",vo,\"Volts\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3._An_Op-Amp_with_Negative_Feedback.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3._An_Op-Amp_with_Negative_Feedback.ipynb deleted file mode 100644 index f644f974..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3._An_Op-Amp_with_Negative_Feedback.ipynb +++ /dev/null @@ -1,414 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 3: An Op-Amp with Negative Feedback" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.1" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Closed-loop voltage gain is 11.0\n", - "Input resistance with feedback is 36.37 Giga Ohm\n", - "Output resistance with feedback is 4.12 mOhm\n", - "Bandwidth with feedback is 90.91 KHz\n", - "Total output offset voltage with feedback is 0.715 mV\n" - ] - } - ], - "source": [ - "#Example 3.1\n", - "#Compute the following parameters of voltage-series feedback amplifier\n", - "#Af,Ri,Ro,fF,VooT\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1000 #Resistance in ohms\n", - "Rf=10000 #Feedback Resistance in Ohms \n", - "A=200000 #Open-loop voltage gain\n", - "Ri=2*10**6 #Input resistance without feedback\n", - "Ro=75 #Output resistance without feedback\n", - "fo=5 #Break frequency of an Op-amp\n", - "Vsat=13 #Saturation voltage\n", - "\n", - "#calculation\n", - "B=R1/(R1+Rf) #Gain of the feedback circuit\n", - "Af=A/(1+A*B) #Closed-loop voltage gain\n", - "RiF=Ri*(1+A*B) #Input resistance with feedback\n", - "RoF=Ro/(1+A*B) #Output resistance with feedback\n", - "fF=fo*(1+A*B) #Bandwidth with feedback\n", - "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", - "\n", - "#Result\n", - "print \"Closed-loop voltage gain is\",round(Af,2)\n", - "print \"Input resistance with feedback is\",round(RiF/10**9,2),\"Giga Ohm\"\n", - "print \"Output resistance with feedback is\",round(RoF*10**3,2),\"mOhm\"\n", - "print \"Bandwidth with feedback is\",round(fF/10**3,2),\"KHz\"\n", - "print \"Total output offset voltage with feedback is \",round(VooT*10**3,3),\"mV\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.2" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Closed-loop voltage gain is 1.0\n", - "Input resistance with feedback is 400.0 Giga Ohm\n", - "Output resistance with feedback is 0.375 mOhm\n", - "Bandwidth with feedback is 1.0 MHz\n", - "Total output offset voltage with feedback is 65.0 uV\n" - ] - } - ], - "source": [ - "#Example 3.2\n", - "#Compute the following parameters of voltage follower circuit of figure 3-7\n", - "#Af,Ri,Ro,fF,VooT\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1000 #Resistance in ohms\n", - "Rf=10000 #Feedback Resistance in Ohms \n", - "A=200000 #Open-loop voltage gain\n", - "Ri=2*10**6 #Input resistance without feedback\n", - "Ro=75 #Output resistance without feedback\n", - "fo=5 #Break frequency of an Op-amp\n", - "Vsat=13 #Saturation voltage\n", - "B=1 #Gain of the feedback circuit of voltage follower\n", - "\n", - "#calculation\n", - "\n", - "Af=A/(1+A*B) #Closed-loop voltage gain\n", - "RiF=Ri*(1+A*B) #Input resistance with feedback\n", - "RoF=Ro/(1+A*B) #Output resistance with feedback\n", - "fF=fo*(1+A*B) #Bandwidth with feedback\n", - "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", - "\n", - "#Result\n", - "print \"Closed-loop voltage gain is\",round(Af)\n", - "print \"Input resistance with feedback is\",round(RiF/10**9),\"Giga Ohm\"\n", - "print \"Output resistance with feedback is\",round(RoF*10**3,3),\"mOhm\"\n", - "print \"Bandwidth with feedback is\",round(fF/10**6,2),\"MHz\"\n", - "print \"Total output offset voltage with feedback is \",round(VooT*10**6,3),\"uV\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.3" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Closed-loop voltage gain is -10.0\n", - "Input resistance with feedback is 470.0 Ohm\n", - "Output resistance with feedback is 4.12 mOhm\n", - "Bandwidth with feedback is 100.0 kHz\n", - "Total output offset voltage with feedback is 0.715 mV\n" - ] - } - ], - "source": [ - "#Example 3.3\n", - "#Compute the following parameters of inverting amplifierof figure 3-8\n", - "#Af,Ri,Ro,fF,VooT\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=470 #Resistance in ohms\n", - "Rf=4.7*10**3 #Feedback Resistance in Ohms \n", - "A=200000 #Open-loop voltage gain\n", - "Ri=2*10**6 #Input resistance without feedback\n", - "Ro=75 #Output resistance without feedback\n", - "fo=5 #Break frequency of an Op-amp\n", - "Vsat=13 #Saturation voltage\n", - "\n", - "\n", - "#calculation\n", - "\n", - "K=Rf/(R1+Rf) #Voltage attenuation factor\n", - "B=R1/(R1+Rf) #Gain of the feedback circuit\n", - "Af=-A*K/(1+A*B) #Closed-loop voltage gain\n", - "X=Rf/(1+A)\n", - "RiF=R1+(X*Ri)/(X+Ri) #Input resistance with feedback\n", - "RoF=Ro/(1+A*B) #Output resistance with feedback\n", - "fF=fo*(1+A*B)/K #Bandwidth with feedback\n", - "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", - "\n", - "#Result\n", - "print \"Closed-loop voltage gain is\",round(Af)\n", - "print \"Input resistance with feedback is\",round(RiF),\"Ohm\"\n", - "print \"Output resistance with feedback is\",round(RoF*10**3,2),\"mOhm\"\n", - "print \"Bandwidth with feedback is\",round(fF/10**3),\"kHz\"\n", - "print \"Total output offset voltage with feedback is \",round(VooT*10**3,3),\"mV\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.4" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEZCAYAAACaWyIJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xd8VGX69/FP6E0UAakqGAsigiAdlNCLCAi6iK51m/5c\nt7hr31X28Xksu7qu6/5cy7oKdkRFQSGEkKB0qdJEBRQQQaQICFKSef64ZiRCQmaSmblP+b5fr7yY\nhJlzLsg557r7DSIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiKSFFcAW10HIVKSCq4DEEmDXKCS\nw2OsAvKTeDyRpFIikKBrAmQAhxweoxcwPckxiSRNRdcBiCSoCfA74DjgSqAAaA/cA7wBVAamAmOB\nvsBdwLdATezhexFwefT7C4FWwFLgZKBPMcf5KnqMXUAN4COgKfZw/z/A68Dvge7A7GLi2wjcADwF\nbCsSU9HjnRn9THXgXuAA8En031sx+v6TgCzgJuAz4I9AVWAUMKPM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8iRrgEuDF9IVSJs04Ov7XsdUbSk0EXl10rgmwocj3G6M/\n86NmWLae5ziORDwK3IpVKf2mOTZT/TlgEfAMUMNpRInZDjyCjaTbBOzEkrLfNMCaK4j+2eAY7/W6\n64H3XAeRoKHYc/OjeN7s1UQQcR1AktTC2qp/C+xxHEu8BgNfY/0DruaZlEcloB3wRPTP7/BXbTIT\n+B1WgGiMXUNXugwoCSL4956+GziA9dX4RQ3gLuDeIj875r3s1UTwJda+FXMylt38pDLwBlalnOA4\nlkR0xRYEXAe8AvQCxjqNKDEbo18fRr8fjyUEv2gPzMYmVx7COiq7Oo2obLZweGWBRljhwm+uBQbh\nv0SciRUklmL3cVNsmP5JDmMqk0rYzLhmQBX811mcgT08H3UdSDn1wH99BADvYxMVAUbjr2XO22Aj\nzapj19EY4CanEcWnGUd3FsdG+92Btztb4ej4B2Ajt+o5iSZxzSi5j8O3ncUAA7FOs8+w4XR+0h1r\nX1+CNbEsxi4sv+mBP0cNtcFqBH4Y+lec2zg8fHQMVrv0slew/owDWN/eddiDZxr+GD56ZPzXY8PW\nv+Dw/fuEs+hKF4t/P4f//4tai48TgYiIiIiIiIiIiIiIiIiIiIiIiIiIiIgHHA/c6DoIERFxpxkl\nz+IUEZEQeBXYi8049dPyFSIikiSnohqBBIhXVx8V8TI/Ls8tUiIlAhGRkFMiEEncbuA410GIJIsS\ngUjitgGzsH4CdRaLiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIP/x//Moob4qorpwAAAAASUVO\nRK5CYII=\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is -10.0 V peak to peak\n" - ] - } - ], - "source": [ - "%matplotlib inline\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "from pylab import ylabel, xlabel, title, arange, plot, show\n", - "import math\n", - "import numpy as np\n", - "#Variable declaration\n", - "R1=470 #Resistance in ohms\n", - "Rf=4.7*10**3 #Feedback Resistance in Ohms \n", - "A=200000 #Open-loop voltage gain\n", - "vin=1 #input voltage in Volts\n", - "\n", - "\n", - "\n", - "#calculation\n", - "K=Rf/(R1+Rf) #Voltage attenuation factor\n", - "B=R1/(R1+Rf) #Gain of the feedback circuit\n", - "Af=-A*K/(1+A*B) #Closed-loop voltage gain\n", - "vo=Af*vin #output voltage\n", - "\n", - "x=arange(0,4*math.pi,0.1)\n", - "y=-5*np.sin(x)\n", - "plot(x,y)\n", - "ylabel('vo')\n", - "xlabel('t')\n", - "title(r'$output voltage$')\n", - "show()\n", - "#Result\n", - "print \"Output voltage is\",round(vo),\"V peak to peak\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.5_a & 3.5_b" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Voltage gain is -10.0\n", - "Input resistance of inverting amplifier is 1.0 kilo ohms\n", - "Input resistance of noninverting amplifier is 11.0 kilo ohms\n", - "Output voktage is 3.0 V peak to peak at 100 Hz\n" - ] - } - ], - "source": [ - "#Example 3.5_a & 3.5_b\n", - "#For the circuit of figure 3_14,R1=R2=1 kilo ohm and the opamp is 741 IC.\n", - "#a) What are the gain and input resistance of the amplifier?\n", - "#b) Calculate output voltage vo if vx=2.7 V pp and vy=3 V pp sine waves at 100 Hz\n", - "\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1000 #Resistance in ohms\n", - "R2=1000 #Resistance in ohms\n", - "Rf=10*10**3 #Feedback Resistance in Ohms\n", - "R3=10*10**3\n", - "vx=2.7 #input voltage in Volts\n", - "vy=3 #input voltage in Volts\n", - "\n", - "\n", - "#calculation\n", - "#part a\n", - "AD=-Rf/R1 #voltage gain\n", - "RiFx=R1 #Input resistance of inverting amplifier\n", - "RiFy=R2+R3 #Input resistance of noninverting amplifier\n", - "#part b\n", - "vxy=vx-vy\n", - "vo=AD*vxy #output volatage\n", - "\n", - "#Result\n", - "print \"Voltage gain is\",AD\n", - "print \"Input resistance of inverting amplifier is\",RiFx/10**3,\"kilo ohms\"\n", - "print \"Input resistance of noninverting amplifier is\",round(RiFy/10**3),\"kilo ohms\"\n", - "print \"Output voktage is\",vo,\"V peak to peak at 100 Hz\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 3.6_a & 3.6_b" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Voltage gain is 11.0\n", - "Input resistance of first stage amplifier is 364.0 Giga ohms\n", - "Input resistance of second stage amplifier is 36.4 Giga ohms\n", - "Output voLtage is 5.5 V peak to peak at 1 KHz\n" - ] - } - ], - "source": [ - "#Example 3.6_a & 3.6_b\n", - "#For the differential amplifier of figure 3_16, R1=R3=680 ohm, Rf=R2=6.8 Kilo ohm\n", - "#vx=-1.5 V pp, vy=-2 V pp sine waves at 1 KHz and the opamp is 741 IC.\n", - "#a) What are the gain and input resistance of the amplifier?\n", - "#b) Calculate output voltage of the amplifier.(Assume vooT=0V)\n", - "\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=680 #Resistance in ohms\n", - "R2=6800 #Resistance in ohms\n", - "Rf=6800 #Feedback Resistance in Ohms\n", - "R3=680\n", - "Ri=2*10**6 #Open loop input resistance of the opamp\n", - "vx=-1.5 #input voltage in Volts\n", - "vy=-2 #input voltage in Volts\n", - "A=200000 #openloop gain\n", - "\n", - "\n", - "#calculation\n", - "#part a\n", - "AD=1+Rf/R1 #voltage gain\n", - "B=R2/(R2+R3)\n", - "RiFy=Ri*(1+A*B) #Input resistance of first stage amplifier\n", - "B=R1/(R1+Rf)\n", - "RiFx=Ri*(1+A*B) #Input resistance of second stage amplifier\n", - "#part b\n", - "vxy=vx-vy\n", - "vo=AD*vxy #output volatage\n", - "\n", - "#Result\n", - "print \"Voltage gain is\",AD\n", - "print \"Input resistance of first stage amplifier is\",round(RiFy/10**9),\"Giga ohms\"\n", - "print \"Input resistance of second stage amplifier is\",round(RiFx/10**9,1),\"Giga ohms\"\n", - "print \"Output voLtage is\",vo,\"V peak to peak at 1 KHz\"\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3_An_Op-Amp_with_Negative_Feedback.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3_An_Op-Amp_with_Negative_Feedback.ipynb new file mode 100644 index 00000000..f644f974 --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/3_An_Op-Amp_with_Negative_Feedback.ipynb @@ -0,0 +1,414 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 3: An Op-Amp with Negative Feedback" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.1" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain is 11.0\n", + "Input resistance with feedback is 36.37 Giga Ohm\n", + "Output resistance with feedback is 4.12 mOhm\n", + "Bandwidth with feedback is 90.91 KHz\n", + "Total output offset voltage with feedback is 0.715 mV\n" + ] + } + ], + "source": [ + "#Example 3.1\n", + "#Compute the following parameters of voltage-series feedback amplifier\n", + "#Af,Ri,Ro,fF,VooT\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1000 #Resistance in ohms\n", + "Rf=10000 #Feedback Resistance in Ohms \n", + "A=200000 #Open-loop voltage gain\n", + "Ri=2*10**6 #Input resistance without feedback\n", + "Ro=75 #Output resistance without feedback\n", + "fo=5 #Break frequency of an Op-amp\n", + "Vsat=13 #Saturation voltage\n", + "\n", + "#calculation\n", + "B=R1/(R1+Rf) #Gain of the feedback circuit\n", + "Af=A/(1+A*B) #Closed-loop voltage gain\n", + "RiF=Ri*(1+A*B) #Input resistance with feedback\n", + "RoF=Ro/(1+A*B) #Output resistance with feedback\n", + "fF=fo*(1+A*B) #Bandwidth with feedback\n", + "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", + "\n", + "#Result\n", + "print \"Closed-loop voltage gain is\",round(Af,2)\n", + "print \"Input resistance with feedback is\",round(RiF/10**9,2),\"Giga Ohm\"\n", + "print \"Output resistance with feedback is\",round(RoF*10**3,2),\"mOhm\"\n", + "print \"Bandwidth with feedback is\",round(fF/10**3,2),\"KHz\"\n", + "print \"Total output offset voltage with feedback is \",round(VooT*10**3,3),\"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain is 1.0\n", + "Input resistance with feedback is 400.0 Giga Ohm\n", + "Output resistance with feedback is 0.375 mOhm\n", + "Bandwidth with feedback is 1.0 MHz\n", + "Total output offset voltage with feedback is 65.0 uV\n" + ] + } + ], + "source": [ + "#Example 3.2\n", + "#Compute the following parameters of voltage follower circuit of figure 3-7\n", + "#Af,Ri,Ro,fF,VooT\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1000 #Resistance in ohms\n", + "Rf=10000 #Feedback Resistance in Ohms \n", + "A=200000 #Open-loop voltage gain\n", + "Ri=2*10**6 #Input resistance without feedback\n", + "Ro=75 #Output resistance without feedback\n", + "fo=5 #Break frequency of an Op-amp\n", + "Vsat=13 #Saturation voltage\n", + "B=1 #Gain of the feedback circuit of voltage follower\n", + "\n", + "#calculation\n", + "\n", + "Af=A/(1+A*B) #Closed-loop voltage gain\n", + "RiF=Ri*(1+A*B) #Input resistance with feedback\n", + "RoF=Ro/(1+A*B) #Output resistance with feedback\n", + "fF=fo*(1+A*B) #Bandwidth with feedback\n", + "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", + "\n", + "#Result\n", + "print \"Closed-loop voltage gain is\",round(Af)\n", + "print \"Input resistance with feedback is\",round(RiF/10**9),\"Giga Ohm\"\n", + "print \"Output resistance with feedback is\",round(RoF*10**3,3),\"mOhm\"\n", + "print \"Bandwidth with feedback is\",round(fF/10**6,2),\"MHz\"\n", + "print \"Total output offset voltage with feedback is \",round(VooT*10**6,3),\"uV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.3" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed-loop voltage gain is -10.0\n", + "Input resistance with feedback is 470.0 Ohm\n", + "Output resistance with feedback is 4.12 mOhm\n", + "Bandwidth with feedback is 100.0 kHz\n", + "Total output offset voltage with feedback is 0.715 mV\n" + ] + } + ], + "source": [ + "#Example 3.3\n", + "#Compute the following parameters of inverting amplifierof figure 3-8\n", + "#Af,Ri,Ro,fF,VooT\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=470 #Resistance in ohms\n", + "Rf=4.7*10**3 #Feedback Resistance in Ohms \n", + "A=200000 #Open-loop voltage gain\n", + "Ri=2*10**6 #Input resistance without feedback\n", + "Ro=75 #Output resistance without feedback\n", + "fo=5 #Break frequency of an Op-amp\n", + "Vsat=13 #Saturation voltage\n", + "\n", + "\n", + "#calculation\n", + "\n", + "K=Rf/(R1+Rf) #Voltage attenuation factor\n", + "B=R1/(R1+Rf) #Gain of the feedback circuit\n", + "Af=-A*K/(1+A*B) #Closed-loop voltage gain\n", + "X=Rf/(1+A)\n", + "RiF=R1+(X*Ri)/(X+Ri) #Input resistance with feedback\n", + "RoF=Ro/(1+A*B) #Output resistance with feedback\n", + "fF=fo*(1+A*B)/K #Bandwidth with feedback\n", + "VooT=Vsat/(1+A*B) #Total output offset voltage with feedback\n", + "\n", + "#Result\n", + "print \"Closed-loop voltage gain is\",round(Af)\n", + "print \"Input resistance with feedback is\",round(RiF),\"Ohm\"\n", + "print \"Output resistance with feedback is\",round(RoF*10**3,2),\"mOhm\"\n", + "print \"Bandwidth with feedback is\",round(fF/10**3),\"kHz\"\n", + "print \"Total output offset voltage with feedback is \",round(VooT*10**3,3),\"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.4" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEZCAYAAACaWyIJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xd8VGX69/FP6E0UAakqGAsigiAdlNCLCAi6iK51m/5c\nt7hr31X28Xksu7qu6/5cy7oKdkRFQSGEkKB0qdJEBRQQQaQICFKSef64ZiRCQmaSmblP+b5fr7yY\nhJlzLsg557r7DSIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiKSFFcAW10HIVKSCq4DEEmDXKCS\nw2OsAvKTeDyRpFIikKBrAmQAhxweoxcwPckxiSRNRdcBiCSoCfA74DjgSqAAaA/cA7wBVAamAmOB\nvsBdwLdATezhexFwefT7C4FWwFLgZKBPMcf5KnqMXUAN4COgKfZw/z/A68Dvge7A7GLi2wjcADw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QiOxx6kfnUiVnCogyWx\niUAfpxHFpxk/fhB9DDSIvm4Y/d7LmlF8iRrgEuDF9IVSJs04Ov7XsdUbSk0EXl10rgmwocj3G6M/\n86NmWLae5ziORDwK3IpVKf2mOTZT/TlgEfAMUMNpRInZDjyCjaTbBOzEkrLfNMCaK4j+2eAY7/W6\n64H3XAeRoKHYc/OjeN7s1UQQcR1AktTC2qp/C+xxHEu8BgNfY/0DruaZlEcloB3wRPTP7/BXbTIT\n+B1WgGiMXUNXugwoCSL4956+GziA9dX4RQ3gLuDeIj875r3s1UTwJda+FXMylt38pDLwBlalnOA4\nlkR0xRYEXAe8AvQCxjqNKDEbo18fRr8fjyUEv2gPzMYmVx7COiq7Oo2obLZweGWBRljhwm+uBQbh\nv0SciRUklmL3cVNsmP5JDmMqk0rYzLhmQBX811mcgT08H3UdSDn1wH99BADvYxMVAUbjr2XO22Aj\nzapj19EY4CanEcWnGUd3FsdG+92Btztb4ej4B2Ajt+o5iSZxzSi5j8O3ncUAA7FOs8+w4XR+0h1r\nX1+CNbEsxi4sv+mBP0cNtcFqBH4Y+lec2zg8fHQMVrv0slew/owDWN/eddiDZxr+GD56ZPzXY8PW\nv+Dw/fuEs+hKF4t/P4f//4tai48TgYiIiIiIiIiIiIiIiIiIiIiIiIiIiIgHHA/c6DoIERFxpxkl\nz+IUEZEQeBXYi8049dPyFSIikiSnohqBBIhXVx8V8TI/Ls8tUiIlAhGRkFMiEEncbuA410GIJIsS\ngUjitgGzsH4CdRaLiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIP/x//Moob4qorpwAAAAASUVO\nRK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is -10.0 V peak to peak\n" + ] + } + ], + "source": [ + "%matplotlib inline\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "from pylab import ylabel, xlabel, title, arange, plot, show\n", + "import math\n", + "import numpy as np\n", + "#Variable declaration\n", + "R1=470 #Resistance in ohms\n", + "Rf=4.7*10**3 #Feedback Resistance in Ohms \n", + "A=200000 #Open-loop voltage gain\n", + "vin=1 #input voltage in Volts\n", + "\n", + "\n", + "\n", + "#calculation\n", + "K=Rf/(R1+Rf) #Voltage attenuation factor\n", + "B=R1/(R1+Rf) #Gain of the feedback circuit\n", + "Af=-A*K/(1+A*B) #Closed-loop voltage gain\n", + "vo=Af*vin #output voltage\n", + "\n", + "x=arange(0,4*math.pi,0.1)\n", + "y=-5*np.sin(x)\n", + "plot(x,y)\n", + "ylabel('vo')\n", + "xlabel('t')\n", + "title(r'$output voltage$')\n", + "show()\n", + "#Result\n", + "print \"Output voltage is\",round(vo),\"V peak to peak\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.5_a & 3.5_b" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain is -10.0\n", + "Input resistance of inverting amplifier is 1.0 kilo ohms\n", + "Input resistance of noninverting amplifier is 11.0 kilo ohms\n", + "Output voktage is 3.0 V peak to peak at 100 Hz\n" + ] + } + ], + "source": [ + "#Example 3.5_a & 3.5_b\n", + "#For the circuit of figure 3_14,R1=R2=1 kilo ohm and the opamp is 741 IC.\n", + "#a) What are the gain and input resistance of the amplifier?\n", + "#b) Calculate output voltage vo if vx=2.7 V pp and vy=3 V pp sine waves at 100 Hz\n", + "\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1000 #Resistance in ohms\n", + "R2=1000 #Resistance in ohms\n", + "Rf=10*10**3 #Feedback Resistance in Ohms\n", + "R3=10*10**3\n", + "vx=2.7 #input voltage in Volts\n", + "vy=3 #input voltage in Volts\n", + "\n", + "\n", + "#calculation\n", + "#part a\n", + "AD=-Rf/R1 #voltage gain\n", + "RiFx=R1 #Input resistance of inverting amplifier\n", + "RiFy=R2+R3 #Input resistance of noninverting amplifier\n", + "#part b\n", + "vxy=vx-vy\n", + "vo=AD*vxy #output volatage\n", + "\n", + "#Result\n", + "print \"Voltage gain is\",AD\n", + "print \"Input resistance of inverting amplifier is\",RiFx/10**3,\"kilo ohms\"\n", + "print \"Input resistance of noninverting amplifier is\",round(RiFy/10**3),\"kilo ohms\"\n", + "print \"Output voktage is\",vo,\"V peak to peak at 100 Hz\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 3.6_a & 3.6_b" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain is 11.0\n", + "Input resistance of first stage amplifier is 364.0 Giga ohms\n", + "Input resistance of second stage amplifier is 36.4 Giga ohms\n", + "Output voLtage is 5.5 V peak to peak at 1 KHz\n" + ] + } + ], + "source": [ + "#Example 3.6_a & 3.6_b\n", + "#For the differential amplifier of figure 3_16, R1=R3=680 ohm, Rf=R2=6.8 Kilo ohm\n", + "#vx=-1.5 V pp, vy=-2 V pp sine waves at 1 KHz and the opamp is 741 IC.\n", + "#a) What are the gain and input resistance of the amplifier?\n", + "#b) Calculate output voltage of the amplifier.(Assume vooT=0V)\n", + "\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=680 #Resistance in ohms\n", + "R2=6800 #Resistance in ohms\n", + "Rf=6800 #Feedback Resistance in Ohms\n", + "R3=680\n", + "Ri=2*10**6 #Open loop input resistance of the opamp\n", + "vx=-1.5 #input voltage in Volts\n", + "vy=-2 #input voltage in Volts\n", + "A=200000 #openloop gain\n", + "\n", + "\n", + "#calculation\n", + "#part a\n", + "AD=1+Rf/R1 #voltage gain\n", + "B=R2/(R2+R3)\n", + "RiFy=Ri*(1+A*B) #Input resistance of first stage amplifier\n", + "B=R1/(R1+Rf)\n", + "RiFx=Ri*(1+A*B) #Input resistance of second stage amplifier\n", + "#part b\n", + "vxy=vx-vy\n", + "vo=AD*vxy #output volatage\n", + "\n", + "#Result\n", + "print \"Voltage gain is\",AD\n", + "print \"Input resistance of first stage amplifier is\",round(RiFy/10**9),\"Giga ohms\"\n", + "print \"Input resistance of second stage amplifier is\",round(RiFx/10**9,1),\"Giga ohms\"\n", + "print \"Output voLtage is\",vo,\"V peak to peak at 1 KHz\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4._The_Practical_Op-Amp.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4._The_Practical_Op-Amp.ipynb deleted file mode 100644 index 396becab..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/4._The_Practical_Op-Amp.ipynb +++ /dev/null @@ -1,1035 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 4: The Practical Op-Amp" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.1" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance Rb is 10.0 kilo ohms\n", - "Resistance Ra is 4.0 kilo ohms\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.1\n", - "#Design a Compensating Network for the opamp LM307.\n", - "#The opamp uses +10 V and -10 V supply voltages.\n", - "\n", - "#Variable declaration\n", - "V=10 #Supply voltage\n", - "Vio=10*10**-3 #Input offset voltage\n", - "Rc=10 #Assumption\n", - "\n", - "#calculation\n", - "Rb=(V/Vio)*Rc\n", - "Ra=Rb/2.5 #Since Rb>Rmax,let us choose Rb=10*Rmax where Rmax=Ra/4\n", - "\n", - "#Result\n", - "print \"Resistance Rb is\",Rb/10**3,\"kilo ohms\"\n", - "print \"Resistance Ra is \",Ra/10**3,\"kilo ohms\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.2" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max output offset voltage is 110.0 milli Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.2\n", - "#The opamp in the circuit of figure 4-13 is the LM307 with Vio=10 mV dc maximum.\n", - "#What is the maximum possible output offset voltage, Voo, caused by\n", - "#the input offset voltage Vio?\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3\n", - "Rf=10*10**3\n", - "Vio=10*10**-3 #Input offset voltage\n", - "\n", - "#calculation\n", - "Aoo=1+Rf/R1 #To find max value of Voo,we reduce input voltage vin to zero.\n", - "Voo=Aoo*Vio #Max output offset voltage\n", - "\n", - "#Result\n", - "print \"Max output offset voltage is\",Voo*10**3,\"milli Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.3" - ] - }, - { - "cell_type": "code", - "execution_count": 25, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Closed loop gain of non-inverting amplifier is 11.0\n" - ] - } - ], - "source": [ - "#Example 4.3\n", - "#Design an input offset voltage-compensating network for the circuit in\n", - "#figure 4-13\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3\n", - "Rf=10*10**3\n", - "Rc=10\n", - "\n", - "\n", - "#calculation\n", - "Af=1+Rf/(R1+Rc) #Closed loop gain of non-inverting amplifier\n", - "\n", - "#Result\n", - "print \"Closed loop gain of non-inverting amplifier is\",round(Af)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.4" - ] - }, - { - "cell_type": "code", - "execution_count": 26, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max output offset voltage due to Vio is 606.0 milli Volts\n", - "Max output offset voltage due to Ib is 23.5 milli Volts\n", - "Parallel combination of R1 and Rf,i.e ROM is 465.35 Ohms\n" - ] - } - ], - "source": [ - "#Example 4.4\n", - "#a) For the inverting amplifier of Figure 4-19, determine the maximum possible\n", - "#output offset voltage due to input offset voltage Vio and input bias current Ib\n", - "#The opamp is a type 741.\n", - "#b) What value of ROM is needed to reduce the effect of input bias current Ib.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=470\n", - "Rf=47*10**3\n", - "Vio=6*10**-3 #Input offset voltage\n", - "Ib=500*10**-9 #Input bias current\n", - "Vs=15 #Supply voltage\n", - "\n", - "#calculation\n", - "Voo=(1+Rf/R1)*Vio #Max output offset voltage due to input offset voltage Vio\n", - "VoIb=Rf*Ib #Max output offset voltage due to input offset voltage Ib\n", - "ROM=R1*Rf/(R1+Rf) #Parallel combination of R1 and Rf\n", - "\n", - "#Result\n", - "print \"Max output offset voltage due to Vio is\",round(Voo*10**3),\"milli Volts\"\n", - "print \"Max output offset voltage due to Ib is \",round(VoIb*10**3,1),\"milli Volts\"\n", - "print \"Parallel combination of R1 and Rf,i.e ROM is \",round(ROM,2),\"Ohms\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.5" - ] - }, - { - "cell_type": "code", - "execution_count": 27, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max output offset voltage due to Vio is 606.0 milli Volts\n", - "Max output offset voltage due to Ib is 50.0 milli Volts\n", - "Parallel combination of R1 and Rf,i.e ROM is 990.1 Ohms\n" - ] - } - ], - "source": [ - "#Example 4.5\n", - "#Repeat example 4.4 if R1 replaced by 1 kilo Ohm and Rf replaced by 100 kilo Ohm\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3\n", - "Rf=100*10**3\n", - "Vio=6*10**-3 #Input offset voltage\n", - "Ib=500*10**-9 #Input bias current\n", - "Vs=15 #Supply voltage\n", - "\n", - "#calculation\n", - "Voo=(1+Rf/R1)*Vio #Max output offset voltage due to input offset voltage Vio\n", - "VoIb=Rf*Ib #Max output offset voltage due to input offset voltage Ib\n", - "ROM=R1*Rf/(R1+Rf) #Parallel combination of R1 and Rf\n", - "\n", - "#Result\n", - "print \"Max output offset voltage due to Vio is\",round(Voo*10**3),\"milli Volts\"\n", - "print \"Max output offset voltage due to Ib is \",round(VoIb*10**3,1),\"milli Volts\"\n", - "print \"Parallel combination of R1 and Rf,i.e ROM is \",round(ROM,2),\"Ohms\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.6" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max output offset voltage due to Ib is 20.0 milli Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.6\n", - "#For the inverting amplifier in figure 4-21, determine the maximum output offset\n", - "#voltage VoIio caused by the input offset current Iio.\n", - "#The opamp is a type 741\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "Iio=200*10**-9 #Input offset current\n", - "Rf=100*10**3\n", - "\n", - "#calculation\n", - "VoIio=Rf*Iio #Max output offset voltage due to input offset voltage Ib\n", - "\n", - "#Result\n", - "print \"Max output offset voltage due to Ib is \",round(VoIio*10**3),\"milli Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.7" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Max output offset voltage due to Ib is 85.0 milli Volts\n", - "Max output offset voltage due to Iio is 83.0 milli Volts\n" - ] - } - ], - "source": [ - "#Example 4.7\n", - "#Compute the maximum possible output offset voltages in the amplifier circuits\n", - "#shown in the figure 4-22. The opamp is MC1536 with the following specifications.\n", - "#Vio=7.5 mV maximum, Iio=50 nA maximum,Ib=250 nA maximum at TA=25 degree celcius\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3\n", - "Rf=10*10**3\n", - "Vio=7.5*10**-3 #Max input offset voltage\n", - "Iio=50*10**-9 #Max input offset current\n", - "Ib=250*10**-9 #Max input bias current\n", - "\n", - "#calculation\n", - "# For figure 4.22(a)\n", - "VooT1=(1+Rf/R1)*Vio+(Rf*Ib) #Since the current generated output offset voltage is due to input bias current Ib\n", - "# For figure 4.22(b)\n", - "VooT2=(1+Rf/R1)*Vio+(Rf*Iio) #Since the current generated output offset voltage is due to input offset current Ib\n", - "\n", - "#Result\n", - "print \"Max output offset voltage due to Ib is \",VooT1*10**3,\"milli Volts\"\n", - "print \"Max output offset voltage due to Iio is \",VooT2*10**3,\"milli Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.8_a" - ] - }, - { - "cell_type": "code", - "execution_count": 29, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Error voltage is 30.6 mV\n", - "Output voltage 1 is -69.4 mV\n", - "Output voltage 2 is -130.6 mV\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.8_a\n", - "#Refer to the inverting amplifier in figure 4-24. The opamp is the LM307 with\n", - "#the following specifications.\n", - "#delta_Vio/delta_T =30 microVolt/degree celcius maximum\n", - "#delta_Iio/delta_T= 300 pA/degree celcius\n", - "#Vs=15 V, R1=1 Kilo Ohm, Rf=100 Kilo Ohm,Rl=10 Kilo Ohm\n", - "#Assume that the amplifier is nulled at 25 degree celcius. Calculate the value\n", - "#of the error voltage Ev and output voltage at 35 degree celcius if\n", - "#a) Vin= 1 mV dc\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "delta_Vio=30*10**-6 #Change in input offset voltage\n", - "delta_T=1 #Unit change in temperature\n", - "delta_Iio=(300*10**-12) #Change in input offset current\n", - "Vs=15\n", - "R1=1*10**3\n", - "Rf=100*10**3\n", - "Rl=10*10**3\n", - "Vin=1*10**-3 #Input voltage\n", - "k=25 #Amplifier is nulled at 25 deg\n", - "T=35-k #Change in temperature\n", - "\n", - "#calculation\n", - "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", - "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", - "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", - "\n", - "#Result\n", - "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", - "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", - "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.8_b" - ] - }, - { - "cell_type": "code", - "execution_count": 30, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Error voltage is 30.6 mV\n", - "Output voltage 1 is -969.4 mV\n", - "Output voltage 2 is -1030.6 mV\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.8_b\n", - "#Refer to the inverting amplifier in figure 4-24. The opamp is the LM307 with\n", - "#the following specifications.\n", - "#delta_Vio/delta_T =30 microVolt/degree celcius maximum\n", - "#delta_Iio/delta_T= 300 pA/degree celcius\n", - "#Vs=15 V, R1=1 Kilo Ohm, Rf=100 Kilo Ohm,Rl=10 Kilo Ohm\n", - "#Assume that the amplifier is nulled at 25 degree celcius. Calculate the value\n", - "#of the error voltage Ev and output voltage at 35 degree celcius if\n", - "#a) Vin= 10 mV dc\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "delta_Vio=30*10**-6 #Change in input offset voltage\n", - "delta_T=1 #Unit change in temperature\n", - "delta_Iio=(300*10**-12) #Change in input offset current\n", - "Vs=15\n", - "R1=1*10**3\n", - "Rf=100*10**3\n", - "Rl=10*10**3\n", - "Vin=10*10**-3 #Input voltage\n", - "k=25 #Amplifier is nulled at 25 deg\n", - "T=35-k #Change in temperature\n", - "\n", - "#calculation\n", - "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", - "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", - "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", - "\n", - "#Result\n", - "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", - "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", - "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.8_a" - ] - }, - { - "cell_type": "code", - "execution_count": 31, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Error voltage is 0.0306 Volts\n", - "Output voltage 1 is -0.0694 Volts\n", - "Output voltage 2 is -0.1306 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 4.8_a\n", - "#Design of Compensating Network\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "delta_Vio=30*10**-6 #Change in input offset voltage\n", - "delta_T=1 #Unit change in temperature\n", - "delta_Iio=(300*10**-12) #Change in input offset current\n", - "Vs=15\n", - "R1=1*10**3\n", - "Rf=100*10**3\n", - "Rl=10*10**3\n", - "Vin=1*10**-3 #Input voltage\n", - "k=25 #Amplifier is nulled at 25 deg\n", - "T=35-k #Change in temperature\n", - "\n", - "#calculation\n", - "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", - "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", - "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", - "\n", - "#Result\n", - "print \"Error voltage is \",Ev,\"Volts\"\n", - "print \"Output voltage 1 is \",Vo1,\"Volts\"\n", - "print \"Output voltage 2 is \",Vo2,\"Volts\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.9_a" - ] - }, - { - "cell_type": "code", - "execution_count": 34, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Error voltage is 91.8 mV\n", - "Output voltage 1 is -908.2 mV\n", - "Output voltage 2 is -1091.8 mV\n" - ] - } - ], - "source": [ - "#Example 4.9_a\n", - "#Refer again to the amplifier circuit in figure 4-24.Use the same circuit\n", - "#specifications that are given in example 4-8. Assume that the amplifier is\n", - "#nulled at 25 degree celcius. If Vin is a 10 mV peak sine wave at 1 kilo Hz\n", - "#Calculate Ev and Vo at 55 degree celcius.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "\n", - "#Variable declaration\n", - "delta_Vio=30*10**-6 #Change in input offset voltage\n", - "delta_T=1 #Unit change in temperature\n", - "delta_Iio=(300*10**-12) #Change in input offset current\n", - "Vs=15\n", - "R1=1*10**3\n", - "Rf=100*10**3\n", - "Rl=10*10**3\n", - "Vin=10*10**-3 #Input voltage\n", - "k=25 #Amplifier is nulled at 25 deg\n", - "T=55-k #Change in temperature\n", - "\n", - "#calculation\n", - "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", - "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", - "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", - "\n", - "#Result\n", - "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", - "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", - "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.9_b" - ] - }, - { - "cell_type": "code", - "execution_count": 36, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZIAAAEZCAYAAAC99aPhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmclXP/x/FXaqIS6S4pIiokS6RVNLeSdCNbkkSKEN0K\nIUuNLbKFm3L/opT2TdYSaW7qltEqKi2EqbtFsrY35/fH5xpzzpia5Szf6zrn/Xw8zuNc5zpnzvk0\nzPlc3+3zBREREREREREREREREREREREREREREREREREREZFClHIdgIjERR+gCvA98G/HsYiIpJRZ\nQBkfvEc0DgU+BRoD9R3GISnC5f/sIn5zJNZK3+P4PaLVBFgMZDmMQVJIadcBiMTRkUBvoCLQGdgL\nnAn0B6YAacBMYBRwHnAf8AtQAUsG/wCu8h6fA5wMLAFqAq0LeJ//ee/xK1Ae+AKoBZwL3AG8DZzu\nvWY61nL5DPibF2c5YACwC1gJHOX97MPAJKy7qoUX413AgUAn4D9h/+YmwD3AH9iF4ooCfg8/AMd6\n/6aXsBbMUGA50Aro4v2bTwLu9/49J3ixLQV+KtJvX0Qk4CpgV+R/8x63A9ZgX84fe+daAK+G/cxY\noKF33AY4C5gQ9n4rvePzCnifVwp4j9zX1gHe9R73A67zjm/GvqwXA5W8cx8Bh3vH5wLHhH1OdSxJ\nrAWqeucGFvBvn0xel1b+38MFWNI4GTgN+NA7fxDQFjjDiyHXKuA473gocGEBnycp7gDXAYjESUd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i5C3yFESrxbWuvrMcRzFcQCWCDdiXXTL3IZTbIOBvkCO60BKKAR8CMwHbnQcS3Ed\niy1HGAEsBIaR18INmquAsft6MhUSSch1AAJYt9Zk4HasZRIUOVjX3FHAOUC602iK50JgE9a/HdSr\n+rOwi48LgFuxK/ygKIOtkxvi3f9B5Dq5oCgLXARM2tcLUiGRrCOyX68mkeVWJP7SsDpoo4FpjmMp\nqV+Ad4EzXQdSDM2xWnTfYjXszsXq1AXJ/7z7zcAbWFd1UGR7t8+9x5P5a7XzILgAWMC+F3unhDJY\n314tLLMGbbAdLPagDraXwr68BrsOpASqYLNuAMph1aqDWhS0JcGbtVUeK9YKUAGYS+TWEkHwMXC8\nd5xBMKuTjweucx2EH1yAzRZaje13EiTjgPXATmys53q34RRbC6x7aDF50wjb7vcn/OMUrG97MTYF\nta/bcKLSkuDN2joW+90vxqaOB+1vF+A0rEWyBJhK8GZtVQB+JC+hi4iIiIiIiIiIiIiIiIiIiIiI\niIiIiIhIwQ4FbvGOq7OfEhMiIiIFqUVwKxKIiIgPjMfK0C/CtoPOTSpdsZpjM7E6WLcBd2Gr6D8F\nDvNeVxvbhno+VmrjhATFLSIiPnEMeckj/LgrtltnBaye1y9AD++5Z7EKyQCzgDrecRPvsYjvlHEd\ngEgSK7WPY7C9Tf7wbj+TV1BxKXAqlmSaEzmuUjY+YYpER4lExI2dYcc5YY9zsL/LA7CdMU9PcFwi\nxZYK+5GIuPIbxa+amtty+Q0bP7ki7PypMYpLJKaUSETiZwu2h8ZS4EnydusMEblzZ/7j3Medge7k\nlVG/OJ7BioiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIjEzf8DtLWn4UD80MsAAAAASUVORK5C\nYII=\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "\n", - "#Example 4.9_b\n", - "#Refer again to the amplifier circuit in figure 4-24.Use the same circuit\n", - "#specifications that are given in example 4-8. Assume that the amplifier is\n", - "#nulled at 25 degree celcius. If Vin is a 10 mV peak sine wave at 1 kilo Hz\n", - "#Draw the output voltage waveform at 55 degree celcius.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from pylab import ylabel, xlabel, title, arange, plot, show\n", - "import math\n", - "import numpy as np\n", - "\n", - "\n", - "\n", - "#calculation\n", - "x=arange(0,2*math.pi,0.1) #x coordinate\n", - "y=-1000*sin(x)+91.8 #y coordinate\n", - "\n", - "#result\n", - "plot(x,y)\n", - "ylabel('voltage')\n", - "xlabel('time')\n", - "title(r'$output waveform$')\n", - "show()" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 4.10_a" - ] - }, - { - "cell_type": "code", - "execution_count": 37, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Error voltage is 30.6 mV\n", - "Output voltage 1 is 131.6 mV\n", - "Output voltage 2 is 70.4 mV\n" - ] - } - ], - "source": [ - "#Example 4.10_a\n", - "#Repeat example 4-8 for the noniverting amplifier shown in figure 4-26.\n", - "#Assume that Rc<Rmax,let us choose Rb=10*Rmax where Rmax=Ra/4\n", + "\n", + "#Result\n", + "print \"Resistance Rb is\",Rb/10**3,\"kilo ohms\"\n", + "print \"Resistance Ra is \",Ra/10**3,\"kilo ohms\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.2" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max output offset voltage is 110.0 milli Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 4.2\n", + "#The opamp in the circuit of figure 4-13 is the LM307 with Vio=10 mV dc maximum.\n", + "#What is the maximum possible output offset voltage, Voo, caused by\n", + "#the input offset voltage Vio?\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3\n", + "Rf=10*10**3\n", + "Vio=10*10**-3 #Input offset voltage\n", + "\n", + "#calculation\n", + "Aoo=1+Rf/R1 #To find max value of Voo,we reduce input voltage vin to zero.\n", + "Voo=Aoo*Vio #Max output offset voltage\n", + "\n", + "#Result\n", + "print \"Max output offset voltage is\",Voo*10**3,\"milli Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.3" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Closed loop gain of non-inverting amplifier is 11.0\n" + ] + } + ], + "source": [ + "#Example 4.3\n", + "#Design an input offset voltage-compensating network for the circuit in\n", + "#figure 4-13\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3\n", + "Rf=10*10**3\n", + "Rc=10\n", + "\n", + "\n", + "#calculation\n", + "Af=1+Rf/(R1+Rc) #Closed loop gain of non-inverting amplifier\n", + "\n", + "#Result\n", + "print \"Closed loop gain of non-inverting amplifier is\",round(Af)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.4" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max output offset voltage due to Vio is 606.0 milli Volts\n", + "Max output offset voltage due to Ib is 23.5 milli Volts\n", + "Parallel combination of R1 and Rf,i.e ROM is 465.35 Ohms\n" + ] + } + ], + "source": [ + "#Example 4.4\n", + "#a) For the inverting amplifier of Figure 4-19, determine the maximum possible\n", + "#output offset voltage due to input offset voltage Vio and input bias current Ib\n", + "#The opamp is a type 741.\n", + "#b) What value of ROM is needed to reduce the effect of input bias current Ib.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=470\n", + "Rf=47*10**3\n", + "Vio=6*10**-3 #Input offset voltage\n", + "Ib=500*10**-9 #Input bias current\n", + "Vs=15 #Supply voltage\n", + "\n", + "#calculation\n", + "Voo=(1+Rf/R1)*Vio #Max output offset voltage due to input offset voltage Vio\n", + "VoIb=Rf*Ib #Max output offset voltage due to input offset voltage Ib\n", + "ROM=R1*Rf/(R1+Rf) #Parallel combination of R1 and Rf\n", + "\n", + "#Result\n", + "print \"Max output offset voltage due to Vio is\",round(Voo*10**3),\"milli Volts\"\n", + "print \"Max output offset voltage due to Ib is \",round(VoIb*10**3,1),\"milli Volts\"\n", + "print \"Parallel combination of R1 and Rf,i.e ROM is \",round(ROM,2),\"Ohms\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.5" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max output offset voltage due to Vio is 606.0 milli Volts\n", + "Max output offset voltage due to Ib is 50.0 milli Volts\n", + "Parallel combination of R1 and Rf,i.e ROM is 990.1 Ohms\n" + ] + } + ], + "source": [ + "#Example 4.5\n", + "#Repeat example 4.4 if R1 replaced by 1 kilo Ohm and Rf replaced by 100 kilo Ohm\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3\n", + "Rf=100*10**3\n", + "Vio=6*10**-3 #Input offset voltage\n", + "Ib=500*10**-9 #Input bias current\n", + "Vs=15 #Supply voltage\n", + "\n", + "#calculation\n", + "Voo=(1+Rf/R1)*Vio #Max output offset voltage due to input offset voltage Vio\n", + "VoIb=Rf*Ib #Max output offset voltage due to input offset voltage Ib\n", + "ROM=R1*Rf/(R1+Rf) #Parallel combination of R1 and Rf\n", + "\n", + "#Result\n", + "print \"Max output offset voltage due to Vio is\",round(Voo*10**3),\"milli Volts\"\n", + "print \"Max output offset voltage due to Ib is \",round(VoIb*10**3,1),\"milli Volts\"\n", + "print \"Parallel combination of R1 and Rf,i.e ROM is \",round(ROM,2),\"Ohms\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.6" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max output offset voltage due to Ib is 20.0 milli Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 4.6\n", + "#For the inverting amplifier in figure 4-21, determine the maximum output offset\n", + "#voltage VoIio caused by the input offset current Iio.\n", + "#The opamp is a type 741\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "Iio=200*10**-9 #Input offset current\n", + "Rf=100*10**3\n", + "\n", + "#calculation\n", + "VoIio=Rf*Iio #Max output offset voltage due to input offset voltage Ib\n", + "\n", + "#Result\n", + "print \"Max output offset voltage due to Ib is \",round(VoIio*10**3),\"milli Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.7" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Max output offset voltage due to Ib is 85.0 milli Volts\n", + "Max output offset voltage due to Iio is 83.0 milli Volts\n" + ] + } + ], + "source": [ + "#Example 4.7\n", + "#Compute the maximum possible output offset voltages in the amplifier circuits\n", + "#shown in the figure 4-22. The opamp is MC1536 with the following specifications.\n", + "#Vio=7.5 mV maximum, Iio=50 nA maximum,Ib=250 nA maximum at TA=25 degree celcius\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3\n", + "Rf=10*10**3\n", + "Vio=7.5*10**-3 #Max input offset voltage\n", + "Iio=50*10**-9 #Max input offset current\n", + "Ib=250*10**-9 #Max input bias current\n", + "\n", + "#calculation\n", + "# For figure 4.22(a)\n", + "VooT1=(1+Rf/R1)*Vio+(Rf*Ib) #Since the current generated output offset voltage is due to input bias current Ib\n", + "# For figure 4.22(b)\n", + "VooT2=(1+Rf/R1)*Vio+(Rf*Iio) #Since the current generated output offset voltage is due to input offset current Ib\n", + "\n", + "#Result\n", + "print \"Max output offset voltage due to Ib is \",VooT1*10**3,\"milli Volts\"\n", + "print \"Max output offset voltage due to Iio is \",VooT2*10**3,\"milli Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.8_a" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error voltage is 30.6 mV\n", + "Output voltage 1 is -69.4 mV\n", + "Output voltage 2 is -130.6 mV\n" + ] + } + ], + "source": [ + "\n", + "#Example 4.8_a\n", + "#Refer to the inverting amplifier in figure 4-24. The opamp is the LM307 with\n", + "#the following specifications.\n", + "#delta_Vio/delta_T =30 microVolt/degree celcius maximum\n", + "#delta_Iio/delta_T= 300 pA/degree celcius\n", + "#Vs=15 V, R1=1 Kilo Ohm, Rf=100 Kilo Ohm,Rl=10 Kilo Ohm\n", + "#Assume that the amplifier is nulled at 25 degree celcius. Calculate the value\n", + "#of the error voltage Ev and output voltage at 35 degree celcius if\n", + "#a) Vin= 1 mV dc\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "delta_Vio=30*10**-6 #Change in input offset voltage\n", + "delta_T=1 #Unit change in temperature\n", + "delta_Iio=(300*10**-12) #Change in input offset current\n", + "Vs=15\n", + "R1=1*10**3\n", + "Rf=100*10**3\n", + "Rl=10*10**3\n", + "Vin=1*10**-3 #Input voltage\n", + "k=25 #Amplifier is nulled at 25 deg\n", + "T=35-k #Change in temperature\n", + "\n", + "#calculation\n", + "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", + "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", + "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", + "\n", + "#Result\n", + "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", + "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", + "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.8_b" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error voltage is 30.6 mV\n", + "Output voltage 1 is -969.4 mV\n", + "Output voltage 2 is -1030.6 mV\n" + ] + } + ], + "source": [ + "\n", + "#Example 4.8_b\n", + "#Refer to the inverting amplifier in figure 4-24. The opamp is the LM307 with\n", + "#the following specifications.\n", + "#delta_Vio/delta_T =30 microVolt/degree celcius maximum\n", + "#delta_Iio/delta_T= 300 pA/degree celcius\n", + "#Vs=15 V, R1=1 Kilo Ohm, Rf=100 Kilo Ohm,Rl=10 Kilo Ohm\n", + "#Assume that the amplifier is nulled at 25 degree celcius. Calculate the value\n", + "#of the error voltage Ev and output voltage at 35 degree celcius if\n", + "#a) Vin= 10 mV dc\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "delta_Vio=30*10**-6 #Change in input offset voltage\n", + "delta_T=1 #Unit change in temperature\n", + "delta_Iio=(300*10**-12) #Change in input offset current\n", + "Vs=15\n", + "R1=1*10**3\n", + "Rf=100*10**3\n", + "Rl=10*10**3\n", + "Vin=10*10**-3 #Input voltage\n", + "k=25 #Amplifier is nulled at 25 deg\n", + "T=35-k #Change in temperature\n", + "\n", + "#calculation\n", + "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", + "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", + "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", + "\n", + "#Result\n", + "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", + "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", + "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.8_a" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error voltage is 0.0306 Volts\n", + "Output voltage 1 is -0.0694 Volts\n", + "Output voltage 2 is -0.1306 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 4.8_a\n", + "#Design of Compensating Network\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "delta_Vio=30*10**-6 #Change in input offset voltage\n", + "delta_T=1 #Unit change in temperature\n", + "delta_Iio=(300*10**-12) #Change in input offset current\n", + "Vs=15\n", + "R1=1*10**3\n", + "Rf=100*10**3\n", + "Rl=10*10**3\n", + "Vin=1*10**-3 #Input voltage\n", + "k=25 #Amplifier is nulled at 25 deg\n", + "T=35-k #Change in temperature\n", + "\n", + "#calculation\n", + "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", + "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", + "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", + "\n", + "#Result\n", + "print \"Error voltage is \",Ev,\"Volts\"\n", + "print \"Output voltage 1 is \",Vo1,\"Volts\"\n", + "print \"Output voltage 2 is \",Vo2,\"Volts\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.9_a" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error voltage is 91.8 mV\n", + "Output voltage 1 is -908.2 mV\n", + "Output voltage 2 is -1091.8 mV\n" + ] + } + ], + "source": [ + "#Example 4.9_a\n", + "#Refer again to the amplifier circuit in figure 4-24.Use the same circuit\n", + "#specifications that are given in example 4-8. Assume that the amplifier is\n", + "#nulled at 25 degree celcius. If Vin is a 10 mV peak sine wave at 1 kilo Hz\n", + "#Calculate Ev and Vo at 55 degree celcius.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "\n", + "#Variable declaration\n", + "delta_Vio=30*10**-6 #Change in input offset voltage\n", + "delta_T=1 #Unit change in temperature\n", + "delta_Iio=(300*10**-12) #Change in input offset current\n", + "Vs=15\n", + "R1=1*10**3\n", + "Rf=100*10**3\n", + "Rl=10*10**3\n", + "Vin=10*10**-3 #Input voltage\n", + "k=25 #Amplifier is nulled at 25 deg\n", + "T=55-k #Change in temperature\n", + "\n", + "#calculation\n", + "Ev=(1+Rf/R1)*(delta_Vio/delta_T)*T + Rf*(delta_Iio/delta_T)*T #Error voltage\n", + "Vo1=-(Rf/R1)*Vin+Ev #Output voltage\n", + "Vo2=-(Rf/R1)*Vin-Ev #Output voltage\n", + "\n", + "#Result\n", + "print \"Error voltage is \",round(Ev*10**3,1),\"mV\"\n", + "print \"Output voltage 1 is \",round(Vo1*10**3,1),\"mV\"\n", + "print \"Output voltage 2 is \",round(Vo2*10**3,1),\"mV\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.9_b" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZIAAAEZCAYAAAC99aPhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmclXP/x/FXaqIS6S4pIiokS6RVNLeSdCNbkkSKEN0K\nIUuNLbKFm3L/opT2TdYSaW7qltEqKi2EqbtFsrY35/fH5xpzzpia5Szf6zrn/Xw8zuNc5zpnzvk0\nzPlc3+3zBRERERE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KIiIgPjMfK0C/CtoPOTSpdsZpjM7E6WLcBd2Gr6D8F\nDvNeVxvbhno+VmrjhATFLSIiPnEMeckj/LgrtltnBaye1y9AD++5Z7EKyQCzgDrecRPvsYjvlHEd\ngEgSK7WPY7C9Tf7wbj+TV1BxKXAqlmSaEzmuUjY+YYpER4lExI2dYcc5YY9zsL/LA7CdMU9PcFwi\nxZYK+5GIuPIbxa+amtty+Q0bP7ki7PypMYpLJKaUSETiZwu2h8ZS4EnydusMEblzZ/7j3Medge7k\nlVG/OJ7BioiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIjEzf8DtLWn4UD80MsAAAAASUVORK5C\nYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "\n", + "#Example 4.9_b\n", + "#Refer again to the amplifier circuit in figure 4-24.Use the same circuit\n", + "#specifications that are given in example 4-8. Assume that the amplifier is\n", + "#nulled at 25 degree celcius. If Vin is a 10 mV peak sine wave at 1 kilo Hz\n", + "#Draw the output voltage waveform at 55 degree celcius.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from pylab import ylabel, xlabel, title, arange, plot, show\n", + "import math\n", + "import numpy as np\n", + "\n", + "\n", + "\n", + "#calculation\n", + "x=arange(0,2*math.pi,0.1) #x coordinate\n", + "y=-1000*sin(x)+91.8 #y coordinate\n", + "\n", + "#result\n", + "plot(x,y)\n", + "ylabel('voltage')\n", + "xlabel('time')\n", + "title(r'$output waveform$')\n", + "show()" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 4.10_a" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error voltage is 30.6 mV\n", + "Output voltage 1 is 131.6 mV\n", + "Output voltage 2 is 70.4 mV\n" + ] + } + ], + "source": [ + "#Example 4.10_a\n", + "#Repeat example 4-8 for the noniverting amplifier shown in figure 4-26.\n", + "#Assume that Rc<" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Maximum gain is 40 dB\n" - ] - }, - { - "data": { - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "#Example 5.1\n", - "#The 741C is connected as a noniverting amplifier.What maximum gain can be used\n", - "#that will still keep the amplifier's response flat to 10kHz.\n", - "\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, subplot, semilogx, log10, arctan2, imag, real, savefig\n", - "\n", - "#Variable declaration\n", - "f=arange(0,1000000) #frequency range\n", - "s=2.0j*pi*f\n", - "A=200000 #Gain of opamp at 0 Hz\n", - "f0=5 #first break frequency in Hz\n", - "p=2.0*pi*f0\n", - "\n", - "#Calculation\n", - "\n", - "tf=A*p/(s+p) #open loop gain\n", - "\n", - "#Magnitude plot\n", - "clf() #clear the figure\n", - "subplot(211)\n", - "title('tf=p/(s+p)')\n", - "semilogx(f,20*log10(abs(tf)))\n", - "ylabel('Mag. Ratio (dB)')\n", - "\n", - "#Phase plot\n", - "subplot(212)\n", - "semilogx(f,arctan2(imag(tf),real(tf))*180.0/pi)\n", - "ylabel('Phase (deg.)')\n", - "xlabel('Freq (Hz)')\n", - "show()\n", - "savefig('fig1.png') #savefig('fig1.eps')\n", - "\n", - "Amax=40 #from the graph\n", - "\n", - "#Result\n", - "print \"Maximum gain is\",Amax,\"dB\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 5.2" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain equation is Aol(f)=A((1+(f/fo1)*j)*(1+(f/fo2)*j)\n", - "A,the gain of the opamp at 0 Hz is 140000\n", - "First break frequency fo1 is 6 Hz\n", - "Second break frequency fo2 is 1.24 MHz\n" - ] - } - ], - "source": [ - "#Example 5.2\n", - "#Using the frequency response and phase response curves obtained in figure 5-5\n", - "#Obtain the equation for the MC1556 opamp. Also determine the approximate values\n", - "#of the break frequencies.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "phase=-157.5 #Phase shift at about 3 MHz\n", - "f=3*10**6\n", - "fo1=6 #first break frequency,from the graph\n", - "A=140000 #Gain of the opamp at 0Hz\n", - "\n", - "\n", - "#calculation\n", - "k=-math.atan(f/fo1)*180/math.pi-phase\n", - "fo2=f/math.tan(k*math.pi/180) #second break frequency\n", - "\n", - "\n", - "#result\n", - "print \"Gain equation is Aol(f)=A((1+(f/fo1)*j)*(1+(f/fo2)*j)\"\n", - "print \"A,the gain of the opamp at 0 Hz is\",A\n", - "print \"First break frequency fo1 is\",fo1,\"Hz\" \n", - "print \"Second break frequency fo2 is\",round(fo2/10**6,2),\"MHz\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 5.3" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmYFNW5x/HvsCoouKGAAg24ARpFBTWyDO4Ig6i5LtEE\n0YjRRA3Bq6C5mSGiMWrM1Wg0QYnG60riMiOCGi8NiKxXQBQhgCwicUFFEJRt+v7xVls9TfdMd3V3\nVS+/z/P0M13VtZw5Yr9T55z3HBARERERERERERERERERERERERERERGREnIe8CGwGTgmh/dpDrwH\nHJTDe8S6B/ipT/cSESlKq4FTY7ZXAhU5utcY4Hbn/XXAn3J0n0TaAmuBpj7eU0SkqKwCTnPelwE7\ngK45utcM4PvO+3eBkz1c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AElFTkSuQmCC\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "From the plot it is seen that phase angle is -90 degree\n", - "when the magnitude is o dB.Since the phase angle reaches >-180\n", - "when the magnitude is 0dB, voltage follower is stable at 0dB\n" - ] - }, - { - "data": { - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "\n", - "#Example 5.3\n", - "#Determine the stability of the voltage follower shown in figure 3-7.\n", - "#Assume that the opamp is a 741 IC\n", - "\n", - "\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, subplot, semilogx, log10, arctan2, imag, real, savefig\n", - "\n", - "#Variable declaration\n", - "f=arange(10,1000000)\n", - "s=2.0j*pi*f\n", - "A=200000\n", - "f0=5\n", - "p=2.0*pi*f0\n", - "B=1 #For voltage follower B=1\n", - "\n", - "#Calculation\n", - "tf=A*p*B/(s+p) #open loop gain\n", - "\n", - "#Magnitude plot\n", - "clf() #clear the figure\n", - "subplot(211)\n", - "title('tf=p/(s+p)')\n", - "semilogx(f,20*log10(abs(tf)))\n", - "ylabel('Mag. Ratio (dB)')\n", - "\n", - "#Phase plot\n", - "subplot(212)\n", - "semilogx(f,arctan2(imag(tf),real(tf))*180.0/pi)\n", - "ylabel('Phase (deg.)')\n", - "xlabel('Freq (Hz)')\n", - "\n", - "show()\n", - "savefig('fig1.png') #savefig('fig1.eps')\n", - "\n", - "#Result\n", - "print \"From the plot it is seen that phase angle is -90 degree\"\n", - "print \"when the magnitude is o dB.Since the phase angle reaches >-180\"\n", - "print \"when the magnitude is 0dB, voltage follower is stable at 0dB\"" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5_Frequency_response_of_an_Op-Amp.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5_Frequency_response_of_an_Op-Amp.ipynb new file mode 100644 index 00000000..f610d4f8 --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/5_Frequency_response_of_an_Op-Amp.ipynb @@ -0,0 +1,265 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 5: Frequency response of an Op-Amp" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 5.1" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecVOW9x/HP0gUVxAaouBTBgA0URKOyIioCi2iMvSdq\nYmILXgOaCMQWUXON5mqsQY3dmMCKSFEHUEMziFjwIlgodgRpgsDcP35n7pwdZmennjbf9+t1XnvO\nmTNznsfF+e15yu8BERERERERERERERERERERERERERERESkjJwFLgTXAgSW8T1PgXWD3Et7D7Xbg\nFx7dS0Qkkj4G+rmOFwPVJbrXCOAmZ/8y4J4S3SedNsCnQGMP7ykiEikfAcc4+xXAD0CnEt1rBnC4\ns/8OcFgen/Ex0D7P+08GfpLne0VEytpjwBZgvbOtA7YCa4FFOX7Wx8BwrJlpJfAw1uyUsBPwBRaU\n2jv3a+B6faDz3u+AZcCwOu7zEekDRpXzvhHAV851Z6Zcc61TLhERycNH1G6S2gp0dB2/AHxbxzbe\ndd3HwNvAHlhweA24wfX66cDjz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nPjDKde11zrUzgCeAYWk+78fYKmebXefqWpXuDySfdJZji4IBjCc8C4OJiETWZpJf0v8A9saaqXo7\nrx+HrZQH9gdWDbai2cHA20AzYAdsNcTfpPn84SnnxwJLqN0M9l3Ke1o6n5148mmKBRARX6lJSsrd\nBmo3SVUCn2BPFGAB4zjsix2gBbAPFiSeB753tvGkf3JoD7zmOo4DV1O7eWmNa78CeBy4w3XPjViw\naubcS8QXChgi21qXcnwLcH/KuSuoHSDqamZK91qma0cBn2JNYqnvifoiPxJw6sMQyWwScCH2ZAG2\nrOWu2MiloSSbpAaT/gv9E6BNlveqBo7BgpFbU6yZbGMuBRcpNj1hSLlL9yXvPjcFW2jm387xGuBs\nrLnoaawj/EtgDumfHF7DhtVmumfi+CqgHcnmsHHYE0cP1/1FRCTkRpJ+lFQFFlyaFPDZNwMnFfB+\nkaJQk5RI8dT1tPIAcFaen9kUOAL4V76FEhEREREREREREREREREREREREREREZGi+T8IwFUYmAed\ntwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Maximum gain is 40 dB\n" + ] + }, + { + "data": { + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#Example 5.1\n", + "#The 741C is connected as a noniverting amplifier.What maximum gain can be used\n", + "#that will still keep the amplifier's response flat to 10kHz.\n", + "\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, subplot, semilogx, log10, arctan2, imag, real, savefig\n", + "\n", + "#Variable declaration\n", + "f=arange(0,1000000) #frequency range\n", + "s=2.0j*pi*f\n", + "A=200000 #Gain of opamp at 0 Hz\n", + "f0=5 #first break frequency in Hz\n", + "p=2.0*pi*f0\n", + "\n", + "#Calculation\n", + "\n", + "tf=A*p/(s+p) #open loop gain\n", + "\n", + "#Magnitude plot\n", + "clf() #clear the figure\n", + "subplot(211)\n", + "title('tf=p/(s+p)')\n", + "semilogx(f,20*log10(abs(tf)))\n", + "ylabel('Mag. Ratio (dB)')\n", + "\n", + "#Phase plot\n", + "subplot(212)\n", + "semilogx(f,arctan2(imag(tf),real(tf))*180.0/pi)\n", + "ylabel('Phase (deg.)')\n", + "xlabel('Freq (Hz)')\n", + "show()\n", + "savefig('fig1.png') #savefig('fig1.eps')\n", + "\n", + "Amax=40 #from the graph\n", + "\n", + "#Result\n", + "print \"Maximum gain is\",Amax,\"dB\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 5.2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain equation is Aol(f)=A((1+(f/fo1)*j)*(1+(f/fo2)*j)\n", + "A,the gain of the opamp at 0 Hz is 140000\n", + "First break frequency fo1 is 6 Hz\n", + "Second break frequency fo2 is 1.24 MHz\n" + ] + } + ], + "source": [ + "#Example 5.2\n", + "#Using the frequency response and phase response curves obtained in figure 5-5\n", + "#Obtain the equation for the MC1556 opamp. Also determine the approximate values\n", + "#of the break frequencies.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "phase=-157.5 #Phase shift at about 3 MHz\n", + "f=3*10**6\n", + "fo1=6 #first break frequency,from the graph\n", + "A=140000 #Gain of the opamp at 0Hz\n", + "\n", + "\n", + "#calculation\n", + "k=-math.atan(f/fo1)*180/math.pi-phase\n", + "fo2=f/math.tan(k*math.pi/180) #second break frequency\n", + "\n", + "\n", + "#result\n", + "print \"Gain equation is Aol(f)=A((1+(f/fo1)*j)*(1+(f/fo2)*j)\"\n", + "print \"A,the gain of the opamp at 0 Hz is\",A\n", + "print \"First break frequency fo1 is\",fo1,\"Hz\" \n", + "print \"Second break frequency fo2 is\",round(fo2/10**6,2),\"MHz\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 5.3" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmYFNW5x/HvsCoouKGAAg24ARpFBTWyDO4Ig6i5LtEE\n0YjRRA3Bq6C5mSGiMWrM1Wg0QYnG60riMiOCGi8NiKxXQBQhgCwicUFFEJRt+v7xVls9TfdMd3V3\nVS+/z/P0M13VtZw5Yr9T55z3HBARERERERERERERERERERERERERERGREnIe8CGwGTgmh/dpDrwH\nHJTDe8S6B/ipT/cSESlKq4FTY7ZXAhU5utcY4Hbn/XXAn3J0n0TaAmuBpj7eU0SkqKwCTnPelwE7\ngK45utcM4PvO+3eBkz1cYzXQ0eP9XwMu8HiuiEhJewLYBWx1XluAWuBrYHma11oNjMaamb4AJmDN\nTlH7Ap9gQamjc79GMZ+f45y7CVgHjEpyn1UkDhjlznljgM+c434Yd8wtTrlERMSDVdRtkqoFusRs\nvwx8meRVHXPcauAd4GAsOLwJ3Bbz+cXAk877QdgTRqx/A6c471sDPespb7KAsQPrq2gK9MMC3+Ex\nx5wP/F+S64pkRaOGDxEpWoOxAJDoNSTmuAjwAPARFkxuBy6J+XwQ8Irzfh+sUz3WdqAH0Ar4ClhQ\nT5nK6vnsv7DAMR2YBFwY89lm594iOaOAIZKaD2PerwXaO+8bAacDU5ztL4G94869AGuWWg2EgZOc\n/R2p+1TTEXuSiW5fHHONL4FvYrbXxJQB554b0/qNRNKkgCHFLNLA55Oxv8wTvSbFHdsx7v16530v\n7Mv7c2f7HaAzdf/fmg8MBdoALwLPOfvXUvepZi1wdMz2MzHX2BdoEbPdCXviieoGLKz/1xXJjAKG\nFLNPqH9U1EDsL/NEr0Exx5UB12J9GPsBt+J+mZ+D9YVErQ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pPOR9jKaQDVwCXp/iIiIpJdO3G/pP8BdMKaqXo7n5+J\nrdgH9gdWDbai2fHAO8AewN7Yao+/THD90XH7HwM+oG4z2Ka4c1o7144++TTHAohIoNQkJaXuG+o2\nSYWANdgTBVjAOBP7YgdoCRyGBYnngW+dVzWJnxw6Am/GbEeAG6nbvLQ55n0Z8CTw+5h7bsOC1R7O\nvUQCoYAhsrstcdu/Bf4St+8G6gaIZM1MiT6r79gqYC3WJBZ/jhYEkkCpD0Okfq8CV2BPFmDLWrbB\nRi4NxW2SGkziL/Q1QNsU71UBnIYFo1jNsWaybekUXCTb9IQhpS7Rl3zsvtexhWZmOdubgcuw5qJn\nsY7wT4F5JH5yeBMbVlvfPaPbI4H2uM1hL2FPHD1j7i8iIgWuksSjpMqw4NIsg2vfAZyXwfkiWaEm\nKZHsSfa0Mh641OM1mwN9gBe9FkpEREREREREREREREREREREREREREREsub/AcvxV8ZEmg1JAAAA\nAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "From the plot it is seen that phase angle is -90 degree\n", + "when the magnitude is o dB.Since the phase angle reaches >-180\n", + "when the magnitude is 0dB, voltage follower is stable at 0dB\n" + ] + }, + { + "data": { + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "\n", + "#Example 5.3\n", + "#Determine the stability of the voltage follower shown in figure 3-7.\n", + "#Assume that the opamp is a 741 IC\n", + "\n", + "\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, subplot, semilogx, log10, arctan2, imag, real, savefig\n", + "\n", + "#Variable declaration\n", + "f=arange(10,1000000)\n", + "s=2.0j*pi*f\n", + "A=200000\n", + "f0=5\n", + "p=2.0*pi*f0\n", + "B=1 #For voltage follower B=1\n", + "\n", + "#Calculation\n", + "tf=A*p*B/(s+p) #open loop gain\n", + "\n", + "#Magnitude plot\n", + "clf() #clear the figure\n", + "subplot(211)\n", + "title('tf=p/(s+p)')\n", + "semilogx(f,20*log10(abs(tf)))\n", + "ylabel('Mag. Ratio (dB)')\n", + "\n", + "#Phase plot\n", + "subplot(212)\n", + "semilogx(f,arctan2(imag(tf),real(tf))*180.0/pi)\n", + "ylabel('Phase (deg.)')\n", + "xlabel('Freq (Hz)')\n", + "\n", + "show()\n", + "savefig('fig1.png') #savefig('fig1.eps')\n", + "\n", + "#Result\n", + "print \"From the plot it is seen that phase angle is -90 degree\"\n", + "print \"when the magnitude is o dB.Since the phase angle reaches >-180\"\n", + "print \"when the magnitude is 0dB, voltage follower is stable at 0dB\"" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6._General_Linear_Applications.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6._General_Linear_Applications.ipynb deleted file mode 100644 index 61c78f55..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6._General_Linear_Applications.ipynb +++ /dev/null @@ -1,876 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 6: General Linear Applications" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.1" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - " Low-freq cutoff is 10.61 kHz\n", - "\n", - " High-freq cutoff is 90.91 kHz\n", - "\n", - " Bandwidth is 80.3 kHz\n" - ] - } - ], - "source": [ - "#Example 6.1\n", - "#In the circuit of figure 6-3(a) Rin=50 Ohm,Ci=0.1 uF,R1=100 Ohm, Rf=1 KOhm\n", - "#Rl=10 kOhm and supply voltages +15, -15 V.\n", - "#Determine the bandwidth of the amplifier.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R1=100\n", - "Rf=1*10**3\n", - "Rin=50\n", - "Rl=10*10**3\n", - "Ci=0.1*10**-6 #Capacitance b/w 2 stages being coupled \n", - "RiF=R1 #ac input resistance of the second stage\n", - "Ro=Rin #ac output resistance of the 1st stage\n", - "UGB=10**6 #Unity gain bandwidth\n", - "\n", - "\n", - "#calculation\n", - "fl=1/(2*math.pi*Ci*(RiF+Ro)) #Low-freq cutoff\n", - "K=Rf/(R1+Rf)\n", - "Af=-Rf/R1 #closed loop voltage gain\n", - "fh=UGB*K/abs(Af) #High-freq cutoff\n", - "BW=fh-fl #Bandwidth\n", - "\n", - "#result\n", - "print \"\\n Low-freq cutoff is\",round(fl/10**3,2),\"kHz\"\n", - "print \"\\n High-freq cutoff is\",round(fh/10**3,2),\"kHz\"\n", - "print\"\\n Bandwidth is\",round(BW/10**3,2),\"kHz\" \n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.2" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Low-freq cutoff is 31.8 kHz\n", - "High-freq cutoff is 90.91 kHz\n", - "Bandwidth is 90.88 kHz\n", - "The ideal maximum output voltage swing is 15 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.2\n", - "#For the noninverting amplifier of figure 6-4(c), Rin=50 Ohm,Ci=C1=0.1 uF\n", - "#R1=R2=R3=100 kOhm,Rf=1 MOhm,Vcc=15 V.Determine\n", - "#a)the bandwidth of the amplifier\n", - "#b)the maximum output voltage swing\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R1=100*10**3\n", - "R2=100*10**3\n", - "R3=100*10**3\n", - "Rf=1*10**6\n", - "Rin=50\n", - "Ci=0.1*10**-6 #Capacitance b/w 2 stages being coupled\n", - "Ro=Rin #ac output resistance of the 1st stage\n", - "Vcc=15\n", - "UGB=10**6 #Unity gain bandwidth\n", - "Rif=R2*R3/(R2+R3) #since Ri*(1+A*B)>>R2 or R3\n", - "\n", - "#calculation\n", - "fl=1/(2*math.pi*Ci*(Rif+Ro)) #Low-freq cutoff\n", - "K=Rf/(R1+Rf)\n", - "Af=-Rf/R1 #closed loop voltage gain\n", - "fh=UGB*K/abs(Af) #High-freq cutoff\n", - "BW=fh-fl #Bandwidth\n", - "\n", - "#result\n", - "print \"Low-freq cutoff is\",round(fl,2),\"kHz\"\n", - "print \"High-freq cutoff is\",round(fh/10**3,2),\"kHz\"\n", - "print\"Bandwidth is\",round(BW/10**3,2),\"kHz\"\n", - "print \"The ideal maximum output voltage swing is\",Vcc,\"Volts\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.3" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Inductance is 9.9 mH\n", - "Figure of merit of the coil is 33.2\n", - "Parallel resistance of the tank circuit is 32.98 kHz\n", - "Feedback resistance is 1.03 kHz\n" - ] - } - ], - "source": [ - "#Example 6.3\n", - "#The circuit of figure 6-5(a) is to provide a gain of 10 at a peak frequency of\n", - "#16 kHz. Determine the value of all its components.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fp=16*10**3 #Peak frequency\n", - "Af=10 #Gain at peak frequency\n", - "C=0.01*10**-6 #Assume\n", - "R=30 #Assume the value of internal resistance of the inductor\n", - "R1=100 #Assume the value of internal resisrance of the coil\n", - "\n", - "#calculation\n", - "L=1/(((2*math.pi*fp)**2)*10**-8) #Simplifying fp=1/(2*pi*sqrt(L*C))\n", - "Xl=2*math.pi*fp*L #Inductive reactance\n", - "Qcoil=Xl/R #Figure of merit of the coil\n", - "Rp=((Qcoil)**2)*R #Parallel resistance of the tank circuit\n", - "Rf=-Rp/(1-(Rp/(Af*R1))) #Simplifying Af=(Rf||Rp)/R1\n", - "\n", - "\n", - "#result\n", - "print \"Inductance is\",round(L*10**3,1),\"mH\"\n", - "print \"Figure of merit of the coil is\",round(Qcoil,1)\n", - "print \"Parallel resistance of the tank circuit is\",round(Rp/10**3,2),\"kHz\"\n", - "print \"Feedback resistance is\",round(Rf/10**3,2),\"kHz\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.4" - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is -2.0 Volts\n" - ] - } - ], - "source": [ - "#Example 6.4\n", - "#In the circuit of figure 6-6 Va=1V, Vb=2V, Vc=3V, Ra=Rb=Rc=3 kOhm,Rf=1 kOhm\n", - "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", - "#determine the output voltage Vo\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Va=1 #Input voltage in Volts\n", - "Vb=2 #Input voltage in Volts\n", - "Vc=3 #Input voltage in Volts\n", - "Ra=3*10**3 #Resistance in ohms\n", - "Rb=3*10**3 #Resistance in ohms\n", - "Rc=3*10**3 #Resistance in ohms\n", - "Rf=1*10**3 #Resistance in ohms\n", - "\n", - "\n", - "#calculation\n", - "Vo=-((Rf/Ra)*Va+(Rf/Rb)*Vb+(Rf/Rc)*Vc) #Output voltage\n", - "\n", - "\n", - "#result\n", - "print \"Output voltage is\",Vo,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.5" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Voltage at non-inverting terminal is 1.0 Volts\n", - "Output voltage is 3.0 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.5\n", - "#In the circuit of figure 6-7 Va=2V, Vb=-3V, Vc=4V, R=R1=1 kOhm,Rf=2 kOhm\n", - "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", - "#determine the output voltage Vo and voltage V1 at the noninverting terminal.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Va=2 #Input voltage in volts\n", - "Vb=-3 #Input voltage in volts\n", - "Vc=4 #Input voltage in volts\n", - "R1=1*10**3 #Resistance in ohms \n", - "Rf=2*10**3 #Resistance in ohms\n", - "\n", - "\n", - "#calculation\n", - "V1=(Va+Vb+Vc)/3 #Voltage at non-inverting terminal\n", - "Vo=(1+Rf/R1)*V1 #Output voltage\n", - "\n", - "#result\n", - "print \"Voltage at non-inverting terminal is\",V1,\"Volts\"\n", - "print \"Output voltage is\",Vo,\"Volts\"\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.6" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is 4 Volts\n" - ] - } - ], - "source": [ - "#Example 6.6\n", - "#In the circuit of figure 6-9 Va=2V, Vb=3V,Vc=4V,Vc=4V,Vd=5V,R=1 kOhm\n", - "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", - "#Determine the output voltage Vo\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Va=2 #Input voltage in volts\n", - "Vb=3 #Input voltage in volts\n", - "Vc=4 #Input voltage in volts\n", - "Vd=5 #Input voltage in volts\n", - "R=1*10**3 #Resistance in ohms\n", - "\n", - "#calculation\n", - "Vo=-Va-Vb+Vc+Vd #Output voltage\n", - "\n", - "#result\n", - "print \"Output voltage is\",Vo,\"Volts\"\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.7" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage at 0 degree is 1.47 Volts\n", - "Output voltage at 100 degree is -4.41 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.7\n", - "#In the circuit of figure 6-12 R1=1 kOhm, Rf=4.7 kOhm, Ra=Rb=Rc=100 kOhm.\n", - "#Vdc=5V and Supply voltages are 15V and -15V.\n", - "#The transducer is a thermistor with the following specifications.\n", - "#Rt=100 kOhm at a reference temperature of 25 degree celcius, temperature\n", - "#coefficient of resistance =-1 kOhm/ degree celcius or 1%/degree celcius.\n", - "#Determine the output voltage Vo at o degree C and 100 degree C.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3 #Resistance in ohms\n", - "Rf=4.7*10**3 #Resistance in ohms\n", - "Ra=100*10**3 #Resistance in ohms\n", - "Rb=100*10**3 #Resistance in ohms\n", - "Rc=100*10**3 #Resistance in ohms\n", - "Vdc=5 #dc voltage in Volts\n", - "Rt=100*10**3 #Resistance of a thermistor\n", - "temp_coeff=1*10**3\n", - "R=Ra #Ra=Rb=Rc=R\n", - "\n", - "#calculation\n", - "delta_R=-temp_coeff*(0-25) #Change in resistance\n", - "Vo1=((Rf*delta_R)/(R1*4*R))*Vdc #Output voltage at degrees\n", - "delta_R=-temp_coeff*(100-25) #Change in resistance\n", - "Vo2=((Rf*delta_R)/(R1*4*R))*Vdc #Output voltage at 100 degrees\n", - "\n", - "#result\n", - "print \"Output voltage at 0 degree is\",round(Vo1,2),\"Volts\"\n", - "print \"Output voltage at 100 degree is\",round(Vo2,2),\"Volts\"\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.8" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Change in resistance is 0.1 ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.8\n", - "#The circuit of Figure 6-12 is used as an analog weight scale with the following\n", - "#specifications. The gain of the differential instrumentation amplifier = -100.\n", - "#Assume that Vdc= +10 V and the opamp supply voltages = +/- 10 V. The unstrained\n", - "#resistance of each of the four elements of the strain gage is 100 ohm Vo= 1 V.\n", - "#When a certain weight is placed on the scale platform,the output voltage Vo=1 V.\n", - "#Assuming that the output is initially 0,determine the change in the resistance\n", - "#of each strain-gage element.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "A=-100 #Gain of the differential instrumentation amplifier\n", - "Ra=100\n", - "Rb=100\n", - "Rc=100\n", - "Vdc=10\n", - "Vo=1\n", - "R=Ra #Ra=Rb=Rc=R\n", - "\n", - "#calculation\n", - "delta_R=(Vo*R)/(Vdc*abs(A)) #Change in resistance\n", - "\n", - "#result\n", - "print \"Change in resistance is\",delta_R,\"ohm\"\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.9" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Feedback resisrance is 1.8 kOhm\n", - "Gain of the differential amplifier is 38.0\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.9\n", - "#The differential input and output amplifier of figure 6-14(a) is used as a\n", - "#pre-amplifier and requires a differential output of atleast 3.7 V. Determine\n", - "#the gain of the circuit if the differential input Vin=100 mV.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Vo=3.7 #differential output voltage in Volts\n", - "Vin=100*10**-3 #differential input voltage in Volts\n", - "R1=100 #Assume\n", - "Rf=0.5*((Vo*R1)/Vin-1) #Feedback resisrance\n", - "\n", - "#calculation\n", - "A=(1+2*Rf/R1) #Gain of the differential amplifier\n", - "\n", - "#result\n", - "print \"Feedback resisrance is\",round(Rf/10**3,1),\"kOhm\"\n", - "print \"Gain of the differential amplifier is\",round(A,0)\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.10" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Minimum input voltage is 1.1 Volts\n", - "Maximum input voltage is 7.48 Volts\n" - ] - } - ], - "source": [ - "#Example 6.10\n", - "#In the figure 6-17, for the indicated values of resistors, determine the full\n", - "#scale range for the input voltage.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R1min=1*10**3\n", - "R1max=6.8*10**3\n", - "io=1*10**-3 #Meter current for full-wave rectification\n", - "\n", - "\n", - "#calculation\n", - "vin_min=1.1*R1min*io #Minimum input voltage\n", - "vin_max=1.1*R1max*io #Maximum input voltage\n", - "\n", - "#result\n", - "print \"Minimum input voltage is\",vin_min,\"Volts\"\n", - "print \"Maximum input voltage is\",vin_max,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.11" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Current through diode is 5.0 mA\n", - "Voltage drop across diode is 0.7 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.11\n", - "#The circuit of figure 6-18,when the switch is in position 1, Vin=0.5 V and\n", - "#Vo=1.2 V. Determine the current through the diode and the voltage drop across\n", - "#it.Assume that the opamp is initially nulled.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Vin=0.5 #Input voltage\n", - "Vo=1.2 #Output voltage\n", - "R1=100 \n", - "\n", - "\n", - "#calculation\n", - "Io=Vin/R1 #Current through diode\n", - "Vd=Vo-Vin #Voltage drop across diode\n", - "\n", - "#result\n", - "print \"Current through diode is\",Io*10**3,\"mA\"\n", - "print \"Voltage drop across diode is\",Vd,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.12" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Load Current is 0.5 mA\n", - "Output voltage is 2 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 6.12\n", - "#The circuit of figure 6-19,Vin=5 V, R=1 Kilo Ohm and V1=1 V. Find\n", - "#a) the load current.\n", - "#b) the output voltage Vo.\n", - "#Assume that the op-amp is initially nulled.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Vin=5 #Input voltage in Volts\n", - "V1=1 #Voltage in Volts\n", - "R1=10*10**3 #Resistance in ohms\n", - "\n", - "\n", - "#calculation\n", - "I1=Vin/R1 #Load current\n", - "Vo=2*V1 #Output voltage\n", - "\n", - "\n", - "#result\n", - "print \"Load Current is\",I1*10**3,\"mA\"\n", - "print \"Output voltage is\",Vo,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.13" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Minimum output voltage is 0.0 Volts\n", - "Maximum output voltage is 5.38 Volts\n" - ] - } - ], - "source": [ - "#Example 6.13\n", - "#The circuit of figure 6-20, Vref=2V, R1=1 kilo Ohm. Rf=2.7 kilo Ohm. Assuming\n", - "#that the opamp is initially nulled, determine the range for the output voltage\n", - "#Vo.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "#Variable declaration\n", - "R1=1*10**3 #Resistance in ohms\n", - "Rf=2.7*10**3 #Resistance in ohms\n", - "Vref=2 #Voltage in Volts\n", - "Io=0 #Since all the binary inputs D0 to D7 are logic zero\n", - "\n", - "\n", - "#calculation\n", - "Vo_min=Io*Rf #Minimum output voltage\n", - "Io=(Vref/R1)*(1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256)\n", - "Vo_max=Io*Rf #Maximum output voltage\n", - "\n", - "#result\n", - "print \"Minimum output voltage is\",Vo_min,\"Volts\"\n", - "print \"Maximum output voltage is\",round(Vo_max,2),\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.14" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Minimum output voltage at darkness is -0.15 Volts\n", - "Maximum output voltage at illumination is -10.0 Volts\n" - ] - } - ], - "source": [ - "#Example 6.14\n", - "#The circuit of figure 6-21, Vdc=5 V and Rf=3 kilo Ohm. Determine the change in\n", - "#the output voltage if the photocell is exposed to light of 0.61 lux from a dark\n", - "#condition.Assume that the opamp is initially nulled.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Rf=3*10**3\n", - "Vdc=5\n", - "Rt1=100*10**3 #Resistance at darkness in ohms\n", - "Rt2=1.5*10**3 #Resistance at Illumination in ohms\n", - "\n", - "#calculation\n", - "Vomin=-(Vdc/Rt1)*Rf #Min output voltage at darkness\n", - "Vomax=-(Vdc/Rt2)*Rf #Max output voltage at Illumination\n", - "\n", - "#result\n", - "print \"Minimum output voltage at darkness is\",Vomin,\"Volts\"\n", - "print \"Maximum output voltage at illumination is\",round(Vomax,2),\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 6.15" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAF0BJREFUeJzt3XuYXHV9x/H3QgJeuFrUoFxWEREFFVTY8ihMsJigAqX1\n2j5PC8iKN2yqQDC0TVKkgKL2qX20fZ6IeAO8UBQUqhGZ1SpgWRPdIKhE7jcNNyNYBdn+8TuTPZnM\n7s7Mzpnf75x5v55nnj1n5uyZ7/6Snd9+fr/fnAFJkiRJkiRJkiRJkiRJkiRJUsJuBV4duwipYavY\nBUhNjgMmgEeAe4BPADt28P23Aof3sJ5eny9vMrsBrAA+V9DzSG2xQ1BK3g+ck33dARgB9gRWA/Pb\nPMckMNTDmnp9PknSLHYANgJvaLr/qcCvgOOz/QuAM3OP14A7su3PAX8EHs3OdQowDDwBjAJ3AXcT\nOpyGTs/X7Ebgdbn9ecCvgZdm+0cDNwAPAlcDL8gdewshfSwGfg/8IXueNdnjxwM/BX4DrAfe3vTc\np2U/z53AidnP+dzssW2B84DbgHuBTwJPalG/JCVnMfAYrVPrBcCF2fangX/OPVZj6gUcpl5kG4YJ\nL5RfAJ4M7EfoYBpj952er9k/Ap/P7b+O0AEAPB/4bfZcWwOnAr8gdBrN514OfLbp3K8FnpNtH0oY\nRjsg219MGFLbN/u5Ps/mHcLHgK8COwHbAZ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mmrebuz/NfA2wmWR1xE+wESSJEmSJEmSJEmSJEmSJEmSJEmSJKl6/h8flz155YhO7wAAAABJRU5E\nrkJggg==\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "\n", - "\n", - "#Example 6.15\n", - "#In the figure 6-23, R1Cf=1 second, and the input is a step(dc) voltage, as\n", - "#shown in figure 6-26(a). Determine the output voltage and sketch it.\n", - "#Assume that the opamp is initially nulled.\n", - "\n", - "%matplotlib inline\n", - "import math\n", - "import scipy\n", - "from pylab import ylabel, xlabel, title, plot, show\n", - "import scipy.integrate\n", - "\n", - "\n", - "#Variable declaration\n", - "Vin=2 #Input voltage in Volts\n", - "VoO=0 #Output offset voltage\n", - "\n", - "\n", - "#calculation\n", - "\n", - "def integrnd(x) :\n", - " return 2\n", - "val1, err = scipy.integrate.quad(integrnd, 0, 1)\n", - "val2, err = scipy.integrate.quad(integrnd, 1, 2)\n", - "val3, err = scipy.integrate.quad(integrnd, 2, 3)\n", - "val4, err = scipy.integrate.quad(integrnd, 3, 4)\n", - "\n", - "a=-val1\n", - "b=a+-val2\n", - "c=b+-val3\n", - "d=c+-val4\n", - "\n", - "import matplotlib.pyplot as plt\n", - "x=[0,1,2,3,4]\n", - "y=[VoO,a,b,c,d]\n", - "plt.plot(x,y)\n", - "title('Output voltage')\n", - "xlabel('time')\n", - "ylabel('Voutput')\n", - "plt.show()\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6_General_Linear_Applications.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6_General_Linear_Applications.ipynb new file mode 100644 index 00000000..61c78f55 --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/6_General_Linear_Applications.ipynb @@ -0,0 +1,876 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 6: General Linear Applications" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.1" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + " Low-freq cutoff is 10.61 kHz\n", + "\n", + " High-freq cutoff is 90.91 kHz\n", + "\n", + " Bandwidth is 80.3 kHz\n" + ] + } + ], + "source": [ + "#Example 6.1\n", + "#In the circuit of figure 6-3(a) Rin=50 Ohm,Ci=0.1 uF,R1=100 Ohm, Rf=1 KOhm\n", + "#Rl=10 kOhm and supply voltages +15, -15 V.\n", + "#Determine the bandwidth of the amplifier.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R1=100\n", + "Rf=1*10**3\n", + "Rin=50\n", + "Rl=10*10**3\n", + "Ci=0.1*10**-6 #Capacitance b/w 2 stages being coupled \n", + "RiF=R1 #ac input resistance of the second stage\n", + "Ro=Rin #ac output resistance of the 1st stage\n", + "UGB=10**6 #Unity gain bandwidth\n", + "\n", + "\n", + "#calculation\n", + "fl=1/(2*math.pi*Ci*(RiF+Ro)) #Low-freq cutoff\n", + "K=Rf/(R1+Rf)\n", + "Af=-Rf/R1 #closed loop voltage gain\n", + "fh=UGB*K/abs(Af) #High-freq cutoff\n", + "BW=fh-fl #Bandwidth\n", + "\n", + "#result\n", + "print \"\\n Low-freq cutoff is\",round(fl/10**3,2),\"kHz\"\n", + "print \"\\n High-freq cutoff is\",round(fh/10**3,2),\"kHz\"\n", + "print\"\\n Bandwidth is\",round(BW/10**3,2),\"kHz\" \n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Low-freq cutoff is 31.8 kHz\n", + "High-freq cutoff is 90.91 kHz\n", + "Bandwidth is 90.88 kHz\n", + "The ideal maximum output voltage swing is 15 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.2\n", + "#For the noninverting amplifier of figure 6-4(c), Rin=50 Ohm,Ci=C1=0.1 uF\n", + "#R1=R2=R3=100 kOhm,Rf=1 MOhm,Vcc=15 V.Determine\n", + "#a)the bandwidth of the amplifier\n", + "#b)the maximum output voltage swing\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R1=100*10**3\n", + "R2=100*10**3\n", + "R3=100*10**3\n", + "Rf=1*10**6\n", + "Rin=50\n", + "Ci=0.1*10**-6 #Capacitance b/w 2 stages being coupled\n", + "Ro=Rin #ac output resistance of the 1st stage\n", + "Vcc=15\n", + "UGB=10**6 #Unity gain bandwidth\n", + "Rif=R2*R3/(R2+R3) #since Ri*(1+A*B)>>R2 or R3\n", + "\n", + "#calculation\n", + "fl=1/(2*math.pi*Ci*(Rif+Ro)) #Low-freq cutoff\n", + "K=Rf/(R1+Rf)\n", + "Af=-Rf/R1 #closed loop voltage gain\n", + "fh=UGB*K/abs(Af) #High-freq cutoff\n", + "BW=fh-fl #Bandwidth\n", + "\n", + "#result\n", + "print \"Low-freq cutoff is\",round(fl,2),\"kHz\"\n", + "print \"High-freq cutoff is\",round(fh/10**3,2),\"kHz\"\n", + "print\"Bandwidth is\",round(BW/10**3,2),\"kHz\"\n", + "print \"The ideal maximum output voltage swing is\",Vcc,\"Volts\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.3" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Inductance is 9.9 mH\n", + "Figure of merit of the coil is 33.2\n", + "Parallel resistance of the tank circuit is 32.98 kHz\n", + "Feedback resistance is 1.03 kHz\n" + ] + } + ], + "source": [ + "#Example 6.3\n", + "#The circuit of figure 6-5(a) is to provide a gain of 10 at a peak frequency of\n", + "#16 kHz. Determine the value of all its components.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fp=16*10**3 #Peak frequency\n", + "Af=10 #Gain at peak frequency\n", + "C=0.01*10**-6 #Assume\n", + "R=30 #Assume the value of internal resistance of the inductor\n", + "R1=100 #Assume the value of internal resisrance of the coil\n", + "\n", + "#calculation\n", + "L=1/(((2*math.pi*fp)**2)*10**-8) #Simplifying fp=1/(2*pi*sqrt(L*C))\n", + "Xl=2*math.pi*fp*L #Inductive reactance\n", + "Qcoil=Xl/R #Figure of merit of the coil\n", + "Rp=((Qcoil)**2)*R #Parallel resistance of the tank circuit\n", + "Rf=-Rp/(1-(Rp/(Af*R1))) #Simplifying Af=(Rf||Rp)/R1\n", + "\n", + "\n", + "#result\n", + "print \"Inductance is\",round(L*10**3,1),\"mH\"\n", + "print \"Figure of merit of the coil is\",round(Qcoil,1)\n", + "print \"Parallel resistance of the tank circuit is\",round(Rp/10**3,2),\"kHz\"\n", + "print \"Feedback resistance is\",round(Rf/10**3,2),\"kHz\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.4" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is -2.0 Volts\n" + ] + } + ], + "source": [ + "#Example 6.4\n", + "#In the circuit of figure 6-6 Va=1V, Vb=2V, Vc=3V, Ra=Rb=Rc=3 kOhm,Rf=1 kOhm\n", + "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", + "#determine the output voltage Vo\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Va=1 #Input voltage in Volts\n", + "Vb=2 #Input voltage in Volts\n", + "Vc=3 #Input voltage in Volts\n", + "Ra=3*10**3 #Resistance in ohms\n", + "Rb=3*10**3 #Resistance in ohms\n", + "Rc=3*10**3 #Resistance in ohms\n", + "Rf=1*10**3 #Resistance in ohms\n", + "\n", + "\n", + "#calculation\n", + "Vo=-((Rf/Ra)*Va+(Rf/Rb)*Vb+(Rf/Rc)*Vc) #Output voltage\n", + "\n", + "\n", + "#result\n", + "print \"Output voltage is\",Vo,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.5" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage at non-inverting terminal is 1.0 Volts\n", + "Output voltage is 3.0 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.5\n", + "#In the circuit of figure 6-7 Va=2V, Vb=-3V, Vc=4V, R=R1=1 kOhm,Rf=2 kOhm\n", + "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", + "#determine the output voltage Vo and voltage V1 at the noninverting terminal.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Va=2 #Input voltage in volts\n", + "Vb=-3 #Input voltage in volts\n", + "Vc=4 #Input voltage in volts\n", + "R1=1*10**3 #Resistance in ohms \n", + "Rf=2*10**3 #Resistance in ohms\n", + "\n", + "\n", + "#calculation\n", + "V1=(Va+Vb+Vc)/3 #Voltage at non-inverting terminal\n", + "Vo=(1+Rf/R1)*V1 #Output voltage\n", + "\n", + "#result\n", + "print \"Voltage at non-inverting terminal is\",V1,\"Volts\"\n", + "print \"Output voltage is\",Vo,\"Volts\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.6" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is 4 Volts\n" + ] + } + ], + "source": [ + "#Example 6.6\n", + "#In the circuit of figure 6-9 Va=2V, Vb=3V,Vc=4V,Vc=4V,Vd=5V,R=1 kOhm\n", + "#Supply voltages are 15V and -15V. Assuming that the opamp is initially nulled,\n", + "#Determine the output voltage Vo\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Va=2 #Input voltage in volts\n", + "Vb=3 #Input voltage in volts\n", + "Vc=4 #Input voltage in volts\n", + "Vd=5 #Input voltage in volts\n", + "R=1*10**3 #Resistance in ohms\n", + "\n", + "#calculation\n", + "Vo=-Va-Vb+Vc+Vd #Output voltage\n", + "\n", + "#result\n", + "print \"Output voltage is\",Vo,\"Volts\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.7" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage at 0 degree is 1.47 Volts\n", + "Output voltage at 100 degree is -4.41 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.7\n", + "#In the circuit of figure 6-12 R1=1 kOhm, Rf=4.7 kOhm, Ra=Rb=Rc=100 kOhm.\n", + "#Vdc=5V and Supply voltages are 15V and -15V.\n", + "#The transducer is a thermistor with the following specifications.\n", + "#Rt=100 kOhm at a reference temperature of 25 degree celcius, temperature\n", + "#coefficient of resistance =-1 kOhm/ degree celcius or 1%/degree celcius.\n", + "#Determine the output voltage Vo at o degree C and 100 degree C.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3 #Resistance in ohms\n", + "Rf=4.7*10**3 #Resistance in ohms\n", + "Ra=100*10**3 #Resistance in ohms\n", + "Rb=100*10**3 #Resistance in ohms\n", + "Rc=100*10**3 #Resistance in ohms\n", + "Vdc=5 #dc voltage in Volts\n", + "Rt=100*10**3 #Resistance of a thermistor\n", + "temp_coeff=1*10**3\n", + "R=Ra #Ra=Rb=Rc=R\n", + "\n", + "#calculation\n", + "delta_R=-temp_coeff*(0-25) #Change in resistance\n", + "Vo1=((Rf*delta_R)/(R1*4*R))*Vdc #Output voltage at degrees\n", + "delta_R=-temp_coeff*(100-25) #Change in resistance\n", + "Vo2=((Rf*delta_R)/(R1*4*R))*Vdc #Output voltage at 100 degrees\n", + "\n", + "#result\n", + "print \"Output voltage at 0 degree is\",round(Vo1,2),\"Volts\"\n", + "print \"Output voltage at 100 degree is\",round(Vo2,2),\"Volts\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.8" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Change in resistance is 0.1 ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.8\n", + "#The circuit of Figure 6-12 is used as an analog weight scale with the following\n", + "#specifications. The gain of the differential instrumentation amplifier = -100.\n", + "#Assume that Vdc= +10 V and the opamp supply voltages = +/- 10 V. The unstrained\n", + "#resistance of each of the four elements of the strain gage is 100 ohm Vo= 1 V.\n", + "#When a certain weight is placed on the scale platform,the output voltage Vo=1 V.\n", + "#Assuming that the output is initially 0,determine the change in the resistance\n", + "#of each strain-gage element.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "A=-100 #Gain of the differential instrumentation amplifier\n", + "Ra=100\n", + "Rb=100\n", + "Rc=100\n", + "Vdc=10\n", + "Vo=1\n", + "R=Ra #Ra=Rb=Rc=R\n", + "\n", + "#calculation\n", + "delta_R=(Vo*R)/(Vdc*abs(A)) #Change in resistance\n", + "\n", + "#result\n", + "print \"Change in resistance is\",delta_R,\"ohm\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.9" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Feedback resisrance is 1.8 kOhm\n", + "Gain of the differential amplifier is 38.0\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.9\n", + "#The differential input and output amplifier of figure 6-14(a) is used as a\n", + "#pre-amplifier and requires a differential output of atleast 3.7 V. Determine\n", + "#the gain of the circuit if the differential input Vin=100 mV.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Vo=3.7 #differential output voltage in Volts\n", + "Vin=100*10**-3 #differential input voltage in Volts\n", + "R1=100 #Assume\n", + "Rf=0.5*((Vo*R1)/Vin-1) #Feedback resisrance\n", + "\n", + "#calculation\n", + "A=(1+2*Rf/R1) #Gain of the differential amplifier\n", + "\n", + "#result\n", + "print \"Feedback resisrance is\",round(Rf/10**3,1),\"kOhm\"\n", + "print \"Gain of the differential amplifier is\",round(A,0)\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.10" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Minimum input voltage is 1.1 Volts\n", + "Maximum input voltage is 7.48 Volts\n" + ] + } + ], + "source": [ + "#Example 6.10\n", + "#In the figure 6-17, for the indicated values of resistors, determine the full\n", + "#scale range for the input voltage.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R1min=1*10**3\n", + "R1max=6.8*10**3\n", + "io=1*10**-3 #Meter current for full-wave rectification\n", + "\n", + "\n", + "#calculation\n", + "vin_min=1.1*R1min*io #Minimum input voltage\n", + "vin_max=1.1*R1max*io #Maximum input voltage\n", + "\n", + "#result\n", + "print \"Minimum input voltage is\",vin_min,\"Volts\"\n", + "print \"Maximum input voltage is\",vin_max,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.11" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current through diode is 5.0 mA\n", + "Voltage drop across diode is 0.7 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.11\n", + "#The circuit of figure 6-18,when the switch is in position 1, Vin=0.5 V and\n", + "#Vo=1.2 V. Determine the current through the diode and the voltage drop across\n", + "#it.Assume that the opamp is initially nulled.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Vin=0.5 #Input voltage\n", + "Vo=1.2 #Output voltage\n", + "R1=100 \n", + "\n", + "\n", + "#calculation\n", + "Io=Vin/R1 #Current through diode\n", + "Vd=Vo-Vin #Voltage drop across diode\n", + "\n", + "#result\n", + "print \"Current through diode is\",Io*10**3,\"mA\"\n", + "print \"Voltage drop across diode is\",Vd,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.12" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Load Current is 0.5 mA\n", + "Output voltage is 2 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 6.12\n", + "#The circuit of figure 6-19,Vin=5 V, R=1 Kilo Ohm and V1=1 V. Find\n", + "#a) the load current.\n", + "#b) the output voltage Vo.\n", + "#Assume that the op-amp is initially nulled.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Vin=5 #Input voltage in Volts\n", + "V1=1 #Voltage in Volts\n", + "R1=10*10**3 #Resistance in ohms\n", + "\n", + "\n", + "#calculation\n", + "I1=Vin/R1 #Load current\n", + "Vo=2*V1 #Output voltage\n", + "\n", + "\n", + "#result\n", + "print \"Load Current is\",I1*10**3,\"mA\"\n", + "print \"Output voltage is\",Vo,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.13" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Minimum output voltage is 0.0 Volts\n", + "Maximum output voltage is 5.38 Volts\n" + ] + } + ], + "source": [ + "#Example 6.13\n", + "#The circuit of figure 6-20, Vref=2V, R1=1 kilo Ohm. Rf=2.7 kilo Ohm. Assuming\n", + "#that the opamp is initially nulled, determine the range for the output voltage\n", + "#Vo.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "#Variable declaration\n", + "R1=1*10**3 #Resistance in ohms\n", + "Rf=2.7*10**3 #Resistance in ohms\n", + "Vref=2 #Voltage in Volts\n", + "Io=0 #Since all the binary inputs D0 to D7 are logic zero\n", + "\n", + "\n", + "#calculation\n", + "Vo_min=Io*Rf #Minimum output voltage\n", + "Io=(Vref/R1)*(1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256)\n", + "Vo_max=Io*Rf #Maximum output voltage\n", + "\n", + "#result\n", + "print \"Minimum output voltage is\",Vo_min,\"Volts\"\n", + "print \"Maximum output voltage is\",round(Vo_max,2),\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.14" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Minimum output voltage at darkness is -0.15 Volts\n", + "Maximum output voltage at illumination is -10.0 Volts\n" + ] + } + ], + "source": [ + "#Example 6.14\n", + "#The circuit of figure 6-21, Vdc=5 V and Rf=3 kilo Ohm. Determine the change in\n", + "#the output voltage if the photocell is exposed to light of 0.61 lux from a dark\n", + "#condition.Assume that the opamp is initially nulled.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Rf=3*10**3\n", + "Vdc=5\n", + "Rt1=100*10**3 #Resistance at darkness in ohms\n", + "Rt2=1.5*10**3 #Resistance at Illumination in ohms\n", + "\n", + "#calculation\n", + "Vomin=-(Vdc/Rt1)*Rf #Min output voltage at darkness\n", + "Vomax=-(Vdc/Rt2)*Rf #Max output voltage at Illumination\n", + "\n", + "#result\n", + "print \"Minimum output voltage at darkness is\",Vomin,\"Volts\"\n", + "print \"Maximum output voltage at illumination is\",round(Vomax,2),\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 6.15" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAF0BJREFUeJzt3XuYXHV9x/H3QgJeuFrUoFxWEREFFVTY8ihMsJigAqX1\n2j5PC8iKN2yqQDC0TVKkgKL2qX20fZ6IeAO8UBQUqhGZ1SpgWRPdIKhE7jcNNyNYBdn+8TuTPZnM\n7s7Mzpnf75x5v55nnj1n5uyZ7/6Snd9+fr/fnAFJkiRJkiRJkiRJkiRJkiRJUsJuBV4duwipYavY\nBUhNjgMmgEeAe4BPADt28P23A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jB2eQJpt\nOVudKbTlKwlDB2uZWl54JOm1Zzt1ptCe+xOGWtYCPyGMfUN67dlOnSm0Z95hTK0ySq09JUmSJEmS\nJEmSJEmSJEmSJKnKdgTemW3vCnw5Yi2SpIiGmfmzJCRJA+JiwjVq1gBfYqpzOI5wjaBvEa4d8x7g\nFMI7Wq8Bds6O24twbZvrCZc82KdPdUuSemxPpjqB/PZxhE+deirhWjcPA2/PHvso4QqjAFcBz8u2\nD872pVKYF7sAKTFD02xDuC7+I9ntIaYuJjYBvJjQWRzC5vMO2xRTptR7dghS+36f234it/8E4Xdp\nK8KnwCX/ubVSKyl8HoKUko3A9h1+TyNJbCTML7whd/+Le1SXVDg7BGlz9wPfJwwDfYipT5eaZPNP\nmmrebuz/NfA2wmWR1xE+wESSJEmSJEmSJEmSJEmSJEmSJEmSJKl6/h8flz155YhO7wAAAABJRU5E\nrkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "\n", + "\n", + "#Example 6.15\n", + "#In the figure 6-23, R1Cf=1 second, and the input is a step(dc) voltage, as\n", + "#shown in figure 6-26(a). Determine the output voltage and sketch it.\n", + "#Assume that the opamp is initially nulled.\n", + "\n", + "%matplotlib inline\n", + "import math\n", + "import scipy\n", + "from pylab import ylabel, xlabel, title, plot, show\n", + "import scipy.integrate\n", + "\n", + "\n", + "#Variable declaration\n", + "Vin=2 #Input voltage in Volts\n", + "VoO=0 #Output offset voltage\n", + "\n", + "\n", + "#calculation\n", + "\n", + "def integrnd(x) :\n", + " return 2\n", + "val1, err = scipy.integrate.quad(integrnd, 0, 1)\n", + "val2, err = scipy.integrate.quad(integrnd, 1, 2)\n", + "val3, err = scipy.integrate.quad(integrnd, 2, 3)\n", + "val4, err = scipy.integrate.quad(integrnd, 3, 4)\n", + "\n", + "a=-val1\n", + "b=a+-val2\n", + "c=b+-val3\n", + "d=c+-val4\n", + "\n", + "import matplotlib.pyplot as plt\n", + "x=[0,1,2,3,4]\n", + "y=[VoO,a,b,c,d]\n", + "plt.plot(x,y)\n", + "title('Output voltage')\n", + "xlabel('time')\n", + "ylabel('Voutput')\n", + "plt.show()\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7._Active_Filters_and_Oscillators.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7._Active_Filters_and_Oscillators.ipynb deleted file mode 100644 index 514c377a..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7._Active_Filters_and_Oscillators.ipynb +++ /dev/null @@ -1,1545 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 7: Active Filters and Oscillators" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.1" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 15.9 kOhms\n", - "Use 20 kohm POT as R\n", - "Resistance R1 is 10.0 kilo ohms\n", - "Resistance Rf is 10.0 kilo ohms\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.1\n", - "#Design a low pass filter at a cutoff frequency of 1kHz\n", - "#with a passband gain of 2\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fh=1*10**3 #Cut-off frequency\n", - "C=0.01*10**-6 #Assumption\n", - "R1=10*10**3 #Assumption\n", - "Rf=R1 #Since passband gain is 2,R1 and Rf must be equal\n", - "\n", - "\n", - "#calculation\n", - "R=1/(2*math.pi*fh*C)\n", - "\n", - "#result\n", - "print \"Resistance R is\",round(R/10**3,1),\"kOhms\"\n", - "print \"Use 20 kohm POT as R\"\n", - "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohms\"\n", - "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohms\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.2" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "New Resistance Rnew is 9937.5 Ohms\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.2\n", - "#Using the frequency scaling technique,convert the 1 kHz cutoff frequency of the\n", - "#lowpass filter of example 7-1 to a cutoff frequency of 1.6 kHz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fc0=1*10**3 #Original cut-off frequency\n", - "fc1=1.6*10**3 #New cut-off frequency\n", - "R=15.9*10**3 #Original resistance value\n", - "\n", - "#calculation\n", - "k=fc0/fc1\n", - "Rnew=R*k\n", - "\n", - "#result\n", - "print \"New Resistance Rnew is\",Rnew,\"Ohms\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.3" - ] - }, - { - "cell_type": "code", - "execution_count": 27, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xu8VXP+x/HXUShKN6JQJ5ViUkqSkdokd9PkltAdhcEM\noTDTiXEbufxyHyJFURq5RzgbuUSp5NKoo1CaiKR00eX8/vis3V5nt885++zbd1/ez8djP85aa6+9\n1md/H7U++/v9rvX9goiI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wEPYjWQkG+ARpV9Ic9tWHPV5IjtjbzjiCSVEobkktJyli8HOgLzgc+BId72UUBXrNO7F/Ctt30z\ncCPWQf46ZX+9nwcMxvoMPgP+VMn5X8Oax2ZjfRBX+faZiPWbvO7bNtOLNdoxQ+uhbVcBPQj3b4QS\nWycsGYqISIqEOs3TZRiWtPwOAF5O8LhBrIYkklTqwxAJS2e7/3NAM+DYiO1fY01fzbHbc6uqLTaj\nmp7BEBEREREREREREREREREREREREREREUm+/wf1RctJBunj/AAAAABJRU5ErkJggg==\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain magnitude av1 at f1 2.0\n", - "Gain magnitude av2 at f2 1.99\n", - "Gain magnitude av2 at f2 1.96\n", - "Gain magnitude av2 at f2 1.64\n", - "Gain magnitude av2 at f2 1.41\n", - "Gain magnitude av2 at f2 0.63\n", - "Gain magnitude av2 at f2 0.28\n", - "Gain magnitude av2 at f2 0.2\n", - "Gain magnitude av2 at f2 0.07\n", - "Gain magnitude av2 at f2 0.02\n" - ] - } - ], - "source": [ - "#Example 7.3\n", - "#Plot the frequency response of the lowpass filter of example 7.1\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", - "import math\n", - "\n", - "#Variable declaration\n", - "Af=2 #Passband gain of the filter\n", - "fh=1000 #Cut-off frequency\n", - "\n", - "f1=10\n", - "f2=100\n", - "f3=200\n", - "f4=700\n", - "f5=1000\n", - "f6=3000\n", - "f7=7000\n", - "f8=10000\n", - "f9=30000\n", - "f10=100000\n", - "\n", - "\n", - "#calculation\n", - "av1=Af/math.sqrt(1+(f1/fh)**2)\n", - "av2=Af/math.sqrt(1+(f2/fh)**2)\n", - "av3=Af/math.sqrt(1+(f3/fh)**2)\n", - "av4=Af/math.sqrt(1+(f4/fh)**2)\n", - "av5=Af/math.sqrt(1+(f5/fh)**2)\n", - "av6=Af/math.sqrt(1+(f6/fh)**2)\n", - "av7=Af/math.sqrt(1+(f7/fh)**2)\n", - "av8=Af/math.sqrt(1+(f8/fh)**2)\n", - "av9=Af/math.sqrt(1+(f9/fh)**2)\n", - "av10=Af/math.sqrt(1+(f10/fh)**2)\n", - "\n", - "#Magnitude plot\n", - "f=arange(0,100000)\n", - "s=2.0j*pi*f\n", - "p=2.0*pi*fh\n", - "A=Af*p/(s+p)\n", - "\n", - "clf() #clear the figure\n", - "plot()\n", - "title('frequency response')\n", - "semilogx(f,20*log10(abs(A)))\n", - "ylabel('Voltage gain(dB)')\n", - "xlabel('frequency(Hz)')\n", - "show()\n", - "\n", - "\n", - "#result\n", - "print \"Gain magnitude av1 at f1\",round(av1,2)\n", - "print \"Gain magnitude av2 at f2\",round(av2,2)\n", - "print \"Gain magnitude av2 at f2\",round(av3,2)\n", - "print \"Gain magnitude av2 at f2\",round(av4,2)\n", - "print \"Gain magnitude av2 at f2\",round(av5,2)\n", - "print \"Gain magnitude av2 at f2\",round(av6,2)\n", - "print \"Gain magnitude av2 at f2\",round(av7,2)\n", - "print \"Gain magnitude av2 at f2\",round(av8,2)\n", - "print \"Gain magnitude av2 at f2\",round(av9,2)\n", - "print \"Gain magnitude av2 at f2\",round(av10,2)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.4.a" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 33.86 kOhm\n", - "Resistance R3 is 33.86 kOhm\n", - "Resistance Rf is 15.82 kOhm\n", - " Use 20 kohm POT as Rf\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.4.a\n", - "#Design a second order low-pass filter at a high cutoff frequency of 1 kHz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fh=1*10**3 # Cut-off frequency\n", - "C2=0.0047*10**-6 # Assumption\n", - "C3=C2\n", - "R1=27*10**3 # Assumption\n", - "\n", - "#calculation\n", - "R2=1/(2*math.pi*fh*C2)\n", - "R3=R2\n", - "Rf=0.586*R1\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3,2),\"kOhm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kOhm\"\n", - "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n", - "print \" Use 20 kohm POT as Rf\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.4.b" - ] - }, - { - "cell_type": "code", - "execution_count": 28, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8VfP+x/HXqUSIBjSpTmkgVKRwKVsZwnXjGpLhFn6F\nriG6aPDT6cqVoSvDL9Igoch4M0VimxVpQl2VTpwGJaW6LhrO74/P2u11dnufs885e+/vHt7Px2M/\n9lprr73W53xlffb3+13r+wURERERERERERERERERERERERERERERSaHWwHxgM3Ct41hERCSNTQBG\nuQ5CRCqmiusAJKc0Bb4u5fNc+veY571ERCTCO8B24L9Yk1RLYBLwCPA6sBXoCjQEXgDWAd8C1/mO\nUcP7zk/AV8DNwPe+z3cCzX3rk4A7fOt/xJrENgIfAUf6PisEBgILgE3AM8Cevs97eN/9GVgGnA5c\nAHwe8XfeBLwcvQgIAiO8c//ixXooMBPYACzxjhlypvd3bgaKvPgAAt76YGA9sAK42Pe9/YHJWBkW\nAkMJJ6c+wIfAvVg5fgt09323D7DcO+e3Ece9Akv4PwEzgCYx/k4RkUp7F7vohEzCLs7He+s1gLnA\nbUA1oBl28TrN+3wk8B5QCzgY+BL4zne8yITxOPB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_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain magnitude av1 at f1 1.59\n", - "Gain magnitude av2 at f2 1.59\n", - "Gain magnitude av2 at f2 1.58\n", - "Gain magnitude av2 at f2 1.42\n", - "Gain magnitude av2 at f2 1.12\n", - "Gain magnitude av2 at f2 0.18\n", - "Gain magnitude av2 at f2 0.03\n", - "Gain magnitude av2 at f2 0.02\n", - "Gain magnitude av2 at f2 1.76 *10^-3\n", - "Gain magnitude av2 at f2 0.16 *10^-3\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.4.b\n", - "#Draw the frequency response of the network in example 7.4.a\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", - "import math\n", - "\n", - "#Variable declaration\n", - "Af=1.586 #Passband gain of the filter\n", - "fh=1000 #Cut-off frequency\n", - "\n", - "f1=10\n", - "f2=100\n", - "f3=200\n", - "f4=700\n", - "f5=1000\n", - "f6=3000\n", - "f7=7000\n", - "f8=10000\n", - "f9=30000\n", - "f10=100000\n", - "\n", - "\n", - "#calculation\n", - "av1=Af/math.sqrt(1+(f1/fh)**4)\n", - "av2=Af/math.sqrt(1+(f2/fh)**4)\n", - "av3=Af/math.sqrt(1+(f3/fh)**4)\n", - "av4=Af/math.sqrt(1+(f4/fh)**4)\n", - "av5=Af/math.sqrt(1+(f5/fh)**4)\n", - "av6=Af/math.sqrt(1+(f6/fh)**4)\n", - "av7=Af/math.sqrt(1+(f7/fh)**4)\n", - "av8=Af/math.sqrt(1+(f8/fh)**4)\n", - "av9=Af/math.sqrt(1+(f9/fh)**4)\n", - "av10=Af/math.sqrt(1+(f10/fh)**4)\n", - "\n", - "#Magnitude plot\n", - "f=arange(0,100000) #frequency range\n", - "s=2.0j*pi*f**2\n", - "p=2.0*pi*fh**2\n", - "A=Af*p/(s+p)\n", - "\n", - "clf() #clear the figure\n", - "plot()\n", - "title('frequency response')\n", - "semilogx(f,20*log10(abs(A)))\n", - "ylabel('Voltage gain(dB)')\n", - "xlabel('frequency(Hz)')\n", - "show()\n", - "\n", - "\n", - "#result\n", - "print \"Gain magnitude av1 at f1\",round(av1,2)\n", - "print \"Gain magnitude av2 at f2\",round(av2,2)\n", - "print \"Gain magnitude av2 at f2\",round(av3,2)\n", - "print \"Gain magnitude av2 at f2\",round(av4,2)\n", - "print \"Gain magnitude av2 at f2\",round(av5,2)\n", - "print \"Gain magnitude av2 at f2\",round(av6,2)\n", - "print \"Gain magnitude av2 at f2\",round(av7,2)\n", - "print \"Gain magnitude av2 at f2\",round(av8,2)\n", - "print \"Gain magnitude av2 at f2\",round(av9*10**3,2),\"*10^-3\"\n", - "print \"Gain magnitude av2 at f2\",round(av10*10**3,2),\"*10^-3\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.5.a" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 15.92 kOhm\n", - "Resistance R1 is 10.0 kOhm\n", - "Resistance Rf is 10.0 kOhm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.5.a\n", - "#Design a high pass filter at a cutoff frequency of 1 kHz with a passband gain\n", - "#of 2.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fh=1*10**3 #Cut-off frequency\n", - "C=0.01*10**-6 #Assumption\n", - "Af=2\n", - "\n", - "#calculation\n", - "R=1/(2*math.pi*fh*C)\n", - "R1=10*10**3\n", - "Rf=R1 #since passband gain is 2\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R is\",round(R/10**3,2),\"kOhm\"\n", - "print \"Resistance R1 is\",round(R1/10**3,2),\"kOhm\"\n", - "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.5.b" - ] - }, - { - "cell_type": "code", - "execution_count": 29, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFW6x/HvAAbEAIhgQkbMcTHhXRFt1zUHVl0WFXPA\nqy7cVVyzl8HAioqo66ooYBYFFWRVMDIqKiIIShBFBBQF9BpICgzQ94+3eqem7emp6emq09X9+zxP\nP12pq96egnr7nFPnFIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhIhHYBpgJLgb86jkVERArYEGCA6yBE\nJDeNXAcgJaUdMDPL+lL691jmvUREJM2bwBrgV6xKaifgEeB+4GVgOfAHYGvgOeA74Eugp28fTb3P\n/AjMAP4OfO1bvw5o75t/BLjJN388ViX2E/AusJdv3TygN/Ax8DPwNLCBb30X77NLgC+Ao4CuwKS0\n73k5MCrzn4BK4Gbv2L94se4KvAb8AMzy9plyrPc9lwILvPgAEt78NcD3wFzgdN/nNgMew/6G84Dr\nqE5O5wDjgduxv+OXwNG+z54DzPGO+WXafs/DEv6PwFhgu1q+p4hIg43DLjopj2AX5997802BycD1\nQBNge+zidaS3/lbgLaA5sC0wHfjKt7/0hPEwcKM3vQ+wGDgAu3iehV1o1/PWzwUmAFsCLbAL40Xe\nuo5enId781tj7THrYxf6XX3HnAKcVMv3r8Qu4LthpanNsIR3tjffAUsAqf0tBDp505t53wEsYVQB\nd3jxH4Il3J299Y8BI4FmWKnuM6r/7ucAq4Hzvb/DfwPfeOuaYQlxJ2++DbC7N90FmO1970ZYEnq3\nlu8pItJg47ALVcrDWNJIORCYn/aZa4Ch3rQ/eQBcSPYShj9h3O+bTpkFdPam03+l9/c+AzCI2tte\n7sdKDQB7YL++16tl23FAhW++G/B22jaDgP/1pucDPYBN07ZJYAmjqW/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n91uJlZBE8kptGCLVoqz3HwlsD/whbfmXWNXXDtjtufW1N/ZENfXBEBERERERERERERERERERERER\nEREREcm//wehVjGzCowgOwAAAABJRU5ErkJggg==\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain magnitude av1 at f1 0.2\n", - "Gain magnitude av2 at f2 0.39\n", - "Gain magnitude av2 at f2 0.74\n", - "Gain magnitude av2 at f2 1.15\n", - "Gain magnitude av2 at f2 1.41\n", - "Gain magnitude av2 at f2 1.9\n", - "Gain magnitude av2 at f2 1.98\n", - "Gain magnitude av2 at f2 1.99\n", - "Gain magnitude av2 at f2 2.0\n", - "Gain magnitude av2 at f2 2.0\n" - ] - } - ], - "source": [ - "#Example 7.5.b\n", - "#The circuit of figure 6-17,for the indicated value of resistors\n", - "#determine the full scale range for the input voltage.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", - "import math\n", - "\n", - "#Variable declaration\n", - "Af=2 #Passband gain of the filter\n", - "fl=1000 #Cut-off frequency\n", - "\n", - "f1=100\n", - "f2=200\n", - "f3=400\n", - "f4=700\n", - "f5=1000\n", - "f6=3000\n", - "f7=7000\n", - "f8=10000\n", - "f9=30000\n", - "f10=100000\n", - "\n", - "\n", - "#calculation\n", - "av1=(Af*(f1/fl))/math.sqrt(1+(f1/fl)**2)\n", - "av2=(Af*(f2/fl))/math.sqrt(1+(f2/fl)**2)\n", - "av3=(Af*(f3/fl))/math.sqrt(1+(f3/fl)**2)\n", - "av4=(Af*(f4/fl))/math.sqrt(1+(f4/fl)**2)\n", - "av5=(Af*(f5/fl))/math.sqrt(1+(f5/fl)**2)\n", - "av6=(Af*(f6/fl))/math.sqrt(1+(f6/fl)**2)\n", - "av7=(Af*(f7/fl))/math.sqrt(1+(f7/fl)**2)\n", - "av8=(Af*(f8/fl))/math.sqrt(1+(f8/fl)**2)\n", - "av9=(Af*(f9/fl))/math.sqrt(1+(f9/fl)**2)\n", - "av10=(Af*(f10/fl))/math.sqrt(1+(f10/fl)**2)\n", - "\n", - "#Magnitude plot\n", - "f=arange(100,100000)\n", - "s=2.0j*pi*f\n", - "p=2.0*pi*fl\n", - "A=Af*s/(s+p)\n", - "\n", - "clf() #clear the figure\n", - "plot()\n", - "title('frequency response')\n", - "semilogx(f,20*log10(abs(A)))\n", - "ylabel('Voltage gain(dB)')\n", - "xlabel('frequency(Hz)')\n", - "show()\n", - "\n", - "\n", - "#result\n", - "print \"Gain magnitude av1 at f1\",round(av1,2)\n", - "print \"Gain magnitude av2 at f2\",round(av2,2)\n", - "print \"Gain magnitude av2 at f2\",round(av3,2)\n", - "print \"Gain magnitude av2 at f2\",round(av4,2)\n", - "print \"Gain magnitude av2 at f2\",round(av5,2)\n", - "print \"Gain magnitude av2 at f2\",round(av6,2)\n", - "print \"Gain magnitude av2 at f2\",round(av7,2)\n", - "print \"Gain magnitude av2 at f2\",round(av8,2)\n", - "print \"Gain magnitude av2 at f2\",round(av9,2)\n", - "print \"Gain magnitude av2 at f2\",round(av10,2)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.6.a" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Lower cutoff frequency fl is 1.0 kHz\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.6.a\n", - "#Determine the low cutoff frequency fl of the filter shown in figure 7-8(a)\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R2=33*10**3 #Resistance in ohms\n", - "R3=R2\n", - "C2=0.0047*10**-6 #Capacitance in Farads\n", - "C3=C2\n", - "\n", - "#calculation\n", - "fl=1/(2*math.pi*math.sqrt(R2*R3*C2*C3))\n", - "\n", - "\n", - "#result\n", - "print \"Lower cutoff frequency fl is\",round(fl/10**3,0),\"kHz\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.6.b" - ] - }, - { - "cell_type": "code", - "execution_count": 30, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmcE/X9x/EXoHgAKlbrgcAiVW4VD5QqmGq1XoWfVYut\ntShKUSteqFz+YNGqeIFWK/UWT6T6E8UL1iOCJ6BAAQU5BDm8UEEQ0IXN74/PxJ0N2exsNsl3kryf\nj0cemZlMZj5h2HzyPeb7BRERERERERERERERERERERERERERERHJoTbALOB74GLHsYiISIg9ANzm\nOggRSU991wFIUWkJfJTi9WL6/1jPe4iISILXgc3ARqxKaj/gYWAM8BKwHjgG2Bt4BvgKWAL09x1j\nB+893wLzgKuA5b7XK4B9fesPA9f51k/BqsS+A94GOvleWwoMAGYDa4BxwHa+13t6710LLAJ+B5wB\nzEj4nFcAE5L/ExAF/uGde4MXa1ugDPgGmO8dM+4k73N+D6zw4gOIeOuDga+BT4E/+963M/AI9m+4\nFBhKZXI6B3gLuAX7d1wCnOB77znAYu+cSxKO2wdL+N8CrwAtqvmcIiJ19gb2pRP3MPbl3NVb3wH4\nALgG2AZohX15He+9PhJ4E9gF2AeYC3zmO15iwngIuNZb7gx8CRyGfXn+Ffui3dZ7/VPgPWBPoCn2\nxdjPe62LF+ex3vreWHtMQ+yLvq3vnDOBU6v5/FHsC7wdVpraGUt4vb31g7AEED/e58CR3vLO3mcA\nSxjlwK1e/N2xhLu/9/ojwLNAI6xUt4DKf/dzgJ+A87x/hwuAld5rjbCEuJ+3vgfQ3lvuCSz0Pnd9\nLAm9Xc3nFBGpszewL6q4h7CkEXc4sCzhPYOBB71lf/IA6E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jjx9fi2AcBxVLZvxBNbFywZ\niohIlsQbzXPlSixp+e0LvFjH40axEpJIRqkNQ6RSLuv9nwVaAcckbF+CVX21xrrn1tYB2IxqugdD\nREREREREREREREREREREREREREREJPP+H8OfoWq60nwKAAAAAElFTkSuQmCC\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain magnitude av1 at f1 0.0159\n", - "Gain magnitude av2 at f2 0.0634\n", - "Gain magnitude av2 at f2 0.2506\n", - "Gain magnitude av2 at f2 0.6979\n", - "Gain magnitude av2 at f2 1.1215\n", - "Gain magnitude av2 at f2 1.5763\n", - "Gain magnitude av2 at f2 1.5857\n", - "Gain magnitude av2 at f2 1.5859\n", - "Gain magnitude av2 at f2 1.586\n", - "Gain magnitude av2 at f2 1.586\n" - ] - } - ], - "source": [ - "#Example 7.6.b\n", - "#Draw the frequency response plot of the filter in example 7.6.a\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", - "import math\n", - "\n", - "#Variable declaration\n", - "Af=1.586 #Passband gain of the filter\n", - "fl=1000 #Cut-off frequency\n", - "\n", - "f1=100\n", - "f2=200\n", - "f3=400\n", - "f4=700\n", - "f5=1000\n", - "f6=3000\n", - "f7=7000\n", - "f8=10000\n", - "f9=30000\n", - "f10=100000\n", - "\n", - "\n", - "#calculation\n", - "av1=Af/math.sqrt(1+(fl/f1)**4)\n", - "av2=Af/math.sqrt(1+(fl/f2)**4)\n", - "av3=Af/math.sqrt(1+(fl/f3)**4)\n", - "av4=Af/math.sqrt(1+(fl/f4)**4)\n", - "av5=Af/math.sqrt(1+(fl/f5)**4)\n", - "av6=Af/math.sqrt(1+(fl/f6)**4)\n", - "av7=Af/math.sqrt(1+(fl/f7)**4)\n", - "av8=Af/math.sqrt(1+(fl/f8)**4)\n", - "av9=Af/math.sqrt(1+(fl/f9)**4)\n", - "av10=Af/math.sqrt(1+(fl/f10)**4)\n", - "\n", - "#Magnitude plot\n", - "f=arange(100,100000)\n", - "s=2.0j*pi*fl**2\n", - "p=2.0*pi*f**2\n", - "A=Af*p/(s+p)\n", - "\n", - "\n", - "clf() #clear the figure\n", - "plot()\n", - "title('frequency response')\n", - "semilogx(f,20*log10(abs(A)))\n", - "ylabel('Voltage gain(dB)')\n", - "xlabel('frequency(Hz)')\n", - "show()\n", - "\n", - "\n", - "#result\n", - "print \"Gain magnitude av1 at f1\",round(av1,4)\n", - "print \"Gain magnitude av2 at f2\",round(av2,4)\n", - "print \"Gain magnitude av2 at f2\",round(av3,4)\n", - "print \"Gain magnitude av2 at f2\",round(av4,4)\n", - "print \"Gain magnitude av2 at f2\",round(av5,4)\n", - "print \"Gain magnitude av2 at f2\",round(av6,4)\n", - "print \"Gain magnitude av2 at f2\",round(av7,4)\n", - "print \"Gain magnitude av2 at f2\",round(av8,4)\n", - "print \"Gain magnitude av2 at f2\",round(av9,4)\n", - "print \"Gain magnitude av2 at f2\",round(av10,4)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.7.a" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R1 is 10.0 kOhm\n", - "Resistance R is 15.92 kOhm\n", - "Bandpass Gain Af is 4\n", - "Resistance Rf is 10.0 kOhm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.7.a\n", - "#Design a wide band pass filter with fl=200 Hz, fh=1 kHz and passband gain=4.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fl=200 #Low cutoff freq in Hz\n", - "fh=1*10**3 #High cutoff freq in Hz\n", - "C=0.05*10**-6\n", - "\n", - "#calculation\n", - "R=1/(2*math.pi*fl*C)\n", - "R1=10*10**3\n", - "Rf=R1 #Since passband gain is 2,R1 and Rf must be equal\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R1 is\",round(R1/10**3,2),\"kOhm\"\n", - "print \"Resistance R is\",round(R/10**3,2),\"kOhm\"\n", - "print \"Bandpass Gain Af is 4\"\n", - "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.7.b" - ] - }, - { - "cell_type": "code", - "execution_count": 31, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeUVOUZx/Hv0qtAxEIRFhTFFkUMFkRGASVRpKmgWEkA\naxRLFBuLmkQl9oLECAakCCIoKF1GpIiCgIqiVGmWKFUBKTv547kjs+uW2dk78075fc6Zwy0zc5+5\nZ5ln3g4iIiIiIiIiIiIiIiIiIiIiIiIiIiIikkDHAEuA7cBNjmMREZEk9jLwuOsgRCQ2ZVwHIBml\nIfB5Eecz6e8xy3uIiEg+7wL7gF1YlVQT4BVgEPAO8BNwLlAXGAd8D6wGbo54j8reazYDy4A7gfUR\n53OBxhH7rwAPRexfiFWJbQHmAidGnFsL3A4sBbYCo4GKEec7eq/dBqwEzgcuARbm+5y3ARMKvgUE\ngYe9a+/0Ym0KTAd+BJZ77xn2J+9zbgc2ePEBBLz9fsD/gDXA5RGvqwEMw+7hWuBeDiSna4A5wEDs\nPq4G2ke89hpglXfN1fnetyeW8DcDU4AGhXxOEZFSm4V96YS9gn05n+HtVwYWAfcB5YBG2JfXed75\nR4D3gJpAfeAzYF3E++VPGEOBB73tZsB3wB+wL8+rsC/a8t75NcAHwOFALeyLsY93roUXZxtvvy7W\nHlMB+6JvGnHNxUDnQj5/EPsCPxYrTdXAEt7V3v7JWAIIv983QEt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++7wEne9j+AG73tycApEddeiyWbcGJYwW8TSnMsGVX3\n9s+JiEXEN6qSknQT/gX+Fjb5GkBb8s7MWR2r9mmFLVEJ9mt9SzHvWxUrnYyNOF7B+zcETPC2vwAO\ni7j2EGC3t7/V+/c/2KRwtwGXAn/wjjcEvol4/xDWbrHZ22+NlXjCamOlqUuAHd6xb7CkJ+IrJQxJ\nVzsjtrOw0sCeAp6XVcCxfeStrq2MfXGXwZJKs0KuGfn+4fcNFXKNcVhJ6F2sOioyWRX0/ILOlcVm\nJh3AgVJT+DlagEh8pzYMyQTTsB5UYeGqoNnA5d72H4Fa3vZ3WKPx77BqrQu94zuwaq+Lvf0srFdS\nUaZjJYnK3n74Gr8AU4FBWAkk7GugTnEfyPMIVl01Jt/xOt77iPhKCUPSSaiQ7b8CpwJLgWVAH+/4\nAOBsrNG7M7DOO74XeBBrIJ9G3l/vPYA/Y20GnwEXFXP9qVj12EKsDeL2iOeMxNpNpkUcm+PFWtB7\nhvfDx24H2nGgfSOc2FpgyVBEROIk3GieKHdgSStSY+DtUr5vECshifhKbRgiBySy3n880Ag4N9/x\n1VjV15FY99yS+j22oprGYIiIiIiIiIiIiIiIiIiIiIiIiIiIiIj47/8rMuTJbEhORQAAAABJRU5E\nrkJggg==\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Gain magnitude av1 at f1 0.1997\n", - "Gain magnitude av2 at f2 0.5931\n", - "Gain magnitude av2 at f2 1.78\n", - "Gain magnitude av2 at f2 2.7735\n", - "Gain magnitude av2 at f2 3.3333\n", - "Gain magnitude av2 at f2 3.1508\n", - "Gain magnitude av2 at f2 2.7735\n", - "Gain magnitude av2 at f2 1.78\n", - "Gain magnitude av2 at f2 0.5655\n", - "Gain magnitude av2 at f2 0.3979\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.7.b\n", - "#Draw the frequency response plot for the filter in example 7.7.a\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "\n", - "from scipy import pi\n", - "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", - "import math\n", - "\n", - "#Variable declaration\n", - "Af=4 #Passband gain of the filter\n", - "fl=200 #Cut-off frequency\n", - "fh=1000 #Higher Cut-off frequency\n", - "\n", - "f1=10\n", - "f2=30\n", - "f3=100\n", - "f4=200\n", - "f5=447.2\n", - "f6=700\n", - "f7=1000\n", - "f8=2000\n", - "f9=7000\n", - "f10=10000\n", - "\n", - "\n", - "#calculation\n", - "av1=(Af*(f1/fl))/math.sqrt((1+(f1/fl)**2)*(1+(f1/fh)**2))\n", - "av2=(Af*(f2/fl))/math.sqrt((1+(f2/fl)**2)*(1+(f2/fh)**2))\n", - "av3=(Af*(f3/fl))/math.sqrt((1+(f3/fl)**2)*(1+(f3/fh)**2))\n", - "av4=(Af*(f4/fl))/math.sqrt((1+(f4/fl)**2)*(1+(f4/fh)**2))\n", - "av5=(Af*(f5/fl))/math.sqrt((1+(f5/fl)**2)*(1+(f5/fh)**2))\n", - "av6=(Af*(f6/fl))/math.sqrt((1+(f6/fl)**2)*(1+(f6/fh)**2))\n", - "av7=(Af*(f7/fl))/math.sqrt((1+(f7/fl)**2)*(1+(f7/fh)**2))\n", - "av8=(Af*(f8/fl))/math.sqrt((1+(f8/fl)**2)*(1+(f8/fh)**2))\n", - "av9=(Af*(f9/fl))/math.sqrt((1+(f9/fl)**2)*(1+(f9/fh)**2))\n", - "av10=(Af*(f10/fl))/math.sqrt((1+(f10/fl)**2)*(1+(f10/fh)**2))\n", - "\n", - "#Magnitude plot\n", - "f=arange(10,100000)\n", - "s=2.0j*pi*f\n", - "p1=2.0*pi*fl\n", - "p2=2.0*pi*fh\n", - "A=(Af*s)*p2/((s+p1)*(s+p2))\n", - "\n", - "clf() #clear the figure\n", - "plot()\n", - "title('frequency response')\n", - "semilogx(f,20*log10(abs(A)))\n", - "ylabel('Voltage gain(dB)')\n", - "xlabel('frequency(Hz)')\n", - "show()\n", - "\n", - "\n", - "#result\n", - "print \"Gain magnitude av1 at f1\",round(av1,4)\n", - "print \"Gain magnitude av2 at f2\",round(av2,4)\n", - "print \"Gain magnitude av2 at f2\",round(av3,4)\n", - "print \"Gain magnitude av2 at f2\",round(av4,4)\n", - "print \"Gain magnitude av2 at f2\",round(av5,4)\n", - "print \"Gain magnitude av2 at f2\",round(av6,4)\n", - "print \"Gain magnitude av2 at f2\",round(av7,4)\n", - "print \"Gain magnitude av2 at f2\",round(av8,4)\n", - "print \"Gain magnitude av2 at f2\",round(av9,4)\n", - "print \"Gain magnitude av2 at f2\",round(av10,4)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.7.c" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Center frequency fc is 447.21 Hz\n", - "Quality factor Q is 0.56\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.7.c\n", - "#Calculate the value of Q for the filter.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fh=1*10**3 #Higher cut-off frequency\n", - "fl=200 #Lower cut-off frequency\n", - "\n", - "\n", - "#calculation\n", - "fc=math.sqrt(fl*fh) #Center frequency\n", - "Q=fc/(fh-fl) #Quality factor\n", - "\n", - "\n", - "\n", - "#result\n", - "print \"Center frequency fc is\",round(fc,2),\"Hz\"\n", - "print \"Quality factor Q is\",round(Q,2)\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.8.a" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R1 is 4.77 kilo ohm\n", - "Resistance R2 is 5.97 kilo ohm\n", - "Resistance R3 is 95.49 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.8.a\n", - "#Design the bandpass filter shown in figure 7-13(a) so that fc=1 kHz, Q=3 and\n", - "#Af=10.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fc=1*10**3 #Center frequency\n", - "Q=3 #Quality factor\n", - "Af=10 #Passband gain\n", - "C1=0.01*10**-6 #Assumption\n", - "\n", - "#calculation\n", - "C2=C1\n", - "R1=Q/(2*math.pi*fc*C1*Af)\n", - "R2=Q/(2*math.pi*fc*C1*(2*Q**2-Af))\n", - "R3=Q/(math.pi*fc*C1)\n", - "\n", - "#result\n", - "print \"Resistance R1 is\",round(R1/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.8.b" - ] - }, - { - "cell_type": "code", - "execution_count": 32, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R1 is 2.65 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.8.b\n", - "#Change the centre frequency of example 7.8.a to 1.5 kHz, keeping Af and\n", - "#bandwidth constant.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fc0=1*10**3 #Original center frequency\n", - "fc1=1.5*10**3 #New center frequency\n", - "R2=5.97*10**3 #Original resistance\n", - "\n", - "\n", - "\n", - "#calculation\n", - "R2new=R2*(fc0/fc1)**2\n", - "\n", - "#result\n", - "print \"Resistance R1 is\",round(R2new/10**3,2),\"kilo ohm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.9" - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 of highpass section is 15.92 kilo ohm\n", - "Resistance R of lowpass section is 15.92 kilo ohm\n", - "Bandpass Gain Af is 4\n", - "Resistance R1 is 10.0 kilo ohm\n", - "Resistance Rf is 10.0 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.9\n", - "#Design a wide-band reject filter having fh=200 Hz and fl=1 KHz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fh=200 # Low cutoff freq in Hz\n", - "fl=1*10**3 # High cutoff freq in Hz\n", - "C2=0.01*10**-6 # Assumption\n", - "R2=1/(2*math.pi*fl*C2)\n", - "C=0.05*10**-6\n", - "R1=10*10**3 # Assumption\n", - "Rf=R1 # Since passband gain is 2,R1 and Rf must be equal\n", - "Af=4 # Since gain of high pass and lowpass is set to 2\n", - "\n", - "\n", - "#calculation\n", - "R2=1/(2*math.pi*fl*C2)\n", - "R=1/(2*math.pi*fh*C)\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 of highpass section is\",round(R2/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R of lowpass section is\",round(R/10**3,2),\"kilo ohm\"\n", - "print \"Bandpass Gain Af is\",Af\n", - "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohm\"\n", - "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.10" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 39.01 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.10\n", - "#Design a 60 Hz active notch filter.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fn=60 #Notch-out frequency in Hz\n", - "C=0.068*10**-6 #Assumption\n", - "\n", - "\n", - "\n", - "#calculation\n", - "R=1/(2*math.pi*fn*C)\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R is\",round(R/10**3,2),\"kilo ohm\"\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.11" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Phase angle phi is -90.0 degree\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.11\n", - "#For the all-pass filter of figure 7-16(a),find the phase angle phi if the\n", - "#frequency of vin is 1 kHz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "f=1*10**3 #Input frequency in Hz\n", - "C=0.01*10**-6 \n", - "R=15.9*10**3 #Resistance in ohms\n", - "\n", - "\n", - "\n", - "#calculation\n", - "phi=math.atan(2*math.pi*f*C*R) #Phase angle\n", - "phi1=-2*phi*180/math.pi\n", - "\n", - "#result\n", - "print \"Phase angle phi is\",round(phi1),\"degree\"\n", - "\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.12" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 3.3 kilo ohm\n", - "Use Resistance R as 3.3 kohm\n", - "Resistance Rf is 957.0 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.12\n", - "#Design the phase shift oscillator of figure 7-18 so that fo=200 Hz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fo=200 # Frequency of oscillation\n", - "C=0.1*10**-6 # Assumption\n", - "R=3.3*10**3\n", - "\n", - "#calculation\n", - "R=0.065/(fo*C)\n", - "R=3.3*10**3 #Using rounded value\n", - "R1=10*R # To prevent loading of amplifier\n", - "Rf=29*R1\n", - "\n", - "#result\n", - "print \"Resistance R is\",round(R/10**3,1),\"kilo ohm\"\n", - "print \"Use Resistance R as 3.3 kohm\"\n", - "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.13" - ] - }, - { - "cell_type": "code", - "execution_count": 21, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 3.3 kilo ohm\n", - "Resistance Rf is 24.0 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.13\n", - "#Design the wein bridge oscillator of figure 7-19 so that fo=965 Hz.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fo=965 # Frequency of oscillation\n", - "C=0.05*10**-6 # Assumption\n", - "R1=12*10**3 # Assumption\n", - "\n", - "#calculation\n", - "R=0.159/(fo*C)\n", - "Rf=2*R1\n", - "\n", - "#result\n", - "print \"Resistance R is\",round(R/10**3,1),\"kilo ohm\"\n", - "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.14" - ] - }, - { - "cell_type": "code", - "execution_count": 22, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance values R1,R2,R3 is 100.0 kilo ohm\n", - "Capacitance values C1,C2,C3 is 0.01 uF\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.14\n", - "#Design the quadrature oscillator of figure 7-20 so that fo=159 Hz.\n", - "#The opamp is the 1458/772.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fo=159 # Frequency of oscillation\n", - "C=0.01*10**-6 # Assumption\n", - "\n", - "#calculation\n", - "R=0.159/(fo*C)\n", - "\n", - "#result\n", - "print \"Resistance values R1,R2,R3 is\",round(R/10**3,1),\"kilo ohm\"\n", - "print \"Capacitance values C1,C2,C3 is\",round(C*10**6,2),\"uF\"\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.15" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 11.6 kilo ohm\n", - "Resistance R is 10.0 ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.15\n", - "#Design the square wave oscillator of figure 7-21(a) so that fo=1 kHz.\n", - "#The opamp is 741 with dc supply voltages = 15, -15 V.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fo=1*10**3 # Frequency of oscillation\n", - "C=0.05*10**-6 # Assumption\n", - "R1=10*10**3 # Assumption\n", - "\n", - "#calculation\n", - "R=1/(2*fo*C)\n", - "R2=1.16*R1\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3,1),\"kilo ohm\"\n", - "print \"Resistance R is\",round(R/10**3),\"ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.16" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 10.0 kilo ohm\n", - "Resistance R1 is 10.0 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.16\n", - "#Design the triangular wave generator of figure 7-23 so that fo=2 kHz and\n", - "#Vo(pp)=7V. The opamp is a 1458/772 and supply voltages =15,-15 V.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "fo=2*10**3 # Frequency of oscillation\n", - "vo=7 #Output voltage\n", - "Vsat=14 #Saturation voltage for opamp 1458\n", - "R3=40*10**3 #Assumption\n", - "C1=0.05*10**-6 #Assumption\n", - "\n", - "\n", - "#calculation\n", - "R2=(vo*R3)/(2*Vsat)\n", - "k=R3/(4*fo*R2) #Using fo=R3/(4*R1*C1*R2),k=R1*C1;\n", - "R1=k/C1\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3),\"kilo ohm\"\n", - "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohm\"\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 7.17" - ] - }, - { - "cell_type": "code", - "execution_count": 25, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Terminal voltage Vc is 10.43 volts\n", - "Approximate Nominal freq fo is 26.09 kHz\n", - "Approximate Nominal freq fo1 is 41.67 kHz\n", - "Approximate Nominal freq fo2 is 8.33 kHz\n", - "Change in output freq delta_fo is 33.33 kHz\n" - ] - } - ], - "source": [ - "\n", - "#Example 7.17\n", - "#In the circuit of figure 7-25(c), V=12 V, R2=1.5 Kilo ohm, R1=R3=10 Kilo ohm\n", - "#and C1=0.001 uF.\n", - "#a)Determine the nominal frequency of all the output waveforms.\n", - "#b)Compute the modulation in the output frequencies if Vc is varied between 9.5 V\n", - "#and 11.5 V.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R2=1.5*10**3\n", - "R1=10*10**3\n", - "R3=10*10**3\n", - "C1=0.001*10**-6\n", - "V=12 #Supply voltage\n", - "Vc1=9.5\n", - "Vc2=11.5\n", - "\n", - "#calculation\n", - "Vc=R3*V/(R2+R3) #Using voltage divider rule\n", - "fo=2*(V-Vc)/(V*R1*C1)\n", - "fo1=2*(V-Vc1)/(V*R1*C1)\n", - "fo2=2*(V-Vc2)/(V*R1*C1)\n", - "delta_fo=fo1-fo2 #Change in output freq\n", - "\n", - "\n", - "#result\n", - "print \"Terminal voltage Vc is\",round(Vc,2),\"volts\"\n", - "print \"Approximate Nominal freq fo is\",round(fo/10**3,2),\"kHz\"\n", - "print \"Approximate Nominal freq fo1 is\",round(fo1/10**3,2),\"kHz\"\n", - "print \"Approximate Nominal freq fo2 is\",round(fo2/10**3,2),\"kHz\"\n", - "print \"Change in output freq delta_fo is\",round(delta_fo/10**3,2),\"kHz\"\n", - "\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7_Active_Filters_and_Oscillators.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7_Active_Filters_and_Oscillators.ipynb new file mode 100644 index 00000000..514c377a --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/7_Active_Filters_and_Oscillators.ipynb @@ -0,0 +1,1545 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 7: Active Filters and Oscillators" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.1" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 15.9 kOhms\n", + "Use 20 kohm POT as R\n", + "Resistance R1 is 10.0 kilo ohms\n", + "Resistance Rf is 10.0 kilo ohms\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.1\n", + "#Design a low pass filter at a cutoff frequency of 1kHz\n", + "#with a passband gain of 2\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fh=1*10**3 #Cut-off frequency\n", + "C=0.01*10**-6 #Assumption\n", + "R1=10*10**3 #Assumption\n", + "Rf=R1 #Since passband gain is 2,R1 and Rf must be equal\n", + "\n", + "\n", + "#calculation\n", + "R=1/(2*math.pi*fh*C)\n", + "\n", + "#result\n", + "print \"Resistance R is\",round(R/10**3,1),\"kOhms\"\n", + "print \"Use 20 kohm POT as R\"\n", + "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohms\"\n", + "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohms\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "New Resistance Rnew is 9937.5 Ohms\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.2\n", + "#Using the frequency scaling technique,convert the 1 kHz cutoff frequency of the\n", + "#lowpass filter of example 7-1 to a cutoff frequency of 1.6 kHz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fc0=1*10**3 #Original cut-off frequency\n", + "fc1=1.6*10**3 #New cut-off frequency\n", + "R=15.9*10**3 #Original resistance value\n", + "\n", + "#calculation\n", + "k=fc0/fc1\n", + "Rnew=R*k\n", + "\n", + "#result\n", + "print \"New Resistance Rnew is\",Rnew,\"Ohms\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.3" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGg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\nPooNCnclcDZwuLe9KbDCd/xSrN/iZ2+9G1bjCdkTq02dBaz1tq3Akp5IUilhSK5a71suwGoDv0fZ\nryDKti2Uba6tiV24d8KSSvtyzuk/fui4peWcYypWE3oLa47yJ6to+0d7rxo2MukowrWm0D6aPEiS\nTn0Ykg9ex+6gCgk1Bb0DnOstnwTU85ZXYp3G9bFmrVO97WuxZq8zvfUC7K6kiszAahI1vfXQOTYB\nrwEPYjWQkG+ARpV9Ic9tWHPV5IjtjbzjiCSVEobkktJyli8HOgLzgc+BId72UUBXrNO7F/Ctt30z\ncCPWQf46ZX+9nwcMxvoMPgP+VMn5X8Oax2ZjfRBX+faZiPWbvO7bNtOLNdoxQ+uhbVcBPQj3b4QS\nWycsGYqISIqEOs3TZRiWtPwOAF5O8LhBrIYkklTqwxAJS2e7/3NAM+DYiO1fY01fzbHbc6uqLTaj\nmp7BEBEREREREREREREREREREREREREREUm+/wf1RctJBunj/AAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain magnitude av1 at f1 2.0\n", + "Gain magnitude av2 at f2 1.99\n", + "Gain magnitude av2 at f2 1.96\n", + "Gain magnitude av2 at f2 1.64\n", + "Gain magnitude av2 at f2 1.41\n", + "Gain magnitude av2 at f2 0.63\n", + "Gain magnitude av2 at f2 0.28\n", + "Gain magnitude av2 at f2 0.2\n", + "Gain magnitude av2 at f2 0.07\n", + "Gain magnitude av2 at f2 0.02\n" + ] + } + ], + "source": [ + "#Example 7.3\n", + "#Plot the frequency response of the lowpass filter of example 7.1\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", + "import math\n", + "\n", + "#Variable declaration\n", + "Af=2 #Passband gain of the filter\n", + "fh=1000 #Cut-off frequency\n", + "\n", + "f1=10\n", + "f2=100\n", + "f3=200\n", + "f4=700\n", + "f5=1000\n", + "f6=3000\n", + "f7=7000\n", + "f8=10000\n", + "f9=30000\n", + "f10=100000\n", + "\n", + "\n", + "#calculation\n", + "av1=Af/math.sqrt(1+(f1/fh)**2)\n", + "av2=Af/math.sqrt(1+(f2/fh)**2)\n", + "av3=Af/math.sqrt(1+(f3/fh)**2)\n", + "av4=Af/math.sqrt(1+(f4/fh)**2)\n", + "av5=Af/math.sqrt(1+(f5/fh)**2)\n", + "av6=Af/math.sqrt(1+(f6/fh)**2)\n", + "av7=Af/math.sqrt(1+(f7/fh)**2)\n", + "av8=Af/math.sqrt(1+(f8/fh)**2)\n", + "av9=Af/math.sqrt(1+(f9/fh)**2)\n", + "av10=Af/math.sqrt(1+(f10/fh)**2)\n", + "\n", + "#Magnitude plot\n", + "f=arange(0,100000)\n", + "s=2.0j*pi*f\n", + "p=2.0*pi*fh\n", + "A=Af*p/(s+p)\n", + "\n", + "clf() #clear the figure\n", + "plot()\n", + "title('frequency response')\n", + "semilogx(f,20*log10(abs(A)))\n", + "ylabel('Voltage gain(dB)')\n", + "xlabel('frequency(Hz)')\n", + "show()\n", + "\n", + "\n", + "#result\n", + "print \"Gain magnitude av1 at f1\",round(av1,2)\n", + "print \"Gain magnitude av2 at f2\",round(av2,2)\n", + "print \"Gain magnitude av2 at f2\",round(av3,2)\n", + "print \"Gain magnitude av2 at f2\",round(av4,2)\n", + "print \"Gain magnitude av2 at f2\",round(av5,2)\n", + "print \"Gain magnitude av2 at f2\",round(av6,2)\n", + "print \"Gain magnitude av2 at f2\",round(av7,2)\n", + "print \"Gain magnitude av2 at f2\",round(av8,2)\n", + "print \"Gain magnitude av2 at f2\",round(av9,2)\n", + "print \"Gain magnitude av2 at f2\",round(av10,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.4.a" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 33.86 kOhm\n", + "Resistance R3 is 33.86 kOhm\n", + "Resistance Rf is 15.82 kOhm\n", + " Use 20 kohm POT as Rf\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.4.a\n", + "#Design a second order low-pass filter at a high cutoff frequency of 1 kHz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fh=1*10**3 # Cut-off frequency\n", + "C2=0.0047*10**-6 # Assumption\n", + "C3=C2\n", + "R1=27*10**3 # Assumption\n", + "\n", + "#calculation\n", + "R2=1/(2*math.pi*fh*C2)\n", + "R3=R2\n", + "Rf=0.586*R1\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3,2),\"kOhm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kOhm\"\n", + "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n", + "print \" Use 20 kohm POT as Rf\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.4.b" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xm8VfP+x/HXqUSIBjSpTmkgVKRwKVsZwnXjGpLhFn6F\nriG6aPDT6cqVoSvDL9Igoch4M0VimxVpQl2VTpwGJaW6LhrO74/P2u11dnufs885e+/vHt7Px2M/\n9lprr73W53xlffb3+13r+wURERERERERERERERERERERERERERERSaHWwHxgM3Ct41hERCSNTQBG\nuQ5CRCqmiusAJKc0Bb4u5fNc+veY571ERCTCO8B24L9Yk1RLYBLwCPA6sBXoCjQEXgDWAd8C1/mO\nUcP7zk/AV8DNwPe+z3cCzX3rk4A7fOt/xJr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+Vcf43seaxz7E+iIG+faZg/SZv+bZ96MUa7Zih9dC2gcCphPs3\nQomtE5YMRUQkSUKd5qnyNyxp+TUHXqvkcYNYDUkkodSHIRKWynb/l4BmQNeI7d9iTV+HYLfnlldb\nbEY1PYMhIiIiIiIiIiIiIiIiIiIiIiIiIiIiknj/Dz31z/sMKjRSAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain magnitude av1 at f1 1.59\n", + "Gain magnitude av2 at f2 1.59\n", + "Gain magnitude av2 at f2 1.58\n", + "Gain magnitude av2 at f2 1.42\n", + "Gain magnitude av2 at f2 1.12\n", + "Gain magnitude av2 at f2 0.18\n", + "Gain magnitude av2 at f2 0.03\n", + "Gain magnitude av2 at f2 0.02\n", + "Gain magnitude av2 at f2 1.76 *10^-3\n", + "Gain magnitude av2 at f2 0.16 *10^-3\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.4.b\n", + "#Draw the frequency response of the network in example 7.4.a\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", + "import math\n", + "\n", + "#Variable declaration\n", + "Af=1.586 #Passband gain of the filter\n", + "fh=1000 #Cut-off frequency\n", + "\n", + "f1=10\n", + "f2=100\n", + "f3=200\n", + "f4=700\n", + "f5=1000\n", + "f6=3000\n", + "f7=7000\n", + "f8=10000\n", + "f9=30000\n", + "f10=100000\n", + "\n", + "\n", + "#calculation\n", + "av1=Af/math.sqrt(1+(f1/fh)**4)\n", + "av2=Af/math.sqrt(1+(f2/fh)**4)\n", + "av3=Af/math.sqrt(1+(f3/fh)**4)\n", + "av4=Af/math.sqrt(1+(f4/fh)**4)\n", + "av5=Af/math.sqrt(1+(f5/fh)**4)\n", + "av6=Af/math.sqrt(1+(f6/fh)**4)\n", + "av7=Af/math.sqrt(1+(f7/fh)**4)\n", + "av8=Af/math.sqrt(1+(f8/fh)**4)\n", + "av9=Af/math.sqrt(1+(f9/fh)**4)\n", + "av10=Af/math.sqrt(1+(f10/fh)**4)\n", + "\n", + "#Magnitude plot\n", + "f=arange(0,100000) #frequency range\n", + "s=2.0j*pi*f**2\n", + "p=2.0*pi*fh**2\n", + "A=Af*p/(s+p)\n", + "\n", + "clf() #clear the figure\n", + "plot()\n", + "title('frequency response')\n", + "semilogx(f,20*log10(abs(A)))\n", + "ylabel('Voltage gain(dB)')\n", + "xlabel('frequency(Hz)')\n", + "show()\n", + "\n", + "\n", + "#result\n", + "print \"Gain magnitude av1 at f1\",round(av1,2)\n", + "print \"Gain magnitude av2 at f2\",round(av2,2)\n", + "print \"Gain magnitude av2 at f2\",round(av3,2)\n", + "print \"Gain magnitude av2 at f2\",round(av4,2)\n", + "print \"Gain magnitude av2 at f2\",round(av5,2)\n", + "print \"Gain magnitude av2 at f2\",round(av6,2)\n", + "print \"Gain magnitude av2 at f2\",round(av7,2)\n", + "print \"Gain magnitude av2 at f2\",round(av8,2)\n", + "print \"Gain magnitude av2 at f2\",round(av9*10**3,2),\"*10^-3\"\n", + "print \"Gain magnitude av2 at f2\",round(av10*10**3,2),\"*10^-3\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.5.a" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 15.92 kOhm\n", + "Resistance R1 is 10.0 kOhm\n", + "Resistance Rf is 10.0 kOhm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.5.a\n", + "#Design a high pass filter at a cutoff frequency of 1 kHz with a passband gain\n", + "#of 2.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fh=1*10**3 #Cut-off frequency\n", + "C=0.01*10**-6 #Assumption\n", + "Af=2\n", + "\n", + "#calculation\n", + "R=1/(2*math.pi*fh*C)\n", + "R1=10*10**3\n", + "Rf=R1 #since passband gain is 2\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R is\",round(R/10**3,2),\"kOhm\"\n", + "print \"Resistance R1 is\",round(R1/10**3,2),\"kOhm\"\n", + "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.5.b" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFW6x/HvAAbEAIhgQkbMcTHhXRFt1zUHVl0WFXPA\nqy7cVVyzl8HAioqo66ooYBYFFWRVMDIqKiIIShBFBBQF9BpICgzQ94+3eqem7emp6emq09X9+zxP\nP12pq96egnr7nFPnFIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhIhHYBpgJLgb86jkVERArYEGCA6yBE\nJDeNXAcgJaUdMDPL+lL691jmvUREJM2bwBrgV6xKaifgEeB+4GVgOfAHYGvgOeA74Eugp28fTb3P\n/AjMAP4OfO1bvw5o75t/BLjJN388ViX2E/AusJdv3TygN/Ax8DPwNLCBb30X77NLgC+Ao4CuwKS0\n73k5MCrzn4BK4Gbv2L94se4KvAb8AMzy9plyrPc9lwILvPgAEt78NcD3wFzgdN/nNgMew/6G84Dr\nqE5O5wDjgduxv+OXwNG+z54DzPGO+WXafs/DEv6PwFhgu1q+p4hIg43DLjopj2AX5997802BycD1\nQBNge+zidaS3/lbgLaA5sC0wHfjKt7/0hPEwcKM3vQ+wGDgAu3iehV1o1/PWzwUmAFsCLbAL40Xe\nuo5enId781tj7THrYxf6XX3HnAKcVMv3r8Qu4LthpanNsIR3tj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CF\nN70YazRuiVVrHe8tX4ZVe/3Zmy/D7krK5jWsJNHUm08dYxXwCnA/VgJJmQ9sVdcX8tyKVVcNT1u+\nlbcfkbxSwpBikqxluhewP/AxMAO4yFveFzgEa/Q+CfjKW14F3Ig1kL9KzV/v3YHzsTaD6cCJdRz/\nFax6bBLWBtHbt81TWLvJq75l471YM+0zNZ9a1hs4gur2jVRi64glQxERCUmq0TwqV2BJy6898FID\n91uJlZBE8kptGCLVoqz3HwlsD/whbfmXWNXXDtjtufW1N/ZENfXBEBERERERERERERERERERERER\nEREREcm//wehVjGzCowgOwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain magnitude av1 at f1 0.2\n", + "Gain magnitude av2 at f2 0.39\n", + "Gain magnitude av2 at f2 0.74\n", + "Gain magnitude av2 at f2 1.15\n", + "Gain magnitude av2 at f2 1.41\n", + "Gain magnitude av2 at f2 1.9\n", + "Gain magnitude av2 at f2 1.98\n", + "Gain magnitude av2 at f2 1.99\n", + "Gain magnitude av2 at f2 2.0\n", + "Gain magnitude av2 at f2 2.0\n" + ] + } + ], + "source": [ + "#Example 7.5.b\n", + "#The circuit of figure 6-17,for the indicated value of resistors\n", + "#determine the full scale range for the input voltage.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", + "import math\n", + "\n", + "#Variable declaration\n", + "Af=2 #Passband gain of the filter\n", + "fl=1000 #Cut-off frequency\n", + "\n", + "f1=100\n", + "f2=200\n", + "f3=400\n", + "f4=700\n", + "f5=1000\n", + "f6=3000\n", + "f7=7000\n", + "f8=10000\n", + "f9=30000\n", + "f10=100000\n", + "\n", + "\n", + "#calculation\n", + "av1=(Af*(f1/fl))/math.sqrt(1+(f1/fl)**2)\n", + "av2=(Af*(f2/fl))/math.sqrt(1+(f2/fl)**2)\n", + "av3=(Af*(f3/fl))/math.sqrt(1+(f3/fl)**2)\n", + "av4=(Af*(f4/fl))/math.sqrt(1+(f4/fl)**2)\n", + "av5=(Af*(f5/fl))/math.sqrt(1+(f5/fl)**2)\n", + "av6=(Af*(f6/fl))/math.sqrt(1+(f6/fl)**2)\n", + "av7=(Af*(f7/fl))/math.sqrt(1+(f7/fl)**2)\n", + "av8=(Af*(f8/fl))/math.sqrt(1+(f8/fl)**2)\n", + "av9=(Af*(f9/fl))/math.sqrt(1+(f9/fl)**2)\n", + "av10=(Af*(f10/fl))/math.sqrt(1+(f10/fl)**2)\n", + "\n", + "#Magnitude plot\n", + "f=arange(100,100000)\n", + "s=2.0j*pi*f\n", + "p=2.0*pi*fl\n", + "A=Af*s/(s+p)\n", + "\n", + "clf() #clear the figure\n", + "plot()\n", + "title('frequency response')\n", + "semilogx(f,20*log10(abs(A)))\n", + "ylabel('Voltage gain(dB)')\n", + "xlabel('frequency(Hz)')\n", + "show()\n", + "\n", + "\n", + "#result\n", + "print \"Gain magnitude av1 at f1\",round(av1,2)\n", + "print \"Gain magnitude av2 at f2\",round(av2,2)\n", + "print \"Gain magnitude av2 at f2\",round(av3,2)\n", + "print \"Gain magnitude av2 at f2\",round(av4,2)\n", + "print \"Gain magnitude av2 at f2\",round(av5,2)\n", + "print \"Gain magnitude av2 at f2\",round(av6,2)\n", + "print \"Gain magnitude av2 at f2\",round(av7,2)\n", + "print \"Gain magnitude av2 at f2\",round(av8,2)\n", + "print \"Gain magnitude av2 at f2\",round(av9,2)\n", + "print \"Gain magnitude av2 at f2\",round(av10,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.6.a" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Lower cutoff frequency fl is 1.0 kHz\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.6.a\n", + "#Determine the low cutoff frequency fl of the filter shown in figure 7-8(a)\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R2=33*10**3 #Resistance in ohms\n", + "R3=R2\n", + "C2=0.0047*10**-6 #Capacitance in Farads\n", + "C3=C2\n", + "\n", + "#calculation\n", + "fl=1/(2*math.pi*math.sqrt(R2*R3*C2*C3))\n", + "\n", + "\n", + "#result\n", + "print \"Lower cutoff frequency fl is\",round(fl/10**3,0),\"kHz\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.6.b" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmcE/X9x/EXoHgAKlbrgcAiVW4VD5QqmGq1XoWfVYut\ntShKUSteqFz+YNGqeIFWK/UWT6T6E8UL1iOCJ6BAAQU5BDm8UEEQ0IXN74/PxJ0N2exsNsl3kryf\nj0cemZlMZj5h2HzyPeb7BRERERERERERERERERERERERERERERHJoTbALOB74GLHsYiISIg9ANzm\nOggRSU991wFIUWkJfJTi9WL6/1jPe4iISILXgc3ARqxKaj/gYWAM8BKwHjgG2Bt4BvgKWAL09x1j\nB+893wLzgKuA5b7XK4B9fesPA9f51k/BqsS+A94GOvleWwoMAGYDa4BxwHa+13t6710LLAJ+B5wB\nzEj4nFcAE5L/ExAF/uGde4MXa1ugDPgGmO8dM+4k73N+D6zw4gOIeOuDga+BT4E/+963M/AI9m+4\nFBhKZXI6B3gLuAX7d1wCnOB77znAYu+cSxKO2wdL+N8CrwAtqvmcIiJ19gb2pRP3MPbl3NVb3wH4\nALgG2AZohX15He+9PhJ4E9gF2AeYC3zmO15iwngIuNZb7gx8CRyGfX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cBGJh1BZakpvo8mPJKMUxuG\nFIPJWA+quHhV0BTgz97yiUBTb/lLrNF4V6xa6xRv+zqs2ut0b70e1isplTKsJLGDtx4/x4/AJGAM\nVgKJWwbsVdMH8ozEqqvGJ2zfyzuOSEYpYUghiVWzfAlwKDAbmAf087aPALpjjd6nAp9528uBa7EG\n8slU/fV+FnAe1mYwF+hRw/knYdVjM7A2iAG+fZ7A2k0m+7a95cWa7Jjx9fi2AcBxVLZvxBNbFywZ\niohIlsQbzXPlSixp+e0LvFjH40axEpJIRqkNQ6RSLuv9nwVaAcckbF+CVX21xrrn1tYB2IxqugdD\nREREREREREREREREREREREREREREJPP+H8OfoWq60nwKAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain magnitude av1 at f1 0.0159\n", + "Gain magnitude av2 at f2 0.0634\n", + "Gain magnitude av2 at f2 0.2506\n", + "Gain magnitude av2 at f2 0.6979\n", + "Gain magnitude av2 at f2 1.1215\n", + "Gain magnitude av2 at f2 1.5763\n", + "Gain magnitude av2 at f2 1.5857\n", + "Gain magnitude av2 at f2 1.5859\n", + "Gain magnitude av2 at f2 1.586\n", + "Gain magnitude av2 at f2 1.586\n" + ] + } + ], + "source": [ + "#Example 7.6.b\n", + "#Draw the frequency response plot of the filter in example 7.6.a\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", + "import math\n", + "\n", + "#Variable declaration\n", + "Af=1.586 #Passband gain of the filter\n", + "fl=1000 #Cut-off frequency\n", + "\n", + "f1=100\n", + "f2=200\n", + "f3=400\n", + "f4=700\n", + "f5=1000\n", + "f6=3000\n", + "f7=7000\n", + "f8=10000\n", + "f9=30000\n", + "f10=100000\n", + "\n", + "\n", + "#calculation\n", + "av1=Af/math.sqrt(1+(fl/f1)**4)\n", + "av2=Af/math.sqrt(1+(fl/f2)**4)\n", + "av3=Af/math.sqrt(1+(fl/f3)**4)\n", + "av4=Af/math.sqrt(1+(fl/f4)**4)\n", + "av5=Af/math.sqrt(1+(fl/f5)**4)\n", + "av6=Af/math.sqrt(1+(fl/f6)**4)\n", + "av7=Af/math.sqrt(1+(fl/f7)**4)\n", + "av8=Af/math.sqrt(1+(fl/f8)**4)\n", + "av9=Af/math.sqrt(1+(fl/f9)**4)\n", + "av10=Af/math.sqrt(1+(fl/f10)**4)\n", + "\n", + "#Magnitude plot\n", + "f=arange(100,100000)\n", + "s=2.0j*pi*fl**2\n", + "p=2.0*pi*f**2\n", + "A=Af*p/(s+p)\n", + "\n", + "\n", + "clf() #clear the figure\n", + "plot()\n", + "title('frequency response')\n", + "semilogx(f,20*log10(abs(A)))\n", + "ylabel('Voltage gain(dB)')\n", + "xlabel('frequency(Hz)')\n", + "show()\n", + "\n", + "\n", + "#result\n", + "print \"Gain magnitude av1 at f1\",round(av1,4)\n", + "print \"Gain magnitude av2 at f2\",round(av2,4)\n", + "print \"Gain magnitude av2 at f2\",round(av3,4)\n", + "print \"Gain magnitude av2 at f2\",round(av4,4)\n", + "print \"Gain magnitude av2 at f2\",round(av5,4)\n", + "print \"Gain magnitude av2 at f2\",round(av6,4)\n", + "print \"Gain magnitude av2 at f2\",round(av7,4)\n", + "print \"Gain magnitude av2 at f2\",round(av8,4)\n", + "print \"Gain magnitude av2 at f2\",round(av9,4)\n", + "print \"Gain magnitude av2 at f2\",round(av10,4)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.7.a" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R1 is 10.0 kOhm\n", + "Resistance R is 15.92 kOhm\n", + "Bandpass Gain Af is 4\n", + "Resistance Rf is 10.0 kOhm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.7.a\n", + "#Design a wide band pass filter with fl=200 Hz, fh=1 kHz and passband gain=4.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fl=200 #Low cutoff freq in Hz\n", + "fh=1*10**3 #High cutoff freq in Hz\n", + "C=0.05*10**-6\n", + "\n", + "#calculation\n", + "R=1/(2*math.pi*fl*C)\n", + "R1=10*10**3\n", + "Rf=R1 #Since passband gain is 2,R1 and Rf must be equal\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R1 is\",round(R1/10**3,2),\"kOhm\"\n", + "print \"Resistance R is\",round(R/10**3,2),\"kOhm\"\n", + "print \"Bandpass Gain Af is 4\"\n", + "print \"Resistance Rf is\",round(Rf/10**3,2),\"kOhm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.7.b" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEfCAYAAABSy/GnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeUVOUZx/Hv0qtAxEIRFhTFFkUMFkRGASVRpKmgWEkA\naxRLFBuLmkQl9oLECAakCCIoKF1GpIiCgIqiVGmWKFUBKTv547kjs+uW2dk78075fc6Zwy0zc5+5\nZ5ln3g4iIiIiIiIiIiIiIiIiIiIiIiIiIiIikkDHAEuA7cBNjmMREZEk9jLwuOsgRCQ2ZVwHIBml\nIfB5Eecz6e8xy3uIiEg+7wL7gF1YlVQT4BVgEPAO8BNwLlAXGAd8D6wGbo54j8reazYDy4A7gfUR\n53OBxhH7rwAPRexfiFWJbQHmAidGnFsL3A4sBbYCo4GKEec7eq/dBqwEzgcuARbm+5y3ARMKvgUE\ngYe9a+/0Ym0KTAd+BJZ77xn2J+9zbgc2ePEBBLz9fsD/gDX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EN6qSknQT/gX+Fjb5GkBb8s7MWR2r9mmFLVEJ9mt9SzHvWxUrnYyNOF7B+zcETPC2vwAO\ni7j2EGC3t7/V+/c/2KRwtwGXAn/wjjcEvol4/xDWbrHZ22+NlXjCamOlqUuAHd6xb7CkJ+IrJQxJ\nVzsjtrOw0sCeAp6XVcCxfeStrq2MfXGXwZJKs0KuGfn+4fcNFXKNcVhJ6F2sOioyWRX0/ILOlcVm\nJh3AgVJT+DlagEh8pzYMyQTTsB5UYeGqoNnA5d72H4Fa3vZ3WKPx77BqrQu94zuwaq+Lvf0srFdS\nUaZjJYnK3n74Gr8AU4FBWAkk7GugTnEfyPMIVl01Jt/xOt77iPhKCUPSSaiQ7b8CpwJLgWVAH+/4\nAOBsrNG7M7DOO74XeBBrIJ9G3l/vPYA/Y20GnwEXFXP9qVj12EKsDeL2iOeMxNpNpkUcm+PFWtB7\nhvfDx24H2nGgfSOc2FpgyVBEROIk3GieKHdgSStSY+DtUr5vECshifhKbRgiBySy3n880Ag4N9/x\n1VjV15FY99yS+j22oprGYIiIiIiIiIiIiIiIiIiIiIiIiIiIiIj47/8rMuTJbEhORQAAAABJRU5E\nrkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Gain magnitude av1 at f1 0.1997\n", + "Gain magnitude av2 at f2 0.5931\n", + "Gain magnitude av2 at f2 1.78\n", + "Gain magnitude av2 at f2 2.7735\n", + "Gain magnitude av2 at f2 3.3333\n", + "Gain magnitude av2 at f2 3.1508\n", + "Gain magnitude av2 at f2 2.7735\n", + "Gain magnitude av2 at f2 1.78\n", + "Gain magnitude av2 at f2 0.5655\n", + "Gain magnitude av2 at f2 0.3979\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.7.b\n", + "#Draw the frequency response plot for the filter in example 7.7.a\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "\n", + "from scipy import pi\n", + "from pylab import ylabel, xlabel, title, arange, plot, show, clf, semilogx\n", + "import math\n", + "\n", + "#Variable declaration\n", + "Af=4 #Passband gain of the filter\n", + "fl=200 #Cut-off frequency\n", + "fh=1000 #Higher Cut-off frequency\n", + "\n", + "f1=10\n", + "f2=30\n", + "f3=100\n", + "f4=200\n", + "f5=447.2\n", + "f6=700\n", + "f7=1000\n", + "f8=2000\n", + "f9=7000\n", + "f10=10000\n", + "\n", + "\n", + "#calculation\n", + "av1=(Af*(f1/fl))/math.sqrt((1+(f1/fl)**2)*(1+(f1/fh)**2))\n", + "av2=(Af*(f2/fl))/math.sqrt((1+(f2/fl)**2)*(1+(f2/fh)**2))\n", + "av3=(Af*(f3/fl))/math.sqrt((1+(f3/fl)**2)*(1+(f3/fh)**2))\n", + "av4=(Af*(f4/fl))/math.sqrt((1+(f4/fl)**2)*(1+(f4/fh)**2))\n", + "av5=(Af*(f5/fl))/math.sqrt((1+(f5/fl)**2)*(1+(f5/fh)**2))\n", + "av6=(Af*(f6/fl))/math.sqrt((1+(f6/fl)**2)*(1+(f6/fh)**2))\n", + "av7=(Af*(f7/fl))/math.sqrt((1+(f7/fl)**2)*(1+(f7/fh)**2))\n", + "av8=(Af*(f8/fl))/math.sqrt((1+(f8/fl)**2)*(1+(f8/fh)**2))\n", + "av9=(Af*(f9/fl))/math.sqrt((1+(f9/fl)**2)*(1+(f9/fh)**2))\n", + "av10=(Af*(f10/fl))/math.sqrt((1+(f10/fl)**2)*(1+(f10/fh)**2))\n", + "\n", + "#Magnitude plot\n", + "f=arange(10,100000)\n", + "s=2.0j*pi*f\n", + "p1=2.0*pi*fl\n", + "p2=2.0*pi*fh\n", + "A=(Af*s)*p2/((s+p1)*(s+p2))\n", + "\n", + "clf() #clear the figure\n", + "plot()\n", + "title('frequency response')\n", + "semilogx(f,20*log10(abs(A)))\n", + "ylabel('Voltage gain(dB)')\n", + "xlabel('frequency(Hz)')\n", + "show()\n", + "\n", + "\n", + "#result\n", + "print \"Gain magnitude av1 at f1\",round(av1,4)\n", + "print \"Gain magnitude av2 at f2\",round(av2,4)\n", + "print \"Gain magnitude av2 at f2\",round(av3,4)\n", + "print \"Gain magnitude av2 at f2\",round(av4,4)\n", + "print \"Gain magnitude av2 at f2\",round(av5,4)\n", + "print \"Gain magnitude av2 at f2\",round(av6,4)\n", + "print \"Gain magnitude av2 at f2\",round(av7,4)\n", + "print \"Gain magnitude av2 at f2\",round(av8,4)\n", + "print \"Gain magnitude av2 at f2\",round(av9,4)\n", + "print \"Gain magnitude av2 at f2\",round(av10,4)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.7.c" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Center frequency fc is 447.21 Hz\n", + "Quality factor Q is 0.56\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.7.c\n", + "#Calculate the value of Q for the filter.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fh=1*10**3 #Higher cut-off frequency\n", + "fl=200 #Lower cut-off frequency\n", + "\n", + "\n", + "#calculation\n", + "fc=math.sqrt(fl*fh) #Center frequency\n", + "Q=fc/(fh-fl) #Quality factor\n", + "\n", + "\n", + "\n", + "#result\n", + "print \"Center frequency fc is\",round(fc,2),\"Hz\"\n", + "print \"Quality factor Q is\",round(Q,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.8.a" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R1 is 4.77 kilo ohm\n", + "Resistance R2 is 5.97 kilo ohm\n", + "Resistance R3 is 95.49 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.8.a\n", + "#Design the bandpass filter shown in figure 7-13(a) so that fc=1 kHz, Q=3 and\n", + "#Af=10.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fc=1*10**3 #Center frequency\n", + "Q=3 #Quality factor\n", + "Af=10 #Passband gain\n", + "C1=0.01*10**-6 #Assumption\n", + "\n", + "#calculation\n", + "C2=C1\n", + "R1=Q/(2*math.pi*fc*C1*Af)\n", + "R2=Q/(2*math.pi*fc*C1*(2*Q**2-Af))\n", + "R3=Q/(math.pi*fc*C1)\n", + "\n", + "#result\n", + "print \"Resistance R1 is\",round(R1/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.8.b" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R1 is 2.65 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.8.b\n", + "#Change the centre frequency of example 7.8.a to 1.5 kHz, keeping Af and\n", + "#bandwidth constant.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fc0=1*10**3 #Original center frequency\n", + "fc1=1.5*10**3 #New center frequency\n", + "R2=5.97*10**3 #Original resistance\n", + "\n", + "\n", + "\n", + "#calculation\n", + "R2new=R2*(fc0/fc1)**2\n", + "\n", + "#result\n", + "print \"Resistance R1 is\",round(R2new/10**3,2),\"kilo ohm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.9" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 of highpass section is 15.92 kilo ohm\n", + "Resistance R of lowpass section is 15.92 kilo ohm\n", + "Bandpass Gain Af is 4\n", + "Resistance R1 is 10.0 kilo ohm\n", + "Resistance Rf is 10.0 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.9\n", + "#Design a wide-band reject filter having fh=200 Hz and fl=1 KHz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fh=200 # Low cutoff freq in Hz\n", + "fl=1*10**3 # High cutoff freq in Hz\n", + "C2=0.01*10**-6 # Assumption\n", + "R2=1/(2*math.pi*fl*C2)\n", + "C=0.05*10**-6\n", + "R1=10*10**3 # Assumption\n", + "Rf=R1 # Since passband gain is 2,R1 and Rf must be equal\n", + "Af=4 # Since gain of high pass and lowpass is set to 2\n", + "\n", + "\n", + "#calculation\n", + "R2=1/(2*math.pi*fl*C2)\n", + "R=1/(2*math.pi*fh*C)\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 of highpass section is\",round(R2/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R of lowpass section is\",round(R/10**3,2),\"kilo ohm\"\n", + "print \"Bandpass Gain Af is\",Af\n", + "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohm\"\n", + "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.10" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 39.01 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.10\n", + "#Design a 60 Hz active notch filter.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fn=60 #Notch-out frequency in Hz\n", + "C=0.068*10**-6 #Assumption\n", + "\n", + "\n", + "\n", + "#calculation\n", + "R=1/(2*math.pi*fn*C)\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R is\",round(R/10**3,2),\"kilo ohm\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.11" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Phase angle phi is -90.0 degree\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.11\n", + "#For the all-pass filter of figure 7-16(a),find the phase angle phi if the\n", + "#frequency of vin is 1 kHz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "f=1*10**3 #Input frequency in Hz\n", + "C=0.01*10**-6 \n", + "R=15.9*10**3 #Resistance in ohms\n", + "\n", + "\n", + "\n", + "#calculation\n", + "phi=math.atan(2*math.pi*f*C*R) #Phase angle\n", + "phi1=-2*phi*180/math.pi\n", + "\n", + "#result\n", + "print \"Phase angle phi is\",round(phi1),\"degree\"\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.12" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 3.3 kilo ohm\n", + "Use Resistance R as 3.3 kohm\n", + "Resistance Rf is 957.0 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.12\n", + "#Design the phase shift oscillator of figure 7-18 so that fo=200 Hz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fo=200 # Frequency of oscillation\n", + "C=0.1*10**-6 # Assumption\n", + "R=3.3*10**3\n", + "\n", + "#calculation\n", + "R=0.065/(fo*C)\n", + "R=3.3*10**3 #Using rounded value\n", + "R1=10*R # To prevent loading of amplifier\n", + "Rf=29*R1\n", + "\n", + "#result\n", + "print \"Resistance R is\",round(R/10**3,1),\"kilo ohm\"\n", + "print \"Use Resistance R as 3.3 kohm\"\n", + "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.13" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 3.3 kilo ohm\n", + "Resistance Rf is 24.0 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.13\n", + "#Design the wein bridge oscillator of figure 7-19 so that fo=965 Hz.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fo=965 # Frequency of oscillation\n", + "C=0.05*10**-6 # Assumption\n", + "R1=12*10**3 # Assumption\n", + "\n", + "#calculation\n", + "R=0.159/(fo*C)\n", + "Rf=2*R1\n", + "\n", + "#result\n", + "print \"Resistance R is\",round(R/10**3,1),\"kilo ohm\"\n", + "print \"Resistance Rf is\",round(Rf/10**3),\"kilo ohm\"\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.14" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance values R1,R2,R3 is 100.0 kilo ohm\n", + "Capacitance values C1,C2,C3 is 0.01 uF\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.14\n", + "#Design the quadrature oscillator of figure 7-20 so that fo=159 Hz.\n", + "#The opamp is the 1458/772.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fo=159 # Frequency of oscillation\n", + "C=0.01*10**-6 # Assumption\n", + "\n", + "#calculation\n", + "R=0.159/(fo*C)\n", + "\n", + "#result\n", + "print \"Resistance values R1,R2,R3 is\",round(R/10**3,1),\"kilo ohm\"\n", + "print \"Capacitance values C1,C2,C3 is\",round(C*10**6,2),\"uF\"\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.15" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 11.6 kilo ohm\n", + "Resistance R is 10.0 ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.15\n", + "#Design the square wave oscillator of figure 7-21(a) so that fo=1 kHz.\n", + "#The opamp is 741 with dc supply voltages = 15, -15 V.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fo=1*10**3 # Frequency of oscillation\n", + "C=0.05*10**-6 # Assumption\n", + "R1=10*10**3 # Assumption\n", + "\n", + "#calculation\n", + "R=1/(2*fo*C)\n", + "R2=1.16*R1\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3,1),\"kilo ohm\"\n", + "print \"Resistance R is\",round(R/10**3),\"ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.16" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 10.0 kilo ohm\n", + "Resistance R1 is 10.0 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.16\n", + "#Design the triangular wave generator of figure 7-23 so that fo=2 kHz and\n", + "#Vo(pp)=7V. The opamp is a 1458/772 and supply voltages =15,-15 V.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "fo=2*10**3 # Frequency of oscillation\n", + "vo=7 #Output voltage\n", + "Vsat=14 #Saturation voltage for opamp 1458\n", + "R3=40*10**3 #Assumption\n", + "C1=0.05*10**-6 #Assumption\n", + "\n", + "\n", + "#calculation\n", + "R2=(vo*R3)/(2*Vsat)\n", + "k=R3/(4*fo*R2) #Using fo=R3/(4*R1*C1*R2),k=R1*C1;\n", + "R1=k/C1\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3),\"kilo ohm\"\n", + "print \"Resistance R1 is\",round(R1/10**3),\"kilo ohm\"\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 7.17" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Terminal voltage Vc is 10.43 volts\n", + "Approximate Nominal freq fo is 26.09 kHz\n", + "Approximate Nominal freq fo1 is 41.67 kHz\n", + "Approximate Nominal freq fo2 is 8.33 kHz\n", + "Change in output freq delta_fo is 33.33 kHz\n" + ] + } + ], + "source": [ + "\n", + "#Example 7.17\n", + "#In the circuit of figure 7-25(c), V=12 V, R2=1.5 Kilo ohm, R1=R3=10 Kilo ohm\n", + "#and C1=0.001 uF.\n", + "#a)Determine the nominal frequency of all the output waveforms.\n", + "#b)Compute the modulation in the output frequencies if Vc is varied between 9.5 V\n", + "#and 11.5 V.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R2=1.5*10**3\n", + "R1=10*10**3\n", + "R3=10*10**3\n", + "C1=0.001*10**-6\n", + "V=12 #Supply voltage\n", + "Vc1=9.5\n", + "Vc2=11.5\n", + "\n", + "#calculation\n", + "Vc=R3*V/(R2+R3) #Using voltage divider rule\n", + "fo=2*(V-Vc)/(V*R1*C1)\n", + "fo1=2*(V-Vc1)/(V*R1*C1)\n", + "fo2=2*(V-Vc2)/(V*R1*C1)\n", + "delta_fo=fo1-fo2 #Change in output freq\n", + "\n", + "\n", + "#result\n", + "print \"Terminal voltage Vc is\",round(Vc,2),\"volts\"\n", + "print \"Approximate Nominal freq fo is\",round(fo/10**3,2),\"kHz\"\n", + "print \"Approximate Nominal freq fo1 is\",round(fo1/10**3,2),\"kHz\"\n", + "print \"Approximate Nominal freq fo2 is\",round(fo2/10**3,2),\"kHz\"\n", + "print \"Change in output freq delta_fo is\",round(delta_fo/10**3,2),\"kHz\"\n", + "\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8._Comparators_and_Converters.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8._Comparators_and_Converters.ipynb deleted file mode 100644 index 6ed539e1..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8._Comparators_and_Converters.ipynb +++ /dev/null @@ -1,386 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 8. Comparators and Converters" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 8.1" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8FPX9x/FXDDfIVUFOjUVRsIpoOQTFKIiACFWKgBeI\ntrZ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MHoBdWrz8OOAv4j9OI4rfF+/oV8ApWhRwEG71trrc/kZKzVwdFd2xowVeuA0mV\nClhdWh6WEYPYcA0WfxAbrnOwi9KDrgNJ0GFYDxWAqtgMxJ3dhVMuZxC83k3VgEO9x9WBD4Cu7sKJ\n27tAc+/xSOA+d6EkbDww0HUQqdYd61WzGhjuOJZEjMPmp/oBa1+53G04cTkNq65ZRHFXum5OI4rP\nCVh98iKsG+ZNbsMplzMIXu+mo7Df/SKsC3XQ/n9bYSWJT4CXCV7vpurA1xQnahERERERERERERER\nERERERERERERERGRg6kF/N51ECIi4k95BHM0vYiIpMF4bDryhQRz2gYREUmhI1FJQgIuyLPAivhd\nUKfwFvkfJQkREYlKSUIkdXahWTYl4JQkRFLn/7B1EhajhmsRERERERERERERERERERERERERERER\nERERERERf/p/LsxYpbABTCwAAAAASUVORK5CYII=\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "\n", - "#Example 8.1\n", - "#In the circuit of figure 8-4(a), R1=100 ohm,R2=56 kilo Ohm, Vin=V pp sine wave\n", - "#and the opamp is type 741 with supply voltages 15 V, -15 V.\n", - "#Determine the threshold voltages Vul and Vut and draw the output waveform.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "%matplotlib inline\n", - "import math\n", - "import array\n", - "import numpy as np\n", - "#Variable declaration\n", - "R1=100\n", - "R2=56*10**3\n", - "vin=1 #Input voltage in volt\n", - "pos_Vsat=14 #Positive saturation voltage in volt\n", - "neg_Vsat=-14 #Negative saturation voltage in volt\n", - "Vut=(R1/(R1+R2))*(pos_Vsat) #Upper threshold voltage\n", - "\n", - "\n", - "#calculation\n", - "Vut=(R1/(R1+R2))*(pos_Vsat) #Upper threshold voltage\n", - "Vlt=(R1/(R1+R2))*(neg_Vsat) #Lower threshold voltage\n", - "\n", - "t=arange(0,2*math.pi,0.1)\n", - "vut=0.5*np.sin(t)\n", - "subplot(211)\n", - "plot(t,vut)\n", - "ylabel('Vin')\n", - "xlabel('t')\n", - "title(r'$Input voltage$')\n", - "\n", - "import matplotlib.pyplot as plt\n", - "t1=math.asin(0.025/0.5)\n", - "t2=math.pi-math.asin(-0.025/0.5)\n", - "t3=2*math.pi\n", - "x=[0,t1,t2,t3]\n", - "y=[-14,14,-14,14]\n", - "subplot(212)\n", - "plt.step(x,y) #Plotting square wave\n", - "title('Output Waveform')\n", - "xlabel('t')\n", - "ylabel('Vo')\n", - "\n", - "#result\n", - "plt.show()\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 8.2" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "#Since zener diode is forward biased\n", - "Output voltage during positive half-cycle of the input is -0.7 V\n", - "Output voltage during negative half-cycle of the input is 5.1 V\n" - ] - }, - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4VOXZx/FvCDsISAVZNX1xQ6uIiiAgRkEFRKhYBNxA\ntLZ114qAtYLWutXWrXWpClIFUUCpqAgoBFwJCIjIIlCQVdSyCIoLZN4/7pNmEmaSSXJmnjlnfp/r\nmiszk5OTO4Gc+zzb/YCIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIBN6pwHRgHjDIcSyxXAh8\n5ToIEZFM9m+gfxLP/zZQtYJf2xaY6NO5RHxVxXUAIimQjbUm8pJ0/uZAFrC3gl9/BjDLp3OJ+CrL\ndQAiKdAOGAscDZwItAeaAQuwBHIOMAQ4HjgBOBJ4H2gM/ADM9s7RDxgIVAOmAd2AM4FfYxf1aVHH\nDgQuAG70vscDWAIYAiz0jnkOWANMBW4GDilxrue8+I8ALgE+wLqmJgCveecdDqzwYj0ZuAw4BrgU\nmOv9vHdW8vcnIhJqw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B1bsMpt5rAPGAxsAy4x204FZYNLCKYkzzWAUuw+PPdhlJuDYBJ2N42y7AdNIPi\nSOx3XvjYSfD+fhOSjQ1Y5wDVsD/21i4DqoBTgbYEM0k0AY73ntcFVhK8339t72NV4EOgs8NYKuom\nYBzB3K1xLdDQdRAVNBYY4j2vCtR3GEtlVAG2YDd9cQ8IqpOxJLEO+AmYAPRxGVAFvANsdx1EBX2B\nJWaA3dgdVTN34VTId97H6thNRwDWWBfTAugJPE1wZiqWFMS462M3eKO913uxu/Eg6obNcNoQ74Ag\nJ4nmFP/BNnrvSerlYC2ieY7jKK8qWKLbinWdLXMbTrk9CAwFClwHUkER4C1sH/tfO46lPH4OfAWM\nwablP0VRqzRoBgDjSzsgyEki4joAAayraRJwPdaiCJICrMusBdAFyHUaTfn0Ar7E+pSDeDcO0Am7\nuegBXI3dnQdBVeAE4DHv47fAcKcRVUx14FxgYmkHBTlJbKJ4P1pLrDUhqVMNmAw8D0xxHEtl7ARe\nB05yHUg5dAR6Y/36LwBnAP9yGlH5bfE+fgW8gnUhB8FG7zHfez0JSxZB0wP4CPv9h1JVrC8tB8uI\nQRy4Bos/iAPXWdhF6UHXgVTQQdgMFYBaWKXhru7CqZTTCN7sptrAAd7zOsB7wFnuwim3ucAR3vNR\nwH3uQqmwCcAg10EkWw9sVs1qYITjWCriBWAz8AM2vnKZ23DKpTPWXbOYoql03Z1GVD7HYv3Ji7Fp\nmEPdhlMppxG82U0/x373i7Ep1EH7+22DtSQ+Bl4meLOb6gBfU5SoRURERERERERERERERERERERE\nRERERETKUh/4nesgREQkPeUQzNX0IiKSAhOwcuSLCGbZBhERSaJDUUtCAi7IVWBF0l1QS3iL/I+S\nhIiIxKUkIZI8u1CVTQk4JQmR5Pkvtk/CJ2jgWkRERERERERERERERERERERERERERERERERERCQ9\n/T8NRSbI+0GhoAAAAABJRU5ErkJggg==\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "#Example 8.2\n", - "#In the circuit of figure 8-7(a), Vin=500 mV peak 60-Hz sinewave, R=100 ohm.\n", - "#IN3826 zener with Vz=5.1 V and the supply voltages= 15 V, -15V.\n", - "#Determine the output voltage swing.Assume that the voltage drop across\n", - "#the forward biased zener=0.7V.\n", - "\n", - "%matplotlib inline\n", - "from __future__ import division #to perform decimal division\n", - "import numpy as np\n", - "import matplotlib.pyplot as plt\n", - "import math\n", - "import array\n", - "\n", - "#Variable declaration\n", - "vin=5*10**-3\n", - "R=100\n", - "Vd1=-0.7 # Output voltage during positive half-cycle of the input\n", - "Vd2=5.1 # Output voltage during negative half-cycle of the input\n", - "\n", - "#calculation\n", - "\n", - "\n", - "t=arange(0,2*math.pi,0.1)\n", - "vut=0.5*np.sin(t)\n", - "subplot(211)\n", - "plot(t,vut)\n", - "ylabel('Vin')\n", - "xlabel('t')\n", - "title(r'$Input voltage$')\n", - "\n", - "\n", - "\n", - "\n", - "t1=math.pi\n", - "t2=2*math.pi\n", - "x=[0,t1,t2]\n", - "y=[-0.7,-0.7,5.1]\n", - "subplot(2,1,2)\n", - "plt.step(x,y)\n", - "title('Output Waveform')\n", - "xlabel('t')\n", - "ylabel('Vo')\n", - "\n", - "#result\n", - "print \"#Since zener diode is forward biased\"\n", - "print \"Output voltage during positive half-cycle of the input is\",Vd1,\"V\"\n", - "print \"Output voltage during negative half-cycle of the input is\",Vd2,\"V\" \n", - "plt.show()" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 8.3" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output freq Fo is 2000 Hz\n", - "Output freq Fo/2 is 1000 Hz\n" - ] - } - ], - "source": [ - "\n", - "#Example 8.3\n", - "#The V..F converter of figure 8-12 is initially adjusted for a 10 kHz full scale\n", - "#output frequency.Determine the output frequencies Fo and Fo/2 if the output\n", - "#signal Vin=2 V.\n", - "%matplotlib inline\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "import array\n", - "\n", - "\n", - "\n", - "#Variable declaration\n", - "Vin=2 # Input voltage\n", - "Fo1=2*10**3 # Output freq Fo when Vin=2V\n", - "Fo2=1*10**3 # Output freq Fo/2 when Vin=2V\n", - "\n", - "#calculation\n", - "import array\n", - "v=array.array('i',(0 for i in range(0,50)))\n", - "\n", - "\n", - "count=1\n", - "for i in range(1,50): #for 5 cycles\n", - " if count<4:\n", - " v[i]=5\n", - " else:\n", - " v[i]=0\n", - " if count<10:\n", - " count=count+1\n", - " else:\n", - " count=1\n", - "\n", - "\n", - "subplot(211)\n", - "plt.plot(v)\n", - "title('Output Waveform')\n", - "xlabel('t(microsec)')\n", - "ylabel('Pulse freq output,Fo(V)')\n", - "\n", - "import matplotlib.pyplot as plt\n", - "for i in range(1,50): #for 5 cycles\n", - " if count<10:\n", - " v[i]=5\n", - " else:\n", - " v[i]=0\n", - " if count<20:\n", - " count=count+1\n", - " else:\n", - " count=1\n", - "\n", - "subplot(2,1,2)\n", - "plt.plot(v)\n", - "title('Output Waveform')\n", - "xlabel('t(microsec)')\n", - "ylabel('Pulse freq output,Fo(V)')\n", - "plt.show()\n", - "\n", - "#result\n", - "print \"Output freq Fo is \",Fo1,\"Hz\"\n", - "print \"Output freq Fo/2 is\",Fo2,\"Hz\"" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 8.4" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Output voltage is 0.28 Volts\n" - ] - } - ], - "source": [ - "\n", - "#Example 8.4\n", - "#The F/V converterof figure 8-14(a) is initially adjusted for Vo=2.8V at Fin max\n", - "#of 10 kHz. Determine the output voltage Vo if fin= 1 kHz.\n", - "\n", - "#Variable decclaration\n", - "Vo=2.8 #At Finmax of 10kHz\n", - "\n", - "#Calculation\n", - "Vo1=Vo/10 #Output voltage at Fin=1kHz\n", - "\n", - "#Result\n", - "print \"Output voltage is\",Vo1,\"Volts\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 8.5" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEZCAYAAAB4hzlwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VfW57/HPJgkIolgUUAEFI7RMHgGFyBhARhXqiNSh\nBau2FYeeW4/a057m3JfD7dVqaz0HpzoP2IoKeAUnCIMIMg8CMkiQQSYZFFAuMfv88axITJOwk6y1\nf3ut9X2/Xvu1h6y98myG9ezf85tARERERERERERERERERERERERERERERERERERERKqlN/A2MA/4\nqeNYKvITYKfrIERE4mQiMDLA878PZNfwvZ2Bf/h0LpFaq+M6AJGAZWGthcKAzt8cSADFNXx/f2Ca\nT+cSqbWE6wBEAnYu8CzQHugKdAdOBRZgCeMCYAxwNtAF+CEwB2gKHAKme+e4HBgF5ABTgPOBgcD1\n2EV8SpljRwFXAL/2fscD2AV/DLDIO+Z5YD0wGfgNcFq5cz3vxd8WuAb4ECs1jQfe9M57J7Dai7Ub\nMBroAFwLzPQ+7/+u5Z+fiEik3AE84j0egn0zf917ngA+9R4PAnoCr3jPjwXWYBf/lthFFqAX8Lcy\n538Ju/jinfv0MseeAvyrd66PgBO914cC47CW+qpKzlUawxLgBO/5NCwBANzHkT6Sq7AE1BQoApp4\nr9+LSDWpfCRRl499gweYin27L/0Wfh520QV4B0sMk73nnYFdwHvYxfcF7/UBwLve44R33ELv+TTg\nOuAZ73lj7/0jsZbJF97r7YGDWIthQSXnArgEWA7sBY4BGgI7sD6HGzmSwPK9mC4HNnrnuQr4a6V/\nKiKVUFKQKMvBvv0XlnmtH9aZC1ZmeR640Ht+PjDDe/xTrOwD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N8RKgmH/uwIo3ecvG+sL6+UwFj/9K/AiMMl1ID7ZAERxDeVngTHe42yg\nkV8nDuuCeClPbguRWcAe10EEYBtHRjrsx77ZnOouHN8c9O7rYl9SdjuMxS8tsMEfTxL+ddHKitJn\nAUsAvbHqAkAxsM+vk4c1KaQyMU4yTyusNTTPcRx+qIMlu+1YeWyl23B88RBwO1DiOhAfJYH3gAXA\n9Y5j8UtrYCfwNLAIeIIjLddaC2tSSLoOQKqtIVYDvRVrMYRdCVYWawH0AfKdRlN7FwI7sNp7lL5Z\n98S+iAwFbsK+YYddNjZS87+9+wPAnX6dPKxJYQvWgVmqJdZakMyUA0wAXgDecByL3/YB/w84x3Ug\ntdQDW4tsA/Ay0B94zmlE/vjcu98JvI6VnsNus3eb7z1/le8P54+lqE5ua0X0OpoT2MXlIdeB+Ogk\nbPQHQH1gJjDAXTi+60s0Rh81AI7zHh8LfAAMcheOr2YCpYv8FAB/dBdK5oja5LaXga3AIay/ZLTb\ncHzTCyu1LMFKE4ux4cRh1gmr5S7Bhjve7jYc3/UlGqOPWmN/R0uw4dBRuE6U+hespbAUeA0fRx+J\niIiIiIgwpU4EAAAAg0lEQVSIiIiIiIiIiIiIiIiIiIiISMZpBPzSdRAiIpIZWhG9mekiIlJD47Gl\ntRej5QdERGLvdNRSkJAK6yqpIpksSktPS8woKYiIyHeUFET89xVHlmwWCRUlBRH/fYGt3b8cdTSL\niIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhI3P0PCYhjjL2RazwAAAAASUVORK5CYII=\n", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "#Example 8.5\n", - "#In the circuit of figure 8-25(a), Vin=200 mV peak to peak sine wave at 100 Hz.\n", - "#Briefly describe the operation of the circuit and draw the output waveform.\n", - "%matplotlib inline\n", - "from __future__ import division #to perform decimal division\n", - "import numpy as np\n", - "import math\n", - "import array\n", - "\n", - "\n", - "#Variable declaration\n", - "Vin=100*10**-3 # Input voltage\n", - "\n", - "\n", - "#calculation\n", - "\n", - "t=arange(0,math.pi,0.1) #time scale\n", - "v=Vin*np.sin(t)\n", - "\n", - "import matplotlib.pyplot as plt\n", - "plt.xlim(0,2*math.pi)\n", - "plt.ylim(0,0.1)\n", - "plt.plot(t,v)\n", - "ylabel('Vin')\n", - "xlabel('t')\n", - "title(r'$Input voltage$')\n", - "\n", - "\n", - "#result\n", - "plt.show()" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8_Comparators_and_Converters.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8_Comparators_and_Converters.ipynb new file mode 100644 index 00000000..6ed539e1 --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/8_Comparators_and_Converters.ipynb @@ -0,0 +1,386 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 8. Comparators and Converters" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 8.1" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8FPX9x/FXDDfIVUFOjUVRsIpoOQTFKIiACFWKgBeI\ntrZWrFoVsFbwqFdtvVqPeiBVDgUUQUVBIXgTTgXkLsgp6o9DUDyA/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xowVeuA0mV\nClhdWh6WEYPYcA0WfxAbrnOwi9KDrgNJ0GFYDxWAqtgMxJ3dhVMuZxC83k3VgEO9x9WBD4Cu7sKJ\n27tAc+/xSOA+d6EkbDww0HUQqdYd61WzGhjuOJZEjMPmp/oBa1+53G04cTkNq65ZRHFXum5OI4rP\nCVh98iKsG+ZNbsMplzMIXu+mo7Df/SKsC3XQ/n9bYSWJT4CXCV7vpurA1xQnahERERERERERERER\nERERERERERERERGRg6kF/N51ECIi4k95BHM0vYiIpMF4bDryhQRz2gYREUmhI1FJQgIuyLPAivhd\nUKfwFvkfJQkREYlKSUIkdXahWTYl4JQkRFLn/7B1EhajhmsRERERERERERERERERERERERERERER\nERERERERf/p/LsxYpbABTCwAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "\n", + "#Example 8.1\n", + "#In the circuit of figure 8-4(a), R1=100 ohm,R2=56 kilo Ohm, Vin=V pp sine wave\n", + "#and the opamp is type 741 with supply voltages 15 V, -15 V.\n", + "#Determine the threshold voltages Vul and Vut and draw the output waveform.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "%matplotlib inline\n", + "import math\n", + "import array\n", + "import numpy as np\n", + "#Variable declaration\n", + "R1=100\n", + "R2=56*10**3\n", + "vin=1 #Input voltage in volt\n", + "pos_Vsat=14 #Positive saturation voltage in volt\n", + "neg_Vsat=-14 #Negative saturation voltage in volt\n", + "Vut=(R1/(R1+R2))*(pos_Vsat) #Upper threshold voltage\n", + "\n", + "\n", + "#calculation\n", + "Vut=(R1/(R1+R2))*(pos_Vsat) #Upper threshold voltage\n", + "Vlt=(R1/(R1+R2))*(neg_Vsat) #Lower threshold voltage\n", + "\n", + "t=arange(0,2*math.pi,0.1)\n", + "vut=0.5*np.sin(t)\n", + "subplot(211)\n", + "plot(t,vut)\n", + "ylabel('Vin')\n", + "xlabel('t')\n", + "title(r'$Input voltage$')\n", + "\n", + "import matplotlib.pyplot as plt\n", + "t1=math.asin(0.025/0.5)\n", + "t2=math.pi-math.asin(-0.025/0.5)\n", + "t3=2*math.pi\n", + "x=[0,t1,t2,t3]\n", + "y=[-14,14,-14,14]\n", + "subplot(212)\n", + "plt.step(x,y) #Plotting square wave\n", + "title('Output Waveform')\n", + "xlabel('t')\n", + "ylabel('Vo')\n", + "\n", + "#result\n", + "plt.show()\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 8.2" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "#Since zener diode is forward biased\n", + "Output voltage during positive half-cycle of the input is -0.7 V\n", + "Output voltage during negative half-cycle of the input is 5.1 V\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4VOXZx/FvCDsISAVZNX1xQ6uIiiAgRkEFRKhYBNxA\ntLZ114qAtYLWutXWrXWpClIFUUCpqAgoBFwJCIjIIlCQVdSyCIoLZN4/7pNmEmaSSXJmnjlnfp/r\nmiszk5OTO4Gc+zzb/YCIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIBN6pwHRgHjDIcSyxXAh8\n5ToIEZFM9m+gfxLP/zZQtYJf2xaY6NO5RHxVxXUAIimQjbUm8pJ0/uZAFrC3gl9/BjDLp3OJ+CrL\ndQAiKdAOGAscDZwItAeaAQuwBHIOMAQ4HjgBOBJ4H2gM/ADM9s7RDxgIVAOmAd2AM4FfYxf1aVHH\nDgQuAG70vscDWAIYAiz0jnkOWANMBW4GDilxrue8+I8ALgE+wLqmJgCveecdDqzwYj0ZuAw4BrgU\nmOv9vHdW8vcnIhJqw4C/e8+7Y3fur3ivs4D/eM/PAjoBL3qv6wCfYcmgJXbRBegMPBN1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N42y7AdNIPi\nSOx3XvjYSfD+fhOSjQ1Y5wDVsD/21i4DqoBTgbYEM0k0AY73ntcFVhK8339t72NV4EOgs8NYKuom\nYBzB3K1xLdDQdRAVNBYY4j2vCtR3GEtlVAG2YDd9cQ8IqpOxJLEO+AmYAPRxGVAFvANsdx1EBX2B\nJWaA3dgdVTN34VTId97H6thNRwDWWBfTAugJPE1wZiqWFMS462M3eKO913uxu/Eg6obNcNoQ74Ag\nJ4nmFP/BNnrvSerlYC2ieY7jKK8qWKLbinWdLXMbTrk9CAwFClwHUkER4C1sH/tfO46lPH4OfAWM\nwablP0VRqzRoBgDjSzsgyEki4joAAayraRJwPdaiCJICrMusBdAFyHUaTfn0Ar7E+pSDeDcO0Am7\nuegBXI3dnQdBVeAE4DHv47fAcKcRVUx14FxgYmkHBTlJbKJ4P1pLrDUhqVMNmAw8D0xxHEtl7ARe\nB05yHUg5dAR6Y/36LwBnAP9yGlH5bfE+fgW8gnUhB8FG7zHfez0JSxZB0wP4CPv9h1JVrC8tB8uI\nQRy4Bos/iAPXWdhF6UHXgVTQQdgMFYBaWKXhru7CqZTTCN7sptrAAd7zOsB7wFnuwim3ucAR3vNR\nwH3uQqmwCcAg10EkWw9sVs1qYITjWCriBWAz8AM2vnKZ23DKpTPWXbOYoql03Z1GVD7HYv3Ji7Fp\nmEPdhlMppxG82U0/x373i7Ep1EH7+22DtSQ+Bl4meLOb6gBfU5SoRURERERERERERERERERERERE\nRERERETKUh/4nesgREQkPeUQzNX0IiKSAhOwcuSLCGbZBhERSaJDUUtCAi7IVWBF0l1QS3iL/I+S\nhIiIxKUkIZI8u1CVTQk4JQmR5Pkvtk/CJ2jgWkRERERERERERERERERERERERERERERERERERCQ9\n/T8NRSbI+0GhoAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#Example 8.2\n", + "#In the circuit of figure 8-7(a), Vin=500 mV peak 60-Hz sinewave, R=100 ohm.\n", + "#IN3826 zener with Vz=5.1 V and the supply voltages= 15 V, -15V.\n", + "#Determine the output voltage swing.Assume that the voltage drop across\n", + "#the forward biased zener=0.7V.\n", + "\n", + "%matplotlib inline\n", + "from __future__ import division #to perform decimal division\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import math\n", + "import array\n", + "\n", + "#Variable declaration\n", + "vin=5*10**-3\n", + "R=100\n", + "Vd1=-0.7 # Output voltage during positive half-cycle of the input\n", + "Vd2=5.1 # Output voltage during negative half-cycle of the input\n", + "\n", + "#calculation\n", + "\n", + "\n", + "t=arange(0,2*math.pi,0.1)\n", + "vut=0.5*np.sin(t)\n", + "subplot(211)\n", + "plot(t,vut)\n", + "ylabel('Vin')\n", + "xlabel('t')\n", + "title(r'$Input voltage$')\n", + "\n", + "\n", + "\n", + "\n", + "t1=math.pi\n", + "t2=2*math.pi\n", + "x=[0,t1,t2]\n", + "y=[-0.7,-0.7,5.1]\n", + "subplot(2,1,2)\n", + "plt.step(x,y)\n", + "title('Output Waveform')\n", + "xlabel('t')\n", + "ylabel('Vo')\n", + "\n", + "#result\n", + "print \"#Since zener diode is forward biased\"\n", + "print \"Output voltage during positive half-cycle of the input is\",Vd1,\"V\"\n", + "print \"Output voltage during negative half-cycle of the input is\",Vd2,\"V\" \n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 8.3" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output freq Fo is 2000 Hz\n", + "Output freq Fo/2 is 1000 Hz\n" + ] + } + ], + "source": [ + "\n", + "#Example 8.3\n", + "#The V..F converter of figure 8-12 is initially adjusted for a 10 kHz full scale\n", + "#output frequency.Determine the output frequencies Fo and Fo/2 if the output\n", + "#signal Vin=2 V.\n", + "%matplotlib inline\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "import array\n", + "\n", + "\n", + "\n", + "#Variable declaration\n", + "Vin=2 # Input voltage\n", + "Fo1=2*10**3 # Output freq Fo when Vin=2V\n", + "Fo2=1*10**3 # Output freq Fo/2 when Vin=2V\n", + "\n", + "#calculation\n", + "import array\n", + "v=array.array('i',(0 for i in range(0,50)))\n", + "\n", + "\n", + "count=1\n", + "for i in range(1,50): #for 5 cycles\n", + " if count<4:\n", + " v[i]=5\n", + " else:\n", + " v[i]=0\n", + " if count<10:\n", + " count=count+1\n", + " else:\n", + " count=1\n", + "\n", + "\n", + "subplot(211)\n", + "plt.plot(v)\n", + "title('Output Waveform')\n", + "xlabel('t(microsec)')\n", + "ylabel('Pulse freq output,Fo(V)')\n", + "\n", + "import matplotlib.pyplot as plt\n", + "for i in range(1,50): #for 5 cycles\n", + " if count<10:\n", + " v[i]=5\n", + " else:\n", + " v[i]=0\n", + " if count<20:\n", + " count=count+1\n", + " else:\n", + " count=1\n", + "\n", + "subplot(2,1,2)\n", + "plt.plot(v)\n", + "title('Output Waveform')\n", + "xlabel('t(microsec)')\n", + "ylabel('Pulse freq output,Fo(V)')\n", + "plt.show()\n", + "\n", + "#result\n", + "print \"Output freq Fo is \",Fo1,\"Hz\"\n", + "print \"Output freq Fo/2 is\",Fo2,\"Hz\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 8.4" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Output voltage is 0.28 Volts\n" + ] + } + ], + "source": [ + "\n", + "#Example 8.4\n", + "#The F/V converterof figure 8-14(a) is initially adjusted for Vo=2.8V at Fin max\n", + "#of 10 kHz. Determine the output voltage Vo if fin= 1 kHz.\n", + "\n", + "#Variable decclaration\n", + "Vo=2.8 #At Finmax of 10kHz\n", + "\n", + "#Calculation\n", + "Vo1=Vo/10 #Output voltage at Fin=1kHz\n", + "\n", + "#Result\n", + "print \"Output voltage is\",Vo1,\"Volts\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 8.5" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEZCAYAAAB4hzlwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl8VfW57/HPJgkIolgUUAEFI7RMHgGFyBhARhXqiNSh\nBau2FYeeW4/a057m3JfD7dVqaz0HpzoP2IoKeAUnCIMIMg8CMkiQQSYZFFAuMfv88axITJOwk6y1\nf3ut9X2/Xvu1h6y98myG9ezf85tARERERERERERERERERERERERERERERERERERERKqlN/A2MA/4\nqeNYKvITYKfrIERE4mQiMDLA878PZNfwvZ2Bf/h0LpFaq+M6AJGAZWGthcKAzt8cSADFNXx/f2Ca\nT+cSqbWE6wBEAnYu8CzQHugKdAdOBRZgCeMCYAxwNtAF+CEwB2gKHAKme+e4HBgF5ABTgPOBgcD1\n2EV8SpljRwFXAL/2fscD2AV/DLDIO+Z5YD0wGfgNcFq5cz3vxd8WuAb4ECs1jQfe9M57J7Dai7Ub\nMBroAFwLzPQ+7/+u5Z+fiEik3AE84j0egn0zf917ngA+9R4PAnoCr3jPjwXWYBf/lthFFqAX8Lcy\n538Ju/jinfv0MseeAvyrd66PgBO914cC47CW+qpKzlUawxLgBO/5NCwBANzHkT6Sq7AE1BQoApp4\nr9+LSDWpfCRRl499gweYin27L/0Wfh520QV4B0sMk73nnYFdwHvYxfcF7/UBwLve44R33ELv+TTg\nOuAZ73lj7/0jsZbJF97r7YGDWIthQSXnArgEWA7sBY4BGgI7sD6HGzmSwPK9mC4HNnrnuQr4a6V/\nKiKVUFKQKMvBvv0XlnmtH9aZC1ZmeR640Ht+PjDDe/xTrOwDkAfMLnPMdGAw0I4j3/Sv9O67YiOd\nwC7Oy7w41nmv1QcuBR4E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e42yg\nkV8nDuuCeClPbguRWcAe10EEYBtHRjrsx77ZnOouHN8c9O7rYl9SdjuMxS8tsMEfTxL+ddHKitJn\nAUsAvbHqAkAxsM+vk4c1KaQyMU4yTyusNTTPcRx+qIMlu+1YeWyl23B88RBwO1DiOhAfJYH3gAXA\n9Y5j8UtrYCfwNLAIeIIjLddaC2tSSLoOQKqtIVYDvRVrMYRdCVYWawH0AfKdRlN7FwI7sNp7lL5Z\n98S+iAwFbsK+YYddNjZS87+9+wPAnX6dPKxJYQvWgVmqJdZakMyUA0wAXgDecByL3/YB/w84x3Ug\ntdQDW4tsA/Ay0B94zmlE/vjcu98JvI6VnsNus3eb7z1/le8P54+lqE5ua0X0OpoT2MXlIdeB+Ogk\nbPQHQH1gJjDAXTi+60s0Rh81AI7zHh8LfAAMcheOr2YCpYv8FAB/dBdK5oja5LaXga3AIay/ZLTb\ncHzTCyu1LMFKE4ux4cRh1gmr5S7Bhjve7jYc3/UlGqOPWmN/R0uw4dBRuE6U+hespbAUeA0fRx+J\niIiIiIgwpU4EAAAAg0lEQVSIiIiIiIiIiIiIiIiIiIiISMZpBPzSdRAiIpIZWhG9mekiIlJD47Gl\ntRej5QdERGLvdNRSkJAK6yqpIpksSktPS8woKYiIyHeUFET89xVHlmwWCRUlBRH/fYGt3b8cdTSL\niIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhI3P0PCYhjjL2RazwAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#Example 8.5\n", + "#In the circuit of figure 8-25(a), Vin=200 mV peak to peak sine wave at 100 Hz.\n", + "#Briefly describe the operation of the circuit and draw the output waveform.\n", + "%matplotlib inline\n", + "from __future__ import division #to perform decimal division\n", + "import numpy as np\n", + "import math\n", + "import array\n", + "\n", + "\n", + "#Variable declaration\n", + "Vin=100*10**-3 # Input voltage\n", + "\n", + "\n", + "#calculation\n", + "\n", + "t=arange(0,math.pi,0.1) #time scale\n", + "v=Vin*np.sin(t)\n", + "\n", + "import matplotlib.pyplot as plt\n", + "plt.xlim(0,2*math.pi)\n", + "plt.ylim(0,0.1)\n", + "plt.plot(t,v)\n", + "ylabel('Vin')\n", + "xlabel('t')\n", + "title(r'$Input voltage$')\n", + "\n", + "\n", + "#result\n", + "plt.show()" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9._Specialixed_IC_Applications.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9._Specialixed_IC_Applications.ipynb deleted file mode 100644 index 117f377b..00000000 --- a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9._Specialixed_IC_Applications.ipynb +++ /dev/null @@ -1,813 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "# Chapter 9: Specialixed IC Applications" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.1" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 31.6 kilo ohm\n", - "Resistance R3 is 3.27 kilo ohm\n", - "Resistance R1 is Open\n", - "Resistance R4 is 25.15 kilo ohm\n", - "Resistance R5 is 25.15 kilo ohm\n", - "Resistance R6 is 1.8 kilo ohm\n", - "Resistance R7 is 9.0 kilo ohm\n", - "Resistance R8 is 1.5 kilo ohm\n" - ] - } - ], - "source": [ - "#Example 9.1\n", - "#The FLT-U2 is to be used as a second order inverting Butterworth low pass filter\n", - "#with a dc gain of 5,cutoff frequency of 2 kHz and Q=10. Determine the values\n", - "#of the external components.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "dc_gain=5\n", - "f1=2*10**3 # Cutoff freq in Hz\n", - "Q=10 # Figure of merit\n", - "\n", - "\n", - "#calculation\n", - "R2=(316*10**3)/10 #Resistance R2\n", - "R3=(100*10**3)/((3.16*Q)-1)\n", - "R4=(5.03*10**7)/f1\n", - "R5=R4\n", - "R6=1.8*10**3 # Assumption\n", - "R7=dc_gain*R6\n", - "R8=(R6*R7)/(R6+R7)\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R1 is Open\"\n", - "print \"Resistance R4 is\",round(R4/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R5 is\",round(R5/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R6 is\",round(R6/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R7 is\",round(R7/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R8 is\",round(R8/10**3,2),\"kilo ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.2" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 100.0 kilo ohm\n", - "Resistance R3 is 2.96 kilo ohm\n", - "Resistance R1 is Open ohm\n", - "Resistance R4 is 10.0 kilo ohm\n", - "Resistance R5 is 10.0 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.2\n", - "#Using the FLT-U2, design a second order inverting Butterworth bandpass filter\n", - "#with centre frequency f1=5 kHz and Q=10.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "f1=5*10**3 # Center freq in Hz\n", - "Q=10 # Figure of merit\n", - "R2=100*10**3 # Constant for band-pass filter\n", - "\n", - "\n", - "#calculation\n", - "R3=(100*10**3)/((3.48*Q)-1)\n", - "R4=(5.03*10**7)/f1\n", - "R5=R4\n", - "\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R1 is Open\",\"ohm\"\n", - "print \"Resistance R4 is\",round(R4/10**3),\"kilo ohm\"\n", - "print \"Resistance R5 is\",round(R5/10**3),\"kilo ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.3" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 100.0 kilo ohm\n", - "Resistance R3 is 2.96 kilo ohm\n", - "Resistance R1 is Open ohm\n", - "Resistance R4 is 10.06 kilo ohm\n", - "Resistance R5 is 10.06 kilo ohm\n", - "Resistance R6 is 10.0 kilo ohm\n", - "Resistance R7 is 10.0 kilo ohm\n", - "Resistance R8 is 10.0 kilo ohm\n", - "Resistance R9 is 3.33 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.3\n", - "#Using the FLT-U2, design a notch filter with 5 kHz notch out frequency and\n", - "#Q=10.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "f1=5*10**3 # Center freq in Hz\n", - "Q=10 # Figure of merit\n", - "R2=100*10**3 # Constant for band-pass filter\n", - "\n", - "\n", - "#calculation\n", - "R3=(100*10**3)/((3.48*Q)-1)\n", - "R4=(5.03*10**7)/f1\n", - "R5=R4\n", - "R6=10*10**3 #Assumption\n", - "R7=R6\n", - "R8=R6\n", - "R9=(R6*R7*R8)/(R6*R7+R6*R8+R7*R8) #Since R6||R7||R8\n", - "\n", - "\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R1 is Open\",\"ohm\"\n", - "print \"Resistance R4 is\",round(R4/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R5 is\",round(R5/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R6 is\",round(R6/10**3),\"kilo ohm\"\n", - "print \"Resistance R7 is\",round(R7/10**3),\"kilo ohm\"\n", - "print \"Resistance R8 is\",round(R8/10**3),\"kilo ohm\"\n", - "print \"Resistance R9 is\",round(R9/10**3,2),\"kilo ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.4" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2 is 20.0 kilo ohm\n", - "Resistance R3 is 14.14 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.4\n", - "#Using the MF5,design a second order Butterworth lowpass filter with a cutoff\n", - "#frequency of 500Hz and a passband gain of -2. Assume that a 5,-5 V power supply\n", - "#and a CMOS clock are used.\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "f1=500 #Cut-off freq in Hz\n", - "Holp=-2 #Passband gain\n", - "R1=10*10**3 #Assumption\n", - "Q=0.707 #Figure of merit Q is fixed for second order butterworth LPF\n", - "#calculation\n", - "\n", - "R2=-R1*Holp #Using Holp=-R2/R1;\n", - "R3=Q*R2 #Using Q=R3/R2\n", - "\n", - "#result\n", - "print \"Resistance R2 is\",round(R2/10**3),\"kilo ohm\"\n", - "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.5" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Capacitance C is 1.0 micro Farad\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.5\n", - "#In the circuit of figure 9-16(a), Ra=10 Kilo ohm, the output pulse width\n", - "#tp=10 ms. Determine the value of C.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Ra=10*10**3 #Resistance in ohm\n", - "tp=10*10**-3 #Output pulse width\n", - "C=tp/(1.1*Ra)\n", - "\n", - "#calculation\n", - "C=tp/(1.1*Ra)\n", - "\n", - "#result\n", - "print \"Capacitance C is\",round(C*10**6),\"micro Farad\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 9.6" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance Ra is 54.55 kilo ohm\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.6\n", - "#The circuit of figure 9-16 (a) is to be used as a divide-by-2 network.\n", - "#The frequency of the input trigger signal is 2 kHz.If the value of C=0.01 uF\n", - "#What should be the value of Ra.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "f=2*10**3 #Freq of input trigger signal in Hz\n", - "C=0.01*10**-6\n", - "\n", - "#calculation\n", - "tp=1.2/f\n", - "Ra=tp/(1.1*C)\n", - "\n", - "#result\n", - "print \"Resistance Ra is\",round(Ra/10**3,2),\"kilo ohm\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 9.7" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Charging time of the capacitor is 0.42 ms\n", - "Discharging time of the capacitor is 0.27 ms\n", - "Freq of oscillation is 1.4 kHz\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.7\n", - "#In the astable multivibrator of figure 9-21(a), Ra=2.2 kilo ohm, Rb=3.9 kilo ohm\n", - "#and C=0.1 uF. Determine the pulse width tc, negative pulse width td and free\n", - "#running frequency fo.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Ra=2.2*10**3 # Resistance in ohm\n", - "Rb=3.9*10**3 # Resistance in ohm\n", - "C=0.1*10**-6 # capacitance in farad\n", - "\n", - "#calculation\n", - "tc=0.69*(Ra+Rb)*C # Charging time of the capacitor\n", - "td=0.69*Rb*C # Discharging time of the capacitor\n", - "T=tc+td\n", - "fo=1/T # Freq of oscillation\n", - "\n", - "\n", - "#result\n", - "print \"Charging time of the capacitor is\",round(tc*10**3,2),\"ms\"\n", - "print \"Discharging time of the capacitor is\",round(td*10**3,2),\"ms\"\n", - "print \"Freq of oscillation is\",round(fo/10**3,1),\"kHz\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.8" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Freq of free running ramp generator is 5.16 kHz\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.8\n", - "#Referring to the circuit of figure 9-24(a),determine the frequency of the free-\n", - "#running ramp generator if R is set at 10 kHz.\n", - "#Assume that Vbe=Vd1=0.7 V.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R=10*10**3 #Resistance in ohm\n", - "Vcc=5 #Supply voltage in volt\n", - "Vbe=0.7 #Base to emitter voltage in volt\n", - "C=0.05*10**-6 #Capacitance in farad\n", - "\n", - "#calculation\n", - "Ic=(Vcc-Vbe)/R #Collector current in ampere\n", - "fo=(3*Ic)/(Vcc*C)\n", - "\n", - "#result\n", - "print \"Freq of free running ramp generator is\",round(fo/10**3,2),\"kHz\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.9" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Free running frequency of VCO is 2.5 kHz\n", - "Lock range frequency of VCO is 1.0 kHz\n", - "Capture range frequency of VCO is 66.49 Hz\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.9\n", - "#Referring to the circuit of figure 9-33(a),determine the free-running frequency\n", - "#fout, the lock range fl and the capture range fc.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "R1=12*10**3 # Resistance in ohm\n", - "V_plus=10 # Supply voltage in volt\n", - "V_minus=-10 # Supply voltage in volt\n", - "C1=0.01*10**-6 # Capacitance in farad\n", - "C2=10*10**-6 # Capacitance in farad\n", - "\n", - "#calculation\n", - "fout=1.2/(4*R1*C1)\n", - "V=V_plus-V_minus\n", - "fl=(8*fout)/V\n", - "fc=math.sqrt(fl/(2*math.pi*3.6*10**3*C2))\n", - "\n", - "#result\n", - "print \"Free running frequency of VCO is\",round(fout/10**3,1),\"kHz\"\n", - "print \"Lock range frequency of VCO is\",round(fl/10**3),\"kHz\"\n", - "print \"Capture range frequency of VCO is\",round(fc,2),\"Hz\"\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.10" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R is 20.0 ohm\n", - "Output voltage Vo is 17.0 Volt\n", - "Min input voltage Vin is 19.0 Volt\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.10\n", - "#Using the 7805C voltage regulator , design a current source that will deliver\n", - "#a 0.25 A current to a 48 ohm, 10 W load.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Vr=5 #Voltage in volt\n", - "Il=0.25 #Load current in ampere\n", - "Rl=48 #Load resistance in ohm\n", - "dropout_volt=2 #Constant for IC7805C\n", - "\n", - "#calculation\n", - "R=Vr/Il #Approximate result sice Iq is negligible in the eq. Il=(Vr/Il)+Iq where Iq is quiescent current\n", - "Vl=Rl*Il\n", - "Vo=Vr+Vl\n", - "Vin=Vo+dropout_volt\n", - "\n", - "#result\n", - "print \"Resistance R is\",R,\"ohm\"\n", - "print \"Output voltage Vo is\",Vo,\"Volt\"\n", - "print \"Min input voltage Vin is\",Vin,\"Volt\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.11" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Resistance R2_min is 0.71 kilo ohm\n", - "Resistance R2_max is 2.03 kilo ohm\n", - "Therefore resistance should be varied from R2_min to R2_max values\n", - "To do this we take R2 as 3kohm potentiometer\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.11\n", - "#Design an adjustable voltage regulator to satisfy the following specifications\n", - "#Output voltage Vo= 5 to 12 V\n", - "#Output current Io= 1 A.\n", - "#Voltage regulator is LM317.\n", - "\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Vo_min=5 #Min output voltage in volt\n", - "Vo_max=12 #Max output voltage in volt\n", - "Vref=1.25 #Reference voltage in volt\n", - "Iadj=100*10**-6 #Adjustment pin current in ampere\n", - "R1=240 #Assumption\n", - "C2=1*10**-6 #Added to the circuit to improve transient response\n", - "C3=1*10**-6 #Added to the circuit to obtain high ripple rejection ratios\n", - "\n", - "#calculation\n", - "R2_min=R1*(Vo_min-Vref)/(Vref+Iadj*R1) #Using Vo_min=Vref*(1+R2/R1)+Iadj*R2\n", - "R2_max=R1*(Vo_max-Vref)/(Vref+Iadj*R1) #Using Vo_max=Vref*(1+R2/R1)+Iadj*R2\n", - "\n", - "#result\n", - "print \"Resistance R2_min is\",round(R2_min/10**3,2),\"kilo ohm\"\n", - "print \"Resistance R2_max is\",round(R2_max/10**3,2),\"kilo ohm\"\n", - "print \"Therefore resistance should be varied from R2_min to R2_max values\"\n", - "print \"To do this we take R2 as 3kohm potentiometer\"\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.12" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Sense current,Ipk is 1.0 A\n", - "Sense resistance,Rsc is 0.33 ohm\n", - "Constant K is 1.06\n", - "i.e, ton is K times of toff\n", - "OFF time period,toff is 24.27 us\n", - "ON time period,ton is 25.73 us\n", - "Inductance,L is 151.7 uH\n", - "Output capacitance,Co is 125.0 uF\n", - "Resistance R2 is 12.0 kilo ohm\n", - "Resistance R1 is 38.0 kilo ohm\n", - "efficiency is 81.0\n" - ] - } - ], - "source": [ - "\n", - "#Example 9.12\n", - "#Design a step down switching regulator according to the following\n", - "#specifications.\n", - "#Input voltage Vin= 12 V dc.\n", - "#Output voltage Vo= 5V at 500 m A maximum.\n", - "#Output ripple voltage Vripple= 50 mV or 1% of Vo\n", - "#Switching regulator :uA78S40.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Iomax=500*10**-3 # Max output current in ampere\n", - "Vo=5 # Output voltage in volt\n", - "Vd=1.25 # Voltage drop across the power diode in volt\n", - "Vin=12 # Input voltage in volt\n", - "Vs=1.1 # Output saturation voltage in volt\n", - "Vripple=50*10**-3 # Output ripple voltage in volt\n", - "Vref=1.245 # Reference voltage in volt\n", - "Vr2=1.2 # Voltage across resistance R2 in volt\n", - "\n", - "#calculation\n", - "Ipk=2*Iomax # Sense current in ampere\n", - "Rsc=0.33/Ipk # Sense resistance in ohm\n", - "K=(Vo+Vd)/(Vin-Vs-Vo) # K= ton/toff\n", - "f=20*10**3 # Assuming operating freq in Hz\n", - "T=1/f\n", - "toff=T/2.06 # Using ton+toff=T and substituting for ton\n", - "ton=1.06*toff\n", - "Ct=45*10**-5*toff # Oscillator timing capacitance in farad\n", - "L=((Vo+Vd)/Ipk)*toff # Inductance in henry\n", - "Co=Ipk*((ton+toff)/(8*Vripple)) # Output capacitance in farad\n", - "I2=0.1*10**-3 # Assuming the current through R2\n", - "R2=Vref/I2 # Resistance R2 in ohm\n", - "R2=12*10**3 # Taking approximate value\n", - "R1=(R2*(Vo-Vr2))/Vr2 # Using Vr2=(R1*Vo)/R1+R2, voltage divider rule\n", - "efficiency=((Vin-Vs+Vd)/Vin)*(Vo/(Vo+Vd))*100\n", - "\n", - "#result\n", - "print \"Sense current,Ipk is\",Ipk,\"A\"\n", - "print \"Sense resistance,Rsc is\",Rsc,\"ohm\"\n", - "print \"Constant K is\",round(K,2)\n", - "print \"i.e, ton is K times of toff\"\n", - "print \"OFF time period,toff is\",round(toff*10**6,2),\"us\"\n", - "print \"ON time period,ton is\",round(ton*10**6,2),\"us\"\n", - "print \"Inductance,L is\",round(L*10**6,2),\"uH\"\n", - "print \"Output capacitance,Co is\",round(Co*10**6,3),\"uF\"\n", - "print \"Resistance R2 is\",R2/10**3,\"kilo ohm\"\n", - "print \"Resistance R1 is\",R1/10**3,\"kilo ohm\"\n", - "print \"efficiency is\",efficiency\n" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "collapsed": true - }, - "source": [ - "## Example 9.13" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Sense current,Ipk is 6 A\n", - "Sense resistance,Rsc is 0.055 ohm\n", - "Constant K 1.06\n", - "i.e, ton is K times of toff\n", - "OFF time period,toff is 24.27 us\n", - "ON time period,ton is 25.73 us\n", - "Oscillator timing capacitance,Ct is 10.9 nF\n", - "Inductance,L is = %.8f H 25.28 uH\n", - "Output capacitance,Co is = %.7f F 0.75 milli Farad\n" - ] - } - ], - "source": [ - "#Example 9.13\n", - "#Upgrade the switching regulator in Example 9-12 to provide +5V at 3A.\n", - "#Use the same specifications given in example 9-12,except the output ratings.\n", - "\n", - "from __future__ import division #to perform decimal division\n", - "import math\n", - "\n", - "\n", - "#Variable declaration\n", - "Iomax=3 #Max output current in ampere\n", - "Vo=5 #Output voltage in volt\n", - "Vd=1.25 #Voltage drop across the power diode in volt\n", - "Vin=12 #Input voltage in volt\n", - "Vs=1.1 #Output saturation voltage in volt\n", - "Vripple=50*10**-3 #Output ripple voltage in volt\n", - "Vref=1.245 #Reference voltage in volt\n", - "Vr2=1.2 #Voltage across resistance R2 in volt\n", - "\n", - "#calculation\n", - "Ipk=2*Iomax #Sense current in ampere\n", - "Rsc=0.33/Ipk #Sense resistance in ohm\n", - "K=(Vo+Vd)/(Vin-Vs-Vo) #K= ton/toff\n", - "f=20*10**3 #Assuming operating freq in Hz\n", - "T=1/f\n", - "toff=T/2.06 #Using ton+toff=T and substituting for ton\n", - "ton=1.06*toff\n", - "Ct=45*10**-5*toff #Oscillator timing capacitance in farad\n", - "L=((Vo+Vd)/Ipk)*toff #Inductance in henry\n", - "Co=Ipk*((ton+toff)/(8*Vripple)) #Output capacitance in farad\n", - "\n", - "#result\n", - "print \"Sense current,Ipk is\",Ipk,\"A\"\n", - "print \"Sense resistance,Rsc is\",Rsc,\"ohm\"\n", - "print \"Constant K\",round(K,2)\n", - "print \"i.e, ton is K times of toff\"\n", - "print \"OFF time period,toff is\",round(toff*10**6,2),\"us\"\n", - "print \"ON time period,ton is\",round(ton*10**6,2),\"us\"\n", - "print \"Oscillator timing capacitance,Ct is\",round(Ct*10**9,1),\"nF\"\n", - "print \"Inductance,L is = %.8f H\",round(L*10**6,2),\"uH\"\n", - "print \"Output capacitance,Co is = %.7f F\",round(Co*10**3,5),\"milli Farad\"\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.6" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9_Specialixed_IC_Applications.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9_Specialixed_IC_Applications.ipynb new file mode 100644 index 00000000..117f377b --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/9_Specialixed_IC_Applications.ipynb @@ -0,0 +1,813 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 9: Specialixed IC Applications" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.1" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 31.6 kilo ohm\n", + "Resistance R3 is 3.27 kilo ohm\n", + "Resistance R1 is Open\n", + "Resistance R4 is 25.15 kilo ohm\n", + "Resistance R5 is 25.15 kilo ohm\n", + "Resistance R6 is 1.8 kilo ohm\n", + "Resistance R7 is 9.0 kilo ohm\n", + "Resistance R8 is 1.5 kilo ohm\n" + ] + } + ], + "source": [ + "#Example 9.1\n", + "#The FLT-U2 is to be used as a second order inverting Butterworth low pass filter\n", + "#with a dc gain of 5,cutoff frequency of 2 kHz and Q=10. Determine the values\n", + "#of the external components.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "dc_gain=5\n", + "f1=2*10**3 # Cutoff freq in Hz\n", + "Q=10 # Figure of merit\n", + "\n", + "\n", + "#calculation\n", + "R2=(316*10**3)/10 #Resistance R2\n", + "R3=(100*10**3)/((3.16*Q)-1)\n", + "R4=(5.03*10**7)/f1\n", + "R5=R4\n", + "R6=1.8*10**3 # Assumption\n", + "R7=dc_gain*R6\n", + "R8=(R6*R7)/(R6+R7)\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R1 is Open\"\n", + "print \"Resistance R4 is\",round(R4/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R5 is\",round(R5/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R6 is\",round(R6/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R7 is\",round(R7/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R8 is\",round(R8/10**3,2),\"kilo ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 100.0 kilo ohm\n", + "Resistance R3 is 2.96 kilo ohm\n", + "Resistance R1 is Open ohm\n", + "Resistance R4 is 10.0 kilo ohm\n", + "Resistance R5 is 10.0 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.2\n", + "#Using the FLT-U2, design a second order inverting Butterworth bandpass filter\n", + "#with centre frequency f1=5 kHz and Q=10.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "f1=5*10**3 # Center freq in Hz\n", + "Q=10 # Figure of merit\n", + "R2=100*10**3 # Constant for band-pass filter\n", + "\n", + "\n", + "#calculation\n", + "R3=(100*10**3)/((3.48*Q)-1)\n", + "R4=(5.03*10**7)/f1\n", + "R5=R4\n", + "\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R1 is Open\",\"ohm\"\n", + "print \"Resistance R4 is\",round(R4/10**3),\"kilo ohm\"\n", + "print \"Resistance R5 is\",round(R5/10**3),\"kilo ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.3" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 100.0 kilo ohm\n", + "Resistance R3 is 2.96 kilo ohm\n", + "Resistance R1 is Open ohm\n", + "Resistance R4 is 10.06 kilo ohm\n", + "Resistance R5 is 10.06 kilo ohm\n", + "Resistance R6 is 10.0 kilo ohm\n", + "Resistance R7 is 10.0 kilo ohm\n", + "Resistance R8 is 10.0 kilo ohm\n", + "Resistance R9 is 3.33 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.3\n", + "#Using the FLT-U2, design a notch filter with 5 kHz notch out frequency and\n", + "#Q=10.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "f1=5*10**3 # Center freq in Hz\n", + "Q=10 # Figure of merit\n", + "R2=100*10**3 # Constant for band-pass filter\n", + "\n", + "\n", + "#calculation\n", + "R3=(100*10**3)/((3.48*Q)-1)\n", + "R4=(5.03*10**7)/f1\n", + "R5=R4\n", + "R6=10*10**3 #Assumption\n", + "R7=R6\n", + "R8=R6\n", + "R9=(R6*R7*R8)/(R6*R7+R6*R8+R7*R8) #Since R6||R7||R8\n", + "\n", + "\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R1 is Open\",\"ohm\"\n", + "print \"Resistance R4 is\",round(R4/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R5 is\",round(R5/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R6 is\",round(R6/10**3),\"kilo ohm\"\n", + "print \"Resistance R7 is\",round(R7/10**3),\"kilo ohm\"\n", + "print \"Resistance R8 is\",round(R8/10**3),\"kilo ohm\"\n", + "print \"Resistance R9 is\",round(R9/10**3,2),\"kilo ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.4" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2 is 20.0 kilo ohm\n", + "Resistance R3 is 14.14 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.4\n", + "#Using the MF5,design a second order Butterworth lowpass filter with a cutoff\n", + "#frequency of 500Hz and a passband gain of -2. Assume that a 5,-5 V power supply\n", + "#and a CMOS clock are used.\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "f1=500 #Cut-off freq in Hz\n", + "Holp=-2 #Passband gain\n", + "R1=10*10**3 #Assumption\n", + "Q=0.707 #Figure of merit Q is fixed for second order butterworth LPF\n", + "#calculation\n", + "\n", + "R2=-R1*Holp #Using Holp=-R2/R1;\n", + "R3=Q*R2 #Using Q=R3/R2\n", + "\n", + "#result\n", + "print \"Resistance R2 is\",round(R2/10**3),\"kilo ohm\"\n", + "print \"Resistance R3 is\",round(R3/10**3,2),\"kilo ohm\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.5" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Capacitance C is 1.0 micro Farad\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.5\n", + "#In the circuit of figure 9-16(a), Ra=10 Kilo ohm, the output pulse width\n", + "#tp=10 ms. Determine the value of C.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Ra=10*10**3 #Resistance in ohm\n", + "tp=10*10**-3 #Output pulse width\n", + "C=tp/(1.1*Ra)\n", + "\n", + "#calculation\n", + "C=tp/(1.1*Ra)\n", + "\n", + "#result\n", + "print \"Capacitance C is\",round(C*10**6),\"micro Farad\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.6" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance Ra is 54.55 kilo ohm\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.6\n", + "#The circuit of figure 9-16 (a) is to be used as a divide-by-2 network.\n", + "#The frequency of the input trigger signal is 2 kHz.If the value of C=0.01 uF\n", + "#What should be the value of Ra.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "f=2*10**3 #Freq of input trigger signal in Hz\n", + "C=0.01*10**-6\n", + "\n", + "#calculation\n", + "tp=1.2/f\n", + "Ra=tp/(1.1*C)\n", + "\n", + "#result\n", + "print \"Resistance Ra is\",round(Ra/10**3,2),\"kilo ohm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.7" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Charging time of the capacitor is 0.42 ms\n", + "Discharging time of the capacitor is 0.27 ms\n", + "Freq of oscillation is 1.4 kHz\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.7\n", + "#In the astable multivibrator of figure 9-21(a), Ra=2.2 kilo ohm, Rb=3.9 kilo ohm\n", + "#and C=0.1 uF. Determine the pulse width tc, negative pulse width td and free\n", + "#running frequency fo.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Ra=2.2*10**3 # Resistance in ohm\n", + "Rb=3.9*10**3 # Resistance in ohm\n", + "C=0.1*10**-6 # capacitance in farad\n", + "\n", + "#calculation\n", + "tc=0.69*(Ra+Rb)*C # Charging time of the capacitor\n", + "td=0.69*Rb*C # Discharging time of the capacitor\n", + "T=tc+td\n", + "fo=1/T # Freq of oscillation\n", + "\n", + "\n", + "#result\n", + "print \"Charging time of the capacitor is\",round(tc*10**3,2),\"ms\"\n", + "print \"Discharging time of the capacitor is\",round(td*10**3,2),\"ms\"\n", + "print \"Freq of oscillation is\",round(fo/10**3,1),\"kHz\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.8" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Freq of free running ramp generator is 5.16 kHz\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.8\n", + "#Referring to the circuit of figure 9-24(a),determine the frequency of the free-\n", + "#running ramp generator if R is set at 10 kHz.\n", + "#Assume that Vbe=Vd1=0.7 V.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R=10*10**3 #Resistance in ohm\n", + "Vcc=5 #Supply voltage in volt\n", + "Vbe=0.7 #Base to emitter voltage in volt\n", + "C=0.05*10**-6 #Capacitance in farad\n", + "\n", + "#calculation\n", + "Ic=(Vcc-Vbe)/R #Collector current in ampere\n", + "fo=(3*Ic)/(Vcc*C)\n", + "\n", + "#result\n", + "print \"Freq of free running ramp generator is\",round(fo/10**3,2),\"kHz\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.9" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Free running frequency of VCO is 2.5 kHz\n", + "Lock range frequency of VCO is 1.0 kHz\n", + "Capture range frequency of VCO is 66.49 Hz\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.9\n", + "#Referring to the circuit of figure 9-33(a),determine the free-running frequency\n", + "#fout, the lock range fl and the capture range fc.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "R1=12*10**3 # Resistance in ohm\n", + "V_plus=10 # Supply voltage in volt\n", + "V_minus=-10 # Supply voltage in volt\n", + "C1=0.01*10**-6 # Capacitance in farad\n", + "C2=10*10**-6 # Capacitance in farad\n", + "\n", + "#calculation\n", + "fout=1.2/(4*R1*C1)\n", + "V=V_plus-V_minus\n", + "fl=(8*fout)/V\n", + "fc=math.sqrt(fl/(2*math.pi*3.6*10**3*C2))\n", + "\n", + "#result\n", + "print \"Free running frequency of VCO is\",round(fout/10**3,1),\"kHz\"\n", + "print \"Lock range frequency of VCO is\",round(fl/10**3),\"kHz\"\n", + "print \"Capture range frequency of VCO is\",round(fc,2),\"Hz\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.10" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R is 20.0 ohm\n", + "Output voltage Vo is 17.0 Volt\n", + "Min input voltage Vin is 19.0 Volt\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.10\n", + "#Using the 7805C voltage regulator , design a current source that will deliver\n", + "#a 0.25 A current to a 48 ohm, 10 W load.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Vr=5 #Voltage in volt\n", + "Il=0.25 #Load current in ampere\n", + "Rl=48 #Load resistance in ohm\n", + "dropout_volt=2 #Constant for IC7805C\n", + "\n", + "#calculation\n", + "R=Vr/Il #Approximate result sice Iq is negligible in the eq. Il=(Vr/Il)+Iq where Iq is quiescent current\n", + "Vl=Rl*Il\n", + "Vo=Vr+Vl\n", + "Vin=Vo+dropout_volt\n", + "\n", + "#result\n", + "print \"Resistance R is\",R,\"ohm\"\n", + "print \"Output voltage Vo is\",Vo,\"Volt\"\n", + "print \"Min input voltage Vin is\",Vin,\"Volt\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.11" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance R2_min is 0.71 kilo ohm\n", + "Resistance R2_max is 2.03 kilo ohm\n", + "Therefore resistance should be varied from R2_min to R2_max values\n", + "To do this we take R2 as 3kohm potentiometer\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.11\n", + "#Design an adjustable voltage regulator to satisfy the following specifications\n", + "#Output voltage Vo= 5 to 12 V\n", + "#Output current Io= 1 A.\n", + "#Voltage regulator is LM317.\n", + "\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Vo_min=5 #Min output voltage in volt\n", + "Vo_max=12 #Max output voltage in volt\n", + "Vref=1.25 #Reference voltage in volt\n", + "Iadj=100*10**-6 #Adjustment pin current in ampere\n", + "R1=240 #Assumption\n", + "C2=1*10**-6 #Added to the circuit to improve transient response\n", + "C3=1*10**-6 #Added to the circuit to obtain high ripple rejection ratios\n", + "\n", + "#calculation\n", + "R2_min=R1*(Vo_min-Vref)/(Vref+Iadj*R1) #Using Vo_min=Vref*(1+R2/R1)+Iadj*R2\n", + "R2_max=R1*(Vo_max-Vref)/(Vref+Iadj*R1) #Using Vo_max=Vref*(1+R2/R1)+Iadj*R2\n", + "\n", + "#result\n", + "print \"Resistance R2_min is\",round(R2_min/10**3,2),\"kilo ohm\"\n", + "print \"Resistance R2_max is\",round(R2_max/10**3,2),\"kilo ohm\"\n", + "print \"Therefore resistance should be varied from R2_min to R2_max values\"\n", + "print \"To do this we take R2 as 3kohm potentiometer\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.12" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sense current,Ipk is 1.0 A\n", + "Sense resistance,Rsc is 0.33 ohm\n", + "Constant K is 1.06\n", + "i.e, ton is K times of toff\n", + "OFF time period,toff is 24.27 us\n", + "ON time period,ton is 25.73 us\n", + "Inductance,L is 151.7 uH\n", + "Output capacitance,Co is 125.0 uF\n", + "Resistance R2 is 12.0 kilo ohm\n", + "Resistance R1 is 38.0 kilo ohm\n", + "efficiency is 81.0\n" + ] + } + ], + "source": [ + "\n", + "#Example 9.12\n", + "#Design a step down switching regulator according to the following\n", + "#specifications.\n", + "#Input voltage Vin= 12 V dc.\n", + "#Output voltage Vo= 5V at 500 m A maximum.\n", + "#Output ripple voltage Vripple= 50 mV or 1% of Vo\n", + "#Switching regulator :uA78S40.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Iomax=500*10**-3 # Max output current in ampere\n", + "Vo=5 # Output voltage in volt\n", + "Vd=1.25 # Voltage drop across the power diode in volt\n", + "Vin=12 # Input voltage in volt\n", + "Vs=1.1 # Output saturation voltage in volt\n", + "Vripple=50*10**-3 # Output ripple voltage in volt\n", + "Vref=1.245 # Reference voltage in volt\n", + "Vr2=1.2 # Voltage across resistance R2 in volt\n", + "\n", + "#calculation\n", + "Ipk=2*Iomax # Sense current in ampere\n", + "Rsc=0.33/Ipk # Sense resistance in ohm\n", + "K=(Vo+Vd)/(Vin-Vs-Vo) # K= ton/toff\n", + "f=20*10**3 # Assuming operating freq in Hz\n", + "T=1/f\n", + "toff=T/2.06 # Using ton+toff=T and substituting for ton\n", + "ton=1.06*toff\n", + "Ct=45*10**-5*toff # Oscillator timing capacitance in farad\n", + "L=((Vo+Vd)/Ipk)*toff # Inductance in henry\n", + "Co=Ipk*((ton+toff)/(8*Vripple)) # Output capacitance in farad\n", + "I2=0.1*10**-3 # Assuming the current through R2\n", + "R2=Vref/I2 # Resistance R2 in ohm\n", + "R2=12*10**3 # Taking approximate value\n", + "R1=(R2*(Vo-Vr2))/Vr2 # Using Vr2=(R1*Vo)/R1+R2, voltage divider rule\n", + "efficiency=((Vin-Vs+Vd)/Vin)*(Vo/(Vo+Vd))*100\n", + "\n", + "#result\n", + "print \"Sense current,Ipk is\",Ipk,\"A\"\n", + "print \"Sense resistance,Rsc is\",Rsc,\"ohm\"\n", + "print \"Constant K is\",round(K,2)\n", + "print \"i.e, ton is K times of toff\"\n", + "print \"OFF time period,toff is\",round(toff*10**6,2),\"us\"\n", + "print \"ON time period,ton is\",round(ton*10**6,2),\"us\"\n", + "print \"Inductance,L is\",round(L*10**6,2),\"uH\"\n", + "print \"Output capacitance,Co is\",round(Co*10**6,3),\"uF\"\n", + "print \"Resistance R2 is\",R2/10**3,\"kilo ohm\"\n", + "print \"Resistance R1 is\",R1/10**3,\"kilo ohm\"\n", + "print \"efficiency is\",efficiency\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 9.13" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sense current,Ipk is 6 A\n", + "Sense resistance,Rsc is 0.055 ohm\n", + "Constant K 1.06\n", + "i.e, ton is K times of toff\n", + "OFF time period,toff is 24.27 us\n", + "ON time period,ton is 25.73 us\n", + "Oscillator timing capacitance,Ct is 10.9 nF\n", + "Inductance,L is = %.8f H 25.28 uH\n", + "Output capacitance,Co is = %.7f F 0.75 milli Farad\n" + ] + } + ], + "source": [ + "#Example 9.13\n", + "#Upgrade the switching regulator in Example 9-12 to provide +5V at 3A.\n", + "#Use the same specifications given in example 9-12,except the output ratings.\n", + "\n", + "from __future__ import division #to perform decimal division\n", + "import math\n", + "\n", + "\n", + "#Variable declaration\n", + "Iomax=3 #Max output current in ampere\n", + "Vo=5 #Output voltage in volt\n", + "Vd=1.25 #Voltage drop across the power diode in volt\n", + "Vin=12 #Input voltage in volt\n", + "Vs=1.1 #Output saturation voltage in volt\n", + "Vripple=50*10**-3 #Output ripple voltage in volt\n", + "Vref=1.245 #Reference voltage in volt\n", + "Vr2=1.2 #Voltage across resistance R2 in volt\n", + "\n", + "#calculation\n", + "Ipk=2*Iomax #Sense current in ampere\n", + "Rsc=0.33/Ipk #Sense resistance in ohm\n", + "K=(Vo+Vd)/(Vin-Vs-Vo) #K= ton/toff\n", + "f=20*10**3 #Assuming operating freq in Hz\n", + "T=1/f\n", + "toff=T/2.06 #Using ton+toff=T and substituting for ton\n", + "ton=1.06*toff\n", + "Ct=45*10**-5*toff #Oscillator timing capacitance in farad\n", + "L=((Vo+Vd)/Ipk)*toff #Inductance in henry\n", + "Co=Ipk*((ton+toff)/(8*Vripple)) #Output capacitance in farad\n", + "\n", + "#result\n", + "print \"Sense current,Ipk is\",Ipk,\"A\"\n", + "print \"Sense resistance,Rsc is\",Rsc,\"ohm\"\n", + "print \"Constant K\",round(K,2)\n", + "print \"i.e, ton is K times of toff\"\n", + "print \"OFF time period,toff is\",round(toff*10**6,2),\"us\"\n", + "print \"ON time period,ton is\",round(ton*10**6,2),\"us\"\n", + "print \"Oscillator timing capacitance,Ct is\",round(Ct*10**9,1),\"nF\"\n", + "print \"Inductance,L is = %.8f H\",round(L*10**6,2),\"uH\"\n", + "print \"Output capacitance,Co is = %.7f F\",round(Co*10**3,5),\"milli Farad\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/chapter1.ipynb b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/chapter1.ipynb new file mode 100644 index 00000000..67f9bd3d --- /dev/null +++ b/Op-Amps_&_Linear_Integrated_Circuits_by_Ramakant_Gaykwad/chapter1.ipynb @@ -0,0 +1,220 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 1: Introduction to Operational Amplifiers" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 1.1_a" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collector current Ic1 is 0.39 mA\n", + "Voltage Vc1 is 3.38 V\n", + "Voltage Ve4 is 2.68 V\n", + "Current Ie4 is 0.297 mA\n", + "Current Ic5 is 0.297 mA\n", + "Voltage Vc5 is 4.87 V\n", + "Voltage Ve6 is 4.17 V\n", + "Current Ie6 is 0.678 mA\n", + "Voltage Ve7 is 4.87 V\n", + "Current I1 is 2.82 mA\n", + "Current Ie8 is 2.82 mA\n", + "Voltage Ve8 at the output terminal is -0.35 V\n" + ] + } + ], + "source": [ + "\n", + "\n", + "#Example 1.1_a\n", + "#The equivalent circuit of the Motorola op-amp MC 1435 is shown in Figure.No-1.2\n", + "#Determine the collector current in each transistor and the dc voltage at the\n", + "#output terminal\n", + "\n", + "#Variable declaration\n", + "Vcc=6 #Voltage in volts\n", + "Vbe5=0.7 #Voltage in volts\n", + "Vee=6 #Voltage in volts\n", + "Vbe3=6.7 #Voltage in volts\n", + "Vbe6=0.7 #Voltage in volts\n", + "Vbe7=0.7 #Voltage in volts\n", + "Rc1=6.7*10**3 #Resistance in ohms\n", + "Ic1=0 #initialization\n", + "\n", + "#Calculation\n", + "Vc1=Vcc-Rc1*Ic1\n", + "Ve4=Vc1-Vbe5\n", + "I4=(Ve4+Vee)/(9.1*10**3+5.5*10**3)\n", + "Vb3=5.5*10**3*I4-Vee\n", + "Ve3=Vb3-Vbe3\n", + "Ie3=(Ve3+Vbe3)/3.3*10**3\n", + "Ic1=1.08*10**-3/2.765 #Since Ie3=2*Ic1\n", + "Vc1=Vcc-Rc1*Ic1\n", + "Ve4=Vc1-Vbe5\n", + "Ie4=(Ve4+Vee)/(29.2*10**3)\n", + "Ic5=Ie4\n", + "Vc5=Vcc-3.8*10**3*Ic5\n", + "Ve6=Vc5-Vbe6\n", + "Ie6=(Ve6+Vee)/(15*10**3)\n", + "Ve7=Ve6+Vbe7\n", + "I1=(Vcc-Ve7)/400\n", + "Ie8=I1\n", + "Ve8=-Vee+2*10**3*Ie8\n", + "\n", + "#Result\n", + "print \"Collector current Ic1 is\",round(Ic1*10**3,2),\"mA\"\n", + "print \"Voltage Vc1 is\",round(Vc1,2),\"V\" \n", + "print \"Voltage Ve4 is\",round(Ve4,2),\"V\"\n", + "print \"Current Ie4 is\",round(Ie4*10**3,3),\"mA\"\n", + "print \"Current Ic5 is\",round(Ic5*10**3,3),\"mA\"\n", + "print \"Voltage Vc5 is\",round(Vc5,2),\"V\"\n", + "print \"Voltage Ve6 is\",round(Ve6,2),\"V\"\n", + "print \"Current Ie6 is\",round(Ie6*10**3,3),\"mA\"\n", + "print \"Voltage Ve7 is\",round(Ve7,2),\"V\"\n", + "print \"Current I1 is\",round(I1*10**3,2),\"mA\"\n", + "print \"Current Ie8 is\",round(Ie8*10**3,2),\"mA\"\n", + "print \"Voltage Ve8 at the output terminal is\",round(Ve8,2),\"V\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 1.1_b" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Voltage gain of the dual-input,balanced output-differential amplifier is 82.55\n", + "Voltage gain of the dual-input,unbalanced output-differential amplifier is 22.6\n", + "Overall gain of the op-amp is 1866.34\n" + ] + } + ], + "source": [ + "\n", + "\n", + "#Example 1.1_b, Figure.No-1.2\n", + "#Calculate the Voltage gain of the opamp\n", + "\n", + "#Variable decclaration\n", + "Ie1=0.39*10**-3 #Current in amps\n", + "Ie4=0.298*10**-3 #Current in amps\n", + "Ie6=0.678*10**-3 #Current in amps\n", + "Rc1=6.7*10**3 #Resistance in ohms\n", + "Rc5=3.8*10**3 #Resistance in ohms\n", + "beta_ac=150\n", + "\n", + "#Calculation\n", + "re1=(25*10**-3)/Ie1\n", + "re2=re1\n", + "re4=(25*10**-3)/Ie4\n", + "re5=re4\n", + "re6=(25*10**-3)/Ie6\n", + "k=(Rc1*2*beta_ac*re4)/(Rc1+2*beta_ac*re4)\n", + "Ad1=k/re1\n", + "k1=(Rc5*beta_ac*(re6+15*10**3))/(Rc5+beta_ac*(re6+15*10**3))\n", + "Ad2=k1/(2*re5)\n", + "Ad=Ad1*Ad2\n", + "\n", + "#Result\n", + "print \"Voltage gain of the dual-input,balanced output-differential amplifier is\",round(Ad1,2)\n", + "print \"Voltage gain of the dual-input,unbalanced output-differential amplifier is\",round(Ad2,1)\n", + "print \"Overall gain of the op-amp is\",round(Ad,2)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Example 1.1_c" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input resistance Ri is 19.23 kilo ohms\n" + ] + } + ], + "source": [ + "\n", + "#Example 1.1_c, Figure.No-1.2\n", + "#Determine the Input resistance of the opamp\n", + "\n", + "#Variable declaration\n", + "beta_ac=150\n", + "re1=64.1 #Resistance in ohms\n", + "\n", + "#calculation\n", + "Ri=2*beta_ac*re1\n", + "\n", + "#result\n", + "print \"Input resistance Ri is\",round(Ri/10**3,2),\"kilo ohms\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_10_Photonic_Switching_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_10_Photonic_Switching_1.ipynb new file mode 100644 index 00000000..2a6ea95f --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_10_Photonic_Switching_1.ipynb @@ -0,0 +1,114 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:a03a3b7968d9327e0b73ac4683b6d150414c90b5fda64b6ce3343147627ad978" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 10 :Photonic Switching" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 10.1 , Page no:183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "Xx=-30; #crosstalk in dB\n", + "L=0.3; #typical value\n", + "N=5; #no. of switches Nb+Nc\n", + "\n", + "#CALCULATIONS\n", + "SXR=Xx-L*(N)-10*math.log10(5*(10**(-L*N/10))/N); #Signal power to noise power in dB\n", + "\n", + "#RESULTS\n", + "print\"Minimum and maximum SXR values=\",round(SXR,5),\"dB\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Minimum and maximum SXR values= -30.0 dB\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 10.2 , Page no:183" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "PB=40; #power budget in dB\n", + "x=-30; #crosstalk in dB assumed\n", + "N=4; #no. of switches \n", + "Lin=1; #insertion loss of in dB\n", + "Linw=Lin*N; #worst case insertion loss of in dB\n", + "Lc=2; #worst case connector loss in dB\n", + "\n", + "#CALCULATIONS\n", + "L=Linw+2*Lc; #total power lost in the worst case signal path in dB\n", + "Power_margin=PB-L; #power margin in dB\n", + "K=0;\n", + "for i in range (0,4):\n", + " K=K+(((-1)**(i+1))*(10**(-x/10))**(i+1));\n", + "\n", + "SbyN=10*math.log10(K); #Signal power to noise power in dB\n", + "\n", + "#RESULTS\n", + "print\"Signal power to noise power =\",round(SbyN,5),\"dB\";\n", + "print\"Power Margin =\",round(Power_margin,5),\"dB\";\n", + "print\"The Textbook answer is wrong\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Signal power to noise power = 119.99566 dB\n", + "Power Margin = 32.0 dB\n", + "The Textbook answer is wrong\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_11_Fiber_Optic_Communication_System_Design_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_11_Fiber_Optic_Communication_System_Design_1.ipynb new file mode 100644 index 00000000..14212a8a --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_11_Fiber_Optic_Communication_System_Design_1.ipynb @@ -0,0 +1,157 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:106ebd0e2b44efcf94072d54202d1d7a4e2614b448d73ea29f7bb8fab9f8d8ac" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 11 :Fiber Optic Communication System Design" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.1 , Page no:191" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "BW=7; #bandwidth in MHz\n", + "SNR=60; #signal to noise ratio in dB\n", + "Pin=0; #Launched power in dBm\n", + "Trise_source=20; #risetime at source LED in ns\n", + "delta_lambda=20; #spectra width in nm\n", + "lambda1=850; #operating wavelength in nm\n", + "c=2.998*10**5; #velocity of light in Km/sec\n", + "R=0.3; #Detector PIN FET responsivity in A/W\n", + "Cdiode=3; #diode capacitance in pf\n", + "trise_detector=1; #risetime at detector in ns\n", + "S=-30; #sensitivity in dbm\n", + "Lsplice=0.2; #splice loss in dB/connector\n", + "NA=0.2; #numerical aperture for GI/MM\n", + "n1=1.46; #refractive index of core\n", + "A=2; #attenuation in dB/Km\n", + "Ls=3; #loss due to source in dB\n", + "Ld=1; #loss due to detector in dB\n", + "Psm=5; #system margin in dB\n", + "c=3*10**8; #velocity of light in m/s\n", + "\n", + "#CALCULATIONS\n", + "Available_power=Pin-S; #available power in dB\n", + "Total_loss=Ls+Ld+Psm;\n", + "Power_left=Available_power-Total_loss; #power left in dB\n", + "L=(Power_left+Lsplice)/(Lsplice/2+2);\n", + "tmod=L*10**3*(NA**2)/(2*c*n1); #modal dispersion in s\n", + "Bit_rate=1/tmod; #bit rate in bps\n", + "\n", + "#RESULTS\n", + "print\"Maximum permissible link length is =\",round(L,5),\"Km\";\n", + "print\"Maximum permissible bit rate is =\",round(Bit_rate/10**6,5),\"Mbps\"; #division by 10^6 to convert the unit from bps to Mbps\n", + "print\"the answer is different because of rounding off \";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum permissible link length is = 10.09524 Km\n", + "Maximum permissible bit rate is = 2.16934 Mbps\n", + "the answer is different because of rounding off \n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 11.2 , Page no:193" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "BW=7; #bandwidth in MHz\n", + "SNR=60; #signal to noise ratio in dB\n", + "Pin=0; #Launched power in dBm\n", + "Trise_source=4; #risetime at source LED in ns\n", + "delta_lambda=1; #spectra width in nm\n", + "lambda1=1300; #operating wavelength in nm\n", + "c=2.998*10**5; #velocity of light in Km/sec\n", + "R=0.3; #Detector PIN FET responsivity in A/W\n", + "Cdiode=3; #diode capacitance in pf\n", + "trise_detector=5; #risetime at detector in ns\n", + "F=2.1; #amplifier noise figure in dB\n", + "Camp=2; #amplifier capacitance in pf\n", + "L=2; #minimum link length in Km\n", + "Lsplice=0.5; #splice loss in dB/connector\n", + "NA=0.22; #numerical aperture for GI/MM\n", + "BWGI=600; #GI/MM fiber bandwidth in MHz F3dB_optical\n", + "Te=630; #temperate in Kelvin\n", + "K=(1.38064852 *10)-23; #boltzman constant in m2 kg s-2 K-1\n", + "\n", + "#CALCULATIONS\n", + "Rload=1/(2*3.14*(Cdiode+Camp)*BW)*10**6; #maximum load resistance in ohm Actual value\n", + "Rload1=4300; #approximated value in ohm\n", + "BWRx=1/(2*3.14*(Cdiode+Camp)*Rload1); #receiver BW in Hz\n", + "SbyN=10**(SNR/10); #SNR in normal scale\n", + "Pmin1=math.log10(math.sqrt((SbyN*4*(-K)*Te*BW)/(0.5*Rload1*R**2)))*10; #input power in W\n", + "L1=Pmin1/0.2; #power budget limited link length in Km\n", + "Trise_required=(0.35/BW)*10**3; #Bandwith budgetting rise time required is rise time required in ns//multiplication by 10^3 to convert msec to ns\n", + "Trise_receiver=2.19*Rload1*(Cdiode+Camp)*10**-3; #rise time of receiver in ns//multiplication by 10^3 to convert msec to ns\n", + "Trise_fiber=math.sqrt(Trise_required**2-Trise_receiver**2-Trise_source**2); #fiber dispersion in ns\n", + "#for GI\n", + "f3dB_electrical=0.71*BWGI; #3dB elctrical BW in MHzKm\n", + "t_intra_modal=1; #intra modal dispersion in ns/Km\n", + "t_inter_modal=3; #intermodal dispersion in ns/Km\n", + "t_fiber_GI=math.sqrt(t_intra_modal**2+t_inter_modal**2); #rise time of fiber in ns/Km\n", + "L2=Trise_fiber/t_fiber_GI; #link length in Km\n", + "\n", + "#RESULTS\n", + "print\"Maximum permissible link length is =\",round(L1,5),\"fKm\";\n", + "print\"Maximum permissible link length for GI is =\",round(L2,5),\"fKm\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum permissible link length is = 223.08248 fKm\n", + "Maximum permissible link length for GI is = 5.16723 fKm\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_13_Video_Transmission_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_13_Video_Transmission_1.ipynb new file mode 100644 index 00000000..97a60d22 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_13_Video_Transmission_1.ipynb @@ -0,0 +1,70 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:00c6a05eb1b7f76c8458bd70cc847159e546b118d5f531a8484e83f219596b33" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 13 :Video Transmission" + ] + }, + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Example 13.1 , Page no:221" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "Sigma_s=0.1; #source dispersion inns\n", + "Sigma_D=0.1; #detector dispersion in ns\n", + "Sigma_F=0.05; #fiber dispersion in ns\n", + "bitrate=622; #bitrate in Mbps\n", + "STM_rate=250; #4 channel VSB PCM\n", + "Power_margin=30; #power margin in dB\n", + "system_margin=6; #system margin in dB\n", + "Average_loss=0.6; #average loss in dB/Km\n", + "\n", + "#CALCULATIONS\n", + "Sigma_max=STM_rate/bitrate; #max dispersion allowed\n", + "L2=math.sqrt((Sigma_max-Sigma_s**2-Sigma_D**2)/(Sigma_F**2)); #dispersion limited maximum length in Km\n", + "L1=(Power_margin-system_margin)/Average_loss; #Attenuation limited length in km\n", + "\n", + "#RESULTS\n", + "print\"Since dispersion limited maximum length is less than Attenuation limited length \\nso present system length limit is =\",round(L2,5),\"Km\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Since dispersion limited maximum length is less than Attenuation limited length \n", + "so present system length limit is = 12.36009 Km\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_14_Data_Communication_and_LAN_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_14_Data_Communication_and_LAN_1.ipynb new file mode 100644 index 00000000..13ad7088 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_14_Data_Communication_and_LAN_1.ipynb @@ -0,0 +1,71 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:2838bbe02648527892e8b6745bd94b44f8499ccf59681bed9d9da7884f56ab55" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 14 :Data Communication and LAN" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 14.1 , Page no:256" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "N=256; #no. of nodes\n", + "Lc=0.25; #loss per coup;er in dB\n", + "Power_margin=30; #power margin in dB\n", + "system_margin=6; #system margin in dB\n", + "Average_loss=0.6; #average loss in dB/Km\n", + "TxRX_powergain=32; #transmitter to receiver power gain in dB\n", + "Avg_Tr_loss=0.5; #average transmitter loss in dB/Km\n", + "\n", + "#CALCULATIONS\n", + "Nc=math.log(N,2); #since 2x2 couplers are used\n", + "Ns=N/2; #each stage coupler\n", + "T_Nc=Nc*Ns; #total no. of couplers\n", + "Total_Lc=Nc*Lc; #total coupler loss in dB\n", + "Permissible_loss=TxRX_powergain-Total_Lc; #permissible cable loss in dB\n", + "L=Permissible_loss/Avg_Tr_loss; #Transmission distance in Km\n", + "\n", + "#RESULTS\n", + "print\"Transmission distance =\",round(L,5),\"Km\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Transmission distance = 60.0 Km\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_16_Soliton_Communication_Systems_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_16_Soliton_Communication_Systems_1.ipynb new file mode 100644 index 00000000..44663412 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_16_Soliton_Communication_Systems_1.ipynb @@ -0,0 +1,240 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37145a7d5c9413e47141fcac3731b50a1e8a0e120a030d9641fe16885549adff" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 16 :Soliton Communication Systems" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.1 , Page no:325" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=850; #operating wavelength in nm\n", + "Beta2=-1; #dispersion regime ps^2/Km\n", + "Gama=2; #nonlinearity in /W-Km\n", + "TFWHM=10; #fundamental soliton width in ps\n", + "\n", + "#CALCULATIONS\n", + "To=TFWHM/1.763; #pulse width in ps\n", + "Ppeak=1/(Gama*(To**2)); #peak power in W\n", + "\n", + "#RESULTS\n", + "print\"Peak power required to maintain fundamental soliton=\",round(Ppeak*10**3,5),\"mW\"; #multiplication by 10^3 is to convert the unit from w to mW" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Peak power required to maintain fundamental soliton= 15.54084 mW\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.2 , Page no:325" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=1.55; #operating wavelength in um\n", + "Beta2=-1; #dispersion regime ps^2/Km\n", + "B=10; #bitrate in Gb/s\n", + "two_qo=12; #separation between two neighbouring solitons in normalized units\n", + "\n", + "#CALCULATIONS\n", + "LT=3.14*math.exp(two_qo/2)/(8*(two_qo/2)**2*abs(Beta2)*10**-24)/(B**2*(10**18)); #distance transmission limit in Km\n", + "\n", + "#RESULTS\n", + "print\"For 10Gb/s bit rate , transmission distance is limited to =\",round(LT,5),\"Km\"; \n", + "print\"the answer is different because of rounding off \";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "For 10Gb/s bit rate , transmission distance is limited to = 43984.94485 Km\n", + "the answer is different because of rounding off \n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.3 , Page no:325" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "alpha=0.2; #fiber loss in dB/Km\n", + "LA=50; #Amplifier spacing in Km\n", + "\n", + "#CALCULATIONS\n", + "G=(alpha*LA); #gain in fiber\n", + "PbyPo=G*math.log(G)/(G-1); #Multiple of power required by single soliton\n", + "\n", + "#RESULTS\n", + "print\"Multiple of power required by single soliton =\",round(PbyPo,5); \n", + "print\"the answer is slightly varing due to rounding error\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Multiple of power required by single soliton = 2.55843\n", + "the answer is slightly varing due to rounding error\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.4 , Page no:326" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=1.55; #operating wavelength in um\n", + "LA=50; #Amplifier spacing in Km\n", + "qo=6; #Half of separation between two neighbouring solitons in normalized units\n", + "Beta2=-1; #dispersion regime ps^2/Km\n", + "\n", + "#CALCULATIONS\n", + "B=1/(4*(qo)**2*abs(Beta2)); #bandwidth in THz\n", + "\n", + "#RESULTS\n", + "print\"Communication Link bitrate is limited to =\",round(B*10**3,5),\"GHz\"; #Multiplication by 10^3 to convert unit fron THz to GHz\n", + "print\"he answer is wrong\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Communication Link bitrate is limited to = 6.94444 GHz\n", + "he answer is wrong\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 16.5 , Page no:326" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "LT=10000; #Transmission distance in Km\n", + "alpha=0.2; #fiber loss in dB/Km\n", + "lambda1=1.55*10**-6; #operating wavelength in m\n", + "Gama=2; #nonlinearity in /W-Km\n", + "LA=50; #Amplifier spacing in Km\n", + "D=1; #dispersion parameter ps/(Km-nm)\n", + "FG=3.518; #Fiber gain factor\n", + "fj=0.1; #timing jitter factor\n", + "h=6.62607004 * 10-34; #planck's constant in m2 kg / s\n", + "nsp=2; #spontaneous emission factor\n", + "qo=6; #Half of separation between two neighbouring solitons in normalized units\n", + "\n", + "#CALCULATIONS\n", + "B1=((9*3.14*fj**2*LA)/(nsp*FG*qo*lambda1*h*Gama*D*10**-3)); #variable converting la\n", + "B2=B1**(1/3); #variable\n", + "B=B2/LT; #bandwidth in THz\n", + "\n", + "#RESULTS\n", + "print\"Communication Link bitrate is limited to =\",round(B*10**3,5),\"Gb/s\"; #Multiplication by 10^3 to convert unit fron THz to GHz\n", + "print\"the answer is wrong\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Communication Link bitrate is limited to = 14.9581 Gb/s\n", + "the answer is wrong\n" + ] + } + ], + "prompt_number": 5 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_2_Light_propagation.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_2_Light_propagation.ipynb new file mode 100644 index 00000000..6b76d31d --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_2_Light_propagation.ipynb @@ -0,0 +1,430 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:ecb4a660cffeba7656eb6246a1449db6c8c72da3bba8b0e98af9dd5a901644f7" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 2:Light propagation in optical fiber" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.1 , Page no:30" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "ncore=1.46; #refractive index of core\n", + "nclad=1; #refractive index of cladding\n", + "c=3e5; #velocity of light in Km/s\n", + "L=1; #length of path in Km\n", + "\n", + "#CALCULATIONS\n", + "NA=math.sqrt(ncore**2-nclad**2); #Numerical aperture\n", + "delt_tau_by_L=(NA**2)/(2*c*ncore); #multipath pulse broadening in s/Km\n", + "delt_tau=delt_tau_by_L*L; #bandwidth distance product Hz\n", + "BL=(1/delt_tau)*L; #bandwidth distance product Hz\n", + "#case-2\n", + "ncore1=1.465; #refractive index of core\n", + "nclad1=1.45; #refractive index of cladding\n", + "NA1=math.sqrt(ncore1**2-nclad1**2); #Numerical aperture\n", + "delt_tau_by_L1=(NA1**2)/(2*c*ncore1); #multipath pulse broadening in s/m\n", + "BL1=(1/delt_tau_by_L1)*L; #bandwidth distance product Hz\n", + "\n", + "#RESULTS\n", + "print\"Numerical aperture=\",round(NA,5); #The answers vary due to round off error\n", + "print\"\\nMultipath pulse broadening=\",round(delt_tau_by_L*1e9,5),\"ns/Km\"; #The answer provided in the textbook is wrong//multiplication by 1e9 to convert s/Km to ns/Km \n", + "print\"\\nBandwidth distance product=\",round(BL*1e-6,5),\"GHz \"; #The answer provided in the textbook is wrong//multiplication by 1e-6 to convert Hz to MHz\n", + "print\"\\n\\nNumerical aperture=\",round(NA1,5);\n", + "print\"\\nMultipath pulse broadening=\",round(delt_tau_by_L1*1e9,5),\"ns/Km\"; #The answer provided in the textbook is wrong//multiplication by 1e9 to convert s/Km to ns/Km \n", + "print\"\\nBandwidth distance product=\",round(BL1*1e-9,5),\"GHz \"; #The answer provided in the textbook is wrong//multiplication by 1e-6 to convert Hz to GHz" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Numerical aperture= 1.06377\n", + "\n", + "Multipath pulse broadening= 1291.78082 ns/Km\n", + "\n", + "Bandwidth distance product= 0.77413 GHz \n", + "\n", + "\n", + "Numerical aperture= 0.20911\n", + "\n", + "Multipath pulse broadening= 49.74403 ns/Km\n", + "\n", + "Bandwidth distance product= 0.0201 GHz \n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.2 , Page no:30" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lamda1=0.7; #wavelength in um\n", + "lamda2=1.3; #wavelength in um\n", + "lamda3=2; #wavelength in um\n", + "\n", + "#CALCULATIONS\n", + "f_lambda1=(303.33*(lamda1**-1)-233.33); #equation for lambda1\n", + "f_lambda2=(303.33*(lamda2**-1)-233.33); #equation for lambda2\n", + "f_lambda3=(303.33*(lamda3**-1)-233.33); #equation for lambda3\n", + "\n", + "#RESULTS\n", + "print\"Material dispersion at Lambda 0.7um=\",round(f_lambda1,5);\n", + "print\"\\nMaterial dispersion at Lambda 1.3um=\",round(f_lambda2,5); #The answers vary due to round off error\n", + "print\"\\nMaterial dispersion at Lambda 2um=\",round(f_lambda3,5); #The answers vary due to round off error\n", + "print\"\\nIts is a standard silica fiber\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Material dispersion at Lambda 0.7um= 199.99857\n", + "\n", + "Material dispersion at Lambda 1.3um= 0.00077\n", + "\n", + "Material dispersion at Lambda 2um= -81.665\n", + "\n", + "Its is a standard silica fiber\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.3 , Page no:32" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "ncore=1.505; #refractive index of core\n", + "nclad=1.502; #refractive index of cladding\n", + "V=2.4; #v no. for single mode \n", + "lambda1=1300e-9; #operating wavelength in m\n", + "\n", + "#CALCULATIONS\n", + "NA=math.sqrt(ncore**2-nclad**2); #numerical aperture\n", + "a=V*(lambda1)/(2*3.14*NA); #dimension of fiber core in m\n", + "\n", + "#RESULTS\n", + "print\"The numarical aperture =\",round(NA,5);\n", + "print\"\\n Dimension of fiber core =\",round(a*1e6,5),\"um\"; #multiplication by 1e6 to convert unit from m to um" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The numarical aperture = 0.09498\n", + "\n", + " Dimension of fiber core = 5.23079 um\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.4 , Page no:33" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "V=2; #v no. for single mode \n", + "a=4; #radius of fiber in um\n", + "\n", + "#CALCULATIONS\n", + "w=a*(0.65+1.619*V**(-3/2)+2.87*V**-6); #effective mode radius in um\n", + "\n", + "#RESULTS\n", + "print\"Effective mode radius =\",round(w,5),\"um\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Effective mode radius = 5.06899 um\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.6 , Page no:34" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "m=0; #for dominant mode\n", + "v=0; #for dominant mode\n", + "n1=1.5; #refractive index of core\n", + "delta=0.01; #core clad index difference\n", + "a=5; #fiber radius in um\n", + "lambda1=1.3; #wavelength of operation in um\n", + "\n", + "#CALCULATIONS\n", + "k0=(2*3.14/lambda1); #constant in /m\n", + "beta=math.sqrt((k0**2)*(n1**2)-(2*k0*n1*math.sqrt(2*delta)/a)); #propagation constant in rad/um\n", + "\n", + "#RESULTS\n", + "print\"Propagation constant=\",round(beta,5),\"rad/um\"; #The answers vary due to round off error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Propagation constant= 7.21781 rad/um\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.8 , Page no:34" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "M=1000; #modes supported\n", + "lambda1=1.3; #operating wavelength in um\n", + "n1=1.5; #refractive index of core\n", + "n2=1.48; #refractive index of cladding\n", + "\n", + "#CALCULATIONS\n", + "V=math.sqrt(2*M); #normalised frequency V no.\n", + "NA=math.sqrt(n1**2-n2**2); #numerical apperture\n", + "R=lambda1*V/(2*3.14*NA); #radius of fiber in um\n", + "\n", + "#RESULTS\n", + "print\"Core Radius=\",round(R,5),\"um\"; #The answer provided in the textbook is wrong" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Core Radius= 37.92063 um\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.9 , Page no:35" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=1.3; #wavelength of operation in um\n", + "n1=1.5; #refractive index of core\n", + "n2=1.48; #refractive index of cladding\n", + "k0=2*3.14/lambda1; #constant in /m\n", + "\n", + "#CALCULATIONS\n", + "#case-1\n", + "b=0.5; #normalized propagation constant\n", + "k0=2*3.14/lambda1; #constant\n", + "beta=k0*math.sqrt(n2**2+b*(n1**2-n2**2)); #propagation constant\n", + "\n", + "#case-2\n", + "#given \n", + "lambda1=1.3; #wavelength of operation in um\n", + "n1=1.5; #refractive index of core\n", + "n2=1.48; #refractive index of cladding\n", + "k0=2*3.14/lambda1; #constant in /m\n", + "b=0.5; #normalized propagation constant\n", + "k0=2*3.14/lambda1; #constant\n", + "b1=(((n1+n2)/2)**2-n2**2)/(n1**2-n2**2); #normalized propagation constant\n", + "\n", + "#case-3\n", + "#given \n", + "lambda1=1.3; #wavelength of operation in um\n", + "n1=1.5; #refractive index of core\n", + "n21=1.0; #refractive index of cladding\n", + "k0=2*3.14/lambda1; #constant in /m\n", + "b=0.5; #normalized propagation constant\n", + "k0=2*3.14/lambda1; #constant\n", + "beta1=k0*math.sqrt(n21**2+b*(n1**2-n21**2)); #propagation constant\n", + "\n", + "#RESULTS\n", + "print\"Propagation constant=\",round(beta,5),\"rad/um\"; #The answers vary due to round off error\n", + "print\"\\nPropagation constant=\",round(b1,5); #The answers vary due to round off error\n", + "print\"\\nPropagation constant=\",round(beta1,5),\"rad/um\"; #The answers vary due to round off error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Propagation constant= 7.19801 rad/um\n", + "\n", + "Propagation constant= 0.49832\n", + "\n", + "Propagation constant= 6.15805 rad/um\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2.10 , Page no:35" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "#case-1\n", + "n1=1.49; #refractive index of core\n", + "n2=1.46; #refractive index of cladding\n", + "c=3*10**5; #speed of light in Km/s\n", + "t1=n1/c; #time delay for one traveling along axis in s/Km\n", + "t2=(n1**2/n2)/c; #time delay for one traveling along path that is totally reflecting at the first interface in s/km\n", + "\n", + "#case-2\n", + "n11=1.47; #refractive index of core\n", + "n21=1.46; #refractive index of cladding\n", + "c1=3*10**5; #speed of light in Km/s\n", + "t11=n11/c1; #time delay for one traveling along axis in\n", + "t22=(n11**2/n21)/c1; #time delay for one traveling along path that is totally reflecting at the first interface\n", + "\n", + "\n", + "print\"time delay for traveling along axis =\",round(t1*1e6,5),\"us/Km\"; #multiplication by 1e6 to convert the unit from s/Km to us/Km\n", + "print\"\\ntime delay for traveling along path that is totally reflecting at the first interface =\",round(t2*1e6,5),\"us/Km\"; #multiplication by 1e6 to convert the unit from s/Km to us/Km\n", + "print\"\\ntime delay for traveling along axis =\",round(t11*1e6,5),\"us/Km\"; #multiplication by 1e6 to convert the unit from s/Km to us/Km\n", + "print\"\\ntime delay for traveling along path that is totally reflecting at the first interface =\",round(t22*1e6,5),\"us/Km\"; #multiplication by 1e6 to convert the unit from s/Km to us/Km\n", + "#The answer provided in the textbook is wrong it has got wrong unit" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time delay for traveling along axis = 4.96667 us/Km\n", + "\n", + "time delay for traveling along path that is totally reflecting at the first interface = 5.06872 us/Km\n", + "\n", + "time delay for traveling along axis = 4.9 us/Km\n", + "\n", + "time delay for traveling along path that is totally reflecting at the first interface = 4.93356 us/Km\n" + ] + } + ], + "prompt_number": 8 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_3_Fiber_optic_technology_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_3_Fiber_optic_technology_1.ipynb new file mode 100644 index 00000000..d0262694 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_3_Fiber_optic_technology_1.ipynb @@ -0,0 +1,103 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3df04a99ec890062e8934d583f5c6270e7132c2979982b64b64cd732ab54df6c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 3: Fiber optic technology" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.1 , Page no:38" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "PL=1; #length of preform in m\n", + "PD=25e-3; #daimeter of preform in m\n", + "OD=125e-6; #outer daimeter of optical fiber in m\n", + "\n", + "#CALCULATIONS\n", + "V=3.14*((PD/2)**2)*PL; #volume of Preform cylinder in m^3\n", + "L=V/(3.14*((OD)**2)); #Length of optical fiber in m\n", + "\n", + "#RESULTS\n", + "print\"Length of optical fiber=\",L/1e3,\"KM\"; #division by 1e3 to convert unit from m to Km" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Length of optical fiber= 10.0 KM\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.2 , Page no:41" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "NA1=0.2; #numerical apperture of fiber 1\n", + "NA2=0.1; #numerical apperture of fiber 2\n", + "D1=12; #core daimeter of fiber 1 in um\n", + "D2=6; #core daimeter of fiber 2 in um\n", + "\n", + "#CALCULATIONS\n", + "Losses=20*math.log10(NA1/NA2)+20*math.log10(D1/D2); #total fiber to fiber coupling losses due to NA mismatch and size mismatch\n", + "\n", + "#RESULTS\n", + "print\"total losses=\",round(Losses,5),\"db\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "total losses= 12.0412 db\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_4_Optical_sources_and_transmitter_circuits_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_4_Optical_sources_and_transmitter_circuits_1.ipynb new file mode 100644 index 00000000..d155c29c --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_4_Optical_sources_and_transmitter_circuits_1.ipynb @@ -0,0 +1,217 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6026027db1bd8b07217b92e949d13ab4629f8d5523088409bf01dbeddbd9764c" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 4: Optical sources and transmitter circuits" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 4.1 , Page no:67" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "tau_r=12*10**-9; #radiative recombination time in s\n", + "tau_nr=35*10**-9; #non-radiative recombination time in s\n", + "n1=3.5; #refractive index of semiconductor\n", + "n2=1; #refractive index of air\n", + "d=0.4*10**-6; #active later thickness in m\n", + "V=8; #recombination velocity\n", + "\n", + "#CALCULATIONS\n", + "eta_int=1/(1+(tau_r/tau_nr)); #internal quantum efficiency\n", + "tau=1/((tau_r**-1)+(tau_nr**-1)+(2*V/d)); #total recombination time in s\n", + "f=math.sqrt(3)/(2*3.14*tau); #bandwidth in Hz\n", + "F3=((n1-n2)**2/(n1+n2)**2); #fresnel reflection \n", + "eta_ext=eta_int*(1-F3); #external quantum efficiency\n", + "\n", + "#RESULTS\n", + "print\"internal quantum efficiency=\",round(eta_int,5); #The answers vary due to round off error\n", + "print\"total recombination time =\",round(tau*1e9,5),\"ns\"; #multiplication by 1e9 to convert unit from s to ns//The answers vary due to round off error\n", + "print\"bandwidth =\",round(f*1e-6,5),\"MHz\"; #multiplication by 1e-6 to convert unit from Hz to MHz///The answers vary due to round off error\n", + "print\"fresnel reflection=\",round(F3,5); #The answers vary due to round off error\n", + "print\"external quantum efficiency=\",round(eta_ext,5); #The answers vary due to round off error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "internal quantum efficiency= 0.74468\n", + "total recombination time = 6.58307 ns\n", + "bandwidth = 41.89598 MHz\n", + "fresnel reflection= 0.30864\n", + "external quantum efficiency= 0.51484\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 4.2 , Page no:67" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=1.3; #wavelength of laser in um\n", + "w=5; #active layer width in um\n", + "d=2; #active layer thickness in um\n", + "n1=3.5; #refractive index of core\n", + "n2=3.49; #refractive index of cladding\n", + "\n", + "#CALCULATIONS\n", + "k0=2*3.14/lambda1; #propagation constant\n", + "row=0.3; #confinement factor\n", + "neff=math.sqrt(n2**2+row); #effective refractive index\n", + "D=k0*d*(math.sqrt(n1**2-n2**2)); #normalized thickness\n", + "W=k0*w*(math.sqrt(neff**2-n2**2)); #normalized width// the answer given in textbook is wrong\n", + "Wlat=w*(math.sqrt(2*math.log(2)))*(0.32+2.1*(W**-1.5)); #Full width lateral at half maximum in um/ the answer given in textbook is wrong\n", + "Wtra=d*(math.sqrt(2*math.log(2)))*(0.32+2.1*(D**-1.5)); #Full width transverse at half maximum in um/ the answer given in textbook is wrong\n", + "\n", + "#RESULTS\n", + "print\"Normalized thickness=\",round(D,5); #The answers vary due to round off error\n", + "print\"Normalized width =\",round(W,5); #multiplication by 1e9 to convert unit from s to ns/// the answer given in textbook is wrong\n", + "print\"Full width lateral at half maximum =\",round(Wlat,5),\"um\"; #multiplication by 1e-6 to convert unit from Hz to MHz//// the answer given in textbook is wrong\n", + "print\"Full width transverse at half maximum =\",round(Wtra,5),\"um\"; #multiplication by 1e-6 to convert unit from Hz to MHz//// the answer given in textbook is wrong" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Normalized thickness= 2.55438\n", + "Normalized width = 13.22961\n", + "Full width lateral at half maximum = 2.14078 um\n", + "Full width transverse at half maximum = 1.96484 um\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 4.3 , Page no:68" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "Eg=1.3; #band gap energy in eV\n", + "l=0.4; #cavity length in mm\n", + "R1=0.5; #reflectivities on ends\n", + "R2=0.5; #reflectivities on ends\n", + "alpha=3; #loss coefficient in /mm\n", + "current_density=30*10**5; #current density in amp/m^2\n", + "area=0.2*0.5*10**-6; #laser active area in m^2\n", + "\n", + "#CALCULATIONS\n", + "lambda1=1.24/Eg; #emission wavelength in um\n", + "gth=alpha+(1/(2*l))*math.log(1/(R1*R2)); #Threshold Gain\n", + "threshold_current=current_density*area; #threshold current in A\n", + "\n", + "#RESULTS\n", + "print\"Emission wavelength =\",round(lambda1,5),\"nm\"; #multiplication by 1e3 to convert unit from um to nm\n", + "print\"Threshold Gain=\",round(gth,5),\"/mm\";\n", + "print\"Threshold current =\",round(threshold_current*1e3,5),\"mA\"; #for converting unit from A to mA" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Emission wavelength = 0.95385 nm\n", + "Threshold Gain= 4.73287 /mm\n", + "Threshold current = 300.0 mA\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 4.4 , Page no:68" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lamda=0.85*10**-6; #wavelength of operation in m\n", + "delta_lamda=36*10**-9; #spectral width in m\n", + "\n", + "#CALCULATIONS\n", + "fractional_width=delta_lamda/lamda; #fractional width \n", + "\n", + "#RESULTS\n", + "print\"Fractional width=\", round(fractional_width*100,5),\"percent\"; #multiplication by 100 to represent information in percentage" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Fractional width= 4.23529 percent\n" + ] + } + ], + "prompt_number": 4 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_5_Optical_Detectors_and_Receivers_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_5_Optical_Detectors_and_Receivers_1.ipynb new file mode 100644 index 00000000..f6b0ddb9 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_5_Optical_Detectors_and_Receivers_1.ipynb @@ -0,0 +1,260 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:698e21b6a02ede875d0d24c6eb736fae58475ecb5925eda9aae7ad7f79631651" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 5 :Optical Detectors and Receivers" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.1 , Page no:54" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "optical_power=10*10**-6; #optical power in W\n", + "R=0.5; #Responsivity in A/W\n", + "Is=optical_power*R; #shot noise current in A\n", + "Id=2*10**-9; #dark current in A\n", + "Rl=1e6; #Load resistance in ohm\n", + "B=1e6; #bandwidth in Hz\n", + "T=300; #Temperature in K\n", + "\n", + "#CALCULATIONS\n", + "K=1.38*10**-20; #Boltzman constant in m2 g s-2 K-1\n", + "q=1.609*10**-19; #charge of a electron in Coulombs\n", + "Ith=4*K*T*B/Rl; #Mean Square Thermal noise current in A\n", + "SNR=(Is**2)/(2*q*(Is+Id)+Ith); #Signal to noise ratio\n", + "\n", + "#RESULTS\n", + "print\"Thermal noise current=\",Ith*10**18,\"*10^-18A\";\n", + "print\"Shot noise current=\",Is*10**6,\"*10^-6A\";\n", + "print\"Signal to noise ratio=\",round(10*math.log10(SNR),5),\"dB\"; #The answers vary due to round off error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Thermal noise current= 16.56 *10^-18A\n", + "Shot noise current= 5.0 *10^-6A\n", + "Signal to noise ratio= 61.7888 dB\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.2 , Page no:54" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "eta=0.6; #quantum efficiency\n", + "Po=10*10**-6; #optical power in W\n", + "q=1.6*10**-19; #charge of an elctron in columb\n", + "lambda1=0.85*10**-6; #wavelength in m\n", + "h=6.6*10**-34; #planck's constant\n", + "c=3*10**8; #velocity of light in m/s\n", + "Rl=50; #load Resistance in ohm\n", + "\n", + "#CALCULATIONS\n", + "R=(q*eta*lambda1)/(h*c); #responsivity in A/W\n", + "I=R*Po; #current in A\n", + "V=Rl*I; #Voltage in V\n", + "\n", + "#RESULTS\n", + "print\"Responsivity=\",round(R,5);\n", + "print\"Current=\",round(I*10**6,5),\"uA\"; #multiplication by 1e6 to convert unit from A to uA\n", + "print\"Voltage=\",round(V*10**3,5),\"mV\"; #multiplication by 1e6 to convert unit from V to mV" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Responsivity= 0.41212\n", + "Current= 4.12121 uA\n", + "Voltage= 0.20606 mV\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.3 , Page no:54" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "tau_tr=2*1e-9; #transit time in sec\n", + "Rl=50; #load resistance in ohm\n", + "Cd=3*1e-12; #Junction capacitance in farad\n", + "\n", + "#CALCULATIONS\n", + "tau=2*Rl*Cd; #Circuit time constant in sec\n", + "f3dB=(0.35/tau_tr); #3dB bandwidth in Hz\n", + "\n", + "#RESULTS\n", + "print\"Circuit time constant =\",round(tau*1e9,5),\"ns\"; #multiplication by 1e9 to convert unit from s to ns\n", + "print\"3dB bandwidth=\",round(f3dB*1e-6,5),\"MHz\"; #multiplication by 1e-6 to convert unit from Hz to MHz" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Circuit time constant = 0.3 ns\n", + "3dB bandwidth= 175.0 MHz\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.4 , Page no:54" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "I=100*1e-9; #current in A\n", + "P=5*1e-9; #Incident power in W\n", + "h=6.6*10**-34; #planck's constant\n", + "c=3*10**8; #velocity of light in m/s\n", + "q=1.6*10**-19; #charge of an elctron in columb\n", + "eta=0.7; #quantum efficiency\n", + "\n", + "#CALCULATIONS\n", + "lambda1=1.5*10**-6; #wavelength in m\n", + "R=I/P; #APD responsivity in A/W\n", + "M= (R*h*c)/(q*eta*lambda1); #Multiplication factor\n", + "\n", + "#RESULTS\n", + "print\"Responsivity=\",round(R,5);\n", + "print\"Multiplication factor=\",round(M,5);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Responsivity= 20.0\n", + "Multiplication factor= 23.57143\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.5 , Page no:55" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "h=6.6*10**-34; #planck's constant\n", + "c=3*10**8; #velocity of light in m/s\n", + "q=1.6*10**-19; #charge of an elctron in columb\n", + "lambda1=0.85*10**-6; #//wavelength in m\n", + "I=0.1; #incident light intensity in mW/mm2\n", + "Iph1=10*1e-6; #photocurrent in pin in A\n", + "Iph2=500*1e-6; #photocurrent in APD in A\n", + "A=0.2; #detector area in mm2\n", + "\n", + "#CALCULATIONS\n", + "P=I*A; #Power seen by detector in mW\n", + "photons_generated=P*1e-3/(h*c/lambda1); #photons Generated\n", + "Rate=Iph1/q; #rate of carrier generation for pin\n", + "eta=Rate/photons_generated; #Quantum efficiency for pin\n", + "M=Iph2/Iph1; #Multiplication factor\n", + "\n", + "#RESULTS\n", + "print\"Quantum efficiency is=\",round(eta,5); #The answers vary due to round off error\n", + "print\"Avalanche multiple factor=\",round(M,5);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Quantum efficiency is= 0.72794\n", + "Avalanche multiple factor= 50.0\n" + ] + } + ], + "prompt_number": 5 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_6_Integrated_Optics_and_Photonic_Circuits_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_6_Integrated_Optics_and_Photonic_Circuits_1.ipynb new file mode 100644 index 00000000..8854b665 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_6_Integrated_Optics_and_Photonic_Circuits_1.ipynb @@ -0,0 +1,281 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:5718a3c42754aa5183942c38e5cab304783445145fa6697742fcee51eaa7862a" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 6 :Integrated Optics and Photonic Circuits" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.1 , Page no:121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lamda=1.55; #wavelength in um\n", + "n1=1.51; #Film refractive index\n", + "n2=1.5; #substrate refractive index\n", + "\n", + "#CALCULATIONS\n", + "t=(lamda)/(2*3.14*math.sqrt(n1*n1-n2*n2)); #Thickness of film in um\n", + "\n", + "#RESULTS\n", + "print\"Film thickness=\",round(t,5),\"um\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Film thickness= 1.42262 um\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.2 , Page no:121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "b=0.5; #normalized propoagation constant\n", + "lamda=1.3; #wavelength in um\n", + "n1=2.21; #Film refractive index\n", + "n2=2.2; #substrate refractive index\n", + "\n", + "#CALCULATIONS\n", + "V=(2*math.atan(b/(1-b))/(math.sqrt(1-b))); #normalized frequency\n", + "t=(lamda)/(2*3.14*math.sqrt(n1*n1-n2*n2)); #Thickness of film in um\n", + "\n", + "#RESULTS\n", + "print\"Normalized frequency=\",round(V,5);\n", + "print\"Film thickness=\",round(t,5),\"um\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Normalized frequency= 2.22144\n", + "Film thickness= 0.98574 um\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.3 , Page no:121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lamda=1.3; #wavelength in um\n", + "nf=1.51; #Film refractive index\n", + "t=1.5; #Film thickness in um\n", + "ns=1.5; #Waveguide refractive index\n", + "na=1; #refractive index of air\n", + "\n", + "#CALCULATIONS\n", + "V=(2*3.14*t/lamda)*math.sqrt(nf**2-ns**2); #V-number\n", + "a=(ns**2-na**2)/(nf**2-ns**2); #asymmetry parameter of the waveguide\n", + "Vc=math.atan(a**0.5); #cutoff V-number\n", + "\n", + "#RESULTS\n", + "print\"V-number=\",round(V,5);\n", + "print\"symmetry parameter of the waveguide=\",round(a,5);\n", + "print\"Cutoff V-number=\",round(Vc,5);" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "V-number= 1.25716\n", + "symmetry parameter of the waveguide= 41.52824\n", + "Cutoff V-number= 1.41685\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.4 , Page no:121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "delta_phi=3.14; \n", + "d=4*10**-6; #seperation between electrodes\n", + "n=2.2; #approximate inder in absence of voltage\n", + "r13=30*10**-12; #poper electro optic coefficient\n", + "row=0.4; #overlap factor\n", + "lambda1=1300*1e-9; #wavelength in m\n", + "L=8*10**-3; #length of electrode in m\n", + "\n", + "#CALCULATIONS\n", + "delta_n=delta_phi*lambda1/(2*3.14*L); #change in refractive index\n", + "V_pi=2*d*delta_n/(n**3*row*r13); #Voltahe required for using the device as BPSK modulator\n", + "\n", + "#RESULTS\n", + "print\"Voltage required for using the device as BPSK modulator=\",round(V_pi,5),\"V\";\n", + "print\"Voltage length product for unit length is=\",round(V_pi,5),\"VM\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage required for using the device as BPSK modulator= 5.08703 V\n", + "Voltage length product for unit length is= 5.08703 VM\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.5 , Page no:122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "d=10*10**-6; #seperation between electrodes\n", + "ne=2.2; #approximate inder in absence of voltage\n", + "r33=32*10**-12; #poper electro optic coefficient\n", + "lambda1=1*1e-6; #wavelength in m\n", + "L=5*10**-3; #length of electrode in m\n", + "\n", + "#CALCULATIONS\n", + "V=d*lambda1/(2*3.14*ne**3*r33*L); #Voltahe required for using the device as BPSK modulator\n", + "\n", + "#RESULTS\n", + "print\"Voltage required for using the device as BPSK modulator=\",round(V,5);\n", + "print\"The answer is different because of rounding off error\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage required for using the device as BPSK modulator= 0.93466\n", + "The answer is different because of rounding off error\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.6 , Page no:122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "delta_L=1/100; #error in effective interaction length\n", + "\n", + "#CALCULATIONS\n", + "P=(3.14/2*delta_L)**2; #cross talk power output in W\n", + "PdB=10*math.log10(P); #power in dB\n", + "\n", + "#RESULTS\n", + "print\"cross talk power output=\",round(P*10**4,5),\"x10^-4W\"; #multiplication by 10^4 to convert unit from W to 10^-4 W\n", + "print\"cross talk power output=\",round(PdB,5),\"dB\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "cross talk power output= 2.4649 x10^-4W\n", + "cross talk power output= -36.08201 dB\n" + ] + } + ], + "prompt_number": 6 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_7_Wavelength_Division_Multiplexing_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_7_Wavelength_Division_Multiplexing_1.ipynb new file mode 100644 index 00000000..40b7bf74 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_7_Wavelength_Division_Multiplexing_1.ipynb @@ -0,0 +1,75 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:62bc163fc204b240cfa5487557377289a5aa4455db07d8272b9a3297f9aa8608" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 7 :Wavelength Division Multiplexing" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 7.1 , Page no:128" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "delta_lambda=60e-9; #delta lambda in m\n", + "lambda1=1550e-9; #wavelength in m\n", + "c=3e8; #velocity of light in m/s\n", + "CS=75*1e9; #Channel spacing in Hz\n", + "Power_margin=30; #power margin in dB\n", + "Fiber_loss=0.25; #fiber loss in dB/Km\n", + "channel_capacity=2.5*1e9; #channel capacity STM-16 in bps\n", + "\n", + "#CALCULATIONS\n", + "delta_f=(c*delta_lambda)/lambda1**2; #frequency bandwidth in Hz\n", + "transmission_distance=Power_margin/Fiber_loss; #Transmission distance in Km\n", + "No_channels=(delta_f/CS); #No. of channels \n", + "distance_bitrate_product=No_channels*channel_capacity*transmission_distance; #distance bitrate product in bpsKm\n", + "\n", + "#RESULTS\n", + "print\"Frequency bandwidth =\",round(delta_f/1e12,5),\"x10^12Hz\"; #division by 1e12 to convert unit from Hz to 10^12 Hz\n", + "print\"Transmission distance =\",round(transmission_distance,5),\"Km\";\n", + "print\"No. of channels=\",round(No_channels);\n", + "print\"Distance bitrate product =\",round(distance_bitrate_product/1e12),\"Tbits/sKm\"; #division by 1e12 to convert unit from bits/sKm to Tbits/sKm" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency bandwidth = 7.4922 x10^12Hz\n", + "Transmission distance = 120.0 Km\n", + "No. of channels= 100.0\n", + "Distance bitrate product = 30.0 Tbits/sKm\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_8_Coherent_Optical_Communication_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_8_Coherent_Optical_Communication_1.ipynb new file mode 100644 index 00000000..472467ff --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_8_Coherent_Optical_Communication_1.ipynb @@ -0,0 +1,69 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4881bef53fd067703d64b9b5a3034e5d88b5acf7b3dec8a07e705aec8498dcff" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 8 :Coherent Optical Communication" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 8.1 , Page no:148" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "eta=0.8; #quantum efficiency of detection\n", + "Ps=2e-9; #received optical power in W\n", + "h=6.62*1e-34; #plancks constant\n", + "lambda1=1500*1e-9; #wavelength in m\n", + "c=3*1e8; #velocity of light in m/s\n", + "new=c/lambda1; #frequency in Hz\n", + "B=1e6; #Signal Bandwidth in Hz\n", + "\n", + "#CALCULATIONS\n", + "SNR=(eta*Ps)/(2*h*new*B); #signal to noise ratio\n", + "SNRdB=10*math.log10(SNR); #signal to noise ratio in dB)\n", + "\n", + "#RESULTS\n", + "print\"signal to noise ratio=\",round(SNR,5); #the answer in textbook is wrong\n", + "print\"signal to noise ratio=\",round(SNRdB,5),\"dB\"; #the answer in textbook is wrong" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "signal to noise ratio= 6042.29607\n", + "signal to noise ratio= 37.81202 dB\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_9_Optical_Amplifers_1.ipynb b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_9_Optical_Amplifers_1.ipynb new file mode 100644 index 00000000..a1571ca5 --- /dev/null +++ b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/Chapter_9_Optical_Amplifers_1.ipynb @@ -0,0 +1,170 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:d54371f73c2225fe34a3d32b817214b297a139cdb3c04a4600802c34c069acd1" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 9 :Optical Amplifiers" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.1 , Page no:164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "lambda1=1.3*1e-6; #wavelength in m\n", + "c=3*1e8; #velocity of light in m/s\n", + "SNRoutdB=30; #signal to noise ratio at outputin dB\n", + "SNRout=10**(SNRoutdB/10); #signal to noise ratio at output normal scale\n", + "new=c/lambda1; #frequency in Hz\n", + "h=6.6e-34; #plancks constant\n", + "P=0.5e-3; #Input power in W\n", + "NFdB=4; #noise figure in dB\n", + "\n", + "#CALCULATIONS\n", + "NF=10**(NFdB/10); #noise figure in normal scale\n", + "SNRin=NF*SNRout #signal to noise ratio at input normal scale\n", + "delta_Be=P/(2*h*new*SNRin); #receiver bandwidth in Hz\n", + "\n", + "#RESULTS\n", + "print\"Signal to noise ratio at Input=\",round(SNRin,5);\n", + "print\"Reciever bandwidth is=\",round(delta_Be/1e14,5),\"x10^14Hz\"; #division by 1e14 to convert the unit from Hz to 10^14 Hz\n", + "print\"The answer given in textbook is wrong\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Signal to noise ratio at Input= 2511.88643\n", + "Reciever bandwidth is= 0.00653 x10^14Hz\n", + "The answer given in textbook is wrong\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.2 , Page no:164" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "PASE=1e-3; #amplified spontaneous emission power in W\n", + "Gdb=20; #optical amplifier gain in dB\n", + "G=10**(Gdb/10); #optical amplifier gain in normal scale\n", + "delta_newbynew=5e-6; #fractional bandwidth\n", + "h=6.6e-34; #planck's constant\n", + "\n", + "#CALCULATIONS\n", + "ns=PASE/((G-1)*h/delta_newbynew); #noise factor\n", + "\n", + "#RESULTS\n", + "print\"noise factor is=\",round(ns/1e21,5),\"x10^21\"; #division by 1e21 to convert the unit from Hz to 10^21 Hz\n", + "print\"The answer given in textbook is wrong\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "noise factor is= 76.5228 x10^21\n", + "The answer given in textbook is wrong\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 9.3 , Page no:165" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from __future__ import division\n", + "\n", + "#initialisation of variables\n", + "L=50; #link length in Km\n", + "Fiber_loss=0.2; #fiber loss in dB/Km\n", + "Req_Gain=Fiber_loss*L; #required Gain\n", + "Fn1db=5; #Noise figure in dB\n", + "Fn2db=5; #Noise figure in dB\n", + "Fn3db=5; #Noise figure in dB\n", + "Fn1=10**(Fn1db/10); #Noise figure in normal scale for all amplifiers\n", + "Fn2=10**(Fn2db/10); #Noise figure in normal scale for all amplifiers\n", + "Fn3=10**(Fn3db/10); #Noise figure in normal scale for all amplifiers\n", + "G1=10**(Req_Gain/10); #gain in normal scale\n", + "G2=10**(Req_Gain/10); #gain in normal scale\n", + "\n", + "#CALCULATIONS\n", + "Fneff=Fn1+(Fn2/G1)+(Fn3/(G1*G2)); #Effective noise figure\n", + "SNRindb=30; #Signal to noise ratio at input in dB\n", + "SNRout=10**(SNRindb/10)/Fneff; #Signal to noise ratio at output in dB\n", + "SNRoutdb=10*math.log10(SNRout);\n", + "\n", + "#RESULTS\n", + "print\"Required Gain=\",round(Req_Gain,5);\n", + "print\"Effective noise figure=\",round(Fneff,5);\n", + "print\"Signal to noise ratio at output =\",round(SNRoutdb,5),\"dB\";" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Required Gain= 10.0\n", + "Effective noise figure= 3.51013\n", + "Signal to noise ratio at output = 24.54677 dB\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_2_1.png b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_2_1.png new file mode 100644 index 00000000..279df19f Binary files /dev/null and b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_2_1.png differ diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_3_1.png b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_3_1.png new file mode 100644 index 00000000..96f647ae Binary files /dev/null and b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_3_1.png differ diff --git a/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_4_1.png b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_4_1.png new file mode 100644 index 00000000..ab1f60da Binary files /dev/null and b/Optical_Fiber_Communication_by_A._Selvarajan,_S._Kar_and_T_Srinivas/screenshots/chapter_4_1.png differ -- cgit