summaryrefslogtreecommitdiff
path: root/sample_notebooks/MayankSahu
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commitc7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 (patch)
tree725a7d43dc1687edf95bc36d39bebc3000f1de8f /sample_notebooks/MayankSahu
parent62aa228e2519ac7b7f1aef53001f2f2e988a6eb1 (diff)
downloadPython-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.gz
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.bz2
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.zip
added books
Diffstat (limited to 'sample_notebooks/MayankSahu')
-rwxr-xr-xsample_notebooks/MayankSahu/Chapter1_.ipynb1
-rwxr-xr-xsample_notebooks/MayankSahu/Chapter5_.ipynb1
-rwxr-xr-xsample_notebooks/MayankSahu/Chapter5__1.ipynb1
3 files changed, 3 insertions, 0 deletions
diff --git a/sample_notebooks/MayankSahu/Chapter1_.ipynb b/sample_notebooks/MayankSahu/Chapter1_.ipynb
new file mode 100755
index 00000000..530c71c7
--- /dev/null
+++ b/sample_notebooks/MayankSahu/Chapter1_.ipynb
@@ -0,0 +1 @@
+{"nbformat_minor": 0, "cells": [{"source": "#Chapter1 : Concepts of electric current and Laws", "cell_type": "markdown", "metadata": {}}, {"source": "## Example1.1, Page number 4", "cell_type": "markdown", "metadata": {}}, {"execution_count": 1, "cell_type": "code", "source": "#variable declaration\nL =12 #meter\nA=0.01*10**-4 #m**2\nR=0.2 #ohm\n\n#calculation\np=R*A/L #specific resistance\n\n#result\nprint \"specific resistance = \" , p, \"ohm-metre\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "specific resistance = 1.66666666667e-08 ohm-metre\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.2, Page number 5", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "\n#variable declaration\na0=0.0043 \nt1=27 #degree celsius\nt2=40\nR1=1.5 #ohm\n\n#calculation\nR2=R1*(1+a0*t2)/(1+a0*t1) #ohm\n\n#result\nprint \"The resistance of armature winding at 40 degree celcius =\" , round(R2,3) ,\"ohm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "The resistance of armature winding at 40 degree celcius = 1.575 ohm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.3, Page number 13", "cell_type": "markdown", "metadata": {}}, {"execution_count": 3, "cell_type": "code", "source": "#variable decdlaration\nR1=5 #ohm \nR2=10\nR3=15\nV=120 #volt\n\n#calculation\nR=R1+R2+R3 #ohm\nI=V/R # ampere\nV1=I*R1 #volt\nV2=I*R2\nV3=I*R3\n\n#result\nprint \"Resistance = \" , R , \"ohm\"\nprint \"cureent = \" , I , \"amperes\"\nprint \"Voltage V1 = \" , V1 , \"volts\"\nprint \"Voltage V2 = \" , V2 , \"volts\"\nprint \"Voltage V3 = \" , V3 , \"volts\"\n\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Resistance = 30 ohm\ncureent = 4 amperes\nVoltage V1 = 20 volts\nVoltage V2 = 40 volts\nVoltage V3 = 60 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.4, Page number 14", "cell_type": "markdown", "metadata": {}}, {"execution_count": 4, "cell_type": "code", "source": "#varaiable declaration\nRab =(2.0*4.0)/(2+4) #ohms\nRbc =(6.0*8.0)/(6+8)\n\n#calculation\nRac = Rab+Rbc #ohms\n\n#result\nprint \"resistance across AC = \" , round(Rac,2) , \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "resistance across AC = 4.76 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.5, Page number 14", "cell_type": "markdown", "metadata": {}}, {"execution_count": 5, "cell_type": "code", "source": "#variable declaration\nRab=4 #ohm\nRbc=(12.0*8.0)/(12+8)\nRcd=(3.0*6.0)/(3+6)\n\n#calculation\nRad=Rab+Rbc+Rcd #ohm\n\n#result\nprint \"resistance across AC = \" , Rad, \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "resistance across AC = 10.8 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.6, Page number 15", "cell_type": "markdown", "metadata": {}}, {"execution_count": 6, "cell_type": "code", "source": "#variable declaration\nR1=8 #ohms\nR=6\n#calculations\nR2 = 48/2 # R = R1*R2/(R1+R2)\n\n#result\nprint \" Resistance R2 = \" , R2, \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Resistance R2 = 24 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.7, Page number 15", "cell_type": "markdown", "metadata": {}}, {"execution_count": 7, "cell_type": "code", "source": "#variable declaration\nI=12.0 #ampere\nR1=6.0 #ohms\nR2=8.0\n\n#calculations\nI1=I*R2/(R1+R2) #amperes\nI2=I*R1/(R1+R2)\n\n#result\nprint \"I1= \" , round(I1,3) , \"amperes\" \nprint \"I2= \" , round(I2,2) , \"amperes\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "I1= 6.857 amperes\nI2= 5.14 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.9, Page number 17", "cell_type": "markdown", "metadata": {}}, {"execution_count": 8, "cell_type": "code", "source": "#variable declaration\nR1=0.02 #ohms\nR2=0.03\nI = 10 #amperes\n\n#Calculations\nI1=(I*R2)/(R1+R2)\nI2=(I*R1)/(R1+R2)\n\n#result\nprint \" I1= \" , I1 , \"amperes \"\nprint \" I2= \" , I2 , \"amperes \" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " I1= 6.0 amperes \n I2= 4.0 amperes \n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.10, Page number 18", "cell_type": "markdown", "metadata": {}}, {"execution_count": 9, "cell_type": "code", "source": "#variable declaration\nV=200.0 #volts\nI=25.0 #amperes\nP1=1500.0 #watts\n\n#calculations \nR1=(V*V)/P1 #ohms\nR=V/I #total resistance\nR2=R*R1/(R1-R) #ohms\n\n#result\nprint \"R1 = \" ,round(R1,2) , \"ohms\" \nprint \"R2 = \" , round(R2,2) , \"ohms\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "R1 = 26.67 ohms\nR2 = 11.43 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.11, Page number 19", "cell_type": "markdown", "metadata": {}}, {"execution_count": 10, "cell_type": "code", "source": "#variable declaration\nV=100.0 #volts \nP=1500.0 #watts\n\n#calculations\nR=(V**2/P)/2 #ohms\nRa=R\nRb=R\nRc=R\nR1=((Ra*Rc)/(Ra+Rc))+Rb\nI=V/R1 #amperes\nI1=(I*Ra)/(Ra+Rc)\nI2=(I*Ra)/(Ra+Rc)\nPb=I*I*Ra #watts\nPa=I1*I1*Rb\nPc=I2*I2*Rc\n\n#result\nprint \"power dissipated in coil Pa = \" , round(Pa,2) , \"watts\"\nprint \"power dissipated in coil Pb = \" , round(Pb,2), \"watts\"\nprint \"power dissipated in coil Pc = \" , round(Pc,2) , \"watts\"\n\n#Round off error in book \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "power dissipated in coil Pa = 333.33 watts\npower dissipated in coil Pb = 1333.33 watts\npower dissipated in coil Pc = 333.33 watts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.12, Page number 20", "cell_type": "markdown", "metadata": {}}, {"execution_count": 11, "cell_type": "code", "source": "#variable declaration\nL=3600 #six lamp 1000 watt each for six days\nH=3000 # heater\nM=735.5 # single phase motor\nF=2400 #four fans 75W\nC=0.9 #cost of energy\n\n#Calculations\nT=L+H+M+F #total energy consumed in watt \nTE=T*30/1000\nB=TE*C #Bill amount in Rs\n\n#result\nprint \"Bill amount = Rs \" , round(B) \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Bill amount = Rs 263.0\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.18, Page number 34", "cell_type": "markdown", "metadata": {}}, {"execution_count": 12, "cell_type": "code", "source": "#variable declaration\nRry=4.0 #ohm\nRyb=1.0\nRbr=5.0\n\n#calculation\nRr=(Rbr*Rry)/(Rry+Rbr+Ryb)\nRy=(Rry*Ryb)/(Rry+Rbr+Ryb)\nRb=(Rbr*Ryb)/(Rry+Rbr+Ryb)\n\n#result\nprint \"Rr = \" , Rr , \"ohms\"\nprint \"Ry = \" , Ry , \"ohms\"\nprint \"Rb= \" , Rb , \"ohms\"\n\n#Value of Rr in book is printed wrong \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Rr = 2.0 ohms\nRy = 0.4 ohms\nRb= 0.5 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.19, Page number 34", "cell_type": "markdown", "metadata": {}}, {"execution_count": 13, "cell_type": "code", "source": "#variable declaration\nRr=2.0 #ohms\nRy=0.67\nRb=1.0\n\n#calculations\nRry=(Rr*Ry)+(Ry*Rb)+(Rb*Rr)/Rb\nRyb=((Rr*Ry)+(Ry*Rb)+(Rb*Rr))/Rr\nRbr=((Rr*Ry)+(Ry*Rb)+(Rb*Rr))/Ry\n\n#result\nprint \"Rry = \" , round(Rry) , \"ohms\"\nprint \"Ryb = \" , round(Ryb) , \"ohms\"\nprint \"Rbr = \" , round(Rbr) , \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Rry = 4.0 ohms\nRyb = 2.0 ohms\nRbr = 6.0 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.8", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} \ No newline at end of file
diff --git a/sample_notebooks/MayankSahu/Chapter5_.ipynb b/sample_notebooks/MayankSahu/Chapter5_.ipynb
new file mode 100755
index 00000000..7738b9ee
--- /dev/null
+++ b/sample_notebooks/MayankSahu/Chapter5_.ipynb
@@ -0,0 +1 @@
+{"nbformat_minor": 0, "cells": [{"source": "#Chapter5 : Electrical Machines", "cell_type": "markdown", "metadata": {}}, {"source": "##Example 5.1 , Page number 178", "cell_type": "markdown", "metadata": {}}, {"execution_count": 1, "cell_type": "code", "source": "#determine the induced emf in the armature\n\n#varaible declaration\nP=4 #poles\nA=2 #wave wound\nn=50 #number of slots\nSc=24 #slots/conductor\nN=600 #speed of armature \nF=10e-3 #webers\n\n#calculations\nZ=Sc*n #total conductor\nE=F*Z*N*P/(60*A) #emf induced\n\nprint \" emf induced E = \" , E , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced E = 240.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.2 , Page number 178", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "#determine the induced emf in the armature\n\n#variable declaration\nP=4 #poles\nA=4 #wave wound\nn=50 #number of slots\nSc=24 #slots/conductor\nN=600 #rpm \nF=10e-3 #webers\n\n#calculations\nZ=Sc*n;#total conductor\nE=F*Z*N*P/(60*A) #emf induced\n\n#result\nprint \"e.m.f induced E = \" , E, \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "e.m.f induced E = 120.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.3 , Page number 179", "cell_type": "markdown", "metadata": {}}, {"execution_count": 3, "cell_type": "code", "source": "#determine the speed\n\n#variable declaration\nP=6 #poles\nA1=2 #wave wound\nZ=780 #armature conductors\nF=12*10**-3 #webers \nE=400 #volt\nA2=6 #wave wound\n#calculation\nN=(E*60*A1)/(F*Z*P) #rpm\nN2=(E*60*A2)/(F*Z*P) #rpm\n\n#result\nprint \" Speed of the armature = \" , round(N,2) , \"rpm\"\nprint \" Speed when lap is wound = \" , round(N2,1) , \"rpm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Speed of the armature = 854.7 rpm\n Speed when lap is wound = 2564.1 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.4 , Page number 182", "cell_type": "markdown", "metadata": {}}, {"execution_count": 4, "cell_type": "code", "source": "#determine the emf induced\n\n#variable declaration\nR=0.5 #ohm\nRs=100.0 \nV=250.0 #volts\nP=10000.0 #watts\n\n#calculation\nI=P/V #ampere\nIs=V/Rs \nIa=I+Is \nEg=V+(R*Ia) #volts\n\n#result\nprint \" emf induced Eg = \" , Eg , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 271.25 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.5 , Page number 183", "cell_type": "markdown", "metadata": {}}, {"execution_count": 5, "cell_type": "code", "source": "#calculate the emf induced in the armature\n\n#variable declaration\nIl=200 #amperes\nVl=500 #volts\nRa=0.03 #ohm\nRs=0.015\nR=150\nBCD=2 #one volt per brush\n\n#calculation\nI=Vl/R #ampere\nIa=Il+I \nEg=Vl+(Ia*Ra)+(Ia*Rs)+BCD #volts\n\n#result\nprint \" emf induced Eg = \" , round(Eg,2) , \"volts\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 511.13 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.6 , Page number 184", "cell_type": "markdown", "metadata": {}}, {"execution_count": 6, "cell_type": "code", "source": "#calculate the emf induced in the armature\n\n#variable declaration\nI1=200 #ampere\nVl=500 #volts\nRa=0.03 #ohm\nRs=0.015\nIs=200 #ampere\nR=150 #ohm\n\n#calculation\nBCD=2 #one volt per brush\nI=(Vl+(Is*Rs))/R #ampere\nIa = I1 + I\nEg=Vl+(Ia*Ra)+(Ia*Rs)+BCD #volts\n\n#result\nprint \" emf induced Eg = \" , round(Eg,2) ,\"volts\"\n\n#Error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 511.15 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.7 , Page number 196", "cell_type": "markdown", "metadata": {}}, {"execution_count": 7, "cell_type": "code", "source": "#calculate the back emf induced on full load\n\n#variable declaration\nRa=0.5 #armature resistance\nRs=250 #shunt resistance\nVl=250 #line volt\nIl=40 #ampere\n\n#calculation\nIs=Vl/Rs #amperes\nIa=Il-Is\nEb=Vl-(Ia*Ra) #volts\n\n#result\nprint \"emf induced Eb = \", Eb, \"volts\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "emf induced Eb = 230.5 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.8 , Page number 196", "cell_type": "markdown", "metadata": {}}, {"execution_count": 8, "cell_type": "code", "source": "#find the power developed in circiut\n\n#variable declaration\nPl=20e3 #watts\nVl=200.0 #volts \nRa=0.05 #ohms\nR=150.0\n\n#calculation\nI=Vl/R #ampere\nIl=Pl/Vl\nIa=Il+I\nEg=Vl+(Ia*Ra) #volts\nP=Eg*Ia #watts\n\n#result\nprint \"power developed = \" , round(P,2) , \"watt\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "power developed = 20780.09 watt\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.9 , Page number 197", "cell_type": "markdown", "metadata": {}}, {"execution_count": 9, "cell_type": "code", "source": "#calculate the speed of the machine when running\n\n#variable declaration\nN1=1000 #speed of generator\nE1=205.06 #emf generator\nE2=195.06 #emf of motor\n\n#calculation\nN2=(E2*N1)/E1 #speed of generator\n\n#result\nprint\"speed of motor = \" , round(N2,2) ,\"rpm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "speed of motor = 951.23 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.10 , Page number 198", "cell_type": "markdown", "metadata": {}}, {"execution_count": 10, "cell_type": "code", "source": "#dtermine its speed when its take crnt 25 amps\n\n#variable declaration\nVl=250.0 #volts\nRa=0.05 #ohm\nR=0.02 #ohm\nIa=30.0 #ampere\nI1=30.0\nN1=400.0\nI2=25.0\n\n#calculation\nE1=Vl-(Ia*Ra)-(Ia*R) #volts\nN2=(N1*E1*I1)/(E1*I2) #rpm\n\n#result\nprint \"speed of motor = \" , round(N2,2) ,\"rpm\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "speed of motor = 480.0 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.11 , Page number 199", "cell_type": "markdown", "metadata": {}}, {"execution_count": 11, "cell_type": "code", "source": "#find the torque whn its take scurnt 60amprs\n\n#variable declaration\nVl=200 #volts\nIl=60 #amperes\nR=50 #ohm\nf=0.03 # flux \nZ=700 #armature conductors\nP=4 #pole\nA=2\n\n#calculation\nI=Vl/R # amperes\nIa=Il-I #amperes\nT=(0.159*f*Z*Ia*P)/A\n\n#result\nprint \" Torque = \" , round(T,2) , \"N-m\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Torque = 373.97 N-m\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.12 , Page number 214", "cell_type": "markdown", "metadata": {}}, {"execution_count": 12, "cell_type": "code", "source": "#calcute the num of prim turns and prim $sec current\n\n#variable declaration\nKVA = 50.0\nE1 = 6000.0 #volts\nE2 = 250.0 #volts\nN2 = 52.0 #number of turns\n\n#calculation\nN1=N2*E1/E2\nI2=KVA*1000/E2 #ampere\nI1=KVA*1000/E1 #ampere\n\n#result\nprint \" primary number of turns = \" , N1 , \"turns\"\nprint \" secondary current = \" , I2, \"amperes\"\nprint \" primary current = \" , round(I1,2), \"amperes\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " primary number of turns = 1248.0 turns\n secondary current = 200.0 amperes\n primary current = 8.33 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.13 , Page number 215", "cell_type": "markdown", "metadata": {}}, {"execution_count": 13, "cell_type": "code", "source": "#determine the emf induced in the secondry max value of flux density\n\n#calculation\nf=50 #Hz\nN1=350 #turns\nN2=800 #turns\nE1=400 #volts\nA=75e-4 #m**2\n\n#calculation\nE2=(N2*E1)/N1 #volts\nBm=E1/(4.44*f*A*N1) #Wb/m**2\n\n#result\nprint \" flux density = \" , round(Bm,3) , \"wb/m**2\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " flux density = 0.686 wb/m**2\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.14 , Page number 215", "cell_type": "markdown", "metadata": {}}, {"execution_count": 14, "cell_type": "code", "source": "import math\n\n#find the magnetic nd iron loss component of current\n\n#variable declaration\nE1=440 #volts\nE2=200 #volts\nI=0.2 #amperea\ncoso=0.18 #p.f.\n\n#calculation\nsino= math.sqrt(1-coso**2) \nIw=I*coso #ampere\nIu=I*sino #ampere\n\n#result\nprint \" Magnetising compenet of current = \" , round(Iw,3), \"amperes\"\nprint \" iron loss compenet of current = \" , round(Iu,4), \"amperes\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Magnetising compenet of current = 0.036 amperes\n iron loss compenet of current = 0.1967 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.15 , Page number 216", "cell_type": "markdown", "metadata": {}}, {"execution_count": 15, "cell_type": "code", "source": "#calculate the efficiency at loads\n\n#variable declaration\nKVA=20\nIl=350 #iron loss\nCl=400 #copper loss\nx=1 # fraction of load\npf=0.8 # at full load\npf1=0.4 #at half load\nx1=0.5 #fraction of load\n\n#calculation\nop=KVA*1000*x*pf\nop1=KVA*1000*x1*pf1\nTl=Il+(Cl*x*x)\nTl1=Il+(Cl*x1*x1)\nip=op+Tl\nip1=op1+Tl1\nn=op/ip*100\nn1=op1/ip1*100\n\n#result\nprint \"efficiency at half load = \" , round(n,2) \nprint \"efficiency at full load = \" , round(n1,2) \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "efficiency at half load = 95.52\nefficiency at full load = 89.89\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.16 , Page number 221", "cell_type": "markdown", "metadata": {}}, {"execution_count": 16, "cell_type": "code", "source": "#calculate the synchronous speed ,slip,frequncy induced emf\n\n#variable declaration\nf=50.0 #Hz\np=4 #poles \nN=1460.0 #rpm\n\n#calculation\nNs=120*f/p #rpm\ns=(Ns-N)/Ns #slip\nf1=(s*f) #Hz\n\n#result\nprint \"synchronous speed Ns = \" , Ns , \"rpm\"\nprint \"slip s = \" , round(s,3)\nprint \" Frequency of rotor induced emf f = \" , round(f1,2) , \"Hz\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "synchronous speed Ns = 1500.0 rpm\nslip s = 0.027\n Frequency of rotor induced emf f = 1.33 Hz\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.17 , Page number 222", "cell_type": "markdown", "metadata": {}}, {"execution_count": 17, "cell_type": "code", "source": "#determine the value of slip nd speed of motor\n\n#variable declaration\nP=6 #pole\nf=50 #Hz\nf1=1.5\n\n#calculation\nNs=120*f/P\ns=f1/f\nN=Ns*(1-s)\n\n#result\nprint \" speed of motor = \", N, \" RPM\"\nprint \" slip = \" , round(s,3)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " speed of motor = 970.0 RPM\n slip = 0.03\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.18 , Page number 222", "cell_type": "markdown", "metadata": {}}, {"execution_count": 18, "cell_type": "code", "source": "#calculate the numbers of poles ,slip at full load,frequncy rotor,speed of motor\n\n#variable declaration\nNs=1000.0 #rpm\nN=960\nf=50 #Hz\n\n#calculation\nP=120*f/Ns #synchronous speed\ns=(Ns-N)/Ns #slip \nf1=s*f #Hz\nN=Ns*(1-0.08) #speed of motor at 8% slip\n\n#result\nprint \" number of poles p = \" , P\nprint \" slip s = \" , round(s,2)\nprint \" Frequency of rotor emf f = \" , f , \"Hz\"\nprint \" Speed of motor at 8% slip N = \" , N , \"RPM\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " number of poles p = 6.0\n slip s = 0.04\n Frequency of rotor emf f = 50 Hz\n Speed of motor at 8% slip N = 920.0 RPM\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.19 , Page number 231", "cell_type": "markdown", "metadata": {}}, {"execution_count": 19, "cell_type": "code", "source": "#calculate the induced emf per phase\n\n#variable declaration\nf=50 #Hz\nP=16 #poles\nN=160 #rpm\nS=6 #slip\nF=0.025 #flux\n\n#calculation\nn=N*S #conductors\nZ=n/3 \ne=2.22*F*f*Z #rms value\n\n#result\nprint \"Induced emf per phase e = \" , e , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Induced emf per phase e = 888.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.8", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} \ No newline at end of file
diff --git a/sample_notebooks/MayankSahu/Chapter5__1.ipynb b/sample_notebooks/MayankSahu/Chapter5__1.ipynb
new file mode 100755
index 00000000..7738b9ee
--- /dev/null
+++ b/sample_notebooks/MayankSahu/Chapter5__1.ipynb
@@ -0,0 +1 @@
+{"nbformat_minor": 0, "cells": [{"source": "#Chapter5 : Electrical Machines", "cell_type": "markdown", "metadata": {}}, {"source": "##Example 5.1 , Page number 178", "cell_type": "markdown", "metadata": {}}, {"execution_count": 1, "cell_type": "code", "source": "#determine the induced emf in the armature\n\n#varaible declaration\nP=4 #poles\nA=2 #wave wound\nn=50 #number of slots\nSc=24 #slots/conductor\nN=600 #speed of armature \nF=10e-3 #webers\n\n#calculations\nZ=Sc*n #total conductor\nE=F*Z*N*P/(60*A) #emf induced\n\nprint \" emf induced E = \" , E , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced E = 240.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.2 , Page number 178", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "#determine the induced emf in the armature\n\n#variable declaration\nP=4 #poles\nA=4 #wave wound\nn=50 #number of slots\nSc=24 #slots/conductor\nN=600 #rpm \nF=10e-3 #webers\n\n#calculations\nZ=Sc*n;#total conductor\nE=F*Z*N*P/(60*A) #emf induced\n\n#result\nprint \"e.m.f induced E = \" , E, \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "e.m.f induced E = 120.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.3 , Page number 179", "cell_type": "markdown", "metadata": {}}, {"execution_count": 3, "cell_type": "code", "source": "#determine the speed\n\n#variable declaration\nP=6 #poles\nA1=2 #wave wound\nZ=780 #armature conductors\nF=12*10**-3 #webers \nE=400 #volt\nA2=6 #wave wound\n#calculation\nN=(E*60*A1)/(F*Z*P) #rpm\nN2=(E*60*A2)/(F*Z*P) #rpm\n\n#result\nprint \" Speed of the armature = \" , round(N,2) , \"rpm\"\nprint \" Speed when lap is wound = \" , round(N2,1) , \"rpm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Speed of the armature = 854.7 rpm\n Speed when lap is wound = 2564.1 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.4 , Page number 182", "cell_type": "markdown", "metadata": {}}, {"execution_count": 4, "cell_type": "code", "source": "#determine the emf induced\n\n#variable declaration\nR=0.5 #ohm\nRs=100.0 \nV=250.0 #volts\nP=10000.0 #watts\n\n#calculation\nI=P/V #ampere\nIs=V/Rs \nIa=I+Is \nEg=V+(R*Ia) #volts\n\n#result\nprint \" emf induced Eg = \" , Eg , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 271.25 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.5 , Page number 183", "cell_type": "markdown", "metadata": {}}, {"execution_count": 5, "cell_type": "code", "source": "#calculate the emf induced in the armature\n\n#variable declaration\nIl=200 #amperes\nVl=500 #volts\nRa=0.03 #ohm\nRs=0.015\nR=150\nBCD=2 #one volt per brush\n\n#calculation\nI=Vl/R #ampere\nIa=Il+I \nEg=Vl+(Ia*Ra)+(Ia*Rs)+BCD #volts\n\n#result\nprint \" emf induced Eg = \" , round(Eg,2) , \"volts\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 511.13 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.6 , Page number 184", "cell_type": "markdown", "metadata": {}}, {"execution_count": 6, "cell_type": "code", "source": "#calculate the emf induced in the armature\n\n#variable declaration\nI1=200 #ampere\nVl=500 #volts\nRa=0.03 #ohm\nRs=0.015\nIs=200 #ampere\nR=150 #ohm\n\n#calculation\nBCD=2 #one volt per brush\nI=(Vl+(Is*Rs))/R #ampere\nIa = I1 + I\nEg=Vl+(Ia*Ra)+(Ia*Rs)+BCD #volts\n\n#result\nprint \" emf induced Eg = \" , round(Eg,2) ,\"volts\"\n\n#Error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " emf induced Eg = 511.15 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.7 , Page number 196", "cell_type": "markdown", "metadata": {}}, {"execution_count": 7, "cell_type": "code", "source": "#calculate the back emf induced on full load\n\n#variable declaration\nRa=0.5 #armature resistance\nRs=250 #shunt resistance\nVl=250 #line volt\nIl=40 #ampere\n\n#calculation\nIs=Vl/Rs #amperes\nIa=Il-Is\nEb=Vl-(Ia*Ra) #volts\n\n#result\nprint \"emf induced Eb = \", Eb, \"volts\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "emf induced Eb = 230.5 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.8 , Page number 196", "cell_type": "markdown", "metadata": {}}, {"execution_count": 8, "cell_type": "code", "source": "#find the power developed in circiut\n\n#variable declaration\nPl=20e3 #watts\nVl=200.0 #volts \nRa=0.05 #ohms\nR=150.0\n\n#calculation\nI=Vl/R #ampere\nIl=Pl/Vl\nIa=Il+I\nEg=Vl+(Ia*Ra) #volts\nP=Eg*Ia #watts\n\n#result\nprint \"power developed = \" , round(P,2) , \"watt\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "power developed = 20780.09 watt\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.9 , Page number 197", "cell_type": "markdown", "metadata": {}}, {"execution_count": 9, "cell_type": "code", "source": "#calculate the speed of the machine when running\n\n#variable declaration\nN1=1000 #speed of generator\nE1=205.06 #emf generator\nE2=195.06 #emf of motor\n\n#calculation\nN2=(E2*N1)/E1 #speed of generator\n\n#result\nprint\"speed of motor = \" , round(N2,2) ,\"rpm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "speed of motor = 951.23 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.10 , Page number 198", "cell_type": "markdown", "metadata": {}}, {"execution_count": 10, "cell_type": "code", "source": "#dtermine its speed when its take crnt 25 amps\n\n#variable declaration\nVl=250.0 #volts\nRa=0.05 #ohm\nR=0.02 #ohm\nIa=30.0 #ampere\nI1=30.0\nN1=400.0\nI2=25.0\n\n#calculation\nE1=Vl-(Ia*Ra)-(Ia*R) #volts\nN2=(N1*E1*I1)/(E1*I2) #rpm\n\n#result\nprint \"speed of motor = \" , round(N2,2) ,\"rpm\"\n\n#round off error in book\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "speed of motor = 480.0 rpm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.11 , Page number 199", "cell_type": "markdown", "metadata": {}}, {"execution_count": 11, "cell_type": "code", "source": "#find the torque whn its take scurnt 60amprs\n\n#variable declaration\nVl=200 #volts\nIl=60 #amperes\nR=50 #ohm\nf=0.03 # flux \nZ=700 #armature conductors\nP=4 #pole\nA=2\n\n#calculation\nI=Vl/R # amperes\nIa=Il-I #amperes\nT=(0.159*f*Z*Ia*P)/A\n\n#result\nprint \" Torque = \" , round(T,2) , \"N-m\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Torque = 373.97 N-m\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.12 , Page number 214", "cell_type": "markdown", "metadata": {}}, {"execution_count": 12, "cell_type": "code", "source": "#calcute the num of prim turns and prim $sec current\n\n#variable declaration\nKVA = 50.0\nE1 = 6000.0 #volts\nE2 = 250.0 #volts\nN2 = 52.0 #number of turns\n\n#calculation\nN1=N2*E1/E2\nI2=KVA*1000/E2 #ampere\nI1=KVA*1000/E1 #ampere\n\n#result\nprint \" primary number of turns = \" , N1 , \"turns\"\nprint \" secondary current = \" , I2, \"amperes\"\nprint \" primary current = \" , round(I1,2), \"amperes\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " primary number of turns = 1248.0 turns\n secondary current = 200.0 amperes\n primary current = 8.33 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.13 , Page number 215", "cell_type": "markdown", "metadata": {}}, {"execution_count": 13, "cell_type": "code", "source": "#determine the emf induced in the secondry max value of flux density\n\n#calculation\nf=50 #Hz\nN1=350 #turns\nN2=800 #turns\nE1=400 #volts\nA=75e-4 #m**2\n\n#calculation\nE2=(N2*E1)/N1 #volts\nBm=E1/(4.44*f*A*N1) #Wb/m**2\n\n#result\nprint \" flux density = \" , round(Bm,3) , \"wb/m**2\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " flux density = 0.686 wb/m**2\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.14 , Page number 215", "cell_type": "markdown", "metadata": {}}, {"execution_count": 14, "cell_type": "code", "source": "import math\n\n#find the magnetic nd iron loss component of current\n\n#variable declaration\nE1=440 #volts\nE2=200 #volts\nI=0.2 #amperea\ncoso=0.18 #p.f.\n\n#calculation\nsino= math.sqrt(1-coso**2) \nIw=I*coso #ampere\nIu=I*sino #ampere\n\n#result\nprint \" Magnetising compenet of current = \" , round(Iw,3), \"amperes\"\nprint \" iron loss compenet of current = \" , round(Iu,4), \"amperes\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Magnetising compenet of current = 0.036 amperes\n iron loss compenet of current = 0.1967 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.15 , Page number 216", "cell_type": "markdown", "metadata": {}}, {"execution_count": 15, "cell_type": "code", "source": "#calculate the efficiency at loads\n\n#variable declaration\nKVA=20\nIl=350 #iron loss\nCl=400 #copper loss\nx=1 # fraction of load\npf=0.8 # at full load\npf1=0.4 #at half load\nx1=0.5 #fraction of load\n\n#calculation\nop=KVA*1000*x*pf\nop1=KVA*1000*x1*pf1\nTl=Il+(Cl*x*x)\nTl1=Il+(Cl*x1*x1)\nip=op+Tl\nip1=op1+Tl1\nn=op/ip*100\nn1=op1/ip1*100\n\n#result\nprint \"efficiency at half load = \" , round(n,2) \nprint \"efficiency at full load = \" , round(n1,2) \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "efficiency at half load = 95.52\nefficiency at full load = 89.89\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.16 , Page number 221", "cell_type": "markdown", "metadata": {}}, {"execution_count": 16, "cell_type": "code", "source": "#calculate the synchronous speed ,slip,frequncy induced emf\n\n#variable declaration\nf=50.0 #Hz\np=4 #poles \nN=1460.0 #rpm\n\n#calculation\nNs=120*f/p #rpm\ns=(Ns-N)/Ns #slip\nf1=(s*f) #Hz\n\n#result\nprint \"synchronous speed Ns = \" , Ns , \"rpm\"\nprint \"slip s = \" , round(s,3)\nprint \" Frequency of rotor induced emf f = \" , round(f1,2) , \"Hz\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "synchronous speed Ns = 1500.0 rpm\nslip s = 0.027\n Frequency of rotor induced emf f = 1.33 Hz\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.17 , Page number 222", "cell_type": "markdown", "metadata": {}}, {"execution_count": 17, "cell_type": "code", "source": "#determine the value of slip nd speed of motor\n\n#variable declaration\nP=6 #pole\nf=50 #Hz\nf1=1.5\n\n#calculation\nNs=120*f/P\ns=f1/f\nN=Ns*(1-s)\n\n#result\nprint \" speed of motor = \", N, \" RPM\"\nprint \" slip = \" , round(s,3)\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " speed of motor = 970.0 RPM\n slip = 0.03\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.18 , Page number 222", "cell_type": "markdown", "metadata": {}}, {"execution_count": 18, "cell_type": "code", "source": "#calculate the numbers of poles ,slip at full load,frequncy rotor,speed of motor\n\n#variable declaration\nNs=1000.0 #rpm\nN=960\nf=50 #Hz\n\n#calculation\nP=120*f/Ns #synchronous speed\ns=(Ns-N)/Ns #slip \nf1=s*f #Hz\nN=Ns*(1-0.08) #speed of motor at 8% slip\n\n#result\nprint \" number of poles p = \" , P\nprint \" slip s = \" , round(s,2)\nprint \" Frequency of rotor emf f = \" , f , \"Hz\"\nprint \" Speed of motor at 8% slip N = \" , N , \"RPM\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " number of poles p = 6.0\n slip s = 0.04\n Frequency of rotor emf f = 50 Hz\n Speed of motor at 8% slip N = 920.0 RPM\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "##Example 5.19 , Page number 231", "cell_type": "markdown", "metadata": {}}, {"execution_count": 19, "cell_type": "code", "source": "#calculate the induced emf per phase\n\n#variable declaration\nf=50 #Hz\nP=16 #poles\nN=160 #rpm\nS=6 #slip\nF=0.025 #flux\n\n#calculation\nn=N*S #conductors\nZ=n/3 \ne=2.22*F*f*Z #rms value\n\n#result\nprint \"Induced emf per phase e = \" , e , \"volts\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Induced emf per phase e = 888.0 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.8", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} \ No newline at end of file