diff options
289 files changed, 295565 insertions, 0 deletions
diff --git a/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_0cfmKH1.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_0cfmKH1.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_0cfmKH1.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_0vE2Agb.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_0vE2Agb.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_0vE2Agb.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_by_A._K._Theraja,_B.L_Thereja/c_1pO6mlQ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_1pO6mlQ.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_1pO6mlQ.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_2DVKX4L.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_2DVKX4L.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_2DVKX4L.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_2tbXSIz.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_2tbXSIz.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_2tbXSIz.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_by_A._K._Theraja,_B.L_Thereja/c_4DFRgPd.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_4DFRgPd.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_4DFRgPd.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_5BlMA37.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_5BlMA37.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_5BlMA37.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_6BpYQtS.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_6BpYQtS.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_6BpYQtS.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUS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RJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X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EKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_7oQcI9D.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_7oQcI9D.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_7oQcI9D.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_7osIJcS.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_7osIJcS.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_7osIJcS.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_BljETDD.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_BljETDD.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_BljETDD.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_BrFEmk0.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_BrFEmk0.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_BrFEmk0.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnMDHvN3jP7/Xw89oO1116X7/6W+z3f9f2u71JEYGZm1pVdal0AMzOrbw4KMzPL5aAwM7Nc\nDgozM8vloDAzs1wOCjMzy1VoUEj6kqT7Jd0n6QpJu0kaLmmxpFWSFkkaWrH9LEkPS1opaUqRZTMz\ns+5RUfdRSBoJ3AwcERGvSroSuA44EtgQERdJOh8YFhEzJY0HrgAmAiOBG4CxEbG1kAKamVm3FH3p\naTCwp6TBwJ7Ak8BUYG76fC5welo+DZgXEZsjogVYDUwquHxmZrYDhQVFRDwBfA94jCwgnouIxUBT\nRLSmzVqBprR8ILC24hBryVoWZmZWQ4UFhaRhZK2HUWQhsLekj1duE9l1r7xrX55fxMysxgYXeOxT\ngEci4mkASb8DjgfWSxoREeslHQD8NW3/BHBwxf4HpXXbkeTwMDPrhYhQb/Yrso/iUeA4SXtIEllw\nrACuBaanbaYDC9LyQuBMSUMkjQYOB5Z1duCI8CuC2bNn17wM9fJyXbguXBf5r51RWIsiIpZJ+i1w\nF7Al/fszYB9gvqRPAy3AtLT9CknzycJkC/D52Nl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Esz7\ngQciojVdbloDHJLO9xqwKU0MZ1YV/el5FGY9oQ7LlX+lv0TnKvfZwvZ/SO1esTw3Ii7oZP+u+kN+\nQDaR32Ud1gfwe+A7wO3R4RkbnXg1/bu1YrntfWUH9m7AK3kHMusJtyhsIHoNGFUxougTwE2dbLcy\nbTcmvT+L9kBpAY4BSKOQRqfPbgQ+mh4O0/bw+kPSPg9VjmJqExHPAvOBT1ccX4Ai4mWyZxn/a+++\n6vZSx/mG1LIwqwoHhQ1EL5NNy/4bSfeS/aV/cfpsW8siIl4BPgv8IXVut9LeqrgKGC7pfuALZNPb\nExEPAl8HFkm6h2zq5hFpnz8ApYpyVLZivge8scNnkY55ZaRngleS9PMuhspu27cTk8laKWZV42nG\nzRJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9+e65prumu6u\npyypu885VafM3RERkegpF3YBIiISDgWAiEhEKQBERCJKASAiElEKABGRiFIAiIhEVNwCwMyeM7Pl\nZrYg37L7zCzLzOaZ2Rtmtk+81i8iIrsXzxbA80DHHZZNAI5y9+bAUuCWOK5fRER2I24B4O5TgTU7\nLJvo7rmxp58CdeK1fhER2b0wxwCuAN4Lcf0iIpEWSgCY2a3ANnd/KYz1i4gIVEj0Cs3s78AZQIfd\nvEYTFImIlIC7W1Ffm9AWgJl1BG4EznH3Lbt7rbun7c8dd9wReg3aPm2bti/9foornqeBvgxMBxqa\n2fdmdgXwKLAnMNHM5pjZ4/Fav4iI7F7cuoDc/eICFj8Xr/WJiEjx6ErgEGRkZIRdQlyl8/al87aB\nti9qrCT9RvFmZp6MdYmIJDMzw5N1EFhERJKHAkBEJKIUACIiEaUAEBGJKAWAiEhEKQBERCJKASAi\nElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiSgFgIhIRCkAREQiSgEgIhJRCgARkYhSAIiIRJQC\nQEQkTpL9zoYKABGRMrZs3TI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NTa9R977BsWWzzezhrHZKLsD/WM3IWmbuE0XKZgCQKKiCcENQQqTfwZFJ7i5Rit3fyX/c+B94Fag\nQ+z5LGBAvvetjC1/ArjB3b8BngQecPcW7v5RGW2XSIkl/KbwIiEp6Zwnr+zi+XFAY2B60LtEJWB6\nvte9Efs9Gzg33/KUvxGJpA8FgETFIuD8Apbn8MeWcJUd/r5xN88nuvslu1jf1tjv7ejfmSQpdQFJ\nJLj7ZKBy/ruwmVkzgm/kjc2sUmx63ZOL+JGfAieYWYPYZ1UrwhlF64G9il+9SHwoACRKugCnxE4D\nXQj8i+COUK8CCwm6d2bv5v2/dSPFbujzd+BlM5tH0P3TcBfvyXvf20CX2CDwCaXcFpFS03TQIiIR\npRaAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_Cde70Gn.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Cde70Gn.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Cde70Gn.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_DGhuTd1.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_DGhuTd1.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_DGhuTd1.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVW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SuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3Xu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+ "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_DnIfPiv.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_DnIfPiv.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_DnIfPiv.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_Ekp0nuF.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Ekp0nuF.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Ekp0nuF.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_HETTD7r.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_HETTD7r.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_HETTD7r.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_KlAE574.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_KlAE574.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_KlAE574.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_PjpHu09.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_PjpHu09.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_PjpHu09.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_PxZ5uHj.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_PxZ5uHj.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_PxZ5uHj.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_by_A._K._Theraja,_B.L_Thereja/c_Q4fBBjq.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Q4fBBjq.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_Q4fBBjq.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_T4mzLHI.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_T4mzLHI.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_T4mzLHI.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_UAITY0U.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_UAITY0U.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_UAITY0U.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_VEDuU8Y.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_VEDuU8Y.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_VEDuU8Y.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_WUGl4w9.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_WUGl4w9.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_WUGl4w9.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnM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g8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9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fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_a1WJQcD.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_a1WJQcD.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_a1WJQcD.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_by_A._K._Theraja,_B.L_Thereja/c_bH5qWgx.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_bH5qWgx.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_bH5qWgx.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_e3fJkOS.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_e3fJkOS.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_e3fJkOS.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_eA2iMeu.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_eA2iMeu.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_eA2iMeu.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_by_A._K._Theraja,_B.L_Thereja/c_eYNgYIE.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_eYNgYIE.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_eYNgYIE.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_by_A._K._Theraja,_B.L_Thereja/c_gBECinX.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_gBECinX.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_gBECinX.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_k1gQDvp.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_k1gQDvp.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_k1gQDvp.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A._K._Theraja,_B.L_Thereja/c_kA9oA4k.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_kA9oA4k.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_kA9oA4k.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2j2eXAe1rtJwN/z8yla2qY\nmX5kMnPmzMZraJcPj4XHwmPR/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RewO/\nBm5lVffvZMp/6PeBVwB/Ag7NzL83UWMTImIK8InMnBYRL6YDj0VE7EoZmF8PuBt4P+VnpBOPRTfl\nD8flwE3AB4EX0QHHIiJmAVOATSnjC6cBl9HH1x4RpwBHUY7VjMz8Wb+v387hIElqRjufVpIkNcRw\nkCRVGA6SpArDQZJUYThIkioMB0lSheEg9SEijm1tiX1x07VII811DlIfImI+sF9mLhnk522Smb13\ny5RGFXsO0hpExNeB/wNcGRH/d5Cf/vuI+G5E7Nva1kEadew5SH1obfS3R2Y+NMjPex5wIGWrgh2A\ni4HvZOZfhr9KqR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez3tUz+bZ79Gk/v0rgBcl7Z/tciDwRE/H\nR0Td/0yfPr3w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\no0lTAHycNG2Bu3xsUPmM38piP+CKSBYCs4GxpCmWfyDpIdIZ+NaStgAmANdExIqIeIM0WWCl6ZgF\n/F/gfRExtcv2q4Ap2YRZXbt59gZei4gFwF+APbIpdc0GjYPfyiKoHNzHAx8A9szmr18IDK+wf09z\n8AdpidC9ugZ4FuzPAM2kbxtXZS8dC4zJpnd+CtgIWOPisFneHPxWFnOAY7KVvjYDJpJWI3sfaYGV\nVZIOAD5ECvPbgcOVFoLfCJhMZ1/+v0o6tct73wT8OzAzW/Smw5WkVbuejogXszVbjwJ2jojtsyme\nDyc1BmaDxsFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_kMX1E4Y.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_kMX1E4Y.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_kMX1E4Y.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_by_A._K._Theraja,_B.L_Thereja/c_ludD60G.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_ludD60G.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_ludD60G.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_by_A._K._Theraja,_B.L_Thereja/c_nK3AyHX.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_nK3AyHX.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_nK3AyHX.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_by_A._K._Theraja,_B.L_Thereja/c_nbFgz6I.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_nbFgz6I.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_nbFgz6I.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_by_A._K._Theraja,_B.L_Thereja/c_qJkWZ89.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_qJkWZ89.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_qJkWZ89.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_by_A._K._Theraja,_B.L_Thereja/c_qaQF6hK.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_qaQF6hK.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_qaQF6hK.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_by_A._K._Theraja,_B.L_Thereja/c_tuNOeJT.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_tuNOeJT.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_tuNOeJT.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2j2eXAe1rtJwN/z8yla2qY\nmX5kMnPmzMZraJcPj4XHwmPR/8dzUWfPYS/gSODWiLi59dgpwCsAMvP8zLwiIg6KiLuAx4H311iP\nJGmAaguHzPwNA+iZZObH6qpBkjQ0rpAeZbq6upouoW14LFbxWKzisRge8VzPS42EiMjRUKcktZOI\nINttQFqSNHoZDpKkCsNBklRhOEiSKgwHSVKF4SBJqjAcJEkVhoMkqcJwkCRVGA6SpArDQZJUYThI\nkioMB0lSheEgSaowHCRJFYaDJKnCcJAkVRg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XsO0hpExNeB/wNcGRH/d5Cf/vuI+G5E7Nva1kEadew5SH1obfS3R2Y+NMjPex5wIGWrgh2A\ni4HvZOZfhr9KqR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez3tUz+bZ79Gk/v0rgBcl7Z/tciDwRE/H\nR0Td/0yfPr3wGhqhRtfpOuv9Z6jUWY08L+4CtEraFGgHpkbEEkknAf8pqQlYDpyccw1mZtZFrsEf\nERMrbPsrsHeen2tmZj3znbsD1NzcXHQJfRoKNYLrrDXXWVtDpc5qDNrF3f6SFPVam5lZvZJEFHlx\n18zM6o+D38ysZBz8ZmYl4+A3MysZB7+ZWck4+M3MSsbBb2ZWMg5+M7OScfCbmZWMg9/MrGQc/GZm\nJePgNzMrGQe/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VZIOAD5ECvPbgcOVFoLfCJhMZ1/+v0o6tct73wT8OzAzW/Smw5WkVbuejogXszVbjwJ2jojtsyme\nDyc1BmaDxsFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_vEF8v8F.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_vEF8v8F.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_vEF8v8F.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_w1kpJlA.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_w1kpJlA.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_w1kpJlA.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A._K._Theraja,_B.L_Thereja/c_wmNEbtc.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_wmNEbtc.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_wmNEbtc.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_x8Hd3Fi.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_x8Hd3Fi.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_x8Hd3Fi.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A._K._Theraja,_B.L_Thereja/c_zAHS5nJ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_zAHS5nJ.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A._K._Theraja,_B.L_Thereja/c_zAHS5nJ.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chap_2xS3kzU.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_2xS3kzU.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_2xS3kzU.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_38fwENU.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_38fwENU.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_38fwENU.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_by_A_K_Theraja_B_L_Thereja/chap_5kVbclY.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_5kVbclY.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_5kVbclY.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_7O92CYB.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_7O92CYB.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_7O92CYB.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_7qFSSzO.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_7qFSSzO.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_7qFSSzO.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_87EQl05.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_87EQl05.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_87EQl05.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_by_A_K_Theraja_B_L_Thereja/chap_8HPcuEd.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_8HPcuEd.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_8HPcuEd.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_ASNXGJK.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ASNXGJK.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ASNXGJK.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_BQB3vIT.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_BQB3vIT.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_BQB3vIT.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_BdKInur.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_BdKInur.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_BdKInur.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_by_A_K_Theraja_B_L_Thereja/chap_CK1r2By.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_CK1r2By.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_CK1r2By.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_by_A_K_Theraja_B_L_Thereja/chap_EIfrtvz.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_EIfrtvz.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_EIfrtvz.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_EnoiEf8.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_EnoiEf8.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_EnoiEf8.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chap_GocmY97.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_GocmY97.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_GocmY97.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_Gw8rqEI.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_Gw8rqEI.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_Gw8rqEI.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chap_HDB18kP.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_HDB18kP.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_HDB18kP.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_IdqLKrq.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_IdqLKrq.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_IdqLKrq.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_by_A_K_Theraja_B_L_Thereja/chap_InkBya3.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_InkBya3.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_InkBya3.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_by_A_K_Theraja_B_L_Thereja/chap_K9q4NLY.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_K9q4NLY.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_K9q4NLY.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_M6VOIpZ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_M6VOIpZ.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_M6VOIpZ.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_MATCOZO.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_MATCOZO.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_MATCOZO.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_ObFCoay.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ObFCoay.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ObFCoay.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_PD3CwbT.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PD3CwbT.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PD3CwbT.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_PVVeE6Y.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PVVeE6Y.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PVVeE6Y.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_PdPqoEJ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PdPqoEJ.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_PdPqoEJ.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2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UxcDrwrItaLiFcCE4Eb+nuhtl4hHREHAudSZiF8OzPPbLikERMRewO/\nBm5lVffvZMp/6PeBVwB/Ag7NzL83UWMTImIK8InMnBYRL6YDj0VE7EoZmF8PuBt4P+VnpBOPRTfl\nD8flwE3AB4EX0QHHIiJmAVOATSnjC6cBl9HH1x4RpwBHUY7VjMz8Wb+v387hIElqRjufVpIkNcRw\nkCRVGA6SpArDQZJUYThIkioMB0lSheEg9SEijm1tiX1x07VII811DlIfImI+sF9mLhnk522Smb13\ny5RGFXsO0hpExNeB/wNcGRH/d5Cf/vuI+G5E7Nva1kEadew5SH1obfS3R2Y+NMjPex5wIGWrgh2A\ni4HvZOZfhr9KqR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez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LdNa+G2l9gAdIc0lVIkk/JC0kckK24UrSWf492cpSiyLi6Wz/\no0lTAHycNG2Bu3xsUPmM38piP+CKSBYCs4GxpCmWfyDpIdIZ+NaStgAmANdExIqIeIM0WWCl6ZgF\n/F/gfRExtcv2q4Ap2YRZXbt59gZei4gFwF+APbIpdc0GjYPfyiKoHNzHAx8A9szmr18IDK+wf09z\n8AdpidC9ugZ4FuzPAM2kbxtXZS8dC4zJpnd+CtgIWOPisFneHPxWFnOAY7KVvjYDJpJWI3sfaYGV\nVZIOAD5ECvPbgcOVFoLfCJhMZ1/+v0o6tct73wT8OzAzW/Smw5WkVbuejogXszVbjwJ2jojtsyme\nDyc1BmaDxsFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_QritHDf.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_QritHDf.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_QritHDf.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_by_A_K_Theraja_B_L_Thereja/chap_SUaeUO3.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_SUaeUO3.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_SUaeUO3.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_by_A_K_Theraja_B_L_Thereja/chap_TkYEtJb.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_TkYEtJb.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_TkYEtJb.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2j2eXAe1rtJwN/z8yla2qY\nmX5kMnPmzMZraJcPj4XHwmPR/8dzUWfPYS/gSODWiLi59dgpwCsAMvP8zLwiIg6KiLuAx4H311iP\nJGmAaguHzPwNA+iZZObH6qpBkjQ0rpAeZbq6upouoW14LFbxWKzisRge8VzPS42EiMjRUKcktZOI\nINttQFqSNHoZDpKkCsNBklRhOEiSKgwHSVKF4SBJqjAcJEkVhoMkqcJwkCRVGA6SpArDQZJUYThI\nkioMB0lSheEgSaowHCRJFYaDJKnCcJAkVRgOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySp\nwnCQJFXUGg4RcUFELI2IuX08v1FEz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ni4HvZOZfhr9KqR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez3tUz+bZ79Gk/v0rgBcl7Z/tciDwRE/H\nR0Td/0yfPr3wGhqhRtfpOuv9Z6jUWY08L+4CtEraFGgHpkbEEkknAf8pqQlYDpyccw1mZtZFrsEf\nERMrbPsrsHeen2tmZj3znbsD1NzcXHQJfRoKNYLrrDXXWVtDpc5qDNrF3f6SFPVam5lZvZJEFHlx\n18zM6o+D38ysZBz8ZmYl4+A3MysZB7+ZWck4+M3MSsbBb2ZWMg5+M7OScfCbmZWMg9/MrGQc/GZm\nJePgNzMrGQe/mVnJOPjNzErGwW9mVjIOfjOzknHwm5mVjIPfzKxkHPxmZiXj4DczKxkHv5lZyTj4\nzcxKxs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yme\nDyc1BmaDxsFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_UDdHMGf.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_UDdHMGf.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_UDdHMGf.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_VZgSOpH.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_VZgSOpH.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_VZgSOpH.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_Yj265eH.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_Yj265eH.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_Yj265eH.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_ZDKRJ4L.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ZDKRJ4L.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ZDKRJ4L.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_ZyyCtEx.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ZyyCtEx.ipynb new file mode 100644 index 00000000..e889465f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ZyyCtEx.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_by_A_K_Theraja_B_L_Thereja/chap_dGjHrPW.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_dGjHrPW.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_dGjHrPW.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_egC1oo4.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_egC1oo4.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_egC1oo4.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_by_A_K_Theraja_B_L_Thereja/chap_enqQgpr.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_enqQgpr.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_enqQgpr.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnMDHvN3jP7/Xw89oO1116X7/6W+z3f9f2u71JEYGZm1pVdal0AMzOrbw4KMzPL5aAwM7Nc\nDgozM8vloDAzs1wOCjMzy1VoUEj6kqT7Jd0n6QpJu0kaLmmxpFWSFkkaWrH9LEkPS1opaUqRZTMz\ns+5RUfdRSBoJ3AwcERGvSroSuA44EtgQERdJOh8YFhEzJY0HrgAmAiOBG4CxEbG1kAKamVm3FH3p\naTCwp6TBwJ7Ak8BUYG76fC5welo+DZ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vj\nvhl4Dnia108VjaSypO9Lul3SCknvkPS79ECaf6nYdAFwdm8qzawrDgobiHYHLgM+FhETyGZJPid9\nFsCGiDiW7Ef9Z8AH0/sm2v/q7/jXfwBIOgKYBpyQWjBbaf9hPhG4s8N+PwbOlrRvJ+X8G/CYpCPJ\nWgFXdnHutnWvRsREslbTNek7HQV8UtKwtN0DwMRO9jfrNQeFDUSDgDURsTq9nwu8u+Lzth/kccAj\nEfHf6f1/0Mlf8xUEvBc4FrhD0nLgPWTz7ED2dLGXKneIiBeAy4FzuzjmlcBZZA+UuXoH36ttEsz7\ngQciojVdbloDHJLO9xqwKU0MZ1YV/el5FGY9oQ7LlX+lv0TnKvfZwvZ/SO1esTw3Ii7oZP+u+kN+\nQDaR32Ud1gfwe+A7wO3R4RkbnXg1/bu1YrntfWUH9m7AK3kHMusJtyhsIHoNGFUxougTwE2dbLcy\nbTcmvT+L9kBpAY4BSKOQRqfPbgQ+mh4O0/bw+kPSPg9VjmJqExHPAvOBT1ccX4Ai4mWyZxn/a+++\n6vZSx/mG1LIwqwoHhQ1EL5NNy/4bSfeS/aV/cfpsW8siIl4BPgv8IXVut9LeqrgKGC7pfuALZNPb\nExEPAl8HFkm6h2zq5hFpnz8ApYpyVLZivge8scNnkY55ZaRngleS9PMuhspu27cTk8laKWZV42nG\nzRJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9+e65prumu6u\npyypu885VafM3RERkegpF3YBIiISDgWAiEhEKQBERCJKASAiElEKABGRiFIAiIhEVNwCwMyeM7Pl\nZrYg37L7zCzLzOaZ2Rtmtk+81i8iIrsXzxbA80DHHZZNAI5y9+bAUuCWOK5fRER2I24B4O5TgTU7\nLJvo7rmxp58CdeK1fhER2b0wxwCuAN4Lcf0iIpEWSgCY2a3ANnd/KYz1i4gIVEj0Cs3s78AZQIfd\nvEYTFImIlIC7W1Ff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wcA3wF/d\nfW1YNZZGAdt3B5BB0HXgwNdA93x9rinFzNoCHwLz+b2r4BaCq/NTfh/uYvsGAheT4vvQzJoSDPKW\nJ/gi/4q732Vm1SnGvku6ABARkcRIti4gERFJEAWAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJA\nIsPMapnZKDP7MjYX07tmdngC19/ezI5P1PpECqMAkEiIXRU6Bpjs7oe5e2uCi56KNNGZmZXb3fMi\nOgloU4L3icSFAkCi4iRgm7s/nbfA3ecDFczs7bxlZvaYmXWLPf7GzO41s1nABQU8P83MppvZLDN7\nNTa9R977BsWWzzezhrHZKLsD/WM3IWmbuE0XKZgCQKKiCcENQQqTfwZFJ7i5Rit3fyX/c+B94Fag\nQ+z5LGBAvvetjC1/ArjB3b8BngQecPcW7v5RGW2XSIkl/KbwIiEp6Zwnr+zi+XFAY2B60LtEJWB6\nvte9Efs9Gzg33/KUvxGJpA8FgETFIuD8Apbn8MeWcJUd/r5xN88nuvslu1jf1tjv7ejfmSQpdQFJ\nJLj7ZKBy/ruwmVkzgm/kjc2sUmx63ZOL+JGfAieYWYPYZ1UrwhlF64G9il+9SHwoACRKugCnxE4D\nXQj8i+COUK8CCwm6d2bv5v2/dSPFbujzd+BlM5tH0P3TcBfvyXvf20CX2CDwCaXcFpFS03TQIiIR\npRaAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_gD58ZqH.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gD58ZqH.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gD58ZqH.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chap_gETWb31.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gETWb31.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gETWb31.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_by_A_K_Theraja_B_L_Thereja/chap_gSjl2uf.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gSjl2uf.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_gSjl2uf.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnMDHvN3jP7/Xw89oO1116X7/6W+z3f9f2u71JEYGZm1pVdal0AMzOrbw4KMzPL5aAwM7Nc\nDgozM8vloDAzs1wOCjMzy1VoUEj6kqT7Jd0n6QpJu0kaLmmxpFWSFkkaWrH9LEkPS1opaUqRZTMz\ns+5RUfdRSBoJ3AwcERGvSroSuA44EtgQERdJOh8YFhEzJY0HrgAmAiOBG4CxEbG1kAKamVm3FH3p\naTCwp6TBwJ7Ak8BUYG76fC5welo+DZgXEZsjogVYDUwquHxmZrYDhQVFRDwBfA94jCwgnouIxUBT\nRLSmzVqBprR8ILC24hBryVoWZmZWQ4UFhaRhZK2HUWQhsLekj1duE9l1r7xrX55fxMysxgYXeOxT\ngEci4mkASb8DjgfWSxoREeslHQD8NW3/BHBwxf4HpXXbkeTwMDPrhYhQb/Yrso/iUeA4SXtIEllw\nrACuBaanbaYDC9LyQuBMSUMkjQYOB5Z1duCI8CuC2bNn17wM9fJyXbguXBf5r51RWIsiIpZJ+i1w\nF7Al/fszYB9gvqRPAy3AtLT9CknzycJkC/D52NlvZ2ZmO63IS09ERDPQ3GH1M2Sti862/xbwrSLL\nZGZmPeM7s/uxUqlU6yLUDddFO9dFO9dFdRR2w11RJPmKlJlZD0ki6rAz28z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we+A7wO3R4RkbnXg1/bu1YrntfWUH9m7AK3kHMusJtyhsIHoNGFUxougTwE2dbLcy\nbTcmvT+L9kBpAY4BSKOQRqfPbgQ+mh4O0/bw+kPSPg9VjmJqExHPAvOBT1ccX4Ai4mWyZxn/a+++\n6vZSx/mG1LIwqwoHhQ1EL5NNy/4bSfeS/aV/cfpsW8siIl4BPgv8IXVut9LeqrgKGC7pfuALZNPb\nExEPAl8HFkm6h2zq5hFpnz8ApYpyVLZivge8scNnkY55ZaRngleS9PMuhspu27cTk8laKWZV42nG\nzRJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9+e65prumu6u\npyypu885VafM3RERkegpF3YBIiISDgWAiEhEKQBERCJKASAiElEKABGRiFIAiIhEVNwCwMyeM7Pl\nZrYg37L7zCzLzOaZ2Rtmtk+81i8iIrsXzxbA80DHHZZNAI5y9+bAUuCWOK5fRER2I24B4O5TgTU7\nLJvo7rmxp58CdeK1fhER2b0wxwCuAN4Lcf0iIpEWSgCY2a3ANnd/KYz1i4gIVEj0Cs3s78AZQIfd\nvEYTFImIlIC7W1Ffm9AWgJl1BG4EznH3Lbt7rbun7c8dd9wReg3aPm2bti/9foornqeBvgxMBxqa\n2fdmdgXwKLAnMNHM5pjZ4/Fav4iI7F7cuoDc/eICFj8Xr/WJiEjx6ErgEGRkZIRdQlyl8/al87aB\nti9qrCT9RvFmZp6MdYmIJDMzw5N1EFhERJKHAkBEJKIUACIiEaUAEBGJKAWAiEhEKQBERCJKASAi\nElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiSgFgIhIRCkAREQiSgEgIhJRCgARkYhSAIiIRJQC\nQEQkTpL9zoYKABGRMrZs3TIuGX0Jj854NOxSdksBICJSRrbmbOXej+6l+ZPNabBfA65scWXYJe1W\nhbALEBFJB2O/GEvfcX1pVKMRn171KQ2qNwi7pEIpAERESuGrX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3b8BngQecPcW7v5RGW2XSIkl/KbwIiEp6Zwnr+zi+XFAY2B60LtEJWB6\nvte9Efs9Gzg33/KUvxGJpA8FgETFIuD8Apbn8MeWcJUd/r5xN88nuvslu1jf1tjv7ejfmSQpdQFJ\nJLj7ZKBy/ruwmVkzgm/kjc2sUmx63ZOL+JGfAieYWYPYZ1UrwhlF64G9il+9SHwoACRKugCnxE4D\nXQj8i+COUK8CCwm6d2bv5v2/dSPFbujzd+BlM5tH0P3TcBfvyXvf20CX2CDwCaXcFpFS03TQIiIR\npRaAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_hnPoOrk.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_hnPoOrk.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_hnPoOrk.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_hoBkBgf.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_hoBkBgf.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_hoBkBgf.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_i133Mfc.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_i133Mfc.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_i133Mfc.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_lFaQS0L.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_lFaQS0L.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_lFaQS0L.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4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nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMI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mCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_lsoSAFi.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_lsoSAFi.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_lsoSAFi.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnMDHvN3jP7/Xw89oO1116X7/6W+z3f9f2u71JEYGZm1pVdal0AMzOrbw4KMzPL5aAwM7Nc\nDgozM8vloDAzs1wOCjMzy1VoUEj6kqT7Jd0n6QpJu0kaLmmxpFWSFkkaWrH9LEkPS1opaUqRZTMz\ns+5RUfdRSBoJ3AwcERGvSroSuA44EtgQERdJOh8YFhEzJY0HrgAmAiOBG4CxEbG1kAKamVm3FH3p\naTCwp6TBwJ7Ak8BUYG76fC5welo+DZgXEZsjogVYDUwquHxmZrYDhQVFRDwBfA94jCwgnouIxUBT\nRLSmzVqBprR8ILC24hBryVoW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GZJPid9\nFsCGiDiW7Ef9Z8AH0/sm2v/q7/jXfwBIOgKYBpyQWjBbaf9hPhG4s8N+PwbOlrRvJ+X8G/CYpCPJ\nWgFXdnHutnWvRsREslbTNek7HQV8UtKwtN0DwMRO9jfrNQeFDUSDgDURsTq9nwu8u+Lzth/kccAj\nEfHf6f1/0Mlf8xUEvBc4FrhD0nLgPWTz7ED2dLGXKneIiBeAy4FzuzjmlcBZZA+UuXoH36ttEsz7\ngQciojVdbloDHJLO9xqwKU0MZ1YV/el5FGY9oQ7LlX+lv0TnKvfZwvZ/SO1esTw3Ii7oZP+u+kN+\nQDaR32Ud1gfwe+A7wO3R4RkbnXg1/bu1YrntfWUH9m7AK3kHMusJtyhsIHoNGFUxougTwE2dbLcy\nbTcmvT+L9kBpAY4BSKOQRqfPbgQ+mh4O0/bw+kPSPg9VjmJqExHPAvOBT1ccX4Ai4mWyZxn/a+++\n6vZSx/mG1LIwqwoHhQ1EL5NNy/4bSfeS/aV/cfpsW8siIl4BPgv8IXVut9LeqrgKGC7pfuALZNPb\nExEPAl8HFkm6h2zq5hFpnz8ApYpyVLZivge8scNnkY55ZaRngleS9PMuhspu27cTk8laKWZV42nG\nzRJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9+e65prumu6u\npyypu885VafM3RERkegpF3YBIiISDgWAiEhEKQBERCJKASAiElEKABGRiFIAiIhEVNwCwMyeM7Pl\nZrYg37L7zCzLzOaZ2Rtmtk+81i8iIrsXzxbA80DHHZZNAI5y9+bAUuCWOK5fRER2I24B4O5TgTU7\nLJvo7rmxp58CdeK1fhER2b0wxwCuAN4Lcf0iIpEWSgCY2a3ANnd/KYz1i4gIVEj0Cs3s78AZQIfd\nvEYTFImIlIC7W1Ffm9AWgJl1BG4EznH3Lbt7rbun7c8dd9wReg3aPm2bti/9foornqeBvgxMBxqa\n2fdmdgXwK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vsGAheT4vvQzJoSDPKW\nJ/gi/4q732Vm1SnGvku6ABARkcRIti4gERFJEAWAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJA\nIsPMapnZKDP7MjYX07tmdngC19/ezI5P1PpECqMAkEiIXRU6Bpjs7oe5e2uCi56KNNGZmZXb3fMi\nOgloU4L3icSFAkCi4iRgm7s/nbfA3ecDFczs7bxlZvaYmXWLPf7GzO41s1nABQU8P83MppvZLDN7\nNTa9R977BsWWzzezhrHZKLsD/WM3IWmbuE0XKZgCQKKiCcENQQqTfwZFJ7i5Rit3fyX/c+B94Fag\nQ+z5LGBAvvetjC1/ArjB3b8BngQecPcW7v5RGW2XSIkl/KbwIiEp6Zwnr+zi+XFAY2B60LtEJWB6\nvte9Efs9Gzg33/KUvxGJpA8FgETFIuD8Apbn8MeWcJUd/r5xN88nuvslu1jf1tjv7ejfmSQpdQFJ\nJLj7ZKBy/ruwmVkzgm/kjc2sUmx63ZOL+JGfAieYWYPYZ1UrwhlF64G9il+9SHwoACRKugCnxE4D\nXQj8i+COUK8CCwm6d2bv5v2/dSPFbujzd+BlM5tH0P3TcBfvyXvf20CX2CDwCaXcFpFS03TQIiIR\npRaAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_n2YSl8Q.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_n2YSl8Q.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_n2YSl8Q.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_ntrOIw3.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ntrOIw3.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ntrOIw3.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_nxmLE4m.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_nxmLE4m.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_nxmLE4m.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_qxxk2Xv.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_qxxk2Xv.ipynb new file mode 100644 index 00000000..447ef8ab --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_qxxk2Xv.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_by_A_K_Theraja_B_L_Thereja/chap_r9cPZxQ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_r9cPZxQ.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_r9cPZxQ.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_by_A_K_Theraja_B_L_Thereja/chap_tIs0JkF.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_tIs0JkF.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_tIs0JkF.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chap_uJFb1kJ.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_uJFb1kJ.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_uJFb1kJ.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG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vE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+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AAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_uwh7oAV.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_uwh7oAV.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_uwh7oAV.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_vwGXJQF.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_vwGXJQF.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_vwGXJQF.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2j2eXAe1rtJwN/z8yla2qY\nmX5kMnPmzMZraJcPj4XHwmPR/8dzUWfPYS/gSODWiLi59dgpwCsAMvP8zLwiIg6KiLuAx4H311iP\nJGmAaguHzPwNA+iZZObH6qpBkj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OPRTfl\nD8flwE3AB4EX0QHHIiJmAVOATSnjC6cBl9HH1x4RpwBHUY7VjMz8Wb+v387hIElqRjufVpIkNcRw\nkCRVGA6SpArDQZJUYThIkioMB0lSheEg9SEijm1tiX1x07VII811DlIfImI+sF9mLhnk522Smb13\ny5RGFXsO0hpExNeB/wNcGRH/d5Cf/vuI+G5E7Nva1kEadew5SH1obfS3R2Y+NMjPex5wIGWrgh2A\ni4HvZOZfhr9KqR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez3tUz+bZ79Gk/v0rgBcl7Z/tciDwRE/H\nR0Td/0yfPr3wGhqhRtfpOuv9Z6jUWY08L+4CtEraFGgHpkbEEkknAf8pqQlYDpyccw1mZtZFrsEf\nERMrbPsrsHe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F\n/F/gfRExtcv2q4Ap2YRZXbt59gZei4gFwF+APbIpdc0GjYPfyiKoHNzHAx8A9szmr18IDK+wf09z\n8AdpidC9ugZ4FuzPAM2kbxtXZS8dC4zJpnd+CtgIWOPisFneHPxWFnOAY7KVvjYDJpJWI3sfaYGV\nVZIOAD5ECvPbgcOVFoLfCJhMZ1/+v0o6tct73wT8OzAzW/Smw5WkVbuejogXszVbjwJ2jojtsyme\nDyc1BmaDxsFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_wA2NdKL.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_wA2NdKL.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_wA2NdKL.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_wXUDs09.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_wXUDs09.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_wXUDs09.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_x0i8ax0.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_x0i8ax0.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_x0i8ax0.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_xD8c7xw.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_xD8c7xw.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_xD8c7xw.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chap_xKNxc2D.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_xKNxc2D.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_xKNxc2D.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_by_A_K_Theraja_B_L_Thereja/chap_ye04nNO.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ye04nNO.ipynb new file mode 100644 index 00000000..ce13ea95 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_ye04nNO.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_by_A_K_Theraja_B_L_Thereja/chap_zy8Cvqw.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_zy8Cvqw.ipynb new file mode 100644 index 00000000..495cee05 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chap_zy8Cvqw.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_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb new file mode 100644 index 00000000..894eff9f --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter25.ipynb @@ -0,0 +1,210 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:9895a0f3fc78aa13cc793dfc60b4d616a3af11e4983465d122ac29be7197893e" + }, + "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": [] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 25.5, Page Number:883" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "rc=0.5#ohm\n", + "v=3#V\n", + "i=6#A\n", + "l1=40#mH\n", + "l2=25#mH\n", + "wfld=0.5*l2*i*i*0.001\n", + "delE=0.5*i*i*0.001*(l1-l2)\n", + "\n", + "#result\n", + "print \"a)magnetic stored energy=\",wfld,\"J\"\n", + "print \"b)change in magnetic store energy=\",delE,\"J\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "a)magnetic stored energy= 0.45 J\n", + "b)change in magnetic store energy= 0.27 J\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb new file mode 100644 index 00000000..0690f646 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter26.ipynb @@ -0,0 +1,1741 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:e71bef33b0871199556c73182ec6cd28497a9d9d16612973a23ee2cceda4b35b" + }, + "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.29, Page Number:930" + ] + }, + { + "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", + "ironloss=8#kW\n", + "r=0.25#reduction in speed\n", + "n_ironloss=5#kW\n", + "\n", + "#calculations\n", + "ans=solve([ironloss-(A*1+B*1**2),n_ironloss-(A*(1-r)+B*(1-r)**2)],[A,B])\n", + "wh=ans[A]\n", + "we=ans[B]\n", + "wh2=ans[A]*0.5\n", + "we2=ans[B]*0.5**2\n", + "\n", + "#result\n", + "print \"i)full speed:\"\n", + "print \"Wh=\",round(wh,3),\"kW\"\n", + "print \"We=\",round(we,3),\"kW\"\n", + "print \"ii)half speed:\"\n", + "print \"Wh=\",round(wh2,3),\"kW\"\n", + "print \"We=\",round(we2,3),\"kW\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "i)full speed:\n", + "Wh= 2.667 kW\n", + "We= 5.333 kW\n", + "ii)half speed:\n", + "Wh= 1.333 kW\n", + "We= 1.333 kW\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.30, Page Number:931" + ] + }, + { + "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", + "n=1000.0#rpm\n", + "wh=250.0#w\n", + "we=100.0#w\n", + "\n", + "#calculations\n", + "A=wh/(n/60)\n", + "B=we/((n/60)**2)\n", + "new_loss=(wh+we)/2\n", + "ans=solve([new_loss-A*N-B*(N**2)],[N])\n", + "\n", + "#result\n", + "print \"Speed at which total loss will be halved=\",ans[1],\"r.p.s\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Speed at which total loss will be halved= (9.50045787200216,) r.p.s\n" + ] + } + ], + "prompt_number": 29 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 26.34 Page Number:933" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "p=4\n", + "r=0.15#ohm\n", + "\n", + "#calculations\n", + "ar=p*r\n", + "\n", + "#result\n", + "print \"armature resistance=\",ar" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "armature resistance= 0.6\n" + ] + } + ], + "prompt_number": 30 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb new file mode 100644 index 00000000..f35c124e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter27.ipynb @@ -0,0 +1,1233 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fc88e8a107629d62ff7c77f84f67a9d9da67e1160053ed6d930ef88cb4cc11d6" + }, + "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.15, Page Number:957" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v_nl1=270#V\n", + "v_l=220#V\n", + "il1=35#A\n", + "v_nl2=280#V\n", + "il2=50#A\n", + "il=60#A\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v_nl1-v_l\n", + "vd_pa=vd1/il1#voltage drop per ampere\n", + "#generator 2\n", + "vd_pa2=(v_nl2-v_l)/il2\n", + "#270=(10/7)i1=280-1.2*i2\n", + "ans=solve([4.2*i2-5*i1-35,i1+i2-60],[i1,i2])\n", + "v=v_nl2-vd_pa2*ans[i2]\n", + "o1=v*ans[i1]/1000.0\n", + "o2=v*ans[i2]/1000.0\n", + "\n", + "#result\n", + "print \"output current of first machine=\",round(ans[i1],1)\n", + "print \"output current of second machine=\",round(ans[i2],1)\n", + "print \"output of first machine=\",round(o1,1),\"kW\"\n", + "print \"output of second machine=\",round(o2,1),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "output current of first machine= 23.6\n", + "output current of second machine= 36.4\n", + "output of first machine= 5.7 kW\n", + "output of second machine= 8.9 kW\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.16, Page Number:958" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=Symbol('v')\n", + "ra=0.01#ohm\n", + "rf=20#ohm\n", + "i=4000#A\n", + "v1=210#V\n", + "v2=220#V\n", + "\n", + "#calculations\n", + "#V+(i1+v/20)*0.01=210\n", + "#V+(i2+v/20)*0.01=220\n", + "#solving the above two equations we have i1-i2=1000\n", + "ans=solve([i1-i2-1000,i1+i2-4000],[i1,i2])\n", + "V=solve([v1-(ans[i1]+v/20)*0.01-v],[v])\n", + "o1=V[v]*ans[i1]/1000\n", + "o2=V[v]*ans[i2]/1000\n", + "\n", + "#result\n", + "print \"Bus bar voltage=\",V[v],\"V\"\n", + "print \"output of first generator=\",o1,\"kW\"\n", + "print \"output of second generator=\",o2,\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Bus bar voltage= 184.907546226887 V\n", + "output of first generator= 462.268865567216 kW\n", + "output of second generator= 277.361319340330 kW\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.17, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "i=250.0#A\n", + "v1=50.0#kW\n", + "v2=100.0#kW\n", + "v=500.0#V\n", + "r1=0.06\n", + "r2=0.04\n", + "\n", + "#calculations\n", + "#generator 1\n", + "vd1=v*r1\n", + "il1=v1*1000/v\n", + "i_d1=vd1/il1\n", + "#generator 2\n", + "vd2=v*r2\n", + "il2=v2*1000/v\n", + "i_d2=vd2/il2\n", + "#3i1/10=i2/10\n", + "ans=solve([i1+i2-i,3*i1-i2],[i1,i2])\n", + "v=v-(3*ans[i1]/10)\n", + "\n", + "#result\n", + "print \"current delivered to first machine=\",round(ans[i1],1),\"A\"\n", + "print \"current delivered to second machine=\",round(ans[i2],1),\"A\"\n", + "print \"terminal voltage=\",round(v,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "current delivered to first machine= 62.5 A\n", + "current delivered to second machine= 187.5 A\n", + "terminal voltage= 481.3 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.18, Page Number:959" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "x1=Symbol('x1')\n", + "x2=Symbol('x2')\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "v=125.0#V\n", + "w1=250.0#kW\n", + "v1=119.0#V\n", + "w2=200.0#kW\n", + "v2=116.0#V\n", + "i=3500.0#A\n", + "\n", + "#calculations\n", + "#v=125-[(125-119)(x1/100)] for generator 1\n", + "#v=125-[(125-116)(x2/100)] for generator 2\n", + "#(250x1*1000/100)+(200x2*1000/100)=v*3500\n", + "#v=125-6x1/100\n", + "ans=solve([(250.0*x1*1000.0/100.0)+(200.0*(2.0*x1*1000.0)/300.0)-((125.0-((6.0*x1)/100.0))*3500.0)],[x1])\n", + "V=v-(6.0*ans[x1]/100.0)\n", + "ans2=solve([V-(v-((v-v2)*(x2/100.0)))],[x2])\n", + "ratio=ans[x1]/ans2[x2]\n", + "I=solve([ratio-((i1*w2)/(i2*w1)),i1+i2-i],[i1,i2])\n", + "print \"I1=\",round(I[i1],0),\"A\"\n", + "print \"I2=\",round(I[i2],0),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 2283.0 A\n", + "I2= 1217.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.19, Page Number:960" + ] + }, + { + "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", + "IB=Symbol('IB')\n", + "va1=240.0#V\n", + "va2=220.0#v\n", + "ia=200.0#A\n", + "vb1=245.0#V\n", + "vb2=220.0#V\n", + "ib=150.0#A\n", + "i=300.0#A\n", + "\n", + "#calculations\n", + "I=solve([(va1-((va1-va2)*IA/ia))-(vb1-((vb1-vb2)*IB/ib)),IA+IB-i],[IA,IB])\n", + "vbus=va1-((va1-va2)*I[IA]/ia)\n", + "#result\n", + "print \"IA=\",round(I[IA],2),\"A\"\n", + "print \"IB=\",round(I[IB],2),\"A\"\n", + "print \"V bus=\",round(vbus,2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "IA= 168.75 A\n", + "IB= 131.25 A\n", + "V bus= 223.13 V\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.20, Page Number:961" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "i1=Symbol('i1')\n", + "i2=Symbol('i2')\n", + "n=5.0#number ofshunt generators\n", + "ra=0.1#ohm\n", + "p=250.0#kW\n", + "v=500.0#V\n", + "incr=0.04#increase in current\n", + "\n", + "#calculations\n", + "load=p/n\n", + "o=load*1000.0/v\n", + "a_drop=ra*o\n", + "emf=v+a_drop\n", + "incr=incr*emf\n", + "emf1=emf+incr\n", + "#emf1-ra*i1=V\n", + "#emf-ra*i2=V\n", + "I=solve([emf1-emf-ra*(i1-i2),i1+4.1*i2-510],[i1,i2])\n", + "V=I[i1]+4.0*I[i2]#V=i1+4*i2\n", + "o1=V*I[i1]/1000.0\n", + "o2=V*I[i2]/1000.0\n", + "\n", + "#result\n", + "print \"Power output of first machine=\",round(o1),\"kW\"\n", + "print \"Power output of second machine=\",round(o2,2),\"kW\"\n", + "print \"Terminal voltage=\",round(V),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power output of first machine= 133.0 kW\n", + "Power output of second machine= 30.24 kW\n", + "Terminal voltage= 504.0 V\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.21, Page Number:961" + ] + }, + { + "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", + "i=1500.0#A\n", + "ra1=0.5#ohm\n", + "emf1=400.0#V\n", + "ra2=0.04#ohm\n", + "emf2=440.0#V\n", + "rs1=100.0#ohm\n", + "rs2=80.0#ohm\n", + "\n", + "#calculations\n", + "#i2=1500-i1\n", + "#ish1=v/100, ish2=v/80\n", + "#ia1=i1+v/100, ia2=i2+v/80\n", + "ans=solve([(0.5/0.04)-((emf1-1.005*V)/(1.0005*V-380))],[V])\n", + "i1=(emf1-1.005*ans[V])/0.5\n", + "i2=i-i1\n", + "o1=ans[V]*i1/1000\n", + "o2=ans[V]*i2/1000\n", + "#result\n", + "print \"I1=\",round(i1,2),\"A\"\n", + "print \"I2=\",round(i2,2),\"A\"\n", + "print \"Terminal Voltage=\",round(ans[V],2),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 33.86 A\n", + "I2= 1466.14 A\n", + "Terminal Voltage= 381.16 V\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.22, Page Number:962" + ] + }, + { + "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", + "I=Symbol('I')\n", + "v1=250#V\n", + "ra1=0.24#ohm\n", + "rf1=100#ohm\n", + "v2=248#V\n", + "ra2=0.12#ohm\n", + "rf2=100#ohm\n", + "i=40#A\n", + "ir=0.172#ohm\n", + "\n", + "#calculations\n", + "ans=solve([V+((I+V/rf1)*ra1)-v1,V+((I+V/rf2)*ra2)-v2],[I,V])\n", + "ib=i-2*ans[I]\n", + "vd=ib*ir\n", + "eb=ans[V]+vd\n", + "\n", + "#result\n", + "print \"emf of battery=\",round(eb),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "emf of battery= 248.0 V\n" + ] + } + ], + "prompt_number": 24 + }, + { + "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 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 27.24, Page Number:964" + ] + }, + { + "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", + "i=500.0#A\n", + "ra1=0.01#ohm\n", + "ra2=0.02#ohm\n", + "sw1=0.004#ohm\n", + "sw2=0.006#ohm\n", + "e1=240.0#V\n", + "e2=244.0#V\n", + "\n", + "#calculations\n", + "V=solve([(((e1-v)/ra1)+((e2-v)/ra2)-i)],[v])\n", + "i1=(e1-V[v])/ra1\n", + "i2=(e2-V[v])/ra2\n", + "#ratio of series winding (1/0.004):(1/0.0006) or 3:2\n", + "is1=i*3/5\n", + "is2=i*2/5\n", + "vbus=V[v]-(is1*sw1)\n", + "\n", + "#result\n", + "print \"I1=\",round(i1),\"A\"\n", + "print \"I2=\",round(i2),\"A\"\n", + "print \"Current in series winding:\"\n", + "print \"generator A=\",round(is1),\"A\"\n", + "print \"generator B=\",round(is2),\"B\"\n", + "print \"Bus bar voltage=\",round(vbus,1),\"V\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I1= 200.0 A\n", + "I2= 300.0 A\n", + "Current in series winding:\n", + "generator A= 300.0 A\n", + "generator B= 200.0 B\n", + "Bus bar voltage= 236.8 V\n" + ] + } + ], + "prompt_number": 7 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter28.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_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_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_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb new file mode 100644 index 00000000..6653720b --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter29.ipynb @@ -0,0 +1,2354 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:102ba4bcb83ebd9f77c7c3f970c6e3d48b2bd31161c690d1b5c67b800706b1d0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 29: D.C. Motor" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 1 + }, + { + "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": [ + "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", + "plt.plot(T,N)\n", + "plt.xlabel(\"Torque(NM.m)\") \n", + "plt.ylabel(\"Speed(rpm)\") \n", + "plt.xlim((0,500))\n", + "plt.ylim((0,800))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH0VJREFUeJzt3XucVXW9//HXWxDvCpQNihcgJUSj1CBv5aaMPP0K7VGh\nHutQ9Kh+VkdPnUrwVz/m13mcQrucfvV7lF3Ug50kKROxzEBjm56j4AWviMjBUVGYxFsqKiCf3x/r\nO8xmnFnMDHvN3jP7/Xw89oO1116X7/6W+z3f9f2u71JEYGZm1pVdal0AMzOrbw4KMzPL5aAwM7Nc\nDgozM8vloDAzs1wOCjMzy1VoUEj6kqT7Jd0n6QpJu0kaLmmxpFWSFkkaWrH9LEkPS1opaUqRZTMz\ns+5RUfdRSBoJ3AwcERGvSroSuA44EtgQERdJOh8YFhEzJY0HrgAmAiOBG4CxEbG1kAKamVm3FH3p\naTCwp6TBwJ7Ak8BUYG76fC5welo+DZgXEZsjogVYDUwquHxmZrYDhQVFRDwBfA94jCwgnouIxUBT\nRLSmzVqBprR8ILC24hBryVoWZmZWQ4UFhaRhZK2HUWQhsLekj1duE9l1r7xrX55fxMysxgYXeOxT\ngEci4mkASb8DjgfWSxoREeslHQD8NW3/BHBwxf4HpXXbkeTwMDPrhYhQb/Yrso/iUeA4SXtIEllw\nrACuBaanbaYDC9LyQuBMSUMkjQYOB5Z1duCI8CuC2bNn17wM9fJyXbguXBf5r51RWIsiIpZJ+i1w\nF7Al/fszYB9gvqRPAy3AtLT9CknzycJkC/D52NlvZ2ZmO63IS09ERDPQ3GH1M2Sti862/xbwrSLL\nZGZmPeM7s/uxUqlU6yLUDddFO9dFO9dFdRR2w11RJPmKlJl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QDaR32Ud1gfwe+A7wO3R4RkbnXg1/bu1YrntfWUH9m7AK3kHMusJtyhsIHoNGFUxougTwE2dbLcy\nbTcmvT+L9kBpAY4BSKOQRqfPbgQ+mh4O0/bw+kPSPg9VjmJqExHPAvOBT1ccX4Ai4mWyZxn/a+++\n6vZSx/mG1LIwqwoHhQ1EL5NNy/4bSfeS/aV/cfpsW8siIl4BPgv8IXVut9LeqrgKGC7pfuALZNPb\nExEPAl8HFkm6h2zq5hFpnz8ApYpyVLZivge8scNnkY55ZaRngleS9PMuhspu27cTk8laKWZV42nG\nzRJJJwNfiYgP9XL/EcDlETGluiXrURmuAs6v6J8x22luUZhtr9d/OUXEeuDnbU8a62vpcbELHBJW\nbW5RmJlZLrcozMwsl4PCzMxyOSjMzCyXg8LMzHI5KMzMLJeDwszMcv1/2z+0oo1xQeUAAAAASUVO\nRK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dc6a50>" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 29.33, Page Number:1017" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "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", + "plt.plot(I,P)\n", + "plt.plot(I,M)\n", + "plt.xlabel(\"Current\") \n", + "plt.ylabel(\"Power(kW)\") \n", + "plt.xlim((0,30))\n", + "plt.ylim((0,12))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEPCAYAAABLIROyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFX69vHvQxQwsiiIICgqiAQJroogoxjANYBhDauw\nRkQy6k/FV8VdV13ELGZUwFUMiGsiCqMIKkgOg6hrRCUJkmGGed4/qkdHGJjYXd1d9+e65prumu6u\npyypu885VafM3RERkegpF3YBIiISDgWAiEhEKQBERCJKASAiElEKABGRiFIAiIhEVNwCwMyeM7Pl\nZrYg37L7zCzLzOaZ2Rtmtk+81i8iIrsXzxbA80DHHZZNAI5y9+bAUuCWOK5fRER2I24B4O5TgTU7\nLJvo7rmxp58CdeK1fhER2b0wxwCuAN4Lcf0iIpEWSgCY2a3ANnd/KYz1i4gIVEj0Cs3s78AZQIfd\nvEYTFImIlIC7W1Ffm9AWgJl1BG4EznH3Lbt7rbun7c8dd9wReg3aPm2bti/9foornqeBvgxMBxqa\n2fdmdgXwKLAnMNHM5pjZ4/Fav4iI7F7cuoDc/eICFj8Xr/WJiEjx6ErgEGRkZIRdQlyl8/al87aB\nti9qrCT9RvFmZp6MdYmIJDMzw5N1EFhERJKHAkBEJKIUACIiEaUAEBGJKAWAiEhEKQBERCJKASAi\nElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiSgFgIhIRCkAREQiSgEgIhJRCgARkYhSAIiIRJQC\nQEQkTpL9zoYKABGRMrZs3TIuGX0Jj854NOxSdksBICJSRrbmbOXej+6l+ZPNabBfA65scWXYJe1W\nhbALEBFJB2O/GEvfcX1pVKMRn171KQ2qNwi7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vvetjC1/ArjB3b8BngQecPcW7v5RGW2XSIkl/KbwIiEp6Zwnr+zi+XFAY2B60LtEJWB6\nvte9Efs9Gzg33/KUvxGJpA8FgETFIuD8Apbn8MeWcJUd/r5xN88nuvslu1jf1tjv7ejfmSQpdQFJ\nJLj7ZKBy/ruwmVkzgm/kjc2sUmx63ZOL+JGfAieYWYPYZ1UrwhlF64G9il+9SHwoACRKugCnxE4D\nXQj8i+COUK8CCwm6d2bv5v2/dSPFbujzd+BlM5tH0P3TcBfvyXvf20CX2CDwCaXcFpFS03TQIiIR\npRaAiEhEKQBERCJKASAiElEKABGRiFIAiIhElAJARCSiFAAiIhGlABARiaj/D6p919PNp3KzAAAA\nAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb558dfd050>" + ] + } + ], + "prompt_number": 4 + }, + { + "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": [] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter30.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_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_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_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb new file mode 100644 index 00000000..aebdac51 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter31.ipynb @@ -0,0 +1,1094 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:7d0991402755fd2e3c1083bccec70e0a43143da000e9a99e70877269e1fdc43a" + }, + "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.5, Page Number:1096" + ] + }, + { + "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=220#V\n", + "p=44.76#kW\n", + "i=13.25#A\n", + "ish=2.55#A\n", + "ra=0.032#ohm\n", + "bd=2#V\n", + "\n", + "#calculations\n", + "p_nl=v*i\n", + "ia=i-ish\n", + "cu_loss=ia**2*ra\n", + "bd_loss=2*ia\n", + "variable_loss=bd_loss+cu_loss\n", + "w=p_nl-variable_loss\n", + "ans=solve([v*(I+ish)-p*1000-w-2*I-ra*I**2],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v\n", + "e=p*1000/pin\n", + "\n", + "#result\n", + "print \"Full load current=\",round(il),\"A\"\n", + "print \"Full load efficiency=\",round(e*100),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Full load current= 226.0 A\n", + "Full load efficiency= 90.0 %\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.6, Page Number:1097" + ] + }, + { + "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", + "o=17.158#kW\n", + "inpt=20.2#KW\n", + "rf=50.0#ohm\n", + "ra=0.06#ohm\n", + "o2=7.46#kW\n", + "\n", + "#calculations\n", + "loss1=inpt*1000.0-o*1000.0\n", + "ic=inpt*1000.0/v\n", + "ish=v/rf\n", + "ia=ic-ish\n", + "cu_loss=ia**2*ra\n", + "const_loss=loss1-cu_loss\n", + "ans=solve([v*(I+ish)-o2*1000.0-(ra*I**2)-const_loss],[I])\n", + "il=ans[0][0]+ish\n", + "pin=il*v/1000.0\n", + "e=o2*1000*100/(pin*1000)\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e,1),\"%\"\n", + "print \"power input=\",round(il),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 74.1 %\n", + "power input= 50.0 A\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 31.7, Page Number:1097" + ] + }, + { + "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", + "p=14.92#kW\n", + "ia=6.5#A\n", + "ish=2.2#A\n", + "i=70.0#A\n", + "pd=3.0#V\n", + "\n", + "#calculations\n", + "ic_nl=ia+ish\n", + "pi=v*ic_nl\n", + "cu_loss=v*ish\n", + "cu_lossa=ia**2*pd/i\n", + "const_loss=pi-cu_lossa\n", + "ans=solve([v*I+cu_loss-p*1000-const_loss-(pd/i)*I**2],[I])\n", + "ic=ans[0][0]+ish\n", + "pin=v*ic\n", + "e=p*1000*100/pin\n", + "\n", + "#result\n", + "print \"efficiency=\",round(e),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "efficiency= 88.0 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb new file mode 100644 index 00000000..feb75575 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter32.ipynb @@ -0,0 +1,5447 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:37afbdb95d83a409c42483f9400df0ec405aafcb3f017067345a44342a88aaf2" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 32: Transformer" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 2 + }, + { + "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.25, Page Number:1144" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "f=50.0#Hz\n", + "v1=2300.0#V\n", + "v2=230.0#V\n", + "r1=0.286#ohm\n", + "r2_=0.319#ohm\n", + "ro=250.0#ohm\n", + "x1=0.73#ohm\n", + "x2_=0.73#ohm\n", + "xo=1250.0#ohm\n", + "z1=complex(r1,x1)\n", + "z2_=complex(r2_,x2_)\n", + "zl=complex(0.387,0.29)\n", + "ym=complex(0.004,-0.0008)\n", + "\n", + "#calculations\n", + "k=v2/v1\n", + "zl_=zl/(k**2)\n", + "zm=1/ym\n", + "x=zm+zl_+z2_\n", + "i1=v1/(z1+(zm*(z2_+zl_))/(zm+z2_+zl_))\n", + "i2_=i1*zm/(zm+z2_+zl_)\n", + "io=i1*(z2_+zl_)/(zm+z2_+zl_)\n", + "pf=i1.real/abs(i1)\n", + "pi=v1*abs(i1)*pf/1000\n", + "po=abs(i2_)**2*zl_.real/1000\n", + "cu_loss=abs(i1)**2*r1\n", + "cu_loss2=abs(i2_)**2*r2_\n", + "core_loss=io.real**2*240\n", + "e=po*100/pi\n", + "v2_=i2_*zl_\n", + "reg=(v1-v2_.real)*100/v2_.real\n", + "\n", + "#result\n", + "print \"Power input=\",round(pi.real,1),\"kW\"\n", + "print \"Power output=\",round(po,1),\"kW\"\n", + "print \"Primary Cu loss=\",round(cu_loss),\"W\"\n", + "print \"Secondary Cu loss=\",round(cu_loss2),\"W\"\n", + "print \"Efficiency=\",round(e.real,2),\"%\"\n", + "print \"Regulation=\",round(reg.real),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Power input= 104.6 kW\n", + "Power output= 82.5 kW\n", + "Primary Cu loss= 854.0 W\n", + "Secondary Cu loss= 680.0 W\n", + "Efficiency= 78.91 %\n", + "Regulation= 3.0 %\n" + ] + } + ], + "prompt_number": 42 + }, + { + "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": [ + "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", + "plt.plot(F,L)\n", + "plt.xlabel(\"f -->\") \n", + "plt.ylabel(\"Wi/f\") \n", + "plt.xlim((0,100))\n", + "plt.ylim((0.74,2))\n", + "plt.show()\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "eddy current loss per kg at 50 Hz= -0.118333333333333 W\n" + ] + }, + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEPCAYAAACp/QjLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGNpJREFUeJzt3XmUXVWZ9/HvIwQUI4OCKIMrvhLmgIBDEJoUwsIAEscG\nQdoBlSwHyIuCTC0ppWlEYYmKAw4gL0q6XWILUURRrBZRQIRAIAOTGkI0ICAC3QFCnvePfUNCnVSl\nqqhT51bd72etWrnDrnufOqmqX+2zhxOZiSRJq3te0wVIktqP4SBJqjAcJEkVhoMkqcJwkCRVGA6S\npIrawiEito6IX0XE7RFxW0Qc20e7L0XEnRFxS0TsVlc9kqSBW7fG134KOC4z50TEeOAPEXFVZs5f\n2SAiDgK2ycyJEfF64GvA5BprkiQNQG09h8z8a2bOad1+DJgPbNGr2TTgolab64GNI2LzumqSJA3M\niIw5RMQEYDfg+l5PbQncu9r9xcBWI1GTJKlvtYdD65TSD4AZrR5EpUmv++7nIUkNq3PMgYgYB1wK\nfDczf7SGJvcBW692f6vWY71fx8CQpCHIzN5/gA9InbOVAvg2MC8zz+2j2eXAe1rtJwN/z8yla2qY\nmX5kMnPmzMZraJcPj4XHwmPR/8dzUWfPYS/gSODWiLi59dgpwCsAMvP8zLwiIg6KiLuAx4H311iP\nJGmAaguHzPwNA+iZZObH6qpBkjQ0rpAeZbq6upouoW14LFbxWKzisRge8VzPS42EiMjRUKcktZOI\nINttQFqSNHoZDpKkCsNBklRhOEiSKgwHSVKF4SBJqjAcJEkVhoMkqcJwkCRVGA6SpArDQZJUYThI\nkioMB0lSheEgSaowHCRJFYaDJKnCcJAkVRgOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySp\nwnCQJFXUGg4RcUFELI2IuX08v1FEzI6IORFxW0S8r856J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qR72HKRhlpkrMvMnmfkOYB/gVcCiiHhNw6VJA2Y4SIPUunbvzRHx44jYKiLmtO4f\nvVqbjSJiOmU3zFdRNseb29drSu3G00pSH57DaaXvUq77/X3KbsJ311GfVKd1my5AamND/cvpP4H3\nZOaKtbaU2pQ9B0lShWMOkqQKw0GSVGE4SJIqDAdJUoXhIEmqMBwkSRWGgySpwnCQJFX8fyk/juvE\nTvrvAAAAAElFTkSuQmCC\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458da10>" + ] + } + ], + "prompt_number": 5 + }, + { + "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": 8 + }, + { + "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": [ + "\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", + "plt.plot(K,E)\n", + "plt.xlabel(\"load,kVA\") \n", + "plt.ylabel(\"Efficiency\") \n", + "plt.xlim((0,8))\n", + "plt.ylim((92,98))\n", + "plt.show()\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "display_data", + "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG69JREFUeJzt3XuUXFWd9vHvQxoIIQgGuQoRRCUy3CEEMyQ0vKAYIzcD\nyAveGODFMJiFLG/ga9phgQO+6oy4RlEECQKDtFyEKAGUDkHkTggBuS4Qwi0wIQmEBDrJ7/1jn6Y7\nTXV3dbpOn+o6z2etXl116pyq3wr0s0/ts8/eigjMzKw81im6ADMzG1wOfjOzknHwm5mVjIPfzKxk\nHPxmZiXj4DczK5lcg1/SNEkPS5ovaVq2bXdJd0l6UNK9ksbmWYOZma0pt+CXtDNwIjAW2A2YLGkH\n4HxgekTsAXwve25mZoOkKcf3HgPcHRErACTNBo4EVgEbZ/tsAryQYw1mZtaN8rpzV9IY4HrgE8AK\n4M/APcDPgVmASN84PhERz+dShJmZvUduwQ8g6QRgKrAMeAR4mxT2bRFxraSjgJMj4uDcijAzszXk\nGvxrfJB0DrAA+EFEbJJtE7A4IjausL8nETIzWwsRod5ez3tUz+bZ79Gk/v0rgBcl7Z/tciDwRE/H\nR0Td/0yfPr3wGhqhRtfpOuv9Z6jUWY08L+4CtEraFGgHpkbEEkknAf8pqQlYDpyccw1mZtZFrsEf\nERMrbPsrsHeen2tmZj3znbsD1NzcXHQJfRoKNYLrrDXXWVtDpc5qDNrF3f6SFPVam5lZvZJEFHlx\n18zM6o+D38ysZBz8ZmYl4+A3MysZB7+ZWck4+M3MSsbBb2ZWMg5+M7OScfCbmZWMg9/MrGQc/GZm\nJePgNzMrGQe/mVnJOPjNzErGwW9mVjIOfjOzknHwm5mVjIPfzKxkHPxmZiXj4DczKxkHv5lZyTj4\nzcxKxsFvZlYyDn4zs5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sFvjS4AIuJaYB7wEPBn4BtZl8/lwN6S5gFfIFsHIFtp66ps/z8C93R5zzHAa10/IyJa\ngV+Rrg8Mz7a3AjvR2Yc/gbT4yMtdjp0D7JR1L5kNCk/LbNZPkm4gXRBeWXQtZmvDwW9mVjLu6jEz\nKxkHv5lZyTj4zcxKxsFvZlYyDn4zs5Jx8JuZlYyD38ysZP4/yRihRWdm7REAAAAASUVORK5CYII=\n", + "text": [ + "<matplotlib.figure.Figure at 0x7fb9d458d610>" + ] + } + ], + "prompt_number": 6 + }, + { + "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.68, Page Number:1173" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "Wi=Symbol('Wi')\n", + "Wcu=Symbol('Wcu')\n", + "P=600.0#kVA\n", + "e=0.92#efficiency\n", + "pf=0.8\n", + "x=0.6\n", + "\n", + "#calculations\n", + "ans=solve([(e*(1*P*1+Wi+1**2*Wcu))-(1*P*1),(e*(0.5*P*1+Wi+0.5*0.5*Wcu))-(0.5*P*1)],[Wi,Wcu])\n", + "e2=(x*P*pf*100)/((x*P*pf)+ans[Wi]+(x**2*ans[Wcu]))\n", + "\n", + "#result\n", + "print \"Efficiency=\",round(e2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Efficiency= 90.6 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter33.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_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_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_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb new file mode 100644 index 00000000..d43ac823 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter34.ipynb @@ -0,0 +1,3109 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6eddcd87c5c220a184bc6a72a3af06c45a444c1fd08c6f0e5d7d854e3ce98ba8" + }, + "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.29, Page Number:1285" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#variable declaration\n", + "P=23#kW\n", + "p=4\n", + "e=0.92\n", + "n=1440#r.p.m\n", + "loss=0.25\n", + "\n", + "#calculations\n", + "motor_input=P/e\n", + "total_loss=motor_input-P\n", + "friction_loss=total_loss/p\n", + "Pm=P+friction_loss\n", + "Psw=Pm*1500/n\n", + "ws=2*3.14*1500/60\n", + "Tsw=Psw*1000/ws\n", + "\n", + "#result\n", + "print \"Synchronous torque=\",round(Tsw),\"N-m\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Synchronous torque= 156.0 N-m\n" + ] + } + ], + "prompt_number": 3 + }, + { + "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.0#V\n", + "z=complex(0.4,1)\n", + "zr=complex(0.6,1)\n", + "zm=complex(10.0,50.0)\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.0/(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": 1 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb new file mode 100644 index 00000000..99cfc3c1 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter35.ipynb @@ -0,0 +1,1258 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:add10f49c90b647cf79b01d40fd4e1ca71068a8e9a13aad0c70f06cfeaabeda4" + }, + "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.26, Page Number:1348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "from sympy.solvers import solve\n", + "from sympy import Symbol\n", + "#variable declaration\n", + "s=Symbol('s')\n", + "z2=complex(2,1.2)\n", + "z1=complex(0.5,3.5)\n", + "#Z1=((2/s)^2+1.2^2)^0.5\n", + "#Z2=((0.5/s)^2+3.5^2)^0.5\n", + "#T1=T2\n", + "ans=solve([(((2**2)/(s**2))+1.2**2)-((((0.5**2)/(s**2))+3.5**2)*4)],[s])\n", + "print \"slip=\",round(ans[1][0]*100,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "slip= 25.1 %\n" + ] + } + ], + "prompt_number": 6 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb new file mode 100644 index 00000000..95eb9b1e --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter36.ipynb @@ -0,0 +1,391 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:cd727f10a4caede23f6dcd22be7261834b049d15aeb309766271ec0c03a024c2" + }, + "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": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 36.5, Page Number:1394" + ] + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb new file mode 100644 index 00000000..7862658a --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter37.ipynb @@ -0,0 +1,3137 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:3a9b903871f8bdf2f971bf001fa7cff3dbf47aad5e657d5bfcea016f9756d9ac" + }, + "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": [ + "import math\n", + "#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)*100/vp\n", + "#result\n", + "print \"regulation=\",round(regn,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 91.7 %\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.31, Page Number:1441" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=20#A\n", + "i_f=37.5#A\n", + "pf=0.8\n", + "v=6600#V\n", + "eo=7600#V\n", + "\n", + "#calculations\n", + "ob=math.sqrt(i_f**2+i*math.cos(math.radians(53.8)))\n", + "reg=(eo-v)*100/v\n", + "i=100*i_f/i_f1\n", + "zs=100*100/i\n", + "Eo=math.sqrt((100+zs*0.6)**2+(zs*pf)**2)\n", + "reg2=(Eo-100)*100/100\n", + "\n", + "#result\n", + "print \"regulation:\"\n", + "print \"by ampere turn method=\",reg,\"%\"\n", + "print \"by synchronous impedence method=\",reg2,\"%\"\n", + "\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation:\n", + "by ampere turn method= 15 %\n", + "by synchronous impedence method= 38.7243469779 %\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.32, Page Number:1442" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "r=0.2#ohm\n", + "p=1000000#VA\n", + "v=2000#V\n", + "pf=0.8\n", + "\n", + "#calculation\n", + "vp=v*math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v)\n", + "V=v/math.sqrt(3)+(i*r**pf)\n", + "reg=(1555-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "reg2=(1080-(v/math.sqrt(3)))*100/(v/math.sqrt(3))\n", + "\n", + "#result\n", + "print \"regulation when pf=0.8 lagging:\",round(reg,1),\"%\"\n", + "print \"regulation when pf=0.8 leading:\",round(reg2,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation when pf=0.8 lagging: 34.7 %\n", + "regulation when pf=0.8 leading: -6.5 %\n" + ] + } + ], + "prompt_number": 11 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.33, Page Number:1443" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "x_drop=0.1\n", + "r_drop=0.02\n", + "pf=0.8\n", + "v=3300#V\n", + "p=800000#VA\n", + "\n", + "#calculations\n", + "vp=v/math.sqrt(3)\n", + "ir_drop=r_drop*vp\n", + "leakage=x_drop*vp\n", + "E=math.sqrt((vp*pf+ir_drop)**2+(vp*0.6+leakage)**2)\n", + "i=p/(math.sqrt(3)*v)\n", + "\n", + "#result\n", + "print \"I=\",round(i),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "I= 140.0 A\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.34, Page Number:1444" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "i_f1=17#A\n", + "p=2000000.0#VA\n", + "i_f2=42.5#A\n", + "v=6000.0/math.sqrt(3)#V\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "e=math.sqrt((v*pf)**2+(v*0.6+450)**2)\n", + "#corresponding i=26.5 A\n", + "#field amperes required for balancing armature reaction=14.5A\n", + "i_f=math.sqrt(26.5**2+14.5**2+2*26.5*14.4*math.cos(math.radians(53.8)))\n", + "\n", + "#result\n", + "print \"resulting field current=\",round(i_f,1),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "resulting field current= 36.9 A\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.35, Page Number:1446" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "v=11000#V\n", + "p=1000000#VA\n", + "r=2#ohm\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "vp=v/math.sqrt(3)\n", + "e=math.sqrt((vp*pf+i*2)**2+(vp*0.6+p/1000)**2)\n", + "i1=math.sqrt(108**2+30**2+2*108*30*math.cos(math.radians(53.8)))\n", + "#corresponding emf=7700V\n", + "reg=(7700-vp)*100/vp\n", + "\n", + "#result\n", + "print \"Voltage regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage regulation= 21.2 %\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.36, Page Number:1448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declarations\n", + "p=275000.0#W\n", + "v=6600.0#V\n", + "stator_i=35.0#A\n", + "exciting_i=50.0#A\n", + "x=0.08\n", + "pf=0.8\n", + "\n", + "#calculations\n", + "x_drop=v*x/math.sqrt(3)\n", + "vp=v/math.sqrt(3)\n", + "i=p/(math.sqrt(3)*v*pf)\n", + "ia=i*exciting_i/stator_i\n", + "ob=math.sqrt(vp**2+x_drop**2)\n", + "oc=59.8#field current corresponding tothe voltage\n", + "i_fl=p/(math.sqrt(3)*v)\n", + "ia2=exciting_i*i_fl/stator_i\n", + "ei=math.sqrt(ia2**2+oc**2)\n", + "\n", + "#result\n", + "print \"Exciting current=\",round(ei),\"A\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Exciting current= 69.0 A\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.37, Page Number:1449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=600000.0#VA\n", + "v=3300.0#V\n", + "pf=0.8\n", + "l_drop=7\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "amp_turns=1.06*i*200.0/8\n", + "vp=v/math.sqrt(3)\n", + "x_drop=vp*l_drop/100\n", + "oa=1910.0#V\n", + "reg=(2242.0-oa)*100/oa\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 17.4 %\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example Number 37.38, Page Number:1450" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "#variable declaration\n", + "p=15000000#VA\n", + "v=11000#V\n", + "pf=0.8\n", + "v1=8400\n", + "\n", + "#calculations\n", + "i=p/(math.sqrt(3)*v)\n", + "xl=640/i\n", + "zs=(v1/math.sqrt(3))/i\n", + "vp=v/math.sqrt(3)\n", + "eo=7540\n", + "reg=(eo-vp)*100/vp\n", + "\n", + "#result\n", + "print \"regulation=\",round(reg,1),\"%\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "regulation= 18.7 %\n" + ] + } + ], + "prompt_number": 22 + }, + { + "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_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb new file mode 100644 index 00000000..90e078d2 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/chapter38.ipynb @@ -0,0 +1,1739 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:4fa0d818a53ec5608949c7725a11f84c78952680d73d506e4179ac596da192fb" + }, + "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": 2 + }, + { + "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.5, Page Number:1506" + ] + }, + { + "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=3300.0#V\n", + "P=1.5#MW\n", + "phi=3.0\n", + "xd=4.0#ohm per phase\n", + "xq=3.0#ohm per phase\n", + "sin_phi=0\n", + "cos_phi=1\n", + "phi=0\n", + "#calculations\n", + "v1=v/math.sqrt(3)\n", + "ia=P*math.pow(10,6)/(math.sqrt(3)*v*cos_phi)\n", + "tan_sigma=(v1*sin_phi-ia*xq)/(v1*cos_phi)\n", + "sigma=math.atan(tan_sigma)\n", + "alpha=phi-sigma\n", + "i_d=ia*math.sin(sigma)\n", + "iq=ia*math.cos(sigma)\n", + "eb=v1*math.cos(alpha)-i_d*xd\n", + "#eb=1029sin(alpha)+151sin(2*alpha)\n", + "#dPm/d(alpha)=1029sin(alpha)+151sin(2*alpha)=0\n", + "ans=solve([(604.0*x**2+1029.0*x-302.0)],[x])\n", + "alpha2=math.acos(math.radians(ans[1][0]))\n", + "Pm=1029*math.sin(alpha2)+151*math.sin(alpha2)\n", + "max_P=Pm*3\n", + "\n", + "#result\n", + "print \"Maximum mechanical power which the motor would develop=\",round(max_P),\"kW\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Maximum mechanical power which the motor would develop= 3540.0 kW\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_by_A_K_Theraja_B_L_Thereja/chapter39.ipynb b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_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_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_by_A_K_Theraja_B_L_Thereja/screenshots/29.png b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/29.png Binary files differnew file mode 100644 index 00000000..0c99fa16 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/29.png diff --git a/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/32.png b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/32.png Binary files differnew file mode 100644 index 00000000..1e7a1724 --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/32.png diff --git a/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/5.png b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/5.png Binary files differnew file mode 100644 index 00000000..3db6b46d --- /dev/null +++ b/A_Textbook_of_Electrical_Technology_AC_and_DC_Machines_by_A_K_Theraja_B_L_Thereja/screenshots/5.png diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1.ipynb new file mode 100644 index 00000000..dfa6106f --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1.ipynb @@ -0,0 +1,164 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 1: Vector Analysis" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 25" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "divergence of force vector is 3\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "from scipy.integrate import tplquad\n", + "\n", + "#Calculation\n", + "func = lambda x,y,z: 2*(x+y+z)\n", + "x1,x2 = 0,1\n", + "y1,y2 = lambda x: 0, lambda x: 1\n", + "z1,z2 = lambda x,y: 0, lambda x,y: 1\n", + "r1,r2=tplquad(func,x1,x2,y1,y2,z1,z2) \n", + "r=r1-r2; #divergence of force vector\n", + "\n", + "#Result\n", + "print \"divergence of force vector is\",int(round(r))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16, Page number 28" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the result is 59 /60\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "from scipy.integrate import quad\n", + "\n", + "#Calculation\n", + "def zintg(x):\n", + " return x**3\n", + "r1=quad(zintg,0,1)[0]\n", + "def zintg(x):\n", + " return 2*x**4\n", + "r2=quad(zintg,0,1)[0]\n", + "def zintg(x):\n", + " return 3*x**8\n", + "r3=quad(zintg,0,1)[0]\n", + "r=r1+r2+r3; #result\n", + "\n", + "#Result\n", + "print \"the result is\",int(r*60),\"/60\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 17, Page number 29" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the result is 2 /3\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "from scipy.integrate import quad\n", + "from fractions import Fraction\n", + "\n", + "#Calculation\n", + "def zintg(x):\n", + " return (x-(x**2))\n", + "r1=quad(zintg,0,1)[0]\n", + "def zintg(x):\n", + " return 2*((x**2)+(x**3))\n", + "r2=quad(zintg,0,1)[0]\n", + "def zintg(y):\n", + " return 2*((y**3)-(y**2))\n", + "r3=quad(zintg,1,0)[0]\n", + "def zintg(y):\n", + " return (y**2)+y\n", + "r4=quad(zintg,1,0)[0]\n", + "r=r1+r2+r3+r4; #result\n", + "\n", + "#Result\n", + "print \"the result is\",int(r*3),\"/3\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10.ipynb new file mode 100644 index 00000000..254b9907 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10.ipynb @@ -0,0 +1,247 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 10: Vibrations in Bars" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 348" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fundamental frequency of longitudinal vibrations is 1780.0 Hz\n", + "fundamental frequency of transverse vibrations is 31.691 Hz\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=1; #bar length(m)\n", + "R=0.01/2; #radius(m)\n", + "V=3560; #wave velocity(m/sec)\n", + "x=3.0112; \n", + "\n", + "#Calculation\n", + "k=R/2; #geometric radius(m)\n", + "fL=V/(2*l); #fundamental frequency of longitudinal vibrations(Hz)\n", + "fT=math.pi*V*k*x**2/(8*(l**2)); #fundamental frequency of transverse vibrations(Hz)\n", + "\n", + "#Result\n", + "print \"fundamental frequency of longitudinal vibrations is\",fL,\"Hz\"\n", + "print \"fundamental frequency of transverse vibrations is\",round(fT,3),\"Hz\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 348" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "youngs modulus is 1.96 *10**11 N/m**2\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "C=5050; #sound velocity(m/sec)\n", + "rho=7700; #steel density(kg/m**3)\n", + "\n", + "#Calculation\n", + "Y=C**2*rho; #youngs modulus(N/m**2)\n", + "\n", + "#Result\n", + "print \"youngs modulus is\",round(Y/10**11,2),\"*10**11 N/m**2\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fundamental frequency of transverse vibrations is 25.35 Hz\n", + "first overtone of transverse vibrations is 69.9 Hz\n", + "answer for first overtone in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=1; #bar length(m)\n", + "R=0.004; #radius(m)\n", + "C=3560; #wave velocity(m/sec)\n", + "x=3.0112; \n", + "\n", + "#Calculation\n", + "k=R/2; #geometric radius(m)\n", + "f1=math.pi*C*k*x**2/(8*(l**2)); #fundamental frequency of transverse mode of vibration(Hz)\n", + "f2=math.pi*C*k*5**2/(8*(l**2)); #first overtone of transverse mode of vibration(Hz)\n", + "\n", + "#Result\n", + "print \"fundamental frequency of transverse vibrations is\",round(f1,2),\"Hz\"\n", + "print \"first overtone of transverse vibrations is\",round(f2,1),\"Hz\"\n", + "print \"answer for first overtone in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 349" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "value of a is 0.00195 m\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=0.2; #bar length(m)\n", + "C=4990; #wave velocity(m/sec)\n", + "x=3.0112; \n", + "f1=250; #frequency(Hz)\n", + "\n", + "#Calculation\n", + "a=f1*8*(l**2)*math.sqrt(12)/(math.pi*C*(x**2)); #value of a(m)\n", + "\n", + "#Result\n", + "print \"value of a is\",round(a,5),\"m\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 350" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency is 0.155 MHz\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Y=21*10**10; #youngs modulus(N/m**2) \n", + "rho=8800; #nickel density(kg/m**3)\n", + "R=0.01; #radius(m)\n", + "\n", + "#Calculation\n", + "k=R/2; #geometric radius(m)\n", + "C=math.sqrt(Y/rho); #sound velocity(m/sec)\n", + "f=C/(2*math.pi*k); #frequency(Hz)\n", + "\n", + "#Result\n", + "print \"frequency is\",round(f/10**6,3),\"MHz\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11.ipynb new file mode 100644 index 00000000..2722c8a0 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11.ipynb @@ -0,0 +1,403 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 11: Vibrations in Strings" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 371" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "amplitude is 10 cm\n", + "frequency is 1 Hz\n", + "wavelength is 200.0 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "#given Y=10sinmath.pi(0.01x-2t)\n", + "#by comparing with Y=Asin(kx-omegat) we get\n", + "A=10; #amplitude(cm)\n", + "omega=2*math.pi;\n", + "k=0.01*math.pi; #wavelength constant\n", + "\n", + "#Calculation\n", + "f=omega/(2*math.pi); #frequency(Hz)\n", + "lamda=2*math.pi/k; #wavelength(cm) \n", + "\n", + "#Result\n", + "print \"amplitude is\",A,\"cm\"\n", + "print \"frequency is\",int(f),\"Hz\"\n", + "print \"wavelength is\",lamda,\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 371" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "along negative axis displacement y= 0.01 sin( 10 *math.pi/3 x + 1100 t)\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "f=550; #frequency(Hz)\n", + "A=0.01; #amplitude(cm)\n", + "v=330; #wave velocity(m/sec)\n", + "\n", + "#Calculation\n", + "omega=2*math.pi*f; #angular frequency\n", + "k=omega/v; #wavelength constant\n", + "#along negative axis displacement y=Asin(kx+omegat) substitute the values\n", + "\n", + "#Result\n", + "print \"along negative axis displacement y=\",A,\"sin(\",int(k*3/math.pi),\"*math.pi/3 x +\",int(omega/math.pi),\"t)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 371" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wave velocity is 40.82 m/s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=2; #length(m)\n", + "m=0.6; #mass(kg)\n", + "T=500; #tension(N)\n", + "\n", + "#Calculation\n", + "mew=m/l; #linear density(kg/m)\n", + "v=math.sqrt(T/mew); #wave velocity(m/s)\n", + "\n", + "#Result\n", + "print \"wave velocity is\",round(v,2),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 372" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "amplitude is 1.028 units\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=10; #stationary wave point\n", + "t=1; #assume\n", + "y1=5*math.sin(((2*math.pi*t)-(2*x))*math.pi/180); #transverse wave\n", + "y2=5*math.sin(((2*math.pi*t)+(2*x))*math.pi/180); #transverse wave\n", + "\n", + "#Calculation\n", + "y=y1+y2; #amplitude(units)\n", + "\n", + "#Result\n", + "print \"amplitude is\",round(y,3),\"units\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 372" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "string linear density is 0.0249 kg/m\n", + "wave velocity is 633.56 m/s\n", + "fundamental frequency is 316.78 Hz\n", + "frequency of 1st overtone is 633.56 Hz\n", + "frequency of 2nd overtone is 950.34 Hz\n", + "fundamental wavelength is 2 m\n", + "1st overtone wavelength is 1 m\n", + "2nd overtone wavelength is 0.667 m\n", + "answers in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r=1*10**-3; #string radius(m)\n", + "l=1; #length(m)\n", + "rho=7930; #density(kg/m**3)\n", + "T=10**4; #tension(N)\n", + "\n", + "#Calculation\n", + "mew=math.pi*r**2*rho/l; #string linear density(kg/m)\n", + "v=math.sqrt(T/mew); #wave velocity(m/s)\n", + "f1=v/(2*l); #fundamental frequency(Hz)\n", + "f2=2*f1; #frequency of 1st overtone(Hz)\n", + "f3=3*f1; #frequency of 2nd overtone(Hz)\n", + "lamda1=2*l/1; #fundamental wavelength(m)\n", + "lamda2=2*l/2; #1st overtone wavelength(m)\n", + "lamda3=2*l/3; #2nd overtone wavelength(m)\n", + "\n", + "#Result\n", + "print \"string linear density is\",round(mew,4),\"kg/m\"\n", + "print \"wave velocity is\",round(v,2),\"m/s\"\n", + "print \"fundamental frequency is\",round(f1,2),\"Hz\"\n", + "print \"frequency of 1st overtone is\",round(f2,2),\"Hz\"\n", + "print \"frequency of 2nd overtone is\",round(f3,2),\"Hz\"\n", + "print \"fundamental wavelength is\",int(lamda1),\"m\"\n", + "print \"1st overtone wavelength is\",int(lamda2),\"m\"\n", + "print \"2nd overtone wavelength is\",round(lamda3,3),\"m\"\n", + "print \"answers in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 373" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "power is 19.74 watts\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mew=0.1; #string linear density(kg/m)\n", + "A=0.1; #amplitude(m)\n", + "f=10; #frequency(Hz)\n", + "T=10; #tension(N)\n", + "\n", + "#Calculation\n", + "v=math.sqrt(T/mew); #wave velocity(m/s)\n", + "P=2*math.pi**2*f**2*A**2*v*mew; #power(watt)\n", + "\n", + "#Result\n", + "print \"power is\",round(P,2),\"watts\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 373" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "tension in string is 524.29 N\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "f=500; #frequency(Hz)\n", + "T=500; #tension(N)\n", + "f1=512; #required frequency(Hz)\n", + "\n", + "#Calculation\n", + "T1=T*f1**2/f**2; #tension in string(N)\n", + "\n", + "#Result\n", + "print \"tension in string is\",round(T1,2),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 374" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "amplitude at x=5 is 4.0\n", + "first node position is 0.0 m\n", + "second node position is 30.0 m\n", + "third node position is 60.0 m\n", + "wavelength is 60.0 m\n", + "component transverse wave equations are y1= 4.0 sin math.pi((x/30)-(48*t))\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "#given Y=8sin(math.pi*x/30)cos(48*math.pi*t)\n", + "#by comparing with Y=2Asin(kx)cos(omegat) we get\n", + "A=8/2; #amplitude(cm)\n", + "omega=48*math.pi;\n", + "x=5; #stationary wave point\n", + "k=math.pi/30; #wavelength constant\n", + "y1=0;\n", + "y2=math.pi;\n", + "y3=2*math.pi;\n", + "\n", + "#Calculation\n", + "y=2*A*math.sin(math.pi*x/30); #amplitude at x=5\n", + "x1=y1*30/math.pi; #first node position(m) \n", + "x2=y2*30/math.pi; #second node position(m) \n", + "x3=y3*30/math.pi; #third node position(m) \n", + "lamda=2*(x3-x2); #wavelength(m) \n", + "\n", + "#Result\n", + "print \"amplitude at x=5 is\",y\n", + "print \"first node position is\",x1,\"m\"\n", + "print \"second node position is\",x2,\"m\"\n", + "print \"third node position is\",x3,\"m\"\n", + "print \"wavelength is\",lamda,\"m\"\n", + "print \"component transverse wave equations are y1=\",A,\"sin math.pi((x/30)-(48*t))\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12.ipynb new file mode 100644 index 00000000..a30f5154 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12.ipynb @@ -0,0 +1,194 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 12: Ultrasonics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 394" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fundamental frequency is 958.33 KHz\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "v=5750; #velocity(m/s)\n", + "t=3*10**-3; #thickness(m)\n", + "\n", + "#Calculation\n", + "lamda=2*t; #wavelength(m)\n", + "f=v/lamda; #fundamental frequency(Hz)\n", + "\n", + "#Result\n", + "print \"fundamental frequency is\",round(f/10**3,2),\"KHz\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 394" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "natural frequency is 1365.0 KHz\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Y=7.9*10**10; #youngs modulus(N/m**2)\n", + "rho=2650; #density(Kg/m**3)\n", + "t=2*10**-3; #thickness(m)\n", + "\n", + "#Calculation\n", + "v=math.sqrt(Y/rho); #velocity(m/s)\n", + "lamda=2*t; #wavelength(m)\n", + "f=v/lamda; #natural frequency(Hz)\n", + "\n", + "#Result\n", + "print \"natural frequency is\",round(f/10**3),\"KHz\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 395" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pressure wave amplitude is 13.04 N/m**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "rho0=1.21; #air density(kg/m**3)\n", + "C=343; #sound velocity(m/sec)\n", + "f=500; #frequency(Hz)\n", + "A=10**-5; #displacement amplitude(m)\n", + "\n", + "#Calculation\n", + "omega=2*math.pi*f; #angular frequency(Hz)\n", + "Pe=rho0*C*omega*A; #pressure wave amplitude(N/m**2)\n", + "\n", + "#Result\n", + "print \"pressure wave amplitude is\",round(Pe,2),\"N/m**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 395" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of pressure amplitudes is 58.0\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Z1=1.43*10**6; #value of constant in water(Rayls)\n", + "Z2=425.7; #value of constant in air(Rayls)\n", + "\n", + "#Calculation\n", + "Pe1byPe2=math.sqrt(Z1/Z2); #ratio of pressure amplitudes\n", + "\n", + "#Result\n", + "print \"ratio of pressure amplitudes is\",round(Pe1byPe2)" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2.ipynb new file mode 100644 index 00000000..68990ae4 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2.ipynb @@ -0,0 +1,532 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 2: Mechanics of Particles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 75" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "momentum of electron is 5.37 *10**-19 gm cm/sec\n", + "velocity of truck in 1st case is 12 m/sec\n", + "velocity of truck in 2nd case is 18.97 m/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=9*10**-28; #mass(gram)\n", + "E=100; #kinetic energy(eV)\n", + "e=1.6*10**-12; #kinetic energy(erg)\n", + "mc=4000; #mass of car(kg)\n", + "mt=10000; #mass of truck(kg)\n", + "vc=30; #speed of car(m/s)\n", + "\n", + "#Calculation\n", + "P=math.sqrt(E*e*2*m); #momentum of electron(gm cm/sec)\n", + "vt=mc*vc/mt; #velocity of truck in 1st case(m/sec)\n", + "v1=math.sqrt(mc*vc**2/mt); #velocity of truck in 2nd case(m/sec)\n", + "\n", + "#Result\n", + "print \"momentum of electron is\",round(P*10**19,2),\"*10**-19 gm cm/sec\"\n", + "print \"velocity of truck in 1st case is\",int(vt),\"m/sec\"\n", + "print \"velocity of truck in 2nd case is\",round(v1,2),\"m/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 76" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnitude of velocity is 10 *math.sqrt(2) m/sec\n", + "direction of velocity is 135 degrees or 225 degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "v=30; #speed(m/sec)\n", + "P1=30; #momentum of 1st part(i)\n", + "P2=30; #momentum of 2nd part(j)\n", + "P3=3; #momentum of 3rd part(v)\n", + "\n", + "#Calculation\n", + "#from conservation of momentum, 30i+30j+3v=0. from which we get v=-10(i+j)\n", + "i=1; #coordinate of i\n", + "j=1; #coordinate of j\n", + "m=math.sqrt(i**2+j**2); #magnitude\n", + "mv=10*m; #magnitude of velocity(m/sec)\n", + "vbar=math.acos(-10/mv); #direction of velocity(rad) \n", + "vbar1=int(vbar*180/math.pi); #direction of velocity(degrees)\n", + "vbar2=360-vbar1; #direction of velocity(degrees) \n", + "\n", + "#Result\n", + "print \"magnitude of velocity is\",int(mv/math.sqrt(2)),\"*math.sqrt(2) m/sec\"\n", + "print \"direction of velocity is\",vbar1,\"degrees or\",vbar2,\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 77" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of mass of fuel to empty rocket is 1095\n", + "answer given in the book is wrong\n", + "time is 9.99 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "v0=0; #initial velocity of rocket\n", + "vr=1.6; #velocity of gases(km/sec)\n", + "v=11.2; #final velocity(km/sec)\n", + "alphabyM0=1/10; #fuel burnt rate\n", + "\n", + "#Calculation\n", + "#assume x=log(M0/M)\n", + "x=(v-v0)/vr; \n", + "M0byM=math.exp(x); \n", + "MfbyMe=M0byM-1; #ratio of mass of fuel to empty rocket\n", + "t=(1-(1/M0byM))*(1/alphabyM0); #time(sec)\n", + "\n", + "#Result\n", + "print \"ratio of mass of fuel to empty rocket is\",int(MfbyMe)\n", + "print \"answer given in the book is wrong\"\n", + "print \"time is\",round(t,2),\"sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 78" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "final velocity of rocket is 7.82 km/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m1=300; #mass in 1st stage(kg)\n", + "m2=30; #mass in 2nd stage(kg)\n", + "m3=2400; #fuel filled(kg)\n", + "m4=270; #fuel filled(kg)\n", + "u=2; #velocity(km/sec)\n", + "\n", + "#Calculation\n", + "M0=m1+m2+m3+m4; #mass(kg)\n", + "M=m1+m2+m4; #mass(kg)\n", + "v0=u*math.log(M0/M); #initial velocity of rocket to the second stage(km/sec)\n", + "M01=m2+m4; #mass(kg)\n", + "V=v0+(u*math.log(M01/m2)); #final velocity of rocket(km/sec)\n", + "\n", + "#Result\n", + "print \"final velocity of rocket is\",round(V,2),\"km/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 79" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "final velocity of rocket is 2.8 km/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "mr=40; #mass of rocket(kg)\n", + "mf=360; #mass of fuel(kg)\n", + "g=9.8; #acceleration due to gravity(kg/m**2)\n", + "v=2*10**3; #exhaust velocity(m/sec)\n", + "v0=0; #velocity(m/sec)\n", + "\n", + "#Calculation\n", + "M=mr+mf; #mass(kg)\n", + "dmbydt=M*g/v; #thrust(kg/sec)\n", + "t=mf/dmbydt; #time taken(sec)\n", + "Vmax=v0+(v*math.log(M/mr))-(g*t); #final velocity of rocket(m/sec)\n", + "\n", + "#Result\n", + "print \"final velocity of rocket is\",round(Vmax/10**3,1),\"km/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 80" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thrust on rocket is 98 kg/sec\n", + "thrust on rocket to give acceleration is 398 kg/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "g=9.8; #acceleration due to gravity(kg/m**2)\n", + "vr=800; #exhaust velocity(m/sec)\n", + "M=8000; #mass(kg)\n", + "a=30; #acceleration(m/s**2)\n", + "\n", + "#Calculation\n", + "dMbydt=M*g/vr; #thrust on rocket(kg/sec)\n", + "dMbydt1=M*(g+a)/vr; #thrust on rocket to give acceleration(kg/sec)\n", + "\n", + "#Result\n", + "print \"thrust on rocket is\",int(dMbydt),\"kg/sec\"\n", + "print \"thrust on rocket to give acceleration is\",int(dMbydt1),\"kg/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 81" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thrust acting on rocket is 200 N\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "urel=10000; #exhaust velocity(m/s)\n", + "dMbydt=0.02; #rate of fuel burnt(kg/sec)\n", + "\n", + "#Calculation\n", + "Freaction=urel*dMbydt; #thrust acting on rocket(N)\n", + "\n", + "#Result\n", + "print \"thrust acting on rocket is\",int(Freaction),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 82" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "final velocity of rocket is 4.4 km/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "M=5000; #mass of rocket(kg)\n", + "mf=40000; #mass of fuel(kg)\n", + "urel=2*10**3; #exhaust velocity(m/sec)\n", + "v0=0; \n", + "\n", + "#Calculation\n", + "M0=M+mf; #mass(kg)\n", + "V=v0+(urel*math.log(M0/M)); #maximum velocity of rocket(m/sec)\n", + "\n", + "#Result\n", + "print \"final velocity of rocket is\",round(V/10**3,1),\"km/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 82" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "recoil velocity of nucleus is 0.27 *10**5 m/s\n", + "direction of momentum of nucleus is 150.0 degrees\n", + "kinetic energy is 0.145 *10**-15 J\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "P1=9.22*10**-21; #momentum(kgm/s)\n", + "P2=5.33*10**-21; #momentum(kgm/s)\n", + "m=3.9*10**-25; #mass of nucleus(kg)\n", + "\n", + "#Calculation\n", + "P=math.sqrt(P1**2+P2**2); #momentum(kgm/s)\n", + "V=P/m; #recoil velocity of nucleus(m/s)\n", + "theta=math.atan(P2/P1); #direction of momentum of nucleus(rad)\n", + "theta=180-(theta*180/math.pi); #direction of momentum of nucleus(degrees) \n", + "K=P**2/(2*m); #kinetic energy(J)\n", + "\n", + "#Result\n", + "print \"recoil velocity of nucleus is\",round(V/10**5,2),\"*10**5 m/s\"\n", + "print \"direction of momentum of nucleus is\",round(theta),\"degrees\"\n", + "print \"kinetic energy is\",round(K*10**15,3),\"*10**-15 J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 86" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "recoil velocity of residual is -2.564 *10**5 m/s\n", + "kinetic energy of residual is 0.068 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "malpha=4; #kinetic energy of alpha particle(MeV)\n", + "mth=234; #mass of thorium(kg)\n", + "valpha=1.5*10**7; #velocity(m/s)\n", + "\n", + "#Calculation\n", + "vth=-malpha*valpha/mth; #recoil velocity of residual(m/s)\n", + "Kalpha=malpha; #kinetic energy of alpha(MeV)\n", + "Kth=malpha*Kalpha/mth; #kinetic energy of residual(MeV)\n", + "\n", + "#Result\n", + "print \"recoil velocity of residual is\",round(vth/10**5,3),\"*10**5 m/s\"\n", + "print \"kinetic energy of residual is\",round(Kth,3),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 86" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity before collision is 5.196\n", + "velocity after collision is 5.196\n", + "kinetic energy before collision is 40.5*m\n", + "kinetic energy before collision is 27.0*m\n", + "energy is not conserved\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "from sympy import Symbol\n", + "\n", + "#Variable declaration\n", + "u1=9; #velocity(m/sec)\n", + "theta=30*math.pi/180; #scattering angle(rad)\n", + "u2=0; #velocity(m/sec)\n", + "m=Symbol(\"m\");\n", + "\n", + "#Calculation\n", + "v1plusv2=u1/math.cos(theta); \n", + "v1minusv2=u2/math.cos(180-theta); \n", + "v1=(v1plusv2+v1minusv2)/2; #velocity before collision\n", + "v2=(v1plusv2-v1minusv2)/2; #velocity after collisiovelocity after collision isn,v2\n", + "KE1=(m*(u1**2/2))+(m*(u2**2/2)); #kinetic energy before collision\n", + "KE2=((m*v1**2)/2)+((m*v2**2)/2); #kinetic energy before collision\n", + "\n", + "#Result\n", + "print \"velocity before collision is\",round(v1,3)\n", + "print \"velocity after collision is\",round(v2,3)\n", + "print \"kinetic energy before collision is\",KE1\n", + "print \"kinetic energy before collision is\",KE2\n", + "print \"energy is not conserved\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3.ipynb new file mode 100644 index 00000000..37d67888 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3.ipynb @@ -0,0 +1,425 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 3: Rigid Body Dynamics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 116" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "moment of inertia through centre is 5 kg m**2\n", + "moment of inertia through length of rod is 10 kg m**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "ma=mb=10; #mass(kg)\n", + "ra1=rb1=0.5; #radius(m)\n", + "ra2=1; #radius(m)\n", + "rb2=0; #radius(m)\n", + " \n", + "#Calculation\n", + "I0=(ma*ra1**2)+(mb*rb1**2); #moment of inertia through centre(kg m**2)\n", + "IA=IB=(ma*ra2**2)+(mb*rb2**2); #moment of inertia through length of rod(kg m**2)\n", + "\n", + "#Result\n", + "print \"moment of inertia through centre is\",int(I0),\"kg m**2\"\n", + "print \"moment of inertia through length of rod is\",IA,\"kg m**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 117" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "final angular velocity is 3 rev/sec\n", + "increase in kinetic energy 237.0 J\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "I0=6; #initial moment of inertia(Kg m**2)\n", + "omega0=1; #initial angular velocity(rev/sec)\n", + "I=2; #final moment of inertia(Kg m**2)\n", + "\n", + "#Calculation\n", + "omega=I0*omega0/I; #final angular velocity(rev/sec)\n", + "K0=I0*(omega0*2*math.pi)**2/2; #initial kinetic energy(J)\n", + "K=I*(omega*2*math.pi)**2/2; #final kinetic energy(J)\n", + "deltaK=K-K0; #increase in kinetic energy(J)\n", + "\n", + "#Result\n", + "print \"final angular velocity is\",int(omega),\"rev/sec\"\n", + "print \"increase in kinetic energy\",round(deltaK),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 118" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "precessional angular velocity is 2 rad/sec in clockwise direction\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "I=5*10**-4; #moment of inertia(Kg m**2)\n", + "omega=30*2*math.pi; #angular velocity(rad/sec)\n", + "m=0.5; #mass(Kg) \n", + "g=9.8; #acceleration due to gravity(m/sec**2)\n", + "r=0.04; #radius(m)\n", + "\n", + "#Calculation\n", + "J=I*omega; #angular momentum(Kg m**2/sec)\n", + "tow=m*g*r; #torque(Nm)\n", + "omegap=tow/J; #precessional angular velocity(rad/sec)\n", + "\n", + "#Result\n", + "print \"precessional angular velocity is\",int(omegap),\"rad/sec in clockwise direction\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 118" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "common speed is 250 revolutions/min\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "I1=I2=1; #assume\n", + "omega1=500; #angular velocity(rev/min)\n", + "omega2=0; #angular velocity(rev/min)\n", + "\n", + "#Calculation\n", + "omega=((I1*omega1)+(I2*omega2))/(I1+I2); #common speed(revolutions/minute)\n", + "\n", + "#Result\n", + "print \"common speed is\",int(omega),\"revolutions/min\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 119" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "precessional angular velocity is 12.19 rad/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "M=50; #mass of sphere(g)\n", + "g=980; #acceleration due to gravity(gm/sec**2)\n", + "r=0.02; #radius(m)\n", + "l=0.005; #length(m)\n", + "n=20; #number of revolutions\n", + "\n", + "#Calculation\n", + "I=2*M*r**2/5; #moment of inertia of sphere(kg m**2)\n", + "L=r+l; #distance from pivot(m)\n", + "omega=n*2*math.pi; #angular velocity(rad/sec)\n", + "omegap=M*g*L*100/(I*10**4*omega); #precessional angular velocity(rad/sec)\n", + "\n", + "#Result\n", + "print \"precessional angular velocity is\",round(omegap,2),\"rad/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 120" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "moment of inertia of ring is 1 *10**4 gram cm**2\n", + "angular momentum is 6.28 *10**5 erg sec\n", + "torque is 1 *10**4 dyne cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "M=100; #mass(gm)\n", + "R=10; #radius(cm)\n", + "omega=10*2*math.pi; #angular velocity(rad/sec)\n", + "t=10; #time(sec)\n", + "\n", + "#Calculation\n", + "I=M*R**2; #moment of inertia of ring(gram cm**2)\n", + "L=I*omega; #angular momentum(erg sec)\n", + "tow=L/(2*math.pi*t); #torque(dyne cm)\n", + "\n", + "#Result\n", + "print \"moment of inertia of ring is\",int(I/10**4),\"*10**4 gram cm**2\"\n", + "print \"angular momentum is\",round(L/10**5,2),\"*10**5 erg sec\"\n", + "print \"torque is\",int(tow/10**4),\"*10**4 dyne cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 120" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "precessional angular velocity is 1.2 radians/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "g=980; #acceleration due to gravity(gm/sec**2)\n", + "r=5; #radius(cm)\n", + "k=6; #radius of gyration(cm)\n", + "omega=2*math.pi*18; #angular velocity(revolutions/sec)\n", + "\n", + "#Calculation\n", + "omegap=g*r/(k**2*omega); #precessional angular velocity(radians/sec)\n", + "\n", + "#Result\n", + "print \"precessional angular velocity is\",round(omegap,1),\"radians/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 128" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "torque acting on it is ( 9.6 i -7.2 j+ 0.0 k)*10**-4 Nm\n", + "rate of change of kinetic energy is 0\n", + "hence kinetic energy is constant\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "M=0.1; #mass(kg)\n", + "R=0.04; #radius(m)\n", + "#omega=3i+4j+6k\n", + "omegax=3; #angular velocity(rad/s)\n", + "omegay=4; #angular velocity(rad/s)\n", + "omegaz=6; #angular velocity(rad/s)\n", + "domegaxbydt=domegaybydt=domegazbydt=0;\n", + "\n", + "#Calculation\n", + "Ixx=M*R**2/4; #principal inertia element(kg m**2)\n", + "Iyy=M*R**2/4; #principal inertia element(kg m**2)\n", + "Izz=M*R**2/2; #principal inertia element(kg m**2)\n", + "towx=(omegax*domegaxbydt)+(omegay*omegaz*(Izz-Iyy)); #torque on x(Nm)\n", + "towy=(omegay*domegaybydt)+(omegaz*omegax*(Ixx-Izz)); #torque on y(Nm)\n", + "towz=(omegaz*domegazbydt)+(omegax*omegay*(Iyy-Ixx)); #torque on x(Nm)\n", + "dTbydt=(omegax*towx)+(omegay*towy)+(omegaz*towz); #rate of change of kinetic energy\n", + "\n", + "#Result\n", + "print \"torque acting on it is (\",towx*10**4,\"i\",towy*10**4,\"j+\",towz,\"k)*10**-4 Nm\"\n", + "print \"rate of change of kinetic energy is\",int(dTbydt)\n", + "print \"hence kinetic energy is constant\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 130" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "precessional angular velocity is 40 *math.pi rad/sec or 20 revolutions/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "M=1; #assume\n", + "R=1; #assume\n", + "omega=20*2*math.pi; #angular velocity(rad/sec)\n", + "\n", + "#Calculation\n", + "Ixx=Iyy=M*R**2/4; #moment of inertia about diametrical axis\n", + "Izz=M*R**2/2; #moment of inertia about axis normal to plane\n", + "omegap=(Izz-Ixx)*omega/Ixx; #precessional angular velocity(radians/sec)\n", + "\n", + "#Result\n", + "print \"precessional angular velocity is\",int(omegap/math.pi),\"*math.pi rad/sec or\",int(omegap/(2*math.pi)),\"revolutions/sec\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4.ipynb new file mode 100644 index 00000000..d7a5d585 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4.ipynb @@ -0,0 +1,446 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 4: Mechanics of Continuous Media" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 162" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "youngs modulus is 4.7 *10**12 N/m**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "F=1200*9.8; #tensile force(N)\n", + "A=0.025*10**-4; #area(m**2)\n", + "delta_l=0.003; #extension(m)\n", + "l=3; #length(m)\n", + "\n", + "#Calculation\n", + "Y=F*l/(A*delta_l); #youngs modulus(N/m**2)\n", + "\n", + "#Result\n", + "print \"youngs modulus is\",round(Y/10**12,1),\"*10**12 N/m**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 162" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "volume occupied at 25atm is 3499 cm**3\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "v=3500; #volume(cm**3)\n", + "K=10*10**11; #bulk modulus(dyne/cm**2)\n", + "p=24*76*13.6*980; #change in pressure(dyne/cm**2)\n", + "\n", + "#Calculation\n", + "delta_v=p*v/K; #volume occupied(cm**3)\n", + "V=v-delta_v; #volume occupied at 25atm(cm**3)\n", + "\n", + "#Result\n", + "print \"volume occupied at 25atm is\",int(V),\"cm**3\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 163" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "poissons ratio is 0.25\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "eta=1; #assume\n", + "Y=2.5*eta; #youngs modulus\n", + "\n", + "#Calculation\n", + "sigma=Y/(2*eta)-1; #poissons ratio\n", + "\n", + "#Result\n", + "print \"poissons ratio is\",sigma" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 163" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "bulk modulus is 1 *10**11 N/m**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=0.1; #side of cube(m)\n", + "p=10**6; #static pressure(pa)\n", + "delta_v=10**-8; #change in volume(m**3)\n", + "\n", + "#Calculation\n", + "v=l**3; #volume of cube(m**3)\n", + "K=p*v/delta_v; #bulk modulus(N/m**2)\n", + "\n", + "#Result\n", + "print \"bulk modulus is\",int(K/10**11),\"*10**11 N/m**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 163" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "poissons ratio is 0.25\n", + "bulk modulus is 1.33 *10**11 N/m**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Y=2*10**11; #youngs modulus(N/m**2)\n", + "eta=8*10**10; #rigidity modulus(N/m**2)\n", + "\n", + "#Calculation\n", + "sigma=Y/(2*eta)-1; #poissons ratio\n", + "K=Y/(3*(1-2*sigma)); #bulk modulus(N/m**2)\n", + "\n", + "#Result\n", + "print \"poissons ratio is\",sigma\n", + "print \"bulk modulus is\",round(K/10**11,2),\"*10**11 N/m**2\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 163" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "increase in temperature is 0.01653 K\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=2; #length(m)\n", + "A=2*10**-6; #area(m**2)\n", + "e=5*10**-3; #elongation(m)\n", + "rho=9000; #density(Kg/m**3)\n", + "C=4200; #specific heat(J/Kg/K)\n", + "F=1000; #force(N)\n", + "\n", + "#Calculation\n", + "v=l*A; #volume(m**3)\n", + "W=F*e*v/(2*A*l); #work done(J)\n", + "m=rho*v; #mass(kg)\n", + "delta_t=W/(m*C); #increase in temperature(K)\n", + "\n", + "#Result\n", + "print \"increase in temperature is\",round(delta_t,5),\"K\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 164" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "potential energy is 1.125 J\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=3; #length(m)\n", + "A=2.5*10**-6; #area(m**2)\n", + "e=3*10**-3; #elongation(m)\n", + "F=750; #force(N)\n", + "\n", + "#Calculation\n", + "v=l*A; #volume(m**3)\n", + "E=F*e*v/(2*A*l); #potential energy(J)\n", + "\n", + "#Result\n", + "print \"potential energy is\",E,\"J\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 164" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "depression of the rod from fixed end is 0.00648 m\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "L=0.5; #length(m)\n", + "x=0.5; #depression(m)\n", + "y=15*10**-3; #depression(m)\n", + "x1=0.3; #depression(m)\n", + "\n", + "#Calculation\n", + "A=(L*x**2/2)-(x**3/6); \n", + "y1=y*((L*x1**2/2)-(x1**3/6))/A; #depression of the rod from fixed end(m)\n", + "\n", + "#Result\n", + "print \"depression of the rod from fixed end is\",y1,\"m\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 165" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "deformation strain is 0.24\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r=0.4; #radius(cm)\n", + "l=100; #length(cm)\n", + "phi=60; #twisting angle(degree)\n", + "\n", + "#Calculation\n", + "theta=r*phi/l #deformation strain\n", + "\n", + "#Result\n", + "print \"deformation strain is\",theta" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 165" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "depression at the mid point is 8.124 *10**-5 m\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=0.1; #mass(kg)\n", + "g=9.8; #acceleration due to gravity(m/sec**2)\n", + "L=1; #length(m)\n", + "Y=10**10; #youngs modulus(N/m**2)\n", + "r=0.02; #radius of wire(m)\n", + "\n", + "#Calculation\n", + "y1=5*m*g*L**3/(12*Y*math.pi*r**4); #depression at the mid point(m)\n", + "\n", + "#Result\n", + "print \"depression at the mid point is\",round(y1*10**5,3),\"*10**-5 m\"\n", + "print \"answer given in the book is wrong\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5.ipynb new file mode 100644 index 00000000..3b038d09 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5.ipynb @@ -0,0 +1,664 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 5: Central Forces" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 200" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gravitational energy is 1.6675 *10**-10 J\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m1=m2=0.5; #mass(kg)\n", + "r2=0.1; #distance(m)\n", + "r1=float(\"inf\"); #distance(m)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "delta_U=G*m1*m2*((1/r2)-(1/r1)); #gravitational energy(J)\n", + "\n", + "#Result\n", + "print \"gravitational energy is\",delta_U*10**10,\"*10**-10 J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 201" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "net energy is -146.74 *10**-11 J\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m1=1; #mass(kg)\n", + "m2=2; #mass(kg)\n", + "m3=3; #mass(kg)\n", + "a=0.5; #side(m)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "delta_U=-G*((m1*m2)+(m2*m3)+(m3*m1))/a; #net energy(J)\n", + "\n", + "#Result\n", + "print \"net energy is\",round(delta_U*10**11,2),\"*10**-11 J\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 203" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "distance where potential becomes zero is 3.6 *10**8 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r=4*10**8; #distance(m)\n", + "M1=6*10**24; #mass of earth(kg)\n", + "M2=7.5*10**22; #mass of moon(kg)\n", + "\n", + "#Calculation\n", + "x=r/(1+math.sqrt(M2/M1)); #distance where potential becomes zero(m)\n", + "\n", + "#Result\n", + "print \"distance where potential becomes zero is\",round(x/10**8,1),\"*10**8 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 204" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "initial velocity is 306.7 km/s\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "g=9.8; #acceleration due to gravity(m/s**2)\n", + "R=6.4*10**3; #radius(km)\n", + "\n", + "#Calculation\n", + "v=math.sqrt(3*g*R/2); #initial velocity(km/s)\n", + "\n", + "#Result\n", + "print \"initial velocity is\",round(v,1),\"km/s\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 205" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity of particle is 5.77 *10**-14 m/s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=10**-26; #mass(kg)\n", + "R=0.5*10**-10; #radius(m)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "V=math.sqrt(G*m/(4*R)); #velocity of particle(m/s)\n", + "\n", + "#Result\n", + "print \"velocity of particle is\",round(V*10**14,2),\"*10**-14 m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 206" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gravitational potential is 6.67 *10**-10 J/kg\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=1; #mass(kg)\n", + "r=0.1; #radius(m)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "F=G*m/r**2; #force(N/kg)\n", + "U=F*r; #gravitational potential(J/kg)\n", + "\n", + "#Result\n", + "print \"gravitational potential is\",U*10**10,\"*10**-10 J/kg\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15, Page number 207" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "eccentricity of orbit is 0.9\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "rmax=1.2*10**12; #semi minor axis(m)\n", + "rmin=0.06*10**12; #semi major axis(m)\n", + "\n", + "#Calculation\n", + "e=(rmax-rmin)/(rmax+rmin); #eccentricity of orbit\n", + "\n", + "#Result\n", + "print \"eccentricity of orbit is\",round(e,1)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16, Page number 207" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum velocity is 525 km/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Vmin=21; #minimum velocity(km/sec)\n", + "rmax=4*10**10; #apogee position(m)\n", + "rmin=1.6*10**9; #perigee position(m)\n", + "\n", + "#Calculation\n", + "Vmax=Vmin*rmax/rmin; #maximum velocity(km/sec)\n", + "\n", + "#Result\n", + "print \"maximum velocity is\",int(Vmax),\"km/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 17, Page number 208" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "apogee position is 2.76 *10**10 m\n", + "velocity at apogee point is 32.57 km/s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "e=0.05; #eccentricity of orbit\n", + "Vmin=36; #minimum velocity(km/sec)\n", + "rmin=2.5*10**10; #perigee position(m)\n", + "\n", + "#Calculation\n", + "rmax=rmin*((1+e)/(1-e)); #apogee position(m)\n", + "Vmax=Vmin*rmin/rmax; #velocity at apogee point(km/s) \n", + "\n", + "#Result\n", + "print \"apogee position is\",round(rmax/10**10,2),\"*10**10 m\"\n", + "print \"velocity at apogee point is\",round(Vmax,2),\"km/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 18, Page number 208" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "eccentricity of orbit is 0.0417\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Vmin=23; #minimum velocity(km/sec)\n", + "Vmax=25; #velocity at apogee point(km/s) \n", + "\n", + "#Calculation\n", + "e=(Vmax-Vmin)/(Vmax+Vmin); #eccentricity of orbit\n", + "\n", + "#Result\n", + "print \"eccentricity of orbit is\",round(e,4)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 20, Page number 208" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "mass of earth is 5.968 *10**24 kg\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r=3.8*10**8; #radius(m)\n", + "T=27*24*3600; #time period(sec)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "M=4*math.pi**2*r**3/(G*T**2); #mass of earth(kg)\n", + "\n", + "#Result\n", + "print \"mass of earth is\",round(M/10**24,3),\"*10**24 kg\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 21, Page number 209" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of semi major axis is 0.724\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "T1=225; #time period of venus(days)\n", + "T2=365; #time period of earth(days)\n", + "\n", + "#Calculation\n", + "a1bya2=(T1/T2)**(2/3); #ratio of semi major axis\n", + "\n", + "#Result\n", + "print \"ratio of semi major axis is\",round(a1bya2,3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 22, Page number 209" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time period of planet is 510 days\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "a2=1; #assume\n", + "a1=1.25*a2; #axis of planet\n", + "T2=365; #time period of earth(days)\n", + "\n", + "#Calculation\n", + "T1=T2*math.sqrt((a1/a2)**3); #time period of planet(days)\n", + "\n", + "#Result\n", + "print \"time period of planet is\",int(T1),\"days\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 23, Page number 209" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "change in time period is 15.36 hours\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r1=1; #assume\n", + "r2=1-(40/100); #radius of earth\n", + "T1=24; #time period of earth(hours)\n", + "\n", + "#Calculation\n", + "T2=T1-(T1*((r2/r1)**2)); #change in time period(hours)\n", + "\n", + "#Result\n", + "print \"change in time period is\",T2,\"hours\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 24, Page number 210" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time interval to reach sun is 64.5 days\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=1; #assume\n", + "a1=R/2;\n", + "a=R;\n", + "T=365; #time period of earth(days)\n", + "\n", + "#Calculation\n", + "T1=T*math.sqrt((a1/a)**3)/2; #time interval to reach sun(days)\n", + "\n", + "#Result\n", + "print \"time interval to reach sun is\",round(T1,1),\"days\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 25, Page number 210" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "mass of sun is 2 *10**30 kg\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=1.5*10**11; #radius(m)\n", + "T=86400*365; #time period(sec)\n", + "G=6.67*10**-11; #gravitational constant\n", + "\n", + "#Calculation\n", + "M=4*math.pi**2*R**3/(G*T**2); #mass of sun(kg)\n", + "\n", + "#Result\n", + "print \"mass of sun is\",int(M/10**30),\"*10**30 kg\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6.ipynb new file mode 100644 index 00000000..495cf888 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6.ipynb @@ -0,0 +1,844 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 6: Special Theory of Relativity" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 235" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fringe shift is 0.2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "l=5; #length(m)\n", + "v=3*10**4; #velocity(m/sec)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "lamda=5000*10**-10; #wavelength(m)\n", + "\n", + "#Calculation\n", + "S=2*l*v**2/(c**2*lamda); #fringe shift\n", + "\n", + "#Result\n", + "print \"fringe shift is\",S" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 235" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "coordinates w.r.t moving observer are (x1,y1,z1,t1)=( 800 100 100 0 )\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=1000; #x-coordinate(m)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "t=2*10**-6; #time(s)\n", + "v1=0.6*c;\n", + "y1=y=100; #y-coordinate(m)\n", + "z1=z=100; #z-coordinate(m)\n", + "\n", + "#Calculation\n", + "x1=(x-(v1*t))/math.sqrt(1-((v1/c)**2)); #coordinate along x-axis\n", + "t1=(t-(x*v1/c**2))/math.sqrt(1-((v1/c)**2)); #time\n", + "\n", + "#Result\n", + "print \"coordinates w.r.t moving observer are (x1,y1,z1,t1)=(\",int(x1),int(y1),int(z1),int(t1),\")\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 236" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "decay time is 3.83 micro s\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "delta_t=2.3; #time(micro s)\n", + "c=1; #assume\n", + "v=0.8*c; #velocity\n", + "\n", + "#Calculation\n", + "delta_t1=delta_t/math.sqrt(1-(v**2/c**2)); #decay time(micro s)\n", + "\n", + "#Result\n", + "print \"decay time is\",round(delta_t1,2),\"micro s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 236" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "space shuttle velocity is 0.515 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "delta_t=24; #time(hours)\n", + "delta_t1=28; #decay time(hours)\n", + "\n", + "#Calculation\n", + "v=math.sqrt(1-(delta_t/delta_t1)**2); #space shuttle velocity(c)\n", + "\n", + "#Result\n", + "print \"space shuttle velocity is\",round(v,3),\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 236" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "observed displacement is 375.0 m\n", + "relative displacement is 433.01 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "delta_t=2.5*10**-6; #time(s)\n", + "c=3*10**8; #velocity of light\n", + "v=c/2; #velocity\n", + "\n", + "#Calculation\n", + "delta_t1=delta_t/math.sqrt(1-(v**2/c**2)); #decay time(s)\n", + "x=v*delta_t; #observed displacement(m)\n", + "x1=v*delta_t1; #relative displacement(m)\n", + "\n", + "#Result\n", + "print \"observed displacement is\",x,\"m\"\n", + "print \"relative displacement is\",round(x1,2),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 237" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "relative decay in earth diameter is 6.4 *10**-5 m\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=6400; #radius(km)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "v=30*10**3; #orbital velocity(m/sec)\n", + "\n", + "#Calculation\n", + "d=2*R; #diameter(km)\n", + "d1=d*math.sqrt(1-(v**2/c**2)); \n", + "delta_d=d-d1; #relative decay in earth diameter(m)\n", + "\n", + "#Result\n", + "print \"relative decay in earth diameter is\",round(delta_d*10**5,1),\"*10**-5 m\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 237" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity is 0.28 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "L=1; #length(m)\n", + "L1=0.96; #recorded length(m)\n", + "\n", + "#Calculation\n", + "v=math.sqrt(1-(L1/L)**2); #velocity(c)\n", + "\n", + "#Result\n", + "print \"velocity is\",v,\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 237" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "change in area is 0.0063 sq m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "R=0.1; #radius(m)\n", + "c=1; #assume\n", + "v=0.6*c; #velocity\n", + "\n", + "#Calculation\n", + "A=math.pi*R**2; #area(sq m)\n", + "R1=R*math.sqrt(1-(v**2/c**2)); \n", + "A1=math.pi*R*R1; #plate area in ellipse shape(sq m) \n", + "deltaA=A-A1; #change in area(sq m)\n", + "\n", + "#Result\n", + "print \"change in area is\",round(deltaA,4),\"sq m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 238" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "change in length is 28.0 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=1; #assume\n", + "v=0.8*c; #velocity\n", + "theta=30*math.pi/180; #angle(rad)\n", + "L=1; #length(m)\n", + "\n", + "#Calculation\n", + "Ix=L*math.cos(theta)*math.sqrt(1-(v**2/c**2));\n", + "Iy=L*math.sin(theta);\n", + "L1=math.sqrt((Ix**2)+(Iy**2)); #changed length(m)\n", + "delta_L=L-L1; #change in length(m)\n", + "\n", + "#Result\n", + "print \"change in length is\",round(delta_L*100),\"cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12, Page number 238" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "number of bacteria grown is 16\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "delta_t=10; #time(days)\n", + "c=1; #assume\n", + "v=0.99*c; #velocity\n", + "d=280; #number of days \n", + "\n", + "#Calculation\n", + "delta_t1=delta_t/math.sqrt(1-(v**2/c**2)); #decay time(days)\n", + "x=d/int(delta_t1); #number of folds\n", + "n=1*2**x; #number of bacteria grown \n", + "\n", + "#Result\n", + "print \"number of bacteria grown is\",int(n)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 239" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "relative velocity of B w.r.t A is 0.538 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=1; #assume\n", + "u1=c/3; #velocity\n", + "v=c/4; #velocity\n", + "\n", + "#Calculation\n", + "u=(u1+v)/(1+(u1*v/c**2)); #relative velocity of B w.r.t A(c)\n", + "\n", + "#Result\n", + "print \"relative velocity of B w.r.t A is\",round(u,3),\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 239" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "relative velocity is 0.9286 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "c=1; #assume\n", + "u1=0.8*c; #velocity\n", + "v=0.5*c; #velocity\n", + "\n", + "#Calculation\n", + "u=(u1+v)/(1+(u1*v/c**2)); #relative velocity(c)\n", + "\n", + "#Result\n", + "print \"relative velocity is\",round(u,4),\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16, Page number 239" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity is 0.866 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=1; #assume\n", + "m=2*m0;\n", + "\n", + "#Calculation\n", + "v=math.sqrt(1-(m0/m)**2); #velocity(c)\n", + "\n", + "#Result\n", + "print \"velocity is\",round(v,3),\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 17, Page number 240" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity is 0.9428 c\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=1; #assume\n", + "m=3*m0;\n", + "\n", + "#Calculation\n", + "v=math.sqrt(1-(m0/m)**2); #velocity(c)\n", + "\n", + "#Result\n", + "print \"velocity is\",round(v,4),\"c\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 19, Page number 240" + ] + }, + { + "cell_type": "code", + "execution_count": 64, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rest energy is 9 *10**17 J\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=10; #mass(kg)\n", + "c=3*10**8; #velocity of light(m/s)\n", + "\n", + "#Calculation\n", + "E=m0*c**2; #rest energy(J)\n", + "\n", + "#Result\n", + "print \"rest energy is\",int(E/10**17),\"*10**17 J\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 20, Page number 240" + ] + }, + { + "cell_type": "code", + "execution_count": 68, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "kinetic energy is 0.1266 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=9*10**-31; #mass of electron(g)\n", + "c=3*10**8; #velocity of light(m/sec) \n", + "v=0.6*c; #velocity of electron(m/sec)\n", + "e=1.6*10**-19; #conversion factor\n", + "\n", + "#Calculation\n", + "KE=m0*c**2*((1/math.sqrt(1-(v**2/c**2)))-1); #kinetic energy(J)\n", + "KE=KE/e; #kinetic energy(eV) \n", + "\n", + "#Result\n", + "print \"kinetic energy is\",round(KE/10**6,4),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 21, Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 74, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "loss in mass is 1.8667 *10**-13 kg\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=50; #mass(gm)\n", + "L=80*4.2; #latent heat(cal/gm)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "\n", + "#Calculation\n", + "Q=m*L; #heat loss(J)\n", + "delta_m=Q/c**2; #loss in mass(kg)\n", + "\n", + "#Result\n", + "print \"loss in mass is\",round(delta_m*10**13,4),\"*10**-13 kg\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 22, Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 76, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of photon is 1.237 *10**20 Hz\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=9.1*10**-31; #mass of photon(g)\n", + "c=3*10**8; #velocity of light(m/sec) \n", + "h=6.62*10**-34; #planck's constant(Jsec)\n", + "\n", + "#Calculation\n", + "new=m0*c**2/h; #frequency of photon(Hz)\n", + "\n", + "#Result\n", + "print \"frequency of photon is\",round(new/10**20,3),\"*10**20 Hz\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 23, Page number 241" + ] + }, + { + "cell_type": "code", + "execution_count": 80, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "kinetic energy of electron is 0.506 MeV\n", + "kinetic energy of positron is 0.394 MeV\n", + "answer for kinetic energy of positron given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m0=9*10**-31; #mass of photon(g)\n", + "c=3*10**8; #velocity of light(m/sec) \n", + "e=1.6*10**-19; #conversion factor\n", + "E=1.8; #energy(MeV)\n", + "\n", + "#Calculation\n", + "E0=m0*c**2/(e*10**6); #kinetic energy of electron(MeV) \n", + "k=(E/2)-E0; #kinetic energy of positron(MeV) \n", + "\n", + "#Result\n", + "print \"kinetic energy of electron is\",round(E0,3),\"MeV\"\n", + "print \"kinetic energy of positron is\",round(k,3),\"MeV\"\n", + "print \"answer for kinetic energy of positron given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 24, Page number 242" + ] + }, + { + "cell_type": "code", + "execution_count": 83, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "binding energy is 106.9 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Z=7; #atomic number of nitrogen\n", + "N=7; \n", + "mp=1.0086; #mass of proton(amu)\n", + "mn=1.0078; #mass of nucleus(amu)\n", + "amu=931.5; #energy(MeV)\n", + "A=14; #atomic mass \n", + "\n", + "#Calculation\n", + "EB=((Z*mp)+(N*mn)-A)*amu; #binding energy(MeV)\n", + "\n", + "#Result\n", + "print \"binding energy is\",round(EB,1),\"MeV\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7.ipynb new file mode 100644 index 00000000..13136d2a --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7.ipynb @@ -0,0 +1,172 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 7: Vibrations-Fundamental Concepts" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 271" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "force constant is 0.02 N/m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "a=-0.0176; #acceleration(m/s**2)\n", + "x=0.44; #displacement(m)\n", + "m=0.5; #mass(kg)\n", + "\n", + "#Calculation\n", + "omega0=math.sqrt(-a/x); #frequency\n", + "k=m*omega0**2; #force constant(N/m)\n", + "\n", + "#Result\n", + "print \"force constant is\",k,\"N/m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 271" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of oscillation is 1.114 Hertz\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "g=9.8; #acceleration(m/s**2)\n", + "x=0.5; #displacement(m)\n", + "m1=5; #mass(kg)\n", + "m2=2; #mass(kg)\n", + "\n", + "#Calculation\n", + "k=m1*g/x; #spring constant(N/m)\n", + "omega=math.sqrt(k/m2)/(2*math.pi); #frequency of oscillation(Hertz)\n", + "\n", + "#Result\n", + "print \"frequency of oscillation is\",round(omega,3),\"Hertz\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 272" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "amplitude is 0.3 m\n", + "frequency of oscillation is 1.0 /(2 math.pi) Hertz\n", + "initial phase is -2 *math.pi/6 rad\n", + "answer for initial phase given in the book is wrong\n", + "displacement is 0.3 m\n", + "velocity is -0.26 m/sec\n", + "acceleration is 0.15 m/s**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "#given y=0.3sin(t+pi/6)\n", + "A=0.3; #value of amplitude by comparing with the given equation\n", + "omega=1; #angular freuency(rad/sec)\n", + "theta=math.pi/6; #angle(rad)\n", + "t1=math.pi/3; #time(sec)\n", + "t2=2*math.pi/3; #time(sec)\n", + "t3=math.pi; #time(sec)\n", + "\n", + "#Calculation\n", + "new=omega/(2*math.pi); #frequency of oscillation(Hertz)\n", + "phi=theta-(math.pi/2); #initial phase(rad)\n", + "y=A*math.sin(theta+(math.pi/6)); #displacement(m)\n", + "V=omega*A*math.cos((omega*t2)+theta); #velocity(m/sec)\n", + "a=-A*omega**2*math.sin((omega*t3)+theta); #acceleration(m/s**2)\n", + "\n", + "#Result\n", + "print \"amplitude is\",A,\"m\"\n", + "print \"frequency of oscillation is\",new*2*math.pi,\"/(2 math.pi) Hertz\"\n", + "print \"initial phase is\",int(phi*6/math.pi),\"*math.pi/6 rad\"\n", + "print \"answer for initial phase given in the book is wrong\"\n", + "print \"displacement is\",round(y,1),\"m\"\n", + "print \"velocity is\",round(V,2),\"m/sec\"\n", + "print \"acceleration is\",a,\"m/s**2\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8.ipynb b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8.ipynb new file mode 100644 index 00000000..14a19e18 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8.ipynb @@ -0,0 +1,306 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 8: Damped and Forced Oscillations" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 300" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "restoration energy is 125000 erg\n", + "frequency is 5 /math.pi Hz\n", + "time taken for reduction of amplitude is 3.22 sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "k=10**4; #Force constant(dyne/cm)\n", + "x=5; #displacement(cm)\n", + "m=100; #mass(gm)\n", + "R=100; #resistance(dyne/cm)\n", + "At=1; #amplitude(cm)\n", + "A0=5; #amplitude(cm)\n", + "\n", + "#Calculation\n", + "E=(1/2)*k*x**2; #restoration energy(erg)\n", + "v=1/(2*math.pi)*math.sqrt(k/m) #frequency(Hz)\n", + "b=R/(2*m); \n", + "t=math.log(A0/At)/b; #time taken for reduction of amplitude(sec)\n", + "\n", + "#Result\n", + "print \"restoration energy is\",int(E),\"erg\"\n", + "print \"frequency is\",int(v*math.pi),\"/math.pi Hz\"\n", + "print \"time taken for reduction of amplitude is\",round(t,2),\"sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 301" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time taken is 61.08 sec\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "new=300; #frequency(Hz)\n", + "EbyE0=1/10; #ratio of energy\n", + "Q=5*10**4; #Q factor\n", + "\n", + "#Calculation\n", + "tbytow=math.log(1/EbyE0);\n", + "tow=Q/(2*math.pi*new); \n", + "t=tbytow*tow; #time taken(sec)\n", + "\n", + "#Result\n", + "print \"time taken is\",round(t,2),\"sec\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 301" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "time taken is 6 sec\n", + "procedure followed in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Q=2.2*10**3; #Q value of sonometer wire\n", + "new=210; #frequency(Hz)\n", + "\n", + "#Calculation\n", + "tow=Q/(2*math.pi*new); #torque(Nm)\n", + "t=4*tow; #time taken(sec)\n", + "\n", + "#Result\n", + "print \"time taken is\",int(t),\"sec\"\n", + "print \"procedure followed in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 302" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "damping factor is 0.0618 N/m\n", + "Q-factor is 113.3\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=0.5; #mass(kg)\n", + "g=9.8; #acceleration due to gravity(m/sec**2)\n", + "x=0.05; #displacement(m)\n", + "\n", + "#Calculation\n", + "k=m*g/x; \n", + "omega0=math.sqrt(k/m); #angular velocity\n", + "T=50*2*math.pi/omega0; #time taken for 50 oscillations(sec)\n", + "b=math.log(4)/T; #damping factor(N/m)\n", + "R=2*b*m; #resistance(ohm)\n", + "Q=m*omega0/R; #Q-factor\n", + "\n", + "#Result\n", + "print \"damping factor is\",round(b,4),\"N/m\"\n", + "print \"Q-factor is\",round(Q,1)\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 302" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "number of oscillations is 27.73\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=1; #mass(gm)\n", + "R=10; #damping constant\n", + "E=50; #energy(J)\n", + "E0=200; #energy(J)\n", + "new=200; #frequency(Hz)\n", + "\n", + "#Calculation\n", + "b=R/(2*m);\n", + "t=math.log(E0/E)/(2*b); #time taken(sec)\n", + "n=new*t; #number of oscillations\n", + "\n", + "#Result\n", + "print \"number of oscillations is\",round(n,2)\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 303" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "mechanical resistance is 0.0628 m/sec\n", + "damping constant is 0.209\n", + "spring constant 11.84 N/cm\n", + "answer for spring constant given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=0.3; #mass(kg)\n", + "new=2; #frequency(Hz)\n", + "Q=60; #Q-factor\n", + "\n", + "#Calculation\n", + "omega=2*math.pi*new; #angular velocity\n", + "R=m*omega/Q; #mechanical resistance(m/sec)\n", + "b=R/m; #damping constant\n", + "k=4*(math.pi**2)*m; #spring constant(N/cm)\n", + "\n", + "#Result\n", + "print \"mechanical resistance is\",round(R,4),\"m/sec\"\n", + "print \"damping constant is\",round(b,3)\n", + "print \"spring constant\",round(k,2),\"N/cm\"\n", + "print \"answer for spring constant given in the book is wrong\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/11.png b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/11.png Binary files differnew file mode 100644 index 00000000..fe54d658 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/11.png diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/22.png b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/22.png Binary files differnew file mode 100644 index 00000000..d7caa354 --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/22.png diff --git a/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/33.png b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/33.png Binary files differnew file mode 100644 index 00000000..8070c99c --- /dev/null +++ b/BSc_1st_Year_Physics_by_P._Balabhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/33.png diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter1.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter1.ipynb new file mode 100644 index 00000000..55a10563 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter1.ipynb @@ -0,0 +1,568 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 1: Atomic Spectra" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 55" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of emitted photon is 1.281 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "n1=3;\n", + "n2=5; #states\n", + "RH=1.0977*10**7;\n", + "\n", + "#Calculations\n", + "newbar=RH*((1/n1**2)-(1/n2**2));\n", + "lamda=10**6/newbar; #wavelength of emitted photon(angstrom)\n", + "\n", + "#Result\n", + "print \"wavelength of emitted photon is\",round(lamda,3),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 56" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of principal quantum number of two orbits is 14 / 11\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "E1=1.21;\n", + "E2=1.96; #energy of two orbits(eV)\n", + "\n", + "#Calculations\n", + "n1=math.sqrt(E2);\n", + "n2=math.sqrt(E1); #ratio of principal quantum number of two orbits\n", + "n1=n1*10;\n", + "n2=n2*10; #multiply and divide the ratio by 10\n", + "\n", + "#Result\n", + "print \"ratio of principal quantum number of two orbits is\",int(n1),\"/\",int(n2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 56" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnetic moment of proton is 5.041 *10**-27 Am**2\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "mp=1.672*10**-27; #mass of electron(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "\n", + "#Calculations\n", + "mewp=e*h/(4*math.pi*mp); #magnetic moment of proton(Am**2) \n", + "\n", + "#Result\n", + "print \"magnetic moment of proton is\",round(mewp*10**27,3),\"*10**-27 Am**2\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 56" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "specific charge of electron is 1.7604 *10**11 coulomb/kg\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mewB=9.274*10**-24; #bohr magneton(amp m**2)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "\n", + "#Calculations\n", + "ebym=mewB*4*math.pi/h; #specific charge of electron(coulomb/kg) \n", + "\n", + "#Result\n", + "print \"specific charge of electron is\",round(ebym/10**11,4),\"*10**11 coulomb/kg\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 57" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength separation is 0.3358 angstrom\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "B=1; #flux density(Wb/m**2)\n", + "lamda=6000*10**-10; #wavelength(m)\n", + "m=9.1*10**-31; #mass(kg)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "\n", + "#Calculations\n", + "d_lamda=B*e*(lamda**2)/(4*math.pi*m*c); #wavelength separation(m)\n", + "d_lamda=2*d_lamda*10**10; #wavelength separation(angstrom)\n", + "\n", + "#Result\n", + "print \"wavelength separation is\",round(d_lamda,4),\"angstrom\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 57" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy of electron in 1st and 2nd orbit is -13.6 eV and -3.4 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "n1=1;\n", + "n2=2; #states\n", + "\n", + "#Calculations\n", + "E1=-13.6/n1**2; #energy of electron in 1st orbit(eV)\n", + "E2=-13.6/n2**2; #energy of electron in 2nd orbit(eV)\n", + "\n", + "#Result\n", + "print \"energy of electron in 1st and 2nd orbit is\",E1,\"eV and\",E2,\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 58" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "linear momentum is 2.107 *10**-24 kg ms-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda=0.5*10**-10; #radius of 1st orbit(m)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "\n", + "#Calculations\n", + "L=h/(2*math.pi*lamda); #linear momentum(kg ms-1)\n", + "\n", + "#Result\n", + "print \"linear momentum is\",round(L*10**24,3),\"*10**-24 kg ms-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 58" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "state to which it is excited is 4\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "E1=-13.6; #energy of electron in 1st orbit(eV)\n", + "E2=-12.75; #energy of electron in 2nd orbit(eV)\n", + "\n", + "#Calculations\n", + "n=math.sqrt(-E1/(E2-E1)); #state to which it is excited\n", + "\n", + "#Result\n", + "print \"state to which it is excited is\",int(n)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 59" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "bohr magneton is 9.262 *10**-24 coulomb Js kg-1\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "\n", + "#Calculations\n", + "mewB=e*h/(4*math.pi*m); #bohr magneton(coulomb Js kg-1) \n", + "\n", + "#Result\n", + "print \"bohr magneton is\",round(mewB*10**24,3),\"*10**-24 coulomb Js kg-1\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 59" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "component separation is 2.7983 *10**8 Hz\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "B=0.02; #magnetic field(T)\n", + "\n", + "#Calculations\n", + "delta_new=e*B/(4*math.pi*m); #component separation(Hz)\n", + "\n", + "#Result\n", + "print \"component separation is\",round(delta_new/10**8,4),\"*10**8 Hz\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 61" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnetic flux density is 2.14 Tesla\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "lamda=10000*10**-10; #wavelength(m)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "d_lamda=1*10**-10; #wavelength separation(m)\n", + "\n", + "#Calculations\n", + "B=d_lamda*4*math.pi*m*c/(e*lamda**2); #magnetic flux density(Tesla)\n", + "\n", + "#Result\n", + "print \"magnetic flux density is\",round(B,2),\"Tesla\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 19, Page number 66" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "separation is 0.33 angstrom\n", + "wavelength of three components is 4226 angstrom 4226.33 angstrom 4226.666 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "lamda=4226; #wavelength(angstrom)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "B=4; #magnetic field(Wb/m**2)\n", + "\n", + "#Calculations\n", + "dnew=B*e/(4*math.pi*m); \n", + "dlamda=lamda**2*dnew*10**-10/c; #separation(angstrom)\n", + "dlamda1=lamda+dlamda;\n", + "dlamda2=dlamda1+dlamda; #wavelength of three components(Hz)\n", + "\n", + "#Result\n", + "print \"separation is\",round(dlamda,2),\"angstrom\"\n", + "print \"wavelength of three components is\",lamda,\"angstrom\",round(dlamda1,2),\"angstrom\",round(dlamda2,3),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 21, Page number 68" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "number of elements would be 110\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "n1=1;\n", + "n2=2; \n", + "n3=3;\n", + "n4=4;\n", + "n5=5;\n", + "\n", + "#Calculations\n", + "e1=2*n1**2; #maximum number of electrons in 1st orbit\n", + "e2=2*n2**2; #maximum number of electrons in 2nd orbit\n", + "e3=2*n3**2; #maximum number of electrons in 3rd orbit\n", + "e4=2*n4**2; #maximum number of electrons in 4th orbit\n", + "e5=2*n5**2; #maximum number of electrons in 5th orbit\n", + "e=e1+e2+e3+e4+e5; #number of elements\n", + "\n", + "#Result\n", + "print \"number of elements would be\",e" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter10.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter10.ipynb new file mode 100644 index 00000000..4f050408 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter10.ipynb @@ -0,0 +1,244 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 10: Nuclear Detectors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 322" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current produced is 1.829 *10**-13 amp\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "n=10; #number of particles\n", + "E=4*10**6; #energy of alpha particle(eV)\n", + "E1=35; #energy of 1 ion pair(eV)\n", + "\n", + "#Calculation\n", + "N=E*n/E1; #number of ion pairs\n", + "q=N*e; #current produced(amp)\n", + "\n", + "#Result\n", + "print \"current produced is\",round(q*10**13,3),\"*10**-13 amp\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 322" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "number of ion pairs required is 6.25 *10**5\n", + "energy of alpha-particles is 21.875 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "v=4; #voltage sensitivity(div/volt)\n", + "d=0.8; #number of divisions\n", + "C=0.5*10**-12; #capacitance(F)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "E1=35; #energy of 1 ion pair(eV)\n", + "\n", + "#Calculation\n", + "V=d/v; #voltage(V)\n", + "q=C*V; #current(C)\n", + "n=q/e; #number of ion pairs required\n", + "E=n*E1/10**6; #energy of alpha-particles(MeV)\n", + "\n", + "#Result\n", + "print \"number of ion pairs required is\",n/10**5,\"*10**5\"\n", + "print \"energy of alpha-particles is\",E,\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 323" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum radial field is 1.89 *10**6 volts/meter\n", + "counter will last for 3.7 years\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "V=1000; #voltage(V)\n", + "r=0.0001; #radius(m)\n", + "b=2*10**-2; #diameter(m)\n", + "a=10**-4;\n", + "n=10**9; #number of counts\n", + "\n", + "#Calculation\n", + "Emax=V/(r*math.log(b/a)); #maximum radial field(volts/meter)\n", + "N=n/(50*30*60*3000); #counter will last for(years)\n", + "\n", + "#Result\n", + "print \"maximum radial field is\",round(Emax/10**6,2),\"*10**6 volts/meter\"\n", + "print \"counter will last for\",round(N,1),\"years\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 324" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy of the particle is 1500 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "r=2; #radius(m)\n", + "B=2.5; #flux density(Wb/m**2)\n", + "q=1.6*10**-19; #charge(coulomb)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "\n", + "#Calculation\n", + "E=B*q*r*c*10**-6/q; #energy of the particle(MeV)\n", + "\n", + "#Result\n", + "print \"energy of the particle is\",int(E),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 325" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average current in the circuit is 1.6e-11 A\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "cr=600; #counting rate(counts/minute)\n", + "e=10**7; #number of electrons per discharge\n", + "q=1.6*10**-19; #charge(coulomb)\n", + "t=60; #number of seconds\n", + "\n", + "#Calculation\n", + "n=cr*e; #number of electrons in 1 minute\n", + "q=n*q/t; #average current in the circuit(A)\n", + "\n", + "#Result\n", + "print \"average current in the circuit is\",q,\"A\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter11.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter11.ipynb new file mode 100644 index 00000000..1d50ed48 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter11.ipynb @@ -0,0 +1,384 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 11: Crystal Structure" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 357" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "miller indices of plane are ( 6 4 3 )\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "a=1/2;\n", + "b=1/3;\n", + "c=1/4; #intercepts along the three axes\n", + "\n", + "#Calculations\n", + "def lcm(x, y):\n", + " if x > y:\n", + " greater = x\n", + " else:\n", + " greater = y\n", + " while(True):\n", + " if((greater % x == 0) and (greater % y == 0)):\n", + " lcm = greater\n", + " break\n", + " greater += 1\n", + " \n", + " return lcm\n", + "\n", + "z=lcm(1/a,1/b);\n", + "lcm=lcm(z,1/c);\n", + "h=a*lcm;\n", + "k=b*lcm;\n", + "l=c*lcm; #miller indices of plane\n", + "\n", + "#Result\n", + "print \"miller indices of plane are (\",int(h),int(k),int(l),\")\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 357" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "miller indices of plane are ( 3 2 0 )\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "a=1/2;\n", + "b=1/3;\n", + "x=float(\"inf\");\n", + "c=1/x; #intercepts along the three axes\n", + "\n", + "#Calculations\n", + "def lcm(x, y):\n", + " if x > y:\n", + " greater = x\n", + " else:\n", + " greater = y\n", + " while(True):\n", + " if((greater % x == 0) and (greater % y == 0)):\n", + " lcm = greater\n", + " break\n", + " greater += 1\n", + " \n", + " return lcm\n", + "\n", + "lcm=lcm(1/a,1/b);\n", + "h=a*lcm;\n", + "k=b*lcm;\n", + "l=c*lcm; #miller indices of plane\n", + "\n", + "#Result\n", + "print \"miller indices of plane are (\",int(h),int(k),int(l),\")\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 358" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "miller indices of plane are ( 6 3 2 )\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "a=1/1;\n", + "b=1/2;\n", + "c=1/3; #intercepts along the three axes\n", + "\n", + "#Calculations\n", + "def lcm(x, y):\n", + " if x > y:\n", + " greater = x\n", + " else:\n", + " greater = y\n", + " while(True):\n", + " if((greater % x == 0) and (greater % y == 0)):\n", + " lcm = greater\n", + " break\n", + " greater += 1\n", + " \n", + " return lcm\n", + "\n", + "z=lcm(1/a,1/b);\n", + "lcm=lcm(z,1/c);\n", + "h=a*lcm;\n", + "k=b*lcm;\n", + "l=c*lcm; #miller indices of plane\n", + "\n", + "#Result\n", + "print \"miller indices of plane are (\",int(h),int(k),int(l),\")\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 359" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "corresponding intercept on Y-axis and Z-axis are 0.8 angstrom and 0.65 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "a=1.1;\n", + "b=1.2;\n", + "c=1.3; #intercepts along the three axes(angstrom)\n", + "h=2;\n", + "k=3;\n", + "l=4; #miller indices of plane\n", + "\n", + "#Calculations\n", + "l1=a*h/h;\n", + "l2=b*h/k; #corresponding intercept on Y-axis(angstrom)\n", + "l3=c*h/l; #corresponding intercept on Z-axis(angstrom)\n", + "\n", + "#Result\n", + "print \"corresponding intercept on Y-axis and Z-axis are\",l2,\"angstrom and\",l3,\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 360" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "miller indices of plane are ( 6 -2 3 )\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "a=1/1;\n", + "b=-1/3;\n", + "c=1/2; #intercepts along the three axes\n", + "\n", + "#Calculations\n", + "def lcm(x, y):\n", + " if x > y:\n", + " greater = x\n", + " else:\n", + " greater = y\n", + " while(True):\n", + " if((greater % x == 0) and (greater % y == 0)):\n", + " lcm = greater\n", + " break\n", + " greater += 1\n", + " \n", + " return lcm\n", + "\n", + "z=lcm(1/a,1/b);\n", + "lcm=lcm(z,1/c);\n", + "h=a*lcm;\n", + "k=b*lcm;\n", + "l=c*lcm; #miller indices of plane\n", + "\n", + "#Result\n", + "print \"miller indices of plane are (\",int(h),int(k),int(l),\")\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 360" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "lattice constant is 3.61 angstrom\n", + "distance between two nearest copper atoms is 2.55 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "n=4; #number of molecules per unit cell\n", + "M=63.5; #molecular weight\n", + "N=6.02*10**26; #avagadro number(kg mol-1)\n", + "rho=8.96*10**3; #density(kg/m**3)\n", + "\n", + "#Calculations\n", + "a=(n*M/(rho*N))**(1/3); #lattice constant(m)\n", + "a=round(a*10**10,2); #lattice constant(angstrom) \n", + "d=a/math.sqrt(2); #distance between two nearest copper atoms(angstrom)\n", + "\n", + "#Result\n", + "print \"lattice constant is\",a,\"angstrom\"\n", + "print \"distance between two nearest copper atoms is\",round(d,2),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 361" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "lattice constant is 2.8687 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "n=2; #number of molecules per unit cell\n", + "M=55.85; #molecular weight\n", + "N=6.02*10**26; #avagadro number(kg mol-1)\n", + "rho=7860; #density(kg/m**3)\n", + "\n", + "#Calculations\n", + "a=(n*M/(rho*N))**(1/3); #lattice constant(m)\n", + "\n", + "#Result\n", + "print \"lattice constant is\",round(a*10**10,4),\"angstrom\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter12.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter12.ipynb new file mode 100644 index 00000000..e9b7b5a0 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter12.ipynb @@ -0,0 +1,250 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 12: X-ray Diffraction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 378" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of X-rays is 0.0842 nm\n", + "maximum order of diffraction is 6\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=0.282; #lattice spacing(nm)\n", + "theta=(8+(35/60))*math.pi/180; #glancing angle(radian)\n", + "n1=1; #order\n", + "\n", + "#Calculation\n", + "lamda=2*d*math.sin(theta)/n1; #wavelength of X-rays(nm)\n", + "n=2*d/lamda; #maximum order of diffraction\n", + "\n", + "#Result\n", + "print \"wavelength of X-rays is\",round(lamda,4),\"nm\"\n", + "print \"maximum order of diffraction is\",int(n)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 378" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "glancing angle for 1st order is 17 degrees 24 minutes\n", + "glancing angle for 2nd order is 36 degrees 44 minutes\n", + "answers given in the book are wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=3.209; #lattice spacing(angstrom)\n", + "lamda=1.92; #wavelength of X-rays(angstrom)\n", + "n1=1; #order\n", + "n2=2; #order \n", + "\n", + "#Calculation\n", + "theta1=math.asin(n1*lamda/(2*d))*180/math.pi; #glancing angle for 1st order(degrees)\n", + "theta1d=int(theta1); #glancing angle for 1st order(degrees) \n", + "theta1m=(theta1-theta1d)*60; #glancing angle for 1st order(minutes)\n", + "theta2=math.asin(n2*lamda/(2*d))*180/math.pi; #glancing angle for 2nd order(degrees)\n", + "theta2d=int(theta2); #glancing angle for 2nd order(degrees)\n", + "theta2m=(theta2-theta2d)*60; #glancing angle for 2nd order(minutes)\n", + "\n", + "#Result\n", + "print \"glancing angle for 1st order is\",theta1d,\"degrees\",int(theta1m),\"minutes\"\n", + "print \"glancing angle for 2nd order is\",theta2d,\"degrees\",int(theta2m),\"minutes\"\n", + "print \"answers given in the book are wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 379" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of X-rays is 1.268 angstrom\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=3.05; #lattice spacing(angstrom)\n", + "theta=12*math.pi/180; #glancing angle(radian)\n", + "n=1; #order\n", + "\n", + "#Calculation\n", + "lamda=2*d*math.sin(theta)/n1; #wavelength of X-rays(angstrom)\n", + "\n", + "#Result\n", + "print \"wavelength of X-rays is\",round(lamda,3),\"angstrom\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 380" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of line A is 1.268 angstrom\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "thetaA=30*math.pi/180; #glancing angle(radian)\n", + "thetaB=60*math.pi/180; #glancing angle(radian)\n", + "n1=1; #order\n", + "n2=2; #order\n", + "lamdaB=0.9; #wavelength of X-rays(angstrom)\n", + "\n", + "#Calculation\n", + "lamdaA=2*lamdaB*math.sin(thetaA)/math.sin(thetaB); #wavelength of line A(angstrom)\n", + "\n", + "#Result\n", + "print \"wavelength of line A is\",round(lamda,3),\"angstrom\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 380" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of X-rays is 0.7853 angstrom\n", + "glancing angle for 2nd order is 18.2 degrees\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "d=2.51; #lattice spacing(angstrom)\n", + "theta=9*math.pi/180; #glancing angle(radian)\n", + "n1=1; #order\n", + "n2=2; #order\n", + "\n", + "#Calculation\n", + "lamda=2*d*math.sin(theta)/n1; #wavelength of X-rays(angstrom)\n", + "theta=math.asin(n2*lamda/(2*d))*180/math.pi; #glancing angle for 2nd order(degrees)\n", + "\n", + "#Result\n", + "print \"wavelength of X-rays is\",round(lamda,4),\"angstrom\"\n", + "print \"glancing angle for 2nd order is\",round(theta,1),\"degrees\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter13.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter13.ipynb new file mode 100644 index 00000000..3725056f --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter13.ipynb @@ -0,0 +1,243 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 13: Bonding In Crystals" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 398" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "potential energy is -5.76 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=9*10**9; #assume x=1/(4*pi*epsilon0)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "r0=2.5*10**-10; #radius(m)\n", + "\n", + "#Calculation\n", + "U=-e*x/r0; #potential energy(eV)\n", + "\n", + "#Result\n", + "print \"potential energy is\",U,\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 398" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "equilibrium distance is -2.25 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=9*10**9; #assume x=1/(4*pi*epsilon0)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "U=6.4; #potential energy(eV)\n", + "\n", + "#Calculation\n", + "r0=-e*x/U; #equilibrium distance(m)\n", + "\n", + "\n", + "#Result\n", + "print \"equilibrium distance is\",r0*10**10,\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 399" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "compressibility of the solid is -25.087 *10**14\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=9*10**9; #assume x=1/(4*pi*epsilon0)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "alpha=1.76; #madelung constant\n", + "n=0.5; #repulsive exponent\n", + "r0=4.1*10**-4; #equilibrium distance(m)\n", + "\n", + "#Calculation\n", + "C=18*r0**4/(x*alpha*e**2*(n-1)); #compressibility of the solid\n", + "\n", + "#Result\n", + "print \"compressibility of the solid is\",round(C*10**-14,3),\"*10**14\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 399" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "lattice energy is -6.45 eV\n", + "energy needed to form neutral atoms is -6.17 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=9*10**9; #assume x=1/(4*pi*epsilon0)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "alpha=1.763; #madelung constant\n", + "n=10.5; #repulsive exponent\n", + "r0=3.56*10**-10; #equilibrium distance(m)\n", + "IE=3.89; #ionisation energy(eV)\n", + "EA=-3.61; #electron affinity(eV)\n", + "\n", + "#Calculation\n", + "U=-x*alpha*e**2*(1-(1/n))/(e*r0); #lattice energy(eV) \n", + "E=U+EA+IE; #energy needed to form neutral atoms\n", + "\n", + "#Result\n", + "print \"lattice energy is\",round(U,2),\"eV\"\n", + "print \"energy needed to form neutral atoms is\",round(E,2),\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 400" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "lattice energy is -3.98 eV\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "x=9*10**9; #assume x=1/(4*pi*epsilon0)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "alpha=1.748; #madelung constant\n", + "n=9; #repulsive exponent\n", + "r0=2.81*10**-10; #equilibrium distance(m)\n", + "\n", + "#Calculation\n", + "U=-x*alpha*e**2*(1-(1/n))/(e*r0); #lattice energy(eV) \n", + "\n", + "#Result\n", + "print \"lattice energy is\",round(U/2,2),\"eV\"\n", + "print \"answer given in the book is wrong\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter14.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter14.ipynb new file mode 100644 index 00000000..449a8ffa --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter14.ipynb @@ -0,0 +1,320 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 14: Magnetism" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 420" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnetisation is 20 *10**9 A/m\n", + "flux density is 1.2818 *10**6 T\n", + "answer for flux density given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mew0=4*math.pi*10**-7; #permeability of vacuum\n", + "H=10**12; #magnetic field intensity(A/m)\n", + "chi=20*10**-3; #susceptibility\n", + "\n", + "#Calculations\n", + "M=chi*H; #magnetisation(A/m)\n", + "B=mew0*(M+H); #flux density(T)\n", + "\n", + "#Result\n", + "print \"magnetisation is\",int(M/10**9),\"*10**9 A/m\"\n", + "print \"flux density is\",round(B/10**6,4),\"*10**6 T\"\n", + "print \"answer for flux density given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 420" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnetisation is 17725 A/m\n", + "answer for magnetisation given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mew0=4*math.pi*10**-7; #permeability of vacuum\n", + "H=10**2; #magnetic field intensity(A/m)\n", + "B=0.0224; #flux density(T)\n", + "\n", + "#Calculations\n", + "M=(B/mew0)-H; #magnetisation(A/m)\n", + "\n", + "#Result\n", + "print \"magnetisation is\",int(M),\"A/m\"\n", + "print \"answer for magnetisation given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 421" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "change in magnetic moment is 5.27 *10**-29 Am**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "r=5*10**-11; #radius(m)\n", + "B=3; #flux density(T)\n", + "m=9.1*10**-31; #mass(kg)\n", + "\n", + "#Calculations\n", + "mew=B*e**2*r**2/(4*m); #change in magnetic moment(Am**2)\n", + "\n", + "#Result\n", + "print \"change in magnetic moment is\",round(mew*10**29,2),\"*10**-29 Am**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 421" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "susceptibility is 0.8 *10**-4\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "T1=200; #temperature(K)\n", + "T2=300; #temperature(K)\n", + "chi1=1.2*10**-4; #susceptibility\n", + "\n", + "#Calculations\n", + "chi2=T1*chi1/T2; #susceptibility\n", + "\n", + "#Result\n", + "print \"susceptibility is\",chi2*10**4,\"*10**-4\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 422" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "paramagnetisation is 3.6 *10**2 A/m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "H=10**5; #magnetic field intensity(A/m)\n", + "chi=3.6*10**-3; #susceptibility\n", + "\n", + "#Calculations\n", + "M=chi*H; #paramagnetisation(A/m)\n", + "\n", + "#Result\n", + "print \"paramagnetisation is\",M/10**2,\"*10**2 A/m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 422" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "magnetic moment is 5.655 *10**-24 Am**2\n", + "saturation magnetic induction is 6.5 *10**-4 T\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mew0=4*math.pi*10**-7; #permeability of vacuum\n", + "mewB=9.27*10**-24; \n", + "rho=8906; #density(kg/m**3)\n", + "N=6.023*10**23; #avagadro number\n", + "W=58.7; #atomic weight\n", + "\n", + "#Calculations\n", + "mewM=0.61*mewB; #magnetic moment(Am**2)\n", + "B=rho*N*mew0*mewM/W; #saturation magnetic induction(T)\n", + "\n", + "#Result\n", + "print \"magnetic moment is\",round(mewM*10**24,3),\"*10**-24 Am**2\"\n", + "print \"saturation magnetic induction is\",round(B*10**4,1),\"*10**-4 T\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 423" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "diamagnetic susceptibility is -8.249 *10**-8\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mew0=4*math.pi*10**-7; #permeability of vacuum\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m=9.1*10**-31; #mass(kg)\n", + "R=0.5*10**-10; #radius(m)\n", + "N=28*10**26; #number of atoms\n", + "Z=2; #atomic number\n", + "\n", + "#Calculations\n", + "chi_dia=-mew0*Z*e**2*N*R**2/(6*m); #diamagnetic susceptibility\n", + "\n", + "#Result\n", + "print \"diamagnetic susceptibility is\",round(chi_dia*10**8,3),\"*10**-8\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter15.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter15.ipynb new file mode 100644 index 00000000..283605cf --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter15.ipynb @@ -0,0 +1,236 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 15: Superconductivity" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 442" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "critical field at 3K is 0.006281 Tesla\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "H0=0.0106; #critical field at 0K(Tesla)\n", + "T=3; #temperature(K)\n", + "Tc=4.7; #temperature(K)\n", + "\n", + "#Calculation\n", + "Hc=H0*(1-(T/Tc)**2); #critical field at 3K(Tesla)\n", + "\n", + "#Result\n", + "print \"critical field at 3K is\",round(Hc,6),\"Tesla\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 442" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "temperature of superconductor is 1.701 K\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "H0=5*10**5/(4*math.pi); #critical field at 0K(Tesla)\n", + "Tc=2.69; #temperature(K)\n", + "Hc=3*10**5/(4*math.pi); #critical field(Tesla)\n", + "\n", + "#Calculation\n", + "T=Tc*math.sqrt(1-(Hc/H0)); #temperature(K)\n", + "\n", + "#Result\n", + "print \"temperature of superconductor is\",round(T,3),\"K\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 443" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "critical field is 4.3365 *10**4 A/m\n", + "critical current of the wire is 408 A\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "H0=6.5*10**4; #critical field at 0K(Tesla)\n", + "Tc=7.28; #temperature(K)\n", + "T=4.2; #temperature(K)\n", + "r=1.5*10**-3; #radius(m)\n", + "\n", + "#Calculation\n", + "Hc=H0*(1-(T/Tc)**2); #critical field(Tesla)\n", + "Ic=2*math.pi*r*Hc; #critical current of the wire(A)\n", + "\n", + "#Result\n", + "print \"critical field is\",round(Hc/10**4,4),\"*10**4 A/m\"\n", + "print \"critical current of the wire is\",int(Ic),\"A\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 443" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "critical temperature is 4.124 K\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m1=199.5; #isotopic mass\n", + "m2=205.4; #change in mass \n", + "Tc1=4.185; #temperature of mercury(K)\n", + "\n", + "#Calculation\n", + "Tc2=Tc1*math.sqrt(m1/m2); #critical temperature(K)\n", + "\n", + "#Result\n", + "print \"critical temperature is\",round(Tc2,3),\"K\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 444" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "superconducting transition temperature is 8.106 K\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "T1=3; #temperature(K)\n", + "T2=8; #temperature(K)\n", + "lamda1=39.6; #penetration depth(nm)\n", + "lamda2=173; #penetration depth(nm)\n", + "\n", + "#Calculation\n", + "x=(lamda1/lamda2)**2;\n", + "Tc4=(T2**4-(x*T1**4))/(1-x);\n", + "Tc=Tc4**(1/4); #superconducting transition temperature(K)\n", + "\n", + "#Result\n", + "print \"superconducting transition temperature is\",round(Tc,3),\"K\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter2.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter2.ipynb new file mode 100644 index 00000000..ede08994 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter2.ipynb @@ -0,0 +1,588 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 2: Molecular Spectra" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 97" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "raman shift is 219.03 cm-1\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda_sample=4358; #wavelength(angstrom)\n", + "lamda_raman=4400; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "delta_new=(10**8/lamda_sample)-(10**8/lamda_raman); #raman shift(cm-1)\n", + "\n", + "#Result\n", + "print \"raman shift is\",round(delta_new,2),\"cm-1\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 98" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy of diatomic molecule is 2.22 *10**-68 J\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #planck's constant\n", + "\n", + "#Calculations\n", + "E=h**2/(2*math.pi**2); #energy of diatomic molecule(J)\n", + "\n", + "#Result\n", + "print \"energy of diatomic molecule is\",round(E*10**68,2),\"*10**-68 J\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 98" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "raman shift is 0.02 *10**6 m-1\n", + "wavelength of antistokes line 4950.5 angstrom\n", + "answer for wavelength given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda0=5000*10**-10; #wavelength(m)\n", + "lamda=5050.5*10**-10; #wavelength(m)\n", + "\n", + "#Calculations\n", + "new0=1/lamda0; #frequency(m-1)\n", + "new=1/lamda; #frequency(m-1)\n", + "delta_new=new0-new; #raman shift(m-1)\n", + "new_as=delta_new+new0; #frequency of anti-stokes line(m-1)\n", + "lamdaas=1*10**10/new_as; #wavelength of anti-stokes line(angstrom)\n", + "\n", + "#Result\n", + "print \"raman shift is\",round(delta_new*10**-6,2),\"*10**6 m-1\"\n", + "print \"wavelength of antistokes line\",round(lamdaas,2),\"angstrom\"\n", + "print \"answer for wavelength given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 99" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy required is 60 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "k=4.8*10**2; #force constant(N/m)\n", + "x=2*10**-10; #inter nuclear distance(m)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "E=k*x**2/(2*e); #energy required(eV)\n", + "\n", + "#Result\n", + "print \"energy required is\",int(E),\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 99" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of vibration is 2.04 *10**13 sec-1\n", + "spacing between energy levels is 8.447 *10**-2 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "k=187; #force constant(N/m)\n", + "m=1.14*10**-26; #reduced mass(kg)\n", + "h=6.63*10**-34; #planck's constant\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "new=math.sqrt(k/m)/(2*math.pi); #frequency of vibration(sec-1)\n", + "delta_E=h*new; #spacing between energy levels(J)\n", + "delta_E=delta_E/e; #spacing between energy levels(eV)\n", + "\n", + "#Result\n", + "print \"frequency of vibration is\",round(new*10**-13,2),\"*10**13 sec-1\"\n", + "print \"spacing between energy levels is\",round(delta_E*10**2,3),\"*10**-2 eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 100" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "internuclear distance is 1.42 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "B=8.5; #seperation(cm-1)\n", + "h=6.62*10**-27; #planck's constant\n", + "c=3*10**10; #velocity of light(cm/sec)\n", + "N=6.023*10**23; #avagadro number\n", + "m1=1;\n", + "m2=79; \n", + "\n", + "#Calculations\n", + "I=h/(8*math.pi**2*B*c); #moment inertia of molecule(gm cm**2)\n", + "m=m1*m2/(N*(m1+m2)); #reduced mass(gm)\n", + "r=10**8*math.sqrt(I/m); #internuclear distance(angstrom)\n", + "\n", + "#Result\n", + "print \"internuclear distance is\",round(r,2),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 100" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vibrational frequency of sample is 1974 cm-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda1=4358.3; #wavelength(angstrom)\n", + "lamda2=4768.5; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "delta_new=(10**8/lamda1)-(10**8/lamda2); #vibrational frequency of sample(cm-1)\n", + "\n", + "#Result\n", + "print \"vibrational frequency of sample is\",int(round(delta_new)),\"cm-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 101" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequqncy of OD stretching vibration is 2401 cm-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "MO=16;\n", + "MD=2;\n", + "MH=1;\n", + "new=3300; #frequency(cm-1)\n", + "\n", + "#Calculations\n", + "mew_OD=MO*MD/(MO+MD); \n", + "mew_OH=MO*MH/(MO+MH);\n", + "new1=math.sqrt(mew_OD/mew_OH);\n", + "new_OD=new/new1; #frequqncy of OD stretching vibration(cm-1)\n", + "\n", + "#Result\n", + "print \"frequqncy of OD stretching vibration is\",int(new_OD),\"cm-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 102" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "raman shift of 4400 line is 219.03 cm-1\n", + "raman shift of 4419 line is 316.8 cm-1\n", + "raman shift of 4447 line is 459.2 cm-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda0=4358; #wavelength(angstrom)\n", + "lamda1=4400; #wavelength(angstrom)\n", + "lamda2=4419; #wavelength(angstrom)\n", + "lamda3=4447; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "new0bar=10**8/lamda0; #wave number of exciting line(cm-1)\n", + "rs1=(10**8/lamda0)-(10**8/lamda1); #raman shift of 4400 line(cm-1)\n", + "rs2=(10**8/lamda0)-(10**8/lamda2); #raman shift of 4419 line(cm-1)\n", + "rs3=(10**8/lamda0)-(10**8/lamda3); #raman shift of 4447 line(cm-1)\n", + "\n", + "#Result\n", + "print \"raman shift of 4400 line is\",round(rs1,2),\"cm-1\"\n", + "print \"raman shift of 4419 line is\",round(rs2,1),\"cm-1\"\n", + "print \"raman shift of 4447 line is\",round(rs3,1),\"cm-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12, Page number 102" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "corresponding wavelength is 32 *10**-4 cm\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "new_bar=20.68; #transition(cm-1)\n", + "J=14;\n", + "\n", + "#Calculations\n", + "B=new_bar/2; \n", + "new=2*B*(J+1); #frequency(cm-1)\n", + "lamda=1/new; #corresponding wavelength(cm) \n", + "\n", + "#Result\n", + "print \"corresponding wavelength is\",int(lamda*10**4),\"*10**-4 cm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 103" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "moment of inertia of molecule is 1.4 *10**-42 gm cm**2\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "twoB=4000; #seperation observed from the series(cm-1)\n", + "h=6.62*10**-27; #planck's constant\n", + "c=3*10**10; #velocity of light(cm/sec)\n", + "\n", + "#Calculations\n", + "B=twoB/2;\n", + "I=h/(8*math.pi**2*B*c); #moment of inertia of molecule(gm cm**2)\n", + "\n", + "#Result\n", + "print \"moment of inertia of molecule is\",round(I*10**42,1),\"*10**-42 gm cm**2\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 104" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "corresponding wavelengths are 5648 angstrom 5725 angstrom 5775 angstrom 5836 angstrom 5983 angstrom 6558 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda=5461*10**-8; #wavelength(cm)\n", + "new1=608;\n", + "new2=846;\n", + "new3=995;\n", + "new4=1178;\n", + "new5=1599; \n", + "new6=3064; #raman shift(cm-1)\n", + "\n", + "#Calculations\n", + "newbar=1/lamda; #wave number(cm-1)\n", + "new11=newbar-new1;\n", + "new22=newbar-new2;\n", + "new33=newbar-new3;\n", + "new44=newbar-new4;\n", + "new55=newbar-new5;\n", + "new66=newbar-new6;\n", + "lamda1=10**8/new11;\n", + "lamda2=10**8/new22;\n", + "lamda3=10**8/new33;\n", + "lamda4=10**8/new44;\n", + "lamda5=10**8/new55;\n", + "lamda6=10**8/new66; #corresponding wavelength(angstrom)\n", + "\n", + "#Result\n", + "print \"corresponding wavelengths are\",int(lamda1),\"angstrom\",int(lamda2),\"angstrom\",int(round(lamda3)),\"angstrom\",int(lamda4),\"angstrom\",int(lamda5),\"angstrom\",int(lamda6),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15, Page number 105" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "force constant is 115 N/m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.63*10**-34; #planck's constant(J s)\n", + "e=1.602*10**-19; #charge(coulomb) \n", + "mew=1.14*10**-26; #reduced mass(kg)\n", + "deltaE=6.63*10**-2*e; #energy(J)\n", + "\n", + "#Calculations\n", + "new=deltaE/h; #frequency(sec-1)\n", + "k=4*math.pi**2*new**2*mew; #force constant(N/m)\n", + "\n", + "#Result\n", + "print \"force constant is\",int(k),\"N/m\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter3.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter3.ipynb new file mode 100644 index 00000000..72f70169 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter3.ipynb @@ -0,0 +1,540 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 3: Inadequacy of Classical Physics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 128" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum energy of photoelectron is 3.038 *10**-19 J\n", + "maximum velocity of electron is 8.17 *10**5 ms-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "me=9.1*10**-31; #mass of electron(kg)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "c=3*10**8; #velocity(m/sec)\n", + "lamda=1700*10**-10; #wavelength(m)\n", + "lamda0=2300*10**-10; #wavelength(m)\n", + "\n", + "#Calculations\n", + "KE=h*c*((1/lamda)-(1/lamda0)); #maximum energy of photoelectron(J)\n", + "vmax=math.sqrt(2*KE/me); #maximum velocity of electron(ms-1)\n", + "\n", + "#Result\n", + "print \"maximum energy of photoelectron is\",round(KE*10**19,3),\"*10**-19 J\"\n", + "print \"maximum velocity of electron is\",round(vmax/10**5,2),\"*10**5 ms-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 128" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "threshold wavelength is 5380 angstrom\n", + "since wavelength of orange light is more, photoelectric effect doesn't take place\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "W=2.3*e; #work function(J)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "c=3*10**8; #velocity(m/sec)\n", + "lamda=6850; #wavelength of orange light(angstrom)\n", + "\n", + "#Calculations\n", + "lamda0=h*c/W; #threshold wavelength(m)\n", + "\n", + "#Result\n", + "print \"threshold wavelength is\",int(lamda0*10**10),\"angstrom\"\n", + "print \"since wavelength of orange light is more, photoelectric effect doesn't take place\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 129" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "retarding potential is 1.175 volts\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "W=1.3*e; #work function(J)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "new=6*10**14; #frequency(Hertz)\n", + "\n", + "#Calculations\n", + "V0=((h*new)-W)/e; #retarding potential(volts)\n", + "\n", + "#Result\n", + "print \"retarding potential is\",V0,\"volts\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 129" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "work function is 1.28 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.6*10**-34; #planks constant(Js)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "c=3*10**8; #velocity(m/sec)\n", + "lamda=3*10**-7; #wavelength(m)\n", + "me=9.1*10**-31; #mass of electron(kg)\n", + "v=1*10**6; #velocity(m/sec)\n", + "\n", + "#Calculations\n", + "W=(h*c/lamda)-(me*v**2/2); #work function(J)\n", + "W=W/e; #work function(eV)\n", + "\n", + "#Result\n", + "print \"work function is\",round(W,2),\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 129" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "photoelectric current is 1.86 micro ampere\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.6*10**-34; #planks constant(Js)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "c=3*10**8; #velocity(m/sec)\n", + "lamda=4600*10**-10; #wavelength(m)\n", + "qe=0.5; #efficiency(%)\n", + "\n", + "#Calculations\n", + "E=h*c/lamda; #energy(J)\n", + "n=10**-3/E; #number of photons/second\n", + "i=n*qe*e*10**6/100; #photoelectric current(micro ampere)\n", + "\n", + "#Result\n", + "print \"photoelectric current is\",round(i,2),\"micro ampere\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 130" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "planck's constant is 6.61 *10**-34 joule second\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "T1=3*10**-19; #temperature(J)\n", + "T2=1*10**-19; #temperature(J)\n", + "c=3*10**8; #velocity(m/sec)\n", + "lamda1=3350; #wavelength(m)\n", + "lamda2=5060; #wavelength(m)\n", + "\n", + "#Calculations\n", + "x=10**10*((1/lamda1)-(1/lamda2));\n", + "h=(T1-T2)/(c*x); #planck's constant(joule second)\n", + "\n", + "#Result\n", + "print \"planck's constant is\",round(h*10**34,2),\"*10**-34 joule second\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 131" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of scattered radiation is 3.0121 angstrom\n", + "energy of recoil electron is 2.66 *10**-18 joule\n", + "answers given in the book are wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "m0=9.1*10**-31; #mass(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "theta=60*math.pi/180; #angle(radian)\n", + "lamda=3*10**-10; #wavelength(angstrom)\n", + "lamda_dash=3.058; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "lamda_sr=h/(m0*c); \n", + "lamda_dash=lamda+(lamda_sr*(1-math.cos(theta))); #wavelength of scattered radiation(m) \n", + "lamda_dash=round(lamda_dash*10**10,4)*10**-10; #wavelength of scattered radiation(m)\n", + "E=h*c*((1/lamda)-(1/lamda_dash)); #energy of recoil electron(joule)\n", + "\n", + "#Result\n", + "print \"wavelength of scattered radiation is\",lamda_dash*10**10,\"angstrom\"\n", + "print \"energy of recoil electron is\",round(E*10**18,2),\"*10**-18 joule\"\n", + "print \"answers given in the book are wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 132" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of scattered radiation is 2.003 angstrom\n", + "velocity of recoil electron is 0.0188 *10**8 ms-1\n", + "answer for velocity given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "m0=9.1*10**-31; #mass(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "theta=30*math.pi/180; #angle(radian)\n", + "lamda=2*10**-10; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "lamda_sr=h/(m0*c); \n", + "lamda_dash=lamda+(lamda_sr*(1-math.cos(theta))); #wavelength of scattered radiation(m) \n", + "E=h*c*((1/lamda)-(1/lamda_dash)); #energy of recoil electron(joule)\n", + "x=1+(E/(m0*c**2));\n", + "v=c*math.sqrt(1-((1/x)**2)); #velocity of recoil electron(m/sec)\n", + "\n", + "#Result\n", + "print \"wavelength of scattered radiation is\",round(lamda_dash*10**10,3),\"angstrom\"\n", + "print \"velocity of recoil electron is\",round(v/10**8,4),\"*10**8 ms-1\"\n", + "print \"answer for velocity given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 133" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of scattered photon is 3.024 angstrom\n", + "energy of recoil electron is 0.5 *10**-17 joules\n", + "direction of recoil electron is 44 degrees 46 minutes\n", + "answer for angle given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m0=9.1*10**-31; #mass(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "theta=90*math.pi/180; #angle(radian)\n", + "lamda=3*10**-10; #wavelength(m) \n", + "\n", + "#Calculations\n", + "lamda_dash=lamda+(h*(1-math.cos(theta))/(m0*c)); #wavelength of scattered photon(m) \n", + "E=h*c*((1/lamda)-(1/lamda_dash)); #energy of recoil electron(joule)\n", + "x=h/(lamda*m0*c);\n", + "tanphi=lamda*math.sin(theta)/(lamda_dash-(lamda*math.cos(theta)));\n", + "phi=math.atan(tanphi); #direction of recoil electron(radian)\n", + "phi=phi*180/math.pi; #direction of recoil electron(degrees)\n", + "phim=60*(phi-int(phi)); #angle(minutes)\n", + "\n", + "#Result\n", + "print \"wavelength of scattered photon is\",round(lamda_dash*10**10,3),\"angstrom\"\n", + "print \"energy of recoil electron is\",round(E*10**17,1),\"*10**-17 joules\"\n", + "print \"direction of recoil electron is\",int(phi),\"degrees\",int(phim),\"minutes\"\n", + "print \"answer for angle given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 134" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy of scattered photon is 0.226 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m0=9.1*10**-31; #mass(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "theta=180*math.pi/180; #angle(radian)\n", + "E=1.96*10**6*e; #energy of scattered photon(J)\n", + "\n", + "#Calculations\n", + "lamda=h*c/E; #wavelength(m)\n", + "delta_lamda=2*h/(m0*c); \n", + "lamda_dash=lamda+delta_lamda; #wavelength of scattered photon(m) \n", + "Edash=h*c/(e*lamda_dash); #energy of scattered photon(eV)\n", + "\n", + "#Result\n", + "print \"energy of scattered photon is\",round(Edash/10**6,3),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 135" + ] + }, + { + "cell_type": "code", + "execution_count": 65, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of scattered radiation is 4.9e-12 m\n", + "energy of recoil electron is 3.9592 *10**-14 Joules\n", + "direction of recoil electron is 27 degrees 47 minutes\n", + "answer for energy and direction of recoil electron and given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "m0=9.1*10**-31; #mass(kg)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "theta=90*math.pi/180; #angle(radian)\n", + "E=500*10**3*e; #energy of scattered photon(J)\n", + "\n", + "#Calculations\n", + "lamda=h*c/E; #wavelength(m)\n", + "delta_lamda=h*(1-math.cos(theta))/(m0*c); \n", + "lamda_dash=lamda+delta_lamda; #wavelength of scattered radiation(m) \n", + "lamda_dash=round(lamda_dash*10**12,1)*10**-12; #wavelength of scattered radiation(m) \n", + "E=h*c*((1/lamda)-(1/lamda_dash)); #energy of recoil electron(J)\n", + "tanphi=lamda*math.sin(theta)/(lamda_dash-(lamda*math.cos(theta)));\n", + "phi=math.atan(tanphi); #direction of recoil electron(radian)\n", + "phi=phi*180/math.pi; #direction of recoil electron(degrees)\n", + "phim=60*(phi-int(phi)); #angle(minutes)\n", + "\n", + "#Result\n", + "print \"wavelength of scattered radiation is\",lamda_dash,\"m\"\n", + "print \"energy of recoil electron is\",round(E*10**14,4),\"*10**-14 Joules\"\n", + "print \"direction of recoil electron is\",int(round(phi)),\"degrees\",int(phim),\"minutes\"\n", + "print \"answer for energy and direction of recoil electron and given in the book is wrong\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter4.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter4.ipynb new file mode 100644 index 00000000..a4871749 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter4.ipynb @@ -0,0 +1,681 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 4: Matter Waves" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 158" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de-Broglie wavelength of proton is 1 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=1.67*10**-27; #mass of proton(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "v=3967; #velocity of proton(m/s)\n", + "\n", + "#Calculations\n", + "lamda=h/(m*v); #de-Broglie wavelength of proton(m)\n", + "\n", + "#Result\n", + "print \"de-Broglie wavelength of proton is\",int(lamda*10**10),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 158" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "kinetic energy of electron is 6 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=9.11*10**-31; #mass of electron(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "lamda=5*10**-10; #de-Broglie wavelength(m)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "E=h**2/(2*m*lamda**2*e); #kinetic energy of electron(eV)\n", + "\n", + "#Result\n", + "print \"kinetic energy of electron is\",int(E),\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 158" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de-Broglie wavelength of proton is 3.97 *10**-6 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "c=3*10**8; #velocity of light(m/sec)\n", + "m=1.67*10**-27; #mass of proton(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "\n", + "#Calculations\n", + "v=c/30; #velocity of proton(m/sec)\n", + "lamda=h/(m*v); #de-Broglie wavelength of proton(m)\n", + "\n", + "#Result\n", + "print \"de-Broglie wavelength of proton is\",round(lamda*10**14,2),\"*10**-6 angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 159" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de-Broglie wavelength of electron is 1 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "V=150; #potential difference(V)\n", + "\n", + "#Calculations\n", + "lamda=12.26/math.sqrt(V); #de-Broglie wavelength of electron(angstrom)\n", + "\n", + "#Result\n", + "print \"de-Broglie wavelength of electron is\",int(lamda),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 159" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de-Broglie wavelength is 1.23 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "V=100; #voltage(eV) \n", + "m=9.1*10**-31; #mass of proton(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "lamda=h*10**10/math.sqrt(2*m*e*V); #de-Broglie wavelength(angstrom)\n", + "\n", + "#Result\n", + "print \"de-Broglie wavelength is\",round(lamda,2),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 159" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de-Broglie wavelength of neutron is 0.99 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=1.67*10**-27; #mass of proton(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "v=4000; #velocity of proton(m/s)\n", + "\n", + "#Calculations\n", + "lamda=h*10**10/(m*v); #de-Broglie wavelength of neutron(angstrom)\n", + "\n", + "#Result\n", + "print \"de-Broglie wavelength of neutron is\",round(lamda,2),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 160" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of kinetic energies of electron and proton is 1833\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "mp=1.67*10**-27; #mass of proton(kg)\n", + "me=9.11*10**-31; #mass of electron(kg)\n", + "\n", + "#Calculations\n", + "r=mp/me; #ratio of kinetic energies of electron and proton\n", + "\n", + "#Result\n", + "print \"ratio of kinetic energies of electron and proton is\",int(r)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 160" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ratio of wavelengths is 32\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=9.1*10**-31; #mass of proton(kg)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "E=1000; #energy(eV)\n", + "\n", + "#Calculations\n", + "r=math.sqrt(2*m/(e*E))*c; #ratio of wavelengths\n", + "\n", + "#Result\n", + "print \"ratio of wavelengths is\",int(round(r))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 160" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wavelength of electron is 0.289 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "lamda=1.54*10**-10; #wavelength of X-ray(m)\n", + "wf=1*10**-15; #work function(J)\n", + "\n", + "#Calculations\n", + "E=h*c/lamda; #energy of X-ray(J)\n", + "Ee=E-wf; #energy of electron emitted(J)\n", + "lamda=h/math.sqrt(2*m*Ee); #wavelength of electron(m)\n", + "\n", + "#Result\n", + "print \"wavelength of electron is\",round(lamda*10**10,3),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 161" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "de broglie wavelength of proton is 1.537 angstrom\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=1.67*10**-27; #mass of proton(kg)\n", + "h=6.6*10**-34; #planks constant(Js)\n", + "T=400; #temperature(K)\n", + "k=1.38*10**-23; #boltzmann constant\n", + "\n", + "#Calculations\n", + "lamda=h*10**10/math.sqrt(2*m*k*T); #de broglie wavelength of proton(angstrom)\n", + "\n", + "#Result\n", + "print \"de broglie wavelength of proton is\",round(lamda,3),\"angstrom\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 162" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "rest energy of electron is 8.19e-14 J\n", + "energy of proton is 8.19e-11 J\n", + "velocity of proton is 312902460.506 m/s\n", + "wavelength of electron is 1.27 *10**-5 angstrom\n", + "answers given in the book are wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=1.673*10**-27; #mass of proton(kg)\n", + "m0=9.1*10**-31; #mass of electron(kg)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "h=6.63*10**-34; #planks constant(Js)\n", + "ke=1000; #kinetic energy\n", + "\n", + "#Calculations\n", + "re=m0*c**2; #rest energy of electron(J)\n", + "Ep=ke*re; #energy of proton(J)\n", + "v=math.sqrt(2*Ep/m); #velocity of proton(m/s)\n", + "lamda=h*10**10/(m*v); #debroglie wavelength of proton(angstrom)\n", + "\n", + "#Result\n", + "print \"rest energy of electron is\",re,\"J\"\n", + "print \"energy of proton is\",Ep,\"J\"\n", + "print \"velocity of proton is\",v,\"m/s\"\n", + "print \"wavelength of electron is\",round(lamda*10**5,2),\"*10**-5 angstrom\"\n", + "print \"answers given in the book are wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12, Page number 162" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity of electron is 4.55 *10**7 m/s\n", + "kinetic energy is 5887 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "h=6.625*10**-34; #planks constant(Js)\n", + "lamda=0.16*10**-10; #debroglie wavelength of electron(m)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "v=h/(lamda*m); #velocity of electron(m/s)\n", + "KE=m*v**2/(2*e); #kinetic energy(eV)\n", + "\n", + "#Result\n", + "print \"velocity of electron is\",round(v*10**-7,2),\"*10**7 m/s\"\n", + "print \"kinetic energy is\",int(KE),\"eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 163" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "interplanar spacing of crystal is 1.78 angstrom\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "m=1.67*10**-27; #mass of proton(kg)\n", + "h=6.62*10**-34; #planks constant(Js)\n", + "T=300; #temperature(K)\n", + "k=1.38*10**-23; #boltzmann constant\n", + "\n", + "#Calculations\n", + "d=h*10**10/math.sqrt(2*m*k*T); #interplanar spacing of crystal(angstrom)\n", + "\n", + "#Result\n", + "print \"interplanar spacing of crystal is\",round(d,2),\"angstrom\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 14, Page number 164" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "potential is 605.16 volts\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda=0.5; #wavelength(angstrom)\n", + "\n", + "#Calculations\n", + "V=(12.3/lamda)**2; #potential(volts)\n", + "\n", + "#Result\n", + "print \"potential is\",V,\"volts\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 15, Page number 164" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy of gama ray photon is 19.89 *10**-16 J\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "lamda=1*10**-10; #wavelength(m)\n", + "h=6.63*10**-34; #planks constant(Js)\n", + "c=3*10**8; #velocity of light(m/sec)\n", + "\n", + "#Calculations\n", + "p=h/lamda; #momentum(J-sec/m)\n", + "E=p*c; #energy of gama ray photon(J)\n", + "\n", + "#Result\n", + "print \"energy of gama ray photon is\",E*10**16,\"*10**-16 J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 16, Page number 164" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity of electron is 2.2 *10**6 m/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.6*10**-34; #planks constant(Js)\n", + "m=9*10**-31; #mass of electron(kg)\n", + "r=0.53*10**-10; #radius of orbit(m)\n", + "\n", + "#Calculations\n", + "v=h/(2*math.pi*r*m); #velocity of electron(m/sec)\n", + "\n", + "#Result\n", + "print \"velocity of electron is\",round(v*10**-6,1),\"*10**6 m/sec\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter5.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter5.ipynb new file mode 100644 index 00000000..171aaa2d --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter5.ipynb @@ -0,0 +1,396 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 5: Uncertainity Principle" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 180" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in momentum is 0.211 *10**-20 kg m/sec\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "hby2pi=1.055*10**-34; #plancks constant(J s)\n", + "deltax=5*10**-14; #uncertainity(m)\n", + "\n", + "#Calculations\n", + "delta_px=hby2pi/deltax; #uncertainity in momentum(kg m/sec)\n", + "\n", + "#Result\n", + "print \"uncertainity in momentum is\",delta_px*10**20,\"*10**-20 kg m/sec\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 180" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in position is 3.85 *10**-3 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.6*10**-34; #plancks constant(J s)\n", + "m=9.1*10**-31; #mass(kg)\n", + "v=600; #speed(m/s)\n", + "deltap=(0.005/100)*m*v; #uncertainity in momentum(kg m/sec)\n", + "\n", + "#Calculations\n", + "deltax=h/(2*math.pi*deltap); #uncertainity in position(m)\n", + "\n", + "#Result\n", + "print \"uncertainity in position is\",round(deltax*10**3,2),\"*10**-3 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 180" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in momentum is 3.5 *10**-24 kg ms-1\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltax=3*10**-11; #uncertainity(m)\n", + "\n", + "#Calculations\n", + "deltap=h/(2*math.pi*deltax); #uncertainity in momentum(kg m/sec)\n", + "\n", + "#Result\n", + "print \"uncertainity in momentum is\",round(deltap*10**24,1),\"*10**-24 kg ms-1\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 180" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in determination of energy is 6.59 *10**-8 eV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltat=10**-8; #lifetime of excited atom(sec)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "deltaE=h/(2*math.pi*deltat*e); #uncertainity in determination of energy(eV)\n", + "\n", + "#Result\n", + "print \"uncertainity in determination of energy is\",round(deltaE*10**8,2),\"*10**-8 eV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in measurement of angular momentum is 2.17 *10**-29 Js\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltaphi=math.pi/(180*60*60); \n", + "\n", + "#Calculations\n", + "deltaL=h/(2*math.pi*deltaphi); #uncertainity in measurement of angular momentum(Js)\n", + "\n", + "#Result\n", + "print \"uncertainity in measurement of angular momentum is\",round(deltaL*10**29,2),\"*10**-29 Js\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in position is 5.27 *10**-34 m\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "m=25*10**-3; #mass(kg)\n", + "v=400; #speed(m/s)\n", + "deltap=(2/100)*m*v; #uncertainity in momentum(kg m/sec)\n", + "\n", + "#Calculations\n", + "deltax=h/(2*math.pi*deltap); #uncertainity in position(m)\n", + "\n", + "#Result\n", + "print \"uncertainity in position is\",round(deltax*10**34,2),\"*10**-34 m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 7, Page number 181" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "percentage of uncertainity in momentum is 3.1 %\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltax=2*10**-10; #uncertainity in position(m)\n", + "m=9.1*10**-31; #mass(kg)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "V=1000; #voltage(V)\n", + "\n", + "#Calculations\n", + "deltap=h/(2*math.pi*deltax); #uncertainity in momentum(kg m/s)\n", + "p=math.sqrt(2*m*e*V); #momentum(kg m/s)\n", + "pp=deltap*100/p; #percentage of uncertainity in momentum\n", + "\n", + "#Result\n", + "print \"percentage of uncertainity in momentum is\",round(pp,1),\"%\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 182" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "uncertainity in velocity of electron is 5.79 *10**4 ms-1\n", + "uncertainity in velocity of proton is 31.545 ms-1\n", + "answer for uncertainity in velocity of proton given in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltax=20*10**-10; #uncertainity in position(m)\n", + "me=9.1*10**-31; #mass of electron(kg)\n", + "mp=1.67*10**-27; #mass of proton(kg)\n", + "\n", + "#Calculations\n", + "deltave=h/(2*math.pi*deltax*me); #uncertainity in velocity of electron(ms-1)\n", + "deltavp=h/(2*math.pi*deltax*mp); #uncertainity in velocity of proton(ms-1)\n", + "\n", + "#Result\n", + "print \"uncertainity in velocity of electron is\",round(deltave*10**-4,2),\"*10**4 ms-1\"\n", + "print \"uncertainity in velocity of proton is\",round(deltavp,3),\"ms-1\"\n", + "print \"answer for uncertainity in velocity of proton given in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 182" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "minimum uncertainity in momentum is 1.3 *10**-20 kg m/s\n", + "minimum kinetic energy of proton is 0.32 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration \n", + "h=6.62*10**-34; #plancks constant(J s)\n", + "deltax=8*10**-15; #uncertainity in position(m)\n", + "mp=1.67*10**-27; #mass(kg)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "\n", + "#Calculations\n", + "deltap=h/(2*math.pi*deltax); #minimum uncertainity in momentum(kg m/s)\n", + "ke=deltap**2/(2*mp*e); #minimum kinetic energy of proton(eV)\n", + "\n", + "#Result\n", + "print \"minimum uncertainity in momentum is\",round(deltap*10**20,1),\"*10**-20 kg m/s\"\n", + "print \"minimum kinetic energy of proton is\",round(ke/10**6,2),\"MeV\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter6.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter6.ipynb new file mode 100644 index 00000000..fd167244 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter6.ipynb @@ -0,0 +1,304 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 6: Schrodinger Wave Mechanics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 8, Page number 228" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy levels are 38 eV 150 eV 339 eV\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "a=10**-10; #width(m)\n", + "h=6.62*10**-34; #planck's constant\n", + "n1=1;\n", + "n2=2;\n", + "n3=3;\n", + "\n", + "#Calculation\n", + "Ex=h**2/(8*e*m*a**2); #energy(eV)\n", + "E1=Ex*n1**2; #energy at 1st level(eV)\n", + "E2=Ex*n2**2; #energy at 2nd level(eV)\n", + "E3=Ex*n3**2; #energy at 3rd level(eV)\n", + "\n", + "#Result\n", + "print \"energy levels are\",int(round(E1)),\"eV\",int(round(E2)),\"eV\",int(round(E3)),\"eV\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 9, Page number 229" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "probability of finding the particle is 0.133\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "deltax=1*10**-10; #width\n", + "a=15*10**-10; #width(m)\n", + "\n", + "#Calculation\n", + "W=2*deltax/a; #probability of finding the particle\n", + "\n", + "#Result\n", + "print \"probability of finding the particle is\",round(W,3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 10, Page number 229" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "probability of transmission of electron is 0.5\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "E=1; #energy(eV)\n", + "V0=2; #voltage(eV)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "chi=1.05*10**-34; \n", + "a=2*10**-10; #potential barrier\n", + "\n", + "#Calculation\n", + "x=math.sqrt(2*m*(V0-E)*e);\n", + "y=16*E*(1-(E/V0))/V0;\n", + "T=y*math.exp(-2*a*x/chi); #probability of transmission of electron\n", + "\n", + "#Result\n", + "print \"probability of transmission of electron is\",round(T,1)\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 11, Page number 230" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fraction of electrons reflected is 0.38\n", + "fraction of electrons transmitted is 0.62\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "E=0.080*10**-19; #energy(eV)\n", + "E_V0=0.016*10**-19; #voltage(eV)\n", + "\n", + "#Calculation\n", + "x=math.sqrt(E);\n", + "y=math.sqrt(E_V0);\n", + "R=(x-y)/(x+y); #fraction of electrons reflected\n", + "T=1-R; #fraction of electrons transmitted\n", + "\n", + "#Result\n", + "print \"fraction of electrons reflected is\",round(R,2)\n", + "print \"fraction of electrons transmitted is\",round(T,2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 12, Page number 231" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "fraction of electrons transmitted is 0.4998\n", + "fraction of electrons reflected is 0.5002\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "E=0.34; #energy(eV)\n", + "E_V0=0.01; #voltage(eV)\n", + "\n", + "#Calculation\n", + "x=math.sqrt(E);\n", + "y=math.sqrt(E_V0);\n", + "T=4*x*y/(x+y)**2; #fraction of electrons transmitted \n", + "R=1-T; #fraction of electrons reflected\n", + "\n", + "#Result\n", + "print \"fraction of electrons transmitted is\",round(T,4)\n", + "print \"fraction of electrons reflected is\",round(R,4)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 13, Page number 232" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "transmission coefficient is 3.27 *10**-9\n", + "transmission coefficient in 1st case is 7.62 *10**-8\n", + "transmission coefficient in 2nd case is 1.51 *10**-15\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "E1=1*e; #energy(J)\n", + "E2=2*e; #energy(J)\n", + "V0=5*e; #voltage(J)\n", + "m=9.1*10**-31; #mass of electron(kg)\n", + "chi=1.054*10**-34; \n", + "a1=10*10**-10; #potential barrier(m)\n", + "a2=20*10**-10; #potential barrier(m)\n", + "\n", + "#Calculation\n", + "beta1=math.sqrt(2*m*(V0-E1)/(chi**2));\n", + "y1=16*E1*((V0-E1)/(V0**2));\n", + "T1=y1*math.exp(-2*a1*beta1); #transmission coefficient\n", + "beta2=math.sqrt(2*m*(V0-E2)/(chi**2));\n", + "y2=16*E2*((V0-E2)/(V0**2));\n", + "T2=y2*math.exp(-2*a1*beta2); #transmission coefficient in 1st case\n", + "T3=y2*math.exp(-2*a2*beta2); #transmission coefficient in 2nd case\n", + "\n", + "#Result\n", + "print \"transmission coefficient is\",round(T1*10**9,2),\"*10**-9\"\n", + "print \"transmission coefficient in 1st case is\",round(T2*10**8,2),\"*10**-8\"\n", + "print \"transmission coefficient in 2nd case is\",round(T3*10**15,2),\"*10**-15\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter7.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter7.ipynb new file mode 100644 index 00000000..31b7323a --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter7.ipynb @@ -0,0 +1,277 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 7: Nuclear Structure" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 259" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "radius of He is 2.2375 fermi\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "A1=165; #mass number\n", + "A2=4; #mass number\n", + "R1=7.731; #radius(fermi)\n", + "\n", + "#Calculation\n", + "R2=R1*(A2/A1)**(1/3); #radius of He(fermi)\n", + "\n", + "#Result\n", + "print \"radius of He is\",round(R2,4),\"fermi\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 259" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average binding energy per nucleon is 7.07 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=1.008665; #mass of neutron(amu)\n", + "p=1.007276; #mass of proton(amu)\n", + "alpha=4.00150; #mass of alpha particle(amu)\n", + "m=931; \n", + "\n", + "#Calculation\n", + "deltam=2*(p+n)-alpha;\n", + "BE=deltam*m; #binding energy(MeV)\n", + "ABE=BE/4; #average binding energy per nucleon(MeV)\n", + "\n", + "#Result\n", + "print \"average binding energy per nucleon is\",round(ABE,2),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 260" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "binding energy of neutron is 7.25 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=1.008665; #mass of neutron(amu)\n", + "Li36=6.015125; #mass of Li(amu)\n", + "Li37=7.016004; #mass of Li(amu)\n", + "m=931; \n", + "\n", + "#Calculation\n", + "deltam=Li36+n-Li37; \n", + "BE=deltam*m; #binding energy of neutron(MeV)\n", + "\n", + "#Result\n", + "print \"binding energy of neutron is\",round(BE,2),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 260" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "energy released is 23.6 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "BEHe=4*7.0; #binding energy for He\n", + "BEH=2*1.1; #binding energy for H\n", + "\n", + "#Calculation\n", + "deltaE=BEHe-(2*BEH); #energy released(MeV) \n", + "\n", + "#Result\n", + "print \"energy released is\",deltaE,\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 5, Page number 260" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "mass is 19.987 amu\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=1.008665; #mass of neutron(amu)\n", + "p=1.007276; #mass of proton(amu)\n", + "BE=160.647; #binding energy(MeV)\n", + "m=931; \n", + "\n", + "#Calculation\n", + "Mx=10*(p+n)-(BE/m); #mass(amu)\n", + "\n", + "#Result\n", + "print \"mass is\",round(Mx,3),\"amu\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 6, Page number 261" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "binding energy of neutron is 11.471 MeV\n", + "answer given in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "n=1.008665; #mass of neutron(amu)\n", + "Ca41=40.962278; #mass of Ca(amu)\n", + "Ca42=41.958622; #mass of Ca(amu)\n", + "m=931; \n", + "\n", + "#Calculation\n", + "deltam=Ca41+n-Ca42; \n", + "BE=deltam*m; #binding energy of neutron(MeV)\n", + "\n", + "#Result\n", + "print \"binding energy of neutron is\",round(BE,3),\"MeV\"\n", + "print \"answer given in the book varies due to rounding off errors\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter8.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter8.ipynb new file mode 100644 index 00000000..ecefb615 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter8.ipynb @@ -0,0 +1,210 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 8: Alpha and Beta Decays" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 282" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity of beta article is 0.8624 c\n", + "mass of beta particle is 1.98 m0\n", + "flux density is 0.029106 weber/m**2\n", + "answer in the book varies due to rounding off errors\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "e=1.6*10**-19; #charge(coulomb)\n", + "Ek=0.5*10**6; #kinetic energy(eV)\n", + "m0=9.11*10**-31; #mass(kg)\n", + "c=3*10**8; #velocity of light(m/s)\n", + "r=0.1; #radius(m)\n", + "\n", + "#Calculation\n", + "x=(Ek*e/(m0*c**2))+1;\n", + "y=1-(1/x)**2;\n", + "v=c*math.sqrt(y); #velocity of beta article(m/s)\n", + "m=m0/math.sqrt(1-(v/c)**2); #mass of beta particle(kg)\n", + "B=m*v/(e*r); #flux density(weber/m**2)\n", + "\n", + "#Result\n", + "print \"velocity of beta article is\",round(v/c,4),\"c\"\n", + "print \"mass of beta particle is\",round(m/m0,2),\"m0\"\n", + "print \"flux density is\",round(B,6),\"weber/m**2\"\n", + "print \"answer in the book varies due to rounding off errors\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 283" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "kinetic energy of alpha particle is 4.782 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "A=226; #atomic weight\n", + "Ra=226.02540; #mass of Ra\n", + "Rn=222.017571; #mass of Rn\n", + "He=4.002603; #mass of He\n", + "m=931.5; \n", + "\n", + "#Calculation\n", + "Q=(Ra-Rn-He)*m; \n", + "kalpha=(A-4)*Q/A; #kinetic energy of alpha particle(MeV)\n", + "\n", + "#Result\n", + "print \"kinetic energy of alpha particle is\",round(kalpha,3),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 283" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum kinetic energy of electrons is 4.548 MeV\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Ne=22.99465; #mass of Ne\n", + "Na=22.989768; #mass of Na\n", + "m=931.5; \n", + "\n", + "#Calculation\n", + "Q=(Ne-Na)*m; #maximum kinetic energy of electrons(MeV)\n", + "\n", + "#Result\n", + "print \"maximum kinetic energy of electrons is\",round(Q,3),\"MeV\"\n", + "print \"answer given in the book is wrong\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 284" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Q value of 1st decay is 0.482 MeV\n", + "Q value of 2nd decay is 1.504 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "K=39.963999; #mass of K\n", + "Ca=39.962591; #mass of Ca\n", + "Ar=39.962384; #mass of Ar\n", + "me=0.000549; #mass of electron \n", + "m=931.5; \n", + "\n", + "#Calculation\n", + "Q1=(K-Ar-(2*me))*m; #Q value of 1st decay(MeV)\n", + "Q2=(K-Ar)*m; #Q value of 2nd decay(MeV)\n", + "\n", + "#Result\n", + "print \"Q value of 1st decay is\",round(Q1,3),\"MeV\"\n", + "print \"Q value of 2nd decay is\",round(Q2,3),\"MeV\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter9.ipynb b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter9.ipynb new file mode 100644 index 00000000..444cec94 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/Chapter9.ipynb @@ -0,0 +1,208 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 9: Nuclear Reactions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 1, Page number 299" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Q value in nuclear reaction is -1.1898 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "N=14.003073; #mass of N\n", + "O=16.99913; #mass of O\n", + "H=1.007825; #mass of H\n", + "He=4.002604; #mass of He\n", + "m=931; \n", + "\n", + "#Calculation\n", + "Q=(N+He-(O+H))*m; #Q value in nuclear reaction(MeV) \n", + "\n", + "#Result\n", + "print \"Q value in nuclear reaction is\",round(Q,4),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 2, Page number 299" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "heat generated is 6.6 *10**6 KWH\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Li=7.01600; #mass of Li\n", + "H=1.007825; #mass of H\n", + "He=4.002604; #mass of He\n", + "m=931; \n", + "e=1.6*10**-19; #charge(coulomb)\n", + "N=6.02*10**26; #avagadro number\n", + "M=0.1; #mass(kg)\n", + "x=1000*3600;\n", + "\n", + "#Calculation\n", + "Q=(Li+H-(He+He))*m*10**6*e; #heat generated by Li(J)\n", + "mLi=Li/N; #mass of Li(kg) \n", + "H=Q*M/(x*mLi); #heat generated(KWH)\n", + "\n", + "#Result\n", + "print \"heat generated is\",round(H*10**-6,1),\"*10**6 KWH\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 3, Page number 300" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Q-value for the reaction is 5.485 MeV\n", + "kinetic energy of Zn is 0.635 MeV\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "Cu=62.929599; #mass of Cu\n", + "H=2.014102; #mass of H(amu)\n", + "n=1.008665; #mass of n(amu)\n", + "Zn=63.929145; #mass of Zn(amu)\n", + "m=931; \n", + "Kx=12; #energy of deuterons(MeV)\n", + "Ky=16.85; #kinetic energy of deuterons(MeV)\n", + "\n", + "#Calculation\n", + "Q=(H+Cu-n-Zn)*m; #Q-value for the reaction(MeV)\n", + "K=Q+Kx-Ky; #kinetic energy of Zn(MeV)\n", + "\n", + "#Result\n", + "print \"Q-value for the reaction is\",round(Q,3),\"MeV\"\n", + "print \"kinetic energy of Zn is\",round(K,3),\"MeV\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example number 4, Page number 301" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "threshold kinetic energy is 5.378 MeV\n", + "answer given in the book is wrong\n" + ] + } + ], + "source": [ + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "P=1.007825; #mass of P(amu)\n", + "H2=2.014102; #mass of H2(amu)\n", + "H3=3.016049; #mass of H3(amu)\n", + "m=931; \n", + "\n", + "#Calculation\n", + "Q=(P+H3-(2*H2))*m; #Q-value(MeV)\n", + "Kth=-Q*(1+(P/H3)); #threshold kinetic energy(MeV)\n", + "\n", + "#Result\n", + "print \"threshold kinetic energy is\",round(Kth,3),\"MeV\"\n", + "print \"answer given in the book is wrong\"" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/11.png b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/11.png Binary files differnew file mode 100644 index 00000000..4f3bb200 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/11.png diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/22.png b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/22.png Binary files differnew file mode 100644 index 00000000..4c59d9af --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/22.png diff --git a/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/33.png b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/33.png Binary files differnew file mode 100644 index 00000000..2a121876 --- /dev/null +++ b/BSc_3rd_Year_Physics(Paper-4)_by_Sanjeeva_Rao,_Bhikshmaiah,_Ramakrishna_Reddy,_Ananta_Ramaiah/screenshots/33.png diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter01.ipynb b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter01.ipynb new file mode 100644 index 00000000..80753bfe --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter01.ipynb @@ -0,0 +1,643 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter01: Characterstics of Electric Motors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_1:pg-83" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "615.2 =New speed in rpm \n" + ] + } + ], + "source": [ + "#Electric Drives concepts and application by V.Subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_1\n", + "import math\n", + "V=500.0;# voltage v\n", + "N1=900.0;# speed in rpm\n", + "Ia1=45.0;#armature current in A\n", + "Ia2=21.0;#armature current in A\n", + "R=8;# resistance in ohm\n", + "Ra=1;#armature resistance in ohm\n", + "Eb1=V-(Ia1*Ra);\n", + "Eb2=V-(9*Ia2);\n", + "N2=N1*(Eb2/Eb1);\n", + "print round(N2,1),\"=New speed in rpm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_2:pg-83" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "6.93044450468 =The initial breaking torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and application by V.Subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_2\n", + "import math\n", + "V1=400.0;#supply voltage is V\n", + "I1=70.0;#Current in A\n", + "N1=78.5;#speed in rad/sec\n", + "R1=0.3;#resistance in ohm\n", + "I2=90.0;#current in A\n", + "N2=31.4;#Speed in rpm\n", + "Eb1=V1-(I1*R1);\n", + "T1=(Eb1*I1)/N1;\n", + "V2=V1+Eb1;\n", + "R2=(V2/I2)-R1;\n", + "T2=(Eb1*I2)/N1;\n", + "Eb2=(Eb1*N2)/N1;\n", + "I=(V1+Eb2)/R2;\n", + "T=(Eb2+I)/N2;\n", + "print T,\"=The initial breaking torque in Nm \"\n", + "#Calculation error in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_3:pg-84" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "7.68541150479 =External resistance required in ohm\n" + ] + } + ], + "source": [ + "#Electric drives concepts and application by V.Subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_3\n", + "import math\n", + "V=250.0;#supply voltage V\n", + "Ia1=40.0;#Armature current in A\n", + "R1=0.6;#Resistance in ohm\n", + "N1=2.828;#speed in rpm\n", + "N2=2;#speed in rpm\n", + "Ia2=((Ia1)**2/N1)**(1.0/2);\n", + "Eb1=V-(Ia1*R1);\n", + "Eb=(Ia1/Ia2)*N2;\n", + "Eb2=Eb1/Eb;\n", + "R2=(V-Eb2)/Ia2;\n", + "print R2,\"=External resistance required in ohm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_4a:pg-85" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "9.09764027943 =the effeciency of the motor in % \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_4a\n", + "import math\n", + "V=440.0;# voltage in V\n", + "Ia=80.0;# Current in A\n", + "Na=1200.0;#Speed in rpm\n", + "Na1=125.6;# Speed in rad/sec\n", + "R1=0.55;# Resistance in ohm\n", + "R2=110.0;# Resistance in ohm\n", + "N0=600.0;# Speed in rpm\n", + "N01=62.8;#Speed in rpm\n", + "Nf=300.0;# Speed in rpm\n", + "Nf1=31.4;# Speed in rpm\n", + "Rsh=1.256;# Resistance in ohm\n", + "E=V-(Ia*R1);\n", + "K=E/Na1; \n", + "E1=K*N01;\n", + "Tf=K*Ia;\n", + "E2=E1*(Nf/N0);\n", + "V2=E2+(Ia*R1);\n", + "Is=(V2/Rsh)+Ia;\n", + "Il=Is+(V/R2);\n", + "Pi=V*Il;\n", + "Po=Tf*Nf1;\n", + "Eff=(Po/Pi)*100;\n", + "print Eff,\"=the effeciency of the motor in % \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_4b:pg-86" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "999.450641681 =No load speed in rpm \n", + "230.176511417 =Full load speed in rpm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_4b\n", + "import math\n", + "V=440.0;#voltage in V\n", + "K=3.153;\n", + "Ia=80.0;# Current in A\n", + "Rs=2.0;#Resistance in ohm\n", + "Rsh=1.5;#Resistance in ohm\n", + "R1=0.55;#Resistance in ohm\n", + "Alpha=(Rs/Rsh);\n", + "Vo=(V/Alpha);\n", + "No=(Vo/K);\n", + "N=((60.0*No)/(2*math.pi));\n", + "print N,\"=No load speed in rpm \"\n", + "V2=((V/Rs)-Ia)/((1/Rs)+(1/Rsh));\n", + "E2=V2-(Ia*R1);\n", + "N2=N*(E2/Vo);\n", + "print N2,\"=Full load speed in rpm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_5a:pg-87" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "898.56 =The speed of the motor in rpm \n", + "99.4718394324 =The torque developed in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_5a\n", + "import math\n", + "V=250;# voltage in V\n", + "Ra=0.4;# Resistance in ohm\n", + "Na=480;#Speed in rpm\n", + "Va=125;# voltage in V\n", + "Ia=40;#Current in A\n", + "Vi=V-(Ra*Ia);\n", + "N=Na*(Vi/Va);\n", + "print N,\"=The speed of the motor in rpm \"\n", + "N1=(2*math.pi*N)/60;\n", + "T=(Vi*Ia)/N1;\n", + "print T,\"=The torque developed in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_5b:pg-87" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2.725 =The value of resistance in ohm\n", + "99.4718394324 =The torque developed in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_5b\n", + "import math\n", + "V=250.0;# voltage in V\n", + "I=40.0;#Current in A\n", + "Ra=0.4;#Resistance in ohm\n", + "Eb=125.0;# voltage in V\n", + "Na=480.0;#Speed in rpm\n", + "Re=(V-Eb-(I*Ra))/I;\n", + "print Re,\"=The value of resistance in ohm\"\n", + "T=(Eb*I)*60/(2*Na*math.pi);\n", + "print T,\"=The torque developed in Nm \"\n", + "#Result vary due to error in calculation of torque in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_6:pg-87" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "480.763116057 =The speed of motor in rpm \n", + "3.82460039115 =The torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_6\n", + "import math\n", + "V=250.0;# voltage in V\n", + "I=40.0;#Current in A\n", + "R1=2.725;# Resistance in ohm\n", + "R2=3.5;# Resistance in ohm\n", + "Rf=0.15;# Resistance in ohm\n", + "N=480.0;#Speed in rpm\n", + "V1=V-I*(R1+Rf);\n", + "Ir=(V1/R2);\n", + "Ia=I-Ir;\n", + "Eb=V1-(Ia*Rf);\n", + "Nm=N*(V1/Eb);\n", + "print Nm,\"=The speed of motor in rpm \"\n", + "#Result vary due to 125V is used instead of 135V in the textbook\n", + "T=(Eb*Ia)/(2*math.pi*Nm/60);\n", + "print T,\"=The torque in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_7:pg-87" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "242.984096386 =The speed of the motor in rpm \n", + "99.4718394324 =The torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_7\n", + "import math\n", + "V=250;# voltage in V\n", + "I=40;#Current in A\n", + "Ro=0.4;# Resistance in ohm\n", + "R1=2.725;# Resistance in ohm\n", + "R2=3.5;# Resistance in ohm\n", + "Eb=125;# voltage in V\n", + "Na=480;#Speed in rpm\n", + "Na1=50.24;#Speed in rad/sec\n", + "R=((1/R1)+(1/R2));\n", + "Vm=(V-(I*R1))/(R*R1);\n", + "Em=Vm-(I*Ro);\n", + "N=(Em/Eb)*Na;\n", + "print N,\"=The speed of the motor in rpm \"\n", + "N1=(2*math.pi*N)/60;\n", + "Il=(V-Vm)/R1;\n", + "Po=Em*I;\n", + "T=Po/N1;\n", + "print T,\"=The torque in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_8:pg-89" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "-84.7104 =The speed in rpm \n", + "164.128535064 =The torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_8\n", + "import math\n", + "V=250.0;# voltage in V\n", + "I=40.0;#Current in A\n", + "R1=0.91;# Resistance in ohm\n", + "Rs=0.95;# Resistance in ohm\n", + "Eb=125.0;# voltage in V\n", + "N1=480.0;#Speed in rpm\n", + "Vm=Rs*I;\n", + "Ia=I-((V-Vm)/2);\n", + "Em=-Vm-(Ia*R1);\n", + "N=-(Em/Eb)*N1;\n", + "print N,\"=The speed in rpm \"\n", + "N2=(2*math.pi*N)/60;\n", + "T=(Em*Ia)/N2;\n", + "print T,\"=The torque in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_10:pg-90" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2.56 =Direct on line starting torque in Nm \n", + "0.853333333333 =By Star/delta starter\n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_10\n", + "import math\n", + "Sf=0.04;#Full load slip in %\n", + "Ist=1.0;#Starting current in A\n", + "If1=Ist/8.0;\n", + "T=(8.0)**2*Sf;\n", + "print T,\"=Direct on line starting torque in Nm \"\n", + "S=T/3;\n", + "print S,\"=By Star/delta starter\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_11:pg-90" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1.28 =Torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_11\n", + "import math\n", + "Sf1=0.04;#Full load slip in %\n", + "x=(8.0*3)**(1.0/2);\n", + "Tst=(x)**2*Sf1;\n", + "S=Sf1/2.0;\n", + "T=(8)**2*S;\n", + "print T,\"=Torque in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_12:pg-91" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.16 =Torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_12\n", + "import math\n", + "Sf=0.04;#Full load slip in %\n", + "I=5;#Current in A\n", + "Tst=(I)**2*Sf;\n", + "x=((2.0/I)*100)**(1.0/2);\n", + "T=(2.0/I)**2*(I)**2*Sf;\n", + "print T,\"=Torque in Nm \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1_13:pg-92" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(6.53+2.08j) =The impedence of motor \n", + "(1.0675+2.08j) =The impedence at plugging \n", + "77019.1732775 =The braking torque in Nm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex1_13\n", + "import math\n", + "V=500.0;#Voltage in V\n", + "r1=0.13;#resistance in ohm\n", + "r2=0.32;#resistance in ohm\n", + "x1=0.6j;#reactance in ohm\n", + "x2=1.48j;#reactance in ohm\n", + "rm=250.0;#resistance in ohm\n", + "xm=20;#reactance in ohm\n", + "S=0.05;#Full load slip in %\n", + "Z2=r1+x1+(r2/S)+x2;\n", + "print Z2,\"=The impedence of motor \"\n", + "I2=(V/(math.sqrt(3.0)*(6.853)));\n", + "T1=3*(I2)**2*(r2/S);\n", + "Sb=2-S;\n", + "Sf=2-S+r1;\n", + "Zb=r1+x1+(Sb/Sf)+x2;\n", + "print Zb,\"=The impedence at plugging \"\n", + "I=(V/(math.sqrt(3.0)*(2.336)));\n", + "T2=3*(I)**2.0*(Sb/Sf);\n", + "T=T1+T2;\n", + "print T,\"=The braking torque in Nm \"\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter03.ipynb b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter03.ipynb new file mode 100644 index 00000000..add9d188 --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter03.ipynb @@ -0,0 +1,690 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter03: Converters for Feeding Electric Motors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_1:pg-273" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "81.2623533876 =Current in the load in A \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_1\n", + "import math\n", + "Rd=2;#Resistance in ohm\n", + "Eb=150;#Back emf in V\n", + "Vs=400;#Supply voltage in V\n", + "Alpha=0.52;#angle in radian\n", + "Vdia=((2*math.sqrt(2)*Vs*math.cos(Alpha))/math.pi);\n", + "Id=(Vdia-Eb)/Rd;\n", + "Irms=Id/math.sqrt(2);\n", + "print Id,\"=Current in the load in A \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_2:pg-273" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "88.1286627695 =The firing angle in degree \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_2\n", + "import math\n", + "Vs=400;#Supply voltage in V\n", + "Id=80.88;#Current in A\n", + "Rd=2;#Resistance in ohm\n", + "Eb=-150;#Back emf in V\n", + "Vdia=Id*Rd+Eb;\n", + "a=math.acos((Vdia*math.pi)/(2*math.sqrt(2)*Vs));\n", + "Alpha=(a*180)/math.pi;\n", + "print Alpha,\"=The firing angle in degree \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_3:pg-274" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "5.19163041855 =The overlap angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_3\n", + "import math\n", + "Id=80.88;#Current in A\n", + "Rd=2;#Resistance in ohm\n", + "Xc=0.628;#Reactance in ohm\n", + "Vs=400;#Supply voltage in V\n", + "Eb=150;#Back emf in V\n", + "Z=Id*(Rd+(Xc/math.pi));\n", + "a=math.acos((Z-Eb)/(0.9*Vs));\n", + "Alpha=(a*180)/math.pi;\n", + "c=math.cos(Alpha);\n", + "d=-c/11;\n", + "b=(Id*Xc*2)/(math.pi*Vs);\n", + "X=d-b;\n", + "e=math.acos(X);\n", + "f=(e*180)/math.pi;\n", + "u=f-Alpha;\n", + "print u,\"=The overlap angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_4:pg-275" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "7.10947929815 =The average value of dc current in A \n", + "88.8684912269 =The average value of converter voltage in V \n", + "0.745818730364 =The overlap angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_4\n", + "import math\n", + "Vs=200.0;#Supply voltage in V\n", + "Rd=12.5;#Resistance in ohm\n", + "Xc=0.5;#Reactance in ohm\n", + "pf=0.5;#Powerfactor\n", + "Vdia=0.9*Vs*pf;\n", + "Id=Vdia/(Rd+(Xc/math.pi));\n", + "print Id,\"=The average value of dc current in A \"\n", + "Vd=Id*Rd;\n", + "print Vd,\"=The average value of converter voltage in V \"\n", + "Vc=Vdia-Vd;\n", + "X=pf-((Vc*2.0)/Vs);\n", + "c=math.acos(X);\n", + "d=(c*180.0)/math.pi;\n", + "u=d-60;\n", + "print u,\"=The overlap angle in deg \"\n", + "#Result vary due to error in calculation of overlap angle in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_5:pg-276" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "56.5714285714 =The average value of load current in A \n", + "64.6230664748 =The overlap angle u in deg \n", + "35.1257218105 =The overlap angle u1 in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_5\n", + "import math\n", + "f=50.0;#Frequency in Hz\n", + "Rd=2.5;#Resistance in ohm\n", + "Lc=0.005;#Inductance in mH\n", + "Vs=220.0;#Supply voltage in V\n", + "pf=1;#Powerfactor\n", + "pf1=0.866;#Powerfactor\n", + "Xc=2*math.pi*f*Lc;\n", + "Z=Rd+((2*Xc)/math.pi);\n", + "Vdia=0.9*Vs*pf;\n", + "Id=Vdia/Z;\n", + "print Id,\"=The average value of load current in A \"\n", + "Vd=Id*Rd;\n", + "Vdc=Vdia-Vd;\n", + "a=(1-((Vdc*2)/Vdia));\n", + "b=math.acos(a);\n", + "u=(b*180.0)/math.pi;\n", + "print u,\"=The overlap angle u in deg \"\n", + "Vdia1=0.9*Vs*pf1;\n", + "Id1=Vdia1/Z;\n", + "Vd1=Id1*Rd;\n", + "Vdc1=Vdia1-Vd1;\n", + "V=pf1-((Vdc1*2)/Vs);\n", + "c=math.acos(V);\n", + "d=(c*180.0)/math.pi;\n", + "u1=d-30;\n", + "print u1,\"=The overlap angle u1 in deg \"\n", + "#Result vary due to error in calculation of overlap angle in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_6:pg-277" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "3.57960292596 =The overlap angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_6\n", + "import math\n", + "Vs=220.0;#Supply voltage in V\n", + "f=50.0;#Frequency in Hz\n", + "Eb=-200.0;#Back emf in V\n", + "Rd=3.0;#Resistance in ohm\n", + "Vdc=200.0;# voltage in V\n", + "Xc=0.314;#Reactance in ohm\n", + "L=0.001;#Inductance in mH\n", + "pf=-0.5;#Powerfactor\n", + "Vdia=0.9*Vs*pf;\n", + "Id=(Vdia-Eb)/(Rd+((2*Xc)/math.pi));\n", + "Vd=Id*Rd+Eb;\n", + "a=-pf+((Vd*2)/Vdc);\n", + "b=math.acos(a);\n", + "c=(b*180.0)/math.pi;\n", + "u=c-120;\n", + "print u,\"=The overlap angle in deg \"\n", + "#Result vary due to error in calculation of overlap angle in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_7:pg-278" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "8.86857843179 =the overlap angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_7\n", + "import math\n", + "Id=50.0;#Current in A\n", + "Vs=220.0;#Supply voltage in V\n", + "Vdio=257.4;# voltage in V\n", + "f=50.0;#Frequency in Hz\n", + "L=0.0015;#Inductance in mH\n", + "pf=0.866;#Powerfactor \n", + "Xc=2*math.pi*f*L;\n", + "Vdia=1.17*Vs*pf;\n", + "Vd=Vdia-((3*Id*Xc)/(2*math.pi));\n", + "Vc=Vdia-Vd;\n", + "a=pf-((Vc*2)/Vdio);\n", + "b=math.acos(a);\n", + "c=(b*180.0)/math.pi;\n", + "u=c-30;\n", + "print u,\"=the overlap angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_8:pg-280" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "64.9 =load current in A \n", + "20.6382 =Average value of load current in A \n", + "35.7464109768 =Rms value of load current in A \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_8\n", + "import math\n", + "Rd=2.5;#Resistance in ohm\n", + "V=250;# voltage in V\n", + "f=50;#Frequency in Hz\n", + "Vs=150;#Supply voltage in V\n", + "pf=-0.5;#Powerfactor\n", + "Eb=-250;#Back emf in V\n", + "Xc=0.636;#Reactance in ohm\n", + "Vdia=1.17*Vs*pf;\n", + "Id=(Vdia-Eb)/Rd;\n", + "print Id,\"=load current in A \"\n", + "Ith=(Id*Xc)/2;\t\n", + "print Ith,\"=Average value of load current in A \"\n", + "Irms=math.sqrt(3)*Ith;\n", + "print Irms,\"=Rms value of load current in A \"\n", + "#Result vary due to error in calculation of current in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_9:pg-280" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "26.8325105187 =The overlap angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_9\n", + "import math\n", + "L=0.003;#Inductance in mH\n", + "Id=64.9;#Current in A\n", + "V=162.25;#voltage in V\n", + "Vs=150;#Supply voltage in V\n", + "f=50;#Frequency in Hz\n", + "Rd=2.5;#Resistance in ohm\n", + "Eb=-250;#Back emf in V\n", + "pf=-0.5;#Powerfactor\n", + "Xc=2*math.pi*f*L;\n", + "Vdia=(Id*(Rd+((3*Xc)/(2*math.pi))))+Eb;\n", + "a=Vdia/(1.17*Vs);\n", + "b=math.acos(a);\n", + "c=(b*180)/math.pi;\n", + "Alpha=-0.3338;#angle in radian\n", + "X=(3*Id*Xc)/(math.pi*Vs);\n", + "d=math.acos(Alpha-X);\n", + "e=(d*180)/math.pi;\n", + "u=e-c;\n", + "print u,\"=The overlap angle in deg \"\n", + "#Result vary due to error in calculation of overlap angle in the textbook\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_10:pg-280" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "139.752 =Average value of load voltage in V \n", + "9.3168 =Average value of load current in A \n", + "1302.0414336 =Power dissipation in W \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_10\n", + "import math\n", + "Vs=400;#Supply voltage in V\n", + "f=50;#Frequency in Hz\n", + "Rd=15;#Resistance in ohm\n", + "pf=0.2588;#Powerfactor\n", + "Vdia=1.35*Vs*pf;\n", + "print Vdia,\"=Average value of load voltage in V \"\n", + "Id=Vdia/Rd;\n", + "print Id,\"=Average value of load current in A \"\n", + "P=Vdia*Id;\t\n", + "print P,\"=Power dissipation in W \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_11:pg-281" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.24450211813 =The power factor \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_11\n", + "import math\n", + "Alpha=75;#angle in degree\n", + "a=math.cos(Alpha);\n", + "b=a/3.6;\n", + "pf=(3*b)/math.pi;\n", + "print pf,\"=The power factor \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_12:pg-281" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "20.7850558657 =The max current in A \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_12\n", + "import math\n", + "Vs=400;#Supply voltage in V\n", + "Id=9.317;#Current in A\n", + "pf=0.2588;#Powerfactor\n", + "Vth=math.sqrt(2)*Vs;\n", + "Ia=math.sqrt(2/3.0)*Id;\n", + "Ith=Ia/math.sqrt(2);\n", + "Imax=Ith/pf;\n", + "print Imax,\"=The max current in A \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_14:pg-282" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1.0 =Ripple factor \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_14\n", + "import math\n", + "t0=1.5;#Time in ms\n", + "t1=3;#Time in ms\n", + "Vs=200.0;#Supply voltage in V\n", + "gama=t0/t1;\n", + "Vl=gama*Vs;\n", + "Vrms=math.sqrt(gama)*Vs;\n", + "Rf=(math.sqrt(1-gama))/(math.sqrt(gama));\n", + "print Rf,\"=Ripple factor \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_14:pg-283" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1.0 =Ripple factor \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_14\n", + "import math\n", + "t0=1.5;#Time in ms\n", + "t1=3;#Time in ms\n", + "Vs=200.0;#Supply voltage in V\n", + "gama=t0/t1;\n", + "Vl=gama*Vs;\n", + "Vrms=math.sqrt(gama)*Vs;\n", + "Rf=(math.sqrt(1-gama))/(math.sqrt(gama));\n", + "print Rf,\"=Ripple factor \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3_15:pg-284" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "23.032 =Maximum current in A \n", + "23.032 =Minimum current in A \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex3_15\n", + "import math\n", + "R=1.5;#Resistance in ohm\n", + "L=3;#Inductance in H\n", + "Ton=2;#Time in ms\n", + "T=6;#Time in ms\n", + "Vs=150.0;#Supply voltage in V\n", + "t=Ton/T;\n", + "tON=L/R;\n", + "Vavg=T*Vs;\n", + "Iavg=Vavg/R;\n", + "P=(Iavg)**2*R;\n", + "Io=23.032;\n", + "I=1-math.exp(-t);\n", + "I1=Io*math.exp(-t);\n", + "Imax=(Vs/R)*I+I1;\n", + "print Imax,\"=Maximum current in A \"\n", + "Imin=Imax*math.exp(-2*t);\n", + "print Imin,\"=Minimum current in A \"\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter04.ipynb b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter04.ipynb new file mode 100644 index 00000000..a32d3adb --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter04.ipynb @@ -0,0 +1,622 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter04: Control of Electric Motors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_1:pg-441" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "29.9336056693 =Iavg:\n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_1\n", + "import math\n", + "Eb=50;# voltage in V\n", + "V=120;# voltage in V\n", + "f=50;#frequency in Hz\n", + "R=10;# Resistance in ohm\n", + "a=math.asin(Eb/(math.sqrt(2)*V));\n", + "Alpha=(a*180)/math.pi;\n", + "pf=0.9556;\n", + "Iavg=(1/(2*math.pi*R))*((2*math.sqrt(2)*V*pf)-(Eb*(math.pi-(2*Alpha))));\n", + "print Iavg,\"=Iavg:\"\n", + "#answer wrong in the textbook due to error in calculation\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_3:pg-442" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "81.1519777932 =Effeciency in % \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_3\n", + "import math\n", + "P=10000;\n", + "V=240;# voltage in V\n", + "N=1000;#Speed in rpm\n", + "Eff1=0.87;#Effeciency in %\n", + "Vs=250;# voltage in V\n", + "f=50;#frequency in Hz\n", + "Alpha=0.5;#angle\n", + "R=0.40;# Resistance in ohm\n", + "Fdf=1;#fundamental displacement factor\n", + "df=0.9;#distortion factor\n", + "pf=0.9;#the power factor\n", + "Pi=P/Eff1;\n", + "I=Pi/V;\n", + "Eb=V-(I*R);\n", + "Vi=0.9*Vs;\n", + "Eb1=Vi-(I*R);\n", + "N1=(Eb1/Eb)*N;\n", + "Pi1=V*I*pf*(10)**(-3);\n", + "Pi2=(Pi1*N1)/N;\n", + "Vc=0.9*Vs*Alpha;\n", + "Eb2=Vc-(I*R);\n", + "N2=(N*Eb2)/Eb;\n", + "P0=((Pi1*N2)/N)*1000;\n", + "Pi0=Vc*I;\n", + "Eff=(P0/Pi0)*100;\n", + "print Eff,\"=Effeciency in % \"\n", + "#Result vary due to roundoff error\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_4:pg-442" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.7794 =powerfactor \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_4\n", + "import math\n", + "V=250;# voltage in V\n", + "f=50;#frequency in Hz\n", + "R=1.5;# Resistance in ohm\n", + "L=30;#inductance in mH\n", + "Eb=100;#Back emf in V\n", + "Alpha=0.866;#angle \n", + "Vc=0.9*V*Alpha;\n", + "Id=(Vc-Eb)/R;\n", + "P=Vc*Id*10**(-3);\n", + "pf=0.9*Alpha;\n", + "print pf,\"=powerfactor \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_5:pg-443" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "57.4863853668 =The firing angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_5\n", + "import math\n", + "N=1800;#Speed in rpm\n", + "I=60;#Current in A\n", + "V=400;# voltage in V\n", + "E=185;#Back emf in V\n", + "N2=900;#Speed in rpm\n", + "R=0.5;# Resistance in ohm\n", + "Vs=V/2.34;\n", + "Vl=V/1.35;\n", + "Vi=V-(I*R);\n", + "V=E+(I*R);\n", + "a=math.acos(V/(2.34*Vs));\n", + "Alpha=(a*180)/math.pi;\n", + "print Alpha,\"=The firing angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_6:pg-444" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "71.5063230096 =The firing angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_6\n", + "import math\n", + "V=500;# voltage in V\n", + "Vs=250;# voltage in V\n", + "I=181;#Current in A\n", + "N=1500;#Speed in rpm\n", + "R=0.1;# Resistance in ohm\n", + "f=50;#frequency in Hz\n", + "Eb=Vs-(I*R);\n", + "Eb1=Eb/3;\n", + "A1=math.acos(Vs/(1.35*V));\n", + "Alpha1=(A1*180)/math.pi;\n", + "Ia2=I/9;\n", + "V2=Eb1+(Ia2*R);\n", + "A2=math.acos(V2/(1.35*V));\n", + "Alpha2=(A2*180)/math.pi;\n", + "Vl=Vs/1.35;\n", + "A3=math.acos(V2/(1.35*Vl));\n", + "Alpha3=(A3*180)/math.pi;\n", + "print Alpha3,\"=The firing angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_7a:pg-445" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "26.2447091004 =The firing angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_7a\n", + "import math\n", + "V=300;# voltage in V\n", + "Vt=363.25;# voltage in V\n", + "f=60;#frequency in Hz\n", + "Rd=0.02;# Resistance in ohm\n", + "La=0.002;#inductance in H\n", + "Id=500;#Current in A\n", + "N=1500;#Speed in rpm\n", + "Eb=Vt-(Id*Rd);\n", + "A=math.acos(Vt/(1.35*V));\n", + "Alpha=(A*180)/math.pi;\n", + "print Alpha,\"=The firing angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_7b:pg-445" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "173.25 =The back emf in V \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_7b\n", + "import math\n", + "V=300;# voltage in V\n", + "Vt=363.25;# voltage in V\n", + "f=60;#frequency in Hz\n", + "Rd=0.02;# Resistance in ohm\n", + "La=0.001;#inductance in H\n", + "Id=500;#Current in A\n", + "N=1500;#Speed in rpm\n", + "Xc=2*math.pi*f*La;\n", + "Z=Rd+((3*Xc)/math.pi);\n", + "Eb=Vt-(Id*Z);\n", + "print Eb,\"=The back emf in V \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_8:pg-446" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.479515813953 =The constant A \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_8\n", + "import math\n", + "V=600;# voltage in V\n", + "R=0.16;# Resistance in ohm\n", + "Ia=210;#Current in A\n", + "N=600;#Speed in rpm\n", + "n=10;#no of unit\n", + "Eb=V-(Ia*R);\n", + "Td=((Eb*Ia)/(2*math.pi*n));\n", + "W=(2*math.pi*N)/60;\n", + "A=Td/(W)**2;\n", + "print A,\"=The constant A \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_9:pg-447" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "360.0 =The back emf in V \n", + "139.321363317 =The firing angle1 in deg \n", + "98.1111258306 =The firing angle2 in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_9\n", + "import math\n", + "V1=500;# voltage in V\n", + "V2=450;# voltage in V\n", + "Vs=420;# voltage in V\n", + "V=400;# voltage in V\n", + "I=60;#Current in A\n", + "R=1.5;# Resistance in ohm\n", + "R1=5;# Resistance in ohm\n", + "Eb=20;#Back emf in V\n", + "f=50;#frequency in Hz\n", + "Vl=V2+Eb;\t\t\n", + "A=math.acos(Vl/(1.35*Vs));\n", + "Alpha1=(A*180)/math.pi;\n", + "Eb1=V2-(I*R);\n", + "print Eb1,\"=The back emf in V \"\n", + "V3=-V2-(I*R);\n", + "Vc=-V2+Eb;\n", + "A1=math.acos(Vc/(1.35*Vs));\n", + "Alpha2=(A1*180)/math.pi;\n", + "print Alpha2,\"=The firing angle1 in deg \"\n", + "Eb2=-V-(I*R);\n", + "Vc1=-V+Eb+(R1*I);\n", + "A2=math.acos(Vc1/(1.35*Vs));\n", + "Alpha3=(A2*180)/math.pi;\n", + "print Alpha3,\"=The firing angle2 in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_10:pg-448" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.1 =The inductance in Henry \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_10\n", + "import math\n", + "V=500.0;# voltage in V\n", + "I=15.0;#Current in A\n", + "t=0.6;#time in sec\n", + "f=80;#frequency in Hz\n", + "Vav=V*t;\n", + "Vi=V-Vav;\n", + "Ton=t/f;\n", + "L=Vi*(Ton/I);\n", + "print L,\"=The inductance in Henry \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_14:pg-449" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.8 =The time ratio \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_14\n", + "import math\n", + "V=440;# voltage in V\n", + "R1=0.07;# Resistance in ohm\n", + "R2=0.05;# Resistance in ohm\n", + "X=0.2;#Reactance in ohm\n", + "N=1420;#Speed in rpm\n", + "Xm=20;#Reactance in ohm\n", + "S1=80;#slip in rpm\n", + "S2=500;#slip in rpm\n", + "Ra=((S2/S1)*R2)-R2;\n", + "R=2*Ra;\n", + "Ra1=4*R2;\n", + "T=(Ra1*2)/R;\n", + "print T,\"=The time ratio \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_15:pg-450" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "115.887603041 =The firing angle in deg \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_15\n", + "import math\n", + "P=1000;\n", + "N=1500;#Speed in rpm\n", + "R2=0.06;# Resistance in ohm\n", + "I2=125.6;#Current in A\n", + "T=1.5;#Time in sec\n", + "N1=1420;#Speed in rpm\n", + "S=(R2*P)/N;\n", + "K=((S/(2*math.pi*N))*(I2)**2*T)/(N1)**2;\n", + "T1=K*(N1)**2;\n", + "N2=750;#Speed in rpm\n", + "S0=0.489;#No load slip\n", + "S2=1.12;#load slip\n", + "T2=K*(N2)**2;\n", + "X1=(T2*S)/T1;\n", + "A=math.acos(-S0/S2);\n", + "Alpha=(A*180)/math.pi;\n", + "print Alpha,\"=The firing angle in deg \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4_20:pg-452" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "984.782608696 =The speed N1 in rpm \n", + "968.47826087 =The speed N2 in rpm \n", + "946.739130435 =The speed N3 in rpm \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex4_20\n", + "import math\n", + "R=0.05;# Resistance in ohm\n", + "N0=1000.0;#Speed in rpm\n", + "Rf=46.0;# Resistance in ohm\n", + "I1=75.0;#Current in A\n", + "I2=150;#Current in A\n", + "I3=250.0;#Current in A\n", + "V=230;# voltage in V\n", + "Eb=230;#Back emf in V\n", + "If=V/Rf;\n", + "Ia1=I1-If;\n", + "Eb1=V-(Ia1*R);\n", + "N1=(Eb1/Eb)*N0;\n", + "print N1,\"=The speed N1 in rpm \"\n", + "Ia2=I2-If;\n", + "Eb2=V-(Ia2*R);\n", + "N2=(Eb2/Eb)*N0;\n", + "print N2,\"=The speed N2 in rpm \"\n", + "Ia3=I3-If;\n", + "Eb3=V-(Ia3*R);\n", + "N3=(Eb3/Eb)*N0;\n", + "print N3,\"=The speed N3 in rpm \"\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter05.ipynb b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter05.ipynb new file mode 100644 index 00000000..ddf487e0 --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/Chapter05.ipynb @@ -0,0 +1,162 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5:Rating and Heating of Motors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.1:pg-491" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "43.606211467 is The final temperature in deg\n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Example:5.1\n", + "import math\n", + " \n", + "theta1=60;#Temperature rise of motor in degree\n", + "theta2=40.0;#Temperature rise of motor in degree\n", + "e=0.5;#exponential value\n", + "I1=110.0;#current in A\n", + "I2=125;#current in A\n", + "t1=4;#Time in hour\n", + "t2=8;#Time in hour\n", + "theta=theta1/theta2;\n", + "tough=-(1/math.log(0.5));\n", + "thetam1=theta2/e;\n", + "thetam2=thetam1*(I2/I1)**2;\n", + "x=t1/(theta1*tough);\n", + "a=math.e**-x;\n", + "y=t2/(theta1*tough);\n", + "b=math.e**-y;\n", + "thetam=I2*((1-a)/(1-(a*b)));\n", + "print thetam,\" is The final temperature in deg\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.2:pg-492" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1.23972921698 is The permissible overloading \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex5_2\n", + "import math\n", + " \n", + "T=100.0;#Temperature rise of motor in degree\n", + "t1=2;#Time in hour\n", + "t2=1.5;#Time in hour\n", + "Alpha=0.5;#Angle in rad\n", + "e=math.e**(-t1/t2);\n", + "thetam=100.0/(1-e);\n", + "t=thetam/T;\n", + "x=math.sqrt((t*(Alpha+1))-Alpha);\n", + "print x,\" is The permissible overloading \"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.3:pg-493" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1.071304005 is The permissible overloading of the motor \n" + ] + } + ], + "source": [ + "#Electric Drives:concepts and applications by V.subrahmanyam\n", + "#Publisher:Tata McGraw-Hill \n", + "#Edition:Second \n", + "#Ex5_3\n", + "import math\n", + " \n", + "Alpha=0.4;#Angle in rad\n", + "T1=100;#Temperature rise of motor in degree\n", + "T2=150.0;#Temperature rise of motor in degree\n", + "P=125.0;#Power in KW\n", + "t1=15;#Time in hour\n", + "t2=30.0;#Time in hour\n", + "x=-t1/T1;\n", + "a=math.e**x;\n", + "y=-t2/T2;\n", + "b=math.e**y;\n", + "p=math.sqrt(((Alpha+1)*(1-(a*b)))/(1-a)-Alpha);\n", + "print p,\"is The permissible overloading of the motor \"\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex3.4.png b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex3.4.png Binary files differnew file mode 100644 index 00000000..26fa3a1f --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex3.4.png diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.4.png b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.4.png Binary files differnew file mode 100644 index 00000000..b51d7355 --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.4.png diff --git a/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.8.png b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.8.png Binary files differnew file mode 100644 index 00000000..a07914ca --- /dev/null +++ b/Electric_Drives_Concepts_And_Applications_by_Vedam_Subrahmanyam/screenshots/Ex4.8.png diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter1.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter1.ipynb new file mode 100644 index 00000000..3a9aac5c --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter1.ipynb @@ -0,0 +1,513 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Introduction to Communication System" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1: pg 7" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "WAVELENGTH IN FREE SPACE IS 300.0 m\n", + "WAVELENGTH IN FREE SPACE IS 11.1 m\n", + "WAVELENGTH IN FREE SPACE IS 7.5 cm\n" + ] + } + ], + "source": [ + "# page no 7\n", + "#calculate the wavelength in all cases\n", + "# prob no 1.1\n", + "#part a) freq= 1MHz(AM radio broadcast band)\n", + "# We have the equation c=freq*wavelength\n", + "c=3.*10**8;\n", + "f=1.*10**6;\n", + "#calculations\n", + "wl=c/f;\n", + "print 'WAVELENGTH IN FREE SPACE IS ',wl,'m'\n", + "#part B) freq= 27MHz(CB radio band)\n", + "f=27.*10**6;\n", + "wl=c/f;\n", + "print 'WAVELENGTH IN FREE SPACE IS ',round(wl,1),'m'\n", + "#part C) freq= 4GHz(used for satellite television)\n", + "f=4*10**9;\n", + "wl=c/f;\n", + "print 'WAVELENGTH IN FREE SPACE IS ',wl*100,'cm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4: pg 18" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "noise power contributed by resistor 4.14e-17 W\n" + ] + } + ], + "source": [ + "\n", + "# page no 18\n", + "#calculate the noise power\n", + "# prob no. 1.4\n", + "# In given problem noise power bandwidth is 10kHz; resistor temp T(0c)=27\n", + "# First we have to convert temperature to kelvins:\n", + "T0c=27.;\n", + "Tk=T0c+273.;\n", + "# noise power contributed by resistor , Pn= k*T*B\n", + "k=1.38*10**(-23);\n", + "B=10*10**3;\n", + "#calculations\n", + "Pn= k*Tk*B;\n", + "#results\n", + "print 'noise power contributed by resistor',Pn,'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5: pg 20" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The noise power is 24.3 pW\n", + "The noise voltage is 5.4 muvolts\n" + ] + } + ], + "source": [ + " \n", + "# page no 20\n", + "#calculate the noise power and voltage\n", + "# prob no 1.5\n", + "from math import sqrt\n", + "# In the given problem B=6MHz, Tk=293, k=1.38*10**-23\n", + "B=6*10**6; Tk=293; k=1.38*10**-23;R=300;\n", + "#calculations\n", + "Pn=k*Tk*B;\n", + "# Th noise voltage is given by Vn=sqrt(4*k*Tk*B*R)\n", + "Vn=sqrt(4*k*Tk*B*R);\n", + "#results\n", + "print 'The noise power is',round(Pn*10**15,1),'pW'\n", + "print 'The noise voltage is',round(Vn*10**6,1),'muvolts'\n", + "# only one-half of this voltage is appears across the antenna terminals, the other appears across the source resistance. Therefore the actual noise voltag at the input is 2.7 uV" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6: pg 21" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Noise current is 0.133 muA\n", + "current through the diode is 278.0 mA\n" + ] + } + ], + "source": [ + " \n", + "# page no 21\n", + "#calculate the current\n", + "# prob no 1.6\n", + "# given: FM broadcast receiver :- Vn=10uV, R=75V, B=200 kHz \n", + "Vn=10.;#in uV\n", + "R=75.; B=200.*10**3;\n", + "#calculations\n", + "#By Ohm's law\n", + "In=Vn/R;\n", + "print 'Noise current is',round(In,3),'muA'\n", + "# Noise votlage is also given as In=sqrt(2*q*Io*B)\n", + "q=1.6*10**-19;\n", + "# solving this for Io=In**2/2*q*B;\n", + "Io=(In*10**-6)**2/(2*q*B);\n", + "print 'current through the diode is',round(Io*1000.,0),'mA'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7: pg 23" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Open-ckt noise voltage is 779.0 nanovolts\n", + "The load power is 5.06e-16 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 23\n", + "#calculate the load power and open-ckt noise voltage\n", + "#pro no 1.7\n", + "from math import sqrt\n", + "#Given:refer fig.1.12 of page no.23;R1=100ohm,300K;R2=200ohm,400k;B=100kHz;Rl=300ohm\n", + "R1=100.;T1=300.;R2=200.;T2=400.;B=100.*10**3;Rl=300.;k=1.38*10**-23;\n", + "#calculations\n", + "#open-ckt noise voltage is given by\n", + "#Vn1 =sqrt(Vr1**2 + Vr2**2)\n", + "# =sqrt[sqrt(4kTBR1)**2 + sqrt(4kTBR2)**2]\n", + "#by solving this we get Vn1=sqrt[4kB(T1R1 + T2R2)]\n", + "Vn1=sqrt(4*k*B*(T1*R1 + T2*R2));\n", + "# since in this case the load is equal in value to the sum of the resistors,\n", + "# one-half of this voltage is appear across the load.\n", + "# Now the load power is P= Vn1**2/Rl\n", + "P= (Vn1/2)**2/Rl;\n", + "#results\n", + "print 'Open-ckt noise voltage is ',round(Vn1*1e9),'nanovolts'\n", + "print 'The load power is',P,'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8: pg 24" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power ratio in dB 14.0\n" + ] + } + ], + "source": [ + " \n", + "# page no 24\n", + "#Calculate the power ratio\n", + "# prob no 1.8\n", + "import math\n", + "# Given: N=0.2W; S+N=5W; :. S=4.8W\n", + "N=0.2; S=4.8;\n", + "#calculations\n", + "p=(S+N)/N;\n", + "pdB=10*math.log10(p);\n", + "#results\n", + "print 'The power ratio in dB',round(pdB)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9: pg 25" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The noise figure is 3.0\n" + ] + } + ], + "source": [ + " \n", + "#page no 25\n", + "#calculate the noise figure\n", + "#prob no 1.9\n", + "#Given: Si=100uW; Ni=1uW; So=1uW; No=0.03W\n", + "Si=100.; Ni=1.; So=1; No= 0.03# all powers are in uW\n", + "#calculations\n", + "r1=Si/Ni;# input SNR\n", + "r2=So/No;# output SNR\n", + "NF=r1/r2;# Amplifier noise figure \n", + "#results\n", + "print 'The noise figure is',NF" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10: pg 25" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SNR at the output is 36 dB\n" + ] + } + ], + "source": [ + " \n", + "#page no 25\n", + "#calculate the SNR at output\n", + "#prob no 1.10\n", + "#giiven: SNRin=42 dB, NF=6dB\n", + "# NF in dB is given as SNRin(dB)-SNRop(dB)\n", + "SNRin=42 ; NF=6;\n", + "#calculations\n", + "SNRop=SNRin-NF;\n", + "#results\n", + "print 'SNR at the output is ',SNRop,'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11: pg 27" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The noise temperature is 169.65 K\n" + ] + } + ], + "source": [ + " \n", + "#page no 27\n", + "#calculate the noise temperature\n", + "# prob no 1.11\n", + "#Given NFdB=2dB,:.NF=antilog(NFdB)/10=1.585\n", + "NF=1.585;\n", + "#calculations\n", + "Teq=290*(NF-1);\n", + "#results\n", + "print 'The noise temperature is ',Teq,'K'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12: pg 29" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power gain is 7500.0\n", + "The noise figure is 2.316\n", + "The noise temperature is 382.0 K\n" + ] + } + ], + "source": [ + " \n", + "#page no 29\n", + "#calculate the power gain, noise figure, temperature\n", + "#prob no 1.12\n", + "#Given: \n", + "A1=10.;A2=25.;A3=30.;NF1=2.;NF2=4.;NF3=5.;\n", + "#calculations\n", + "At=A1*A2*A3;\n", + "print 'The power gain is',At\n", + "# The noise figure is given as \n", + "NFt=NF1+((NF2-1)/A1) + ((NF3-1)/(A1*A2));\n", + "print 'The noise figure is',NFt\n", + "# Noise temp can be found as \n", + "Teq=290*(NFt-1);\n", + "print 'The noise temperature is',round(Teq),'K'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13: pg 34" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A)The freq is 110.0 MHz\n", + "The power in dBm -30 dBm\n", + "The power is 1e-06 W\n", + "The voltage is 0.00707 volts\n", + "B)The freq is 7.4 MHz\n", + "The power is 79.4 W\n", + "The power in dBm 9 dBm\n", + "The voltage is 630.0 volts\n", + "C)The freq is 546 MHz\n", + "The voltage is 16.8 mvolts\n", + "The power is 5.64 uW\n", + "The power in dBm -22.5 dBm\n" + ] + } + ], + "source": [ + " \n", + "# page no 34\n", + "#calculate the power and voltage in all cases\n", + "# prob no1.13 refer fig 1.20 of page no 34\n", + "# part A) The signal frequency is f1=110MHz.\n", + "from math import log10,sqrt\n", + "f=110.;# in MHz\n", + "#calculations and results\n", + "print 'A)The freq is',f,'MHz'\n", + "#The signal peak is two divisions below the reference level of -10dBm, with 10dB/division ,so its -30dBm.\n", + "PdBm=-30;\n", + "print 'The power in dBm',PdBm,'dBm'\n", + "# The equivalent power can be found from P(dBm)=10logP/1 mW\n", + "#P(mW)=antilog dBm/10= antilog -30/10=1*10**-3mW=1uW\n", + "#the voltage can be found from the graph but it is more accurately from P=V**2/R\n", + "P=10**-6; R=50;\n", + "print 'The power is',P,'W'\n", + "V=sqrt(P*R);\n", + "print 'The voltage is',round(V*10e3,2),'mvolts'\n", + "\n", + "# part B)The signal is 1 division to theleft of center, with 100kHz/div. The freq is 100kHz less than the ref freq of 7.5MHz\n", + "f=7.5-0.1;# in MHz\n", + "print 'B)The freq is',f,'MHz'\n", + "# With regards to the amplitude, the scale is 1dB/div & the signal is 1 div below the reference level. Therefore the signal has a power level given as\n", + "PdBm=10-1;# in dBm\n", + "# This can be converted to watts & volts as same in part A\n", + "#P(mW)=antilog dBm/10= antilog 9/10=7.94mW\n", + "P=7.94*10**-3; R=50;\n", + "print 'The power is',round(P*10e3,2),'mW'\n", + "print 'The power in dBm',PdBm,'dBm'\n", + "V=sqrt(P*R);\n", + "print 'The voltage is',round(V*1000.),'mvolts'\n", + "\n", + "#part C) The signal is 3 divisions to the right of the center ref freq of 543MHz, with 1MHz/div. Therefore the freq is \n", + "f=543+3*1;# in MHz\n", + "print 'C)The freq is',f,'MHz'\n", + "# from the spectrum, signal level is\n", + "V=22.4*6/8;\n", + "print 'The voltage is',V,'mvolts'\n", + "# power is given as\n", + "P=V**2/R;\n", + "print 'The power is',round(P,2),'uW'\n", + "PdBm=10*log10(P*10**-6/10**-3);\n", + "print 'The power in dBm',round(PdBm,1),'dBm'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter12.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter12.ipynb new file mode 100644 index 00000000..f8404911 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter12.ipynb @@ -0,0 +1,277 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 12 : Digital Modulation and Modems" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 407" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The theoretical max data rate is 50.278 kb/s\n", + "b)The data rate for 4 states is 40.0 kb/s\n" + ] + } + ], + "source": [ + " \n", + "# page no 407\n", + "# prob no 12_1\n", + "#calculate the data rate and theoretical max\n", + "#A radio channel with BW=10KHz and SNR=15 dB\n", + "from math import log\n", + "#given\n", + "B=10.*10**3;\n", + "snr=15.;\n", + "#calculations and results\n", + "#converting dB in power ratio\n", + "SNR=10**(snr/10);\n", + "#a)Determination of theoretical max data rate\n", + "C1=B*log(1+SNR) /log(2);\n", + "print 'a)The theoretical max data rate is',round(C1/1000,3),'kb/s'\n", + "#b)Determination of data rate with 4 states i.e M=4\n", + "M=4.;\n", + "C2=2*B*log(M) / log(2);\n", + "print 'b)The data rate for 4 states is',C2/1000,'kb/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 408" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The baud rate is 10.0 kbaud\n", + "The bit rate is 60.0 kb/s\n" + ] + } + ], + "source": [ + " \n", + "# page no 408\n", + "# prob no 12_2\n", + "#calculate the baud and bit rates\n", + "from math import log\n", + "#A modulator transmit symbol with symbol rate=10k/sec with 64 states\n", + "#given\n", + "M=64.;\n", + "S=10000.;\n", + "#calculations and results\n", + "#Baud rate is simply symbol rate\n", + "print 'The baud rate is ',S/1000,'kbaud'\n", + "#Determination of bit rate\n", + "C=S*log(64) / log(2);\n", + "print 'The bit rate is ',C/1000,'kb/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 411" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The frequency shift is 135416.5 Hz\n", + "b)The maximum frequency is 880067708.25 Hz\n", + "The minimum frequency is 879932291.75 Hz\n", + "The bandwidth efficiency in b/s/Hz is 1.354 b/s/Hz\n" + ] + } + ], + "source": [ + " \n", + "# page no 411\n", + "# prob no 12_3\n", + "#calculate the frequency shift, max, min frequency\n", + "#given\n", + "f=200.*10**3;\n", + "fb=270.833 *10**3;\n", + "data_rate=270.833 *10**3\n", + "fc=880*10**6;\n", + "bandwidth=200*10**3;\n", + "#calculations and results\n", + "freq_shift=0.5*fb;\n", + "print 'a)The frequency shift is',freq_shift,'Hz'\n", + "# The shift each way from the carrier frequency is half the freq_shift\n", + "f_max=fc+0.25*fb;\n", + "print 'b)The maximum frequency is',round(f_max,3),'Hz'\n", + "f_min=fc-0.25*fb;\n", + "print 'The minimum frequency is',round(f_min,3),'Hz'\n", + "bandwidth_efficiency=data_rate/bandwidth;\n", + "print 'The bandwidth efficiency in b/s/Hz is',round(bandwidth_efficiency,3),'b/s/Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 412" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The channel data rate is 48.6 kb/s\n" + ] + } + ], + "source": [ + " \n", + "# page no 412\n", + "# prob no 12_4\n", + "#calculate the channel data rate\n", + "#given\n", + "baud_rate=24.3;# in kilobaud\n", + "#calculations\n", + "# In this problem dibit system is used.\n", + "#Therefore symbol_rate=baud_rate=0.5*bit_rate\n", + "bit_rate=2*baud_rate;\n", + "#results\n", + "print 'The channel data rate is',bit_rate,'kb/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 413" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The no. of bits per symbol is 6.0\n" + ] + } + ], + "source": [ + " \n", + "# page no 413\n", + "# prob no 12_5\n", + "#calculate the no. of bits per symbol\n", + "from math import log\n", + "#given\n", + "no_of_phase_angles=16;\n", + "no_of_amplitudes=4;\n", + "#calculations\n", + "no_of_states_per_symbol=no_of_phase_angles*no_of_amplitudes;\n", + "bit_per_symbol=log(no_of_states_per_symbol)/ log(2);\n", + "#results\n", + "print 'The no. of bits per symbol is',bit_per_symbol" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 415" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Shannon limit 29901.68 b/s\n" + ] + } + ], + "source": [ + " \n", + "# page no 415\n", + "# prob no 12_6\n", + "#calculate the shannon limit\n", + "from math import log\n", + "#given\n", + "B=3.*10**3;SNR_dB=30.;\n", + "#calculations\n", + "SNR_power=10**(30./10);\n", + "C=B*log(1+SNR_power)/ log(2);\n", + "print 'Shannon limit',round(C,2),'b/s'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter13.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter13.ipynb new file mode 100644 index 00000000..f9def02b --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter13.ipynb @@ -0,0 +1,262 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 13 : Multiplexing and Multiple Access Techniques" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 437" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The number of signals are 250.0\n", + "b)The number of signals are 125.0\n", + "c)The number of signals are 6.0\n", + "d)The number of signals are 71.0\n" + ] + } + ], + "source": [ + " \n", + "# page no 437\n", + "# prob no 13_1\n", + "#calculate the no. of signals in all cases\n", + "from math import log\n", + "#given\n", + "freq_band=1.*10**6;\n", + "# A)For SSBSC AM, the bandwidth is the same as the maximunm modulating freq.\n", + "fmax=4.*10**3;\n", + "#calculations and results\n", + "B=fmax;\n", + "no_of_signal=freq_band/B;\n", + "print 'a)The number of signals are ',no_of_signal\n", + "# B)For DSB AM, the bandwidth is twice the maximunm modulating freq.\n", + "B=2*fmax;\n", + "no_of_signal=freq_band/B;\n", + "print 'b)The number of signals are ',no_of_signal\n", + "# C)Using Carson's Rule to approximate the bandwidth\n", + "f_max=15.*10**3; deviation=75.*10**3;\n", + "B=2*(deviation + f_max);\n", + "no_of_signal=freq_band/B;\n", + "print 'c)The number of signals are ',round(no_of_signal)\n", + "# D)Use Shannon-Hartley theorem to find the bandwidth\n", + "C=56.*10**3;M=4.;#for QPSK\n", + "B=C/(2*log(M) /log(2));\n", + "no_of_signal=freq_band/B;\n", + "print 'd)The number of signals are ',round(no_of_signal)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 444" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The noise power at BW=30 kHz is -129.059 dBm\n", + "The noise power at BW=10 MHz is -103.83 dBm\n", + "The value of SNR for BW=30 kHz is 19.059 dB\n", + "The value of SNR for BW=10 MHz is -6.17 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 444\n", + "# prob no 13_2\n", + "#calculate the value of SNR and noise power in both cases\n", + "#Voice transmisssion occupies 30 kHz.Spread spectrum is used to increase BW to 10MHz\n", + "from math import log10\n", + "#given\n", + "B1=30.*10**3;#BW is 30 kHz\n", + "B2=10.*10**6;#BW is 10 MHz\n", + "T=300.;#noise temp at i/p\n", + "PN=-110.;#signal has total signal power of -110 dBm at receiver\n", + "k=1.38*10**-23;#Boltzmann's const in J/K\n", + "#calculations and results\n", + "#Determination of noise power at B1=30kHz\n", + "PN1=10*(log10(k*B1*T/10**-3));\n", + "print 'The noise power at BW=30 kHz is',round(PN1,3),'dBm'\n", + "#Determination of noise power at B2=10MHz\n", + "PN2=10*(log10(k*B2*T/10**-3));\n", + "print 'The noise power at BW=10 MHz is',round(PN2,3),'dBm'\n", + "#Determination of SNR for 30kHz BW\n", + "SNR1=PN-PN1;\n", + "print 'The value of SNR for BW=30 kHz is',round(SNR1,3),'dB'\n", + "#Determination of SNR for 10MHz BW\n", + "SNR2=PN-PN2;\n", + "print 'The value of SNR for BW=10 MHz is',round(SNR2,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 445" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Time required for each freq 0.1 sec/hop\n" + ] + } + ], + "source": [ + " \n", + "# page no 445\n", + "# prob no 13_3\n", + "#calculate the time required\n", + "#given\n", + "no_of_freq_hops =100.; total_time_req=10.;\n", + "#calculations\n", + "time_for_each_freq = total_time_req / no_of_freq_hops;\n", + "#results\n", + "print 'Time required for each freq',time_for_each_freq,'sec/hop'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 446" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The no of signal changes i.e. symbol rate is 80000.0 baud\n" + ] + } + ], + "source": [ + " \n", + "# page no 446\n", + "# prob no 13_4\n", + "#calculate the no. of signal changes\n", + "from math import log\n", + "#given\n", + "bit_rate=16.*10**3;#in bps\n", + "#chip_rate =10:1;\n", + "no_of_chip=10.;\n", + "#calculations\n", + "total_bit_rate=no_of_chip*bit_rate;\n", + "m=4;n=log(m)/log(2);\n", + "symbol_rate = total_bit_rate/n;\n", + "#results\n", + "print 'The no of signal changes i.e. symbol rate is ',symbol_rate,'baud'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 447" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of BW after spreading 10.0 MHz\n", + "The value of processing gain 16.99 dB\n", + "The value of SNR after spreading in dB 3.01 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 447\n", + "# prob no 13_5\n", + "#calculate the value of BW, SNR\n", + "#signal with bandwidth Bbb=200 kHz & SNR=20 dB spred at chip rate 50:1\n", + "from math import log10\n", + "#given\n", + "Bbb=200.*10**3;#Bandwidth\n", + "Gp=50.;#chip rate\n", + "SNR_in=20.;#SNR is 20 dB without spreading\n", + "#calculations and results\n", + "#Determination of BW after spreading\n", + "Brf=Gp*Bbb;\n", + "print 'The value of BW after spreading',Brf/10**6,'MHz'\n", + "#Converting into dB \n", + "Gp_dB=10*log10(Gp);\n", + "print 'The value of processing gain',round(Gp_dB,3),'dB'\n", + "#Determination of SNR after spreadng\n", + "SNR_out=SNR_in-Gp_dB;\n", + "print 'The value of SNR after spreading in dB',round(SNR_out,3),'dB'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter14.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter14.ipynb new file mode 100644 index 00000000..421e7ca8 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter14.ipynb @@ -0,0 +1,797 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 14 : Transmission lines" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 461" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The inductance of 1m length is 225.0 nH/m\n" + ] + } + ], + "source": [ + " \n", + "#page no 461\n", + "#prob no. 14.1\n", + "#calculate the inductance\n", + "#A coaxial cable with capacitance=90pF/m & characteristic impedance=50 ohm\n", + "#given\n", + "C=90.*10**-12;Zo=50.;\n", + "#Determination of inductance of 1m length\n", + "#calculations\n", + "L=(Zo**2)*C;\n", + "#results\n", + "print 'The inductance of 1m length is',L*10**9,'nH/m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 462" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The characteristic impedance of conductor is 227.399 ohm\n", + "b)The characteristic impedance of coaxial cable is 54.784 ohm\n" + ] + } + ], + "source": [ + " \n", + "#page no 462\n", + "#prob no. 14.2\n", + "#calculate the imepdance \n", + "from math import log10,sqrt\n", + "#a)Determination of impedance of open wire with diameter 3mm & r=10mm\n", + "#given\n", + "D=3./2.;r=10.;#All values are in mm\n", + "#calculations and results\n", + "Zo1=276*log10(r/D); \n", + "print 'a)The characteristic impedance of conductor is',round(Zo1,3),'ohm'\n", + "#b)Determination of impedance of coaxial with er=2.3,inner diameter=2mm & outer diameter=8mm\n", + "er=2.3;D=8.;d=2;#All diameter values in mm\n", + "Zo2=(138/sqrt(er))*log10(D/d);\n", + "print 'b)The characteristic impedance of coaxial cable is',round(Zo2,3),'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 463" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of velocity factor is 0.69\n", + "The value of propagation velo. is 207019667.803 m/s\n" + ] + } + ], + "source": [ + " \n", + "#page no 463\n", + "#prob no. 14.3\n", + "#calculate the velocity factor and propagation velocity\n", + "#Cable with teflon dielectric er=2.1\n", + "from math import sqrt\n", + "#given\n", + "er=2.1;c=3.*10**8;#Velocity of light\n", + "#calculations and results\n", + "#Determination of velocity factor\n", + "Vf=1/sqrt(er);\n", + "print 'The value of velocity factor is',round(Vf,3)\n", + "#Determination of propagation velocity\n", + "Vp=Vf*c;\n", + "print 'The value of propagation velo. is',Vp,'m/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 468" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total voltage at the load is 0.333 V\n", + "The voltage across the line 0.333 V\n" + ] + } + ], + "source": [ + " \n", + "#page no 468\n", + "#prob no. 14.4\n", + "#calculate the voltage\n", + "#Refer fig. 14.13(a)\n", + "vs=1;#source voltage\n", + "Rs=50.;#source resistance\n", + "Zo=50.;#line impedance\n", + "RL=25.;#load resistance\n", + "l=10.;#length of line\n", + "vf=0.7;#velocity factor\n", + "Vi=0.5;\n", + "c=3.*10**8;#velo of light\n", + "#calculations\n", + "#Vs will divide between Rs and Zo of the line.Since two resistors are equal,the voltage will divide equally.\n", + "#Therefore at t=0,the voltage at the source end of the line will rise from zero to 0.5V. \n", + "#The voltage at the load will remain zero untill the surge reaches it.The time for this is\n", + "T=l/(vf*c);\n", + "# After T sec, the voltage at the load will rise.The reflection coefficient is given as\n", + "refl_coeff=(RL-Zo)/(RL+Zo)\n", + "#Now reflection voltage is \n", + "Vr=refl_coeff * Vi;\n", + "#The total voltage at the load is\n", + "Vt=Vr+Vi;\n", + "# The reflected voltage will propogate back along the line,reaching \n", + "#the source at time 2T.After this the voltage will be 0.3335V all along the line\n", + "#The voltage across the line, and the load will be\n", + "VL=vs*(RL/(RL+Zo));\n", + "#results\n", + "print 'The total voltage at the load is',round(Vt,3),'V'\n", + "print 'The voltage across the line',round(VL,3),'V'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 472" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The length reqd for phase shift is 0.12375 m\n" + ] + } + ], + "source": [ + " \n", + "#page no 472\n", + "#prob no. 14.5\n", + "#calculate the length reqd\n", + "#Standard coaxial cable RG-8/U with 45 degree phase shift at 200MHz\n", + "#given\n", + "p=45.;f=200.*10**6;c=3.*10**8;#Speed of light in m/s\n", + "vf=0.66;#velo. factor for this line\n", + "#calculations\n", + "vp=vf*c;#Determination of propagation velo.\n", + "wav=vp/f;#Determination of wavelength of signal\n", + "#Determination of reqd length for 45 degree phase shift\n", + "L=wav*(p/360.);\n", + "#results\n", + "print 'The length reqd for phase shift is',L,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 476" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of SWR is 2.0\n" + ] + } + ], + "source": [ + " \n", + "#page no 476\n", + "#prob no. 14.6\n", + "#calculate the value of SWR\n", + "#A 50ohm line terminated in 25ohm resistance\n", + "Zo=50.;Zl=25.;\n", + "#calculations\n", + "#Determination of SWR\n", + "SWR=Zo/Zl;#In this case Zo>Zl\n", + "#results\n", + "print 'The value of SWR is',SWR" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 477" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The amount of power reflected is 12.5 mW\n", + "The power dissipated in load is 37.5 mW\n" + ] + } + ], + "source": [ + " \n", + "#page no 477\n", + "#prob no. 14.7\n", + "#calculate the power\n", + "#A generator sends 50mW at 50ohm line & reflection coeff I=0.5\n", + "#given\n", + "Pi=50.;I=0.5;\n", + "#calculations\n", + "#Determination of amount of power reflected\n", + "Pr=(I**2)*Pi;\n", + "#Determination of remainder power that reaches load\n", + "Pl=Pi-Pr;\n", + "#results\n", + "print 'The amount of power reflected is',Pr,'mW'\n", + "print 'The power dissipated in load is',Pl,'mW'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 478" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power absorbed by load is 44.444 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 478\n", + "#prob no. 14.8\n", + "#A transmitter supplies 50W with SWR 2:1\n", + "#calculate the power\n", + "#given \n", + "Pi=50.;SWR=2.;\n", + "#calculations\n", + "#Determination of power absorbed by load\n", + "Pl=(4*SWR*Pi)/(1+SWR)**2;\n", + "#results\n", + "print 'The power absorbed by load is',round(Pl,3),'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 480" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The impedance looking toward the load (40-30j) ohm\n" + ] + } + ], + "source": [ + " \n", + "# page no 545\n", + "# prob no 14.9\n", + "#calculate the impedance\n", + "from math import pi,tan\n", + "#given\n", + "Zo=50.;# line impedence in ohm\n", + "ZL=100.;# load impedance in ohm\n", + "vf=0.8;#velocity factor\n", + "l=1.;#length of line\n", + "f=30.*10**6;# freq of operation\n", + "c=3.*10**8;#velo of light\n", + "#calculations\n", + "# we have to find the length of line in degree\n", + "wl=vf*c/f#wavelength\n", + "# Then the length of line in degree is\n", + "ang=l/wl*360\n", + "# calculation of impedance\n", + "Z=Zo*(ZL+(1j*Zo*tan(ang*pi/180)))/(Zo+(1j*ZL*tan(ang*pi/180.)));\n", + "print 'The impedance looking toward the load',Z,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 481" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The length should be 0.1425 m\n" + ] + } + ], + "source": [ + " \n", + "#page no 481\n", + "#prob no. 14.10\n", + "#calculate the length required\n", + "#A series tuned ckt tuned at 1GHz\n", + "#given\n", + "vf=0.95;c=3.*10**8;f=10**9;\n", + "#calculations\n", + "vp=vf*c;#determination of propagation velo.\n", + "wav=vp/f;#Determination of wavelength \n", + "#Determination of length\n", + "L=wav/2;#Since half wavelength section wiil be series resonant\n", + "#results\n", + "print 'The length should be',L,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 481" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The transmitter power must be 151.356 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 481\n", + "#prob no. 14.10\n", + "#calculate the transmitter power\n", + "#A Tx deliver 100W to antenna through 45m coaxial cable with loss=4dB/100m\n", + "#given\n", + "loss=4./100;L=45.;Pout=100.;\n", + "#calculations\n", + "loss_dB=L*loss;#Determination of loss in dB\n", + "Pin_Pout=10**(loss_dB/10);\n", + "#Determination of Tx power\n", + "Pin=Pout*Pin_Pout;\n", + "#results\n", + "print 'The transmitter power must be',round(Pin,3),'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13 : pg 490" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input impedance is (19.36+5.44j) ohm\n" + ] + } + ], + "source": [ + " \n", + "#page no 490\n", + "#prob no. 14.13\n", + "#calculate the input impedance\n", + "Zo=50.;#line impedance in ohm\n", + "f=100.*10**6;#operating freq\n", + "vf=0.7;#velocity factor\n", + "L=6.;#length in m\n", + "c=3.*10**8;#velo of light\n", + "ZL=50+1j*50;#load impedance in ohm\n", + "#calculations\n", + "# we have to calculate length in degree,so for this first find wl\n", + "wl=vf*c/f;#wavength in m\n", + "ang=360*L/wl;\n", + "# now from the graph input impedance is 19.36+%i5.44;\n", + "Zi=19.36+1j*5.44;\n", + "#results\n", + "print 'Input impedance is',Zi,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14 : pg 492" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The required turn ratio is (0.752156137344+0j)\n" + ] + } + ], + "source": [ + " \n", + "#page no 492\n", + "#prob no. 14.14\n", + "from cmath import sqrt\n", + "#given\n", + "Zo=50.;#line impedance in ohm\n", + "ZL=75.+1j*25;\n", + "# the requirment of this is simply to match the 50ohm line to the impedsnce at this point on the line,which is 88.38 ohm,resistive.\n", + "Z2=88.38;#in ohm\n", + "#calculations\n", + "#The required turn ratio is\n", + "N1_N2=sqrt(Zo/Z2);\n", + "#results\n", + "print 'The required turn ratio is',N1_N2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 15 : pg 494" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Zo = 66.476\n" + ] + } + ], + "source": [ + " \n", + "#page no 494\n", + "#prob no. 14.15\n", + "#calculate the impedance\n", + "# refer prob no 14.14\n", + "from math import sqrt\n", + "#given\n", + "Zo=50.;#line impedance in ohm\n", + "Z2=88.38;#in ohm\n", + "#calculations\n", + "Zo_=sqrt(Zo*Z2);\n", + "#results\n", + "print 'Zo = ',round(Zo_,3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 16 : pg 494" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Capacitance is 2.12206590789e-11 F\n" + ] + } + ], + "source": [ + " \n", + "#page no 494\n", + "#prob no. 14.16\n", + "#calculate the capacitance\n", + "from math import pi\n", + "#given\n", + "Zo=50.;#line impedance in ohm\n", + "f=100.*10**6;#operating freq in Hz\n", + "ZL1=50+1j*75;# load impedance with Xc=75\n", + "Xc=75;\n", + "#calculations\n", + "# Capacitance in farads is given as\n", + "C=1/(2*pi*f*Xc);\n", + "#results\n", + "print 'Capacitance is',C,'F'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 17 : pg 497" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of stude is 0.014 S\n" + ] + } + ], + "source": [ + " \n", + "#page no 497\n", + "#prob no. 14.17\n", + "#calculate the value of stude\n", + "#given\n", + "Zo=72.;#line impedance in ohm\n", + "ZL=120.-1j*100;#load impedance\n", + "#calculations\n", + "#The stub must be inserted at a point on the line where the real part of the load admittance is correct. This value is\n", + "s=1/Zo;\n", + "#results\n", + "print 'The value of stude is',round(s,3),'S'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 18 : pg 501" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The distance is 168.0 m\n" + ] + } + ], + "source": [ + " \n", + "#page no 501\n", + "#prob no. 14.18\n", + "#calculate the distance\n", + "#given\n", + "#A TDR display shows dscontinuity at 1.4us & vf=0.8\n", + "t=1.4*10**-6;vf=0.8;c=3.*10**8;#Speed of light\n", + "#Determination of distance of fault\n", + "#calculations\n", + "d=(vf*c*t)/2;#One-half time is used to calculate\n", + "#results\n", + "print 'The distance is',d,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 19 : pg 503" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The wavelength is 46.0 cm\n", + "The freq is 619.565 MHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 503\n", + "#prob no. 14.19\n", + "#calculate the wavelength and freq\n", + "#given\n", + "#2 adjacent minima on slotted are 23cm apart with velo factor=95%\n", + "L=23*10**-2;vf=0.95;c=3*10**8;#Velo. of light in m/s\n", + "#calculations and results\n", + "#Determination of wavelength\n", + "wav=2*L;#Minima are seperated by one-half wavelength\n", + "print 'The wavelength is',wav*100,'cm'\n", + "#Determination of freq.\n", + "f=(vf*c)/wav;#vp=vf*c\n", + "print 'The freq is' ,round(f/10**6,3),'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 20 : pg 504" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of SWR is 2.15\n" + ] + } + ], + "source": [ + " \n", + "#page no 504\n", + "#prob no. 14.20\n", + "#calculate the value of SWR\n", + "from math import sqrt\n", + "#given\n", + "#Frwd power in Tx line is 150W,Reverse power=20W\n", + "Pi=150.;Pr=20.;#All power in watt\n", + "#calculations\n", + "#Determination of SWR\n", + "SWR=(1+sqrt(Pr/Pi))/(1-sqrt(Pr/Pi));\n", + "#results\n", + "print 'The value of SWR is',round(SWR,3)" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter15.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter15.ipynb new file mode 100644 index 00000000..33d7e6e1 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter15.ipynb @@ -0,0 +1,459 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 15 : Radio Wave Propagation" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 517" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The charasteristic impedance of polyethylene is 248.586 ohm\n" + ] + } + ], + "source": [ + "#page no 517\n", + "#calculate the characteristic impedance of polyethylene\n", + "#prob no. 15.1\n", + "from math import sqrt\n", + "#Dielectric constt=2.3\n", + "#given\n", + "er=2.3;\n", + "#calculations\n", + "#Determination of characteristic impedance\n", + "Z=377./sqrt(er);\n", + "#results\n", + "print 'The charasteristic impedance of polyethylene is',round(Z,3),'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 518" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The max power density is 23.873 GW/m2\n" + ] + } + ], + "source": [ + "#calculate the max power density \n", + "#page no 518\n", + "#prob no. 15.2\n", + "#given\n", + "#Dielelectric strength of air=3MV/m\n", + "e=3*10**6;#electric field strength\n", + "Z=377.;#impedance of air\n", + "#calculations\n", + "Pd=(e**2)/Z;#Determination of power density\n", + "#results\n", + "print 'The max power density is',round(Pd/10**9,3),'GW/m2'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 520" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power density at a point 10km 79.5774715459 nW/m2\n" + ] + } + ], + "source": [ + "#calculate the power density \n", + "#page no 520\n", + "#prob no. 15.3\n", + "from math import pi\n", + "#given\n", + "#An isotropic radiator with power 100W & dist given is 10km\n", + "Pt=100;r=10*10**3;\n", + "#calculations\n", + "#Determination of power density at r=10km\n", + "Pd=Pt/(4*pi*(r**2));\n", + "#results\n", + "print 'Power density at a point 10km',Pd*10**9,'nW/m2'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 521" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The electric field strength is 5.47722557505 mW/m\n" + ] + } + ], + "source": [ + "#calculate the electric field strength \n", + "#page no 521\n", + "#prob no. 15.4\n", + "from math import sqrt\n", + "#given\n", + "#An isotropic radiator radiates power=100W at point 10km\n", + "Pt=100.;r=10.*10**3;\n", + "#calculations\n", + "#Determination of electric field strength\n", + "e=sqrt(30*Pt)/r;\n", + "#results\n", + "print 'The electric field strength is',e*1000,'mW/m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 525" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power delivered to receiver is 405.812 nW\n" + ] + } + ], + "source": [ + "#calculate the power delivered \n", + "#page no 525\n", + "#prob no. 15.5\n", + "from math import log10\n", + "#A transmitter with power o/p=150W at fc=325MHz.antenna gain=12dBi receiver antenna gain=5dBi at 10km away\n", + "#given\n", + "#considering no loss in the system\n", + "d=10.;Gt_dBi=12.;Gr_dBi=5.;fc=325.;Pt=150.;\n", + "#calculations\n", + "#Determination of power delivered\n", + "Lfs=32.44+(20*log10(d))+(20*log10(fc))-(Gt_dBi)-(Gr_dBi);\n", + "Pr=Pt/(10**(Lfs/10));\n", + "#results\n", + "print 'The power delivered to receiver is',round(Pr*10**9,3),'nW'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 525" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power delivered to receiver is 2.04329571558e-09 W\n" + ] + } + ], + "source": [ + "#calculate the power delivered to receiver \n", + "#page no 525\n", + "#prob no. 15.6\n", + "#given\n", + "from math import log10\n", + "#A transmitter with o/p power=10W at fc=250MHz,connected to Tx 10m line with loss=3dB/100m t0 antenna with gain=6dBi.\n", + "#Rx antenna 20km away with gain=4dBi \n", + "#Refer fig.15.6,assuming free space propagation\n", + "d=20;fc=250.;Gt_dBi=6.;Gr_dBi=4.;loss=3./100;Zl=75.;Zo=50.;L=10.;Pt=10.;\n", + "#calculations\n", + "Lfs=32.44+(20*log10(d))+(20*log10(fc))-Gt_dBi-Gr_dBi;#path loss\n", + "\n", + "L_tx=L*loss;#Determination of loss\n", + "ref_coe=(Zl-Zo)/(Zl+Zo);#Reflection coefficient\n", + "L_rx=1-(ref_coe**2);#Proportion of incident power that reaches load\n", + "L_rx_dB=-10*log10(L_rx);#Converting that proportion in dB\n", + "#Determination of total loss Lt\n", + "Lt=(Lfs)+(L_tx)+(L_rx_dB);\n", + "#Determination of power delivered to receiver\n", + "Pt_Pr=10**(Lt/10);#Power ratio\n", + "Pr=Pt/Pt_Pr;\n", + "#results\n", + "print 'The power delivered to receiver is',Pr,'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 530" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The angle of refraction is 10.313 degree\n" + ] + } + ], + "source": [ + "#calculate the angle of refraction \n", + "#page no 530\n", + "#prob no. 15.7\n", + "#given\n", + "from math import sqrt, sin, asin,pi\n", + "#A radio wave moves from air(er=1) to glass(er=7.8).angle of incidence=30 deg\n", + "theta_i=30.;er1=1;er2=7.8;\n", + "#calculations\n", + "#determination of angle of refraction\n", + "theta_r=asin((sin(theta_i*pi/180.))/(sqrt(er2/er1)));\n", + "#results\n", + "print 'The angle of refraction is',round(theta_r*180/pi,3),'degree'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 537" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The max usable freq MUF is 33.92 MHz\n" + ] + } + ], + "source": [ + "#calculate the max usable freq \n", + "#page no 537\n", + "#prob no. 15.8\n", + "#given\n", + "from math import cos,pi\n", + "#A Tx statn with fc=11.6MHz & angle of incidence=70 degree\n", + "theta_i=70.;fc=11.6;#in MHz\n", + "#calculations\n", + "#determination of max usable freq(MUF)\n", + "MUF=fc/(cos(theta_i*pi/180.));\n", + "#results\n", + "print 'The max usable freq MUF is',round(MUF,2),'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 539" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The max common distance between dispatcher & taxi 21.018 km\n", + "The max common distance between two taxi is 10.1 km\n" + ] + } + ], + "source": [ + "#calculate the max common distance in both cases \n", + "#page no 539\n", + "#prob no. 15.9\n", + "#given\n", + "from math import sqrt\n", + "#A taxi compony using central dispatcher with antenna height=15m & taxi antenna height=1.5m\n", + "ht=15.;hr=1.5;\n", + "#calculations and results\n", + "#a)Determination of max commn dist betn dispatcher and taxi\n", + "d1=sqrt(17*ht)+sqrt(17*hr);\n", + "print 'a)The max common distance between dispatcher & taxi',round(d1,3),'km'\n", + "#b)Determination of max ommn dist betn 2 taxis\n", + "d2=sqrt(17*hr)+sqrt(17*hr);#ht=hr=height of antenna of taxi cab\n", + "print 'The max common distance between two taxi is',round(d2,3),'km'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 545" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The fading period is 0.01125 sec\n", + "The fading period is 0.00474 sec\n" + ] + } + ], + "source": [ + "#calculate the fading period in both cases \n", + "# page no 545\n", + "# prob no 15.11\n", + "#given\n", + "# An automobile travels at 60km/hr\n", + "v=60.*10**3/(60*60);#conversion of car's speedto m/s\n", + "c=3.*10**8;#speed of light\n", + "#part a) calculation of time between fades if car uses a cell phone at 800*10**6Hz\n", + "f=800.*10**6;\n", + "#calculations and results\n", + "T=c/(2*f*v);\n", + "print 'The fading period is',T,'sec'\n", + "#part b) calculation of time between fades if car uses a PCS phone at 1900*10**6Hz\n", + "f=1900.*10**6;\n", + "T=c/(2*f*v);\n", + "print 'The fading period is',round(T,5),'sec'\n", + "# Note that the rapidity of the fading increases with both the frequency of the transmissions and the speed of the vehicle" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12 : pg 550" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Number of cell sites are 72.0\n" + ] + } + ], + "source": [ + "#calculate the no. of cell sites \n", + "#page no 550\n", + "#given\n", + "# problem no 15.12\n", + "A=1000.;#metropolitian area expressed in sq. km\n", + "r=2;#radius of cell in km\n", + "#calculations\n", + "# Number of cell sites given as\n", + "N=A/(3.464*r**2);\n", + "#results\n", + "print 'Number of cell sites are',round(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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter16.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter16.ipynb new file mode 100644 index 00000000..e2bcce08 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter16.ipynb @@ -0,0 +1,359 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 16 : Antennas" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 564" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The length of half-wave dipole is 7.125 m\n" + ] + } + ], + "source": [ + "#calculate the length of half wave dipole\n", + "#page no 564\n", + "#given\n", + "#prob no. 16.1\n", + "#Determination of length of half-wave dipole\n", + "#given\n", + "f=20.;#Operating freq in MHz\n", + "#calculations\n", + "L=142.5/f;\n", + "#results\n", + "print 'The length of half-wave dipole is',L,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 566" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The efficiency of dipole antenna is 93.1 %\n" + ] + } + ], + "source": [ + "#calculate the efficiency of dipole antenna \n", + "#page no 566\n", + "#prob no. 16.2\n", + "#given\n", + "#A dipole antenna with radiatn resistance=67ohm & loss resistance 5ohm\n", + "Rr=67.;Rl=5;\n", + "#calculations\n", + "#Determination of efficiency \n", + "eta=Rr/(Rr+Rl);\n", + "#results\n", + "print 'The efficiency of dipole antenna is',round(eta*100,1),'%'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 571" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Second antenna with gain=4.5dBd has higher gain\n" + ] + } + ], + "source": [ + "#calculate whether the first or second antenna has higher gain \n", + "#page no 569\n", + "#prob no. 16.3\n", + "#given\n", + "#Two antennas with gain 5.3dBi & 4.5dBd\n", + "#Converting unit dBd in dBi for comparison\n", + "G1_dBi=5.3;G2_dBd=4.5;\n", + "G2_dBi=2.14+G2_dBd;\n", + "#calculations and results\n", + "if G2_dBi > G1_dBi:\n", + " print 'Second antenna with gain=4.5dBd has higher gain'\n", + "else:\n", + " print 'First antenna with gain=5.3dBi has higher gain '" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 571" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gain is 1.434 dBi\n" + ] + } + ], + "source": [ + "#calculate the gain\n", + "#page no 571\n", + "#prob no. 16.4\n", + "#given\n", + "from math import log10\n", + "#A dipole antenna with efficency=85% given\n", + "n=0.85;D_dBi=2.14;#Directivity in dBi\n", + "#calculations\n", + "#Determination of gain in dB\n", + "D=10**(D_dBi/10);\n", + "G=D*n;#Determination of gain\n", + "G_dBi=10*log10(G);#Converting to dBi\n", + "#results\n", + "print 'The gain is',round(G_dBi,3),'dBi'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 573" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "EIRP in dBm is expressed as 44.444 dBm\n" + ] + } + ], + "source": [ + "#calculate the EIRP in dBm \n", + "#page no 573\n", + "#prob no. 16.6\n", + "#given\n", + "from math import log10\n", + "#ERP of Tx statn=17W\n", + "ERP=17.;\n", + "#calculations\n", + "#Determnation of EIRP\n", + "ERP_dBm=10*log10(ERP/10**-3);#Converting ERP in dBm\n", + "EIRP_dBm=ERP_dBm+2.14;#Converting ERP in EIRP\n", + "#results\n", + "print 'EIRP in dBm is expressed as',round(EIRP_dBm,3),'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 582" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)1.The optimum diameter for antenna is 0.0795774715459 m\n", + "a)2.The spacing for the antenna 0.0625 m\n", + "a)3.The total length of an antenna is 0.5 m\n", + "b)The antenna gain is 14.7712125472 dBi\n", + "The beamwidth is 36.7695526217 degree\n" + ] + } + ], + "source": [ + "#calculate the beam width, optimum diameter, spacing, total length \n", + "#page no 582\n", + "#prob no. 16.7\n", + "#given\n", + "from math import pi, log10, sqrt\n", + "#a helial antenna with 8 turns with freq=1.2GHz given\n", + "N=8.;f=1.2*10**9;c=3*10**8;#Speed of light in m/s\n", + "#calculations and results\n", + "#a)Determination of optimum diameter of antenna\n", + "wav=c/f;\n", + "D=wav/pi;\n", + "print 'a)1.The optimum diameter for antenna is',D,'m'\n", + "S=wav/4;#Determination of spacing for the antenna\n", + "print 'a)2.The spacing for the antenna',S,'m'\n", + "L=N*S;#Determination of total length of an antenna\\\n", + "print 'a)3.The total length of an antenna is',L,'m'\n", + "#b)Determination of antenna gain in dBi\n", + "G=(15*N*S*(pi*D)**2)/(wav**3);\n", + "G_dBi=10*log10(G);#Converting in dBi\n", + "print 'b)The antenna gain is',G_dBi,'dBi'\n", + "#c)determination of beamwidth\n", + "theta=((52*wav)/(pi*D))*sqrt(wav/(N*S));\n", + "print 'The beamwidth is',theta,'degree'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 590" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The length of elements are\n", + "L5= 1.85469596002 m L4= 1.29828717201 m L3= 0.908801020408 m L2= 0.636160714286 m L1= 0.4453125 m \n", + "The spacing between elements are\n", + "D5= 3.46090977769 m D4= 2.42263684438 m D3= 1.69584579107 m D2= 1.18709205375 m D1= 0.830964437623 m \n" + ] + } + ], + "source": [ + "#calculate the length and spacing \n", + "#page no 590\n", + "#prob no. 16.8\n", + "from math import pi,tan\n", + "#Design of log periodic antenna to cover freq 100-300MHz & t=0.7,a=30 degree\n", + "t=0.7;a=30;\n", + "#For good performance converting range to 90MHz to 320MHz\n", + "f2=90.;f1=320.;\n", + "#Determination of lengths of elements\n", + "L1=142.5/f1;#For freq of 320MHz\n", + "L2=L1/t;L3=L2/t;L4=L3/t;L5=L4/t;\n", + "print 'The length of elements are'\n", + "print 'L5=',L5,'m ','L4=',L4,'m ','L3=',L3,'m ','L2=',L2,'m ','L1=',L1,'m '\n", + "#Determination of spacing betn elements\n", + "D1=L1/(2*tan(a*pi/180./2.));\n", + "D2=D1/t;D3=D2/t;D4=D3/t;D5=D4/t;\n", + "print 'The spacing between elements are'\n", + "print 'D5=',D5,'m','D4=',D4,'m ','D3=',D3,'m ','D2=',D2,'m ','D1=',D1,'m '" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 598" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The beamwidth is 1.75 degree\n", + "The gain is 39.766 dBi\n" + ] + } + ], + "source": [ + "#calculate the gain and beamwidth\n", + "#page no 598\n", + "#prob no. 16.9\n", + "from math import pi, log10\n", + "#given\n", + "#A parabolic antenna with diameter=3m & efficiency=60% operate at 4GHz\n", + "D=3.;n=0.6;f=4.*10**9;c=3.*10**8;#Spped of light\n", + "#Determination of gain & beamwidth\n", + "#calculations and results\n", + "wav=c/f;#Determination of free space wavelength\n", + "theta=(70.*wav)/D;#Calculaing beamwidth\n", + "print 'The beamwidth is',theta,'degree'\n", + "G=(n*(pi**2)*(D**2))/wav**2;#Calculating gain\n", + "#Converting gain in dBi\n", + "G_dBi=10*log10(G);\n", + "print 'The gain is',round(G_dBi,3),'dBi'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter17.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter17.ipynb new file mode 100644 index 00000000..a9d0084e --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter17.ipynb @@ -0,0 +1,569 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 17 : MicroWave Devices" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 621" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The max usable freq is 7500000000.0 Hz\n" + ] + } + ], + "source": [ + "#calculate the max usable freq\n", + "#page no 621\n", + "#prob no. 17.1\n", + "#given\n", + "#TE10 mode in air dielectric mode with inside cross sectn=2cm*4cm\n", + "#Determination of cut-off freq \n", + "a=4.*10**-2;#largest dimn is used for calculation \n", + "c=3.*10**8;#Speed of light in m/s\n", + "#calculations\n", + "fc=c/(2*a);\n", + "#Determination of dominant mode of propagation over 2:1\n", + "MUF=2*fc;\n", + "#results\n", + "print 'The max usable freq is',MUF,'Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 624" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The group velocity is 198431348.33 m/s\n" + ] + } + ], + "source": [ + "#calculate the group velocity \n", + "#page no 624\n", + "#prob no. 17.2\n", + "#Determination of group velocity for waveguide in example 7.1\n", + "from math import sqrt\n", + "#given\n", + "f=5*10**9;#freq.in Hz\n", + "fc=3.75*10**9;#cut-off freq from eg.7.1\n", + "c=3.*10**8;#speed of light in m/s\n", + "#calculations\n", + "vg=c*sqrt(1-(fc/f)**2);\n", + "#results\n", + "print 'The group velocity is',vg,'m/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 624" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The group velocity for 12GHz signal is 165831239.518 m/s\n", + "The group velocity for 17GHz signal is 242606948.556 m/s\n", + "The diffn in the travel times for 2 signals is 9.5416670466e-08 sec\n" + ] + } + ], + "source": [ + "#calculate the froup velocity \n", + "#page no 624\n", + "#prob no. 17.3\n", + "#A waveguide with fc=10GHz.2 signal with frequency 12 & 17GHz propogate down=50m\n", + "from math import sqrt\n", + "#given\n", + "fc=10*10**9;c=3.*10**8;f1=12.*10**9;f2=17.*10**9;d=50.;\n", + "#calculations and results\n", + "#Determination of group velocity for 12GHz\n", + "vg1=c*sqrt(1-(fc/f1)**2);\n", + "print 'The group velocity for 12GHz signal is',vg1,'m/s'\n", + "#Determination of group velo for 17GHz\n", + "vg2=c*sqrt(1-(fc/f2)**2);\n", + "print 'The group velocity for 17GHz signal is',vg2,'m/s'\n", + "#Determination of time taken for 50m dist by f1\n", + "t1=d/vg1;\n", + "#Determination of time taken for 50m dist by f2\n", + "t2=d/vg2;\n", + "#Determination of diffn in the travel times for 2 signals \n", + "dela=t1-t2;\n", + "print 'The diffn in the travel times for 2 signals is',dela,'sec'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 627" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The phase velocity is 453557367.611 m/s\n" + ] + } + ], + "source": [ + "#calculate the phase velocity \n", + "#page no 627\n", + "#prob no. 17.4\n", + "#Determination of phase velo.with given 5GHz freq\n", + "from math import sqrt\n", + "#given\n", + "f=5.*10**9;c=3.*10**8;fc=3.75*10**9;#Cut-off freq refering eg.17.1\n", + "#calculations\n", + "vp=c/sqrt(1-(fc/f)**2);#Calculation of phase velo.\n", + "#results\n", + "print 'The phase velocity is',vp,'m/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 628" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The characteristic impedance of waveguide is 569.97 ohm\n" + ] + } + ], + "source": [ + "#calculate the characteristic impedanccec of waveguide\n", + "#page no 628\n", + "#prob no. 17.5\n", + "from math import sqrt\n", + "#given\n", + "#determination of characteristic impedance of waveguide with given 5GHz freq\n", + "f=5*10**9;fc=3.75*10**9;#Refering in eg. 17.4\n", + "#calculations\n", + "Zo=377/sqrt(1-(fc/f)**2);\n", + "#results\n", + "print 'The characteristic impedance of waveguide is',round(Zo,3),'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 631" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The signal level in main guide is 19.0 dBm\n", + "The signal level in secondary guide is 0.0 dBm\n", + "The signal level from sec guide when reversed guide is -40.0 dBm\n" + ] + } + ], + "source": [ + "#page no 631\n", + "#prob no. 17.7\n", + "#calculate the signal level in all cases\n", + "#A signal with level of 20dBm & insertion loss=1dB & coupling =20dB,directivity=40dB\n", + "#given\n", + "sig_in=20.;loss=1.;couple=20.;direct=40.;\n", + "#calculations and results\n", + "#Determination of signal level in main guide\n", + "sig_level_main=sig_in-loss;\n", + "print 'The signal level in main guide is ',sig_level_main,'dBm'\n", + "#Determination of signal level in secondary guide\n", + "sig_level_sec=sig_in-couple;\n", + "print 'The signal level in secondary guide is',sig_level_sec,'dBm'\n", + "#If signal dirn in main guide were reveresed,the signal level in sec gide would reduced by 40dB to\n", + "sig_sec_rev=(sig_level_sec)-(direct);\n", + "print 'The signal level from sec guide when reversed guide is',sig_sec_rev,'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 642" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The frequency of oscillation is 14285714285.7 Hz\n" + ] + } + ], + "source": [ + " \n", + "#page no 642\n", + "#prob no. 17.8\n", + "#calculate the frequency of oscillation\n", + "#given\n", + "#A Gunn device with thickness=7um\n", + "d=7*10**-6;v=10**5;#Basic velocity of e\n", + "#calculations\n", + "t=d/v;#Basic velocity relation\n", + "#Determination of freq of oscillation\n", + "f=1/t;#Inverse of period is freq\n", + "#results\n", + "print 'The frequency of oscillation is',f,'Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 648" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The duty cycle is 0.065\n", + "The length of pulse is 0.00065 sec\n" + ] + } + ], + "source": [ + " \n", + "#page no 648\n", + "#prob no. 17.9\n", + "#calculate the duty cycle and length of pulse\n", + "#given\n", + "#A pulse magnetron with avg power=1.2kW & peak power=18.5kW & 1 pulse is generated every 10ms\n", + "Pavg=1.2*10**3;Pp=18.5*10**3;Tt=10.*10**-3;\n", + "#calculations\n", + "#Determination of duty cycle\n", + "D=Pavg/Pp;\n", + "#Determination of length of pulse\n", + "Ton=D*Tt;\n", + "#results\n", + "print 'The duty cycle is',round(D,3)\n", + "print 'The length of pulse is',round(Ton,5),'sec'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 652" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The gain is 15.763 dBi\n", + "b)The beamwidth in H-plane is 26.923 degree\n", + "c)The beamwidth in H-plane is 28.966 degree\n" + ] + } + ], + "source": [ + " \n", + "#page no 652\n", + "#prob no. 17.10\n", + "#calculate the gain and beam width in all cases\n", + "import math\n", + "#A pyramidal horn has aperture=58mm in E-plane & 78mm in H-plane & operates at 10GHz\n", + "#given\n", + "f=10*10**9;c=3.*10**8;dH=78.*10**-3;dE=58.*10**-3;\n", + "#calculations and results\n", + "#a)Determination of gain in dB\n", + "wl=c/f;#calculation of wavelength\n", + "G=(7.5*dE*dH)/(wl**2);\n", + "G_dBi=10*math.log10(G);#Converting to dBi\n", + "print 'a)The gain is',round(G_dBi,3),'dBi'\n", + "#b)Determination of beamwidth in H-palne\n", + "theta_H=(70*wl)/dH;\n", + "print 'b)The beamwidth in H-plane is',round(theta_H,3),'degree'\n", + "#c)Determination of beamwidth in E-plane\n", + "theta_E=(56*wl)/dE;\n", + "print 'c)The beamwidth in H-plane is',round(theta_E,3),'degree'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 654" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The antenna width = 53.03 m and The antenna length = 53.03 m\n" + ] + } + ], + "source": [ + " \n", + "#page no 654\n", + "# problem no 17.11\n", + "#calculate the width and length of the antenna\n", + "#given\n", + "from math import sqrt\n", + "#for a square patch antenna\n", + "f=2*10**6;# freq of operation in Hz\n", + "Er=2;# relative permittivity\n", + "c=3*10**8;# velo of light\n", + "#calculations\n", + "#wavelength is given as\n", + "wl=c/(f*sqrt(Er));\n", + "#The antenna width and length are each approximately half of this.\n", + "w=wl/2;\n", + "l=wl/2;\n", + "#results\n", + "print 'The antenna width = ',round(w,2),'m ','and ','The antenna length = ',round(l,2),'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 12 : pg 657" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The received power is 1.01251354638e-14 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 657\n", + "#prob no. 17.12\n", + "#calculate the received power\n", + "import math\n", + "#A radar Tx has power=10kW at freq=9.5GHz & target at 15km with cross sectn=10.2 m2 with gain of antenna is 20dBi\n", + "f=9.5*10**9;Pt=10.*10**3;c=3.*10**8;G_dBi=20.;a=10.2;r=15.*10**3;\n", + "#calculations\n", + "#Determination of received power\n", + "wl=c/f;#calculating wavelength\n", + "G=10**(G_dBi/10.);#Converting to power ratio\n", + "Pr=((wl**2)*Pt*(G**2)*a)/(((4*math.pi)**3)*(r**4));\n", + "#results\n", + "print 'The received power is',Pr,'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 13 : pg 659" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The distance of target is 2250.0 m\n", + "The maximum range is 150000.0 m\n", + "The minimum range is 150.0 m\n" + ] + } + ], + "source": [ + " \n", + "#page no 659\n", + "#prob no. 17.13a\n", + "#calculate the distance of target\n", + "#a pulse sent,returns after 15us\n", + "#given\n", + "t=15*10**-6;c=3.*10**8;\n", + "tp=10**-6;#pulse duration of pulse radar\n", + "f=10**3;#operating freq in Hz\n", + "#calculations\n", + "#Determination of distance of target\n", + "R=(c*t)/2;\n", + "#The maximum unambiguous range is \n", + "Rmax=c/(2*f);\n", + "#The minimum unambiguous range is \n", + "Rmin=c*tp/2;\n", + "#results\n", + "print 'The distance of target is',R,'m'\n", + "print 'The maximum range is ',Rmax,'m'\n", + "print 'The minimum range is ',Rmin,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 14 : pg 662" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Doppler shift is 1777.78 Hz\n" + ] + } + ], + "source": [ + " \n", + "#page no 662\n", + "#prob no. 17.14\n", + "#calculate the doppler shift\n", + "#given\n", + "v=60.;#speed of vehicle moving towards radar in mph\n", + "c=3*10**8;#velo of light in m/s\n", + "f=10.**10;# operating frequency in Hz\n", + "#calculations\n", + "# conversion of speed from mph to km/hr\n", + "v1=60*1.6;\n", + "# conversion of speed from km/hr to m/s\n", + "v2=v1*10**3/3600.;\n", + "# Now the Doppler shift is found as\n", + "fd=2*v2*f/c;\n", + "#results\n", + "print 'The Doppler shift is ',round(fd,2),'Hz'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter18.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter18.ipynb new file mode 100644 index 00000000..d92be490 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter18.ipynb @@ -0,0 +1,483 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 18 : Terrestrial Microwave system" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 676" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The height of each tower must be at least 23.529 m\n" + ] + } + ], + "source": [ + " \n", + "# page no 676\n", + "#calculate the height of each tower\n", + "# prob no 18_1\n", + "#given\n", + "#Transmitter and receiver have same height at dist 40km\n", + "d=40;#dist is 40 km\n", + "#calculations\n", + "h=(d**2)/68.;# As d=sqrt(17h)+sqrt(17h)\n", + "#results\n", + "print 'The height of each tower must be at least',round(h,3),'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 678" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The distance by which beam must clear the obstacle is 11.63 m\n" + ] + } + ], + "source": [ + " \n", + "# page no 678\n", + "# prob no 18_2\n", + "from math import sqrt\n", + "#calculate the distance required\n", + "#A line of sight radio link at freq 6GHz with seperation 40 km betn antennas\n", + "#given\n", + "f=6.;d1=10.;d2=30;#obstacle located at 10 km\n", + "#calculations\n", + "#Determination of dist R to clear obstacle \n", + "R=10.4*sqrt((d1*d2)/(f*(d1+d2)));\n", + "#results\n", + "print 'The distance by which beam must clear the obstacle is',round(R,2),'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 679" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power delivered to the Rx is -62.03 dBm\n" + ] + } + ], + "source": [ + " \n", + "# page no 679\n", + "# prob no 18_3\n", + "#calculate the power delivered\n", + "from math import log10\n", + "#given\n", + "#A transmitter and receiver at 6GHz seperated by 40km with o/p power 2 W\n", + "f = 6 * 10 ** 9\n", + "d = 40.\n", + "Pt = 2# power in watt\n", + "#transmitting antenna gain Gt=20dBi,receiving antenna Gr=25dBi\n", + "Gt = 20\n", + "Gr = 25\n", + "f_mhz = 6000#f=6000 MHz\n", + "#calculations\n", + "Pr_Pt_dB = (Gt + Gr) - (32.44 + (20 * log10(d)) + (20 * log10(f_mhz)))\n", + "Pt_dBm = 10 * log10(Pt / 10 ** -3)\n", + "Pr_dBm = Pt_dBm + Pr_Pt_dB\n", + "#results\n", + "print 'The power delivered to the Rx is',round(Pr_dBm,2),'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 680" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Noise temperature is 120.0 K\n" + ] + } + ], + "source": [ + " \n", + "# page no 680\n", + "#calculate the noise temperature\n", + "# prob no 18_4\n", + "#given\n", + "T_sky = 120.# Sky temp expressed in K\n", + "L_dB = 2# antenna feedline loss\n", + "#calculations\n", + "L = 10 ** (L_dB / 10)\n", + "# the noise temp is given as\n", + "Ta = ((L - 1) * 290 + T_sky) / L\n", + "#results\n", + "print 'Noise temperature is',Ta,'K'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 681" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The equivalent noise temperature 169.619 K\n" + ] + } + ], + "source": [ + " \n", + "# page no 681\n", + "# prob no 18.5\n", + "#calculate the equivalent noise temperature\n", + "#given\n", + "NF_dB = 2\n", + "#calculations\n", + "NF_power = 10 ** (NF_dB / 10.)\n", + "T_eq = 290. * (NF_power - 1)\n", + "#results\n", + "print 'The equivalent noise temperature',round(T_eq,3),'K'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 681" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The noise power is 9.6876e-14 W\n", + "The thermal noise power is -100.138 dBm\n" + ] + } + ], + "source": [ + " \n", + "# page no 681\n", + "# prob no 18.6\n", + "# refer example no 18.4 and 18.5\n", + "#calculate the noise power in both cases\n", + "from math import log10\n", + "#given\n", + "# The antenna and feedline combination from ex 18.4 is used with the Rx from ex\n", + "# 18.5\n", + "Ta = 182.# noise temp of the antenna and feedline combination expressed in K\n", + "Teq = 169.# noise temperature of the Rx\n", + "B = 20. * 10 ** 6# BW of the receiver\n", + "#calculations\n", + "Tn_sys = Ta + Teq#Noise temp for the system\n", + "k = 1.38 * 10 ** -23#Boltzmann constant\n", + "# Noise power of the system is given as\n", + "Pn = k * Tn_sys * B# where k is Boltzmann constant\n", + "Pn_dBm = 10 * log10(Pn / 10 ** -3)\n", + "#results\n", + "print 'The noise power is',Pn,'W'\n", + "print 'The thermal noise power is',round(Pn_dBm,3),'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 682" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Carrier to noise ratio is 38.0 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 682\n", + "# prob no 18.7\n", + "#calculate the carrier to noise ratio\n", + "# refer ex no 18.3 and 18.6\n", + "#given\n", + "Pr_dBm = -62.#power at the receiver in dBm\n", + "Pn_dBm = -100.#thermal noise power in dBm\n", + "#calculations\n", + "# carrier to noise ratio in dB is given as\n", + "C_N = Pr_dBm - Pn_dBm\n", + "#results\n", + "print 'Carrier to noise ratio is',C_N,'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 683" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Energy per bit to noise density ratio is 27.14 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 683\n", + "# prob no 18.8\n", + "#calculate the energy per bit to noise density ratio\n", + "# refer ex 18.7\n", + "from math import log10\n", + "#given\n", + "fb = 40 * 10 ** 6# bit rate in bps\n", + "Pr_dBm = -62#power at the receiver in dBm\n", + "Pr = 10 ** (Pr_dBm / 10) * 10 ** -3# power at the receiver in W\n", + "Eb = Pr / fb# the energy per bit in J\n", + "k = 1.38 * 10 ** -23#Boltzmann constant\n", + "T = 350.\n", + "#calculations\n", + "# the noise power density is\n", + "No = k * T\n", + "# Energy per bit to noise density ratio in dB is\n", + "Eb_No = 10 * log10(Eb / No)\n", + "#results\n", + "print 'Energy per bit to noise density ratio is ',round(Eb_No,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 686" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The local oscillator freq is 6800.0 MHz\n" + ] + } + ], + "source": [ + " \n", + "# page no 686\n", + "# prob no 18.9\n", + "# refer fig 18.7(b)\n", + "#calculate the local oscillator frequency\n", + "#given\n", + "#This is the standard superheterodyne receiver\n", + "fc=6870.;# the received carrier freq in MHz\n", + "IF=70.;# IF in MHz\n", + "#calculations\n", + "# The local oscillator freq is given as\n", + "f_lo=fc-IF;\n", + "#results\n", + "print 'The local oscillator freq is ',f_lo,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 688" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The freq of shift oscillator is 160.0 MHz\n", + "The local oscillator freq is 6640.0 MHz\n", + "O/P of Mixer 3 is 6800.0 MHz\n" + ] + } + ], + "source": [ + " \n", + "# page no 688\n", + "# prob no 18.10\n", + "# refer fig 18.9a)\n", + "#calculate the freq shift in all cases\n", + "#given\n", + "fc_r = 6870.# carrier freq of received signal in MHz\n", + "fc_t = 6710.#carrier freq of transmitted signal in MHz\n", + "IF = 70.#in MHz\n", + "#calculations and results\n", + "# the freq of shift oscillator is\n", + "fso = fc_r - fc_t\n", + "print 'The freq of shift oscillator is ',fso,'MHz'\n", + "#the local oscillator freq is given as\n", + "flo = fc_t - IF\n", + "print 'The local oscillator freq is ',flo,'MHz'\n", + "#from fig, mixer 3 will produce an o/p as\n", + "op_mix3 = flo + fso\n", + "print 'O/P of Mixer 3 is',op_mix3,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 690" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The number of bits per symbol are 4.0 bits\n", + "The baud rate is 22.631 Mbaud\n" + ] + } + ], + "source": [ + " \n", + "# page no 690\n", + "# prob no 18.11\n", + "#calculate the baud rate and bits per symbol\n", + "#given\n", + "from math import log\n", + "# A typical microwave digital radio system uses 16-QAM.\n", + "fb = 90.524#bit rate expressesd in Mbps\n", + "n = 16# for 16-QAM system\n", + "#calculations and results\n", + "#part a) calculation of no of bits per symbol\n", + "m = log(n) / log(2)\n", + "print 'The number of bits per symbol are',m,'bits'\n", + "# part b) calclation of baud rate\n", + "# baud rate is 1/4th of the bit rate\n", + "baud = fb / 4\n", + "print 'The baud rate is',baud,'Mbaud'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter19.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter19.ipynb new file mode 100644 index 00000000..38f17535 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter19.ipynb @@ -0,0 +1,370 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 19 : Television" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 703" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Level of video signals in IRE units 53.75 IRE units\n" + ] + } + ], + "source": [ + " \n", + "# page no 703\n", + "# prob no 19.1\n", + "#calculate the level of video signals\n", + "#given\n", + "# In the given problem,a video signal has 50% of the maximum luminance level\n", + "#A black setup level of 7.5 IRE represents zero luminance,and 100 IRE is max brightness.\n", + "#Therefore the range from min to max luminnance has 100-7.5=92.5 units.\n", + "#Therefore the level is\n", + "#calculations\n", + "IRE = 7.5 + (0.5 * 92.5)\n", + "#results\n", + "print 'Level of video signals in IRE units',IRE,'IRE units'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 704" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Horizontal blanking occupies 15.75 % of the signal\n", + "vertical blanking occupies 8.0 % of the signal\n", + "The active video is 77.51 %\n" + ] + } + ], + "source": [ + " \n", + "# page no 704\n", + "# prob no 19.2\n", + "#calculate the horizontal, vertical blanking occupies\n", + "# part a) horizontal blanking\n", + "# Horizontal blanking occupies approximately 10 us of the 63.5 us duration of each line,\n", + "#given\n", + "Hztl_blnk = 10 / 63.5 * 100\n", + "#calculations and results\n", + "print 'Horizontal blanking occupies',round(Hztl_blnk,2),'%','of the signal'\n", + "# part b) vertical blanking\n", + "# Vertical blanking occupies approximately 21 lines per field or 42 lines per\n", + "# frame. A frame has 525 lines altogether,so\n", + "Vert_blnk = 42. / 525 * 100\n", + "print 'vertical blanking occupies',Vert_blnk,'%','of the signal'\n", + "# part c) active signal\n", + "# since 8% of the time is lost in vertical blanking, 92% of the time is\n", + "# involved in the tansmission of the active lines.\n", + "act_vid = (100 - Hztl_blnk) * (100 - Vert_blnk) / 100\n", + "print 'The active video is',round(act_vid,2),'%'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 707" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The horizontal resolution in lines is 240.0 lines\n" + ] + } + ], + "source": [ + " \n", + "# page no 707\n", + "# prob no 19.3\n", + "#calculate the horizontal resolution\n", + "# A typical low-cost monochrome receiver has a video bandwidth of 3MHz\n", + "#given\n", + "B = 3.# bandwidth in MHz\n", + "#calculations\n", + "# The horizontal resolution in lines is given as\n", + "L_h = B * 80\n", + "#results\n", + "print 'The horizontal resolution in lines is',L_h,'lines'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 709" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The luminance signal is 0.384\n", + "The in-phase component of the color signal is -0.248\n", + "The quadrature component of the color signal is 0.082\n" + ] + } + ], + "source": [ + " \n", + "# page no 709\n", + "# prob no 19.4\n", + "#given\n", + "#calculate the components of signal\n", + "# A RGB video signal has normalized values as\n", + "R=0.2;G=0.4;B=0.8;\n", + "#calculations and results\n", + "#The luminance signal is given as\n", + "Y=0.30*R+0.59*G+0.11*B;\n", + "print 'The luminance signal is',Y\n", + "#The in-phase component of the color signal is given as\n", + "I=0.60*R-0.28*G-0.32*B;\n", + "print 'The in-phase component of the color signal is',I\n", + "#The quadrature component of the color signal is given as\n", + "Q=0.21*R-0.52*G+0.31*B;\n", + "print 'The quadrature component of the color signal is',Q" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 712" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "45.5625 % of the maximum transmitter power is used to transmit a black setup\n" + ] + } + ], + "source": [ + " \n", + "# page no 712\n", + "# prob no 19.5\n", + "#refer table 19.1\n", + "#calculate the max transmitter power\n", + "#given\n", + "# The proportion in the table are voltage levels and have to be squared to get power.\n", + "# for black setup the voltage level is given as\n", + "#calculations\n", + "v = 0.675\n", + "#Therefore the power level as a fraction of the maximum transmitter power is\n", + "P_black_setup = v ** 2 * 100\n", + "#results\n", + "print P_black_setup,'%','of the maximum transmitter power is used to transmit a black setup'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 728" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The input of Amp 1 is -20.0 dBmV\n", + "The output of Amp 1 is 20.0 dBmV\n", + "The input of Amp 2 is 5.0 dBmV\n", + "The output of Amp 2 is 30.0 dBmV\n", + "The input of Amp 3 is 8.0 dBmV\n", + "The output of Amp 3 is 28.0 dBmV\n", + "Signal strength at subscriber tap is 1.778 mV\n", + "The power at the end is -43.751 dBm\n" + ] + } + ], + "source": [ + " \n", + "# page no 728\n", + "# prob no 19.6\n", + "# refer fig 19.27 of the page no 729\n", + "#calculate the output and input in all cases\n", + "#given\n", + "from math import log10\n", + "# from fig, we can write down the values directly as given\n", + "In1 = 100 * 10 ** -3#expressed in mV\n", + " #calculations and results\n", + "In1_dBmV = 20 * log10(In1 / 1)\n", + "print 'The input of Amp 1 is',In1_dBmV,'dBmV'\n", + "# this above calculated signal is applied to the input of the first\n", + "# amplifier,i.e. head-end signal processing\n", + "G1 = 40# gain of Amp 1 expressed in dB\n", + " # o/p level of Amp 1 is\n", + "Out1 = In1_dBmV + G1\n", + "print 'The output of Amp 1 is',Out1,'dBmV'\n", + "L = 15#expressed in dB\n", + "# The input level of Amp 2 is\n", + "In2_dBmV = Out1 - L\n", + "print 'The input of Amp 2 is',In2_dBmV,'dBmV'\n", + "G2 = 25#gain of Amp2 expressed in dB\n", + "# o/p level of Amp 2 is\n", + "Out2 = In2_dBmV + G2\n", + "print 'The output of Amp 2 is',Out2,'dBmV'\n", + "L1 = 10# loss in cable\n", + "L2 = 12#loss in directional coupler\n", + "# The input level of Amp 3 is\n", + "In3_dBmV = Out2 - L1 - L2\n", + "print 'The input of Amp 3 is',In3_dBmV,'dBmV'\n", + "G3 = 20#gain of Amp3 expressed in dB\n", + "Out3 = In3_dBmV + G3\n", + "print 'The output of Amp 3 is',Out3,'dBmV'\n", + "# There is further 3dB cable loss and 20dB loss in the tap\n", + "L3 = 3.#loss in cable\n", + "L4 = 20.# loss in tap\n", + "#signal strength at the tap is\n", + "Vdrop_dBmV = Out3 - L3 - L4\n", + "V_drop = 10 ** (Vdrop_dBmV / 20)# expressed in mV\n", + "print 'Signal strength at subscriber tap is',round(V_drop,3),'mV'\n", + "# Calculation of power into 75 ohm\n", + "R = 75.#expressed in ohm\n", + "Pdrop = (V_drop * 10 ** -3) ** 2 / R\n", + "Pdrop_dBm = 10 * log10(Pdrop / 10 ** -3)\n", + "print 'The power at the end is',round(Pdrop_dBm,3),'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 731" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The interference would in 132.0 MHz to 126.0 MHz band\n", + "The bit rate for the signal is 110592000.0 bps\n" + ] + } + ], + "source": [ + " \n", + "# page no 731\n", + "# prob no 19.7\n", + "#calculate bit rate and interference\n", + "#given\n", + "# In given problem a TV receiver is tuned to channel 6.\n", + "#All modern Rx uses a picture IF of 45.75 MHz with high-side injection of the signal into the cable.\n", + "# The picture carrier of channel 6 is at a frequency of 83.25MHz,so\n", + "ch = 6\n", + "Fc = 83.25# expressed in MHz\n", + "IF = 45.75#expressed in MHz\n", + "Nh = 640.\n", + "Nv = 480# resolution of digital video signal as 640*480 pixels\n", + "Rf = 30.#frame rate expressed in Hz\n", + "m = 8.# bits per sample\n", + "#calculations\n", + "f_lo = Fc + IF\n", + "a = f_lo + ch / 2\n", + "b = f_lo - ch / 2\n", + "# By using the product of Horizontal & vertical resolution, no of luminance\n", + "# pixels per frame are\n", + "Npl = Nh * Nv\n", + "# since each of the color signals has one-fourth the total no of luma pixels\n", + "Npt = 1.5 * Npl\n", + "#therefore bit rate is given as\n", + "fb = Npt * m * Rf\n", + "#results\n", + "print 'The interference would in',a,'MHz','to',b,'MHz','band'\n", + "print 'The bit rate for the signal is',fb,'bps'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter2.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter2.ipynb new file mode 100644 index 00000000..7e10b30b --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter2.ipynb @@ -0,0 +1,473 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2 : Radio Frequency Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 50" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The resonant frequency is 4.5 MHz\n", + "The bandwidth is 300.0 kHz\n" + ] + } + ], + "source": [ + "#page no 50\n", + "#calculate the resonant frequency and bandwidth\n", + "#prob no 2.1\n", + "from math import pi,sqrt\n", + "#Given:\n", + "#Refer the fig 2.6 of page 50. L1=25uH;C1=50pF\n", + "L1=25.*10**-6;C1=50.*10**-12;Q=15;\n", + "#calculations\n", + "#A) The resonent freqency is given as\n", + "fo=(1/(2*pi*sqrt(L1*C1)));\n", + "#B) The bandwidth is given as \n", + "B=fo/Q;\n", + "#results\n", + "print 'a)The resonant frequency is ',round(fo/10**6,2),'MHz'\n", + "print 'The bandwidth is ',round(B/1000.),'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 62" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1)The operating frequency is 5.03 MHz\n", + "2)Operating gain -10.0\n", + "The -ve sign denotes a phase inversion\n", + "3)Operating gain 0.2\n" + ] + } + ], + "source": [ + "#page no 62\n", + "# prob no. 2.2\n", + "#calculate the operating frequency, gain\n", + "from math import pi,sqrt\n", + "# Given : Hartley oscillators L=10uH; C=100pF\n", + "L=10.*10**-6; C=100.*10**-12;N1=10;N2=100.\n", + "#calculations and results\n", + "# A)The operating frequency is \n", + "fo=1/(2.*pi*sqrt(L*C));\n", + "print '1)The operating frequency is',round(fo/10**6,2),'MHz'\n", + "# The feedback fraction is given by\n", + "B=-N1/N2;\n", + "#Operating gain is given as \n", + "A=1/B;\n", + "print '2)Operating gain',A\n", + "print 'The -ve sign denotes a phase inversion'\n", + "#B) The operating frequency is same as in part A)\n", + "N1=20;N2=80.;\n", + "# The feedback fraction is given by\n", + "B=(N1+N2)/N1;\n", + "#Operating gain is given as \n", + "A=1./B;\n", + "print '3)Operating gain',A" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 66" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The effective capacitance (pF)= 9.09\n", + "1)The operating frequency is 52.8 Hz\n", + "The feedback fraction is -0.1\n", + "The feedback fraction is 0.0909\n" + ] + } + ], + "source": [ + "# page no 66\n", + "#prob no 2.3\n", + "#calculate the operating frequency and feedback fraction\n", + "from math import pi,sqrt\n", + "#Given:\n", + "C1=10.*10**-12; C2=100.*10**-12; L=1*10**-6;\n", + "#calculations and results\n", + "# The effective capacitance is \n", + "CT=(C1*C2)/(C1+C2);\n", + "# The operating frequency is \n", + "f0=1/(2*pi*sqrt(L*CT));\n", + "print 'The effective capacitance (pF)=',round(CT*10**12,2);\n", + "print '1)The operating frequency is',round(f0/10**6,1),'Hz'\n", + "# The feedback fraction is given approximately by\n", + "B=-C1/C2; \n", + "print 'The feedback fraction is',B\n", + "# For the common-base ckt, the op-freq is same but the feedback fraction willbe different.\n", + "C1=100*10**-12; C2=10*10**-12;\n", + "# It is given by \n", + "B=C2/(C1+C2);\n", + "print 'The feedback fraction is',round(B,4)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 68" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The effective total capacitance is 9.01 pF\n", + "The operating freq is 53.03 MHz\n" + ] + } + ], + "source": [ + "# page no 68\n", + "#prob no 2.4\n", + "#caclculate the effective total capacitance and operating frequency\n", + "#Refer fig 2.22\n", + "from math import pi,sqrt\n", + "#Given:\n", + "c1=1000.;c2=100.;c3=10.;#all values are in pf\n", + "#calculations and results\n", + "#The effective total capacitance\n", + "Ct=1/((1/c1)+(1/c2)+(1/c3));\n", + "print 'The effective total capacitance is',round(Ct,2),'pF'\n", + "CT=Ct*10**-12;L=10**-6;\n", + "#The operating freq is\n", + "f0=1/(2*pi*sqrt(L*CT));\n", + "print 'The operating freq is',round(f0/10**6,2),'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 70" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The resonent freq is 1.78 MHz\n", + "The tuning voltage is 7.5 V\n" + ] + } + ], + "source": [ + "# page no 70\n", + "#prob no 2.5\n", + "#calculate the resonant freq and tuning voltage\n", + "from math import sqrt,pi\n", + "#Given:\n", + "C=80*10**-12; L= 100*10**-6;\n", + "#calculations\n", + "#Part a) The resonent frequency is \n", + "f0=1/(2*pi*sqrt(L*C));\n", + "# Part b) In this part the circuit is resonate on doubling the frequency,therefore\n", + "f1=2*f0;\n", + "# from the equation of resonent frequency \n", + "C1=1/(4*(pi*f1)**2*L);\n", + "# Now for tuning voltage we have to use equation C1=Co/sqrt(1+2V)\n", + "Co=C;\n", + "# after solving the expression\n", + "v=((Co/C1)**2 -1)/2;\n", + "#results\n", + "print 'The resonent freq is',round(f0/10**6,2),'MHz'\n", + "print 'The tuning voltage is ',v,'V'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 76" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output frequencies at the output of square-law mixer are : 21.0 MHz 1.0 MHz\n" + ] + } + ], + "source": [ + "\n", + "#page no 76\n", + "#calculate the output frequencies\n", + "#problem 2.7\n", + "#Given:\n", + "# all frequencies are in MHz\n", + "f1=11.;f2=10;\n", + "#calculations\n", + "# output frequencies at the output of square-law mixer\n", + "a=f1+f2;\n", + "b=f1-f2;\n", + "#results\n", + "print 'The output frequencies at the output of square-law mixer are : ',a,'MHz ',b,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 85" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The capture range is 4.0 MHz\n", + "The lock range is 8.0 MHz\n", + "The freq at which the lock is acquired, moving downward in freq is 14.0 MHz\n", + "Lock will be lost on the way down at 8.0 MHz\n" + ] + } + ], + "source": [ + "#page no 85\n", + "#calculate the capture range, lock range, frequency\n", + "#problem no. 2.8\n", + "# all the frequencies are in MHz\n", + "#Given:\n", + "freq_free_run =12.; \n", + "freq_lock1 =10.;\n", + "freq_lock2 =16.;\n", + "#calculations and results\n", + "# capture range is approximately twice the difference between the free-running freq and the freq at which lock is first achieved\n", + "capture_range =2*(freq_free_run - freq_lock1 );\n", + "print 'The capture range is ',capture_range,'MHz'\n", + "# lock range is approximately twice the the difference between the freq where lock is lost and free-running freq\n", + "lock_range = 2*(freq_lock2 - freq_free_run);\n", + "print 'The lock range is ',lock_range,'MHz'\n", + "# The PLL freq response id approximate symmetrical.\n", + "#This means the free-running freq is in the center of the lock range and capture range. Therefore\n", + "freq_lock_acquired = freq_free_run + (capture_range/2);\n", + "freq_lock_lost = freq_free_run - capture_range\n", + "print 'The freq at which the lock is acquired, moving downward in freq is ',freq_lock_acquired,'MHz'\n", + "print 'Lock will be lost on the way down at',freq_lock_lost,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 86" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The values of N at high end is 170.0\n", + "The values of N at low end is 54.0\n" + ] + } + ], + "source": [ + "#page no 86\n", + "#calculate the values of N at high and low ends\n", + "# prob no 2.9\n", + "# refer fig 2.38\n", + "#Given:\n", + "#Here we are using a 10MHz crystal, it will be necessar to devide it by a factor to get 10kHz\n", + "f_osc = 10.*10**6; f_ref=10.*10**3;f0_1=540.*10**3;f0_2=1700.*10**3;\n", + "#calculations\n", + "Q=f_osc/f_ref;\n", + "# we have to specify the range of values of N. Find N at each and of the tuning range\n", + "N1=f0_1/f_ref;\n", + "N2=f0_2/f_ref;\n", + "#results\n", + "print 'The values of N at high end is',N2\n", + "print 'The values of N at low end is',N1" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 89" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The step size that would have been obtained without prescaling 10000.0 Hz\n" + ] + } + ], + "source": [ + "#page no 89\n", + "# prob no 2.10\n", + "# refer fig 2.40\n", + "#Given:\n", + "P=10.;f_ref=10.*10**3;M=10.;\n", + "#consider \n", + "N=1.;\n", + "#calculations\n", + "# With a fixed-modulus prescalar, the min freq step is \n", + "step_size=M*f_ref;\n", + "# With the two-modulus system, let the main divider modulus N remain constant & \n", + "#increase the modulus m to (m+1) to find how much the freq changes.\n", + "# for 1st case, o/p freq \n", + "fo=(M+N*P)*f_ref;\n", + "# for 2nd case where leave N alone but changes M to M+1, new o/p freq \n", + "fo_=(M+1+N*P)*f_ref;\n", + "# The difference is \n", + "f= fo_-fo;\n", + "#results\n", + "print 'The step size that would have been obtained without prescaling',f,'Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 91" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The output frequencies are 10.2 MHz 12.0 MHz\n", + "The step size is 20.0 kHz\n" + ] + } + ], + "source": [ + "#page no 91\n", + "#prob no 2.11\n", + "#refer fig 2.42\n", + "#Given:\n", + "f_ref= 20.*10**3;\n", + "f_osc= 10.*10**6;\n", + "N1=10;N2=100.;\n", + "#calculations\n", + "f0=(N1*f_ref) + f_osc;\n", + "f1=(N2*f_ref) + f_osc;\n", + "step_size=(f1-f0)/(N2-N1);\n", + "#results\n", + "print 'The output frequencies are',f0/10**6,'MHz',f1/10**6,'MHz'\n", + "print 'The step size is',step_size/1000.,'kHz'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter20.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter20.ipynb new file mode 100644 index 00000000..7a56204a --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter20.ipynb @@ -0,0 +1,434 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 20 : Satellite Communication" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 754" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A) The velocity of a satellite is 7613.87 m/s\n", + "The orbital period of satellite is 5694.08 sec\n", + "B) The velocity of a satellite is 3071.48 m/s\n", + "The orbital period of satellite is 86735.85 sec\n" + ] + } + ], + "source": [ + " \n", + "# page no 754\n", + "# prob no 20.1\n", + "# part A)\n", + "from math import pi, sqrt\n", + "#calculate the velocity and orbital period of satellite in both cases\n", + "#given\n", + "d=500.;\n", + "#calculations and results\n", + "#By using the equation for velocity of a satellite\n", + "v=sqrt(4*10**11/(d+6400));\n", + "print 'A) The velocity of a satellite is',round(v,2),'m/s'\n", + "# The radius of orbit is \n", + "r=(6400+d)*10**3#in m\n", + "#The orbital period of satellite is\n", + "T=(2*pi*r)/v;\n", + "print 'The orbital period of satellite is',round(T,2),'sec'\n", + "#part B)\n", + "d=36000.;\n", + "#By using the equation for velocity of a satellite\n", + "v=sqrt(4*10**11/(d+6400));\n", + "print 'B) The velocity of a satellite is',round(v,2),'m/s'\n", + "#The radius of orbit is \n", + "r=(6400+d)*10**3#in m\n", + "#The orbital period of satellite is\n", + "T=(2*pi*r)/v;\n", + "print 'The orbital period of satellite is',round(T,2),'sec'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 757" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "required angle is 6.8137529672 degrees\n" + ] + } + ], + "source": [ + " \n", + "# page no 757\n", + "# prob no 20.2\n", + "#calculate the required angle\n", + "#given\n", + "from math import atan, cos, sin, pi\n", + "R = 6400.#Radius of earth\n", + "L = 45.#earth station lattitude\n", + "H = 36000.#Height of satellite above the earth;\n", + "#calculations\n", + "ang = atan((6400. * sin(L * pi / 180.)) / (36000 + (6400 * (1 - cos(L * pi / 180.))))) * 180 / pi\n", + "#results\n", + "print \"required angle is \",ang, \"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 758" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The length of the path is 38836.175 km\n" + ] + } + ], + "source": [ + " \n", + "# page no 758\n", + "# prob no 20.3\n", + "#calculate the length of the path\n", + "#given\n", + "from math import sqrt, sin, cos, pi\n", + "#Determination of lenght of geostationary satellite with angle of elavation=30\n", + "#degree\n", + "r = 64. * 10 ** 5#Radius of earth\n", + "h = 36. * 10 ** 6#height of satellite\n", + "theta = 30 * pi / 180.#angle of elevation\n", + "#calculations\n", + "d = sqrt(((r + h) ** 2) - ((r * cos(theta)) ** 2)) - (r * sin(theta))\n", + "#results\n", + "print 'The length of the path is',round(d / 1000,3),'km'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 759" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of signal strength at receiver -88.071 dBm\n" + ] + } + ], + "source": [ + " \n", + "# page no 759\n", + "# prob no 20.4\n", + "#calculate the value of signal strength\n", + "#given\n", + "from math import log10\n", + "#A satellite transmitter operates at 4GHz with 7W & antenna gain 40dBi\n", + "#Receiver antenna gain 30dBi & path length is 4*10**7\n", + "Gt_dBi = 40.\n", + "Gr_dBi = 30.\n", + "Pt = 7\n", + "d = 40000.#in km\n", + "f = 4000.#in MHz\n", + "#calculations\n", + "Pr_Pt_dB = Gt_dBi + Gr_dBi - (32.44 + (20 * log10(d)) + (20 * log10(f)))\n", + "#Signal strength at transmitter\n", + "Pt_dBm = 10 * log10(Pt / 10 ** -3)\n", + "Pr_dBm = (Pt_dBm) + (Pr_Pt_dB)\n", + "#results\n", + "print 'The value of signal strength at receiver',round(Pr_dBm,3),'dBm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 760" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The receiver noise temperature is 21.013 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 760\n", + "# prob no 20.5\n", + "#calculate the receiver\n", + "#given\n", + "from math import log10\n", + "# In the given problem\n", + "G = 40# receiving antenna gain\n", + "T_sky = 15.# noise temp\n", + "L = 0.4#loss between antenna and LNA input\n", + "T_eq = 40.# noise temperature f LNA\n", + "#calculations\n", + "# Fir-st we have to find G in dB\n", + "G_dB = G - L\n", + "# For the calculation of T, we have to convert the feedhorn loss into a ratio\n", + "# as follows\n", + "L = 10 ** (0.4 / 10)\n", + "Ta = ((L - 1) * 290. + T_sky) / L\n", + "# The receiver noise temperature is given wrt the chosen reference\n", + "# point,theefore\n", + "Ratio = G - 10 * log10(Ta + T_eq)\n", + "#results\n", + "print 'The receiver noise temperature is',round(Ratio,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 761" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Equivalent noise temperature is 119.64 K\n" + ] + } + ], + "source": [ + " \n", + "# page no 761\n", + "# prob no 20.6\n", + "#calculate the equivalent noise temperature\n", + "#given\n", + "NF_dB=1.5;# noise fig of a receiver\n", + "#calculations\n", + "NF=10**(NF_dB/10);\n", + "# Equivalent noise temperature is giveb as\n", + "T_eq=290*(NF-1);\n", + "#results\n", + "print 'Equivalent noise temperature is',round(T_eq,2),'K'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 761" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The carrier to noise ratio at the receiver is 30.97 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 761\n", + "# prob no 20.7\n", + "#calculate the carrier to noise ratio\n", + "#given\n", + "from math import log10\n", + "# refer prob no 20.5\n", + "d=38000.;#distance of satellite from the Earth surface\n", + "P=50.;#transmitter power\n", + "G=30.;#antenna gain\n", + "f=12000.;#frequency in MHz\n", + "B=10**6;# Bandwidth in MHz\n", + "#from problem no 2.5\n", + "G_T=21;\n", + "L_misc=0;\n", + "k_dBW=-228.6;#Boltzmann's constant in dBW\n", + "#calculations\n", + "# There are no miscellaneous loss\n", + "#The stellite transmitting power in dBW is \n", + "Pt_dBW = 10*log10(P);\n", + "# The EIPR in dBW \n", + "EIRP_dBW=Pt_dBW + G;\n", + "#FSL in dB\n", + "FSL_dB= 32.44 + (20*log10(d)) + (20*log10(f));\n", + "# The carrier to noise ratio is\n", + "ratio=EIRP_dBW - FSL_dB - L_misc + G_T - k_dBW - 10*log10(B);\n", + "#results\n", + "print 'The carrier to noise ratio at the receiver is',round(ratio,2),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 762" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total time delay is 0.000533 sec\n" + ] + } + ], + "source": [ + " \n", + "# page no 762\n", + "# prob no 20.8\n", + "#calculate the total time delay\n", + "#given\n", + "D=40000.;# distance of satellite from the earth station\n", + "v=3*10**8;# velo of light\n", + "d=80000.;# distance between two earth stations\n", + "#calculations\n", + "# time delay is given as\n", + "t=d/v;\n", + "# total time delay will be twice that of calculated above\n", + "T=2*t;\n", + "#results\n", + "print 'The total time delay is ',round(T,6),'sec'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 769" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The gain of TVRO is 39.39 dB\n", + "The beamwidth is 1.75 degree\n" + ] + } + ], + "source": [ + " \n", + "# page no 769\n", + "# prob no 20.9\n", + "#calculate the gain and beamwidth\n", + "#given\n", + "from math import pi, log10\n", + "f_down = 4*10**9;# downlink freq\n", + "D=3.;#diameter\n", + "n=0.55;#efficiency\n", + "c=3.*10**8;#velo of light\n", + "#calculations\n", + "# The gain of a parabolic antenna is given as G=(n*%pi**2*D**2)/wl**2. Therefore wavelength is given as\n", + "wl=c/f_down\n", + "G=(n*pi**2*D**2)/wl**2;\n", + "G_dB = 10*log10(G);\n", + "# The beamwidth is given as\n", + "bw= (70*wl)/D;\n", + "#results\n", + "print 'The gain of TVRO is ',round(G_dB,2),'dB'\n", + "print 'The beamwidth is',round(bw,2),'degree'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter21.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter21.ipynb new file mode 100644 index 00000000..59c92856 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter21.ipynb @@ -0,0 +1,171 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 21 : Cellular Radio" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 795" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Handoff time is 720.0 sec\n", + "Handoff time is 36.0 sec\n" + ] + } + ], + "source": [ + " \n", + "# page no 795\n", + "# prob no 21.1\n", + "#calculate the hand off time\n", + "#given\n", + "v=100.;#in km/hr\n", + "# first convert speed into m/sec\n", + "v1=(100.*10**3)/3600;#in km/sec\n", + "#calculations and results\n", + "#part a)\n", + "r=10.**4;#in m\n", + "t=(2*r)/v1;\n", + "print 'Handoff time is',t,'sec'\n", + "#part b)\n", + "r=500;#in m\n", + "t=(2*r)/v1;\n", + "print 'Handoff time is',t,'sec'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 807" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a) The average traffic is 416.667 E\n", + "The peak traffic is 3333.333 E\n", + "b) The average traffic per cell is 3.472 E\n", + "The peak traffic per cell is 27.778 E\n" + ] + } + ], + "source": [ + " \n", + "# page no 807\n", + "# prob no 21.2\n", + "#calculate the average and peak traffic\n", + "#given\n", + "N = 12\n", + "m = 120.\n", + "a = 20000.\n", + "th = 30.#in min/day this means\n", + "H = 0.5\n", + "tp = 10.\n", + "#calculations and results\n", + "#part a)Calculation of the average and peak traffic in erlangs for the whole\n", + "#system\n", + "# The average traffic is\n", + "T = a * H / 24\n", + "print 'a) The average traffic is',round(T,3),'E'\n", + "# The peak traffic is\n", + "T1 = (a * tp) / 60\n", + "print 'The peak traffic is',round(T1,3),'E'\n", + "#part b)Calculation of the average and peak traffic in erlangs for one cell\n", + "# The average traffic per cell is\n", + "t = T / m\n", + "print 'b) The average traffic per cell is',round(t,3),'E'\n", + "# The peak traffic per cell is\n", + "t = T1 / m\n", + "print 'The peak traffic per cell is',round(t,3),'E'\n", + "# part c)\n", + "# For average traffic at 3.47E, the blocking probability is much less than 1%,\n", + "# since the average no of call is much less than the no of channels. \n", + "#However, the blocking probability increases to just over 5%" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 816" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum distance between base and mobile is 36900.0 m\n" + ] + } + ], + "source": [ + " \n", + "# page no 816\n", + "# prob no 21.3\n", + "#calculate the max distance\n", + "#given\n", + "tg=123.*10**-6;\n", + "c=3.*10**8;\n", + "#calculations\n", + "#The maximum distance between base and mobile is\n", + "d=c*tg;\n", + "#results\n", + "print 'The maximum distance between base and mobile is',d,'m'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter22.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter22.ipynb new file mode 100644 index 00000000..1bfbf9a0 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter22.ipynb @@ -0,0 +1,70 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 22 : Personal Communication Systems" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 842" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The mobile transmitted power in dBm is 24 dBm\n", + "Case 2 : The mobile transmitted power is 100 mW\n" + ] + } + ], + "source": [ + " \n", + "# page no 842\n", + "# prob no 22.1\n", + "#calculate the mobile transmitted power\n", + "#given\n", + "PR = -100;#In dBm\n", + "#calculations and results\n", + "# The mobile transmitted power is\n", + "PT_dBm =-76-PR;#this is in dBm\n", + "print 'The mobile transmitted power in dBm is',PT_dBm,'dBm'\n", + "PT_mW =10**(PT_dBm/10);\n", + "print 'Case 2 : The mobile transmitted power is',PT_mW,'mW'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter23.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter23.ipynb new file mode 100644 index 00000000..94cfda30 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter23.ipynb @@ -0,0 +1,150 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 23 : Paging and Wireless Data Networking" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 863" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The no of pages transmitted in one min are 887.0\n" + ] + } + ], + "source": [ + " \n", + "# page no 863\n", + "# prob no 23.1\n", + "#calculate the no of pages transmitted\n", + "#given\n", + "bit_rate = 512.;#ib bps\n", + "t=60.;#in sec\n", + "# preamble uses 576 bits\n", + "preamble=576.;\n", + "#calculations\n", + "bits_total = bit_rate * t;\n", + "usable_bits = bits_total - preamble;\n", + "# each batch has one 32-bits synchronizing codeword and sixteen 32-bit address codewords for a total of 17*32=544bits. Therefore\n", + "bits_per_batch= 17.*32;\n", + "batches_per_min = usable_bits / bits_per_batch;\n", + "addr=16;\n", + "addr_per_min = batches_per_min*addr;\n", + "#results\n", + "print 'The no of pages transmitted in one min are',round(addr_per_min)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 864" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The efficiency is 0.256 b/s/Hz\n" + ] + } + ], + "source": [ + " \n", + "# page no 864\n", + "# prob no 23.2\n", + "#given\n", + "#calculate the efficiency\n", + "# For the given FLEX system \n", + "Wc=25*10**3;\n", + "bit_rate = 6400.;#in bps\n", + "#calculations\n", + "efficiency = bit_rate/Wc;\n", + "#results\n", + "print 'The efficiency is',efficiency,'b/s/Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 871" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum hopping rate is 320.0 Hz\n", + "The maximum hopping rate is 1600.0 Hz\n" + ] + } + ], + "source": [ + " \n", + "# page no 871\n", + "# prob no 23.3\n", + "#calculate the min and max hopping rate\n", + "#given\n", + "# for the Bluetooth system\n", + "fh_max=1/(625*10**-6);\n", + "fh_min=1/(5*625*10**-6);\n", + "#results\n", + "print 'The minimum hopping rate is',fh_min,'Hz'\n", + "print 'The maximum hopping rate is ',fh_max,'Hz'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter24.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter24.ipynb new file mode 100644 index 00000000..b8267304 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter24.ipynb @@ -0,0 +1,314 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 24 : Fiber Optics" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 888" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The core diameter is 4.18746666667e-06 m\n" + ] + } + ], + "source": [ + " \n", + "# page no 888\n", + "# prob no 24.3\n", + "#calculate the core diameter\n", + "#given\n", + "NA=0.15;\n", + "wl=820*10**-9;#in m\n", + "#calculations\n", + "d_core=2*(0.383*wl/NA);\n", + "#results\n", + "print 'The core diameter is',d_core,'m'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 890" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximun distance that can be use between repeaters is 5.88 km\n" + ] + } + ], + "source": [ + " \n", + "# page no 890\n", + "# prob no 24.4\n", + "#calculate the max distance\n", + "#given\n", + "Bl=500;#in MHz-km\n", + "B=85.;#in MHz\n", + "#calculations\n", + "# By using Bandwidth-distance product formula\n", + "l=Bl/B;\n", + "#results\n", + "print 'The maximun distance that can be use between repeaters is',round(l,2),'km'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 891" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total dispersion is 948.95 ps\n" + ] + } + ], + "source": [ + " \n", + "# page no 891\n", + "# prob no 24.5\n", + "#calculate the total dispersion\n", + "#given\n", + "wl0=1310.;#in ns\n", + "So=0.05;#in ps/(nm**2*km)\n", + "l=50.;#in km\n", + "wl=1550.;#in ns\n", + "d=2.;#in nm\n", + "#calculations\n", + "# Chromatic dispersion is given as\n", + "Dc=(So/4)*(wl-(wl0**4/wl**3));\n", + "# Dispersion is\n", + "D=Dc*d;\n", + "# Therefore total dispersion is \n", + "dt=D*l;\n", + "#results\n", + "print 'The total dispersion is',round(dt,2),'ps'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 893" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The bandwidth distance product is 26343519494.2 Hz-km\n" + ] + } + ], + "source": [ + " \n", + "# page no 893\n", + "# prob no 24.6\n", + "#given\n", + "#calculate the bandwidth distance product\n", + "#Refer problem 24.5\n", + "dt=949*10**-12;#in sed\n", + "l=50.;#in km\n", + "#calculations\n", + "B=1/(2*dt);\n", + "#By using Bandwidth-distance product formula\n", + "Bl= B*l;\n", + "#results\n", + "print 'The bandwidth distance product is',Bl,'Hz-km'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 899" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a) The proportion of input power emerging at port 2 is 10.0 %\n", + "b) The proportion of input power emerging at port 3 is 10.0 %\n", + "Directivity is 40 dB\n", + "the excess loss is 6.99 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 899\n", + "# prob no 24.7\n", + "#calculate the directivity, power, excess loss\n", + "#given\n", + "from math import log10\n", + "# refer table from the problem page no 899\n", + "P_coupling1 =-3; P_coupling2 = -6; P_coupling3 =-40;# in dB\n", + "#calculations and results\n", + "#Part a) The proportion of input power emerging at port 2\n", + "P2_Pin=10**(P_coupling1/10);\n", + "print 'a) The proportion of input power emerging at port 2 is',P2_Pin*100,'%'\n", + "P3_Pin=10**(P_coupling2/10);\n", + "print 'b) The proportion of input power emerging at port 3 is',P3_Pin*100,'%'\n", + "# Part b) In the reverse direction,the signal is 40dB down for all combinations, so\n", + "directivity = 40;\n", + "print 'Directivity is',directivity,'dB'\n", + "Pin_total = P2_Pin + P3_Pin;\n", + "# excess loss in dB\n", + "loss=-10*log10(Pin_total);\n", + "print 'the excess loss is',round(loss,2),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 901" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The energy of photon in eV is 1.242375 eV\n" + ] + } + ], + "source": [ + " \n", + "# page no 901\n", + "# prob no 24.8\n", + "#calculate the energy of photon\n", + "#given\n", + "wl=1*10**-6;\n", + "c= 3*10**8;\n", + "h=6.626*10**-34\n", + "#calculations\n", + "f=c/wl;\n", + "E=h*f;# in Joule\n", + "#this energy can be converted into electron-volt. we know 1eV=1.6*10**-19 J\n", + "eV=1.6*10**-19 ;\n", + "E_ev=E/eV;\n", + "#results\n", + "print 'The energy of photon in eV is',E_ev,'eV'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 909" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The diode current is 165.0 nA\n" + ] + } + ], + "source": [ + " \n", + "# page no 909\n", + "# prob no 24_9\n", + "#calculate the diode current\n", + "#given\n", + "# refer fig 24.25\n", + "P_in=500;Responsivity=0.33;\n", + "#calculations\n", + "I_d = P_in * Responsivity;\n", + "#results\n", + "print 'The diode current is',I_d,'nA'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter25.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter25.ipynb new file mode 100644 index 00000000..00dafb1b --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter25.ipynb @@ -0,0 +1,245 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 25 : Fiber Optic Systems" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 919" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The system margin is 7.011 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 919\n", + "# prob no 25_1\n", + "#calculate the system margin\n", + "#given\n", + "from math import log10\n", + "span_length = 40#in km\n", + "Pin_mW = 1.5\n", + "signal_strength_dBm = -25\n", + "fiber_length = 2.5#in km\n", + "loss_per_slice_dB = 0.25\n", + "f_loss_dB_per_km = 0.3\n", + "loss_connector_dB = 4\n", + "#calculations\n", + "Pin_dBm = 10 * log10(Pin_mW)\n", + "splices = span_length / fiber_length - 1\n", + "fiber_loss = span_length * f_loss_dB_per_km\n", + "splice_loss = splices * loss_per_slice_dB\n", + "T_loss = fiber_loss + splice_loss + loss_connector_dB\n", + "P_out = Pin_dBm - T_loss\n", + "sys_margin = P_out - signal_strength_dBm\n", + "#results\n", + "print 'The system margin is',round(sys_margin,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 921" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum permissible value for the pulse-spreading constant is 2.22 ns/km\n" + ] + } + ], + "source": [ + " \n", + "# page no 921\n", + "# prob no 25_2\n", + "#calculate the max permissible value\n", + "#given\n", + "L=45;#in km\n", + "dt=100.;#in ns\n", + "#calculations\n", + "#The maximum permissible value for the pulse-spreading constant is \n", + "D=dt/L;\n", + "#results\n", + "print 'The maximum permissible value for the pulse-spreading constant is',round(D,2),'ns/km'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 922" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a) The maximum bit rate for NRZ 0.00743 GHz\n", + "b) The maximum bit rate for NRZ 0.00371 GHz\n" + ] + } + ], + "source": [ + " \n", + "# page no 922\n", + "# prob no 25_3\n", + "#calculate the max bitrate in both cases#given\n", + "#given\n", + "from math import sqrt\n", + "L=45.;\n", + "T_Rtx=50.; T_Rrx=75.; T_Rf=100.;\n", + "#calculations and results\n", + "T_RT=sqrt(T_Rtx**2 + T_Rrx**2 + T_Rf**2);\n", + "# a) for NRZ\n", + "fb=1/T_RT;\n", + "print 'a) The maximum bit rate for NRZ',round(fb,5),'GHz'\n", + "# b) for RZ\n", + "fb=1/(2*T_RT);\n", + "print 'b) The maximum bit rate for NRZ',round(fb,5),'GHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 924" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Dispersion is 1.0 ns/km\n", + "Total rise time is 5.0 ns\n" + ] + } + ], + "source": [ + " \n", + "# page no 924\n", + "# prob no 25_4\n", + "#calculate the total rise time and dispersion\n", + "#given\n", + "Bl=500.;#in MHz-km\n", + "L=5.;#in km\n", + "#calculations and results\n", + "# using the bandwidth-distance product formula dispersion is given as\n", + "D=500/Bl;\n", + "print 'Dispersion is',D,'ns/km'\n", + "# Total rise time is given as\n", + "T_rt= D*L;\n", + "print 'Total rise time is',T_rt,'ns'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 924" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum acceptable dispersion is 0.139 ns/km\n", + "The bandwidth-distance product is 3608.439 MHz-km\n" + ] + } + ], + "source": [ + " \n", + "# page no 924\n", + "# prob no 25_5\n", + "#calculate the max acceptable dispersion and bandwidth-distance product\n", + "#given\n", + "from math import sqrt\n", + "T_Rrx=3.*10**-9;\n", + "T_Rtx=2.*10**-9;\n", + "fb=100.*10**6;#in bps\n", + "L=25;#in km\n", + "#calculations and results\n", + "T_RT = 1/(2*fb)\n", + "# we have to compute rise time therefore\n", + "T_rf= sqrt(T_RT**2 - T_Rtx**2 - T_Rrx**2)\n", + "# dispersion per km is\n", + "D= T_rf/L;\n", + "print 'The maximum acceptable dispersion is',round(D/10**-9,3),'ns/km'\n", + "# using the bandwidth-distance product\n", + "Bl=500/D;\n", + "print 'The bandwidth-distance product is',round(Bl*10**-9,3),'MHz-km'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter3.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter3.ipynb new file mode 100644 index 00000000..c0bd9d20 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter3.ipynb @@ -0,0 +1,414 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : The Amplitude Modulation" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 105" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "V(t) = ( 2.83 + 1.41 *sin( 3142.0 *t))*sin( 9424778.0 *t) V\n" + ] + } + ], + "source": [ + "# page no 105\n", + "# prob no 3.1\n", + "#calculate the Voltage equation\n", + "from math import pi, sqrt\n", + "# given\n", + "Erms_car=2; f_car=1.5*10**6;f_mod=500;Erms_mod=1;\n", + "# Equation requires peak voltages & radian frequencies\n", + "#calculations\n", + "Ec=sqrt(2)*Erms_car; Em=sqrt(2)*Erms_mod;\n", + "wc=2*pi*f_car; \n", + "wm=2*pi*f_mod;t=1;\n", + "#results\n", + "# Therefore the equation is \n", + "print 'V(t) = (',round(Ec,2),'+ ',round(Em,2),'*sin(',round(wm),'*t))*sin(',round(wc),'*t) V'\n", + "#print 'v(t) = (2.83+1.41*sin(3.14*10**3*t))*sin(9.42*10**6*t) V'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 106" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m = 0.5\n", + "The equation can be obtained as v(t) = 2.83(1+ 0.5 *sin(3.14*10**3*t))*sin(9.42*10**6*t) V\n" + ] + } + ], + "source": [ + "#page no 106\n", + "#prob no 3.2\n", + "#calculate the voltage equation\n", + "# To avoid the round-off errors we should use the original voltage values\n", + "#given\n", + "Em=1.;Ec=2.;\n", + "#Calculations\n", + "m=Em/Ec;\n", + "#results\n", + "print 'm =',m\n", + "print 'The equation can be obtained as','v(t) = 2.83(1+ ',m,'*sin(3.14*10**3*t))*sin(9.42*10**6*t) V'," + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 109" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The modulation index is 0.374\n" + ] + } + ], + "source": [ + "#page no 109\n", + "#prob no 3.3\n", + "#calculate the modulation index\n", + "from math import sqrt\n", + "#given\n", + "E_car=10.;E_m1=1.;E_m2=2.;E_m3=3.;\n", + "#calculations\n", + "m1=E_m1/E_car;\n", + "m2=E_m2/E_car;\n", + "m3=E_m3/E_car;\n", + "mT=sqrt(m1**2+m2**2+m3**2);\n", + "#results\n", + "print 'The modulation index is',round(mT,3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 110" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The modulation index is 0.364\n" + ] + } + ], + "source": [ + "#page no 110\n", + "#prob no 3.4\n", + "#calculate the modulation index\n", + "#refer fig 3.2\n", + "#given\n", + "E_max=150.; E_min=70;# voltages are in mV\n", + "#calculations\n", + "m=(E_max-E_min)/(E_max+E_min);\n", + "#results\n", + "print 'The modulation index is',round(m,3)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 114" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum modulation freq is 5000.0 Hz\n" + ] + } + ], + "source": [ + "#page no 114\n", + "#prob no 3.6\n", + "#calculate the max modulation frequency\n", + "#given\n", + "B=10.*10**3;\n", + "#calculations\n", + "# maximum modulation freq is given as \n", + "fm=B/2;\n", + "#results\n", + "print 'The maximum modulation freq is',fm,'Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 116" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total power is 66.0 kW\n" + ] + } + ], + "source": [ + "#page no 116\n", + "#prob no 3.7\n", + "# AM broadcast transmitter\n", + "#calculate the total power\n", + "#given\n", + "Pc=50.;m=0.8;#power is in kW\n", + "#calculations\n", + "Pt=Pc*(1+m**2 /2);\n", + "#results\n", + "print 'The total power is',Pt,'kW'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 118" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Signal Frequency in Hz = 426000\n" + ] + } + ], + "source": [ + "# page no 118\n", + "# prob no 8.6\n", + "#calculate the signal frequency\n", + "#2 kHz tone is present on channel 5 of group 3 of supergroup\n", + "#signal is lower sided so\n", + "#given\n", + "fc_channel_5=92*10**3;\n", + "#calculations\n", + "fg=fc_channel_5 - (2*10**3);# 2MHz baseband signal\n", + "# we know group 3 in the supergroup is moved to the range 408-456 kHz with a suppressed carrier frequency of 516kHz\n", + "f_s_carr=516*10**3;\n", + "fsg=f_s_carr - fg;\n", + "#results\n", + "print'The Signal Frequency in Hz =',fsg;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 122" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The total power is 200.0 uW\n", + "The modulating freq is 2.0 kHz\n", + "The carrier freq 10.0 MHz\n" + ] + } + ], + "source": [ + "#page no 122\n", + "#prob no. 3.9\n", + "#calculate the total power, modulating frequency and carrier frequency\n", + "# refer fig 3.14\n", + "#given\n", + "# from spectrum we can see that each of the two sidebands is 20dB below the ref level of 10dBm. \n", + "#Therefore each sideband has a power of -10dBm i.e. 100uW.\n", + "power_of_each_sideband = 100.;\n", + "#calculations and results\n", + "Total_power = 2.* power_of_each_sideband;\n", + "print 'The total power is',Total_power,'uW'\n", + "div=4; freq_per_div=1.;\n", + "sideband_separation = div * freq_per_div;\n", + "f_mod= sideband_separation/2;\n", + "print 'The modulating freq is ',f_mod,'kHz'\n", + "# Even if this siganl has no carrier, it still has a carrier freq which is midway between the two sidebands. Therefore\n", + "carrier_freq = 10.;\n", + "print 'The carrier freq',carrier_freq,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 126" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The o/p freq f_out1 is 7 MHz\n", + "The o/p freq f_out2 is 7.9965 MHz\n" + ] + } + ], + "source": [ + "# page no 126\n", + "# prob no 3.10\n", + "#calculate the o/p frequency in both cases\n", + "#given\n", + "f_car=8*10**6;f_mod1=2*10**3;f_mod2=3.5*10**3;\n", + "#calculations\n", + "#Signal is LSB hence o/p freq is obtained by subtracting f_mod from f_car\n", + "f_out1=f_car-f_mod1; \n", + "f_out2=f_car-f_mod2; \n", + "#results\n", + "print 'The o/p freq f_out1 is ',f_out1/(10**6),'MHz'\n", + "print 'The o/p freq f_out2 is ',f_out2/(10**6),'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 127" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of average power of signal is 1.5625 W\n" + ] + } + ], + "source": [ + "# page no 127\n", + "# prob no 3.11\n", + "#calculate the value of average power of signal\n", + "from math import sqrt\n", + "#Refering the fig. 3.17\n", + "#From fig it is clear that thee waveform is made from two sine waves \n", + "#given\n", + "Vp=12.5;#Since Vp-p is 25V from fig hence individual Vp is half of Vp-p\n", + "Rl=50.;#Load resistance is 50 ohm\n", + "#Determination of average power\n", + "#calculations\n", + "Vrms=Vp/sqrt(2);\n", + "P=((Vrms)**2)/Rl;\n", + "#results\n", + "print 'The value of average power of signal is ',P,'W'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter4.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter4.ipynb new file mode 100644 index 00000000..8b403455 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter4.ipynb @@ -0,0 +1,476 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4 : Angle Modulation" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 139" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The value of o/p freq is 175.0045 MHz\n", + "b)The value of o/p freq is 174.94 MHz\n" + ] + } + ], + "source": [ + "#page no 139\n", + "#prob no. 4.1\n", + "#Calculate the o/p frequency\n", + "#An FM modulator is given with kf=30kHz/V operate at carrier freq 175MHz\n", + "#given\n", + "fc=175.*10**6;kf=30.*10**3;\n", + "#a)Determination of o/p freq for modulating signal value em1=150mV \n", + "em1=150*10**-3;\n", + "#calculations and results\n", + "fsig1=fc+(kf*em1);\n", + "print 'a)The value of o/p freq is ',fsig1/(10**6),'MHz'\n", + "#b)Determination of o/p freq for modulating signal value em2=-2V \n", + "em2=-2;\n", + "fsig2=fc+(kf*em2);\n", + "print 'b)The value of o/p freq is ',fsig2/(10**6),'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 140" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of deviation is 127.279 kHz\n" + ] + } + ], + "source": [ + "#page no 140\n", + "#prob no. 4.2\n", + "#calculate the value of deviation\n", + "from math import sqrt\n", + "#An FM modulator is given which is modulated by sine wave 3V\n", + "#given\n", + "v=3.;\n", + "kf=30.*10**3;\n", + "#calculations\n", + "#Determination of peak value \n", + "Em=v*sqrt(2);\n", + "#Determination of deviation delta\n", + "delta=kf*Em;\n", + "#results\n", + "print 'The value of deviation is ',round(delta/1000.,3),'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 140" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The value of modulation index for fm=15kHz is 5.0\n", + "b)The value of modulation index for fm=50Hz is 1500.0\n" + ] + } + ], + "source": [ + "#page no 140\n", + "#prob no. 4.3\n", + "#calculate the value of modulation index in both cases\n", + "#An FM broadcaster transmitter operate at max deviatn of 75kHz\n", + "#given\n", + "delta=75.*10**3;\n", + "#a)Determination of modulation index with modulating freq of signal =15kHz\n", + "fm1=15.*10**3;\n", + "#calculations and results\n", + "mf1=delta/fm1;\n", + "print 'a)The value of modulation index for fm=15kHz is ',mf1\n", + "#b)Determination of modulation index with modulating freq of signal =50Hz\n", + "fm2=50;\n", + "mf2=delta/fm2;\n", + "print 'b)The value of modulation index for fm=50Hz is ',mf2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 141" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The rms voltage that cause deviation is 0.37 V\n" + ] + } + ], + "source": [ + " \n", + "#page no 141\n", + "#prob no. 4.4\n", + "from math import pi, sqrt\n", + "#calculate the rms voltage\n", + "#A phase modulator is given with kp=2rad/V \n", + "#given\n", + "kp=2;\n", + "#Peak phase deviation of 60 degree\n", + "#calculations\n", + "#Converting degree in radian \n", + "phi=(2*pi*60)/360;\n", + "#Determination of peak voltage that cause that deviation \n", + "Vp=phi/kp;\n", + "#Determination of rms voltage\n", + "Vrms=Vp/(sqrt(2));\n", + "#results\n", + "print 'The rms voltage that cause deviation is ',round(Vrms,2),'V'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 145" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The freq deviation produce is 6.0 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 145\n", + "#prob no. 4.6\n", + "#calculate the freq deviation \n", + "#given\n", + "#Phase modulator with sensitivity kp=3rad/V & sine wave i/p 2 V peak at 1kHz\n", + "kp=3.;Vp=2.;f=1*10**3;\n", + "#calculations\n", + "#As max value of sine functn is 1, hence max value of phi is kp*Vp\n", + "phi_max=kp*Vp;\n", + "#phi_max is nothing but mp\n", + "mp=phi_max;\n", + "#value of mf is same as mp if signal is considered as freq modulation\n", + "#Determination of freq deviation\n", + "dev=mp*f;\n", + "#results\n", + "print 'The freq deviation produce is',dev/1000,'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 149" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The rms signal voltage is 15.8113883008 V\n", + "b)The rms voltage of side bands are\n", + "Vc= 4.11\n", + "V1= 5.38\n", + "V2= 7.75\n", + "V3= 0.0\n", + "c)The 3 side bands at different freq. are \n", + "f_usb1= 160.0\n", + "f_usb2= 160.0\n", + "f_usb3= 0.0\n", + "f_lsb1= 160.0\n", + "f_lsb2= 160.0\n", + "f_lsb3= 0.0\n", + "d)The power of each side band is\n", + "Pc= 0.34\n", + "P1= 0.58\n", + "P2= 1.2\n", + "P3= 0.0\n", + "e)Percentage total power which is uncounted is 28.3697047497 % f)Power of each side bands in dBm is\n", + "Pc(dBm)= 25.29\n", + "P1(dBm)= 27.62\n", + "P2(dBm)= 30.79\n", + "P3(dBm)= 0.0\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAENCAYAAAAMmd6uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xu8jWX6+PHPJVLxS6KZiMlURk0nfBuhpnbC6CCpqUn9\nStPQEI1C1PyETq8cItTQUA7jy0S+O/UtDYktGafKZm/lUElqZ0aHSbWjcP/+uB/Z2Hud9nrW/Ryu\n9+u1X9Zeaz3ruR577Wvf636u57rFGINSSqnoq+I6AKWUUrmhCV8ppWJCE75SSsWEJnyllIoJTfhK\nKRUTmvCVUiomkiZ8EakuIitFZI2IFInIEO/+34pIsYjsFZHm/oeqlFKqMqome4IxZreIXGKMKRWR\nI4BlIvIKUAR0Bv7qd5BKKaUqL2nCBzDGlHo3q3vbGGPMRgAREZ9iU0oplUUpzeGLSBURWQNsB141\nxqz2NyyllFLZllLCN8bsM8Y0AxoA54vIL/0NSymlVLalNKWznzFmp4gsBjoA76SyjYhosx6llMqA\nMSarU+apVOnUFZFa3u2jgXbAhkOflug1jDGR/RoyZIjzGPT49Nj0+KL35YdUpnTqAYtFpBBYCcw3\nxswTkatFZBvQEnjJq9xRSikVUKmUZRYBh9XZG2PmAnP9CEoppVT26ZW2lZSXl+c6BF9F+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ne/T8B5ovIXmw74pvL7HasiJzrbfOA\nMea9Mo/9Drsq1Y+MMa96fwiWiwjA18D/FZEmwE1AkYis8V7vz8aYf2Thv6Zc2jxNKaViQqd0lFIq\nJjThK6VUTGjCV0qpmNCEr5RSMaEJXymlYkITvlJKxYQmfKWUiglN+EopFRP/H6SaK/GDr87+AAAA\nAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x3715da0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + " \n", + "#page no 149\n", + "#prob no. 4.7\n", + "#calculate the rms voltage in all cases \n", + "%matplotlib inline\n", + "from math import sqrt, log10\n", + "import numpy\n", + "import matplotlib\n", + "from matplotlib import pyplot\n", + "#given\n", + "#An FM signal has deviation 3kHz & modulating freq 1kHz with total power Pt=5W\n", + "#developed across 50 ohm with fc=160 MHz\n", + "dev = 3. * 10 ** 3\n", + "fm = 10 ** 3\n", + "Pt = 5.\n", + "Rl = 50.\n", + "fc = 160. * 10 ** 6\n", + "#calculations and results\n", + "#a)Determination of RMS signal voltage\n", + "Vt = sqrt(Pt * Rl)\n", + "print 'a)The rms signal voltage is',Vt,'V'\n", + "######/b)Determination of rms voltage at carrier freq\n", + "#for that modulation index needs to be found out\n", + "mf = dev / fm\n", + "#From bessel function table, the coeff for the carrier first 3 side bands\n", + "J = ([0.26,0.34,0.49,0.31])\n", + "V = numpy.zeros(4)\n", + "print 'b)The rms voltage of side bands are'\n", + "for i in range(0,3):\n", + " V[i] = J[i] * Vt\n", + "\n", + "print 'Vc=',round(V[0],2)\n", + "print 'V1=',round(V[1],2)\n", + "print 'V2=',round(V[2],2)\n", + "print 'V3=',round(V[3],2)\n", + "#####/c)Determination of freq of each side bands########\n", + "print 'c)The 3 side bands at different freq. are '\n", + "f_usb = numpy.zeros(3)\n", + "for j in range(0,2):\n", + " f_usb[j] = fc / 10 ** 6 + (fm * j / 10 ** 6)\n", + "\n", + "print 'f_usb1=',round(f_usb[0],2)\n", + "print 'f_usb2=',round(f_usb[1],2)\n", + "print 'f_usb3=',round(f_usb[2],2)\n", + "\n", + "f_lsb = numpy.zeros(3)\n", + "for j in range(0,2):\n", + " f_lsb[j] = fc / 10 ** 6 - (fm * j / 10 ** 6)\n", + "\n", + "print 'f_lsb1=',round(f_lsb[0],2)\n", + "print 'f_lsb2=',round(f_lsb[1],2)\n", + "print 'f_lsb3=',round(f_lsb[2],2)\n", + "\n", + "P = numpy.zeros(4)\n", + "a = numpy.zeros(4)\n", + "######d)Determination of power of each side band########/\n", + "for i in range(0,3):\n", + " P[i] = ((V[i]) ** 2) / Rl\n", + " a[i] = (P[i]) / (10 ** -3)\n", + "\n", + "print 'd)The power of each side band is'\n", + "print 'Pc=',round(P[0],2)\n", + "print 'P1=',round(P[1],2)\n", + "print 'P2=',round(P[2],2)\n", + "print 'P3=',round(P[3],2)\n", + "\n", + "#####e)Determination of power that is uncounted\n", + "P = P[0] + 2 * (P[2] + P[3] + P[1])\n", + "#As total power is 5 W\n", + "P_x = Pt - P\n", + "#Percentage of total power uncounted\n", + "Px = (P_x / P) * 100\n", + "print 'e)Percentage total power which is uncounted is',Px,'%',\n", + "#####f)Ploting the signal in freq domain##########/\n", + "#Converting power in dBm\n", + "P_dBm = numpy.zeros(4)\n", + "for i in range(0,3):\n", + " #a(k)=(P(k))/(10**-3);\n", + " P_dBm[i] = 10 * log10(a[i]) \n", + "\n", + "print 'f)Power of each side bands in dBm is'\n", + "print 'Pc(dBm)=',round(P_dBm[0],2)\n", + "print 'P1(dBm)=',round(P_dBm[1],2)\n", + "print 'P2(dBm)=',round(P_dBm[2],2)\n", + "print 'P3(dBm)=',round(P_dBm[3],2)\n", + "\n", + "x = ([159.997,159.998,159.999,160.0,160.001,160.002,160.003])\n", + "y = ([26.8,30.8,27.6,25.3,27.6,30.8,26.8])\n", + "pyplot.plot(x,y);\n", + "pyplot.show();\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 157" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The SNR at detector o/p is 33.979 dB\n" + ] + } + ], + "source": [ + " \n", + "#page no 157\n", + "#prob no. 4.9\n", + "#calculate the SNR at detector o/p\n", + "from math import log10\n", + "#given\n", + "#An FM signal has freq deviation of 5kHz modulating freq fm=1kHz with SNR at i/p is 20 dB\n", + "#Converting dB in voltage ratio\n", + "fm=1.*10**3;dev_s=5.*10**3;snr=20.;\n", + "#calculations\n", + "Es_En=10**(snr/20);\n", + "#Since Es>>En then \n", + "phi=1/(Es_En);\n", + "m_fn=phi;#modulation index equal to phi_n\n", + "dev_n=(m_fn)*fm;#Equivalent freq deviation due to noise\n", + "#SNR as a voltage ratio is given as\n", + "SNR=(dev_s)/(dev_n);\n", + "#Converting this voltage ration in dB\n", + "SNR_dB=20*(log10(SNR));\n", + "#results\n", + "print 'The SNR at detector o/p is',round(SNR_dB,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 163" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The freq is with in the acceptable range 2.083 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 163\n", + "#prob no. 4.10\n", + "#calculate whether the freq is with in the acceptable range\n", + "#Refer the fig. 4.19\n", + "#given\n", + "# We know this transmitter is designed for voice frequencies,so we have to use trial \n", + "#and error method to produce a carrier null for a deviation of 5kHz\n", + "mf=2.4;# starting with the first null for mf=2.4\n", + "dev=5;#in kHz\n", + "#calculations and results\n", + "fm=dev/mf;\n", + "if (0.3 <= fm and 3>=fm):\n", + " print 'The freq is with in the acceptable range',round(fm,3),'kHz'\n", + "else:\n", + " mf=5.5;\n", + " fm=dev/mf;\n", + " print 'The freq is with in the acceptable range',round(fm,3),'kHz'\n", + "# for this calculated fm, set the function generator to the value of fm so that the deviation is 5kHz" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter5.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter5.ipynb new file mode 100644 index 00000000..43d274af --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter5.ipynb @@ -0,0 +1,448 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5 : Transmitters" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 179" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of dc power input is 14.29 W\n", + "The value of audio power is 7.14 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 179\n", + "#prob no. 5.2\n", + "#calculate the power in both cases\n", + "#A transmitter with carrier power o/p 10W at efficiency 70% at 100% modulatn\n", + "#given\n", + "Po=10.;eta=0.7;\n", + "#calculations\n", + "#Determination of dc power o/p\n", + "Ps=Po/eta;\n", + "Pa=0.5*Ps;\n", + "#results\n", + "print 'The value of dc power input is',round(Ps,2),'W'\n", + "#Determination of audio power \n", + "print 'The value of audio power is',round(Pa,2),'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 181" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The impedance of transformer secondary is 6.0 ohm\n", + "The impedance of transformer primary is 96.0 ohm\n" + ] + } + ], + "source": [ + " \n", + "#page no 181\n", + "#prob no. 5.3\n", + "#calculate the impedance of both transformers\n", + "#given\n", + "#A transmitter operates at 12V, with collector current 2A.Modulatn transformer has turn ratio 4:1\n", + "#Determination of impedance at transformer secondary \n", + "Vcc=12.;Ic=2.;N1=4.;N2=1.;\n", + "#calculations\n", + "Za=Vcc/Ic;\n", + "Zp=Za*(N1/N2)**2;\n", + "#results\n", + "print 'The impedance of transformer secondary is',Za,'ohm'\n", + "#Determination of impedance of transformer primary \n", + "print 'The impedance of transformer primary is',Zp,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 182" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The o/p power with 100% modulation is 150.0 W\n", + "The value of supply power is 214.286 W\n", + "Power dissipated is 64.286 W\n" + ] + } + ], + "source": [ + " \n", + "#page no 182\n", + "#prob no. 5.4\n", + "#calculate the o/p power, supply power and dissipated power\n", + "#Class C amplifier with carrier o/p power of 100W with efficiency of 70% & with 100% modulation\n", + "#given\n", + "Pc=100;eta=0.7;\n", + "#calculations and results\n", + "#Determination of o/p power\n", + "Po=1.5*Pc;\n", + "print 'The o/p power with 100% modulation is',Po,'W'\n", + "#Determination of supply power\n", + "Ps=Po/eta;\n", + "print 'The value of supply power is',round(Ps,3),'W'\n", + "#Determination of power dissipated Pd\n", + "Pd=Ps-Po;\n", + "print 'Power dissipated is',round(Pd,3),'W'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 184" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The load impedance is 11.25 ohm\n" + ] + } + ], + "source": [ + " \n", + "#page no 184\n", + "#prob no. 5.5\n", + "#calculate the load impedance\n", + "#given\n", + "#An FM transmitter produce 10W of carrier power operating at 15V\n", + "Vcc=15.;Pc=10.;\n", + "#calculations\n", + "#Determination of load impedance seen from collector\n", + "Rl=((Vcc)**2)/(2*Pc);\n", + "#results\n", + "print 'The load impedance is',Rl,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 193" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The USB will be passed\n", + "b)The carrier freq should be moved to the high end of filter at 5.0015 MHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 193\n", + "#prob no. 5.6\n", + "#Refer fig. 5.13\n", + "#calculate the frequency required\n", + "#given\n", + "#Filter method SSB generator \n", + "fc=5.*10**6;#filter centre freq.\n", + "BW=3.*10**3;#Filter bandwidth\n", + "#calculations\n", + "foc=4.9985*10**6;#carrier oscillator freq.\n", + "foc2 = foc + BW\n", + "#results\n", + "print 'a)The USB will be passed'#Since carrier freq is at low end of passband\n", + "print 'b)The carrier freq should be moved to the high end of filter at',foc2/10**6,'MHz'#To generate the LSB" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 196" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The freq of local oscillator 12.5015 MHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 196\n", + "#prob no. 5.7\n", + "#calculate the freq of local oscillator\n", + "#SSB transmitter refering fig.5.17 to transmit USB signal at carrier freq 21.5MHz\n", + "#given\n", + "fo=21.5;#carrier freq in MHz\n", + "foc=8.9985;#carrier oscillator freq. in MHz\n", + "#calculations\n", + "#Determination of freq of local oscillator\n", + "flo=fo-foc;\n", + "#results\n", + "print 'The freq of local oscillator',flo,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 199" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The o/p carrier freq 21.503 MHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 199\n", + "#prob no. 5.8\n", + "#given\n", + "#LSB transmitter refering fig.5.14 with new carrier freq 9.0015 MHz & local oscillator freq 12.5015MHz\n", + "fco=9.0015;#carrier oscillator freq\n", + "flo=12.5015;#local oscillator freq\n", + "#calculations\n", + "#Determination of new o/p freq\n", + "fo=fco+flo;\n", + "#results\n", + "print 'The o/p carrier freq',fo,'MHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 204" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)See fig.5.23 for this block diagram\n", + "b)Transmitter is capable of 5kHz deviation\n", + "c)The oscillator freq is 8.333 MHz\n", + "The audio RMS voltage is 97.934 mV\n" + ] + } + ], + "source": [ + " \n", + "#page no 204\n", + "#prob no. 5.9\n", + "#A direct FM transmitter with kf=2kHz/V & max deviatn of 300Hz.\n", + "#calculate the freq, rms voltage\n", + "from math import sqrt\n", + "#given\n", + "kf=2.*10**3;tx_dev=300.;\n", + "print 'a)See fig.5.23 for this block diagram'\n", + "f_mul=3*2*3;#3 stage freq multiplier with tripler doubler and tripler\n", + "#b)Determination of max dev at oscillator \n", + "dev_o=5*10**3;#Deviation at o/p\n", + "dev_osc=dev_o/f_mul;\n", + "if dev_osc < tx_dev:\n", + " print 'b)Transmitter is capable of 5kHz deviation'\n", + "else:\n", + " print 'b)Transmitter is not capable of 5kHz deviation'\n", + "#c)Determination of oscillator freq\n", + "fo=150.;#carrier freq in MHz\n", + "fosc=fo/f_mul;\n", + "print 'c)The oscillator freq is',round(fosc,3),'MHz'\n", + "#d)Determination of audio voltage for full deviation\n", + "Vi_peak=dev_osc/kf;#dev at oscillator of 278Hz causes full 5kHz deviation\n", + "#converting peak voltage to rms voltage\n", + "Vi_RMS=Vi_peak/sqrt(2);\n", + "print 'The audio RMS voltage is',round(Vi_RMS*10**3,3),'mV'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 206" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Freq deviation of oscillator is 231.481 Hz\n" + ] + } + ], + "source": [ + " \n", + "#page no 206\n", + "#prob no. 5.10\n", + "#Refer fig.5.24\n", + "#calculate the freq deviation\n", + "#given\n", + "#Till the antenna there are 2 doubler and 4 tripler\n", + "f_mul=18.*18;\n", + "dev_o=75*10**3;#o/p freq deviation is 75kHz\n", + "#calculations\n", + "#Determiantion of reqd freq deviation of oscillator\n", + "dev_osc=dev_o/f_mul;\n", + "#results\n", + "print 'Freq deviation of oscillator is',round(dev_osc,3),'Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 207" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The carrier freq of o/p signal 20.0 MHz\n", + "The RMS voltage for needed deviation is 141.42 mV\n" + ] + } + ], + "source": [ + " \n", + "#page no 207\n", + "#prob no. 5.11\n", + "#calculate the carrier freq and rms voltage\n", + "#given\n", + "from math import sqrt\n", + "#A PLL FM generator refering fig.5.25 with\n", + "f_ref=100.*10**3;N=200.;kf=50.*10**3;#in Hz/V\n", + "#calculations and results\n", + "#a)Determination of carrier freq of o/p signal\n", + "fc=N*f_ref;\n", + "print 'The carrier freq of o/p signal',fc/10**6,'MHz'\n", + "#b)Determination of RMS modulating voltage for 10kHz deviation\n", + "dev=10.*10**3;\n", + "Vp=dev/kf;\n", + "#Converting peak voltage to RMS voltage\n", + "V_RMS=Vp/sqrt(2);\n", + "print 'The RMS voltage for needed deviation is ',round(V_RMS*1000,2),'mV'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter6.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter6.ipynb new file mode 100644 index 00000000..5b2b2ff2 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter6.ipynb @@ -0,0 +1,404 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6 : Receivers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 227" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The Bandwidth at 1700kHz is 17.743 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 227\n", + "#prob no. 6.1\n", + "#calculate the bandwidth\n", + "#given\n", + "from math import sqrt\n", + "#A tuned ckt with broadast band (540 to 1700 kHz).Bw=10kHz at 540 kHz\n", + "BW1=10.*10**3;f1=540.*10**3;f2=1700.*10**3;#all in Hz\n", + "#calculations\n", + "#Determination of BW at 1700kHz\n", + "BW2=BW1*sqrt(f2/f1);\n", + "#results\n", + "print 'The Bandwidth at 1700kHz is ',round(BW2/1000,3),'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 236" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The voltage value of signal is 1.581 mV\n" + ] + } + ], + "source": [ + " \n", + "#page no 236\n", + "#prob no. 6.4\n", + "#calculate the voltage value of the signal\n", + "#given\n", + "#A receiver with sensitivity 0.5uV & blocking dynamic range 70dB.\n", + "#Determination of vpltage signal V1 \n", + "P1_P2=70.;V2=0.5*10**-6;#let\n", + "#calculations\n", + "V1=V2*10**(P1_P2/20);\n", + "#results\n", + "print 'The voltage value of signal is',round(V1*1000,3),'mV'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 238" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The image freq is 1500.0 kHz\n", + "b)The image rejection is 38.687 dB\n" + ] + } + ], + "source": [ + " \n", + "#page no 238\n", + "#prob no. 6.5\n", + "#calculate the image freq and rejection\n", + "#Refer the fig 6.5\n", + "from math import sqrt, log10\n", + "#A receiver tuned to station at 590kHz \n", + "#given\n", + "f_if=455.*10**3;#Intermediate freq\n", + "f_sig=590.*10**3;\n", + "#calculations and results\n", + "#a)Determintion of image freq\n", + "f_image=f_sig+2*f_if;\n", + "print 'a)The image freq is',f_image/1000,'kHz'\n", + "Q=40.;#Q_factor\n", + "#b)Determination of image rejection \n", + "x=(f_image/f_sig)-(f_sig/f_image);\n", + "Asig_Aimage=sqrt(1+(Q*x)**2);#image rejection\n", + "#converting in dB\n", + "IR_dB=20*log10(Asig_Aimage);\n", + "print 'b)The image rejection is',round(IR_dB,3),'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 239" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "All freqs are in MHz. The different freqs are [ 10. -0.9 21.8 0. ] [ 10. -0.9 21.8 0. ]\n" + ] + } + ], + "source": [ + " \n", + "#page no 239\n", + "#prob no. 6.6\n", + "#calculate the frequencies in all cases\n", + "#given\n", + "import numpy\n", + "#An AM high-freq receiver with IF=1.8MHz tuned at freq 10MHz\n", + "f_sig = 10\n", + "f_if = 1.8#All freq in MHz\n", + "#calculations\n", + "#Determination of local oscillator freq f_lo\n", + "f_lo = f_sig + f_if\n", + "#determination of freq. that cause IF response\n", + "m = ([1, 1, 2, 2])#values of m that are integer\n", + "n = ([1, 2, 1, 2])#values of n that are integer\n", + "fs1 = fs2 = numpy.zeros(4);\n", + "for i in range(0,3):\n", + " fs1[i] = ((m[i] / n[i]) * (f_lo)) + ((f_if) / n[i])\n", + "\n", + "for i in range(0,3):\n", + " fs2[i] = ((m[i] / n[i]) * (f_lo)) - ((f_if) / n[i])\n", + "\n", + "print 'All freqs are in MHz.','The different freqs are',fs1,fs2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7 : pg 245" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the sensitivity of detector is 60.0 uV/Hz\n" + ] + } + ], + "source": [ + " \n", + "#page no 245\n", + "#prob no. 6.7\n", + "#calculate the sensitivity of detector\n", + "#An FM detector produce Vpp=1.2V with dev=10kHz\n", + "#given\n", + "Vpp=1.2;dev=10.*10**3;\n", + "#calculations\n", + "#Determination of detector sensitivity\n", + "Vp=Vpp/2;#Peak voltage\n", + "kd=Vp/dev;\n", + "#results\n", + "print 'the sensitivity of detector is',kd*10**6,'uV/Hz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8 : pg 249" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The RMS voltage is 0.53 V\n" + ] + } + ], + "source": [ + " \n", + "#page no 249\n", + "#prob no. 6.8\n", + "#calculate the rms voltage\n", + "from math import sqrt\n", + "#given\n", + "#A PLL FM detector with kf=100kHz/V & dev=75kHz\n", + "kf=100.*10**3;dev=75.*10**3;\n", + "#calculations\n", + "#Determination of RMS voltage\n", + "Vp_op=dev/kf;\n", + "#Converting peak voltage in RMS voltage\n", + "V_RMS=Vp_op/sqrt(2);\n", + "#results\n", + "print 'The RMS voltage is',round(V_RMS,3),'V'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9 : pg 258" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a)The critical coupling factor is 0.029\n", + "b)The optimum coupling factor is 0.043\n", + "c)The BW using optimum coupling factor is 19.702 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 258\n", + "#prob no. 6.9\n", + "#calculate the critical and optimum coupling factor, BW\n", + "from math import sqrt\n", + "#given\n", + "#An IF transformer at 455kHz & primary ckt has Qp=40 & secondary Q=30\n", + "fo=455.*10**3;Qp=40.;Qs=30.;\n", + "#calculations and results\n", + "#a)Determination of critical coupling factor\n", + "kc=1/sqrt(Qp*Qs);\n", + "print 'a)The critical coupling factor is',round(kc,3)\n", + "#b)Determination of optimum coupling factor\n", + "Kopt=1.5*kc;\n", + "print 'b)The optimum coupling factor is',round(Kopt,3)\n", + "#c)Determination of optimum coupling factor\n", + "B=Kopt*fo;\n", + "print 'c)The BW using optimum coupling factor is',round(B/1000,3),'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10 : pg 261" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The first IF is 4.5 MHz\n", + "The second IF is 500.0 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 261\n", + "#prob no. 6.10\n", + "#calculate the first and second IF\n", + "#given\n", + "#Receiver refering in fig.6.28\n", + "f_sig=25*10**6;#signal i/p freq\n", + "f_lo1=29.5*10**6;#Ist local oscillator freq\n", + "#calculations and results\n", + "#determination of Ist IF which uses high side injection\n", + "f_IF1=f_lo1-f_sig;#high side injection\n", + "print 'The first IF is',f_IF1/10**6,'MHz'\n", + "#Determination of IInd IF which uses low side injection\n", + "f_lo2=4*10**6;#IInd local oscillator freq\n", + "f_IF2=f_IF1-f_lo2;\n", + "print 'The second IF is',f_IF2/10**3,'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 11 : pg 265" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Signal strength at receiver i/p is 6.295 uV\n" + ] + } + ], + "source": [ + " \n", + "#page no 265\n", + "#prob no. 6.11\n", + "#calculate the signal strength at receiver i/p\n", + "#An S-meter is given\n", + "#given\n", + "V1=50*10**-6;#signal strength at transmitter in V\n", + "P=18.;#18 dB power\n", + "#calculations\n", + "V2=V1/(10**(P/20.));\n", + "#results\n", + "print 'Signal strength at receiver i/p is' ,round(V2*10**6,3),'uV'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter7.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter7.ipynb new file mode 100644 index 00000000..3756f68c --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter7.ipynb @@ -0,0 +1,270 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7 : Digital Communication" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 : pg 285" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "maximum data rate for four-level code in the available bandwidth 12.8 kb/s\n", + "maximum data rate for four-level code in the available bandwidth 37.21 kb/s\n" + ] + } + ], + "source": [ + " \n", + "#page no 285\n", + "#prob no 7.1\n", + "#calculate the max data rate in both cases\n", + "from math import log\n", + "# In the given problem a signal is transmitted using a four level code\n", + "#given\n", + "M=4.;\n", + "B=3.2;# in KKz\n", + "SNR=35.;#in dB\n", + "#calculations and results\n", + "#By using Shannon-Hartley theorem, ignoring noise we have\n", + "c=2*B*log(M) / log(2);\n", + "print 'maximum data rate for four-level code in the available bandwidth',c,'kb/s'\n", + "#Now we have to use Shannon limit to find the maximum data rate for any code\n", + "#SNR in power ratio is \n", + "SNR1=10**(35./10.);\n", + "C=B*log(1+SNR1) /log(2);\n", + "print 'maximum data rate for four-level code in the available bandwidth',round(C,2),'kb/s'\n", + "# Both results are maxima, we have to choose lesser of the two.\n", + "# Therefore we choose c=12.8kp/s" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 289" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The audible frequency is 14.1 KHz\n" + ] + } + ], + "source": [ + " \n", + "#page no. 289\n", + "# prob no. 7.2\n", + "# In the given problem\n", + "#calculate the audible frequency \n", + "#given\n", + "fm = 30.# in KHz\n", + "fs = 44.1#sampling rate in KHz\n", + "#calculations\n", + "fa = fs - fm# audible frequency\n", + "#results\n", + "print 'The audible frequency is',fa,'KHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 291" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "a) The number of levels with m=8 are 256.0 levels\n", + "b) The number of levels with m=16 are 65536 levels\n" + ] + } + ], + "source": [ + " \n", + "#page no 291\n", + "#prob no 7.3\n", + "#calculate the number of levels in both cases\n", + "#part a: no of samples,\n", + "#given\n", + "m=8.;\n", + "#calculations and results\n", + "N=2**m;# the number of levels\n", + "print 'a) The number of levels with m=8 are',N,'levels'\n", + "# part b:\n", + "m=16;\n", + "N=2**m;# the number of levels\n", + "print 'b) The number of levels with m=16 are',N,'levels'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 : pg 292" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Dynamic range for a linear PCM 98.08 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 292\n", + "# prob no 7.4\n", + "#calculate the dynamic range\n", + "#In the given problem\n", + "#given\n", + "m=16.;\n", + "#calculations\n", + "DR=1.76 +6.02*m ; #Dynamic range for a linear PCM in dB\n", + "#results\n", + "print 'Dynamic range for a linear PCM',DR,'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 295" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The minimum data rate needed to transmit audio is 560.0 Kb/s\n" + ] + } + ], + "source": [ + " \n", + "#page no 295\n", + "# prob no 7.5\n", + "#calculate the min data rate required\n", + "# in the given problem\n", + "#given\n", + "fs=40.; m=14;\n", + "#calculations\n", + "# the minimum data rate needed to transmit audio is given by\n", + "D=fs*m;\n", + "#results\n", + "print 'The minimum data rate needed to transmit audio is ',D,'Kb/s'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 294" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The maximum output voltage produced is 0.876 volts\n" + ] + } + ], + "source": [ + " \n", + "# page no 294\n", + "# prob no 7.6\n", + "#calculate the max output voltage required\n", + "# In the given problem, input to a mu-law compresser is +ve,\n", + "# with its voltage one-half the max value\n", + "from math import log\n", + "#given\n", + "u=255.;\n", + "Vi=1.;#maximum input value is considered as unity volts\n", + "vi=0.5;\n", + "V0=1.;#consider maximum output voltage as unity volts\n", + "#calculations\n", + "vo=V0* log(1+u*vi/Vi)/log(1+u);\n", + "#results\n", + "print 'The maximum output voltage produced is',round(vo,3),'volts'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter8.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter8.ipynb new file mode 100644 index 00000000..73a8384c --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter8.ipynb @@ -0,0 +1,152 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8 : The Telephone System" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 : pg 323" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The net loss is 0.8 dB\n" + ] + } + ], + "source": [ + " \n", + "# page no 323\n", + "# prob no 8.3\n", + "#calculate the net loss\n", + "#A telephone signal takes 3 ms to reach its destination\n", + "#given\n", + "t=2.;\n", + "#calculations\n", + "#Determination of net loss VNL reqd for acceptable amount of echo.\n", + "VNL=(0.2*t)+0.4;\n", + "#results\n", + "print 'The net loss is',VNL,'dB'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 : pg 326" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of carrier freq for channel 5 is 92.0 kHz\n" + ] + } + ], + "source": [ + " \n", + "# page no 326\n", + "# prob no 8.5\n", + "#calculate the carrier freq value\n", + "#given\n", + "#Refering the fig.8.15 channel 12 has lowest carrierr freq 64 kHz\n", + "F=64.;\n", + "c_total=12.;\n", + "#Carrier freq goes up 4kHz per channel\n", + "f_up=4;\n", + "#Determination of carrier freq for channel 5\n", + "c=5;\n", + "#calculations\n", + "fc=F+(f_up*(c_total-c));\n", + "#results\n", + "print 'The value of carrier freq for channel 5 is',fc,'kHz'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 328" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The tone appear in the supergroup output at frequency of 426.0 kHz\n" + ] + } + ], + "source": [ + " \n", + "#page no 328\n", + "#prob no 8.6\n", + "#calculate the tone \n", + "# 2kHz tone is present on channel 5 of group 3 of a supergroup\n", + "# refer to example 8.5, calculated fc=92kHz\n", + "#given\n", + "fc=92.;#in kHz\n", + "#calculations\n", + "# Here signal is lower sideband,the 2kHz baseband signal therefore will be\n", + "fg=fc-2;\n", + "#from fig 10.15,group 3 in the supergroup is moved to the range 408-456 kHz, with a suppressed carrier frequency of 516kHz.\n", + "fsc=516;# in kHz\n", + "#the modulation is lower sideband,so the supergroup o/p freq will be 90kHz lower than carrier freq\n", + "fsg=fsc-fg;\n", + "#results\n", + "print 'The tone appear in the supergroup output at frequency of',fsg,'kHz'" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/Chapter9.ipynb b/Electronic_Communication_Systems_by_Roy_Blake/Chapter9.ipynb new file mode 100644 index 00000000..ccb5e8e8 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/Chapter9.ipynb @@ -0,0 +1,108 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9 : Data Transmission" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 : pg 349" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The efficiency is 70.0 %\n" + ] + } + ], + "source": [ + " \n", + "# page no 349\n", + "# prob no 9.2\n", + "#calculate the efficiency\n", + "#given\n", + "Nd=7; N_start=1; N_stop=1.; N_parity=1;\n", + "#calculations\n", + "Nt= Nd + N_start+ N_stop + N_parity;\n", + "efficiency=Nd/Nt *100;\n", + "#results\n", + "print 'The efficiency is',efficiency,'%'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6 : pg 358" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "5 hammming bits are required\n" + ] + } + ], + "source": [ + " \n", + "# page no 358\n", + "# prob no 9.6\n", + "#calculate the no. of hamming bits\n", + "#given\n", + "m=21.;\n", + "#calculations and results\n", + "# The correct number of check bits is the smallest number that satisfy the equation 2**n >= m+n+1;\n", + "for n in range (1,10): # we choose range of 1 to 10\n", + " a=m+n+1;\n", + " b=2**n;\n", + " if(b>=a):\n", + " print n,'hammming bits are required'\n", + " break;\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter12.png b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter12.png Binary files differnew file mode 100644 index 00000000..fd234fb3 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter12.png diff --git a/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter13.png b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter13.png Binary files differnew file mode 100644 index 00000000..eb9952cc --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/Chapter13.png diff --git a/Electronic_Communication_Systems_by_Roy_Blake/screenshots/chapter1.png b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/chapter1.png Binary files differnew file mode 100644 index 00000000..69af8dd5 --- /dev/null +++ b/Electronic_Communication_Systems_by_Roy_Blake/screenshots/chapter1.png diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER1.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER1.ipynb new file mode 100644 index 00000000..b1e42e2c --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER1.ipynb @@ -0,0 +1,81 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 1:INTRODUCTION TO DYNAMICS" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 1/1,PAGE NUMBER:16" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data \n", + "W=100;# lb\n", + "theta=45;# degree\n", + "h=200;# mi\n", + "R=3959;# mi\n", + "g_f=32.1740;# ft/sec**2\n", + "g_m=9.80655;# m/s**2\n", + "g_0=32.234;# ft/sec**2\n", + "m_E=4.095*10**23;# lbf-s**2/ft\n", + "G=3.439*10**-8;# ft**4/(lbf-s**4)\n", + "\n", + "# Calculation\n", + "# (a)\n", + "m_a=W/g_f;# slugs\n", + "W_a=W*4.4482;# N\n", + "m=W_a/g_m;# kg\n", + "print\"(a)The mass of the module in slugs,m=%1.2f slugs \\n The weight of the module in newtons,W=%3.0f N \\n The mass of the module in kilograms,m=%2.1f kg\"%(m_a,W_a,m);\n", + "# Again using the table inside the front cover, we have\n", + "m=W*0.45359;# kg\n", + "# (b)\n", + "g_h=((g_0*(R**2)/(R+h)**2));\n", + "W_h=m_a*g_h;\n", + "print\"(b)The weight at an altitude of 200 miles is then,W_h=%2.1f lb\"%W_h;\n", + "W_h=W_h*4.4482;\n", + "print\" The weight at an altitude of 200 miles is in newton,W_h=%3.0f N\"%W_h;\n", + "W_h=(G*m_E*m_a)/((R+h)*5280)**2;\n", + "# (c)\n", + "# The weight of an object (the force of gravitational attraction) does not depend on the motion of the object. Thus the answers for part (c) are the same as those in part (b).\n", + "print\"(c)The weight of the module in both pounds and newtons,W_h=%2.1f lb (or) %3.0f N\"%(W_h,W_h*4.4482);\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER2.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER2.ipynb new file mode 100644 index 00000000..d50bcb21 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER2.ipynb @@ -0,0 +1,552 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 2:KINEMATICS OF PARTICLES" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/1,PAGE NUMBER:27" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "# s=2t**3-24t+6;\n", + "v_a=72;# Velocity in m/s\n", + "v_b=30;# Velocity in m/s\n", + "t_0=1;# s\n", + "t_1=4;# s\n", + "\n", + "# Calculation\n", + "# v=6t**2-24;\n", + "# a=12t;\n", + "# (a)\n", + "t=math.sqrt((v_a+24)/6);# Time in s\n", + "# (b)\n", + "a=math.sqrt((v_b+24)/6);# Time in s\n", + "# (c)\n", + "s4=((2*t_1**3)-(24*t)+6);# m\n", + "s1=((2*t_0**3)-(24*t_0)+6)# m;\n", + "deltaS=s4-s1;# The net displacement during the specified interval in m\n", + "print\"\\n(a)The time required for the particle to reach a velocity of 72 m/s from its initial condition at t=0 is %1.0f s.\\n(b)The acceleration of the particle a=%2.0f m/s**2 \\n(c)The net displacement,deltaS=%2.0f m\"%(t,a,deltaS);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/2,PAGE NUMBER:28" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "v_x=50;# The initial velocity in ft/sec\n", + "a_x=-10;# The acceleration in ft/sec**2\n", + "t_0=8;# s\n", + "t_1=12;# s\n", + "\n", + "# Calculation\n", + "# v_x=90-10t; ft/sec\n", + "v_x0=(90-(10*t_0));# The velocity in ft/sec\n", + "v_x1=(90-(10*t_1));# The velocity in ft/sec\n", + "# x=-5t**2+90t-80; ft\n", + "x_0=(-5*t_0**2)+(90*t_0)-80;# ft\n", + "x_1=(-5*t_1**2)+(90*t_1)-80;# ft\n", + "# The maximum positive x-coordinate is,then, the value of x for t=9 sec which is\n", + "t=9;# sec\n", + "x_max=(-5*t**2)+(90*t)-80;# ft\n", + "print\"\\nThe velocity of the particle for the conditions of t=8 sec and t=12 sec,v_x=%2.0f ft/sec & v_x=%2.0f ft/sec\"%(v_x0,v_x1)\n", + "print\"\\nThe x-coordinate of the particle for the conditions of t=8 sec and t=12 sec, x=%3.0f ft & x=%3.0f ft\"%(x_0,x_1)\n", + "print\"\\nThe maximum positive x-coordinate reached by the particle,x_max=%3.0f ft\"%x_max\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/5,PAGE NUMBER:46" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "%matplotlib inline\n", + "import math\n", + "from matplotlib.pyplot import plot,suptitle,xlabel,ylabel\n", + "import numpy as np\n", + "# Variable declaration\n", + "# v_x=50-60t;\n", + "# y=100-4t**2;\n", + "# where v_x is in meters per second, y is in meters, and t is in seconds.\n", + "\n", + "# Calculation\n", + "# x=50t-8t**2;\n", + "a_x=-16;# The x-component of the acceleration in m/s**2\n", + "# v_y=-8t; The y-component of the velocity in m/s\n", + "a_y=-8;# The y-component of the acceleration in m/s**2\n", + "# When y=0,\n", + "t=math.sqrt(100/4);\n", + "v_x=50-(16*t);\n", + "v_y=-8*(t);\n", + "v=math.sqrt((v_x**2)+(v_y**2));# m/s\n", + "a=math.sqrt(a_x**2+a_y**2);# m/s**2\n", + "print\"\\nThe velocity,v=%2.0fi+(%2.0fj) m/s \\nThe acceleration,a=%2.0fi+(%1.0fj) m/s**2\"%(v_x,v_y,a_x,a_y);\n", + "y=[0,20,40,60,80,100];# m \n", + "t=[math.sqrt((100-y[0])/4),math.sqrt((100-y[1])/4),math.sqrt((100-y[2])/4),math.sqrt((100-y[3])/4),math.sqrt((100-y[4])/4),math.sqrt((100-y[5])/4)];# s\n", + "x=[((50*t[0])-(8*t[0]**2)),((50*t[1])-(8*t[1]**2)),((50*t[2])-(8*t[2]**2)),((50*t[3])-(8*t[3]**2)),((50*t[4])-(8*t[4]**2)),((50*t[5])-(8*t[5]**2))];# m\n", + "v_x=[50-(16*(t[0])),50-(16*t[1]),50-(16*t[2]),50-(16*t[3]),50-(16*t[4]),50-(16*t[5])];\n", + "v_y=[-8*(t[0]),-8*(t[1]),-8*(t[2]),-8*(t[3]),-8*(t[4]),-8*(t[5])];\n", + "v=[math.sqrt((v_x[0]**2)+(v_y[0]**2)),math.sqrt((v_x[1]**2)+(v_y[1]**2)),math.sqrt((v_x[2]**2)+(v_y[2]**2)),math.sqrt((v_x[3]**2)+(v_y[3]**2)),math.sqrt((v_x[4]**2)+(v_y[4]**2)),math.sqrt((v_x[5]**2)+(v_y[5]**2))],;# m/s\n", + "a=math.sqrt(a_x**2+a_y**2);# m/s**2\n", + "plot(x,y,'*-',color='green')\n", + "xlabel('x,m')\n", + "ylabel('y,m')\n", + " \n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/6,PAGE NUMBER:47" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Variable declaration\n", + "v_0=80;# The launch speed in ft/sec\n", + "theta=35;# The launch angle in degree\n", + "m=8;# lb\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "y_0=6;# ft\n", + "x_0=0;# ft\n", + "x=100+30;# ft\n", + "\n", + "# Calculation\n", + "v_x0=v_0*math.cos(theta);# ft/sec\n", + "t=(x-x_0)/v_x0;# s\n", + "v_y0=v_0*math.sin(theta);# ft/sec\n", + "y=(y_0+(v_y0*t))-((1/2)*g*t**2);# ft\n", + "# (a)\n", + "# We now find the flight time by setting\n", + "y_01=20;# ft\n", + "def equations(p):\n", + " t_f=p\n", + " return((y_0+(v_y0*t_f)-((1/2)*g*t_f**2)))-y_01;\n", + "t_f=fsolve(equations,(1))\n", + "x=x_0+(v_x0*t_f);# ft\n", + "print\"\\n(a)The time duration of the flight,t_f=%1.2f s\"%t_f;\n", + "#(b)\n", + "print\"\\n(b)Thus the point of first impact is (x,y)=(%3.0f,%2.0f)ft\"%(x,y_01);\n", + "# (c)\n", + "v_y=0;# ft\n", + "h=((v_y0**2-v_y**2)/(2*g))+6;# ft\n", + "print\"\\n(c)The maximum height above the horizontal field attained by the ball,h=%2.1f ft\"%h;\n", + "# (d)\n", + "v_x=v_x0;# ft/sec\n", + "v_y=v_y0-(g*t_f);# ft/sec\n", + "print\"\\n(d)The impact velocity,v=%2.1f i+(%2.1f j) ft/sec\"%(v_x,v_y);\n", + "x=100+30;# ft (given)\n", + "v_0=75;# ft/sec (given)\n", + "v_x0=v_0*math.cos(theta);# ft/sec\n", + "t=(x-x_0)/v_x0;# s\n", + "v_y0=v_0*math.sin(theta);# ft/sec\n", + "y=(y_0+(v_y0*t))-((1/2)*g*t**2);# ft\n", + "print\"\\n The point of impact is (x,y)=(%3.0f,%2.1f)ft\"%(x,y);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/7,PAGE NUMBER:57" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "a=3;# m/s**2\n", + "v_A=100;# km/h\n", + "v_C=50;# km/h\n", + "s=120;# m\n", + "\n", + "# Calculation\n", + "v_A=((v_A*(1000)*3600**-1));# The velocity in m/s\n", + "v_C=((v_C*(1000)*3600**-1));# The velocity in m/s\n", + "a_t=((v_C**2-v_A**2)/(2*s));# The acceleration in m/s**2\n", + "# (a) Condition at A.\n", + "a_n=math.sqrt(a**2-a_t**2);# The acceleration in m/s**2\n", + "rho_A=v_A**2*a_n**-1;# The radius of curvature at A in m\n", + "# (b) Condition at B.\n", + "a_n=0;# m/s**2\n", + "a_b=a_n+a_t;# The acceleration at the inflection point B in m/s**2\n", + "# (c) Condition at C.\n", + "rho=150;# The radius of curvature of the hump at C in m\n", + "a_n=v_C**2/rho;# The normal acceleration in m/s**2\n", + "a=math.sqrt(a_n**2+a_t**2);# The total acceleration at C in m/s**2\n", + "print\"\\n(a)The radius of curvature at A,rho=%3.0f m\"%rho_A\n", + "print\"\\n(b)The acceleration at the inflection point B,a=%1.2f m/s**2\"%a_b\n", + "print\"\\n(c)The total acceleration at C,a=%1.2f m/s**2\"%a\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/8,PAGE NUMBER:58" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "g=30;# The acceleration due to gravity in ft/sec**2\n", + "theta=15;# The direction of its trajectory in degree\n", + "v=12000;# The velocity in mi/hr\n", + "a_x=20;# The horizontal component of acceleration in ft/sec**2\n", + "a_y=g;# The downward acceleration component in ft/sec**2\n", + "\n", + "# Calculation\n", + "a_n=(a_y*math.cos(theta*math.pi/180))-(a_x*math.sin(theta*math.pi/180));# The normal component of acceleration in ft/sec**2\n", + "a_t=(a_y*math.sin(theta*math.pi/180))+(a_x*math.cos(theta*math.pi/180));# The tangential component of acceleration in ft/sec**2\n", + "# (a)\n", + "v=v*44/30;# ft/sec\n", + "rho=v**2/a_n;# The radius of curvature in ft\n", + "# (b)\n", + "vdot=a_t;# The t-component of acceleration in ft/sec**2\n", + "# (c)\n", + "betadot=v/rho;# The angular rate of line GC in rad/sec\n", + "# (d)\n", + "a=[a_n,a_t];# The total acceleration in ft/sec**2\n", + "print\"\\n(a)The radius of curvature,rho=%2.2e ft \\n(b)The t-component of acceleration,v_dot=%2.1f ft/sec**2 \\n(c)The angular rate of line GC,betadot=%2.2e rad/sec \\n(d)The total acceleration,a=%2.1f e_n+%2.1f e_t ft/sec**2\"%(rho,vdot,betadot,a[0],a[1]);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/9,PAGE NUMBER:69" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "# theta=0.2t+0.02t**3;\n", + "# r=0.2+0.04t**2;\n", + "t=3;# s\n", + "\n", + "import math\n", + "# Variable declaration\n", + "# theta=0.2t+0.02t**3;\n", + "# Variable declaration\n", + "# theta=0.2t+0.02t**3;\n", + "# r=0.2+0.04t**2;\n", + "t=3;# s\n", + "\n", + "# Calculation\n", + "r_3=0.2+(0.04*t**2);# m\n", + "rdot_3=0.08*t;# m/s\n", + "rdotdot_3=0.08;# m/s**2\n", + "theta_3=(0.2*t)+(0.02*t**3);# rad\n", + "thetadot_3=0.2+(0.06*t**2);# rad/s\n", + "thetadotdot_3=0.12*t;# rad/s**2\n", + "v_r=rdot_3;# m/s\n", + "v_theta=r_3*thetadot_3;# m/s\n", + "v=math.sqrt(v_r**2+v_theta**2);# m/s\n", + "a_r=rdotdot_3-(r_3*thetadot_3**2);# m/s**2\n", + "a_theta=((r_3*thetadotdot_3)+(2*rdot_3*thetadot_3));# m/s**2\n", + "a=math.sqrt(a_r**2+a_theta**2);# m/s**2\n", + "print\"\\nThe magnitudes of the velocity and acceleration of the slider, v=%0.3f m/s and a=%0.3f m/s**2\"%(v,a);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 2/10,PAGE NUMBER:70" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "# Variable declaration\n", + "theta_i=30;# degrees\n", + "r=25*10**4;# ft\n", + "rdot=4000;# ft/sec\n", + "theta=0.80;# deg/sec\n", + "g=31.4;# ft/sec**2\n", + "\n", + "# Calculation\n", + "v_r=rdot;# ft/sec\n", + "v_theta=r*(theta*math.pi/180);# ft/sec\n", + "v=math.sqrt(v_r**2+v_theta**2);# ft/sec\n", + "a_r=-g*math.cos(theta_i*math.pi/180);# ft/sec**2\n", + "a_theta=g*math.sin(theta_i*math.pi/180);# ft/sec**2\n", + "rdotdot=a_r+(r*(theta*(math.pi/180))**2);# ft/sec**2\n", + "thetadotdot=(a_theta-(2*rdot*theta*math.pi/180))/r;# ft/sec**2\n", + "print\"\\nThe velocity of the rocket,v=%4.0f ft/sec \\nrdotdot=%2.1f ft/sec**2 and thetadotdot=%1.2e rad/sec**2\"%(v,rdotdot,thetadotdot);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/12,PAGE NUMBER:83" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "v_0=250;# km/h\n", + "theta_i=15;# degree\n", + "a=0.8;# m/s**2\n", + "t=60;# seconds\n", + "s_0=0;# m\n", + "x=3000;# m\n", + "\n", + "# Calculation\n", + "# (a)\n", + "v_0=v_0/3.6;# m/s\n", + "v=v_0+(a*t);# m/s\n", + "s=s_0+(v_0*t)+((a*t**2)/2);# m\n", + "y=s*math.cos(theta_i*math.pi/180);# m\n", + "theta=math.atan(y/x)*180/math.pi;# degree\n", + "r=math.sqrt(x**2+y**2);# m\n", + "v_xy=v*math.cos(theta_i*math.pi/180);# m/s\n", + "v_r=v_xy*math.sin(theta*math.pi/180);# m/s\n", + "v_theta=v_xy*math.cos(theta*math.pi/180);# m/s\n", + "thetadot=v_theta/r;# rad/s\n", + "zdot=v*math.sin(theta_i*math.pi/180);# m/s\n", + "v_z=zdot;# m/s\n", + "# (b)\n", + "z=y*math.tan(theta_i*math.pi/180);# m\n", + "phi=math.degrees(math.atan(z/r));# degree\n", + "R=math.sqrt(r**2+z**2);# m\n", + "v_R=(v_r*math.cos(phi*math.pi/180))+(zdot*math.sin(phi*math.pi/180));# m/s\n", + "v_phi=(zdot*(math.cos(phi*math.pi/180)))-(v_r*math.sin(phi*math.pi/180));# m/s\n", + "phidot=v_phi/R;# m/s\n", + "print\"\\n(a)v_r=%2.1f m/s \\n thetadot=%1.2e rad/s \\n zdot=v_z=%2.1f m/s \\n(b)v_R=%3.1f m/s \\n thetadot=%1.2e rad/s \\n phidot=%1.3e rad/s\"%(v_r,thetadot,zdot,v_R,thetadot,phidot);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/13,PAGE NUMBER:90" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Variable declaration\n", + "v_A=800;# km/h\n", + "theta_1=45*math.pi/180;# degree\n", + "theta_2=60*math.pi/180;# degree\n", + "theta_3=75*math.pi/180;# degree\n", + "\n", + "# Calculation\n", + "# [i] Graphical.\n", + "v_BA=586;# km/h\n", + "v_B=717;# km/h\n", + "print\"nv_BA=%3.0f km/h and v_B=%3.0f km/h\"%(v_BA,v_B);\n", + "# (II) Trigonometric.\n", + "v_B=(math.sin(theta_2)*v_A)/math.sin(theta_3);# km/h\n", + "print\"\\nv_B=%3.0f km/h\"%v_B;\n", + "# (III) Vector Algebra\n", + "def equations(p):\n", + " v_BA,v_B=p\n", + " return((v_A-(v_BA*math.cos(theta_2)))-(v_B*math.cos(theta_1)),(v_B*math.sin(theta_1))-(v_BA*math.sin(theta_2)));\n", + "v_BA,v_B=fsolve(equations,(1,1))\n", + "print\"\\nv_BA=%3.0f km/h and v_B=%3.0f km/h\"%(v_BA,v_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/14,PAGE NUMBER:91" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "v_A=45;# mi/hr\n", + "v_B=30;# mi/hr\n", + "a_A=3;# ft/sec**2\n", + "theta_1=30;# degree\n", + "theta_2=60;# degree\n", + "rho=440;# The radius of curvature in ft\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "v_A=v_A*(5280*3600**-1);# ft/sec\n", + "v_B=v_B*(5280*3600**-1);# ft/sec\n", + "# By the application of the law of cosines and the law of sines gives\n", + "v_BA=math.sqrt(v_A**2+v_B**2-(2*v_A*v_B*math.cos(theta_2*math.pi/180)));# ft/sec\n", + "theta=math.degrees(math.asin((v_B*math.sin(theta_2*math.pi/180))/v_BA));# degree\n", + "# Acceleration\n", + "a_B=(v_B)**2/rho;# ft/sec**2\n", + "a_BAx=a_B*math.cos(theta_1*math.pi/180)-a_A;# ft/sec**2\n", + "a_BAy=a_B*math.sin(theta_1*math.pi/180);# ft/sec**2\n", + "a_BA=math.sqrt(a_BAx**2+a_BAy**2);# ft/sec**2\n", + "beta=180-math.degrees((math.asin((a_B/a_BA)*math.sin(theta_1*math.pi/180))));# degree\n", + "print\"\\nv_BA=%2.1f ft/sec \\ntheta=%2.1f degree \\na_AB=%1.2f ft/sec**2 \\nbeta=%2.1f degree\"%(v_BA,theta,a_BA,beta);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 2/15,PAGE NUMBER:100" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "v_A=0.3;# m/s\n", + "\n", + "# Calculation\n", + "# Solution [i].\n", + "# v_A=y_A,v_B=y_B\n", + "v_B=-(2*v_A)/3;# m/s\n", + "print\"\\nThe velocity of B,v_B=%0.1f m/s\"%v_B;\n", + "# Solution (II).\n", + "v_B=abs((2*v_A)/3);# m/s\n", + "print\"\\nThe velocity of B,v_B=%0.1f m/s (upward)\"%v_B;\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER3.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER3.ipynb new file mode 100644 index 00000000..b4a34ae4 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER3.ipynb @@ -0,0 +1,982 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 3:KINETICS OF PARTICLES" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/1,PAGE NUMBER:126" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "# Variable Declaration\n", + "m_m=75;# The mass of the man in kg\n", + "m_t=750;# The total mass of the elevator in kg\n", + "T=8300;# The tension T in the hoisting cable in N\n", + "t_ll=0;# Lower limit of integration\n", + "t_ul=3;# Upper limit of integration\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "W=m_t*g;# The total weight of the elevator\n", + "# From the free-body diagram of the elevator,SigmaF_y=m*a_y\n", + "SigmaF_y=T-W;# N\n", + "a_y=SigmaF_y/(m_t);# The acceleration in m/s**2\n", + "# From the free-body diagram of the man,SigmaF_y=m*a_y\n", + "W_m=m_m*g;# Weight of the man in N\n", + "R=(m_m*a_y)+W_m;# The equal and opposite reaction R in N\n", + "# The velocity reached at the end of the 3 seconds is delv=integral(a.dt),integrating this equation we get\n", + "v=a_y*(t_ul-t_ll);# The velocity in m/s\n", + "print\"The equal and opposite reaction,R=\",R,\"N\"\n", + "print\"The velocity reached at the end of the 3 seconds,v=\",round(v,2),\"m/s\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/2,PAGE NUMBER:126" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "# Variable Declaration\n", + "m=200;# The mass of the car in kg\n", + "T=2.4;# The cable tension in kN\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "W=(m*g)/1000;# The weight of the car in kN\n", + "# In y direction,SigmaF_y=0\n", + "x=5;# adjacent side\n", + "y=12;# opposite side\n", + "r=13;# hypotenuse\n", + "P=((T*x)/r)+((W*y)/r);# The total force exerted by the supporting cable on the wheels in N\n", + "print\"The total force exerted by the supporting cable on the wheels,P=\",round(P,2),\"kN\"\n", + "# In x direction,SigmaF_x=m*a_x\n", + "x=12;# # adjacent side\n", + "y=5;# opposite side\n", + "r=13;# # hypotenuse\n", + "a=((((T*1000*x)/r)-((W*1000*y)/r))/m);# # The acceleration of the car in m/s**2\n", + "print\"The acceleration of the car,a=\",round(a,2),\"m/s**2\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 3/3,PAGE NUMBER:127" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Variable declaration\n", + "m_A=250;# The mass of concrete block A in lb\n", + "m=400;# lb\n", + "theta=30;# degree\n", + "mu_k=0.5;# The coefficient of kinetic friction between the log and the ramp\n", + "x=20;# ft\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "# Calculation\n", + "# SigmaF_y=0;\n", + "N=m*math.cos(theta*math.pi/180);# lb\n", + "# SigmaF_x=ma_x;\n", + "def equations(p):\n", + " T,a_A,a_C=p\n", + " return((0-((2*a_C)+a_A)),(((mu_k*N)-(2*T)+(m*math.sin(theta*math.pi/180)))-((m/g)*a_C)),((m_A-T)-((m_A/g)*a_A)))\n", + "T,a_A,a_C=fsolve(equations,(100,1,1))\n", + "v_A=math.sqrt(2*a_A*x);# ft/sec\n", + "print\"\\nThe velocity of the block as it hits the ground at B,v_A=%2.2f ft/sec\"%v_A;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 3/4,PAGE NUMBER:128" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "import sympy\n", + "\n", + "# Variable Declaration\n", + "m=10;# The mass in kg\n", + "v=2;# The speed in m/s\n", + "R=8;# N\n", + "\n", + "# Calculation\n", + "t = sympy.Symbol('t')\n", + "k=R/v**2;# N.s**2/m**2\n", + "# SigmaF_x=ma_x;\n", + "v_0=v;# m/s\n", + "v=v_0/2;# m/s\n", + "t_r=5*((1/v)-(0.5));# The time requirwd to reduce the speed in s\n", + "print\"\\nThe time t required for it to reduce its speed to 1 m/s,t=%1.2f s\"%t_r\n", + "t_0=0;# s\n", + "t_1=2.5;# s\n", + "x=sympy.integrate((10/(5+(2*t))),('t',t_0,t_1));\n", + "print\"\\nThe corresponding travel distance,x=%1.2f m\"%x;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/8,PAGE NUMBER:140" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "import numpy\n", + "\n", + "# Variable Declaration\n", + "m=1500;# The mass of the car in kg\n", + "v_A=100;# The velocity in km/h\n", + "v_C=50;# The velocity in km/h\n", + "rho_A=400;# The radius of curvature in m\n", + "rho_C=80;# The radius of curvature in m\n", + "delta_s=200;# m\n", + "\n", + "# Calculation\n", + "a_t=abs((((v_C/3.6)**2)-((v_A/3.6)**2))/(2*delta_s));# The tangential acceleration in m/s**2\n", + "a_na=((v_A/3.6)**2)/rho_A;# The normal components of acceleration at A in m/s**2\n", + "a_nb=0;# The normal components of acceleration at B in m/s**2\n", + "a_nc=((v_C/3.6)**2)/rho_C;# The normal components of acceleration at C in m/s**2\n", + "F_t=m*a_t;# N\n", + "F_na=m*a_na;# N\n", + "F_nb=m*a_nb;# N\n", + "F_nc=m*a_nc;# N\n", + "F_a=math.sqrt(F_na**2+F_t**2);# The total horizontal force acting on the tires at A in N\n", + "F_b=math.sqrt(F_nb**2+F_t**2);# The total horizontal force acting on the tires at B in N\n", + "F_c=math.sqrt(F_nc**2+F_t**2);# The total horizontal force acting on the tires at C in N\n", + "print\"\\nAt A,F=%4.0f N \\nAt B,F=%4.0f N \\nAt C,F=%4.0f N\"%(F_a,F_b,F_c);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 3/9,PAGE NUMBER:141" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "h=200;# The altitude in mi\n", + "R=3959;# mi\n", + "g=32.234;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "# Calculation\n", + "# SigmaF_n=ma_n;\n", + "v=(R*5280)*math.sqrt(g/((R+h)*5280));# ft/sec\n", + "print\"\\nThe velocity required for the spacecraft,v=%5.0f ft/sec\"%v;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/11,PAGE NUMBER:162" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=50;# kg\n", + "v_1=4;# m/s\n", + "mu_k=0.30;# The coefficient of kinetic friction \n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "s=10;# m\n", + "theta=15;# degree\n", + "R=474;# N\n", + "\n", + "# Calculation\n", + "U_12=((m*g)*s*math.sin(theta*math.pi/180))-(mu_k*R*(s));# The total work done on the crate during the motion in J\n", + "v_2=math.sqrt((((m*v_1**2)/2)+U_12)/((m/2)));# The velocity of the crate in m/s\n", + "print\"\\nThe velocity of the crate,v_2=%1.2f m/s\"%v_2;" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/12,PAGE NUMBER:162" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=80;# kg\n", + "v=72;# km/h\n", + "s=75;# m\n", + "mu_sa=0.30;# The coefficient of static friction \n", + "mu_ka=0.28;# The coefficient of kinetic friction\n", + "mu_sb=0.25;# The coefficient of static friction \n", + "mu_kb=0.20;# The coefficient of kinetic friction\n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "\n", + "# Calculation\n", + "a=(v/3.6)**2/(2*s);# m/s**2\n", + "# Case(a)\n", + "F=m*a;# The friction force on the block in N\n", + "U_12=F*s;# The work done in J\n", + "print\"\\n(a)The work done by the friction force acting on the crate,U_12=%5.0f J (or) %2.0f kJ\"%(U_12,U_12/1000);\n", + "# Case(b)\n", + "F=mu_sb*m*g;# N\n", + "F=mu_kb*m*g;# N\n", + "a_b=F/m;# The acceleration in m/s**2\n", + "deltaS=(a_b/a)*s;# The displacement of a crate in m\n", + "U_12=F*deltaS;# The work done in J\n", + "print\"\\n(b)The work done by the friction force acting on the crate,U_12=%4.0f J (or) %1.2f kJ\"%(U_12,U_12/1000);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/13,PAGE NUMBER:163" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=50;# The mass of the block in kg\n", + "F=300;# N\n", + "x_1=0.233;# m\n", + "k=80;# The spring stifness in N/m\n", + "x=1.2;# m\n", + "y=0.9;# m\n", + "\n", + "# Calculation\n", + "x_2=x_1+x;# m\n", + "U_12=(1/2)*k*(x_1**2-x_2**2);# The work done by the spring force acting on the block in J\n", + "s=math.sqrt(x**2+y**2)-y;# m\n", + "W=F*s;# The work done in J\n", + "T_1=0;# J\n", + "v=math.sqrt(((U_12+W)*2)/m);# m/s\n", + "print\"\\nThe velocity of the block as it reaches position B,v=%1.2f m/s\"%v;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/14,PAGE NUMBER:164" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "F=800;# lb\n", + "theta=30;# degree\n", + "v=4;# ft/sec\n", + "P=6;# hp\n", + "P_i=8;# hp\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "# Calculation\n", + "N=(F*math.sin(theta*math.pi/180));# lb\n", + "# SigmaF_x=0;\n", + "T=(P*550)/v;# The tension in the cable in N\n", + "mu_k=(T-(F*math.sin(theta*math.pi/180)))/N;# The coefficient of kinetic friction\n", + "T=(P_i*550)/v;# lb\n", + "a=(g*(T-(N*mu_k)-(F*math.sin(theta*math.pi/180))))/F;# The acceleration in ft/sec**2\n", + "print\"\\nThe corresponding instantaneous acceleration of the log,a=%2.2f ft/sec**2\"%a;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/15,PAGE NUMBER:180" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "h_1=500;# km\n", + "v_1=30000;# km/h\n", + "h_2=1200;# km\n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "R=6371;# km\n", + "\n", + "# Calculation\n", + "v_2=math.sqrt((v_1/3.6)**2+(2*g*(R*10**3)**2*((10**-3/(R+h_2))-(10**-3/(R+h_1)))));\n", + "print\"\\nThe velocity of the satellite as it reaches point B,v_2=%4.0f m/s (or) v_2=%5.0f km/h\"%(v_2,v_2*3.6);" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/16,PAGE NUMBER:180" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "mg=6;# lb\n", + "k=2;# lb/in\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "h=24;# in\n", + "x_1=24/12;# ft\n", + "x_2=(((24*math.sqrt(2))/12)-(24/12));# ft\n", + "\n", + "# Calculation\n", + "# The reaction of the rod on the slider is normal to the motion and does no work.\n", + "T_1=0;# ft-lb\n", + "U_12=0;# ft-lb\n", + "# We define the datum to be at the level of position 1, so that the gravitational potential energies are\n", + "V_1g=0;# ft-lb\n", + "V_2g=-(mg)*(h/12);# ft-lb\n", + "V_1e=((k*12)*(x_1)**2)/2;# ft-lb\n", + "V_2e=((k*12)*(x_2)**2)/2;# ft-lb\n", + "v_2=math.sqrt(((T_1+(V_1g+V_1e)+U_12)-(V_2g+V_2e))*(2*(g/mg)));# ft/sec\n", + "print\"\\nThe velocity of the slider as it passes position 2,v_2=%2.1f ft/sec\"%v_2;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/17,PAGE NUMBER:180" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=10;# kg\n", + "k=60;# N/m\n", + "F=250;# N\n", + "theta=30;# degree\n", + "ABbar=1.5;# m\n", + "BCbar=0.9;# m\n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "d_AC=1.2;# The distance in m\n", + "d_BC=0.9;# The distance in m\n", + "\n", + "# Calculation\n", + "s=ABbar-BCbar;# m\n", + "U_ac=F*s;# J\n", + "V_Ag=0;# The initial gravitational potential energy in J\n", + "T_A=(1/2)*m*V_Ag**2;# N.m\n", + "V_Cg=m*g*(d_AC*math.sin(theta*math.pi/180));# The final gravitational potential energy in J\n", + "x_A=s;# m\n", + "x_B=s+d_AC;# m\n", + "V_Ae=(k*(x_A)**2)/2;# The initial elastic potential energy in J\n", + "V_Ce=(k*(x_B)**2)/2;# The final elastic potential energy in J\n", + "# Substitution into the alternative work-energy equation 3/21a gives\n", + "v_c=math.sqrt((((T_A+V_Ag+V_Ae+U_ac)-(V_Cg+V_Ce))*2)/m);# m/s\n", + "print\"\\nThe velocity of the slider as it passes point C,v_C=%0.3f m/s\"%v_c;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 3/18,PAGE NUMBER:181" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false, + "scrolled": false + }, + "outputs": [], + "source": [ + "%matplotlib inline\n", + "import math\n", + "from scipy.optimize import fsolve\n", + "import matplotlib.pyplot as plt\n", + "from matplotlib.pyplot import plot,suptitle,xlabel,ylabel\n", + "# Variable Declaration\n", + "m_A=2;# kg\n", + "m_B=4;# kg\n", + "L=0.5;# m\n", + "K_theta=13;# N.m/rad\n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "\n", + "# Calculation\n", + "# (a)\n", + "# T_1+V_1+U_12=T_2+V_2\n", + "def eqn(p):\n", + " v_A=p\n", + " return((((1*2**-1)*m_A*v_A**2)+((1*2**-1)*m_B*(v_A/4)**2)-(m_A*g*L)-(m_B*g*(L*math.sqrt(2)*4**-1))+((1*2**-1)*K_theta*(math.pi/2)**2))-0);\n", + "v_A=fsolve(eqn,(1));# m/s\n", + "print\"\\nThe speed of particle A,v_A=%0.3f m/s\"%v_A;\n", + "# (b)\n", + "theta=[0,10,20,30,40,50,60,70,80,90];\n", + "v_A1=(math.sqrt(((m_A*g*L*(1-math.cos(theta[0]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[0]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[0]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[0])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A2=(math.sqrt(((m_A*g*L*(1-math.cos(theta[1]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[1]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[1]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[1])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A3=(math.sqrt(((m_A*g*L*(1-math.cos(theta[2]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[2]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[2]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[2])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A4=(math.sqrt(((m_A*g*L*(1-math.cos(theta[3]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[3]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[3]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[3])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A5=(math.sqrt(((m_A*g*L*(1-math.cos(theta[4]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[4]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[4]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[4])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A6=(math.sqrt(((m_A*g*L*(1-math.cos(theta[5]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[5]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[5]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[5])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A7=(math.sqrt(((m_A*g*L*(1-math.cos(theta[6]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[6]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[6]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[6])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A8=(math.sqrt(((m_A*g*L*(1-math.cos(theta[7]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[7]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[7]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[7])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A9=(math.sqrt(((m_A*g*L*(1-math.cos(theta[8]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[8]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[8]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[8])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A10=(math.sqrt(((m_A*g*L*(1-math.cos(theta[9]*math.pi*180**-1)))+((m_B*g*(1*2**-1)*(((L*math.sqrt(2))*2**-1)-((2*(L*2**-1)*math.sin((((90-(theta[9]))*2**-1))*math.pi*180**-1))))))-((1*2**-1)*K_theta*(theta[9]*(math.pi*180**-1))**2))/(((1*2**-1)*m_A)+((1*2**-1)*m_B*((1*4**-1)*math.cos((((90-(theta[9])))*2**-1)*math.pi*180**-1))**2))))\n", + "v_A=[v_A1,v_A2,v_A3,v_A4,v_A5,v_A6,v_A7,v_A8,v_A9,v_A10];# m/s\n", + "plt.plot(theta,v_A,color='red');\n", + "xlabel('theta,deg');\n", + "ylabel('v_A,m/s');\n", + "print\"\\nThe maximum value of v_A is seen to be (v_A)_max=1.400 m/s at theta=56.4 degree.\";\n", + "plt.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 3/19,PAGE NUMBER:194" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "v_1=50;# ft/sec\n", + "v_2=70;# ft/sec\n", + "theta=15;# degree\n", + "dt=0.02;# sec\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "# Calculation\n", + "W=2*16**-1;# N\n", + "v_1x=v_1;# ft/sec\n", + "v_2x=v_2;# ft/sec\n", + "v_1y=0;# ft/sec\n", + "v_2y=v_2;# ft/sec\n", + "R_x=(((W/g)*(v_2x*math.cos(theta*math.pi/180)))+((W/g)*(v_1x)))/dt;# lb\n", + "R_y=(((W/g)*(v_2y*math.sin(theta*math.pi/180)))+((W/g)*(v_1y)))/dt;# lb\n", + "R=math.sqrt(R_x**2+R_y**2);# lb\n", + "beta=math.degrees(math.atan(R_y/R_x));# degree\n", + "print\"\\nThe magnitude of the average force exerted by the racket on the ball,R=%2.1f lb \\nThe angle made by R with the horizontal,beta=%1.2f degree\"%(R,beta);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/20,PAGE NUMBER:196" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "# G=(3/2)*(t**2+3)j-((2/3)*(t**3-4))k\n", + "z=2;# lb\n", + "t=2;# sec\n", + "\n", + "# Calculation\n", + "F=[(3*t),(2-(2*t**2))];# lb\n", + "F_r=math.sqrt(F[0]**2+F[1]**2);# lb\n", + "print\"\\nF=%1.0fj+(%1.0fk)lb \\nF=%1.3f lb\"%(F[0],F[1],F_r);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/21,PAGE NUMBER:196" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import norm\n", + "# Variable Declaration\n", + "m=0.5;# kg\n", + "v_1x=10;# m/s\n", + "v_1y=0;# m/s\n", + "t_1=1;# s\n", + "t_2=2;# s\n", + "t_3=3;# s\n", + "\n", + "# Calculation\n", + "v_2x=((m*v_1x)-((4*(t_1))+(2*(t_3-t_1))))/(m);# m/s\n", + "v_2y=((m*v_1y)+((1*(t_2))+(2*(t_3-t_2))))/(m);# m/s\n", + "v_2=[v_2x,v_2y];# m/s\n", + "v_2=norm(v_2);# m/s\n", + "theta_x=180+math.atan(v_2y/v_2x)*math.pi/180;# degree\n", + "print\"\\nThe velocity of the particle at the end of the 3-s interval,v_2=%2.0f m/s \\ntheta_x=%3.1f degree\"%(v_2,theta_x);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/22,PAGE NUMBER:196" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=150;# kg\n", + "v_1=4;# m/s\n", + "t_0=0;# s\n", + "t_1=4;# s\n", + "P=600;# N\n", + "t_2=8;# s\n", + "theta=30;# degree\n", + "g=9.81;# The acceleration due to gravity in m/sec**2\n", + "\n", + "# Calculation\n", + "deltat=(m*0)+((m*v_1)-((v_1*2*P)/2)+(m*g*math.sin(theta*math.pi/180)))/((2*P)+(m*g*math.sin(theta*math.pi/180)));# s\n", + "t_a=v_1+deltat;# s\n", + "v_2x=((m*-v_1)+((v_1*2*P)/2)+(v_1*2*P)-(m*g*math.sin(theta*math.pi/180)*t_2))/m;# m/s\n", + "print\"\\n(a)The time at which the skip reverses its direction,t_a=%1.2f s \\n(b)The velocity of the skip,v_2x=%1.2f m/s\"%(t_a,v_2x);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/23,PAGE NUMBER:196" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m_1=0.050;# kg\n", + "m_2=4;# kg\n", + "v_1=600;# m/s\n", + "v_2=12;# m/s\n", + "theta=30;# degree\n", + "\n", + "\n", + "# Calculation\n", + "v_2=[(m_2*v_2*math.cos(theta*math.pi/180))/(m_1+m_2),((m_1*v_1)+(m_2*v_2*math.sin(theta*math.pi/180)))/(m_1+m_2)];# m/s\n", + "v_x=v_2[0];# m/s\n", + "v_y=v_2[1];# m/s\n", + "V_2=math.sqrt((v_x**2+v_y**2));# m/s\n", + "theta=math.atan((v_y/v_x))*math.pi/180;# degree\n", + "print\"\\nThe velocity of the block and embedded bullet immediately after impact,v_2=%2.2fi+%2.2fj m/s \\nThe final velocity and its direction are given by v_2=%2.2f m/s and theta=%2.1f degree\"%(v_x,v_y,V_2,theta);\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/24,PAGE NUMBER:209" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import det\n", + "\n", + "# Variable Declaration\n", + "F=10;# N\n", + "m=2;# kg\n", + "v=5;# m/s \n", + "x=3;# m\n", + "y=6;# m\n", + "z=4;# m\n", + "\n", + "# Calculation\n", + "r=[x,y,z];# m\n", + "mv=[0,(m*v),0];# (kg.m/s)\n", + "H_o1=det([[r[1],r[2]],[mv[1],mv[2]]]);# N.m/s\n", + "H_o2=-det([[r[0],r[2]],[mv[0],mv[2]]])# N.m/s\n", + "H_o3=det([[r[0],r[1]],[mv[0],mv[1]]]);# N.m/s\n", + "H_O=[H_o1,H_o2,H_o3];# N.m/s\n", + "F=[0,0,F];# N.m/s\n", + "Hdot_o1=det([[r[1],r[2]],[F[1],F[2]]]);# N.m\n", + "Hdot_o2=-det([[r[0],r[2]],[F[0],F[2]]]);# N.m\n", + "Hdot_o3=det([[r[0],r[1]],[F[0],F[1]]]);# N.m\n", + "Hdot_O=[Hdot_o1,Hdot_o2,Hdot_o3];# N.m\n", + "print\"\\nThe angular momentum H_O about point O,H_O=%2.0fi+(%2.0f)j+%2.0fk N.m/s \\nThe time derivative,Hdot=%2.0fi+(%2.0f)j+%2.0fk N.m\"%(H_O[0],H_O[1],H_O[2],Hdot_O[0],Hdot_O[1],Hdot_O[2]);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/25,PAGE NUMBER:209" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "\n", + "import math\n", + "v_A=740;# m/s\n", + "r_A=6000*10**6;# km\n", + "r_B=75*10**6;# km\n", + "\n", + "# Calculation\n", + "v_B=(r_A*v_A)/r_B;# m/s\n", + "print\"\\nThe speed of comet at the point B of closest approach to the sun,v_B=%5.0f m/s\"%v_B;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/28,PAGE NUMBER:221" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "m=800;# kg\n", + "g=9.81;# m/s**2\n", + "h=2;# m\n", + "m_p=2400;# kg\n", + "h_1=0.1;# m\n", + "\n", + "# Calculation\n", + "v_r=math.sqrt(2*g*h);# m/s\n", + "v_ra=math.sqrt(2*g*h_1);# m/s\n", + "# (a)\n", + "v_pa=(((m*v_r)+0)+(m*v_ra))/m_p;# m/s\n", + "# (b)\n", + "e=(v_pa+v_ra)/(v_r+0);# The coefficient of restitution\n", + "# (c)\n", + "T=m*g*h;# J\n", + "T_a=((m*v_ra**2)/2)+((m_p*v_pa**2)/2);# J\n", + "E_l=((T-T_a)/T)*100;# The percentage loss of energy(%)\n", + "print\"\\n(a)The velocity of the pile immediately after impact,v_p=%1.2f m/s \\n(b)The coefficient of restitution,e=%0.3f \\n(c)The percentage loss of energy due to the impact is %2.1f percentage.\"%(v_pa,e,E_l);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/29,PAGE NUMBER:221" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "v_1=50;# m/s\n", + "v_2=0;# m/s\n", + "e=0.5;# The effective coefficient of restitution\n", + "theta=30;# degree\n", + "\n", + "# Calculation\n", + "v_1an=e*v_1*math.sin(theta*math.pi/180);# ft/sec\n", + "v_1at=v_1*math.cos(theta*math.pi/180);# ft/sec\n", + "# Assume ' as a\n", + "v_a=math.sqrt((v_1an)**2+(v_1at)**2);# ft/sec\n", + "theta_a=math.atan((v_1an/v_1at))*math.pi/180;# degree\n", + "print\"\\nThe rebound velocity and its angle are then v_a=%2.1f ft/sec and theta_a=%2.1f degree\"%(v_a,theta_a);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/30,PAGE NUMBER:222" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import solve\n", + "# Variable Declaration\n", + "v_1=6;# m/s\n", + "v_2=0;# m/s\n", + "e=0.6;# The coefficient-of-restitution\n", + "theta=30;# degree\n", + "\n", + "# Calculation\n", + "v_1n=v_1*math.cos(theta*math.pi/180);# m/s\n", + "v_1t=v_1*math.sin(theta*math.pi/180);# m/s\n", + "v_2n=0;# m/s\n", + "v_2t=v_2n;# m/s\n", + "A=([1,1],[1,-1]);# \n", + "B=([v_1n+0,(e*v_1n)]);# \n", + "v=solve(A,B);# \n", + "v_1an=v[0];# m/s\n", + "v_2an=v[1];# m/s\n", + "v_1at=v_1t;# m/s\n", + "v_2at=v_2t;# m/s\n", + "v_1a=math.sqrt((v_1an)**2+(v_1at)**2);# m/s\n", + "v_2a=math.sqrt((v_2an)**2+(v_2at)**2);# m/s\n", + "thetaa=math.atan((v_1an/v_1at)*math.pi/180)*math.pi/180;# m/s\n", + "# The kinetic energies just before and just after impact, with m=m1=m2,are\n", + "T=18;# m\n", + "T_a=13.68;# m\n", + "E_l=((T-T_a)/T)*100;# The percentage energy loss(%)\n", + "print\"\\nThe final speeds of the particles v_1a=%1.2f m/s ,v_2a=%1.2f m/s \\nThe angle which v_1a makes with the t-direction,theta=%2.2f degree \\nThe percentage energy loss is %2.0f percentage.\"%(v_1a,v_2a,thetaa,E_l);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 3/31,PAGE NUMBER:236" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable Declaration\n", + "h_1=2000;# The perigee altitude in km\n", + "h_2=4000;# The apogee altitude in km\n", + "h_c=2500;# The altitude of the satellite in km\n", + "g=9.825;# The acceleration due to gravity in m/sec**2\n", + "R=12742/2;# km\n", + "\n", + "# Calculation\n", + "# (a)\n", + "r_max=R+h_2;# km\n", + "r_min=R+h_1;# km\n", + "a=(r_min+r_max)/2;# km\n", + "v_P=(R*10**3*math.sqrt(g*(a*10**3)**-1)*math.sqrt(r_max/r_min));# m/s\n", + "v_A=(R*10**3*math.sqrt(g*(a*10**3)**-1)*math.sqrt(r_min*r_max**-1));# m/s\n", + "# (b)\n", + "r=R+h_c;# km\n", + "v_C=math.sqrt((2*g*(R*10**3)**2)*((1*r**-1)-(1*(2*a)**-1))*(1*(10**3)**-1));# m/s\n", + "# (c)\n", + "tau=(2*math.pi*((a*10**3)**(3*2**-1)))/((R*10**3)*math.sqrt(g));# km\n", + "tau_h=tau*3600**-1;# km\n", + "print\"\\n(a)The necessary perigee velocity,v_P=%4.0f m/s (or) %5.0f km/h \\n The necessary apogee velocity,v_A=%4.0f m/s (or) %5.0f km/h \\n(b)The velocity at point C,v_C=%4.0f m/s (or) %5.0f km/h \\n(c)The period of the orbit,tau=%1.3f h\"%(v_P,v_P*3.6,v_A,v_A*3.6,v_C,v_C*3.6,tau_h);\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER4.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER4.ipynb new file mode 100644 index 00000000..7cb685c8 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER4.ipynb @@ -0,0 +1,117 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 4:KINETICS OF SYSTEMS OF PARTICLES" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 4/4,PAGE NUMBER:279" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "m=20;# kg\n", + "u_z=300;# m/s\n", + "g=9.81;# m/s**2\n", + "m_a=5;# kg\n", + "m_b=9;# kg\n", + "m_c=6;# kg\n", + "theta=45;# degree\n", + "s=4000;# m\n", + "x=3;# m\n", + "y=4;# m\n", + "r=5;# m\n", + "h_a=500;# m\n", + "\n", + "# Calculation\n", + "t=(u_z*y)/(r*g);# The time required for the shell to reach P in s\n", + "h=u_z**2/(2*g);# The verticl rise in m\n", + "v_a=math.sqrt(2*g*h_a);# m/s\n", + "v_b=s/t;# m/s\n", + "v_c=[((m*u_z*(x/r))-(m_b*v_b*math.cos(theta*math.pi/180)))/6,(m_b*v_b*math.sin(theta*math.pi/180))/6,(m_a*v_a)/6];# m/s\n", + "v_c=math.sqrt((v_c[0])**2+(v_c[1])**2+(v_c[2])**2);# m/s\n", + "print\"\\nThe velocity which fragment C has immediately after the explosion,v_C=%3.0f m/s\"%v_c;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 4/5,PAGE NUMBER:280" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "n_12=80;# rev/min\n", + "n_34=100;# rev/min\n", + "W_a=32.2;# lb\n", + "W_b=3.22;# lb\n", + "n=4;# Number of balls\n", + "vbar=4;# m/s\n", + "r_12=18*12**-1;# ft\n", + "r_34=12*12**-1;# ft\n", + "\n", + "# Calculation\n", + "# (a)Kinetic energy\n", + "v_rel12=r_12*((2*math.pi*n_12)/60);# ft/sec\n", + "v_rel34=r_34*((2*math.pi*n_34)/60);# ft/sec\n", + "ke=(((W_a/g)+(n*(W_b/g)))/2)*(vbar)**2;# ft-lb\n", + "ke_r=(2*((W_b/g)*v_rel12**2)/2)+(2*((W_b/g)*v_rel34**2)/2);# The rotational part of the kinetic energy in f\n", + "T=ke+ke_r;# The total kinetic energy in ft-lb\n", + "# (b)Linear momentum\n", + "G=((W_a/g)+(n*(W_b/g)))*vbar;# ft-lb-sec\n", + "# (c)Angular momentum about O.\n", + "H_O=(2*((W_b/g)*r_12*v_rel12))-(2*(W_b/g)*r_34*v_rel34);# lb-sec\n", + "print\"\\n(a)The kinetic energy,T=%2.0f ft-lb \\n(b)The magnitude of the linear momentum,G=%1.1f lb-sec \\n(c)The magnitude of the angular momentum about point O,H_O=%1.3f ft-lb-sec\"%(T,G,H_O);\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER5.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER5.ipynb new file mode 100644 index 00000000..f767dcd9 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER5.ipynb @@ -0,0 +1,752 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": false + }, + "source": [ + "# CHAPTER 5:PLANE KINEMATICS OF RIGID BODIES" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/1,PAGE NUMBER:331" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "import sympy\n", + "# Given data\n", + "n_1=1800;# rev/min\n", + "t_0=0;# s\n", + "# alpha=4t;\n", + "n_2=900;# rev/min\n", + "\n", + "# Calculation\n", + "# (a)\n", + "omega_1=(-2*math.pi*n_1)/60;# rad/s\n", + "# omega=-(60*math.pi)+2t**2\n", + "omega_2=(-2*math.pi*n_2)/60;# rad/s\n", + "t=math.sqrt((omega_2-omega_1)/2);# s\n", + "# (b)\n", + "# The flywheel changes direction when its angular velocity is momentarily zero. Thus,\n", + "t_b=math.sqrt((0-omega_1)/2);# s\n", + "# (c)\n", + "t_0=0;# s\n", + "t_1=t_b;# s\n", + "theta_1=sympy.integrate((omega_1+(2*t**2)),('t',t_0,t_1));# rad\n", + "N_1=abs(-theta_1/(2*math.pi));# rev(clockwise)\n", + "t_1=t_b;# s\n", + "t_2=14;# s\n", + "theta_2=sympy.integrate((omega_1+(2*t**2)),('t',t_1,t_2));# rad\n", + "N_2=theta_2/(2*math.pi);# rev\n", + "N=N_1+N_2;# rev\n", + "print\"\\n(a)The time required for the flywheel to reduce its clockwise angular speed,t=%1.2f s \\n(b)The time required for the flywheel to reverse its direction of rotation,t=%1.2f s \\n(c)The total number of revolutions,N=%3.0f rev\"%(t,t_b,N);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/2,PAGE NUMBER:332" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "v=3;# ft/sec\n", + "s=4;# ft\n", + "d_C=48;# inch\n", + "d_B=36;# inch\n", + "d_A=12;# inch\n", + "r_A=d_A/2;# inch\n", + "r_C=d_C/2;# inch\n", + "r_B=d_B/2;# inch\n", + "\n", + "# Calculation\n", + "# (a)\n", + "a=v**2/(2*s);# ft/sec**2\n", + "a_t=a;# ft/sec**2\n", + "a_n=v**2/(r_C/12);# ft/sec**2\n", + "a_C=math.sqrt(a_n**2+a_t**2);# ft/sec**2\n", + "# (b)\n", + "omega_B=v/(r_C/12);# rad/sec\n", + "alpha_B=a_t/(r_C/12);# rad/sec**2\n", + "omega_A=(r_B/r_A)*omega_B;# rad/sec CW\n", + "alpha_A=(r_B/r_A)*alpha_B;# rad/sec**2 CW\n", + "print\"\\n(a)The acceleration of point C on the cable in contact with the drum,a_C=%1.2f ft/sec**2 \\n(b)The angular velocity and angular accelerationof the pinion A,omega_A=%1.1f rad/sec CW and alpha_A=%1.3f rad/sec**2 CW\"%(a_C,omega_A,alpha_A);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/3,PAGE NUMBER:332" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import norm\n", + "# Given data\n", + "alpha=4;# rad/s**2\n", + "omega=-2;# rad/s\n", + "x=0.4;# m\n", + "y=0.3;# m\n", + "\n", + "# Calculation\n", + "# Using the right-hand rule gives\n", + "# omega=-2k rad/s and alpha=+4k rad/s**2\n", + "r=[x,y];# m\n", + "v=[-omega*r[1],omega*r[0]];# (i,j) (k*i=j)(k*j=-i) m/s\n", + "a_n=[-omega*v[1],omega*v[0]];# m/s**2\n", + "a_t=[-alpha*r[1],alpha*r[0]];# m/s**2\n", + "a=a_n+a_t;# m/s**2\n", + "print\"\\nThe vector expression for the velocity,v=%0.1fi+(%0.1f)j m/s \\nThe vector expression for the acceleration of point A,a=%2.1fi+%0.1fj m/s**2\"%(v[0],v[1],a[0],a[1]);\n", + "v=norm(v);# m/s\n", + "a=norm(a);# m/s**2\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/5,PAGE NUMBER:340" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "r_1=4;# inch\n", + "r_2=4;# inch\n", + "# Case(a)\n", + "# Pulley 1:\n", + "omega_1a=0;# rad/sec\n", + "omega_dot=0;# rad/sec\n", + "alpha_1a=omega_dot;\n", + "# Pulley 2:\n", + "omega_2a=2;# rad/sec\n", + "alpha_2a=-3;# rad/sec**2\n", + "# Case(b)\n", + "# Pulley 1:\n", + "omega_1b=1;# rad/sec\n", + "alpha_1b=4;# rad/sec**2\n", + "# Pulley 2:\n", + "omega_2b=2;# rad/sec\n", + "alpha_2b=-2;# rad/sec**2\n", + "ABbar=12;# inch\n", + "AObar=4;# inch\n", + "\n", + "# Calculation\n", + "# Case (a)\n", + "v_D=r_2*omega_2a;# in/sec\n", + "a_D=r_2*alpha_2a;# in/sec\n", + "omega=v_D*ABbar**-1;# rad/sec\n", + "alpha=a_D/ABbar;# in/sec**2\n", + "v_O=AObar*omega;# rad/sec (CCW)\n", + "a_O=AObar*alpha;# rad/sec**2 (CW)\n", + "print\"\\n(a)omega=%0.3f rad/sec (CCW)\\n alpha=%1.0f rad/sec**2 (CW) \\n v_O=%1.3f in/sec \\n a_O=%1.0f in/sec**2\"%(omega,alpha,v_O,a_O);\n", + "# Case (b)\n", + "v_C=r_1*omega_1b;# in/sec\n", + "v_D=r_2*omega_2b;# in/sec\n", + "a_C=r_1*alpha_1b;# in/sec**2\n", + "a_D=r_2*alpha_2b;# in/sec**2\n", + "omega=(v_D-v_C)*ABbar**-1;# rad/sec (CCW)\n", + "alpha=(a_D-a_C)/ABbar;# rad/sec**2 (CW)\n", + "v_O=v_C+(AObar*omega);# in/sec\n", + "a_O=a_C+(AObar*alpha);# in/sec\n", + "print\"\\n(b)omega=%0.3f rad/sec (CCW)\\n alpha=%1.0f rad/sec**2 (CW) \\n v_O=%1.3f in/sec \\n a_O=%1.0f in/sec**2\"%(omega,alpha,v_O,a_O);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/6,PAGE NUMBER:341" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "v_A=0.3;# m/s\n", + "b=0.2;# m\n", + "theta=30;# degree\n", + "\n", + "# Calculation\n", + "v_B=-v_A*math.tan(theta*math.pi/180);# m/s\n", + "a_B=-((v_A**2)/b)*(math.acos(theta*math.pi/180))**3;# m/s**2\n", + "omega=(v_A/b)*math.acos(theta*math.pi/180);# rad/s\n", + "alpha=((v_A**2)/b**2)*(math.acos(theta*math.pi/180))**2*math.tan(theta*math.pi/180);# rad/s**2\n", + "print\"\\nThe velocity of the center of the roller B in the horizontal guide,v_B=%1.4f m/s \\nThe acceleration of the center of the roller B in the horizontal guide,a_B=%0.3f m/s**2 \\nThe angular velocity of edge CB,omega=%1.3f rad/s \\nThe angular acceleration of edge CB,alpha=%1.3f rad/sec**2\"%(v_B,a_B,omega,alpha);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/7,PAGE NUMBER:351" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import det,norm\n", + "# Given data\n", + "r=0.300;# m\n", + "v_O=3;# m/s\n", + "theta=30;# degree\n", + "r_0=0.200;# m\n", + "ACbar=0.436;# m\n", + "OCbar=0.300;# m\n", + "\n", + "# Calculation\n", + "# Solution I (Scalar-Geometric)\n", + "omega=v_O/r;# rad/s\n", + "v_AO=r_0*omega;# m/s\n", + "v_A=math.sqrt(v_O**2+v_AO**2+(2*v_O*v_AO*math.cos(theta*math.pi/180)));# m/s\n", + "v_AC=(ACbar/OCbar)*v_O;# m/s\n", + "v_A=v_AC;# m/s\n", + "print\"\\nThe velocity of point A on the wheel,v_A=%1.2f m/s\"%v_A;\n", + "# Solution II (Vector)\n", + "omega=[0,0,-omega];# rad/s\n", + "r_0=[(r_0*-math.cos(theta*math.pi/180)),(r_0*math.sin(theta*math.pi/180)),0];# m\n", + "v_O=[v_O,0,0];# m/s\n", + "v_AO1=det([(omega[1],omega[2]),(r_0[1],r_0[2])]);# m/s\n", + "v_AO2=-det([(omega[0],omega[2]),(r_0[0],r_0[2])]);# m/s\n", + "v_AO3=det([(omega[0],omega[1]),(r_0[0],r_0[1])]);# m/s\n", + "v_AO=[v_AO1,v_AO2,v_AO3];# m/s\n", + "v_A=v_O+v_AO;# m/s\n", + "print\"\\nThe velocity of point A on the wheel,v_A=%1.0fi+%1.3fj m/s\"%(v_A[0],v_A[1]);\n", + "v_A=norm(v_A);# m/s\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/8,PAGE NUMBER:352" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "OCbar=0.250;# m\n", + "omega=2;# rad/s\n", + "OAbar=0.100;# m\n", + "OBbar=0.050;# m\n", + "ABbar=0.075;# m\n", + "\n", + "# Calculation\n", + "# Solution I (Vector)\n", + "r_A=[0,0.100,0];# (i,j,k) m\n", + "r_B=[-0.75,0,0];# (i,j,k) m\n", + "r_AB=[-0.175,0.50,0];# (i,j,k) m\n", + "# omega_OA*r=(omega_CB*r_B)+(omega_AB*r_AB);\n", + "# omega_OA=omega_OA*k\n", + "# omega_CB=2k\n", + "# omega_AB=omega_ABk\n", + "# Matching coefficients of the respective i- and j-terms gives\n", + "omega_AB=-(25*6)*(25*7)**-1;# rad/s\n", + "omega_OA=(50*omega_AB)/100;# rad/s\n", + "print\"\\n(I)The angular velocity of OA,omega_OA=%0.3f rad/s \\n The angular velocity of AB,omega_AB=%0.3f rad/s\"%(omega_OA,omega_AB);\n", + "# Solution II (Scalar-Geometric)\n", + "r_A=0.100;# m\n", + "r_B=0.075;# m\n", + "v_B=r_B*omega;# m/s\n", + "tantheta=(OAbar-OBbar)/(OCbar-r_B);\n", + "# v_AB=v_B/ cos(theta);\n", + "# ABbar= (OCbar-r_AB)/ cos(theta);\n", + "v_A=v_B*tantheta;# m/s\n", + "omega_AB=(v_B)/(OCbar-r_B);# rad/s CW\n", + "omega_OA=v_A/OAbar;# rad/s CW\n", + "print\"\\n(II)The angular velocity of OA,omega_OA=%0.3f rad/s \\n The angular velocity of AB,omega_AB=%0.3f rad/s\"%(omega_OA,omega_AB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/9,PAGE NUMBER:353" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "n=1500;# rev/min\n", + "theta=60;# degree\n", + "r=5;# inch\n", + "d_AG=10;# The distance from A to G in inch\n", + "d_GB=4;# The distance from G to B in inch\n", + "d_AB=14;# The distance from A to B in inch\n", + "\n", + "# Calculation\n", + "v_B=(r*12**-1)*((2*math.pi*n)/60);# ft/sec\n", + "# From the law of sines,\n", + "beta=math.asin(r/(d_AB/math.sin(theta*math.pi/180)));# degree\n", + "theta_3=30;# degree\n", + "theta_1=90-beta;# degree\n", + "theta_2=180-theta_3-theta_1;# degree\n", + "v_A=(v_B*math.sin(theta_2*math.pi/180))/math.sin(theta_1*math.pi/180);# ft/sec\n", + "v_AB=(v_B*math.sin(theta_3*math.pi/180))/math.sin(theta_1*math.pi/180);# ft/sec\n", + "ABbar=d_AB/12;# ft\n", + "omega_AB=v_AB/ABbar;# rad/sec\n", + "GBbar=d_GB/12;# ft\n", + "v_GB=(GBbar/ABbar)*v_AB;# ft/sec\n", + "# From velocity diagram\n", + "v_G=64.1;# ft/sec\n", + "print\"\\nThe velocity of the piston A,v_A=%2.1f ft/sec \\nThe velocity of point G on the connecting rod,v_G=%2.1f ft/sec \\nThe angular velocity of the connecting rod,omega_AB=%2.1f rad/sec\"%(v_A,v_G,omega_AB);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/10,PAGE NUMBER:354" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "\n", + "import math\n", + "# Given data\n", + "v_B=0.8;# The velocity in m/s\n", + "theta=30;# degree\n", + "d_co=18;# The distance in inch\n", + "\n", + "# Calculation\n", + "v_A=v_B*math.cos(theta*math.pi/180);# ft/sec\n", + "OAbar=(d_co/12)/(math.cos(theta*math.pi/180));# ft\n", + "omega=v_A/(OAbar);# rad/sec CCW\n", + "print\"\\nThe angular velocity of the slotted arm,omega=%0.3f rad/sec CCW\"%omega;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/11,PAGE NUMBER:364" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "r=0.300;# m\n", + "r_0=0.200;# m\n", + "v_o=3;# m/s\n", + "OCbar=r;# m\n", + "theta=120;# degree\n", + "\n", + "# Calculation\n", + "omega=v_o/OCbar;# rad/s\n", + "ACbar=math.sqrt(r**2+r_0**2-(2*r*r_0*math.cos(theta*math.pi/180)));# m\n", + "v_A=ACbar*omega;# m/s\n", + "print\"\\nThe velocity of point A for the position indicated,v_A=%1.2f m/s\"%v_A;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/12,PAGE NUMBER:364" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "omega_OB=10;# rad/sec\n", + "theta=45;# degree\n", + "OBbar=(6*math.sqrt(2))/12;# ft\n", + "BCbar=(14*math.sqrt(2))/12;# ft\n", + "ACbar=14/12;# ft\n", + "CDbar=15.23/12;# ft\n", + "\n", + "# Calculation\n", + "omega_BC=(OBbar*omega_OB)/BCbar;# rad/sec CCW\n", + "v_A=ACbar*omega_BC;# ft/sec\n", + "v_D=CDbar*omega_BC;# ft/sec\n", + "print\"\\nThe velocity of A,v_A=%1.2f ft/sec \\nThe velocity of D,v_D=%1.2f ft/sec \\nThe angular velocity of link AB,omega_AB=%1.2f rad/sec CCW\"%(v_A,v_D,omega_BC);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/14,PAGE NUMBER:375" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "omega_CB=2;# rad/s\n", + "r_A=100;# mm\n", + "r_B=75;# mm\n", + "OCbar=250;# mm\n", + "\n", + "# Calculation\n", + "omega_AB=-6/7;# rad/s\n", + "omega_OA=-3/7;# rad/s\n", + "# The acceleration equation is a_A=a_B+(a_A/B)_n+(a_A/B)_t;\n", + "# a_A=(alpha_OA*r_A)+(omega_OA*(omega_OA*r_A))\n", + "# a_A=(-100*alpha_OA)i-((100)*(3/7)**2)j mm/s**2\n", + "# a_B=(alpha_CB*r_B)+(omega_CB*(omega_CB*r_B)) mm/s**2\n", + "# a_B=300i mm/s**2\n", + "# (a_A/B)n=omega_AB*(omega_AB*r_AB)\n", + "# (a_A/B)n=(6/7)**2*(175i-50j) mm/s**2\n", + "# (a_A/B)t= alpha_AB*r_A/B\n", + "# (a_A/B)t=(-50*alpha_AB)i-(175*alpha_AB)j mm/s**2\n", + "# Equate separately the coefficients of the i-terms and the coefficients of the j-terms to give\n", + "def eqn(p):\n", + " alpha_OA,alpha_AB=p\n", + " X1=(-100*alpha_OA)-(429-(50*alpha_AB));\n", + " X2=(-18.37)-(-36.7-(175*alpha_AB));\n", + " return(X1,X2)\n", + "alpha_OA,alpha_AB=fsolve(eqn,(1,1));\n", + "print\"\\nThe angular acceleration of link AB,alpha_AB=%0.4f rad/s**2 \\nThe angular acceleration of link OA,alpha_OA=%1.2f rad/s**2\"%(alpha_AB,alpha_OA);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/15,PAGE NUMBER:376" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "N=1500;# rev/min\n", + "theta_1=60*math.pi/180;# degree\n", + "r=5*12**-1;# ft\n", + "ABbar=14*12**-1;# ft\n", + "\n", + "# Calculation\n", + "omega=(2*math.pi*N)/60;# rad/s\n", + "a_B=r*omega**2;# ft/sec**2\n", + "omega_AB=29.5;# rad/sec\n", + "a_AB_n=ABbar*omega_AB**2;\n", + "# If we adopt an algebraic solution using the geometry of the acceleration polygon, we first compute the angle between AB and the horizontal. With the law of sines, this angle becomes 18.02 degree.\n", + "theta_2=18.02*math.pi/180;# degreB\n", + "def equations(p):\n", + " a_AB,a_A=p;\n", + " return((((a_B*math.cos(theta_1)+(a_AB_n*math.cos(theta_2)-(a_AB*math.sin(theta_2)))-a_A),(((a_B*math.sin(theta_1))-(a_AB_n*math.sin(theta_2))-(a_AB*math.cos(theta_2)))-0))));\n", + "a_AB,a_A=fsolve(equations,(1,1))\n", + "r=ABbar;# ft\n", + "alpha_AB=a_AB/r;# rad/sec**2\n", + "print\"\\nThe acceleration of the piston A,a_A=%4.0f ft/sec**2 \\nThe angular acceleration of the connecting rod AB,alpha_AB=%4.0f rad/sec**2\"%(a_A,alpha_AB);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/16,PAGE NUMBER:391" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "\n", + "import math\n", + "from numpy.linalg import norm\n", + "# Given data\n", + "omega=4;# rad/sec\n", + "omegadot=10;# rad/sec**2\n", + "r=6;# in\n", + "rdot=5;# in/sec\n", + "rdotdot=81;# in/sec**2\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "v_rel=rdot;# (k) in/sec\n", + "v_A=[v_rel,(omega*r)];# in/sec\n", + "print\"\\nv_A=%1.0fi+%2.0fj in/sec\"%(v_A[0],v_A[1]);\n", + "v_A=norm(v_A);# in/sec\n", + "print\"\\nv_A=%2.1f in/sec\"%v_A;\n", + "# Acceleration\n", + "# Assume O=omega*(omega*r);O_1=omegadot*r;O_2=(2*omega*v_rel);\n", + "O=-(omega*(omega*r));# in/sec**2\n", + "O_1=-omegadot*r;# in/sec**2\n", + "O_2=2*(omega)*(v_rel);# in/sec**2\n", + "a_rel=rdotdot;# in/sec**2\n", + "a_A=[(a_rel+O),(O_2+O_1)];# in/sec**2\n", + "print\"\\na_A=%2.0fi+(%2.0f)j in/sec**2\"%(a_A[0],a_A[1]);\n", + "a_A=norm(a_A);# in/sec**2\n", + "print\"\\na_A=%2.0f in/sec\"%a_A;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/17,PAGE NUMBER:392" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "omega=2;# rad/sec\n", + "theta=45;# degree\n", + "OCbar=450;# mm\n", + "CAbar=225;# mm\n", + "\n", + "# Calculation\n", + "# v_A=omega_CA*r_CA;\n", + "# v_A=(225/math.sqrt(2))omega_CA*(i-j)\n", + "OPbar=math.sqrt((OCbar-CAbar)**2+(CAbar)**2);# mm\n", + "r=OPbar;# mm\n", + "omega=omega;#(k) rad/s\n", + "O=omega*r;# mm/s\n", + "# Substitution into the relative-velocity equation gives\n", + "# (225/math.sqrt(2))omega_CA*(i-j)=(450*math.sqrt(2)j+xdoti)\n", + "# Equating separately the coefficients of the i and j terms yields\n", + "omega_CA=O/(225/math.sqrt(2));# mm/s\n", + "xdot=(225/math.sqrt(2))*omega_CA;# mm/s\n", + "v_rel=xdot;# mm/s\n", + "v_A=CAbar*abs(omega_CA);# mm/s\n", + "v_P=OPbar*omega;# mm/s\n", + "v_AP=abs(v_rel);# mm/s\n", + "omega_AC=v_A/CAbar;# rad/s\n", + "print\"\\nThe actual angular velocity of CA,omega_CA=%1.0f rad/s \\nThe velocity of A relative to the rotating slot in OD,xdot=v_rel=%3.2f mm/s \\nThe velocity of pin A,v_A=%3.0f mm/s\"%(omega_CA,xdot,v_A);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/18,PAGE NUMBER:393" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "omega=2;# rad/s\n", + "theta=45;# degree\n", + "OCbar=450;# mm\n", + "CAbar=225;# mm\n", + "\n", + "# Calculation\n", + "# a_A=(omegadot*r)+(omega*(omega*r))+(2*omega*v_rel)+a_rel\n", + "# a_A=(omegadot_CA*r_CA)+omega_CA*(omega_CA*r_CA)\n", + "# a_A=[omegadot_CA*(225/math.sqrt(2))*(-i-j)]-[4k*(-4k*225/math.sqrt(2))*(-i-j)]\n", + "omega=2;# rad/s\n", + "r=CAbar*math.sqrt(2);# mm\n", + "omega_CA=-4;# rad/s\n", + "v_rel=(-OCbar*math.sqrt(2));# mm/s\n", + "# Assume O=omega*(omega*r);O_1=omegadot*r;O_2=(2*omega*v_rel);\n", + "O_1=0;# mm/s**2\n", + "O_2=omega*(omega*r);# mm/s**2\n", + "O_2=2*omega*v_rel;# mm/s**2\n", + "# a_rel=xdotdot;\n", + "# [(1/math.sqrt(2))*(225omegadot_CA+3600)i]+[(1/math.sqrt(2))*(-225omegadot_CA+3600)j] =(900*math.sqrt(2))i-(1800*math.sqrt(2))j+xdotdoti\n", + "omegadot_CA=(((-1800*math.sqrt(2))*math.sqrt(2))-3600)/-225;# rad/s**2\n", + "xdotdot=(((225*omegadot_CA)+3600)/math.sqrt(2))-(-900*math.sqrt(2));# mm/s**2\n", + "print\"\\nThe angular acceleration of AC,omega_CA=%2.0f rad/s \\nThe acceleration of A relative to the rotating slot in OD,xdotdot=%4.0f mm/s\"%(omegadot_CA,xdotdot);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 5/19,PAGE NUMBER:394" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "\n", + "import math\n", + "# Given data\n", + "v_B=150;# (i) m/s\n", + "v_A=100;# (i) m/s\n", + "rho=400;# m\n", + "r=-100;# m\n", + "\n", + "# Calculation\n", + "omega=v_B*rho**-1;# (k) rad/s\n", + "r_AB=r;# (j) m\n", + "v_rel=v_A-(v_B+(-(omega*r)));# (i) m/s\n", + "a_A=0;# m/s**2\n", + "a_B=(v_B)**2*rho**-1;# m/s**2\n", + "omegadot=0;# rad/s\n", + "a_rel=(a_A-((a_B)+(omegadot*r)+(omega*(omega*r))+(2*(omega*v_rel))));# m/s**2\n", + "print\"\\nThe instantaneous velocity,v_rel=%2.1fi m/s \\nThe instantaneous acceleration,a=%1.2fk m/s**2\"%(v_rel,a_rel);\n", + "v_AB=v_A-v_B;# (i) m/s\n", + "a_AB=a_A-a_B;# (j) m/s**2\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER6.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER6.ipynb new file mode 100644 index 00000000..2b71d43f --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER6.ipynb @@ -0,0 +1,640 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 6:PLANE KINETICS OF RIGID BODIES" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/1,PAGE NUMBER:422" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "W=3220;# lb\n", + "v=44;# m/s (30 mi/hr)\n", + "s=200;# ft\n", + "mu=0.8;# The effective coefficient of friction between the tires and the road\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "d_G=24;# inch\n", + "d_BG=60;# inch\n", + "d_GA=60;# inch\n", + "\n", + "# Calculation\n", + "abar=v**2*(2*s)**-1;# ft/sec**2\n", + "theta=math.atan((1*10**-1))*180/math.pi;# degree\n", + "W_h=W*math.cos(theta*math.pi/180);# lb\n", + "W_v=W*math.sin(theta*math.pi/180);# lb\n", + "mabar=(W/g)*abar;# lb\n", + "# SigmaF_x = m*abar_x\n", + "F=mabar+W_v;# lb\n", + "def equations(p):\n", + " N_1,N_2=p\n", + " return(N_1+N_2-W_h,((d_GA*N_1+(F*d_G)-(N_2*d_BG))))\n", + "N_1,N_2=fsolve(equations,(10,10))\n", + "FbyN_2=F/N_2;\n", + "print\"\\nThe friction force under the rear driving wheels,F=%3.0f lb \\nThe normal force under each pair of wheels,N_1=%4.0f lb & N_2=%4.0f lb\"%(F,N_1,N_2);" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/2,PAGE NUMBER:423" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "#Given data\n", + "m=150;#kg\n", + "M=5;#kN\n", + "theta=30;#degree\n", + "ACbar=1.5;#m\n", + "BDbar=1.5;#m\n", + "ABbar=1.8;#m\n", + "g=9.81;#The acceleration due to gravity in m/s**2\n", + "\n", + "#Calculation\n", + "#SigmaM_C=0\n", + "A_t=M/ACbar;#kN\n", + "#SigmaF_t=m*abar_t\n", + "#alpha=14.81-6.54*cos(theta);\n", + "wsquare_30=(29.6*theta*math.pi/180)-(13.08*math.sin(theta*math.pi/180));#(rad/s)**2\n", + "alpha_30=14.81-(6.54*math.cos(theta*math.pi/180));#rad/s**2\n", + "A_n=(m*1000**-1)*ACbar*wsquare_30;#kN\n", + "A_t=(m*1000**-1)*BDbar*alpha_30;#kN\n", + "#SigmaM_A=m*abar*d\n", + "B=((A_n*(ABbar-0.6)*math.cos(theta*math.pi/180))+(A_t*0.6))/(ABbar*math.cos(theta*math.pi/180));#kN\n", + "print\"\\nThe force in the link DB,B=%1.2f kN\"%B;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/3,PAGE NUMBER:432" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "W_b=644;# lb\n", + "r_i=12;# inch\n", + "r_o=24;# inch\n", + "theta=45;# degree\n", + "P=400;# lb\n", + "k_o=18;# inch\n", + "W=322;# lb\n", + "g=32.2;# lb\n", + "\n", + "# Calculation\n", + "# Solution 1\n", + "# I=k**2*m\n", + "k=k_o*12**-1;# ft**2\n", + "Ibar=k**2*(W/g);# lb-ft-sec**2\n", + "def equations(p):\n", + " T,alpha,a=p\n", + "# SigmaM_G=Ibar*alpha\n", + "# SigmaF_y=m*a_y\n", + "# a_t=r*a;\n", + " return((((P*(r_o/12))-(T*(r_i/12)))-(Ibar*alpha)),((T-W_b)-((W_b/g)*a)),(a-((r_i/12)*alpha)))\n", + "T,alpha,a=fsolve(equations,(100,1,1))\n", + "# SigmaF_x=0\n", + "O_x=P*math.cos(theta*math.pi/180);# lb\n", + "# SigmaF_y=0\n", + "O_y=W+T+(P*math.sin(theta*math.pi/180));# lb\n", + "O=math.sqrt(O_x**2+O_y**2);# lb\n", + "print\"\\nSolution I:T=%3.0f lb,alpha=%1.2f rad/sec**2,a=%1.2f ft/sec**2,O=%4.0f lb\"%(T,alpha,a,O);\n", + "# Solution 2\n", + "def equations(p):\n", + " alpha,a=p\n", + "# SigmaM_o=(Ibar*alpha)+(m*abar*d)\n", + "# a_t=r*a;\n", + " return((((P*(r_o/12))-(W_b*(r_i/12)))-((Ibar*alpha)+((W_b/g)*a*(r_i/12)))),(a-((r_i/12)*alpha)))\n", + "alpha,a=fsolve(equations,(1,1))\n", + "# SigmaF_y=Sigmam*(a_ybar)\n", + "O_y=(W+W_b+(P*math.sin(theta*math.pi/180)))+(((W/g)*(0))+((W_b/g)*alpha));# lb\n", + "# SigmaF_x=Sigmam*(a_xbar)\n", + "O_x=P*math.sin(theta*math.pi/180);# lb\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/4,PAGE NUMBER:433" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "m=7.5;# kg\n", + "rbar=0.250;# m\n", + "k_o=0.295;# m\n", + "theta_1=0;# degree\n", + "theta_2=60;# degree\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "# SigmaM_o=I_o*alpha;\n", + "# alpha=28.2*cos(theta);\n", + "wsquare=48.8;# (rad/s)**2\n", + "# SigmaF_n=m*rbar*omega**2;\n", + "O_n=(m*rbar*wsquare)+(m*g*math.sin(theta_2*math.pi/180));# N\n", + "# SigmaF_t=m*rbar*alpha;\n", + "O_t=(m*g*math.cos(theta_2*math.pi/180))-(m*rbar*28.2*math.cos(theta_2*math.pi/180));# N\n", + "O=math.sqrt(O_n**2+O_t**2);# N\n", + "q=k_o**2/(rbar);# The distance in m\n", + "# SigmaM_Q=0\n", + "O_t=(m*g*math.cos(theta_2*math.pi/180)*(q-rbar))/q;# N\n", + "print\"\\nThe total force supported by the bearing,O=%3.1f N \\nO_t=%2.2f N\"%(O,O_t);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/5,PAGE NUMBER:446" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "r=6*12**-1;# ft\n", + "mu_s=0.15;# The coefficients of static friction\n", + "mu_k=0.12;# The coefficients of kinetic friction\n", + "theta=20;# degree\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "x=10;# ft\n", + "\n", + "# Calculation\n", + "# SigmaF_x=m*abar_x----> mg*math.sin(theta*math.pi/180)-F=m*abar\n", + "# SigmaF_x=m*abar_y----> N-mg*math.cos(theta*math.pi/180)=0\n", + "# SigmaM_G=Ibar*alpha---> F*r=m*r**2*alpha\n", + "abar=(g/2)*math.sin(theta*math.pi/180);# ft/sec**2\n", + "# SigmaM_G=Ibar*alpha+m*abar*d----->mgr*sin(theta)=mr**2*(abar/r)+ m*abar*r\n", + "# From the above equations,we solve using the coefficients of mg\n", + "F=math.sin(theta*math.pi/180)-(math.sin(theta*math.pi/180))/2;# N\n", + "N=math.cos(theta*math.pi/180);# N\n", + "F_max=mu_s*N;# N\n", + "F=mu_k*N;# N\n", + "# SigmaF_x=m*abar_x\n", + "abar=(math.sin(theta*math.pi/180)-F)*g;# ft/sec**2\n", + "alpha=(F*g)/r;# rad/sec**2\n", + "t=math.sqrt((2*x)/abar);# sec\n", + "print\"\\nThe angular acceleration of the hoop,alpha=%1.2f ft/sec**2 \\nThe time t for the hoop to move a distance of 10 ft down the incline,t=%1.3f sec\"%(alpha,t);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/6,PAGE NUMBER:447" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "# SAMPLE PROBLEM 6/6\n", + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "alpha_0=3;# rad/s**2\n", + "m=70;# kg\n", + "k=0.250;# The radius of gyration in m\n", + "mu_s=0.25;# The coefficient of static friction\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "DCbar=0.30;# m\n", + "r_A=0.250;# m\n", + "r_Bi=0.150;# m\n", + "r_Bo=0.450;# m\n", + "\n", + "# Calculation\n", + "a_t=r_A*alpha_0;# m/s**2\n", + "alpha=a_t*DCbar**-1;# rad/s**2\n", + "abar=r_Bo*alpha;# m/s**2\n", + "def equations(p):\n", + " F,T=p\n", + " N=(m*g);# N\n", + " # SigmaF_x=m*abar_x\n", + " # SigmaM_G=Ibar*alpha\n", + " return(((F-T)-(m*-abar)),(((r_Bo*F)-(r_Bi*T))-(m*k**2*alpha)))\n", + "F,T=fsolve(equations,(10,100))\n", + "print\"\\nThe tension in the cable,T=%3.1f N \\nThe friction force exerted by the horizontal surface on the spool,F=%2.1f N\"%(T,F);\n", + "N=(m*g);# N\n", + "F_max=mu_s*N;# N\n", + "# If the coefficient of static friction had been 0.1\n", + "mu_s=0.1;# The coefficient of static friction\n", + "F=mu_s*(m*g);# N\n", + "# SigmaM_C=Ibar*alpha + m*abar*r\n", + "T=((m*(r_A**2)*alpha)+(m*abar*r_Bo))/DCbar;# N\n", + "print\"\\nThe tension in the cable,T=%3.1f N\"%T;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/7,PAGE NUMBER:448" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "W=60;# lb\n", + "theta=30*math.pi/180;# degree\n", + "F=30;# lb\n", + "BGbar=2;# ft\n", + "AGbar=2;# ft\n", + "l=4;# ft\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "# Calculation\n", + "# abar_x=abar*cos(theta)=1.732*alpha;\n", + "# abar_y=abar*sin(theta)=1.0*alpha;\n", + "def equations(p):\n", + " A,B,alpha=p\n", + " # SigmaM_G=Ibar*alpha;\n", + " # SigmaF_x=m*abar_x;\n", + " # SigmaF_y=m*abar_y;\n", + " return((((F*(2*math.cos(theta)))-(A*(AGbar*math.sin(theta)))+(B*(BGbar*math.cos(theta))))-((1*12**-1)*(W/g)*l**2*alpha)),((F-B)-((W/g)*(2*math.cos(theta)*alpha))),((A-W)-((W/g)*2*math.sin(theta)*alpha)));\n", + "A,B,alpha=fsolve(equations,(10,10,1))\n", + "print\"\\nThe forces on the small end rollers ,A=%2.1f lb and B=%2.2f lb \\nThe resulting angular acceleration of the bar,alpha=%1.2f rad/sec**2\"%(A,B,alpha);\n", + "# Alternative solution\n", + "# SigmaM_C=(Ibar*alpha)+(Sigma m*abar*d)\n", + "alpha=((F*(l*math.cos(theta)))-(W*2*math.sin(theta)))/(((1*12**-1)*(W/g)*l**2)+((W/g)*1.732*2*math.cos(theta))+((W/g)*1*2*math.sin(theta)));# rad/sec**2\n", + "# SigmaF_x=m*abar_x;\n", + "abar_y=2*alpha*math.sin(theta);# ft\n", + "A=((W/g)*abar_y)+W;# lb\n", + "# SigmaF_x=m*abar_x;\n", + "abar_x=2*alpha*math.cos(theta);# ft\n", + "B=F-((W/g)*abar_x);# lb\n", + "print\"\\nAlternative solution: \\nThe forces on the small end rollers ,A=%2.1f lb and B=%2.2f lb \\nThe resulting angular acceleration of the bar,alpha=%1.2f rad/sec**2\"%(A,B,alpha);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/9,PAGE NUMBER:464" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "F=100;# N\n", + "m=40;# kg\n", + "k=0.150;# m\n", + "theta=15;# degree\n", + "r_i=0.100;# m\n", + "r_o=0.200;# m\n", + "l=3;# The distance in m\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "W=m*g;# N\n", + "l=(r_o+r_i)/r_i;# m\n", + "U_12=(F*((r_o+r_i)/r_i)*l)-((W*math.sin(theta*math.pi/180)*l));# J\n", + "T_1=0;# J\n", + "# T_2=((1/2)*m*vbar**2)+((1/2)*Ibar*omega**2);\n", + "# The work-energy equation gives\n", + "omega=math.sqrt((T_1+U_12)/((m*(r_i)**2/2)+((m*k**2/2))));# rad/s\n", + "# Alternatively, the kinetic energy of the wheel may be written\n", + "# T=(1/2)*I_C*omega**2\n", + "P_100=F*(r_o+r_i)*omega;# W\n", + "print\"The power input,P=%3.0f W\"%P_100;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/10,PAGE NUMBER:465" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "l=4;# ft\n", + "W=40;# The weight of the slender bar in N\n", + "theta=30;# degree\n", + "k=30;# The stiffness of the spring in lb/in\n", + "ABbar=24;# inch\n", + "BDbar=24;# inch\n", + "h=-2;# inch\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "\n", + "# Calculation\n", + "# (a)\n", + "# T=[[(1/2)*m*v**2]+((1/2)*I_G*omega**2)];\n", + "# T=1.449*omega**2;\n", + "T_1=0;# ft-lb\n", + "U_12=0;# ft-lb\n", + "V_1=0;# ft-lb\n", + "V_2=W*((2*math.cos(theta*math.pi/180))-2);# ft-lb\n", + "# We now substitute into the energy equation and obtain\n", + "omega=math.sqrt(((T_1+V_1+U_12)-(V_2))/1.449);# rad/sec\n", + "# (b)\n", + "x=ABbar-18;# ft\n", + "V_1=0;# ft-lb\n", + "V_3=(1/2)*k*(x**2)/12;# ft-lb\n", + "# T=(1/2)*I_A*omega**2;\n", + "# T_3=0.828*v_B**2;\n", + "U_13=0;# ft-lb\n", + "# The final gravitational potential energy is\n", + "V_3p=W*h;# ft-lb\n", + "v_B=math.sqrt(((T_1+V_1+U_13)-(V_3+V_3p))/0.828);# ft-lb\n", + "print\"\\n(a)The angular velocity of the bar,omega=%1.2f rad/sec \\n(b)The velocity with which B strikes the horizontal surface,v_B=%1.2f ft/sec\"%(omega,v_B);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/11,PAGE NUMBER:466" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "m=30;# kg\n", + "k=0.100;# m\n", + "m_OB=10;# kg\n", + "m_c=7;# kg\n", + "K=30;# kN/m\n", + "theta=45;# degree\n", + "l=0.375;# m\n", + "g=9.81;# m/s**2\n", + "\n", + "# Calculation\n", + "# (a)\n", + "# T_2=[2*((1/2)*I_G*omega**2]+[(1/2)*m*v**2];\n", + "# T_2= 6.83*v_B**2;\n", + "T_1=0;# J\n", + "l_b=l/math.sqrt(2);# m\n", + "V_1=(2*m_OB*g*(l_b/2))+(m_c*g*l_b);# J\n", + "V_2=0;# J\n", + "U_12=0;# J\n", + "v_B=math.sqrt(((T_1+V_1+U_12)-(V_2))/6.83);# m/s\n", + "# (b)\n", + "T_3=0;# J\n", + "U_13=0;# J\n", + "def equations(p):\n", + " x=p;\n", + " return((T_1+V_1+U_13)-(T_3+((-2*m_OB*g*(x/2))-(m_c*g*x)+(K*10**3*x**2/2))));\n", + "x=fsolve(equations,(1))\n", + "x=x*1000;# mm\n", + "print\"\\n(a)The velocity of the collar as it first strikes the spring,v_B=%1.2f m/s \\n(b)The maximum deformation of the spring,x=%2.1f mm\"%(v_B,x);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/12,PAGE NUMBER:479" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "m_A=3;# kg\n", + "m=2;# kg\n", + "k=0.060;# The radius of gyration in m\n", + "k=1.2;# The spring stiffness in kN/m\n", + "F=80;# N\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "# dT_rack=3a dx\n", + "# dT_gear=0.781a dx\n", + "# dV_rack=29.4 dx\n", + "# dV_gear=9.81 dx\n", + "# dV_spring=24 dx\n", + "# Canceling dx and solving for a give\n", + "a=(80-(29.4+9.81+24))/(3+0.781);\n", + "print\"\\nThe acceleration of rack A,a=%1.2f m/s**2\"%a;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/14,PAGE NUMBER:491" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "import sympy\n", + "from scipy.optimize import fsolve\n", + "# Given data\n", + "# P=1.5*t;\n", + "r_i=9*12**-1;# ft\n", + "r_o=18*12**-1;# ft\n", + "t_1=0;# s\n", + "t_2=10;# s\n", + "k=10*12**-1;# ft\n", + "W=120;# lb\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "v_1=-3;# ft/sec\n", + "\n", + "# Calculation\n", + "def equations(p):\n", + " F,omega_2=p;\n", + " f_1=(((W/g)*v_1)+((1.5*((t_2-t_1)**2)*2**-1)-(F*(t_2-t_1)))-((W/g)*r_o*omega_2));\n", + " f_2=((((W/g)*k**2*(v_1/r_o))+(((r_o*F*(t_2-t_1))-(r_i*1.5*(t_2-t_1)**2)*2**-1)))-((W/g)*k**2*omega_2));\n", + " return(f_1,f_2)\n", + "F,omega_2=fsolve(equations,(10,1))\n", + "print\"\\nThe angular velocity of the wheel,omega_2=%1.2f rad/sec\"%omega_2;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 6/15,PAGE NUMBER:492" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data\n", + "m_E=30;# kg\n", + "m_D=40;# kg\n", + "v_1=1.2;# m/s\n", + "t_1=0;# s\n", + "t_2=5;# s\n", + "F=380;# N\n", + "d=0.375;# m\n", + "k_o=0.250;# m\n", + "g=9.81;# m/s**2\n", + "\n", + "# Calculation\n", + "# [H_O1+(integral(t_2 to t_2))SigmaM_Odt=H_O2]\n", + "# Integrating we get\n", + "M=((((F*0.750)*t_2)-(((m_E+m_D)*g*d)*t_2))-(((F*0.750)*t_1)-(((m_E+m_D)*g*d)*t_1)));# N.m.s\n", + "Ibar=(m_E)*k_o**2;# kg-m**2\n", + "omega_1=v_1*d**-1;#rad/sec\n", + "H_O1=-((m_E+m_D)*v_1*d)-(Ibar*(v_1/d));# N.m.s\n", + "# H_O2=-(m_E+m_D*v_2*d)-(Ibar*(v_2/d));\n", + "# H_O2=11.72*omega_2;\n", + "# Substituting into the momentum equation gives\n", + "omega_2=(H_O1+M)/11.72;# N.m.s\n", + "# [G_1+(integral(t_2 to t_2))SigmaFdt=G_2]\n", + "m=m_E+m_D;# kg\n", + "G_1=m*-(v_1);# (kg.m/s)\n", + "G_2=m*(d*omega_2);# (kg.m/s)\n", + "# Integrating\n", + "# SigmaF=[T*(t_2)+(F*t_2)-(m*g*t_2)]-[T*(t_1)+(F*t_1)-(m*g*t_1)];\n", + "T=((G_2-G_1)-(((F*t_2)-(m*g*t_2))-((F*t_1)-(m*g*t_1))))/(t_2-t_1);# N\n", + "print\"\\nThe angular velocity,omega_2=%1.2f rad/s counter clockwise \\nThe tension in the cable,T=%3.0f N\"%(omega_2,T);\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER7.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER7.ipynb new file mode 100644 index 00000000..7b07b51f --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER7.ipynb @@ -0,0 +1,415 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# CHAPTER 7:INTRODUCTION TO THREE-DIMENSIONAL DYNAMICS OF RIGID BODIES" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/1,PAGE NUMBER:519" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import det\n", + "# Variable declaration\n", + "L=0.8;# m\n", + "N=60;# rev/min\n", + "betadot=4;# rad/s\n", + "beta=30;# degree\n", + "\n", + "# Solution\n", + "# (a)\n", + "omega_x=betadot;# (i) rad/s\n", + "omega_z=(2*math.pi*N/60);# (k) rad/s\n", + "omega=[omega_x,0,omega_z];# (i,j,k) rad/s\n", + "print\"(a)The angular velocity of OA,omega=%1.0fi+%1.2fk rad/s\"%(omega[0],omega[2]);\n", + "# (b)\n", + "omegadot_z=0;# (k) rad/s\n", + "omegadot_x=omega_z*omega_x;# (i) rad/s\n", + "alpha=omegadot_x+omegadot_z;# (j) rad/s**2\n", + "alpha=[0,alpha,0];# (i,j,k) rad/s**2\n", + "print\"(b)The angular acceleration of OA,alpha=%2.1fj rad/s**2\"%(alpha[1]);\n", + "# (c)\n", + "r=[0,0.693,0.4];# m\n", + "# v=omega*r;\n", + "v_1=det([(omega[0],omega[2]),(r[1],r[2])]);# m/s\n", + "v_2=-det([(omega[0],omega[2]),(r[0],r[2])]);# m/s\n", + "v_3=det([(omega[0],omega[1]),(r[0],r[1])]);# m/s\n", + "v=[v_1,v_2,v_3];# m/s\n", + "print\"(c)The velocity of point A,v=%1.2fi+(%1.2f)j+%1.2fk m/s\"%(v[0],v[1],v[2]);\n", + "# (d)\n", + "a_1=det([(alpha[1],alpha[2]),(r[1],r[2])])+det([(omega[1],omega[2]),(v[1],v[2])]);# m/s**2\n", + "a_2=-det([(alpha[0],alpha[2]),(r[0],r[2])])+(-det([(omega[0],omega[2]),(v[0],v[2])]));# m/s**2\n", + "a_3=det([(alpha[0],alpha[1]),(r[0],r[1])])+det([(omega[0],omega[1]),(v[0],v[1])]);# m/s**2\n", + "a=[a_1,a_2,a_3];# m/s**2\n", + "print\"(d)The acceleration of point A,v=%2.1fi+(%2.1f)j+(%1.2f)k m/s**2\"%(a[0],a[1],a[2]);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/2,PAGE NUMBER:520" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import det\n", + "# Variable declaration\n", + "N_0=120;# rev/min\n", + "N=60;# rev/min\n", + "gamma=30;# degree\n", + "OCbar=10;# inch\n", + "CAbar=5;# inch\n", + "theta=30;# degree\n", + "\n", + "# Calculation\n", + "# (a)\n", + "omega_0=(2*math.pi*N_0)/60;# rad/sec\n", + "omega_1=(2*math.pi*N)/60;# rad/sec\n", + "omega=[0,(omega_1*math.cos(gamma*math.pi/180)),(omega_0+(omega_1*math.sin(theta*math.pi/180)))];# rad/sec\n", + "print\"(a)The angular velocity,omega=%1.2fj+%2.2fk rad/s\"%(omega[1],omega[2]);\n", + "alpha=[(omega_1*omega_0*math.cos(theta*math.pi/180)),0,0];# rad/sec**2\n", + "print\"(b)The angular acceleration,alpha=%2.1fi rad/s**2\"%alpha[1]; \n", + "r=[0,5,10];# inch\n", + "# (c)\n", + "# v=omega*r;\n", + "v_1=det([(omega[1],omega[2]),(r[1],r[2])]);# in/sec\n", + "v_2=-det([(omega[0],omega[2]),(r[0],r[2])]);# in/sec\n", + "v_3=det([(omega[0],omega[1]),(r[0],r[1])]);# in/sec\n", + "v=[v_1,v_2,v_3];# in/sec\n", + "print\"(c)The velocity of point A,v=%2.1fi+(%1.0f)j+%1.fk in/sec\"%(v[0],v[1],v[2]);\n", + "# a=(alpha*r)+(omega*v)\n", + "a_1=det([(alpha[1],alpha[2]),(r[1],r[2])])+det([(omega[1],omega[2]),(v[1],v[2])]);# in/sec**2\n", + "a_2=-det([(alpha[0],alpha[2]),(r[0],r[2])])+(-det([(omega[0],omega[2]),(v[0],v[2])]));# in/sec**2\n", + "a_3=det([(alpha[0],alpha[1]),(r[0],r[1])])+det([(omega[0],omega[1]),(v[0],v[1])]);# in/sec**2\n", + "a=[a_1,a_2,a_3];# in/sec**2\n", + "print\" The acceleration of point A,a=%1.0fi+(%1.0f)j+%3.0fk in/sec**2\"%(a[0],a[1],a[2]);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/3,PAGE NUMBER:530" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "from numpy.linalg import norm\n", + "from scipy.optimize import fsolve\n", + "# Variable declaration\n", + "omega_1=6;# rad/s\n", + "r_x=50;# mm\n", + "r_y=100;# mm\n", + "r_z=100;# mm\n", + "\n", + "# Calculation\n", + "# v_A=r_x*omega_2;\n", + "v_B=r_y*omega_1;# (i) mm/s\n", + "# v_A=v_B+(omega_n*r_A/B);\n", + "# Expanding the determinant and equating the coefficients of the i, j, k terms give\n", + "def equations(p):\n", + " omega_nx,omega_ny,omega_nz,omega_2=p\n", + " return((-6-(omega_ny-omega_nz)),(omega_2-((-2*omega_nx)+omega_nz)),(0-((2*omega_nx)-omega_ny)),(((r_x*omega_nx)+(r_y*omega_ny)+(r_z*omega_nz))))\n", + "omega_nx,omega_ny,omega_nz,omega_2=fsolve(equations,(1,1,1,1))\n", + "omega_n=[omega_nx,omega_ny,omega_nz];# rad/s\n", + "omega_n=norm(omega_n);# rad/s\n", + "print\"\\nThe angular velocity of crank DA,omega_2=%1.0f rad/s\\nThe angular velocity of link AB,omega_n=%1.3f rad/s\"%(omega_2,omega_n);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/4,PAGE NUMBER:531" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import norm\n", + "from scipy.optimize import fsolve\n", + "# Variable declaration\n", + "# From sample problem 7/3\n", + "omega_1=6;# rad/s\n", + "omega_2=6;# rad/s\n", + "r_x=50;# mm\n", + "r_y=100;# mm\n", + "r_z=100;# mm\n", + "omega_n=2*math.sqrt(5);# rad/s\n", + "\n", + "# Calculation\n", + "r_AB=[r_x,r_y,r_z];# mm\n", + "# a_A=[r_x*omega_2**2]i+[r_x*omegadot]j;\n", + "# a_B=[r_y*omega_1**2]k+[0]i;\n", + "omegadot=[(omega_n**2*r_AB[0]),(omega_n**2*r_AB[1]),(omega_n**2*r_AB[2])];# rad/s**2\n", + "# omegadot*r_A/B=(100*omegadot_ny-100*omegadot_nz)i+(50*omegadot_nz-100*omegadot_nx)j+(100*omegadot_nx-50omegadot_ny)k\n", + "def equations(p):\n", + " omegadot_nx,omegadot_ny,omegadot_nz,omegadot_2=p\n", + " return((28-(omegadot_ny-omegadot_nz)),((omegadot_2+40)-((-2*omegadot_nx)+omegadot_nz)),(-32-((2*omegadot_nx)-omegadot_ny)),(((2*omegadot_nx)+(4*omegadot_ny)+(4*omegadot_nz))))\n", + "omegadot_nx,omegadot_ny,omegadot_nz,omegadot_2=fsolve(equations,(1,1,1,1))\n", + "omegadot_nv=[omegadot_nx,omegadot_ny,omegadot_nz];# rad/s**2\n", + "omegadot_n=norm(omegadot_nv);# rad/s**2\n", + "print\"The angular acceleration of crank AD,omegadot_2=%2.0f rad/s\\nomegadot_n=%1.0fi+%1.0fj+(%1.0f)z rad/s**2\\nThe angular acceleration of link AB,omegadot_n=%2.2f rad/s\"%(omegadot_2,omegadot_nv[0],omegadot_nv[1],omegadot_nv[2],omegadot_n);\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/5,PAGE NUMBER:532" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "from numpy.linalg import det,norm\n", + "# Variable declaration\n", + "omega=3;# rad/s\n", + "p=8;# rad/s\n", + "gamma=30;# degree\n", + "y=0.300;# m\n", + "z=0.120;# m\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "omega=[0,0,3];# rad/s\n", + "r_B=[0,0.350,0];# m\n", + "v_B1=det([(omega[1],omega[2]),(r_B[1],r_B[2])]);# m/s\n", + "v_B2=-det([(omega[0],omega[2]),(r_B[0],r_B[2])]);# m/s\n", + "v_B3=det([(omega[0],omega[1]),(r_B[0],r_B[1])]);# m/s\n", + "v_B=[v_B1,v_B2,v_B3];# m/s\n", + "# Note that k*i=J=jcos(gamma*math.pi/180)-ksin(gamma),K*j=-i*cos(gamma*math.pi/180) and K*k=i*sin(gamma)\n", + "r_AB=[0,y,z];# m\n", + "# omega*r_AB=3K*(yj+zk);\n", + "omegaintor_AB=(-(omega[2]*(y*math.cos(gamma*math.pi/180))))+(omega[2]*(z*math.sin(gamma*math.pi/180)));# m/s\n", + "p=[0,8,0];# rad/s\n", + "v_rel1=det([(p[1],p[2]),(r_AB[1],r_AB[2])]);# m/s\n", + "v_rel2=-det([(p[0],p[2]),(r_AB[0],r_AB[2])]);# m/s\n", + "v_rel3=det([(p[0],p[1]),(r_AB[0],r_AB[1])]);# m/s\n", + "v_rel=[v_rel1,v_rel2,v_rel3];# m/s\n", + "v_A=v_B[0]+omegaintor_AB+v_rel[0];# m/s\n", + "print\"The velocity of point A,v_A=%0.4fi m/s\"%v_A;\n", + "# Acceleration\n", + "a_B1=det([(omega[1],omega[2]),(v_B[1],v_B[2])]);# m/s**2\n", + "a_B2=-det([(omega[0],omega[2]),(v_B[0],v_B[2])]);# m/s**2\n", + "a_B3=det([(omega[0],omega[1]),(v_B[0],v_B[1])]);# m/s**2\n", + "a_B=[a_B1,a_B2,a_B3];# m/s**2\n", + "a_B=[0,((a_B[1]*(math.cos(gamma*math.pi/180)))),-(a_B[1]*(math.sin(gamma*math.pi/180)))];# m/s**2\n", + "omegadot=0;# m/s**2\n", + "# Assume O=omega*(omega*r_A/B)\n", + "O=[0,((omega[2]*omegaintor_AB*(math.cos(gamma*math.pi/180)))),-omega[2]*(omegaintor_AB*(math.sin(gamma*math.pi/180)))];# m/s**2\n", + "# Assume O_1=2*omega*v_rel\n", + "O_1=[0,((2*omega[2]*v_rel[0]*(math.cos(gamma*math.pi/180)))),-2*omega[2]*(v_rel[0]*(math.sin(gamma*math.pi/180)))];# m/s**2\n", + "a_rel1=det([(p[1],p[2]),(v_rel[1],v_rel[2])]);# m/s**2\n", + "a_rel2=-det([(p[0],p[2]),(v_rel[0],v_rel[2])]);# m/s**2\n", + "a_rel3=det([(p[0],p[1]),(v_rel[0],v_rel[1])]);# m/s**2\n", + "a_rel=[a_rel1,a_rel2,a_rel3];# m/s**2\n", + "a_A=[(a_B[0]+(omegadot*r_AB[0])+O[0]+O_1[0]+a_rel1),(a_B[1]+(omegadot*r_AB[1])+O[1]+O_1[1]+a_rel2),(a_B[2]+(omegadot*r_AB[2])+O[2]+O_1[2]+a_rel3)];# m/s**2\n", + "a_A=norm(a_A);# m/s**2\n", + "print\"The acceleration of point A,a_A=%1.2f m/s\"%a_A;\n", + "# Angular Acceleration\n", + "# Note that k*i=J=jcos(gamma*math.pi/180)-ksin(gamma),K*j=-i*cos(gamma*math.pi/180) and K*k=i*sin(gamma)\n", + "omega=[3,8];# rad/s (K,j)(k*j=-i*cos(gamma*math.pi/180))\n", + "alpha=(0+(-omega[0]*omega[1]*math.cos(gamma*math.pi/180)));# (i) rad/s**2\n", + "print\"The angular acceleration of the disk,alpha=%2.1fi rad/s**2\"%alpha;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/6,PAGE NUMBER:544" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "m=70;# The mass of bent plate in kg\n", + "omega=30;# rad/s\n", + "x_A=0.125;# m\n", + "y_A=0.100;# m\n", + "x_B=0.075;# m\n", + "y_B=.150;# m\n", + "d_x=0.0375;# m\n", + "d_y=0.125;# m\n", + "d_z=0.075;# m\n", + "\n", + "# Calculation\n", + "# Part A\n", + "m_A=x_A*y_A*m;# kg\n", + "m_B=x_B*y_B*m;# kg\n", + "I_xxA=((m_A/12)*(y_A**2+x_A**2))+(m_A*((x_A/2)**2+(y_A/2)**2));# kg.m**2\n", + "I_yyA=(m_A/3)*(y_A)**2;# kg.m**2\n", + "I_zzA=(m_A/3)*(x_A)**2;# kg.m**2\n", + "I_xyA=0;# kg.m**2\n", + "I_xzA=0;# kg.m**2\n", + "I_yzA=0+(m_A*(x_A/2)*(y_A/2));# kg.m**2\n", + "# Part B\n", + "I_xxB=((m_B/12)*(y_B**2))+((m_B)*(d_y**2+d_z**2));# kg.m**2\n", + "I_yyB=((m_B/12)*(x_B**2+y_B**2))+(m_B*(d_x**2+d_z**2));# kg.m**2\n", + "I_zzB=((m_B/12)*(x_B**2))+(m_B*((x_A)**2+(d_x**2)));# kg.m**2\n", + "I_xyB=0+(m_B*d_x*d_y);# kg.m**2\n", + "I_xzB=0+(m_B*d_x*d_z);# kg.m**2\n", + "I_yzB=0+(m_B*d_y*d_z);# kg.m**2\n", + "I_xx=I_xxA+I_xxB;# kg.m**2\n", + "I_yy=I_yyA+I_yyB;# kg.m**2\n", + "I_zz=I_zzA+I_zzB;# kg.m**2\n", + "I_xy=I_xyA+I_xyB;# kg.m**2\n", + "I_xz=I_xzA+I_xzB;# kg.m**2\n", + "I_yz=I_yzA+I_yzB;# kg.m**2\n", + "# (a)\n", + "H_o=[-(omega*I_xz),-(omega*I_yz),(omega*I_zz)];# The angular momentum of the body in N.m.s\n", + "# (b)\n", + "T=((omega)*(H_o[2]))/2;#(k.i=0,k.j=0,k.k=1) The kinetic energy in J\n", + "print\"(a)The angular momentum H of the plate about point O,H_O=%0.4fi+(%0.4f)j+%0.4fk\\n(b)The kinetic energy of the plate,T=%1.2f J\"%(H_o[0],H_o[1],H_o[2],T);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/8,PAGE NUMBER:566" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Variable declaration\n", + "m=1000;# The mass of turbine rotor in kg\n", + "k=0.200;# m\n", + "N=500;# rev/min\n", + "rho=400;# The radius of gyration in m\n", + "v=25*0.514;# m/s\n", + "d_AG=0.6;# m\n", + "d_GB=0.9;# m\n", + "d_AB=d_AG+d_GB;# m\n", + "g=9.81;# The acceleration due to gravity in m/s**2\n", + "\n", + "# Calculation\n", + "# The moment principle from statics easily gives\n", + "W=m*g;# N\n", + "R_1=(m*g)*d_AG;# N\n", + "R_2=W-R_1;# N\n", + "omega=(v/rho);# rad/s\n", + "I=m*k**2;# kg-m**2\n", + "deltaR=(I*omega*((2*math.pi*N)/60))/d_AB;\n", + "R_A=R_1-deltaR;# N\n", + "R_B=R_2+deltaR;# N\n", + "print\"The vertical components of the bearing reactions at A and B,R_A=%4.0f N and R_B=%4.0f N\"%(R_A,R_B);\n", + "# The answer provided in the textbook is wrong\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## SAMPLE PROBLEM 7/9,PAGE NUMBER:567" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "# SAMPLE PROBLEM 7/9\n", + "import math\n", + "# Variable declaration\n", + "t=4;# s\n", + "theta=20;# degree\n", + "p=(2*math.pi)/4;# rad/s\n", + "\n", + "# Calculation\n", + "# (a)\n", + "# I_zz=(56/3)*mr**2;\n", + "# I_xx=(32/3)*mr**2;\n", + "# By using coefficient of I_xx and I_zz\n", + "I=56/3;# The moment of inertia\n", + "I_0=32/3;# The moment of inertia\n", + "costheta=1;# radian\n", + "n=I/((I_0-I)*costheta);# The ratio of angular rates\n", + "# (b)\n", + "tau=((2*math.pi)/p)*abs(((I_0-I)/I)*math.cos(theta*math.pi/180));# s\n", + "beta=math.atan((I/I_0)*math.tan(theta));# degree\n", + "print\"(a)The number of complete cycles,n=%1.2f \\n The minus sign indicates retrograde precession where, in the present case,and p are essentially of opposite sense. Thus, the station will make seven wobbles for every three revolutions.\\n(b)The period of precession,tau=%1.3f s\"%(n,tau);\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER8.ipynb b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER8.ipynb new file mode 100644 index 00000000..9d9dad0b --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./CHAPTER8.ipynb @@ -0,0 +1,288 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# CHAPTER 8:ENERGY METHODS" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/1,PAGE NUMBER:592" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "# Given data \n", + "W=25;# The weight of the body in lb\n", + "k=160;# lb/ft\n", + "v=2;# The downward velocity in ft/sec\n", + "g=32.2;# The acceleration due to gravity in ft/sec^2\n", + "\n", + "# Calculation\n", + "# (a)\n", + "delta_st=W/k;# The static spring deflection in ft\n", + "delta_st=delta_st*12;# in\n", + "# (b)\n", + "omega_n=math.sqrt(k/(W/g));# The natural frequency of the system in rad/sec\n", + "f_n=omega_n*(1/(2*math.pi));# The natural frequency of the system in cycles/sec\n", + "# (c)\n", + "tau=1/f_n;# The system period in sec\n", + "print\"\\n(a)The static spring deflection,delta_st=%0.4f ft (or)%1.3f in \\n(b)The natural frequency of the system,omega_n=%2.2f rad/sec \\n The natural frequency of the system,f_n=%0.3f sec \\n(c)The system period,tau=%0.3f sec\"%(delta_st/12,delta_st,omega_n,f_n,tau);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/2,PAGE NUMBER:592" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "m=8;# kg\n", + "s=0.2;# m\n", + "t_1=0;# s\n", + "t_2=2;# s\n", + "c=20;# N.s/m\n", + "k=32;# N/m\n", + "\n", + "#Calculation\n", + "omega_n=math.sqrt(k/m);# rad/s\n", + "eta=c/(2*m*omega_n);# The damping ratio\n", + "omega_d=omega_n*math.sqrt(1-(eta**2));#The damped natural frequency in rad/s\n", + "x_2=0.256*math.exp(-1.25*t_2)*math.sin(((1.561*t_2)+0.896)*180/math.pi);# m\n", + "print\"\\nThe displacement in meters, x_2=%0.5f m\"%x_2;\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/4,PAGE NUMBER:608" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "m=50;# kg\n", + "k=7500;# Number of springs\n", + "# x_B=0.002cos50t\n", + "omega=50;# rad/s\n", + "b=0.002;# m\n", + "k=7500;# The stiffness of the spring in N/m\n", + "\n", + "#Calculation\n", + "omega_n=math.sqrt((4*k/m));# The resonant frequency in rad/s\n", + "X=b/(1-(omega/omega_n)**2);# m\n", + "print\"\\nThe amplitude of the steady-state motion of the instrument,X=%1.2e m (or) %0.3f mm\"%(X,X*10**3);" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/6,PAGE NUMBER:608" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "m=100;# The mass of piston in lb\n", + "k=200;# The spring stiffness in lb/in\n", + "c=85;# The damping coefficient in lb-sec/ft\n", + "# A fluctuating pressure p=0.625sin30t in lb/in**2;\n", + "omega=30;# rad/s\n", + "a=80;# The top surface area of the piston in in**2\n", + "g=32.2;# The acceleration due to gravity in ft/sec**2\n", + "\n", + "#Calculation\n", + "omega_n=math.sqrt((k*12)/(m/g));# The natural frequency of the system in rad/s\n", + "Zeta=c/(2*(m/g)*omega_n);# Damping ratio\n", + "#At steady state condition,\n", + "p=0.625;# lb/in**2\n", + "F_0=(p*a);# lb\n", + "X=(F_0/(k*12))/math.sqrt(((1-(omega/omega_n)**2)**2)+(((2*Zeta*omega)/omega_n)**2));# The steady-state amplitude in ft\n", + "phi=math.atan(((2*Zeta*(omega/omega_n))/(1-((omega/omega_n)**2))));#The phase angle in rad\n", + "F_trmax=X*math.sqrt(((k*12)**2)+((c**2)*(omega**2)));#The maximum force transmitted to the base in lb\n", + "print\"\\nThe steady-state displacement as a function of time,x_p=%0.5fsin(%2.0ft-(%1.3f))ft \\nThe maximum force transmitted to the base,(F_tr)_max=%2.1f lb\"%(X,omega,phi,F_trmax);\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/7,PAGE NUMBER:616" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "rbar=0.9;# Distance in m\n", + "k_o=0.95;# The radius of gyration in m\n", + "g=9.81; #The acceleration due to gravity in m/s**2\n", + "\n", + "#Calculation\n", + "tau=2*math.pi*math.sqrt((k_o)**2/(g*rbar));# The period for small oscillations about the pivot in s\n", + "print\"The period for small oscillations about the pivot is\",round(tau,2),\"s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/9,PAGE NUMBER:617" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "m=50;#The mass of cylinder in kg\n", + "r=0.5;#The radius of the cylinder in m\n", + "k=75;#The spring constant in N/m\n", + "c=10;#The damping coefficient in N.s/m\n", + "x=-0.2;# m\n", + "t=0;# s\n", + "\n", + "#Calculation\n", + "#(a)\n", + "omega_n=math.sqrt((2*k)/(3*m));# The undamped natural frequency in rad/s\n", + "#(b)\n", + "Zeta=((c/(m*omega_n))/3);# The damping ratio\n", + "#(c)\n", + "omega_d=omega_n*math.sqrt(1-(Zeta)**2);# The damped natural frequency in rad/s\n", + "#(d)\n", + "tau_d=(2*math.pi)/omega_d;# The period of the damped system in s\n", + "\n", + "# Result\n", + "print\"The undamped natural frequency is\",round(omega_n,0),\"rad/s\"\n", + "print\"The damping ratio is\",round(Zeta,4)\n", + "print\"The damped natural frequency is\",round(omega_d,3),\"rad/s\"\n", + "print\"The period of the damped system is\",round(tau_d,2),\"s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## SAMPLE PROBLEM 8/11,PAGE NUMBER:627" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import math\n", + "\n", + "#Variable Declaration\n", + "m_c=3;# Mass of the collar in kg\n", + "m_l=1.2;# Mass of the links in kg\n", + "k=1.5;# The stiffness of the spring in kN/m\n", + "g=9.81;# The acceleration due to gravity in m/s^2\n", + "\n", + "#Calculation\n", + "P=(m_c*g)+(2*(1/2)*m_l*g);#The compression P in the spring in N\n", + "delta_st=P/(k*10**3);# The corresponding static deflection of the spring in m\n", + "# V_g=-5.89y J.....(1)\n", + "# V=750y**2 J.....(2)\n", + "# T=1.9y**2 .....(3)\n", + "# T_max=y_max with ydot=ydot_max.....(5)\n", + "omega_n=math.sqrt(750/1.9);\n", + "print\"The natural frequency of vertical vibration,omega_n=\",round(omega_n,2),\"Hz\"\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure1.png b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure1.png Binary files differnew file mode 100644 index 00000000..0c478634 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure1.png diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure2.png b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure2.png Binary files differnew file mode 100644 index 00000000..fefe2b19 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure2.png diff --git a/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure3.png b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure3.png Binary files differnew file mode 100644 index 00000000..889646d1 --- /dev/null +++ b/Engineering_Mechanics:_Statics_&_Engineering_Mechanics:_Dynamics_by_Meriam,_J._L.,_&_Kraige,_L._G./screenshots/figure3.png diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb new file mode 100644 index 00000000..c3e6cf59 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb @@ -0,0 +1,394 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 10 Moments of Inertia" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.2 Page No 382 " + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "I_x = 106666667.0 mm**(4)\n", + "\n", + "Solution 2\n", + "I_x = 106666667.0 mm**(4)\n" + ] + } + ], + "source": [ + "# Ex 10.2\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "\n", + "# Calculation Solution 1\n", + "a = lambda y: (y**2)*(100-(y**2)/400)\n", + "I_x = round(integrate.quad(a, 0, 200)[0],0) #[millimeter**(4)]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"I_x = \",(I_x),\"mm**(4)\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "a = lambda x: (1/3)*(400*x)**(3/2)\n", + "I_x = round(integrate.quad(a, 0, 100)[0],0) #[millimeter**(4)]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"I_x = \",(I_x),\"mm**(4)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.4 Page No 384" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "I_x = 0.0357 m**(4)\n", + "\n", + "Solution 2\n", + "I_x = 0.0357 m**(4)\n" + ] + } + ], + "source": [ + "# Ex 10.4\n", + "\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Calculation Solution 1\n", + "a = lambda y: y**(2)*(math.sqrt(y)-y)\n", + "I_x = round(integrate.quad(a, 0, 1)[0],4) #[meter**(4)]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"I_x = \",(I_x),\"m**(4)\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "a = lambda x: (1/3)*(x**(3)-x**(6))\n", + "I_x = round(integrate.quad(a, 0, 1)[0],4) #[meter**(4)]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"I_x = \",(I_x),\"m**(4)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.5 Page No 387" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I_x = 101148542.17 mm**(4)\n" + ] + } + ], + "source": [ + "# Ex 10.5\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using Parallel Axis Theorem\n", + "# Circle\n", + "I_xc = (1/4)*math.pi*25**(4)+math.pi*25**(2)*75**(2) #[millimeter**(4)]\n", + "# Rectangle\n", + "I_xr = (1/12)*100*150**(3)+100*150*75**(2) #[millimeter**(4)]\n", + "# Let I_x be moment of inertia for composite area\n", + "I_x = -I_xc+I_xr #[millimeter**(4)]\n", + "\n", + "# Result\n", + "print\"I_x = \",(I_x),\"mm**(4)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.6 Page No 388" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I_x = 2900000000.0 mm**(4)\n", + "I_y = 5600000000.0 mm**(4)\n" + ] + } + ], + "source": [ + "# Ex 10.6\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using Parallel axis theorem\n", + "# Rectangle A\n", + "I_xA = (1/12)*100*300**(3)+100*300*200**(2) #[millimeter**(4)]\n", + "I_yA = (1/12)*300*100**(3)+100*300*250**(2) #[millimeter**(4)]\n", + "# Rectangle B\n", + "I_xB = (1/12)*600*100**(3) #[millimeter**(4)]\n", + "I_yB = (1/12)*100*600**(3) #[millimeter**(4)]\n", + "# Rectangle D\n", + "I_xD = (1/12)*100*300**(3)+100*300*200**(2) #[millimeter**(4)]\n", + "I_yD = (1/12)*300*100**(3)+100*300*250**(2) #[millimeter**(4)]\n", + "I_x = I_xA+I_xB+I_xD #[millimeter**(4)]\n", + "I_y = I_yA+I_yB+I_yD #[millimeter**(4)]\n", + "\n", + "# Result\n", + "print\"I_x = \",(I_x),\"mm**(4)\"\n", + "print\"I_y = \",(I_y),\"mm**(4)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.8 Page No 394" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I_xy = -3000000000 mm**(4)\n" + ] + } + ], + "source": [ + "# Ex 10.8\n", + "\n", + "# Calculation\n", + "# Rectangle A\n", + "I_xyA = 0+300*100*(-250)*(200)\n", + "# Rectangle B\n", + "I_xyB = 0+0\n", + "# Rectangle D\n", + "I_xyD = 0+300*100*(250)*(-200)\n", + "# Let I_xy be product of inertia for entire cross section\n", + "I_xy = I_xyA+I_xyB+I_xyD\n", + "\n", + "# Result\n", + "print\"I_xy = \",(I_xy),\"mm**(4)\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.10 Page No 400" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I_y = 0.873 kg.m**(2)\n" + ] + } + ], + "source": [ + "# Ex 10.10\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "rho = 5 #[milligram per meter cube]\n", + "\n", + "# Calculation \n", + "a = lambda y: ((5*math.pi)/2)*y**(8)\n", + "I_y = round(integrate.quad(a, 0, 1)[0],3) #[kg meter square]\n", + "\n", + "# Result\n", + "print\"I_y = \",(I_y),\"kg.m**(2)\"\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.11 Page No 403" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IO = 1.2 kg.m**(2)\n" + ] + } + ], + "source": [ + "# Ex 10.11\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "rho = 8000 #[kg meter**(2)]\n", + "t = 0.01 #[meter]\n", + "\n", + "# Calculation\n", + "# Disk\n", + "IOd = (1/2)*15.71*0.25**(2)+15.71*0.25**(2) #[kg meter**(2)]\n", + "# Hole\n", + "IOh = (1/2)*3.93*0.125**(2)+3.93*0.25**(2) #[kg meter**(2)]\n", + "IO = round(IOd-IOh,2) #[kg meter**(2)]\n", + "# Result\n", + "print\"IO = \",(IO),\"kg.m**(2)\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 10.12 Page No 404" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IO = 17.0 kg.m**(2)\n", + "IG = 8.0 kg.m**(2)\n" + ] + } + ], + "source": [ + "# Ex 10.12\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "W = 3 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Rod OA\n", + "IOAO = (1/3)*W*(2**(2)) #[kg meter**(2)]\n", + "# Rod BC\n", + "IBCO = (1/12)*W*(2**(2))+W*(2**(2)) #[kg meter**(2)]\n", + "# Let IO be moment of inertia of pendulum about O\n", + "IO = round(IOAO+IBCO,1) #[kg meter**(2)]\n", + "ybar = ((1*W+2*W)/(3+3)) #[meter]\n", + "IG = IO-2*W*ybar #[kg meter**(2)]\n", + "\n", + "# Result\n", + "print\"IO = \",(IO),\"kg.m**(2)\"\n", + "print\"IG = \",(IG),\"kg.m**(2)\"\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb new file mode 100644 index 00000000..3ee3ef32 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb @@ -0,0 +1,214 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 11 Virtual Work" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 11.1 Page No 418" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 63.0 degrees\n" + ] + } + ], + "source": [ + "# Ex 11.1\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "theta = round(math.degrees(math.atan(98.1/50)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"theta = \",(theta),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 11.3 Page No 420" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "xc = 0.981 m\n", + "Cx = 114.0 N\n" + ] + } + ], + "source": [ + "# Ex 11.3\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "theta = 45 #[Degrees]\n", + "\n", + "# Calculation\n", + "coeff = [1, -1.2*math.cos(math.pi*theta/180), -0.13]\n", + "# Taking only the positive root\n", + "xc = round(np.roots(coeff)[0],3) #[meter]\n", + "Cx = round(((-120*math.cos(math.pi*theta/180))*(1.2*math.cos(math.pi*theta/180)-2*xc))/(1.2*xc*math.sin(math.pi*theta/180)),0) #[Newton]\n", + "\n", + "# Result\n", + "print\"xc = \",(xc),\"m\"\n", + "print\"Cx = \",(Cx),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 11.5 Page No 433" + ] + }, + { + "cell_type": "code", + "execution_count": 66, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 53.8 degrees\n", + "V1 = -29.4 (unstable equilibrium at theta = 0 degrees)\n", + "V2 = 46.9 (stable equilibrium at theta = 53.8 degrees)\n" + ] + } + ], + "source": [ + "# Ex 11.5\n", + "import math\n", + "from scipy.misc import derivative\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "W = 10*9.81 #[Newton]\n", + "k = 200 #[Newton per meter]\n", + "l = 0.6 #[meter]\n", + "\n", + "# Calculation\n", + "\n", + "# Let V1 = d**(2)V/dtheta**(2) at theta = 0 \n", + "def f1(x):\n", + " return (1/2)*k*(l**(2))*((1-math.cos(x))**(2))-(W*l/2)*(2-math.cos(x))\n", + "V1 = round(derivative(f1, 0*math.pi/180,dx=1e-6, n=2),1)\n", + "\n", + "# Let V2 = d**(2)V/dtheta**(2) at theta = 53.8 \n", + "def f2(x):\n", + " return (1/2)*k*(l**(2))*((1-math.cos(x))**(2))-(W*l/2)*(2-math.cos(x))\n", + "V2 = round(derivative(f2, 53.8*math.pi/180,dx=1e-6, n=2),1)\n", + " \n", + "# Result\n", + "print\"theta = \",(theta),\"degrees\"\n", + "print\"V1 = \",(V1),\"(unstable equilibrium at theta = 0 degrees)\"\n", + "print\"V2 = \",round(V2,1),\"(stable equilibrium at theta = 53.8 degrees)\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 11.6 Page No 434" + ] + }, + { + "cell_type": "code", + "execution_count": 65, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m = 6.53 kg\n", + "V = -47.6 (unstable equilibrium at theta = 20 degrees)\n" + ] + } + ], + "source": [ + "# Ex 11.6\n", + "import math\n", + "from __future__ import division\n", + "from scipy.misc import derivative\n", + "\n", + "# Calculation\n", + "# From dV/dtheta at theta = 20 degrees\n", + "m = round(69.14/10.58,2) #[kilogram]\n", + "def f(x):\n", + " return 98.1*(1.5*math.sin(x)/2)-m*9.81*(1.92-math.sqrt(3.69-3.6*math.sin(x)))\n", + "\n", + "# Let V = d**(2)V/dtheta**(2) at theta = 20 degrees\n", + "V = round(derivative(f, 20*math.pi/180,dx=1e-6, n=2),1)\n", + "# Result\n", + "print\"m = \",(m),\"kg\"\n", + "print\"V = \",(V),\" (unstable equilibrium at theta = 20 degrees)\"\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_12_Kinematics_o_KMlkVxo.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_12_Kinematics_o_KMlkVxo.ipynb new file mode 100644 index 00000000..59332347 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_12_Kinematics_o_KMlkVxo.ipynb @@ -0,0 +1,1382 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 12 Kinematics of a Particle" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.1 Page No 450" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "s = 36.0 m\n", + "a = 20.0 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.1\n", + "from scipy import integrate\n", + "from scipy.misc import derivative\n", + "\n", + "# Calculation\n", + "# Position\n", + "t = lambda t: 3*t**2+2*t\n", + "s = round(integrate.quad(t, 0, 3)[0],1) #[meter]\n", + "# Acceleration\n", + "# a = dv/dt\n", + "def f(t):\n", + " return 3*t**2+2*t\n", + "a = round(derivative(f, 3),1) #[meter per seconds square]\n", + "\n", + "# Result\n", + "print\"s = \",(s),\"m\"\n", + "print\"a = \",(a),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.2 Page No 451" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 0.559 m/s\n", + "s = 4.43 m\n" + ] + } + ], + "source": [ + "# Ex 12.2\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# At t = 4 s\n", + "v = round(((1/(60**(2))) +0.8*4)**(-0.5),3) #[meter per second]\n", + "# ds = vdt\n", + "t = lambda t: ((1/(60**(2))) +0.8*t)**(-0.5) \n", + "s = round(integrate.quad(t, 0, 4)[0],2) #[meter]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"s = \",(s),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.3 Page No 452" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "sB = 326.7 m\n", + "vC = 80.1 m\n" + ] + } + ], + "source": [ + "# Ex 12.3\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "vA = 75 #[meter per second]\n", + "aC = -9.81 #[meter per second square]\n", + "sA = 40 #[meter]\n", + "\n", + "# Calculation\n", + "# Maximum height\n", + "sB = round((-75**(2)/(2*-9.81))+40,1) #[meter]\n", + "# Velocity\n", + "# Method 1\n", + "vC = round(math.sqrt(0+2*(-9.81)*(0-327)),1) #[meter per second]\n", + "# Method 2\n", + "vC = round(math.sqrt(75**(2)+2*(-9.81)*(0-40)),1) #[meter per second]\n", + "\n", + "# Result\n", + "print\"sB = \",(sB),\"m\"\n", + "print\"vC = \",(vC),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.4 Page No 453" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vB = 346.4 mm/s\n", + "t = 0.658 s\n" + ] + } + ], + "source": [ + "# Ex 12.4\n", + "from scipy import integrate\n", + "\n", + "# Calculation\n", + "vB = round(2*(0.2**(2)-0.01)**(0.5)*1000,1) #[millimeter per second]\n", + "s = lambda s: (0.5)*(1/math.sqrt(s**(2)-0.01))\n", + "t = round(integrate.quad(s, 0.1, 0.2)[0],3) #[seconds]\n", + "\n", + "# Result\n", + "print\"vB = \",(vB),\"mm/s\"\n", + "print\"t = \",(t),\"s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.5 Page No 454" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "sT = 14.1 m\n", + "v_avg = 1.75 m/s\n", + "vsp_avg = 4.03 m/s\n" + ] + } + ], + "source": [ + "# Ex 12.5\n", + "\n", + "# Calculation\n", + "# ds = vdt\n", + "# s = t**(3)-3*t**(2) m\n", + "\n", + "# Let s1 be displacement at t = 0 sec\n", + "s1 = 0**(3)-3*0**(2) #[meter] \n", + "\n", + "# Let s2 be displacement at t = 2 sec\n", + "s2 = 2**(3)-3*2**(2) #[meter] \n", + "\n", + "# Let s3 be displacement at t = 0 sec\n", + "s3 = 3.5**(3)-3*3.5**(2) #[meter] \n", + "\n", + "# Let sT be distance travelled in 3.5 sec\n", + "sT = round(abs(s2)+abs(s2)+abs(s3),1) #[meter] \n", + "\n", + "# Velocity\n", + "# Let delta_s be displacement from t = 0 to t = 3.5 s\n", + "delta_s = s3 - s1 #[meter] \n", + "\n", + "# let v_avg be average velocity\n", + "v_avg = delta_s/(3.5-0) #[meter per second] \n", + "\n", + "# Let vsp_avg be average speed defined in terms of distance travelled sT\n", + "vsp_avg = round(sT/(3.5-0),2) #[meter per second] \n", + "\n", + "# Result\n", + "print\"sT = \",(sT),\"m\"\n", + "print\"v_avg = \",(v_avg),\"m/s\"\n", + "print\"vsp_avg = \",(vsp_avg),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.6 Page No 460" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAhoAAAGHCAYAAAD2qfsmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3XmYXXWd5/H3VxJJ2IJIINVKq4itWWzsxGVoBSIuIC6g\n3SBhsdWHB4Vhmgdn2mVUkogtrY7iuESBGREHyQgtjihLEAlI2wJjSsEkBaIsshQhLBO2BEPynT/O\nLakq6t5U3brnru/X89ynqs4599zvLycn9ck533NOZCaSJElleE6rC5AkSd3Lo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7AB8wZEjdwSMakiSpNB7RkCRJpTFoSJKk0hg0JElSaQwakiSpNAYNSZJUGoOGJEkq\njUFDkiSVxqAhSZJKY9CQJEml+f8r4uhfIgCjLgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x660cc90>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAh4AAAGHCAYAAAD/QltcAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3XucXWV97/HPTxNIuEWUSwalXGrFJGhKBi/IVUW5eA5a\nwUuqp4hVEGylsacqr1ZJ9FRqPWJFjZdapB5KWlu1RWuBAiLegJIISBKgFVCUAAnWBCGBkPzOH2sN\n7gyZy96z97Nn7/m8X6/9mtlrP2vN7+EhmW+e9ay1IjORJEkq4SndLkCSJE0dBg9JklSMwUOSJBVj\n8JAkScUYPCRJUjEGD0mSVIzBQ5IkFWPwkCRJxRg8JElSMQYPSU8SEUdHxNaIOKrbtTSKiP8VEasj\n4rGI+EW365HUPIOHNIVExKl1oBh6bYyI2yPikxGx17DmLT1PISJOiIhz21Du8OMeBHwR+E/gbcDp\n7f4ZDT+rI32QBNO6XYCk4hJ4P3A3MAM4AjgTOCEiDs7MTRM8/onAWcCSCR5nuGOAAM7OzLvafOzh\nOtUHacozeEhT02WZuaL+/sL6tMUi4NXAP0zw2DHB/Ueyd/11Q4eO36hTfZCmPE+1SAK4muqX7QGj\nNYqI10XEjRHxSESsjYj/FxH7NHz+RaqZAhpO52wZ64dHxFkRcWtEbIqIn0fEpyJiVsPndwGL67dr\n6+N+YJTjPS8ivhgRP65PJ62JiL+JiKePo5aW+iBpfJzxkATw7PrrgyM1iIi3ABcC1wPvo5qB+CPg\nJRFxSGZuAD4L7AMcC7yJccwcRMRi4APAFcBS4CCqX/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Q\nAZCZD1I9kOrMjlYlqeMMHpI6JiK+SPXk3bMjYmtEbImI/YA3Al8f1vaUiLglIh6JiHURcUVEzGxo\n8vV6P0k9zOAhqZPOBn4A/DUwGxgAHgLmAjcONYqI2cAlVI8ffy5VWPkqEA3HugF4VkT8RpHKJXXE\ntG4XIKl/ZeaGiHgMeCQzHwCIiPn1x/c2NB0Angp8LTPvqbetHHa4e6mCyH7ATztXtaROcsZDUmlD\np082NWy7GbgKuDUivhwRb4uIpw3bb2P9dadOFyipcwwekkpbV3/dfWhDZm7NzFcCx1PNdPwhcFu9\nHmTI0+uva4tUKakjDB6SOu0xqtMoQ37Mr9d5bCMzf5CZS4BDgM3A7zR8fHB9rOGnYCT1EIOHpE67\nG3hRROxX348D4ErgiKEGEfHCiDgnIgYjYl/gZGAPYHXDcY4EvpOZjxaqW1IHGDwkddr/BbYAq4AH\ngH2prl5Z2NBmA3AU8K/A7cAHgXdn5uUNbd4IfL5EwZI6xzuXSuqKiLgO+Hhm/sM42h5PFWCen5lb\nO16cpI5xxkNSt5zO+C/p3wk4zdAh9T5nPCRJUjHOeEiSpGIMHpIkqRiDhyRJKsbgIUmSijF4SJKk\nYgwekiSpGIOHJEkqxuAhSZKKMXhIkqRi/j+5YlCT1EnJ3wAAAABJRU5ErkJggg==\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x64b49d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Ex 12.6\n", + "%matplotlib inline\n", + "from matplotlib.pyplot import plot,title,xlabel,ylabel,text,axis,show\n", + "\n", + "# Calculation\n", + "# v-t graph\n", + "plot(\n", + " [0,10,30],\n", + " [0,10,10],\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [0,10],\n", + " [10,10],\n", + " color='g',linestyle='--'\n", + " ) \n", + "plot(\n", + " [10,10],\n", + " [0,10],\n", + " color='g',linestyle='--'\n", + " ) \n", + "plot(\n", + " [30,30],\n", + " [0,10],\n", + " color='g',linestyle='--'\n", + " ) \n", + "text(2.6,5.8,'v = t',color='r')\n", + "text(15,10.2,'v = 10',color='r')\n", + "axis([0,40,0,20])\n", + "title('Plot of v-t')\n", + "xlabel('t(s)')\n", + "ylabel('v(m/s)')\n", + "show()\n", + "print\"\\n\\n\"\n", + "# a-t graph\n", + "plot(\n", + " [0,10],\n", + " [1,1],\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [10,30],\n", + " [0,0],\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [10,10],\n", + " [0,1],\n", + " color='g',linestyle='--'\n", + " )\n", + "axis([0,40,0,2])\n", + "title('Plot of a-t')\n", + "xlabel('t(s)')\n", + "ylabel('a(m/s**(2))')\n", + "show()" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 12.7 Page No 462" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAGHCAYAAABiT1LUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzs3XmYVNW19/HvYp5BBRm8EuGKAqJotxN4FRWx1SgavV7B\niahEA3Eiep0j4BCcIRqMuSrXKbTGGI0aAzIE5AUN2A3I0OYSh2AQsA3aDAIyrPePXZ0q2m7ooapP\nDb/P89RD9T6nTq1DQ/eqvdfe29wdERERkag0iDoAERERyW1KRkRERCRSSkZEREQkUkpGREREJFJK\nRkRERCRSSkZEREQkUkpGREREJFJKRkRERCRSSkZEREQkUkpGRKRazGyAme00sxOijiWRmV1iZiVm\n9q2ZrYs6HhGpOSUjIjnOzIbFkozyx2Yz+6uZPWZm+1Y4vVb7R5jZ6WY2OgnhVrzuwcD/AiuA4cCV\nyX6PhPcaYWbDUnV9kVzWKOoARCQtOPAz4FOgGfAfwAjgdDPr4+5b6nj9M4CRwNg6XqeiEwEDrnP3\n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0JU4V/Ug+xi4iISB2kRTISWxtkd0NGexxOcvetwDWxh4iIiGSIjKgZERERkeyl\nZEREREQipWREREREIqVkRERERCKlZEREREQipWREREREIqVkRERERCKlZEREREQipWREREREIqVk\nRERERCKlZEREREQipWREREREIqVkRERERCKlZEREREQipWREREREIqVkRERERCKlZEREREQipWRE\nREREIqVkRERERCKlZEREREQipWREREREIqVkRERERCKlZEREREQipWREREREIqVkRERERCKlZERE\nREQipWREREREIqVkRERERCKlZEREREQipWREREREIpUWyYiZHW9mr5vZKjPbaWaDKznnLjP73My+\nMbNpZnZgheNNzWyimX1pZhvM7Hdmtm/93YWIiIjURlokI0BLYBEwEvCKB83sZuBq4ErgaGATMNXM\nmiScNgH4PnAecALQBXgltWGLiIhIXTWKOgAAd58CTAEwM6vklOuAu939zdg5lwJrgXOA35pZG+By\nYIi7z46dcxlQYmZHu/v8ergNERERqYV06Rmpkpl1AzoBM8rb3H098BegX6zpSEJilXjOX4GVCeeI\niIhIGkr7ZISQiDihJyTR2tgxgI7At7EkpapzctKsWfDgg1BaGnUkIiIilUuLYZoolZSWwOrKjzVr\n1IzeHXrv9vXLS5ezZfuWKo93btWZzq07V3l887bNlHxZstv36NW+F80bN6/y+OoNq1m98bs3Ufol\nDP4hfPvPzjzySGeefRZOPXW3byUiIlLvMiEZWQMYofcjsXekI7Aw4ZwmZtamQu9Ix9ixKl185cXQ\nrELjoeHRu0Nvlo1cttvgzn/5fJaXLq/y+OgBoxlz4pgqj3/81cfk/0/+bt9j6YilHLLvIVUe/3XR\nrxk7e2zlBy8DPh3Amt8VUlDQmeuvh3HjoFnFexYREalEYWEhhYWFu7SVlZUl9T3M/TuTVyJlZjuB\nc9z99YS2z4EH3X187Os2hMTkUnd/OfZ1KaGA9dXYOQcDJcCxlRWwmlkeUPTClBfodVivSmNJWc/I\nz38Of/wjLFqEN23KwmXTv/O6xqvW0PWWn9NqXhEN2rTBLh0G990HDWIja88+C9dfD199VWXPyM03\nw/RFJXDexfDrIlidB8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o0abq0mXYe0lTft8\nWul+/x85D5VxFLi0q92kzgrcCmzP78+ngVWdQqSWjIfJvbpZjNSSE/gJ6fYB+/KH+93AqbXlzDku\nAh7OOTYBCw/RZtJnJd1bZPRwfa8k47HADcDjpPuHPApcAxzd66yeKM/MzMyKmnLnjJiZmdnE4mLE\nzMzMinIxYmZmZkW5GDEzM7OiXIyYmZlZUS5GzMzMrCgXI2ZmZlaUixEzMzMrysWImZmZFeVixMwm\nBElfl/S9cba9XtLNbffJzPrDt4M3s76SdB/wYERc2Vh2MrANeFNEPDWO1ziBNHfPUEQ80VZfzaw/\nPDJiZhPBIuD+8RQiABHxDGlCrita7ZWZ9YWLETPrG0m3kWaYXixpTNKopEFgGFjZ1fYSSQ9L2itp\nl6RVko5pNFmZf8/MJjkXI2bWT4uBtcByYACYAewBzgbWdxpJGgDuBm4FziQVML8E1HitdcApkmb1\npedm1pqjS3fAzKaOiNgt6QCwNyJ2AkgayqtHGk1nAK8AfhURT+Zlm7peboRUnAwCO9rrtZm1zSMj\nZlZa59DLfxrLHgL+CGyUtELSIknTu35vX/45re0Omlm7XIyYWWm78s/XdRZExFhEfBC4kDQi8nlg\nSz6/pOP1+ec/+tJLM2uNixEz67cDpEMwHY/x/HkjLxARayPiGuCtwEFgfmP17Pxa3YdvzGyScTFi\nZv32BPAOSYP5fiEA9wJzOw0kvV3SUknnSpoJfBQ4EdjceJ3zgL9ExP4+9dvMWuJixMz67VvAKPAI\nsBOYSbpq5uONNruBecBvga3A14ArI+L3jTbDwA/60WEza5fvwGpmE4KkB4AbI+Jn42h7IamoeUtE\njLXeOTNrlUdGzGyiuJzx325gGnCZCxGzOnhkxMzMzIryyIiZmZkV5WLEzMzMinIxYmZmZkW5GDEz\nM7OiXIyYmZlZUS5GzMzMrCgXI2ZmZlaUixEzMzMrysWImZmZFfVfdM3baN1Jc0IAAAAASUVORK5C\nYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x5ce2cf0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\n" + ] + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAisAAAGHCAYAAABxmBIgAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzs3Xl8VNX9//HXhz0IAVTAWDfQqglUKrEotQqI4lYV14oi\nFrUiuFL91S5agrX6VVs3BEVF6kYUUWrdwIqKO1TABRLcUZGwI5thCTm/Pz4TZzIkIWThTpL38/GY\nR+6558ydzwVlPjnbtRACIiIiIqmqUdQBiIiIiFREyYqIiIikNCUrIiIiktKUrIiIiEhKU7IiIiIi\nKU3JioiIiKQ0JSsiIiKS0pSsiIiISEpTsiIiIiIpTcmKiNQYM+tlZsVmdmTUsSQys/PMLN/MNpnZ\nyqjjEZHto2RFRLbJzM6PJSElr0Iz+8TMRplZh6TmVXqGh5kdb2YjaiDc5OseAIwHPgMuAi6u6c+I\nfc6fzOyU2ri2SEPXJOoARKTOCMD1wAKgBfArYChwvJl1DSFsqOb1TwCGASOreZ1kvQEDrgwhfFXD\n1070Z+Ap4Nla/AyRBknJiohsjykhhNmx44diQyrDgVOAJ6t5bavm+8vTMfZzTS1dX0RqmYaBRKQ6\nXsWTjE4VNTKzM83sfTP7wcyWmdmjZrZ7Qv14vFeFhKGmLdv6cDMbZmZzzWyDmX1nZveYWZuE+q+A\nnFhxWey6f63geh3NbLyZfRu75iIz+7eZ7bWNOIqBlsBvE+J/aFvxi0jlqGdFRKpjv9jPFeU1MLPf\nAg8BM4A/4j0dVwG/NLODQwhrgPuA3YGjgXOpRC+LmeUAfwVeBsYAB+AJzyFmdngIYQtwJXA+0B8Y\nAqwHPqrgss8AmcDdwNdAB+AYYC/gmwreNxAYF7vH+2PnvtjWPYhI5ShZEZHt0cbMdiE+Z+V64Afg\n+bIam1kT4P/wBKFXCGFT7PzbsfcMB0aGEGaY2afA0SGE3G0FYWa74onPlBDC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TURFytmVkQbgZMljc2ulwKwDJhW\naSDp/ZKulnSSpGOAc4EjgY7c85wOPBQRrw9Qv82sDlysmFkR/RWwF2gHtgDHkGb9/EmuzQ5gOvBv\nwBPAtcCXImJJrs1M4O8GosNmVj++gq2ZNQ1Jq4DvRcQ/9qHtWaSi5/cjoqvunTOzuvHIipk1k1n0\n/ZILw4CLXKiYNT+PrJiZmVmheWTFzMzMCs3FipmZmRWaixUzMzMrNBcrZmZmVmguVszMzKzQXKyY\nmZlZoblYMTMzs0JzsWJmZmaF5mLFzMzMCu3/AVmGmdZbGVq+AAAAAElFTkSuQmCC\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x5863e50>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Ex 12.7\n", + "%matplotlib inline\n", + "from matplotlib.pyplot import plot,title,xlabel,ylabel,text,axis,show\n", + "\n", + "# Calculation\n", + "# v-t graph\n", + "plot(\n", + " [0,10,60],\n", + " [0,100,0],\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [10,10],\n", + " [0,100],\n", + " color='g',linestyle='--'\n", + " ) \n", + "plot(\n", + " [0,10],\n", + " [100,100],\n", + " color='g',linestyle='--'\n", + " ) \n", + "text(0,95,'v = 10t',color='r')\n", + "text(30,66,'v = -2t + 120',color='r')\n", + "axis([0,80,0,150])\n", + "title('Plot of v-t')\n", + "xlabel('t(s)')\n", + "ylabel('v(m/s)')\n", + "show()\n", + "print\"\\n\\n\"\n", + "# s-t graph\n", + "l1 = []\n", + "l2 = []\n", + "for i in range(0,11,1):\n", + " l1.append(i)\n", + " l2.append(5*i**(2))\n", + "plot(\n", + " l1,\n", + " l2,\n", + " color='b',linewidth = 2\n", + " ) \n", + "l1 = []\n", + "l2 = []\n", + "for i in range(10,61,1):\n", + " l1.append(i)\n", + " l2.append(-(i**(2))+120*i-600)\n", + "plot(\n", + " l1,\n", + " l2,\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [10,10],\n", + " [0,500],\n", + " color='g',linestyle='--'\n", + " ) \n", + "plot(\n", + " [0,10],\n", + " [500,500],\n", + " color='g',linestyle='--'\n", + " )\n", + "plot(\n", + " [60,60],\n", + " [0,3000],\n", + " color='g',linestyle='--'\n", + " )\n", + "plot(\n", + " [0,60],\n", + " [3000,3000],\n", + " color='g',linestyle='--'\n", + " )\n", + "text(8,200,'s = 5t**(2)',color='r')\n", + "text(25,1500,'s = t**(2) + 120t - 600',color='r')\n", + "axis([0,80,0,3500])\n", + "title('Plot of s-t')\n", + "xlabel('t(s)')\n", + "ylabel('s(m)')\n", + "show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.8 Page No 464" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAh4AAAGHCAYAAAD/QltcAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAIABJREFUeJzt3XeYXVW9//H3FxJIaKEmhG4sIQkKZBBBpAkXRDoqEECu\nKNLkgkGvwFUh4FUsNOlFUAQZAalRf4CCRqRqgnjJBLjcUNQESARDKmnr98c6kynMJJMpe58z8349\nzzzJXmefc75nMWQ+s/Zaa0dKCUmSpCKsUnYBkiSp7zB4SJKkwhg8JElSYQwekiSpMAYPSZJUGIOH\nJEkqjMFDkiQVxuAhSZIKY/CQJEmFMXhIIiJ2j4ilEbFb2bU0FxGfjYgpEbEwIt4sux5JXWfwkHqx\niPj3SqBo/JofEc9HxOURMbjV6Z26f0JE7BcR53ZDua1fdzjwY+B/geOBE7r7PSrvc3ZEHNwTry3p\n3fqVXYCkHpeAbwIvAwOAjwEnA/tFxDYppQVdfP1PAqcA53XxdVrbAwjg9JTSS9382s39F3AHcG8P\nvoekCoOH1Dfcn1KaVPn7jZXLFmOBg4Hbuvja0cXnt2dI5c+3e+j1JZXASy1S3/QwOTC8Z3knRc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mFMXhIkqTCGDwkSVJhDB6SJKkw\nBg9JPS4ivhUR13Tw3Asi4rKerklSOdwyXVK3iYjfAU+nlM5o1jYEeAEYlVL6ewdeYwNgKvnOvy/3\nVK2SyuGIh6SedjzwaEdCB0BK6Z/km3qd3KNVSSqFwUNSt4iIH5Pvfnl6RCyNiCURsSVwJDC+1bmf\njoi/RsS8iJgZEQ9GxMBmp4yvPE9SL2PwkNRdTgceB64HNgaGkm+bPRL4c+NJEbExcCvwI2Brcli5\nC4hmr/UUsFlEbFFI5ZIK06/sAiT1DimltyNiITAvpfQGQERsW3l4WrNThwKrAnenlP5WaZvc6uWm\nkYPIlsCrPVe1pKI54iGpJzVePlnQrO0Z4CHg2Yi4PSKOj4h1Wz1vfuXPNXq6QEnFMnhI6kkzK3+u\n19iQUlqaUtoH+AR5pOM/gOcq80EarV/5c0YhVUoqjMFDUndaSL6M0uj/aJrn0UJK6fGU0nnA9sAi\n4NBmD29Tea3Wl2Ak1TiDh6Tu9DLwkYjYsrIfB8BvgY81nhARO0bE2RFRFxGbA58CNgSmNHudXYFH\nUkrvFFS3pIIYPCR1pwuBJUAD8AawOXn1yphm57wN7Ab8CngeOB84I6X0QLNzjgSuK6JgScVy51JJ\nPS4ingAuSSnd1oFzP0EOMB9KKS3t8eIkFcoRD0lFOIGOL99fAzjO0CH1To54SJKkwjjiIUmSCmPw\nkCRJhTF4SJKkwhg8JElSYQwekiSpMAYPSZJUGIOHJEkqjMFDkiQVxuAhSZIK8/8BBlo/e328X7MA\nAAAASUVORK5CYII=\n", + "text/plain": [ + "<matplotlib.figure.Figure at 0x5ae16d0>" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\n", + "t = 12.07 s\n" + ] + } + ], + "source": [ + "# Ex 12.8\n", + "%matplotlib inline\n", + "from matplotlib.pyplot import plot,title,xlabel,ylabel,text,axis,show\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# a-s graph\n", + "l1 = []\n", + "l2 = []\n", + "for i in range(0,51,1):\n", + " l1.append(i)\n", + " l2.append(0.16*i+2)\n", + "plot(\n", + " l1,\n", + " l2,\n", + " color='b',linewidth = 2\n", + " ) \n", + "l1 = []\n", + "l2 = []\n", + "for i in range(50,101,1):\n", + " l1.append(i)\n", + " l2.append(0)\n", + "plot(\n", + " l1,\n", + " l2,\n", + " color='b',linewidth = 2\n", + " ) \n", + "plot(\n", + " [50,50],\n", + " [0,10],\n", + " color='g',linestyle='--'\n", + " ) \n", + "plot(\n", + " [0,50],\n", + " [10,10],\n", + " color='g',linestyle='--'\n", + " ) \n", + "text(4,8,'a = 0.16*s + 2',color='r')\n", + "text(52,2,'a = 0',color='r')\n", + "axis([0,120,0,15])\n", + "title('Plot of s-t')\n", + "xlabel('t(s)')\n", + "ylabel('s(m)')\n", + "show() \n", + "print\"\\n\\n\"\n", + "# Variable Declaration\n", + "s = 100 #[meter]\n", + "t = s/50 + 10.07 #[seconds]\n", + "\n", + "# Result\n", + "print\"t = \",(t),\"s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.9 Page No 473" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "r = 30.2 m\n", + "v = 26.8 m/s\n", + "theta_v = 72.6 degrees\n", + "a = 12.8 m/s**(2)\n", + "theta_a = 90 degrees\n" + ] + } + ], + "source": [ + "# Ex 12.9\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Position\n", + "x = 16 #[meter]\n", + "y = 16**(2)/10 #[meter]\n", + "# Let r be straight line distance from A to B\n", + "r = round(math.sqrt(x**(2)+y**(2)),1) #[meter]\n", + "\n", + "# Velocity\n", + "vx = 8 #[meter per second]\n", + "vy = (2*16*8)/10 #[meter per second]\n", + "# Let v be magnitude of velocity at t = 2 s\n", + "v = round(math.sqrt(vx**(2)+vy**(2)),1) #[meter per second]\n", + "theta_v = round(math.degrees(math.atan(vy/vx)),1) #[Degrees]\n", + "\n", + "# Accceleration\n", + "ax = 0 #[meter per second square]\n", + "ay = 2*8**(2)/10+2*16*0/10 #[meter per second square]\n", + "a = round(math.sqrt(ax**(2)+ay**(2)),1) #[meter per second square]\n", + "theta_a = 90 #[Degrees]\n", + "\n", + "# Result\n", + "print\"r = \",(r),\"m\"\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"theta_v = \",(theta_v),\"degrees\"\n", + "print\"a = \",(a),\"m/s**(2)\"\n", + "print\"theta_a = \",(theta_a),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.10 Page No 474" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "r_x = 0.499 m\n", + "r_y = 0.0354 m\n", + "r_z = -0.15 m\n", + "r = 0.522 m\n", + "alpha = 17.1 degrees\n", + "beta = 86.1 degrees\n", + "gamma = 106.7 degrees\n", + "v = 1.02 m/s\n", + "a = 2.0 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.10\n", + "import math\n", + "\n", + "# Calculation\n", + "# Position\n", + "r_x = round(0.5*math.sin(1.5),3) #[meter]\n", + "r_y = round(0.5*math.cos(1.5),4) #[meter]\n", + "r_z = round(-0.2*(0.75),4) #[meter]\n", + "r = round(math.sqrt(r_x**(2)+r_y**(2)+r_z**(2)),3) #[meter]\n", + "alpha = round(math.degrees(math.acos(r_x/r)),1) #[Degrees]\n", + "beta = round(math.degrees(math.acos(r_y/r)),1) #[Degrees]\n", + "gamma = round(math.degrees(math.acos(r_z/r)),1) #[Degrees]\n", + "\n", + "# Velocity\n", + "v = round(math.sqrt((1*math.cos(1.5))**(2)+(-1*math.sin(1.5))**(2)+(-0.2)**(2)),3) #[meter per second]\n", + "\n", + "# Accelaration\n", + "a = math.sqrt((-2*math.sin(1.5))**(2)+(-2*math.cos(1.5))**(2)) #[meter per second square]\n", + "\n", + "# Result\n", + "print\"r_x = \",(r_x),\"m\"\n", + "print\"r_y = \",(r_y),\"m\"\n", + "print\"r_z = \",(r_z),\"m\"\n", + "print\"r = \",(r),\"m\"\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"a = \",(a),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 12.11 Page No 477" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "tAB = 1.11 s\n", + "R = 13.32 m\n" + ] + } + ], + "source": [ + "# Ex 12.11\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "v = 12 #[meters]\n", + "# Calculation\n", + "# Vertical motion\n", + "tAB = round(math.sqrt(-6/((1/2)*(-9.81))),2) #[seconds]\n", + "\n", + "# Horizontal motion\n", + "R = 0+v*1.11 #[meter]\n", + "\n", + "# Result\n", + "print\"tAB = \",(tAB),\"s\"\n", + "print\"R = \",(R),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.12 Page No 478" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "h = 1.433 m\n" + ] + } + ], + "source": [ + "# Ex 12.12\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "v0 = 10 #[meter per second]\n", + "theta = 30 #[degrees]\n", + "\n", + "# Calculation\n", + "vo_x = round(v0*math.cos(math.pi*30/180),2) #[meter per second]\n", + "vo_y = round(v0*math.sin(math.pi*30/180),2) #[meter per second]\n", + "\n", + "# Horizontal Motion\n", + "tOA = round((8-0)/vo_x,4) #[seconds]\n", + "\n", + "# Vertical Motion\n", + "h = round(0+5*tOA+(1/2)*(-9.81)*tOA**(2)+1,3) #[meter]\n", + "\n", + "# Result\n", + "print\"h = \",(h),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.13 Page No 479" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vA = 13.38 m/s\n", + "R = 17.4 m\n", + "h = 3.28 m\n" + ] + } + ], + "source": [ + "# Ex 12.13\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Calculation\n", + "# Vertical Motion\n", + "vA = round((-1-(1/2)*-9.81*1.5**(2))/(math.sin(math.pi*30/180)*1.5),2) #[meter per second]\n", + "\n", + "# Horizontal Motion\n", + "R = round(0+vA*math.cos(math.pi*30/180)*1.5,1) #[meter]\n", + "h = round(((0**(2)-(vA*math.sin(math.pi*30/180))**(2))/(2*(-9.81)))+1,2) #[meter]\n", + "\n", + "# Result\n", + "print\"vA = \",(vA),\"m/s\"\n", + "print\"R = \",(R),\"m\"\n", + "print\"h = \",(h),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.14 Page No 487" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vA = 6 m/s\n", + "a = 2.37 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.14\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "# Velocity is always directed tangent to the path\n", + "vA = 6 #[meter per second]\n", + "\n", + "# Acceleration\n", + "rho = round(((1+((1/10)*10)**(2))**(3/2))/(1/10),2) #[meter]\n", + "at = 2 #[meter per second**(2)]\n", + "an = round((6**(2))/rho,3) #[meter per second**(2)]\n", + "a = round(math.sqrt(at**(2)+an**(2)),2) #[meter per second**(2)]\n", + "phi = round(math.degrees(math.atan(at/an)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"vA = \",(vA),\"m/s\"\n", + "print\"a = \",(a),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.15 Page No 488" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "t = 7.48 s\n", + "v = 22.44 m/s\n" + ] + } + ], + "source": [ + "# Ex 12.15\n", + "\n", + "# Calculation\n", + "# Let t be time needed for acceleration to reach 3 m/s**(2)\n", + "t = round(math.sqrt((math.sqrt(3**(2)-2**(2)))/0.04),2) #[seconds]\n", + "\n", + "# Velocity\n", + "# Let v be speed at time t = 7.48 s\n", + "v = 3*t #[meter per second]\n", + "\n", + "# Result\n", + "print\"t = \",(t),\"s\"\n", + "print\"v = \",(v),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.16 Page No 489" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aB = 5.37 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.16\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "tB = round((6.142/0.0333)**(1/3),3) #[seconds]\n", + "aBt = 0.2*5.690 #[meter per second square]\n", + "vB = 0.1*(tB**(2)) #[meter per second]\n", + "aBn = (vB**(2))/2 #[meter per second square]\n", + "aB = round(math.sqrt(aBt**(2)+aBn**(2)),2) #[meter per second square]\n", + "\n", + "# Result\n", + "print\"aB = \",(aB),\"m/s**(2)\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.18 Page No 498" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 360.6 mm/s\n", + "delta = 56.3 degrees\n", + "a = 1931.3 mm/s**(2)\n", + "phi = -68.7 degrees\n" + ] + } + ], + "source": [ + "# Ex 12.18\n", + "import math\n", + "\n", + "# Calculation\n", + "vr = 200*1 #[millimeter per second]\n", + "vtheta = 100*(1)**(2)*3**(1) #[millimeter per second]\n", + "v = round(math.sqrt(vr**(2)+vtheta**(2)),1)\n", + "delta = round(math.degrees(math.atan(vtheta/vr)),1) #[Degrees]\n", + "ar = 200-100*(3**(2)) #[millimeter per second square]\n", + "atheta = 100*6+2*200*3 #[millimeter per second square]\n", + "a = round(math.sqrt(ar**(2)+atheta**(2)),1) #[millimeter per second square]\n", + "phi = round(math.degrees(math.atan(atheta/ar)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"mm/s\"\n", + "print\"delta = \",(delta),\"degrees\"\n", + "print\"a = \",(a),\"mm/s**(2)\"\n", + "print\"phi = \",(phi),\"degrees\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 12.19 Page No 499" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 800.0 m/s\n", + "a = 6400.0 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.19\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "vr = round(400*(1/math.cos(math.pi*45/180))*math.tan(math.pi*45/180),1) #[meter per second]\n", + "vtheta = round(100*(1/math.cos(math.pi*45/180))*4,1) #[meter per second]\n", + "v = round(math.sqrt(vr**(2)+vtheta**(2)),1) #[meter per second]\n", + "ar = round((1600*((1/math.cos(math.pi*45/180))*(math.tan(math.pi*45/180)**(2))+(1/math.cos(math.pi*45/180)**(3)))) - 100*(1/math.cos(math.pi*45/180))*4**(2),1) #[meter per second square]\n", + "atheta = round(100*(1/math.cos(math.pi*45/180))*0+2*400*(1/math.cos(math.pi*45/180))*math.tan(math.pi*45/180)*4,1) #[meter per second square]\n", + "a = round(math.sqrt(ar**(2)+atheta**(2)),1) #[meter per second square]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"a = \",(a),\"m/s**(2)\"\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 12.20 Page No 500" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta_dot = 1.0 rad/s\n", + "theta_doubledot = 9.89 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.20\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "a = 10 #[meter per second square]\n", + "v = 1 #[meter per second]\n", + "\n", + "# Calculation\n", + "theta_dot = math.sqrt((v**(2))-(0**(2))) #[radian per second]\n", + "theta_doubledot = round(math.sqrt((10**(2))-((-1.5)**(2))),2) #[radian per second square]\n", + "\n", + "# Result\n", + "print\"theta_dot = \",(theta_dot),\"rad/s\"\n", + "print\"theta_doubledot = \",(theta_doubledot),\"rad/s**(2)\" # Correction in the answer" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.21 Page No 506" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vA = 6 m/s\n" + ] + } + ], + "source": [ + "# Ex 12.21\n", + "\n", + "# Calculation\n", + "vA = -3*-2 #[meter per second]\n", + "\n", + "# Result\n", + "print\"vA = \",(vA),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.22 Page No 507" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vA = 8 m/s\n" + ] + } + ], + "source": [ + "# Ex 12.22\n", + "\n", + "# Calculation\n", + "vA = -4*-2 #[meter per second]\n", + "\n", + "# Result\n", + "print\"vA = \",(vA),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.23 Page No 508" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vB = -0.5 m/s\n" + ] + } + ], + "source": [ + "# Ex 12.23\n", + "\n", + "# Calculation\n", + "vB = -2/4\n", + "\n", + "# Result\n", + "print\"vB = \",(vB),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.24 Page No 509" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vS = 400.0 mm/s\n", + "aS = 3.6 mm/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 12.24\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "vA = 0.5 #[meter per second]\n", + "\n", + "# Calculation\n", + "vS = round((20*vA)/math.sqrt(225+20**(2)),1) #[meter per second]\n", + "aS = (225*vA**(2))/((225+20**(2))**(3/2)) #[meter per second square]\n", + "\n", + "# Result\n", + "print\"vS = \",(vS*1000),\"mm/s\"\n", + "print\"aS = \",(aS*1000),\"mm/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.25 Page No 512" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "vTA_x = 28.2 km/hr\n", + "vTA_y = -31.8 km/hr\n", + "vTA = 42.5 km/hr\n", + "theta = 48.4 degrees\n", + "Solution 2\n", + "vTA_x = 28.2 km/hr\n", + "vTA_y = -31.8 km/hr\n" + ] + } + ], + "source": [ + "# Ex 12.25\n", + "import math\n", + "\n", + "# Calculation Solution 1 Vector Analysis\n", + "vTA_x = round(60-45*math.cos(math.pi*45/180),1) #[kilometer per hr]\n", + "vTA_y = round(-45*math.sin(math.pi*45/180),1) #[kilometer per hr]\n", + "vTA = round(math.sqrt(vTA_x**(2)+vTA_y**(2)),1) #[kilometer per hr]\n", + "theta = round(math.degrees(math.atan(abs(vTA_y)/vTA_x)),1) #[Degrees]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"vTA_x = \",(vTA_x),\"km/hr\"\n", + "print\"vTA_y = \",(vTA_y),\"km/hr\"\n", + "print\"vTA = \",(vTA),\"km/hr\"\n", + "print\"theta = \",(theta),\"degrees\"\n", + "\n", + "# Calculation Solution 2 Scalar Analysis\n", + "# vT = vA + vT/A\n", + "vTA_x = round(60-45*math.cos(math.pi*45/180),1) #[kilometer per hr]\n", + "vTA_y = round(-45*math.sin(math.pi*45/180),1) #[kilometer per hr]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"vTA_x = \",(vTA_x),\"km/hr\"\n", + "print\"vTA_y = \",(vTA_y),\"km/hr\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.26 Page No 513" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aBA = 912.4 km/hr**(2)\n", + "theta = 9.5 degrees\n" + ] + } + ], + "source": [ + "# Ex 12.26\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "rho = 400 #[kilometers]\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "vBA = 600-700 #[kilometers per hr]\n", + "# Acceleration\n", + "aBn = 600**(2)/rho #[kilometers per hr square]\n", + "aBA_x = 900 #[kilometers per hr square]\n", + "aBA_y = -100-50 #[kilometers per hr square]\n", + "aBA = round(math.sqrt(aBA_x**(2)+aBA_y**(2)),1) #[kilometers per hr square]\n", + "theta = round(math.degrees(math.atan(abs(aBA_y)/aBA_x)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"aBA = \",(aBA),\"km/hr**(2)\"\n", + "print\"theta = \",(theta),\"degrees\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 12.27 Page No 514" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vBA = 9.69 m/s\n", + "theta = 21.7 degrees\n", + "aBA = 5.32 m/s**(2)\n", + "phi = 62.7 degrees\n" + ] + } + ], + "source": [ + "# Ex 12.27\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "vA = 18 #[meter per second]\n", + "vB = 12 #[meter per second]\n", + "\n", + "# Calculation\n", + "# Velocity\n", + "vBA_x = 18*math.cos(math.pi*60/180) #[meter per second]\n", + "vBA_y = 18*math.sin(math.pi*60/180)-12 #[meter per second]\n", + "vBA = round(math.sqrt(vBA_x**(2)+vBA_y**(2)),2) #[meter per second]\n", + "theta = round(math.degrees(math.atan(vBA_y/vBA_x)),1) #[Degrees]\n", + "\n", + "# Acceleration\n", + "aBn = vB**(2)/100 #[meter per second square]\n", + "aBA_x = round(-1.440-2*math.cos(math.pi*60/180),3) #[meter per second square]\n", + "aBA_y = round(-3-2*math.sin(math.pi*60/180),3) #[meter per second square]\n", + "aBA = round(math.sqrt(aBA_x**(2)+aBA_y**(2)),2) #[meter per second square]\n", + "phi = round(math.degrees(math.atan(aBA_y/aBA_x)),1) #[Degrees]\n", + " \n", + "# Result\n", + "print\"vBA = \",(vBA),\"m/s\"\n", + "print\"theta = \",(theta),\"degrees\"\n", + "print\"aBA = \",(aBA),\"m/s**(2)\"\n", + "print\"phi = \",(phi),\"degrees\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_13_Kinetics_of__QCPBknl.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_13_Kinetics_of__QCPBknl.ipynb new file mode 100644 index 00000000..ada4b114 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_13_Kinetics_of__QCPBknl.ipynb @@ -0,0 +1,504 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 13 Kinetics of a Particle Force and Acceleration" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.1 Page No 535" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 15.6 m/s\n" + ] + } + ], + "source": [ + "# Ex 13.1\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "uk = 0.3\n", + "F = 400 #[Newton]\n", + "\n", + "# Calculation\n", + "# Using ΣF_x(right) = m*a_x and ΣF_y(upward) = m*a_y\n", + "a = np.array([[uk,50],[1,0] ])\n", + "b = np.array([F*math.cos(math.pi*30/180),490.5-F*math.sin(math.pi*30/180)])\n", + "x = np.linalg.solve(a, b)\n", + "NC = round(x[0],1) #[Newton]\n", + "a = round(x[1],1) #[meters per second square]\n", + "v = 0+a*3 #[meter per second]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.2 Page No 536" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Part(a)\n", + "h = 127.4 m\n", + "\n", + "Part(b)\n", + "h = 113.5 m\n" + ] + } + ], + "source": [ + "# Ex 13.2\n", + "from __future__ import division\n", + "from scipy import integrate\n", + "\n", + "# Calculation Part(a)\n", + "h = round(-(50**(2))/(2*-9.81),1) #[meters]\n", + "\n", + "# Result Part(a)\n", + "print\"Part(a)\"\n", + "print\"h = \",(h),\"m\\n\"\n", + "\n", + "# Calculation Part(b)\n", + "v = lambda v: -v/(0.001*v**(2)+9.81) \n", + "h = round(integrate.quad(v, 50, 0)[0],1) #[meters]\n", + "\n", + "# Result Part(b)\n", + "print\"Part(b)\"\n", + "print\"h = \",(h),\"m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.3 Page No 537" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 0.44 m/s\n", + "T = 39.4 N\n" + ] + } + ], + "source": [ + "# Ex 13.3\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "V = lambda t: 0.221*t\n", + "v = round(integrate.quad(V, 0, 2)[0],2) #[meters per second]\n", + "# Using ΣF_x(left) = m*a_x\n", + "T = round(40*2-(900/9.81)*0.221*2,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"T = \",(T),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.4 Page No 538" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NC = 0.901 N\n", + "a = 9.21 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 13.4\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "k = 3 #[Newtons per meter]\n", + "ul = 0.75 #[meter] (ul is the unstretched length)\n", + "y = 1 #[meter]\n", + "\n", + "# Calculation\n", + "Fs = round(k*(math.sqrt(y**(2)+0.75**(2))-ul),2) #[Newton]\n", + "theta = round(math.degrees(math.atan(y/0.75)),1) #[Degrees]\n", + "# Using ΣF_x(right) = m*a_x and ΣF_y(downward) = m*a_y\n", + "a = np.array([[1,0],[0,2] ])\n", + "b = np.array([Fs*math.cos(math.pi*theta/180),19.62-Fs*math.sin(math.pi*theta/180)])\n", + "x = np.linalg.solve(a, b)\n", + "NC = round(x[0],3) #[Newton]\n", + "a = round(x[1],2) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"NC = \",(NC),\"N\"\n", + "print\"a = \",(a),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.5 Page No 539" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = -13.1 m/s\n" + ] + } + ], + "source": [ + "# Ex 13.5\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Using ΣF_y(downward) = m*a_y (Block A), ΣF_y(downward) = m*a_y (Block B) and 2*aA = -aB\n", + "a = np.array([[2,100],[1,20*-2] ])\n", + "b = np.array([981,196.2])\n", + "x = np.linalg.solve(a, b)\n", + "T = round(x[0],1) #[Newton]\n", + "aA = round(x[1],2) #[meters per second square]\n", + "aB = -2*aA #[meters per second square]\n", + "v = round(0+aB*2,1) #[meters per second]\n", + "\n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.7 Page No 548" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "t = 5.88 s\n" + ] + } + ], + "source": [ + "# Ex 13.7\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "uk = 0.1\n", + "\n", + "# Calculation\n", + "# Using ΣFb = 0\n", + "ND = 29.43 #[Newton]\n", + "# Using ΣFt = m*at\n", + "at = (0.1*ND)/3 #[meters per second square]\n", + "# Using ΣFn = m*an\n", + "vcr = round(math.sqrt(100/3),2) #[meters per second]\n", + "t = round((vcr-0)/at,2) #[seconds]\n", + "\n", + "# Result\n", + "print\"t = \",(t),\"s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.8 Page No 549" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NA = 1651.4 N\n", + "aA = 13.33 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 13.8\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "v = 20 #[meters per second]\n", + "\n", + "# Calculation\n", + "rho = ((1+0**(2))**(3/2))/(1/30) #[meters]\n", + "# Using ΣFn = m*an\n", + "NA = round(700+(700/9.81)*(20**(2)/rho),1) #[Newtons]\n", + "an = v**(2)/rho #[meters per second square]\n", + "aA = round(an,2) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"NA = \",(NA),\"N\"\n", + "print\"aA = \",(aA),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.9 Page No 550" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thetamax = 42.1 degrees\n" + ] + } + ], + "source": [ + "# Ex 13.9\n", + "\n", + "# Calculation\n", + "thetamax = round(math.degrees((9.81+1)/((19.62*0.5/2)+9.81)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"thetamax = \",(thetamax),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 13.10 Page No 556" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F = 0.41 N\n", + "N = 0.28 N\n" + ] + } + ], + "source": [ + "# Ex 13.10\n", + "import numpy as np\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "a = np.array([[math.cos(math.pi*14.04/180),-math.sin(math.pi*14.04/180)],[math.sin(math.pi*14.04/180),math.cos(math.pi*14.04/180)] ])\n", + "b = np.array([(2/32.2)*(6-3*0.5**(2)),(2/32.2)*(3*0+2*6*0.5)])\n", + "x = np.linalg.solve(a, b)\n", + "F = round(x[0],2) #[Newton]\n", + "N = round(x[1],2) #[Newton]\n", + "\n", + "# Result\n", + "print\"F = \",(F),\"N\" #[Correction in the answer]\n", + "print\"N = \",(N),\"N\" #[Correction in the answer]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.11 Page No 557" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FP = -0.354 N\n", + "NC = 19.4 N\n" + ] + } + ], + "source": [ + "# Ex 13.11\n", + "import numpy as np\n", + "import math\n", + "\n", + "\n", + "# Variable Declaration\n", + "theta = 60 #[Degrees]\n", + "\n", + "# Calculation\n", + "a = np.array([[0,-math.sin(math.pi*theta/180)],[1,-math.cos(math.pi*theta/180)] ])\n", + "b = np.array([2*(0.192-0.462*(0.5**(2)))-19.62*math.sin(math.pi*theta/180),2*(0+2*-0.133*0.5)-19.62*math.cos(math.pi*theta/180)])\n", + "x = np.linalg.solve(a, b)\n", + "FP = round(x[0],3) #[Newton]\n", + "NC = round(x[1],1) #[Newton]\n", + "\n", + "# Result\n", + "print\"FP = \",(FP),\"N\" \n", + "print\"NC = \",(NC),\"N\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 13.12 Page No 558" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FC = 0.8 N\n", + "NC = -2.64 N\n" + ] + } + ], + "source": [ + "# Ex 13.12\n", + "import numpy as np\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "a = np.array([[0,math.cos(math.pi*17.7/180)],[1,-math.sin(math.pi*17.7/180)] ])\n", + "b = np.array([0.5*(0-0.1*math.pi*4**(2)),0.5*(0+2*0.4*4)])\n", + "x = np.linalg.solve(a, b)\n", + "FC = round(x[0],1) #[Newton]\n", + "NC = round(x[1],2) #[Newton]\n", + "\n", + "# Result\n", + "print\"FC = \",(FC),\"N\" \n", + "print\"NC = \",(NC),\"N\" " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_14_Kinetics_of__nM3MpcX.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_14_Kinetics_of__nM3MpcX.ipynb new file mode 100644 index 00000000..2fcc32fb --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_14_Kinetics_of__nM3MpcX.ipynb @@ -0,0 +1,428 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 14 Kinetics of a Particle : Work and Energy" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.1 Page No 569" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "UT = 504.7 J\n" + ] + } + ], + "source": [ + "# Ex 14.1\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "P = 400 #[Newtons]\n", + "s = 2 #[meters]\n", + "\n", + "# Calculation\n", + "# Horizontal Force P\n", + "UP = round(P*s*math.cos(math.pi*30/180),1) #[Joules]\n", + "# Spring force Fs\n", + "Us = round(-((1/2)*30*2.5**(2)-(1/2)*30*0.5**(2)),1) #[Joules]\n", + "# Weight W\n", + "UW = round(-98.1*(2*math.sin(math.pi*30/180)),1) #[Joules]\n", + "# Total Work\n", + "UT = UP+Us+UW #[Joules]\n", + "\n", + "# Result\n", + "print\"UT = \",(UT),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.2 Page No 574" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "s = 4.0 m\n" + ] + } + ], + "source": [ + "# Ex 14.2\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "uk = 0.5\n", + "m = 20 #[kilo Newton]\n", + "\n", + "# Calculation\n", + "# Using +ΣFn = 0\n", + "NA = round(m*math.cos(math.pi*10/180),2) #[kilo Newtons]\n", + "FA = uk*NA #[kilo Newtons]\n", + "# Principle of Work and Energys\n", + "s = round((-(1/2)*(m/9.81)*(5**(2)))/(m*math.sin(math.pi*10/180)-9.85),1) #[meters]\n", + " \n", + "# Result\n", + "print\"s = \",(s),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.3 Page No 575" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v = 5.47 m/s\n", + "t = 1.79 s\n" + ] + } + ], + "source": [ + "# Ex 14.3\n", + "from __future__ import division\n", + "from scipy import integrate\n", + "\n", + "# Calculation\n", + "v = round((2.78*3+0.8*3**(3))**(1/2),2) #[meters per second]\n", + "x = lambda s : 1/((2.78*s+0.8*s**(3))**(1/2))\n", + "t = round(integrate.quad(x,0,3)[0],2) #[seconds]\n", + " \n", + "# Result\n", + "print\"v = \",(v),\"m/s\"\n", + "print\"t = \",(t),\"s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.4 Page No 576" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "h = 0.963 m\n" + ] + } + ], + "source": [ + "# Ex 14.4\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using Principle of Work and Energy\n", + "h = round(((-(1/2)*200*(0.6**(2))+(1/2)*200*(0.7**(2)))/(19.62))+0.3,3) #[meters]\n", + "\n", + "# Result\n", + "print\"h = \",(h),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.5 Page No 577" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "thetamax = 42.7 degrees\n" + ] + } + ], + "source": [ + "# Ex 14.5\n", + "import math\n", + "\n", + "# Calculation\n", + "thetamax = round(math.degrees(math.acos((9.81+1)/(4.905+9.81))),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"thetamax = \",(thetamax),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.6 Page No 578" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "delta_sB = 0.883 m\n" + ] + } + ], + "source": [ + "# EX 14.6\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "vA = -4*2 #[meters per second]\n", + "# Substituting delta_sA = -4*delta_sB\n", + "delta_sB = round(((1/2)*10*(vA**(2))+(1/2)*100*(2**(2)))/(-4*98.1+981),3) #[meters]\n", + "\n", + "# Result\n", + "print\"delta_sB = \",(delta_sB),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.8 Page No 586" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "P = 162.0 kW\n" + ] + } + ], + "source": [ + "# Ex 14.8\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "uk = 0.35\n", + "\n", + "# Calculation\n", + "# Using +ΣFy(upward) = 0\n", + "NC = 19.62 #[kilo Newtons]\n", + "FC = uk*NC #[kilo Newtons]\n", + "v = round(math.sqrt(((1/2)*2000*(25**(2))-6.867*(10**(3))*10)/((1/2)*2000)),2) #[meters per second]\n", + "P = round(FC*v,1) #[kilo Watts]\n", + "\n", + "# Result\n", + "print\"P = \",(P),\"kW\" # Correction in the answer" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.9 Page No 595" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "T = 148.7 kN\n" + ] + } + ], + "source": [ + "# Ex 14.9\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using Principle of Conservation of Energy\n", + "vB = round(math.sqrt((8000*9.81*20*math.cos(math.pi*15/180)-8000*9.81*20*math.cos(math.pi*60/180))/((1/2)*8000)),1) #[meters per second]\n", + "# Using ΣFn = m*an\n", + "T = 8000*9.81*math.cos(math.pi*15/180)+8000*(13.5**(2))/20 #[Newtons]\n", + "\n", + "# Result\n", + "print\"T = \",round((T/1000),1),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.10 Page No 596" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "sA = 0.331 m\n" + ] + } + ], + "source": [ + "# Ex 14.10\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "coeff = [13500, -2481, -660.75]\n", + "# Taking positive root\n", + "sA = round(np.roots(coeff)[0],3) #[meters]\n", + "\n", + "# Result\n", + "print\"sA = \",(sA),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 14.11 Page No 597" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Part(a)\n", + "vC = 4.39 m/s\n", + "\n", + "Part(b)\n", + "vC = 4.82 m/s\n" + ] + } + ], + "source": [ + "# Ex 14.11\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Part(a) Potential Energy\n", + "vC = round(math.sqrt((-(1/2)*3*(0.5**(2))+2*9.81*1)/((1/2)*2)),2) #[meters per second]\n", + "\n", + "# Result Part(a)\n", + "print\"Part(a)\"\n", + "print\"vC = \",(vC),\"m/s\\n\"\n", + "\n", + "# Part(b) Conservation of Energy\n", + "vC = round(math.sqrt(((1/2)*2*(2**(2))-(1/2)*3*(0.5**(2))+2*9.81*1)/((1/2)*2)),2) #[meters per second]\n", + "\n", + "# Result Part(b)\n", + "print\"Part(b)\"\n", + "print\"vC = \",(vC),\"m/s\"\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_15_Kinetics_of__XnxZDvg.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_15_Kinetics_of__XnxZDvg.ipynb new file mode 100644 index 00000000..1157bdc9 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_15_Kinetics_of__XnxZDvg.ipynb @@ -0,0 +1,570 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 15 Kinetics of a Particle : Impulse and Momentum" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.1 Page No 607" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v2 = 14.1 m/s\n", + "NC = 839.6 N\n" + ] + } + ], + "source": [ + "# Ex 15.1\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "ws = 100 #[kilogram]\n", + "F = 200 #[Newton]\n", + "theta = 45 #[degrees]\n", + "\n", + "# Calculation\n", + "v2 = round(F*10*math.cos(math.pi*theta/180)/100,1) #[meters per second]\n", + "NC = round((9.81*ws*10-F*10*math.sin(math.pi*theta/180))/10,1) #[Newtons]\n", + "\n", + "# Result\n", + "print\"v2 = \",(v2),\"m/s\"\n", + "print\"NC = \",(NC),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.2 Page No 608" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v2 = 7.67 m/s\n", + "NC = 433.0 N\n" + ] + } + ], + "source": [ + "# Ex 15.2\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using +ΣFy = 0\n", + "NC = round(500*math.cos(math.pi*30/180),1) #[Newtons]\n", + "v2 = round((50.97+100-0.6*NC+500)/50.97,2) #[meters per second]\n", + "\n", + "# Result\n", + "print\"v2 = \",(v2),\"m/s\"\n", + "print\"NC = \",(NC),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.3 Page No 609" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vB2 = 35.8 m/s\n", + "TB = 19.2 N\n" + ] + } + ], + "source": [ + "# Ex 15.3\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "a = np.array([[-(1/2)*3,2*6], [5,6]])\n", + "b = np.array([3*9.81*6,5*9.81*6])\n", + "x = np.linalg.solve(a, b)\n", + "vB2 = round(x[0],1) #[meters per second]\n", + "TB = round(x[1],1) #[Newtons]\n", + "\n", + "# Result\n", + "print\"vB2 = \",(vB2),\"m/s\"\n", + "print\"TB = \",(TB),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.4 Page No 616" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "v2 = 0.5 m/s\n", + "Favg = 18.75 kN\n" + ] + } + ], + "source": [ + "# Ex 15.4\n", + "\n", + "# Calculation\n", + "# Part(a)\n", + "v2 = (15000*1.5-12000*0.75)/27000 #[meters per second]\n", + "# Part(b)\n", + "Favg = (15000*1.5-15000*0.5)/0.8 #[Newtons]\n", + "\n", + "# Result\n", + "print\"v2 = \",(v2),\"m/s\"\n", + "print\"Favg = \",(Favg/1000),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.5 Page No 617" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vC2 = 4.0 m/s\n", + "Favg = 66.67 kN\n" + ] + } + ], + "source": [ + "# Ex 15.5\n", + "\n", + "# Calculation\n", + "# Part(a)\n", + "vC2 = 4*500/500 #[meters per second]\n", + "# Part(b)\n", + "Favg = 4*500/0.03 #[Newtons]\n", + "\n", + "# Result\n", + "print\"vC2 = \",(vC2),\"m/s\"\n", + "print\"Favg = \",round((Favg/1000),2),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.6 Page No 618" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vT2 = 2.63 m/s\n" + ] + } + ], + "source": [ + "# Ex 15.6\n", + "\n", + "# Calculation\n", + "vT2 = round((350*10**(3)*3)/(350*10**(3)+50*10**(3)),2) #[meters per second]\n", + "\n", + "# Result\n", + "print\"vT2 = \",(vT2),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.7 Page No 619" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Impulse = 682.9 N.s\n" + ] + } + ], + "source": [ + "# Ex 15.7\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "mH = 300 #[kilogram]\n", + "mP = 800 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Using conservation of energy\n", + "vH1 = round(math.sqrt((mH*9.81*0.5)/((1/2)*mH)),2) #[meters per second]\n", + "# Using conservation of momentum\n", + "v2 = (mH*3.13)/(mH+mP) #[meters per second]\n", + "# Using Principle of Impulse and Momentum\n", + "Impulse = round(300*vH1-300*v2,1) #[Newtons second]\n", + "\n", + "# Result\n", + "print\"Impulse = \",(Impulse),\"N.s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.9 Page No 627" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Energy_loss = -33.15 J\n" + ] + } + ], + "source": [ + "# Ex 15.9\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using conservation of energy\n", + "vA1 = round(math.sqrt((6*9.81*1)/((1/2)*6)),2)\n", + "# Using Conservation of Momentum and formula for coefficient of restitution\n", + "a = np.array([[1,3], [1,-1]])\n", + "b = np.array([4.43,-2.215])\n", + "x = np.linalg.solve(a, b)\n", + "vA2 = round(x[0],3) #[meters per second]\n", + "vB2 = round(x[1],2) #[meters per second]\n", + "Energy_loss = round((1/2)*18*vB2**(2)+(1/2)*6*vA2**(2)-(1/2)*6*vA1**(2),2) #[Joules]\n", + "\n", + "# Result\n", + "print\"Energy_loss = \",(Energy_loss),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.10 Page No 628" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "s3 = 237.0 mm\n" + ] + } + ], + "source": [ + "# Ex 15.10\n", + "from __future__ import division\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "wB = 1.5 #[kilogram]\n", + "k = 800 #[Newton meter]\n", + "\n", + "# Calculation\n", + "# Using Principle of conservation of energy\n", + "vB1 = round(math.sqrt((-wB*9.81*1.25+(1/2)*k*0.25**(2))/((1/2)*1.5)),2) #[meters per second]\n", + "# Using Principle of coefficient of restitution\n", + "vB2 = 0.8*(0-2.97)+0 #[meters per second]\n", + "# Using Principle of conservation of energy\n", + "coeff = [400,-14.72,-18.94]\n", + "# Taking positive root\n", + "s3 = round(np.roots(coeff)[0],3) #[meters]\n", + "\n", + "# Result\n", + "print\"s3 = \",(s3*1000),\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.11 Page No 629" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vAx2 = -1.26 m/s\n", + "vBx2 = 1.22 m/s\n", + "vAy2 = 1.5 m/s\n", + "vBy2 = -0.71 m/s\n" + ] + } + ], + "source": [ + "# Ex 15.11\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Calculation\n", + "vAx1 = round(3*math.cos(math.pi*30/180),2)\n", + "vAy1 = round(3*math.sin(math.pi*30/180),2)\n", + "vBx1 = round(-1*math.cos(math.pi*45/180),2)\n", + "vBy1 = round(-1*math.sin(math.pi*45/180),2)\n", + "# Using Conservation of \"x\" Momentum and Coefficient of restitution\n", + "a = np.array([[1,2], [-1,1]])\n", + "b = np.array([1.18,2.48])\n", + "x = np.linalg.solve(a, b)\n", + "vAx2 = round(x[0],3) #[meters per second]\n", + "vBx2 = round(x[1],2) #[meters per second]\n", + "# Using Conservation of \"x\" Momentum\n", + "vAy2 = vAy1\n", + "vBy2 = vBy1\n", + "\n", + "# Result\n", + "print\"vAx2 = \",(vAx2),\"m/s\"\n", + "print\"vBx2 = \",(vBx2),\"m/s\"\n", + "print\"vAy2 = \",(vAy2),\"m/s\"\n", + "print\"vBy2 = \",(vBy2),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.13 Page No 640" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vA2 = 20.0 m/s\n" + ] + } + ], + "source": [ + "# Ex 15.13\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "P = 10 #[Newton]\n", + "wB = 5 #[kilogram]\n", + "\n", + "# Calculation\n", + "vA2 = ((3/2)*(4**(2)-0**(2))+0.4*P*4)/(wB*0.4) #[meters per second]\n", + "\n", + "# Result\n", + "print\"vA2 = \",(vA2),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.14 Page No 641" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "UF = 2.31 J\n" + ] + } + ], + "source": [ + "# Ex 15.14\n", + "\n", + "# Variable Declaration\n", + "v1 = 1 #[meters per second]\n", + "r1 = 0.5 #[meters]\n", + "r2 = 0.2 #[meters]\n", + "vC = 2 #[meters per second]\n", + "\n", + "# Calculation\n", + "# Part(a)\n", + "# Using principle of Conservation of Angular Momentum\n", + "v2dash = (r1*0.5*v1)/(r2*0.5) #[meters per second]\n", + "v2 = round(math.sqrt(2.5**(2)+2**(2)),2) #[meters per second]\n", + "# Part(b)\n", + "UF = (1/2)*0.5*v2**(2)-(1/2)*0.5*v1**(2) #[Joules]\n", + "\n", + "# Result\n", + "print\"UF = \",(UF),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 15.15 Page No 642" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vD2doubledash = 0.838 m/s\n" + ] + } + ], + "source": [ + "# Ex 15.15\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "vD1 = 1.5 #[meters per second]\n", + "kc = 20 #[Newtons per meter]\n", + "\n", + "# Calculation\n", + "# Using principle of Conservation of Angular Momentum\n", + "vD2dash = (0.5*2*1.5)/(0.7*2) #[meters per second]\n", + "# Using Conservation of Energy\n", + "vD2 = round(math.sqrt(((1/2)*2*vD1**(2)-(1/2)*kc*0.2**(2))/((1/2)*2)),2) #[meters per second]\n", + "vD2doubledash = round(math.sqrt(vD2**(2)-vD2dash**(2)),3) #[meters per second]\n", + "\n", + "# Result\n", + "print\"vD2doubledash = \",(vD2doubledash),\"m/s\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_16_Planar_Kinem_iVoLBQW.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_16_Planar_Kinem_iVoLBQW.ipynb new file mode 100644 index 00000000..677b13e4 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_16_Planar_Kinem_iVoLBQW.ipynb @@ -0,0 +1,718 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 16 Planar Kinematics of a Rigid Body" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.2 Page No 659" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vP = 1.23 m/s\n", + "alphaP = 3.78 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.2\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "alphaA = 2 #[radians per second square]\n", + "\n", + "# Calculation\n", + "thetaB = round(1*(2*math.pi)/1,3) #[radians]\n", + "thetaA = round(thetaB*0.4/0.15,2) #[radians]\n", + "wA = round(math.sqrt(0+2*2*(thetaA-0)),3) #[radians per second]\n", + "wB = wA*0.15/0.4 #[radians per second]\n", + "alphaB = alphaA*0.15/0.4 #[radians per second square]\n", + "vP = round(wB*0.4,2) #[meters per second]\n", + "alphaPt = alphaB*0.4 #[radians per second square]\n", + "alphaPn = wB**(2)*0.4 #[radians per second square]\n", + "alphaP = round(math.sqrt(alphaPt**(2)+alphaPn**(2)),2) #[radians per second square]\n", + "\n", + "# Result\n", + "print\"vP = \",(vP),\"m/s\"\n", + "print\"alphaP = \",(alphaP),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 16.5 Page No 666" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w = 0.62 rad/s\n", + "alpha = -0.416 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.5\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "theta = 30 #[degrees]\n", + "vC = 0.5 #[meter per second]\n", + "\n", + "# Calculation\n", + "s = round(math.sqrt(5-4*math.cos(math.pi*theta/180)),3) #[meters]\n", + "w = round((s*0.5)/(2*math.sin(math.pi*theta/180)),3) #[radians per second]\n", + "alpha = round((0.5**(2)-2*math.cos(math.pi*theta/180)*w**(2))/(2*math.sin(math.pi*theta/180)),3) #[Degrees]\n", + "\n", + "# Result\n", + "print\"w = \",(w),\"rad/s\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.6 Page No 673" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w = 14.1 rad/s\n", + "vB = 2.0 m/s\n" + ] + } + ], + "source": [ + "# Ex 16.6\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "vA = 2 #[meters per second]\n", + "theta = 45 #[Degrees]\n", + "\n", + "# Calculation\n", + "# Equating j component\n", + "w = round(vA/(0.2*math.sin(math.pi*theta/180)),1) #[radians per second]\n", + "# Equating i component\n", + "vB = round(0.2*w*math.sin(math.pi*theta/180),1) #[meters per second]\n", + "\n", + "# Result\n", + "print\"w = \",(w),\"rad/s\"\n", + "print\"vB = \",(vB),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.7 Page No 674" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1 Vector Analysis\n", + "vA = 5.0 m/s\n", + "theta = 36.9 degrees\n", + "\n", + "Solution 2 Scalar Analysis\n", + "vA = 5.0 m/s\n", + "theta = 36.9 degrees\n" + ] + } + ], + "source": [ + "# Ex 16.7\n", + "import math\n", + "\n", + "# Calculation\n", + "# Solution 1 Vector Analysis\n", + "vA_x = 1+3.0 #[meters per second]\n", + "vA_y = 3 #[meters per second]\n", + "vA = round(math.sqrt(vA_x**(2)+vA_y**(2)),1) #[meters per second]\n", + "theta = round(math.degrees(math.atan(vA_y/vA_x)),1) #[Degrees]\n", + "\n", + "# Result 1 Vector Analysis\n", + "print\"Solution 1 Vector Analysis\"\n", + "print\"vA = \",(vA),\"m/s\"\n", + "print\"theta = \",(theta),\"degrees\\n\"\n", + "\n", + "# Solution 2 Scalar Analysis\n", + "vA_x = 1+4.24*math.cos(math.pi*45/180) #[meters per second]\n", + "vA_y = 0+4.24*math.sin(math.pi*45/180) #[meters per second]\n", + "vA = round(math.sqrt(vA_x**(2)+vA_y**(2)),1) #[meters per second]\n", + "theta = round(math.degrees(math.atan(vA_y/vA_x)),1) #[Degrees]\n", + "\n", + "# Result 2 Scalar Analysis\n", + "print\"Solution 2 Scalar Analysis\"\n", + "print\"vA = \",(vA),\"m/s\"\n", + "print\"theta = \",(theta),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.8 Page No 675" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vB = 2.0 m/s\n", + "wAB = 10.0 rad/s\n" + ] + } + ], + "source": [ + "# Ex 16.8\n", + "\n", + "# Calculation\n", + "# Link CB\n", + "wCB = 2/0.2 #[radians per second]\n", + "vB = 0.2*wCB #[meters per second]\n", + "# Link AB\n", + "wAB = 2/0.2 #[radians per second]\n", + "\n", + "# Result\n", + "print\"vB = \",(vB),\"m/s\"\n", + "print\"wAB = \",(wAB),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.9 Page No 676" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wBC = 15.0 rad/s\n", + "wD = 52.0 rad/s\n" + ] + } + ], + "source": [ + "# Ex 16.9\n", + "\n", + "# Calculation\n", + "# Link BC\n", + "vC = 5.20 #[meters per second]\n", + "wBC = 3.0/0.2 #[radians per second]\n", + "# Wheel\n", + "wD = 5.20/0.1 #[radians per second]\n", + "\n", + "# Result\n", + "print\"wBC = \",(wBC),\"rad/s\"\n", + "print\"wD = \",(wD),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.11 Page No 684" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wBD = 5.3 rad/s\n", + "wAB = 5.3 rad/s\n" + ] + } + ], + "source": [ + "# Ex 16.10\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "vD = 3 #[meters per second]\n", + "\n", + "# Calculation\n", + "rBIC = round(0.4*math.tan(math.pi*45/180),1) #[meters]\n", + "rDIC = round(0.4/math.cos(math.pi*45/180),3) #[meters]\n", + "wBD = round(vD/rDIC,2) #[radians per second]\n", + "vB = wBD*rBIC #[meters per second]\n", + "wAB = vB/0.4 #[radians per second]\n", + "\n", + "# Result\n", + "print\"wBD = \",(wBD),\"rad/s\"\n", + "print\"wAB = \",(wAB),\"rad/s\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.12 Page No 685" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w = 2.6 rad/s\n", + "vC = 0.075 m/s\n" + ] + } + ], + "source": [ + "# Ex 16.12\n", + "\n", + "# Calculation\n", + "x = 0.1/0.65 #[meters]\n", + "w = 0.4/x #[radians per second]\n", + "vC = w*(x-0.125) #[meters per second]\n", + "\n", + "# Result\n", + "print\"w = \",(w),\"rad/s\"\n", + "print\"vC = \",(vC),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.13 Page No 691" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha = 0.344 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.13\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Calculation\n", + "a = np.array([[math.cos(math.pi*45/180),0],[math.sin(math.pi*45/180),-10]])\n", + "b = np.array([3*math.cos(math.pi*45/180)-0.283**(2)*10,-3*math.sin(math.pi*45/180)])\n", + "x = np.linalg.solve(a, b)\n", + "aB = x[0] #[meters per second square]\n", + "alpha = round(x[1],3) #[radians per second square]\n", + " \n", + "# Result\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.15 Page No 693" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aB_x = -20.0 m/s**(2)\n", + "aB_y = 2.0 m/s**(2)\n", + "aA_x = -4.0 m/s**(2)\n", + "aA_y = -18.0 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.15\n", + "\n", + "# Calculation\n", + "# For point B\n", + "aB_x = -2-6**(2)*0.5 #[meters per second square]\n", + "aB_y = 4*0.5 #[meters per second square]\n", + "# For point A\n", + "aA_x = -2-4*0.5 #[meters per second square]\n", + "aA_y = -6**(2)*0.5 #[meters per second square]\n", + "\n", + "# Result\n", + "print\"aB_x = \",(aB_x),\"m/s**(2)\"\n", + "print\"aB_y = \",(aB_y),\"m/s**(2)\"\n", + "print\"aA_x = \",(aA_x),\"m/s**(2)\"\n", + "print\"aA_y = \",(aA_y),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.16 Page No 694" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aB = 9.25 m/s**(2)\n", + "theta = 71.1 degrees\n" + ] + } + ], + "source": [ + "# Ex 16.16\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "w = 3 #[radians per second]\n", + "alpha = 4 #[radians per second square]\n", + "\n", + "# Calculation\n", + "aB_x = alpha*0.75 #[meters per second square]\n", + "aB_y = -2-w**(2)*0.75 #[meters per second square]\n", + "aB = round(math.sqrt(aB_x**(2)+aB_y**(2)),2) #[meters per second square]\n", + "theta = round(math.degrees(math.atan(-aB_y/aB_x)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"aB = \",(aB),\"m/s**(2)\"\n", + "print\"theta = \",(theta),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.17 Page No 695" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alphaCB = 5.0 rad/s**(2)\n", + "alphaAB = -95.0 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.17\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "a = np.array([[0.2,-0.2],[0,0.2]])\n", + "b = np.array([-20,1])\n", + "x = np.linalg.solve(a, b)\n", + "alphaAB = round(x[0],1) #[meters per second square]\n", + "alphaCB = round(x[1],1) #[radians per second square]\n", + " \n", + "# Result\n", + "print\"alphaCB = \",(alphaCB),\"rad/s**(2)\" \n", + "print\"alphaAB = \",(alphaAB),\"rad/s**(2)\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.18 Page No 696" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alphaBC = 27.7 rad/s**(2)\n", + "aC = -13.6 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.18\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Calculation\n", + "rB_x = -0.25*math.sin(math.pi*45/180) #[meters]\n", + "rB_y = 0.25*math.cos(math.pi*45/180) #[meters]\n", + "rCB_x = 0.75*math.sin(math.pi*13.6/180) #[meters]\n", + "rCB_y = 0.75*math.cos(math.pi*13.6/180) #[meters]\n", + "aB_x = np.cross([0,0,-20],[-0.177,0.177,0])[0]-10**(2)*-0.177 #[meters per second square]\n", + "aB_y = np.cross([0,0,-20],[-0.177,0.177,0])[1]-10**(2)*0.177 #[meters per second square]\n", + "alphaBC = round(20.17/0.729,1) #[radians per second square]\n", + "aC = round(0.176*alphaBC-18.45,1) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"alphaBC = \",(alphaBC),\"rad/s**(2)\"\n", + "print\"aC = \",(aC),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.19 Page No 705" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aCor_x = 0 m/s**(2)\n", + "aCor_y = -12 m/s**(2)\n", + "vC_x = 2 m/s\n", + "vC_y = -0.6 m/s\n", + "aC_x = 1.2 m/s\n", + "aC_y = -12.4 m/s\n" + ] + } + ], + "source": [ + "# Ex 16.19\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "aCor_x = np.cross([0,0,2*-3],[2,0,0])[0] #[meters per second square]\n", + "aCor_y = np.cross([0,0,2*-3],[2,0,0])[1] #[meters per second square]\n", + "vC_x = 2 #[meters per second]\n", + "vC_y = -0.6 #[meters per second]\n", + "aC_x = 3-1.80 #[meters per second square]\n", + "aC_y = -0.4-12 #[meters per second square]\n", + "\n", + "# Result\n", + "print\"aCor_x = \",(aCor_x),\"m/s**(2)\"\n", + "print\"aCor_y = \",(aCor_y),\"m/s**(2)\"\n", + "print\"vC_x = \",(vC_x),\"m/s\"\n", + "print\"vC_y = \",(vC_y),\"m/s\"\n", + "print\"aC_x = \",(aC_x),\"m/s\"\n", + "print\"aC_y = \",(aC_y),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 16.20 Page No 706" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wDE = 3 rad/s\n", + "alphaDE = -5.0 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.20\n", + "\n", + "# Calculation\n", + "vCDxyz = 1.2 #[meters per second]\n", + "wDE = 3 #[radians per second]\n", + "aCDxyz = 3.6-2 #[meters per second square]\n", + "alphaDE = (7.2-5.2)/-0.4 #[radians per second square]\n", + "\n", + "# Result\n", + "print\"wDE = \",(wDE),\"rad/s\"\n", + "print\"alphaDE = \",(alphaDE),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 16.21 Page No 707" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vABxyz_x = 0 km/h\n", + "vABxyz_y = 94.0 km/h\n", + "aABxyz_x = -609 km/h**(2)\n", + "aABxyz_y = 152 km/h**(2)\n" + ] + } + ], + "source": [ + "# Ex 16.21\n", + "\n", + "# Calculation\n", + "vABxyz_x = 0 #[kilometer per hour]\n", + "vABxyz_y = 700-600-(-1.5*-4) #[kilometer per hour]\n", + "aABxyz_x = -900+9+282 #[kilometer per hour square]\n", + "aABxyz_y = 50+100+2 #[kilometer per hour square]\n", + "\n", + "# Result\n", + "print\"vABxyz_x = \",(vABxyz_x),\"km/h\"\n", + "print\"vABxyz_y = \",(vABxyz_y),\"km/h\"\n", + "print\"aABxyz_x = \",(aABxyz_x),\"km/h**(2)\"\n", + "print\"aABxyz_y = \",(aABxyz_y),\"km/h**(2)\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_17_Planar_Kinet_WgJywgt.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_17_Planar_Kinet_WgJywgt.ipynb new file mode 100644 index 00000000..ea63db73 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_17_Planar_Kinet_WgJywgt.ipynb @@ -0,0 +1,744 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 17 Planar Kinetics of a Rigid Body Force and Acceleration" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.2 Page No 719" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Iy = 0.349 Mg.m**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.2\n", + "from scipy import integrate\n", + "import math\n", + "\n", + "# Calculation\n", + "y = lambda y: ((math.pi*2)/2)*y**(8)\n", + "Iy = round(integrate.quad(y, 0, 1)[0],3) #[milligram meter square]\n", + "\n", + "# Result\n", + "print\"Iy = \",(Iy),\"Mg.m**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.3 Page No 722" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IO = 1.2 kg m**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.3\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "d = 8000 #[kilogram per meter cube]\n", + "t = 0.01 #[meter]\n", + "\n", + "# Calculation\n", + "md = round(d*math.pi*0.25**(2)*t,2)\n", + "# Disk\n", + "IdO = (1/2)*md*0.25**(2)+md*0.25**(2) #[kilogram meter square]\n", + "\n", + "# Hole\n", + "IhO = (1/2)*3.93*0.125**(2)+3.93*0.25**(2) #[kilogram meter square]\n", + "\n", + "# Let IO be moment of inertia about point O\n", + "IO = round(IdO-IhO,2) #[kilogram meter square]\n", + "\n", + "# Result\n", + "print\"IO = \",(IO),\"kg m**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.4 Page No 723" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "IO = 14.167 kg.m**(2)\n", + "IG = 2.917 kg.m**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.4\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "m = 10 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Part(a)\n", + "IOAO = (1/3)*m*1**(2) #[kilogram meter square]\n", + "IBCO = (1/12)*m*1**(2)+m*1**(2) #[kilogram meter square]\n", + "# Let IO be moment of inertia about O\n", + "IO = round(IOAO+IBCO,3) #[kilogram meter square]\n", + "\n", + "# Part(b)\n", + "ybar = (0.5*10+1*10)/(10+10) #[meter]\n", + "IG = round(IO-2*m*ybar**(2),3) #[kilogram meter square]\n", + "\n", + "# Result\n", + "print\"IO = \",(IO),\"kg.m**(2)\"\n", + "print\"IG = \",(IG),\"kg.m**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.5 Page No 733" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NA = 6.88 kN\n", + "NB = 12.74 kN\n", + "aG = 1.59 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.5\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x = m(aG)_x, +ΣF_y = m(aG)_y and +ΣMG(counter clockwise)=0 \n", + "a = np.array([[0,-0.25,2000],[1,1,0],[-1.25,-0.25*0.3+0.75,0]])\n", + "b = np.array([0,2000*9.81,0])\n", + "x = np.linalg.solve(a, b)\n", + "NA = round(x[0]/1000,2) #[kilo Newton]\n", + "NB = round(x[1]/1000,2) #[kilo Newton]\n", + "aG = round(x[2],2) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"NA = \",(NA),\"kN\"\n", + "print\"NB = \",(NB),\"kN\"\n", + "print\"aG = \",(aG),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.6 Page No 734" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "usmin = 0.912\n" + ] + } + ], + "source": [ + "# Ex 17.6\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "mm = 125 #[kilogram]\n", + "mr = 75 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x = m(aG)_x, +ΣF_y = m(aG)_y and +ΣMG(counter clockwise)=0 \n", + "a = np.array([[1,0,-(mm+mr)],[0,1,0],[0,0,mr*0.9+mm*0.6]])\n", + "b = np.array([0,735.75+1226.25,-735.75*0.4-1226.25*0.8])\n", + "x = np.linalg.solve(a, b)\n", + "FB = round(x[0],1) #[kilo Newton]\n", + "NB = round(x[1],1) #[kilo Newton]\n", + "aG = round(x[2],2) #[meters per second square]\n", + "# Let usmin be minimum coefficient of static friction\n", + "usmin = round(-FB/NB,3)\n", + "\n", + "# Result\n", + "print\"usmin = \",(usmin)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.7 Page No 736" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NC = 490.5 N\n", + "x = 0.467 m\n", + "aG = 10.0 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.7\n", + "\n", + "# Variable Declaration\n", + "P = 600 #[Newton]\n", + "uk = 0.2\n", + "\n", + "# Calculation\n", + "# Using +ΣF_y = m(aG)_y\n", + "NC = 490.5 #[Newton]\n", + "\n", + "# Using +ΣF_x = m(aG)_x\n", + "aG = round((600-uk*NC)/50,1) #[meters per second square]\n", + "\n", + "# Using +ΣMG(counter clockwise)=0 \n", + "x = round((uk*NC*0.5+600*0.3)/NC,3) #[meter]\n", + "\n", + "# Result\n", + "print\"NC = \",(NC),\"N\"\n", + "print\"x = \",(x),\"m\"\n", + "print\"aG = \",(aG),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 17.8 Page No 736" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TB = 1.32 kN\n", + "TD = 1.32 kN\n", + "aG = 4.9 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.8\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "theta = 30 #[Degrees]\n", + "\n", + "# Calculation\n", + "# Using +ΣFn = 0, +ΣFt = 0 and +ΣMG(counterclockwise) = 0\n", + "a = np.array([[1,1,0],[0,0,100],[-math.cos(math.pi*theta/180)*0.4,0.4*math.cos(math.pi*theta/180),0]])\n", + "b = np.array([981*math.cos(math.pi*theta/180)+100*18,981*math.sin(math.pi*theta/180),0])\n", + "x = np.linalg.solve(a, b)\n", + "TB = round(x[0]/1000,2) #[kilo Newton]\n", + "TD = round(x[1]/1000,2) #[kilo Newton]\n", + "aG = round(x[2],2) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"TB = \",(TB),\"kN\"\n", + "print\"TD = \",(TD),\"kN\"\n", + "print\"aG = \",(aG),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.9 Page No 742" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ox = 0 N\n", + "Oy = 304.3 N\n", + "theta = 2.72 rev\n" + ] + } + ], + "source": [ + "# Ex 17.9\n", + "\n", + "# Calculation\n", + "# Using +ΣFx(right) = m(aG)x\n", + "Ox = 0 #[Newton]\n", + "\n", + "# Using +ΣFy(upward) = m(aG)y\n", + "Oy = 294.3+10 #[Newton]\n", + "\n", + "# Using +ΣMO(counterclockwise) = IO*alpha\n", + "alpha = (-10*0.2-5)/-0.6\n", + "theta = (-20**(2))/(2*-11.7)\n", + "theta = round(theta*(1/(2*math.pi)),2)\n", + "\n", + "# Result\n", + "print\"Ox = \",(Ox),\"N\"\n", + "print\"Oy = \",(Oy),\"N\"\n", + "print\"theta = \",(theta),\"rev\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.10 Page No 743" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "On = 750.0 N\n", + "Ot = 19.05 N\n", + "alpha = 5.91 rad/s**(2)\n", + "\n", + "Solution 2\n", + "alpha = 5.91 rad/s**(2)\n", + "\n", + "Solution 3\n", + "alpha = 5.91 rad/s**(2)\n", + "\n" + ] + } + ], + "source": [ + "# Ex 17.10\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Calculation Solution 1\n", + "# Using +ΣFn(left) = mw**(2)rG, +ΣFt(downwards) = malpharG and +ΣMG(clockwise) = IGalpha\n", + "a = np.array([[1,0,0],[0,1,20*1.5],[0,1.5,-(1/12)*20*3**(2)]])\n", + "b = np.array([20*5**(2)*1.5,20*9.81,-60])\n", + "x = np.linalg.solve(a, b)\n", + "On = round(x[0],2) #[Newton]\n", + "Ot = round(x[1],2) #[Newton]\n", + "alpha = round(x[2],2) #[radians per second square]\n", + "\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"On = \",(On),\"N\"\n", + "print\"Ot = \",(Ot),\"N\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "# Using +ΣMO(clockwise) = Σ(Mk)O\n", + "alpha = round((60+20*9.81*1.5)/((1/12)*20*3**(2)+20*1.5*1.5),2) #[radians per second square]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\\n\"\n", + "\n", + "# Calculation Solution 3\n", + "# Using +ΣMO(clockwise) = IOalpha\n", + "alpha = round((60+20*9.81*1.5)/((1/3)*20*3**(2)),2) #[radians per second square]\n", + "\n", + "# Result Solution 3\n", + "print\"Solution 3\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\\n\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.11 Page No 744" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "alpha = 11.3 rad/s**(2)\n", + "\n", + "Solution 2\n", + "alpha = 11.3 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.11\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "m = 60 #[kilogram]\n", + "k = 0.25 #[meters]\n", + "\n", + "# Calculation Solution 1\n", + "IO = m*k**(2)\n", + "# Using +ΣMO(counterclockwise) = IOalpha, +ΣFy(upward) = m(aG)y and +a(counterclockwise) = alpha*r\n", + "a = np.array([[0.4,0,-IO],[1,20,0],[0,1,-0.4]])\n", + "b = np.array([0,20*9.81,0])\n", + "x = np.linalg.solve(a, b)\n", + "T = round(x[0],2) #[Newton]\n", + "a = round(x[1],2) #[meters per second square]\n", + "alpha = round(x[2],1) #[radians per second square]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "# Using +ΣMO(clockwise) = Σ(Mk)O\n", + "alpha = round((20*9.81*0.4)/(3.75+20*0.4*0.4),1) #[radians per second square]\n", + "\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.12 Page No 745" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "On = 1600.0 N\n", + "Ot = 223.9 N\n", + "alpha = 10.66 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.12\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Using +ΣFn(left) = mw**(2)rG, +ΣFt(upward) = m*alpha*rG and +ΣMG(clockwise) = IG*alpha\n", + "a = np.array([[1,0,0],[0,1,50*0.5],[0,0.5,-18]])\n", + "b = np.array([50*8**(2)*0.5,50*9.81,-80])\n", + "x = np.linalg.solve(a, b)\n", + "On = round(x[0],2) #[Newton]\n", + "Ot = round(x[1],2) #[Newton]\n", + "alpha = round(x[2],2) #[radians per second square]\n", + "\n", + "\n", + "# Result\n", + "print\"On = \",(On),\"N\"\n", + "print\"Ot = \",(Ot),\"N\" # Correction in the textbook\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.14 Page No 754" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "alpha = 10.3 rad/s**(2)\n", + "\n", + "Solution 2\n", + "alpha = 10.3 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.14\n", + "import numpy as np\n", + "\n", + "# Calculation Solution 1\n", + "IG = 8*0.35**(2) #[kilogram meter square]\n", + "# Using +ΣFy(upward) = m(aG)y, +ΣMG(clockwise) = IG*alpha and +aG(clockwise) = alpha*r\n", + "a = np.array([[1,-8,0],[0.5,0,IG],[0,1,-0.5]])\n", + "b = np.array([-100+78.48,100*0.2,0])\n", + "x = np.linalg.solve(a, b)\n", + "T = round(x[0],2) #[Newton]\n", + "aG = round(x[1],2) #[meters per second square]\n", + "alpha = round(x[2],1) #[radians per second square]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "# Using +ΣMA(clockwise) = Σ(Mk)A and aG = 0.5*alpha\n", + "alpha = round((100*0.7-78.48*0.5)/(0.980+8*0.5*0.5),1) #[radians per second square]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.15 Page No 755" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "aG = 2.453 m/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.15\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Slipping\n", + "# Using +ΣFx(right) = m(aG)x, +ΣFy(upward) = m(aG)y, +ΣMG(clockwise) = IG*alpha and FA = 0.25*NA\n", + "a = np.array([[1,0,-5,0],[0,1,0,0],[1.25,0,0,2.45],[1,-0.25,0,0]])\n", + "b = np.array([0,5*9.81,35,0])\n", + "x = np.linalg.solve(a, b)\n", + "FA = round(x[0],2) #[Newton]\n", + "NA = round(x[1],2) #[Newton]\n", + "aG = round(x[2],3) #[meters per second square]\n", + "alpha = round(x[3],2) #[radians per second square]\n", + "\n", + "# Result\n", + "print\"aG = \",(aG),\"m/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.16 Page No 756" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha = -0.428 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.16\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Slipping\n", + "# Using +ΣFx(right) = m(aG)x, +ΣFy(upward) = m(aG)y, +ΣMG(clockwise) = IG*alpha and FA = 0.25*NA\n", + "a = np.array([[1,0,100,0],[0,1,0,0],[1.5,0,0,-75],[1,-0.25,0,0]])\n", + "b = np.array([400,981,400,0])\n", + "x = np.linalg.solve(a, b)\n", + "FA = round(x[0],2) #[Newton]\n", + "NA = round(x[1],2) #[Newton]\n", + "aG = round(x[2],3) #[meters per second square]\n", + "alpha = round(x[3],3) #[radians per second square]\n", + "\n", + "# Result\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 17.17 Page No 757" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha = 10.3 rad/s**(2)\n" + ] + } + ], + "source": [ + "# Ex 17.17\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Using +ΣMA(counterclockwise) = Σ(Mk)A, aGx = alpha*0.25 and aGy = alpha*0.1\n", + "a = np.array([[0.675,30*0.25,30*0.1],[0.25,-1,0],[0.1,0,-1]])\n", + "b = np.array([30*9.81*0.1,0,0])\n", + "x = np.linalg.solve(a, b)\n", + "alpha = round(x[0],1) #[radians per second square]\n", + "aGx = round(x[1],2) #[meters per second square]\n", + "aGy = round(x[2],2) #[meters per second square]\n", + "\n", + "# Result\n", + "print\"alpha = \",(alpha),\"rad/s**(2)\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_18_Planar_Kinet_zX8jNLD.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_18_Planar_Kinet_zX8jNLD.ipynb new file mode 100644 index 00000000..321b8558 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_18_Planar_Kinet_zX8jNLD.ipynb @@ -0,0 +1,429 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 18 Planar Kinetics of a Rigid Body Work and Energy" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.1 Page No 768" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "T = 4.96 J\n" + ] + } + ], + "source": [ + "# Ex 18.1\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration \n", + "mB = 6 #[kilogram]\n", + "mD = 10 #[kilogram]\n", + "mC = 12 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Block\n", + "TB = (1/2)*mB*0.8**(2) #[Joules]\n", + "# Disk\n", + "TD = (1/2)*(1/2)*mD*0.1**(2)*8**(2) #[Joules]\n", + "# Cylinder\n", + "TC = (1/2)*12*0.4**(2)+(1/2)*(1/2)*mC*0.1**(2)*4**(2) #[Joules]\n", + "# Let T be total kinetic energy of system\n", + "T = TB+TD+TC #[Joules]\n", + "\n", + "# Result\n", + "print\"T = \",(T),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.2 Page No 772" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "U = 527.6 J\n" + ] + } + ], + "source": [ + "# Ex 18.2\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "M = 50 #[Newton meter]\n", + "P = 80 #[Newton]\n", + "\n", + "# Calculation\n", + "# Weight W\n", + "UW = 98.1*1.5 #[Joules]\n", + "# Couple Moment\n", + "UM = M*math.pi/2 #[Joules]\n", + "# Spring Force Fs\n", + "Us = -((1/2)*30*2.25**(2)-(1/2)*30*0.25**(2)) #[Joules]\n", + "# Force P\n", + "UP = P*4.712 #[Joules]\n", + "# let U be total work\n", + "U = round(UW+UM+Us+UP,1) #[Joules]\n", + "\n", + "# Result\n", + "print\"U = \",(U),\"J\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 18.3 Page No 775" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 2.73 rev\n" + ] + } + ], + "source": [ + "# Ex 18.3\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "F = 10 #[Newton]\n", + "w = 20 #[radians per second]\n", + "M = 5 #[Newton meter]\n", + "\n", + "# Calculation\n", + "# Kinetic Energy\n", + "T1 = 0 #[Joules]\n", + "T2 = (1/2)*(1/2)*30*(0.2**(2))*(w**(2)) #[Joules]\n", + "# Using principle of Work and Energy\n", + "theta = (T2-T1)/(M+F*0.2) #[radians]\n", + "theta = round((theta*1)/(2*math.pi),2) #[rev]\n", + "\n", + "# Result\n", + "print\"theta = \",(theta),\"rev\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.4 Page No 776" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FdashT = 0.0 kN\n", + "NdashT = 4.24 kN\n" + ] + } + ], + "source": [ + "# Ex 18.4\n", + "import math\n", + "\n", + "# Calculation\n", + "w2 = math.sqrt((700*9.81*0.05359)/63.875) #[radians per second]\n", + "# Using +ΣFn(upward) = m(aG)n\n", + "NT = 700*9.81+700*2.40**(2)*0.4 #[kilo Newton]\n", + "# Using +ΣMO = IO*alpha\n", + "alpha = 0/(700*0.15**(2)+700*0.4**(2)) #[radians per second square]\n", + "# Using +ΣFt(left) = m(aG)t and (aG)t = 0.4*alpha\n", + "FT = 700*0.4*alpha #[kilo Newton]\n", + "# there are two tines to support the load\n", + "FdashT = 0 #[Newton]\n", + "NdashT = NT/2 #[Newton]\n", + "\n", + "# Result\n", + "print\"FdashT = \",(FdashT/1000),\"kN\"\n", + "print\"NdashT = \",round((NdashT/1000),2),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.5 Page No 778" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 1.48 rad/s\n" + ] + } + ], + "source": [ + "# Ex 18.5\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "M = 75 #[Newton meter]\n", + "k = 50 #[Newton per meter]\n", + "W = 20 #[kilogram]\n", + "\n", + "# Calculation\n", + "# Using Principle of work and energy\n", + "w2 = round(math.sqrt((M*0.625-(1/2)*k*1**(2))/10),2) #[radians per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.6 Page No 779" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 6.11 rad/s\n" + ] + } + ], + "source": [ + "# Ex 18.6\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "P = 50 #[Newton]\n", + "\n", + "# Calculation\n", + "# Using Principle of work and energy\n", + "w2 = round(math.sqrt((98.1*(0.4-0.4*math.cos(math.pi*45/180))+50*0.8*math.sin(math.pi*45/180))/(1.067)),2) #[radians per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.7 Page No 787" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 4.81 rad/s\n" + ] + } + ], + "source": [ + "# Ex 18.7\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "m = 10 #[kilogram]\n", + "k = 800 #[Newton per meter]\n", + "\n", + "# Calculation\n", + "# Potential Energy\n", + "V1 = round(-98.1*(0.2*math.sin(math.pi*30/180))+(1/2)*k*(0.4*math.sin(math.pi*30/180))**(2),2) #[Joules]\n", + "# CG is located at datum\n", + "V2 = 0 #[Joules]\n", + "# Kinetic Energy\n", + "# Since the rod is released from rest position 1\n", + "T1 = 0 #[Joules]\n", + "# Using principle of conservation of energy\n", + "w2 = round(math.sqrt((T1+V1-V2)/0.267),2) #[radians per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.8 Page No 788" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 3.9 rad/s\n" + ] + } + ], + "source": [ + "# Ex 18.8\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "k = 30 #[Newton per meter]\n", + "\n", + "# Calculation\n", + "V1 = (1/2)*k*(math.sqrt(0.9**(2)+1.2**(2))-0.3)**(2) #[Joules]\n", + "V2 = (1/2)*k*(1.2-0.3)**(2) #[Joules]\n", + "# The disk is releaseg from rest \n", + "T1 = 0 #[Joules]\n", + "# Using principle of conservation of energy\n", + "w2 = round(math.sqrt((T1+V1-V2)/0.6227),2) #[radians per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 18.9 Page No 789" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "wR2 = 6.52 rad/s\n" + ] + } + ], + "source": [ + "# Ex 18.9\n", + "import math\n", + "\n", + "# Calculation\n", + "# Potential energy\n", + "V1 = 49.05*0.3*math.sin(math.pi*60/180) #[Joules]\n", + "# At position 2 weight of rod and disk have zero potential energy\n", + "V2 = 0 #[Joules]\n", + "# Kinetic energy\n", + "# Since the entire system is at rest\n", + "T1 = 0 #[Joules]\n", + "# Using conservation of energy\n", + "wR2 = round(math.sqrt((T1+V1-V2)/0.3),2) #[radians per second]\n", + "\n", + "# Result\n", + "print\"wR2 = \",(wR2),\"rad/s\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_19_Planar_Kinet_mpYSt47.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_19_Planar_Kinet_mpYSt47.ipynb new file mode 100644 index 00000000..d7c43858 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_19_Planar_Kinet_mpYSt47.ipynb @@ -0,0 +1,349 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 19 Planar Kinetics of a Rigid Body Impulse and Momentum" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.1 Page No 802" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "HG = 2.5 m**(2)/s\n", + "HB = 7.5 m**(2)/s\n", + "HG = 3.85 m**(2)/s\n", + "HIC = 15.4 m**(2)/s\n" + ] + } + ], + "source": [ + "# Ex 19.1\n", + "from __future__ import division \n", + "\n", + "# Variable Declaration\n", + "md = 10 #[kilogram]\n", + "mb = 5 #[kilogram]\n", + "\n", + "# Calculation Disk\n", + "# Using +HG(clockwise) = IG*w\n", + "HG = (1/2)*md*0.25**(2)*8 #[meters square per second]\n", + "# Using +HB(clockwise) = IG*w +m(vG)rG\n", + "HB = HG+md*2*0.25 #[meters square per second]\n", + "\n", + "# Result Disk\n", + "print\"HG = \",(HG),\"m**(2)/s\"\n", + "print\"HB = \",(HB),\"m**(2)/s\"\n", + "\n", + "\n", + "# Calculation Bar\n", + "# Using +HG(clockwise) = IG*w\n", + "HG = round((1/12)*mb*4**(2)*0.5774,2) #[meters square per second]\n", + "HIC = round(HG+2*mb*1.155,2) #[meters square per second]\n", + "\n", + "# Result Bar\n", + "print\"HG = \",(HG),\"m**(2)/s\"\n", + "print\"HIC = \",(HIC),\"m**(2)/s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.2 Page No 806" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ax = 0.0 N\n", + "Ay = 140.0 N\n", + "w2 = 69.7 rad/s\n" + ] + } + ], + "source": [ + "# Ex 19.2\n", + "import numpy as np\n", + "from __future__ import division \n", + "\n", + "# Calculation\n", + "IA = round((1/2)*(100/9.81)*0.3**(2),3) #[kilogram meter square]\n", + "# Using principle of impulse and momentum\n", + "a = np.array([[2,0,0],[0,2,0],[0,0,IA]])\n", + "b = np.array([0,100*2+40*2,4*2+40*2*0.3])\n", + "x = np.linalg.solve(a, b)\n", + "Ax = round(x[0],1) #[Newton]\n", + "Ay = round(x[1],1) #[Newton]\n", + "w2 = round(x[2],1) #[radians per second]\n", + "\n", + "# Result\n", + "print\"Ax = \",(Ax),\"N\"\n", + "print\"Ay = \",(Ay),\"N\"\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.3 Page No 807" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 1.05 rad/s\n" + ] + } + ], + "source": [ + "# Ex 19.3\n", + "import numpy as np\n", + "from __future__ import division \n", + "\n", + "# Calculation\n", + "IG = round(100*0.35**(2),3) #[kilogram meter square]\n", + "# Using principle of impulse and momentum\n", + "a = np.array([[1,100*0.75],[0.75,-12.25]])\n", + "b = np.array([62.5,-25])\n", + "x = np.linalg.solve(a, b)\n", + "w2 = round(x[1],2) #[radians per second]\n", + "\n", + "# Result\n", + "\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.4 Page No 808" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "vB2 = 13.0 m/s\n", + "\n", + "Solution 2\n", + "vB2 = 26.0725 m/s\n" + ] + } + ], + "source": [ + "# Ex 19.4\n", + "import numpy as np\n", + "from __future__ import division \n", + "\n", + "# Variable Declaration\n", + "IA = 0.40 #[kilogram meter square]\n", + "\n", + "# Calculation Solution 1\n", + "# Using principle of impulse and momentum\n", + "a = np.array([[3*0.2,-IA/0.2],[3,6]])\n", + "b = np.array([-IA*10,6*2+58.86*3])\n", + "x = np.linalg.solve(a, b)\n", + "T = round(x[0],1) #[Newton]\n", + "vB2 = round(x[1],1) #[meters per second]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"vB2 = \",(vB2),\"m/s\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "# Using principle of angular impulse and momentum\n", + "vB2 = (6*2*0.2+0.4*10+58.86*3*0.2)/(6*0.2+0.4*5*0.2) #[meters per second]\n", + "\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"vB2 = \",(vB2),\"m/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.6 Page No 816" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "vG1 = 0.73 m/s\n" + ] + } + ], + "source": [ + "# Ex 19.5\n", + "from __future__ import division\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "IG = 0.156 #[kilogram meter square]\n", + "\n", + "# Calculation\n", + "# Using principle of conservation of energy\n", + "vG2 = math.sqrt((98.1*0.03)/((1/2)*10+(1/2)*IG*25)) #[meters per second]\n", + "# vG2 = 0.892*vG1\n", + "vG1 = round(vG2/0.892,3) #[meters per second]\n", + "\n", + "# Result\n", + "print\"vG1 = \",(vG1),\"m/s\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.7 Page No 817" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 0.622 rad/s\n" + ] + } + ], + "source": [ + "# Ex 19.7\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Σ(HO)1 = Σ(HO)2, vG2 = 0.5*w2 and vB2 = 0.75*w2\n", + "w2 = round((1.039)/(0.003*0.75+2.5*0.5+0.417),3) #[radians per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 19.8 Page No 821" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "w2 = 3.65 rad/s\n" + ] + } + ], + "source": [ + "# Ex 19.8\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Using principle of conservation of angular momentum and coefficient of restitution\n", + "a = np.array([[1.67,0.5],[0.5,-1]])\n", + "b = np.array([5,4])\n", + "x = np.linalg.solve(a, b)\n", + "w2 = round(x[0],2) #[radians per second]\n", + "vB2 = round(x[1],2) #[meters per second]\n", + "\n", + "# Result\n", + "print\"w2 = \",(w2),\"rad/s\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb new file mode 100644 index 00000000..62d27f1f --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb @@ -0,0 +1,117 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 General Principles" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 1.1 Page No 10 " + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Part(a)\n", + "(10 mN)(5 GN) = 50 kilo Newton square\n", + "\n", + "Part(b)\n", + "(100 mm)(0.5 MN square) = 25 Gigameter Newton square\n", + "\n", + "Part(c)\n", + "(50 MN cube)(500 Gg) = 100 Kilo Newton cube per kg\n" + ] + } + ], + "source": [ + "# Example Number 1.1\n", + "\n", + "# Part(a)\n", + "# Variable Declaration\n", + "a = 10 # [micro Newton(mN)]\n", + "b = 5 # [Giga Newton(GN)]\n", + "\n", + "# Calculation\n", + "# We have to find c = a * b\n", + "c = 10*5 # [micro Newton(mN)*Giga Newton(GN)]\n", + "c = (10*10**(-3))*(5*10**(9)) # [N**(2)]\n", + "c = (10*10**(-3))*(5*10**(9))*10**(-6) #[kN**(2)]\n", + "\n", + "#Result\n", + "print\"Part(a)\"\n", + "print \"(10 mN)(5 GN) = \",int(c),\"kilo Newton square\\n\"\n", + "\n", + "# Part(b)\n", + "# Variable Declaration\n", + "a = 100 #[millimeter(mm)]\n", + "b = 0.5**(2) #[mega Newton square(MN**(2))]\n", + "\n", + "# Calculation\n", + "# We have to find c = a * b\n", + "c = (100*10**(-3))*(0.25*10**(12)) #[m.N**(2)]\n", + "c = (100*10**(-3))*(0.25*10**(12))*10**(-9) #[Gm.N**(2)]\n", + "\n", + "#Result\n", + "print\"Part(b)\"\n", + "print \"(100 mm)(0.5 MN square) = \",int(c),\"Gigameter Newton square\\n\"\n", + "\n", + "# Part(c) (Correction in the question (50 MN cube)(500 Gg))\n", + "# Variable Declaration\n", + "a = 50 #[mega newton cube((MN)**(3))]\n", + "b = 500 #[gigagram(Gg)]\n", + "\n", + "# Calculation\n", + "# We have to find c = a / b\n", + "c = 50*(10**(6))**3 / 500*10**(6) #[N**(3)/kg]\n", + "c = (50*((10**(6))**3) / (500*10**(6)))*10**(-9) #[kN**(3)/kg]\n", + "\n", + "#Result\n", + "print\"Part(c)\"\n", + "print \"(50 MN cube)(500 Gg) = \",int(c),\"Kilo Newton cube per kg\"\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb new file mode 100644 index 00000000..8b8efd6a --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb @@ -0,0 +1,1058 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2 : Force Vectors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.1 Page No. 20" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resultant Force F_R = 213 N\n", + "theta = 39.8 degrees\n", + "phi = 54.8 degrees\n" + ] + } + ], + "source": [ + "#Example 2.1\n", + "import math\n", + "\n", + "# The parallelogram law of addition is shown in Fig.2-10b\n", + "\n", + "# F_R is determined using law of cosines\n", + "\n", + "#Calculation\n", + "F_R = math.sqrt((100**(2))+(150**(2))-2*100*150*math.cos(115*math.pi/180)) #[Newton]\n", + "\n", + "#Result\n", + "print\"Resultant Force F_R = \",int(round(F_R)),\"N\"\n", + "\n", + "# Angle theta is determined by law of sines\n", + "\n", + "#Calculation\n", + "theta = math.asin(150*0.9063/212.6) #[Radians]\n", + "\n", + "#Result\n", + "print \"theta = \",(round(math.degrees(theta),1)),\"degrees\"\n", + "\n", + "#The direction of phi as masured from horizontal is given by\n", + "phi = 39.8 + 15.0 #[Degrees]\n", + "print\"phi = \",phi,\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.2 Page No. 21" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F_x = 1532 N\n", + "F_y = 1285 N\n", + "F_x_dash = 1769 N\n", + "F_y = 2170 N\n" + ] + } + ], + "source": [ + "# Example 2.2\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "F = 2000 #[newton]\n", + "# In each case parallelogram law is used to resolve F into its two components\n", + "\n", + "# Part(a)\n", + "# The vector addition F = F_x + F_y is shown in fig2-11b\n", + "# Calculation\n", + "F_x = F*math.cos(40*math.pi/180) #[Newton]\n", + "F_y = F*math.sin(40*math.pi/180) #[Newton]\n", + "\n", + "# Result\n", + "print\"F_x = \",int((F_x)),\"N\"\n", + "print\"F_y = \",int((F_y)),\"N\"\n", + "\n", + "# Part(b)\n", + "# The vector addition F = F_x_dash + F_y is shown in fig2-11b\n", + "# Calculation\n", + "F_x_dash = F*math.sin(50*math.pi/180)/math.sin(60*math.pi/180) #[Newton]\n", + "F_y = F*math.sin(70*math.pi/180)/math.sin(60*math.pi/180) #[Newton]\n", + "\n", + "# Result\n", + "print\"F_x_dash = \",int((F_x_dash)),\"N\"\n", + "print\"F_y = \",int((F_y)),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.3 Page No. 22" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 76.1 degrees\n" + ] + } + ], + "source": [ + "# Example 2.3\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# The angle phi can be determined using law of cosines\n", + "\n", + "# Calculation\n", + "phi = math.asin((400/500)*math.sin(60*math.pi/180)) #[Radians]\n", + "phi = math.degrees(phi) #[Degrees]\n", + "theta = 180-60-phi #[Degrees]\n", + "\n", + "# Result\n", + "print\"theta = \",round(theta,1),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.4 Page No. 23" + ] + }, + { + "cell_type": "code", + "execution_count": 95, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Part(a)\n", + "F1 = 653 N\n", + "F2 = 446 N\n", + "\n", + "Part(b)\n", + "F1 = 940 N\n", + "F2 = 342 N\n" + ] + } + ], + "source": [ + "# Example 2.4\n", + "import math\n", + "\n", + "# Part(a) Refer fig 2-13b\n", + "# Using parallelogram law\n", + "\n", + "# Calculation\n", + "F1 = 1000*math.sin(30*math.pi/180)/math.sin(130*math.pi/180) #[Newton]\n", + "F2 = 1000*math.sin(20*math.pi/180)/math.sin(130*math.pi/180) #[Newton]\n", + "\n", + "# Result\n", + "print\"Part(a)\"\n", + "print\"F1 = \",int(round(F1,0)),\"N\"\n", + "print\"F2 = \",int(round(F2,0)),\"N\\n\"\n", + "\n", + "# Part(b) Refer fig 2-13d\n", + "\n", + "# Calculation\n", + "F1 = 1000*math.sin(70*math.pi/180) #[Newton]\n", + "F2 = 1000*math.cos(70*math.pi/180) #[Newton]\n", + "\n", + "# Result\n", + "print\"Part(b)\"\n", + "print\"F1 = \",int(round(F1,0)),\"N\"\n", + "print\"F2 = \",int(round(F2,0)),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.5 Page No. 31" + ] + }, + { + "cell_type": "code", + "execution_count": 98, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F1_x = -100 N\n", + "F1_y = 173 N\n", + "F2_x = 240 N\n", + "F2_y = 100 N\n" + ] + } + ], + "source": [ + "# Example 2.5\n", + "import math\n", + "# F1_x acts in -x direction and F1_y acts in +y direction Refer fig 2-17b\n", + "\n", + "# Calculation\n", + "F1_x = -200*math.sin(30*math.pi/180) #[Newton]\n", + "F1_y = 200*math.cos(30*math.pi/180) #[Newton]\n", + "\n", + "# Result\n", + "print\"F1_x = \",int(round(F1_x,0)),\"N\"\n", + "print\"F1_y = \",int(round(F1_y,0)),\"N\"\n", + "\n", + "# F2 is resolved into its x and y components Refer fig 2-17c\n", + "\n", + "# Calculation\n", + "F2_x = 260*(12/13) #[Newton]\n", + "F2_y = 260*(5/13) #[Newton]\n", + "\n", + "# Result\n", + "print\"F2_x = \",int(round(F2_x,0)),\"N\"\n", + "print\"F2_y = \",int(round(F2_y,0)),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.6 Page No. 32" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR_x = 236.8 N\n", + "FR_y = 582.8 N\n", + "FR = 629 N\n", + "Theta = 67.9 degrees\n" + ] + } + ], + "source": [ + "# Example 2.6\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "F1 = 600 #[Newton]\n", + "F2 = 400 #[Newton]\n", + "\n", + "# We resolve each force into x and y components Refer fig 2-18b\n", + "# Let FR be resultant force\n", + "# Let FR_x be resultant force along x direction\n", + "# Let FR_y be resultant force along y direction\n", + "\n", + "# Calculation\n", + "FR_x = F1*math.cos(30*math.pi/180) - F2*math.sin(45*math.pi/180) #[Newton]\n", + "FR_y = F1*math.sin(30*math.pi/180) + F2*math.cos(45*math.pi/180) #[Newton]\n", + "FR = math.sqrt(round(FR_x,1)**(2)+round(FR_y,1)**(2)) #[Newton]\n", + "theta = math.atan(round(FR_y,1)/round(FR_x,1)) #[Radians]\n", + "theta = math.degrees(theta) #[Degrees]\n", + "\n", + "# Result\n", + "print\"FR_x = \",round(FR_x,1),\"N\"\n", + "print\"FR_y = \",round(FR_y,1),\"N\"\n", + "print\"FR = \",int(round(FR,0)),\"N\"\n", + "print\"Theta = \",round(theta,1),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 2.7 Page No. 33" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F_R_x = -383.2 N\n", + "F_R_y = 296.8 N\n", + "F_R = 485 N\n", + "Theta = 37.8 degrees\n" + ] + } + ], + "source": [ + "# Example 2.7\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "F1 = 400 #[Newton]\n", + "F2 = 250 #[Newton]\n", + "F3 = 200 #[Newton]\n", + "\n", + "# We resolve each force into x and y components Refer fig 2-18b\n", + "# Let F_R be resultant force\n", + "# Let F_R_x be resultant force along x direction\n", + "# Let F_R_y be resultant force along y direction\n", + "\n", + "# Calculation\n", + "F_R_x = -F1 + F2*math.sin(45*math.pi/180) - F3*(4/5) #[Newton]\n", + "F_R_y = F2*math.cos(45*math.pi/180) + F3*(3/5) #[Newton]\n", + "F_R = math.sqrt(round(F_R_x,1)**(2)+round(F_R_y,1)**(2)) #[Newton]\n", + "theta = math.atan(abs(round(F_R_y,1)/round(F_R_x,1))) #[Radians]\n", + "theta = math.degrees(theta) #[Degrees]\n", + "\n", + "# Result\n", + "print\"F_R_x = \",round(F_R_x,1),\"N\"\n", + "print\"F_R_y = \",round(F_R_y,1),\"N\"\n", + "print\"F_R = \",int(round(F_R,0)),\"N\"\n", + "print\"Theta = \",round(theta,1),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.8 Page No. 41" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "cos_alpha = +/- 0.5\n", + "F = 100 N\n" + ] + } + ], + "source": [ + "# Example 2.8\n", + "import math\n", + "\n", + "# Variable declaration\n", + "beta = 60 #[Degrees]\n", + "gamma = 45 #[Degrees]\n", + "f = 100 #[Newton]\n", + "\n", + "# Calculation\n", + "cos_alpha = math.sqrt(1-(math.cos(beta*math.pi/180)**(2))-(math.cos(gamma*math.pi/180)**(2))) #[Radians]\n", + "alpha1 = math.degrees(math.acos(+cos_alpha)) #[Degrees]\n", + "alpha2 = math.degrees(math.acos(-cos_alpha)) #[Degrees]\n", + "Fx = f*math.cos(alpha1*math.pi/180) #[Newton]\n", + "Fy = f*math.cos(beta*math.pi/180) #[Newton]\n", + "Fz = f*math.cos(gamma*math.pi/180) #[Newton]\n", + "F = math.sqrt(round(Fx**(2),1)+round(Fy**(2),1)+round(Fz**(2),1)) #[Newton]\n", + "\n", + "# Result\n", + "print\"cos_alpha = +/-\",(cos_alpha)\n", + "print\"F = \",int(F),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 2.9 Page No. 42" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resultant Force FR = 191.0 N\n", + "alpha = 74.8 degrees\n", + "beta = 102.1 degrees\n", + "gamma = 19.5 degrees\n" + ] + } + ], + "source": [ + "# Example 2.9\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable declaration\n", + "\n", + "F1_x = 0 #[Newton]\n", + "F1_y = 60 #[Newton]\n", + "F1_z = 80 #[Newton]\n", + "F2_x = 50 #[Newton]\n", + "F2_y = -100 #[Newton]\n", + "F2_z = 100 #[Newton]\n", + "\n", + "# Calculation\n", + "FR_x = F1_x + F2_x #[Newton]\n", + "FR_y = F1_y + F2_y #[Newton]\n", + "FR_z = F1_z + F2_z #[Newton]\n", + "\n", + "# Let F_R be resultant force\n", + "FR = round(math.sqrt(FR_x**(2)+FR_y**(2)+FR_z**(2)),1)\n", + "\n", + "# The coordinate direction angles alpha,beta and gamma are determined from components of unit vector along direction of F_R\n", + "cos_alpha = FR_x/FR\n", + "cos_beta = FR_y/FR\n", + "cos_gamma = FR_z/FR\n", + "alpha = round(math.degrees(math.acos(cos_alpha)),1) #[Degrees]\n", + "beta = round(math.degrees(math.acos(cos_beta)),1) #[Degrees]\n", + "gamma = round(math.degrees(math.acos(cos_gamma)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"Resultant Force FR = \",(FR),\"N\"\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.10 Page No. 43" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F1_x = 354 N\n", + "F1_y = 354 N\n", + "F1_z = 866 N\n", + "F1 = 1000 N\n", + "\n", + "F2_x = 1.06 kN\n", + "F2_y = 1.837 kN\n", + "F2_z = 2.121 kN\n", + "F2 = 3000 N\n" + ] + } + ], + "source": [ + "# Example 2.10\n", + "import math\n", + "\n", + "# For F1\n", + "\n", + "# Calculation\n", + "F1_z = int(round(1000*math.sin(60*math.pi/180),0)) #[Newton]\n", + "F1_dash = int(round(1000*math.cos(60*math.pi/180),0)) #[Newton]\n", + "F1_x = int(round(F1_dash*math.cos(45*math.pi/180),0)) #[Newton]\n", + "F1_y = int(round(F1_dash*math.sin(45*math.pi/180),0)) #[Newton]\n", + "\n", + "# F1_y has direction defined by -j\n", + "F1 = int(round(math.sqrt(F1_x**(2)+(-F1_y)**(2)+F1_z**(2)),0)) #[Newton]\n", + "\n", + "# u1 is unit vector along F1\n", + "u1_x = round(F1_x/F1,3)\n", + "u1_y = round(F1_y/F1,3)\n", + "u1_z = round(F1_z/F1,3)\n", + "alpha1 = round(math.degrees(math.acos(u1_x)),1) #[Degrees]\n", + "betaa1 = round(math.degrees(math.acos(u1_y)),1) #[Degrees]\n", + "gamma1 = round(math.degrees(math.acos(u1_z)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"F1_x = \",F1_x,\"N\"\n", + "print\"F1_y = \",F1_y,\"N\"\n", + "print\"F1_z = \",F1_z,\"N\"\n", + "print\"F1 = \",F1,\"N\\n\"\n", + "\n", + "# For F2\n", + "\n", + "# Calculation\n", + "F2_z = int(round(3000*math.sin(45*math.pi/180),0)) #[Newton]\n", + "F2_dash = int(round(3000*math.cos(45*math.pi/180),0)) #[Newton]\n", + "F2_x = int(round(F2_dash*math.sin(30*math.pi/180),0)) #[Newton]\n", + "F2_y = int(round(F2_dash*math.cos(30*math.pi/180),0)) #[Newton]\n", + "\n", + "# F2_z has direction defined by -k\n", + "F2 = int(round(math.sqrt(F2_x**(2)+F2_y**(2)+(-F2_z)**(2)),-1)) #[Newton]\n", + "\n", + "# u1 is unit vector along F1\n", + "\n", + "u2_x = round(F2_x/F2,3)\n", + "u2_y = round(F2_y/F2,3)\n", + "u2_z = round(F2_z/F2,3)\n", + "alpha2 = round(math.degrees(math.acos(u2_x)),1) #[Degrees]\n", + "betaa2 = round(math.degrees(math.acos(u2_y)),1) #[Degrees]\n", + "gamma2 = round(math.degrees(math.acos(u2_z)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"F2_x = \",F2_x/1000,\"kN\"\n", + "print\"F2_y = \",F2_y/1000,\"kN\"\n", + "print\"F2_z = \",F2_z/1000,\"kN\"\n", + "print\"F2 = \",F2,\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.11 Page No. 44" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha2 = 107.6 degrees\n", + "beta2 = 21.8 degrees\n", + "gamma2 = 77.6 degrees\n" + ] + } + ], + "source": [ + "# Example 2.11\n", + "import math\n", + "\n", + "# Variable declaration\n", + "\n", + "F1 = 300 #[Newton]\n", + "F2 = 700 #[Newton]\n", + "FR = 800 #[Newton]\n", + "alpha1 = 45 #[Degrees]\n", + "beta1 = 60 #[Degrees]\n", + "gamma1 = 120 #[Degrees]\n", + "\n", + "# Calculation\n", + "F1_x = round(F1*math.cos(alpha1*math.pi/180),1) #[Newton]\n", + "F1_y = round(F1*math.cos(beta1*math.pi/180),1) #[Newton]\n", + "F1_z = round(F1*math.cos(gamma1*math.pi/180),1) #[Newton]\n", + "\n", + "# FR acts along +y axis\n", + "FR_x = 0 #[Newton]\n", + "FR_y = 800 #[Newton]\n", + "FR_z = 0 #[Newton]\n", + "\n", + "# FR = F1 + F2\n", + "# F2 = FR - F1\n", + "F2_x = FR_x - F1_x #[Newton]\n", + "F2_y = FR_y - F1_y #[Newton]\n", + "F2_z = FR_z - F1_z #[Newton]\n", + "alpha2 = round(math.degrees(math.acos(F2_x/F2)),1) #[Degrees]\n", + "beta2 = round(math.degrees(math.acos(F2_y/F2)),1) #[Degrees]\n", + "gamma2 = round(math.degrees(math.acos(F2_z/F2)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"alpha2 = \",(alpha2),\"degrees\"\n", + "print\"beta2 = \",(beta2),\"degrees\"\n", + "print\"gamma2 = \",(gamma2),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.12 Page No. 49" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "alpha = 115.4 degrees\n", + "beta = 73.4 degrees\n", + "gamma = 31.0 degrees\n" + ] + } + ], + "source": [ + "# Example 2.12\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "A_x = 1 #[meters]\n", + "A_y = 0 #[meters]\n", + "A_z = -3 #[meters]\n", + "B_x = -2 #[meters]\n", + "B_y = 2 #[meters]\n", + "B_z = 3 #[meters]\n", + "\n", + "# Calculation\n", + "# r = B - A\n", + "r_x = B_x - A_x #[meters]\n", + "r_y = B_y - A_y #[meters]\n", + "r_z = B_z - A_z #[meters]\n", + "r = math.sqrt(r_x**(2)+r_y**(2)+r_z**(2))\n", + "\n", + "# Assume u to be a unit vector along r\n", + "u_x = r_x/r\n", + "u_y = r_y/r\n", + "u_z = r_z/r\n", + "alpha = round(math.degrees(math.acos(u_x)),1) #[Degrees]\n", + "beta = round(math.degrees(math.acos(u_y)),1) #[Degrees]\n", + "gamma = round(math.degrees(math.acos(u_z)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 2.13 Page No. 51" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F_x = 30.0 N\n", + "F_y = -20.0 N\n", + "F_z = -60.0 N\n", + "alpha = 64.6 degrees\n", + "beta = 106.6 degrees\n", + "gamma = 149.0 degrees\n" + ] + } + ], + "source": [ + "# Example 2.13\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "A_x = 0 #[meters]\n", + "A_y = 0 #[meters]\n", + "A_z = 8 #[meters]\n", + "B_x = 3 #[meters]\n", + "B_y = -2 #[meters]\n", + "B_z = 2 #[meters]\n", + "\n", + "# Calculation\n", + "# r = B - A\n", + "r_x = B_x - A_x #[meters]\n", + "r_y = B_y - A_y #[meters]\n", + "r_z = B_z - A_z #[meters]\n", + "r = math.sqrt(r_x**(2)+r_y**(2)+r_z**(2))\n", + "\n", + "# Assume u to be a unit vector along r\n", + "u_x = r_x/r\n", + "u_y = r_y/r\n", + "u_z = r_z/r\n", + "\n", + "# Since F = 70 N and direction is specified by u\n", + "F_x = 70 * u_x #[Newton]\n", + "F_y = 70 * u_y #[Newton]\n", + "F_z = 70 * u_z #[Newton]\n", + "alpha = round(math.degrees(math.acos(u_x)),1) #[Degrees]\n", + "beta = round(math.degrees(math.acos(u_y)),1) #[Degrees]\n", + "gamma = round(math.degrees(math.acos(u_z)),1) #[Degrees]\n", + "\n", + "# Result\n", + "print\"F_x = \",(F_x),\"N\"\n", + "print\"F_y = \",(F_y),\"N\"\n", + "print\"F_z = \",(F_z),\"N\"\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.14 Page No. 52" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F_x = 313.5 N\n", + "F_y = 129.8 N\n", + "F_z = -367.3 N\n", + "F = 500.0 N\n" + ] + } + ], + "source": [ + "# Example 2.14\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "A_x = 0 #[meters]\n", + "A_y = 0 #[meters]\n", + "A_z = 2 #[meters]\n", + "B_x = 1.707 #[meters]\n", + "B_y = 0.707 #[meters]\n", + "B_z = 0 #[meters]\n", + "\n", + "# Calculation\n", + "# r = B - A\n", + "r_x = B_x - A_x #[meters]\n", + "r_y = B_y - A_y #[meters]\n", + "r_z = B_z - A_z #[meters]\n", + "r = math.sqrt(r_x**(2)+r_y**(2)+r_z**(2))\n", + "\n", + "# Assume u to be a unit vector along r\n", + "u_x = r_x/r\n", + "u_y = r_y/r\n", + "u_z = r_z/r\n", + "\n", + "# Since F = 500 N and direction is specified by u\n", + "F_x = round(500 * u_x,1) #[Newton]\n", + "F_y = round(500 * u_y,1) #[Newton]\n", + "F_z = round(500 * u_z,1) #[Newton]\n", + "F = round(math.sqrt(F_x**(2)+F_y**(2)+F_z**(2)),1) #[Newton]\n", + "\n", + "# Result\n", + "print\"F_x = \",(F_x),\"N\"\n", + "print\"F_y = \",(F_y),\"N\"\n", + "print\"F_z = \",(F_z),\"N\"\n", + "print\"F = \",(F),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 2.15 Page No. 53" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 217.0 N\n" + ] + } + ], + "source": [ + "# Example 2.15\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "FAB = 100 #[Newton]\n", + "FAC = 120 #[Newton]\n", + "A_x = 0 #[meters]\n", + "A_y = 0 #[meters]\n", + "A_z = 4 #[meters]\n", + "B_x = 4 #[meters]\n", + "B_y = 0 #[meters]\n", + "B_z = 0 #[meters]\n", + "C_x = 4 #[meters]\n", + "C_y = 2 #[meters]\n", + "C_z = 0 #[meters]\n", + "\n", + "# Calculation(FAB)\n", + "rAB_x = B_x - A_x #[meters]\n", + "rAB_y = B_y - A_y #[meters]\n", + "rAB_z = B_z - A_z #[meters]\n", + "rAB = round(math.sqrt(rAB_x**(2)+rAB_y**(2)+rAB_z**(2)),2)\n", + "FAB_x = round(FAB*(rAB_x/rAB),1) #[Newton]\n", + "FAB_y = round(FAB*(rAB_y/rAB),1) #[Newton]\n", + "FAB_z = round(FAB*(rAB_z/rAB),1) #[Newton]\n", + "\n", + "# Calculation(FAC)\n", + "rAC_x = C_x - A_x #[meters]\n", + "rAC_y = C_y - A_y #[meters]\n", + "rAC_z = C_z - A_z #[meters]\n", + "rAC = round(math.sqrt(rAC_x**(2)+rAC_y**(2)+rAC_z**(2)),2)\n", + "FAC_x = round(FAC*(rAC_x/rAC),1) #[Newton]\n", + "FAC_y = round(FAC*(rAC_y/rAC),1) #[Newton]\n", + "FAC_z = round(FAC*(rAC_z/rAC),1) #[Newton]\n", + "\n", + "# FR = FAB + FAC\n", + "FR_x = FAB_x + FAC_x #[Newton]\n", + "FR_y = FAB_y + FAC_y #[Newton]\n", + "FR_z = FAB_z + FAC_z #[Newton]\n", + "FR = round(math.sqrt(FR_x**(2)+FR_y**(2)+FR_z**(2)),0)\n", + "print\"FR = \",(FR),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.16 Page No. 61" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FAB = 257.1 N\n", + "FAB_x = 73.5 N\n", + "FAB_y = 220.4 N\n", + "FAB_z = 110.2 N\n", + "Fp = 155.0 N\n" + ] + } + ], + "source": [ + "# Example 2.16\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "rB_x = 2 #[meters]\n", + "rB_y = 6 #[meters]\n", + "rB_z = 3 #[meters]\n", + "F_x = 0 #[Newton]\n", + "F_y = 300 #[Newton]\n", + "F_z = 0 #[Newton]\n", + "\n", + "# Calculation\n", + "F = math.sqrt(F_x**(2)+F_y**(2)+F_z**(2)) #[Newton]\n", + "# Let uB be unit vector defining direction of AB\n", + "rB = math.sqrt(rB_x**(2)+rB_y**(2)+rB_z**(2)) #[meters]\n", + "uB_x = rB_x/rB\n", + "uB_y = rB_y/rB\n", + "uB_z = rB_z/rB\n", + "\n", + "# The magnitude of component of F along AB is equal to dot product of F and unit vector uB \n", + "FAB = round(F_x*uB_x + F_y*uB_y + F_z*uB_z,1) #[Newton]\n", + "\n", + "# Expressing FAB in Cartesian form\n", + "FAB_x = round(FAB*uB_x,1) #[Newton]\n", + "FAB_y = round(FAB*uB_y,1) #[Newton]\n", + "FAB_z = round(FAB*uB_z,1) #[Newton]\n", + "FAB = round(math.sqrt(FAB_x**(2)+FAB_y**(2)+FAB_z**(2)),1) #[Newton]\n", + "\n", + "# Let Fp be perpendicular component\n", + "Fp_x = F_x - FAB_x #[Newton]\n", + "Fp_y = F_y - FAB_y #[Newton]\n", + "Fp_z = F_z - FAB_z #[Newton]\n", + "Fp = round(math.sqrt(F**(2)-FAB**(2)),0) #[Newton]\n", + "\n", + "# Result\n", + "print\"FAB = \",(FAB),\"N\"\n", + "print\"FAB_x = \",(FAB_x),\"N\"\n", + "print\"FAB_y = \",(FAB_y),\"N\"\n", + "print\"FAB_z = \",(FAB_z),\"N\"\n", + "print\"Fp = \",(Fp),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 2.17 Page No. 62" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 42.4 degrees\n", + "FBA = 59.1 N\n", + "Fp = 53.9 N\n" + ] + } + ], + "source": [ + "# Example 2.17\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "F = 80 #[Newton]\n", + "A_x = 0\n", + "A_y = 1\n", + "A_z = 0\n", + "B_x = 2\n", + "B_y = 3\n", + "B_z = -1\n", + "C_x = 2\n", + "C_y = 0\n", + "C_z = 0\n", + "\n", + "# Calculation\n", + "rBA_x = A_x - B_x \n", + "rBA_y = A_y - B_y\n", + "rBA_z = A_z - B_z\n", + "rBC_x = C_x - B_x \n", + "rBC_y = C_y - B_y\n", + "rBC_z = C_z - B_z\n", + "rBA = round(math.sqrt(rBA_x**(2)+rBA_y**(2)+rBA_z**(2)),2)\n", + "rBC = round(math.sqrt(rBC_x**(2)+rBC_y**(2)+rBC_z**(2)),2)\n", + "theta = round(math.degrees(math.acos((rBA_x*rBC_x+rBA_y*rBC_y+rBA_z*rBC_z)/(rBA*rBC))),1)\n", + "\n", + "# let uBA be unit vector along BA\n", + "uBA_x = rBA_x/rBA\n", + "uBA_y = rBA_y/rBA\n", + "uBA_z = rBA_z/rBA\n", + "F_x = round(F*(rBC_x/rBC),2) #[Newton]\n", + "F_y = round(F*(rBC_y/rBC),2) #[Newton]\n", + "F_z = round(F*(rBC_z/rBC),2) #[Newton]\n", + "\n", + "# FBA = F.uBA\n", + "FBA = round(F_x*uBA_x + F_y*uBA_y + F_z*uBA_z,1) #[Newton]\n", + "\n", + "# Since theta was calculated FBA can be calculated by FBA = F*cos(theta)\n", + "# Let Fp be perpendicular component\n", + "Fp = round(F*math.sin(theta*math.pi/180),1) #[Newton]\n", + "\n", + "# Result\n", + "print\"theta = \",(theta),\"degrees\"\n", + "print\"FBA = \",(FBA),\"N\"\n", + "print\"Fp = \",(Fp),\"N\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_3_Equilibrium_o_hYESk4B.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_3_Equilibrium_o_hYESk4B.ipynb new file mode 100644 index 00000000..aef96ff3 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_3_Equilibrium_o_hYESk4B.ipynb @@ -0,0 +1,468 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 : Equilibrium of a Particle" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.2 Page No. 75" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TB = 4.9 kN\n", + "TD = 4.25 kN\n" + ] + } + ], + "source": [ + "# Example 3.2\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "theta = 30 #[Degrees]\n", + "\n", + "# Calculation\n", + "# The two unknown magnitudes TB and TD can be obtained from two scalar equations of equilibrium ΣF_x = 0 and ΣF_y = 0\n", + "a = np.array([[math.cos(math.pi*theta/180),-1], [math.sin(math.pi*theta/180),0]])\n", + "b = np.array([0,2.452])\n", + "x = np.linalg.solve(a, b)\n", + "TB = round(x[0],2) #[kilo Newton]\n", + "TD = round(x[1],2) #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"TB = \",(TB),\"kN\"\n", + "print\"TD = \",(TD),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.3 Page No. 76" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TB = 54.6 N\n", + "TD = 38.6 N\n", + "TCD = 34.1 N\n", + "WB = 47.8 N\n" + ] + } + ], + "source": [ + "# Example 3.3\n", + "import math\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "WA = 20 #[Newton]\n", + "\n", + "# Calculation\n", + "# The two unknown magnitudes TEG and TEC can be obtained from two scalar equations of equilibrium ΣF_x = 0 and ΣF_y = 0 at point E\n", + "a = np.array([[math.sin(math.pi*30/180),-math.cos(math.pi*45/180)], [math.cos(math.pi*30/180),-math.sin(math.pi*45/180)]])\n", + "b = np.array([0,20])\n", + "x = np.linalg.solve(a, b)\n", + "TEG = round(x[0],1) #[Newton]\n", + "TEC = round(x[1],1) #[Newton]\n", + "\n", + "# The two unknown magnitudes TCD and WB can be obtained from two scalar equations of equilibrium ΣF_x = 0 and ΣF_y = 0 at point C\n", + "a = np.array([[-(4/5),0], [3/5,-1]])\n", + "b = np.array([-38.6*math.cos(math.pi*45/180), -38.6*math.sin(math.pi*45/180)])\n", + "x = np.linalg.solve(a, b)\n", + "TCD = round(x[0],1) #[Newton]\n", + "WB = round(x[1],1) #[Newton]\n", + "\n", + "# Result\n", + "print\"TB = \",(TEG),\"N\"\n", + "print\"TD = \",(TEC),\"N\"\n", + "print\"TCD = \",(TCD),\"N\"\n", + "print\"WB = \",(WB),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.4 Page No. 77" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "lAC = 1.32 m\n" + ] + } + ], + "source": [ + "# Example 3.4\n", + "import math\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "lAB_dash = 0.4 #[meter]\n", + "kAB = 300 #[Newton/meter]\n", + "\n", + "# Calculation\n", + "# Let W be weight of lamp\n", + "W = 8*9.81 #[Newton]\n", + "\n", + "# The two unknown magnitudes TAB and TAC can be obtained from two scalar equations of equilibrium ΣF_x = 0 and ΣF_y = 0 at point A\n", + "a = np.array([[1,-math.cos(math.pi*30/180)], [0,math.sin(math.pi*30/180)]])\n", + "b = np.array([0, 78.5])\n", + "x = np.linalg.solve(a, b)\n", + "TAB = round(x[0],1) #[Newton]\n", + "TAC = round(x[1],1) #[Newton]\n", + "\n", + "# Let sAB denote the stretch of string\n", + "sAB = TAB/kAB\n", + "\n", + "# Let lAB denote the stretch of string\n", + "lAB = lAB_dash + sAB\n", + "lAC = round((2 - lAB)/math.cos(math.pi*30/180),2)\n", + "\n", + "# Result\n", + "print\"lAC = \",(lAC),\"m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.5 Page No. 84" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FB = 207.8 N\n", + "FC = 150.0 N\n", + "FD = 240.0 N\n", + "sAB = 41.6 mm\n" + ] + } + ], + "source": [ + "# Example 3.5\n", + "import math\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "L = 90 #[Newton]\n", + "k = 5000 #[Newton/meter]\n", + "\n", + "# Calculation\n", + "# The three unknown magnitudes FB, FC and FD can be obtained from three scalar equations of equilibrium ΣF_x = 0,ΣF_y = 0 and ΣF_z = 0 at point A\n", + "a = np.array([[0,-4/5,math.sin(math.pi*30/180)], [1,0,-math.cos(math.pi*30/180)], [0,3/5,0]])\n", + "b = np.array([0, 0, 90])\n", + "x = np.linalg.solve(a, b)\n", + "FB = round(x[0],1) #[Newton]\n", + "FC = round(x[1],1) #[Newton]\n", + "FD = round(x[2],1) #[Newton]\n", + "\n", + "# Let sAB denote stretch of a string\n", + "sAB= round((FB*1000)/k,1) #[millimeter]\n", + "\n", + "# Result\n", + "print\"FB = \",(FB),\"N\"\n", + "print\"FC = \",(FC),\"N\"\n", + "print\"FD = \",(FD),\"N\"\n", + "print\"sAB = \",(sAB),\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.6 Page No. 85" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F = 300.0 N\n", + "alpha = 48.2 degrees\n", + "beta = 109.5 degrees\n", + "gamma = 48.2 degrees\n" + ] + } + ], + "source": [ + "# Example 3.6\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "B_x = -2 #[meter]\n", + "B_y = -3 #[meter]\n", + "B_z = 6 #[meter]\n", + "F1_x = 0 #[Newton]\n", + "F1_y = 400 #[Newton]\n", + "F1_z = 0 #[Newton]\n", + "F2_x = 0 #[Newton]\n", + "F2_y = 0 #[Newton]\n", + "F2_z = -800 #[Newton]\n", + "F3 = 700 #[Newton]\n", + "\n", + "# Calculation\n", + "# Let rB be unit vector along OB\n", + "rB_x = -2\n", + "rB_y = -3\n", + "rB_z = 6\n", + "rB = math.sqrt(rB_x**(2)+rB_y**(2)+rB_z**(2))\n", + "F3_x = F3*(rB_x/rB) #[Newton]\n", + "F3_y = F3*(rB_y/rB) #[Newton]\n", + "F3_z = F3*(rB_z/rB) #[Newton]\n", + "\n", + "# For equilibrium ΣF = 0 and F1+F2+F3+F = 0\n", + "F_x = 0 - (F1_x +F2_x +F3_x) #[Newton]\n", + "F_y = 0 - (F1_y +F2_y +F3_y) #[Newton]\n", + "F_z = 0 - (F1_z +F2_z +F3_z) #[Newton]\n", + "F = round(math.sqrt(F_x**(2)+F_y**(2)+F_z**(2)),1) #[Newton]\n", + "alpha = round(math.degrees(math.acos(F_x/F)),1) #[Degrees]\n", + "beta = round(math.degrees(math.acos(F_y/F)),1) #[Degrees]\n", + "gamma = round(math.degrees(math.acos(F_z/F)),1) #[Degrees]\n", + "\n", + "\n", + "# Result\n", + "print\"F = \",(F),\"N\"\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 3.7 Page No. 86" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FB = 23.6 N\n", + "FC = 23.6 N\n", + "FD = 15.0 N\n" + ] + } + ], + "source": [ + "# Example 3.7\n", + "import math\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "B_x = -3 #[meter]\n", + "B_y = -4 #[meter]\n", + "B_z = 8 #[meter]\n", + "C_x = -3 #[meter]\n", + "C_y = 4 #[meter]\n", + "C_z = 8 #[meter]\n", + "\n", + "# Calculation\n", + "# let FB_x/FB = b_x, FB_y/FB = b_y, FB_z/FB = b_z \n", + "b_x = round(B_x/(math.sqrt(B_x**(2)+B_y**(2)+B_z**(2))),3) #[Newton]\n", + "b_y = round(B_y/(math.sqrt(B_x**(2)+B_y**(2)+B_z**(2))),3) #[Newton]\n", + "b_z = round(B_z/(math.sqrt(B_x**(2)+B_y**(2)+B_z**(2))),3) #[Newton]\n", + "\n", + "# let FC_x/FC = c_x, FC_y/FC = c_y, FC_z/FC = c_z \n", + "c_x = round(C_x/(math.sqrt(C_x**(2)+C_y**(2)+C_z**(2))),3) #[Newton]\n", + "c_y = round(C_y/(math.sqrt(C_x**(2)+C_y**(2)+C_z**(2))),3) #[Newton]\n", + "c_z = round(C_z/(math.sqrt(C_x**(2)+C_y**(2)+C_z**(2))),3) #[Newton]\n", + "\n", + "# let FD_x/FD = d_x, FD_y/FD = d_y, FD_z/FD = d_z \n", + "d_x = 1\n", + "d_y = 0\n", + "d_z = 0\n", + "\n", + "W_x = 0\n", + "W_y = 0\n", + "W_z = -40\n", + "\n", + "# The three unknown magnitudes FB, FC and FD can be obtained from three scalar equations of equilibrium ΣF_x = 0,ΣF_y = 0 and ΣF_z = 0 at point A\n", + "a = np.array([[b_x,c_x,d_x], [b_y,c_y,d_y], [b_z,c_z,d_z]])\n", + "b = np.array([0, 0, -W_z])\n", + "x = np.linalg.solve(a, b)\n", + "FB = round(x[0],1) #[Newton]\n", + "FC = round(x[1],1) #[Newton]\n", + "FD = round(x[2],1) #[Newton]\n", + "\n", + "# Result\n", + "print\"FB = \",(FB),\"N\"\n", + "print\"FC = \",(FC),\"N\"\n", + "print\"FD = \",(FD),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 3.8 Page No. 87" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FB = 693.2 N\n", + "FC = 812.7 N\n", + "FD = 861.6 N\n", + "s = 0.462 m\n" + ] + } + ], + "source": [ + "# Ex 3.8\n", + "import math\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "W = 981 #[Newton]\n", + "D_x = -1 #[meter]\n", + "D_y = 2 #[meter]\n", + "D_z = 2 #[meter]\n", + "k = 1500 #[Newton meter]\n", + "\n", + "# Calculation\n", + "# let FB_x/FB = b_x, FB_y/FB = b_y, FB_z/FB = b_z \n", + "b_x = 1 \n", + "b_y = 0\n", + "b_z = 0\n", + "\n", + "# let FC_x/FC = c_x, FC_y/FC = c_y, FC_z/FC = c_z \n", + "c_x = math.cos(120*math.pi/180) #[Newton]\n", + "c_y = math.cos(135*math.pi/180) #[Newton]\n", + "c_z = math.cos(60*math.pi/180) #[Newton]\n", + "\n", + "# let FD_x/FD = d_x, FD_y/FD = d_y, FD_z/FD = d_z \n", + "d_x = round(D_x/(math.sqrt(D_x**(2)+D_y**(2)+D_z**(2))),3) #[Newton]\n", + "d_y = round(D_y/(math.sqrt(D_x**(2)+D_y**(2)+D_z**(2))),3) #[Newton]\n", + "d_z = round(D_z/(math.sqrt(D_x**(2)+D_y**(2)+D_z**(2))),3) #[Newton]\n", + "\n", + "W_x = 0 #[Newton]\n", + "W_y = 0 #[Newton]\n", + "W_z = -981 #[Newton]\n", + "\n", + "# The three unknown magnitudes FB, FC and FD can be obtained from three scalar equations of equilibrium ΣF_x = 0,ΣF_y = 0 and ΣF_z = 0 at point A\n", + "a = np.array([[b_x,c_x,d_x], [b_y,c_y,d_y], [b_z,c_z,d_z]])\n", + "b = np.array([0, 0, -W_z])\n", + "x = np.linalg.solve(a, b)\n", + "FB = round(x[0],1) #[Newton]\n", + "FC = round(x[1],1) #[Newton]\n", + "FD = round(x[2],1) #[Newton]\n", + "\n", + "# Let stretch of spring be denoted by s\n", + "s = round(FB/k,3)\n", + "\n", + "# Result\n", + "print\"FB = \",(FB),\"N\"\n", + "print\"FC = \",(FC),\"N\"\n", + "print\"FD = \",(FD),\"N\"\n", + "print\"s = \",(s),\"m\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_4_Force_System__zCBXq4n.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_4_Force_System__zCBXq4n.ipynb new file mode 100644 index 00000000..7de45a57 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_4_Force_System__zCBXq4n.ipynb @@ -0,0 +1,1263 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4 : Force System Resultants" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.1 Page No 98" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Fig 4-4a MO = 200 N.m(clockwise)\n", + "Fig 4-4b MO = 37.5 N.m(clockwise)\n", + "Fig 4-4c MO = 229.3 N.m(clockwise)\n", + "Fig 4-4d MO = 42.4 N.m(anti clockwise)\n", + "Fig 4-4e MO = 21.0 kN.m(anti clockwise)\n" + ] + } + ], + "source": [ + "# Ex 4.1\n", + "import math\n", + "\n", + "# Calculation Fig 4-4a\n", + "MO = 100*2 #[Newton meter]\n", + "\n", + "# Result Fig 4-4a\n", + "print\"Fig 4-4a MO = \",(MO),\"N.m(clockwise)\"\n", + "\n", + "# Calculation Fig 4-4b\n", + "MO = 50*0.75 #[Newton meter]\n", + "\n", + "# Result Fig 4-4b\n", + "print\"Fig 4-4b MO = \",(MO),\"N.m(clockwise)\"\n", + "\n", + "# Calculation Fig 4-4c\n", + "MO = round(40*(4+2*math.cos(math.pi*30/180)),1) #[Newton meter]\n", + "\n", + "# Result Fig 4-4b\n", + "print\"Fig 4-4c MO = \",(MO),\"N.m(clockwise)\"\n", + "\n", + "# Calculation Fig 4-4d\n", + "MO = round(60*1*math.sin(math.pi*45/180),1) #[Newton meter]\n", + "\n", + "# Result Fig 4-4d\n", + "print\"Fig 4-4d MO = \",(MO),\"N.m(anti clockwise)\"\n", + "\n", + "# Calculation Fig 4-4e\n", + "MO = round(7*(4-1),1) #[Newton meter]\n", + "\n", + "# Result Fig 4-4e\n", + "print\"Fig 4-4e MO = \",(MO),\"kN.m(anti clockwise)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.2 Page No 99" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MA = 2000.0 N.m(clockwise)\n", + "MB = 1200.0 N.m(clockwise)\n", + "MC = 0\n", + "MD = 400.0 N.m(anti clockwise)\n" + ] + } + ], + "source": [ + "# Example 4.2\n", + "\n", + "# Variable Declaration\n", + "F = 800 #[Newton]\n", + "\n", + "# Calculation\n", + "MA = F*2.5 #[Newton meter]\n", + "MB = F*1.5 #[Newton meter]\n", + "MC = F*0 #[Newton meter]\n", + "MD = F*0.5 #[Newton meter]\n", + "\n", + "# Result\n", + "print\"MA = \",(MA),\"N.m(clockwise)\"\n", + "print\"MB = \",(MB),\"N.m(clockwise)\"\n", + "print\"MC = \",(MC)\n", + "print\"MD = \",(MD),\"N.m(anti clockwise)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.3 Page No 99" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MRO = -334.0 N.m = 334.0 N.m(clockwise)\n" + ] + } + ], + "source": [ + "# Ex 4.3\n", + "import math\n", + "\n", + "# Calculation\n", + "# Assuming positive moments act in +k direction i.e counterclockwise\n", + "# +MRO(counterclockwise) = ΣFd\n", + "MRO = round(-50*(2)+60*(0)+20*(3*math.sin(30*math.pi/180))-40*(4+3*math.cos(30*math.pi/180)),0) #[Newton meter]\n", + "\n", + "# Result\n", + "print\"MRO = \",(MRO),\"N.m = \",(abs(MRO)),\"N.m(clockwise)\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.4 Page No 106" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MA = 224.0 N.m\n" + ] + } + ], + "source": [ + "# Ex 4.4\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "F = 60 #[Newton]\n", + "B_x = 1 #[meter]\n", + "B_y = 3 #[meter]\n", + "B_z = 2 #[meter]\n", + "C_x = 3 #[meter]\n", + "C_y = 4 #[meter]\n", + "C_z = 0 #[meter]\n", + "\n", + "# Calculation\n", + "rB_x = B_x #[meter]\n", + "rB_y = B_y #[meter]\n", + "rB_z = B_z #[meter]\n", + "F_x = round(F*((C_x-B_x)/math.sqrt((C_x-B_x)**(2)+(C_y-B_y)**(2)+(C_z-B_z)**(2))),1) #[Newton]\n", + "F_y = round(F*((C_y-B_y)/math.sqrt((C_x-B_x)**(2)+(C_y-B_y)**(2)+(C_z-B_z)**(2))),1) #[Newton]\n", + "F_z = round(F*((C_z-B_z)/math.sqrt((C_x-B_x)**(2)+(C_y-B_y)**(2)+(C_z-B_z)**(2))),1) #[Newton]\n", + "\n", + "# Let a = rB X F\n", + "a = np.cross([rB_x,rB_y,rB_z],[F_x,F_y,F_z])\n", + "MA_x = a[0] #[Newton meter]\n", + "MA_y = a[1] #[Newton meter]\n", + "MA_z = a[2] #[Newton meter]\n", + "MA = round(math.sqrt(MA_x**(2)+MA_y**(2)+MA_z**(2)),0) #[Newton meter]\n", + "\n", + "# Result\n", + "print\"MA = \",(MA),\"N.m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 4.5 Page No 107" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MRO_x = 30 N.m\n", + "MRO_y = -40 N.m\n", + "MRO_z = 60 N.m\n", + "alpha = 67.4 degrees\n", + "beta = 120.8 degrees\n", + "gamma = 39.8 degrees\n" + ] + } + ], + "source": [ + "# Example 4.5\n", + "import math\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "F1_x = -60 #[Newton]\n", + "F1_y = 40 #[Newton]\n", + "F1_z = 20 #[Newton]\n", + "F2_x = 0 #[Newton]\n", + "F2_y = 50 #[Newton]\n", + "F2_z = 0 #[Newton]\n", + "F3_x = 80 #[Newton]\n", + "F3_y = 40 #[Newton]\n", + "F3_z = -30 #[Newton]\n", + "rA_x = 0 #[meter]\n", + "rA_y = 5 #[meter]\n", + "rA_z = 0 #[meter]\n", + "rB_x = 4 #[meter]\n", + "rB_y = 5 #[meter]\n", + "rB_z = -2 #[meter]\n", + "\n", + "# Calculation\n", + "# Let MRO be resultant moment about O\n", + "# Let a = rA X F1, b = rA X F2, c = rB X F3\n", + "a = np.cross([rA_x,rA_y,rA_z],[F1_x,F1_y,F1_z])\n", + "b = np.cross([rA_x,rA_y,rA_z],[F2_x,F2_y,F2_z])\n", + "c = np.cross([rB_x,rB_y,rB_z],[F3_x,F3_y,F3_z])\n", + "MRO_x = a[0]+b[0]+c[0] #[Newton meter]\n", + "MRO_y = a[1]+b[1]+c[1] #[Newton meter]\n", + "MRO_z = a[2]+b[2]+c[2] #[Newton meter]\n", + "MRO = round(math.sqrt(MRO_x**(2)+MRO_y**(2)+MRO_z**(2)),2) #[Newton meter]\n", + "\n", + "# Let u be unit vector which defines the direction of moment axis\n", + "u_x = MRO_x/MRO\n", + "u_y = MRO_y/MRO\n", + "u_z = MRO_z/MRO\n", + "\n", + "# Let alpha,beta and gamma be coordinate direction angles of moment axis \n", + "alpha = round(math.degrees(math.acos(u_x)),1) #[degrees]\n", + "beta = round(math.degrees(math.acos(u_y)),1) #[degrees]\n", + "gamma = round(math.degrees(math.acos(u_z)),1) #[degrees]\n", + "\n", + "# Result\n", + "print\"MRO_x = \",(MRO_x),\"N.m\"\n", + "print\"MRO_y = \",(MRO_y),\"N.m\"\n", + "print\"MRO_z = \",(MRO_z),\"N.m\"\n", + "print\"alpha = \",(alpha),\"degrees\"\n", + "print\"beta = \",(beta),\"degrees\"\n", + "print\"gamma = \",(gamma),\"degrees\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.6 Page No 109" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "MA_x = 0 N.m\n", + "MA_y = 0 N.m\n", + "MA_z = 14.1 N.m\n", + "\n", + "Solution 2\n", + "MA_x = 0 N.m\n", + "MA_y = 0 N.m\n", + "MA_z = 14.1 N.m\n" + ] + } + ], + "source": [ + "# Ex 4.6\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "F = 200 #[Newton]\n", + "\n", + "# Calculation Solution 1\n", + "# Moment arm d can be found by trigonometry Refer Fig 4-19b\n", + "d = (100*math.cos(math.pi*45/180))/1000 #[meter]\n", + "# MA = Fd\n", + "MA = round(F*d,1) #[Newton meter]\n", + "\n", + "# Result Solution 1\n", + "# According to right hand thumb rule MA is directed in +k direction\n", + "print\"Solution 1\"\n", + "print\"MA_x = 0 N.m\"\n", + "print\"MA_y = 0 N.m\"\n", + "print\"MA_z = \",(MA),\"N.m\\n\"\n", + "\n", + "# Calculation Solution 2\n", + "# F is resolved into x and y components Refer Fig 4-19c\n", + "# MA = ΣFd\n", + "MA = round(F*math.sin(math.pi*45/180)*(0.20)-200*math.cos(math.pi*45/180)*(0.10),1) #[Newton meter]\n", + "\n", + "# Result Solution 2\n", + "# According to right hand thumb rule MA is directed in +k direction\n", + "print\"Solution 2\"\n", + "print\"MA_x = 0 N.m\"\n", + "print\"MA_y = 0 N.m\"\n", + "print\"MA_z = \",(MA),\"N.m\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.7 Page No 110" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1(Scalar Analysis)\n", + "MO_x = 0 N.m\n", + "MO_y = 0 N.m\n", + "MO_z = -98.6 N.m\n", + "\n", + "Solution 2(Vector Analysis)\n", + "MO_x = 0.0 N.m\n", + "MO_y = -0.0 N.m\n", + "MO_z = -98.56 N.m\n", + "\n" + ] + } + ], + "source": [ + "# Example 4.7\n", + "import math\n", + "import numpy as np \n", + "\n", + "# Variable Declaration\n", + "F = 400 #[Newton]\n", + "\n", + "# Calculation(Scalar Analysis)\n", + "# F is resolved into x and y components Refer 4-20b\n", + "# Taking +ve moments about O in +k direction\n", + "MO = round(F*math.sin(math.pi*30/180)*(0.2)-F*math.cos(math.pi*30/180)*(0.4),1) #[Newton meter]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1(Scalar Analysis)\"\n", + "print\"MO_x = 0 N.m\"\n", + "print\"MO_y = 0 N.m\"\n", + "print\"MO_z = \",(MO),\"N.m\\n\"\n", + "\n", + "# Calculation(Vector Analysis)\n", + "# let r be positon vector and F be force vector\n", + "r_x = 0.4 #[meter]\n", + "r_y = -0.2 #[meter]\n", + "r_z = 0 #[meter]\n", + "F_x = round(F*math.sin(math.pi*30/180),1) #[Newton]\n", + "F_y = round(-F*math.cos(math.pi*30/180),1) #[Newton]\n", + "F_z = 0 #[Newton]\n", + "\n", + "# Let MO be the moment given by MO = r X F\n", + "a = np.cross([r_x,r_y,r_z],[F_x,F_y,F_z])\n", + "MO_x = a[0] #[Newton meter]\n", + "MO_y = a[1] #[Newton meter]\n", + "MO_z= a[2] #[Newton meter]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2(Vector Analysis)\"\n", + "print\"MO_x = \",(MO_x),\"N.m\"\n", + "print\"MO_y = \",(-MO_y),\"N.m\"\n", + "print\"MO_z = \",(MO_z),\"N.m\\n\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.8 Page No 118" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1(Vector Analysis)\n", + "Mx = -80 N.m\n", + "Ma = -120.0 N.m\n", + "\n", + "Solution 2(Scalar Analysis)\n", + "Mx = -80 N.m\n" + ] + } + ], + "source": [ + "# Example 4.8\n", + "import math\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "F_x = -40 #[Newton]\n", + "F_y = 20 #[Newton]\n", + "F_z = 10 #[Newton]\n", + "rA_x = -3 #[meter]\n", + "rA_y = 4 #[meter]\n", + "rA_z = 6 #[meter]\n", + "ua_x = -3/5\n", + "ua_y = 4/5\n", + "ua_z = 0\n", + "\n", + "# Calculation Solution 1(Vector Analysis)\n", + "# Mx = i.(rA X F)\n", + "Mx = np.dot([1,0,0],np.cross([rA_x,rA_y,rA_z],[F_x,F_y,F_z])) #[Newton meter]\n", + "# Ma = ua.(rA X F)\n", + "Ma = np.dot([ua_x,ua_y,ua_z],np.cross([rA_x,rA_y,rA_z],[F_x,F_y,F_z])) #[Newton meter]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1(Vector Analysis)\"\n", + "print\"Mx = \",(Mx),\"N.m\"\n", + "print\"Ma = \",(Ma),\"N.m\\n\"\n", + "\n", + "# Calculation Solution 2(Scalar Analysis)\n", + "# Refer Fig 4-23c\n", + "Mx = 10*4 - 20*6 #[Newton meter]\n", + "My = 10*3 - 40*6 #[Newton meter]\n", + "Mz = 40*4 - 20*3 #[Newton meter]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2(Scalar Analysis)\"\n", + "print\"Mx = \",(Mx),\"N.m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.9 Page No 119" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MAB_x = -48.0 N.m\n", + "MAB_y = -24.0 N.m\n" + ] + } + ], + "source": [ + "# Example 4.9\n", + "import math\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "F_x = -600 #[Newton]\n", + "F_y = 200 #[Newton]\n", + "F_z = -300 #[Newton]\n", + "rD_x = 0 #[meter]\n", + "rD_y = 0.2 #[meter]\n", + "rD_z = 0 #[meter]\n", + "\n", + "# Calculation\n", + "# Unit vector uB defines the direction of AB axis of the rod\n", + "uB_x = 0.4/math.sqrt(0.4**(2)+0.2**(2))\n", + "uB_y = 0.2/math.sqrt(0.4**(2)+0.2**(2)) \n", + "uB_z = 0\n", + "# MAB = uB.(rD X F)\n", + "MAB = np.dot([uB_x,uB_y,uB_z],np.cross([rD_x,rD_y,rD_z],[F_x,F_y,F_z])) #[Newton meter]\n", + "MAB_x = MAB*uB_x #[Newton meter]\n", + "MAB_y = MAB*uB_y #[Newton meter]\n", + "\n", + "# Result\n", + "print\"MAB_x = \",(MAB_x),\"N.m\"\n", + "print\"MAB_y = \",(MAB_y),\"N.m\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 4.10 Page No 123" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F = 120.0 N\n" + ] + } + ], + "source": [ + "# Example 4.10\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Let the couple has magnitude of M having direction out of page\n", + "M = 40*0.6 #[Newton meter]\n", + "# To preserve counterclockwise rotation of M vertical forces acting through points A and B must be directed as shown in Fig 4-29c\n", + "F = M/0.2 #[Newton]\n", + "\n", + "# Result\n", + "print\"F = \",(F),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.11 Page No 124" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Moment calculated about D\n", + "MD = 195.0 N.m(counterclockwise)\n", + "Moment calculated about A\n", + "MA = 195.0 N.m(counterclockwise)\n" + ] + } + ], + "source": [ + "# Example 4.11\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "F = 150 #[Newton]\n", + "\n", + "# Calculation\n", + "F_x = (4/5)*F #[Newton]\n", + "F_y = (3/5)*F #[Newton]\n", + "\n", + "# Let the couple moment is calculated about D\n", + "MD = F_x*0 - F_y*1 + F_y*2.5 + F_x*0.5 #[Newton meter]\n", + "\n", + "# Let the couple moment is calculated about A\n", + "MA = F_y*1.5 + F_x*0.5 #[Newton meter]\n", + "\n", + "# Result\n", + "print\"Moment calculated about D\"\n", + "print\"MD = \",(MD),\"N.m(counterclockwise)\"\n", + "print\"Moment calculated about A\"\n", + "print\"MA = \",(MA),\"N.m(counterclockwise)\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.12 Page No 125" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1 (Vector Analysis)\n", + "MO_x = 0.0 N.m\n", + "MO_y = -13.0 N.m\n", + "MO_z = 0.0 N.m\n", + "MA_x = 0.0 N.m\n", + "MA_y = -13.0 N.m\n", + "MA_z = 0.0 N.m\n", + "\n", + "Solution 2 (Scalar Analysis)\n", + "M_x = 0 N.m\n", + "M_y = -13.0 N.m\n", + "M_z = 0 N.m\n" + ] + } + ], + "source": [ + "# Example 4.12\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "rA_x = 0 #[meter]\n", + "rA_y = 0.8 #[meter]\n", + "rA_z = 0 #[meter]\n", + "rB_x = 0.6*math.cos(math.pi*30/180) #[meter]\n", + "rB_y = 0.8 #[meter]\n", + "rB_z = -0.6*math.sin(math.pi*30/180) #[meter]\n", + "rAB_x = 0.6*math.cos(math.pi*30/180) #[meter]\n", + "rAB_y = 0 #[meter]\n", + "rAB_z = -0.6*math.sin(math.pi*30/180) #[meter]\n", + "# Let force acting at B be FB\n", + "FB_x = 0 #[Newton]\n", + "FB_y = 0 #[Newton]\n", + "FB_z = -25 #[Newton]\n", + "# Let force acting at A be FA\n", + "FA_x = 0 #[Newton]\n", + "FA_y = 0 #[Newton]\n", + "FA_z = 25 #[Newton]\n", + "\n", + "# Calculation Solution 1(Vector Analysis)\n", + "# Let MO be moment about about O Refer Fig 4-31b\n", + "# Let a = rA X FB, b = rB X FA\n", + "a = np.cross([rA_x,rA_y,rA_z],[FB_x,FB_y,FB_z])\n", + "b = np.cross([rB_x,rB_y,rB_z],[FA_x,FA_y,FA_z])\n", + "MO_x = round(a[0]+b[0],1) #[Newton meter]\n", + "MO_y = round(a[1]+b[1],1) #[Newton meter]\n", + "MO_z = round(a[2]+b[2],1) #[Newton meter]\n", + "\n", + "# Let MA be moment about about A Refer Fig 4-31c\n", + "# MA = rAB X FA\n", + "a = np.cross([rAB_x,rAB_y,rAB_z],[FA_x,FA_y,FA_z])\n", + "MA_x = round(a[0],1) #[Newton meter]\n", + "MA_y = round(a[1],1) #[Newton meter]\n", + "MA_z = round(a[2],1) #[Newton meter]\n", + "\n", + "# Calculation Solution 2(Vector Analysis)\n", + "M = 25*0.52 #[Newton meter]\n", + "# M acts in -j direction\n", + "M_x = 0 #[Newton meter]\n", + "M_y = -M #[Newton meter]\n", + "M_z = 0 #[Newton meter]\n", + "\n", + "# Result \n", + "print\"Solution 1 (Vector Analysis)\"\n", + "print\"MO_x = \",(MO_x),\"N.m\"\n", + "print\"MO_y = \",(MO_y),\"N.m\"\n", + "print\"MO_z = \",(MO_z),\"N.m\"\n", + "print\"MA_x = \",(MA_x),\"N.m\"\n", + "print\"MA_y = \",(MA_y),\"N.m\"\n", + "print\"MA_z = \",(MA_z),\"N.m\\n\"\n", + "print\"Solution 2 (Scalar Analysis)\"\n", + "print\"M_x = \",(M_x),\"N.m\"\n", + "print\"M_y = \",(M_y),\"N.m\"\n", + "print\"M_z = \",(M_z),\"N.m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.13 Page No 126" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MR_x = 60.0 N.m\n", + "MR_y = 22.5 N.m\n", + "MR_z= 30.0 N.m\n" + ] + } + ], + "source": [ + "# Example 4.13\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "rDC_x = 0.3 #[meter]\n", + "rDC_y = 0 #[meter]\n", + "rDC_z = 0 #[meter]\n", + "FC_x = 0 #[Newton]\n", + "FC_y = 125*(4/5) #[Newton]\n", + "FC_z = -125*(3/5) #[Newton]\n", + "\n", + "# Calculation\n", + "M1 = 150*0.4 #[Newton meter]\n", + "\n", + "# By right hand rule M1 acts in +i direction\n", + "M1_x = M1 #[Newton meter]\n", + "M1_y = 0 #[Newton meter]\n", + "M1_z = 0 #[Newton meter]\n", + "\n", + "# M2 = rDC X FC\n", + "a = np.cross([rDC_x,rDC_y,rDC_z],[FC_x,FC_y,FC_z]) \n", + "M2_x = a[0] #[Newton meter]\n", + "M2_y = a[1] #[Newton meter]\n", + "M2_z = a[2] #[Newton meter]\n", + "\n", + "# M1 and M2 are free vectors.So they may be moved to some arbitrary point P and added vectorially.\n", + "# The resultant couple moment becomes MR = M1 + M2\n", + "MR_x = M1_x + M2_x #[Newton meter]\n", + "MR_y = M1_y + M2_y #[Newton meter]\n", + "MR_z = M1_z + M2_z #[Newton meter]\n", + "\n", + "# Result\n", + "print\"MR_x = \",(MR_x),\"N.m\"\n", + "print\"MR_y = \",(MR_y),\"N.m\"\n", + "print\"MR_z= \",(MR_z),\"N.m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.14 Page No 133" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 962.3 N\n", + "theta = 66.6 degrees\n", + "MRA = -551.1 N.m = 551.1 N.m(clockwise)\n" + ] + } + ], + "source": [ + "# Example 4.14\n", + "import math \n", + "\n", + "# Calculation\n", + "# Let resultant force be FR\n", + "FR_x = -100-400*math.cos(math.pi*45/180) #[Newton]\n", + "FR_y = -600-400*math.sin(math.pi*45/180) #[Newton]\n", + "FR = round(math.sqrt(FR_x**(2)+FR_y**(2)),1) #[Newton]\n", + "theta = round(math.degrees(math.atan(FR_y/FR_x)),1) #[degrees]\n", + "\n", + "# Let resultant couple moment be MRA which is calculated by summing moments of forces about A\n", + "MRA = round(100*0-600*0.4-400*math.sin(math.pi*45/180)*0.8-400*math.cos(math.pi*45/180)*0.3,1) #[Newton meter]\n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"N\"\n", + "print\"theta = \",(theta),\"degrees\"\n", + "print\"MRA = \",(MRA),\"N.m = \",(-MRA),\"N.m(clockwise)\"\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.15 Page No 134" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "# Example 4.15\n", + "import math\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "F1_x = 0 #[Newton]\n", + "F1_y = 0 #[Newton]\n", + "F1_z = -800 #[Newton]\n", + "F2 = 300 #[Newton]\n", + "rCB_x = -0.15 #[meter]\n", + "rCB_y = 0.1 #[meter]\n", + "rCB_z = 0 #[meter]\n", + "rC_x = 0 #[meter]\n", + "rC_y = 0 #[meter]\n", + "rC_z = 1 #[meter]\n", + "rB_x = -0.15 #[meter]\n", + "rB_y = 0.1 #[meter]\n", + "rB_z = 1 #[meter]\n", + "# Calculation\n", + "# Let uCB be unit vector along rCB\n", + "uCB_x = rCB_x/math.sqrt(rCB_x**(2)+rCB_y**(2)+rCB_z**(2))\n", + "uCB_y = rCB_y/math.sqrt(rCB_x**(2)+rCB_y**(2)+rCB_z**(2))\n", + "uCB_z = rCB_z/math.sqrt(rCB_x**(2)+rCB_y**(2)+rCB_z**(2))\n", + "F2_x = round(300*uCB_x,1) #[Newton]\n", + "F2_y = round(300*uCB_y,1) #[Newton]\n", + "F2_z = round(300*uCB_z,1) #[Newton]\n", + "M_x = 0 #[Newton meter]\n", + "M_y = -500*(4/5) #[Newton meter]\n", + "M_z = 500*(3/5) #[Newton meter]\n", + "# FR = F1 + F2\n", + "FR_x = F1_x + F2_x #[Newton]\n", + "FR_y = F1_y + F2_y #[Newton]\n", + "FR_z = F1_z + F2_z #[Newton]\n", + "\n", + "# MRO = M + rC X F1 + rB X F2\n", + "# Let a = rC X F1 and b = rB X F2\n", + "a = np.cross([rC_x,rC_y,rC_z], [F1_x,F1_y,F1_z])\n", + "b = np.cross([rB_x,rB_y,rB_z], [F2_x,F2_y,F2_z])\n", + "MRO_x = M_x + a[0] + b[0] #[Newton meter]\n", + "MRO_y = M_y + a[1] + b[1] #[Newton meter]\n", + "MRO_z = M_z + a[2] + b[2] #[Newton meter]\n", + "\n", + "# Result\n", + "print\"FR_x = \",(FR_x),\"N\"\n", + "print\"FR_y = \",(FR_y),\"N\"\n", + "print\"FR_z = \",(FR_z),\"N\"\n", + "print\"MRO_x = \",(MRO_x),\"N\"\n", + "print\"MRO_y = \",(MRO_y),\"N\"\n", + "print\"MRO_z = \",(MRO_z),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.16 Page No 139" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 420.5 N\n", + "theta = 33.7 degrees\n", + "d = 3.57 m\n" + ] + } + ], + "source": [ + "# Example 4.16\n", + "import math\n", + "from __future__ import division\n", + "# Calculation\n", + "FR_x = 500*math.cos(math.pi*60/180)+100 #[Newton]\n", + "FR_y = -500*math.sin(math.pi*60/180)+200 #[Newton]\n", + "FR = round(math.sqrt(FR_x**(2)+FR_y**(2)),1) #[Newton]\n", + "theta = round(math.degrees(math.atan(FR_y/FR_x)),1) #[degrees]\n", + "\n", + "# +MRE(counterclockwise) = ΣME\n", + "d = round((500*math.sin(math.pi*60/180)*(4) + 500*math.cos(math.pi*60/180)*(0) - 100*0.5 - 200*2.5 - 350)/233.0,2) #[meter] \n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"N\"\n", + "print\"theta = \",(-theta),\"degrees\"\n", + "print\"d = \",(d),\"m\" # Correction in the answer" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 4.17 Page No 140" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "y = 1.146 m\n", + "x = 5.442 m\n" + ] + } + ], + "source": [ + "# Example 4.17\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Let FR be resultant force\n", + "FR_x = -250*(3/5)-175 #[Newton]\n", + "FR_y = -250*(4/5)-60 #[Newton]\n", + "FR = round(math.sqrt(FR_x**(2)+FR_y**(2)),1) #[Newton]\n", + "theta = round(math.degrees(math.atan(FR_y/FR_x)),1) #[degrees]\n", + "\n", + "# +MRA(counterclockwise) = ΣMA\n", + "y = round((175*2.5 - 60*1.5 + 250*(3/5)*5.5 - 250*(4/5)*4 - 260*(0))/325,3) #[meter]\n", + "\n", + "# By principle of transmissibility FR can be treated as intersecting BC Refer Fig 4-44b\n", + "# +MRA(counterclockwise) = ΣMA\n", + "x = round((325*5.5 - 175*2.5 + 60*1.5 - 250*(3/5)*5.5 + 250*(4/5)*4)/260,3) #[meter]\n", + "\n", + "# Result\n", + "print\"y = \",(y),\"m\"\n", + "print\"x = \",(x),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 4.18 Page No 141" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "y = 2.5 m\n", + "x = 3.0 m\n" + ] + } + ], + "source": [ + "# Example 4.18\n", + "\n", + "# Calculation\n", + "# +FR = ΣF Refer Fig 4-45a\n", + "FR = -600+100-400-500 #[Newton]\n", + "# Using right hand thumb rule where ppsitive moments act in +i direction we have MR_x = ΣM_x\n", + "y = round(-(600*(0)+100*5-400*10+500*0)/1400,2) #[meter]\n", + "# Assuming positive moments act in +j direction\n", + "# MR_y = ΣM_y\n", + "x = round((600*8-100*6+400*0+500*0)/1400,2) #[meter]\n", + "\n", + "# Result\n", + "print\"y = \",(y),\"m\"\n", + "print\"x = \",(x),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.19 Page No 142" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR_x = 0 N\n", + "FR_y = 0 N\n", + "FR_z = -650 N\n", + "x = 0.6 m\n", + "y = -0.29 m\n" + ] + } + ], + "source": [ + "# Example 4.19\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "FR_x = 0 #[Newton]\n", + "FR_y = 0 #[Newton]\n", + "FR_z = -300-200-150 #[Newton]\n", + "rA_x = 2 #[meter]\n", + "rA_y = 0 #[meter]\n", + "rA_z = 0 #[meter] \n", + "rB_x = 0 #[meter]\n", + "rB_y = -2 #[meter]\n", + "rB_z = 0 #[meter]\n", + "rC_x = -2*math.sin(math.pi*45/180) #[meter] \n", + "rC_y = 2*math.cos(math.pi*45/180) #[meter]\n", + "rC_z = 0 #[meter]\n", + "\n", + "# Let a = rA X (-300k), b = rB X (-200k), c = rC X (-150k)\n", + "a = np.cross([rA_x,rA_y,rA_z], [0,0,-300])\n", + "b = np.cross([rB_x,rB_y,rB_z], [0,0,-200])\n", + "c = np.cross([rC_x,rC_y,rC_z], [0,0,-150])\n", + "x = round((a[1]+b[1]+c[1])/650,2) #[meter]\n", + "y = round(-((a[0]+b[0]+c[0]))/650,2) #[meter]\n", + "\n", + "# Result\n", + "print\"FR_x = \",(FR_x),\"N\"\n", + "print\"FR_y = \",(FR_y),\"N\"\n", + "print\"FR_z = \",(FR_z),\"N\"\n", + "print\"x = \",(x),\"m\"\n", + "print\"y = \",(y),\"m\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 4.20 Page No 148" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 160.0 N\n", + "x_bar = 1.5 m\n" + ] + } + ], + "source": [ + "# Example 4.20\n", + "from scipy import integrate\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# The coloured differential area element dA = wdx = 60x**(2)\n", + "# Summing these elements from x = 0 to x = 2m we obtain force FR\n", + "# FR = ΣF\n", + "var = lambda x: 60*x**(2)\n", + "a = integrate.quad(var, 0, 2)\n", + "FR = a[0] #[Newton]\n", + "\n", + "# Since the element of area dA is located at distance x from O, the location x_bar of FR is measured from O\n", + "var = lambda x: x*60*x**(2)\n", + "a = integrate.quad(var, 0, 2)\n", + "x_bar = a[0]/FR #[meter]\n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"N\"\n", + "print\"x_bar = \",(x_bar),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.21 Page No 149" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 6.48 kN\n", + "x_bar = 6.0 m\n" + ] + } + ], + "source": [ + "# Example 4.21\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# The magnitude of resultant force is equal to the area under the triangle\n", + "FR = (0.5*9*1440)/1000 #[Newton]\n", + "\n", + "# The line of action of FR passes through the centroid C of the triangle\n", + "x_bar = 9-(1/3)*9 #[meter]\n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"kN\"\n", + "print\"x_bar =\",(x_bar),\"m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 4.22 Page No 150" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 225.0 N\n", + "x_bar = 1.33333333333 m\n" + ] + } + ], + "source": [ + "# Example 4.22\n", + "\n", + "# Calculation\n", + "# Refer Fig 4-50b\n", + "# The magnitude of the force represented by each of these loadings is equal to its associated area\n", + "F1 = 0.5*3*50 #[Newton]\n", + "F2 = 3*50 #[Newton]\n", + "\n", + "# The lines of action of these parallel forces act through the centroid of their associated areas\n", + "x1_bar = (1/3)*3 #[meter]\n", + "x2_bar = (1/2)*3 #[meter]\n", + "\n", + "# +FR(downward) = ΣF\n", + "FR = F1 + F2 #[Newton]\n", + "\n", + "# +MRA(clockwise) = ΣMA\n", + "x_bar = (1*75+1.5*150)/225 #[meter]\n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"N\"\n", + "print\"x_bar = \",(x_bar),\"m\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_5_Equilibrium_o_wA2OXD7.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_5_Equilibrium_o_wA2OXD7.ipynb new file mode 100644 index 00000000..b3b5669a --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_5_Equilibrium_o_wA2OXD7.ipynb @@ -0,0 +1,561 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5 Equilibrium of a Rigid Body" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.6 Page No 174 " + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "B_x = 424.3 N\n", + "A_y = 319.5 N\n", + "B_y = 405.3 N\n" + ] + } + ], + "source": [ + "# Example 5.6\n", + "import math\n", + "\n", + "# Calculation\n", + "# Summing forces in the x direction +ΣF_x(right) = 0\n", + "B_x = round(600*math.cos(math.pi*45/180),1) #[Newton]\n", + "\n", + "# Refer Fig 5-14b we have +ΣMB(counterclockwise) = 0\n", + "A_y = round((100*2+600*math.sin(math.pi*45/180)*5-600*math.cos(math.pi*45/180)*0.2)/7,1) #[Newton]\n", + "\n", + "# Summing forces in y direction +ΣF_y(upward) = 0\n", + "B_y = round(-319+600*math.sin(math.pi*45/180)+100+200,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"B_x = \",(B_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"\n", + "print\"B_y = \",(B_y),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.7 Page No 175" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "T = 100.0 N\n", + "A_x = 50.0 N\n", + "A_y = 186.6 N\n" + ] + } + ], + "source": [ + "# Example 5.7\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "F = 100 #[Newton]\n", + "\n", + "# Calculation\n", + "# Summing moments about point A to eliminate A_x and A_y Refer Fig 5-15c\n", + "# +ΣMA(counterclockwise) = 0\n", + "T = round((F*0.5)/0.5,1) #[Newton]\n", + "\n", + "# Using result of T a force summation is applied to determine the components of reaction at pin A\n", + "# +ΣF_x(right) = 0\n", + "A_x = round(F*math.sin(math.pi*30/180),1) #[Newton]\n", + "\n", + "# +ΣF_y(upward) = 0\n", + "A_y = round(F+F*math.cos(math.pi*30/180),1) #[Newton]\n", + " \n", + "# Result\n", + "print\"T = \",(T),\"N\"\n", + "print\"A_x = \",(A_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.8 Page No 176" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A_x = 100.0 N\n", + "A_y = 233.2 N\n" + ] + } + ], + "source": [ + "# Example 5.8\n", + "import math\n", + "\n", + "# Calculation\n", + "# Summing moments about A, we obtain direct solution for NB\n", + "# +ΣMA(counterclockwise) = 0\n", + "NB = (90+60)/0.75 #[Newton]\n", + "\n", + "# +ΣF_x(right) = 0\n", + "A_x = round(NB*math.sin(math.pi*30/180),1) #[Newton]\n", + "\n", + "# +ΣF_y(upward) = 0\n", + "A_y = round(NB*math.cos(math.pi*30/180)+60,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"A_x = \",(A_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.9 Page No 177" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A_x = 5.0 N\n", + "A_y = 74.0 N\n", + "MA = 32.6 N.m\n", + "FA = 74.2 N\n" + ] + } + ], + "source": [ + "# Example 5.9\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# +ΣF_x(right) = 0\n", + "A_x = round(52*(5/13)-30*math.cos(math.pi*60/180),1) #[Newton]\n", + "# +ΣF_y(upward) = 0\n", + "A_y = round(52*(12/13)+30*math.sin(math.pi*60/180),1) #[Newton]\n", + "# +ΣMA(counterclockwise) = 0\n", + "MA = round(52*(12/13)*0.3+30*math.sin(math.pi*60/180)*0.7,1) #[Newton meter]\n", + "FA = round(math.sqrt(A_x**(2)+A_y**(2)),1) #[Newton]\n", + "theta = math.degrees(math.atan(A_y/A_x)) #[degrees]\n", + "\n", + "# Result\n", + "print\"A_x = \",(A_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"\n", + "print\"MA = \",(MA),\"N.m\"\n", + "print\"FA = \",(FA),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.10 Page No 178" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "C_y_dash = 1.3464 kN\n", + "B_y_dash = -1.0 kN\n", + "A_x = 173.2 Nnn\n" + ] + } + ], + "source": [ + "# Example 5.10\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Refer Fig 5-18b\n", + "# Using +ΣF_y(upward) = 0 and +ΣMA(counterclockwise) = 0\n", + "a = np.array([[math.cos(math.pi*30/180),math.cos(math.pi*30/180)], [6,2]])\n", + "b = np.array([300,4000+300*math.cos(math.pi*30/180)*8])\n", + "x = np.linalg.solve(a, b)\n", + "C_y_dash = round(x[0],1) #[Newton]\n", + "B_y_dash = round(x[1],1) #[Newton]\n", + "\n", + "# Using +ΣF_x(right) = 0\n", + "A_x = round(C_y_dash*math.sin(math.pi*30/180)+B_y_dash*math.sin(math.pi*30/180),1) #[Newton]\n", + "\n", + "# Result\n", + "print\"C_y_dash = \",(C_y_dash/1000),\"kN\"\n", + "print\"B_y_dash = \",(B_y_dash/1000),\"kN\"\n", + "print\"A_x = \",(A_x),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 5.11 Page No 181" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "theta = 60.3 degrees\n", + "FA = 1.07 kN\n", + "F = 1.32 kN\n" + ] + } + ], + "source": [ + "# Example 5.11\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Since ΣMO = 0 angle theta which defines the line of action of FA can be determined by trigonometry\n", + "theta = round(math.degrees(math.atan(0.7/0.4)),1) #[Degrees]\n", + "\n", + "# Using +ΣF_x(right) = 0 and +ΣF_y(upward) = 0\n", + "a = np.array([[math.cos(math.pi*theta/180),-math.cos(math.pi*45/180)], [math.sin(math.pi*theta/180),-math.sin(math.pi*45/180)]])\n", + "b = np.array([-400,0])\n", + "x = np.linalg.solve(a, b)\n", + "FA = round(x[0]/1000,2) #[Newton]\n", + "F = round(x[1]/1000,2) #[Newton]\n", + "\n", + "# Result\n", + "print\"theta = \",(theta),\"degrees\"\n", + "print\"FA = \",(FA),\"kN\"\n", + "print\"F = \",(F),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.13 Page No 197" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "B_x = 0 N\n", + "B_y = 0 N\n", + "A_z = 790.5 N\n", + "B_z = -216.7 N\n", + "TC = 707.2 N\n" + ] + } + ], + "source": [ + "# Example 5.13\n", + "\n", + "# Calculation\n", + "# Using ΣF_x = 0ΣF_z = 0\n", + "B_x = 0 #[Newton]\n", + "# Using ΣF_y= 0\n", + "B_y = 0 #[Newton]\n", + "# Using ΣF_z = 0, A_z + B_z + TC = 300 + 981(1)\n", + "# Using ΣM_x = 0, 2TC + 2B_z = 981(2)\n", + "# Using ΣM_y = 0, 3B_z + 3A_z = 300(1.5) + 981(1.5) - 200(3)\n", + "# Solving (1),(2) and (3)\n", + "a = np.array([[1,1,1], [0,2,2],[3,3,0] ])\n", + "b = np.array([300+981,981,300*1.5+981*1.5-200])\n", + "x = np.linalg.solve(a, b)\n", + "A_z = round(x[0],1) #[Newton]\n", + "B_z = round(x[1],1) #[Newton]\n", + "TC = round(x[2],1) #[Newton]\n", + "\n", + "# Result\n", + "print\"B_x = \",(B_x),\"N\"\n", + "print\"B_y = \",(B_y),\"N\"\n", + "print\"A_z = \",(A_z),\"N\"\n", + "print\"B_z = \",(B_z),\"N\"\n", + "print\"TC = \",(TC),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.14 Page No 198" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "P = 377.6 N\n", + "A_z = 424.3 N\n", + "B_z = 934.3 N\n" + ] + } + ], + "source": [ + "# Example 5.14\n", + "import math \n", + "\n", + "# Calculation\n", + "# Using right hand rule and assuming positive moments act in +i direction, ΣM_x = 0\n", + "P = round((981*0.1)/(0.3*math.cos(math.pi*30/180)),1) #[Newton]\n", + "\n", + "# Using this result for P and summing moments about y and z axis, ΣM_y = 0 and ΣM_z = 0\n", + "A_z = round((981*0.5-P*0.4)/0.8,1) #[Newton]\n", + "A_y = -0/0.8 #[Newton]\n", + "\n", + "# The reactions at B are determined by using ΣF_x = 0, ΣF_y = 0 and ΣF_z = 0\n", + "A_x = 0 #[Newton]\n", + "B_y = 0 #[Newton]\n", + "B_z = round(P+981-A_z,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"P = \",(P),\"N\"\n", + "print\"A_z = \",(A_z),\"N\"\n", + "print\"B_z = \",(B_z),\"N\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.15 Page No 199" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TC = 707.5 N\n", + "TD = 1500.0 N\n", + "A_x = -0.0 N\n", + "A_y = 0.0 N\n", + "A_z = 1500.2 N\n" + ] + } + ], + "source": [ + "# Example 5.15\n", + "import numpy as np\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Summing moments about point A ΣMA = 0, rB X (F+TC+TD)\n", + "# Evaluating cross product\n", + "a = np.array([[0,-4], [4.24,-2]])\n", + "b = np.array([-6000,0])\n", + "x = np.linalg.solve(a, b)\n", + "TC = round(x[0],1) #[Newton]\n", + "TD = round(x[1],1) #[Newton]\n", + "\n", + "# Using ΣF_x = 0\n", + "A_x = round(-0.707*TC+(3/9)*TD,0) #[Newton]\n", + "\n", + "# Using ΣF_y = 0 \n", + "A_y = round(1000-(6/9)*TD,1) #[Newton]\n", + "\n", + "# Using ΣF_z= 0\n", + "A_z = round(0.707*TC+(6/9)*TD,1) #[Newton]\n", + " \n", + "# Result\n", + "print\"TC = \",(TC),\"N\" \n", + "print\"TD = \",(TD),\"N\" \n", + "print\"A_x = \",(A_x),\"N\" \n", + "print\"A_y = \",(A_y),\"N\" \n", + "print\"A_z = \",(A_z),\"N\" " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.16 Page No 200" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TD = 100.0 N\n", + "TE = 100.0 N\n", + "A_x = -50.0 N\n", + "A_y = -100.0 N\n", + "A_z = 200 N\n" + ] + } + ], + "source": [ + "# Example 5.16\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Summing moments about point A, ΣMA = 0 and rC X F + rB X (TE + TD) = 0\n", + "# Using ΣM_x = 0 and ΣM_y = 0\n", + "TD = 200/2 #[Newton]\n", + "TE = 100/2 #[Newton]\n", + "\n", + "# Using ΣF_x = 0, ΣF_y = 0 and ΣF_z = 0\n", + "A_x = -TE #[Newton]\n", + "A_y = -TD #[Newton]\n", + "A_z = 200 #[Newton]\n", + "\n", + "# Result\n", + "print\"TD = \",(TD),\"N\"\n", + "print\"TE = \",(TD),\"N\"\n", + "print\"A_x = \",(A_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"\n", + "print\"A_z = \",(A_z),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 5.17 Page No 201" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TB = 572.3 N\n" + ] + } + ], + "source": [ + "# Example 5.17\n", + "\n", + "# Calculation\n", + "# Using u.(rB X TB + rE X W)\n", + "TB = round(490.5/0.857,1) #[Newton]\n", + "\n", + "print\"TB = \",(TB),\"N\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb new file mode 100644 index 00000000..4fe7e652 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb @@ -0,0 +1,768 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6 Structural Analysis" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.1 Page No 212" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FBC = 707.1 N\n", + "FBA = 500.0 N\n", + "FCA = 500.0 N\n", + "C_y = 500.0 N\n", + "A_x = 500 N\n", + "A_y = 500 N\n" + ] + } + ], + "source": [ + "# Example 6.1\n", + "import math\n", + "\n", + "# Calculation\n", + "\n", + "# Joint B\n", + "# Using +ΣF_x(right) = 0\n", + "FBC = round(500/math.sin(math.pi*45/180),1) #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "FBA = round(FBC*math.cos(math.pi*45/180),1) #[Newton]\n", + "\n", + "# Joint C\n", + "# Using +ΣF_x(right) = 0\n", + "FCA = round(FBC*math.cos(math.pi*45/180),1) #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "C_y = round(FBC*math.sin(math.pi*45/180),1) #[Newton]\n", + "\n", + "# Joint A\n", + "# # Using +ΣF_x(right) = 0\n", + "A_x = 500 #[Newton]\n", + "A_y = 500 #[Newton]\n", + "\n", + "# Result\n", + "print\"FBC = \",(FBC),\"N\"\n", + "print\"FBA = \",(FBA),\"N\"\n", + "print\"FCA = \",(FCA),\"N\"\n", + "print\"C_y = \",(C_y),\"N\"\n", + "print\"A_x = \",(A_x),\"N\"\n", + "print\"A_y = \",(A_y),\"N\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.2 Page No 213" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FCB = 5.02 kN\n", + "FCD = 4.1 kN\n", + "FDA = 4.1 kN\n", + "FDB = 4.1 kN\n" + ] + } + ], + "source": [ + "# Example 6.2\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "# Joint C\n", + "# Using +ΣF_x(right) = 0 and +ΣF_y(upward) = 0\n", + "a = np.array([[-math.cos(math.pi*30/180),math.sin(math.pi*45/180)],[math.sin(math.pi*30/180),-math.cos(math.pi*45/180)]])\n", + "b = np.array([0,-1.5])\n", + "x = np.linalg.solve(a, b)\n", + "FCD = round(x[0],2) #[kilo Newton]\n", + "FCB = round(x[1],2) #[kilo Newton]\n", + "\n", + "# Calculation\n", + "# Joint D\n", + "# Using +ΣF_x(right) = 0\n", + "FDA = round(FCD*math.cos(math.pi*30/180)/math.cos(math.pi*30/180),2) #[kilo Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "FDB = round(2*FCD*math.sin(math.pi*30/180),2) #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"FCB = \",(FCB),\"kN\"\n", + "print\"FCD = \",(FCD),\"kN\"\n", + "print\"FDA = \",(FDA),\"kN\"\n", + "print\"FDB = \",(FDB),\"kN\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.3 Page No 214" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FAB = 750.0 N\n", + "FAD = 450.0 N\n", + "FDB = -250.0 N\n", + "FDC = 200.0 N\n", + "FCB = 600 N\n" + ] + } + ], + "source": [ + "# Example 6.3\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x(right) = 0\n", + "C_x = 600 #[Newton]\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "A_y = (400*3+600*4)/6 #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "C_y = A_y - 400 #[Newton]\n", + "\n", + "# Joint A\n", + "# Using +ΣF_y(upward) = 0\n", + "FAB = 600*(5/4) #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "FAD = (3/5)*FAB #[Newton]\n", + "\n", + "# Joint D\n", + "# Using +ΣF_x(right) = 0\n", + "FDB = (450-600)*(5/3) #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "FDC = (-4/5)*(FDB) #[Newton]\n", + "\n", + "# Joint C\n", + "# Using +ΣF_x(right) = 0\n", + "FCB = 600 #[Newton]\n", + "\n", + "# Result\n", + "print\"FAB = \",(FAB),\"N\"\n", + "print\"FAD = \",(FAD),\"N\"\n", + "print\"FDB = \",(FDB),\"N\"\n", + "print\"FDC = \",(FDC),\"N\"\n", + "print\"FCB = \",(FCB),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 6.4 Page No 218" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FGC = 0 N\n", + "FDF= 0 N\n" + ] + } + ], + "source": [ + "# Example 6.4\n", + "\n", + "# Calculation\n", + "# Using +ΣF_y(upward) = 0 at joint G\n", + "FGC = 0 #[Newton]\n", + "\n", + "# GC is a zero force menber means that 5-kN load at C must be supported by members CB,CH,CF and CD\n", + "# Using +ΣF_y(upward) = 0 at joint F\n", + "FDF = 0 #[Newton]\n", + "\n", + "# Result\n", + "print\"FGC = \",(FGC),\"N\"\n", + "print\"FDF= \",(FDF),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.5 Page No 225" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FBC = 800.0 N\n", + "FGE = 800.0 N\n", + "FGC = 500.0 N\n" + ] + } + ], + "source": [ + "# Example 6.5\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Applying equations of equilibrium\n", + "# Using +ΣF_x(right) = 0\n", + "A_x = 400 #[Newton]\n", + "\n", + "# Using +ΣMA(counterclockwise) = 0\n", + "D_y = (400*3+1200*8)/12 #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "A_y = 1200-900 #[Newton]\n", + "\n", + "# Using +ΣMG(counterclockwise) = 0\n", + "FBC = (400*3+300*4)/3 #[Newton]\n", + "\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "FGE = (300*8)/3 #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "FGC = (300*5)/3 #[Newton]\n", + "\n", + "# Result\n", + "print\"FBC = \",(FBC),\"N\"\n", + "print\"FGE = \",(FGE),\"N\"\n", + "print\"FGC = \",(FGC),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.6 Page No 226" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FCF = 0.589 kN\n" + ] + } + ], + "source": [ + "# Example 6.6\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using +ΣMO(counterclockwise) = 0\n", + "FCF = round((3*8-4.75*4)/(12*math.sin(math.pi*45/180)),3) #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"FCF = \",(FCF),\"kN\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.7 Page No 227" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FEB = 2000.0 N\n" + ] + } + ], + "source": [ + "# Example 6.7\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using +ΣMB(counterclockwise) = 0\n", + "FED = (-1000*4-3000*2+4000*4)/(math.sin(math.pi*30/180)*4) #[Newton]\n", + "\n", + "# Using +ΣF_x(right) = 0 for section bb Fig 6-18c\n", + "FEF = 3000*math.cos(math.pi*30/180)/math.cos(math.pi*30/180) #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "FEB = 2*3000*math.sin(math.pi*30/180)-1000 #[Newton]\n", + "\n", + "# Result\n", + "print\"FEB = \",(FEB),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.8 Page No 231" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FAE = 0.0 kN\n", + "FAB = 4.0 kN\n", + "FAC = 0.0 kN\n", + "RB = 5.66 kN\n", + "FBE = 5.66 kN\n", + "FBD = 2.0 kN\n", + "FDE = 0 kN\n", + "FDC = 0 kN\n", + "FCE = 0 kN\n" + ] + } + ], + "source": [ + "# Example 6.8\n", + "import numpy as np\n", + "import math\n", + "\n", + "# Calculation\n", + "# At joint A, ΣF_x = 0, ΣF_y = 0, ΣF_z = 0\n", + "a = np.array([[0.577,0,0],[0.577,1,0],[-0.577,0,-1]])\n", + "b = np.array([0,4,0])\n", + "x = np.linalg.solve(a, b)\n", + "FAE = round(x[0],2) #[kilo Newton]\n", + "FAB = round(x[1],2) #[kilo Newton]\n", + "FAC = round(x[2],2) #[kilo Newton]\n", + "\n", + "# At joint B, ΣF_x = 0, ΣF_y = 0, ΣF_z = 0\n", + "a = np.array([[-math.cos(math.pi*45/180),0.707,0],[math.sin(math.pi*45/180),0,0],[0,-0.707,1]])\n", + "b = np.array([0,4,-2])\n", + "x = np.linalg.solve(a, b)\n", + "RB = round(x[0],2) #[kilo Newton]\n", + "FBE = round(x[1],2) #[kilo Newton]\n", + "FBD = round(x[2],2) #[kilo Newton]\n", + "\n", + "# The scalar equation of equilibrium can be applied at joints D and C\n", + "FDE = FDC = FCE = 0 #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"FAE = \",(FAE),\"kN\"\n", + "print\"FAB = \",(FAB),\"kN\"\n", + "print\"FAC = \",(-FAC),\"kN\"\n", + "print\"RB = \",(RB),\"kN\"\n", + "print\"FBE = \",(FBE),\"kN\"\n", + "print\"FBD = \",(FBD),\"kN\"\n", + "print\"FDE = \",(FDE),\"kN\"\n", + "print\"FDC = \",(FDC),\"kN\"\n", + "print\"FCE = \",(FCE),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.14 Page No 241" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "C_x = 577.4 N\n", + "C_y = 1000.0 N\n" + ] + } + ], + "source": [ + "# Example 6.14\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "\n", + "# Solution 1\n", + "# Applying equations of equilibrium to member CB\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "FAB = round((2000*2)/(math.sin(math.pi*60/180)*4),1) #[Newton meter]\n", + "# Using +ΣF_x(right) = 0\n", + "C_x = round(FAB*math.cos(math.pi*60/180),1) #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "C_y = round(-FAB*math.sin(math.pi*60/180)+2000,1) #[Newton]\n", + "\n", + "# Solution 2 \n", + "# Using +ΣMC(counterclockwise) = 0 at Member BC\n", + "B_y = (2000*2)/4 #[Newton]\n", + "# Using +ΣMA(counterclockwise) = 0 at Member AB\n", + "B_x = round(B_y*3*math.cos(math.pi*60/180)/(3*math.sin(math.pi*60/180)),1) #[Newton]\n", + "# Using +ΣF_y(upward) = 0 at member BC\n", + "C_x = B_x #[Newton]\n", + "C_y = 2000-B_y #[Newton]\n", + "# Result\n", + "print\"C_x = \",(C_x),\"N\"\n", + "print\"C_y = \",(C_y),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.15 Page No 242" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A_x = 6.0 kN\n", + "A_y = 12.0 kN\n", + "MA = 32.0 kN.m\n", + "B_x = 0 kN\n", + "B_y = 4.0 kN\n", + "C_y = 4.0 kN\n" + ] + } + ], + "source": [ + "# Example 6.15\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x(right) = 0 at member BC\n", + "B_x = 0 #[kilo Newton]\n", + "# Using +ΣMB(counterclockwise) = 0 at member BC\n", + "C_y = (8*1)/2 #[kilo Newton]\n", + "# Using +ΣF_y(upward) = 0 at member BC\n", + "B_y = 8-C_y #[kilo Newton]\n", + "# Using +ΣF_x(right) = 0 at member AB\n", + "A_x = 10*(3/5)-B_x #[kilo Newton]\n", + "# Using +ΣMA(counterclockwise) = 0 at member AB\n", + "MA = 10*(4/5)*2+B_y*4 #[kilo Newton meter]\n", + "# Using +ΣF_y(upward) = 0 at member AB\n", + "A_y = 10*(4/5)+B_y #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"A_x = \",(A_x),\"kN\"\n", + "print\"A_y = \",(A_y),\"kN\"\n", + "print\"MA = \",(MA),\"kN.m\"\n", + "print\"B_x = \",(B_x),\"kN\"\n", + "print\"B_y = \",(B_y),\"kN\"\n", + "print\"C_y = \",(C_y),\"kN\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.16 Page No 243" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "C_x = 1226.3 N\n", + "C_y = -245.3 N\n" + ] + } + ], + "source": [ + "# Example 6.16\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using +ΣMA(counterclockwise) = 0\n", + "D_x = (981*2)/2.8 #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "A_x = D_x #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "A_y = 981 #[Newton]\n", + "\n", + "# Consider member CEF\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "FB = round((-981*2)/(math.sin(math.pi*45/180)*1.6),1) #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "C_x = round(-FB*math.cos(math.pi*45/180),1) #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "C_y = round(FB*math.sin(math.pi*45/180)+981,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"C_x = \",(C_x),\"N\"\n", + "print\"C_y = \",(C_y),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 6.17 Page No 243" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "B_x = 18.2 N\n", + "B_y = 20 N\n", + "D_x = 0 N\n", + "D_y = 20 N\n" + ] + } + ], + "source": [ + "# Example 6.17\n", + "\n", + "# Calculation\n", + "# Consider entire frame\n", + "# Using +ΣMA(counterclockwise) = 0\n", + "C_x = (20*1)/1.1 #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "A_x = 18.2 #[Newton]\n", + "A_y = 20 #[Newton]\n", + "\n", + "# Consider member AB\n", + "# Using +ΣF_x(right) = 0\n", + "B_x= 18.2 #[Newton]\n", + "# Using +ΣMB(counterclockwise) = 0\n", + "ND = (20*2)/1 #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "B_y = 40-20 #[Newton]\n", + "\n", + "# Consider Disk\n", + "# Using +ΣF_x(right) = 0\n", + "D_x = 0 #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "D_y = 40-20 #[Newton]\n", + "\n", + "# Result\n", + "print\"B_x = \",(B_x),\"N\"\n", + "print\"B_y = \",(B_y),\"N\"\n", + "print\"D_x = \",(D_x),\"N\"\n", + "print\"D_y = \",(D_y),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.18 Page No 245" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "P = 200 N\n", + "T = 400 N\n", + "R = 800 N\n" + ] + } + ], + "source": [ + "# Example 6.18\n", + "\n", + "# Calculation\n", + "# Using equations of equilibrium\n", + "\n", + "# Pulley A\n", + "# Using +ΣF_y(upward) = 0\n", + "P = 600/3 #[Newton]\n", + "\n", + "# Pulley B\n", + "# Using +ΣF_y(upward) = 0\n", + "T = 2*P #[Newton]\n", + "\n", + "# Pulley C\n", + "# Using +ΣF_y(upward) = 0\n", + "R = 2*P+T #[Newton]\n", + "\n", + "# Result\n", + "print\"P = \",(P),\"N\"\n", + "print\"T = \",(T),\"N\"\n", + "print\"R = \",(R),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 6.19 Page No 246" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "B_x = 346.8 N\n", + "B_y = 837.3 N\n", + "FCB = 1659.8 N\n", + "FAB = 1342.7 N\n" + ] + } + ], + "source": [ + "# Example 6.19\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Applying equations of equilibrium to pulley B\n", + "# Using +ΣF_x(right) = 0\n", + "B_x = round(490.5*math.cos(math.pi*45/180),1) #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "B_y = round(490.5*math.sin(math.pi*45/180)+490.5,1) #[Newton]\n", + "\n", + "# Applying equations of equilibrium to pin\n", + "# Using +ΣF_y(upward) = 0\n", + "FCB = round((B_y+490.5)*(5/4),1) #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "FAB = round((3/5)*FCB+B_x,1) #[Newton]\n", + "\n", + "# Result\n", + "print\"B_x = \",(B_x),\"N\"\n", + "print\"B_y = \",(B_y),\"N\"\n", + "print\"FCB = \",(FCB),\"N\"\n", + "print\"FAB = \",(FAB),\"N\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb new file mode 100644 index 00000000..013e54d4 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb @@ -0,0 +1,391 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7 Internal Forces" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.1 Page no 261" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "A_y = 8 kN\n", + "NC = 4 kN\n" + ] + } + ], + "source": [ + "# Example 7.1\n", + "\n", + "# Calculation\n", + "# Applying +ΣF_y(upward) = 0 Refer fig 7-4b\n", + "A_y = 16+4-12 #[kilo Newton]\n", + "\n", + "# Applying +ΣF_y(upward) = 0 to segment AB\n", + "NB = 8 #[kilo Newton]\n", + "\n", + "# Applying +ΣF_y(upward) = 0 to segment DC\n", + "NC = 4 #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"A_y = \",(A_y),\"kN\"\n", + "print\"NC = \",(NC),\"kN\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.2 Page no 262" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TB = 5 N.m\n", + "TC = 25 N.m\n" + ] + } + ], + "source": [ + "# Example 7.2\n", + "\n", + "# Calculation\n", + "# Applying +ΣM_x = 0 Refer fig 7-5b\n", + "TD = -10+15+20 #[Newton meter]\n", + "\n", + "# Applying +ΣM_x = 0 to segment AB\n", + "TB = -10+15 #[Newton meter]\n", + "\n", + "# Applying +ΣM_x = 0 to segment CD\n", + "TC = 25 #[Newton meter]\n", + "\n", + "# Result\n", + "print\"TB = \",(TB),\"N.m\"\n", + "print\"TC = \",(TC),\"N.m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.3 Page no 263" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NB = 0 kN\n", + "VB = 5 kN\n", + "MB = 15 kN.m\n", + "NC = 0 kN\n", + "VC = 1 kN\n", + "MC = 15 kN.m\n" + ] + } + ], + "source": [ + "# Example 7.3\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Applying +ΣMD(counterclockwise) = 0 Refer fig 7-6b\n", + "A_y = (9+6*6)/9\n", + "\n", + "# Consider segment AB\n", + "# Applying +ΣF_x(right) = 0\n", + "NB = 0 #[kilo Newton]\n", + "# Applying +ΣF_y(upward) = 0\n", + "VB = 5 #[kilo Newton]\n", + "# Applying +ΣMB(counterclockwise) = 0 \n", + "MB = 5*3 #[kilo Newton meter]\n", + "\n", + "# Consider segment AC\n", + "# Applying +ΣF_x(right) = 0\n", + "NC = 0 #[kilo Newton]\n", + "# Applying +ΣF_y(upward) = 0\n", + "VC = 6-5 #[kilo Newton]\n", + "# Applying +ΣMC(counterclockwise) = 0\n", + "MC = 5*3 #[kilo Newton meter]\n", + "\n", + "# Result\n", + "print\"NB = \",(NB),\"kN\"\n", + "print\"VB = \",(VB),\"kN\"\n", + "print\"MB = \",(MB),\"kN.m\"\n", + "print\"NC = \",(NB),\"kN\"\n", + "print\"VC = \",(VC),\"kN\"\n", + "print\"MC = \",(MC),\"kN.m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.4 Page no 264" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NB = 266.7 N\n", + "VB = 0 N\n", + "MB = 400 N.m\n" + ] + } + ], + "source": [ + "# Example 7.4\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Refer fig 7-7b\n", + "# Applying +ΣMA(counterclockwise) = 0\n", + "FDC = (400*4)/((3/5)*8) #[Newton]\n", + "# Applying +ΣF_x(right) = 0\n", + "A_x = (4/5)*333.3 #[Newton]\n", + "# Applying +ΣF_y(upward) = 0\n", + "A_y = 400-((3/5)*333.3) #[Newton]\n", + "\n", + "# Applying equations of equilibrium to segment AB\n", + "# Applying +ΣF_x(right) = 0\n", + "NB = 266.7 #[Newton]\n", + "# Applying +ΣF_y(upward) = 0\n", + "VB = 200-200 #[Newton]\n", + "# Applying +ΣMB(counterclockwise) = 0\n", + "MB = 200*4-200*2 #[Newton meter]\n", + "\n", + "# Result\n", + "print\"NB = \",(NB),\"N\"\n", + "print\"VB = \",(VB),\"N\"\n", + "print\"MB = \",(MB),\"N.m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.5 Page no 265" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "VE = 600.0 N\n", + "NE = 600.0 N\n", + "ME = 300.0 N.m\n" + ] + } + ], + "source": [ + "# Example 7.5\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using +ΣF_y(upward) = 0 Refer fig 7-8b\n", + "R = round(600/math.sin(math.pi*45/180),1) #[Newton]\n", + "# Applying equations of equilibrium \n", + "# Applying +ΣF_x(right) = 0\n", + "VE = round(R*math.cos(math.pi*45/180),1) #[Newton]\n", + "# Applying +ΣF_y(upward) = 0\n", + "NE = round(R*math.sin(math.pi*45/180),1) #[Newton]\n", + "# Applying +ΣME(counterclockwise) = 0\n", + "ME = round(R*math.cos(math.pi*45/180)*0.5,1) #[Newton meter]\n", + "\n", + "# Result\n", + "print\"VE = \",(VE),\"N\"\n", + "print\"NE = \",(NE),\"N\"\n", + "print\"ME = \",(ME),\"N.m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.6 Page no 266" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MA_x = -19.1 kN.m\n", + "MA_y = 70.9 kN.m\n", + "MA_z = -40.5 kN.m\n" + ] + } + ], + "source": [ + "# Example 7.6\n", + "from __future__ import division\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "W = 650*9.81 #[kilo Newton]\n", + "Fw = 900/(6*2.5) #[kilo Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "FA_x = 13.5 #[kilo Newton]\n", + "FA_y = 0 #[kilo Newton]\n", + "FA_z = 6.376 #[kilo Newton]\n", + "# Using ΣMA = 0, MA + r X (Fw + W)\n", + "a = np.cross([0,3,5.25],[-13.5,0,6.376])\n", + "MA_x = round(-a[0],1) #[kilo Newton meter]\n", + "MA_y = round(-a[1],1) #[kilo Newton meter]\n", + "MA_z = round(-a[2],1) #[kilo Newton meter]\n", + "\n", + "# Result\n", + "print\"MA_x = \",(MA_x),\"kN.m\"\n", + "print\"MA_y = \",(MA_y),\"kN.m\"\n", + "print\"MA_z = \",(MA_z),\"kN.m\" # Correction in MA_z\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 7.13 Page no 286" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "TBC = 10.2 kN\n", + "TAB = 13.6 kN\n", + "TCD = 9.5 kN\n", + "TED = 11.8 kN\n" + ] + } + ], + "source": [ + "# Example 7.13\n", + "from __future__ import division\n", + "import math \n", + "\n", + "# Calculation\n", + "# Consider free body diagram Refer fig 7-21b\n", + "# Using +ΣME(counterclockwise) = 0\n", + "A_y = (4*15+15*10+3*2)/18 #[kilo Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "E_y = -12+4+15+3 #[kilo Newton]\n", + "\n", + "# Consider leftmost section which cuts cable BC Refer fig 7-21b\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "A_x = (12*8-4*5)/12 #[kilo Newton]\n", + "thetaBC = round(math.degrees(math.atan((12-4)/6.33)),1) #[Degrees]\n", + "# Using +ΣF_x(right) = 0\n", + "TBC = round(6.33/math.cos(math.pi*thetaBC/180),1) #[kilo Newton]\n", + "thetaAB = round(math.degrees(math.atan(12/6.33)),1) #[Degrees]\n", + "\n", + "# Applying +ΣF_x(right) = 0 at point A\n", + "TAB = round(12/math.sin(math.pi*thetaAB/180),1) #[kilo Newton]\n", + "thetaCD = round(math.degrees(math.atan((-10.2*math.sin(math.pi*51.6/180)+15)/(10.2*math.cos(math.pi*51.6/180)))),1) #[Degrees]\n", + "\n", + "# Applying +ΣF_x(right) = 0 at point C\n", + "TCD = round((10.2*math.cos(math.pi*51.6/180))/math.cos(math.pi*thetaCD/180),1) #[kilo Newton]\n", + "thetaED = round(math.degrees(math.atan(10/6.33)),1) #[Degrees]\n", + "\n", + "# Applying +ΣF_x(right) = 0 at point E\n", + "TED = round(10/math.sin(math.pi*thetaED/180),1) #[kilo Newton]\n", + "\n", + "print\"TBC = \",(TBC),\"kN\"\n", + "print\"TAB = \",(TAB),\"kN\"\n", + "print\"TCD = \",(TCD),\"kN\"\n", + "print\"TED = \",(TED),\"kN\" " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb new file mode 100644 index 00000000..f2059979 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb @@ -0,0 +1,406 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8 Friction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.1 Page No 305" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F = 69.3 N\n", + "NC = 236.2 N\n", + "x = -9.08 mm\n" + ] + } + ], + "source": [ + "# Example 8.1\n", + "import math\n", + "\n", + "# Variable Declaration\n", + "P = 80 #[Newton]\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x(right) = 0+ΣMO(counterclockwise) = 0\n", + "F = round(80*math.cos(math.pi*30/180),1) #[Newton]\n", + "\n", + "# Using +ΣF_y(upward) = 0\n", + "NC = round(80*math.sin(math.pi*30/180)+196.2,1) #[Newton]\n", + "\n", + "# Using +ΣMO(counterclockwise) = 0\n", + "x = (80*math.cos(math.pi*30/180)*0.2-80*math.sin(math.pi*30/180)*0.4)/NC #[meter]\n", + "\n", + "# Result\n", + "print\"F = \",(F),\"N\"\n", + "print\"NC = \",(NC),\"N\"\n", + "print\"x = \",(round(x*1000,2)),\"mm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.2 Page No 306" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "us = 0.466\n" + ] + } + ], + "source": [ + "# Ex 8.2\n", + "import math\n", + "\n", + "# Calculation\n", + "# W*sin25 = us(W*cos25)\n", + "us = round(math.tan(math.pi*25/180),3)\n", + "\n", + "# Result\n", + "print\"us = \",(us)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.3 Page No 307" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "us = 0.228\n" + ] + } + ], + "source": [ + "# Ex 8.3\n", + "import numpy as np\n", + "\n", + "# Calculation\n", + "coeff = [1, -4.619, 1]\n", + "us = np.roots(coeff)\n", + "\n", + "# Result\n", + "# Finding the smallest root\n", + "print\"us = \",(round(min(us),3))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.4 Page No 308" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "us_min = 0.268\n", + "ug_min = 0.0893\n" + ] + } + ], + "source": [ + "# Ex 8.4\n", + "import math\n", + "\n", + "# Calculation\n", + "# Using +ΣF_x(right) = 0,FA = F and NA = N for bottom pipe\n", + "# us_min = F/N\n", + "us_min = round(math.sin(math.pi*30/180)/(1+math.cos(math.pi*30/180)),3)\n", + "# Let smallest required coefficient of static friction be ug_min\n", + "# ug_min = F/NC\n", + "ug_min = round(0.2679*0.5/1.5,4)\n", + "\n", + "# Result\n", + "print\"us_min = \",(us_min)\n", + "print\"ug_min = \",(ug_min)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.5 Page No 309" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "P = 266.7 N\n", + "NC = 400 N\n", + "FC = 200.0 N\n", + "FB = 66.7 N\n" + ] + } + ], + "source": [ + "# Ex 8.5\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "uB = 0.2\n", + "uC = 0.5\n", + "\n", + "# Calculation\n", + "# Post slips only at B\n", + "# FB = uB*NB\n", + "FB = uB*400 #[Newton]\n", + "# Using +ΣMC(counterclockwise) = 0\n", + "P = FB/0.25 #[Newton]\n", + "# Using +ΣF_y(upward) = 0\n", + "NC = 400 #[Newton]\n", + "# Using +ΣF_x(right) = 0\n", + "FC = P-FB #[Newton]\n", + "\n", + "# Post slips only at C\n", + "FC = uC*NC #[Newton]\n", + "# Using +ΣF_x(right) = 0 and # Using +ΣMC(counterclockwise) = 0\n", + "a = np.array([[1,-1],[-0.25,1]])\n", + "b = np.array([200,0])\n", + "x = np.linalg.solve(a, b)\n", + "P = round(x[0],1) #[Newton]\n", + "FB = round(x[1],1) #[Newton]\n", + "\n", + "# Result\n", + "print\"P = \",(P),\"N\"\n", + "print\"NC = \",(NC),\"N\"\n", + "print\"FC = \",(FC),\"N\"\n", + "print\"FB = \",(FB),\"N\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 8.6 Page No 310" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "NA = 1084.5 N\n", + "FA = 162.7 N\n", + "FB = 162.7 N\n", + "P = 498.2 N\n" + ] + } + ], + "source": [ + "# Ex 8.6\n", + "import math\n", + "import numpy as np\n", + "\n", + "# Variable Declaration\n", + "usA = 0.15\n", + "usB = 0.4\n", + "\n", + "# Calculation\n", + "\n", + "# Pipe rolls up incline\n", + "# Using +ΣF_x(right) = 0, +ΣMO(counterclockwise) = 0 and FB = 0.4*P\n", + "a = np.array([[-1,1],[-400,0.4*400]])\n", + "b = np.array([981*math.sin(math.pi*20/180),0])\n", + "x = np.linalg.solve(a, b)\n", + "FA = round(x[0],1) #[Newton]\n", + "P = round(x[1],1) #[Newton]\n", + "FB = FA #[Newton]\n", + "NA = round(FB+981*math.cos(math.pi*20/180),1) #[Newton]\n", + "P = round(981*math.sin(math.pi*20/180)+FA,1) #[Newton]\n", + "\n", + "# Pipe slides up incline\n", + "# Using +ΣMO(counterclockwise) = 0 and FA = 0.15*NA\n", + "a = np.array([[-0.15*400,400],[1,-1]])\n", + "b = np.array([0,981*math.cos(math.pi*20/180)])\n", + "x = np.linalg.solve(a, b)\n", + "NA = round(x[0],1) #[Newton]\n", + "FB = round(x[1],1) #[Newton]\n", + "FA = FB #[Newton]\n", + "P = round(FA+981*math.sin(math.pi*20/180),1) #[Newton]\n", + "\n", + "# Result\n", + "print\"NA = \",(NA),\"N\"\n", + "print\"FA = \",(FA),\"N\"\n", + "print\"FB = \",(FB),\"N\"\n", + "print\"P = \",(P),\"N\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 8.8 Page No 319" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "M = 6.38 N.m\n" + ] + } + ], + "source": [ + "# Ex 8.8\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "us = 0.25\n", + "W = 2000 #[Newton]\n", + "r = 5 #[millimeter]\n", + "\n", + "# Calculation\n", + "phi_s = round(math.degrees(math.atan(us)),2)\n", + "theta = round(math.degrees(math.atan(2/(2*math.pi*5))),2)\n", + "M = 2*W*r*math.tan(math.pi*(phi_s+theta)/180) #[Newton millimeter]\n", + "\n", + "# Result\n", + "print\"M = \",round(M/1000,2),\"N.m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 8.9 Page No 324" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "m = 15.7 kg\n" + ] + } + ], + "source": [ + "# Ex 8.9\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "us = 0.25\n", + "\n", + "# Calculation\n", + "T1 = round(500/(math.exp(us*(3/4)*math.pi)),1)\n", + "W = round(T1/(math.exp(us*(3/4)*math.pi)),1)\n", + "m = round(W/9.81,1)\n", + "\n", + "# Result\n", + "print\"m = \",(m),\"kg\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_9_Center_of_Gra_jwxxiZg.ipynb b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_9_Center_of_Gra_jwxxiZg.ipynb new file mode 100644 index 00000000..92c855af --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/Chapter_9_Center_of_Gra_jwxxiZg.ipynb @@ -0,0 +1,537 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9 Center of Gravity and Centroid" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.1 Page No 337" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "xbar = 0.41 m\n", + "ybar = 0.574 m\n" + ] + } + ], + "source": [ + "# Example 9.1\n", + "from scipy import integrate\n", + "import math\n", + "\n", + "# Calculation\n", + "a = lambda y: y**(2)*math.sqrt(4*y**(2)+1)\n", + "b = lambda y: math.sqrt(4*y**(2)+1)\n", + "xbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "\n", + "c = lambda y: y*math.sqrt(4*y**(2)+1)\n", + "d = lambda y: math.sqrt(4*y**(2)+1)\n", + "ybar = integrate.quad(c, 0, 1)[0]/integrate.quad(d, 0, 1)[0] #[meter]\n", + "\n", + "# Result\n", + "print\"xbar = \",round(xbar,3),\"m\"\n", + "print\"ybar = \",round(ybar,3),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.5 Page No 342" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "xbar = 0.75 m\n", + "ybar = 0.3 m\n", + "\n", + "Solution 2\n", + "xbar = 0.75 m\n", + "ybar = 0.3 m\n" + ] + } + ], + "source": [ + "# Example 9.5\n", + "from scipy import integrate\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Solution 1\n", + "a = lambda x: x**(3)\n", + "b = lambda x: x**(2)\n", + "xbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "c = lambda x: (x**(4))/2\n", + "d = lambda x: x**(2)\n", + "ybar = integrate.quad(c, 0, 1)[0]/integrate.quad(d, 0, 1)[0] #[meter]\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"xbar = \",round(xbar,3),\"m\"\n", + "print\"ybar = \",round(ybar,3),\"m\\n\"\n", + "\n", + "# Solution 2\n", + "a = lambda y: (1-y)/2\n", + "b = lambda y: 1-math.sqrt(y)\n", + "xbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "c = lambda y: y-y**(3/2)\n", + "d = lambda y: 1-math.sqrt(y)\n", + "ybar = integrate.quad(c, 0, 1)[0]/integrate.quad(d, 0, 1)[0] #[meter]\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"xbar = \",round(xbar,3),\"m\"\n", + "print\"ybar = \",round(ybar,3),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.6 Page No 343" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solution 1\n", + "xbar = 0.5 m\n", + "\n", + "Solution 2\n", + "xbar = 0.5 m\n" + ] + } + ], + "source": [ + "# Example 9.6\n", + "from scipy import integrate\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "# Solution 1\n", + "a = lambda x: x*(x-x**(2))\n", + "b = lambda x: (x-x**(2))\n", + "xbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "\n", + "\n", + "# Result Solution 1\n", + "print\"Solution 1\"\n", + "print\"xbar = \",round(xbar,3),\"m\\n\"\n", + "\n", + "\n", + "# Solution 2\n", + "a = lambda y: ((math.sqrt(y)+y)/2)*(math.sqrt(y)-y)\n", + "b = lambda y: math.sqrt(y)-y\n", + "xbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "\n", + "\n", + "# Result Solution 2\n", + "print\"Solution 2\"\n", + "print\"xbar = \",round(xbar,3),\"m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.7 Page No 344" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ybar = 66.7 mm\n" + ] + } + ], + "source": [ + "# Example 9.7\n", + "from scipy import integrate\n", + "import math\n", + "\n", + "# Calculation\n", + "a = lambda y: 100*math.pi*y**(2)\n", + "b = lambda y: 100*math.pi*y\n", + "ybar = integrate.quad(a, 0, 100)[0]/integrate.quad(b, 0, 100)[0] #[millimeter]\n", + "\n", + "# Result\n", + "print\"ybar = \",round(ybar,1),\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Ex 9.8 Page No 346" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "zbar = 0.667 m\n" + ] + } + ], + "source": [ + "# Example 9.8\n", + "from scipy import integrate\n", + "import math\n", + "\n", + "# Calculation\n", + "a = lambda z: z*200*z*math.pi*0.5**(2)\n", + "b = lambda z: 200*z*math.pi*0.5**(2)\n", + "zbar = integrate.quad(a, 0, 1)[0]/integrate.quad(b, 0, 1)[0] #[meter]\n", + "\n", + "# Result\n", + "print\"zbar = \",round(zbar,3),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.9 Page No 352" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "xbar = 45.5 mm\n", + "ybar = -22.5 mm\n", + "zbar = -0.805 mm\n" + ] + } + ], + "source": [ + "# Example 9.9\n", + "import math\n", + "\n", + "# Calculation\n", + "xbar = (60*math.pi*60+0*40+0*20)/(math.pi*60+40+20) #[millimeter]\n", + "ybar = (-38.2*math.pi*60+20*40+40*20)/(math.pi*60+40+20) #[millimeter]\n", + "zbar = (0*math.pi*60+0*40+-10*20)/(math.pi*60+40+20) #[millimeter]\n", + "\n", + "# Result\n", + "print\"xbar = \",round(xbar,1),\"mm\"\n", + "print\"ybar = \",round(ybar,1),\"mm\"\n", + "print\"zbar = \",round(zbar,3),\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.10 Page No 353" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "xbar = -0.348 m\n", + "ybar = 1.22 m\n" + ] + } + ], + "source": [ + "# Example 9.10\n", + "\n", + "# Calculation\n", + "xbar = (1*0.5*3*3+(-1.5)*3*3+(-2.5)*(-2)*1)/(0.5*3*3+3*3+(-2)*1) #[meter]\n", + "ybar = (1*0.5*3*3+1.5*3*3+2*(-2)*1)/(0.5*3*3+3*3+(-2)*1) #[meter]\n", + "\n", + "# Result\n", + "print\"xbar = \",round(xbar,3),\"m\"\n", + "print\"ybar = \",round(ybar,2),\"m\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.11 Page No 354" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "zbar = 14.6 mm\n" + ] + } + ], + "source": [ + "# Example 9.11\n", + "import math\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "pc = 8 #[milligram per meter cube]\n", + "ph = 4 #[milligram per meter cube]\n", + "\n", + "# Calculation\n", + "zbar = (50*pc*10**(-6)*(1/3)*math.pi*50**(2)*200 + (-18.75)*ph*10**(-6)*(2/3)*math.pi*50**(3) + 125*(-pc)*10**(-6)*(1/3)*math.pi*25**(2)*100 + 50*(-pc)*10**(-6)*math.pi*25**(2)*100)/(pc*10**(-6)*(1/3)*math.pi*50**(2)*200+ph*10**(-6)*(2/3)*math.pi*50**(3)+(-pc)*10**(-6)*(1/3)*math.pi*25**(2)*100+(-pc)*10**(-6)*math.pi*25**(2)*100) #[millimeter]\n", + "\n", + "# Result\n", + "print\"zbar = \",round(zbar,1),\"mm\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.13 Page No 368" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Solutuon 1\n", + "FR = 154.5 kN\n", + "h = 1.3 m\n", + "\n", + "Solutuon 2\n", + "FR = 154.5 kN\n", + "h = 1.3 m\n" + ] + } + ], + "source": [ + "# Example 9.13\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "b = 1.5 #[meter]\n", + "pw = 1000 #[kilogram per meter cube]\n", + "# Calculation\n", + "# Solution 1\n", + "# Let water pressure at depth A be pA and water pressure at depth B be pB\n", + "pA = pw*9.81*2/1000 #[kilo Pascal]\n", + "pB = pw*9.81*5/1000 #[kilo Pascal]\n", + "wA = round(b*pA,2) #[kilo Newton per meter]\n", + "wB = round(b*pB,2) #[kilo Newton per meter]\n", + "# let FR be area of trapezoid\n", + "FR = round((1/2)*3*(wA+wB),1) #[kilo Newton]\n", + "# Let h be force acting through centroid\n", + "h = round((1/3)*((2*wA+wB)/(wA+wB))*3,1) #[meter]\n", + "\n", + "# Result Solution 1\n", + "print\"Solutuon 1\"\n", + "print\"FR = \",(FR),\"kN\"\n", + "print\"h = \",(h),\"m\\n\"\n", + "\n", + "# Solution 2\n", + "FRe = round(wA*3,1) #[kilo Newton]\n", + "Ft = round((1/2)*(wB-wA)*3,1) #[kilo Newton]\n", + "FR = FRe + Ft #[kilo Newton]\n", + "# +ΣMRB(clockwise) = ΣMB\n", + "h = round((FRe*1.5+Ft*1)/FR,1) #[meter]\n", + "\n", + "# Result Solution 2\n", + "print\"Solutuon 2\"\n", + "print\"FR = \",(FR),\"kN\" \n", + "print\"h = \",(h),\"m\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.14 Page No 369" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "FR = 231.0 kN\n" + ] + } + ], + "source": [ + "# Example 9.14\n", + "from __future__ import division\n", + "\n", + "# Variable Declaration\n", + "b = 5 #[meter]\n", + "pw = 1020 #[kilogram per meter cube]\n", + "\n", + "# Calculation\n", + "pB = round(pw*9.81*3/1000,2) #[kilo Pascal]\n", + "wB = round(b*pB,1) #[kilo Newton per meter]\n", + "F_x = round((1/2)*3*wB,1) #[kilo Newton]\n", + "F_y = round(pw*9.81*5*(1/3)*1*3/1000,1) #[kilo Newton]\n", + "FR = round(math.sqrt(F_x**(2)+F_y**(2)),0) #[kilo Newton]\n", + "\n", + "# Result\n", + "print\"FR = \",(FR),\"kN\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex 9.15 Page No 370" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "F = 1.64 kN\n", + "xbar = 0\n", + "zbar = 0.5 m\n" + ] + } + ], + "source": [ + "# Example 9.15\n", + "from scipy import integrate\n", + "from __future__ import division\n", + "\n", + "# Calculation\n", + "a = lambda z: 9810*(z-z**(2))\n", + "F = round(integrate.quad(a, 0, 1)[0],2) #[Newton]\n", + "\n", + "# Resultant passes through centroid of volume\n", + "xbar = 0\n", + "a = lambda z: (9810/1635)*(z**(2)-z**(3))\n", + "zbar = round(integrate.quad(a, 0, 1)[0],1) #[meter]\n", + "\n", + "# Result\n", + "print\"F = \",(round(F/1000,2)),\"kN\"\n", + "print\"xbar = \",(xbar)\n", + "print\"zbar = \",(zbar),\"m\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [default]", + "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.12" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot1.png b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot1.png Binary files differnew file mode 100644 index 00000000..deb1e879 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot1.png diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot2.png b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot2.png Binary files differnew file mode 100644 index 00000000..b75faff2 --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot2.png diff --git a/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot3.png b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot3.png Binary files differnew file mode 100644 index 00000000..c3b384fc --- /dev/null +++ b/Engineering_Mechanics_(Statics,_Dynamics),_by_Hibler_and_Gupta/screenshots/plot3.png diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_1.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_1.ipynb new file mode 100644 index 00000000..ab69730a --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_1.ipynb @@ -0,0 +1,819 @@ +{
+ "metadata": {
+ "name": "chapter 1.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1:Fundamental Of Engineering Mechanics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1,Page No.8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "P=10 #N #Force1\n",
+ "Q=8 #N #Force2\n",
+ "alpha=60 #Degrees #Angle Between Two Forces\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Magnitude of Resultant Force \n",
+ "R=(P**2+Q**2+2*P*Q*cos(alpha*pi*180**-1))**0.5 #N\n",
+ " \n",
+ "#Result\n",
+ "print\"Magnitude of Resultant Force\",round(R,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant Force 15.62 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2,Page No.8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "alpha=60 #Degrees #Angle between Forces\n",
+ "R=20*(3)**0.5\n",
+ "\n",
+ "#Let P & Q be the Two forces\n",
+ "#As Two Forces are equal i.e P=Q\n",
+ "\n",
+ "#Magnitude of Resultant Force \n",
+ "#R=(P**2+Q**2+2*P*Q*cos(alpha*pi*180**-1))**0.5 #N\n",
+ "#After Sub values and Furhter simplifying above equations we get\n",
+ "#R=2*P*cos(alpha*2**-1*pi*180**-1)\n",
+ "\n",
+ "#Further on Simplifying we get\n",
+ "P=R*((3)**0.5)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force is 20.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.3,Page No.9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "#Case-1\n",
+ "R1=14 #N #Resultant1\n",
+ "alpha1=60 #Degrees #Angle between two forces\n",
+ "\n",
+ "#Case-2\n",
+ "R2=(136)**0.5\n",
+ "alpha2=90 #Degrees #Angle between two Forces\n",
+ "\n",
+ "#Let P And Q be the two forces\n",
+ "#R=(P**2+Q**2+2*P*Q**cos(alpha))\n",
+ "\n",
+ "#Now For case-1,we get Resultant as\n",
+ "#P**2+Q**2+P*Q=196 ............................(1)\n",
+ "\n",
+ "#For case-2,we get Resultant as\n",
+ "#P**2+Q**2=136 ...................................(2)\n",
+ "\n",
+ "#Subtracting Equation 2 from equation 1 we get\n",
+ "#P*Q=60 .........................................(3)\n",
+ "\n",
+ "#Multiplying abovw equation by 2 we get\n",
+ "#2*P*Q=120 .......................................(4)\n",
+ "\n",
+ "#Adding equation 4 to equation 2 we get\n",
+ "#P**2+Q**2+2*P*Q=256\n",
+ "#After Further simplifying we get\n",
+ "#P=16-Q ..........................(5)\n",
+ "\n",
+ "#Sub value of P in equation 3 we get\n",
+ "#Q**2-16*Q+60=0\n",
+ "a=1\n",
+ "b=-16\n",
+ "c=60\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "Q1=(-b+X**0.5)*(2*a)**-1\n",
+ "Q2=(-b-X**0.5)*(2*a)**-1\n",
+ "\n",
+ "#Now sub value of Q in equation 5 we get\n",
+ "P1=16-Q1\n",
+ "P2=16-Q2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of two Forces is:P2\",round(P2,2),\"N\"\n",
+ "print\" :Q1\",round(Q2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of two Forces is:P2 10.0 N\n",
+ " :Q1 6.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.4,Page No.10 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "P=50 #N #Force acting at pt O\n",
+ "Q=100 #N #force acting at pt O\n",
+ "alpha=30 #DEgree #Angle Between Two Forces\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#MAgnitude of Resultant\n",
+ "R=(P**2+Q**2+2*P*Q*cos(alpha*pi*180**-1))**0.5 #N\n",
+ "\n",
+ "#Angle Made by resultant with the direction of P\n",
+ "X=(Q*sin(alpha*180**-1*pi)*(P+(Q*cos(alpha*pi*180**-1)))**-1)\n",
+ "theta=arctan(X)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Angle made by resultant with x-axis is\n",
+ "Y=theta+alpha*2**-1 #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print theta\n",
+ "print\"Resultant in the Magnitude is\",round(R,2),\"N\"\n",
+ "print\"Resultant in the Direction is\",round(Y,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "20.103909361\n",
+ "Resultant in the Magnitude is 145.47 N\n",
+ "Resultant in the Direction is 35.1 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.5,Page No.10 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "R=1500 #N #REsultant of two Forces\n",
+ "alpha=90 #Degrees #Angle between two Forces\n",
+ "theta=36 #Degrees #Angle Made by Resultant with one Force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now From Equation of Direction of Resultant,we get\n",
+ "#tan(theta)=(Q*sin(alpha))*(P+Q*sin(alpha))**-1\n",
+ "#After Further sub values and simplifying we get\n",
+ "#Q=0.726*P .......................................(1)\n",
+ "\n",
+ "#Now From Equation of Resultant\n",
+ "#R=(P**2+Q**2+2*P*Q*cos(alpha))\n",
+ "#After sub values and further simplifying we get\n",
+ "#R=1.527*P**2 \n",
+ "#Therefore,we get value of P After simplifying above equation\n",
+ "P=(R**2*(1.527)**-1)**0.5\n",
+ "\n",
+ "#Sub value of P in equation 1 we get\n",
+ "Q=0.726*P \n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude Of Forces:P\",round(P,2),\"N\"\n",
+ "print\" :Q\",round(Q,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude Of Forces:P 1213.87 N\n",
+ " :Q 881.27 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.6,Page No.11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "#P+Q=120\n",
+ "R=180 #N #Resultant of two Forces\n",
+ "theta=90 #Degrees #Angle between force and Resultant\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now From Equation of Direction of Resultant,we get\n",
+ "#Tan(theta)=Q*sin(alpha)*(P+Q*sin(alpha))**-1\n",
+ "#After Further ssub values a in above equation and further simplifying we get\n",
+ "#P=-Q*cos(alpha) ..........(1)\n",
+ "\n",
+ "#Now From equation of Resultant we get\n",
+ "#R=(P**2++Q**2+2*P*Q*cos(alpha))**0.5\n",
+ "#After sub values and further simplifying\n",
+ "#Q-P=120 ......................................(1)\n",
+ "#P+Q=270 ......................................(2)\n",
+ "\n",
+ "#After Adding above equations i.e equations 1 and 2 we get\n",
+ "Q=390*2**-1 #N\n",
+ "\n",
+ "P=270-Q #N\n",
+ "\n",
+ "#Value of angle alpha\n",
+ "alpha=arccos(-P*Q**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Each Force:P\",round(P,2),\"N\"\n",
+ "print\" :Q\",round(Q,2),\"N\"\n",
+ "print\"Angle between Two Forces\",round(alpha,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Each Force:P 75.0 N\n",
+ " :Q 195.0 N\n",
+ "Angle between Two Forces 112.62 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.7,Page No.13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "W=1000 #N #Weight\n",
+ "#Angles\n",
+ "CAB=30 #Degrees\n",
+ "CBA=CBD=60 #Degrees\n",
+ "ACB=90 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "#Angle\n",
+ "CAD=30 #Degrees\n",
+ "\n",
+ "#In Right-Angle Triangle,Angle ADC\n",
+ "ACD=90-CAD #Degrees\n",
+ "\n",
+ "#In Right-Angle Triangle,Angle BDC\n",
+ "#Angle\n",
+ "BCD=90-CBD #Degrees\n",
+ "ACE=180-ACB-90-60 #DEgrees\n",
+ "BCE=180-ACE-ACB #DEGrees\n",
+ "\n",
+ "#Applying LAmi's Theorem at Point C\n",
+ "#T1*(sin150)**-1=T2*(sin(120)**-1=1000*sin(90)**-1\n",
+ "\n",
+ "#After Further simp;ifying we get\n",
+ "T1=W*sin(150*pi*180**-1) #N\n",
+ "T2=W*sin(120*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Tension in Chain is:T1\",round(T1,2),\"N\"\n",
+ "print\" :T2\",round(T2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in Chain is:T1 500.0 N\n",
+ " :T2 866.03 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.8,Page No.18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "W=900 #N #Weight at C\n",
+ "#Length\n",
+ "AC=4 #m \n",
+ "BC=3 #m\n",
+ "AB=5 #m\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#In Triangle ABC\n",
+ "X=AC**2+BC**2 \n",
+ "Y=AB**2 \n",
+ "\n",
+ "#Therefore,\n",
+ "#X=Y\n",
+ "\n",
+ "#Therefore,\n",
+ "#Triangle ABC is Right Angle Triangle,In Which Angle ACB=90 Degrees\n",
+ "alpha=arcsin(BC*AB**-1)*(180*pi**-1)\n",
+ "Beta=90-alpha\n",
+ "\n",
+ "#In Right Angle Triangle ADC,\n",
+ "theta1=90-alpha\n",
+ "\n",
+ "#In Right Angle Triangle BDC,\n",
+ "theta2=90-Beta\n",
+ "\n",
+ "#Now,Angles\n",
+ "ACE=180-theta1\n",
+ "BCE=180-theta2\n",
+ "\n",
+ "#Now applying ami's Theorem\n",
+ "#T1*(sin(BCE))**-1=T2*(sin(ACE))**-1=W*(sin(90))**-1\n",
+ "\n",
+ "#Tensions in chains \n",
+ "T1=W*sin(BCE*180**-1*pi) #N\n",
+ "T2=W*sin(ACE*180**-1*pi) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Tension in Chains are:T1\",round(T1,2),\"N\"\n",
+ "print\" :T2\",round(T2,2),\"N\"\n",
+ "\n",
+ "#Answer in hte book For T2 is incorrect"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in Chains are:T1 540.0 N\n",
+ " :T2 720.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.9,Page No.18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "W=15 #N #Weight at Pt C\n",
+ "OAC=FAC=60 #Degrees\n",
+ "CBD=BCF=45 #Degrees\n",
+ "FCA=90-FAC #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Using Lami's theorem,\n",
+ "#W*(sin(BCA))**-1=T1*(sin(ACE))**-1=T2*(sin(ACE))**-1\n",
+ "\n",
+ "#Angles\n",
+ "BCA=BCF+FCA #Degrees\n",
+ "ACE=180-FCA #Degrees\n",
+ "BCE=180-BCF #Degrees\n",
+ "\n",
+ "#Force's in the string AC\n",
+ "T1=W*sin(ACE*180**-1*pi)*(sin(BCA*180**-1*pi))**-1 #N\n",
+ "T2=W*sin(BCE*180**-1*pi)*(sin(BCA*180**-1*pi))**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Force's in the string:T1\",round(T1,2),\"N\"\n",
+ "print\" :T2\",round(T2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force's in the string:T1 7.76 N\n",
+ " :T2 10.98 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.10,Page No.16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "#Forces\n",
+ "P=50 #N\n",
+ "Q=100 #N\n",
+ "alpha=30 #Angle Between Two Forces\n",
+ "theta=15 #Degrees #Angle Made By Force P with x-axis\n",
+ "theta2=alpha+theta #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Sum Of COmponents of forces along X-Axis is\n",
+ "H=P*cos(theta*pi*180**-1)+Q*cos(theta2*pi*180**-1) #N\n",
+ "\n",
+ "#Sum Of COmponents of forces along Y-Axis is\n",
+ "V=P*sin(theta*pi*180**-1)+Q*sin(theta2*pi*180**-1) #N\n",
+ "\n",
+ "#MAgnitude Of Resultant Force is\n",
+ "R=(H**2+V**2)**0.5 #N\n",
+ "\n",
+ "#Let Direction Of Resultant Force be beta\n",
+ "#Direction Of Resultant Force is\n",
+ "beta=arctan(V*H**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant Force is\",round(R,2),\"N\"\n",
+ "print\"Direction of Resultant Force is\",round(beta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant Force is 145.47 N\n",
+ "Direction of Resultant Force is 35.1 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.11,Page No.17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "#Let 3Forces Be\n",
+ "R1=40 #KN\n",
+ "R2=15 #KN\n",
+ "R3=20 #KN\n",
+ "\n",
+ "#Angles Made by respective forces with X-Axis\n",
+ "theta1=60 #Degrees\n",
+ "theta2=120 #Degrees\n",
+ "theta3=240 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now sum of components of all forces along X-Axis\n",
+ "H=R1*cos(theta1*pi*180**-1)+R2*cos(theta2*pi*180**-1)+R3*cos(theta3*pi*180**-1)\n",
+ "\n",
+ "#Now sum of components of all forces along Y-Axis\n",
+ "V=R1*sin(theta1*pi*180**-1)+R2*sin(theta2*pi*180**-1)+R3*sin(theta3*pi*180**-1)\n",
+ "\n",
+ "#MAgnitude of Resultant Force is\n",
+ "R=(H**2+V**2)**0.5 #N\n",
+ "\n",
+ "#Direction of Resultant Force is\n",
+ "theta=arctan(V*H**-1)*(pi**-1*180)\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant Force is\",round(R,2),\"KN\"\n",
+ "print\"Direction of Resultant Force is\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant Force is 30.41 KN\n",
+ "Direction of Resultant Force is 85.28 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.12,Page No.18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "#Let 4 Forces Be\n",
+ "R1=10 #KN\n",
+ "R2=15 #KN\n",
+ "R3=20 #KN\n",
+ "R4=40 #KN\n",
+ "\n",
+ "#Angles Made by respective forces with X-Axis\n",
+ "theta1=30 #Degrees\n",
+ "theta2=60 #Degrees\n",
+ "theta3=90 #Degree\n",
+ "theta4=120 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now sum of components of all forces along X-Axis\n",
+ "H=R1*cos(theta1*pi*180**-1)+R2*cos(theta2*pi*180**-1)+R3*cos(theta3*pi*180**-1)+R4*cos(theta4*pi*180**-1)\n",
+ "\n",
+ "#Now sum of components of all forces along Y-Axis\n",
+ "V=R1*sin(theta1*pi*180**-1)+R2*sin(theta2*pi*180**-1)+R3*sin(theta3*pi*180**-1)+R4*sin(theta4*pi*180**-1)\n",
+ "\n",
+ "#MAgnitude of Resultant Force is\n",
+ "R=(H**2+V**2)**0.5 #N\n",
+ "\n",
+ "#Direction of Resultant Force is\n",
+ "theta4=arctan(V*H**-1)*(pi**-1*180)\n",
+ "theta=180+theta4 #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant Force is\",round(R,2),\"KN\"\n",
+ "print\"Direction of Resultant Force is\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant Force is 72.73 KN\n",
+ "Direction of Resultant Force is 93.03 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.13,Page No.19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "L=10 #m #Length of beam\n",
+ "W=200 #N #Pt Load\n",
+ "\n",
+ "#Distances\n",
+ "L_AC=4 #m\n",
+ "L_CB=6 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the forces acting at A & B\n",
+ "#Taking Moment at A\n",
+ "R_B=(W*L_CB)*L**-1 #N\n",
+ "R_A=W-R_B #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Beam Reactions are:R_A\",round(R_A,2),\"N\"\n",
+ "print\" :R_B\",round(R_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Beam Reactions are:R_A 80.0 N\n",
+ " :R_B 120.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.14,Page No.20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration of Variables\n",
+ "\n",
+ "#Let 4 Forces be\n",
+ "F1=10 #N\n",
+ "F2=20 #N\n",
+ "F3=30 #N\n",
+ "F4=40 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Net Forces in Horizontal direction is\n",
+ "H=F1-F3 #N\n",
+ "\n",
+ "#Net Forces in Vertical direction is\n",
+ "V=F2-F4 #N\n",
+ "\n",
+ "#Resultant Force is given by\n",
+ "R=(H**2+V**2)**0.5 #N\n",
+ "\n",
+ "#Direction of resultant Forces\n",
+ "theta=arctan(V*H**-1)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Since H & V are negative theta lies between 180 & 270\n",
+ "theta2=180+theta #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force is\",round(R,2),\"N\"\n",
+ "print\"Direction of Force is\",round(theta2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force is 28.28 N\n",
+ "Direction of Force is 225.0 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_11.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_11.ipynb new file mode 100644 index 00000000..9a2b5379 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_11.ipynb @@ -0,0 +1,1387 @@ +{
+ "metadata": {
+ "name": "chapter 11.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 11:Belts,Ropes And Chain Drives"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.1,Page No.386"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "N1=200 #r.p.m\n",
+ "d1=51 #cm #Dia. of engine\n",
+ "d2=30 #cm #Dia. of driven shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Speed of driven shaft\n",
+ "N2=d1*d2**-1*N1 #r.p.m\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of driven shaft is\",round(N2,2),\"r.p.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of driven shaft is 340.0 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.2,Page No.386"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "t=1 #cm #thickness\n",
+ "N1=200 #r.p.m\n",
+ "d1=51 #cm\n",
+ "d2=30 #cm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Speed of shaft\n",
+ "N2=(d1+t)*(d2+t)**-1*N1 #r.p.m\n",
+ "\n",
+ "#Result\n",
+ "print\"speed of shaft is\",round(N2,2),\"r.p.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "speed of shaft is 335.48 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.3,Page No.388"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "N1=200 #r.p.m\n",
+ "N2=300\n",
+ "d1=60 #cm\n",
+ "t=0.5 #cm\n",
+ "s=4 #%\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Diameter of pulley\n",
+ "d2=N1*N2**-1*d1 #cm\n",
+ "\n",
+ "#Taking belt thickness\n",
+ "d2_2=(d1+t)*N1*N2**-1-t\n",
+ "\n",
+ "#Also considering slip\n",
+ "d2_3=(d1+t)*N1*N2**-1*(1-s*100**-1)-t #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"Diameter of belt is:Neglecting belt thickness\",round(d2,2),\"cm\"\n",
+ "print\" :Belt thickness only\",round(d2_2,2),\"cm\"\n",
+ "print\" :Considering belt thickness and slip\",round(d2_3,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of belt is:Neglecting belt thickness 40.0 cm\n",
+ " :Belt thickness only 39.83 cm\n",
+ " :Considering belt thickness and slip 38.22 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.4,Page No.389"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=1 #m #dia. of driver pulley\n",
+ "N1=200 #r.p.m #Speed of driver pulley\n",
+ "d2=2.5 #m #Dia. of driven pulley\n",
+ "f1=1.44 #N/mm**2 #strress\n",
+ "f2=0.49 #N/mm**2 \n",
+ "E=100 #N/mm**2 #Young's Modulus\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Speed of driven pulley\n",
+ "N2=d1*d2**-1*(E+round((f2)**0.5,2))*(E+round((f1)**0.5,2))**-1*N1\n",
+ "\n",
+ "#Speed if creep is neglected\n",
+ "N2_2=d1*d2**-1*N1 #r.p.m\n",
+ "\n",
+ "#Speed lost by driven pulley due to creep\n",
+ "N=N2_2-N2\n",
+ "\n",
+ "#Result\n",
+ "print\"speed Lost by driven pulley due to creep is\",round(N,3),\"r.p.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "speed Lost by driven pulley due to creep is 0.395 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.5,Page No.390"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=1 #m #Diameter\n",
+ "N1=200 #r.p.m\n",
+ "d2=2.5 #m\n",
+ "b=500 #mm #width\n",
+ "t=10 #mm #thickness\n",
+ "E=100 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area\n",
+ "A=b*t #mm**2\n",
+ "\n",
+ "#Tension on tight side\n",
+ "T1=10*b\n",
+ "\n",
+ "#Tension on slack side\n",
+ "T2=4*b #N\n",
+ "\n",
+ "#Stress on tight side\n",
+ "f1=T1*A**-1 #N/mm**2\n",
+ "\n",
+ "#Stress on slack side\n",
+ "f2=T2*A**-1 #N/mm**2\n",
+ "\n",
+ "#Speed of driven pulley\n",
+ "N2=d1*d2**-1*(E+(f2)**0.5)*(E+(f1)**0.5)**-1*N1\n",
+ "\n",
+ "#Speed if creep is neglected\n",
+ "N2_2=d1*d2**-1*N1 #r.p.m\n",
+ "\n",
+ "#Speed lost by driven pulley due to creep\n",
+ "N=N2_2-N2\n",
+ "\n",
+ "#Result\n",
+ "print\"speed Lost by driven pulley due to creep is\",round(N,2),\"r.p.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "speed Lost by driven pulley due to creep is 0.29 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.6,Page No.392"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=80 #cm #Diameter of driver pulley on engine\n",
+ "d2=40 #cm #Dia. of follower pulley on line shaft\n",
+ "d3=100 #cm #Dia. of driver pulley on line shaft\n",
+ "d4=20 #cm #Dia. of follower pulley on dynamo shaft\n",
+ "s1=s2=2.5 \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Speed of dynamo shaft\n",
+ "\n",
+ "#When there is no slip\n",
+ "N4=d1*d3*(d2*d4)**-1*N1 #r.p.m\n",
+ "\n",
+ "##When there is slip of 2.5 %\n",
+ "N4_2=N1*d1*d3*(d2*d4)**-1*(1-s1*100**-1)*(1-s2*100**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of the dynamo when:When there is no slip\",round(N4,2),\"r.p.m\"\n",
+ "print\" :When there is slip of 2.5 %\",round(N4_2,2),\"r.p.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of the dynamo when:When there is no slip 2000.0 r.p.m\n",
+ " :When there is slip of 2.5 % 1901.25 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.7,Page No.397"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "x=600 #cm #Distance between shafts\n",
+ "r1=30 #cm #radius\n",
+ "r2=20 #cm \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#If belt is open \n",
+ "L1=pi*(r1+r2)+(r1-r2)**2*x**-3+2*x #cm \n",
+ "\n",
+ "#If belt is crossed\n",
+ "L2=pi*(r1+r2)+(r1+r2)**2*x**-1+2*x #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"If belt is open Length is\",round(L1,2),\"cm\"\n",
+ "print\"If belt is crossed length is\",round(L2,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "If belt is open Length is 1357.08 cm\n",
+ "If belt is crossed length is 1361.25 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.8,Page No.397"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#speed of shafts\n",
+ "N1=N3=N5=160 #r.p.m\n",
+ "N2=60 #r.p.m\n",
+ "N4=80 #r.p.m\n",
+ "N6=100 #r.p.m\n",
+ "x=180 #cm #Distance between shafts\n",
+ "r1=15 #cm #Radius of smallest pulley\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Radii of pulley 2\n",
+ "r2=r1*N1*N2**-1 #cm\n",
+ "\n",
+ "#using same above equation for radii of pulley 3 we get and further simplifying we get\n",
+ "#r4=2*r3 ..................1\n",
+ "\n",
+ "#but for crossed belt equation is\n",
+ "#r1+r2=r3+r4=r5+r6 .................2\n",
+ "#After further simplifying we get\n",
+ "r3=(r1+r2)*3**-1 #cm\n",
+ "r4=2*r3 #cm\n",
+ "\n",
+ "#Using same above equation and further simplifying we get\n",
+ "#r6=1.6*r5 ...............3\n",
+ "\n",
+ "#sub value of r6 in equation we get\n",
+ "r5=(r1+r2)*2.6**-1 #cm\n",
+ "r6=1.6*r5 #cm\n",
+ "\n",
+ "#Length of open belt\n",
+ "L=pi*(r1+r2)+(r1-r2)**2*x**-1+2*x #cm\n",
+ "\n",
+ "#For pulley 3 and 4 equation is\n",
+ "#L=pi*(r3+r4)+(r3-r4)**2*x**-1+2*x\n",
+ "#sub value in above equation we get an equation as\n",
+ "#r3**2+1696.5*r3-31710.6=0\n",
+ "a=1\n",
+ "b=1696.5\n",
+ "c=-31710.6\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "r3_2=(-b+X**0.5)*2**-1 #cm\n",
+ "r4_2=2*r3_2 #cm\n",
+ "\n",
+ "#Sim for r5 & r6 \n",
+ "\n",
+ "#L=pi*(r6+r5)+(r6-r5)**2*x**-1+2*x\n",
+ "#sub value in above equation we get an equation as\n",
+ "#r5**2+4084*r5-88085=0\n",
+ "a=1\n",
+ "b=4084\n",
+ "c=-88085\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "r5_2=(-b+X**0.5)*2**-1 #cm\n",
+ "r6_2=1.6*r5_2 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"Radii of two stepped pulleys is:For crossed belt:r3\",round(r3,2),\"cm\"\n",
+ "print\" :r4\",round(r4,2),\"cm\"\n",
+ "print\" :r5\",round(r5,2),\"cm\"\n",
+ "print\" :r6\",round(r6,2),\"cm\"\n",
+ "print\"Radii of two stepped pulleys is:For open belt:r3_2\",round(r3_2,2),\"cm\"\n",
+ "print\" :r4_2\",round(r4_2,2),\"cm\"\n",
+ "print\" :r5_2\",round(r5_2,2),\"cm\"\n",
+ "print\" :r6_2\",round(r6_2,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Radii of two stepped pulleys is:For crossed belt:r3 18.33 cm\n",
+ " :r4 36.67 cm\n",
+ " :r5 21.15 cm\n",
+ " :r6 33.85 cm\n",
+ "Radii of two stepped pulleys is:For open belt:r3_2 18.49 cm\n",
+ " :r4_2 36.98 cm\n",
+ " :r5_2 21.46 cm\n",
+ " :r6_2 34.33 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.9,Page No.403"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=1.2 #m #Diameter\n",
+ "N=200 #r.p.m #Speed\n",
+ "theta=165*pi*180**-1 #radians\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "T1=3000 #N #MAx Tension\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*d*N*60**-1 #m/s\n",
+ "\n",
+ "#From ration of tensions we get\n",
+ "#T1*T2=e**mu*theta \n",
+ "#After simplifying we get\n",
+ "#e**mu*theta =2.3714\n",
+ "T2=T1*2.3714**-1 #N\n",
+ "\n",
+ "#Power transmitted\n",
+ "P=(T1-T2)*v*1000**-1 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power transmitted is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power transmitted is 21.8 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.10,Page No.403"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=1.20 #m #Diameter\n",
+ "r1=0.6 #m #Radius\n",
+ "r2=0.25 #m \n",
+ "x=4 #m #Distance between shafts\n",
+ "T1=1855.3 #N #Max TRension\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "N1=200 #r.p.m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*d1*N1*60**-1 #m/s\n",
+ "\n",
+ "##Let sin(alpha)=X\n",
+ "X=(r1-r2)*x**-1\n",
+ "alpha=arcsin(X)*(pi**-1*180)\n",
+ "\n",
+ "#Angle of contact\n",
+ "theta=180-2*alpha\n",
+ "\n",
+ "#From equation of max tension and further simplifying we get\n",
+ "T2=1855.3*2.435**-1 #N\n",
+ "\n",
+ "#Power transmitted\n",
+ "P=(T1-T2)*v*1000**-1 #KW\n",
+ "\n",
+ "#Torque\n",
+ "t1=(T1-T2)*r1 #N*m\n",
+ "t2=(T1-T2)*r2 #Nm\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Power transmitted is\",round(P,2),\"KN\"\n",
+ "print\"Torque Exerted on driving shaft is:t1\",round(t1,2),\"N*m\"\n",
+ "print\" :t2\",round(t2,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power transmitted is 13.74 KN\n",
+ "Torque Exerted on driving shaft is:t1 656.02 N*m\n",
+ " :t2 273.34 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.11,Page No.407"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "theta=2.88\n",
+ "v=28.33 #m/s #velocity\n",
+ "b=20 #cm #Width\n",
+ "t=0.8 #cm #thickness\n",
+ "rho=10**-3 #Kg/cm**3 #density\n",
+ "f=250 #N/cm**2 #Stress\n",
+ "mu=0.25 #coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max Tension\n",
+ "Tm=f*b*t #N\n",
+ "\n",
+ "#mass\n",
+ "m=rho*b*t*100 #Kg\n",
+ "\n",
+ "#Centrifugal Tension\n",
+ "Tc=m*v**2 #N\n",
+ "\n",
+ "#Tension on tight side\n",
+ "T1=Tm-Tc #N\n",
+ "\n",
+ "#From ratio of tension equation we get\n",
+ "T2=T1*2.056**-1 #N\n",
+ "\n",
+ "#MAx Power\n",
+ "P=(T1-T2)*v*1000**-1 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Power transmitted is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Power transmitted is 39.52 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.12,Page No.408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=10**-3 #kg/cm**3 #density\n",
+ "f=250 #N/cm**2 #stress\n",
+ "b=20 #cm #width\n",
+ "t=1.2 #cm #thickness\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#MAss\n",
+ "m=rho*b*t*100\n",
+ "\n",
+ "#MAx tension\n",
+ "Tm=f*b*t #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=(Tm*(3*m)**-1)**0.5 #m/s\n",
+ "\n",
+ "#From equation of max tension and further simplifying we get\n",
+ "T1=2*3**-1*Tm #N\n",
+ "T2=T1*2**-1 #N\n",
+ "\n",
+ "#Power \n",
+ "P=(T1-T2)*v*(1000)**-1 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Power transmitted is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Power transmitted is 57.74 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.13,Page No.409"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=9 #KW #Power\n",
+ "d1=1.2 #m #Diameter\n",
+ "N1=200 #r.p.m\n",
+ "theta=165*pi*180**-1 #radians\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "f=140 #N/cm**2 #Stress\n",
+ "rho=10**-3 #kg/cm**3\n",
+ "t=1 #cm #thickness\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Ratio of tension equation we get\n",
+ "#T1*T2=e**mu*theta \n",
+ "#After simplifying we get\n",
+ "#e**mu*theta =2.3714\n",
+ "#T1=2.3714*T2 ................1\n",
+ "\n",
+ "#Max tension in belt\n",
+ "#Tm=f*b*t ..............2\n",
+ "\n",
+ "#Centrifugal tension\n",
+ "#Tc=m*v**2 .....................3\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*d1*N1*60**-1 #m/s\n",
+ "\n",
+ "#mass\n",
+ "#m=rho*b*t*100\n",
+ "#After simplifying we get\n",
+ "#m=b*10**-1\n",
+ "\n",
+ "#Sub value of m in equation 2 and further simplfying we get\n",
+ "#T1-T2=716.5\n",
+ "\n",
+ "#After further simplifying equations 1,2,3 we get\n",
+ "T2=716.5*1.3714**-1 #N\n",
+ "T1=2.3714*T2 #N\n",
+ "\n",
+ "#sub value in MAx tension and further simplifying we get\n",
+ "b=1238.96*124**-1 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"Width of belt is\",round(b,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Width of belt is 9.99 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.14,Page No.411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "b=100 #mm #Width\n",
+ "t=10 #mm #thickness\n",
+ "theta=2.79 #radians\n",
+ "rho=10**-6 #kg/mm**3\n",
+ "mu=0.25 #coefficient of friction\n",
+ "f=1.5 #N/mm**2\n",
+ "g=9.81 \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#MAx tension\n",
+ "Tm=f*b*t #N\n",
+ "\n",
+ "#From Ratio of tension equation we get\n",
+ "#T1*T2=e**mu*theta \n",
+ "#After simplifying we get\n",
+ "#e**mu*theta =2\n",
+ "\n",
+ "#For Max power\n",
+ "Tc=Tm*3**-1 #N\n",
+ "\n",
+ "#From max transmissiom equation\n",
+ "T1=Tm-Tc\n",
+ "T2=T1*2**-1 #N\n",
+ "\n",
+ "#MAss\n",
+ "m=rho*b*t*1000 #Kg\n",
+ "\n",
+ "#Weight\n",
+ "W=m*g #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=(Tm*(3*m)**-1)**0.5 #m/s\n",
+ "\n",
+ "#Power transmitted\n",
+ "P=(T1-T2)*v*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Power that can be transmitted is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Power that can be transmitted is 11.18 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.15,Page No.412"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=60 #cm #diameter\n",
+ "r1=30 #cm #Radius\n",
+ "d2=24 #cm \n",
+ "r2=12 #cm\n",
+ "x=300 #cm #dist between two shafs\n",
+ "N2=300 #r.p.m #speed of small pulley\n",
+ "mu=0.3 #coefficient of friction\n",
+ "m=0.6703 #kg\n",
+ "t=100 #N per cm width #Safe working tension\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt sin(Alpha)=X\n",
+ "alpha=arcsin((r1-r2)*x**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Using equation of ratio of tension\n",
+ "#T1*T2**-1=e**mu*theta ...........1\n",
+ "#Simplifying furter we get value of\n",
+ "#e**mu*theta=2.474\n",
+ "#T1=2.474*T2 ...................1\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*d2*N2*60**-1*10**-2 #m/s\n",
+ "\n",
+ "#Sub value of v and P in equation of power transmited and further simplifying we get\n",
+ "#(T1-T2)=994.7 .....................2\n",
+ "#Sub value of T1 from equation 1 we get\n",
+ "T2=994.7*1.474**-1 #N\n",
+ "T1=2.474*T2 #N\n",
+ "\n",
+ "#Min width\n",
+ "b=T1*t**-1 #cm\n",
+ "\n",
+ "#Initial belt tension\n",
+ "To=(T1+T2)*2**-1 #N\n",
+ "\n",
+ "#Length of belt required\n",
+ "L=(pi*(r1+r2)+(r1+r2)**2*x**-1+2*x)*100**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum width of belt is\",round(b,2),\"cm\"\n",
+ "print\"Initial belt tension is\",round(To,2),\"N\"\n",
+ "print\"Length of belt required is\",round(L,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum width of belt is 16.7 cm\n",
+ "Initial belt tension is 1172.18 N\n",
+ "Length of belt required is 7.38 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.16,Page No.414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=1.5 #m #diameter\n",
+ "r1=0.75 #m #Radius\n",
+ "d2=1 #m \n",
+ "r2=0.5 #m\n",
+ "x=4.80 #dist between two shafs\n",
+ "To=3000 #N #Initial tension\n",
+ "N2=600 #r.p.m #speed of small pulley\n",
+ "mu=0.3 #coefficient of friction\n",
+ "m=0.6703 #kg\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*d2*N2*60**-1 #m/s\n",
+ "\n",
+ "#Centrifugal tension\n",
+ "Tc=m*v**2\n",
+ "\n",
+ "#from Initial Tensiom\n",
+ "#T1+T2=4677 ..........1\n",
+ "\n",
+ "#Let sin(alpha)=X\n",
+ "X=(r1-r2)*x**-1\n",
+ "alpha=arcsin(X)*(pi**-1*180)\n",
+ "\n",
+ "#Angle of contact\n",
+ "theta=(180-2*alpha)*pi*180**-1\n",
+ "\n",
+ "#From equation of ratio of tension we get\n",
+ "#t1=2.5*T2 ...................2\n",
+ "\n",
+ "#sub value in equation 1 we get\n",
+ "T2=4677*3.5**-1 #N\n",
+ "T1=2.5*T2\n",
+ "\n",
+ "#Power transmitted\n",
+ "P2=(T1-T2)*v*10**-3\n",
+ "\n",
+ "#Result\n",
+ "print\"Power transmitted is\",round(P2,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power transmitted is 62.97 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.18,Page No.418"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "alpha=25 #degrees #Angle of groove\n",
+ "Tmax=T1=1500 #N #Max tension\n",
+ "theta=170*pi*180**-1 #radians\n",
+ "mu=0.27 #coefficient of friction\n",
+ "v=2 #m/s #belt speed\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From ratio of tension\n",
+ "#T1*T2**-1=e**mu*cosec(alpha)\n",
+ "#AFter further simplifying we get\n",
+ "#e**mu*cosec(alpha)=8.109\n",
+ "T2=T1*8.109**-1 \n",
+ "\n",
+ "#Net driving tension\n",
+ "T3=(T1-T2) #N\n",
+ "\n",
+ "#Power transmitted\n",
+ "P=T3*v*10**-3 #W\n",
+ "\n",
+ "#Result\n",
+ "print\"Net driving tension is\",round(T3,2),\"N\"\n",
+ "print\"Power transmitted by the pulley is\",round(P,2),\"W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Net driving tension is 1315.02 N\n",
+ "Power transmitted by the pulley is 2.63 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.19,Page No.418"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "alpha=15 #Degrees\n",
+ "t=2 #cm #Depth pf belt\n",
+ "m=3.5*100*1000 #gm/l #mass\n",
+ "f=140 #N/cm**2 #Allowable stress\n",
+ "theta=140*pi*180**-1\n",
+ "mu=0.15 #coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "CF=2*tan(15*pi*180**-1)\n",
+ "GC=1-2*tan(15*pi*180**-1)\n",
+ "BC=2*GC\n",
+ "ED=2\n",
+ "DF=2\n",
+ "\n",
+ "#Area of v-belt\n",
+ "A=(ED+BC)*2**-1*DF\n",
+ "\n",
+ "#MAx permissible tension\n",
+ "Tmax=f*A #N\n",
+ "\n",
+ "#Centrifugal tension\n",
+ "Tc=Tmax*3**-1 #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=(Tc*m**-1)**0.5*1000 #m/s\n",
+ "\n",
+ "#tension on tight side\n",
+ "T1=Tmax-Tc #N\n",
+ " \n",
+ "#From ratio of tensions \n",
+ "#T1*T2**-1=e*mu*thta*cosec(alpha)\n",
+ "#After substituting values and furter simplifying we get value of\n",
+ "#e*mu*thta*cosec(alpha)=4.12\n",
+ "T2=T1*4.12**-1 #N\n",
+ "\n",
+ "#Power\n",
+ "P2=(T1-T2)*v*1000**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Power transmitted is\",round(P2,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Power transmitted is 4.09 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.20,Page No.420"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=75 #KW #Power\n",
+ "d1=1.50 #m #Dia. of driver pulley\n",
+ "N1=200 #r.p.m\n",
+ "alpha=22.5 #Angle of groove\n",
+ "mu=0.3 #coefficient of friction\n",
+ "theta=160*pi*180**-1\n",
+ "m=0.6 #kg #Mass\n",
+ "Tmax=800 #N #Max safe\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity of rope\n",
+ "v=pi*d1*N1*60**-1 #m/s\n",
+ "\n",
+ "#centrifugal Tension\n",
+ "Tc=m*v**2 #N\n",
+ "\n",
+ "#Tension in tight side of rope\n",
+ "T1=Tmax-Tc #N\n",
+ "\n",
+ "#Ratio of tension in rope\n",
+ "#T1*T2=e**mu*theta*cosec(alpha)\n",
+ "#After further simplifying we get value of e**mu*theta*cosec(alpha\n",
+ "#e**mu*theta*cosec(alpha=8.95\n",
+ "T2=T1*8.95**-1\n",
+ "\n",
+ "#Power Transmitted by onr rope\n",
+ "P2=(T1-T2)*v*1000**-1 #KW\n",
+ "\n",
+ "#No. of ropes required\n",
+ "n=P*P2**-1 \n",
+ "\n",
+ "#Initial rope tensuion\n",
+ "To=(T1+T2+2*Tc)*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"No. of ropes required for drive is\",round(n,2)\n",
+ "print\"Initial Rope tension is\",round(To,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "No. of ropes required for drive is 8.24\n",
+ "Initial Rope tension is 510.44 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.21,Page No.421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=0.40 #Dia. of pulley\n",
+ "N1=110 #speed #r.p.m\n",
+ "alpha=22.5 #Angle of groove\n",
+ "mu=0.28 #coefficient of friction\n",
+ "N=10 #No.of ropes\n",
+ "P=23.628 #KW #Power\n",
+ "theta=160*pi*180**-1 #radians\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#velocity\n",
+ "v=pi*d1*N1*60**-1 #m/s\n",
+ "\n",
+ "#Power transmited by one rope\n",
+ "P2=P*N**-1 #KW\n",
+ "\n",
+ "#Centrifugal Tension\n",
+ "#Tc=0.0281*C**2 ................1\n",
+ "\n",
+ "#Ratio of tension in rope\n",
+ "#T1=7.71*T2 ...........................2\n",
+ "\n",
+ "#From other formula of power transmited by one rope \n",
+ "#P2=(T1-T2)*v*1000**-1 \n",
+ "#After further substituting and simplifying we get\n",
+ "T2=1026*6.71**-1 #N\n",
+ "T1=7.71*T2 #N\n",
+ "\n",
+ "#Tmax=T1+T2\n",
+ "#After sub values and further simplifying we get\n",
+ "C=(96.86)**0.5 #cm #girth of rope\n",
+ "\n",
+ "Tc=0.0281*C**2 #N\n",
+ "\n",
+ "#Initial Tension\n",
+ "To=(T1+T2+2*Tc)*2**-1 #N\n",
+ "\n",
+ "#Dia. of each rope\n",
+ "d=C*pi**-1 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"Initial Tension is\",round(To,2),\"N\"\n",
+ "print\"Dia. of each rope is\",round(d,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Initial Tension is 668.63 N\n",
+ "Dia. of each rope is 3.13 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.22,Page No.422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=3.6 #m #Dia. of pulley\n",
+ "n=15 #No. of ropes\n",
+ "alpha=22.5 #Degrees\n",
+ "theta=170*pi*180**-1 #Angle of contact\n",
+ "mu=0.28 #angle of friction\n",
+ "Tmax=960 #N #MAx tension\n",
+ "m=1.5 #kg/l #mass of rope\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Centrifugal tension\n",
+ "Tc=Tmax*3**-1 #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=(Tmax*(3*m)**-1)**0.5 #m\n",
+ "N=60*v*(pi*D)**-1 #r.p.m\n",
+ "\n",
+ "#equation\n",
+ "#T1*T2**-1=e**mu*theta*cosec(alpha)\n",
+ "#After simlifying further we get \n",
+ "#e**mu*theta*cosec(alpha)=8.756\n",
+ "\n",
+ "#Tension in tight side of rope\n",
+ "T1=Tmax-Tc #N\n",
+ "\n",
+ "#Tension in slack side\n",
+ "T2=T1*8.756**-1\n",
+ "\n",
+ "#Max Power\n",
+ "P=(T1-T2)*v*1000**-1\n",
+ "\n",
+ "#Total max power\n",
+ "P2=P*n\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of the pulley in r.p.m is\",round(N,2),\"r.p.m\"\n",
+ "print\"Total max power is\",round(P2,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of the pulley in r.p.m is 77.49 r.p.m\n",
+ "Total max power is 124.2 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.23,Page No.423"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=9000 #N #Weight of casting\n",
+ "n=2.5 #turns\n",
+ "theta=5*pi #Total angle covered\n",
+ "D=0.3 #m #diameter\n",
+ "N=20 #Speed\n",
+ "mu=0.25 #Coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#equation\n",
+ "#W*P**-1=e**mu*theta\n",
+ "#After simlifying further we get \n",
+ "P=W*50.65**-1 #Tension in slack side of rope #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=pi*D*N*60**-1 #m/s\n",
+ "\n",
+ "#Power to raise casting\n",
+ "P2=(W-P)*v*1000**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Force Required by the man is\",round(P,2),\"N\"\n",
+ "print\"Power to raise the casting is\",round(P2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force Required by the man is 177.69 N\n",
+ "Power to raise the casting is 2.77 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_12.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_12.ipynb new file mode 100644 index 00000000..ae537da6 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_12.ipynb @@ -0,0 +1,1392 @@ +{
+ "metadata": {
+ "name": "chapter 12.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 12:Kinematics of Linear Motion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.1,Page No.437"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=2 #m/s #Initial velocity\n",
+ "v=5 #m/s #Final Velocity\n",
+ "t=4 #sec\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "a=(v-u)*t**-1 #m/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the body is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the body is 0.75 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.2,Page No.437"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=15 #m/s #Intital velocity\n",
+ "v=0 #m/s #Final velocity\n",
+ "t=5 #sec\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#acceleration\n",
+ "a=u*t**-1 #m/s**2\n",
+ "\n",
+ "#Distance\n",
+ "S=u*t-a*t**2*0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"Retardation is\",round(a,2),\"m/s**2\"\n",
+ "print\"Distance travelled by the car is\",round(S,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Retardation is 3.0 m/s**2\n",
+ "Distance travelled by the car is 37.5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.3,Page No.437"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=250 #m/s #Initial Velocity\n",
+ "v=0 #m/s #final Velocity\n",
+ "s1=0.40 #m #Distance\n",
+ "s2=0.20 #m #distance moved\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#acceleration\n",
+ "a=u**2*(2*s1)**-1 #m/s**2\n",
+ "\n",
+ "#velocity\n",
+ "v=(u**2-2*a*s2)**0.5 #m/s\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Velocity is\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 78125.0 m/s**2\n",
+ "Velocity is 176.78 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.4,Page No.438"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AB=100 #m #Distance AB\n",
+ "L_BC=100 #m #distance BC\n",
+ "t1=10 #s #Time taken by car from A to B\n",
+ "t2=8 #s #Time taken by car from B to C\n",
+ "s=100 #m #Distance\n",
+ "L_AC=L_AB+L_BC #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From equation of distance we get value of velocity\n",
+ "#s=10*V_A+50*a ...........................1\n",
+ "\n",
+ "#again using equation of distance we get\n",
+ "#L_AC=18*V_A+162*a .........................2\n",
+ "\n",
+ "#After simplifying above equations we get equations like\n",
+ "#900=90*V_A+450*a ......................3\n",
+ "#1000=90*V_A+810*a ..............4\n",
+ "\n",
+ "#Subtracting equations 3 by 4 we get\n",
+ "a=100*360**-1 #m/s**2\n",
+ "\n",
+ "#Velocity of car A\n",
+ "V_A=(100-13.9)*10**-1 #m/s\n",
+ "\n",
+ "#Velocity of car B\n",
+ "V_B=(L_BC-(a*t2**2*0.5))*t2**-1 #m/s\n",
+ "\n",
+ "#Distance OA\n",
+ "s3=V_A**2*(2*a)**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of car is\",round(a,2),\"m/s**2\"\n",
+ "print\"Velocity of car A\",round(V_A,2),\"m/s\"\n",
+ "print\"Velocity of car B\",round(V_B,2),\"m/s\"\n",
+ "print\"distance of mark A from starting point is\",round(s3,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of car is 0.28 m/s**2\n",
+ "Velocity of car A 8.61 m/s\n",
+ "Velocity of car B 11.39 m/s\n",
+ "distance of mark A from starting point is 133.44 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.5,Page No.440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #m/s #Initial velocity\n",
+ "a=2 #m/s**2 #Acceleration\n",
+ "u2=40 #m/s #Uniform velocity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#after simplifying Distance travelled we get\n",
+ "#t**2+20t+100=0 .................1\n",
+ "\n",
+ "#Distance travelled by police party=40*t ..........2\n",
+ "\n",
+ "#Equating equations 1 and 2 we get\n",
+ "#t**2-20*t+100\n",
+ "a=1\n",
+ "b=-20\n",
+ "c=100\n",
+ "\n",
+ "X=b**-4*a*c\n",
+ "\n",
+ "t=(-b+X**0.5)*(2*a)**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"TIme taken in which police van will overtake the car is\",round(t,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "TIme taken in which police van will overtake the car is 10.01 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.6,Page No.440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "v=10 #m/s #uniform Velocity\n",
+ "a=1 #m/s**2 #Uniform acceleration\n",
+ "u=10 #m/s #uniform velocity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From distance equation and further simplifying we get\n",
+ "#S=(t**2+100-20*t) .................1\n",
+ "\n",
+ "#again sub value in distance we get\n",
+ "#S=u*t ............2\n",
+ "\n",
+ "#Equating two equations and further simplifying we get\n",
+ "#t**2-40*t+100=0\n",
+ "a=1\n",
+ "b=-40\n",
+ "c=100\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "t1=(-b+X**0.5)*(2*a)**-1 #s\n",
+ "t2=(-b-X**0.5)*(2*a)**-1 #s\n",
+ "\n",
+ "#time required to catch smugglers car is\n",
+ "t3=(t1-10)\n",
+ "\n",
+ "#Result\n",
+ "print\"Time necesscary for the jeep to catch up with the smuggler's car is\",round(t3,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time necesscary for the jeep to catch up with the smuggler's car is 27.32 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.6(A),Page No.442"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0\n",
+ "a=4 #m/s**2\n",
+ "t1=7 #s\n",
+ "t2=6 #s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance travelled in 7 seconds\n",
+ "S7=u*t1+0.5*a*t1**2 #m\n",
+ "\n",
+ "#DistANCE TRAVELLED in 6 seconds\n",
+ "S6=u*t2+0.5*a*t2**2 #m\n",
+ "\n",
+ "#Distance travelled in 7th second\n",
+ "S7_2=S7-S6\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance travelled in 7th second is\",round(S7_2,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance travelled in 7th second is 26.0 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.7,Page No.442"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "S5=15 #m #Distance travelled for 5 th seconds\n",
+ "S10=25 #m #Distance travelled for 10 th seconds\n",
+ "n1=10\n",
+ "n2=5\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Equation for distance covered for nth seconds\n",
+ "#S=u+a*2**-1\n",
+ "\n",
+ "#distance covered in 10 th second\n",
+ "#S10=u+a*2**-1*(2*n1-1) ...................1\n",
+ "\n",
+ "#distance covered in 5 th second\n",
+ "#S5=u+a*2**-1*(2*n2-1) .........................2\n",
+ "\n",
+ "#Subtracting equation 2 by 1 we get\n",
+ "a=10*(19-9)**-1*2\n",
+ "\n",
+ "u=S5-9*2**-1*2\n",
+ "\n",
+ "#Result\n",
+ "print\"Initial Velocity of the body is\",round(a,2),\"m/s**2\"\n",
+ "print\"Acceleration of the body is\",round(u,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Initial Velocity of the body is 2.0 m/s**2\n",
+ "Acceleration of the body is 6.0 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.8,Page No.443"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "h=90 #3mm Height of tower\n",
+ "h1=30 #m #Height at which both particles meet\n",
+ "S1=60 #m #Distance travelled by first particle\n",
+ "S2=30 #m \n",
+ "g2=-9.81 #m/s**2\n",
+ "\n",
+ "#For Initial Velocity\n",
+ "u1=0 \n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Time\n",
+ "t1=((S1*2)*g**-1)**0.5 #s\n",
+ "\n",
+ "#For second particle\n",
+ "u2=(S2-0.5*g2*t1**2)*t1**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity with which second particle projected is\",round(u2,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity with which second particle projected is 25.73 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.9,Page No.443"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "h=800 #m #Height of aeroplane\n",
+ "U=166.67 #m/s \n",
+ "\n",
+ "#First case\n",
+ "u1=0\n",
+ "h2=800 #m #Height of bomb when released\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Time required to reach the ground\n",
+ "t=(h*2*(g)**-1)**0.5\n",
+ "\n",
+ "#Horizontal distance travelled\n",
+ "S=U*t\n",
+ "\n",
+ "#Result\n",
+ "print\"Time required to reach the ground is\",round(t,2),\"s\"\n",
+ "print\"Horizontal distance travelled is\",round(S,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time required to reach the ground is 12.77 s\n",
+ "Horizontal distance travelled is 2128.55 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.10,Page No.445"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #m/s #Initial velocity\n",
+ "g=9.81 #m/s**2 #acceleration due to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#t1+t2=4 ...........1\n",
+ "\n",
+ "#Depth of well after simplifying we get\n",
+ "#h=4.905*t1**2 ........2\n",
+ "\n",
+ "#Time taken by sound to reach from bottom of well\n",
+ "#t2=4.905*t1**2*350**-1 #s ...............3\n",
+ "\n",
+ "#Sub value in equation 1 and further simplifying we get\n",
+ "#4.905*t1**2+350*t1-1400=0\n",
+ "a=4.905 \n",
+ "b=350\n",
+ "c=-1400\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "t1=(-b+X**0.5)*(2*a)**-1 #s\n",
+ "\n",
+ "#Depth of well \n",
+ "h=4.905*t1**2 #m \n",
+ "\n",
+ "#Result\n",
+ "print\"Depth of well is\",round(h,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Depth of well is 70.75 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.11,Page No.446"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=19.6 #m/s #Initial velocity\n",
+ "h=24.5 #m #height of tower\n",
+ "g=9.80 #m/s**2 #acceleration de to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max height of stone\n",
+ "h1=(u**2)*(2*g)**-1 #m\n",
+ "\n",
+ "#Time for stone to move from A to C\n",
+ "t1=u*g**-1\n",
+ "\n",
+ "#Time for stone to move from C to D\n",
+ "h2=h+h1 #m #Max height to which stone will rise\n",
+ "t2=((h2*4.9**-1))**0.5 #s\n",
+ "\n",
+ "#Total time for stone to reach the ground\n",
+ "t=t1+t2 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Total time for stone to reach the ground is\",round(t,2),\"s\"\n",
+ "print\"Velocity of stone in downward travel is\",round(u,2),\"m/s\"\n",
+ "print\"Max height to which the stone will rise is\",round(h2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total time for stone to reach the ground is 5.0 s\n",
+ "Velocity of stone in downward travel is 19.6 m/s\n",
+ "Max height to which the stone will rise is 44.1 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12,Page No.447"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #Initial Velocity\n",
+ "t=5 #s #time taken by stone in striking the glass pane\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#velocity\n",
+ "v1=u+g*t #m/s\n",
+ "\n",
+ "#Velocity lost in breaking stones\n",
+ "v2=20*100**-1*v\n",
+ "\n",
+ "#Velocity of the stone after breaking the glass pane\n",
+ "v3=v1-v2 #m/s \n",
+ "\n",
+ "#distance travelled in t2=1 s\n",
+ "t2=1 #s\n",
+ "s=v3*t2+0.5*g*t2**2 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance travelled by the stone in next second is\",round(s,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance travelled by the stone in next second is 51.96 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.13,Page No.448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #m/s\n",
+ "s=53.90 #m #Distance\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Height \n",
+ "#After simplifying equation of distance we get\n",
+ "#h1=4.9*t**2 ..................................1\n",
+ "\n",
+ "#Distance travelleed in (t-1) s\n",
+ "#After simplifying equation of distance we get\n",
+ "#h2=4.9(t-1)**2 ..................................2\n",
+ "\n",
+ "#Distance travelled by object in last seconds\n",
+ "#h3=h-h2\n",
+ "#After substituting values in above equation we get\n",
+ "#h3=4.9(2*t-1)\n",
+ "\n",
+ "#Equating h3 to s we get after simplifying\n",
+ "t=12*2**-1 #m/s\n",
+ "\n",
+ "#height from which object falls\n",
+ "h1=4.9*t**2\n",
+ "\n",
+ "#Result\n",
+ "print\"height from which object falls is\",round(t,2),\"s\"\n",
+ "print\"Total time taken by object in falling is\",round(h1,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "height from which object falls is 6.0 s\n",
+ "Total time taken by object in falling is 176.4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.14,Page No.448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "g=9.80 #m/s**2\n",
+ "u=0 #m/s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance travelled in time t after simplifiying \n",
+ "#h=4.9*t**2\n",
+ "\n",
+ "#Distance travelled in (t-1)s\n",
+ "#h-h2=2*3**-1*h\n",
+ "\n",
+ "#Substituting value we get equation as\n",
+ "#2*t**2-6*t+3=0\n",
+ "a=2\n",
+ "b=-6\n",
+ "c=3\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "t=(-b+X**0.5)*(2*a)**-1 #s\n",
+ "t2=(-b-X**0.5)*(2*a)**-1 #s\n",
+ "\n",
+ "#Height of tower \n",
+ "h=4.9*t**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Height of tower is\",round(h,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Height of tower is 27.43 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.15,Page No.449"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u1=30 #m/s #Initial Vlocity of 1st object\n",
+ "u2=40 #m/s #Initial Velocity of2nd object\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#For the first object\n",
+ "#After simplifying we get\n",
+ "#h1=30*t-4.905*t**2 ................1\n",
+ "\n",
+ "#For second object\n",
+ "##After simplifying we get\n",
+ "#h2=40*(t-4)-4.905(t-4)**2 ...........2\n",
+ "\n",
+ "#Equating equations 1 and 2 and further simplify we get\n",
+ "t=238.48*49.24**-1 #s\n",
+ "\n",
+ "#height\n",
+ "h=30*t-4.905*t**2 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Time whrn the two objects will meet each other is\",round(t,2),\"s\"\n",
+ "print\"Height from the earth at which the two objects will meet is\",round(h,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time whrn the two objects will meet each other is 4.84 s\n",
+ "Height from the earth at which the two objects will meet is 30.24 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.16,Page No.450"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "h=100 #m #Height of tower\n",
+ "u1=0 #Initial velocity of 1st particle\n",
+ "S2=30 #m #Distace travelled by 2nd particle\n",
+ "S1=70 #m #Distance travelled by 1st paerticle\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#time of particle 1 \n",
+ "t=(S1*(g*2**-1)**-1)**0.5 #s\n",
+ "\n",
+ "#Initial velocity\n",
+ "u=((S2+(g*2**-1)*t**2)*t**-1) #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity with which the second particle is projected upward is\",round(u,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity with which the second particle is projected upward is 26.47 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.16(A),Page No.451"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "n=5 #Rate of drops\n",
+ "u=0 #Initial Velocity\n",
+ "v=3 #m/s #Final Velocity\n",
+ "g=9.81 #m/s**2\n",
+ "t=3*9.81**-1 #s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Vertical Distance \n",
+ "Sb=u*t+0.5*g*t**2 #m\n",
+ "\n",
+ "#time taken by drop A \n",
+ "t2=3*9.81**-1-0.2 #s\n",
+ "\n",
+ "#Vertical Distance travelled from mouth of faucet by drop A\n",
+ "Sa=u*t2+0.5*g*t2**2 #m\n",
+ "\n",
+ "#Vertical Separation between drops A and B\n",
+ "S=Sb-Sa #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Vertical separation between two drops is\",round(S,3),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vertical separation between two drops is 0.404 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.18,Page No.453"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #m/s**2 #Initial Velocity\n",
+ "#S=(x+20) #m #distance\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance travelled by Body in time t\n",
+ "#x=0.5*g*t**2 .................................1\n",
+ "\n",
+ "#Distance travelled by body in time (t+0.4)s\n",
+ "#S2=0.5(t**2+0.**t+0.16) ........................2\n",
+ "\n",
+ "#Subtracting equation 2 from 1 we get\n",
+ "t=3.92*0.80**-1\n",
+ "\n",
+ "#Distance travelled by Body in time t is given by\n",
+ "x=0.5*g*t**2 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance travelled by Body in time t is\",round(x,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance travelled by Body in time t is 117.77 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.19,Page No.454"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Equation of displacement\n",
+ "#s=t**3+3*t**2+4*t+5\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#After differentiating displacement equation we get velocity at t=0\n",
+ "#At \n",
+ "t=0\n",
+ "v=3*t**2+6*t+4 #m/s\n",
+ "\n",
+ "#Velocity at t=4 seconds\n",
+ "t2=4\n",
+ "v2=3*t2**2+6*t2+4 #m/s\n",
+ "\n",
+ "#After differentiating w.r.to t we get equation of acceleration as\n",
+ "#a=6*t+6\n",
+ "\n",
+ "#at t=0\n",
+ "t3=0\n",
+ "a=6*t3+6 #m/s**2\n",
+ "\n",
+ "#at t=4\n",
+ "t4=4\n",
+ "a2=6*t4+6 #m/s**2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity at start of 4seconds is\",round(v,2),\"m/s\"\n",
+ "print\"Velocity after 4seconds is\",round(v2,2),\"m/s\"\n",
+ "print\"Acceleration at start is\",round(a,2),\"m/s**2\"\n",
+ "print\"Acceleration after four seconds is\",round(a2,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity at start of 4seconds is 4.0 m/s\n",
+ "Velocity after 4seconds is 76.0 m/s\n",
+ "Acceleration at start is 6.0 m/s**2\n",
+ "Acceleration after four seconds is 30.0 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.20,Page No.455"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Equation of particle motion\n",
+ "#s=18*t+3*t**2-2*t**3\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#After differentiating w.r.to t to above equation we get\n",
+ "#6*t**2-6*t-18\n",
+ "\n",
+ "#at \n",
+ "t=0\n",
+ "#Velocity\n",
+ "v=6*t**2+6*t+18\n",
+ "\n",
+ "#After differentiating above equation again we get equation of acceleration\n",
+ "#at \n",
+ "t2=0\n",
+ "a=6-12*t2\n",
+ "\n",
+ "#After differentiating equation of velocity we get value of \n",
+ "t2=6*12**-1\n",
+ "\n",
+ "vmax=18+6*t2-6*t2**2 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity at start is\",round(v,2),\"m/s\"\n",
+ "print\"Acceleration at start is\",round(a,2),\"m/s**2\"\n",
+ "print\"Time when it reaches max velocity is\",round(t2,2),\"s\"\n",
+ "print\"MAx velocity of particle is\",round(vmax,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity at start is 18.0 m/s\n",
+ "Acceleration at start is 6.0 m/s**2\n",
+ "Time when it reaches max velocity is 0.5 s\n",
+ "MAx velocity of particle is 19.5 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.21,Page No.457"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#a=-**s**-2 #m/s**2\n",
+ "t=1 #s #time\n",
+ "s=4 #m #Distance\n",
+ "v=2 #m/s #Velocity\n",
+ "t2=2 #s #time\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Acceleration equation\n",
+ "#a=v*(dv*ds**-1)\n",
+ "#After sub values and further simplifying and integrating the obtained equation we get\n",
+ "#v**2=8*s**-1+C1 ...................1\n",
+ "#Sub equation in above equations we get\n",
+ "C1=v**2*2**-1-8*s**-1\n",
+ "\n",
+ "#Sub value in equation 1 and furter simplifying and integrating obtained equation we get\n",
+ "#2*3**-1*s**(3*2**_1)=4*t+c2\n",
+ "#Sub values\n",
+ "C2=2*3**-1*s**(3*2**-1)-4*t\n",
+ "\n",
+ "#Sub value of C2 and further sub values we get\n",
+ "s=14**(2*3**-1) \n",
+ "\n",
+ "#Acceleration\n",
+ "a=8*s**-2 #m/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration when t=2 is\",round(a,4),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration when t=2 is 0.2371 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.22,Page No.458"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#a=4*t**2-2 \n",
+ "t1=0 \n",
+ "s1=-2 #m\n",
+ "\n",
+ "t2=2 #s\n",
+ "s2=-20 #m\n",
+ "\n",
+ "t3=4 #s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#a=4*t**2-2\n",
+ "#After integrating above equations we getand further simplifying we get equation of distance as\n",
+ "#s=t**4*3**-1-t**2+C1*t+C2\n",
+ "C2=s1-t1**4*3**-1 \n",
+ "\n",
+ "#s=t**4*3**-1-t**2+C1*t-2 ...............3\n",
+ "#Now after sub in equation and further simplifying the equation we get\n",
+ "C1=(s2-t2**4*3**-1+t2**2+2)*t2**-1\n",
+ "#Sub in above equation 3 we get\n",
+ "\n",
+ "#when t=4\n",
+ "t4=4\n",
+ "s3=t4**4*3**-1-t4**2+C1*t4-2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Position of particle when t=4 s is\",round(s3,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Position of particle when t=4 s is 28.67 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.23,Page No.460"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#v=2*t**3-t**2-2*t**2-2*t+4\n",
+ "t=2 #s\n",
+ "s=10 #m\n",
+ "t2=6 #s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#acceleration\n",
+ "a=6*t2**2-2*t2-2 #m/s**2\n",
+ "\n",
+ "#Displacement when t=6s \n",
+ "#After integrating and further simplifying the equation of velocity we get equation of displacement as\n",
+ "#s=2*t**4*4**-1-t**3*3**-1-t**2+4*t+C ...............1\n",
+ "#After sub values we get \n",
+ "C=s-(2*t**4*4**-1-t**3*3**-1-t**2+4*t)\n",
+ "\n",
+ "#Sub value of C in equation \n",
+ "s2=2*t2**4*4**-1-t2**3*3**-1-t2**2+4*t2+C #m \n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Displacement of particle when t=6 s is\",round(s2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 202.0 m/s**2\n",
+ "Displacement of particle when t=6 s is 564.67 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.24,Page No.461"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#a=2-3*t\n",
+ "t=5 #s \n",
+ "t2=10 #s\n",
+ "v=20 #m/s #velocity\n",
+ "s=85 #m #displacement\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Acceleration at start when t=0 \n",
+ "a=2-3*t \n",
+ "\n",
+ "#Equation of acceleration after integrating and further simplifying we get\n",
+ "C1=v-(2*t-3*t**2*2**-1)\n",
+ "\n",
+ "#After substituting in equation and further simplifying we get\n",
+ "#At t3=0\n",
+ "t3=0\n",
+ "v=2*t3-3*t3**2*2**-1+C1\n",
+ "\n",
+ "#After differentiating equation of velocity and integrating it we get equation of displacement as\n",
+ "#s=t**2-3*t**3*6**-1+47.5*t+C2 \n",
+ "C2=s-(t2**2-3*t2**3*6**-1+47.5*t2)\n",
+ "#sub value of C2 in above equation we get\n",
+ "s2=t3**2-3*t3**3*6**-1+47.5*t3+C2 \n",
+ "\n",
+ "#Sub v=0 in equation 3 we get an duaqratic equation as\n",
+ "#3*t**2-4*t-95=0\n",
+ "a=3\n",
+ "b=-4\n",
+ "c=-95\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "t4=(-b+(X**0.5))*(2*a)**-1 #s\n",
+ "#Sub value of t4 in equation of displacement and we get\n",
+ "s3=t4**2-3*t4**3*6**-1+47.5*t4+C2 \n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration from origin at start of observation is\",round(a,2),\"m/s**2\"\n",
+ "print\"Velocity from origin at start of observation is\",round(v,2),\"m/s**2\"\n",
+ "print\"distance from origin at start of observationis\",round(s2,2),\"m\"\n",
+ "print\"Time after start of observation is\",round(t4,2),\"s\"\n",
+ "print\"Distance from origin is\",round(s3,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration from origin at start of observation is 3.0 m/s**2\n",
+ "Velocity from origin at start of observation is 47.5 m/s**2\n",
+ "distance from origin at start of observationis 10.0 m\n",
+ "Time after start of observation is 6.33 s\n",
+ "Distance from origin is 223.93 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_13.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_13.ipynb new file mode 100644 index 00000000..39f2e3c9 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_13.ipynb @@ -0,0 +1,711 @@ +{
+ "metadata": {
+ "name": "chapter 13.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 13:Kinematics of Curvilinear Motion,Circular Motion,,Rotation And Translation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.1,Page No.471"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "w_o=5 #Rad/s #Initial Angular Velocity\n",
+ "w=13 #rad/s #IFinal angular Velocity\n",
+ "t=4 #s #time\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Angular Acceleration of the body\n",
+ "alpha=(w-w_o)*t**-1 #rad/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Acceleration of the body is\",round(alpha,2),\"Rad/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Acceleration of the body is 2.0 Rad/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.2,Page No.471"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "N_o=20 #Initial r.p.m of wheel\n",
+ "n=50 #No. of revolution\n",
+ "n2=100 \n",
+ "t=70 #s #time\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Angular Dispalcement\n",
+ "theta=2*pi*n\n",
+ "\n",
+ "#Initial Angular Velocity\n",
+ "w_o=2*pi*N_o*60**-1\n",
+ "\n",
+ "#Angular Velocity at the end of 70 s\n",
+ "alpha=(theta-w_o*t)*((t**2)*2**-1)**-1 #rad/s**2\n",
+ "w=w_o+alpha*t #rad/s\n",
+ "\n",
+ "#Time Required for the speed to reach 100 r.p.m\n",
+ "\n",
+ "#Final Angular Velocity\n",
+ "w2=2*pi*n2*60**-1 #rad/s\n",
+ "\n",
+ "#Time required for speed to reach 100 revolutions\n",
+ "t=(w2-w_o)*alpha**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Velocity at the end of 70 s is\",round(w,2),\"rad/s**2\"\n",
+ "print\"Time required for speed to reach 100 revolutions is\",round(t,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Velocity at the end of 70 s is 6.88 rad/s**2\n",
+ "Time required for speed to reach 100 revolutions is 122.5 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.3,Page No.472"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "alpha=1 #rad/s**2 #Angular Acceleration\n",
+ "w_o=5.25 #rad/s**2 #Initial Angular velocity\n",
+ "w=10.50 #rad/s**2 #Final angular velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total angle turned\n",
+ "theta=(w**2-w_o**2)*2**-1 #rad\n",
+ "\n",
+ "#Result\n",
+ "print\"Total angle turned is\",round(theta,2),\"rad\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total angle turned is 41.34 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.4,Page No.472"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Part-1\n",
+ "w_o=0 #Initial angular velocity\n",
+ "alpha=1 #rad/s**2 #Angular accleration\n",
+ "t=90 #s #time\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "w_o2=90 #rad/s #Initial Angular velocity\n",
+ "w2=0 #final angular velocity\n",
+ "alpha2=-0.5 #rad/s**2 #Angular retardation\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#Angular Velocity\n",
+ "w=w_o+alpha*t #rad/s\n",
+ "\n",
+ "#Speed in r.p.m\n",
+ "N=60*w*(2*pi)**-1 #r.p.m\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Time taken by flywheel in seconds to come to rest \n",
+ "t1=-w_o2*alpha2**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed in r.p.m is\",round(N,2)\n",
+ "print\"Time taken by flywheel in seconds to come to rest is\",round(t1,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed in r.p.m is 859.44\n",
+ "Time taken by flywheel in seconds to come to rest is 180.0 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.5,Page No.473"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "N=200 #r.p.m #initial speed\n",
+ "f1=20.94 #rad/s #Frequency\n",
+ "N2=160 #r.p.m\n",
+ "t=10 #s #time\n",
+ "f2=16.75 #rad/s\n",
+ "f3=0 #Final angular velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Uniform retardation\n",
+ "alpha=(f2-f1)*t**-1 #rad/s**2\n",
+ "\n",
+ "#total angular displacement\n",
+ "theta=(f3**2-f1**2)*(2*alpha)**-1 #rad\n",
+ "n=theta*(2*pi)**-1 #revolutions\n",
+ "\n",
+ "#Time taken by wheel before it comes to rest\n",
+ "t=-f1*alpha**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of revolutions is\",round(n,2),\"revolution\"\n",
+ "print\"Time taken by wheel before it comes to rest is\",round(t,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of revolutions is 83.28 revolution\n",
+ "Time taken by wheel before it comes to rest is 49.98 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.6,Page No.474"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Angle of rotation\n",
+ "#theta=2*t**3-5*t**2+8*t+6\n",
+ "t=0 #s\n",
+ "t2=4 #s\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#After deriving above equation we get\n",
+ "f1=6*t**2-10*t+8 #rad/s\n",
+ "\n",
+ "#Again differentiating above equation we get\n",
+ "alpha1=12*t-10 #rad/s**2\n",
+ "\n",
+ "#for t2=4\n",
+ "f2=6*t2**2-10*t2+8 #rad/s\n",
+ "alpha2=12*t2-10 #rad/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Velocity at t=0 is\",round(f1,2),\"rad/s\"\n",
+ "print\"Angular acceleration at t=4 is\",round(alpha1,2),\"rad/s**2\"\n",
+ "print\"Angular Velocity at t=0 is\",round(f2,2),\"rad/s\"\n",
+ "print\"Angular acceleration at t=4 is\",round(alpha2,2),\"rad/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Velocity at t=0 is 8.0 rad/s\n",
+ "Angular acceleration at t=4 is -10.0 rad/s**2\n",
+ "Angular Velocity at t=0 is 64.0 rad/s\n",
+ "Angular acceleration at t=4 is 38.0 rad/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.6(A),Page No.474"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#angular rotation\n",
+ "#theta=9*32**-1*t**3\n",
+ "t=1.6 #s\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#after differentiating above equation twice we get\n",
+ "alpha=27*16**-1*t #rad/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular accelerations is\",round(alpha,2),\"rad/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular accelerations is 2.7 rad/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.7,Page No.475"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "f1=2 #rad/s #initiaal angular velocity\n",
+ "alpha1=0 #Initial angular acceleration\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Integrating law of rotation we get\n",
+ "#f2=t**3-3*t+C .......1\n",
+ "#put t=0 weg et\n",
+ "C=2\n",
+ "\n",
+ "#now at t=5 #s\n",
+ "t=5 #s\n",
+ "f2=t**3-3*t+C\n",
+ "\n",
+ "#Integrting equation 1 we get\n",
+ "#theta=t**4*4**-1-3*t**2*2**-1+2*t\n",
+ "#Sub values and further simplifying we get\n",
+ "theta=t**4*4**-1-3*t**2*2**-1+2*t\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular velocity when t=5s is\",round(f2,2),\"rad/s\"\n",
+ "print\"Angular displacement when t=5s is\",round(theta,2),\"radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular velocity when t=5s is 112.0 rad/s\n",
+ "Angular displacement when t=5s is 128.75 radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.8,Page No.476"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Angle of rotation of body \n",
+ "#theta=theta1+a*t+b*t**2\n",
+ "f=3*pi\n",
+ "f2=8*pi\n",
+ "t=0 #s\n",
+ "t2=2 #s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#differentiating above equation and further sub values and simplifuing we getweget\n",
+ "a=f\n",
+ "b=(f2-a)*4**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Constants a is\",round(a,2)\n",
+ "print\"Constants b is\",round(b,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Constants a is 9.42\n",
+ "Constants b is 3.93\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9,Page No.480"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Velocity\n",
+ "V_A=4 #m/s\n",
+ "theta=30 #Degrees\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity\n",
+ "V_B=V_A*(tan(theta*pi*180**-1))**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of point B is\",round(V_B,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of point B is 6.93 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9(A),Page No.480"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "r=1 #m #radius\n",
+ "V_C=20 #m/s #Velocity\n",
+ "f=20 #rad/s #Angular velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Length\n",
+ "L_DE=(r**2+r**2)**0.5 #m\n",
+ "L_DF=2 #m #Diameter\n",
+ "\n",
+ "#Velocity \n",
+ "V_E=L_DE*f #m/s\n",
+ "V_F=f*L_DF #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of point E:V_E\",round(V_E,2),\"m/s\"\n",
+ "print\"Velocity of point E:V_F\",round(V_F,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of point E:V_E 28.28 m/s\n",
+ "Velocity of point E:V_F 40.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9(B),Page No.481"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=50 #cm\n",
+ "r=0.25 #m #radius\n",
+ "V_A=L_AL=5 #m/s\n",
+ "V_B=L_BM=3 #m/s\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#V_A=f*L_AO\n",
+ "#V_B=f*L_BO \n",
+ "\n",
+ "#After further simplifying and resolving we get\n",
+ "f=2*0.5**-1 #rad/s\n",
+ "x=L_BO=3*f**-1 \n",
+ "\n",
+ "#Linear Velocity\n",
+ "V_C=f*(r+x) #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Linear Velocity of roller is\",round(V_C,2),\"m/s\"\n",
+ "print\"Angular velocity is\",round(f,2),\"rad/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Linear Velocity of roller is 4.0 m/s\n",
+ "Angular velocity is 4.0 rad/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9(C),Page No.482"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "r=1 #m\n",
+ "u=20 #m/s\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity component of point E\n",
+ "#u_E=u+u*sin(u*t)\n",
+ "#at t=0\n",
+ "t=0\n",
+ "u_E=u+u*sin(u*t*pi*180**-1)\n",
+ "v_E=u*cos(u*t)\n",
+ "V_E=(u_E**2+v_E**2)**0.5 #m/s\n",
+ "u_F=u+u*cos(u*t*pi*180**-1) #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of point E is\",round(V_E,2),\"m/s\"\n",
+ "print\"Velocity of point F is\",round(u_F,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of point E is 28.28 m/s\n",
+ "Velocity of point F is 40.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9(D),Page No.485"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "W1=W2=80*1000*g\n",
+ "D1=0.75*10**3 #mm\n",
+ "R1=0.75*500 #mm\n",
+ "a1=0.025 #m/s**2\n",
+ "D2=1.2*10**3 #mm\n",
+ "R2=1.2*500 #mm\n",
+ "a2=0.0625 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Horizontal Forces\n",
+ "P1=W1*a1*R1**-1 #N\n",
+ "P2=W2*a2*R2**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Horizontal Force required to maintain uniform speed is\",round(P1,2),\"N\"\n",
+ "print\"Horizontal Force for truck and trailer is\",round(P2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Horizontal Force required to maintain uniform speed is 52.32 N\n",
+ "Horizontal Force for truck and trailer is 81.75 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_14.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_14.ipynb new file mode 100644 index 00000000..405ac8f2 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_14.ipynb @@ -0,0 +1,1083 @@ +{
+ "metadata": {
+ "name": "chapter 14.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 14:Projectiles"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.1,Page No.507 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "alpha=60 #Degrees\n",
+ "R=5000 #m #Horizontal Range\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#By equation of Horizontal Range,we get\n",
+ "u=((R*g)*(sin(2*alpha*pi*180**-1))**-1)**0.5 #m/s\n",
+ "\n",
+ "#Max Height attained by projectile\n",
+ "h_max=u**2*(sin(alpha*pi*180**-1))**2*(2*g)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of projection is\",round(u,2),\"m/s\"\n",
+ "print\"Max Height attained by projectile is\",round(h_max,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of projection is 237.99 m/s\n",
+ "Max Height attained by projectile is 2165.06 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.2,Page No.507"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "u=100 #m/s #Velocity\n",
+ "alpha=30 #Degrees #Angle made by projectile with horizontal\n",
+ "g=9.81 #m/s #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Horizontal Range\n",
+ "R=u**2*sin(2*alpha*pi*180**-1)*g**-1 #m\n",
+ "\n",
+ "#MAx height attained\n",
+ "h_max=u**2*sin(alpha*pi*180**-1)*g**-1 #m\n",
+ "\n",
+ "#Time of flight\n",
+ "T=2*u*sin(alpha*pi*180**-1)*g**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Horizontal Range is\",round(R,2),\"m\"\n",
+ "print\"MAx Height attained is\",round(h_max,2),\"m\"\n",
+ "print\"Time of Flight is\",round(T,2),\"s\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Horizontal Range is 882.8 m\n",
+ "MAx Height attained is 509.68 m\n",
+ "Time of Flight is 10.19 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.3,Page No.508"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "#R=4*h_max\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Equation ofhorizontal Range is\n",
+ "#R=u**2*sin(2*alpha)*g**-1 .........1\n",
+ "\n",
+ "#Equation of MAx height \n",
+ "#h_max=u**2*sin(alpha)**2*(2*g)**-1 .........2\n",
+ "\n",
+ "#After simplifying both equations,we get\n",
+ "alpha=arctan(1)*(pi**-1*180)\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of projections is\",round(alpha,2),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of projections is 45.0 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.4,Page No.508"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "u=20 #m/s #Velocity\n",
+ "x=20 #m #X cordinate of trajectory\n",
+ "y=8 #m #Y cordinate of trajectory\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#equation of trajectory\n",
+ "#y=x*tan(alpha)-g*x**2*(2*u**2*cos(alpha)**2)**-1\n",
+ "#After substituting values and further simplifying we get quadratic equation\n",
+ "#4.905*(tan(alpha))**2-20*tan(alpha)+12.905=0\n",
+ "a=4.905\n",
+ "b=-20\n",
+ "c=12.905\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "y1=(-b+X**0.5)*(2*a)**-1\n",
+ "y2=(-b-X**0.5)*(2*a)**-1\n",
+ "\n",
+ "alpha1=arctan(y1)*(pi**-1*180) #Degrees\n",
+ "alpha2=arctan(y2)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of projection of particle is:alpha1\",round(alpha1,2),\"Degrees\"\n",
+ "print\" :alpha2\",round(alpha2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of projection of particle is:alpha1 73.01 Degrees\n",
+ " :alpha2 38.79 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.5,Page No.509"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "x=4.8 #m #X-cord of projectile\n",
+ "y=3.6 #m #y-cord of projectile\n",
+ "alpha=60 #Degrees #Inclination of jet\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Equation of trajectory\n",
+ "#y=x*tan(alpha)-g*x**2*(2*u**2*cos(alpha)**2)**-1\n",
+ "#After further simplifying we get\n",
+ "u=((g*x**2)*(2*(cos(alpha*pi*180**-1))**2*((x*tan(alpha*pi*180**-1))-y))**-1)**0.5 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"required velocity of jet at nozzle exit is\",round(u,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "required velocity of jet at nozzle exit is 9.79 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.6,Page No.510"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=250 #m/s #Velocity\n",
+ "x=4000 #m #x-cord\n",
+ "y=700 #m #y-cord\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#equation of trajectory\n",
+ "#y=x*tan(alpha)-g*x**2*(2*u**2*cos(alpha)**2)**-1\n",
+ "#After substituting values and further simplifying we get quadratic equation\n",
+ "#1255.68*tan(alpha)**2-4000*tan(alpha)+1955.68=0\n",
+ "a=1255.68\n",
+ "b=-4000\n",
+ "c=1955.68\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "y1=(-b+X**0.5)*(2*a)**-1\n",
+ "y2=(-b-X**0.5)*(2*a)**-1\n",
+ "\n",
+ "alpha1=arctan(y1)*(pi**-1*180) #Degrees\n",
+ "alpha2=arctan(y2)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Firing angle to hit the target is:alpha1\",round(alpha1,2),\"Degrees\"\n",
+ "print\" :alpha2\",round(alpha2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Firing angle to hit the target is:alpha1 68.83 Degrees\n",
+ " :alpha2 31.09 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.7,Page No.511"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "alpha1=15 #Degrees #Angle of projectile 1\n",
+ "alpha2=45 #Degrees #Angle of projectile2\n",
+ "g=9.81 #m/s**2\n",
+ "#R1=R-12\n",
+ "#R2=R+24\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#form Equation of horizontal Range we get,\n",
+ "#R-12=u**2*sin(2*alpha1)*g**-1 ..................1\n",
+ "\n",
+ "#R+24=u**2*sin(2*alpha2)*g**-1 ....................2\n",
+ "\n",
+ "#Dividing equation 1 by 2 and further simplifying we get\n",
+ "R=24+24 #m\n",
+ "\n",
+ "#Sub value of R in equation 2 we get\n",
+ "#u**2=g*72\n",
+ "\n",
+ "#Sub values of R and u**2 in equation of horizontal range we get\n",
+ "#sin(2*alpha)=R*g*(g*72)**-1\n",
+ "#LEt sin(2*alpha)=X\n",
+ "X=R*g*(g*72)**-1\n",
+ "alpha=(arcsin(X)*(180*pi**-1))*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of projection to hit the mark is\",round(alpha,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of projection to hit the mark is 20.91\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.8,Page No.512"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=100 #m/s #initial Velocity\n",
+ "alpha=30 #DEgrees #Angle of projection\n",
+ "g=9.81 #m/s**2\n",
+ "h=80 #m #Height below B\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Max Height \n",
+ "H=u**2*(sin(alpha*pi*180**-1))**2*(2*g)**-1 #m\n",
+ "\n",
+ "#Vertical Distance\n",
+ "S=H+h #m\n",
+ "\n",
+ "#Vertical Component of velocity striking the target\n",
+ "v2=(2*g*S)**0.5 #m/s\n",
+ "\n",
+ "#Horizontal component of velocity\n",
+ "v=u*cos(alpha*pi*180**-1)\n",
+ "\n",
+ "#Actual Velocity with which bullet strikes the target\n",
+ "V=(v2**2+v**2)**0.5\n",
+ "\n",
+ "#Angle made by actual velocity striking velocity\n",
+ "theta=arctan(v2*v**-1)*(pi**-1*180)\n",
+ "\n",
+ "#Result\n",
+ "print\"Max height attained by bullet\",round(H,2),\"m\"\n",
+ "print\"Actual Velocity with which it will strike the target\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max height attained by bullet 127.42 m\n",
+ "Actual Velocity with which it will strike the target 36.38 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.9,Page No.514"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "h=150 #m #Height of cliff\n",
+ "u=180 #m/s #Initial Velocity\n",
+ "alpha=30 #ANgle of projection\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#From equation of vertical Distance\n",
+ "#y=u*sin(Alpha)*t-0.5*g*t**2\n",
+ "#Sub values and further simplifying we get\n",
+ "#4.905t**2-90*t-150=0\n",
+ "a=4.905 \n",
+ "b=-90\n",
+ "c=-150\n",
+ "\n",
+ "X=(b**2-4*a*c)**0.5\n",
+ "\n",
+ "#Total time of flight\n",
+ "t=(-b+(X))*(2*a)**-1\n",
+ "\n",
+ "#Horizontal Distance \n",
+ "h1=u*cos(alpha*pi*180**-1)*t\n",
+ "\n",
+ "#MAx Height \n",
+ "H=u**2*sin(alpha*pi*180**-1)**2*(2*g)**-1 #m\n",
+ "\n",
+ "#ELEvation above the ground\n",
+ "H2=h+H #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Horizontal Distance from gun is\",round(h1,2),\"m\"\n",
+ "print\"Elevation above the ground\",round(H2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Horizontal Distance from gun is 3099.98 m\n",
+ "Elevation above the ground 562.84 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.10,Page No.515"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "h=6 #m #Height of tunnel\n",
+ "u=50 #m/s #Initial Velocity\n",
+ "g=9.81\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "alpha=arcsin(((h*2*g)*((u**2)**-1))**0.5)*(pi**-1*180)\n",
+ "\n",
+ "#Horizontal Range \n",
+ "R=u**2*sin(2*alpha*pi*180**-1)*g**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of projection is\",round(alpha,2),\"DEgrees\"\n",
+ "print\"Horizontal Range is\",round(R,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of projection is 12.53 DEgrees\n",
+ "Horizontal Range is 107.96 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.11,Page No.516"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "alpha1=30 #Degrees #Angle of projection1\n",
+ "alpha2=30 #Degrees #Angle of projection2\n",
+ "u1=350 #m/s #Velocity of projection at A\n",
+ "u2=300 #m/s #Velocity of projection at B\n",
+ "L_AB=30 #m #distance between A nd B\n",
+ "g=9.81 #m/s**2 \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Length AD\n",
+ "L_AD=L_AB*cos(alpha1*pi*180**-1)\n",
+ "\n",
+ "#Horizontal component of velocity at A\n",
+ "V_A=u1*cos(alpha1*pi*180) #m/s\n",
+ "\n",
+ "#Horizontal component of velocity at B\n",
+ "V_B=u2*cos(alpha2*pi*180) #m/s\n",
+ "\n",
+ "#Horizontal Distance covered by shot A\n",
+ "#x=(u1*cos(alpha1)*t ..........................1\n",
+ "\n",
+ "#Horizontal Distance covered by shot B\n",
+ "#15*(3)**0.5-x=(u2*cos(alpha2))*t ................2\n",
+ "\n",
+ "#Adding Equations 1 and 2 we get\n",
+ "t=15*(3)**0.5*((u1+u2)*cos(alpha1*pi*180**-1))**-1\n",
+ "\n",
+ "#sub values in equation 1 we get\n",
+ "x=(u1*cos(alpha1*pi*180**-1))*t\n",
+ "\n",
+ "#Intial velocity shot in vertical direction\n",
+ "V2=u1*sin(alpha1*pi*180**-1) #m/s\n",
+ "\n",
+ "#Distance in vertical direction\n",
+ "y=V2*t-g*t**2*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Time when these two shots meet\",round(t,2),\"s\"\n",
+ "print\"Vertical Distance at which they meet\",round(y,3),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time when these two shots meet 0.05 s\n",
+ "Vertical Distance at which they meet 8.066 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.12,Page No.518"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "v=720*10**3*3600**-1 #m/s #Speed of air craft\n",
+ "u=200 #m/s #Velocity of bomb\n",
+ "H=1000 #m #Height\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Time requaired by bomb\n",
+ "t=(H*2*g**-1)**0.5 #s\n",
+ "\n",
+ "#Horizontal distance of air craft\n",
+ "h=u*round(t,3) #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Time requaired by bomb to reach the ground\",round(t,2),\"s\"\n",
+ "print\"Horizontal distance of air craft\",round(h,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time requaired by bomb to reach the ground 14.28 s\n",
+ "Horizontal distance of air craft 2855.6 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.13,Page No.519"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "v=108*10**3*3600**-1 #m/s #Spedd of air craft\n",
+ "u=30 #m/s #Horizontal Velocity\n",
+ "H=1000 #m #Height\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Time taken by bomb\n",
+ "t=(H*2*g**-1)**0.5 #s\n",
+ "\n",
+ "#Horizontal Distance OB\n",
+ "h=u*t #m\n",
+ "\n",
+ "#Velocity of bomb hitting the ground\n",
+ "V=g*t #m/s**2\n",
+ "\n",
+ "#Resultant Velocity\n",
+ "V2=(u**2+V**2)**0.5 #m/s\n",
+ "\n",
+ "#Direction in which the bomb hits the ground\n",
+ "theta=arctan(V*u**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"HOrizontal Distance of air craft from target\",round(h,2),\"m\"\n",
+ "print\"Velocity of bomb\",round(V2,2),\"m/s\"\n",
+ "print\"Direction of bomb\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "HOrizontal Distance of air craft from target 428.35 m\n",
+ "Velocity of bomb 143.25 m/s\n",
+ "Direction of bomb 77.91 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14,Page No.520"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "H=2000 #m #Height of aeroplane\n",
+ "u=10**6*3600**-1 #Velocity of plane #m/s\n",
+ "g=9.8 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Time required by bomb\n",
+ "t=(2*H*g**-1)**0.5 #s\n",
+ "\n",
+ "#Horizontal Distance travelled by bomb\n",
+ "h=u*t #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Time required by bomb to reach the ground\",round(t,2),\"s\"\n",
+ "print\"Horizontal Distance travelled by bomb\",round(h,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time required by bomb to reach the ground 20.2 s\n",
+ "Horizontal Distance travelled by bomb 5611.96 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.16,Page No.521"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "L_AB1=4 #m #LEngth of AB in Horizontal Distance\n",
+ "L_AB2=2 #m #LEngth of AB in Vertical Distance\n",
+ "g=9.81 #m/s**2 \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#time\n",
+ "t=((L_AB2*2)*(9.81)**-1)**0.5\n",
+ "\n",
+ "#Minimum veloacity of motorcyclye at A in Horizontal Direction\n",
+ "u=L_AB1*t**-1 #m/s\n",
+ "\n",
+ "#Vertical Component of velocity\n",
+ "v=g*t #m/s\n",
+ "\n",
+ "#Resultant velocity at B\n",
+ "V=(u**2+v**2)**0.5*3600*(10**3)**-1 #km/hr\n",
+ "\n",
+ "#Inclination\n",
+ "theta=arctan(v*u**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Inclination of motorcycle clearing the ditch\",round(theta,2),\"Degrees\"\n",
+ "print\"MAgnitude of velocity of motorcycleafter clearing ditch\",round(V,2),\"km/hr\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Inclination of motorcycle clearing the ditch 45.0 Degrees\n",
+ "MAgnitude of velocity of motorcycleafter clearing ditch 31.89 km/hr\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.17,Page No.522"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "alpha=25 #Degrees #Angle of ramp\n",
+ "L_BC1=4 #m #Horizontal Distance between B and C\n",
+ "L_BC2=2 #m #vertical Distance between B and C\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "##From equation of path \n",
+ "X=(L_BC2+L_BC1*tan(alpha*pi*180**-1))\n",
+ "Y=(g*L_BC1**2)*(2*(cos(alpha*pi*180**-1))**2)**-1\n",
+ "u=(X**-1*Y)**0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum speed of motorcycle is\",round(u,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum speed of motorcycle is 4.97 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.18,Page No.526"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "u=40 #m/s #Velocity of projection\n",
+ "alpha=50 #Degrees #Angle of projection\n",
+ "beta=20 #degrees #Ang;e if incline plane\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Time of flight\n",
+ "T=2*u*sin((alpha-beta)*pi*180**-1)*(g*cos(beta*pi*180**-1))**-1\n",
+ "\n",
+ "#Range \n",
+ "R=2*u**2*cos(alpha*pi*180**-1)*sin((alpha-beta)*pi*180**-1)*(g*(cos(beta*pi*180**-1))**2)**-1\n",
+ "\n",
+ "#Let alpha2 be the angle of projection for max range\n",
+ "alpha2=(90+beta)*2**-1\n",
+ "\n",
+ "#MAx range up the plane\n",
+ "R2=u**2*(g*(1+sin(beta*pi*180**-1)))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Time of flight is\",round(T,2),\"s\"\n",
+ "print\"range up the plane is\",round(R,2),\"m\"\n",
+ "print\"Max range up the plane\",round(R2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time of flight is 4.34 s\n",
+ "range up the plane is 118.73 m\n",
+ "Max range up the plane 121.53 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.19,Page No.527"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=30 #m/s #velocity\n",
+ "alpha=55 #angle of projection\n",
+ "beta=20 #angle of plane\n",
+ "g=9.81\n",
+ "\n",
+ "#Calculation\n",
+ "#Maximum Range\n",
+ "R=u**2*(g*(1+sin(beta*pi*180**-1)))**-1 #m\n",
+ "\n",
+ "#Time of Flight\n",
+ "T=2*u*sin((alpha-beta)*pi*180**-1)*(g*cos(beta*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Time of Fliight is\",round(T,2),\"s\"\n",
+ "print\"Maximum Range is \",round(R,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time of Fliight is 3.73 s\n",
+ "Maximum Range is 68.36 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.20,Page No.527"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=3 #m/s #Velocity of projection\n",
+ "alpha=25 #Degrees #Angle of projection\n",
+ "beta=25 #degrees #Angle of plane with horizontal\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Range\n",
+ "R=2*u**2*cos(alpha*pi*180**-1)*sin((alpha+beta)*pi*180**-1)*(g*(cos(beta*pi*180**-1))**2)**-1\n",
+ "\n",
+ "#L_BC=y\n",
+ "#L_AC=x\n",
+ "\n",
+ "#From tan(beta) we get\n",
+ "#y=0.466*x .................(1)\n",
+ "\n",
+ "#From Equation (L_AB)**2=(L_BC**2+L_AC)**2\n",
+ "#After sub values and further simplifying we get\n",
+ "x=(2.4*(1.217)**-1)**0.5 #m\n",
+ "\n",
+ "#Sub in equation 1 we get\n",
+ "y=0.466*x\n",
+ "\n",
+ "#Result\n",
+ "print\"Co-ordinates of point B are:x\",round(x,2),\"m\"\n",
+ "print\" :y\",round(y,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Co-ordinates of point B are:x 1.4 m\n",
+ " :y 0.65 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.21,Page No.528"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AB=75 #m #LEngth of AB\n",
+ "h=19.6 #m #Height of point of release\n",
+ "beta=26.564 #Degrees #angle of plane \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Length AC\n",
+ "L_AC=L_AB*cos(beta*pi*180**-1) #m\n",
+ "\n",
+ "#From horizontal Distance \n",
+ "#u*cos(alpha)=L_AC*t**-1 .............1\n",
+ "\n",
+ "#Vertical motion motion from point of release\n",
+ "#u*sin(alpha)=19.6 ....................2\n",
+ "\n",
+ "#vertical Distance\n",
+ "y=L_AB*sin(beta*pi*180**-1) #m\n",
+ "\n",
+ "#Vertical distance from point of release travelled by ball\n",
+ "#y=u*sin(alpha)*t-0.5*g*t**2\n",
+ "\n",
+ "#sub value of y in above equation and further simplifyin we get\n",
+ "#t**2-4t-6.84=0\n",
+ "a=1\n",
+ "b=-4\n",
+ "c=-6.84\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "t=(-b+X**0.5)*(2*a)**-1\n",
+ "\n",
+ "#sub value in equation 1 we get\n",
+ "#Let ucos(alpha)=X\n",
+ "X=67.08*t**-1 #..........................3\n",
+ "\n",
+ "#Dividing equation 1 by 3 we get\n",
+ "alpha=arctan(19.6*12.68**-1)*(180*pi**-1)\n",
+ "\n",
+ "#sub in equation 1 we get\n",
+ "u=12.68*cos(alpha*pi*180**-1)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Initial Velocity\",round(u,2),\"m/s\"\n",
+ "print\"Inclination is\",round(alpha,4),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Initial Velocity 23.34 m/s\n",
+ "Inclination is 57.0996 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_15.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_15.ipynb new file mode 100644 index 00000000..55ce0e83 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_15.ipynb @@ -0,0 +1,2665 @@ +{
+ "metadata": {
+ "name": "chapter 15.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 15:Kinetics of Rigid Bodies And Laws of Motion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.1,Page No.536"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=150 #kg #Mass of the Body\n",
+ "a=3 #m/s**2 #Acceleration \n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Force \n",
+ "F=M*a #N\n",
+ "\n",
+ "#Result\n",
+ "print\"FOrce is\",round(F,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "FOrce is 450.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.2,Page No.537"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=100 #N #Force\n",
+ "m=4 #kg #mass\n",
+ "t=10 #seconds #time\n",
+ "u=5 #m/s #Initial Velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=F*m**-1 #m/s**2\n",
+ "\n",
+ "#Distance\n",
+ "s=u*t+a*t**2*2**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Distance moved is\",round(s,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 25.0 m/s**2\n",
+ "Distance moved is 1300.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.3,Page No.537"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=980 #N #Weight of body on the earth\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "g2=1.6 #m/s**2 #Acceleration due to gravity on moon\n",
+ "g3=270 #m/s**2 #Acceleration due to gravity on sun\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Mass\n",
+ "m=W*g**-1 #Kg\n",
+ "\n",
+ "#Weight of body on moon\n",
+ "W1=m*g2 #N\n",
+ "\n",
+ "#Weight of body on sun\n",
+ "W2=m*g3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight of body on moon\",round(W1,2),\"N\"\n",
+ "print\"Weight of body on sun\",round(W2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight of body on moon 160.0 N\n",
+ "Weight of body on sun 27000.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.4,Page No.537"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=200 #N #Force \n",
+ "m=300 #kg #mass\n",
+ "t=90 #sec #time\n",
+ "u=20 #m/s #Initial velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=F*m**-1 #m/s**2 \n",
+ "\n",
+ "#Final Velocity in Direction of motion \n",
+ "v=u+a*t #m/s\n",
+ "\n",
+ "#Final Velocity in opposite direction of motion\n",
+ "v2=u-a*t #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Final Velocity in Direction of motion\",round(v,2),\"m/s\"\n",
+ "print\"Final Velocity in opposite direction of motion\",round(v2,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Final Velocity in Direction of motion 80.0 m/s\n",
+ "Final Velocity in opposite direction of motion -40.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.5,Page No.538"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=15 #kg #Mass \n",
+ "h=19.6 #m #Height of body from ground\n",
+ "F=4900 #N #Force of resistance\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Final Velocity of body\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Weight of body\n",
+ "W=m*g #N\n",
+ "\n",
+ "#Net Force acting in the upward direction\n",
+ "F2=F-W #N\n",
+ "\n",
+ "#Acceleration\n",
+ "a=F2*m**-1 #m/s**2 \n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "v2=0 #Final Velocity after penetration into the ground\n",
+ "u=v #Initial Velocity on the ground\n",
+ "\n",
+ "#Distance penetrated into the ground\n",
+ "s=-(v2**2-u**2)*(2*a)**-1 #m \n",
+ "\n",
+ "#Result\n",
+ "print\"Distance penetrated into the ground\",round(s,3),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance penetrated into the ground 0.606 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.6,Page No.539"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=637 #N #Weight of man\n",
+ "h=19.6 #m #Height of Tower\n",
+ "u=0 #m/s #Initial Velocity of man when he reaches the water surface\n",
+ "g=9.8 #m/s**2 #acceleration due to gravity\n",
+ "s=2 #m #Distance travelled\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Final Velocity of man when he reaches the water surface\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#acceleration\n",
+ "a=v**2*(2*s)**-1 #m/s**2 #m/s**2\n",
+ "\n",
+ "#Mass of man\n",
+ "m=W*g**-1 #Kg \n",
+ "\n",
+ "#Average resistance of water\n",
+ "F=m*a+W #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Average Resistance of water\",round(F,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average Resistance of water 6879.6 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.7,Page No.540"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.081 #kg\n",
+ "v=300 #m/s #velocity\n",
+ "s=0.1 #m #Depth\n",
+ "s2=0.05 #m #Distance travelled\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration \n",
+ "a=v**2*(2*s)**-1 #m/s**2 \n",
+ "\n",
+ "#Force offered by wood to the bullet\n",
+ "F=m*a #N\n",
+ "\n",
+ "#Velocity\n",
+ "v=-(u**2-(2*a*s2)) #m/s\n",
+ "v2=v**0.5 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Force of resistance\",round(v2,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force of resistance 212.13 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.8,Page No.541"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "v=0 #Final Velocity\n",
+ "s=60 #m #Distance travelled\n",
+ "mu=0.4 #coefficient of friction\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#acceleration\n",
+ "a=mu*g #m/s**2\n",
+ "\n",
+ "#speed of car\n",
+ "u=(2*a*s)**0.5*1000**-1*3600 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of car is\",round(u,2),\"Km/hr\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of car is 78.08 Km/hr\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.9,Page No.542"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F1=2000 #N #Tractive of force exerted by railway car\n",
+ "W=50 #KN #Weight of car\n",
+ "g=9.81 #m/s**2 #acceleration due to gravity \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#mass of car\n",
+ "m=W*1000*g**-1 #N\n",
+ "\n",
+ "#Frictional resistance\n",
+ "F2=5*W\n",
+ "\n",
+ "#Net Force in Direction of motion\n",
+ "F=F1-F2 #N\n",
+ "\n",
+ "#Acceleration\n",
+ "a=F*m**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"acceleration when the car is moving\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "acceleration when the car is moving 0.34 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.10,Page No.542"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=1960*1000 #N #Weight of train\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#mass of train \n",
+ "m=W*g**-1 #kg\n",
+ "\n",
+ "#final Velocity\n",
+ "v=100*3**-1 #m/s\n",
+ "t=5*60 #sec\n",
+ "\n",
+ "#Acceleration\n",
+ "a=v*t**-1 #m/s**2 \n",
+ "\n",
+ "#Average pull required\n",
+ "F2=m*a+19600\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Average pull required\",round(F2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average pull required 41822.22 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.11,Page No.544"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=200 #N #Weight of Body\n",
+ "g=9.81 #m/s**2 #aceleration due to gravity\n",
+ "theta=45 #Degrees #Angle of plane\n",
+ "u=0 #m/s #Initial Velocity\n",
+ "v=2 #m/s #Final velocity\n",
+ "mu=0.1 #coefficient of friction\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration of body\n",
+ "a=g*(sin(theta*pi*180**-1)-mu*cos(theta*pi*180**-1)) #m/s**2\n",
+ "\n",
+ "#Distance\n",
+ "s=(v**2-u**2)*(2*a)**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance along inclined plane is\",round(s,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance along inclined plane is 0.32 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.12,Page No.544"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=0 #m/s #Initial Velocity\n",
+ "theta=20 #degree #Angle of inclination\n",
+ "mu1=0.08 #Coefficient of friction between the plane and lower body\n",
+ "mu2=0.08 #Coefficient of friction between the plane and upper body\n",
+ "d=10 #m #distance beween two body\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration of lower body down the plane\n",
+ "a1=g*(sin(theta*pi*180**-1)-mu1*cos(theta*pi*180**-1)) #m/s**2\n",
+ "\n",
+ "#Acceleration of upper body \n",
+ "a2=g*(sin(theta*pi*180**-1)-mu2*cos(theta*pi*180**-1)) #m/s**2\n",
+ "\n",
+ "#Distance travelled by lower body\n",
+ "#s1=u*t+a1*t**2*2**-1\n",
+ "#After sub values and further simplifying we get\n",
+ "#s1=1.3805*t**2 ...................1\n",
+ "\n",
+ "#Distance travelled by upper body\n",
+ "#s1=u*t+a1*t**2*2**-1\n",
+ "#After sub values and further simplifying we get\n",
+ "#s1=1.447*t**2 .......................2\n",
+ "\n",
+ "#Further simplfying we get\n",
+ "t=(10*0.1385**-1)**0.5 #s\n",
+ "\n",
+ "#sub value of t in equation 1 and 2\n",
+ "s1=1.3805*round(t,2)**2 #m\n",
+ "s2=1.447*round(t,2)**2 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"distance through which each body travels before they meet:s1\",round(s1,2),\"m\"\n",
+ "print\" :s2\",round(s2,2),\"m\"\n",
+ "\n",
+ "#Answer of s1 is incorrect in book"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "distance through which each body travels before they meet:s1 99.74 m\n",
+ " :s2 104.55 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.13,Page No.546"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=6000 #N #Weight of truck\n",
+ "u=10 #m/s #speed of truck\n",
+ "#sin(theta)=1*40**-1\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Road Resistance\n",
+ "F1=W*1*40**-1 #N\n",
+ "\n",
+ "#Frictional Force\n",
+ "F2=F1*(W*10**-3)**-1\n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#Speed of truck\n",
+ "u2=2*u #m/s\n",
+ "\n",
+ "#Force exerted by engine up theplane\n",
+ "P=W*1*40**-1+F1 #N\n",
+ "\n",
+ "#Power Exerted by engine\n",
+ "P2=P*u2*1000**-1 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Frictional Force of truck is\",round(F2,2),\"N\"\n",
+ "print\"Power Exerted by engine is\",round(P2,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frictional Force of truck is 25.0 N\n",
+ "Power Exerted by engine is 6.0 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.14,Page No.547"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=200*10**3 #N #Weight of train\n",
+ "#sin(theta)=1*150**-1 #Slope of track\n",
+ "u=5 #m/s #speed of train\n",
+ "p=3.5 #KW #Power developed by engine\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Case-1\n",
+ "\n",
+ "#power developed by engine\n",
+ "P=p*1000*u**-1 #N\n",
+ "\n",
+ "#Net Force \n",
+ "F=W*1*150**-1+P #N\n",
+ "\n",
+ "#Case-2\n",
+ "\n",
+ "#Force exerted by engine while moving up\n",
+ "P2=W*1*150**-1+F #N\n",
+ "\n",
+ "#Power developed by engine\n",
+ "P3=P2*u*1000**-1 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power Developed by Engine to pull up the train is\",round(P3,2),\"KW\"\n",
+ "\n",
+ "#Answer of Power developed by engine is incorrect i.e P so answer of Power Developed by Engine to pull up the train is also incorrect i.e P3"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Developed by Engine to pull up the train is 16.83 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15,Page No.549"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_BC=100 #m #Distance\n",
+ "V=20*3**-1 #m/s #Velocity\n",
+ "W=20000 #N #Weight\n",
+ "g=9.81 #m/s**2 #acceleration due to gravity\n",
+ "m=W*g**-1 #Mass of car\n",
+ "#sin(theta)=5*100**-1\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Frictional resistance due to track\n",
+ "F=8*20 #N\n",
+ "\n",
+ "#Final Velocity of car at D\n",
+ "v=0 \n",
+ "\n",
+ "#Component of weight of train\n",
+ "W2=W*5*100**-1 #N\n",
+ "\n",
+ "#Total Retarding Force against motion\n",
+ "F2=F+W2 #N\n",
+ "\n",
+ "#acceleration\n",
+ "a=F2*g*W**-1 #m/s**2\n",
+ "\n",
+ "#Distance\n",
+ "s=V**2*(2*round(a,3))**-1 #m\n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#Dstance travelled by car From B to E\n",
+ "\n",
+ "#Distance BD\n",
+ "s_BD=s+L_BC #m\n",
+ "\n",
+ "F3=840 #N #Net Force down the grade\n",
+ "\n",
+ "#Acceleration \n",
+ "a2=F3*g*W**-1 #m/s**2\n",
+ "\n",
+ "#Velocity\n",
+ "v2=(2*a2*s_BD)**0.5 #m/s\n",
+ "\n",
+ "#PArt 3\n",
+ "\n",
+ "#Motion From B to E\n",
+ "\n",
+ "#acceleration\n",
+ "a3=F*g*W**-1 #m/s**2\n",
+ "\n",
+ "#Initial velocity at B\n",
+ "u_B=10.70 #m/s\n",
+ "\n",
+ "#Distance\n",
+ "s2=u_B**2*(2*round(a3,3))**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance travelled by car before stopping is\",round(s,2),\"m\"\n",
+ "print\"Distance travelled by car beyond Bon level track before stopping at E\",round(s2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance travelled by car before stopping is 39.05 m\n",
+ "Distance travelled by car beyond Bon level track before stopping at E 733.91 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.16,Page No.552"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=100 #N #Weight carried by lift\n",
+ "a=2.45 #m/s**2 #Acceleration\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Tension in the cables supporting the lift\n",
+ "\n",
+ "#Lift moving upwards\n",
+ "T=W*(1+a*g**-1) #N\n",
+ "\n",
+ "#Lift moving downwards\n",
+ "T2=W*(1-a*g**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Tension in the cables supporting the lift:when moving upwards\",round(T,2),\"N\"\n",
+ "print\"Tension in the cables supporting the lift:when moving downward\",round(T2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in the cables supporting the lift:when moving upwards 125.0 N\n",
+ "Tension in the cables supporting the lift:when moving downward 75.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.16(A),Page No.553"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "a=1 #m/s**2 #upward acceleration\n",
+ "W=600 #N #weight of man\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#NEt Force in upward direction\n",
+ "F=W*g**-1 #N\n",
+ "\n",
+ "#But net Force in upward direction\n",
+ "T=F+W #N\n",
+ "\n",
+ "#Result\n",
+ "print\"net Force in upward direction\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "net Force in upward direction 661.16 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.17,Page No.553"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "a=1.225 #m/s**2 #upward acceleration\n",
+ "W=500 #N #Weight of man\n",
+ "g=9.8 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Tension in the cables supporting the lift\n",
+ "\n",
+ "#Lift moving upwards\n",
+ "T=W*(1+a*g**-1) #N\n",
+ "\n",
+ "#lift moving downwards\n",
+ "T2=W*(1-a*g**-1) #N\n",
+ "\n",
+ "#Lift moving upwards with unknown acceleration\n",
+ "T3=600 #N #Pressure exerted by man\n",
+ "a=(T3-W)*g*W**-1 #m/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration upwards is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration upwards is 1.96 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.18,Page No.554"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2500 #N #Weight of an elevator\n",
+ "u=0 #m/s #Initial Velocity\n",
+ "s=35 #m #Distance travelled\n",
+ "t=10 #sec #time\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Tension in the cables\n",
+ "\n",
+ "#When acceleration is zero i.e a=0\n",
+ "a=0 #m/s**2\n",
+ "T=W*(1-a*g**-1) #N\n",
+ "\n",
+ "#When acceleration is zero i.e a=0\n",
+ "a2=9.81 #m/s**2\n",
+ "T2=W*(1-a2*g**-1) #N\n",
+ "\n",
+ "#Using equation of distance\n",
+ "a3=(s-u*t)*2*(t**2)**-1 #m/s**2\n",
+ "\n",
+ "#Tension in the cable at time t=10 sec\n",
+ "T3=W*(1-a3*g**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Limits of table Tension is:when a=0\",round(T,2),\"N\"\n",
+ "print\" :when a=9.81 m/s**2\",round(T2,2),\"N\"\n",
+ "print\"Cable Tension at time t=10 sec\",round(T3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Limits of table Tension is:when a=0 2500.0 N\n",
+ " :when a=9.81 m/s**2 0.0 N\n",
+ "Cable Tension at time t=10 sec 2321.61 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.19,Page No.555"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "W=5000 #N #Weight of 10 men on the cage\n",
+ "u=0 #m/s #Initial Velocity of cage\n",
+ "v=12 #m/s #Final Velocity\n",
+ "s=20 #m #Distance travelled\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#acceleration\n",
+ "a=(v**2-u**2)*(2*s)**-1 #m/s**2\n",
+ "\n",
+ "#Tension in cable while moving downwards\n",
+ "T=W*(1-a*g**-1) #N\n",
+ "\n",
+ "#Tension produced by one men\n",
+ "T2=T*10**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Pressure Exerted by each man on the cage\",round(T2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Pressure Exerted by each man on the cage 316.33 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.20,Page No.556"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=5000 #N #Weight of elevator\n",
+ "a=3 #m/s**2 #Acceleration\n",
+ "W2=700 #N #weight of perator \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Reaction offered by floor on operator\n",
+ "R=W*g**-1*a+W2 #N\n",
+ "\n",
+ "#Total Weight \n",
+ "W3=W+W2 #N\n",
+ "\n",
+ "#Total Tension in the cable\n",
+ "T=W3*g**-1*a+W3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Total tension in the cable\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total tension in the cable 7444.9 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.21,Page No.558"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=50 #N #Heavier Weight\n",
+ "W2=30 #N #lighter Weight\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration of the system\n",
+ "a=g*(W1-W2)*(W1+W2)**-1 #m/s**2 \n",
+ "\n",
+ "#Tension in the string\n",
+ "T=2*W1*W2*(W1+W2)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the system\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the system 2.45 m/s**2\n",
+ "Tension in the string 37.5 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.22,Page No.558"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "W1=60 #N #bigger weight\n",
+ "a=3 #m/s**2 #Acceleration of the system\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#smaller Weight\n",
+ "W2=-(a*W1*g**-1-W1)*(a*g**-1+1)**-1 #N\n",
+ "\n",
+ "#Tension in the string\n",
+ "T=2*W1*W2*(W1+W2)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Smaller Weight is\",round(W2,2),\"N\"\n",
+ "print\"Tension in the string\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Smaller Weight is 31.88 N\n",
+ "Tension in the string 41.63 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.23,Page No.559"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=700 #N #Bigger Load\n",
+ "W2=500 #N #Smaller Load\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Weight of block A when acceleration is g/3\n",
+ "W1_1=((3*W2)+W2)*2**-1 #N\n",
+ "\n",
+ "#Weight added \n",
+ "W=W1_1-W1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight added is\",round(W,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight added is 300.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.24,Page No.560"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W_A=150 #N #Weight of block A\n",
+ "W_B=50 #N #Weight of block B\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=(W_A-W_B*2)*((W_B*2+(W_A*2**-1))*g**-1)**-1 #m/s**2\n",
+ "\n",
+ "#Acceleration of block B\n",
+ "a_B=a #m/s**2\n",
+ "\n",
+ "#Acceleration of block A\n",
+ "a_A=a*2**-1 #m/s**2 \n",
+ "\n",
+ "#Tensions in the string\n",
+ "T=W_B+W_B*g**-1*a #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Tensions in the string is\",round(T,2),\"N\"\n",
+ "print\"Acceleration of block B is\",round(a_B,2),\"m/s**2\"\n",
+ "print\"Acceleration of block A is\",round(a_A,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tensions in the string is 64.29 N\n",
+ "Acceleration of block B is 2.8 m/s**2\n",
+ "Acceleration of block A is 1.4 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.25,Page No.561"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=15 #N #weight over pulley A\n",
+ "W2=10 #N #total weight over pulley B\n",
+ "w1=6 #N #weight over pulley B\n",
+ "w2=4 #N #weight over pulley B\n",
+ "g=9.80 #m/s**2 #acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Consider motion of weight 15 N\n",
+ "#(W1-T1)=W1*g**-1*a ..........................(1)\n",
+ "\n",
+ "#Consider motion of weight 4 N\n",
+ "#(T2-w2)=w2*g**-1*(a1+a) ...................(2)\n",
+ "\n",
+ "#Consider motion of weight 6 N\n",
+ "#(w1-w2)=w1*g**-1*(a1-a) .........................(3)\n",
+ "\n",
+ "#Consider motion of pulley B\n",
+ "#T1=2*T2 ...............................(4)\n",
+ "\n",
+ "#Adding equations 2 and 3 we get\n",
+ "#g=5*a1-a .......................................(5)\n",
+ "\n",
+ "#Multiplying equation (2) by 2\n",
+ "#2*T2-8=8*g**-1*(a1+a)\n",
+ "\n",
+ "#But sub value 2*T2=T1 in equation above\n",
+ "#T1-8=8*g**-1*(a1+a) .......................................(6)\n",
+ "\n",
+ "#Adding equation 1 and 6\n",
+ "#7*g=23*a+8*a1 .......................................(7)\n",
+ "\n",
+ "#Multiplying equation (5) by 23\n",
+ "#23*g=-23*a+5*23*a1 .......................................(8)\n",
+ "\n",
+ "#Adding equation 7 and 8 we get\n",
+ "a1=30*g*123**-1 #m/s**2\n",
+ "\n",
+ "#sub value of equation 5 we get\n",
+ "a=5*a1-g #m/s**2\n",
+ "\n",
+ "#Acceleration of weight 15 N\n",
+ "a_15=a #m/s**2\n",
+ "\n",
+ "#Acceleration of weight 6 N\n",
+ "a_6=a1-a #m/s**2\n",
+ "\n",
+ "#Acceleration of weight 4 N\n",
+ "a_4=a1+a #m/s**2 \n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of weight 15 N\",round(a_15,2),\"m/s**2\"\n",
+ "print\"Acceleration of weight 6 N\",round(a_6,2),\"m/s**2\"\n",
+ "print\"Acceleration of weight 4 N\",round(a_4,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of weight 15 N 2.15 m/s**2\n",
+ "Acceleration of weight 6 N 0.24 m/s**2\n",
+ "Acceleration of weight 4 N 4.54 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.26,Page No.565"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Weight of bodies\n",
+ "W1=10 #N #Weight placed on Horizontal surface \n",
+ "W2=20 #N #Weight hanging free in air\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration of the system\n",
+ "a=g*W1*(W1+W2)**-1 #m/s**2\n",
+ "\n",
+ "#tension in the string\n",
+ "T=W1*W2*(W1+W2)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the system\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the system 3.27 m/s**2\n",
+ "Tension in the string 6.67 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.27,Page No.565"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=20 #N #Weight on horizontal surface\n",
+ "mu=0.3 #coefficient of friction\n",
+ "W2=20 #N #Weight hanging free in air\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration of the system\n",
+ "a=g*(W1-mu*W2)*(W1+W2)**-1 #m/s**2\n",
+ "\n",
+ "#tension in the string\n",
+ "T=W1*W2*(1+mu)*(W1+W2)**-1 #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the system\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the system 1.31 m/s**2\n",
+ "Tension in the string 8.67 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.28,Page No.566"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=10 #N #Weight of block A\n",
+ "W2=20 #N #weight of block B\n",
+ "mu=0.25 #coefficient of friction\n",
+ "s=2 #m #Distance moved by block\n",
+ "u=0 #Initial velocity of block B\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=g*(W1-mu*W2)*(W1+W2)**-1 #m/s**2\n",
+ "\n",
+ "#velocity of block B\n",
+ "v=u**2+2*a*s #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"velocity of block B\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "velocity of block B 6.54 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.29,Page No.566"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W2=10 #Weight placed on rough horizontal surface\n",
+ "W1_1=1.5 #N #Weight hanging free in air\n",
+ "W1=0.5 #N #additional weight added \n",
+ "T=1.5 #N #Tension in the string\n",
+ "R=10 #N #Normal Reaction\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total Weight hanging in air\n",
+ "W=W1_1+W1\n",
+ "\n",
+ "#Max Frictional Force \n",
+ "F=T=1.5 #N\n",
+ "\n",
+ "#Coefficient of friction \n",
+ "mu=F*R**-1\n",
+ "\n",
+ "#Acceleration of two weights\n",
+ "a=g*(W-mu*W2)*(W+W2)**-1 #m/s**2 \n",
+ "\n",
+ "#Tension in the string\n",
+ "T1=W*W2*(1+mu)*(W+W2)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of two weights is\",round(a,3),\"m/s**2\"\n",
+ "print\"Tension in the string\",round(T1,3),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of two weights is 0.409 m/s**2\n",
+ "Tension in the string 1.917 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.30,Page No.568"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W2=1500 #N #weight of body A\n",
+ "W1=1000 #N #Weight of body B\n",
+ "\n",
+ "#Coefficient of friction\n",
+ "mu=mu1=mu2=0.2\n",
+ "\n",
+ "#T1=1.3691*T2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=(W1-1.3691*mu*W2)*((W1*g**-1)+1.3691*W2*g**-1)**-1 #m/s**2\n",
+ "\n",
+ "#Tension in the string to which weight 1500 N is attached\n",
+ "T2=W2*g**-1*round(a,2)+mu*W2 #N\n",
+ "\n",
+ "#Tension in the string to which weight 1000 N is attached\n",
+ "T1=1.3691*round(T2,3)\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the systems is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string:T1\",round(T1,2),\"N\"\n",
+ "print\" :T2\",round(T2,2),\"N\"\n",
+ "\n",
+ "#Answer for T2 is incorrect in the book"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the systems is 1.89 m/s**2\n",
+ "Tension in the string:T1 806.39 N\n",
+ " :T2 588.99 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.31,Page No.573"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=15 #N #Weight of hanging free in air\n",
+ "W2=40 #N #weight placed on inclined plane\n",
+ "theta=15 #degree #Inclination\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=g*(W1-W2*sin(theta*pi*180**-1))*(W1+W2)**-1 #m/s**2\n",
+ " \n",
+ "#Tension in string\n",
+ "T=W1*W2*(1+sin(theta*pi*180**-1))*(W1+W2)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string is\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 0.83 m/s**2\n",
+ "Tension in the string is 13.73 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.32,Page No.573"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=25 #N #Weight of hanging free in air\n",
+ "W2=40 #N #weight placed on inclined plane\n",
+ "theta=15 #degree #Inclination\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "mu=0.2 #coefficient of friction\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=g*(W1-W2*sin(theta*pi*180**-1)-mu*W2*cos(theta*pi*180**-1))*(W1+W2)**-1 #m/s**2\n",
+ "\n",
+ "#Tension\n",
+ "T=W1*W2*(1+sin(theta*pi*180**-1)+mu*cos(theta*pi*180**-1))*(W1+W2)**-1\n",
+ "\n",
+ "#Distance\n",
+ "u=0 #m/s\n",
+ "t=3 #sec\n",
+ "s=u*t+a*t**2*2**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension is\",round(T,2),\"N\"\n",
+ "print\"Distance moved by 25 N is\",round(s,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 1.04 m/s**2\n",
+ "Tension is 22.34 N\n",
+ "Distance moved by 25 N is 4.69 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.33,Page No.578"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#For Circular Lamina\n",
+ "D=60 #cm\n",
+ "m=0.001 #kg/cm**2 #mass per unit area\n",
+ "\n",
+ "#For circular cyclinder\n",
+ "D2=80 #cm\n",
+ "h=15 #cm #height\n",
+ "m2=0.002 #kg/cm**3\n",
+ "\n",
+ "#For solid sphere\n",
+ "D3=40 #cm\n",
+ "m3=0.0015 #kg/cm**3\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#For Circular Lamina\n",
+ "\n",
+ "#Radius\n",
+ "R=D*2**-1 #cm\n",
+ "\n",
+ "#Total Mass\n",
+ "M=m*pi*R**2 #kg\n",
+ "\n",
+ "#Moment of Inertia of circular section\n",
+ "I_zz=M*R**2*2**-1 #Kg/cm**2\n",
+ "\n",
+ "#Radius of Gyration For circular section\n",
+ "k=R*((2)**0.5)**-1 #cm\n",
+ "\n",
+ "#For circular cyclinder\n",
+ "\n",
+ "#Radius\n",
+ "R2=D2*2**-1 #cm\n",
+ "\n",
+ "#Total Mass\n",
+ "M2=m2*pi*R2**2*h #kg\n",
+ "\n",
+ "#Moment of Inertia of circular section\n",
+ "I_zz2=M2*R2**2*2**-1 #Kg/cm**2\n",
+ "\n",
+ "#Radius of Gyration For circular section\n",
+ "k2=R2*((2)**0.5)**-1 #cm\n",
+ "\n",
+ "#For solid sphere\n",
+ "\n",
+ "#Radius\n",
+ "R3=D3*2**-1 #cm\n",
+ "\n",
+ "#Total Mass\n",
+ "M3=m3*4*pi*R3**3*3**-1 #kg\n",
+ "\n",
+ "#Moment of Inertia of circular section\n",
+ "I_zz3=2*5**-1*M3*R3**2 #Kg/cm**2\n",
+ "\n",
+ "#Radius of Gyration For circular section\n",
+ "k3=R3*0.6324 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"M.I of Circular Lamina is\",round(I_zz,2),\"Kg/cm**2\"\n",
+ "print\"Radius of gyration of Circular Lamina is\",round(k,2),\"cm\"\n",
+ "\n",
+ "print\"M.I of circular cyclinder is\",round(I_zz2,2),\"Kg/cm**2\"\n",
+ "print\"Radius of gyration of circular cyclinder is\",round(k2,2),\"cm\"\n",
+ "\n",
+ "\n",
+ "print\"M.I of solid sphere is\",round(I_zz3,2),\"Kg/cm**2\"\n",
+ "print\"Radius of gyration of solid sphere is\",round(k3,2),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "M.I of Circular Lamina is 1272.35 Kg/cm**2\n",
+ "Radius of gyration of Circular Lamina is 21.21 cm\n",
+ "M.I of circular cyclinder is 120637.16 Kg/cm**2\n",
+ "Radius of gyration of circular cyclinder is 28.28 cm\n",
+ "M.I of solid sphere is 8042.48 Kg/cm**2\n",
+ "Radius of gyration of solid sphere is 12.65 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.34,Page No.579"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=90 #cm #Diameter of grindstone\n",
+ "t=10 #cm #Thickness\n",
+ "m=0.0026 #kg/cm**3 #Mass per unit volume\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Radius\n",
+ "R=D*2**-1 #cm\n",
+ "\n",
+ "#Total Mass\n",
+ "M=m*pi*R**2*t #kg\n",
+ "\n",
+ "#M.I of of grindstone\n",
+ "I_zz=M*R**2*2**-1 #Kg/cm**2\n",
+ "\n",
+ "#Radius of gyration\n",
+ "k=R*((2)**0.5)**-1 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"M.I of Grindstone is\",round(I_zz,2),\"Kg/cm**2\"\n",
+ "print\"Radius of gyration is\",round(k,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "M.I of Grindstone is 167472.41 Kg/cm**2\n",
+ "Radius of gyration is 31.82 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.35,Page No.581"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=1000 #N #Weight of flying wheel\n",
+ "k=0.5 #m\n",
+ "T=1200 #N*m #Torque\n",
+ "g=9.80 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#MAss of flywheel\n",
+ "M=W*g**-1 #Kg\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=M*k**2 #Kg/m**2\n",
+ "\n",
+ "#Angular Acceleration\n",
+ "alpha=T*I**-1 #radians/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Acceleration of flywheel is\",round(alpha,2),\"radians/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Acceleration of flywheel is 47.04 radians/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.35(A),Page No.582"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "I=12 #Kg*m**2 #M.I of circular disc\n",
+ "t=3 #s #Time\n",
+ "T=800 #N*m #Torque\n",
+ "w_o=0 #m/s #Angular velocity initially\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "alpha=T*I**-1 #radians/s**2\n",
+ "\n",
+ "#Angular velocity after 3 seconds\n",
+ "w=w_o+alpha*t #rad/s\n",
+ "\n",
+ "#Result\n",
+ "print\"angular Velocity after 3 seconds\",round(w,2),\"rad/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "angular Velocity after 3 seconds 200.0 rad/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.36,Page No.582"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=5000 #kg #Mass of flywheel\n",
+ "k=1 #m #radius of gyration \n",
+ "N_o=400 #r.p.m #Initial Velocity\n",
+ "N=280 #r.p.m #Final speed\n",
+ "t=120 #seconds #Time\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Initial Angular velocity\n",
+ "w_o=2*pi*N_o*60**-1 #rad/s\n",
+ "\n",
+ "#Final Angular velocity\n",
+ "w=2*pi*N*60**-1 #rad/s \n",
+ "\n",
+ "#M.I\n",
+ "I=M*k**2 #kg/m**2\n",
+ "\n",
+ "#Angular acceleration\n",
+ "alpha=(w-w_o)*t**-1 #rad/s**2\n",
+ "\n",
+ "#Torque\n",
+ "T=-M*alpha #N*m\n",
+ "\n",
+ "#Final K.E\n",
+ "E2=round(w,2)**2*I*2**-1 #N*m\n",
+ "\n",
+ "#Initial K.E\n",
+ "E1=41.88**2*I*2**-1 #N*m\n",
+ "\n",
+ "#Change in K.E\n",
+ "E=E2-E1 #N*m\n",
+ "\n",
+ "#Initial Momentum\n",
+ "p1=I*round(w,2) #N*m/s\n",
+ "\n",
+ "#Final Momentum\n",
+ "p2=I*41.88 #N*m/s\n",
+ "\n",
+ "#Change in angular Momentum\n",
+ "p=p2-p1 #N*m/s\n",
+ "\n",
+ "#Result\n",
+ "print p1\n",
+ "print\"Retading Torque acting is\",round(T,2),\"N*m\"\n",
+ "print\"Change in K.E is\",round(E,2),\"N*m\"\n",
+ "print\"Change in Angular Momentum is\",round(p,2),\"N*m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "146600.0\n",
+ "Retading Torque acting is 523.6 N*m\n",
+ "Change in K.E is -2235680.0 N*m\n",
+ "Change in Angular Momentum is 62800.0 N*m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.37,Page No.583"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "V=0.2 #m/s #Linear Velocity\n",
+ "W=0.1 #N #Weight of cyclinder\n",
+ "R=0.1 #m #Radius\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Mass \n",
+ "M=W*g**-1 #Mass\n",
+ "\n",
+ "#M.I\n",
+ "I=M*R**2*2**-1 \n",
+ "\n",
+ "#Angular Velocity\n",
+ "w=V*R**-1 #rad/s\n",
+ "\n",
+ "#Total K.E\n",
+ "E=(I*w**2+M*V**2)*2**-1 #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Total Kinetic Energy is\",round(E,6),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total Kinetic Energy is 0.000306 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.38,Page No.584"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "k=0.5 #m #Radius of Gyration\n",
+ "W=6000 #N #Weight of flywheel\n",
+ "N_o=0 #Initial r.p.m\n",
+ "N=200 #Final r.p.m \n",
+ "t=120 #seconds\n",
+ "g=9.80 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#MAss\n",
+ "M=W*g**-1 #Kg\n",
+ "\n",
+ "#Initial Angular Velocity\n",
+ "w_o=2*pi*N_o*60**-1 \n",
+ "\n",
+ "#Final Angular Velocity\n",
+ "w=2*pi*N*60**-1 #rad/s\n",
+ "\n",
+ "#M.I\n",
+ "I=M*k**2 \n",
+ "\n",
+ "#Angular acceleration\n",
+ "alpha=(w-w_o)*t**-1 #rad/s**2\n",
+ "\n",
+ "#Torque Exerted\n",
+ "T=I*alpha #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Average Torque exerted is\",round(T,2),\"N*m\"\n",
+ "\n",
+ "#Answer for M.I is incorrect so value of Torque in book is incorrect"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average Torque exerted is 26.71 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.38(A),Page No.585"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#weights\n",
+ "W_A=100 #N\n",
+ "W_B=180 #N\n",
+ "\n",
+ "#Radii\n",
+ "r_A=0.1 #m \n",
+ "r_B=0.15 #m\n",
+ "\n",
+ "#RAdius of gyration\n",
+ "k_A=0.08 #m \n",
+ "k_B=0.13 #m\n",
+ "\n",
+ "theta=30 #degree #Inclination of plane\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Wheel A\n",
+ "\n",
+ "#Angular acceleration \n",
+ "alpha_A=(W_A*sin(theta*pi*180**-1)*r_A)*(W_A*g**-1*(k_A**2+r_A**2))**-1 #rad/s\n",
+ "\n",
+ "#Linear acc. of wheel \n",
+ "alpha_A_a=alpha_A*r_A #m/s**2\n",
+ "\n",
+ "#Wheel B\n",
+ "\n",
+ "#Angular acceleration\n",
+ "alpha_B=W_B*sin(theta*pi*180**-1)*r_B*((W_B*g**-1*(k_B**2+r_B**2)))**-1\n",
+ "\n",
+ "#Linear acc. of wheel \n",
+ "alpha_B_b=alpha_B*r_B #m/s**2\n",
+ "\n",
+ "#Acceleration of A with respect to B\n",
+ "a_A_B=-(round(alpha_B_b,2)-round(alpha_A_a,2))\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of A with respect to B\",a_A_B,\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of A with respect to B 0.19 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.39,Page No.589"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=5 #N #Weight suspended by arope\n",
+ "W_o=50 #N #Weight of pulley\n",
+ "R=0.3 #m #Radius of pulley\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration\n",
+ "a=g*W*(W+W_o*2**-1)**-1 #m/s**2\n",
+ "\n",
+ "#Tension in the string\n",
+ "T=W*W_o*(2*W+W_o)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string is\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration is 1.64 m/s**2\n",
+ "Tension in the string is 4.17 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.40,Page No.590"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=100 #N #bigger Weight\n",
+ "W2=40 #N #Smaller Weight\n",
+ "W_o=50 #N #Weight of pulley\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Acceleration \n",
+ "a=g*(W1-W2)*(W1+W2+W_o*2**-1)**-1 #m/s**2\n",
+ "\n",
+ "#TEnsion T1\n",
+ "T1=W1*(2*W2+W_o*2**-1)*(W1+W2+W_o*2**-1)**-1 #N\n",
+ "\n",
+ "#Tension T2\n",
+ "T2=W2*(2*W1+W_o*2**-1)*(W1+W2+W_o*2**-1)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of block is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension T1\",round(T1,2),\"N\"\n",
+ "print\"Tension T2\",round(T2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of block is 3.57 m/s**2\n",
+ "Tension T1 63.64 N\n",
+ "Tension T2 54.55 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.41,Page No.591"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2940 #N #Weight of cage\n",
+ "D=1.20 #m #Diameter of drum\n",
+ "R=0.6 #m #Radius of drum\n",
+ "W_o=735 #N #Weight of drum\n",
+ "k=0.55 #m #Radius of gyration\n",
+ "T1=4000 #N*m #Constant Torque Exerted by motor\n",
+ "g=9.8 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "\n",
+ "#Mass of the cage\n",
+ "M=W*g**-1 #Kg\n",
+ "\n",
+ "#Net Force\n",
+ "#(P-W)=M*a ........................1\n",
+ "\n",
+ "#M.I of Drum\n",
+ "I=W_o*g**-1*k**2 \n",
+ "\n",
+ "#Torque on Drum\n",
+ "#(T1-R*P)=I*alpha ..................(2)\n",
+ "\n",
+ "#Angular Acceleration\n",
+ "#alpha=(a*R**-1)\n",
+ "\n",
+ "#Sub value of I and alpha in equation 2 we get\n",
+ "#(4000-0.6*P)=37.8125*a ...................3\n",
+ "\n",
+ "#After multipliying equation 1 by R we get\n",
+ "#(R*P-R*W)=R*M*a .............................4\n",
+ "\n",
+ "#Adding equations 3 and 4 we get equation as\n",
+ "#(4000-0.6*2940)=37.8125*a+0.6*300*a\n",
+ "#AFter further simplifying we get\n",
+ "a=2236*(217.8125)**-1 #m/s**2 #Acceleration\n",
+ "\n",
+ "#Sub value of a in equation 1 \n",
+ "P=M*a+W #N\n",
+ "\n",
+ "#PArt-2\n",
+ "#Time Required to raise the cage 20 m from ground\n",
+ "\n",
+ "u=0 #m/s #Initial Velocity\n",
+ "a=10.265 #m/s**2 #acceleraation\n",
+ "s=20 #m #Height from ground\n",
+ "\n",
+ "#time required\n",
+ "t=((2*s)*a**-1)**0.5 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of the cage is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the cage is\",round(P,2),\"N\"\n",
+ "print\"Time required to raise the cage 20 m from ground\",round(t,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of the cage is 10.27 m/s**2\n",
+ "Tension in the cage is 6019.71 N\n",
+ "Time required to raise the cage 20 m from ground 1.97 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.42,Page No.593"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W_o=100 #N #Weight of cyclinder\n",
+ "W=10 #N #Weight of block\n",
+ "D=1 #m #diameter of cyclinder\n",
+ "R=0.5 #m #Radius of cyclinder\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Mass of block\n",
+ "M=W*g**-1 #Kg\n",
+ "\n",
+ "#Net Force\n",
+ "#(W-P)=W1*g**-1*alpha .........................1\n",
+ "\n",
+ "#M.I\n",
+ "I=M*R**2*2**-1 #kgm**2\n",
+ "\n",
+ "#Torque equation\n",
+ "#T=I*alpha \n",
+ "\n",
+ "#Multiplying equation of net force with 2 we get\n",
+ "#P=25*g**-1*alpha ..............................2\n",
+ "\n",
+ "#Adding equations 1 and 2 we get\n",
+ "alpha=W*3.06**-1 #rad/s**2\n",
+ "\n",
+ "#Initial velocity\n",
+ "u=0 #m/s\n",
+ "t=2 #sec #time\n",
+ "\n",
+ "#Angular acceleration \n",
+ "alpha=3.268 #rad/s**2\n",
+ "\n",
+ "#Angular Velocity\n",
+ "u_o=u+alpha*t\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Velocity after 2 seconds is\",round(u_o,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Velocity after 2 seconds is 6.54 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.43,Page No.595"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W1=100 #N #Weight of Block\n",
+ "W2=300 #N #weight of pulley\n",
+ "k=0.25 #m #Radius of gyration\n",
+ "r_A=0.2 #m #Radius of pulley A\n",
+ "r_B=0.3 #m #Radius of pulley B\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Motion of block B\n",
+ "#(W1-T_B)=W1*g**-1*r_B*alpha ..................1\n",
+ "\n",
+ "#Motion of block A\n",
+ "#(T_A-W1)=W1*g**-1*r_A*alpha ..................2\n",
+ "\n",
+ "#M.I of pulley\n",
+ "I=W2*g**-1*k**2\n",
+ "\n",
+ "#Rotation of pulley\n",
+ "#T_B*r_B-T_A*r_A=I*alpha .....................3\n",
+ "\n",
+ "#After multiplying equation 1 by r_B we get\n",
+ "#30-r_B*T_B=W1*g**-1*r_B*alpha ..................4 \n",
+ "\n",
+ "#After multiplying equation 2 by r_A we get\n",
+ "#0.2*T_A-20=W1*g**-1*r_A*alpha ..................5\n",
+ "\n",
+ "#Adding equations 3,4,5 and further simplifying we get\n",
+ "alpha=10*g*31.75**-1 #Rad/s**2\n",
+ "\n",
+ "#Linear acceleration of pulley\n",
+ "alpha_B=0.3*alpha #m/s**2\n",
+ "alpha_A=0.2*alpha #m/s**2 \n",
+ "\n",
+ "#Tension in strings\n",
+ "T_A=W1+W1*g**-1*alpha_A #N\n",
+ "T_B=W1-W1*g**-1*alpha_B #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular Acceleration of pulley\",round(alpha,2),\"rad/s**2\"\n",
+ "print\"Linear acceleration of blocks A and B:alpha_A\",round(alpha_A,2),\"rad/s**2\"\n",
+ "print\" :alpha_B\",round(alpha_B,2),\"rad/s**2\"\n",
+ "print\"Tension in the strings\",round(T_A,2),\"N\"\n",
+ "print\" \",round(T_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular Acceleration of pulley 3.09 rad/s**2\n",
+ "Linear acceleration of blocks A and B:alpha_A 0.62 rad/s**2\n",
+ " :alpha_B 0.93 rad/s**2\n",
+ "Tension in the strings 106.3 N\n",
+ " 90.55 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.44,Page No.598"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Weights\n",
+ "W1=200 #N\n",
+ "W2=800 #N\n",
+ "\n",
+ "F=400 #N #Force applied\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "g=9.80 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total Weights\n",
+ "W=W1+W2 #N\n",
+ "\n",
+ "#Total Mass \n",
+ "M=W*g**-1 #Kg\n",
+ "\n",
+ "#Force of friction\n",
+ "F2=mu*W #N\n",
+ "\n",
+ "#acceleration\n",
+ "a=-((-F+F2)*g)*W**-1 #m/s**2 \n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#Force of Friction\n",
+ "F3=mu*W1 #N\n",
+ "\n",
+ "#Reverse Effective Force on it\n",
+ "F4=W1*g**-1*a #N\n",
+ "\n",
+ "#Tension in thread\n",
+ "T=F3+F4 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"acceleration of the weights is\",round(a,2),\"m/s**2\"\n",
+ "print\"Tension in the string is\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "acceleration of the weights is 0.98 m/s**2\n",
+ "Tension in the string is 80.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_16.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_16.ipynb new file mode 100644 index 00000000..b32e24dd --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_16.ipynb @@ -0,0 +1,1389 @@ +{
+ "metadata": {
+ "name": "chapter 16.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 16:Simple Harmonic Motion And Mechanical Vibrations"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.1,Page No.615"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "t=0.3 #s #Time\n",
+ "r=0.8 #m #Amplitude\n",
+ "T=1.6 #s #Period of oscillations\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#frequency\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#Velocity\n",
+ "v=round(f,3)*r*sin(round(f,3)*t) #m/s\n",
+ "\n",
+ "#Accleration\n",
+ "a=f**2*r*cos(f*t) #m/s**2\n",
+ "\n",
+ "#Value for acceleration in textbook is incorrect\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity is\",round(v,2),\"m/s\"\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity is 2.9 m/s\n",
+ "Acceleration is 4.72 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.2,Page No.615"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "r=1 #m #Amplitude\n",
+ "T=2 #s #Period of oscillations\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Time taken by body from mid pos\n",
+ "t=T*5**-1 #s\n",
+ "\n",
+ "#Time taken by body from extreme position to mid position\n",
+ "t2=T*4**-1 #s\n",
+ "\n",
+ "#time taken by body fom extreme position\n",
+ "t3=t2-t #s\n",
+ "\n",
+ "#Angular velocity\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#Velocity\n",
+ "v=-f*r*sin(f*t3) #m/s\n",
+ "\n",
+ "#Value of velocity in book is incorrect in textbook i.e 0.09831\n",
+ "\n",
+ "#Acceleration\n",
+ "a=-f**2*r*cos(pi*t3) #m/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity is\",round(v,2),\"m/s\"\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity is -0.97 m/s\n",
+ "Acceleration is -9.39 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.3,Page No.616"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "t=0.4 #s #Time\n",
+ "r=1 #m #Amplitude\n",
+ "T=2 #s #Period of oscillations\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#frequency\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#Velocity\n",
+ "v=round(f,3)*r*sin(round(f,3)*t) #m/s\n",
+ "\n",
+ "#Accleration\n",
+ "a=f**2*r*cos(f*t) #m/s**2\n",
+ "\n",
+ "#Value for acceleration in textbook is incorrect\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity is\",round(v,2),\"m/s\"\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity is 2.99 m/s\n",
+ "Acceleration is 3.05 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.4,Page No.617"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "N=100 #r.p.m #Speed of crank\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Angular velocity\n",
+ "f=2*pi*N*60**-1 #rad/s \n",
+ "\n",
+ "#Stroke of piston\n",
+ "n=1.8 #cm\n",
+ "\n",
+ "#Ampiltude\n",
+ "r=n*2**-1 #m\n",
+ "\n",
+ "#Displacement of piston from centre\n",
+ "x=0.6 #m\n",
+ "\n",
+ "\n",
+ "#Let f*t=y\n",
+ "#Displacement\n",
+ "y=arccos(x*r**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Velocity of piston\n",
+ "v=-f*r*sin(y*180**-1*pi)\n",
+ "\n",
+ "#Acceleration of piston\n",
+ "a=-f**2*r*cos(y*180**-1*pi) #m/s**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity is\",round(v,2),\"m/s\"\n",
+ "print\"Acceleration is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity is -7.02 m/s\n",
+ "Acceleration is -65.8 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.5,Page No.617"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Velocities of Body\n",
+ "v1=8 #m/s\n",
+ "v2=3 #m/s\n",
+ "\n",
+ "#Distance of Body\n",
+ "x1=1.5 #m #When v1=8 #m/s\n",
+ "x2=2.5 #m #When v2=3 #m/s\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#For 1st velocity\n",
+ "#v1=-f*((r**2-x1**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#8=-f*((r**2-1.5**2))**2 ..........................................1\n",
+ "\n",
+ "#For 2nd velocity\n",
+ "#v2=-f*((r**2-x2**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#3=-f*((r**2-2.5**2))**2 ..........................................2\n",
+ "\n",
+ "#Dividing equations 1 and 2 and further simplifying we get\n",
+ "#Amplitude\n",
+ "r=(42.19*6.111**-1)**0.5 #m \n",
+ "\n",
+ "#Sub value of r in equation 2 we get\n",
+ "f=v2*(((r**2-x2**2))**0.5)**-1 #rad/s\n",
+ "\n",
+ "#Period\n",
+ "T=2*pi*f**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Amplitude of Body is\",round(r,2),\"m\"\n",
+ "print\"Period of Body is\",round(T,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amplitude of Body is 2.63 m\n",
+ "Period of Body is 1.69 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.6,Page No.618"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Velocities of Body\n",
+ "v1=12 #m/s\n",
+ "v2=3 #m/s\n",
+ "\n",
+ "#Distance of Body\n",
+ "x1=0.05 #m #When v1=8 #m/s\n",
+ "x2=0.1 #m #When v2=3 #m/s\n",
+ "x=0.075 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#For 1st velocity\n",
+ "#v1=-f*((r**2-x1**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#12=-f*((r**2-0.05**2))**2 ..........................................1\n",
+ "\n",
+ "#For 2nd velocity\n",
+ "#v2=-f*((r**2-x2**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#3=-f*((r**2-0.1**2))**2 ..........................................2\n",
+ "\n",
+ "#Dividing equations 1 and 2 and further simplifying we get\n",
+ "#Amplitude\n",
+ "r=(0.1575*15**-1)**0.5 #m \n",
+ "\n",
+ "#Sub value of r in equation 2 we get\n",
+ "f=v2*(((r**2-x2**2))**0.5)**-1 #rad/s\n",
+ "\n",
+ "#Frequency\n",
+ "n=f*(2*pi)**-1 #cycles/s\n",
+ "\n",
+ "#Acceleration\n",
+ "a=f**2*x\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequency of motion is\",round(f,2),\"rad/s\"\n",
+ "print\"Amplitude of motion is\",round(r,4),\"m\"\n",
+ "print\"Acceleration when the displacement is 75 mm is\",round(a,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of motion is 134.16 rad/s\n",
+ "Amplitude of motion is 0.1025 m\n",
+ "Acceleration when the displacement is 75 mm is 1350.0 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.7,Page No.619"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "r=4.5 #m #amplitude\n",
+ "T=3.5 #s #Period\n",
+ "x1=3.5 #m #Distance of 1st point from centre\n",
+ "x2=1.5 #m #Distsnce of 2nd point from centre\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Angular velocity\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#For 1st point\n",
+ "#x1=r*cos(f*t1)\n",
+ "#After substituting and further simplifying \n",
+ "t1=0.6796*1.795**-1\n",
+ "\n",
+ "#For second point\n",
+ "#x2=r*cos(f*t2)\n",
+ "#After substituting and further simplifying \n",
+ "t2=1.231*1.795**-1\n",
+ "\n",
+ "#Time required by body in passing between two points\n",
+ "t=t2-t1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Time required by body in passing between two points is\",round(t,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time required by body in passing between two points is 0.31 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.8,Page No.620"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Velocities of Body\n",
+ "v1=6 #m/s\n",
+ "v2=3 #m/s\n",
+ "\n",
+ "#Distance of Body\n",
+ "x1=0.125 #m #When v1=6 #m/s\n",
+ "x2=0.200 #m #When v2=3 #m/s\n",
+ "\n",
+ "W=0.2 #kg #Weight of cross head\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#For 1st velocity\n",
+ "#v1=-f*((r**2-x1**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#6=-f*((r**2-0.125**2))**2 ..........................................1\n",
+ "\n",
+ "#For 2nd velocity\n",
+ "#v2=-f*((r**2-x2**2))**2\n",
+ "#After Substituting values and further simplifying we get\n",
+ "#3=-f*((r**2-0.200**2))**2 ..........................................2\n",
+ "\n",
+ "#Dividing equations 1 and 2 and further simplifying we get\n",
+ "#Amplitude\n",
+ "r=(0.1444*3**-1)**0.5 #m \n",
+ "\n",
+ "#Sub value of r in equation 2 we get\n",
+ "f=v2*(((round(r,4)**2-x2**2))**0.5)**-1 #rad/s\n",
+ "\n",
+ "#Period\n",
+ "T=2*pi*f**-1 #s\n",
+ "\n",
+ "#Max Velocity\n",
+ "V_max=f*r #m/s\n",
+ "\n",
+ "#mass of cross head\n",
+ "m=W*g**-1 #N\n",
+ "\n",
+ "#Max acceleration\n",
+ "a_max=round(f,2)**2*round(r,4) #m/s**2\n",
+ "\n",
+ "#Max Force\n",
+ "F_max=m*a_max\n",
+ "\n",
+ "#Result\n",
+ "print\"Amplitude of vibration is\",round(r,2),\"m\"\n",
+ "print\"Max Velocity is\",round(V_max,2),\"m/s\"\n",
+ "print\"period of Vibration is\",round(T,2),\"s\"\n",
+ "print\"MAx Force in direction of motion\",round(F_max,2),\"Kg*f\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amplitude of vibration is 0.22 m\n",
+ "Max Velocity is 7.3 m/s\n",
+ "period of Vibration is 0.19 s\n",
+ "MAx Force in direction of motion 4.95 Kg*f\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.9,Page No.621"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Distance of Body\n",
+ "x1=0.07 #m #When v1=0.6*V_max #m/s\n",
+ "x2=0.05 #m #When v2 #m/s\n",
+ "T=7.5 #s #Time to perform oscillation\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Equation of velocity\n",
+ "#v=-f*((r**2-x**2)**0.5) ..................1\n",
+ "\n",
+ "#Velocity\n",
+ "#v=0.6*V_max ........2\n",
+ "#x=x1 ................3\n",
+ "\n",
+ "#Frequency\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#MAx Velocity\n",
+ "#V_max=-f*r ............4\n",
+ "\n",
+ "#Sub all values in equation 1 and further simplifying we get\n",
+ "r=(0.0049*0.64**-1)**0.5\n",
+ "\n",
+ "#Velocity \n",
+ "v=f*((r**2-x2**2)**0.5)\n",
+ "\n",
+ "#Max Acceleration\n",
+ "a_max=f**2*r\n",
+ "\n",
+ "#Result\n",
+ "print\"Amplitude of motion is\",round(r,4),\"m\"\n",
+ "print\"Velocity of particle is\",round(v,2),\"m/s\"\n",
+ "print\"MAx Acceleration is\",round(a_max,4),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amplitude of motion is 0.0875 m\n",
+ "Velocity of particle is 0.06 m/s\n",
+ "MAx Acceleration is 0.0614 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.10,Page No.625"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=50 #N #Weight attached\n",
+ "n=4 #No. of oscillation\n",
+ "T=0.25 #s #Period of oscillation\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Static Extension\n",
+ "P=(T*(2*pi)**-1)**2*9.81*100 #cm\n",
+ "\n",
+ "#Stiffness of spring\n",
+ "k=W*round(P,2)**-1 #N/cm\n",
+ "\n",
+ "#Result\n",
+ "print\"Stiffness of spring is\",round(k,2),\"N/cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stiffness of spring is 32.26 N/cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.11,Page No.625"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "C=150 #N/m #Stiffness\n",
+ "T=1.5 #s #PEriod time\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Static Extension\n",
+ "P=(T*(2*pi)**-1)**2*9.81\n",
+ "\n",
+ "#Weight Attached\n",
+ "W=C*P #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight attached to spring\",round(W,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight attached to spring 83.87 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.12,Page No.626"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Frequency\n",
+ "n1=12 #cycles/s #when Weight W1=W\n",
+ "n2=10 #cycles/s #when Weight W2=(W+20)\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#frequency equation\n",
+ "#f=1*(2*pi)**-1*((k*g)*W**-1)**0.5\n",
+ "\n",
+ "#For First case f=12 \n",
+ "#12=1*(2*pi)**-1*((k*g)*W**-1)**0.5 ...............1\n",
+ "\n",
+ "#For Second case f=10\n",
+ "#10=1*(2*pi)**-1*((k*g)*W**-1)**0.5 .............2\n",
+ "\n",
+ "#Dividing equation 1 by 2 we get\n",
+ "#12*10**-1=((W+20)*W**-1)**0.5 \n",
+ "\n",
+ "#Squaring above equation and further simplifying we get \n",
+ "W=2000*44**-1\n",
+ "\n",
+ "#Sub value of W in equation 1 we get\n",
+ "k=(n1*2*pi)**2*W*g**-1*10**-3 #KN/m\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight of spring is\",round(W,2),\"N\"\n",
+ "print\"Stiffness of the spring is\",round(k,2),\"KN/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight of spring is 45.45 N\n",
+ "Stiffness of the spring is 26.34 KN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.15,Page No.629"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "M=50 #kg #Mass of block\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "C1=4000 #N/m #Stiffness of 1st spring\n",
+ "C2=6000 #N/m #Stiffness of 2nd spring\n",
+ "r=0.04 #m #MAx amplitude\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Static Extension of 1st spring\n",
+ "x1=M*g*C1**-1 #m\n",
+ "\n",
+ "\n",
+ "#Static Extension of 2nd spring\n",
+ "x2=M*g*C2**-1 #m\n",
+ "\n",
+ "#Total Extension \n",
+ "x=x1+x2 #m\n",
+ "\n",
+ "#Period of vibration \n",
+ "T=2*pi*(x*g**-1)**0.5 #s\n",
+ "\n",
+ "#Angular velocity\n",
+ "f=2*pi*T**-1 #rad/s\n",
+ "\n",
+ "#MAx velocity\n",
+ "V_max=f*r #m/s\n",
+ "\n",
+ "#Max Acceleration\n",
+ "A_max=f**2*r #m/s**2\n",
+ "\n",
+ "#2nd case\n",
+ "\n",
+ "#Let\n",
+ "#W1=Weight supported by first spring\n",
+ "#W2=Weight suppoerted by second spring\n",
+ "\n",
+ "#W=W1+W2 #Total Weight ......................1\n",
+ "\n",
+ "#Extension of first spring\n",
+ "#X1=W1*C1**-1 ...........................2\n",
+ "\n",
+ "#Extension of second spring\n",
+ "#X2=W2*C2**-1 .........................3\n",
+ "\n",
+ "#As Extension of 1st spring is equal to 2nd spring\n",
+ "#W1*C1**-1=W2*C2**-1 \n",
+ "\n",
+ "#sub value in equation 1 and further simplifying we get\n",
+ "W2=50*g*3*5**-1 #N\n",
+ "\n",
+ "#Static extension of block\n",
+ "X3=W2*C2**-1 #m\n",
+ "\n",
+ "#Period of vibration \n",
+ "T2=2*pi*(X3*g**-1)**0.5 #s\n",
+ "\n",
+ "#Angular velocity\n",
+ "f2=2*pi*T2**-1 #rad/s\n",
+ "\n",
+ "#MAx velocity\n",
+ "V_max2=f2*r #m/s\n",
+ "\n",
+ "#Acceleration\n",
+ "A_max2=f2**2*r #m/s**2\n",
+ "\n",
+ "\n",
+ "#result\n",
+ "print\"Period of vibrations\",round(T,4),\"s\"\n",
+ "print\"MAx velocity\",round(V_max,2),\"m/s\"\n",
+ "print\"Max Acceleration\" ,round(A_max,2),\"m/s**2\"\n",
+ "\n",
+ "#When Block is suppoetred with spring\n",
+ "print\"Period of vibrations\",round(T2,2),\"s\"\n",
+ "print\"MAx velocity\",round(V_max2,2),\"m/s\"\n",
+ "print\"Max Acceleration\" ,round(A_max2,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Period of vibrations 0.9069 s\n",
+ "MAx velocity 0.28 m/s\n",
+ "Max Acceleration 1.92 m/s**2\n",
+ "Period of vibrations 0.44 s\n",
+ "MAx velocity 0.57 m/s\n",
+ "Max Acceleration 8.0 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16,Page No.631"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "x=0.3 #mm #Extension of spring\n",
+ "W1=20 #N #Weight \n",
+ "W2=700 #N #Weight supported\n",
+ "e=1.05 #cm #Static Extension\n",
+ "r=0.90 #cm #Amplitude\n",
+ "g=980 #m/s**2 #Acceleration due to gravity\n",
+ "x3=0.4 #cm #Displacement of weight from equilibrium position\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Stiffness of spring\n",
+ "C=W1*x**-1 #N/mm\n",
+ "\n",
+ "#Extension of spring\n",
+ "x2=W2*C**-1 #cm\n",
+ "\n",
+ "#Period of vibration\n",
+ "T=2*pi*((e*g**-1)**0.5) #s\n",
+ "\n",
+ "#Frequency\n",
+ "n=1*T**-1 #vib/s\n",
+ "\n",
+ "#Angular velocioty\n",
+ "f=(g*e**-1)**0.5 #rad/s\n",
+ "\n",
+ "#Velocity\n",
+ "v=-f*((r**2-x3**2)**0.5)\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequency of vibration is\",round(n,2),\"vib/s\"\n",
+ "print\"Period of vibration is\",round(T,2),\"s\"\n",
+ "print\"Velocity of weight is\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of vibration is 4.86 vib/s\n",
+ "Period of vibration is 0.21 s\n",
+ "Velocity of weight is -24.63 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.17,Page No.632"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W_o=24 #tf #Weight of empty wagon\n",
+ "W1=32 #tf #Weight of goods\n",
+ "W=W_o+W1 #Total Weight\n",
+ "e1=8 #cm #Total Compression of spring\n",
+ "g=981 #Acceleration due to gravity\n",
+ "r=10 #cm #Amplitude\n",
+ "x=4 #cm #displacement\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Stiffness of spring\n",
+ "c=W*e1**-1 #tf/cm\n",
+ "\n",
+ "#Compression of spring due to weight of wagon\n",
+ "e_o=W_o*c**-1 #cm\n",
+ "\n",
+ "#When Wagon is empty \n",
+ "T_o=2*pi*((e_o*g**-1)**0.5)\n",
+ "\n",
+ "#When Wagon is Loaded \n",
+ "T1=2*pi*((e1*g**-1)**0.5)\n",
+ "\n",
+ "#Angular velocity\n",
+ "f=2*pi*T_o**-1 #rad/s\n",
+ "\n",
+ "#Velocity \n",
+ "v=f*((r**2-x**2)**0.5)*10**-2\n",
+ "\n",
+ "#Result\n",
+ "print\"Natural period of Vibrations is:When wagon is empty\",round(T_o,2),\"s\"\n",
+ "print\" :When wagon is loaded\",round(T1,2),\"s\"\n",
+ "print\"Velocity when displacement is\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Natural period of Vibrations is:When wagon is empty 0.37 s\n",
+ " :When wagon is loaded 0.57 s\n",
+ "Velocity when displacement is 1.55 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.18,Page No.634"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "T=2 #s #time\n",
+ "g2=981 #Acceleration due to gravity\n",
+ "g=980 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Length of seconds pendulum with g=980\n",
+ "L1=(T*(2*pi)**-1)**2*g\n",
+ "\n",
+ "#Length of seconds pendulum with g=981\n",
+ "L2=(T*(2*pi)**-1)**2*g2\n",
+ "\n",
+ "#Result\n",
+ "print\"Length of seconds pendulum with g=980 is\",round(L1,2),\"cm\"\n",
+ "print\"Length of seconds pendulum with g=981 is\",round(L2,3),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Length of seconds pendulum with g=980 is 99.29 cm\n",
+ "Length of seconds pendulum with g=981 is 99.396 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.19,Page No.634"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "l=0.6 #m #Length of string\n",
+ "W=80 #g\n",
+ "g=9.81 \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Time\n",
+ "T=2*pi*((l*g**-1)**0.5) #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Time period of pendulum is\",round(T,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time period of pendulum is 1.55 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.20,Page No.635"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "l=99.93 #cm #LEngth of pendulum\n",
+ "dn=-5 #s #Number of beats clock loses\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Number of seconds in days \n",
+ "dl=-dn*2*l*n**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Length of pendulum for correct time is\",round(dl,5),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Length of pendulum for correct time is 205.52155 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.21,Page No.635"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "T=2 #s #Time\n",
+ "g=981 #cm/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Length of pendulum\n",
+ "L=(T*(2*pi)**-1)**2*g #cm\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Decrease in gravity\n",
+ "dg=g-981 #cm/s**2\n",
+ "\n",
+ "#Number of beats in day\n",
+ "n=24*60*60\n",
+ "\n",
+ "# number of beats clock will lose\n",
+ "dn=n*(2*g)**-1 #s\n",
+ "\n",
+ "#Result\n",
+ "print\"Length of Pendulum\",round(L,2),\"cm\"\n",
+ "print\"Number of beats clock will lose is\",round(dn,2),\"s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Length of Pendulum 99.4 cm\n",
+ "Number of beats clock will lose is 44.04 s\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.22,Page No.637"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "d=0.03 #m #Diameter of spindle\n",
+ "L=3.5 #m #Length of spindle\n",
+ "W=280 #N #Weight attached\n",
+ "E=2*10**11 #N/m**2 #Modulus of elasticity\n",
+ "g=9.81 #m/s**2 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of cross section\n",
+ "A=pi*4**-1*d**2 #m**2\n",
+ "\n",
+ "#stress\n",
+ "sigma=W*A**-1 #N/m**2\n",
+ "\n",
+ "#Strain\n",
+ "dell=sigma*E**-1 \n",
+ "\n",
+ "#Increase in length\n",
+ "dell_l=dell*L #m\n",
+ "\n",
+ "#Time period\n",
+ "T=2*pi*((dell_l*g**-1)**0.5)\n",
+ "\n",
+ "#Frrequency\n",
+ "f=1*T**-1 #Cycles/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequency of vibrations is\",round(f,2),\"Cycles/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of vibrations is 189.33 Cycles/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.23,Page No.638"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "d=100 #mm #Diameter of shaft\n",
+ "L=1000 #mm #Length of shaft\n",
+ "W=5000 #N #Weight attached\n",
+ "C=0.8*10**5 #N/mm**2 #Modulus of rigidity\n",
+ "g=9.81 #m/s**2\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "k=450 #mm #Radius of gyration\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Polar Moment of Inertia\n",
+ "J=pi*32**-1*d**4\n",
+ "\n",
+ "#Torsional Stiffness\n",
+ "q=C*J*L**-1\n",
+ "\n",
+ "#M.I\n",
+ "I=M*g**-1*k**2\n",
+ "\n",
+ "#Torsional vibration\n",
+ "f=1*(2*pi)**-1*((q*1000*I**-1)**0.5)*0.1\n",
+ "\n",
+ "#M.I\n",
+ "I2=pi*64**-1*d**4 #mm**4\n",
+ "\n",
+ "#static deflection\n",
+ "dell2=W*L**3*(3*E*I2)**-1\n",
+ "\n",
+ "#Frequency of transverse vibration\n",
+ "f2=1*(2*pi)**-1*((g*(dell2*10**-3)**-1)**0.5)\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequency of Torsional vibration is\",round(f,2),\"cycles/s\"\n",
+ "print\"Frequency of transverse vibration is\",round(f2,2),\"cycles/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of Torsional vibration is 13.88 cycles/s\n",
+ "Frequency of transverse vibration is 12.1 cycles/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.24,Page No.640"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "d=100 #mm #Diameter of shaft\n",
+ "L=1000 #mm #Length of shaft\n",
+ "W=5000 #N #Weight attached\n",
+ "C=8.16*10**4 #N/mm**2 #Modulus of rigidity\n",
+ "g=9.81 #m/s**2\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "k=250 #mm #Radius of gyration\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Stress\n",
+ "F=W*(pi*4**-1*d**2)**-1 #N/mm**2\n",
+ "\n",
+ "#static deflection\n",
+ "dell=F*L*E**-1*10**-3 #m\n",
+ "\n",
+ "#Frequency of longitudinal vibrations\n",
+ "f=1*(2*pi)**-1*((g*dell**-1))**0.5\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Torsional stiffness\n",
+ "q=C*pi*32**-1*d**4*L**-1\n",
+ "\n",
+ "#M.I\n",
+ "I=W*(g*1000)**-1*k**2\n",
+ "\n",
+ "#Frequency of torsional vibrations\n",
+ "f2=1*(2*pi)**-1*((q*I**-1))**0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequencies for free longitudinal vibrations is\",round(f,2),\"m\"\n",
+ "print\"Frequencies for free torsional vibrations is\",round(f2,2),\"cycles/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequencies for free longitudinal vibrations is 279.4 m\n",
+ "Frequencies for free torsional vibrations is 25.24 cycles/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.25,Page No.641"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "d=5 #mm #Diameter of shaft\n",
+ "L=1000 #mm #Length of shaft\n",
+ "W=20 #N #Weight of rotor\n",
+ "D=200 #mm #Diameter of rotor\n",
+ "C=0.85*10**5 #N/mm**2 #Modulus of rigidity\n",
+ "g=9.81*1000 #mm/s**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Radius of rotor\n",
+ "R=D*2**-1 #mm\n",
+ "\n",
+ "#Polar Modulus \n",
+ "J=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Torsional Stiffness\n",
+ "q=C*J*L**-1 #N*mm\n",
+ "\n",
+ "#M.I\n",
+ "I=W*g**-1*R**2*2**-1 #N*mm-s**2\n",
+ "\n",
+ "#Frequency of torsional vibrations\n",
+ "f=1*(2*pi)**-1*((q*I**-1))**0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"Torsional Vibrations of the system is\",round(f,2),\"cycles/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Torsional Vibrations of the system is 3.6 cycles/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_17.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_17.ipynb new file mode 100644 index 00000000..45f94035 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_17.ipynb @@ -0,0 +1,873 @@ +{
+ "metadata": {
+ "name": "chapter 17.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 17:Collision of Elastic Bodies"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.1,Page No.650"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=1 #Kg #MAss of ball A\n",
+ "u1=2 #m/s #Initial velocity of ball A\n",
+ "v1=0 #Final velocity of ball A\n",
+ "\n",
+ "#Ball-2\n",
+ "m2=2 #kg #mass\n",
+ "u2=0 #m/s #Initial velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total Initial momentum\n",
+ "V1=m1*u1+m2*u2 #kg*m/s\n",
+ "\n",
+ "#Total Initial momentum\n",
+ "#V2=m1*v1+m2*u2 #kg*m/s\n",
+ "\n",
+ "#Final velocity of ball B\n",
+ "v2=V1*2**-1 #m/s\n",
+ "\n",
+ "#Coefficient of restitution\n",
+ "e=(v2-v1)*(u1-u2)**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Final velocity of ball B is\",round(v2,2),\"m/s\"\n",
+ "print\"Coefficient of restitution is\",round(e,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Final velocity of ball B is 1.0 m/s\n",
+ "Coefficient of restitution is 0.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.2,Page No.650"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#first body\n",
+ "m1=50 #kg #mass\n",
+ "u1=6 #m/s #Initial velocity\n",
+ "\n",
+ "#second body\n",
+ "m2=30 #kg #mass\n",
+ "u2=0 #m/s #Initial velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#MAss of two bodies\n",
+ "M=m1+m2 #kg\n",
+ "\n",
+ "#Total momentum before impact\n",
+ "M2=m1*u1+m2*u2 #kg*m/s\n",
+ "\n",
+ "#Total momentum after impact\n",
+ "#M3=(m1+m2)*V #kg*m/s\n",
+ "\n",
+ "#Velocitites of two bodies\n",
+ "V=M2*80**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Common Velocity is\",round(V,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Common Velocity is 3.75 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.3,Page No.651"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Bullet\n",
+ "m1=0.05 #Kg #mass\n",
+ "\n",
+ "#Target\n",
+ "m2=5 #kg #mass\n",
+ "u2=0 #m/s #Initital Velocity\n",
+ "v=7 #m/s #Final Velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "m=m1+m2 #kg #total mass\n",
+ "\n",
+ "#total Initial momentum\n",
+ "#v1=m1*u1+m2*u2\n",
+ "#After sub values and further simplifying we get\n",
+ "#v1=0.05*u1\n",
+ "\n",
+ "#Total Final momentum\n",
+ "v2=m*v #kg*m/s\n",
+ "\n",
+ "#Velocity of bullet\n",
+ "u1=v2*0.05**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of bullet is\",round(u1,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of bullet is 707.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.4,Page No.651"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=20 #kg #MAss of first ball\n",
+ "u1=5 #m/s #Initital velocity of first ball\n",
+ "\n",
+ "#second ball\n",
+ "m2=10 #kg #mass \n",
+ "u2=-10 #m/s #Velocity\n",
+ "e=5*6**-1 #coefficient of restitution\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total momentum before impact\n",
+ "v1=m1*u1+m2*u2 #m/s\n",
+ "\n",
+ "\n",
+ "#Total momentum after impact\n",
+ "#v2=m1*v1+m2*v2\n",
+ "\n",
+ "#Velocity of second ball after impact\n",
+ "V2=25*3**-1 #m/s \n",
+ "\n",
+ "#Velocity of first ball after impact\n",
+ "V1=-V2*2**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of first ball after impact is\",round(V1,2),\"m/s\"\n",
+ "print\"Velocity of second ball after impact is\",round(V2,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of first ball after impact is -4.17 m/s\n",
+ "Velocity of second ball after impact is 8.33 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.6,Page No.654"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=1 #kg #mass of first ball\n",
+ "m2=2 #kg #mass of second ball\n",
+ "u1=6 #m/s #Initial velocity of first ball\n",
+ "u2=2 #m/s #Initial velocity of second ball\n",
+ "theta1=30 #degrees #angle made by first ball\n",
+ "theta2=30 #degrees #angle made by second ball\n",
+ "e=0.5 #coefficient of restitutiion\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#for ball A\n",
+ "#v1*sin(phi1)=3 .............1\n",
+ "\n",
+ "#for ball B\n",
+ "#v2*sin(phi)=1 .............2\n",
+ "\n",
+ "#according to lwa of conservation of momentum\n",
+ "#v1*cos(ph11)+2*v2*cos(phi2)=8.66 ..............3\n",
+ "\n",
+ "#coefficient of restitution for this case\n",
+ "#v2*cos(ph12)-v1*cos(phi1)=1.732 .........4\n",
+ "\n",
+ "#Adding equation 3 and 4 we get\n",
+ "#v2*cos(ph2)=3.464 ....................5\n",
+ " \n",
+ "#sub values in equation 3 we get\n",
+ "#v1*cos(ph1)=1.732 .................6\n",
+ "\n",
+ "#dividing equation 1 by equation6\n",
+ "phi1=arctan(3*1.732**-1)*(180*pi**-1)\n",
+ "\n",
+ "#dividing equation 2 by 5 we get\n",
+ "phi2=arctan(1*3.464**-1)*(pi**-1*180)\n",
+ "\n",
+ "#sub value of phi2 in equation 5\n",
+ "v2=3.464*(cos(phi2*pi*180**-1))**-1\n",
+ "\n",
+ "#sub value in equation 1\n",
+ "v1=1.732*(cos(phi1*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"velocity of 1Kg ball is\",round(v1,2),\"m/s\"\n",
+ "print\"velocity of 2nd ball is\",round(v2,2),\"m/s\"\n",
+ "print\"Direction of 1Kg ball is\",round(phi1,2),\"degrees\"\n",
+ "print\"Direction of 2nd ball is\",round(phi2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "velocity of 1Kg ball is 3.46 m/s\n",
+ "velocity of 2nd ball is 3.61 m/s\n",
+ "Direction of 1Kg ball is 60.0 degrees\n",
+ "Direction of 2nd ball is 16.1 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.7,Page No.656"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=2 #kg #mass of first ball\n",
+ "m2=2 #kg #mass of second ball\n",
+ "u1=20 #m/s #Initial velocity of first ball\n",
+ "u2=30 #m/s #Initial velocity of second ball\n",
+ "theta1=30 #degrees #angle made by first ball\n",
+ "theta2=60 #degrees #angle made by second ball\n",
+ "e=0.9 #coefficient of restitutiion\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#for ball A\n",
+ "#v1*sin(phi1)=10 .............1\n",
+ "\n",
+ "#for ball B\n",
+ "#v2*sin(phi)=25.98 .............2\n",
+ "\n",
+ "#according to lwa of conservation of momentum\n",
+ "#v1*cos(ph11)+2*v2*cos(phi2)=2.32 ..............3\n",
+ "\n",
+ "#coefficient of restitution for this case\n",
+ "#v2*cos(ph12)-v1*cos(phi1)=29.08 .........4\n",
+ "\n",
+ "#Adding equation 3 and 4 we get\n",
+ "#v2*cos(ph2)=15.7 ....................5\n",
+ " \n",
+ "#sub values in equation 3 we get\n",
+ "#v1*cos(ph1)=13.38 .................6\n",
+ "\n",
+ "#dividing equation 1 by equation6\n",
+ "phi1=arctan(10*13.38**-1)*(180*pi**-1)\n",
+ "\n",
+ "#dividing equation 2 by 5 we get\n",
+ "phi2=arctan(25.98*15.7**-1)*(pi**-1*180)\n",
+ "\n",
+ "#sub value of phi2 in equation 5\n",
+ "v2=25.98*(sin(phi2*pi*180**-1))**-1\n",
+ "\n",
+ "#sub value in equation 1\n",
+ "v1=13.38*(cos(phi1*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"velocity of 1Kg ball is\",round(v1,2),\"m/s\"\n",
+ "print\"velocity of 2nd ball is\",round(v2,2),\"m/s\"\n",
+ "print\"Direction of 1Kg ball is\",round(phi1,2),\"degrees\"\n",
+ "print\"Direction of 2nd ball is\",round(phi2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "velocity of 1Kg ball is 16.7 m/s\n",
+ "velocity of 2nd ball is 30.36 m/s\n",
+ "Direction of 1Kg ball is 36.77 degrees\n",
+ "Direction of 2nd ball is 58.85 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.8,Page No.658"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#First vechile\n",
+ "m1=600 #kg #mass\n",
+ "u1=12 #m/s #Initial velocity\n",
+ "\n",
+ "#Second vechile\n",
+ "m2=400 #kg #mass\n",
+ "u2=9 #m/s #initial velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total mass\n",
+ "M=m1+m2 #kg\n",
+ "\n",
+ "#Total Momentum before impact\n",
+ "v1=m1*u1+m2*u2\n",
+ "\n",
+ "#Total momentum\n",
+ "#v=M*V\n",
+ "\n",
+ "#By law of conservation of momentum\n",
+ "V=v1*1000**-1 #m/s\n",
+ "\n",
+ "#Kinetic Energy before impact\n",
+ "KE1=(m1*u1**2+m2*u2**2)*2**-1 #N*m\n",
+ "\n",
+ "#Total KE after impact\n",
+ "KE2=M*V**2*2**-1 #N*m\n",
+ "\n",
+ "#Loss of KE\n",
+ "KE3=KE1-KE2 #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Loss of Kinetic Energy due to impact is\",round(KE3,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Loss of Kinetic Energy due to impact is 1080.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.9,Page No.659"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=0.1 #kg #MAss of bullet\n",
+ "m2=10 #kg #mass of target\n",
+ "u2=0 #Initial velocity of target\n",
+ "v=7 #m/s #common velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total momentum before impact\n",
+ "#v1=0.1*u1\n",
+ "\n",
+ "#Total momentum after impact\n",
+ "v2=(m1+m2)*v\n",
+ "\n",
+ "#Initial velocity of bullet\n",
+ "u1=v2*0.1**-1 #m/s\n",
+ "\n",
+ "#Total KE before impact\n",
+ "KE=(m1*u1**2+m2*u2**2)*2**-1\n",
+ "\n",
+ "#Total KE after impact\n",
+ "KE2=(m1+m2)*v**2*2**-1 #m/s\n",
+ "\n",
+ "#Loss of KE\n",
+ "KE3=KE-KE2 #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Loss of Kinetic Energy is\",round(KE3,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Loss of Kinetic Energy is 24745.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.12,Page No.662"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "e=0.75 #coefficient of restitution\n",
+ "m1=1 #kg #MAss of first sphere\n",
+ "m2=5 #kg #mass of second sphere\n",
+ "u1=3 #m/s #Initial velocity of 1st sphere\n",
+ "u2=0.6 #m/s #Initial velocity of 2nd sphere\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#From law of conservation of momentum equation we get\n",
+ "#v1+5*v2=6 ..................1\n",
+ "\n",
+ "#Form coefficient of restitution formula we get\n",
+ "#v2-v1=1.8 ........................2\n",
+ "\n",
+ "#Adding equations 1 and 2 we get\n",
+ "v2=7.8*6**-1 #m/s\n",
+ "\n",
+ "#sub in equation 2 we get\n",
+ "v1=1.8-v2 #m/s\n",
+ "\n",
+ "#Loss of KE during impact\n",
+ "KE=((m1*u1**2+m2*u2**2)-(m1*v1**2+m2*v2**2))*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Loss of Kinetic Energy during impact is\",round(KE,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Loss of Kinetic Energy during impact is 1.05 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.13,Page No.664"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.5 #kg #mass of ball\n",
+ "H=18 #m #Height from which the ball is dropped\n",
+ "h=8 # #Height to which ball rebounds\n",
+ "g=9.81 #m/s**2 \n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity with which ball strikes the floor\n",
+ "u=(2*g*H)**0.5 #m/s\n",
+ "\n",
+ "#Velocty of ball after impact\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Coefficient of restitution\n",
+ "e=v*u**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"coefficient of restitution between floor and ball\",round(e,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "coefficient of restitution between floor and ball 0.67\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.13(A),Page No.664"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "H1=1.6 #m #Initial Height\n",
+ "H2=0.9 #m #Height after rebound\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Consider motion of ball from height H1, wwe get\n",
+ "v1=(2*g*H1)**0.5 #m/s ................................1\n",
+ "\n",
+ "#Consider motion of ball from floor to a height H2\n",
+ "u2=(2*g*H2)**0.5 #m/s .........................2\n",
+ "\n",
+ "#Dividing equation 2 by 1 we get\n",
+ "e=u2*v1**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient of restitution is\",round(e,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient of restitution is 0.75\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.14,Page No.665"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "h=16 #m #Height after impact\n",
+ "e=0.8 #coeficient of restitution\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity with which ball strikes the floor\n",
+ "u=(2*g*h)**0.5 #m/s \n",
+ "\n",
+ "#Height from which ball is dropped\n",
+ "H=2*g*h*(e**2*2*g)**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Height from which the ball is dropped is\",round(H,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Height from which the ball is dropped is 25.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.15,Page No.665"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "H=13.5 #Height from which ball is dropped\n",
+ "h=9 #m #Height to which ball rebounds\n",
+ "g=9.81 #m/s**2\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#velocity with which ball stirkes the floor\n",
+ "u=(2*g*H)**0.5 #m/s\n",
+ "\n",
+ "#velocity of ball after impact\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Coefficient of restitution \n",
+ "e=(v*u**-1)\n",
+ "\n",
+ "#Height of second rebound\n",
+ "\n",
+ "#velocity with which ball stirkes the floor second time\n",
+ "u1=(2*g*h) #m/s ..............1\n",
+ "\n",
+ "#velocity of ball after impact rebounds second time\n",
+ "#v1=(2*g*h2) ....................2\n",
+ " \n",
+ "#After simplifying equation 1 and 2 we get\n",
+ "h2=e**2*u1*(2*g)**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Height of second rebound is\",round(h2,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Height of second rebound is 6.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.16,Page No.667"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=10 #m/s #Initial velocity of ball\n",
+ "alpha=30 #degrees #angle made by intial velocity\n",
+ "theta=60 #degrees\n",
+ "e=0.5 #coefficient of restitution\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#As components of intial velocity and final velocity with line of impact is same at right angles\n",
+ "#v*sin(phi)=8.66 ........1\n",
+ "\n",
+ "#v*cos(phi)=2.5 ................2\n",
+ "\n",
+ "#Dividing equation 1 by 2\n",
+ "phi=arctan(8.66*2.5**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Sub value in equation 1 we get\n",
+ "v=8.66*(sin(phi*pi*180**-1))**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Direction of ball after impact is\",round(phi,2),\"Degrees\"\n",
+ "print\"Velocity of ball after impact\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Direction of ball after impact is 73.9 Degrees\n",
+ "Velocity of ball after impact 9.01 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17,Page No.667"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "u=5 #m/s #Initial velocity of body\n",
+ "alpha=30 #Degrees #Angle made by initial velocity with fixed plane\n",
+ "theta=60 #degrees\n",
+ "phi=45 #degrees #angle made by final velocity\n",
+ "beta=45 #degrees #Angle made by final velocity with line of impact\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Components of final velocity and initial velocity at right angles to line of impact\n",
+ "v=u*sin(alpha*pi*180**-1)*(sin(phi*pi*180**-1))**-1 #m/s\n",
+ "\n",
+ "#For indirect impacton a fixed plane\n",
+ "e=v*cos(phi*pi*180**-1)*(u*cos(theta*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"coefficient of restitution between ball and fixed plane is\",round(e,2)\n",
+ "print\"velocity of body after impact is\",round(v,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "coefficient of restitution between ball and fixed plane is 1.0\n",
+ "velocity of body after impact is 3.54 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_18.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_18.ipynb new file mode 100644 index 00000000..1086131c --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_18.ipynb @@ -0,0 +1,1572 @@ +{
+ "metadata": {
+ "name": "chapter 18.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 18:Work,Power And Energy "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.1,Page No.673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=500 #N #Weight of Body\n",
+ "S=5 #m #Distance\n",
+ "P=250 #N #Force\n",
+ "P2=200 #N #Force 2\n",
+ "theta=30 #Degrees #Angle made by Force with Horizontal\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#Work Done\n",
+ "w=P*S #N*m\n",
+ "\n",
+ "#Work Done\n",
+ "w2=P2*cos(theta*pi*180**-1)*S #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done when Force 250 N is applied\",round(w,2),\"N*m\"\n",
+ "print\"Work Done when Force 200 N is applied\",round(w2,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done when Force 250 N is applied 1250.0 N*m\n",
+ "Work Done when Force 200 N is applied 866.03 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.2,Page No.673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=1500 #N #Weight of Body\n",
+ "S=500 #m #Distance\n",
+ "P=15 #N #Force\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Work Done by Resistance \n",
+ "w=P*S #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done on body by Resistance is\",round(w,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done on body by Resistance is 7500.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.3,Page No.673"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=800 #N #Weight of Body\n",
+ "theta=30 #Degrees #angle made by Force\n",
+ "S=5 #Distance\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Force apllied on Block\n",
+ "P=W*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Work done on body\n",
+ "w=P*S #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done in Pulling up the Body is\",round(w,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done in Pulling up the Body is 2000.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.4,Page No.674"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "mu=0.3 #coefficient of Friction\n",
+ "S=5 #m #Distance\n",
+ "W=800 #N #weight of Body\n",
+ "theta=30 #Degrees #Angle made by Weight\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#reaction Force \n",
+ "R=W*cos(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Force of friction\n",
+ "F=mu*R\n",
+ "\n",
+ "#Forces along plane\n",
+ "P=W*sin(theta*pi*180**-1)+F #N*m\n",
+ "\n",
+ "#Work done\n",
+ "w=P*S #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work done in pullint the Body\",round(w,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work done in pullint the Body 3039.23 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.5,Page No.674"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=50.5 #m #Total Length of chain\n",
+ "R=0.16 #m #Radius of pulley\n",
+ "L_AC=40 #m #Length of chain between A and C\n",
+ "W=505 #N #Weight of chain\n",
+ "w=10 #N #weight of chain per metre length\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Length of BD\n",
+ "L_BD=L-2*pi*R*2**-1-L_AC #m\n",
+ "\n",
+ "#Weight of chain \n",
+ "W_AC=w*L_AC #N\n",
+ "\n",
+ "#Weight of chain BD\n",
+ "W_BD=w*L_BD #N\n",
+ "\n",
+ "#Force applied at D\n",
+ "P=W_AC-W_BD #N\n",
+ "\n",
+ "#Length of chain\n",
+ "l=(L_AC-w)*2**-1\n",
+ "\n",
+ "#Work Done\n",
+ "W=P*l*2**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done by the man\",round(W,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done by the man 2250.2 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.6,Page No.675"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2000 #N #Weight of Body\n",
+ "P_o=750 #N #Initial Force\n",
+ "x_o=0 #Initial Force,distance moved is zero\n",
+ "S=25 #m #Distance Moved\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Force after a distance of 25 m\n",
+ "P=P_o+10*S #N\n",
+ "\n",
+ "#Work Done\n",
+ "w=(P_o+P)*2**-1*S #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done by applied Force\",round(w,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done by applied Force 21875.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.7,Page No.676"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "from scipy.integrate import * \n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=10 #m #Length of free cable\n",
+ "W=50 #N #weight of cable per m length\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Weight of element \n",
+ "#X=50*dx\n",
+ "\n",
+ "#work done on the elemnt\n",
+ "#dw=500-50*x*dx\n",
+ "\n",
+ "def f(x) :\n",
+ " return 500-50*x\n",
+ "\n",
+ "I,err = quad(f,0,10)\n",
+ "\n",
+ "#Result\n",
+ "print\"Work done by Electric Motor is\",round(I,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work done by Electric Motor is 2500.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.8,Page No.677"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2000 #KN #Weight of train\n",
+ "v=10 #m/s #speed of train\n",
+ "F=20000 #N #Resistance due to friction\n",
+ "p=F #Net Force in Direction of motion\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Power\n",
+ "P=p*v*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power of the Engine\",P,\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power of the Engine 200.0 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.9,Page No.677"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2000 #KN #Weight of train\n",
+ "F=20000 #N #Resistance Force\n",
+ "v=10 #m/s #Velocity\n",
+ "a=0.5 #m/s**2 #Acceleration\n",
+ "g=9.81 #m/s**2 #acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Mass of train\n",
+ "m=W*10**3*g**-1 #Kg\n",
+ "\n",
+ "#Net Force\n",
+ "F=m*a+F #N\n",
+ "\n",
+ "#Power of the engine \n",
+ "P=F*v*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power of the Engine is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power of the Engine is 1219.37 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.10,Page No.678"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=1500*1000 #N #Weight of train \n",
+ "v=10 #m/s #speed\n",
+ "F=7500 #N #Force exerted by engine\n",
+ "#sin(theta)=1*100**-1 \n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#from equation of Net Force\n",
+ "#p=W*sin(theta*pi*180**-1)+F\n",
+ "#After sub values and further simplifying we get\n",
+ "p=15000+7500 #N\n",
+ "\n",
+ "#Power Exerted by Engine\n",
+ "P=p*v*10**-3 #KW\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Power Exerted by the Engine is\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Exerted by the Engine is 225.0 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.11,Page No.678"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2*10**6 #N\n",
+ "v=5 #m/s velocity\n",
+ "P=35*10**3 #W\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#After simplifying Net Force acting on engine in direction of motion, we get\n",
+ "#F=13333.3-F+P ................1\n",
+ "\n",
+ "#Power\n",
+ "P2=P*v**-1\n",
+ "\n",
+ "#Sub value in equation 1 we get\n",
+ "F=13333.3+P2 #N\n",
+ "\n",
+ "#case-2\n",
+ "\n",
+ "#frpm Net force in direction of motion after simplifying we get,value of \n",
+ "F2=W*150**-1+F #N\n",
+ "\n",
+ "#Power developed by engine \n",
+ "P3=F2*v*10**-3 #KW\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Power required to pull the train is\",round(P3,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power required to pull the train is 168.33 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.12,Page No.680"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=1800 #N #Force\n",
+ "D=0.01 #m #Diameter\n",
+ "R=0.005 #m #Radius\n",
+ "theta=2*pi #Radians\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Torque\n",
+ "T=P*R #N*m\n",
+ "\n",
+ "#Work done\n",
+ "W=T*theta #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Work Done is\",round(W,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work Done is 56.55 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.13,Page No.681"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=1800 #N #Force\n",
+ "R=0.005 #m #Radius\n",
+ "T=9 #N*m #Torque\n",
+ "N=200 #r.p.m\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Power of the shaft\n",
+ "P=2*pi*N*T*60**-1 #W\n",
+ "\n",
+ "#Result\n",
+ "print\"Power of the shaft is\",round(P,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power of the shaft is 188.5 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.14,Page No.683"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=2 #Kg #Mass\n",
+ "v=50 #m/s**2 #Velocity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Let K.E be E\n",
+ "E=1*2**-1*M*v**2 #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Kinetic Energy is\",round(E,2),\"N*m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Kinetic Energy is 2500.0 N*m\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.15,Page No.683"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.081 #Kg\n",
+ "u=300 #m/s #Initial Velocity of bullet\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "S=0.1 #m #Penetration of bullet\n",
+ "v=0 #Final Velocity of bullet\n",
+ "\n",
+ "#Kinetic Energy of bullet\n",
+ "KE=(m*v**2-m*u**2)*2**-1 #N*m\n",
+ "\n",
+ "#Force of Resistance\n",
+ "P=-KE*S**-1 #N\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Depth of penetration\n",
+ "S2=0.05 #m\n",
+ "\n",
+ "#work Done by force of Resistance\n",
+ "W2=-P*S2 #N*m\n",
+ "\n",
+ "#velocity of bullet after 5cm penetration\n",
+ "v1=((W2+(m*u**2*2**-1))*2*m**-1)**0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"Force of Resistance is\",round(P,2),\"N\"\n",
+ "print\"Velocity with which bullet will emerge is\",round(v1,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force of Resistance is 36450.0 N\n",
+ "Velocity with which bullet will emerge is 212.13 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.15(A),Page No.684"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.01 #Kg \n",
+ "u=1000 #m/s #Velocity\n",
+ "t=0.002 #s #time taken b bullet to travel\n",
+ "v=0 #Final Velocity\n",
+ "g=9.81 #acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Kinetic energy of bullet\n",
+ "KE=m*u**2*2**-1 #N*m\n",
+ "\n",
+ "#acceleration\n",
+ "a=-(v-u)*t**-1 #m/s**2\n",
+ "\n",
+ "#Frictional Force\n",
+ "F=m*a #N\n",
+ "\n",
+ "#Distance travelled by bullet\n",
+ "S=F*KE**-1 #m\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Probable speed of the car just before brakes are applied \n",
+ "V=(30*2*g)**0.5*1000**-1*3600 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Average Force acted on the bullet is\",round(F,2),\"N\"\n",
+ "print\"Distance penetrated by it\",round(S,2),\"m\" \n",
+ "print\"Probable speed of the car just before brakes are applied\",round(V,2),\"km/hr\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average Force acted on the bullet is 5000.0 N\n",
+ "Distance penetrated by it 1.0 m\n",
+ "Probable speed of the car just before brakes are applied 87.34 km/hr\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.16,Page No.686"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=20*10**3 #N #Weight of Truck\n",
+ "u=45*10**3*(3600)**-1 #speed of truck #m/s\n",
+ "v=0 #Final Velocity of truck\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "m=W*g**-1 #mass of truck\n",
+ "S=20 #m #DIstance\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Kinetic energy of Truck\n",
+ "KE=-m*(v**2-u**2)*2**-1 #N*m\n",
+ "\n",
+ "#Average Force of Resisting acting on the truck\n",
+ "P=KE*S**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Average Force of Resisting acting on the truck\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average Force of Resisting acting on the truck 7963.81 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.17,Page No.687"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=9810 #N #Weight of train\n",
+ "m=1000 #Kg #Mass of car\n",
+ "u=0 #m/s #Intial Velocity\n",
+ "v=12.5 #m/s #Final by car\n",
+ "S=50 #m #Distance\n",
+ "P=100 #N #Resistance\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Change in Kinetic Energy\n",
+ "KE=m*(v**2-u**2)*2**-1 #N*m\n",
+ "\n",
+ "#Average driving Force exerted by engine\n",
+ "P2=KE*S**-1+P #N\n",
+ "\n",
+ "#Power Developed by Engine\n",
+ "P3=P2*v*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Average driving Force exerted by engine\",round(P2,2),\"N\"\n",
+ "print\"Power Developed by Engine\",round(P3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average driving Force exerted by engine 1662.5 N\n",
+ "Power Developed by Engine 20.78 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18,Page No.688"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=196.2 #N #Weight of train\n",
+ "m=20 #Kg #Mass\n",
+ "P=300 #N #force\n",
+ "theta=30 #Degrees #Angle of inclination\n",
+ "mu=0.2 #Coefficient of friction\n",
+ "u=0 #initial Velocity\n",
+ "t=4 #seconds\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R=W*cos(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Net Force in Direction of motion\n",
+ "F=P-W*sin(theta*pi*180**-1)-mu*R #N\n",
+ "\n",
+ "#Acceleration\n",
+ "a=F*m**-1 #m/s**2\n",
+ "\n",
+ "#Distance travelled in four seconds\n",
+ "s=u*t+a*t**2*2**-1\n",
+ "\n",
+ "#Velocity after 4 seconds\n",
+ "v=u+a*t #m/s\n",
+ "\n",
+ "#Kinetic Energy after 4 seconds\n",
+ "KE=m*v**2*2**-1 #N*m\n",
+ "\n",
+ "#Work Done on Body\n",
+ "W2=F*s #N*m\n",
+ "\n",
+ "#Momentum of the body after four seconds\n",
+ "e=m*v #Kg*m/s\n",
+ "\n",
+ "#Impulse applied in four seconds\n",
+ "I=F*t #N*s\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceleration of Body\",round(a,2),\"m/s**2\"\n",
+ "print\"Distance travelled in four seconds\",round(s,2),\"m\"\n",
+ "print\"Velocity after 4 seconds\",round(v,2),\"m/s\"\n",
+ "print\"Kinetic Energy after 4 seconds\",round(KE,2),\"N*m\"\n",
+ "print\"Work Done on Body\",round(W2,2),\"N*m\"\n",
+ "print\"Momentum of the body after four seconds\",round(e,2),\"Kg*m/s\"\n",
+ "print\"Impulse applied in four seconds\",round(I,2),\"N*s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceleration of Body 8.4 m/s**2\n",
+ "Distance travelled in four seconds 67.17 m\n",
+ "Velocity after 4 seconds 33.58 m/s\n",
+ "Kinetic Energy after 4 seconds 11278.47 N*m\n",
+ "Work Done on Body 11278.47 N*m\n",
+ "Momentum of the body after four seconds 671.67 Kg*m/s\n",
+ "Impulse applied in four seconds 671.67 N*s\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.19,Page No.689"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=20 #N #Weight \n",
+ "theta=20 #Degrees #Angle\n",
+ "u=12 #m/s #Initial Velocity\n",
+ "mu=0.15 #Coefficient of friction\n",
+ "g=9.81 #acceleration due to gravity\n",
+ "m=W*g**-1 #Kg\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#PArt-1\n",
+ "\n",
+ "v=0 #Final Velocity\n",
+ "R=W*cos(theta*pi*180**-1)\n",
+ "F=mu*R\n",
+ "\n",
+ "#Net Force\n",
+ "F2=W*sin(theta*pi*180**-1)+mu*R #N\n",
+ "\n",
+ "#Change in Kinetic Energy\n",
+ "KE=m*(v**2-u**2)*2**-1 #N*m\n",
+ "\n",
+ "S=KE*F2**-1 #Max Distance\n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#Net Force in direction of motion is\n",
+ "F3=W*sin(theta*pi*180**-1)-mu*R #N\n",
+ "\n",
+ "#Work Done on the body \n",
+ "W2=F3*S #N*m\n",
+ "\n",
+ "#Velocity of the body\n",
+ "V1=(-W2*2*g*W**-1)**0.5\n",
+ "\n",
+ "#Result\n",
+ "print\"MAx Distance that the bodt will move up the inclined plane\",round(S,2),\"m\"\n",
+ "print\"Velocity of the body\",round(V1,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "MAx Distance that the bodt will move up the inclined plane -15.2 m\n",
+ "Velocity of the body 7.74 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.20,Page No.691"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=0.025 #Kg #Mass of bullet\n",
+ "u1=600 #m/s #Initial Veloctiy of Bullet\n",
+ "m2=5 #Kg #Mass of Wooden Block\n",
+ "u2=0 #m/s #Final Velocity of bullet\n",
+ "S=0.9 #m #Distance travelled by block and bullet\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Total mass of bullet\n",
+ "M=m1+m2 #Kg\n",
+ "\n",
+ "#common Velocityof bullet and block after impact\n",
+ "V=(m1*u1+m2*u2)*M**-1 #m/s\n",
+ "\n",
+ "#Average resistance between block and horizontal surface\n",
+ "\n",
+ "#Initial Velocity of Block And Bullet\n",
+ "Vi=V #m/s\n",
+ "\n",
+ "#Final Velocity\n",
+ "Vf=0 #m/s\n",
+ "\n",
+ "#Change of KE of bullet and Block\n",
+ "KE=M*(Vf**2-Vi**2)*2**-1 #N*m\n",
+ "\n",
+ "#Frictional resistance \n",
+ "P=-KE*S**-1 #N\n",
+ "\n",
+ "#Coefficient of Friction \n",
+ "\n",
+ "W=M*g #N\n",
+ "R=W #N \n",
+ "\n",
+ "mu=P*R**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Average Resistance between Block and horizontal surface\",round(P,2),\"N\"\n",
+ "print\"Coefficient of friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average Resistance between Block and horizontal surface 24.88 N\n",
+ "Coefficient of friction is 0.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.21,Page No.692"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m1=0.01 #Kg #mass of bullet\n",
+ "m2=1 #Kg #Mass of Block\n",
+ "S=1 #m #Distance travelled by block and bullet\n",
+ "mu=0.2 #coefficient of friction\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#total mass of buulet and wooden block\n",
+ "M=m1+m2 #Kg\n",
+ "\n",
+ "#Friction Force\n",
+ "F=mu*M*g #N\n",
+ "\n",
+ "#Work Done by force of friction\n",
+ "W=F*S #N\n",
+ "\n",
+ "#Velocity of bullet\n",
+ "u1=(W*2*M**-1)**0.5*M*m1**-1 #m/s\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of bullet is\",round(u1,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of bullet is 200.07 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.22,Page No.694"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=1500 #Kg #Mass of Hammer\n",
+ "h=0.6 #m #Height from which hammer drops\n",
+ "m=750 #kg #Mass of pile\n",
+ "S=0.05 #m #Depth of penetration\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity of hammer after falling through height of 0.6 m from rest\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Total momentum of hammer and pile just before impact\n",
+ "p=M*v #Kg*m/s\n",
+ "\n",
+ "#Common Velocity\n",
+ "V=p*(M+m)**-1 #m/s\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#K.E of system\n",
+ "KE=(M+m)*round(V,2)**2*2**-1 #N*m\n",
+ "\n",
+ "#Loss of P.E of system\n",
+ "PE=(M+m)*g*S #N*m\n",
+ "\n",
+ "#Total Energy loss\n",
+ "E=KE+PE #N*m\n",
+ "\n",
+ "#Resistance of ground\n",
+ "R=E*S**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Common Velocity after impact\",round(V,2),\"m/s\"\n",
+ "print\"Average Resistance of the ground\",round(R,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Common Velocity after impact 2.29 m/s\n",
+ "Average Resistance of the ground 140064.75 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.23,Page No.695"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=750 #Kg #MAss of hammer\n",
+ "h=1.2 #m #Height through which hammer drops\n",
+ "m=200 #kg #mass of pile\n",
+ "R=79*10**3 #N #Average resistance of ground\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity of hammer after falling through height of 0.6 m from rest\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Total momentum of hammer and pile just before impact\n",
+ "p=M*v #Kg*m/s\n",
+ "\n",
+ "#Common Velocity\n",
+ "V=p*(M+m)**-1 #m/s\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#K.E of system\n",
+ "KE=(M+m)*round(V,2)**2*2**-1 #N*m\n",
+ "\n",
+ "#Depth of penetration into the ground\n",
+ "S=KE*(R-(M+m)*g)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Depth of penetration into the ground\",round(S,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Depth of penetration into the ground 0.1 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.24,Page No.696"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=400 #Kg #Mass of Hammer\n",
+ "h=3 #m #Height from which hammer drops\n",
+ "m=0 #kg #Mass of pile\n",
+ "S=1 #m #Depth of penetration\n",
+ "g=9.81 #Acceleration due to gravity\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity of hammer after falling through height of 0.6 m from rest\n",
+ "v=(2*g*h)**0.5 #m/s\n",
+ "\n",
+ "#Total momentum of hammer and pile just before impact\n",
+ "p=M*v #Kg*m/s\n",
+ "\n",
+ "#Common Velocity\n",
+ "V=p*(M+m)**-1 #m/s\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#K.E of system\n",
+ "KE=(M+m)*V**2*2**-1 #N*m\n",
+ "\n",
+ "#Loss of P.E of system\n",
+ "PE=(M+m)*g*S #N*m\n",
+ "\n",
+ "#Total Energy loss\n",
+ "E=KE+PE #N*m\n",
+ "\n",
+ "#Resistance of ground\n",
+ "R=E*S**-1 #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Resistance of ground for penetration is\",round(R,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance of ground for penetration is 15696.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.25,Page No.697"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=10 #Kg #Mass of Body\n",
+ "k=100 #N/cm #stiffnes\n",
+ "h=2 #cm #Height through which mass 10 kg is dropped \n",
+ " \n",
+ "#Calculation\n",
+ "\n",
+ "#For Position 1\n",
+ "#PE+KE=M*g*(x+h) ............1\n",
+ "\n",
+ "#For Position 2\n",
+ "#PE of spring=50*x**2 .............2\n",
+ "\n",
+ "#Equating equations 1 and 2 we get\n",
+ "#5x**2-9.81*x-19.62=0\n",
+ "\n",
+ "a=5\n",
+ "b=-9.81\n",
+ "c=-19.62\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "#Max Displacement of spring\n",
+ "x1=(-b+X**0.5)*(2*a)**-1\n",
+ "x2=(-b-X**0.5)*(2*a)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Displacement of spring\",round(x1,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Displacement of spring 3.19 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.26,Page No.698"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.01 #kg #Mass of bullet\n",
+ "M=1 #kg #Mass of body\n",
+ "L=1 #m #Length of string\n",
+ "theta=18.2 #degrees\n",
+ "g=9.81 #acceleration due to gravity\n",
+ "L_OA=1 #m #Length of OA\n",
+ "L_OB=1 #m #Length of OB\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#From Geometry of figure\n",
+ "h=L_OA-L_OB*cos(theta*pi*180**-1) #m\n",
+ "\n",
+ "#Potential Energy of body and bullet at B\n",
+ "PE=(M+m)*g*h\n",
+ "\n",
+ "#from Kinetic Energy of body and bullet after impact\n",
+ "V=(PE*2*(M+m)**-1)**0.5 #m/s #Velocity of body and bullet\n",
+ "\n",
+ "#Velocity of bullet\n",
+ "u=(M+m)*V*m**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of Bullet is\",round(u,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of Bullet is 100.06 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.27,Page No.700"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.03 #kg #Mass of bullet\n",
+ "u=483 #m/s #Velocity of bullet\n",
+ "M=10 #kg #MAss of body\n",
+ "L=0.8 #m #Length of string\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Momentum of bullet and body before impact\n",
+ "p=m*u #Kg*m/s\n",
+ "\n",
+ "#from Momentum of bullet and body after impact\n",
+ "V=p*(M+m)**-1 #m/s\n",
+ "\n",
+ "#K.E of the bullet and body after impact\n",
+ "KE=(M+m)*V**2*2**-1 #N*m\n",
+ "\n",
+ "#Angle through which body swings\n",
+ "theta=arccos(-((KE*((M+m)*g)**-1)-L)*L**-1)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle through which body swings is\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle through which body swings is 29.88 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.28,Page No.701"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=0.03 #kg #mass of bullet\n",
+ "u=483 #m/s #velocity of bullet\n",
+ "M=10 #Kg #Mass of body\n",
+ "L=0.8 #m #Length of string\n",
+ "v=96.5 #m/s #Velocity of body\n",
+ "g=9.81 #acceleration due to gravity\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Velocity of Body after impact\n",
+ "V=(m*u-m*v)*M**-1 #m/s\n",
+ "\n",
+ "#Height \n",
+ "h=V**2*(2*g)**-1 #m\n",
+ "\n",
+ "#from geometry\n",
+ "theta=arccos((L-h)*L**-1)*(pi**-1*180)\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle through which the body will swing\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle through which the body will swing 23.89 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_2.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_2.ipynb new file mode 100644 index 00000000..6f7a9650 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_2.ipynb @@ -0,0 +1,632 @@ +{
+ "metadata": {
+ "name": "chapter 2.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2:Coplanar Collinear And Concurrent Forces"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.1,Page No.30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Horizontal Forces\n",
+ "F1=200 #N\n",
+ "F2=100 #N\n",
+ "F3=300 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Analytical Method\n",
+ "\n",
+ "#When all forces are acting in same Direction,resultant is\n",
+ "R=F1+F2+F3 #N\n",
+ "\n",
+ "#When Force 100 N is acting in opposite direction\n",
+ "R2=F1-F2+F3 #N\n",
+ "\n",
+ "#Graphical Method\n",
+ "\n",
+ "#Let P1,P2,P3 be the forces\n",
+ "#Suppose 100 N=1 cm\n",
+ "P1=F1*F2**-1 #cm\n",
+ "P2=F2*F2**-1 #cm\n",
+ "P3=F3*F2**-1 #cm\n",
+ "\n",
+ "#When All Forces act in same direction \n",
+ "ab=2 #cm to represent F1\n",
+ "bc=1 #cm to represent F2\n",
+ "cd=3 #cm to represent F3\n",
+ "\n",
+ "#by Measurement \n",
+ "ad=6 #cm\n",
+ "R3=6*F2 #N\n",
+ "\n",
+ "#When F2 acts in opposite direction \n",
+ "#draw bc in opposite Direction \n",
+ "#By Measurement,Length\n",
+ "ad=4 #cm\n",
+ "\n",
+ "R4=4*F2 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant of forces analytically:When all forces are acting in same Direction\",round(R,2),\"N\"\n",
+ "print\" :When Force 100 N is acting in opposite direction\",round(R2,2),\"N\"\n",
+ "print\"Resultant of forces Graphically:When All Forces act in same direction\",round(R3,2),\"N\"\n",
+ "print\" :When Force 100 N is acting in opposite direction\",round(R4,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant of forces analytically:When all forces are acting in same Direction 600.0 N\n",
+ " :When Force 100 N is acting in opposite direction 400.0 N\n",
+ "Resultant of forces Graphically:When All Forces act in same direction 600.0 N\n",
+ " :When Force 100 N is acting in opposite direction 400.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2,Page No.34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "P=240 #N\n",
+ "Q=200 #N\n",
+ "alpha=60 #Degrees #Angle Between forces\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Magnitude of Resultant Force is \n",
+ "R=(P**2+Q**2+2*P*Q*cos(alpha*pi*180**-1))**0.5 #N\n",
+ "\n",
+ "#Using sine formula\n",
+ "#P*(sin(beta))**-1=Q*(sin(rho))**-1=R*(sin(180-alpha))**-1\n",
+ "\n",
+ "X=(P*sin((180-alpha)*180**-1*pi)*R**-1)\n",
+ "beta=arcsin(X)*(180*pi**-1) #degrees\n",
+ "\n",
+ "Y=(Q*sin((180-alpha)*180**-1*pi)*R**-1)\n",
+ "rho=arcsin(Y)*(180*pi**-1) #degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant is\",round(R,2),\"N\"\n",
+ "print\"angle beta is\",round(beta,2),\"Degrees\"\n",
+ "print\"Angle rho is\",round(rho,3),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant is 381.58 N\n",
+ "angle beta is 33.0 Degrees\n",
+ "Angle rho is 26.996 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.3,Page No.35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "R=400 #N #resultant\n",
+ "beta=35 #Degrees\n",
+ "rho=25 #Derees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Angle Between two forces\n",
+ "alpha=beta+rho #Degrees\n",
+ "\n",
+ "#Using sine formula\n",
+ "#P*(sin(beta))**-1=Q*(sin(rho))**-1=R*(sin(180-alpha))**-1\n",
+ "#After further simplifying we get\n",
+ "\n",
+ "P=R*sin(beta*180**-1*pi)*(sin((180-alpha)*180**-1*pi))**-1 #N\n",
+ "Q=R*sin(rho*180**-1*pi)*(sin((180-alpha)*180**-1*pi))**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Two forces Are:P\",round(P,2),\"P\"\n",
+ "print\" :Q\",round(Q,3),\"Q\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Two forces Are:P 264.92 P\n",
+ " :Q 195.199 Q\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.4,Page No.35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "P=240 #N\n",
+ "Q=200 #N\n",
+ "R=400 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Using Equation of Resultant,we get\n",
+ "#R=(P**2+Q**2+2*P*Q*cos(alpha))**0.5\n",
+ "#After Further simplifying we get\n",
+ "#Let cos(alpha)=X\n",
+ "X=(R**2-P**2-Q**2)*(2*P*Q)**-1 \n",
+ "alpha=arccos(X)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Using sine formula\n",
+ "#P*(sin(beta))**-1=Q*(sin(rho))**-1=R*(sin(180-alpha))**-1\n",
+ "#After further simplifying we get\n",
+ "X=(P*sin((180-alpha)*180**-1*pi)*R**-1)\n",
+ "beta=arcsin(X)*(180*pi**-1) #degrees\n",
+ "\n",
+ "Y=(Q*sin((180-alpha)*180**-1*pi)*R**-1)\n",
+ "rho=arcsin(Y)*(180*pi**-1) #degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Values of:alpha\",round(alpha,2),\"Degrees\"\n",
+ "print\" :beta\",round(beta,2),\"Degrees\"\n",
+ "print\" :rho\",round(rho,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Values of:alpha 49.46 Degrees\n",
+ " :beta 27.13 Degrees\n",
+ " :rho 22.33 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.5,Page No.36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "F=100 #N\n",
+ "theta=30 #Degrees #Angle made by Force with axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Force acting in X-direction \n",
+ "F_x=F*cos(theta*180**-1*pi) #N\n",
+ "\n",
+ "#Force acting in Y-direction \n",
+ "F_y=F*sin(theta*180**-1*pi) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Components of Force along X directions\",round(F_x,2),\"N\"\n",
+ "print\"Components Of force along Y direction\",round(F_y,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Components of Force along X directions 86.6 N\n",
+ "Components Of force along Y direction 50.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.6,Page No.37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=100 #N #Weight\n",
+ "theta=30 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Component of weight perpendicular to plane\n",
+ "W1=W*cos(theta*180**-1*pi) #N\n",
+ "\n",
+ "#Component of weight parallel to plane\n",
+ "W2=W*sin(theta*180**-1*pi) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Component of weight:perpendicular to plane\",round(W1,2),\"N\"\n",
+ "print\" :parallel to plane\",round(W2,2),\"N\"\n",
+ "\n",
+ "#Answer for Component of weight:perpendicular to plane is incorrect"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Component of weight:perpendicular to plane 86.6 N\n",
+ " :parallel to plane 50.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.7,Page No.37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_BA=50 #cm\n",
+ "L_AO=25 #cm\n",
+ "\n",
+ "theta=45 #Degrees #angle made by crank bith L_BO\n",
+ "\n",
+ "F1=2500 #N Force ererted on connecting rod\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let alpha be the angle made by connecting rod with hte perpendicular drawn to L_BO\n",
+ "\n",
+ "L_AC=L_AO*sin(theta*pi*180**-1)\n",
+ "\n",
+ "alpha=arcsin(L_AC*L_BA**-1)*(180*pi**-1) #degrees\n",
+ "\n",
+ "#Horizontal force of connecting rod\n",
+ "H_A=F1*cos(round(alpha,2)*pi*180**-1)\n",
+ "\n",
+ "#Vertical force of connecting rod\n",
+ "V_A=F1*sin(round(alpha,2)*pi*180**-1)\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#LEt angle OAD be beta\n",
+ "beta=theta+alpha #Degrees\n",
+ "\n",
+ "#Component of force AD along AO\n",
+ "F_AO1=F1*cos(round(beta,2)*pi*180**-1) #degrees\n",
+ "\n",
+ "#Component of force AD along AE\n",
+ "F_AO2=F1*sin(round(beta,2)*pi*180**-1) #degrees\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Resolving Forces of connecting rod:H_A\",round(H_A,2),\"KN\"\n",
+ "print\" :V_A\",round(V_A,2),\"KN\"\n",
+ "print\"Resolving forces of crank:F_AO2\",round(F_AO2,2),\"KN\"\n",
+ "print\" :F_AO1\",round(F_AO1,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resolving Forces of connecting rod:H_A 2338.61 KN\n",
+ " :V_A 883.69 KN\n",
+ "Resolving forces of crank:F_AO2 2278.51 KN\n",
+ " :F_AO1 1028.79 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.8,Page No.38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "F1=104 #N\n",
+ "F2=156 #N\n",
+ "F3=252 #N\n",
+ "F4=228 #N\n",
+ "\n",
+ "#Angles\n",
+ "alpha1=10 #Degrees\n",
+ "alpha2=24 #Degrees\n",
+ "alpha3=3 #Degrees\n",
+ "alpha4=9 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resolving force F1\n",
+ "F1_V=F1*sin(alpha1*pi*180**-1) #N\n",
+ "F1_H=F1*cos(alpha1*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Force F2\n",
+ "F2_V=F2*cos(alpha2*pi*180**-1) #N\n",
+ "F2_H=-F2*sin(alpha2*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Force F3\n",
+ "F3_H=-F3*cos(alpha3*pi*180**-1) #N\n",
+ "F3_V=F3*sin(alpha3*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Force F4\n",
+ "F4_H=-F4*sin(alpha4*pi*180**-1) #N\n",
+ "F4_V=F4*cos(alpha4*pi*180**-1) #N\n",
+ "\n",
+ "#Sum of Horizontal Forces\n",
+ "H=F1_H+F2_H+F3_H+F4_H #N\n",
+ "\n",
+ "#Sum of vertical Forces\n",
+ "V=F1_V+F2_V-F3_V-F4_V #N\n",
+ "\n",
+ "#Resultant\n",
+ "R=(H**2+V**2)**0.5\n",
+ "\n",
+ "#Direction\n",
+ "theta=arctan(V*H**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant\",round(R,2),\"N\"\n",
+ "print\"Direction of Resultant\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant 260.26 N\n",
+ "Direction of Resultant 17.4 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.9,Page No.41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "F1=10 #KN \n",
+ "F3=20 #KN\n",
+ "F4=40 #KN\n",
+ "\n",
+ "#Inclination\n",
+ "theta1=30 #Degree\n",
+ "theta3=90 #degree\n",
+ "theta3=120 #degree\n",
+ "\n",
+ "R=72 #KN #Resultant\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Sum of horizontal Forces\n",
+ "#F2*cos(theta2)=11.34...................1\n",
+ "\n",
+ "#Sum of vertical Forces\n",
+ "#F2*sin(theta2)=12.36.....................2\n",
+ "\n",
+ "#Dividing equation 2 by 1 and further simplifying we get\n",
+ "\n",
+ "theta2=arctan(1.0899)*(180*pi**-1)\n",
+ "\n",
+ "#Force\n",
+ "F2=12.36*(sin(theta2*180**-1*pi))**-1 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force is\",round(F2,2),\"KN\"\n",
+ "print\"Direction of force is\",round(theta2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force is 16.77 KN\n",
+ "Direction of force is 47.46 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.10,Page No.41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_OC=4 #m \n",
+ "L_BC=3 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_O=20 #N\n",
+ "F_C=35 #N\n",
+ "F_B=25 #N \n",
+ "F_A=50 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resultant Forces\n",
+ "R1=(F_A**2+F_O**2)**0.5 #N\n",
+ "R2=(F_B**2+F_C**2)**0.5 #N\n",
+ "\n",
+ "#Angle\n",
+ "theta1=arctan(F_O*F_A**-1)*(180*pi**-1) #Degrees\n",
+ "theta2=arctan(F_B*F_C**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Angle between these two Forces\n",
+ "theta3=theta1+theta2 #Degrees\n",
+ "\n",
+ "#Resultant of Forces R1 & R2\n",
+ "P=(R1**2+R2**2+2*R1*R2*cos(theta3*pi*180**-1))**0.5 #N\n",
+ "\n",
+ "#Angle made by Resultant P with R1\n",
+ "S1=(R2*sin(theta3*pi*180**-1))\n",
+ "S2=R1+R2*cos(theta3*pi*180**-1)\n",
+ "alpha=arctan(S1*S2**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Angle made by resultant P with vertical in anticlock wise direction\n",
+ "theta4=alpha-theta1 #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force\",round(P,2),\"N\"\n",
+ "print\"Direction of force\",round(theta4,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force 85.15 N\n",
+ "Direction of force 3.37 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_20.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_20.ipynb new file mode 100644 index 00000000..4d84ce26 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_20.ipynb @@ -0,0 +1,2598 @@ +{
+ "metadata": {
+ "name": "chapter 20.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 20:Beams (Shear Force And Bending Moment)"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.1,Page No.730"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "\n",
+ "L=2 #m #Span of beam\n",
+ "L_AB=0.5 #m\n",
+ "L_BC=0.7 #m\n",
+ "L_CD=0.8 #m\n",
+ "\n",
+ "#Point Load\n",
+ "F_D=800 #N\n",
+ "F_C=500 #N\n",
+ "F_B=300 #n\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A be the reactions at A \n",
+ "R_A=F_B+F_C+F_D #N\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#Shear Force at pt D\n",
+ "V_D=F_D #N\n",
+ "\n",
+ "#Shear Force at pt C\n",
+ "V_C1=V_D #N\n",
+ "V_C2=V_D+F_C #N\n",
+ "\n",
+ "#Shear force at pt B\n",
+ "V_B1=V_C2 #N\n",
+ "V_B2=V_C2+F_B\n",
+ "\n",
+ "#Shear Force at pt A\n",
+ "V_A=V_B2 #N\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at D\n",
+ "M_D=F_D*0 #N.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=F_D*L_CD #N.m\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=F_D*(L_CD+L_BC)+F_C*L_BC #N.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_D*L+F_C*(L_BC+L_AB)+F_B*L_AB #N.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CD,L_CD,L_CD+L_BC,L_CD+L_BC,L_CD+L_BC+L_AB]\n",
+ "Y1=[V_D,V_C1,V_C2,V_B1,V_B2,V_A]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_D,M_C,M_B,M_A]\n",
+ "X2=[0,L_CD,L_CD+L_BC,L_CD+L_BC+L_AB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAY8AAAEPCAYAAAC6Kkg/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X10VPWdx/H3xAQqDxEQmJzOpB0OGUwmxPAgg+KhHZQE\niEuaFcxu6EoAWT1wFNxui26P201aS8L24Yh60u3uiRDRFdjSJdnWZmOLg7VKQMoR7bhmxKTOTB62\nGlJBoCHh7h+UWUIeb5KZPPB5nZNzZn5zH76552Y++d17f/daDMMwEBERMSFmqAsQEZGRR+EhIiKm\nKTxERMQ0hYeIiJim8BAREdMUHiIiYlrEwmPDhg1YrVbS0tI6tD/zzDOkpKQwe/ZsHnvssXB7UVER\nTqeT5ORkqqqqwu3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cVz7H4nGf3TWl20yb948AoEA48aN4xe/+AU5OTnU1NREobrRSfvl\n4NG+ad7Zs2dZvXo1O3fuZMKECZ0+N7t/jqieR18GC147TTAYxGazRa3GkaIv23LixImMGzcOgBUr\nVnDx4kWam5ujWudoof1ycGnfNOfixYusWrWKv/mbvyEnJ6fT5/3ZP0dUeNx22234/X7q6upobW1l\n3759ZGdnd5gmOzub559/HoAjR44wadIkrFbrUJQ7rPVlWzY1NYX/Gzl69CiGYTBlypShKHfE0345\nuLRv9p1hGDzwwAO4XC4effTRLqfpz/45og5bdTdY8Mc//jEADz30EFlZWbz88sskJSUxfvx4du3a\nNcRVD0992ZY/+clP+NGPfkRsbCzjxo1j7969Q1z18JWXl8fhw4f5+OOPSUxMpLCwkIsXLwLaL/uj\nt+2pfbPvfvOb3/DCCy9w6623MnfuXAC2b9/ORx99BPR//9QgQRERMW1EHbYSEZHhQeEhIiKmKTxE\nRMQ0hYeIiJim8BAREdMUHiIiYprCQ0a1rm7DMJieeuopzp8/P+jr+6//+q9uHzkgMhxonIeMahMn\nTuTMmTMRW/6MGTN46623uPnmm6OyPpHhQj0Pue6cOnWKFStWcNttt/GlL32J999/H4B169axdetW\n7rzzTmbOnMmBAwcAuHTpEps3byYlJYXMzEzuueceDhw4wDPPPEN9fT1Llizh7rvvDi//iSeeYM6c\nOdxxxx387//+b6f1P/roo3znO98B4L//+7/58pe/3Gma3bt388gjj/RY19Xq6upITk5m/fr13HLL\nLXz1q1+lqqqKO++8k1mzZnHs2LGBbziRqw3Gw0ZEhqsJEyZ0arvrrrsMv99vGMblB9/cddddhmEY\nRn5+vpGbm2sYhmH4fD4jKSnJMAzD+I//+A8jKyvLMAzDaGxsNCZPnmwcOHDAMAzDcDgcxieffBJe\ntsViMX43983rAAACV0lEQVT2s58ZhmEY27ZtM5588slO6z937pyRmppqHDp0yLjllluMDz/8sNM0\nu3fvNh5++OEe67pabW2tERsba7z77rvGpUuXjPnz5xsbNmwwDMMwysvLjZycnF63lYgZI+reViID\ndfbsWd58803uu+++cFtraytw+RbUV+44mpKSEn4Yzuuvv05ubi4AVquVJUuWdLv8MWPGcM899wAw\nf/58XnnllU7T3Hjjjfzbv/0bixcvZufOncyYMaPHmrur61ozZswgNTUVgNTUVJYuXQrA7Nmzqaur\n63EdImYpPOS6cunSJSZNmtTtM5rHjBkTfm38+XSgxWLp8KwDo4fThHFxceHXMTExtLW1dTndyZMn\nmTZtWqcHcHWnq7quNXbs2A7rvjJPT3WI9JfOech1JT4+nhkzZvCTn/wEuPxFfPLkyR7nufPOOzlw\n4ACGYdDU1MThw4fDn02cOJFPP/3UVA2///3v+eEPf8iJEyf4xS9+wdGjRztN01NAiQwHCg8Z1c6d\nO0diYmL456mnnuLFF1+ktLSUOXPmMHv2bCoqKsLTX/30tCuvV61ahd1ux+Vycf/99zNv3jxuuukm\nAB588EGWL18ePmF+7fzXPo3NMAw2btzID37wAxISEigtLWXjxo3hQ2fdzdvd62vn6e69nloog02X\n6or0wWeffcb48eP55JNPWLhwIW+88QbTp08f6rJEhozOeYj0wV/8xV/Q0tJCa2sr3/rWtxQcct1T\nz0NEREzTOQ8RETFN4SEiIqYpPERExDSFh4iImKbwEBER0xQeIiJi2v8BTFyv+JQ1JdcAAAAASUVO\nRK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x4dec3b0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAY8AAAEPCAYAAAC6Kkg/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtcVHX+x/HXqGirYHYTi9Fw8YqgoIaWWrh5Je+mpWle\nq9UtbXW36+bqbnmprLxuZmKmrZdMRTPM1p9Y3k2x3LBEk+QmWYaCqAic3x/HZr0RDDJzZuD9fDzm\n0cyZOXM+czqeD9+7zTAMAxERESdUsDoAERHxPkoeIiLiNCUPERFxmpKHiIg4TclDREScpuQhIiJO\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qO\n57/e/K9s17gyKVSpUgWAihUrkpeX53RM1zrmlX49BkCFChUc+1SoUKFExxRxhqqtpNyrXr06devW\nZeXKlYB5s/76669/c582bdrw0UcfYRgGGRkZbNmypcjj+Pn5kZWVdc33ND+peBslDyl3cnJyqF27\ntuPx1ltv8cEHH7BgwQLCwsIICQlh7dq1js9f2h7x6/O+fftit9sJDg5m8ODBNG/enBtvvPGqY9ls\nNsc+3bt3Z/Xq1YSHh7Nt27ZCP1fYMa/13YW91gqF4mqakl2khM6cOUO1atX4+eefadWqFdu3b6dm\nzZpWhyXiFmrzECmhbt26kZmZSW5uLhMmTFDikHJFJQ8REXGa2jxERMRpSh4iIuI0JQ8REXGakoeI\niDhNyUNERJym5CEiIk77f8v9P3JnzfFGAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55eb030>"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.2,Page No.733"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#lengths\n",
+ "L_CB=1.5 #m \n",
+ "L_AC=0.5 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=1 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R_A=w*L_CB #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at B\n",
+ "V_B=0\n",
+ "\n",
+ "#S.F at C\n",
+ "V_C=w*L_CB #KN\n",
+ "\n",
+ "#S.F at A\n",
+ "V_A=V_C #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at B\n",
+ "M_B=0\n",
+ "\n",
+ "#B.M at C\n",
+ "M_C=w*L_CB*L_CB*2**-1\n",
+ "\n",
+ "#B.M at A\n",
+ "M_A=w*L_CB*(L_CB*2**-1+L_AC) #KN\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CB,L_CB+L_AC]\n",
+ "Y1=[V_B,V_C,V_A]\n",
+ "Z1=[0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_C,M_A]\n",
+ "X2=[0,L_CB,L_AC+L_CB]\n",
+ "Z2=[0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEPCAYAAABGP2P1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtQU2f+BvAnCLqK4r24knSDQCGIIoqiMthgW1Bc0BUv\nMLVVFOWn4+0Pt3Z21YWttnWndu3K7C7tWN2qpe4W2rhbja6X4BXwwohdO4qXVMDCllJHLVggnt8f\n1CwRQkLISU6S5zPDTELenHzNxHw55znve2SCIAggIiL6iZezCyAiImlhYyAiIhNsDEREZIKNgYiI\nTLAxEBGRCTYGIiIyIWpjWLx4Mfz9/TFq1CizY3Q6HaKiohAREQG1Wi1mOUREZAWZmPMYTp06hb59\n++LVV1/FlStX2j1+7949xMbG4vDhw5DL5airq8OQIUPEKoeIiKwg6h5DXF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W3btmHYsGHYuXMnMjMzjYezzD3X\n3O2nn2PuPq8WR/bG01XJ4/3www/w9fXFd999h5iYGJw9exbPPPOMs8sichpmDOTxfvnLX+LevXto\namrCpk2b2BTI43GPgYiITDBjICIiE2wMRERkgo2BiIhMsDEQEZEJNgYiIjLBxkBERCb+HznwiUbN\nkmdmAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57035f0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEPCAYAAABGP2P1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHGRJREFUeJzt3XtwVOX9x/HPCTcbEi5qiTUJJZNgyc1kE2psEQlVyBAN\nBhTFihe8NOIoMrTT6jgqzCjKiKUgVcER1OoIU9QSahKxMwSHQIRiHJ0BIcEuJgEj4kQSkQbC/v7I\nL1uW7LKX7Nk9u/t+zWQmm332nK9njvvheZ7znGM4HA6HAAD4f3HhLgAAYC0EAwDABcEAAHBBMAAA\nXBAMAAAXBAMAwIVpwdDc3KzJkycrOztbOTk5Wrlypdt28+fP19ixY5WXl6eGhgazygEA+GigWRse\nNGiQli9frvz8fHV2dqqwsFBTpkxRZmams01VVZWamprU2Niojz/+WPPmzVN9fb1ZJQEAfGBaj+GS\nSy5Rfn6+JCkhIUGZmZk6fPiwS5vKykrdeeedkqSioiK1t7erra3NrJIAAD4IyRyD3W5XQ0ODioqK\nXP7e2tqq1NRU5+uUlBS1tLSEoiQAgAemB0NnZ6duuukmrVixQgkJCX3eP/eOHIZhmF0SAOA8TJtj\nkKRTp07pxhtv1Jw5c1ReXt7n/eTkZDU3Nztft7S0KDk5uU+7jIwMHTx40MxSASDqpKenq6mpye/P\nmdZjcDgcuueee5SVlaUFCxa4bTN9+nS98cYbkqT6+nqNGDFCSUlJfdodPHhQDoeDnyD9PPnkk2Gv\nIVp+OJYcTyv/BPoPatN6DHV1d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em4P/e677zr/7svdZTzt81xpaWnKzs6WJGVn\nZ+vaa6+VJOXk5Mhut3vdD9AfBAOi2pkzZzRixAiPz7kdPHiw8/feL/Zz5xHO/cIfMmSIJGnAgAE6\nffq03zW52+e5evchSXFxcc7PxMXFBbRPwB8MJSGqDRs2TGlpadq4caOkni/izz777LyfmTBhgt55\n5x05HA61tbVp27ZtXveTmJiojo4Ot+9xn0pEGoIBUeXEiRNKTU11/vzlL3/RW2+9pVdffVX5+fnK\nyclRZWWls/3Z4/+9v994441KSUlRVlaWbr/9dhUUFGj48OF99mUYhvMzZWVleu+992Sz2VRXV+ex\nnad9utu2p9c8HQ5m47bbgBs//PCDhg4dqmPHjqmoqEg7duzQqFGjwl0WEBLMMQBuXH/99Wpvb1dX\nV5eeeOIJQgExhR4DAMAFcwwAABcEAwDABcEAAHBBMAAAXBAMAAAXBAMAwMX/AZ1k8BGP4cc7AAAA\nAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5527150>"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.3,Page No.734"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=2 #m\n",
+ "\n",
+ "#Load\n",
+ "w=2 #KN/m \n",
+ "F_B=3 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A be the reaction at pt A\n",
+ "R_A=F_B+w*L_AB\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at B\n",
+ "V_B=F_B #KN\n",
+ "\n",
+ "#S.F at A\n",
+ "V_A=V_B+w*L_AB #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at A\n",
+ "M_A=F_B*L_AB+w*L_AB*L_AB*2**-1 #KN.m\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_AB]\n",
+ "Y1=[V_B,V_A]\n",
+ "Z1=[0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_A]\n",
+ "X2=[0,L_AB]\n",
+ "Z2=[0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEPCAYAAABBUX+lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG2ZJREFUeJzt3XtwVOX9x/HPQgANIdxEaCEt+YVbCEIuIAIiQeWqclVG\nigiBFKeMFzq1jlMZjcVWHSkVyW/ayiAqKjKaGQEtFCkuFgQRTKGKw0WIBpF4oVxCgmGT8/tjf6yE\nbLKXnGezu+f9mslMkt0932fOHD55eM53n3VZlmUJABD3mjX1AAAAkUHgA4BDEPgA4BAEPgA4BIEP\nAA5B4AOAQxgN/AMHDigrK8v31bZtWz333HMmSwIA6uGKVB9+TU2Nunbtql27diklJSUSJQEAl4jY\nks7mzZuVlpZG2ANAE4lY4L/++uv6xS9+EalyAIDLRGRJp6qqSl27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d6nzoTH38jety\nrVq1qlX74msaGgcQDtbwEROSk5OVmpqqN998U5I3PPft29fga4YNG6aioiJZlqWysjJt3brV91ib\nNm105syZkMbwxRdfaMmSJSouLtaGDRu0a9euOs9p6I8K0NQIfESliooKpaSk+L6effZZvfrqq1qx\nYoUyMzPVr18/rVu3zvf8Sz/l5+L3U6dOVbdu3dS3b1/NnDlT2dnZatu2rSRp3rx5Gjt2rO+m7eWv\nv/xTgyzLUn5+vv70pz+pS5cuWrFihfLz833LSvW9tr7vL39NfT/z6VqwE22ZiGvnzp1T69at9f33\n32vw4MH64IMPdPXVVzf1sIAmwRo+4tqtt96qU6dOqaqqSo8++ihhD0djhg8ADsEaPgA4BIEPAA5B\n4AOAQxD4AOAQBD4AOASBDwAO8X+l+manQSJKKgAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55f06d0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEPCAYAAABP1MOPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHI1JREFUeJzt3X1wFPUdx/HPBRI0JOBTCS2BwkSRPElCKEGpeAwgJRIE\nBJ+lKiItY8VC/8BxpHGmFahoBR/xKfWBUaYoAgoIWoLyJFSCMsODJfRseIpUJpIjxpDk+kea4wI5\n7iG3e3e779fMzXB3e7ff2Vnul89+f7vr8Hg8HgEAbCsh2gUAAKKLgQAAbI6BAABsjoEAAGyOgQAA\nbI6BAABszrCB4N5771VaWppyc3O9r504cUIjR45U3759df3116u6utqo1QMAgmTYQHDPPfdo7dq1\nrV6bN2+eRo4cqa+//lrDhw/XvHnzjFo9ACBIDiNPKHO5XCouLtbu3bslSf369dPGjRuVlpamY8eO\nyel0at++fUatHgAQBFN7BFVVVUpLS5MkpaWlqaqqyszVAwDaELVmscPhkMPhiNbqAQD/19HMlbUc\nEurevbuOHj2qbt26tbnc5Zdfroq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7zn3ri\niSc0ffp073vHjh3T5s2b9cEHH2j27NmSpPfee0/ffPON9u7dqzfffFNbt25tlTR+8pOf6IsvvtBv\nf/tbLViwQL1799ZvfvMbzZw5U+Xl5frlL3/Zav1np5S21nm2iooK/eEPf9C+ffu0f/9+LV26VJs3\nb9aCBQv0+OOPR2rTAG3i0BAsxe12a+vWrZo0aZL3tfr6eknNP9AtV2rMzMz03qhj06ZNuvnmmyVJ\naWlpGjZsWKvvnDBhgqTmyyW/99573teDuTqLv3WerU+fPsrOzpYkZWdna8SIEZKknJwcuVyugOsB\n2oOBAJbS1NSkiy66yO89WpOSkrz/bvkhP7sPcPYPfKdOnSRJHTp0UENDQ8g1tbXOs7WsQ5ISEhK8\nn0lISAhrnUAoODQES+nSpYv69OmjZcuWSWr+4f3qq6/O+5khQ4bo3XfflcfjUVVVlTZu3BhwPamp\nqaqpqWnzPa7jiHjDQIC4Vltbq549e3ofTz/9tJYsWaJXX31VeXl5ysnJ0cqVK73L+x6/b/n3TTfd\npPT0dGVlZemuu+7SgAED1LVr13PW5XA4vJ8pLi7W8uXLlZ+fr82bN/tdzt862/puf8+5+xmMxmWo\nAUmnTp1S586d9d1336mwsFBbtmxRt27dol0WYAp6BICkMWPGqLq6WvX19ZozZw6DAGyFRAAANkeP\nAABsjoEAAGyOgQAAbI6BAABsjoEAAGyOgQAAbO5/3s4VeFi4MvMAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5546a70>"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.4,Page No.736"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_CB=0.5 #m\n",
+ "L_AC=1.5 #m\n",
+ "L=2 #m \n",
+ "\n",
+ "#Loads\n",
+ "F_C=2 #KN\n",
+ "w=1.5 #KN/m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A be the reaction at pt A\n",
+ "R_A=F_C+w*L #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B=0 #KN\n",
+ "\n",
+ "#S.F At pt C\n",
+ "V_C1=w*L_CB #KN\n",
+ "V_C2=V_C1+F_C #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A=F_C+w*L #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=w*L_CB*L_CB*2**-1\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_C*L_AC+w*L*L*2**-1 #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CB,L_CB,L_AC+L_AC]\n",
+ "Y1=[V_B,V_C1,V_C2,V_A]\n",
+ "Z1=[0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_C,M_A]\n",
+ "X2=[0,L_CB,L_AC+L_CB]\n",
+ "Z2=[0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+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4uJiY4wxqamp5tixY959u1wu8/rrrxtjjPnZz35mHn300UbjnzlzxgwcONBs3LjR9O/f3+zf\nv7/RNsuXLzfz589vdl4XOnDggElMTDSfffaZ8Xg8ZsiQIeaOO+4wxhizZs0aM3HiRL9/V0CgLL+X\nDhAOp06d0gcffKApU6Z4f1ZdXS2p/naw5+6UmJ6e7n0AxHvvvaepU6dKkvd+4r60bt1a48aNkyQN\nGTJEGzZsaLTNJZdcomeffVYjRozQ4sWLlZaW1uycfc3rYmlpaRo4cKAkaeDAgbrpppskSYMGDVJZ\nWVmzYwDBIPBhCx6PRx06dPD5zM7WrVt7X5vvPpZyuVwN7hVumvm4Kikpyfs6ISFBtbW1TW63c+dO\ndenSpdFDbnxpal4Xa9OmTYOxz/1Oc/MAQkENH7aQkpKitLQ0vfLKK5Lqw3Pnzp3N/s61116r4uJi\nGWN05MgRbd682fteu3btdPLkyaDm8NVXX+nJJ59UaWmp3nrrLW3fvr3RNs39owJEG4GPmHTmzBn1\n6tXL+7Vo0SI9//zzWrp0qTIzMzVo0CCtXbvWu/2FT/k59zo/P189e/ZURkaGZs6cqezsbLVv316S\nNGfOHN1yyy3eD20v/v2LnxpkjFFhYaF++9vfqlu3blq6dKkKCwu9ZSVfv+vr9cW/4+t7uz19CrGN\nyzIR106fPq1LL71Ux44dU05Ojt5//31dfvnl0Z4WEBXU8BHXbr31Vp04cULV1dV66KGHCHs4Gmf4\nAOAQ1PABwCEIfABwCAIfAByCwAcAhyDwAcAhCHwAcIj/B+DE6FqrcT8bAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57190d0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEPCAYAAABBUX+lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl0VGWexvFvQQISEkEUWQx0PKGRQJCERXZMBoFmieyb\nC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k5aWVub7ymqztO8u62ftpCVW0/LIElSuXLlCzZo1+fHHH2nf\nvj2ffvopd999t91lifiExvAlqPTr14+LFy+Sl5fHa6+9prCXoKIevohIkNAYvohIkFDgi4gECQW+\niEiQUOCLiAQJBb6ISJBQ4IuIBIn/B6vzYmUHF4P4AAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55c42f0>"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.5,Page No.738"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_CB=0.25 #m\n",
+ "L_DC=1 #m \n",
+ "L_AD=0.25 #m\n",
+ "L_DB=1.25 #m\n",
+ "L=1.5 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_C=3 #KN #Point Load\n",
+ "w=2 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A be the reaction at A\n",
+ "R_A=F_C+w*(L_DC+L_CB)\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B=0\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=w*L_CB #KN\n",
+ "V_C2=V_C1+F_C #KN\n",
+ "\n",
+ "#S.F at D\n",
+ "V_D=w*(L_DC+L_CB)+F_C #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A=V_D #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=w*L_CB*L_CB*2**-1 #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=w*L_DB*L_DB*2**-1+F_C*L_DC #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=w*L_DB*(L_DB*2**-1+L_AD)+F_C*(L_DC+L_AD) #KN.m\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CB,L_CB,L_CB+L_DB,L_CB+L_DB+L_AD]\n",
+ "Y1=[V_B,V_C1,V_C2,V_D,V_A]\n",
+ "Z1=[0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_C,M_D,M_A]\n",
+ "X2=[0,L_CB,L_DC+L_CB,L_DC+L_CB+L_AD]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEPCAYAAABBUX+lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG09JREFUeJzt3X1wVNX9x/HPhoQIgQgIGoTMJEaEhGgSQDECGqA8CwgE\nR0qtBHkoDCLOqOOolbRYi5ZSGeyM2uFBERyrUQGVVAVW5RmBQgUHKST+QBDBiBEwIZuc3x8pKwE2\ne5Ps3Yfc92tmh93s5p7vwOmnx7Pfe6/LGGMEAGj0okJdAAAgOAh8AHAIAh8AHILABwCHIPABwCEI\nfABwCFsD/9SpU8rNzV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5ScnFxrzb7qulhycrK6du0qSeratat+9atfSZLS09NVXFxc6xhAXRD4iAhVVVVq1aqVz3vB\nNm3a1Pvc/O9rqfPXU7/455cTExPjfR4VFSWPx3PZz+3Zs0ft2rWr9WY5/uq6WGxsbI2xz/9ObXUA\n9cEePiJCfHy8kpOT9dZbb0mqDk9/N9zu1auXCgoKZIzR8ePH9cknn3jfa9mypff2cFZ9/fXXmj9/\nvnbt2qU1a9Zc9qqStf2fChBqBD7C0tmzZ5WYmOh9PP/881q+fLkWLVqkzMxMpaena9WqVd7PX3j3\nqPPPz9+DNC0tTffee6+6devmvX/rlClTNHjwYO+Xthf//sV3ozLGaNKkSfrrX/+qhIQELVq0SJMm\nTfJuK/n6XV/PL/4dX6/D6a5YiHy0ZaJRO3PmjOLi4vT999+rZ8+e2rRpk66++upQlwWEBHv4aNTu\nvPNOnTp1SufOndNTTz1F2MPRWOEDgEOwhw8ADkHgA4BDEPgA4BAEPgA4BIEPAA5B4AOAQ/w/Pb4o\nS3Z3QZIAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55469b0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEPCAYAAABBUX+lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtcVHXeB/DPcPMCqHk3lcXFVHAQEB4veRtWEUVIMS1L\nXS9FF7dN82lfT6uvlLZWTS0zt93Ml9qTWbmJppSi5jKWikmhWaZWKD5e0EhBuUgww3n+mJhAGc6Z\nYc6cc+Z83q/XvBxgmN838nw9fM7v/H4GQRAEEBGR1/NRugAiIvIMNnwiIp1gwyci0gk2fCIinWDD\nJyLSCTZ8IiKdkLXhl5SUYNKkSQgPD0dERASOHDki53BERNQIPznffO7cuUhKSsLWrVthsVhQXl4u\n53BERNQIg1w3Xt24cQMxMTE4e/asHG9PREROki3SOXfuHDp06I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89J06cCADo379/vW3tpKw+4mjM2/Xo0QN9+/YF\nAPTt2xejRo0CABiNRhQUFIiOQ9QUbPikSTU1NWjTpo3DvVsDAgLsz2sb9u05/e2NvFmzZgAAX19f\nWCwWp2tqaMzb1Y4BAD4+Pvbv8fHxcWlMImcw0iFNatWqFXr06IGtW7cCsDVYsQ2xhwwZgoyMDAiC\ngKtXr+LAgQOi4wQHB6O0tLTBr3HdQdIaNnzShIqKCnTv3t3+eO2117B582asX78e0dHRMBqN2Llz\np/31dfP12ue1+39GRERg+vTp6N+/v31/1boMBoP9e1JSUrB9+3bExMTcsTtT3dc5GrOh93b0sZp3\nqCLvwOWRSVfKy8sRGBiIa9euYeDAgTh8+DA6duyodFlEHsEMn3QlOTkZJSUlqKqqwqJFi9jsSVd4\nhk9EpBPM8ImIdIINn4hIJ9jwiYh0gg2fiEgn2PCJiHSCDZ+ISCf+H1beReq4OaymAAAAAElFTkSu\nQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57193b0>"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.6,Page No.739"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_CB=0.5 #m\n",
+ "L_DC=2 #m\n",
+ "L_ED=1.5 #m\n",
+ "L_AE=1 #m\n",
+ "L=5 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_B=2.5 #KN\n",
+ "F_E=3 #KN\n",
+ "w=1 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A be the reaction at A\n",
+ "R_A=F_B+F_E+w*L_DC #KN\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B=F_B\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=V_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D=V_C+w*L_DC #KN\n",
+ "\n",
+ "#S.F at pt E\n",
+ "V_E1=V_D #KN\n",
+ "V_E2=V_D+F_E #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A=V_E2 #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=F_B*L_CB #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=w*L_DC*L_DC*2**-1+F_B*(L_CB+L_DC) #KN.m\n",
+ "\n",
+ "#B.M at pt E\n",
+ "M_E=F_B*(L_ED+L_DC+L_CB)+w*L_DC*(L_DC*2**-1+L_ED) #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_B*L+w*L_DC*(L_DC*2**-1+L_ED+L_AE)+F_E*L_AE #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CB,L_CB+L_DC,L_CB+L_DC+L_ED,L_CB+L_DC+L_ED,L_CB+L_DC+L_ED+L_AE]\n",
+ "Y1=[V_B,V_C,V_D,V_E1,V_E2,V_A]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_C,M_D,M_E,M_A]\n",
+ "X2=[0,L_CB,L_DC+L_CB,L_ED+L_DC+L_CB,L_ED+L_DC+L_CB+L_AE]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEPCAYAAAC5sYRSAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGs5JREFUeJzt3Xt0VOW9xvFnEi4FQrgGooBNDlhIgjAhgQiCTBBBUEAg\nUCJVGqRYOai4RJbtcmkq1ssRlYueY2UpKrLES6xcFETEUUDuxGJLDzcZDxBDRYoxJBhmss8fkSHB\nTGaSzM5Odr6ftWY5k+yZ369TfNy8737f7TAMwxAAwFYirG4AABB+hDsA2BDhDgA2RLgDgA0R7gBg\nQ4Q7ANiQqeH++OOPKykpSVdddZVuueUW/fjjj2aWAwD8xLRw93g8Wrp0qfbu3asvv/xSPp9PK1eu\nNKscAKCcJmZ9cHR0tJo2baqioiJFRkaqqKhIXbp0MascAKAc087c27dvr/vuu09XXHGFLr/8crVt\n21bDhw83qxwAoBzTwv3IkSNauHChPB6P8vLyVFhYqBUrVphVDgBQjmnDMrt379agQYPUoUMHSdKE\nCRP0+eefa+rUqf5jevTooSNHjpjVAgDYUvfu3XX48OEqjzHtzL1Xr17avn27iouLZRiGNm7cqMTE\nxArHHDlyRIZh8DAMPfzww5b3UF8efBd8F3wXVT9COSk2Ldz79u2r2267TampqerTp48kaebMmWaV\nAwCUY9qwjCTNmzdP8+bNM7MEAKASrFCtJ1wul9Ut1Bt8FxfxXVzEd1E9DsMwLLtZh8PhkIXlAaBB\nCiU7OXMHABsi3AHAhgh3ALAhwh0AbIhwBwAbItwBwIYIdwCwIVNXqAJAOBw/LvXpI50/b3UnDQfh\nDqDeKyiQYmKk3but7qR+iI4OfgzhDqBBiIyUWre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cNGTJE7dq1s7qN\neiE2NlZOp1OSFBUVpYSEBOXl5VnclXVatmwpSSopKZHP5wv6L7OdHT9+XB988IFmzJghRpIV0ndg\nSbizwAnBeDwe5ebmKi0tzepWLFNaWiqn06nOnTsrPT1diYmJVrdkmXvvvVdPPfWUIiLY69DhcGj4\n8OFKTU3V0qVLAx5nyTfFAidUpbCwUBkZGVq0aJGioqKsbscyERER+uKLL3T8+HF99tlnjXb5/dq1\na9WpUyclJydz1i5p69atys3N1bp16/T8889r8+bNlR5nSbh36dJFx44d878+duyYunbtakUrqGfO\nnz+viRMn6je/+Y1uvvlmq9upF9q0aaMbb7xRu3fvtroVS3z++edavXq14uPjlZmZqU2bNum2226z\nui3LXHbZZZKkmJgYjR8/Xjt37qz0OEvCPTU1VYcOHZLH41FJSYnefPNNjR071opWUI8YhqHbb79d\niYmJmjNnjtXtWOrUqVM6c+aMJKm4uFgfffSRkpOTLe7KGo899piOHTumo0ePauXKlRo2bJhee+01\nq9uyRFFRkX744QdJ0tmzZ7Vhw4aAV9pZEu7lFzglJibq17/+daO9IiIzM1ODBg3SwYMH1a1bNy1b\ntszqliyzdetWvf766/rkk0+UnJys5ORkrV+/3uq2LPHNN99o2LBhcjqdSktL05gxY3TddddZ3Va9\n0JiHdU+ePKkhQ4b4/1zcdNNNGjFiRKXHsogJAGyIqWcAsCHCHQBsiHAHABsi3AHAhgh3ALAhwh0A\nbIhwR71k9rYDCxcuVHFxcdjrrVmzplFvYY36g+vcUS+1bt3avxLPDPHx8dq9e7c6dOhQJ/WAusaZ\nOxqMI0eOaNSoUUpNTdW1116rAwcOSJJ++9vf6p577tE111yj7t27KycnR1LZroqzZs1SQkKCRowY\noRtvvFE5OTlasmSJ8vLylJ6eXmHV54MPPiin06mBAwfqX//618/qz5kzR/Pnz5ckffjhhxo6dOjP\njnnllVd01113VdlXeR6PR7169VJWVpZ69uypqVOnasOGDbrmmmv0q1/9Srt27ar9F4fGKegttAEL\nREVF/exnw4YNMw4dOmQYhmFs377dGDZsmGEYhjFt2jRj8uTJhmEYxv79+40ePXoYhmEYb7/9tjF6\n9GjDMAwjPz/faNeunZGTk2MYhmHExcUZ3333nf+zHQ6HsXbtWsMwDGPevHnGo48++rP6RUVFRlJS\nkrFp0yajZ8+exldfffWzY1555RVj9uzZVfZV3tGjR40mTZoYf//7343S0lIjJSXFmD59umEYhrFq\n1Srj5ptvDvpdAZUx7QbZQDgVFhZq27ZtmjRpkv9nJSUlksr2Grmwg2RCQoJOnjwpSdqyZYsmT54s\nSf490QNp1qyZbrzxRklSSkqKPvroo58d06JFCy1dulRDhgzRokWLFB8fX2XPgfq6VHx8vJKSkiRJ\nSUlJGj58uCSpd+/e8ng8VdYAAiHc0SCUlpaqbdu2ys3NrfT3zZo18z83fppGcjgcFfb/NqqYXmra\ntKn/eUREhLxeb6XH7du3TzExMSHfXKayvi7VvHnzCrUvvKeqPoBgGHNHgxAdHa34+Hi98847ksqC\nct++fVW+55prrlFOTo4Mw9DJkyf16aef+n/XunVrFRQUVKuHr7/+Ws8884z/RgmV7aNd1X9AgLpE\nuKNeKioqUrdu3fyPhQsXasWKFXrppZfkdDrVu3fvCjdJLr8N7IXnEydOVNeuXZWYmKhbb71V/fr1\nU5s2bSRJM2fO1A033OCfUL30/ZduK2sYhmbMmKGnn35asbGxeumllzRjxgz/0FCg9wZ6ful7Ar1u\nzNvbona4FBK2dvbsWbVq1Urfffed0tLS9Pnnn6tTp05WtwWYjjF32NpNN92kM2fOqKSkRA899BDB\njkaDM3cAsCHG3AHAhgh3ALAhwh0AbIhwBwAbItwBwIYIdwCwof8HTyHUnWh5XzsAAAAASUVORK5C\nYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5714df0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAEPCAYAAACukxSbAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHxdJREFUeJzt3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/\nfr2ttwUXawv6lbNEAsnoE3IcDkej+7ps2rSJqKgofvazn53zu8zMTNvv7S7WpZW+hJ39+/czZMgQ\nevbsyc0338zevXsBuOeee3jooYfo06cPCQkJvPbaa0DtrpUPPPAAiYmJDBo0iGHDhnl/B7BkyRLS\n0tLo3r07e/fuxe12s3TpUhYtWoTL5WLr1q31Pv8vf/kLv/71r8/7mXW53W66devGvffey3XXXcek\nSZPYuHEjffr04dprr2Xnzp1GfVViQwp9CTu//OUvWbJkCR9++CFPPvkkDzzwgPd3xcXF5Ofn88Yb\nb/Doo48C8Prrr3Pw4EF2797NX//6V7Zv317vL4irrrqKXbt2cf/99zN//nzi4uL41a9+xYwZMygo\nKDjnAiYN//po7DMb2r9/P7/97W/Zs2cPe/fuZeXKleTn5zN//nzmzp0bqK9GRO0dCS/l5eVs376d\nsWPHeh+rrKwEasP47A6diYmJlJSUALB161bGjRsH4N2jvq7Ro0cD0KNHD15//XXv4/7sYNLUZzYU\nHx9PcnIyAMnJyQwYMACAlJQU3G63z88R8ZdCX8JKTU0NHTt2pKCgoNHft2nTxvvz2dBu2LdvGOZt\n27YFoFWrVlRVVTW7psY+s6GznwG1++WffU1ERMQFfaZIU9TekbDSvn174uPj+cc//gHUhuwnn3xy\n3tf06dOH1157DY/HQ0lJCZs3b/b5OVFRUd6tbBvSHoZiZQp9CWkVFRV06dLFe/vTn/7EK6+8wvPP\nP4/T6SQlJaXexbLr9tvP/jxmzBhiY2NJSkrirrvuokePHnTo0OGcz3I4HN7XZGZmsnr1alwuF/n5\n+U0+r6nPbOy9m7pv5y2DJfC0tbIItReeuPTSS/n222/p3bs327Zto1OnTmaXJRJw6umLAMOHD6e0\ntJTKykpmz56twJewpZW+iIiNqKcvImIjCn0RERtR6IuI2IhCX0TERhT6IiI2otAXEbGR/wfOxavZ\n2e9ZygAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55467f0>"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.7,Page No.741"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=4 #m #Length of AC\n",
+ "w=2 #KN/m #u.v.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Shear force calculation\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B=0 #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A=w*L_AB*2**-1 #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=w*L_AB**2*6**-1 #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_AB]\n",
+ "Y1=[V_B,V_A]\n",
+ "Z1=[0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_A]\n",
+ "X2=[0,L_AB]\n",
+ "Z2=[0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEPCAY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ORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x580a3b0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAEPCAYAAABBUX+lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlHX+B/D3oKAhKJZ52RThUCY3ZcAT5SWHvLBe0Lyn\n5q0yy5Nham3WSWnb1FbNQGsjT7HldpRdqxXSTHdjLFBXRUxKUyPHBSWT+qEg0Dgzz++PJ2a5jXN7\nnpln5nm/zplzgBnm+znf3T5++c73eT8aQRAEEBGR3wvwdgFEROQZbPhERCrBhk9EpBJs+EREKsGG\nT0SkEmz4REQqIWvDr66uxtSpUxEdHY2YmBgcPnxYzuGIiOgm2sv55unp6Rg7dix27twJk8mE69ev\nyzkcERHdhEauC6+uXr0KrVaLH374QY63JyIiJ8m2pXP+/HncfvvtWLBgARITE7Fw4ULU1dXJNRwR\nEdkhW8M3mUw4fvw4Fi9ejOPHj6NTp05Yt26dXMMREZE9gkwqKyuFiIgI6/dfffWVMG7cuGaviYqK\nEgDwwQcffPDhxCMqKsqlvizbCr9nz57o06cPzp49CwD417/+hdjY2GavKSsrgyAIin+sXr3a6zWw\nTtbJOllj46OsrMylvizrKZ3Nmzdj9uzZMBqNiIqKQk5OjpzDERHRTcja8AcOHIijR4/KOQQRETmI\nV9o6QKfTebsEh7BOabFOaflCnb5QoztkO4fv0OAaDbw4PBGRT3K1d3KFT0SkEmz4REQqwYZPRKQS\nbPhERCrBhk9EpBJs+EREKsGGT0SkEmz4REQqwYZPRKQSbPhERCrBhk9EpBJs+EREKsGGT0SkEmz4\nREQqwYZPRKQSbPhERCrBhk9EpBJs+EREPsSdmwSy4RMR+Yhz54Bx41z/fTZ8IiKFq60FVq4E7rsP\neOAB19+HDZ+ISKEEAcjNBaKjgYoKoLQUWLHC9fdrL11pREQklW++AZYsAf7v/4Dt24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f5649dTpkxB7969ERMTgzlz5iAxMRFdunRpNZZGo7H+TlpaGj75\n5BNotVoUFRXZfJ2tMdt6b1vfK/HOZORfGI9MqnL9+nV06tQJP//8M5KTk3Hw4EF0797d22UReQT3\n8ElVxo8fj+rqahiNRqxatYrNnlSFK3wiIpXgHj4RkUqw4RMRqQQbPhGRSrDhExGpBBs+EZFKsOET\nEanE/wPMXV7pzFimMAAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55274d0>"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.8,Page No.745"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_DB=L_CD=L_AC=2 #m\n",
+ "L=6 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_C=3 #KN\n",
+ "F_D=6 #KN\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at pt A & B respectively\n",
+ "#R_A+R_B=F_C+F_D\n",
+ "\n",
+ "#Taking Moment at pt A,M_A\n",
+ "R_B=(F_D*(L_AC+L_CD)+F_C*L_AC)*L**-1 #KN\n",
+ "R_A=(F_C+F_D)-R_B\n",
+ "\n",
+ "#Shear force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B=R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=R_B #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F at C\n",
+ "V_C1=V_D2 #KN\n",
+ "V_C2=V_D2-F_C #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C2 #KN\n",
+ "V_A2=V_C2+R_A #KN\n",
+ "\n",
+ "#Bending Moment calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KNm\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=-R_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=F_D*L_CD-R_B*(L_DB+L_CD) #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+F_D*(L_CD+L_AC)+F_C*L_AC #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_DB,L_DB,L_DB+L_CD,L_DB+L_CD,L_DB+L_CD+L_AC,L_DB+L_CD+L_AC]\n",
+ "Y1=[V_B,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_CD+L_DB,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEPCAYAAACqZsSmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGjRJREFUeJzt3X1U1fUBx/HP5UELlNREacIGx0dAE3xiWq6Lio9hqdjJ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L84ZfKysoUFRXl/rNs2TK9/vrrWr16tRISEtSzZ09t2rTJffz1\nlya+dnvChAmKjIxUXFycpkyZoj59+rj3PJ05c6ZGjhzp/oXvt1//7UsdW5aljIwMLV26VBEREVq9\nerUyMjLcU0+1vba2299+TW33m9sll9F4WOoJW7t48aJCQ0N15swZJSUl6cMPP1SHDh1MxwJ8jjl/\n2Nq9996rkpISlZeX64UXXqD4YRuM/AHAhpjzBwAbovwBwIYofwCwIcofAGyI8gcAG6L8AcCG/g/7\nOKJxjqPQogAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55e3470>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlHX+B/D3cNMU1G5mCYaLGuCggJi2dhlTZL1QYWqG\nmmmaZu62a7un/BVme45imeFt3dJVO+12No9bLloroZuooR5Q0XIpy8u4eMFcWxQE4jLP749ZJpAH\nZ2C+z/39OodzmuEZ5kPWfHw/3+fzfG2SJEkgIiICEKB1AUREpB9sCkRE5MGmQEREHmwKRETkwaZA\nREQebApEROShy6aQk5OD6Oho9O7dG2+88YbW5RARWYZNb3MK9fX1uOeee7Bz5050794dAwcOxF//\n+lfExMRoXRoRkenpLikUFBSgV69eiIyMRHBwMCZOnIjs7GytyyIisgTdNYVz584hIiLC8zg8PBzn\nzp3TsCIiIuvQXVOw2Wxal0BEZFlBWhdwve7du6OkpMTzuKSkBOHh4U2OCQ3thWvXTqpdGhGRoUVF\nReHEiRM3PkjSmdraWulnP/uZdPr0aenHH3+U+vfvLxUXFzc5BoB0222SdOWKRkUq7LXXXtO6BEXx\n9zM2M/9+Zv3dXn1VksaNc392eqO700dBQUFYvXo1UlJSEBsbiyeeeEL2yqMRI4DVqzUokIjIQIqL\ngXfeAVas8O143Z0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QgK++OKLJu//3nvv4Ze//OUN37Mxp9OJ6OhoTJs2Dffc\ncw8mTZqE3NxcDBkyBH369EFhYaFS/6rIgtgUyHKeffZZrFq1CgcPHsTSpUsxZ84cz/dKS0uRn5+P\nTz75BC+//DIA4OOPP8aZM2fw9ddf489//jP279/fJIHcfvvtOHToEJ577jm89dZbiIyMxOzZszFv\n3jwUFRXh/vvvb/L+16cXufe83smTJ/Hb3/4W33zzDY4fP45NmzYhPz8fb731FhYvXizqXw0RTx+R\ntVRUVGD//v0YP36857mamhoA7g/rhju3xsTE4OLFiwCAL774AhMmTAAAz14JjY0dOxYAkJiYiI8/\n/tjzvC93kGnpPa/Xs2dPzw3M+vbti+HDhwMA7HY7nE6n1/ch8hWbAlmKy+VCly5dUFRUJPv9kJAQ\nzz83fKhfv25w/Yd9u3btAACBgYGoq6trdU1y73m9hvcA3Ps2NLwmICCgTe9J1BKePiJL6dSpE3r2\n7Im//e1vANwfwl9++eUNXzNkyBB89NFHkCQJFy9exO7du72+T1hYmOdWzNfjPShJz9gUyNQqKysR\nERHh+Vq+fDk++OADrF+/HvHx8bDb7di6davn+Mbn+xv++fHHH0d4eDhiY2MxZcoUJCYmyu5va7PZ\nPK9JTU3Fli1bkJCQgPz8/BaPa+k95X52S4/Ndhtr0hZvnU3kg2vXrqFjx464fPkyBg0ahH379qFr\n165al0UkHNcUiHwwZswYlJWVoaamBgsWLGBDINNiUiAiIg+uKRARkQebAhERebApEBGRB5sCERF5\nsCkQEZEHmwIREXn8PyxvuFHYcXKeAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5701770>"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.9,Page No.748"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#LEngths\n",
+ "L_CB=3 #m\n",
+ "L_AC=6 #m\n",
+ "L= 9 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=10 #KN/m \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at pt A & B respectively\n",
+ "#R_A+R_B=w*L_AC\n",
+ "\n",
+ "#Taking Moment at pt A,M_A\n",
+ "R_B=w*L_AC*L_AC*2**-1*L**-1 #KN.m\n",
+ "R_A=w*L_AC-R_B #KN.m\n",
+ "\n",
+ "#Shear force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=V_B2 #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C-w*L_AC #KN\n",
+ "V_A2=V_C-w*L_AC+R_A #KN\n",
+ "\n",
+ "#Bending Moment calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*L_CB #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+w*L_AC*L_AC*2**-1 #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_CB,L_CB+L_AC,L_CB+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_C,M_A]\n",
+ "X2=[0,L_CB,L_CB+L_AC]\n",
+ "Z2=[0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH+pJREFUeJzt3XtU1HX+x/HXl4uWIF4RWoYaDhdhAGEUpcuygoKmLhRJ\nrNDFMLOTm7vuJbNT27JbCtbW0Sy3XVezi5vWkmEXWXAN74imaS4nRYW4iVsSKSIh8Pn9wY9vjDDM\nADPz/c7M63HOnJgb8z5qPPl+P9/vjCSEECAiIgLgovQARESkHowCERHJGAUiIpIxCkREJGMUiIhI\nxigQEZFMsShUV1cjISEB4eHhiIiIwCuvvAIAaGhoQFJSEkJCQjBjxgw0NjYqNSIRkdORlDpPob6+\nHvX19YiOjkZTUxMmTZqEDz/8EG+88QbGjh2LZcuWYdWqVfjuu++Qm5urxIhERE5HsS0FX19fREdH\nAwA8PT0RFhaG2tpabN++HfPnzwcAzJ8/Hx9++KFSIxIROR3FthS6q6ysxNSpU3Hy5EncfPPN+O67\n7wAAQgiMHj1avk5ERNal+EJzU1MT5s6dizVr1mD48OEG90mSBEmSFJqMiMj5uCn54teuXcPcuXPx\nwAMP4O677wYA+Pj4oL6+Hr6+vjh//jzGjRvX43mSFATgrI2nJSKyb4GBgThz5kyfj1FsS0EIgYcf\nfhg6nQ5Lly6Vb09JScGbb74JAHjzzTflWBg6CyGE6i5//OMfFZ/BHmZ6+uk/4s47BdLTBa5dU34e\ntf45qXEmtc7Fmcy7nD1r+pdpxaKwf/9+vPPOO/jss8+g1+uh1+tRUFCA5cuXo6ioCCEhIdi1axeW\nL1+u1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trK4DOt2LvevfYsLAwXLhwAQCwb98+pKen\nA4D8uQ/GDBkyBHPmzAEATJo0CUVFRT0ec+ONN2L9+vWIi4vDmjVrEBAQ0OfMxua6XkBAgPymdOHh\n4fJ79kdERKCysrLP1yAyhlEgh9bR0YGRI0fi2LFjvd4/ZMgQ+Wvx/8trkiQZfLaC6GPZzd3dXf7a\nxcUFbW1tvT7uxIkT8Pb2NvtDoXqb63pDhw41eO2u5/Q1B5EpXFMgh+bl5YWAgAD861//AtD5A/bE\niRN9PueOO+5AXl4ehBC4cOECdu/eLd83fPhwXLp0qV8zfP3113j55ZflD83p7bMR+goPkS0xCuRQ\nmpub4e/vL19Wr16NzZs3Y8OGDYiOjkZERAS2b98uP777p/l1fT137lxoNBrodDo88MADmDhxovx5\nxIsWLcKdd94pLzRf//zrPx1QCIGFCxfipZdegq+vLzZs2ICFCxfKu7CMPdfY19c/x9h1fkohDRQP\nSSXqxZUrV+Dh4YGLFy8iNjYWBw4cwLhx45Qei8jquKZA1Iuf//znaGxsRGtrK5599lkGgZwGtxSI\niEjGNQUiIpIxCkREJGMUiIhIxigQEZGMUSAiIhmjQEREsv8DoaXSfhUbnxsAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56f4bd0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVHX+B/D3AIOmoKZZGqMNCxgMgzxoYrnpuPIgGqWW\nJFSeMq3N426t7Z70dDD8Q9HU49OuPbipW+umpy0XrSRsFTXUBhUqwycUNhi0XF0UREPw/v7gx82R\nGWaYuTP3ztz36xzOgWFm7ierefu+3/ugEQRBABEREYAAuQcgIiLlYCgQEZGIoUBERCKGAhERiRgK\nREQkYigQEZFIkaFQWFiI6OhoREVFYenSpXKPQ0SkG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RJAMCzzz6Ll19+GaNGjUJERAQ+/vhjAG1Xdp09ezZiYmKQlpaGiRMnir8D\ngLVr12LYsGEYOnQoTp48ierqarzzzjtYuXIlEhMT8dVXX1ltf9OmTfjd737X6TZvVV1djejoaDz3\n3HO4//778dRTT6GoqAijRo3CkCFDUFpa6qk/KlIhhgKpzgsvvIC1a9fi8OHDWLZsGWbPni3+7vz5\n8ygpKcGnn36KefPmAQA++eQT/Oc//8Hx48fxwQcf4ODBg1YNpH///jhy5AheeuklLF++HHq9Hr/9\n7W8xd+5clJWV4de//rXV9m9vL7a2ebszZ87gj3/8I06cOIGTJ09i69atKCkpwfLly7F48WKp/miI\nuPuI1KWxsREHDx60usRyc3MzgLYP6/arycbExODHH38EAHz11VfIysoCAPE+ELeaMmUKACApKcnq\nxiXOXEHG3jZvFx4eLl6ALjY2Vrw+v9FoRHV1tcPtEDmLoUCqcvPmTfTp0wdlZWU2fx8cHCx+3/6h\nfvu6we0f9t26dQMABAYGoqWlpcsz2drm7dq3AbTdk6L9NQEBAS5tk8ge7j4iVenVqxfCw8Pxz3/+\nE0Dbh/C3337b6WtGjRqFjz/+GIIg4Mcff8TevXsdbic0NFS8/PXteA1KUjKGAvm1pqYmDBo0SPxa\ntWoVNm/ejPfeew8JCQkwGo3Yvn27+Pxb9/e3f//4449Dp9PBYDDgmWeeQVJSks37E2s0GvE1mZmZ\n2LZtGxITE1FSUmL3efa2aeu97f3MOxKSlHjpbCInXL16FT179sTFixeRnJyMAwcO4O6775Z7LCLJ\ncU2ByAmPPPII6uvr0dzcjAULFjAQyG+xKRARkYhrCkREJGIoEBGRiKFAREQihgIREYkYCkREJGIo\nEBGR6P8A/lDdpaaxqhoAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55199f0>"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.10,Page No.749"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_DB=3 #m\n",
+ "L_CD=4 #m\n",
+ "L_AC=1 #m\n",
+ "L=8 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=10 #KN/m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_CD\n",
+ "\n",
+ "#Taking moment at pt A,M_A\n",
+ "R_B=(w*L_CD*(L_CD*2**-1+L_AC))*L**-1 #KN\n",
+ "R_A=w*L_CD-R_B #KN\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D=V_B2 #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=-w*L_CD+R_B #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C #KN\n",
+ "V_A2=V_C+R_A\n",
+ "\n",
+ "\n",
+ "#Bending Moment calculations\n",
+ "\n",
+ "#B.A at pt B\n",
+ "M_B=0\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=-R_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_DB+L_CD)+w*L_CD*L_CD*2**-1 #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+w*L_CD*(L_CD*2**-1+L_AC) #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB+L_CD,L_AC+L_DB+L_CD,L_AC+L_DB+L_CD]\n",
+ "Y1=[V_B1,V_B2,V_D,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlHX+B/D3cM0biYagDHuGAOUiDYOoacccKyglzPuG\nXTE2j5xa29qs/Z02sVK0VpfW8mzbetnaUnOJg7XJousOSYVkYJaeLRQmQcDNCymiIfD9/UFMIDPM\nADPzfWbm/Tpnzpl55hme9yGbD9/n83y/j0oIIUBERATAS3YAIiJSDhYFIiIyYVEgIiITFgUiIjJh\nUSAiIhMWBSIiMpFaFJYsWYLg4GDEx8ebtmVnZ0OtVkOn00Gn06GwsFBiQiIizyK1KGRkZPT40lep\nVHjyySdRUVGBiooK3HXXXZLSERF5HqlFYdq0aQgMDOyxnfPpiIjkUGRPYePGjdBqtXjkkUfQ2Ngo\nOw4RkcdQXFFYtmwZqqurcfjwYYwePRpPPfWU7EhERB7DR3aAa40aNcr0PDMzE2lpaT32UakiAZxw\nYioiItcXERGB48eP97qP4kYK9fX1puf5+fndrkz62QkIIRT/WLlypfQ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7Az/66KO46667TI3maz9/7d0BhRDIzMzE+vXrERISgs2bNyMzM9N0\nCsvSZy09v/Yzll7zLoXUX7wklciMS5cuYciQITh79iwmT56MTz/9FKNGjZIdi8jh2FMgMuPuu+9G\nY2MjWlpa8Pzzz7MgkMfgSIGIiEzYUyAiIhMWBSIiMmFRICIiExYFIiIyYVEgIiITFgUiIjL5f0On\nBTiz74A2AAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55d83d0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlcVPX6B/DPsGimhrjkwqgg4mUVRs0lS8erpKiUWpJQ\n125q3rK6pba4/CTzFeBapmWZN7W6XjNTLuJFhUpcU0xwJXemEKRyIUE0BM7vj69MIAMMzGHOmZnP\n+/XidWGWc568Og/f7Xk0kiRJICIiAuCkdABERKQeTApERGTEpEBEREZMCkREZMSkQERERkwKRERk\npMqksH37dvj6+sLHxwcLFixQOhwiIoehUds5hdLSUvzlL3/BN998Aw8PDzzwwANYv349/Pz8lA6N\niMjuqW6kkJaWhq5du8LT0xOurq4YN24cEhISlA6LiMghqC4p5OTkoGPHjsaftVotcnJyFIyIiMhx\nqC4paDQapUMgInJYLkoHcDcPDw9kZ2cbf87OzoZWq630mvvu64qCgvPWDo2IyKZ5e3vj3LlzNb9I\nUpnbt29LXbp0kbKysqQ//vhDCg4OljIzMyu9BoDUqpUknTunUJBmeuutt5QOwSyMU16MU162EKfa\nYywpkaT27cVnZ21UN33k4uKCDz74AEOHDoW/vz+efPJJkzuPpk0DZsxQIEAiIhuzdy9w//3mvVZ1\n00cAEBYWhrCwsBpfM3Uq4Osr/mMfeshKgRER2aCvvgIiIoCjR2t/repGCuZq0gSIixMjhrIypaMx\nTa/XKx2CWRinvBinvGw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mQXSsqKkLHjh2NX0uXLsW6devw6aefIiQkBIGB\ngdiyZYvx9RXn+8u/f/zxx6HVauHv74+//e1v6NGjh8l+wRqNxvie8PBwxMfHQ6fTYd++fdW+rrp7\nmrp2dT+zIyHJiaWzicxw48YNNG3aFFeuXEGfPn2wf/9+3H///UqHRSQ7rikQmWHkyJHIz89HcXEx\noqOjmRDIbnGkQERERlxTICIiIyYFIiIyYlIgIiIjJgUiIjJiUiAiIiMmBSIiMvp/4uGCP9tYDn8A\nAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57197d0>"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.11,Page No.751"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_DB=2 #m \n",
+ "L_CD=2 #m\n",
+ "L_AC=3 #m\n",
+ "L=7 #m\n",
+ "\n",
+ "#Loads\n",
+ "w1=5 #KN/m\n",
+ "w2=10 #KN/m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_AC+w*L_DB\n",
+ "\n",
+ "#Taking moment at pt A,M_A\n",
+ "R_B=(w1*L_DB*(L_DB*2**-1+L_CD+L_AC)+w2*L_AC*L_AC*2**-1)*L**-1 #KN\n",
+ "R_A=(w1*L_DB+w2*L_AC)-R_B\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D=R_B-w1*L_DB #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=V_D #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C-w2*L_AC #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=w1*L_DB*L_DB*2**-1-R_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_CD+L_DB)+w1*L_DB*(L_DB*2**-1+L_CD) #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+w1*L_DB*(L_DB*2**-1+L_CD+L_AC)+w2*L_AC*L_AC*2**-1 #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB,L_AC+L_CD+L_DB]\n",
+ "Y1=[V_B1,V_B2,V_D,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_CD+L_DB,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgA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IbIlDgRzK9evXERAQoP/atGkT3nvvPWzduhXDhw/H\n0KFDsW/fPv3rWy5Brbs9Z84c+Pv7IyIiAosWLcKIESP0n8f7wAMPYNq0afoTzTe//+YlrSVJwrJl\ny/Diiy/C19cXW7duxbJly/SHsAy919Dtm99j6L7cltYm+8FKKlE7rl27hp49e+LixYsYM2YMvvzy\nS3h7e4uORWR1PKdA1I4//elPqK2tRUNDA9auXcuBQE6DewpERKTHcwpERKTHoUBERHocCkREpMeh\nQEREehwKRESkx6FARER6/w+KE6mW6PFKAgAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55f7310>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVHX+B/D3gGAlpKamraOLIQUIwQCJrqXjKpoP+JRP\naFmmruVpt9L1rG1HfOjgwxo/NUsl0zy7az6UsmgmQa6YoCwoeNIMfAIDfEjtoALaKNzfH1cmEIa5\nzNyZe+/M+3UO58gww/3okfnw/d7PfV+dIAgCiIiIAHgoXQAREakHmwIREZmxKRARkRmbAhERmbEp\nEBGRGZsCERGZqbIppKamIjAwEAEBAVi+fLnS5RARuQ2d2q5TqK6uxtNPP41vv/0WnTt3xrPPPout\nW7ciKChI6dKIiFye6lYKOTk56N69O/z8/ODl5YWJEyciJSVF6bKIiNyC6ppCWVkZunTpYv5cr9ej\nrKxMwYqIiNyH6pqCTqdTugQiIrfVQukCHtS5c2eUlJSYPy8pKYFer6/3nDZtuuPGjXPOLo2ISNP8\n/f1x9uzZpp8kqMzdu3eFJ598UigqKhJ+/fVXISwsTDh16lS95wAQunUThH37FCrSTgsWLFC6BLuw\nfmWxfuVotfZ33hGEl14S3zutUd32UYsWLfDRRx9h8ODBCA4OxoQJExqdPEpKAl5/HaioUKBIIiKN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ow///nPTR6zruLiYgQGBmLq1Kl4+umnMXnyZKSlpaFPnz546qmnkJub66h/\nKnJDbArkdv70pz9hzZo1OHr0KFasWIFZs2aZv3b58mVkZWXhq6++wrx58wAAu3btwoULF/Djjz/i\nX//6F44cOVJvBdKhQwccO3YMb7zxBj744AP4+fnh9ddfx+zZs5Gfn4/nnnuu3vEfXL00dswHnTt3\nDn/9619RUFCAwsJCbN++HVlZWfjggw+wZMkSuf5piLh9RO6loqICR44cqRcdbDKZAIhv1rXJr0FB\nQbhy5QoAIDMzE+PHjwcA830Y6hozZgwAICIiArt27TI/LiVBxtIxH9StWzdzAFuPHj0wcOBAAEBI\nSAiKi4utHodIKjYFcis1NTVo06YN8vPzG/26t7e3+c+1b+oPnjd48M2+ZcuWAABPT0/cu3ev2TU1\ndswH1R4DEO8JUfsaDw8Pm45JZAm3j8itPProo+jWrRu+/PJLAOKb8Pfff9/ka/r06YOdO3dCEARc\nuXIFBw8etHocX19fc1T0g5hBSWrGpkAuraqqCl26dDF/rFq1Clu2bMHGjRsRHh6OkJAQ7N692/z8\nuvv9tX9+8cUXodfrERwcjJdffhkRERGN3p9Xp9OZXxMbG4vk5GQYDAZkZWVZfJ6lYzb2vS19rrUY\nbVI3RmcTSVBZWYlWrVrh+vXriI6OxuHDh/H4448rXRaR7HhOgUiC4cOHo7y8HCaTCfHx8WwI5LK4\nUiAiIjOeUyAiIjM2BSIiMmNTICIiMzYFIiIyY1MgIiIzNgUiIjL7f0i7ek82GvVsAAAAAElFTkSu\nQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x581bcf0>"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.12,Page No.752"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_DB=4 #m\n",
+ "L_CD=4 #m\n",
+ "L_AC=2 #m\n",
+ "L=10 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_D=40 #KN\n",
+ "F_C=50 #KN\n",
+ "w=10 #KN/m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_CD+F_C+F_D\n",
+ "\n",
+ "#Taking moment at pt A,M_A\n",
+ "R_B=(F_C*L_AC+w*L_CD*(L_CD*2**-1+L_AC)+F_D*(L_CD+L_AC))*L**-1 #KN\n",
+ "R_A=(w*L_CD+F_C+F_D)-R_B #KN\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=V_B2 #KN\n",
+ "V_D2=V_B2-F_D #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=V_D2-w*L_CD #KN\n",
+ "V_C2=V_C1-F_C #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C2 #KN\n",
+ "V_A2=V_C2+R_A #KN\n",
+ "\n",
+ "#Bending Moment calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=-R_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_DB+L_CD)+F_D*L_CD+w*L_CD*L_CD*2**-1 #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+F_D*(L_CD+L_AC)+F_C*L_AC+w*L_CD*(L_CD*2**-1+L_AC)\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB,L_DB+L_CD,L_DB+L_CD,L_DB+L_CD+L_AC,L_DB+L_CD+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVGXiB/DvIIOlSGoquIwbxoswkILvWhaIgxsFi4ps\naIUY2cbWWm2ZvZyWthTMLF/Kdu2okesmGv2CzFgxmpKTCC1sbmKCOtTwIrkiuuYLAs/vj4kR5MKI\nMvMwzPdzzpxm7syd+Z45Nl/uc+9zr0oIIUBERHQFJ9kBiIioZ2JBEBGRIhYEEREpYkEQEZEiFgQR\nESliQRARkSKpBVFfX4/Y2FgEBARAq9Vi//79qKurg06ng5+fHyIiIlBfXy8zIhGRw5JaEIsXL0Zk\nZCQOHTqEAwcOwN/fH2lpadDpdCgrK0N4eDjS0tJkRiQiclgqWRPlTp8+jZCQEBw7dqzNcn9/f3z5\n5Zdwd3fH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wsCOpVzp07hxEjRphvq1evxtatW7Fx40YE\nBwcjKCgI2dnZ5te3vqJWy/05c+ZAo9FAq9XigQcewNixY83XdV60aBF+85vfmHdSX7n+lVfoEkIg\nKSkJq1atgoeHBzZu3IikpCTzMFdH63Z0/8p1OnrMqy9Sd+BhrkQKfv75Z/Tv3x8nT57EpEmT8PXX\nX1u8+hZRb8N9EEQK7r33XtTX16OhoQEvvfQSy4EcErcgiIhIEfdBEBGRIhYEEREpYkEQEZEiFgQR\nESliQRARkSIWBBERKfp/qsHjWC7FrDIAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55f0c30>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAY8AAAEPCAYAAAC6Kkg/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVHX+B/D3gGAlmD2qMbqwMsRjAhqYlmGKhA+Elo+Z\npUmtbhut7VqdPZntOYpudnwqjtZquq6WxwzRUjJ/K5YooKKrCRlaUzigtbYoBCyB8/tjYrwg4zzd\nO/fp/TqHc2Rg5n6ak/P2ez/3c78Gq9VqBRERkRv85C6AiIjUh+FBRERuY3gQEZHbGB5EROQ2hgcR\nEbmN4UFERG5TXXgUFBQgMjISJpMJS5YskbscIiJdMqhpzqO1tRV333039u7di5CQENx77714//33\nERUVJXdpRES6oqqVR2lpKcLDwxEaGoqAgABMnjwZ+fn5cpdFRKQ7qgoPi8WCPn362L83Go2wWCwy\nVkREpE+qCg+DwSB3CUREBKCL3AW4IyQkBFVVVfbvq6qqYDQa2/2Ov384rlw56+vSiIhUrV+/fjhz\n5ozLv6+qlcfAgQNRWVkJs9mM5uZmbNmyBRkZGe1+58qVs8jOtsJq5ddrr70mew1K+eJ7wfeC70Xn\nX7NmWbFkiRVnz7r3j25VhUeXLl3w1ltvIS0tDdHR0Zg0aVKnV1pt3gycOCFDgURE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Dh9qtaO644w4cPXoUs2fPxtKlSxEaGorf/e53mDt3\nLo4dO4b777+/3fE7roY6O2ZHZ8+exZ/+9Cd89dVXOH36NLZs2YKioiIsXboUixYtEuutIWqHp62I\nflVfX49Dhw5hwoQJ9seam5sB2D7U224WFxUVZd/v4MCBA5g4cSIA251Jhw0b1u41x48fDwBITEzE\nRx99ZH/clbsCOTpmR2FhYfabHMbExNj3poiNjYXZbHZ6HCJPMDyIfnXlyhX06NEDx44d6/TngYGB\n9j+3ffh37Gt0DIWuXbsCAPz9/dHS0uJ2TZ0ds6O2YwCAn5+f/Tl+fn4eHZPIFTxtRfSr7t27Iyws\nDB9++CEA24f1iRMnrvucIUOGYNu2bbBarbhw4QL279/v9DjBwcGoq6vr9Ge8TympBcODdKuhoQF9\n+vSxfy1fvhybNm3C2rVrER8fj9jYWOzYscP++8J+RNufH330URiNRkRHR+OJJ55AYmJip3uDC3dn\nGzt2LPLy8pCQkICioiKHv+fomJ29tqPvucsmSYW3ZCfy0s8//4xu3brh4sWLSE5OxsGDB13aiY1I\nzdjzIPLSmDFjUFtbi+bmZsyfP5/BQbrAlQcREbmNPQ8iInIbw4OIiNzG8CAiIrcxPIiIyG0MDyIi\nchvDg4iI3Pb/RhPU7IsV5i8AAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x581db70>"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.13,Page No.758"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=5 #m #Length of AB\n",
+ "F_1=800 #N u.d.l\n",
+ "F_2=1600 #N u.v.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Load on beam due to u.d.l of 800 N/m\n",
+ "w1=F_1*L_AB #N\n",
+ "\n",
+ "#Load on beam due to triangular Loading\n",
+ "w2=F_1*L_AB*2**-1 #N\n",
+ "\n",
+ "#Calculation of reactions R_A & R_B\n",
+ "#Taking moment about A,we get\n",
+ "#R_B=w1*L_AB*2**-1+w2**(2*5**-1of5)\n",
+ "#After further simplifying we get\n",
+ "R_B=2000+1333.33 #N\n",
+ "R_A=(w1+w2)-R_B #N\n",
+ "\n",
+ "#Consider any section X-X at a distance x from A.\n",
+ "#Rate of Loading at the section X-X\n",
+ "#w_x=800+160*x\n",
+ "\n",
+ "#Total Load on length AX\n",
+ "#W=800*x+80*x**2\n",
+ "\n",
+ "#Now the S.F at the section X-X is given by,\n",
+ "#F_x=R_A-Load on length AX\n",
+ "#After sub values and further simplifying we get\n",
+ "#F_x=2666.67-800*x-80*x**2 ............................(1)\n",
+ "\n",
+ "#Equation 1 shows that shear force between A & B \n",
+ "#At A\n",
+ "x=0\n",
+ "F_x1=F_x=2666.67-800*x-80*x**2 #N\n",
+ "\n",
+ "#At B\n",
+ "x=5\n",
+ "F_x2=F_x=2666.67-800*x-80*x**2 #N\n",
+ "\n",
+ "#Finding the position of zero shear.Equating S.F equal to zero in eqn(1)\n",
+ "#0=2666.67-800*x-80*x**2\n",
+ "#Further simplifying we get\n",
+ "#x**2+10*x-33.33=0\n",
+ "a=1\n",
+ "b=10\n",
+ "c=-33.33\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "\n",
+ "x1=(-b+X**0.5)*(2*a)**-1 #m\n",
+ "x2=(-b-X**0.5)*(2*a)**-1 #m\n",
+ "\n",
+ "#B.M Diagram\n",
+ "#B.M at the section X-X is given by\n",
+ "#M_x=R_A*x-800*x**2*2**-1-x**3*80*3**-1\n",
+ "#Further simplifyng we get\n",
+ "#M_x=2666.67*x-400*x**2-80*3**-1*x**3 ............2\n",
+ "\n",
+ "#Equation 2 shows that B.M between A & B varies \n",
+ "#At A\n",
+ "x=0\n",
+ "M_x1=2666.67*x-400*x**2-80*3**-1*x**3 #KN/m\n",
+ "\n",
+ "#At B\n",
+ "x=5\n",
+ "M_x2=2666.67*x-400*x**2-80*3**-1*x**3 #KN/m\n",
+ "\n",
+ "#value of M_X2 is very small .i.e equal to zero\n",
+ "#MAx B.M occurs where S.F is zero.\n",
+ "#But shear force is zero at distance of 2.637m from A.\n",
+ "#hence max B.M is Obtained by sub \n",
+ "x=2.637 #m\n",
+ "M_x=2666.67*x-400*x**2-80*3**-1*x**3\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_AB]\n",
+ "Y1=[F_x1,F_x2]\n",
+ "Z1=[0,0,]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_x1,M_x2]\n",
+ "X2=[0,L_AB]\n",
+ "Z2=[0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZIAAAEPCAYAAABoekJnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X9wVPW9//FnIAGLEASERHepyyQL+UEgEQmoRQNpQKBE\nLBgaWwgIpYWpou21aOv1wlwhaNUrKNyZdoKm9EdQsCS3t+YGldxqC6nG+NWaW100wWTzowoFQQIh\nyef7R8qakIQEdrNnk309ZnZm9+ye3ffZgX3nnNf5fE6IMcYgIiJymQZYXYCIiPRtaiQiIuIVNRIR\nEfGKGomIiHhFjURERLyiRiIiIl6xrJGcOXOGadOmkZiYSFxcHA899BAAx44dIy0tjfHjxzN79myO\nHz/uWSc7Ox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9NA0N\nDT7/vP/6r/8K6ssiSODQOBIJesOGDfOM4O0N48aN46233mLUqFF++TwRf9MeiUgnPvroI+bOncsN\nN9zALbfcwgcffADA8uXLWbduHTfffDNRUVHs3bsXaJ09d+3atcTGxjJ79mzmz5/P3r17eeaZZ6ip\nqWHmzJntRos//PDDJCYmcuONN/L3v/+9w+ffd999/Pu//zsA//M//8Ott97a4TXPP/8899xzz0Xr\naquyspKYmBhWrFjBhAkT+Pa3v01RURE333wz48eP58033/T+i5PgZESC3NChQzssmzVrlnG5XMYY\nYw4dOmRmzZpljDEmKyvLZGRkGGOMKS8vN9HR0cYYY1588UUzb948Y4wxdXV1ZsSIEWbv3r3GGGMc\nDoc5evSo571DQkLM73//e2OMMT/+8Y/No48+2uHzT58+beLj481rr71mJkyYYD7++OMOr3n++efN\nD37wg4vW1VZFRYUJDQ01f/3rX01LS4uZMmWKufvuu40xxuTn55uFCxd2+12JdCbU6kYmEmhOnTrF\nwYMHufPOOz3LGhsbgdb5l87PFBwbG0t9fT0Ab7zxBhkZGQCea3p0ZdCgQcyfPx+AKVOmsH///g6v\n+cpXvsIvfvELZsyYwdatWxk3btxFa+6qrguNGzeO+Ph4AOLj4/n6178OwMSJE6msrLzoZ4h0RY1E\n5AItLS1cddVVlJWVdfr8oEGDPPfNPyPGkJCQdtewMBeJHsPCwjz3BwwYQFNTU6eve/fddxk9enSP\nL8TWWV0XGjx4cLvPPr/OxeoQ6Y4yEpELhIeHM27cOPbs2QO0/ii/++67F13n5ptvZu/evRhjqK+v\n53//9389zw0bNozPP//8kmo4cuQITz31lOeiQp1dB+JizUrEn9RIJOidPn2asWPHem5PP/00v/71\nr8nJySExMZGJEydSUFDgeX3b6cXP31+0aBF2u524uDiWLl3K9ddfz/DhwwFYvXo1t912mydsv3D9\nC6crN8awatUqnnzySSIjI8nJyWHVqlWew2tdrdvV/QvX6epxsE+bLpdPp/+K+MgXX3zBlVdeydGj\nR5k2bRp//vOfGTNmjNVlifQ6ZSQiPvKNb3yD48eP09jYyCOPPKImIkFDeyQiIuIVZSQiIuIVNRIR\nEfGKGomIiHhFjURERLyiRiIiIl5RIxEREa/8f37S3KSpeHiTAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55e3f10>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEPCAYAAABV6CMBAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtYlGX++PH3GFCeUrcUk8FQBgNEBwKlMhNLJbHILA3b\nisTKrycsd8uszdV2K1ktS6k8lJZbP3N33V1IkfWQaJmIKaWGl6FCDaNoIXgiGQ7374+nJlFgZpTh\n4fB5XZfXxQz3/cznmd2eD/fZoJRSCCGEEE5qpXcAQgghmhZJHEIIIVwiiUMIIYRLJHEIIYRwiSQO\nIYQQLpHEIYQQwiVuTRzp6ekEBgYSEBBAUlJSjWUSExMJCAjAbDaTnZ1tfz8hIQFvb2/69OlTrXxW\nVhb9+/cnLCyMfv36sWvXLnfeghBCiIspN6moqFD+/v4qLy9P2Ww2ZTabVU5OTrUy69atU8OHD1dK\nKZWZmakiIyPtv9u2bZvas2ePCgkJqVZn0KBBKj09XSmlVFpamoqKinLXLQghhKiB21ocWVlZmEwm\n/Pz88PT0JC4ujpSUlGplUlNTiY+PByAyMpKSkhIKCwsBGDhwIJ06dbrkujfccAOnTp0CoKSkBB8f\nH3fdghBCiBp4uOvCVqsVX19f+2uj0cjOnTsdlrFarXTt2rXW686dO5fbb7+dP/7xj1RVVbFjx476\nD14IIUSt3NbiMBgMTpVTF+144qje+PHjWbhwIT/88AMLFiwgISHhsmMUQgjhOre1OHx8fLBYLPbX\nFosFo9FYZ5mCggKHXU9ZWVls2rQJgAcffJAnnniixnImk4nDhw9fbvhCCNEi+fv7c+jQoTrLuK3F\nERERQW5uLvn5+dhsNlavXk1sbGy1MrGxsaxcuRKAzMx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4SFVV\nFR07diQ7O7vG33t5edl/Vr8MERoMhmpnOqg6hg49PT3tP7dq1YqKigqHMdX0mRe7+uqrq1331zrO\nfoYQzpIxDiEucu2119KjRw/+9a9/AdqDeu/evXXWGTBgAGvWrEEpxfHjx9m6dav9d+3bt+f06dMu\nxVBX4hFCb5I4RItXWlqKr6+v/d+bb77Jxx9/zPvvv09oaCghISGkpqbay1+4/favPz/wwAMYjUaC\ng4N59NFHufnmm+nQoQMATz31FHfffbd9cPzi+jVt533x+7X9fHGd2l635C3DRf2T6bhC1JNz587R\ntm1bioqKiIyM5Msvv6RLly56hyVEvZMxDiHqyT333ENJSQk2m41Zs2ZJ0hDNlrQ4hBBCuETGOIQQ\nQrhEEocQQgiXSOIQQgjhEkkcQgghXCKJQwghhEskcQghhHDJ/wcRmkK256W7NwAAAABJRU5ErkJg\ngg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x581d150>"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.14,Page No.760"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=4 #m\n",
+ "L_BC=2 #m\n",
+ "L=6 #m\n",
+ "w=2 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L\n",
+ " \n",
+ "#Taking Moment at A,M_A\n",
+ "R_B=(w*L*L*2**-1)*L_AB**-1 #KN\n",
+ "R_A=w*L-R_B #KN\n",
+ "\n",
+ "#Shear Force calculations \n",
+ "\n",
+ "#S.f at pt C\n",
+ "V_C=0\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=-w*L_BC #KN\n",
+ "V_B2=V_B1+R_B #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_B2-w*L_AB #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=0 #KN.m\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=w*L_BC #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=w*L*L*2**-1-R_B*L_AB #KN.m\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_BC,L_BC,L_BC+L_AB,L_BC+L_AB]\n",
+ "Y1=[V_C,V_B1,V_B2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_C,M_B,M_A]\n",
+ "X2=[0,L_BC,L_BC+L_AB]\n",
+ "Z2=[0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEPCAYAAACqZsSmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUVOXeB/DvgHjDe6KY8B44XhKQGEAj9aUGEQkVg8CS\nTAsjWvpqJy1bebrhsTAjKrXOqePSvGTZ6VBhpqQ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"<matplotlib.figure.Figure at 0x581a470>"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.15,Page No.762"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=4 #m\n",
+ "L_BC=2 #m\n",
+ "L=6 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=2 #KN/m\n",
+ "F_C=2 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L+F_C\n",
+ " \n",
+ "#Taking Moment at A,M_A\n",
+ "R_B=(F_C*L+w*L*L*2**-1)*L_AB**-1 #KN\n",
+ "R_A=(w*L+F_C)-R_B #KN\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=0 #KN\n",
+ "V_C2=F_C #KN\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=-w*L_BC-F_C #KN\n",
+ "V_B2=V_B1+R_B #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_B2-w*L_AB #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=0 #KN.m\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=w*L_BC*L_BC*2**-1+F_C*L_BC #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_C*L+w*L*L*2**-1-R_B*L_AB #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print\"The Shear Force and Bending Moment are the Results\"\n",
+ "\n",
+ "#Plotting Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BC,L_BC,L_BC+L_AB,L_AB+L_BC]\n",
+ "Y1=[V_C1,V_C2,V_B1,V_B2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Shear Force in KN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#plotting the Bending Moment Diagram\n",
+ "\n",
+ "X2=[0,L_BC,L_BC+L_AB]\n",
+ "Y2=[M_C,M_B,M_A]\n",
+ "Z2=[0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in KN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment are the Results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEPCAYAAACqZsSmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHfhJREFUeJzt3XtUVXXaB/DvQS4laGlqNMI7uPDGRTlHVCqn8WDiJcNE\n0SLKwss0unSqyclly7csb6mjY2prZk3LdMymnGA1oJmhGYq31AGHMdcoKswCETMdVFTi9nv/IM8L\nwuEcOHuf3758P2udJedwDvtBW9/28+zf3tsihBAgIiJT8ZFdABEReR/Dn4jIhBj+REQmxPAnIjIh\nhj8RkQkx/ImITEhq+FdUVCA5ORkRERGIjIzEkSNHZJZDRGQavjI3/vLLL+OJJ55Aeno6amtrcfPm\nTZnlEBGZhkXWSV7Xrl2DzWbD+fPnZWyeiMjUpI19ioqK0L17d6SlpWHQoEGYOXMmbt26JascIiJT\nkRb+tbW1yMvLw+zZs5GXl4fAwEC8++67ssohIjIXIcnFixdFWFiY43lubq4YN25ck/eEh4cLAHzw\nwQcffLThER4e7jKDpe35BwcHIzQ0FG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s8//zwGDRrkuP/pr371K4wZM8ZxwPfuz7d06eO7\nX3f29d2fcfbcaJdXJrm41JOokZs3byIwMBBXrlxBXFwcDh06hB49esgui0hxnPkTNfLkk0+ioqIC\n1dXVePPNNxn8ZFjc8yciMiHO/ImITIjhT0RkQgx/IiITYvgTEZkQw5+IyIQY/kREJvR/OjiavlB8\naVwAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x570da70>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEPCAYAAAC5sYRSAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlwlPX9B/D3JgQkJISjHEqCYUKRXJgLEBCynBEhAkK4\nAkQgyNSBCsVaaR0JtjUwiuVQZirDoUiF0UzlEgq0LDfDkSBgKEjItuFGbCAkgWWT5/dHflk2sMle\nz/28XzM7kyy7z/ezwnx8z2e/z/OYBEEQQEREuhKgdAFERCQ+NnciIh1icyci0iE2dyIiHWJzJyLS\nITZ3IiIdkrS55+bmIjY2FvHx8Zg4cSIePHgg5XJERPT/JGvuVqsVq1atQn5+Ps6cOYOqqips3LhR\nquWIiMhJI6kO3Lx5cwQFBaGiogKBgYGoqKhAhw4dpFqOiIicSJbcW7VqhXnz5qFjx4545pln0KJF\nCwwaNEiq5YiIyIlkzb2oqAhLly6F1WrF1atXce/ePWzYsEGq5YiIyIlkY5kTJ06gd+/eaN26NQDg\n1VdfxeHDh5GZmel4TefOnVFUVCRVCUREuhQVFYWLFy82+BrJknvXrl1x9OhRVFZWQhAE7NmzBzEx\nMXVeU1RUBEEQdPtYsGCB4jVI8fj0UwEvvyzg3XcX4JVXBIwcKeDBA+Xr4t8fP58RPpsgCB6FYsma\n+/PPP48pU6YgJSUF3bp1AwC8/vrrUi1HMnnwAMjNBRYsAAIDga+/BqqrgXHjAJtN6eqIqJak+9zf\nfvtt/PDDD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<matplotlib.figure.Figure at 0x5527cd0>"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.16,Page No.763"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_BD=L_CA=2 #m\n",
+ "L_AB=8 #m\n",
+ "L=12 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_D=F_C=1000 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_b be the reactions at A & B respectively\n",
+ "#As the Load on the beam is symmetrical,R_A and R_B will be equal\n",
+ "#Their magnitude will be half of the total Load\n",
+ "\n",
+ "R_A=R_B=(F_C+F_D)*2**-1 #N\n",
+ "\n",
+ "#Shear force calculations\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=0 #N\n",
+ "V_D2=-F_D #N\n",
+ "\n",
+ "#s.F at pt B\n",
+ "V_B1=V_D2 #N\n",
+ "V_B2=V_B1+R_B #N\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_B2 #N\n",
+ "V_A2=V_A1+R_A #N\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=V_A2 #N\n",
+ "V_C2=V_C1-F_C\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=0 #KN.m\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=F_D*L_BD #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_D*(L_BD+L_AB)-R_B*L_AB #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=F_D*L-R_B*(L_AB+L_CA)-R_A*L_CA #KN.m\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"The Shear Force And Bending Moment diagrams are the Results\"\n",
+ "\n",
+ "#plotting Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BD,L_BD,L_BD+L_AB,L_BD+L_AB,L_CA+L_BD+L_AB,L_CA+L_BD+L_AB]\n",
+ "Y1=[V_D1,V_D2,V_B1,V_B2,V_A1,V_A2,V_C1,V_C2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Shear force in N\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting Bending Moment diagram\n",
+ "\n",
+ "X2=[0,L_BD,L_BD+L_AB,L_CA+L_AB+L_BD]\n",
+ "Y2=[M_D,M_B,M_A,M_C]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in N.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force And Bending Moment diagrams are the Results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZUAAAEPCAYAAACKplkeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG3ZJREFUeJzt3X1QlXX+//HXUdAmja83Kdg5tjhyCA4iIkRtjaXRITNj\nDFsSK/Gm2oGx3Gw2m9ptNSttamYtjZmdhkZq3KRyE3KKIWupVhNL7WajiRMLxZ3sFkur6Urg9fvD\nn2fl9oh+DgcOz8eMM+d8znXz/jh6XudzXdfnumyWZVkCAMCAYYEuAAAQPAgVAIAxhAoAwBhCBQBg\nDKECADCGUAEAGBPQUFm+fLnCw8MVHx/vbWtubpbb7VZ0dLTS0tLU0tLi/WzDhg1yOp2KiYlRaWmp\nt/3AgQOKj4+X0+nUqlWr+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TpwY4IrM27p1q956662z+lEQ9KGSnJwsj8ejmpoatba2qrCwUOnp6YEuyxjLsrRi\nxQq5XC795je/CXQ5Rj355JOqra1VdXW1tm/fruuuu04vvfRSoMsyJiIiQpMnT1ZlZaUkaffu3YqL\niwtwVebExMRo3759On78uCzL0u7du+VyuQJdlnGnJ2BLUkFBQVD9sJNOXT379NNPq6ioSBdccIHv\nFawh4K233rKio6OtqVOnWk8++WSgyzHqww8/tGw2m5WQkGDNmDHDmjFjhvX2228HuizjysrKrJtv\nvjnQZRj36aefWsnJydb06dOtW265xWppaQl0SUY99dRTlsvlsqZNm2YtWbLEam1tDXRJ52XRokXW\npEmTrNDQUMvhcFgvvvii9cMPP1ipqamW0+m03G639e9//zvQZZ6zzv3Lz8+3oqKirEsvvdT7/ZKT\nk9PrNpj8CAAwJugPfwEA+g+hAgAwhlABABhDqAAAjCFUAADGECoAAGMIFaATf9/mZtOmTTp+/Hif\n9vfmm28G3WMbEJyYpwJ0ctFFF+nIkSN+2/6UKVP0ySefaPz48f2yP6A/MVIBzkJVVZVuvPFGJScn\n65prrtHXX38tSVq6dKlWrVqlq6++WlOnTtWOHTskSSdPnlRubq5iY2OVlpamm266STt27NDmzZvV\n0NCgOXPmKDU11bv93/3ud5oxY4Z++ctf6p///GeX/W/dulX33ntvr/s8U01NjWJiYrRs2TJddtll\nuv3221VaWqqrr75a0dHR+vjjj/3x1wQMjdu0AH0xevToLm3XXXed5fF4LMuyrH379lnXXXedZVmW\nlZ2dbWVmZlqWZVkVFRVWVFSUZVmW9dprr1nz5s2zLMuyDh8+bI0dO9basWOHZVmWFRkZaf3www/e\nbdtsNmvXrl2WZVnWgw8+aD3++ONd9r9161Zr5cqVve7zTNXV1VZISIj197//3Tp58qSVlJRkLV++\n3LIsyyoqKrIWLFjQ178W4KyEBDrUgIHu6NGj+uijj/SrX/3K29ba2irp1K3OT99AMDY21vssjb/9\n7W/KzMyUdOoutnPmzOlx+yNGjNBNN90kSUpKStI777zTaz097bOzKVOmeG9QGRcX532WybRp01RT\nU9PrPoBzRagAPpw8eVJjxozRoUOHuv18xIgR3tfW/z9FabPZOjwDxurl1GVoaKj39bBhw9TW1uaz\npu722dnIkSM7bPf0Ome7D+BccE4F8CEsLExTpkzR66+/LunUl/jnn3/e6zpXX321duzYIcuy1NTU\npPfff9/72UUXXaT//Oc/faqht1ACBhJCBejk2LFjmjx5svfPpk2btG3bNuXn52vGjBmaNm2aiouL\nvcuf+aS/068XLlwoh8Mhl8ulO++8UzNnzvQ+f/6ee+7R3LlzvSfqO6/f3ZMDO7f39LrzOj29D9an\nEyLwuKQY8JOffvpJo0aN0g8//KArrrhCe/fuDcqnAgJn4pwK4Cfz589XS0uLWltb9eijjxIoGBIY\nqQAAjOGcCgDAGEIFAGAMoQIAMIZQAQAYQ6gAAIwhVAAAxvw/2KE4YPjud6gAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55f8150>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAY0AAAEPCAYAAAC+35gCAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVHX+B/D3KAOVYJrFYIwuLA/BAAXIopuVKIJKSphK\nPqSo1ZYeS9d+u1lnc9VTgbWa2sae6mBS2wlrPQn2wFK7oqX5CJaJBbmy8SSihoLgEnJ/f0zeQIEZ\n4N65T+/XOXMOXmbmfqazO2/u93O/369JEAQBRERETuindAFERKQdDA0iInIaQ4OIiJzG0CAiIqcx\nNIiIyGkMDSIicppsoVFRUYGxY8ciLCwM4eHh2LRpEwDg3LlzSEhIQHBwMBITE1FfXy++Jj09HUFB\nQQgJCUFBQYF4/PDhw4iIiEBQUBCWLl0qV8lEROSAbKFhNpvx8ssv49ixY9i3bx9effVVHD9+HBkZ\nGUhISEBpaSni4+ORkZEBACgpKcHWrVtRUlKC/Px8LF68GFemkCxatAhZWVkoKyt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jf/31192+ZvTo0di2bRsEQUBtbS127dol/s7LywsXLlzoUQ3dhQ6RmjA0yHCampowbNgw\n8bFhwwa88847yMrKQmRkJMLDw5GXlyc+v/1ObVd+njZtGqxWK2w2G+bOnYvo6Ghx/+/f/e53mDhx\notgIv/r1ne38dvXxrn6++jVd/Vuvu8uR8njLLVEvXbx4EQMGDMDZs2cxcuRI7N27V5e7uhG1x54G\nUS9NnjwZ9fX1aGlpwcqVKxkYZAi80iAiIqexp0FERE5jaBARkdMYGkRE5DSGBhEROY2hQURETmNo\nEBGR0/4fEsvDXVDtsKwAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55da4f0>"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.17,Page No.765"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_BE=2 #m\n",
+ "L_DB=L_CA=3 #m\n",
+ "L_AD=5 #m\n",
+ "L_AB=8 #m\n",
+ "L=13 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_E=1000 #N\n",
+ "F_C=800 #N\n",
+ "F_D=2000 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at pt A and B respectively\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(-F_C*L_CA+F_D*L_AD+F_E*(L_AD+L_DB+L_BE))*L_AB**-1 #KN\n",
+ "R_A=(F_C+F_D+F_E)-R_B #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt E\n",
+ "V_E1=0 #KN\n",
+ "V_E2=-F_E #KN\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=V_E2 #KN\n",
+ "V_B2=V_B1+R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=V_B2 #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_D2 #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=V_A2 #KN\n",
+ "V_C2=V_C1-F_C #KN\n",
+ " \n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt E\n",
+ "M_E=0 #KN.m \n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=F_E*L_BE #KN,m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=F_E*(L_BE+L_DB)-R_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=F_D*L_AD+F_E*(L_AD+L_DB+L_BE)-R_B*(L_DB+L_AD) #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=F_E*L+F_D*(L_AD+L_CA)-R_A*L_CA-R_B*(L_CA+L_AD+L_DB) #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print\"The Shear Force and Bending Moment diagrams are the results\"\n",
+ "\n",
+ "#Plotting Shear force Diagrams\n",
+ "\n",
+ "X1=[0,0,L_BE,L_BE,L_BE+L_DB,L_BE+L_DB,L_AD+L_BE+L_DB,L_AD+L_BE+L_DB,L_AD+L_BE+L_DB+L_CA,L_AD+L_BE+L_DB+L_CA]\n",
+ "Y1=[V_E1,V_E2,V_B1,V_B2,V_D1,V_D2,V_A1,V_A2,V_C1,V_C2]\n",
+ "Z1=[0,0,0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Shear Force in KN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_E,M_B,M_D,M_A,M_C]\n",
+ "X2=[0,L_BE,L_BE+L_DB,L_BE+L_DB+L_AD,L_BE+L_DB+L_AD+L_CA]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZUAAAEPCAYAAACKplkeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH9VJREFUeJzt3X1wFPXhx/HPQgKtQGp4SvAOmwwJhoMAAYyIDw1iAkKJ\nPJkSrDwXDQNSoVXHaTXYSqLWAaXN1DqxIqWCykDQSorohKJAUB7EGgcOTJw8kQox8ighYX9/8OME\nklwS2NzmjvdrJjOXvdu7z313cp/s7u2uYZqmKQAALNDG7gAAgMBBqQAALEOpAAAsQ6kAACxDqQAA\nLEOpAAAsY2upzJw5U2FhYYqNjfVMS09Pl9PpVFxcnOLi4rRx40bPfRkZGYqOjlZMTIw2bdrkmb5r\n1y7FxsYqOjpaCxYs8Ol7AAD8wNZSmTFjhnJzcy+ZZhiGFi5cqD179mjPnj265557JEkFBQVas2aN\nCgoKlJubq7lz5+rCITZpaWnKzs6W2+2W2+2u85wAAN+wtVTuuOMOhYaG1ple3/GYOTk5Sk1NVXBw\nsCIiIhQVFaX8/HyVl5fr+PHjio+PlyRNnTpV69evb/HsAIC6WuU+leXLl2vAgAGaNWuWqqqqJEll\nZWVyOp2exzidTpWWltaZ7nA4VFpa6vPMAIBWWCppaWkqLCzU3r171aNHDy1atMjuSACAJgqyO8Dl\nunfv7rk9e/ZsjR07VtL5NZDi4mLPfSUlJXI6nXI4HCopKblkusPhqPO8UVFROnToUAsmB4DA06tX\nLx08eLDJj291ayrl5eWe2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S+bPsDh8+vMHnb9euncaM\nGSNJGjx4sN5//32veRp6zctFRkZ6ToDZt29fz7VU+vXrp6KiIq+vAVwpSgVoxLlz53T99ddrz549\n9d7frl07z23z/3dRGoZxyXUnTC+7LoODgz2327Rpo5qamkYz1feal2vfvv0lz3thnqa+BnAl2KcC\nNCIkJESRkZF6++23JZ3/EN+3b5/XeW677TatXbtWpmmqoqJCW7Zs8dzXqVMnHTt2rFkZvJUS0JpQ\nKsBlTp06pZ49e3p+li1bplWrVik7O1sDBw5Uv379tGHDBs/jL74S4YXbEydOlNPplMvl0gMPPKBB\ngwZ5rm8/Z84cjRo1yrOj/vL567uy4eXTG7p9+TwN/e6vV09E68dXioEWcvLkSXXo0EFHjx7VLbfc\nom3btvnlVQuB5mCfCtBCfv7zn6uqqkrV1dV68sknKRRcE1hTAQBYhn0qAADLUCoAAMtQKgAAy1Aq\nAADLUCoAAMtQKgAAy/wfqt1398Nm6AsAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55e3c10>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZUAAAEPCAYAAACKplkeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYVGX7B/DvKKMtgAsl6IwGwSAgJIih5ZtigBoq7nuK\nu2EqLqlpqdgbi5lvLuWbGS5Zr5iZgim4JW4pKmAu+MvRwGBYTBFDQRF4fn88OqKCMHBmzpyZ+3Nd\nXMGZOefcQzL3PNv9yBhjDIQQQogA6okdACGEENNBSYUQQohgKKkQQggRDCUVQgghgqGkQgghRDCU\nVAghhAhGtKSSmZmJrl27ok2bNnB3d8fKlSsBAGFhYVAqlfDy8oKXlxfi4+O150RGRkKlUsHFxQV7\n9+7VHk9OToaHhwdUKhVCQ0MN/loIIYRwMrHWqeTm5iI3Nxeenp64ffs2vL29sWPHDvz444+wsrLC\nzJkzH3t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u7uiIuL0z6/4k6ED78fMGAAlEol3NzcMHLkSLRr\n1067v/3EiRPRo0cP7UD9k+dXtrPhk8er+v7Jc6r6Waq7JxLjR1OKCdGTO3fu4MUXX8SNGzfQoUMH\n/Pbbb5LctZAQXdCYCiF60qtXLxQUFKCkpAQLFy6khELMArVUCCGECIbGVAghhAiGkgohhBDBUFIh\nhBAiGEoqhBBCBENJhRBCiGAoqRBCCBHM/wNhtaQNrvOG2AAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5519f10>"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.18,Page No.766"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables \n",
+ "L=10 #m #span\n",
+ "w=1 #KN/m #u.d.l\n",
+ "l=6 #m #Span betwen A & B\n",
+ "l_AC=2.23 #m #Length AC\n",
+ "l_BD=1.77 #m #LEngth BD\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at A & B respectively\n",
+ "#Taking moment at A\n",
+ "#x**2*x*2**-1+R_B*l=(10-x)**2*2**-1\n",
+ "#After simplifying we get,\n",
+ "#R_A=5*3**-1*(5-x)\n",
+ "#R_B=5*3**-1*(1+x)\n",
+ "\n",
+ "#Let y be the distance at which B.M is maximum at section ABfrom C\n",
+ "#S.F at section AB \n",
+ "#R_A=y\n",
+ "#Substituting value of R_A from above equation\n",
+ "#y=5*3**-1*(1+x)...................................1\n",
+ "\n",
+ "#B.M at A\n",
+ "#M_A=x**2*2**-1 \n",
+ "\n",
+ "#B.M at distance y from C\n",
+ "#M_C=y**2*2**-1+R_A*(y-x)....................2\n",
+ "#After further simplifying we get\n",
+ "#M_C=5*18**-1*(-x**2+4*x+5).............................3\n",
+ "\n",
+ "#EQuating equations 1 & 2,we get quadratic equation as\n",
+ "#14x**2-20x-25=0\n",
+ "a=14\n",
+ "b=-20\n",
+ "c=-25\n",
+ "\n",
+ "X=b**2-4*a*c\n",
+ "x=(-b+X**0.5)*(2*a)**-1\n",
+ "\n",
+ "#Substituing value of x in equation 1 we get\n",
+ "y=5*3**-1*(1+x)\n",
+ "\n",
+ "#Sub values of x & y we get values of R_A & R_B as follows\n",
+ "R_B=5*3**-1*(5-x)\n",
+ "R_A=5*3**-1*(1+x)\n",
+ "\n",
+ "#Shear Force calculations\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=0\n",
+ "\n",
+ "#S.F at A\n",
+ "V_A1=-w*l_AC #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=V_A2-1*l #KN\n",
+ "V_B2=V_B1+R_B #KN\n",
+ "\n",
+ "#S.F at D\n",
+ "V_D=V_B2-l_BD\n",
+ "\n",
+ "#BEnding Moment calculations\n",
+ "\n",
+ "#B.M at C\n",
+ "M_C=0\n",
+ "\n",
+ "#B.M at A\n",
+ "M_A=-w*l_AC**2*2**-1 #KNm\n",
+ "\n",
+ "#B.M at E i.e at y=5.38 m\n",
+ "M_E=-w*y**2*2**-1+R_A*(y-l_AC)\n",
+ "\n",
+ "#B.M at B\n",
+ "M_B=-w*(l_AC+l)**2*2**-1+R_A*l\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,l_AC,l_AC,l_AC+l,l_AC+l,l_AC+l+l_BD]\n",
+ "Y1=[V_C,V_A1,V_A2,V_B1,V_B2,V_D]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_C,M_A,M_E,M_B]\n",
+ "X2=[0,l_AC,l_AC+y,l_AC+l]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEPCAYAAABP1MOPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xt4zFf+B/D3hAkiVBGCpOIhIReVuKzSqolIUpeIS/Qn\n1CVE+tTq4tfW6t2uola7gnZ3f2upSxVtU+vauJRpWQ11abVqNVXRELSloRFKJt/fH6cTISYzSWbm\nfC/v1/PkMUkmM59OmU/OOd9z3iZFURQQEZFh+cgugIiI5GIjICIyODYCIiKDYyMgIjI4NgIiIoNj\nIyAiMjjpjcBmsyEmJgZJSUmySyEiMiTpjWDhwoWIiIiAyWSSXQoRkSFJbQRnzpzB1q1bkZ6eDu5r\nIyKSQ2ojmDZtGubPnw8fH+kDEyIiw5L2Drx582Y0a9YMMTExHA0QEcmkSPLss88qQUFBSkhIiBIY\nGKj4+fkpo0ePvu0+bdu2VQDwgx/84Ac/qvDRtm3bKr0fS2sE5VmtVmXgwIEVvg6oojxVePnll2WX\noBp8LW7ha3ELX4tbqvreqZrJeV41REQkR23ZBQBA79690bt3b9llEBEZkmpGBFQ5i8UiuwTV4Gtx\nC1+LW/haVJ/pt/kkVTKZTLyiiIioiqr63skRARGRwbEREBEZHBsBEZHBsREQERkcGwERkcGxERAR\nGRwbARGRwbEREBEZHBsBEZHBsREQERkcGwERkcGxERARGR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C8xcXFyuRkZHKrl27lPbt2yvfffddhfssX75cmTx5cqV1lXfq1Cmldu3a\nyldffaWUlpYqXbp0UcaPH68oiqJs2LBBGTx4sNPXisgVtWU3IqKaKioqwqefforhw4eXfe3GjRsA\nxDG89kO3wsPDy85m37t3Lx599FEA4rTG2NhYh4/v6+uLAQMGAAC6dOmCHTt2VLhPvXr1sGTJEvTq\n1QsLFy5EmzZtKq3ZUV13atOmTdmBcpGRkWVn7UdFRSEvL6/S5yByFRsBaV5paSkaNWqEI0eO3PX7\nvr6+ZbeV35bETCbTbbkGSiVLZWazuey2j48PSkpK7nq/o0ePIiAgwOUgpbvVdac6derc9tz2n6ms\nDqKq4hoBaV7Dhg3Rpk0bvP/++wDEm+rRo0cr/ZkHH3wQWVlZUBQFFy5cwMcff1z2vQYNGuDKlStV\nquH06dP461//iiNHjuDDDz/EgQMHKtynsmZDJBMbAWlOcXExgoODyz4yMzOxevVqLF26FNHR0YiK\nisLGjRvL7l8+ocl+e9iwYQgKCkJERARGjx6Nzp07l+X+ZmRk4JFHHilbLL7z5+9MfFIUBenp6Xj9\n9dcRGBiIpUuXIj09vWx6ytHPOrp95884+pxpfuQuvHyUDOvq1auoX78+Ll68iO7du2Pfvn0upTkR\n6Q3XCMiwBg4ciMLCQty4cQMvvfQSmwAZFkcEREQGxzUCIiKDYyMgIjI4NgIiIoNjIyAiMjg2AiIi\ng2MjICIyuP8H+JpvorKE/gUAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x581de50>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEPCAYAAACqZsSmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xlc1VX+P/DXRUFTEPcVDQYV2QLEr5RLggquJO7mmqY5\n05RaTZm/Sm1K08pJLVs0yaZpzFFzwRRxwzVTA9NG00RJcNcGAQEROL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RUUiNDRUTJgwQQghxIYNG0RMTExlvy1EZaqu+sWHyBqys7Px/fff39f+Nz8/H4Bs\nG27sgOrr64srV64AAPbt24dhw4YBQPFeBGVxcXFBv379AAChoaHYtm1buXnKOuYfeXl5FTdS8/f3\nL+4RHxAQgNTU1HKPQVQZLP7kkIqKilC3bl0kJyeXeruLi0vxx+LuZS+DwXBfv39RzuUwZ2fn4o+d\nnJxQUFBgMlNpx/yjGjVq3Pe8xsdU9BhEFcUxf3JIderUgZeXF9asWQNAFttjx46V+5jOnTtj7dq1\nEELgypUr2L17d/Ftbm5uyMzMrFSG8l48iFRj8SeHkJOTg5YtWxb/WbhwIb7++mssX74cwcHBCAgI\nwMaNG4vvX3LHOOPHgwcPhoeHB/z8/DBmzBi0b9++eP/aZ555Br179y6+4PvHx5e2A90fv17Wx398\nTFmfc5c7siRO9SQq4datW6hduzZu3LiBsLAwHDhwAI0bN1Ydi8jiOOZPVEL//v2RkZGB/Px8zJw5\nk4WfHBbP/ImIdIhj/kREOsTiT0SkQyz+REQ6xOJPRKRDLP5ERDrE4k9EpEP/H0UNKguiNmi8AAAA\nAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5829270>"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.19,Page No.770"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_EB=L_DE=L_CD=L_AC=1 #m\n",
+ "L=4 #m\n",
+ "\n",
+ "#Loads\n",
+ "#point Load\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=200*sin(45*pi*180**-1)\n",
+ "F_D2=200*cos(45*pi*180**-1)\n",
+ "\n",
+ "#At pt C\n",
+ "F_C1=100*sin(60*pi*180**-1)\n",
+ "F_C2=100*cos(60*pi*180**-1)\n",
+ "\n",
+ "#At pt E\n",
+ "F_E1=300*sin(30*pi*180**-1)\n",
+ "F_E2=300*cos(30*pi*180**-1)\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at pt A and B respectively\n",
+ "#R_A+R_B=F_D1+F_C1+F_E1 #KN\n",
+ "\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_E1*(L_AC+L_CD+L_DE)+F_D1*(L_AC+L_CD)+F_C1*L_AC)*L**-1 #KN\n",
+ "R_A=(F_D1+F_C1+F_E1)-R_B #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0 #N\n",
+ "V_B2=R_B #N\n",
+ "\n",
+ "#S.F at pt E\n",
+ "V_E1=V_B2 #N\n",
+ "V_E2=V_E1-F_E1 #N\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=V_E2 #N\n",
+ "V_D2=V_D1-F_D1 #N\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=V_D2 #N\n",
+ "V_C2=V_C1-F_C1 #N\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C2 #N\n",
+ "V_A2=V_A1+R_A\n",
+ "\n",
+ "#Bending Moment Diagrams\n",
+ "\n",
+ "#B.M At pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt E\n",
+ "M_E=-R_B*L_EB #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=-R_B*(L_DE+L_EB)+F_E1*L_DE #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_CD+L_DE+L_EB)+F_E1*(L_CD+L_DE)+F_D1*L_CD #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+F_E1*(L_CD+L_DE+L_AC)+F_D1*(L_AC+L_CD)+F_C1*L_AC #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_EB,L_EB,L_EB+L_DE,L_EB+L_DE,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD]\n",
+ "Y1=[V_B1,V_B2,V_E1,V_E2,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_E,M_D,M_C,M_A]\n",
+ "X2=[0,L_EB,L_DE+L_EB,L_DE+L_EB+L_CD,L_DE+L_EB+L_CD+L_AC]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZEAAAEPCAYAAACDTflkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVPedx/H3CGijSMSokM64BypjeJDAaIIPWdMhERVd\nKIlKi0k0Rpoc3Dwds7Vut03hJBU9+9AYU3aze9Ba08Yk9SjuZmWxm45NbBSj5KFhV8cEUhgeNgmh\nkUQXwbt/GGdFQODqcBn8vM6Zc2bu03yvN5kP9/f73XtthmEYiIiImDDC6gJERCR4KURERMQ0hYiI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pmiI\nb/DSEF8R61z160QudKZf2PBTTz3FrbfeysKFC7HZbNx9991XVnGAKESCl0JExDpXPUTuv//+Ls1F\nhmF0+bxt2zYTZQaeQiR4KURErBPQK9aDiUIkeClERKwTkCvWRURELkchIiIipilERETEtF6vWL/g\nzJkz7Nq1i9raWjo6OoDzbWdPPvlkwIsTEZGhrc8Q+da3vsW4ceOYMWMGX/va1wajJhERCRJ9js6a\nNm0af/jDHwarnium0VnBS6OzRKwTsNFZc+bM4d133zVVlIiIDG99nokkJCRw8uRJYmNjGTVq1PmV\nbLYhGyw6EwleOhMRsU7ALjasra3tcXpMTMyAv2wwKESCl0JExDpmfzt77Vj//PPPiYiIICIi4ooK\nExGR4avXM5HFixfz6quvEhMT0+2W6zabjQ8//HBQChwonYkEL52JiFhH9876ikIkeClERKxz1Zuz\nrBYTE0NERAQhISGEhYVRWVlJS0sL3/72t/noo4+IiYnh5ZdfZty4cVaXKiJyzRqytz2x2Wx4PB6q\nqqqorKwEYOPGjWRkZHDixAnuvPNONm7caHGVIiLXtiHbnBUbG8tbb73FDTfc4J8WHx/PgQMHiIqK\noqmpCbfbzX//9393WU/NWcFr/Hj47DOrqxCzIiOhpcXqKsSsgPaJvP7665w8eZJVq1bx8ccf09bW\nRmxsrKlC++sb3/gG119/PSEhITz00EN897vfJTIyks+++pUxDIPx48f7P1+gEBGxhvq0glvA+kQK\nCws5evQox48fZ9WqVbS3t3Pvvfdy8OBBU4X218GDB7nxxhv5+OOPycjIID4+vst8m83WbdSYiIgM\nrj5DZPfu3VRVVTFjxgwA7HY7p06dCnhhN954IwATJ07krrvuorKy0t+MFR0dTWNjI5MmTepx3cLC\nQv97t9uN2+0OeL0iIsHE4/Hg8XiueDt9NmelpaVRWVmJy+WiqqqKL774gtmzZwf0tidffvklnZ2d\njB07li+++IL58+fz4x//mN/85jfccMMNfP/732fjxo20trZ261xXc5aINdScFdwC1py1bNkyHnro\nIVpbW/nnf/5ntm7dSn5+vqki+6u5uZm77roLgI6ODu655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I\niIiYphARERHTFCIiImKaQkRERExTiIiIiGkKERERMU0hIiIipilERETENIWIiIiYZkmIvPLKKyQl\nJRESEsKxY8f802tra7nuuutwuVy4XC7WrFnjn3f06FGSk5NxOp089thjVpQtIiKXsCREkpOT2b17\nN7fffnu3eXFxcVRVVVFVVUVJSYl/ekFBAaWlpXi9XrxeL+Xl5YNZsoiI9MCSEImPj2fq1Kn9Xr6x\nsZFTp06RlpYGwIoVK9izZ0+gyhMRkX4acn0iNTU1uFwu3G43b7zxBgA+nw+Hw+Ffxm634/P5rCpR\nRES+EhqoDWdkZNDU1NRt+oYNG8jKyupxna9//evU1dURGRnJsWPHyMnJ4f333x/wdxcWFvrfu91u\n3G73gLchIjKceTwePB7PFW8nYCGyf//+Aa8zcuRIRo4cCcD06dOZMmUKXq8Xu91OfX29f7n6+nrs\ndnuv27k4REREpLtL/8AuKioytR3Lm7MMw/C//+STT+js7ATgww8/xOv18o1vfIMbb7yRiIgIDh8+\njGEY7Nixg5ycHKtKFhGRr1gSIrt372by5MkcOnSIxYsXk5mZCcCBAwdISUnB5XKxbNkynn/+ecaN\nGwdASUkJ+fn5OJ1O4uLiWLhwoRWli4jIRWzGxacCw4DNZmOY7ZKISMCZ/e20vDlLRESCl0JERERM\nU4iIiIhpChERETFNISIiIqYpRERExDSFiIiImKYQERER0xQiIiJimkJERERMU4iIiIhpChERETFN\nISIiIqYpRERExDSFiIiImGZJiHzve98jISGBlJQU7r77bv70pz/55xUXF+N0OomPj6eiosI//ejR\noyQnJ+N0OnnsscesKFtERC5hSYjMnz+f999/n3feeYepU6dSXFwMQHV1NS+99BLV1dWUl5ezZs0a\n/0NSCgoKKC0txev14vV6KS8vt6J0y3k8HqtLCJjhvG+g/Qt2w33/zLIkRDIyMhgx4vxXz5w5k/r6\negDKysrIy8sjLCyMmJgY4uLiOHz4MI2NjZw6dYq0tDQAVqxYwZ49e6wo3XLD+T/k4bxvoP0LdsN9\n/8yyvE9k69atLFq0CICGhgYcDod/nsPhwOf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QzDMKqrq424uDjDMAzjlVde\nMRYtWmQYhmE0NTUZkZGRxq5duwzDMIyYmBjj008/9W/bZrMZ//Zv/2YYhmGsW7fOePrpp7t9/5df\nfmkkJSUZr732mnHTTTcZH374Ybdlfv7znxsPP/zwZeu6WE1NjREaGmr84Q9/MM6dO2fMmDHDeOCB\nBwzDMIyysjIjJyenz38rkYEIyntniVyptrY23nzzTZYtW+af1t7eDpy/9fWFu7cmJCT4H8rzxhtv\nkJubC+B/HkNvRo4cyeLFiwGYMWMG+/fv77bMddddx7/8y78wd+5cNm/eTGxs7GVr7q2uS8XGxpKU\nlARAUlIS8+bNA2DatGnU1tZe9jtEBkohItekc+fOMW7cuF6fIT1y5Ej/e+OrbkObzdblWQvGZboT\nw8LC/O9HjBhBR0dHj8u9++67TJw4sduDx3rTU12XGjVqVJfvvrDO5eoQMUt9InJNioiIIDY2ll//\n+tfA+R/kd99997Lr3HbbbezatQvDMGhububAgQP+eWPHjuXzzz8fUA0fffQR//AP/0BVVRX79u2j\nsrKy2zKXCyqRoUAhIteEL7/8ksmTJ/tfzzzzDL/85S8pLS0lNTWVadOmsXfvXv/yFz/N7cL7JUuW\n4HA4SExM5L777mP69Olcf/31ADz44IMsXLjQ37F+6fqXPh3OMAzy8/P5+7//e6KjoyktLSU/P9/f\npNbbur29v3Sd3j4H2xMGZejTEF+RAfjiiy8YM2YMn376KTNnzuT3v/89kyZNsrosEcuoT0RkAP7i\nL/6C1tZW2tvbefLJJxUgcs3TmYiIiJimPhERETFNISIiIqYpRERExDSFiIiImKYQERER0xQiIiJi\n2v8Bj/w2ELkj9AoAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5829330>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZEAAAEPCAYAAACDTflkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYVVX3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\n7riDPXv2ADBo0CBGjx7Nrbfeip+fH0uWLAFU5dYRI0YQFBREx44d6dq1K0uWLGHOnDkcOnSIdu3a\n0b59e8vxn3vuOcLDw7n55ps5cuTIJeefP38+I0eOvOw5L5Senk5gYCCDBw+mRYsW3H///axbt45b\nb72V5s2bk5SU5IjLJMS/rG1sIoSr8/LyuuSxu+66S0tLS9M0TTXlueuuuzRN07SHHnpI69Onj6Zp\nmpaamqr5+/trmqZpixcv1mJjYzVN07TDhw9rDRs21JYsWaJpmqb5+vpqf//9t+XYJpNJ+/rrrzVN\n07Tx48drL7300iXnnz9/vvbEE09c9pwXOnjwoFarVi1t9+7dWlFRkda6dWvt4Ycf1jRN05YvX671\n7NmzqpdFiCpxydpZQjhCbm4uP/30E71797Y8lp+fD6g6QyWVboOCgiyNejZt2kSfPn0ALH0kyuPp\n6UnXrl0BaN26NevXr79sPOWd82LNmjWjZcuWALRs2ZIOHToAEBISQnp6+mXPIYStJIkIUayoqIgG\nDRqU21fa09PT8r1WPJVoMplK9V/QLjPF6OHhYfm+Ro0aFBQUVBhTWee8WO3atUsdt+Q9lT2HELaQ\nOREhitWrV49mzZrx5ZdfAupD++eff77se2699VaWLFmCpmn89ddfbNy40fKct7c3p06dqlIMl0tC\nQhiRJBHhtvLy8mjatKnla9asWXz66afMmzeP8PBwQkJCWLFiheX1F3Z4K/n+3nvvxcfHh+DgYB58\n8EFatWpF/fr1AXj00Ufp3LmzZWL94veX1THu4sfL+/7i95T3sxG7UIrqRZb4CmGj06dPU7duXf7+\n+2+ioqLYsmUL11xzjd5hCeEUMicihI3uvvtuTp48SX5+PpMnT5YEItyKjESEEEJYTeZEhBBCWE2S\niBBCCKtJEhFCCGE1SSJCCCGsJklECCGE1SSJCCGEsNr/A/jOXZw1nyUTAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55e3a70>"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20,Page No.772"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=L_CD=L_DE=L_EB=2 #m\n",
+ "L=8 #m\n",
+ "\n",
+ "#Loads\n",
+ "#point Load\n",
+ "\n",
+ "#At pt E\n",
+ "F_E1=6*sin(pi*180**-1*45) #KN\n",
+ "F_E2=6*cos(pi*180**-1*45) #KN\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=8*sin(pi*180**-1*60) #KN\n",
+ "F_D2=8*cos(pi*180**-1*60) #KN\n",
+ "\n",
+ "#At pt C\n",
+ "F_C1=4*sin(pi*180**-1*30) #KN\n",
+ "F_C2=4*cos(pi*180**-1*30) #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at pt A and B respectively\n",
+ "#R_A+R_B=F_D1+F_C1+F_E1 #KN\n",
+ "\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_E1*(L_AC+L_CD+L_DE)+F_D1*(L_AC+L_CD)+F_C1*L_AC)*L**-1 #KN\n",
+ "R_A=(F_D1+F_C1+F_E1)-R_B #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0 #N\n",
+ "V_B2=R_B #N\n",
+ "\n",
+ "#S.F at pt E\n",
+ "V_E1=V_B2 #N\n",
+ "V_E2=V_E1-F_E1 #N\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D1=V_E2 #N\n",
+ "V_D2=V_D1-F_D1 #N\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C1=V_D2 #N\n",
+ "V_C2=V_C1-F_C1 #N\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C2 #N\n",
+ "V_A2=V_A1+R_A\n",
+ "\n",
+ "#Bending Moment Diagrams\n",
+ "\n",
+ "#B.M At pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt E\n",
+ "M_E=-R_B*L_EB #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D=-R_B*(L_DE+L_EB)+F_E1*L_DE #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_CD+L_DE+L_EB)+F_E1*(L_CD+L_DE)+F_D1*L_CD #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+F_E1*(L_CD+L_DE+L_AC)+F_D1*(L_AC+L_CD)+F_C1*L_AC #KN.m\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_EB,L_EB,L_EB+L_DE,L_EB+L_DE,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD,L_EB+L_DE+L_CD]\n",
+ "Y1=[V_B1,V_B2,V_E1,V_E2,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_E,M_D,M_C,M_A]\n",
+ "X2=[0,L_EB,L_DE+L_EB,L_DE+L_EB+L_CD,L_DE+L_EB+L_CD+L_AC]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEPCAYAAACqZsSmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGshJREFUeJzt3XtwVOXhxvFnQxKUhHAziE2wySQguQhZICJYdZGbgqBA\npCpVDEYcqVZsFbVj/aUiolVaLra2UgpF7OhotCC1FCguIBJuSaXWGbllbSCGWjBiCBiSnN8f1NWY\nywZydt9szvczw8zu5uyeZ4F5eHnPOe9xWZZlCQDgKBGmAwAAQo/yBwAHovwBwIEofwBwIMofAByI\n8gcABzJa/vPmzVNGRoYuvfRS3Xrrrfryyy9NxgEAxzBW/j6fT0uWLFFRUZH++c9/qra2Vq+88oqp\nOADgKJGmdhwXF6eoqChVVVWpQ4cOqqqqUkJCgqk4AOAoxkb+3bt3109+8hNdfPHF+s53vqOuXbtq\n5MiRpuIAgKMYK/8DBw5owYIF8vl8KisrU2VlpV5++WVTcQDAUYxN++zatUvDhg1Tjx49JEmTJk3S\ne++9p6lTp/q3SU1N1YEDB0xFBICwlJKSov379ze7jbGRf79+/VRYWKiTJ0/Ksixt2LBB6enp9bY5\ncOCALMtqt7/+7//+z3gGvh/fz2nfzQnfryWDZmPlP2DAAN1+++0aPHiw+vfvL0maMWOGqTgA4CjG\npn0kafbs2Zo9e7bJCADgSFzha5DH4zEdIaj4fuGrPX83qf1/v5ZwWZbVZm/m4nK51IbjAUCb1JLu\nZOQPAA5E+QOAA1H+AOBAlD8AOBDlDwAORPkDgAMZvcirJVwu0wlwrrp1k44dM50CQGPafPlzmn/4\n4h9uoO1i2gcAHIjyBwAHovwBwIEofwBwIMofAByI8gcAB6L8AcCBKH8AcCDKHwAcyGj5V1RUKCcn\nR2lpaUpPT1dhYaHJOADgGEaXd7j//vs1duxYvf7666qpqdGJEydMxgEAxzB2D9/PP/9cbrdbBw8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VVkZGhrVx\n40brkksusQ4ePNhgm+XLl1v33ntvs7m+qaSkxIqMjLQ++OADq66uzho0aJA1ffp0y7Isa9WqVdaN\nN94Y8PcKaEybXNsHOFuVlZXatm2bbrrpJv9r1dXVks6sT/PVyqJpaWk6cuSIJOndd9/VlClTJMm/\nNn9ToqOjNW7cOEnSoEGDtH79+gbbnH/++VqyZImuvPJKLVy4UMnJyc1mbirXtyUnJ/sX58rIyNDI\nkSMlSZmZmfL5fM3uA2gK5Y92oa6uTl27dlVxcXGjP4+OjvY/tv53mMvlctVbs95q5vBXVFSU/3FE\nRIRqamoa3W7Pnj2Kj49v8c2HGsv1bR07dqy376/e01wOIBDm/NEuxMXFKTk5Wa+//rqkM0W6Z8+e\nZt9zxRVXqKCgQJZl6ciRI9q0aZP/Z507d9bx48fPKsPHH3+sX/7yl/4bhTS2Tnxz/8AAoUT5IyxV\nVVWpd+/e/l8LFizQyy+/rKVLlyorK0uZmZlavXq1f/tvLk381ePJkycrMTFR6enpuu222zRw4ED/\n/U5nzJiha6+91n/A99vv//ZSx5ZlKS8vT/Pnz1evXr20dOlS5eXl+aeemnpvU4+//Z6mnre3JZcR\nOpzqCUc7ceKEYmJidPToUQ0ZMkTvvfeeevbsaToWEHTM+cPRrr/+elVUVKi6ulqPP/44xQ/HYOQP\nAA7EnD8AOBDlDwAORPkDgANR/gDgQJQ/ADgQ5Q8ADvT/U0cqGCjaCgMAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55fdb30>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XdY1WX/B/D3QUFTcGSWJRoEmizhCImjfCDFRebIiWZq\nmmXDsmXDVbkyy0mORPOp1JIQNSW1xE2oQELmQOUJceYvlCEh8P39ccc3kXWA7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<matplotlib.figure.Figure at 0x55f8b50>"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.21,Page No.774"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_CB=4 #m\n",
+ "L_AC=2 #m\n",
+ "L=6 #m\n",
+ "\n",
+ "#Loads\n",
+ "m=24 #KN.m #couple\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at pt A and B respectively\n",
+ "#R_A+R_B=0\n",
+ "#Taking Moment at pt A\n",
+ "R_B=m*L**-1 #KN\n",
+ "R_A=-R_B #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.f at pt B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=V_B2 #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C1=-R_B*L_CB #KN.m\n",
+ "M_C2=M_C1+m #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L+m #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print\"The Shear Force and Bending Moment are the results\"\n",
+ "\n",
+ "#Plotting Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_CB,L_CB+L_AC,L_CB+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Shear Force in KN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting Bending Moment Diagram\n",
+ "\n",
+ "X1=[0,L_CB,L_CB,L_CB+L_AC]\n",
+ "Y1=[M_B,M_C1,M_C2,M_A]\n",
+ "Z1=[0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in KN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYEAAAEPCAYAAACk43iMAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHbFJREFUeJzt3XtwVOX9x/HPhnBxE64qSZvkN8mQKAmRZBM0VYFshIpc\ni4IMFCEClgADiNXa2mklKMUbVrl0KHQYLEqFKYwSNTDg6HKPUYhaS0eSytYkkLTAREgg5nZ+f1C2\nuZIs7MmGnPdrZmd29zznnO8B5nw4z9nnOTbDMAwBACwpwN8FAAD8hxAAAAsjBADAwggBALAwQgAA\nLIwQAAALMz0Eamtr5XA4NH78+GaXL168WDExMUpISFBeXp7Z5QAA6jE9BFatWqW4uDjZbLYmy7Kz\ns1VQUKD8/Hxt2LBB8+fPN7scAEA9poZAUVGRsrOz9dhjj6m5MWlZWVlKT0+XJKWkpKisrEylpaVm\nlgQAqMfUEHjiiSf0yiuvKCCg+d0UFxcrIiLC8zk8PFxFRUVmlgQAqMe0EHj//ffVv39/ORyOZq8C\nrmi8rLluIwCAOQLN2vDhw4eVlZWl7OxsVVZW6vz585o5c6Y2b97saRMWFqbCwkLP56KiIoWFhTXZ\nVkBAtAzjn2aVCgCd0oABA1RQUHD1RkY7cLlcxrhx45p8/8EHHxijR482DMMwjhw5YqSkpDS7fjuV\n6TdLly71dwmm6szH15mPzTA4vhtdW86dpl0JNHalm2f9+vWSpIyMDI0ZM0bZ2dmKjo5WUFCQNm3a\n1F7lAABkYndQfampqUpNTZV0+eRf39q1a9ujBABAMxgx3AE4nU5/l2Cqznx8nfnYJI7PCmz/7Tfq\n0Gw221V/YQQAaKot506uBADAwggBALAwQgAALIwQAAALIwQAwMIIAQCwMEIAACyMEAAACyMEAMDC\nCAEAsDBCAAAsjBAAAAsjBADAwggBALAwQgAALIwQAAALIwQAwMJMDYHKykqlpKQoMTFRcXFxeuaZ\nZ5q0cblc6t27txwOhxwOh5YvX25mSQCAekx90HyPHj308ccfy263q6amRkOHDtXBgwc1dOjQBu1S\nU1OVlZVlZikAgGaY3h1kt9slSVVVVaqtrVW/fv2atOH5wQDgH6aHQF1dnRITExUSEqK0tDTFxcU1\nWG6z2XT48GElJCRozJgxOn78uNklAQD+y/QQCAgI0Oeff66ioiLt379fLperwfKkpCQVFhbqiy++\n0KJFizRx4kSzSwIA/Jep9wTq6927t8aOHavPPvtMTqfT833Pnj0970ePHq0FCxbo3LlzTbqNMjMz\nPe+dTmeDbQAALv/QpvF/tFtjM0zskD9z5owCAwPVp08fXbp0SaNGjdLSpUs1YsQIT5vS0lL1799f\nNptNubm5mjJlitxud8MibTbuGwCAl9py7jT1SuD06dNKT09XXV2d6urqNGPGDI0YMULr16+XJGVk\nZGj79u1at26dAgMDZbfbtXXrVjNLAgDUY+qVgK9wJQAA3mvLuZMRwwBgYYQAAFgYIQAAFkYIAICF\nEQIAYGGEAABYGCEAABZGCACAhRECAGBhhAAAWBghAAAWRggAgIURAgBgYYQAAFgYIQAAFkYIAICF\nEQIAYGGEAABYGCEAABZmWghUVlYqJSVFiYmJiouL0zPPPNNsu8WLFysmJkYJCQnKy8szqxwAQDMC\nzdpwjx499PHHH8tut6umpkZDhw7VwYMHNXToUE+b7OxsFRQUKD8/X5988onmz5+vnJwcs0oCADRi\naneQ3W6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4Zo+PDh+vrrryVJjz76qB5//HHde++9GjBggHbs2CHp8uygCxYsUGxs\nrO6//36NHTtWO3bs0Jo1a3Tq1CmlpaU1GB38m9/8RomJibr77rv173//u8n+33jjDS1atOiq+6zP\n7XZr4MCBmjVrlm6//XZNnz5de/bs0b333qvbbrtNn376qRl/TLAqsx9uALSn4ODgJt/dd999Rn5+\nvmEYhpGTk2Pcd999hmEYRnp6ujFlyhTDMAzj+PHjRnR0tGEYhvHXv/7VGDNmjGEYhlFSUmL07dvX\n2LFjh2EYTR9EYrPZjPfff98wDMN4+umnjeXLlzfZ/xtvvGEsXLjwqvus7+TJk0ZgYKDx1VdfGXV1\ndUZycrIxe/ZswzAMY+fOncbEiRO9/WMBWtSh5w4Crld5ebmOHDmihx9+2PNdVVWVpMvz4VyZ3TQ2\nNlalpaWSpIMHD2rKlCmS5HlWQEu6deumsWPHSpKSk5O1d+/eq9bT0j4bi4qK8kz6NWjQII0cOVKS\nFB8fL7fbfdV9AN4gBNCp1dXVqU+fPsrLy2t2ebdu3Tzvjf/eHrPZbA3m0Deuctusa9eunvcBAQGq\nqalptabm9tlY9+7dG2z3yjpt3QfQVtwTQKfWq1cvRUVFafv27ZIun3S//PLLq65z7733aseOHTIM\nQ6Wlpdq3b59nWc+ePXX+/HmvarhaiAD+RgigU7l48aIiIiI8r9dff11btmzRxo0blZiYqPj4eGVl\nZXna158i+cr7SZMmKTw8XHFxcZoxY4aSkpI8z2idO3euHnjgAc+N4cbrNzflcuPvW3rfeJ2WPne2\naZ3hX/xEFGhGRUWFgoKCdPbsWaWkpOjw4cPq37+/v8sCfI57AkAzxo0bp7KyMlVVVenZZ58lANBp\ncSUAABbGPQEAsDBCAAAsjBAAAAsjBADAwggBALAwQgAALOz/AbEdCOnDkhV6AAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55f0730>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUg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KC8vR0xMTIvq5SVLliAkJARPP/00rl271ur+O3fuxPz58x94z+Z0Oh38/f0xffp0PPnkk5g0\naRIOHz6MIUOGwM/PD6dPn7bEvyZyVNZo7kCklK5du7Y6N3z4cOHSpUuCIAjCqVOnhOHDhwuCIAjT\npk0TUlJSBEEQhMLCQsHX11cQBEHYs2ePMGrUKEEQBKGyslLo2bOnsHfvXkEQWjdm0Wg0wmeffSYI\ngiD87ne/E956661W99+5c6cwb968B96zuStXrgguLi7C+fPnhaamJiE8PFyYMWOGIAiCkJmZKYwd\nO7a9/1qIDFLV3kdE5rpz5w6+/vprjB8/XjpXX18PQNzPR79za0BAAKqqqgAAx48fR0pKCgBIvRIM\ncXNzQ2JiIgAgPDwc2dnZD4zH0D3v179/f2kDs6CgIMTGxgIAgoODodPpHngPovZgUiCH0tTUhB49\neqCgoKDNn7u5uUnfCz9Pt2k0mhY9BIQHTMO5urpK3zs5OaGhocFoTG3d836dOnVq8Xv1rzH1HkSm\n4pwCOZRu3bqhf//++Pvf/w5A/BD+9ttvH/iaIUOGYO/evRAEAVVVVcjNzZV+5u7ujtu3b7crhgcl\nFSKlMSmQXautrYWXl5f0tXbtWnzyySfYtm0bQkJCEBwcjAMHDkjXN98SWv/9Cy+8AE9PTwQGBmLK\nlCkICwuT+tv+6le/wsiRI6WJ5vtf39YW0/efN/T9/a8xdGxv21iTsrgklcgEd+/eRZcuXXDjxg1E\nRUXh5MmT6N27t9JhEcmOcwpEJhg9ejSqq6tRX1+PtLQ0JgSyWxwpEBGRhHMKREQkYVIgIiIJkwIR\nEUmYFIiISMKkQEREEiYFIiKS/D8xbsU2dVdsUgAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x570f5d0>"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.22,Page No.775"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_DB=L_CD=2.5 #m\n",
+ "L_AC=5 #m\n",
+ "L=L=10 #m\n",
+ "\n",
+ "#Loads\n",
+ "m=15000 #Nm #couple\n",
+ "w=1000 #N/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at pt A and B respectively\n",
+ "#R_A+R_B=w*L_AC\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(w*L_AC*L_AC*2**-1-m)*L**-1 #KN\n",
+ "R_A=w*L_AC-R_B #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at pt B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F at pt D\n",
+ "V_D=V_B2 #KN\n",
+ "\n",
+ "#S.F at pt C\n",
+ "V_C=V_D #KN\n",
+ "\n",
+ "#S.F at pt A\n",
+ "V_A1=V_C-w*L_AC #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M at pt D\n",
+ "M_D1=-R_B*L_DB #KN.m\n",
+ "M_D2=M_D1-m #KN.m\n",
+ "\n",
+ "#B.M at pt C\n",
+ "M_C=-R_B*(L_CD+L_DB)-m #KN.m\n",
+ "\n",
+ "#B.M at pt A\n",
+ "M_A=-R_B*L-m+w*L_AC*L_AC*2**-1 #KN.m\n",
+ "\n",
+ "#Result\n",
+ "print\"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_CD+L_DB,L_CD+L_DB+L_AC,L_CD+L_DB+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D1,M_D2,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZUAAAEPCAYAAACKplkeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1Y1HW+//HnKOhumpZomjOccGUMUQJNiWrdUMKQEttU\njHa9hTphllm7a/067fFc3mDHs3sskz2dvahcT4WbnoRuJE3jWFtS3pQn2WOzCQojVit5lwoBn98f\nxKgpAjLMdwZej+ua65r5zM33/R0v58335vX92IwxBhERES/oZHUBIiLSfqipiIiI16ipiIiI16ip\niIiI16ipiIiI16ipiIiI17SbplJQUEBERAROp5OnnnrK6nJERDokW3vIqdTW1nLttdfyzjvvYLfb\nGTlyJK+88gqDBw+2ujQRkQ6lXWypfPTRR4SHhxMWFkZwcDB33303eXl5VpclItLhtIum4na7CQ0N\n9Tx2OBy43W4LKxIR6ZjaRVOx2WxWlyAiIkCQ1QV4g91up6yszPO4rKwMh8NxzmtsvWzwja8rExEJ\nbAMHDuRvf/tbs1/fLrZURowYgcvlorS0lOrqatasWUNKSsq5L/oGjDG6GcM///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W1dWcy6vhx9raWr77fpvsnXfeYfTo0Z7nampqWlGmiIg06NYN3nij/cx13+iB\n+rS0NG655RZ69+7NZZddxqhRowBwuVznXbVYREQuXUPq/qc/hX79IDXV6oouXaNN5YknnmDMmDEc\nOnSIsWPHei53b4xhxYoVPitQRKQjaC+p+4tepuXGG288b2zQoEFtVoyISEfWkLpPTYWNGyEmxuqK\nWk6zbYmI+JFAT903eUFJERHxLX9P3V+MtlRERPxQoM51r6YiIuKnAjF1r6YiIuKnAjF1r6YiIuLH\nAm2uezUVERE/F0ipe539JSISAAIlda+mIiISIAIhda/dXyIiAcTf57pXUxERCTD+nLrX7i8RkQDk\nr6l7bamIiAQof0zdq6mIiAQwf0vdq6mIiAQwf0vdq6mIiAQ4f0rdq6mIiLQD/pK619lfIiLthD+k\n7tVURETaEatT99r9JSLSzliZuldTERFph6xK3Wv3l4hIO2VF6l5bKiIi7ZivU/dqKiIi7ZwvU/eW\nNJUFCxbgcDgYNmwYw4YNY8OGDZ7nsrKycDqdREREsHHjRs/4jh07iIqKwul0MnfuXM94VVUVU6ZM\nwel0EhcXx/79+326LiIi/s6XqXtLmorNZuORRx5h165d7Nq1i3HjxgFQXFzMmjVrKC4upqCggNmz\nZ2O+X/vMzExycnJwuVy4XC4KCgoAyMnJISQkBJfLxbx585g/f74VqyQi4td8lbq3bPeXuUCrzMvL\nIy0tjeDgYMLCwggPD6eoqIiKigqOHz9ObGwsANOmTWP9+vUA5OfnM336dAAmTpzI5s2bfbcSIiIB\nxBepe8uayooVK4iOjiY9PZ0jR44AcPDgQRwOh+c1DocDt9t93rjdbsftdgPgdrsJDQ0FICgoiJ49\ne1JZWenDNRERCRwNqftly+qzLN7WZk0lMTGRqKio8275+flkZmZSUlLCJ598wtVXX82jjz7aVmWI\niMgPNKTu58yBLVu8+9ltllPZtGlTs16XkZHB+PHjgfotkLKyMs9z5eXlOBwO7HY75eXl5403vOfA\ngQP079+fmpoajh49Sq9evS64rAULFnjux8fHEx8f38K1EhFpHxpS96mpsHEjxMTUjxcWFlJYWAjA\n1q2X8MHGAgcPHvTc//3vf2/S0tKMMcbs2bPHREdHm6qqKrNv3z7zk5/8xNTV1RljjImNjTXbtm0z\ndXV1Zty4cWbDhg3GGGNWrlxp7r//fmOMMa+88oqZMmXKBZdp0aqKiPi1V181xm43Zt++859buLDl\nv52WJOrnz5/PJ598gs1mY8CAATz33HMAREZGkpqaSmRkJEFBQWRnZ2Oz2QDIzs5mxowZnDp1iuTk\nZJKSkgBIT09n6tSpOJ1OQkJCyM3NtWKVREQCkrdT9zZjrJ4nzDdsNtsFzzgTERF44gl45536Yyzd\nutWPLVoETz7Zst9OJepFRMRrqXs1FRER8VrqXk1FREQA76TudUxFRETO8fe/109JDLB3r46piIhI\nKzSk7o8da/l7taUiIiIXVFoKAwa07LdTTUVERBrV0t9O7f4SERGvUVMRERGvUVMRERGvUVMRERGv\nUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMR\nERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvUVMRERGvsayprFixgsGDBzN0\n6FDmz5/vGc/KysLpdBIREcHGjRs94zt27CAqKgqn08ncuXM941VVVUyZMgWn00lcXBz79+/36XqI\niMgZljSVd999l/z8fHbv3s1nn33Gr371KwCKi4tZs2YNxcXFFBQUMHv2bIwxAGRmZpKTk4PL5cLl\nclFQUABATk4OISEhuFwu5s2bd06DkgsrLCy0ugS/oe/iDH0XZ+i7uHSWNJU//OEPPP744wQHBwPQ\np08fAPLy8khLSyM4OJiwsDDCw8MpKiqioqKC48ePExsbC8C0adNYv349APn5+UyfPh2AiRMnsnnz\nZgvWKLDoP8wZ+i7O0Hdxhr6LS2dJU3G5XGzdupW4uDji4+PZvn07AAcPHsThcHhe53A4cLvd543b\n7XbcbjcAbreb0NBQAIKCgujZsyeVlZU+XBsREWkQ1FYfnJiYyKFDh84bX7x4MTU1NXzzzTds27aN\njz/+mNTU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+/9R2rVxvhMnTjBp0iSefvppunfvbnU5PvfGG29w1VVXMWzY\nsA6/lQJQU1PDzp07mT17Njt37qRbt25N7uJor7744guWL19OaWkpBw8e5MSJE7z00ktWl+U3bDZb\nk7+p7b6p2O12ysrKPI/LysrOueRLR/Pdd98xceJEfvnLX3LnnXdaXY4lPvjgA/Lz8xkwYABpaWls\n2bKFadOmWV2WZRwOBw6Hg5EjRwIwadIkdu7caXFV1ti+fTs33XQTISEhBAUFcdddd/HBBx9YXZal\n+vbt67k6SkVFBVddddVFX9/um8qIESNwuVyUlpZSXV3NmjVrSElJsbosSxhjSE9PJzIykocfftjq\nciyzZMkSysrKKCkpITc3lzFjxniyUh1Rv379CA0N5fPPPwfgnXfeYciQIRZXZY2IiAi2bdvGqVOn\nMMbwzjvvEBkZaXVZlmoImAOsWrWq6T9GW5S/D1BvvfWWGTRokBk4cKBZsmSJ1eVY5r333jM2m81E\nR0ebmJgYExMTYzZs2GB1WZYqLCw048ePt7oMy33yySdmxIgR5rrrrjM///nPzZEjR6wuyTJPPfWU\niYyMNEOHDjXTpk0z1dXVVpfkM3fffbe5+uqrTXBwsHE4HOb55583hw8fNgkJCcbpdJrExETzzTff\nXPQzFH4UERGvafe7v0RExHfUVERExGvUVERExGvUVERExGvUVERExGvUVERExGvUVKTDa+tL1Sxf\nvpxTp055fXmvv/56h57KQfyTcirS4V1++eUcP368zT5/wIABbN++nZCQEJ8sT8RK2lIRuYAvvviC\ncePGMWLECH72s5+xd+9eAGbMmMHcuXO5+eabGThwIOvWrQOgrq6O2bNnM3jwYMaOHcvtt9/OunXr\nWLFiBQcPHmT06NEkJCR4Pv+f/umfiImJ4cYbb+Srr746b/kPP/wwCxcuBODtt9/mlltuOe81L774\nIg8++OBF6zpbaWkpERERzJw5k2uvvZZf/OIXbNy4kZtvvplBgwbx8ccft/6LE/FB8l/Er3Xv3v28\nsTFjxhiXy2WMMWbbtm1mzJgxxhhjpk+fblJTU40xxhQXF5vw8HBjjDGvvvqqSU5ONsYYc+jQIXPl\nlVeadevWGWOMCQsLM4cPH/Z8ts1mM2+88YYxxpjf/OY3ZtGiRect/+TJk2bIkCFmy5Yt5tprrzX7\n9u077zUvvviimTNnzkXrOltJSYkJCgoyn332mamrqzPXX3+9mTVrljHGmLy8PHPnnXc2+V2JNCXI\n6qYm4m9OnDjBhx9+yOTJkz1j1dXVQP2lvxsuqDd48GDP3BLvv/8+qampQP1VXUePHt3o53fp0oXb\nb78dgOuvv55Nmzad95of//jH/PGPf2TUqFE8/fTTDBgw4KI1N1bXDw0YMMBzscghQ4Z45goZOnQo\npaWlF12GSHOoqYj8QF1dHVdccQW7du264PNdunTx3DffH5K02WznzM1iLnKoMjg42HO/U6dO1NTU\nXPB1u3fvpk+fPs2eVO5Cdf1Q165dz1l2w3suVodIS+iYisgP9OjRgwEDBrB27Vqg/gd69+7dF33P\nzTffzLp16zDG8OWXX/I///M/nucuv/xyjh071qIa9u/fz+9//3t27drFhg0b+Oijj857zcUal4hV\n1FSkwzt58iShoaGe2/Lly3nppZfIyckhJiaGoUOHkp+f73n92TPfNdyfOHEiDoeDyMhIpk6dyvDh\nwz3zvN93330kJSV5DtT/8P0/nEnPGENGRga/+93v6NevHzk5OWRkZHh2wTX23sbu//A9jT3WLKni\nDTqlWMRLvv32W7p168bhw4e54YYb+OCDD5qcJU+kvdExFREvueOOOzhy5AjV1dX89re/VUORDklb\nKiIi4jU6piIiIl6jpiIiIl6jpiIiIl6jpiIiIl6jpiIiIl6jpiIiIl7z/wEE5FfrKXFmswAAAABJ\nRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5ba4110>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZwAAAEPCAYAAAB2s3LUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1cVGX+//HXKGibiialrDOUNwyL3HiHItVu4Q2IuKKJ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bee2118jPz2fAgAEMGjTIuv1/\n/OMf9OrVi7vvvpuffvrpiv2vWbOGxx9//Jr7rConJwcvLy8efvhhfve73/HQQw+RnJzMvffei6en\nJ3v27LHH1ySEBI4QN+vRRx/ltddeY+/evSxbtoxp06ZZlxUWFvLVV1/x0Ucf8fTTTwPw4YcfcuTI\nEQ4ePMi6dev4z3/+g8Fg4PHHH6dTp06kpqayY8cOAM6ePcvdd9/NN998w3333cdbb711xf4vH37n\navu83OHDh/nb3/7G//73P77//nvi4+P56quvePnll1m0aFFdfTVCVNNkx1IToi6cOXOG//znP4wZ\nM8baVl5eDmhBcGlAw+7du1vnC/nyyy+JjIwEtBF3BwwYUOP2W7RowbBhwwDw9/cnJSXlmvXUtM/L\ndenSxToQp4+Pj3VuF19fX3Jycq65DyFqSwJHiJtQWVlJu3bt2Ldv31WXt2jRwvr80uVSg8FQba6d\na11GdXZ2tj5v1qwZFRUVNmu62j4v17Jly2rbvbTO9e5DiNqQU2pC3AQXFxe6dOnChg0bAO0Hfv/+\n/ddc595772Xjxo0opTh27BifffaZdVmbNm04ffr0DdUg/X5EQyGBI8QNOHfuHO7u7tbHq6++yrvv\nvktMTAy9evXC19eXxMRE6/urXl+59DwiIgKTyYS3tzfjx4+nT58+tG3bFtCuB4WGhlo7DVy+/tWm\nS7i8vabnl69T0+umPiWDsB/pFi2EDs6ePUurVq04ceIE/fv3Z9euXdc1Y6IQDZlcwxFCB3/84x85\ndeoU5eXlzJ07V8JGNAlyhCOEEMIh5BqOEEIIh5DAEUII4RASOEIIIRxCAkcIIYRDSOAIIYRwCAkc\nIYQQDvH/Aft+XWP0flPgAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5832130>"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_3.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_3.ipynb new file mode 100644 index 00000000..ac51cc35 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_3.ipynb @@ -0,0 +1,588 @@ +{
+ "metadata": {
+ "name": "chapter 3.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3:Coplanar Parallel forces"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.1,Page No.48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=L_BC=L_CD=L_DA=2 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_B=10 #N\n",
+ "F_C=20 #N\n",
+ "F_D=30 #N\n",
+ "F_A=40 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Taking Moment at point A\n",
+ "#As the Forces F_A & F_B pass through point A,these Forces will be zero\n",
+ "#Resultant Moment of all Forces\n",
+ "M_A=-(-F_D*L_DA-F_C*L_CD) #N.m\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant Moment about point A is\",round(M_A,2),\"N.m (Anticlockwise)\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant Moment about point A is 100.0 N.m (Anticlockwise)\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.2,Page No.50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "F_A=100 #N\n",
+ "OCB=60 #Degrees\n",
+ "L_OC=3 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Triangle OBC is a right Angled triangle\n",
+ "L_OB=L_OC*sin(60*pi*180**-1)\n",
+ "\n",
+ "#Moment of force 100 #N about o\n",
+ "M_O=F_A*L_OB #Nm\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of Force about O is\",round(M_O,2),\"Nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of Force about O is 259.81 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3,Page No.54"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=30 #cm\n",
+ "L_BC=40 #cm\n",
+ "\n",
+ "#Loads\n",
+ "F_A=100 #N\n",
+ "F_B=200 #N\n",
+ "F_C=300 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#resultant of all forces\n",
+ "R=F_A+F_B+F_C #N\n",
+ "\n",
+ "#Let resultant be acting at distance x from point A\n",
+ "\n",
+ "#Now taking moments at point A\n",
+ "M_A=-(-F_C*(L_AB+L_BC)-F_B*L_AB) #N.m\n",
+ "\n",
+ "#Moment of resultant R about A\n",
+ "#M_R=R*x\n",
+ "\n",
+ "#But algebraic sum of moments of all forces about A = Moment of resultant about A\n",
+ "x=M_A*R**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant is\",round(R,2),\"N\"\n",
+ "print\"Distance of resultant from point A\",round(x,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant is 600.0 N\n",
+ "Distance of resultant from point A 45.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.4,Page No.54"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=4 #m\n",
+ "L_CD=3 #m\n",
+ "L_AD=7 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_A=50 #N\n",
+ "F_D=100 #N\n",
+ "R=250 #N #Resultant \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Part-1\n",
+ "#Magnitude of Force F_B\n",
+ "F=R-F_A-F_D #N\n",
+ "\n",
+ "#Part-2\n",
+ "#Distance from pt A\n",
+ "#Taking Moment of all forces at pt A\n",
+ "#M_A=0\n",
+ "#Now moments of all forces = Moment of Resultant\n",
+ "#After simplifying further we get\n",
+ "x=(R*L_AC-F_D*L_AD)*F_B**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force F is\",round(F,2),\"N\"\n",
+ "print\"Distance of force f from A is\",round(x,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force F is 100.0 N\n",
+ "Distance of force f from A is 1.5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.5,Page No.55"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=0.9 #m\n",
+ "L_BC=1.2 #m\n",
+ "L_CD=0.75 #m\n",
+ "L=L_AB+L_BC+L_CD #m\n",
+ "\n",
+ "#Forces\n",
+ "F_A=100 #N\n",
+ "F_B=150 #N\n",
+ "F_C=25 #N\n",
+ "F_D=200 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Part-1\n",
+ "#Magnitude of Resultant\n",
+ "R=F_A-F_B-F_C+F_D #N\n",
+ "\n",
+ "#Part-2\n",
+ "#Let x be the distance of Resultant from A\n",
+ "x=-(F_B*L_AB+F_C*(L_AB+L_BC)-F_D*L)*R**-1 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant\",round(R,2),\"N\"\n",
+ "print\"Distance of Resultant from x is\",round(x,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant 125.0 N\n",
+ "Distance of Resultant from x is 3.06 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.6,Page No.57"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=L_CD=1 #m\n",
+ "L_DB=1.5 #m\n",
+ "L=3.5 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_A=32.5 #N\n",
+ "F_C=150 #N\n",
+ "F_D=67.5 #N\n",
+ "F_B=10 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#Single Force ststem\n",
+ "R=-(F_A-F_C+F_D-F_B) #N\n",
+ "\n",
+ "#Let x be the distance of Resultant from A\n",
+ "x=-(F_C*L_AC-F_D*(L_AC+L_CD)+F_B*L)*R**-1 #m\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Single Force is given By R\n",
+ "\n",
+ "#Now moment of couple at pt A\n",
+ "M_A=-R*round(x,2) #N.m\n",
+ "\n",
+ "#Part-3\n",
+ "\n",
+ "#Now couple at B\n",
+ "L_BE=L+x\n",
+ "M_B=R*round(L_BE,3) #N.m\n",
+ "\n",
+ "#Result\n",
+ "print\"Single Force is\",round(R,2),\"N\"\n",
+ "print\"Couple at A\",round(M_A,2),\"N.m\"\n",
+ "print\"Couple at B\",round(M_B,2),\"N.m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Single Force is 60.0 N\n",
+ "Couple at A 49.8 N.m\n",
+ "Couple at B 160.02 N.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.7,Page No.59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=L_DE=0.6 #m\n",
+ "L_BC=0.9 #m\n",
+ "L_CD=1.2 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_A=4 #N\n",
+ "F_B=8 #N\n",
+ "F_C=8 #N\n",
+ "F_D=16 #N\n",
+ "F_E=12 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resultant Of All Forces\n",
+ "R=-F_A+F_B-F_C+F_D-F_E #N\n",
+ "\n",
+ "#As the Resultatn Force is zero,tere will be two possibilities.The system will have a resultant coup\n",
+ "#Algebraic sum of moments of all forces about A\n",
+ "M_A=-F_B*L_AB+F_C*(L_AB+L_BC)-F_D*(L_AB+L_BC+L_CD)+F_E*(L_AB+L_BC+L_CD+L_DE) #N.m\n",
+ "\n",
+ "#As the algebraic sum of moments of all forces is not zero,the ststem will have couple of magnitude 3.6 #N.m\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant of Parallel Forces is\",round(R,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant of Parallel Forces is 0.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.8,Page No.59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=L_DE=2 #m\n",
+ "L_BC=0.5 #m\n",
+ "L_CD=0.5 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_A=20 #N\n",
+ "F_B=20 #N\n",
+ "F_C=40 #N\n",
+ "F_D=30 #N\n",
+ "F_E=10 #N\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resultant Of All Forces\n",
+ "R=-F_A+F_B+F_C-F_D-F_E #N\n",
+ "\n",
+ "#As the Resultant is zero and also the resultant force on the body is zero,the body will be in equilibrium\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant of Parallel Forces is\",round(R,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant of Parallel Forces is 0.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.9,Page No.60"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Distances\n",
+ "L_OA=200 #mm\n",
+ "L_OB=100 #mm\n",
+ "L_BC=200 #mm\n",
+ "\n",
+ "COA=90 #Degrees\n",
+ "\n",
+ "#Forces\n",
+ "F_A=2000 #N\n",
+ "F_B=1500 #N\n",
+ "F_C=1000 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resolving FOrce A in two components\n",
+ "F_A1=F_A*cos(30*pi*180**-1) #Component along x-axis\n",
+ "F_A2=F_A*sin(30*pi*180**-1) #Component along y-axis\n",
+ "\n",
+ "#Resolving all forces along X-axis\n",
+ "F_x=F_A1-F_B-F_C\n",
+ "F_y=F_A2\n",
+ "\n",
+ "#Resultant \n",
+ "R=(F_x**2+F_y**2)**0.5 #N\n",
+ "\n",
+ "#Taking Moments of all forces about pt O\n",
+ "M_o=-(F_y*L_OA-F_B*L_OB-F_C*(L_BC+L_OB)) #N.mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Equivalent system through point O is:Resultant\",round(R,2),\"N\"\n",
+ "print\" :Moment\",round(M_o,2),\"N.mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Equivalent system through point O is:Resultant 1260.85 N\n",
+ " :Moment 250000.0 N.mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.10,Page No.61"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=1 #m\n",
+ "L_CB=1.5 #m\n",
+ "L_CD=0.8 #m\n",
+ "L_DB=0.7 #m\n",
+ "L=2.5 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_C=4000 #N\n",
+ "F_B=2500 #N\n",
+ "M_D=2000 #N*m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resultant of all forces\n",
+ "R=-F_C+F_B #N\n",
+ "\n",
+ "#As the Force is acting in downward direction,so negative sign\n",
+ "R2=-R\n",
+ "\n",
+ "#Sum of Moments of all Forces\n",
+ "M=(F_C*L_AC+M_D-F_B*L)\n",
+ "M2=-M #Anticlockwise\n",
+ "\n",
+ "#Now distance of resultant from x is\n",
+ "x=(F_C*L_AC+M_D-F_B*L)*R2**-1\n",
+ "\n",
+ "#Negative sign indicates that it acts left of A\n",
+ "x2=-x\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant of the system\",round(R2,2),\"N\"\n",
+ "print\"Equivalent system through A\",round(M2,2),\"N.m (Anticlockwise)\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant of the system 1500.0 N\n",
+ "Equivalent system through A 250.0 N.m (Anticlockwise)\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_4.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_4.ipynb new file mode 100644 index 00000000..ce3902bb --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_4.ipynb @@ -0,0 +1,1023 @@ +{
+ "metadata": {
+ "name": "chapter 4.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4:Conditions Of Equilibrium"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1,Page No.68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "F1=100 #N #Force acting on body\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#As the Force F1 & F2 are acting on the same body and at same point but in opposite directions\n",
+ "#These two forces will be equal\n",
+ "F2=F1\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force F2 is\",round(F2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force F2 is 100.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.2,Page No.68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Force\n",
+ "F3=400 #N\n",
+ "theta1=30 #Degree #Angle made by forces F2 & F3\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#By Lami's Theorem\n",
+ "#F1*sin(120)**-1=F2*sin(120)**-1=F3*sin(120)**-1\n",
+ "F2=F3*sin(120*pi*180**-1)**-1*sin(120*pi*180**-1)\n",
+ "F1=F2*sin(120*pi*180**-1)**-1*sin(120*pi*180**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Forces:F1\",round(F1,2),\"N\"\n",
+ "print\" :F2\",round(F2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Forces:F1 400.0 N\n",
+ " :F2 400.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.3,Page No.69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#FOrces\n",
+ "F1=250 #N\n",
+ "F3=1000 #N\n",
+ "L_AB=1 #m #Length of AB\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Sum of forces in y direction\n",
+ "F2=F1+F3 #N\n",
+ "\n",
+ "#Moment at pt A\n",
+ "#-F2*L_AB+F3*(L_AB+x)=0\n",
+ "#After further simplifying we get\n",
+ "x=F2*L_AB*F3**-1-L_AB\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Force F2 is\",round(F2,2),\"N\"\n",
+ "print\"Distance of F2 From F3 is\",round(x,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Force F2 is 1250.0 N\n",
+ "Distance of F2 From F3 is 0.25 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4,Page No.69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "F1=18 #N\n",
+ "F2=22.5 #N\n",
+ "F3=15 #N\n",
+ "F4=30 #N\n",
+ "\n",
+ "#Angles\n",
+ "theta2=45 #Degree\n",
+ "theta3=90 #Degree\n",
+ "theta4=30 #Degree\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Sum of Forces in x-direction\n",
+ "#F1+F2*cos(45)-F4*cos(30)-F5*cos(theta5)=0\n",
+ "#After further simplifying we get\n",
+ "#F5*cos(theta5)=F1+F2*cos(45)-F4*cos(30)....................1\n",
+ "\n",
+ "#Sum of Forces in y-direction\n",
+ "#F3+F2*sin(45)-F4*sin(30)-F5*sin(theta5)=0\n",
+ "#After further simplifying we get\n",
+ "#F5*sin(theta5)=F3+F2*sin(45)-F4*sin(30)....................2\n",
+ "\n",
+ "#Dividing equation 2 and 1 we get\n",
+ "X=F3+F2*sin(45*pi*180**-1)-F4*sin(30*pi*180**-1)\n",
+ "Y=F1+F2*cos(45*pi*180**-1)-F4*cos(30*pi*180**-1)\n",
+ "theta=arctan((X)*(Y)**-1)*(pi**-1*180)\n",
+ "\n",
+ "F5=(F1+F2*cos(45*pi*180**-1)-F4*cos(30*pi*180**-1))*(cos(theta*pi*180**-1))**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of force F5 is\",round(F5,2),\"N\"\n",
+ "print\"Direction of F5 is\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of force F5 is 17.78 N\n",
+ "Direction of F5 is 63.51 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.5,Page No.71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables \n",
+ "\n",
+ "#Forces\n",
+ "F_C=1500 #N\n",
+ "theta_C=60 #degrees\n",
+ "\n",
+ "F_B=1805 #N\n",
+ "theta_B=33.67 #Degrees\n",
+ "\n",
+ "F_A=2240 #N\n",
+ "theta_A=63.43 #Degrees\n",
+ "\n",
+ "#Distances of forces from D\n",
+ "L_DC=2 #m\n",
+ "L_DB=3 #m\n",
+ "L_DE=4 #m\n",
+ "L_DO=3 #m\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#NEt forces along Y-axis\n",
+ "R_y=-F_C*cos(theta_C*pi*180**-1)-F_B*cos(theta_B*pi*180**-1)+F_A*cos(theta_A*pi*180**-1)\n",
+ "\n",
+ "#Net Forces along x-axis\n",
+ "R_x=F_C*sin(theta_C*pi*180**-1)-F_B*sin(theta_B*pi*180**-1)-F_A*sin(theta_A*pi*180**-1)\n",
+ "\n",
+ "#Resultant Forces\n",
+ "R=(R_x**2+R_y**2)**0.5 #N\n",
+ "\n",
+ "#Angle made by resultant\n",
+ "theta=arctan(R_y*R_x**-1)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Net Moment about point O\n",
+ "M_O=-F_C*cos(theta_C*pi*180**-1)*L_DO-F_B*cos(theta_B*pi*180**-1)*L_DO-F_C*sin(theta_C*pi*180**-1)*L_DC+F_B*sin(theta_B*pi*180**-1)*L_DB+F_A*sin(theta_A*pi*180**-1)*L_DE\n",
+ "\n",
+ "\n",
+ "#Moment of R about O\n",
+ "\n",
+ "#X-intercept\n",
+ "x=M_O*-R_x**-1\n",
+ "\n",
+ "#Y-intercept\n",
+ "y=M_O*-R_y**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Resultant is\",round(R,2),\"N\"\n",
+ "print\"X intercept is\",round(x,2),\"m\"\n",
+ "print\"Y intercept is\",round(y,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resultant is 2114.37 N\n",
+ "X intercept is 0.97 m\n",
+ "Y intercept is 1.33 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.6,Page No.73"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "theta=60 #Degrees #Angle made by chain with ceiling\n",
+ "W=5 #N #Weight of lamp\n",
+ "theta2=120 #Degree #Angle made by chain with cord\n",
+ "theta3=150 #Degree #Angle made by chain with wire holding lamp\n",
+ "theta4=90 #Degree #Angle made by cord with wire holding lamp\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt T1=tension in cord\n",
+ "#T2=tension in chain\n",
+ "\n",
+ "#By lami's theorem\n",
+ "#T1*sin(theta3)**-1=T2*sin(theta4)**-1=W*sin(theta2)**-1\n",
+ "\n",
+ "T1=W*sin(theta2*pi*180**-1)**-1*sin(theta3*pi*180**-1) #N\n",
+ "T2=W*sin(theta2*pi*180**-1)**-1*sin(theta4*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Tension in chain is\",round(T2,2),\"N\"\n",
+ "print\"Tension in cord is\",round(T1,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in chain is 5.77 N\n",
+ "Tension in cord is 2.89 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.7,Page No.74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Forces\n",
+ "F_P=1000 #N\n",
+ "F_Q=1500 #N\n",
+ "F_R=1000 #N\n",
+ "F_S=500 #N\n",
+ "\n",
+ "theta=90 #Degree #Angle made by F_P with PS\n",
+ "theta2=60 #Degree #Angle made by F_Q with QS\n",
+ "theta3=45 #Degree #Angle made by F_R with RS\n",
+ "theta4=30 #Degree #Angle made by F_S with PS\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resultant of forces along x-axis\n",
+ "R_x=-F_Q*cos(theta2*pi*180**-1)-F_R*cos(theta3*pi*180**-1)-F_S*cos(theta4*pi*180**-1)\n",
+ "\n",
+ "#Resultant of forces along y-axis\n",
+ "R_y=-F_P*sin(theta*pi*180**-1)-F_Q*sin(theta2*pi*180**-1)-F_R*sin(theta3*pi*180**-1)-F_S*sin(theta4*pi*180**-1)\n",
+ "\n",
+ "#Resultant\n",
+ "R=(R_x**2+R_y**2)**0.5 #N\n",
+ "\n",
+ "#Direction of resultant\n",
+ "theta=arctan(R_y*R_x**-1)*(180*pi**-1) #Degree\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Resultant is\",round(R,2),\"N\"\n",
+ "print\"Direction of Resultant is\",round(theta,2),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Resultant is 3764.97 N\n",
+ "Direction of Resultant is 59.87 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.9,Page No.78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=100 #N #Weight of roller\n",
+ "L_BC=10 #cm #Radius of roller\n",
+ "L_AB=20 #cm #Length of tie rod\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arcsin(L_BC*L_AB**-1)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "F=W*cos(theta*pi*180**-1)**-1 #N #Force in tie rod\n",
+ "R_C=F*sin(theta*pi*180**-1)\n",
+ "\n",
+ "#Result \n",
+ "print\"Force in tie rod is\",round(F,2),\"N\"\n",
+ "print\"Reaction at C is\",round(R_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force in tie rod is 115.47 N\n",
+ "Reaction at C is 57.74 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.11,Page No.79"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=120 #N #Weight of ball\n",
+ "theta=30 #Degrees #angle made by groove\n",
+ "theta2=60 #Degrees #Angle made by groove\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A and B respectively\n",
+ "#by LAmi's theorem\n",
+ "#R_B*sin(120)**-1=R_A*sin(150)**-1=W*sin(90)**-1\n",
+ "\n",
+ "R_C=W*sin(90*pi*180**-1)**-1*sin(120*pi*180**-1) #N\n",
+ "R_A=W*sin(90*pi*180**-1)**-1*sin(150*pi*180**-1) #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"N\"\n",
+ "print\"Reaction at c is\",round(R_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 60.0 N\n",
+ "Reaction at c is 103.92 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.11(A),Page No.81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=100 #N #weight of roller\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A and B respectively\n",
+ "theta=45 #Degrees #Angle made by R_B with horizontal\n",
+ "theta2=30 #Degrees #Angle made by R_A with horizontal\n",
+ "\n",
+ "#by LAmi's theorem\n",
+ "#R_B*sin(120)**-1=R_A*sin(135)**-1=W*sin(105)**-1\n",
+ "\n",
+ "R_B=W*sin(105*pi*180**-1)**-1*sin(120*pi*180**-1) #N\n",
+ "R_A=W*sin(105*pi*180**-1)**-1*sin(135*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"N\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 73.21 N\n",
+ "Reaction at B is 89.66 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.12,Page No.81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=100 #N #Weight of roller\n",
+ "F=200 #N #Horizontal Force\n",
+ "L_AB=10 #cm #LEngth of bar AB\n",
+ "L_BC=5 #cm #radius of roller\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arcsin(L_BC*L_AB**-1)*(pi**-1*180)\n",
+ "\n",
+ "#LEt R_C be the reaction at c\n",
+ "\n",
+ "#sum of Forces along x-axis\n",
+ "F_AB=F*cos(theta*pi*180**-1)**-1 #N\n",
+ "\n",
+ "#sum of forces along y-axis\n",
+ "R_C=W+F_AB*sin(theta*pi*180**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Force in bar AB is\",round(F_AB,2),\"N\"\n",
+ "print\"Reaction at C is\",round(R_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force in bar AB is 230.94 N\n",
+ "Reaction at C is 215.47 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.14,Page No.84"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=1000 #N #Weight of rollers\n",
+ "theta=30 #Degree #Angle made by groove\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A,R_B,R_C,R_D be the reactions at A,B,C,D respectively\n",
+ "\n",
+ "#Roller-2\n",
+ "R_D=W*sin(90*pi*180**-1)*sin(150*pi*180**-1) #N\n",
+ "R_A=W*sin(90*pi*180**-1)*sin(120*pi*180**-1) #N\n",
+ "\n",
+ "#ROller-1\n",
+ "R_B=(W+R_D*sin(theta*pi*180**-1))*sin(60*pi*180**-1)**-1 #N\n",
+ "R_C=R_B*cos(60*pi*180**-1)+R_D*cos(theta*pi*180**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Reactions at A:R_A\",round(R_A,2),\"N\"\n",
+ "print\" B:R_B\",round(R_B,2),\"N\"\n",
+ "print\" C:R_C\",round(R_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactions at A:R_A 866.03 N\n",
+ " B:R_B 1443.38 N\n",
+ " C:R_C 1154.7 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.15,Page No.85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=1000 #N #Weight of each sphere\n",
+ "L_AF=L_BF=L_FD=L_DE=L_CE=25 #cm\n",
+ "L=90 #Width of channel\n",
+ "L_FG=40 #cm\n",
+ "L_EF=L_FD+L_DE #cm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arcsin(L_FG*L_EF**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#LEt R_A,R_B,R_C,R_D be the reactions at A,B,C,D respectively\n",
+ "\n",
+ "#Roller-2\n",
+ "R_D=W*(cos(theta*pi*180**-1))**-1 #N\n",
+ "R_C=R_D*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Roller-1\n",
+ "R_A=R_D*sin(theta*pi*180**-1) #N\n",
+ "R_B=R_D*cos(theta*pi*180**-1)+W #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reactions at A:R_A\",round(R_A,2),\"N\"\n",
+ "print\" B:R_B\",round(R_B,2),\"N\"\n",
+ "print\" C:R_C\",round(R_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactions at A:R_A 1333.33 N\n",
+ " B:R_B 2000.0 N\n",
+ " C:R_C 1333.33 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.16,Page No.87"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=1000 #N #Weight of 2 circular cyclinders\n",
+ "L_AF=L_FC=L_CG=L_GB=15 #cm\n",
+ "W2=2000 #N #Weight of 3rd cyclinder\n",
+ "r2=15 #cm\n",
+ "L_AB=40 #cm\n",
+ "L_AH=L_HB=20 #cm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arcsin(L_AH*(L_AF+L_FC)**-1)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Let R_G,R_F,R_D,R_E be the reactions at G,F,D,E \n",
+ "\n",
+ "R_F=W2*(2*cos(theta*pi*180**-1))**-1 #N\n",
+ "R_G=R_F #N\n",
+ "\n",
+ "#Roller-1\n",
+ "\n",
+ "R_D=W+R_F*cos(theta*pi*180**-1) #N\n",
+ "S=R_F*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Roller-2\n",
+ "\n",
+ "R_E=W+R_G*cos(41.81*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at E is \",round(R_E,2),\"N\"\n",
+ "print\"Reactions at D is\",round(R_D,2),\"N\"\n",
+ "print\"Force S in the string is \",round(S,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at E is 2000.0 N\n",
+ "Reactions at D is 2000.0 N\n",
+ "Force S in the string is 894.43 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.17,Page No.88"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "L_OB=L_OC=L_OA=40 #cm #Radius of roller\n",
+ "h=20 #cm #Height of block\n",
+ "L_OD=L_OA-h #cm #Length \n",
+ "W=3000 #N #Weight of roller\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_B be the reaction at B\n",
+ "L_BD=((L_OB**2-L_OD**2)**0.5) #cm\n",
+ "theta=arctan(L_BD*(L_OC+L_OD)**-1)*(180*pi**-1) #degree\n",
+ "\n",
+ "#Sum of all vertical Forces\n",
+ "R_B=W*(cos(theta*pi*180**-1))**-1 #N\n",
+ "\n",
+ "#Sum of all horizontal Forces\n",
+ "P=R_B*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at B is\",round(R_B,2),\"N\"\n",
+ "print\"Horizontal Reaction at C is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at B is 3464.1 N\n",
+ "Horizontal Reaction at C is 1732.05 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.18,Page No.89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "#Declaration Of Variables\n",
+ "L_OB=L_OC=L_OA=40 #cm #Radius of roller\n",
+ "h=20 #cm #Height of block\n",
+ "L_OD=L_OA-h #cm #Length \n",
+ "W=3000 #N #Weight of roller\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arccos(L_OD*L_OB**-1)*(pi**-1*180) #N\n",
+ "\n",
+ "R_B=W*(cos(theta*pi*180**-1))**-1 #N\n",
+ "P=R_B*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#LEt P_min be the least Force applied\n",
+ "#let alpha be the angle made by least force\n",
+ "#P_min=W*L_BD*L_BC**-1\n",
+ "\n",
+ "L_BD=((L_OB**2-L_OD**2)**0.5) #cm\n",
+ "\n",
+ "#But L_BC=L_BO*sin(alpha) \n",
+ "\n",
+ "#Force P will be min when sin(Alpha) is max.\n",
+ "#thus sin(alpha)=90 or sin(alpha)=0. therefore sub value in above equation,we get min Force\n",
+ "#LEt P_min be the Least Force to be applied\n",
+ "P_min=W*L_BD*(L_OB*1)**-1 #N\n",
+ "\n",
+ "#Direction of least force is right angle to L_BO\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum least force is\",round(P_min,2),\"N\"\n",
+ "print\"Magnitude of force applied horizontally at centre of roller\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum least force is 2598.08 N\n",
+ "Magnitude of force applied horizontally at centre of roller 5196.15 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.19,Page No.91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "L_BC=25 #cm \n",
+ "L_AB=40 #cm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let alpha be the angle made by force F so that body will be in equilibrium\n",
+ "#Theta is angle made by R_A with horizontal,so Force F has to make same angle with horizontal\n",
+ "alpha=arctan(L_AB*L_BC**-1)*(pi**-1*180) #degrees\n",
+ "theta=alpha\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle theta is\",round(theta,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle theta is 57.99 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.20,Page No.91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "L_AB=1.6 #m\n",
+ "L_BD=1.2 #m\n",
+ "L_BC=0.8 #m\n",
+ "L_CD=0.4 #m\n",
+ "F_C=200 #N #Force t C\n",
+ "theta=60 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "\n",
+ "\n",
+ "#Sum of all forces in x-direction\n",
+ "R_Bx=F_C #N\n",
+ "\n",
+ "L_BD2=L_BD*sin(theta*pi*180**-1) #m\n",
+ "L_DD=L_BD*cos(theta*pi*180**-1) #m\n",
+ "L_BC2=sin(theta*pi*180**-1)*L_BC #m\n",
+ "\n",
+ "R_D=F_C*L_BC2*L_DD**-1 #N\n",
+ "R_By=R_D\n",
+ "\n",
+ "#Resultant reaction at B\n",
+ "R_B=(R_Bx**2+R_By**2)**0.5 #N\n",
+ "\n",
+ "#Sum of moments at A\n",
+ "M_A=R_By*L_AB\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Couple to be apllied to hold the system is\",round(M_A,2),\"N\"\n",
+ "print\"Magnitude of pin reaction at B\",round(R_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Couple to be apllied to hold the system is 369.5 N\n",
+ "Magnitude of pin reaction at B 305.51 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.21,Page No.93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "W=2000 #N #Weight of chain\n",
+ "L_AB=2 #m\n",
+ "F_B=320 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#By LAmi's theorem\n",
+ "#F_A*sin(90)=W*sin(180-theta)**-1=F_B*sin(90+theta)**-1\n",
+ "#But sin(180-theta)=sin(theta),sin(90+theta)=cos(theta)\n",
+ "#Tan(theta)=W*F_B**-1\n",
+ "theta=arctan(W*F_B**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "F_A=W*(sin(theta*pi*180**-1))**-1 #N\n",
+ "#Let x be the lateral distance\n",
+ "x=cos(theta*pi*180**-1)*2\n",
+ "\n",
+ "#Result\n",
+ "print\"Force in the chain is\",round(F_A,2),\"N\"\n",
+ "print\"Horizontal displacement is\",round(x,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force in the chain is 2025.44 N\n",
+ "Horizontal displacement is 0.32 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_5.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_5.ipynb new file mode 100644 index 00000000..4254b362 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_5.ipynb @@ -0,0 +1,845 @@ +{
+ "metadata": {
+ "name": "chapter 5.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5:Support Reactions"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.1,Page No.101"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L=6 #m\n",
+ "L_AC=2 #m\n",
+ "L_AD=4 #m\n",
+ "L_CD=L_DB=2 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_C=3 #KN\n",
+ "F_D=6 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=F_C+F_D\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_D*(L_AC+L_CD)+F_C*L_AC)*L**-1 #KN\n",
+ "R_A=(F_C+F_D)-R_B #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 4.0 KN\n",
+ "Reaction at B is 5.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.2,Page No102 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=6 #m\n",
+ "L_AB=9 #m\n",
+ "\n",
+ "#Load\n",
+ "w=10 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_AC\n",
+ "#Taking Moment at pt A\n",
+ "R_B=w*L_AC*L_AC*2**-1*L_AB**-1 #KN\n",
+ "R_A=w*L_AC-R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 40.0 KN\n",
+ "Reaction at B is 20.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.3,Page No.103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=2 #m\n",
+ "L_CD=L_DB=4 #m\n",
+ "L=10 #m #span\n",
+ "\n",
+ "#Forces & Loads\n",
+ "F_C=50 #KN\n",
+ "F_D=40 #KN\n",
+ "w=10 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_CD-F_C-F_D\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_C*L_AC+F_D*(L_AC+L_CD)+w*L_CD*(L_CD*2**-1+L_AC))*L**-1 #KN\n",
+ "R_A=w*L_CD+F_C+F_D-R_B #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 80.0 KN\n",
+ "Reaction at B is 50.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.4,Page No.103 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Length\n",
+ "L_AB=9 #m\n",
+ "\n",
+ "#Load\n",
+ "w=900 #N/m #u.v.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_AB*2**-1\n",
+ "#Taking Moment at pt A\n",
+ "R_B=w*L_AB*2**-1*2*3**-1*L_AB*L_AB**-1 #KN\n",
+ "R_A=w*L_AB*2**-1-R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 1350.0 KN\n",
+ "Reaction at B is 2700.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5,Page No.104 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Length\n",
+ "L_AB=5 #m\n",
+ "\n",
+ "#Loads\n",
+ "w1=800 #N/m #At A\n",
+ "w2=1600 #N/m #At B\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w2*2**-1*L_AB*2**-1+w1*L_AB\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(w1*L_AB*L_AB*2**-1+w2*2**-1*L_AB*2**-1*2*3**-1*L_AB)*L_AB**-1 #KN\n",
+ "R_A=w2*2**-1*L_AB*2**-1+w1*L_AB-R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 2666.67 KN\n",
+ "Reaction at B is 3333.33 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.6,Page No.105 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#LEt the ends of beams be C and D respectively\n",
+ "#Lengths\n",
+ "L_CA=3 #m\n",
+ "L_AB=8 #m\n",
+ "L_BD=2 #m\n",
+ "\n",
+ "#Let the Force 2000 acting be E\n",
+ "L_AE=5 #m\n",
+ "L_EB=3 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_C=800 #N\n",
+ "F_E=2000 #N\n",
+ "F_D=1000 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=(F_C+F_E+F_D)\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_E*L_AE+F_D*(L_BD+L_AB)-F_C*L_CA)*L_AB**-1 #KN\n",
+ "R_A=(F_C+F_E+F_D)-R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 1600.0 KN\n",
+ "Reaction at B is 2200.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.7,Page No.106 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AB=4 #m\n",
+ "L_BC=2 #m\n",
+ "L_AC=6 #m\n",
+ "\n",
+ "#Loads\n",
+ "F_C=2 #KN\n",
+ "w=2 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=w*L_AC\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_C*L_AC+w*L_AC*L_AC*2**-1)*L_AB**-1 #KN\n",
+ "R_A=w*L_AC-R_B+F_C #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 2.0 KN\n",
+ "Reaction at B is 12.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.8,Page No.106 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#lengths\n",
+ "L_AC=20 #cm\n",
+ "L_CD=L_EB=40 #cm\n",
+ "L_DE=70 #cm\n",
+ "L_AB=L_AC+L_CD+L_EB+L_DE #cm\n",
+ "\n",
+ "#Forces\n",
+ "F_C=50 #N\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=20*sin(pi*180**-1*60) #N\n",
+ "F_D2=20*cos(pi*180**-1*60) #N\n",
+ "\n",
+ "#At pt E\n",
+ "F_E1=30*sin(pi*180**-1*45) #N\n",
+ "F_E2=30*cos(pi*180**-1*45) #N\n",
+ "\n",
+ "#At pt B\n",
+ "F_B1=15*sin(pi*180**-1*80) #N\n",
+ "F_B2=15*cos(pi*180**-1*80) #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=F_C+F_D1+F_E1+F_B1\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_C*L_AC+F_D1*(L_AC+L_CD)+F_E1*(L_AC+L_CD+L_DE)+F_B1*(L_AC+L_CD+L_DE+L_EB))*L_AB**-1\n",
+ "\n",
+ "#Vertical component of A\n",
+ "R_AY=F_C+F_D1+F_E1+F_B1-R_B #N\n",
+ "\n",
+ "#Now horizontal component of A\n",
+ "R_AX=-(F_D2-F_E2+F_B2) #N\n",
+ "#the direction of R_AX will be towards left of A\n",
+ "\n",
+ "#Reaction At A\n",
+ "R=(R_AY**2+R_AX**2)**0.5 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is:R\",round(R,2),\"N\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is:R 60.93 N\n",
+ "Reaction at B is 42.99 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.9,Page No.108"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=2 #m\n",
+ "L_CD=2 #m\n",
+ "L_DB=2 #m\n",
+ "L=6 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=1.5 #KN/m\n",
+ "F_C=5 #KN\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=4*sin(pi*180**-1*(180-135))\n",
+ "F_D2=4*sin(pi*180**-1*(180-135))\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=F_C+F_D1+F_E1+F_B1\n",
+ "#Taking Moment at pt A\n",
+ "R_B=((F_C*L_AC)+w*L_CD*(L_CD*2**-1+L_AC)+F_D1*(L_AC+L_CD))*L**-1\n",
+ "\n",
+ "#Vertical component of A\n",
+ "R_AY=F_C+F_D1+w*L_AC-R_B #KN\n",
+ "\n",
+ "#Now horizontal component of A\n",
+ "R_AX=(F_D2) #KN\n",
+ "#the direction of R_AX will be towards left of A\n",
+ "\n",
+ "#Reaction At A\n",
+ "R=(R_AY**2+R_AX**2)**0.5 #KN\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is:R\",round(R,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is:R 6.43 KN\n",
+ "Reaction at B is 5.05 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.10,Page No.110 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L=10 #m\n",
+ "L_AC=2.5 #m\n",
+ "L_CD=2.5 #m\n",
+ "L_DE=3 #m\n",
+ "L_EB=2 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_C=4 #KN\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=5*sin(pi*180**-1*45)\n",
+ "F_D2=5*cos(pi*180**-1*45)\n",
+ "\n",
+ "F_E=5 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R and R_B be the reactions at A & B respectively\n",
+ "\n",
+ "#Resolving R_B into R_B1 & R_B2\n",
+ "#R_B1*sin(30*pi*180**-1)\n",
+ "#R_B2*cos(30*pi*180**-1)\n",
+ "\n",
+ "#R_A+R_B=F_C+F_D1+F_E\n",
+ "#Taking Moment at pt A\n",
+ "R_B1=(F_C*L_AC+F_D1*(L_AC+L_CD)+F_E*(L_AC+L_CD+L_DE))*(L*cos(pi*180**-1*30))**-1 #KN\n",
+ "R_B2=R_B1*sin(30*pi*180**-1) #KN\n",
+ "\n",
+ "#Vertical component of A\n",
+ "R_AY=(F_C+F_D1+F_E-R_B1*cos(30*pi*180**-1)) #KN\n",
+ "\n",
+ "#Now horizontal component of A\n",
+ "R_AX=(-F_D2+R_B2) #KN\n",
+ "#the direction of R_AX will be towards left of A\n",
+ "\n",
+ "#Reaction At A\n",
+ "R=(R_AY**2+R_AX**2)**0.5 #KN\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is:R\",round(R,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B1,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is:R 5.78 KN\n",
+ "Reaction at B is 7.81 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.11,Page No.111"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=L_CD=5 #m\n",
+ "L_AD=10 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_C=F_D=500 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A & R_B be the reactions at pt A & B respectively\n",
+ "\n",
+ "#Now resolving Forces at pt C & D \n",
+ "F_C1=F_D1=F_C*sin(30*pi*180**-1) #N\n",
+ "F_C2=F_D2=F_D*cos(30*pi*180**-1) #N\n",
+ "\n",
+ "#Now taking Moment at pt A\n",
+ "#But In triangle BDA,\n",
+ "#cos(30*pi*180**-1)=L_AD*L_AB**-1\n",
+ "#After Further simplifying we get\n",
+ "L_AB=L_AD*(cos(30*pi*180**-1))**-1 #m\n",
+ "\n",
+ "R_B=(F_C*L_AC+F_D*L_AD)*L_AB**-1 #N\n",
+ "\n",
+ "#Now sum of components parallel to inclined surface AB\n",
+ "R_AH=F_C1+F_D1 #N\n",
+ "\n",
+ "#Now sum of forces perpendicular to inclined surface AB\n",
+ "R_AV=F_C2+F_D2-R_B #N\n",
+ "\n",
+ "#Reaction At A\n",
+ "R=(R_AV**2+R_AH**2)**0.5 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 544.86 KN\n",
+ "Reaction at B is 649.52 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.12,Page No.113 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AD=80*10**-2 #m\n",
+ "L_AE=L_EF=L_FB=60*10**-2 #m\n",
+ "L_AC=L_CD=40*10**-2 #cm\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "#At pt D\n",
+ "F_D1=100*sin(pi*180**-1*30) #N\n",
+ "F_D2=100*cos(pi*180**-1*30) #N\n",
+ "\n",
+ "#At pt C\n",
+ "F_C1=70*sin(pi*180**-1*45) #N\n",
+ "F_C2=70*cos(pi*180**-1*45) #N\n",
+ "\n",
+ "w=250 #N/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at A & B respectively\n",
+ "#Resolving R_B into R_B1 & R_B2\n",
+ "#Taking Moment at pt A\n",
+ "R_B=-(-F_D2*L_AD+F_C2*L_AC-w*L_EF*(L_EF*2**-1+L_AE))*(cos(20*pi*180**-1)*(L_AE+L_EF+L_FB))**-1 #N\n",
+ "\n",
+ "#Vertical component of A\n",
+ "R_AX=(-F_D2+F_C1+R_B*sin(20*pi*180**-1)) #N\n",
+ "\n",
+ "#Now horizontal component of A\n",
+ "R_AY=(-F_D1-F_C2-R_B*cos(20*pi*180**-1)+w*L_EF) #KN\n",
+ "\n",
+ "##Reaction At A\n",
+ "R=(R_AY**2+R_AX**2)**0.5 #KN\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"The Reaction at supports of an L-bent is\",round(R,3),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Reaction at supports of an L-bent is 51.988 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.13,Page No.115 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#lengths\n",
+ "L_AC=2 #m\n",
+ "L_CD=3 #m\n",
+ "L_DB=2 #m\n",
+ "L=7 #m\n",
+ "\n",
+ "#Loads\n",
+ "w=4 #KN/m\n",
+ "m1=4 #KN/m #moment at pt C\n",
+ "m2=8 #KN/m #moment at pt D\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at pt a nd B respectively\n",
+ "#R_A+R_B=w*L_CD*2**-1\n",
+ "#Taking moment at pt A\n",
+ "R_B=(w*L_CD*2**-1*(2*3**-1*L_CD+L_AC)+m1-m2)*L**-1\n",
+ "R_A=w*L_CD*2**-1-R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is\",round(R_A,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is 3.14 KN\n",
+ "Reaction at B is 2.86 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.14,Page No.116 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AC=L_CD=L_DE=L_EB=2 #m\n",
+ "L=8 #M\n",
+ "\n",
+ "#Forces\n",
+ "#At pt C\n",
+ "F_C1=40*sin(pi*180**-1*60) #KN\n",
+ "F_C2=40*cos(pi*180**-1*60) #KN\n",
+ "\n",
+ "#At pt E\n",
+ "F_E1=50*sin(pi*180**-1*60) #KN\n",
+ "F_E2=50*cos(pi*180**-1*60) #KN\n",
+ "\n",
+ "F_D=80 #KN\n",
+ "w=20 #KN/m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#Taking Moment at pt A\n",
+ "R_B=(F_C1*L_AC+w*L_CD*(L_CD*2**-1+L_AC)+F_D*(L_AC+L_CD)+F_E1*(L_AC+L_CD+L_DE))*(L*cos(30*pi*180**-1))**-1\n",
+ "R_B2=R_B*sin(30*pi*180**-1)\n",
+ "\n",
+ "#Vertical component of A\n",
+ "R_AY=(F_C1+w*L_CD+F_D+F_E1-R_B*cos(30*pi*180**-1)) #KN\n",
+ "\n",
+ "#Now horizontal component of A\n",
+ "R_AX=(-F_C2+F_E2+R_B2) #KN\n",
+ "#the direction of R_AX will be towards left of A\n",
+ "\n",
+ "#Reaction At A\n",
+ "R=(R_AY**2+R_AX**2)**0.5 #KN\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at A is:R\",round(R,2),\"KN\"\n",
+ "print\"Reaction at B is\",round(R_B,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at A is:R 118.43 KN\n",
+ "Reaction at B is 111.01 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_6.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_6.ipynb new file mode 100644 index 00000000..965a3897 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_6.ipynb @@ -0,0 +1,1105 @@ +{
+ "metadata": {
+ "name": "chapter 6.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6:Analysis Of Perfect Frames"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.1,Page No.124"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_A=20 #KN #Force at A\n",
+ "theta=60 #Degrees\n",
+ "alpha=30 #Degrees\n",
+ "L_BC=5 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Length AB\n",
+ "L_AB=L_BC*cos(theta*pi*180**-1) #m\n",
+ " \n",
+ "#Distance of line of action \n",
+ "x=1.25 #m\n",
+ "\n",
+ "#Reactions\n",
+ "R_C=F_A*x*L_BC**-1 #KN\n",
+ "R_B=F_A-R_C #KN\n",
+ "\n",
+ "#Force in AB & BC\n",
+ "F_AB=R_B*(sin(theta*pi*180**-1))**-1 #KN\n",
+ "F_BC=F_AB*cos(theta*pi*180**-1) #KN\n",
+ "\n",
+ "#Force in AC & BC\n",
+ "F_AC=R_C*(sin(alpha*pi*180**-1))**-1 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"FOrces in members are:F_AB\",round(F_AB,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\"\n",
+ "print\" :F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "FOrces in members are:F_AB 17.32 KN\n",
+ " :F_BC 8.66 KN\n",
+ " :F_AC 10.0 KN\n",
+ " :F_BC 8.66 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.2,Page No.125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_D=1 #KN\n",
+ "L_AD=5 #m #Length AD\n",
+ "L_AB=7.5 #m #Length AB\n",
+ "theta=60 #degrees\n",
+ "alpha=30 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#REactions\n",
+ "R_B=L_AD*L_AB**-1 #KN\n",
+ "R_A=F_D-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AC=R_A*(sin(alpha*pi*180**-1))**-1 #KN\n",
+ "F_AD=F_AC*cos(alpha*pi*180**-1) #KN\n",
+ "F_BC=R_B*(sin(alpha*pi*180**-1))**-1 #KN\n",
+ "F_BD=F_BC*(cos(alpha*pi*180**-1)) #KN\n",
+ "F_CD=1*(sin(theta*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"forces in members are:F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\"\n",
+ "print\" :F_BD\",round(F_BD,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "forces in members are:F_AC 0.67 KN\n",
+ " :F_AD 0.58 KN\n",
+ " :F_BC 1.33 KN\n",
+ " :F_BD 1.15 KN\n",
+ " :F_CD 1.15 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.3,Page No.127"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AB=5 #m #Length AB\n",
+ "theta=60 #Degrees\n",
+ "alpha=30 #Degrees\n",
+ "F_D=10 #KN\n",
+ "F_E=12 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Length\n",
+ "L_AC=L_AD=L_AB*(cos(theta*pi*180**-1)) #m\n",
+ "\n",
+ "#Distance of line of action\n",
+ "x=1.25 #m\n",
+ "\n",
+ "L_BC=L_AB-L_AD #m\n",
+ "L_BE=L_BC*cos(alpha*pi*180**-1) #m\n",
+ "\n",
+ "#line of action \n",
+ "x2=1.875 #m\n",
+ "x3=3.125\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_D*x+F_E*x3)*L_AB**-1 #KN\n",
+ "R_A=(F_D+F_E)-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AD=F_E*(sin(theta*pi*180**-1))**-1 #KN\n",
+ "F_AC=F_AD*cos(theta*pi*180**-1) #KN\n",
+ "F_BE=F_D*(sin(alpha*pi*180**-1))**-1 #KN\n",
+ "F_BC=F_BE*cos(alpha*pi*180**-1) #KN\n",
+ "\n",
+ "#After simplifying joint C we get\n",
+ "#F_CD=-F_CE\n",
+ "#after further simplifying\n",
+ "F_CE=20.784*2**-1 #KN\n",
+ "F_CD=F_CE #KN\n",
+ "F_ED=F_BE-(F_E*cos(theta*pi*180**-1)) #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"forces in members are:F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\"\n",
+ "print\" :F_BE\",round(F_BE,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\"\n",
+ "print\" :F_CE\",round(F_CE,2),\"KN\"\n",
+ "print\" :F_ED\",round(F_ED,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "forces in members are:F_AC 6.93 KN\n",
+ " :F_AD 13.86 KN\n",
+ " :F_BC 17.32 KN\n",
+ " :F_BE 20.0 KN\n",
+ " :F_CD 10.39 KN\n",
+ " :F_CE 10.39 KN\n",
+ " :F_ED 14.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.4,Page No.129"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_GH=L_AG=L_HB=3 #m\n",
+ "L_FB=L_EH=L_DG=L_AC=4 #m\n",
+ "L_AB=9 #m \n",
+ "F_G=9 #KN\n",
+ "F_H=12 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_G*L_AG+F_H*(L_AG+L_GH))*L_AB**-1 #KN\n",
+ "R_A=(F_G+F_H)-R_B #KN\n",
+ "\n",
+ "#Joint C\n",
+ "#After resolving and simplifying we get\n",
+ "#cos(theta)=4*5**-1\n",
+ "#sin(theta)=3*4**-1\n",
+ "#Let cos(theta)=X\n",
+ "X=4*5**-1\n",
+ "Y=3*5**-1\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AC=R_A #KN\n",
+ "F_CG=R_A*X**-1 #KN\n",
+ "F_CD=F_CG*Y #KN\n",
+ "F_GD=-(F_G-F_CG*X)\n",
+ "F_GH=F_CG*Y \n",
+ "F_DH=1*X**-1 #KN\n",
+ "F_DE=F_GH+F_DH*Y\n",
+ "F_EF=F_DE #KN\n",
+ "F_HF=(F_H-F_GD)*X**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in members are:F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_CG\",round(F_CG,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\"\n",
+ "print\" :F_GD\",round(F_GD,2),\"KN\"\n",
+ "print\" :F_GH\",round(F_GH,2),\"KN\"\n",
+ "print\" :F_DH\",round(F_DH,2),\"KN\"\n",
+ "print\" :F_DE\",round(F_DE,2),\"KN\"\n",
+ "print\" :F_EF\",round(F_EF,2),\"KN\"\n",
+ "print\" :F_HF\",round(F_HF,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in members are:F_AC 10.0 KN\n",
+ " :F_CG 12.5 KN\n",
+ " :F_CD 7.5 KN\n",
+ " :F_GD 1.0 KN\n",
+ " :F_GH 7.5 KN\n",
+ " :F_DH 1.25 KN\n",
+ " :F_DE 8.25 KN\n",
+ " :F_EF 8.25 KN\n",
+ " :F_HF 13.75 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.5,Page No.133"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_D=1000 #N \n",
+ "L_AE=L_EF=L_FH=L_BH=1 #m\n",
+ "L_CH=2.25 #m\n",
+ "L=4 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "\n",
+ "#Let sin(theta)=0.6\n",
+ "#cos(theta)=0.8\n",
+ "#tan(theta)=0.75 \n",
+ "#sin(theta)=X\n",
+ "#Cos(theta)=Y\n",
+ "#tan(theta)=Z\n",
+ "X=0.6\n",
+ "Y=0.8\n",
+ "Z=0.75 \n",
+ "\n",
+ "R_B=F_D*L**-1 #KN\n",
+ "R_A=F_D-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AD=R_A*X**-1 #KN\n",
+ "F_AE=F_AD*Y #KN\n",
+ "F_EF=F_AE #KN\n",
+ "\n",
+ "#After dimplifying And further resolving we get\n",
+ "F_DG=833.34*2**-1 #KN\n",
+ "F_DF=416.66+416.67 \n",
+ "F_FG=F_DF*X #KN\n",
+ "F_FH=F_D-F_DF*Y\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in the members are:F_DG\",round(F_DG,2),\"KN\"\n",
+ "print\" :F_DF\",round(F_DF,2),\"KN\"\n",
+ "print\" :F_FG\",round(F_FG,2),\"KN\"\n",
+ "print\" :F_FH\",round(F_FH,2),\"KN\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"KN\"\n",
+ "print\" :F_AE\",round(F_AE,2),\"KN\"\n",
+ "print\" :F_EF\",round(F_EF,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in the members are:F_DG 416.67 KN\n",
+ " :F_DF 833.33 KN\n",
+ " :F_FG 500.0 KN\n",
+ " :F_FH 333.34 KN\n",
+ " :F_AD 1250.0 KN\n",
+ " :F_AE 1000.0 KN\n",
+ " :F_EF 1000.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6,Page No.135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "theta=60\n",
+ "alpha=30\n",
+ "F_C=1000 #N \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Force CD\n",
+ "F_CD=F_C*(sin(theta*pi*180**-1))**-1 #N\n",
+ " \n",
+ "#Force CA\n",
+ "F_CA=F_CD*cos(theta*pi*180**-1) #N\n",
+ "\n",
+ "#FOrce AD\n",
+ "F_AD=F_CD*cos(alpha*pi*180**-1)*(cos(alpha*pi*180**-1))**-1 #N\n",
+ "\n",
+ "#Force BD\n",
+ "F_BD=F_AD*sin(alpha*pi*180**-1)+F_CD*sin(alpha*pi*180**-1) #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in members are:F_CD\",round(F_CD,2),\"N\"\n",
+ "print\" :F_CA\",round(F_CA,2),\"N\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"N\"\n",
+ "print\" :F_BD\",round(F_BD,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in members are:F_CD 1154.7 N\n",
+ " :F_CA 577.35 N\n",
+ " :F_AD 1154.7 N\n",
+ " :F_BD 1154.7 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.7,Page No.136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#LEt tan(theta)=X\n",
+ "#cos(theta)=Y\n",
+ "#sin(theta)=Z\n",
+ "L_EC=5\n",
+ "F_B=F_C=1000 #N\n",
+ "X=3*4**-1 \n",
+ "Y=0.8\n",
+ "Z=0.6\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Force CD\n",
+ "F_CD=F_B*Z**-1 #N\n",
+ "\n",
+ "#Force CB\n",
+ "F_CB=F_CD*Y\n",
+ "\n",
+ "#Force BD\n",
+ "F_BD=F_B #N\n",
+ "\n",
+ "#Force BA\n",
+ "F_BA=F_CB #N\n",
+ "\n",
+ "#in joint D,resolving forces we get\n",
+ "#F_AD+F_ED=3333.32 .........1\n",
+ "#After further simplifying we get\n",
+ "#F_ED-F_AD=1666.66 .............2\n",
+ "\n",
+ "#Froce ED\n",
+ "F_ED=4999.98*2**-1 #N\n",
+ "\n",
+ "#Force AD\n",
+ "F_AD=3333.32-F_ED #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in the members are:F_CD\",round(F_CD,2),\"N\"\n",
+ "print\" :F_CB\",round(F_CB,2),\"N\"\n",
+ "print\" :F_BD\",round(F_BD,2),\"N\"\n",
+ "print\" :F_BA\",round(F_BA,2),\"N\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in the members are:F_CD 1666.67 N\n",
+ " :F_CB 1333.33 N\n",
+ " :F_BD 1000.0 N\n",
+ " :F_BA 1333.33 N\n",
+ " :F_AD 833.33 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.8,Page No.138"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_D=12 #KN #Force at D\n",
+ "F_C=18 #KN\n",
+ "L_AC=2 #m \n",
+ "L_CB=2 #m\n",
+ "L_DC=1.5 #m\n",
+ "L_AB=4 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "\n",
+ "R_B=(F_C*L_AC+F_D*L_DC)*L_AB**-1 #KN\n",
+ "R_A=(F_C)-R_B #KN\n",
+ "\n",
+ "#Let cos(theta)=X\n",
+ "#sin(theta)=Y\n",
+ "\n",
+ "X=0.8 \n",
+ "Y=0.6 \n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AD=R_A*Y**-1 #KN\n",
+ "F_AC=F_D+F_AD*X #KN\n",
+ "F_CD=F_AC\n",
+ "F_BC=F_AC #KN\n",
+ "F_BD=R_B*(Y)**-1 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"forces in members are:F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_AD\",round(F_AD,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\"\n",
+ "print\" :F_BD\",round(F_BD,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "forces in members are:F_AC 18.0 KN\n",
+ " :F_AD 7.5 KN\n",
+ " :F_BC 18.0 KN\n",
+ " :F_BD 22.5 KN\n",
+ " :F_CD 18.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.9,Page No.139"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AF=L_FG=L_BG=4 #m\n",
+ "L_AB=12 #m\n",
+ "F_F=3 #KN\n",
+ "F_G=6 #KN\n",
+ "F_E=8 #KN\n",
+ "V=1.5 #m #Vertical Distance\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_E*V+F_F*L_AF+F_G*(L_AF+L_FG))*L_AB**-1\n",
+ "R_A=(F_F+F_G)-R_B\n",
+ "\n",
+ "#Let cos(theta)=X\n",
+ "#Sin(theta)=Y\n",
+ "X=0.8\n",
+ "Y=0.6 \n",
+ "\n",
+ "#Forces\n",
+ "F_CA=F_F*Y**-1 #KN\n",
+ "F_FA=F_CA*X+F_E #KN\n",
+ "F_CF=F_CA #KN\n",
+ "F_CD=(F_CA+F_CF)*X #KN\n",
+ "F_DF=(-F_CF*Y+F_F)*Y**-1 #KN\n",
+ "F_GF=F_FA+F_CF*X #KN\n",
+ "F_DE=F_CD #KN\n",
+ "F_GE=F_G*Y**-1 #KN\n",
+ "F_GB=F_GF-F_GE*X #KN\n",
+ "F_BE=F_GE #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in the members are:F_CA\",round(F_CA,2),\"KN\"\n",
+ "print\" :F_FA\",round(F_FA,2),\"KN\"\n",
+ "print\" :F_CF\",round(F_CF,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\"\n",
+ "print\" :F_DF\",round(F_DF,2),\"KN\"\n",
+ "print\" :F_GF\",round(F_GF,2),\"KN\"\n",
+ "print\" :F_DE\",round(F_DE,2),\"KN\"\n",
+ "print\" :F_GE\",round(F_GE,2),\"KN\"\n",
+ "print\" :F_GB\",round(F_GB,2),\"KN\"\n",
+ "print\" :F_BE\",round(F_BE,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in the members are:F_CA 5.0 KN\n",
+ " :F_FA 12.0 KN\n",
+ " :F_CF 5.0 KN\n",
+ " :F_CD 8.0 KN\n",
+ " :F_DF 0.0 KN\n",
+ " :F_GF 16.0 KN\n",
+ " :F_DE 8.0 KN\n",
+ " :F_GE 10.0 KN\n",
+ " :F_GB 8.0 KN\n",
+ " :F_BE 10.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.10,Page No.142"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "theta=60 #DEgrees\n",
+ "alpha=30 #Degrees\n",
+ "L_AE=L_EF=L_FB=4 #m\n",
+ "L_AB=12 #m\n",
+ "F_A=1 #KN\n",
+ "F_C=2 #KN\n",
+ "F_D=1 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "L_AC=L_AE*cos(alpha*pi*180**-1) #m\n",
+ "L_AD=F_C*L_AC #m\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_C*L_AC+F_A*L_AD+F_D*L_AE)*L_AB**-1\n",
+ "V=(F_A+F_C+F_D)*sin(theta*pi*180**-1)+1 #KN\n",
+ "H=(F_A+F_C+F_D)*cos(theta*pi*180**-1) #KN\n",
+ "R_A=V-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "F_AC=(R_A-(F_A*sin(theta*pi*180**-1)))*(sin(alpha*pi*180**-1))**-1\n",
+ "F_AE=F_C+F_AC*cos(alpha*pi*180**-1)-F_A*cos(theta*pi*180**-1) #KN\n",
+ "F_CD=F_AC\n",
+ "F_CE=F_C #KN\n",
+ "F_ED=F_C+(sin(theta*pi*180**-1))**-1 #KN\n",
+ "F_EF=F_AE-F_C*cos(theta*pi*180**-1)-F_ED*cos(theta*pi*180**-1)\n",
+ "F_FB=F_EF #KN\n",
+ "F_BG=R_B*(sin(alpha*pi*180**-1))**-1 #KN\n",
+ "F_GD=F_BG #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in the members are:F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_AE\",round(F_AE,2),\"KN\"\n",
+ "print\" :F_CD\",round(F_CD,2),\"KN\"\n",
+ "print\" :F_CE\",round(F_CE,2),\"KN\"\n",
+ "print\" :F_ED\",round(F_ED,2),\"KN\"\n",
+ "print\" :F_EF\",round(F_EF,2),\"KN\"\n",
+ "print\" :F_FB\",round(F_FB,2),\"KN\"\n",
+ "print\" :F_BG\",round(F_BG,2),\"KN\"\n",
+ "print\" :F_GD\",round(F_GD,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in the members are:F_AC 4.22 KN\n",
+ " :F_AE 5.15 KN\n",
+ " :F_CD 4.22 KN\n",
+ " :F_CE 2.0 KN\n",
+ " :F_ED 3.15 KN\n",
+ " :F_EF 2.58 KN\n",
+ " :F_FB 2.58 KN\n",
+ " :F_BG 2.98 KN\n",
+ " :F_GD 2.98 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.11,Page No.145"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "theta=60 #degrees\n",
+ "alpha=30 #degrees\n",
+ "beta=90 #degrees\n",
+ "L_AB=2.5 #m\n",
+ "L_BC=5 #m\n",
+ "F_A=20 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "R_C=(F_A*L_AB*cos(theta*pi*180**-1))*L_BC**-1 #kn\n",
+ "R_B=F_A-R_C\n",
+ "\n",
+ "#Forces\n",
+ "\n",
+ "F_AB=(R_B*L_BC)*(R_C*cos(alpha*pi*180**-1))**-1 #KN\n",
+ "F_BC=(L_AB*sin(theta*pi*180**-1))**-1*(R_B*L_AB*cos(theta*pi*180**-1))\n",
+ "\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Force in Members are:F_BA\",round(F_AB,2),\"KN\"\n",
+ "print\" :F_BC\",round(F_BC,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force in Members are:F_BA 17.32 KN\n",
+ " :F_BC 8.66 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.12,Page No.146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AC=L_AD=2.5 #m\n",
+ "L_BC=2.5 #m\n",
+ "L_AB=5 #m\n",
+ "theta=30 #Degrees\n",
+ "alpha=60 #degrees\n",
+ "F_D=10 #KN\n",
+ "F_E=12 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "L_BE=L_BC*cos(theta*pi*180**-1) #m\n",
+ "L_AD=L_AB*cos(alpha*pi*180**-1) #m\n",
+ "\n",
+ "#Distance of Line of action of load 12 KN\n",
+ "x=L_AB-1.875 #m\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_D*L_AC*2**-1+F_E*x)*L_AB**-1 #KN\n",
+ "R_A=(F_D+F_E)-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "F_BC=(R_B*L_BE*cos(theta*pi*180**-1))*(L_BE*sin(theta*pi*180**-1))**-1\n",
+ "F_EC=F_E*cos(theta*pi*180**-1) #KN\n",
+ "F_DE=-((F_E*(L_AC-L_BE*cos(theta*pi*180**-1)))-R_B*L_BC)*(L_AC*sin(theta*pi*180**-1))**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Reactions are:R_A\",round(R_A,2),\"KN\"\n",
+ "print\" :R_B\",round(R_B,2),\"KN\"\n",
+ "print\"Forces in the members are:F_BC\",round(F_BC,2),\"KN\"\n",
+ "print\" :F_EC\",round(F_EC,2),\"KN\"\n",
+ "print\" :F_DE\",round(F_DE,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactions are:R_A 12.0 KN\n",
+ " :R_B 10.0 KN\n",
+ "Forces in the members are:F_BC 17.32 KN\n",
+ " :F_EC 10.39 KN\n",
+ " :F_DE 14.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.13,Page No.148"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Lengths\n",
+ "L_AG=L_GH=L_HB=3\n",
+ "L_AB=9 #m\n",
+ "L_FB=L_EH=L_DG=L_AC=4 #m\n",
+ "\n",
+ "#Forces\n",
+ "F_G=9 #KN\n",
+ "F_H=12 #KN\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_G*L_AG+F_H*(L_AG+L_GH))*L_AB**-1\n",
+ "R_A=(F_G+F_H)-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "F_3=(R_A*L_AG)*L_AC**-1 #KN\n",
+ "F_1=(R_A*L_AG)*L_AC**-1 #KN\n",
+ "F_2=(F_3*L_AC-F_G*L_AG)*L_AG**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Reactions are:R_A\",round(R_A,2),\"KN\"\n",
+ "print\" :R_B\",round(R_B,2),\"KN\"\n",
+ "print\"Forces in Members are:F_1\",round(F_1,2),\"KN\"\n",
+ "print\" :F_2\",round(F_2,2),\"KN\"\n",
+ "print\" :F_3\",round(F_3,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactions are:R_A 10.0 KN\n",
+ " :R_B 11.0 KN\n",
+ "Forces in Members are:F_1 7.5 KN\n",
+ " :F_2 1.0 KN\n",
+ " :F_3 7.5 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.14,Page No.149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_CH=5 #m\n",
+ "L_DE=4.5 #m\n",
+ "L_AE=L_EC=L_FB=4 #m\n",
+ "L_AB=16 #m\n",
+ "F=80 #KN\n",
+ "v=0.5 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=F*(L_AE+L_EC+L_FB)*L_AB**-1 #m\n",
+ "R_A=F-R_B #KN\n",
+ "\n",
+ "#Forces\n",
+ "F1=R_A*L_AE*L_DE**-1 #KN\n",
+ "\n",
+ "theta=arctan(L_DE*L_EC**-1)*(180*pi**-1)\n",
+ "alpha=arctan(v*L_AE**-1)*(180*pi**-1) #Degrees\n",
+ "beta=alpha+theta #Degrees\n",
+ "\n",
+ "L_CD=(L_DE**2+L_EC**2)**0.5 #m\n",
+ "L_CL=L_CD*sin(beta*pi*180**-1) #m\n",
+ "\n",
+ "F3=R_A*(L_AE+L_EC)*L_CL**-1 #KN\n",
+ "F2=-(F3*sin(alpha*pi*180**-1)-R_A)*(sin(theta*pi*180**-1))**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in Members are:F1\",round(F1,2),\"KN\"\n",
+ "print\" :F2\",round(F2,2),\"KN\"\n",
+ "print\" :F3\",round(F3,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in Members are:F1 17.78 KN\n",
+ " :F2 21.41 KN\n",
+ " :F3 32.25 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.15,Page No.151"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_EC=L_FD=L_BD=L_AC=L_OH=2 #m\n",
+ "L_AB=L_CD=L_EF=4 #m\n",
+ "F=20 #KN\n",
+ "H=20 #KN\n",
+ "theta=90\n",
+ "alpha=45\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Reactios\n",
+ "R_B=(H*L_EC+F*(L_FD+L_BD)+F*(L_AC+L_EC+L_OH))*L_AB**-1\n",
+ "R_A=0-R_B #KN\n",
+ "H_A=3*F #All horizontal Forces\n",
+ "\n",
+ "#Forces\n",
+ "F_BD=(F*L_FD+F*(L_FD+L_BD))*L_AB**-1 #KN\n",
+ "F_AC=(F*L_FD+H*(L_OH+L_EC))*L_AB**-1\n",
+ "F_BG=(R_B-F_BD)*(cos(alpha*pi*180**-1))**-1 #KN\n",
+ "F_BA=F_BG*sin(alpha*pi*180**-1)\n",
+ "F_AG=(H_A-F_BA)*(cos(alpha*pi*180**-1))**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Forces in the Members are:F_BD\",round(F_BD,2),\"KN\"\n",
+ "print\" :F_AC\",round(F_AC,2),\"KN\"\n",
+ "print\" :F_BG\",round(F_BG,2),\"KN\"\n",
+ "print\" :F_BA\",round(F_BA,2),\"KN\"\n",
+ "print\" :F_AG\",round(F_AG,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in the Members are:F_BD 30.0 KN\n",
+ " :F_AC 30.0 KN\n",
+ " :F_BG 42.43 KN\n",
+ " :F_BA 30.0 KN\n",
+ " :F_AG 42.43 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.16,Page No.153"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_E=F_A=F_D=1 #KN\n",
+ "F_C=2 #KN\n",
+ "L_AE=L_EF=L_FB=4 #m\n",
+ "L_AB=12 #m\n",
+ "theta=60 \n",
+ "alpha=30 #degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "L_AC=L_AE*cos(alpha*pi*180**-1)\n",
+ "L_AD=F_C*L_AC #m\n",
+ "\n",
+ "#Reactions\n",
+ "R_B=(F_C*L_AC+F_A*L_AD+F_D*L_AE)*L_AB**-1\n",
+ "\n",
+ "#Forces\n",
+ "F_DG=(R_B*L_AE)*(L_FB*sin(alpha*pi*180**-1))**-1\n",
+ "F_FE=R_B*cos(alpha*pi*180**-1)*(sin(alpha*pi*180**-1))**-1\n",
+ "F_DF=0 #KN \n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Force in members:DG\",round(F_DG,2),\"KN\"\n",
+ "print\" :FE\",round(F_FE,2),\"KN\"\n",
+ "print\" :DF\",round(F_DF,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force in members:DG 2.98 KN\n",
+ " :FE 2.58 KN\n",
+ " :DF 0.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_7.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_7.ipynb new file mode 100644 index 00000000..03ff5c86 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_7.ipynb @@ -0,0 +1,785 @@ +{
+ "metadata": {
+ "name": "chapter 7.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7:Centre Of Gravity And Moment Of Inertia"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.1,Page No.165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b1=12 #cm #width of flange\n",
+ "d1=3 #cm #depth\n",
+ "\n",
+ "#web\n",
+ "b2=3 #cm\n",
+ "d2=10 #cm \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#area of flange\n",
+ "a1=b1*d1 #cm**2\n",
+ "\n",
+ "#area of web\n",
+ "a2=b2*d2 #cm**2\n",
+ "\n",
+ "#C.G of flange\n",
+ "y1=d1*2**-1+d2 #cm\n",
+ "\n",
+ "#C.G of web\n",
+ "y2=d2*2**-1 #cm\n",
+ "\n",
+ "#C.G of section\n",
+ "Y=(a1*y1+a2*y2)*(a1+a2)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"C.G of section is\",round(Y,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C.G of section is 8.55 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.2,Page No.166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b1=10 #cm #width of top flange\n",
+ "d1=2 #cm #depth\n",
+ "\n",
+ "#web\n",
+ "b2=2 #cm\n",
+ "d2=15 #cm \n",
+ "\n",
+ "#bottom flange\n",
+ "b3=20 #cm \n",
+ "d3=2 #cm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#area of top flange\n",
+ "a1=b1*d1 #cm**2\n",
+ "\n",
+ "#area of web\n",
+ "a2=b2*d2 #cm**2\n",
+ "\n",
+ "#area of bottom flange\n",
+ "a3=b3*d3 #cm**2\n",
+ "\n",
+ "#C.G of flange\n",
+ "y1=d1*2**-1+d2+d3 #cm\n",
+ "\n",
+ "#C.G of web\n",
+ "y2=d2*2**-1+d3 #cm\n",
+ "\n",
+ "#C.G of bottom flange\n",
+ "y3=d3*2**-1 #cm\n",
+ "\n",
+ "#C.G of section\n",
+ "Y=(a1*y1+a2*y2+a2*y3)*(a1+a2+a3)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"C.G of section is\",round(Y,3),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C.G of section is 7.5 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.3,Page No.167"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b2=8 #cm #width of flange\n",
+ "d2=2 #cm #depth\n",
+ "\n",
+ "#web\n",
+ "b1=2 #cm\n",
+ "d1=10 #cm \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#area of flange\n",
+ "a1=b1*d1 #cm**2\n",
+ "\n",
+ "#area of web\n",
+ "a2=b2*d2 #cm**2\n",
+ "\n",
+ "#distance of C.G of flange(y-axis)\n",
+ "y1=d1*2**-1+d2 #cm\n",
+ "\n",
+ "#distance of C.G of web(y-axis)\n",
+ "y2=d2*2**-1 #cm\n",
+ "\n",
+ "#C.G of section(y-axis)\n",
+ "Y=(a1*y1+a2*y2)*(a1+a2)**-1 #cm\n",
+ "\n",
+ "#distance of C.G of flange(y-axis)\n",
+ "x1=b1*2**-1 #cm\n",
+ "\n",
+ "#distance of C.G of web(y-axis)\n",
+ "x2=b2*2**-1 #cm\n",
+ "\n",
+ "#C.G of section(y-axis)\n",
+ "X=(a1*x1+a2*x2)*(a1+a2)**-1 #cm\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"C.G of section(X-axis) is\",round(X,2),\"cm\"\n",
+ "print\"C.G of section(Y-axis) is\",round(Y,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C.G of section(X-axis) is 2.33 cm\n",
+ "C.G of section(Y-axis) is 4.33 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.4,Page No.168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b=2.5 #cm #width of triangle\n",
+ "h=5 #cm #height of triangle\n",
+ "b2=10 #cm #width of rectangle\n",
+ "h2=5 #cm #height of rectangle\n",
+ "r=2.5 #cm #radius of semicircle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of semicircle\n",
+ "a1=pi*2**-1*r**2 #cm**2\n",
+ "\n",
+ "#C.G of semicircle\n",
+ "y1=h2*2**-1 #cm\n",
+ "x1=r-(4*r*(3*pi)**-1)\n",
+ "\n",
+ "#area of rectangle\n",
+ "a2=b2*h2 #cm**2\n",
+ "\n",
+ "#C.G of rectangle\n",
+ "y2=h*2**-1 #cm\n",
+ "x2=r+b2*2**-1 #cm\n",
+ "\n",
+ "#Area of triangle\n",
+ "a3=2*b*h*2**-1 #cm**2\n",
+ "\n",
+ "#c.G of triangle\n",
+ "y3=h2+h2*3**-1 #cm\n",
+ "x3=r+b2*2**-1+b #cm\n",
+ "\n",
+ "#C.G of section (y-axis)\n",
+ "Y=(a1*y1+a2*y2+a3*y3)*(a1+a2+a3)**-1 #cm\n",
+ "\n",
+ "#C.G of section (x-axis)\n",
+ "\n",
+ "X=(a1*x1+a2*x2+a3*x3)*(a1+a2+a3)**-1 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"C.G of uniform lamina is\",round(Y,2),\"cm\"\n",
+ "print\" \",round(X,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C.G of uniform lamina is 3.22 cm\n",
+ " 7.11 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.4(A),Page No.169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "r=6 #cm #radius\n",
+ "b1=12 #cm #width of rectangle angle and triangle\n",
+ "h=6 #cm #height of triangle and rectangle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Semicircle\n",
+ "\n",
+ "#area\n",
+ "A1=pi*r**2*2**-1 #cm**2 \n",
+ "\n",
+ "#distance of C.G\n",
+ "x1=4*r*(3*pi)**-1 #cm\n",
+ "y1=r*2**-1*2 #cm\n",
+ "\n",
+ "#Triangle\n",
+ "\n",
+ "#Area\n",
+ "A2=h*b1*2**-1 #cm**2 \n",
+ "\n",
+ "#Distance of c.g\n",
+ "x2=-b1*3**-1 #cm\n",
+ "y2=h*3**-1+h #cm\n",
+ "\n",
+ "#rectangle\n",
+ "\n",
+ "#Area\n",
+ "A3=b1*h #cm**2\n",
+ "\n",
+ "#Distance of C.G\n",
+ "x3=-b1*2**-1 #cm\n",
+ "y3=h*2**-1 #cm \n",
+ "\n",
+ "#C.G of section\n",
+ "X=(A1*x1+A2*x2+A3*x3)*(A1+A2+A3)**-1\n",
+ "Y=(A1*y1+A2*y2+A3*y3)*(A1+A2+A3)**-1\n",
+ "\n",
+ "#Answer for Y is incorrect in textbook\n",
+ "\n",
+ "#Result\n",
+ "print\"Centroid of Area is\",round(X,2),\"cm\"\n",
+ "print\" \",round(Y,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Centroid of Area is -2.63 cm\n",
+ " 5.12 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.5,Page No.170"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b=10 #cm #width\n",
+ "h=12 #cm #Height\n",
+ "b1=3 #cm #Width of cut hole\n",
+ "h2=4 #cm #height\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of rectangle\n",
+ "A=b*h #cm**2 \n",
+ "\n",
+ "#Distance of C.G\n",
+ "y=h*2**-1 #cm\n",
+ "\n",
+ "#Area of hole cut\n",
+ "A2=h2*b1 #cm**2\n",
+ "\n",
+ "#Distance of C.G of cut hole\n",
+ "y2=2+h2*2**-1 #cm\n",
+ "\n",
+ "#Distance between C.G of section with a cut hole\n",
+ "y3=(A*y-A2*y2)*(A-A2)**-1 #cm\n",
+ "\n",
+ "#Distance of C.G with acut hole from left\n",
+ "x1=b*2**-1 #cm\n",
+ "\n",
+ "#Distance of C.G of cut hole from left lineAD\n",
+ "x2=b*2**-1+1+b1*2**-1\n",
+ "\n",
+ "#C.G of section\n",
+ "X=(A*x1-A2*x2)*(A-A2)**-1 #cm\n",
+ "\n",
+ "#Result\n",
+ "print\"C.G of section is\",round(X,2),\"cm\"\n",
+ "print\" \",round(y3,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C.G of section is 4.72 cm\n",
+ " 6.22 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.12(A),Page No.197"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b=100 #mm #Width of triangle\n",
+ "h=90 #mm #height of triangle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#M.I about BC\n",
+ "I_BC=b*h**3*12**-1 #cm**4 \n",
+ "\n",
+ "#Result\n",
+ "print\"M.I of section about an axispassing through base BC\",round(I_BC,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "M.I of section about an axispassing through base BC 6075000.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.12(B),Page No.199"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Rectangle ABCD\n",
+ "L1=10 #cm #Length of rectangle\n",
+ "D1=2 #cm #Depth\n",
+ "\n",
+ "#Rectangle HGEF\n",
+ "L2=2 #cm\n",
+ "D2=10-2 #cm \n",
+ "\n",
+ "D=10 #cm #Total Depth\n",
+ "L=10 #cm #Total Length\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Areas\n",
+ "\n",
+ "a1=L1*D1 #cm**2 #Area of rectangle ABCD\n",
+ "a2=L2*D2 #cm**2 #Area of Rectangle HGEF\n",
+ "\n",
+ "#Centre of gravity of respective bodies From Bottom\n",
+ "\n",
+ "y1=D1*2**-1+D2 #cm #C.G of rectangle ABCD from bottom\n",
+ "y2=D2*2**-1 #cm #C.G of rectangle HGEF from bottom\n",
+ "\n",
+ "#Centre of gravity of whole section From bottom\n",
+ "\n",
+ "y_bar=(a1*y1+a2*y2)*(a1+a2)**-1 #cm\n",
+ "\n",
+ "#Centre of gravity of whole section From top\n",
+ "\n",
+ "y_bar2=D-y_bar #cm\n",
+ "\n",
+ "#M.I of respective bodies\n",
+ "\n",
+ "i1=L1*D1**3*12**-1 #cm**4 #M.I of ABCD about an axis passing through it's C.G\n",
+ "i2=L2*D2**3*12**-1 #cm**4 #M.I of HGEF about an axis passing through it's C.G\n",
+ " \n",
+ "h1=y_bar2-D1*2**-1 #cm #Distance of C.G of ABCD from C.G of whole section\n",
+ "h2=y_bar-D2*2**-1 #cm #Distance of C.G of HGEF from C.G of whole section\n",
+ "\n",
+ "I1=i1+a1*h1**2 #cm**4 #M.I of ABCD about an axis passing through C.G of section\n",
+ "I2=i2+a2*h2**2 #cm**4 #M.I of ABCD about an axis passing through C.G of section\n",
+ "\n",
+ "#Moment of Inertia of section about horizontal axis passing through C.G of given section\n",
+ "I_xx=I1+I2 #cm**4\n",
+ "\n",
+ "#Moment of Inertia of section about vertical axis passing through C.G of given section\n",
+ "I_yy=D1*L1**3*12**-1+D2*L2**3*12**-1 #cm**4\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of Inertia of section about horizontal axis passing through C.G of given section\",round(I_xx,2),\"cm**4\"\n",
+ "print\"Moment of Inertia of section about vertical axis passing through C.G of given section\",round(I_yy,2),\"cm**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of Inertia of section about horizontal axis passing through C.G of given section 314.22 cm**4\n",
+ "Moment of Inertia of section about vertical axis passing through C.G of given section 172.0 cm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.13,Page No.201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Rectangle ABCD\n",
+ "\n",
+ "L1=10 #cm #Length\n",
+ "d1=2 #cm #depth\n",
+ "\n",
+ "#Rectangle EHGF\n",
+ "\n",
+ "L2=2 #cm #Length\n",
+ "d2=10 #cm #depth\n",
+ "\n",
+ "#Rectangle JKLM\n",
+ "\n",
+ "L3=20 #cm #Length\n",
+ "d3=2 #cm #depth\n",
+ "\n",
+ "D=14 #cm #Overall Depth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "a1=L1*d1 #cm**2 #Area of rectangle 1\n",
+ "a2=L2*d2 #cm**2 #Area of Rectangle 2\n",
+ "a3=L3*d3 #cm**2 #Area of rectangle 3\n",
+ "\n",
+ "#Centre of gravity of respective bodies From Bottom\n",
+ "\n",
+ "y1=D-d1*2**-1 #cm #C.G of rectangle 1 from bottom\n",
+ "y2=d2*2**-1+d3 #cm #C.G of rectangle 2from bottom\n",
+ "y3=d3*2**-1 #cm #C.G of rectangle 3from bottom\n",
+ "\n",
+ "#Centre of gravity of whole section From bottom\n",
+ "\n",
+ "y_bar=(a1*y1+a2*y2+a3*y3)*(a1+a2+a3)**-1 #cm\n",
+ "\n",
+ "#Centre of gravity of whole section From top\n",
+ "\n",
+ "y_bar2=D-y_bar #cm\n",
+ "\n",
+ "\n",
+ "#M.I of respective bodies\n",
+ "\n",
+ "i1=L1*d1**3*12**-1 #cm**4 #M.I of ABCD about an axis passing through it's C.G\n",
+ "i2=L2*d2**3*12**-1 #cm**4 #M.I of HGEF about an axis passing through it's C.G\n",
+ "i3=L3*d3**3*12**-1 #cm**4 #M.I of JKLM about an axis passing through it's C.G\n",
+ "\n",
+ "h1=y_bar2-d1*2**-1 #cm #Distance of C.G of ABCD from C.G of whole section\n",
+ "h2=y_bar2-(d2*2**-1+d1) #cm #Distance of C.G of HGEF from C.G of whole section\n",
+ "h3=y_bar-d3*2**-1 #cm #Distance of C.G of JKLM from C.G of whole section\n",
+ "\n",
+ "I1=i1+a1*h1**2 #cm**4 #M.I of ABCD about an axis passing through C.G of section\n",
+ "I2=i2+a2*h2**2 #cm**4 #M.I of HGEF about an axis passing through C.G of section\n",
+ "I3=i3+a3*h3**2 #cm**4 #M.I of JKLM about an axis passing through C.G of section\n",
+ "\n",
+ "#Moment of Inertia of section about horizontal axis passing through C.G of given section\n",
+ "I_xx=I1+I2+I3 #cm**4\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of Inertia of section about horizontal axis passing through C.G of given section\",round(I_xx,2),\"cm**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of Inertia of section about horizontal axis passing through C.G of given section 2166.67 cm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.14,Page No.202"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Rectangle 1\n",
+ "\n",
+ "L1=80 #cm #Length\n",
+ "d1=12 #cm #depth\n",
+ "\n",
+ "#Rectangle 2\n",
+ "\n",
+ "L2=12 #cm #Length\n",
+ "d2=128 #cm #depth\n",
+ "\n",
+ "#Rectangle 3\n",
+ "\n",
+ "L3=120 #cm #Length\n",
+ "d3=10 #cm #depth\n",
+ "\n",
+ "D=150 #cm #Overall Depth\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "a1=L1*d1 #cm**2 #Area of rectangle ABCD\n",
+ "a2=L2*d2 #cm**2 #Area of Rectangle EHGF\n",
+ "a3=L3*d3 #cm**2 #Area of rectangle JKLM\n",
+ "\n",
+ "#Centre of gravity of respective bodies From Bottom\n",
+ "\n",
+ "y1=D-d1*2**-1 #cm #C.G of rectangle ABCD from bottom\n",
+ "y2=d2*2**-1+d3 #cm #C.G of rectangle HGEF from bottom\n",
+ "y3=d3*2**-1 #cm #C.G of rectangle JKLM from bottom\n",
+ "\n",
+ "#Centre of gravity of whole section From bottom\n",
+ "\n",
+ "y_bar=(a1*y1+a2*y2+a3*y3)*(a1+a2+a3)**-1 #cm\n",
+ "\n",
+ "#Centre of gravity of whole section From top\n",
+ "\n",
+ "y_bar2=D-y_bar #cm\n",
+ "\n",
+ "#M.I of respective bodies\n",
+ "\n",
+ "i1=L1*d1**3*12**-1 #cm**4 #M.I of 1 about an axis passing through it's C.G\n",
+ "i2=L2*d2**3*12**-1 #cm**4 #M.I of 2 about an axis passing through it's C.G\n",
+ "i3=L3*d3**3*12**-1 #cm**4 #M.I of 3 about an axis passing through it's C.G\n",
+ "\n",
+ "h1=y_bar2-d1*2**-1 #cm #Distance of C.G of 1 from C.G of whole section\n",
+ "h2=y_bar2-(d2*2**-1+d1) #cm #Distance of C.G of 2 from C.G of whole section\n",
+ "h3=y_bar-d3*2**-1 #cm #Distance of C.G of 3 from C.G of whole section\n",
+ "\n",
+ "I1=i1+a1*h1**2 #cm**4 #M.I of 1 about an axis passing through C.G of section\n",
+ "I2=i2+a2*h2**2 #cm**4 #M.I of 2 about an axis passing through C.G of section\n",
+ "I3=i3+a3*h3**2 #cm**4 #M.I of 3 about an axis passing through C.G of section\n",
+ "\n",
+ "#Moment of Inertia of section about x-x axis\n",
+ "I_xx=(I1+I2+I3)*10**-6 #cm**4\n",
+ "\n",
+ "#Moment of Inertia of section about y-y axis\n",
+ "I_yy=(d1*L1**3*12**-1+d2*L2**3*12**-1+d3*L3**3*12**-1)*10**-6 #cm**4\n",
+ "\n",
+ "#Polar Moment of Inertia\n",
+ "I_zz=I_xx+I_yy #mm**4\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Polar Moment of Inertia is\",round(I_zz,2),\"mm**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Polar Moment of Inertia is 14.44 mm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.17,Page No.207"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "b=12 #cm #width of culvert\n",
+ "d=6 #cm #Depth\n",
+ "x=1 #cm #distance between axis of rectangle and semicircle\n",
+ "\n",
+ "b1=3 #cm #width of triangles\n",
+ "h1=6 #cm #height\n",
+ "x1=0 #cm #distance between axis of rectangle and triangles\n",
+ "r=4 #cm #radius of semicircle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#area of rectangle\n",
+ "A=b*d #cm\n",
+ "\n",
+ "#M.I of rectangle about an axis A-A\n",
+ "M1=b*d**3*12**-1+A*x #cm**4 \n",
+ "\n",
+ "#Area of rectangle\n",
+ "A1=b1*h1*2**-1 #cm**4\n",
+ "\n",
+ "#M.I of triangles\n",
+ "M2=2*(b1*h1**3*36**-1+A1*x1) #cm**4\n",
+ "\n",
+ "#M.I of semicircle\n",
+ "M3=0.11*r**4+pi*r**2*2**-1*(r-4*r*(3*pi)**-1)**2 #cm**4\n",
+ "\n",
+ "#M.I of c/s of culvert\n",
+ "M4=M1-M2-M3 #cm**4\n",
+ "\n",
+ "#Result\n",
+ "print\"Cross-section of culvert is\",round(M4,2),\"cm**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Cross-section of culvert is 90.62 cm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_8.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_8.ipynb new file mode 100644 index 00000000..34abb90c --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_8.ipynb @@ -0,0 +1,1672 @@ +{
+ "metadata": {
+ "name": "chapter 8.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8:Friction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.1,Page No.235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=100 #N #Weight of Body\n",
+ "P=F=60 #N #Horizontal Force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Reaction Force \n",
+ "R=W=100 #N\n",
+ "\n",
+ "#Coefficient of Friction\n",
+ "mu=F*R**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient of Friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient of Friction is 0.6\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.2,Page No.236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=200 #N #Weight of Body\n",
+ "mu=0.3 #Coefficient of Friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Reaction\n",
+ "R=W=200 #N\n",
+ "\n",
+ "#Horizontal Force\n",
+ "F=mu*R #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Horizontal Force is\",round(F,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Horizontal Force is 60.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.3,Page No.236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=50 #N #WEight \n",
+ "F=15 #N #Force required to pull\n",
+ "theta=15 #Degree #Angle made by Force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Reaction\n",
+ "R=W-F*sin(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Coefficient of friction\n",
+ "mu=F*cos(theta*pi*180**-1)*R**-1 #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient of Friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient of Friction is 0.31\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.4,Page No.236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=70 #N #Weight of Body\n",
+ "F=20 #N #force applied\n",
+ "theta=20 #degrees #Angle made by Force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#resolving Forces Normal to plane\n",
+ "R=W+F*sin(20*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Forces along the plane\n",
+ "mu=F*cos(20*pi*180**-1)*R**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"coefficient of Friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "coefficient of Friction is 0.24\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.5,Page No.237"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "P1=20 #N #pull\n",
+ "P2=25 #N #Required push\n",
+ "theta2=25 #Inclination of push\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Case-1 (When body is pulled)\n",
+ "\n",
+ "#Resolving Forces along the plane\n",
+ "#mu*R1=P1*cos(theta*pi*180**-1) #N .........1\n",
+ "\n",
+ "#Resolving Force normal to plane\n",
+ "#R1=W-P1*sin(theta*pi*180**-1) #N \n",
+ "\n",
+ "#Sub value of mu*R1 in above Equation we get\n",
+ "#mu*(W-8.452)=18.126 ......................2\n",
+ "\n",
+ "#Case-2 (When body is pushed)\n",
+ "\n",
+ "#Resolving Forces along the plane\n",
+ "#mu*R2=P2*cos(theta2*pi*180**-1) #N .........3\n",
+ "\n",
+ "#Resolving Force normal to plane\n",
+ "#R2=W-P2*cos(theta*pi*180**-1) #N \n",
+ "\n",
+ "#Sub value of mu*R2 in above Equation we get\n",
+ "#mu*(W-10.565)=22.657 .................4\n",
+ "\n",
+ "\n",
+ "#dividing equation 2 by 4 and Further simplifying we get\n",
+ "\n",
+ "#Weight of body\n",
+ "W=383*4.53**-1\n",
+ "\n",
+ "#Sub value of W in Equation 2\n",
+ "mu=18.126*(W-8.452)**-1 \n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight of Body is\",round(W,2),\"N\"\n",
+ "print\"Coefficient of Friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight of Body is 84.55 N\n",
+ "Coefficient of Friction is 0.24\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.7,Page No.239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=1000 #N #Weight of stone Block\n",
+ "mu=0.6 #Coefficient of Friction\n",
+ "theta=20 #Degrees #Angle with Horizontal\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#PArt-1\n",
+ "#resolving Horizontal Forces\n",
+ "#P*cos(theta)=mu*R ...........................1\n",
+ "\n",
+ "#Resolving Verticla Forces\n",
+ "#R+P*sin(theta)=W .............................2\n",
+ "\n",
+ "#Sub value of P from equation 2,we get\n",
+ "P=mu*W*(cos(theta*pi*180**-1)+mu*sin(theta*pi*180**-1))**-1 #N ........3\n",
+ "\n",
+ "#PArt-2\n",
+ "#Let phi=Angle of Friction\n",
+ "\n",
+ "#Form Equation 3 ,angle 20 is replaced by angle phi\n",
+ "#Force required to pull the body\n",
+ "#P2=mu*W*(cos(phi)+mu*sin(phi))**-1\n",
+ "\n",
+ "#The Force P will be min if Dericative of (cos(phi)+mu*sin(phi)) is equal to zero\n",
+ "phi=arctan(mu)*(180*pi**-1) #degrees\n",
+ "\n",
+ "#Force required to pull the body\n",
+ "P2=mu*W*(cos(phi*pi*180**-1)+mu*sin(phi*pi*180**-1))**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum Pull necessary is\",round(P,2),\"N\"\n",
+ "print\"Pull Required if inclination of rope is equal to angle of friction\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum Pull necessary is 524.06 N\n",
+ "Pull Required if inclination of rope is equal to angle of friction 524.06 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.11,Page No.241"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=500 #N #weight of Body\n",
+ "P=350 #N #Force applied\n",
+ "alpha=30 #Degrees #Inclination\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resolving Weights\n",
+ "W1=W*sin(30*pi*180**-1) #N\n",
+ "W2=W*cos(30*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Forces Vertically\n",
+ "#R=W*cos(30)\n",
+ "\n",
+ "#Resolving Forces Horizontally\n",
+ "mu=(P-W*sin(alpha*pi*180**-1))*(W*cos(alpha*pi*180**-1))**-1 \n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient Of Friction\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient Of Friction 0.23\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.12,Page No.246"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=450 #N #Weight of Body\n",
+ "alpha=30 #Degrees #Inclination of plane\n",
+ "mu=0.25 #coefficient of friction\n",
+ "d=10 #m #Distance travelled by body\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resolving Force normal to plane\n",
+ "R=W*cos(alpha*pi*180**-1)\n",
+ "\n",
+ "#Resolving Forces along the plane\n",
+ "P=W*sin(alpha*pi*180**-1)+mu*R #N\n",
+ "\n",
+ "#Work done on the body\n",
+ "W=P*d #J\n",
+ "\n",
+ "#Result\n",
+ "print\"Force required is\",round(P,2),\"N\"\n",
+ "print\"Work done is\",round(W,2),\"J\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force required is 322.43 N\n",
+ "Work done is 3224.28 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.13,Page No.246"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "#Case-1\n",
+ "P1=200 #N #Force applied\n",
+ "theta1=15 #Degrees #Inclination\n",
+ "\n",
+ "P2=230 #N #Force applied\n",
+ "theta2=20 #Degrees #Inclination\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#For Case-1,\n",
+ "\n",
+ "#W1=W*sin(theta1*pi*180**-1) #N\n",
+ "#W2=W*cos(theta1*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Forces Vertically\n",
+ "#R=W2\n",
+ "\n",
+ "#Resolving Foces Horizontally\n",
+ "#mu*W2+W1=P1 .......................1\n",
+ "\n",
+ "#For case-2\n",
+ "\n",
+ "#W3=W*sin(theta2*pi*180**-1) #N\n",
+ "#W4=W*cos(theta2*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Forces Vertically\n",
+ "#R=W3\n",
+ "\n",
+ "#Resolving Foces Horizontally\n",
+ "#mu*W3+W4=P2 .......................2\n",
+ "\n",
+ "#After sub values inequations 1 & 2 and dividing equations 2 by 1 we get\n",
+ "mu=mu=(P1*sin(20*pi*180**-1)-P2*sin(15*pi*180**-1))*(P2*cos(15*pi*180**-1)-P1*cos(20*pi*180**-1))**-1 \n",
+ "\n",
+ "#weight of Body\n",
+ "W=P2*(sin(theta2*pi*180**-1)+mu*cos(theta2*pi*180**-1))**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Weight of Body is\",round(W,2),\"N\"\n",
+ "print\"Coefficient of Friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight of Body is 392.68 N\n",
+ "Coefficient of Friction is 0.26\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.15,Page No.249"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=15 #N #Weight of Block\n",
+ "T=5 #N #Tension in string\n",
+ "alpha=45 #Degrees #Inclination\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Frictional Foce on Block\n",
+ "F=-(T*cos(alpha*pi*180**-1)-W*sin(alpha*pi*180**-1)) #N\n",
+ "\n",
+ "#Normal Reaction of inclined plane\n",
+ "R=(W*cos(alpha*pi*180**-1)+T*sin(alpha*pi*180**-1)) #N\n",
+ "\n",
+ "#Coefficient of friction \n",
+ "mu=F*R**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Frictional Force on Block is\",round(F,2),\"N\"\n",
+ "print\"Normal Reaction of inclined plane\",round(R,2),\"N\"\n",
+ "print\"Coefficient of friction\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frictional Force on Block is 7.07 N\n",
+ "Normal Reaction of inclined plane 14.14 N\n",
+ "Coefficient of friction 0.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.16,Page No.250"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "mu_s=0.4 #Coefficient of static Friction\n",
+ "mu_k=0.3 #Coefficient of Kinetic friction\n",
+ "M=40 #Kg #MAss of body\n",
+ "g=9.81 #acceleration due to gravity\n",
+ "W=M*g #N\n",
+ "theta=40 \n",
+ "alpha=30 #Inclination\n",
+ "P=800 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#normal Reaction \n",
+ "R=P*sin(theta*pi*180**-1)+M*g*cos(alpha*pi*180**-1) #N\n",
+ "\n",
+ "#Max Frictional Force\n",
+ "F=mu_s*R #N\n",
+ "\n",
+ "#Total Force along plane\n",
+ "F=P*cos(theta*pi*180**-1)-M*g*sin(alpha*pi*180**-1) #N\n",
+ "\n",
+ "#Magntude of Frictional Force\n",
+ "F2=mu_k*R #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Friction Force\",round(F2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Friction Force 256.22 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.17,Page No.252"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=30 #N #Weight acting vertically downward\n",
+ "P2=6 #N #Force at angle of 30 with inclined plane\n",
+ "theta=30 #Degrees #Inclination of force with the inclined plane\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#Reaction Force is given by\n",
+ "#R=W*cos(alpha)-P2*sin(theta)\n",
+ "\n",
+ "#Now resolving Force we get\n",
+ "alpha=arcsin(P2*cos(theta*pi*180**-1)*W**-1)\n",
+ "alpha2=180*pi**-1*alpha #degrees\n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#resolving Forces normal to inclined plane\n",
+ "R=W*cos(round(alpha2,2)*pi*180**-1) #N\n",
+ "\n",
+ "#Resolving Forces normal to inclined plane\n",
+ "P1=W*sin(round(alpha2,2)*pi*180**-1)+mu*round(R,2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Force required to move a load 30 N up a rough plane is\",round(P1,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force required to move a load 30 N up a rough plane is 14.06 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.18,Page No.253"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W1=400 #N #Weight of first body\n",
+ "W2=800 #N #Weight of second body\n",
+ "mu1=0.15 #Coefficient of friction of first body\n",
+ "mu2=0.40 #Coefficient of friction of seconnd body\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Forces acting on the first body\n",
+ "\n",
+ "#Resolving force along plane\n",
+ "#W1*sin(alpha)=T+mu1*R1 ............................1\n",
+ "\n",
+ "#Resolving Forces normal to plane\n",
+ "#W1*cos(alpha)=R1\n",
+ "\n",
+ "#Sub value of R1 in equation1,we get\n",
+ "#T=400*sin(alpha)-60*cos(alpha) .......................2\n",
+ "\n",
+ "#Forces on second body\n",
+ "\n",
+ "#Resolving forces along the plane\n",
+ "#W2*sin(alpha)+T=mu2*R2 .........................3\n",
+ "\n",
+ "#Resolving forces normal to plane\n",
+ "#R2=W2*cos(alpha)\n",
+ "\n",
+ "#sub value of R2 in equation3\n",
+ "#T=320*cos(alpha)-W2*sin(alpha) ...............4\n",
+ "\n",
+ "#Equating values of T,given by equation 2 and 3\n",
+ "#W1*sin(alpha)-60*cos(alpha)=320*cos(alpha)-W2*sin(alpha)\n",
+ "#Further simplifying we get\n",
+ "alpha=arctan(380*1200**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Sub value of alpha in equation 2\n",
+ "T=W1*sin(round(alpha,2)*pi*180**-1)-60*cos(round(alpha,2)*pi*180**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Inclination of the plane to the horizontal is\",round(alpha,2),\"Degrees\"\n",
+ "print\"Tension in the cord is\",round(T,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Inclination of the plane to the horizontal is 17.57 Degrees\n",
+ "Tension in the cord is 63.55 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.19,Page No.255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W_B=1500 #N #Weight of block B\n",
+ "mu_A=0.25 #Coefficint of friction of block A\n",
+ "mu_B=0.35 #Coefficient of Friction of block B\n",
+ "alpha=60 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#BLock A\n",
+ "#F_A=mu_A*W_A #Force of friction\n",
+ "\n",
+ "#Block B\n",
+ "#HOrizontal Force of friction of block A is transmitted through rod to block B\n",
+ "\n",
+ "#Force of friction of block B\n",
+ "#F_B=mu2*R_B\n",
+ "\n",
+ "#Resolving Horizontal Forces\n",
+ "#mu1*W_A+F_B*cos(alpha)=R_B*cos(30)\n",
+ "#After further simplifying we get\n",
+ "#mu_A*W_A=0.691*R_B ...........................1\n",
+ "\n",
+ "#Resolving Forces vertically\n",
+ "#R_B*sin(30)+F_B*sin(alpha)=W_B\n",
+ "#After further simplifying we get\n",
+ "R_B=W_B*0.803**-1 #N\n",
+ "\n",
+ "#Sub value of R_b in equation 1 we get\n",
+ "W_A=0.691*R_B*mu_A**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Smallest Weight of Block A is\",round(W_A,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Smallest Weight of Block A is 5163.14 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.20,Page No.257"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables \n",
+ "\n",
+ "W_A=100 #N Weight of block A\n",
+ "W_B=300 #N #Weight of block B\n",
+ "alpha=45 #Degrees #Inclination of plane\n",
+ "phi=30 #Degrees #Inclination of rigid bar with horizontal \n",
+ "mu=tan(15*pi*180**-1) #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A And B respectively and t be the thrust in rod\n",
+ "\n",
+ "#Equilibrium of bLoack A\n",
+ "#Resolving forces along plane\n",
+ "#W_A*sin(alpha)+F_A=T*cos(15)\n",
+ "#After further simplifying we get\n",
+ "#70.7+0.2679*R_A=0.969*T .................1\n",
+ "\n",
+ "#Resolving force snormal to plane\n",
+ "#R_A=W_A*cos(alpha)+T*sin(15)=R_A\n",
+ "\n",
+ "#Now sub value of R_A in equation 1 we get\n",
+ "#70.7+0.269*(100*0.707+T*0.2588)=0.9659*T\n",
+ "#After further simplifying we get\n",
+ "T=89.64*0.8966**-1 #N\n",
+ "\n",
+ "#Equilibrium of block B\n",
+ "#Resolving forces normal to plane\n",
+ "R_B=W_B+T*sin(phi*180**-1*pi)\n",
+ "#Resolving forces along plane\n",
+ "P=T*cos(phi*pi*180**-1)+mu*R_B\n",
+ "\n",
+ "#Result\n",
+ "print\"HOrizontal Force required to be apllied to block B to just move block A is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "HOrizontal Force required to be apllied to block B to just move block A is 180.36 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.21,Page No.258"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "mu=0.2 #Coefficient of friction\n",
+ "W1=100 #N #weight of Block1\n",
+ "W2=150 #N #Weight of Block2\n",
+ "theta=60 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Case-1\n",
+ "\n",
+ "#Reaction Force \n",
+ "R=W2*cos(theta*pi*180**-1) #N\n",
+ "\n",
+ "#Tension in the string\n",
+ "T=W2*sin(theta*pi*180**-1)+mu*R #N\n",
+ "\n",
+ "#Case-2\n",
+ "\n",
+ "theta2=arctan(mu)*(pi**-1*180) #Angle made by Force with horizontal acting on block 1\n",
+ "\n",
+ "#Force on block with weight 100 N\n",
+ "P=164.9*((cos(theta2*pi*180**-1)+mu*sin(theta2*pi*180**-1))**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Least Value of Force P to cause motion to impend rightwards is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Least Value of Force P to cause motion to impend rightwards is 161.7 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.22,Page No.260"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W1=90 #N #Weight of Block 1\n",
+ "W2=30 #N #Weight of Block2\n",
+ "mu=1*3**-1 #Coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Considering Equilibrium of weight W2\n",
+ "\n",
+ "#Tension in the string\n",
+ "#T=W2*sin(theta)+mu*R1 .....................................1\n",
+ "\n",
+ "#Normal reaction to the plane\n",
+ "#R1=W2*cos(theta) .......................................2\n",
+ "\n",
+ "#Sub value of R1 in equation 1 we get\n",
+ "#T=W2*sin(theta)+10*cos(theta) ........................3\n",
+ "\n",
+ "#Considering Equilibrium of weight W1\n",
+ "\n",
+ "#Resolving Forces along the plane\n",
+ "#W1*sin(theta)=10*cos(theta)+mu*R2 ..................4\n",
+ "\n",
+ "#Resolving Forces normal to plane\n",
+ "#R2=120*cos(theta) ...........5\n",
+ "\n",
+ "#Sub value of R2 in equation 4 we get\n",
+ "theta=arctan(0.5555)*(pi**-1*180) #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Value of angle theta should be\",round(theta,2),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of angle theta should be 29.05 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.23,Page No.262"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AC=10 #m #Length of AC\n",
+ "L_BC=8 #m #Length of BC\n",
+ "W=20 #N #weight \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "L_AB=(L_AC**2-L_BC**2)**0.5 #m #Length of AB\n",
+ "L_CD=L_BC*2**-1 #m\n",
+ "\n",
+ "#Now Resolving Forces\n",
+ "\n",
+ "#Vertically\n",
+ "#Reaction Force at C\n",
+ "R_C=W #N\n",
+ "\n",
+ "#Horizontally\n",
+ "#R_A=F_C=mu*R_C \n",
+ "\n",
+ "#Taking Moment at pt C\n",
+ "#Coefficient of friction \n",
+ "mu=W*L_CD*(R_C*L_AB)**-1 \n",
+ "\n",
+ "#Frictional Force acting at C\n",
+ "F_C=round(mu,2)*R_C #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient of Friction\",round(mu,2)\n",
+ "print\"Frictional Force acting at pt C\",round(F_C,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient of Friction 0.67\n",
+ "Frictional Force acting at pt C 13.4 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.24,Page No.263"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=13 #m #Length of AB\n",
+ "W=25 #N #weight of Ladder\n",
+ "L_AC=5 #m #Distance of lower ladder from wall\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Forces on the ladder \n",
+ "\n",
+ "#Vertical Forces\n",
+ "R_A=W #N\n",
+ "\n",
+ "#Horizontal Forces\n",
+ "R_B=F_A=mu*R_A #N\n",
+ "\n",
+ "#MAx amount of frictional Force availale at A\n",
+ "F_A #N\n",
+ "\n",
+ "L_AD=L_CD=2.5 #m #Length of AD and CD\n",
+ "L_BC=(L_AB**2-L_AC**2)**0.5 #m\n",
+ "\n",
+ "#Moment at pt A\n",
+ "R_B2=R_A*L_AD*L_BC**-1 #N\n",
+ "\n",
+ "#Horizontal Forces\n",
+ "F_A2=R_B2 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Frictional Force acting on ladder is\",round(F_A,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frictional Force acting on ladder is 7.5 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.25,Page No.264"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L_AB=14 #m #Length of AB\n",
+ "W=600 #N #weight of Ladder\n",
+ "L_AD=8 #m #Distance of lower ladder from wall\n",
+ "L_BD=6 #m #LEngth of BD\n",
+ "mu=1*3**-1 #Coefficient of friction\n",
+ "CBA=60 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Resolving forces\n",
+ "\n",
+ "#Vertically\n",
+ "R_B=W #N\n",
+ "#Actual Force of friction at pt B\n",
+ "F_B=mu*R_B #N\n",
+ "\n",
+ "\n",
+ "#Horizontally\n",
+ "R_A=F_B #N\n",
+ "\n",
+ "\n",
+ "L_BE=L_BD*cos(CBA*pi*180**-1) #m\n",
+ "L_AC=L_AB*sin(CBA*pi*180**-1) #m\n",
+ "\n",
+ "R_A2=R_B*L_BE*L_AC**-1\n",
+ "F_B2=R_A2 #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Force available at B the force required force for equilibrium,the ladder will be stable:F_B is\",round(F_B,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force available at B the force required force for equilibrium,the ladder will be stable:F_B is 200.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.26,Page No.265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=850 #N #Weight of ladder\n",
+ "L=L_AB=6 #m #Length of AB\n",
+ "alpha=65 #Degrees #Angle made by ladder with ladder\n",
+ "W1=750 #N #Weight of man\n",
+ "L1=4 #m #Distance of man from top of ladder\n",
+ "L2=L-L1 #m #Distance of man form foot of ladder\n",
+ "L_BE=4 #m #Length of BE\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Forces acting on the ladder\n",
+ "\n",
+ "#Resolving Forces Vertically\n",
+ "R_A=W+W1 #N\n",
+ "\n",
+ "#Horizontally\n",
+ "#R_B=F_A=mu*R_A #N\n",
+ "\n",
+ "L_BC=L_AB*sin(alpha*pi*180**-1) #m #Length of BC\n",
+ "L_AC=L_AB*cos(alpha*pi*180**-1) #m #Length of AC\n",
+ "\n",
+ "L_AD=L_AC*2**-1 #m #Length of AD\n",
+ "L_AH=(L_AB-L_BE)*cos(alpha*pi*180**-1) #m\n",
+ "\n",
+ "#Coefficient of friction\n",
+ "mu=(W1*L_AD+W*L_AH)*(L_BC*R_A)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Coefficient of friction is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coefficient of friction is 0.19\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.27,Page No.266"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=200 #N #Weight of ladder\n",
+ "L=L_AB=4.5 #m\n",
+ "mu=0.4 #Coefficient of friction between ladder and floor\n",
+ "mu2=0.2 #coefficient of frictionbetween LAdder and wall\n",
+ "W1=900 #N #Weight on ladder \n",
+ "L_BE=1.2 #m #distance\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#FOrces acting on ladder\n",
+ "\n",
+ "#Resolving FOrces Vertically\n",
+ "#R_A+F_B=W1+W #N ................1\n",
+ "\n",
+ "#Horizontally\n",
+ "#R_B=mu*R_A .....................2\n",
+ "\n",
+ "#Resolving Force R_B in equation 1 we get\n",
+ "R_A=(W1+W)*1.08**-1 #N\n",
+ "\n",
+ "#Reaction at B\n",
+ "R_B=mu*R_A #N\n",
+ "\n",
+ "#Moment at pt A\n",
+ "#W*L_AD+W1*L_AH=R_B*L_BC+F_B*L_AC\n",
+ "#After further simplifying we get\n",
+ "alpha=arctan(1.665)*(180*pi**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle made by ladder with Horizontal\",round(alpha,2),\"Degrees\"\n",
+ "print\"Reaction at the Foot of ladder\",round(R_A,2),\"N\"\n",
+ "print\"Reaction at the Foot top of ladder\",round(R_B,2),\"N\"\n",
+ "\n",
+ "#Value of alpha is incorrect in book i.e 59degree 65seconds"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle made by ladder with Horizontal 59.01 Degrees\n",
+ "Reaction at the Foot of ladder 1018.52 N\n",
+ "Reaction at the Foot top of ladder 407.41 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.28,Page No.267"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "L=5 #m #Length of ladder\n",
+ "alpha=30 #Degrees #Angle made by ladder with horizontal\n",
+ "W1=250 #N #weight of ladder\n",
+ "W2=800 #N #weight of man\n",
+ "mu=0.2 #Coefficinet of friction \n",
+ "L_AG=5*2**-1 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions at A and b respectively\n",
+ "#F_B=mu*R_B\n",
+ "#F_A=mu*R_A\n",
+ "\n",
+ "#Resolving forces vertically\n",
+ "#R_A+F_B=W1+W2 .............1\n",
+ "\n",
+ "#Resolving forces horizontally\n",
+ "#R_B=0.2*R_A.....................2\n",
+ "\n",
+ "#After sub values and further simplifying we get\n",
+ "R_A=1050*1.04**-1 #N\n",
+ "\n",
+ "#Sub value of R_A in equation 2 we get\n",
+ "R_B=0.2*R_A\n",
+ "\n",
+ "#Triangle AGD\n",
+ "L_AD=L_AG*cos(60*pi*180**-1)\n",
+ "\n",
+ "#TRiangle AEH\n",
+ "#L_AH=x*cos(60) \n",
+ "\n",
+ "L_BC=L*cos(alpha*pi*180**-1)\n",
+ "L_AC=L*cos(60*pi*180**-1)\n",
+ "\n",
+ "F_B=mu*R_B\n",
+ "\n",
+ "#Taking moment at A\n",
+ "#W2*x*2**-1+W*L_AD=R_B*L_BC+F_B*L_AC\n",
+ "#After sub values and further simplifying we get\n",
+ "x=66.276*40**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"The slipping will be induced at\",round(x,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The slipping will be induced at 1.66 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.29,Page No.271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "alpha=10 #Degrees #Angle of Wedge\n",
+ "W=1500 #N #weight of Block\n",
+ "mu=0.3 #Coefficient of friction\n",
+ "phi=arctan(mu)*(180*pi**-1)\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Applying Lamis theorem to the point O\n",
+ "#W*(sin(2*phi+90+alpha))**-1=R3*(sin(180-(alpha+phi)))**-1=R2*(sin(90-phi))**-1\n",
+ "#After further simplifying we get\n",
+ "Y=180-(alpha+phi)\n",
+ "Z=sin(Y*pi*180**-1)\n",
+ "Y1=2*phi+90+alpha\n",
+ "Z1=sin(Y1*pi*180**-1)\n",
+ "R3=W*(Z)*(Z1)**-1 #N\n",
+ "\n",
+ "Y2=90-phi\n",
+ "Z2=sin(Y2*pi*180**-1)\n",
+ "R2=W*Z2*Z1**-1 #N\n",
+ "\n",
+ "#Applying Lamis theorem to the point L\n",
+ "#R1*sin(90+alpha+phi)**-1=R2*sin(90+phi)**-1=P*sin(180-2*phi-alpha)**-1\n",
+ "#After further simplifying we get\n",
+ "Y3=180-(2*phi+alpha)\n",
+ "Z3=sin(Y3*pi*180**-1)\n",
+ "P=Z3*R2*Z2**-1 #N\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum Horizontal force be applied on wedge to raise the block is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum Horizontal force be applied on wedge to raise the block is 1418.4 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.30,Page No.277"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "D=0.1 #m #Diameter\n",
+ "R=0.05 #m #Radius\n",
+ "N=150 #r.p.m \n",
+ "mu=0.05 #Coefficient of friction\n",
+ "W=15*10**3 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Power Loast in friction assuming uniform pressure\n",
+ "T=2*3**-1*mu*W*R #N*m\n",
+ "\n",
+ "#Power Lost in Friction\n",
+ "P=2*pi*N*T*60**-1 #W\n",
+ "\n",
+ "#Power Lost in friction assuming wear\n",
+ "T2=0.5*mu*W*R #W\n",
+ "\n",
+ "#Power Lost in friction\n",
+ "P2=2*pi*N*T2*60**-1 #W\n",
+ "\n",
+ "#Result\n",
+ "print\"Power Loast in friction assuming uniform pressure is\",round(P,2),\"W\"\n",
+ "print\"Power Lost in friction assuming wear is\",round(P2,2),\"W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Loast in friction assuming uniform pressure is 392.7 W\n",
+ "Power Lost in friction assuming wear is 294.52 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.31,Page No.282"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "alpha=60 #Degrees\n",
+ "D=0.3 #m #Diameter of shaft\n",
+ "R=0.15 #m #Radius of shaft\n",
+ "W=20*10**3 #N\n",
+ "N=210 #r.p.m\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Frictional Torque\n",
+ "T=2*3**-1*mu*W*R*(sin(alpha*pi*180**-1))**-1 #N*m\n",
+ "\n",
+ "#Power Lost in Friction for uniform pressure\n",
+ "P=2*pi*N*T*60**-1*10**-3 #KW\n",
+ "\n",
+ "#Power Loast in friction for uniform wear\n",
+ "T2=1*2**-1*mu*W*R*(sin(alpha*pi*180**-1))**-1 #N*m\n",
+ "\n",
+ "#Power Lost\n",
+ "P2=2*pi*N*T2*60**-1*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power Lost in Friction assuming:Uniforming pressure\",round(P2,2),\"KW\"\n",
+ "print\" :Uniform wear\",round(P2,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Lost in Friction assuming:Uniforming pressure 1.9 KW\n",
+ " :Uniform wear 1.9 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.32,Page No.283"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "W=25*10**3 #N #load\n",
+ "alpha=60 #degrees \n",
+ "p=350*10**3 #N/m**2 #pressure\n",
+ "N=180 #r.p.m\n",
+ "mu=0.05 \n",
+ "#r1*2*r2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Equation of uniform pressure\n",
+ "r2=(W*(pi*p*3)**-1)**0.5 #m\n",
+ "r1=2*r2 #m\n",
+ "\n",
+ "#Frictional Torque\n",
+ "T=2*3**-1*mu*W*(sin(alpha*pi*180**-1))**-1*(r1**3-r2**3)*(r1**2-r2**2)**-1 #m\n",
+ "\n",
+ "#Power absorbed in friction\n",
+ "P=2*pi*N*T*60**-1*10**-3 #KW\n",
+ "\n",
+ "#Result\n",
+ "print\"Power absorbed in friction\",round(P,2),\"KW\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power absorbed in friction 3.68 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.33,Page No.286"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "r1=0.25 #m #External Radius\n",
+ "r2=0.15 #m #Internal Radius\n",
+ "W=50*10**3 #N #Total axial load\n",
+ "mu=0.05 #Coefficient of friction\n",
+ "N=150 #r.p.m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Torque\n",
+ "T=2*3**-1*mu*W*((r1**3-r2**3)*(r1**2-r2**2)**-1) #N*m\n",
+ "\n",
+ "#Power lost in Frction\n",
+ "P=2*pi*N*T*60**-1*10**-3 #KW \n",
+ "\n",
+ "#Result\n",
+ "print\"Power lost in Frction is\",round(P,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power lost in Frction is 8.02 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.34,Page No.287"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Declaration Of Variables\n",
+ "\n",
+ "r1=0.21 #m #External Radius\n",
+ "r2=0.16 #m #Internal Radius\n",
+ "W=60*10**3 #N #Total axial load\n",
+ "mu=0.05 #Coefficient of friction\n",
+ "N=380 #r.p.m\n",
+ "p=350*10**3 #N/m**2 #Intensity of pressure\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Power Loast in Overcoming friction\n",
+ "\n",
+ "#Torque\n",
+ "T=2*3**-1*mu*W*((r1**3-r2**3)*(r1**2-r2**2)**-1) #N*m\n",
+ "\n",
+ "P=2*pi*N*T*60**-1*10**-3 #KW \n",
+ "\n",
+ "#Number of collars required\n",
+ "\n",
+ "#Load per collar\n",
+ "W2=p*pi*(r1**2-r2**2)\n",
+ "\n",
+ "n=W*W2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Power Loast in Overcoming friction is\",round(P,2),\"KW\"\n",
+ "print\"Number of collars required for the thrust\",round(n,1)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Loast in Overcoming friction is 22.22 KW\n",
+ "Number of collars required for the thrust 2.9\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/chapter_9.ipynb b/Engineering_Mechanics_by_R.K_Bansal/chapter_9.ipynb new file mode 100644 index 00000000..eaa881e8 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/chapter_9.ipynb @@ -0,0 +1,1616 @@ +{
+ "metadata": {
+ "name": "chapter 9.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9:Lifting Machines"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.1,Page No.295"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=100 #N #effort applied\n",
+ "W=900 #N #Lad applied\n",
+ "y=100 #cm #Distance moved by effort\n",
+ "x=10 #cm #Distance moved by load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio \n",
+ "VR=y*x**-1 \n",
+ "\n",
+ "#Efficiency\n",
+ "rho=MA*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"velocity ratio is\",round(VR,2)\n",
+ "print\"Efficiency is\",round(rho,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mechanical Advantage is 9.0\n",
+ "velocity ratio is 10.0\n",
+ "Efficiency is 90.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.2,Page No.296"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=500 #N #Effort applied\n",
+ "y=5 #m #Distance moved by effort\n",
+ "x=0.5 #cm #Distance moved by load\n",
+ "rho=0.8 #Efficiency\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Load Lifted by machine\n",
+ "W=P*y*rho*(x)**-1 #N\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=y*x**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Load Lifted by the machine is\",round(W,2),\"N\"\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"Velocity ratio is\",round(VR,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load Lifted by the machine is 4000.0 N\n",
+ "Mechanical Advantage is 8.0\n",
+ "Velocity ratio is 10.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.3,Page No.297"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=20 #N #Actual Effort\n",
+ "W=900 #N #Load Lifted\n",
+ "y=2.40 #m #Distance moved by effort\n",
+ "x=0.04 #m #Distance moved by load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=y*x**-1 \n",
+ "\n",
+ "#Efficiency\n",
+ "rho=MA*VR**-1\n",
+ "\n",
+ "#Ideal Effort required\n",
+ "P1=rho*P \n",
+ "\n",
+ "#Result\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Efficiency is\",round(rho,2)\n",
+ "print\"Ideal Effort is\",round(P1,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mechanical Advantage is 45.0\n",
+ "Velocity ratio is 60.0\n",
+ "Efficiency is 0.75\n",
+ "Ideal Effort is 15.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.4,Page No.297"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=0.7 #eifficiency\n",
+ "P=10 #N #Effort\n",
+ "W=500 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=MA*rho**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"Velocity ratio is\",round(VR,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mechanical Advantage is 50.0\n",
+ "Velocity ratio is 71.43\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.5,Page No.299"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P1=15 #N #Effort\n",
+ "W1=770 # #Load\n",
+ "rho=0.60 #Efficiency\n",
+ "\n",
+ "P2=25 #N \n",
+ "W2=1320\n",
+ "\n",
+ "P=15 #N \n",
+ "W=500 #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#First Case\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W1*P1**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=MA*rho**-1 \n",
+ "\n",
+ "#Second case\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA2=W2*P2**-1 \n",
+ "\n",
+ "#Efficiency\n",
+ "rho2=MA2*VR**-1*100\n",
+ "\n",
+ "#Third case\n",
+ "\n",
+ "#from LAw of machine\n",
+ "#P=m*W+C ................1\n",
+ "\n",
+ "#Equation 2\n",
+ "#P2=W2*m+C ...............2\n",
+ "\n",
+ "#Subtracting equation 2 from 1 we get\n",
+ "m=10*550**-1\n",
+ "\n",
+ "#Constacnt value \n",
+ "C=P2-W2*m\n",
+ "\n",
+ "#Sub value C in equation 1 we get\n",
+ "P3=m*W+C #N\n",
+ "\n",
+ "#MAx Mechanical advantage\n",
+ "MA_max=1*m**-1\n",
+ "\n",
+ "#MAx Efficiency \n",
+ "rho_max=1*(m*VR)**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"Velocity Ratio is\",round(VR,2)\n",
+ "print\"Efficiency is\",round(rho2,2),\"%\"\n",
+ "print\"Effort Required to raise the Load 500 N\",round(P3,2),\"N\"\n",
+ "print\"MAx Mechanical Advantage is\",round(MA_max,2)\n",
+ "print\"MAx Efficiency is\",round(rho_max,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mechanical Advantage is 51.33\n",
+ "Velocity Ratio is 85.56\n",
+ "Efficiency is 61.71 %\n",
+ "Effort Required to raise the Load 500 N 10.09 N\n",
+ "MAx Mechanical Advantage is 55.0\n",
+ "MAx Efficiency is 64.29\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.6,Page No.301"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Effort\n",
+ "P1=15.5 #N\n",
+ "P2=19.5 #N\n",
+ "\n",
+ "#Loads\n",
+ "W1=100 #N\n",
+ "W2=90 #N\n",
+ "\n",
+ "m=0.2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Law of machine equation \n",
+ "#P=m*W+C \n",
+ "\n",
+ "#Equations\n",
+ "#P1=m*W1+C ................1\n",
+ "#P2=m*W2+C ....................2\n",
+ "\n",
+ "#sub value of m in equation 1 weget\n",
+ "C=P1-m*W1\n",
+ "\n",
+ "#Effort required to lift a Load\n",
+ "P1=m*W1+C\n",
+ "\n",
+ "#MEchanical advantage\n",
+ "MA=1*m**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort required to Lift a Load of 100 N\",round(P1,2),\"N\"\n",
+ "print\"MAx MEchanical Advantage is\",round(MA,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort required to Lift a Load of 100 N 15.5 N\n",
+ "MAx MEchanical Advantage is 5.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.7,Page No.303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=0.8 #Efficiency\n",
+ "P=15 #N #Effort\n",
+ "W=130 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=W*(P*rho)**-1 \n",
+ "\n",
+ "#Frictional force in terms of machine in tems of effort\n",
+ "Fp=P-W*VR**-1 #N\n",
+ "\n",
+ "#Frictional Force of the machine in terms of Load\n",
+ "Fw=P*VR-W #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Frictional force in terms of machine in tems of effort\",round(Fp,2),\"N\"\n",
+ "print\"Frictional Force of the machine in terms of Load is\",round(Fw,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity ratio is 10.83\n",
+ "Frictional force in terms of machine in tems of effort 3.0 N\n",
+ "Frictional Force of the machine in terms of Load is 32.5 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.8,Page No.303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "VR=15 #Velocity ratio\n",
+ "rho=0.6 #Efficiency\n",
+ "W=100 #N #Load Lifted\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Power\n",
+ "P=W*(VR*rho)**-1 #N\n",
+ "\n",
+ "#Frictional Force\n",
+ "Fp=P-(W*VR**-1) #N\n",
+ "\n",
+ "#Let C=Fp\n",
+ "C=Fp\n",
+ "\n",
+ "#From law of machine,we get\n",
+ "#P=m*W+C\n",
+ "#After sub values and furter simplifying we get\n",
+ "m=(P-C)*W**-1\n",
+ "\n",
+ "#After sub values in above equaion we get law of machine as\n",
+ "#P2=m*W2+c #N\n",
+ "\n",
+ "#when W2=140 #N\n",
+ "W2=140 #N\n",
+ "P2=m*W2+C #N\n",
+ "\n",
+ "#When W3=0\n",
+ "W3=0 #N\n",
+ "P3=m*W3+C #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort required to run the machine at Load:W2=140 is\",round(P2,2),\"N\"\n",
+ "print\"Effort required to run the machine at Load:W3=0 is\",round(P3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort required to run the machine at Load:W2=140 is 13.78 N\n",
+ "Effort required to run the machine at Load:W3=0 is 4.44 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9,Page No.304"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=12 #N #Effort\n",
+ "VR=18 #Velocity ratio\n",
+ "rho=0.6 #efficiency\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Load lifted\n",
+ "W=rho*P*VR #N\n",
+ "\n",
+ "#LEt C=Fp\n",
+ "Fp=P-(W*VR**-1) #N\n",
+ "C=Fp\n",
+ "\n",
+ "#From law of machine we get\n",
+ "m=(P-C)*W**-1 #N\n",
+ "\n",
+ "#Sub value of m in equation we get\n",
+ "#P2=1*18**-1*W2+C\n",
+ "\n",
+ "#Sub W2=90\n",
+ "W2=90 \n",
+ "P2=m*W2+C\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort required to run the machine is\",round(P2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort required to run the machine is 9.8 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.10,Page No.305"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "VR=10 #Velocity ratio\n",
+ "P=100 #N #Effort applied\n",
+ "Fp=20 #N #effort lost in friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Load Lifted\n",
+ "W=(P-Fp)*VR #N\n",
+ "\n",
+ "#Efficiency\n",
+ "rho=W*P**-1*VR**-1*100 \n",
+ "\n",
+ "#Result\n",
+ "print\"Load Lifted is\",round(W,2),\"N\"\n",
+ "print\"Efficiency is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load Lifted is 800.0 N\n",
+ "Efficiency is 80.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.11,Page No.305"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "P=40 #N #Effort applied\n",
+ "W=600 #N #Load Lifted\n",
+ "VR=20 #Velocity ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#MAchine Fiction in terms of effort\n",
+ "Fp=P-W*VR**-1 #N\n",
+ "\n",
+ "#M/c Friction in terms of Load\n",
+ "Fw=P*VR-W #N\n",
+ "\n",
+ "#efficiency\n",
+ "rho=W*P**-1*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"MAchine Fiction in terms of effort is\",round(Fp,2),\"N\"\n",
+ "print\"M/c Friction in terms of Load is\",round(Fw,2),\"N\"\n",
+ "print\"Ffficiency of the machine is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "MAchine Fiction in terms of effort is 10.0 N\n",
+ "M/c Friction in terms of Load is 200.0 N\n",
+ "Ffficiency of the machine is 75.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.12,Page No.306"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "P=15 #N #Effort applied\n",
+ "W=200 #N #Load Lifted\n",
+ "VR=40 #Velocity ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Efficiency\n",
+ "rho=W*P**-1*VR**-1 #%\n",
+ "\n",
+ "#Friction Load of m/c \n",
+ "Fw=P*VR-W #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Friction Load of m/c is\",round(Fw,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Friction Load of m/c is 400.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.13,Page No.307"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=48 #N #Weight\n",
+ "P=16 #N #Force\n",
+ "D=400 #mm #Diameter of wheel\n",
+ "d=100 #mm #Diameter of axle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=D*d**-1 \n",
+ "\n",
+ "#Efficiency of the machine\n",
+ "rho=MA*VR**-1*100 #%\n",
+ "\n",
+ "#Result\n",
+ "print\"Mechanical Advantage is\",round(MA,2)\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Efficiency of the machine is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mechanical Advantage is 3.0\n",
+ "Velocity ratio is 4.0\n",
+ "Efficiency of the machine is 75.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.14,Page No.309"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=25 #cm #Diameter of wheel\n",
+ "d1=10 #cm #LArge dia. of axle\n",
+ "d2=9 #cm #Small Dia. of axle\n",
+ "P=30 #N #Effort applied\n",
+ "W=900 #N #Load Lifted\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*D*(d1-d2)**-1 \n",
+ "\n",
+ "#Mechanical advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Efficiency\n",
+ "rho=MA*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Mechanical advantage is\",round(MA,2)\n",
+ "print\"Efficiency is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity ratio is 50.0\n",
+ "Mechanical advantage is 30.0\n",
+ "Efficiency is 60.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.15,Page No.310"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "T=60 #No. of teeth on worm wheel\n",
+ "L=12.5 #cm #Radius of effort wheel\n",
+ "r=6.25 #cm #Radius of Load drum\n",
+ "P=20 #N #Effort\n",
+ "W=600 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=L*T*r**-1 \n",
+ "\n",
+ "#Efficiency\n",
+ "rho=W*P**-1*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity ratio for single threaded worm is\",round(VR,2)\n",
+ "print\"Efficiency of the worm is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity ratio for single threaded worm is 120.0\n",
+ "Efficiency of the worm is 25.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.16,Page No.312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "T1=10 #No.of teeth on pinion\n",
+ "T2=100 #No.of teeth on spur wheel\n",
+ "D=30 #cm #Dia. of Load axle\n",
+ "L=30 #cm #Length of lever\n",
+ "P=20 #N #Effort applied\n",
+ "W=360 #N #Load Lifted\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*L*T2*(D*T1)**-1\n",
+ "\n",
+ "#Efficiency\n",
+ "rho=W*P**-1*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Efficinecy is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity ratio is 20.0\n",
+ "Efficinecy is 90.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.17,Page No.314"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=40 #N #Effort\n",
+ "rho=0.5 #Efficincy\n",
+ "D=20 #cm #Dia. of load axle\n",
+ "L=80 #cm #Length of Lever\n",
+ "T1=10 #No. of teeth om pinion of effort axle\n",
+ "T2=100 #No. of teeth on spur wheel of intermediate axle\n",
+ "T3=20 #No. of teeth om pinion of Load axle\n",
+ "T4=200 #No. of teeth on spur wheel of load axle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*L*D**-1*T2*T1**-1*T4*T3**-1 \n",
+ "\n",
+ "#Mechanical Advatnage\n",
+ "MA=rho*VR\n",
+ "\n",
+ "#Load Which can be Lifted\n",
+ "W=MA*P*10**-3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity ratio is\",round(VR,2)\n",
+ "print\"Load Which can be Lifted is\",round(W,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity ratio is 800.0\n",
+ "Load Which can be Lifted is 16.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.17(A),Page No.315"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=0.4 #Efficincy\n",
+ "D=20 #cm #Dia. of load axle\n",
+ "L=40 #cm #Length of Lever\n",
+ "T1=15 #No. of teeth om pinion of effort axle\n",
+ "T2=45 #No. of teeth on spur wheel of intermediate axle\n",
+ "T3=20 #No. of teeth om pinion of Load axle\n",
+ "T4=40 #No. of teeth on spur wheel of load axle\n",
+ "W=250 #N #Load Lifted\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=VR=2*L*D**-1*T2*T1**-1*T4*T3**-1 \n",
+ "\n",
+ "#Effort applied\n",
+ "P=W*(rho*VR)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort applied at the end is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort applied at the end is 26.04 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.18,Page No.318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "n=4 #No. of movable pulleys\n",
+ "W=1440 #N #Load\n",
+ "P=100 #N #effort\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical Advantage\n",
+ "MA=W*P**-1 \n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2**4\n",
+ "\n",
+ "#Efficiency\n",
+ "rho=MA*VR**-1*100 #%\n",
+ "\n",
+ "#Ideal Effort\n",
+ "P2=W*VR**-1\n",
+ "\n",
+ "#Effort wsted in friction\n",
+ "P3=P-P2 #N\n",
+ "\n",
+ "#Load WAsted in friction\n",
+ "W2=VR*P\n",
+ "\n",
+ "W3=W2-W\n",
+ "\n",
+ "#Result\n",
+ "print\"Efficiency of the machine is,\",round(rho,2),\"%\"\n",
+ "print\"Effort Wasted in friction is\",round(P3,2),\"N\"\n",
+ "print\"Load Wasted in friction is\",round(W3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Efficiency of the machine is, 90.0 %\n",
+ "Effort Wasted in friction is 10.0 N\n",
+ "Load Wasted in friction is 160.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.19,Page No.320"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2000 #N #Weight\n",
+ "P=600 #Effort\n",
+ "n=5 #Total No. of pulleys\n",
+ "VR=n \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Mechanical advantage\n",
+ "MA=W*P**-1\n",
+ "\n",
+ "#efficiency\n",
+ "rho=MA*VR**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Efficiency of the system is\",round(rho,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Efficiency of the system is 66.67 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.20,Page No.321"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "n=4 #No. of pulleys\n",
+ "P=160 #N #Effort\n",
+ "rho=0.75 #efficiency\n",
+ "VR=15 #Velocity ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#weight Lifted\n",
+ "W=rho*P*VR \n",
+ "\n",
+ "#Result\n",
+ "print\"Weight Lifted is\",round(W,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Weight Lifted is 1800.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.21,Page No.323"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=0.5 #Efficency\n",
+ "D=25 #cm #Diameter of Large pulley\n",
+ "d=20 #cm #Dia. of smaller pulley\n",
+ "P=20 #N #Effort applied\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*D*(D-d)**-1\n",
+ "\n",
+ "#Load Lifted\n",
+ "W=rho*d*VR #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Load Lifted by the machine is\",round(W,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load Lifted by the machine is 100.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.22,Page No.327"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=1500 #Load\n",
+ "L=0.7 #Length of handle\n",
+ "d=0.06 #m #Mean diaof screw jack\n",
+ "p=0.009 #pitch of the screw jack\n",
+ "mu=0.095 #co-efficient of friction\n",
+ "pi=3.14\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Effort required\n",
+ "X=(W*d*(2*L)**-1)*(p+mu*pi*d)*(pi*d-p*mu)**-1 #N\n",
+ "\n",
+ "#Effort required at the end of the handle for lowering the load\n",
+ "P2=W*d*(2*L)**-1*(mu*pi*d-p)*(pi*d+mu*p)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort required at the end of the handle for Lifting Load 1500 N\",round(X,2),\"N\"\n",
+ "print\"Effort required at the end of the handle for lowering the load is\",round(P2,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort required at the end of the handle for Lifting Load 1500 N 9.22 N\n",
+ "Effort required at the end of the handle for lowering the load is 3.02 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.23,Page No.328"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=3000 #N #Load Lifted\n",
+ "n=2 #No. of square thread\n",
+ "D1=6 #cm #Outer diameter\n",
+ "mu=0.09 #Coefficient offriction\n",
+ "L=0.6 #m #Length\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#pitch of screw\n",
+ "p=1.2*n**-1*10**-2 #m\n",
+ "\n",
+ "#Thickness of thread\n",
+ "t=0.5*p #\n",
+ "\n",
+ "#Diameter at base of screw\n",
+ "D2=D1-2*t\n",
+ "\n",
+ "#Mean Diameter\n",
+ "d=(D1+D2)*2**-1*10**-2 #m\n",
+ "\n",
+ "#Force \n",
+ "P=W*d*(2*L)**-1*(p+mu*pi*d)*(pi*d-p*mu)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Force required at the end of handle is\",round(P,2),\"N\"\n",
+ "\n",
+ "#Answer in textbook is incorrect"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force required at the end of handle is 18.32 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.23(A),Page No.328"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=5000 #N #Load\n",
+ "n=2\n",
+ "t=0.003 #m #Thickness\n",
+ "D1=0.06 #m #outer diameter\n",
+ "D2=0.054 #m #Inner diameter\n",
+ "d=0.057 #MEan diameter\n",
+ "mu=0.08 #Coefficient of friction\n",
+ "L=0.6 #m #Length\n",
+ "p=0.006 #m #pitch\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let tan(alpha)=X\n",
+ "X=p*(pi*d)**-1\n",
+ "\n",
+ "#Let tan(phi)=Y\n",
+ "Y=mu\n",
+ "\n",
+ "#Force reuired at the end of handle \n",
+ "P=d*(2*L)**-1*W*(X+Y)*(1-X*Y)**-1\n",
+ "\n",
+ "#Result \n",
+ "print\"Force reuired at the end is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force reuired at the end is 27.03 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.24,Page No.329"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "W=2000 #N #Load Lifted\n",
+ "p=1 #mm #pitch\n",
+ "rho=0.5 #efficiency\n",
+ "L=50 #cm #Length of handle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*pi*L*p**-1\n",
+ "\n",
+ "#Effort applied\n",
+ "P=W*(rho*VR)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort applied at the end of handle\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort applied at the end of handle 12.74 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.25,Page No.332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "rho=0.55 #efficiency\n",
+ "W=1500 #N #Load Lifted\n",
+ "L=0.5 #m #Length of handle\n",
+ "p=0.01 #m #Pitch of the screw\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*pi*L*p**-1 \n",
+ "\n",
+ "#Effort applied\n",
+ "P=W*(VR*rho)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort applied is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort applied is 8.69 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.26,Page No.333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=0.075 #m #Mean diameter\n",
+ "p=0.015 #m #Pitch of threads\n",
+ "mu=0.05 #Coefficient of friction\n",
+ "W=600 #N\n",
+ "L=0.36 #m #LEngth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Tangential Force\n",
+ "P=W*d*(2*L)**-1*(p+mu*pi*d)*(pi*d-p*mu)**-1 #N\n",
+ "\n",
+ "#Let Tan(alpha)=X\n",
+ "#tan(phi)=Y\n",
+ "#tan(alpha+phi)=Z\n",
+ "X=p*(pi*d)**-1\n",
+ "Y=mu\n",
+ "Z=(X+Y)*(1-X*Y)**-1\n",
+ "\n",
+ "#efficiency\n",
+ "rho=X*Z**-1 \n",
+ "\n",
+ "#Effort\n",
+ "P2=W*((X-Y)*(1+X*Y)**-1) #N\n",
+ "\n",
+ "#Torque required\n",
+ "T=P2*d*2**-1 #N*m\n",
+ "\n",
+ "#Result\n",
+ "print\"Tangential Force to be qpplied is\",round(P,2),\"N\"\n",
+ "print\"Torque necesscary to lower the load is\",round(T,2),\"Nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tangential Force to be qpplied is 7.13 N\n",
+ "Torque necesscary to lower the load is 0.31 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.27,Page No.334"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=0.06 #m #Mean diameter\n",
+ "p=0.008 #m P#itch\n",
+ "mu=0.09\n",
+ "W=3 #Load Lifted\n",
+ "x=0.12 #m\n",
+ "n=15 #No. of turns\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let Tan(alpha)=X\n",
+ "#tan(phi)=Y\n",
+ "X=p*(pi*d)**-1\n",
+ "Y=mu\n",
+ "P=W*((X+Y)*(1-X*Y)**-1) #N\n",
+ "\n",
+ "#Torque required\n",
+ "T=P*d*2**-1 #N*m\n",
+ "\n",
+ "#Total Angular displacement\n",
+ "omega=n*2*pi\n",
+ "\n",
+ "#Workk done\n",
+ "W2=omega*T #KNm\n",
+ "\n",
+ "#efficiency\n",
+ "rho=W*x*W2**-1*100 #%\n",
+ "\n",
+ "#Efficiency can also be determined as\n",
+ "rho2=X*(X+Y)**-1*(1-X*Y)*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Torque required is\",round(T,2),\"Nm\"\n",
+ "print\"Work done in lifting the load is\",round(W2,3),\"KN\"\n",
+ "print\"Efficiency of the jack is\",round(rho2,1),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Torque required is 0.01 Nm\n",
+ "Work done in lifting the load is 1.127 KN\n",
+ "Efficiency of the jack is 31.9 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.28,Page No.336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "p1=1 #cm #Pitch of Larger screw\n",
+ "p2=0.7 #cm #Pitch of smaller screw\n",
+ "l=36 #cm #Length of handle\n",
+ "rho=0.28 #efficiency\n",
+ "W=5000 #N #Weight\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Velocity ratio\n",
+ "VR=2*pi*l*(p1-p2)**-1\n",
+ "\n",
+ "#Effort applied\n",
+ "P=W*(rho*VR)**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Effort required to Lift the Load\",round(P,2),\"N\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effort required to Lift the Load 23.7 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Engineering_Mechanics_by_R.K_Bansal/screenshots/bmd1.png b/Engineering_Mechanics_by_R.K_Bansal/screenshots/bmd1.png Binary files differnew file mode 100644 index 00000000..5057c7e8 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/screenshots/bmd1.png diff --git a/Engineering_Mechanics_by_R.K_Bansal/screenshots/sfd.png b/Engineering_Mechanics_by_R.K_Bansal/screenshots/sfd.png Binary files differnew file mode 100644 index 00000000..2f223952 --- /dev/null +++ b/Engineering_Mechanics_by_R.K_Bansal/screenshots/sfd.png diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter10_ljUjU8j.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter10_ljUjU8j.ipynb new file mode 100644 index 00000000..95f29d79 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter10_ljUjU8j.ipynb @@ -0,0 +1,751 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 10:Principles of heat exchangers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.1:pg-415" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 1\n", + "The rate of heat transfer from water is given by Q=mdot*cp*(T3-T4) in W\n", + "Q= 11286.0\n", + "(a) For a parallel flow arrangement\n", + "LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \n", + "LMTD= 35.4699026617\n", + "Area(A)=Q/(U*LMTD) in m**2\n", + "A= 0.397731567932\n", + "(b)For counterflow arrangement\n", + "LMTD=(deltaT2-deltaT1)/(ln(deltaT2/deltaT1))in°C \n", + "LMTD= 36.3143018164\n", + "Area(A)=Q/(U*LMTD) in m**2\n", + "A= 0.38848330532\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 1\"\n", + "#A brine solution is heated from temprature ,T1=8°C to temprature,T2=14°C in a double pipe heat exchanger.\n", + "T1=8.0;\n", + "T2=14.0;\n", + "#Water entering at temprature T3=55°C and leaving at temprature,T4=40°C at the mass flow rate of (mdot)=0.18kg/s\n", + "mdot=0.18;\n", + "T3=55.0;\n", + "T4=40.0;\n", + "#Specific heat (cp) of water =4.18kJ/(kg*K)\n", + "cp=4.18*10**3;\n", + "#overall heat transfer coefficient(U)=800 W/(m**2*K)\n", + "U=800.0;\n", + "#The rate of heat transfer from water is given by Q=mdot*cp*(T3-T4)\n", + "print\"The rate of heat transfer from water is given by Q=mdot*cp*(T3-T4) in W\"\n", + "Q=mdot*cp*(T3-T4)\n", + "print\"Q=\",Q\n", + "print\"(a) For a parallel flow arrangement\"\n", + "#For a parallel flow arrangement deltaT1=T3-T1 and deltaT2=T4-T2. \n", + "deltaT1=T3-T1;#deltaT1 is temprature difference \n", + "deltaT2=T4-T2;#deltaT2 is temprature difference \n", + "#LMTD(math.log mean temprature difference) is defined as (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) for both parallel and counter flow.\n", + "print\"LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \"\n", + "#let X=math.log10((deltaT2/deltaT1)) and Y=math.log10(2.718281)\n", + "X=math.log10((deltaT2/deltaT1));\n", + "Y=math.log10(2.718281);\n", + "#ln=(ln(deltaT2/deltaT1))\n", + "ln=X/Y;\n", + "LMTD=(deltaT2-deltaT1)/ln\n", + "print\"LMTD=\",LMTD\n", + "#Area(A)=Q/(U*LMTD) in m**2\n", + "print\"Area(A)=Q/(U*LMTD) in m**2\"\n", + "A=Q/(U*LMTD)\n", + "print\"A=\",A\n", + "print\"(b)For counterflow arrangement\"\n", + "deltaT1=T3-T2;\n", + "deltaT2=T4-T1;\n", + "print\"LMTD=(deltaT2-deltaT1)/(ln(deltaT2/deltaT1))in°C \"\n", + "X=math.log10((deltaT2/deltaT1));\n", + "Y=math.log10(2.718281);\n", + "ln=X/Y;\n", + "LMTD=(deltaT2-deltaT1)/ln\n", + "print\"LMTD=\",LMTD\n", + "print\"Area(A)=Q/(U*LMTD) in m**2\"\n", + "A=Q/(U*LMTD)\n", + "print\"A=\",A\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.2:pg-416" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 2\n", + "The inlet temprature(Tc1) of cold oil in °C \n", + "Tc1= 55.0948103792\n", + "The rate of heat transfer Q=mdoth*ch*(Th1-Th2) in W\n", + "Q= 190190.0\n", + "LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \n", + "LMTD= 28.996452611\n", + "Area(A)=Q/(U*LMTD) in m**2\n", + "A= 10.0908895279\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 2\"\n", + "#Hot oil(specific heat,ch=2.09kJ/(kg*K)) flows through counter flow heat excahnger at the mass flow rate of mdoth=(0.7kg/s)\n", + "ch=2.09*10**3;\n", + "mdoth=0.7;\n", + "#overall heat transfer coefficient(U)=650 W/(m**2*K)\n", + "U=650;\n", + "#It enters at temprature,Th1=200°C and leaves at temprature,Th2=70°C \n", + "Th1=200;\n", + "Th2=70;\n", + "#Cold oil(specific heat,cc=1.67kJ/(kg*K) exits at temprature,Tc2=150°C at the mass flow rate of mdotc=(1.2kg/s)\n", + "mdotc=1.2;\n", + "cc=1.67*10**3;\n", + "Tc2=150;\n", + "#The unknown inlet temprature(Tc1) of cold oil may be found from energy balance mdotc*(Tc2-Tc1)=mdoth*(Th2-Th1)\n", + "print\"The inlet temprature(Tc1) of cold oil in °C \"\n", + "Tc1=Tc2-((mdoth*ch)/(mdotc*cc))*(Th1-Th2)\n", + "print\"Tc1=\",Tc1\n", + "#The rate of heat transfer can be calculate as Q=mdoth*ch*(Th1-Th2)\n", + "print\"The rate of heat transfer Q=mdoth*ch*(Th1-Th2) in W\"\n", + "Q=mdoth*ch*(Th1-Th2)\n", + "deltaT1=Th1-Tc2;\n", + "print\"Q=\",Q\n", + "#deltaT1 is temprature difference between hot oil inlet temprature and cold oil exit temprature\n", + "deltaT2=Th2-Tc1;\n", + "#deltaT2 is temprature difference between hot oil exit temprature and cold oil inlet temprature\n", + "#LMTD(math.log mean temprature difference) is defined as (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) for counter flow.\n", + "print\"LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \"\n", + "#let X=log10((deltaT2/deltaT1)) and Y=log10(2.718281)\n", + "X=math.log10((deltaT2/deltaT1));\n", + "Y=math.log10(2.718281);\n", + "#ln=(ln(deltaT2/deltaT1))\n", + "ln=X/Y;\n", + "LMTD=(deltaT2-deltaT1)/ln\n", + "print\"LMTD=\",LMTD\n", + "#Area(A)=Q/(U*LMTD) in m**2\n", + "print\"Area(A)=Q/(U*LMTD) in m**2\"\n", + "A=Q/(U*LMTD)\n", + "print\"A=\",A\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.3:pg-417" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 3\n", + "The outlet temprature(Tho) of oil in °C \n", + "Tho= 70.6666666667\n", + "For a counterflow heat exchanger\n", + "deltaT1= 10\n", + "deltaT2= 20.6666666667\n", + "LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \n", + "LMTD= 14.6936488511\n", + "dimensionless parameters P and R are\n", + "P= 0\n", + "R= 0.733333333333\n", + "correction factor(F) for the cross flow arrangement as obtained from graph of F vs Single Pass flow with fluids unmixed\n", + "Q= 167200.0\n", + "overall heat transfer coefficient(U)=Q/(A*F*LMTD)in W/(m**2*K)\n", + "U= 758.604399737\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 3\"\n", + "#A cross flow heat exchanger with both fluids unmixed is used to heat water((specific heat,cc=4.18kJ/(kg*K)) from temprature Tci=50°C to Tco=90°C \n", + "#flowing at the mass flow rate of (mdotc)=1kg/s\n", + "Tci=50;\n", + "Tco=90;\n", + "cc=4.18*10**3;\n", + "mdotc=1;\n", + "#The hot engine oil has (specific heat,ch=1.9kJ/(kg*K)) flowing at the mass flow rate of mdoth=3kg/s enters at temprature Thi=100°C\n", + "mdoth=3;\n", + "Thi=100;\n", + "ch=1.9*10**3;\n", + "#The unknown outlet temprature(Tho) of oil may be found from energy balance mdotc*(Tco-Tci)=mdoth*(Tho-Thi)\n", + "print\"The outlet temprature(Tho) of oil in °C \"\n", + "Tho=Thi-((mdotc*cc)/(mdoth*ch))*(Tco-Tci)\n", + "print\"Tho=\",Tho\n", + "print\"For a counterflow heat exchanger\"\n", + "deltaT1=Thi-Tco;#deltaT1 is temprature difference \n", + "deltaT2=Tho-Tci;#deltaT2 is temprature difference \n", + "print\"deltaT1=\",deltaT1\n", + "print\"deltaT2=\",deltaT2\n", + "#LMTD(math.log mean temprature difference) is defined as (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) for counter flow.\n", + "print\"LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \"\n", + "#let X=log10((deltaT2/deltaT1)) and Y=log10(2.718281)\n", + "X=math.log10((deltaT2/deltaT1));\n", + "Y=math.log10(2.718281);\n", + "ln=X/Y;\n", + "LMTD=(deltaT2-deltaT1)/ln\n", + "print\"LMTD=\",LMTD\n", + "#Area(A)=20m**2\n", + "A=20;\n", + "#We have to employ correction factor(F) for the cross flow arrangement.\n", + "#We evaluate dimensionless parameters P=(Tco-Tci)/(Thi-Tco) and R=(Thi-Tho)/(Tco-Tci).\n", + "print\"dimensionless parameters P and R are\"\n", + "P=(Tco-Tci)/(Thi-Tci)\n", + "R=(Thi-Tho)/(Tco-Tci)\n", + "print\"P=\",P\n", + "print\"R=\",R\n", + "print\"correction factor(F) for the cross flow arrangement as obtained from graph of F vs Single Pass flow with fluids unmixed\"\n", + "F=0.75\n", + "#The rate of heat transfer can be calculate as Q=mdoth*ch*(Th1-Th2)\n", + "Q=mdotc*cc*(Tco-Tci);\n", + "print\"Q=\",Q\n", + "#overall heat transfer coefficient(U)=Q/(A*F*LMTD)\n", + "print\"overall heat transfer coefficient(U)=Q/(A*F*LMTD)in W/(m**2*K)\"\n", + "U=Q/(A*F*LMTD)\n", + "print\"U=\",U\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.5:pg-419" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 5\n", + "(a)Applying LMTD method\n", + "The rate of heat transfer Q=mdotw*cpw*(Tout-Tin) in W\n", + "Q= 300960.0\n", + "The unknown outlet temprature(Thout) of geothermal fluid in °C \n", + "Thout= 125.085846868\n", + "LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \n", + "LMTD= 81.903612671\n", + "Area(A)=Q/(U*LMTD) in m**2\n", + "A= 6.12427197827\n", + "To provide this surface area ,The length(L) of the tube required is given by L=A/(pi*D) in m\n", + "L= 129.961087757\n", + "(b)Applying NTU method\n", + "The heat capacity rates are defined as Ch=mdoth*cph and Cc=mdotw*cpw in KW/°C\n", + "Ch= 8.62\n", + "Cc= 5.016\n", + "C=Cmin/Cmax\n", + "C= 0.581902552204\n", + "Heat transfer effectiveness is defined as eff=Q/(Cmin*(Thin-Tin))\n", + "eff= 0.461538461538\n", + "NTU is determined by NTU=(1/(C-1))*ln((eff-1)/(eff*C-1))\n", + "NTU= 0.732568418453\n", + "Area(A)=(NTU*Cmin)/U in m**2\n", + "A= 6.12427197827\n", + "To provide this surface area ,The length(L) of the tube required is given by L=A/(pi*D) in m\n", + "Hence same result is obtained for both methods\n", + "L= 129.961087757\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 5\"\n", + "#Water is heated from temprature ,Tin=30°C to Tout=90°C in a counter flow double pipe heat exchanger.\n", + "Tin=30;\n", + "Tout=90;\n", + "#Water flows at a mass flow rate of mdotw=1.2kg/s\n", + "mdotw=1.2;\n", + "#The heating is accomplished by a geothermal fluid which enters the heat exchanger at temprature ,Thin=160°C at the mass flow rate of mdoth=2kg/s\n", + "mdoth=2;\n", + "Thin=160;\n", + "#The inner tube is thin walled having diameter(D)=15mm or 0.015m\n", + "D=0.015;\n", + "#overall heat transfer coefficient(U)=600 W/(m**2*K)\n", + "U=600;\n", + "#The specific heat of water and geothermal fluid is (cpw=4.18kJ/(kg*K))and(cph=4.31kJ/(kg*K)) respectively\n", + "cpw=4.18*10**3;\n", + "cph=4.31*10**3;\n", + "#The rate of heat transfer in heat exchanger can be calculate as Q=mdotw*cpw*(Tout-Tin)\n", + "print\"(a)Applying LMTD method\"\n", + "print\"The rate of heat transfer Q=mdotw*cpw*(Tout-Tin) in W\"\n", + "Q=mdotw*cpw*(Tout-Tin)\n", + "print\"Q=\",Q\n", + "#The unknown outlet temprature(Thout) of geothermal fluid may be found from energy balance mdotw*cpw*(Tout-Tin)=mdoth*cph*(Thin-Thout)\n", + "print\"The unknown outlet temprature(Thout) of geothermal fluid in °C \"\n", + "Thout=Thin-Q/(mdoth*cph)\n", + "print\"Thout=\",Thout\n", + "deltaT1=Thin-Tout;#Temprature difference between inlet temprature of hot fluid and outlet temprature of cold fluid\n", + "deltaT2=Thout-Tin;#Temprature difference between outlet temprature of hot fluid and inlet temprature of cold fluid\n", + "#LMTD is defined as (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) for counter flow.\n", + "print\"LMTD is given by (deltaT2-deltaT1)/(ln(deltaT2/deltaT1)) in °C \"\n", + "#let X=math.log10((deltaT2/deltaT1))and Y=math.log10(2.718281)\n", + "X=math.log10((deltaT2/deltaT1));\n", + "Y=math.log10(2.718281);\n", + "ln=X/Y;\n", + "LMTD=(deltaT2-deltaT1)/ln\n", + "print\"LMTD=\",LMTD\n", + "#Area(A)=Q/(U*LMTD) in m**2\n", + "print\"Area(A)=Q/(U*LMTD) in m**2\"\n", + "A=Q/(U*LMTD)\n", + "print\"A=\",A\n", + "print\"To provide this surface area ,The length(L) of the tube required is given by L=A/(pi*D) in m\"\n", + "L=A/(math.pi*D)\n", + "print\"L=\",L\n", + "print\"(b)Applying NTU method\"\n", + "#The heat capacity rates are defined as Ch=mdoth*cph and Cc=mdotw*cw in KW/°C\n", + "print\"The heat capacity rates are defined as Ch=mdoth*cph and Cc=mdotw*cpw in KW/°C\"\n", + "Ch=(mdoth*cph)/1000\n", + "Cc=(mdotw*cpw)/1000\n", + "print\"Ch=\",Ch\n", + "print\"Cc=\",Cc\n", + "#So Cmin=Cc and Cmax=Ch\n", + "Cmin=Cc;\n", + "Cmax=Ch;\n", + "#C is defined as Cmin/Cmax\n", + "print\"C=Cmin/Cmax\"\n", + "C=Cmin/Cmax\n", + "print\"C=\",C\n", + "#Heat transfer effectiveness is (eff)\n", + "print\"Heat transfer effectiveness is defined as eff=Q/(Cmin*(Thin-Tin))\"\n", + "eff=(Q/1000)/(Cmin*(Thin-Tin))\n", + "print\"eff=\",eff\n", + "print\"NTU is determined by NTU=(1/(C-1))*ln((eff-1)/(eff*C-1))\"\n", + "#let X=math.log10((eff-1)/(eff*C-1)) and Y=math.log10(2.718281)\n", + "X=math.log10((eff-1)/(eff*C-1));\n", + "Y=math.log10(2.718281);\n", + "#ln=ln((eff-1)/(eff*C-1))\n", + "ln=X/Y;\n", + "#NTU is Number of transfer units\n", + "NTU=(1/(C-1))*ln\n", + "print\"NTU=\",NTU\n", + "#NTU =U*A/Cmin\n", + "print\"Area(A)=(NTU*Cmin)/U in m**2\"\n", + "A=(NTU*Cmin*1000)/U\n", + "print\"A=\",A\n", + "print\"To provide this surface area ,The length(L) of the tube required is given by L=A/(pi*D) in m\"\n", + "L=A/(math.pi*D)\n", + "print\"Hence same result is obtained for both methods\"\n", + "print\"L=\",L\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.6:pg-422" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 6\n", + "NTU is defined as (U*A)/Cmin \n", + "NTU= 1.86170212766\n", + "Heat transfer effectiveness(eff) is defined as (1-e**(-NTU*(1-C))/(1-C*e**(-NTU*(1-C))\n", + "eff= 0.683715054322\n", + "The total heat transfer rate (Q)=eff*Cmin*(Thi-Tci) in kW\n", + "Q= 163.886498521\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 6\"\n", + "#Water having specific heat,cw=4.18kJ/(kg*K) enters a counterflow double pipe heat exchanger at temprature,Tci=35°C flowing at the mass flow rate of mdotw=0.8 kg/s.\n", + "cw=4.18;\n", + "mdotw=0.8;\n", + "Tci=35;\n", + "#It is heated by oil having specific heat,co=1.88kJ/(kg*K) flowing at the mass flow rate of mdoto=1.5 kg/s from an inlet temprature(Thi) of 120°C.\n", + "co=1.88;\n", + "mdoto=1.5;\n", + "Thi=120;\n", + "#For an area(A) of 15m**2 and an overall heat transfer coefficient(U) of 350W/(m**2*K).\n", + "A=15;\n", + "U=350;\n", + "#Cwater and Co are heat capacities for water and oil respectively\n", + "#Cwater=mdotw*cw and Co=mdoto*co\n", + "Cwater=mdotw*cw;\n", + "Co=mdoto*co;\n", + "#C=Cmin/Cmax\n", + "Cmin=min(Cwater,Co);\n", + "Cmax=max(Cwater,Co);\n", + "C=Cmin/Cmax;\n", + "#NTU is number of transfer units\n", + "#NTU=(U*A)/Cmin\n", + "print\"NTU is defined as (U*A)/Cmin \"\n", + "NTU=(U*A)/(Cmin*1000)\n", + "print\"NTU=\",NTU\n", + "#Heat transfer effectiveness(eff) is defined as (1-e**(-NTU*(1-C))/(1-C*e**(-NTU*(1-C))\n", + "print\"Heat transfer effectiveness(eff) is defined as (1-e**(-NTU*(1-C))/(1-C*e**(-NTU*(1-C))\"\n", + "eff=(1-math.e**(-NTU*(1-C)))/(1-C*math.e**(-NTU*(1-C)))\n", + "print\"eff=\",eff\n", + "#Hence The total heat transfer rate (Q)=eff*Cmin*(Thi-Tci)in kW.\n", + "print\"The total heat transfer rate (Q)=eff*Cmin*(Thi-Tci) in kW\" \n", + "Q=eff*Cmin*(Thi-Tci)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.7:pg-424 " + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 7\n", + "NTU is defined as (U*A)/Cmin \n", + "NTU= 5.44554455446\n", + "The effectiveness of heat exchanger is\n", + "eff= 9.98333889769\n", + "The total heat transfer rate(Q)=eff*Cmin*(Thi-Tci) in W\n", + "Q= 10587330.901\n", + "The exit temprature of air in °C \n", + "Tho= -923.250584257\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 7\"\n", + "#Water enters a cross flow heat exchanger (both fluids unmixed) at temprature(Tci)=20°C amd flows at a mass flow rate of mdotw=7kg/s\n", + "Tci=20;\n", + "mdotw=7;\n", + "#The air flows at a mass flow rate of mdota=10kg/s from Temprature(Thi)=125°C \n", + "mdota=10;\n", + "Thi=125;\n", + "#The overall heat transfer coefficient(U)=220W/(m**2*K)and Area(A)=250m**2.\n", + "U=220;\n", + "A=250;\n", + "#The specific heat of air (cpa=1.01kJ/(kg*K)) and water is (cpw=4.18kJ/(kg*K))\n", + "cpa=1.01;\n", + "cpw=4.18;\n", + "#Cair and Cwater are heat capacities of air and water respectively\n", + "Cair=mdota*cpa;\n", + "Cwater=mdotw*cpw;\n", + "#C=Cmin/Cmax\n", + "Cmin=min(Cwater,Cair);\n", + "Cmax=max(Cwater,Cair);\n", + "C=Cmin/Cmax;\n", + "#NTU is number of transfer units\n", + "#NTU=(U*A)/Cmin\n", + "print\"NTU is defined as (U*A)/Cmin \"\n", + "NTU=(U*A)/(Cmin*1000)\n", + "print\"NTU=\",NTU\n", + "#To determine the effectiveness of heat exchanger we have to find out the suitable expression \n", + "#For this type of heat exchanger The effectiveness(eff)is determined by (1-e**((NTU**.22*(e**-(C*NTU**0.78)-1)/C)\n", + "print\"The effectiveness of heat exchanger is\"\n", + "eff=(1-math.e**((NTU**0.22))*(math.e**(-C*NTU**0.78)-1)/C)\n", + "print\"eff=\",eff\n", + "#Hence The total heat transfer rate(Q)=eff*Cmin*(Thi-Tci)in W.\n", + "print\"The total heat transfer rate(Q)=eff*Cmin*(Thi-Tci) in W\"\n", + "Q=eff*Cmin*1000*(Thi-Tci)\n", + "print\"Q=\",Q\n", + "#The exit temprature(Tho) of air is given by Thi-(Q/(mdota*cpa))\n", + "print\"The exit temprature of air in °C \"\n", + "Tho=Thi-(Q/(mdota*1000*cpa))#NOTE:-The answer slightly varies from the answer in book(i.e Tho=26°C) because the value of Q taken in book is approximated to 1*10**6W.\n", + "print\"Tho=\",Tho\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex10.8:pg-437" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 10, Example 8\n", + "(a)Considering a parallel flow arrangement \n", + "Tho= 50\n", + "The minimum flow rate required for the oil in kg/s\n", + "mdoth= 2.22340425532\n", + "(b)Theoretical question\n", + "If LMTD--->0,Then for a finite value of heat transfer rate U*A--->infinity.For a given finite length this implies value of U which is not possible.\n", + "(c)Let us consider a counter flow arrangement\n", + "The minimum flow rate required for the oil in kg/s\n", + "Ch= 2.78666666667\n", + "Cc= 8.36\n", + "Effectiveness of heat exchanger is \n", + "eff= 1.0\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 10, Example 8\"\n", + "#A double pipe heat exchanger of length(L)=0.30m is to be used to heat water(specific heat,cc=4.18kJ/(kg*K)) and mass flow rate(mdotw=2kg/s)\n", + "L=0.30;\n", + "cc=4.18;\n", + "mdotw=2;\n", + "#The water enters at temprature(Tci)=25°C and leaves at temprature(Tco)=50°C\n", + "#The flow rate of oil is mdoth\n", + "Tci=25;\n", + "Tco=50; \n", + "#The oil used as hot fluid has(specific heat,ch=1.88kJ/(kg*K)) and has inlet temprature(Thi)=100°C \n", + "ch=1.88;\n", + "Thi=100;\n", + "print\"(a)Considering a parallel flow arrangement \"\n", + "#For minimum value of mdoth\n", + "#The theoretical minimum value of outlet temprature of hot fluid(Tho) under this situation is equal to Tco\n", + "Tho=Tco;\n", + "print\"Tho=\",Tho\n", + "#The mass flow rate of oil is given by energy balance as mdoth=(mdotw*cpw*(Tco-Tci))/(cph*(Thi-Tho))\n", + "print\"The minimum flow rate required for the oil in kg/s\"\n", + "mdoth=(mdotw*cc*(Tco-Tci))/(ch*(Thi-Tho))\n", + "print\"mdoth=\",mdoth\n", + "print\"(b)Theoretical question\"\n", + "print\"If LMTD--->0,Then for a finite value of heat transfer rate U*A--->infinity.For a given finite length this implies value of U which is not possible.\"\n", + "print\"(c)Let us consider a counter flow arrangement\"\n", + "#In this case value of Tho=Tci.\n", + "Tho=Tci;\n", + "#The mass flow rate of oil is given by energy balance as mdoth=(mdotw*cpw*(Tco-Tci))/(cph*(Thi-Tho))\n", + "print\"The minimum flow rate required for the oil in kg/s\"\n", + "mdoth=(mdotw*cc*(Tco-Tci))/(ch*(Thi-Tci))\n", + "#Now Heat capacities are Ch=mdoth*ch and Cc=mdotw*cc\n", + "Ch=mdoth*ch; \n", + "Cc=mdotw*cc;\n", + "print\"Ch=\",Ch\n", + "print\"Cc=\",Cc\n", + "Cmin=min(Ch,Cc);#minimum heat capacity in Ch and Cc \n", + "#Effectiveness of heat exchanger is eff.\n", + "#Tho=Tci for this kind of arrangement\n", + "Tho=Tci;\n", + "print\"Effectiveness of heat exchanger is \"\n", + "eff=(mdoth*ch*(Thi-Tho))/(mdoth*ch*(Thi-Tci))\n", + "print\"eff=\",eff\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter11_5r7Matr.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter11_5r7Matr.ipynb new file mode 100644 index 00000000..a46cced0 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter11_5r7Matr.ipynb @@ -0,0 +1,543 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 11:Radiation heat transfer" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.3:pg-445" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 3\n", + "The view factors F13 and F31 between the surfaces 1 and 3 are \n", + "F13= 0.04\n", + "F31= 0.032\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 3\"\n", + "print\"The view factors F13 and F31 between the surfaces 1 and 3 are \"\n", + "#Determine the view factors F13 and F31 between the surfaces 1 and 3.\n", + "#F1-2,3=F12+F13\n", + "#So F13=F1-2,3-F12\n", + "#Let F1-2,3=F123\n", + "#From Radiation Shape factor b/w two perpendicular rectangles with a commom edge table we get F12=.027,F1-2,3=0.31\n", + "F123=0.31;#View factor\n", + "F12=.27;#View factor\n", + "F13=F123-F12#View factor\n", + "print\"F13=\",F13\n", + "#A1,A2 and A3 are the emitting surface areas\n", + "#From reciprocity relation F31=(A1/A3)/F13\n", + "A1=2;\n", + "A3=2.5;\n", + "F31=(A1/A3)*F13\n", + "print\"F31=\",F31\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.4:pg-447" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 4\n", + "F124= 0.04\n", + "F24= 0.06\n", + "The view factor F14=((F1,2-4*(A1+A2)))-A2*F24)/A2\n", + "F14= 0.02\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 4\"\n", + "#Determine the view factors F14 for the composite surface .\n", + "#From the table of radiation shape factor b/w two perpendicular surfaces F1,2-3,4=0.14 and F1,2-3=0.1\n", + "#By subdivision of the recieving surfaces we get F1,2-4=F1,2-3,4-F1,2-3\n", + "#Let F1,2-4=F124 , F1,2-3,4=F1234 , F1,2-3=F123\n", + "F1234=0.14;#View factor\n", + "F123=0.1;#View factor\n", + "F124=F1234-F123;#View factor\n", + "print\"F124=\",F124\n", + "#Again from the table of radiation shape factor b/w two perpendicular surfaces F2-3,4=0.24 , F23=0.18\n", + "#Let F2-3,4=F234\n", + "F234=0.24;#View factor\n", + "F23=0.18;#View factor\n", + "#By subdivision of the recieving surfaces we get F24=F2-3,4-F23\n", + "F24=F234-F23;#view factor\n", + "print\"F24=\",F24\n", + "#A1 and A2 are the emitting surface areas.\n", + "A1=12;\n", + "A2=12;\n", + "#Now by subdivision of emitting surfaces F1,2-4=(1/(A1+A2))*(A1*F14+A2*F24)\n", + "#This implies F14=((F1,2-4*(A1+A2)))-A2*F24)/A2\n", + "print\"The view factor F14=((F1,2-4*(A1+A2)))-A2*F24)/A2\"\n", + "F14=((F124*(A1+A2))-(A2*F24))/A2\n", + "print\"F14=\",F14\n", + "\n", + "\n", + "\n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.5:pg-453" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 5\n", + "The view factors of cylindrical surface with respect to the base are\n", + "F13= 0.84\n", + "F31= 0.0\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 5\"\n", + "#Consider a cylinder having length,L=2r determine the view factor of cylindrical surface with respect to the base.\n", + "#From the graph of radiation shape factor b/w parallel coaxial disks of equal diameter F12=0.16\n", + "F12=0.16;#View factor\n", + "#By the summation rule of an enclosure F11+F12+F13=1\n", + "#But F11=0(since the base surface is flat)\n", + "F11=0;#View factor\n", + "print\"The view factors of cylindrical surface with respect to the base are\"\n", + "F13=1-F12-F11#view factor\n", + "print\"F13=\",F13\n", + "#By making use of reciprocity theorem we have F31=(A1/A2)*F13\n", + "#A1 and A2 are emitting surface areas\n", + "#A1/A2=(pi*r**2)/(2*pi*r*2*r)=1/4\n", + "#Let A1/A2=A\n", + "A=1/4;\n", + "F31=(A)*F13\n", + "print\"F31=\",F31\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.6:pg-456" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 6\n", + "The rate of heat transfer is given by Q=A1*F12*sigma*(T1**4-T2**4) in W\n", + "Q= -2918.916\n", + "Here minus sign indicates that the net heat transfer is from surface2 to surface1\n", + "The net rate of energy loss from the surface at 127°C if the surrounding other than the two surfaces act as black body at 0K in W\n", + "Q1= 2894.4216\n", + "The view factor of surface 1 with respect to surrounding is\n", + "F1s= 0.89\n", + "The net rate of energy loss from the surface at 127°C if the surrounding other than the two surfaces act as black body at 300K in W \n", + "Q1= 1055.04525\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 6\"\n", + "#Two rectangles length,L=1.5m by breadth,B=3.0m are parallel and directly opposed.\n", + "L=1.5;\n", + "B=3;\n", + "#They are 3m apart\n", + "#Temprature(T1) of surface 1 is 127°C or 400K and temprature(T2) of surface 2 is 327°C or 600K \n", + "T1=400;\n", + "T2=600;\n", + "#Area (A) is the product of L and B\n", + "A1=L*B;\n", + "#Stefan -Boltzman constant(sigma)=5.67*10**-8 W/(m**2*K**4)\n", + "sigma=5.67*10**-8;\n", + "#From the graph of radiation shape factor b/w parallel rectangles F12=0.11\n", + "F12=0.11;#View factor\n", + "#The rate of heat transfer is given by Q=A1*F12*sigma*(T1**4-T2**4)\n", + "print\"The rate of heat transfer is given by Q=A1*F12*sigma*(T1**4-T2**4) in W\"\n", + "Q=A1*F12*sigma*(T1**4-T2**4)\n", + "print\"Q=\",Q\n", + "print\"Here minus sign indicates that the net heat transfer is from surface2 to surface1\"\n", + "#Surface1 recieves energy only from surface 2,since the surrounding is at 0K.\n", + "#Therefore Q1=A1*Eb1-A2*F21*Eb2\n", + "#This implies Q1 can also be written as A1*sigma*(T1**4-F12*T2**4)\n", + "#From reciprocity theorem F21=F12 (since A1=A2)\n", + "F21=F12;#view factor\n", + "print\"The net rate of energy loss from the surface at 127°C if the surrounding other than the two surfaces act as black body at 0K in W\" \n", + "Q1=A1*sigma*(T1**4-F12*T2**4)\n", + "print\"Q1=\",Q1\n", + "#In the case when surrounding is at temprature, Ts=300K ,the energy recieved from the surrounding by the surface 1 has to be considered.\n", + "Ts=300;\n", + "#Applying summation rule of view factors F11+F12+F1s=1\n", + "F11=0;#view factor\n", + "print\"The view factor of surface 1 with respect to surrounding is\"\n", + "F1s=1-F11-F12\n", + "print\"F1s=\",F1s\n", + "#subscript s denotes the surroundings\n", + "#Q1=A1*Eb1-A2*F21*Eb2-As*Fs1*Ebs\n", + "#With the help of reciprocity theorem A2*F21=A1*F12 , As*Fs1=A1*F1s\n", + "#Therefore we can write Q1=A1*sigma*(T1**4-F12*T2**4-F1s*Ts**4)\n", + "print\"The net rate of energy loss from the surface at 127°C if the surrounding other than the two surfaces act as black body at 300K in W \"\n", + "Q1=A1*sigma*(T1**4-F12*T2**4-F1s*Ts**4)\n", + "print\"Q1=\",Q1\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.7:pg-470" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 7\n", + "The net rate of heat transfer per unit area is given Q/A=(sigma*(T1**4-T2**4))/((1/Æ1)+(1/Æ2)-1) in W\n", + "H= 1764.51561476\n", + "The net rate of heat transfer when the two surfaces are black is Q/A=sigma*(T1**4-T2**4) in W\n", + "H= 3276.95757027\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 7\"\n", + "#Two parallel infinite surafces are maintained at tempratures T2=200°C or 473.15K and T1=300°C or 573.15K\n", + "T1=573.15;\n", + "T2=473.15;\n", + "#The emissivity(emi) is 0.7 for both the surfaces which are gray.\n", + "emi1=0.7;\n", + "emi2=0.7;\n", + "#stefan=boltzman constant(sigma)=5.67*10**-8W/(m**2*K**4)\n", + "sigma=5.67*10**-8;\n", + "#The net rate of heat transfer per unit area is given Q/A=(sigma*(T1**4-T2**4))/((1/Æ1)+(1/Æ2)-1)\n", + "#Let Q/A=H\n", + "print\"The net rate of heat transfer per unit area is given Q/A=(sigma*(T1**4-T2**4))/((1/Æ1)+(1/Æ2)-1) in W\"\n", + "H=(sigma*(T1**4-T2**4))/((1/emi1)+(1/emi2)-1)\n", + "print\"H=\",H\n", + "#When the two surfaces are black\n", + "#This implies emiisivity(emi)=1 for both surfaces\n", + "#So,The net rate of heat transfer when the two surfaces are black is Q/A=sigma*(T1**4-T2**4)\n", + "print\"The net rate of heat transfer when the two surfaces are black is Q/A=sigma*(T1**4-T2**4) in W\"\n", + "H=sigma*(T1**4-T2**4)\n", + "print\"H=\",H\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.8:pg-482" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 8\n", + "The net rate of heat exchange between the spheres when the surfaces are black is Q=A1*sigma*(T1**4-T2**4) in W \n", + "Q= 779.311327631\n", + "The net rate of radiation exchange when one surface is gray and other is diffuse is given by Q1=(A1*sigma*(T1**4-T2**4))/((1/emi1)+(A1/A2)*(1/emi2-1)) in W\n", + "Q1= 346.360590058\n", + "The net rate of radiation exchange when outer surface is assumed to be black body i;e(emi2=1) in W\n", + "Q2= 389.655663816\n", + "Error(E) is given By ((Q2-Q1)/Q1)*100 in percentage\n", + "E= 12.5\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 8\"\n", + "#Two concentric spheres of diameters D1=0.5m and D2=1m are separated by an air space.\n", + "#The surface tempratures are T1=400K and T2=300K\n", + "T1=400;\n", + "T2=300;\n", + "D1=0.5;\n", + "D2=1;\n", + "#A1 and A2 are the areas in m**2 of surface 1 and surface 2 respectively\n", + "A1=(math.pi*D1**2);\n", + "A2=(math.pi*D2**2);\n", + "#Stefan-Boltzman constant(sigma)=5.67*10**-8 W/(m**2*K**4)\n", + "sigma=5.67*10**-8;\n", + "#The emissivity is represented by emi \n", + "#The radiation heat exchange in case of two concentric sphere is given by Q=(A1*sigma*(T1**4-T2**4))/((1/emi1)+(A1/A2)*(1/emi2-1)) \n", + "#When the spheres are black emi1=emi2=1\n", + "emi1=1;\n", + "emi2=1;\n", + "#Hence Q=A1*sigma*(T1**4-T2**4)\n", + "print\"The net rate of heat exchange between the spheres when the surfaces are black is Q=A1*sigma*(T1**4-T2**4) in W \"\n", + "Q=A1*sigma*(T1**4-T2**4)\n", + "print\"Q=\",Q\n", + "#The net rate of radiation exchange when one surface is gray and other is diffuse having emi1=0.5 and emi2=0.5 \n", + "emi1=0.5;\n", + "emi2=0.5;\n", + "print\"The net rate of radiation exchange when one surface is gray and other is diffuse is given by Q1=(A1*sigma*(T1**4-T2**4))/((1/emi1)+(A1/A2)*(1/emi2-1)) in W\" \n", + "Q1=(A1*sigma*(T1**4-T2**4))/((1/emi1)+(A1/A2)*(1/emi2-1))\n", + "print\"Q1=\",Q1\n", + "#The net rate of radiation exchange when outer surface is assumed to be black body i;e(emi2=1)\n", + "emi2=1;#emissivity of outer surface\n", + "print\"The net rate of radiation exchange when outer surface is assumed to be black body i;e(emi2=1) in W\"\n", + "Q2=(A1*sigma*(T1**4-T2**4))/((1/emi1)+(A1/A2)*(1/emi2-1))\n", + "print\"Q2=\",Q2\n", + "print\"Error(E) is given By ((Q2-Q1)/Q1)*100 in percentage\"\n", + "E=((Q2-Q1)/Q1)*100\n", + "print\"E=\",E\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex11.10:pg-484" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 11, Example 10\n", + "F12= 0.5\n", + "Equivalent resistance of thermal network (R) is given by R1+((1/R12)+(1/(R13+R23)))**-1+R2\n", + "R= 2.09523809524\n", + "The radiation flux leaving the hot wall is Q/A=[sigma*(T1**4-T2**4)]/(A*R) in W/m**2\n", + "H= 26655.2740483\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 11, Example 10\"\n", + "#Given a furnace which can be approximated as an equuilateral triangle duct\n", + "#The hot wall is maintained at temprature (T1)=1000K and has emmisivity(emi1)=0.75\n", + "#The cold wall is at temprature(T2)=350K and has emmisivity(emi2)=0.7\n", + "T1=1000;\n", + "T2=350;\n", + "emi1=0.75;\n", + "emi2=0.7;\n", + "#Stefan-Boltzman constant(sigma)=5.67*10**-8 W/(m**2*K**4)\n", + "sigma=5.67*10**-8;\n", + "#The third wall is reradiating zone having Q3=0\n", + "#The radiation flux leaving the hot wall is Q/A=(sigma*(T1**4-T2**4))/(A*R)\n", + "#By summation rule F33+F31+F32=1\n", + "#F33=0(in consideration of surface to be plane)\n", + "#From symmetry F31=F32\n", + "F31=0.5;#View factors\n", + "F32=F31;#View factors\n", + "F33=0;#View factors\n", + "#From reciprocity theorem F13=F31 and F23=F32=0.5 (since A1=A2=A3=A)\n", + "F13=F31;#View factors\n", + "F23=F32;#View factors\n", + "#Again F11+F12+F13=1 from summation rule\n", + "F11=0;#View factors\n", + "F12=1-F13-F11;#View factors\n", + "print\"F12=\",F12\n", + "#R1,R2,R12,R13,R23 are the resistances\n", + "#R is equivalent resistance of thermal network is given by R1+((1/R12)+(1/(R13+R23)))**-1+R2\n", + "R1=(1-emi1)/(emi1);\n", + "R2=(1-emi2)/(emi2);\n", + "R12=1/(F12);\n", + "R13=1/(F13);\n", + "R23=1/(F23);\n", + "#R is equivalent resistance of thermal network \n", + "print\"Equivalent resistance of thermal network (R) is given by R1+((1/R12)+(1/(R13+R23)))**-1+R2\"\n", + "R=R1+((1/R12)+(1/(R13+R23)))**-1+R2\n", + "print\"R=\",R\n", + "#The radiation flux leaving the hot wall is Q/A.\n", + "print\"The radiation flux leaving the hot wall is Q/A=[sigma*(T1**4-T2**4)]/(A*R) in W/m**2\"\n", + "#Since A gets cancelled in the factor (A*R)\n", + "#So Q/A=(sigma*(T1**4-T2**4))/(R)\n", + "#Let Q/A=H\n", + "H=(sigma*(T1**4-T2**4))/(R)\n", + "print\"H=\",H\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter12.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter12.ipynb new file mode 100644 index 00000000..6fafa3fd --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter12.ipynb @@ -0,0 +1,268 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 12:Principles of mass transfer" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex12.1:pg-496" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 12, Example 1\n", + "The flow area is given by A=(pi*di**2)/4 in m**2\n", + "3e-05\n", + "The molar concentration of mixture which is constant throughout is given by c=p/(R*T)\n", + "0.04079\n", + "Nhe=Nair=(A*c*Db*(Yao-yal))/L in kmol/sec\n", + "mass flow rate of helium is given by m=Mhe*Nhe in kg/sec \n", + "1.7e-11\n", + "mass flow rate of air is given by m=Mair*Nair in kg/sec \n", + "1.2e-10\n" + ] + } + ], + "source": [ + "\n", + "import math\n", + "\n", + "print \"Introduction to heat transfer by S.K.Som, Chapter 12, Example 1\"\n", + "#The pressure in the pipeline that transports helium gas at a rate of 4kg/s is maintained at pressure(p)=1 atm or 101*10**3 pascal.\n", + "#The internal daimeter of tube is (di)=6mm or .006m\n", + "#The temprature of both air and helium is (T)=25°C or 298 K.\n", + "#The diffusion coefficient of helium in air at normal atmosphere is(Dab)=7.20*10**-5 m**2/s\n", + "#The venting tube extends to a length(L)=20m in the atmosphere.\n", + "di=.006;\n", + "print \"The flow area is given by A=(pi*di**2)/4 in m**2\"\n", + "A=(math.pi*di**2)/4\n", + "print round(A,5)\n", + "p=101*10**3;\n", + "R=8.31*10**3;#gas constant\n", + "T=298;\n", + "Dab=7.20*10**-5;\n", + "L=20;\n", + "#c is the molar concentration\n", + "print \"The molar concentration of mixture which is constant throughout is given by c=p/(R*T)\"\n", + "c=p/(R*T)\n", + "print round(c,5)\n", + "#helium has been considered as species A so (helium mole fraction at the bottom of the tube)is Yao=1 and (helium mole fraction at the bottom of the tube)is Yal=0\n", + "Yal=0;\n", + "Yao=1;\n", + "#Nhe and Nair are molar rate of helium and air respectively\n", + "print \"Nhe=Nair=(A*c*Db*(Yao-yal))/L in kmol/sec\"\n", + "Nair=(A*c*Dab*(Yao-Yal))/L\n", + "Nhe=Nair;\n", + "#Molecular weights of air and helium are 29kg/kmol and 4 kg/kmol respectively.\n", + "Mhe=4;\n", + "Mair=29;\n", + "#mass flow rate of helium is mhe\n", + "print \"mass flow rate of helium is given by m=Mhe*Nhe in kg/sec \"\n", + "mhe=Mhe*Nhe\n", + "print round(mhe,12)\n", + "#mass flow rate of air is mair\n", + "print \"mass flow rate of air is given by m=Mair*Nair in kg/sec \"\n", + "mair=Mair*Nair\n", + "print round(mair,11)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex12.2:pg-500" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 12, Example 2\n", + "The film temperature is given by Tf=(T+Tw)/2 in °C \n", + "30.0\n", + "The density of water at bulb surface is given by rhos=(Ps*M)/(R*Ts) in kg/m**3 \n", + "0.0173\n", + "The concentration of water vapour at free stream is rhoinf=rhos-(hheat/hmass)*((Tinf-Ts)/hfg) in kg/m**3 \n", + "0.00784\n", + "The relative humidity is given by rehu=(rhoinf/rhosteam)*100 in percentage \n", + "15.38028\n" + ] + } + ], + "source": [ + "\n", + "import math\n", + "print \"Introduction to heat transfer by S.K.Som, Chapter 12, Example 2\"\n", + "#The temprature of atmospheric air (T)=40°C which flows over a wet bulb thermometer.\n", + "#The reading of wet bulb thermometer which is called the wet bulb temprature is (Tw)=20°C\n", + "T=40;\n", + "Tw=20.0;\n", + "#Tf is the film temprature\n", + "print \"The film temperature is given by Tf=(T+Tw)/2 in °C \"\n", + "Tf=(T+Tw)/2\n", + "print round(Tf,5)\n", + "Tinf=T;#surrounding temprature\n", + "#The properties of air at film temprature are density(rho=1.13kg/m**3),specific heat(cp=1.007kJ/(kg*K)),Thermal diffusivity(alpha=0.241*10**-4m**2/s)\n", + "#The diffusivity Dab=0.26*10**-4 m**2/s\n", + "#The enthalpy of vaporisation of water at 20°C is hfg=2407kJ/kg or 2407*10**3 J/kg\n", + "#The partial pressure of water vapour is the saturation pressure corresponding to 20°C so from steam table Ps=2.34kPa or 2.34*10**3 Pa.\n", + "rho=1.13;\n", + "cp=1.007*10**3;\n", + "alpha=0.241*10**-4;\n", + "Dab=0.26*10**-4;\n", + "hfg=2407*10**3;\n", + "Ps=2.34*10**3;\n", + "#The temprature at bulb surface Ts=20°C or 293K\n", + "Ts=Tw+273;#in kelvin\n", + "R=8.31*10**3;#gas constant\n", + "#The molecular weight of water is M=18\n", + "M=18;\n", + "#The density of water at bulb surface is rhos\n", + "print \"The density of water at bulb surface is given by rhos=(Ps*M)/(R*Ts) in kg/m**3 \"\n", + "rhos=(Ps*M)/(R*Ts)\n", + "print round(rhos,5)\n", + "#Let X=hheat/hmass=rho*cp*(alpha/Dab)**(2/3).\n", + "X=rho*cp*(alpha/Dab)**(2/3);\n", + "#At steady atate (Rate of heat transfer from air to wet cover of thermometer bulb)=(Heat removed by evaporation of water from the wet cover of thermometer bulb)\n", + "#hheat*(Tinf-Ts)=hmass*(rhos-rhoinf)*hfg\n", + "#Rearranging above we get rhoinf=rhos-(hheat/hmass)*((Tinf-Ts)/hfg)\n", + "#The concentration of water vapour at free stream is rhoinf\n", + "print \"The concentration of water vapour at free stream is rhoinf=rhos-(hheat/hmass)*((Tinf-Ts)/hfg) in kg/m**3 \"\n", + "rhoinf=rhos-((X)*((Tinf-Tw)/hfg))\n", + "print round(rhoinf,5)\n", + "#The mass concentration of saturated water vapour(rhosteam) at 40°C(as found from steam table) is .051 kg/m**3\n", + "rhosteam=.051;\n", + "#The relative humidity is (rehu)\n", + "print \"The relative humidity is given by rehu=(rhoinf/rhosteam)*100 in percentage \"\n", + "rehu=(rhoinf/rhosteam)*100\n", + "print round(rehu,5)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex12.3:pg-503" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 12, Example 3\n", + "The mole fraction of water vapour at the interface is given by Yao=pvapour/p\n", + "0.03963\n", + "The total molecular concentration (c) through the tube remains constant is given by c=p/(R*T) in kmol/m**3\n", + "0.03286\n", + "The cross sectional area of the tube is given by A=(pi*(di*10**-3)**2)/4 in m**2\n", + "0.00096\n", + "The molar flow rate of water vapour is given by N=mdot/M in kmol/s\n", + "1e-10\n", + "The diffusion coefficient of water vapour is Dab=(N*L)/(c*A*ln[(1-Yal)/(1-Yao)]) in m/s\n", + "3e-05\n" + ] + } + ], + "source": [ + "\n", + "import math\n", + "\n", + "print \"Introduction to heat transfer by S.K.Som, Chapter 12, Example 3\"\n", + "#The diameter of tube is (di)=35mm which measures binary diffusion coefficient of water vapour in air at temprature,T=20°C or 293 K.\n", + "#The measurement is done at height of 1500 m where the atmospheric pressure is (p)=80kPa.\n", + "p=80;\n", + "T=293.0;\n", + "#The distance from the water surface to the open end of the tube is L=500 mm or 0.5m.\n", + "L=.5;\n", + "#After t=12 days of continuous operation at constant pressure and temprature the amount of water evaporated was measured to be m= 1.2*10**-3kg.\n", + "m= 1.2*10**-3;\n", + "#From the steam table pvapour=3.17kPa\n", + "pvapour=3.17;#partial pressure of vapour\n", + "#Yao is the mole fraction of water vapour at the interface\n", + "print \"The mole fraction of water vapour at the interface is given by Yao=pvapour/p\"\n", + "Yao=pvapour/p\n", + "print round(Yao,5)\n", + "#The mole fraction of water vapour at the top end of the tube is Yal=0\n", + "Yal=0;\n", + "R=8.31*10**3;#gas constant\n", + "#The total molecular concentration is (c)\n", + "print \"The total molecular concentration (c) through the tube remains constant is given by c=p/(R*T) in kmol/m**3\"\n", + "c=(p*10**3)/(R*T)\n", + "print round(c,5)\n", + "di=35;\n", + "#A is the cross sectional area of the tube\n", + "print \"The cross sectional area of the tube is given by A=(pi*(di*10**-3)**2)/4 in m**2\"\n", + "A=(math.pi*(di*10**-3)**2)/4\n", + "print round(A,5)\n", + "#The molecular weight of wate is M=18\n", + "M=18;\n", + "#The mass flow rate is given by mdot=(m/(12*24*3600))\n", + "mdot=(m/(12*24*3600));\n", + "#N is the molar flow rate of water vapour\n", + "print \"The molar flow rate of water vapour is given by N=mdot/M in kmol/s\"\n", + "N=mdot/M\n", + "print round(N,10)\n", + "#The molar flow rate of water vapour can also be written as N=(c*Dab*A*ln[(1-Yal)/(1-Yao)])/L\n", + "#The diffusion coefficient of water vapour is Dab=(N*L)/(c*A*ln[(1-Yal)/(1-Yao)])\n", + "#let us take X=math.log10((1-Yal)/(1-Yao)) and Y=math.log10(2.7182)\n", + "X=math.log10((1-Yal)/(1-Yao));\n", + "Y=math.log10(2.7182);\n", + "#ln[(1-Yal)/(1-Yao)] is given by\n", + "ln=X/Y;\n", + "print \"The diffusion coefficient of water vapour is Dab=(N*L)/(c*A*ln[(1-Yal)/(1-Yao)]) in m/s\"\n", + "Dab=(N*L)/(c*A*ln)\n", + "print round(Dab,5)" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter1_QhYeq33.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter1_QhYeq33.ipynb new file mode 100644 index 00000000..d9d7f745 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter1_QhYeq33.ipynb @@ -0,0 +1,529 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 01:Fundamental concepts" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.1:pg- 4" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 1\n", + "The steady state heat transfer rate per unit area through the thick slab is given by q=k(T1-T2)/L in W/m**2 \n", + "q= 50.0\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 1\"\n", + "#The temprature of two faces of the slabs are T1=40°C & T2=20°C \n", + "#The thickness of the slab(L) is 80mm or .08m\n", + "#The thermal conductivity(k)of the material is .20 W/(m*K)\n", + "T1=40;\n", + "T2=20;\n", + "L=.08;\n", + "k=.20;\n", + "#The steady state heat transfer rate per unit area through the thick slab is given by q=k(T1-T2)/L\n", + "print\"The steady state heat transfer rate per unit area through the thick slab is given by q=k(T1-T2)/L in W/m**2 \"\n", + "q=k*(T1-T2)/L\n", + "print\"q=\",q" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.2:pg- 4" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 2\n", + "The thickness of masonry wall is Lm in m\n", + "Lm= 0.5\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 2\"\n", + "#The thermal conductivity(km)of masonry wall is .8 W/(mK)\n", + "#The thermal conductivity(kc)of composite wall is .2 W/(mK)\n", + "#The thickness of composite wall(Lc) is 100 mm or .1 m\n", + "km=.8;\n", + "kc=.2;\n", + "Lc=.1;\n", + "#The thickness of masonry wall(Lm) is to be found. \n", + "#The steady state heat flow(qm)through masonry wall is km(T1-T2)/L\n", + "# The steady state heat flow(qc)through composite wall is kc(T1-T2)/L\n", + "#As the steady rate of heat flow through masonry wall is 80% that through composite wall and both the wall have same surface area and same temp. difference so qm/qc=0.8=(km/kc)*(Lc/Lm)\n", + "#The thickness of masonry wall is Lm.\n", + "print\"The thickness of masonry wall is Lm in m\"\n", + "Lm=(km/kc)*(Lc/(0.8))\n", + "print\"Lm=\",Lm\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.4:pg-8" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 4\n", + "The rate of heat transfer per unit area q=hbr*(Tinf-Ts) in W/m**2\n", + "q= 16000\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 4\"\n", + "#The average forced convective heat transfer coefficient(hbr) is 200 W/( m**2 °C)\n", + "#The fluid temprature(Tinf) upstream of the cold surface is 100°C\n", + "#The surface temprature(Ts) is 20°C\n", + "hbr=200;\n", + "Tinf=100;\n", + "Ts=20;\n", + "#The rate of heat transfer per unit area is q\n", + "print\"The rate of heat transfer per unit area q=hbr*(Tinf-Ts) in W/m**2\"\n", + "q=hbr*(Tinf-Ts)\n", + "print\"q=\",q" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.5:pg-9" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 5\n", + "The heat exchanger surface area(A)in m**2 required for 20 MJ/h of heating is \n", + "A= 0\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 5\"\n", + "#The average heat transfer coefficient(hbr) is 800 W/(m**2°C)\n", + "#The surface temprature of heat exchanger is 75°C and air temprature is 25°C so deltaT=(75-25)\n", + "#The amount of heat exchanged(Q) is 20 MJ/h\n", + "#The heat exchanger surface area(A) is given by A=Q/(hbr*∆T)\n", + "hbr=800;\n", + "deltaT=(75-25);\n", + "Q=20;\n", + "print\"The heat exchanger surface area(A)in m**2 required for 20 MJ/h of heating is \"\n", + "A = (Q*10**6)/(3600*hbr*deltaT)\n", + "print\"A=\",A" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.6:pg-9" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 6\n", + "The rate of heat transfer from the plate is given by Q=hbr*A*(Ts-Tinf)\n", + "Equating the above two equations we get hbr=(m*cp*|dT/dt|)/(A*(Ts-Tinf)) in W/(m**2°C)\n", + "hbr= 11.2\n", + "The rate of heat transfer can also be written in the form of Q=m*cp*|dT/dt| from an energy balance.\n", + "Q= 224.0\n", + "Equating the above two equations we get hbr=(m*cp*|dT/dt|)/(A*(Ts-Tinf)) in W/(m**2°C)\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 6\"\n", + "#The temprature of the plate(Ts) is 225°C\n", + "#The ambient temprature (Tinf) is 25°C\n", + "#The change in plate temprature with time is dT/dt=-.02K/s\n", + "#The plate area (A)=.1m**2 , mass(m)= 4Kg and specific heat(cp)=2.8KJ/(Kg*K)\n", + "#The average free convective heat coefficient(hbr) is to be found\n", + "Ts=225;\n", + "Tinf=25;\n", + "#|dT/dt|=0.2,because it is modulus function and it converts negative values to positive value.\n", + "#Let |dT/dt|=X\n", + "X=0.02;\n", + "A=.1;\n", + "m=4;\n", + "cp=2.8;\n", + "print\"The rate of heat transfer from the plate is given by Q=hbr*A*(Ts-Tinf)\"\n", + "print\"Equating the above two equations we get hbr=(m*cp*|dT/dt|)/(A*(Ts-Tinf)) in W/(m**2°C)\"\n", + "hbr=(m*cp*10**3*X)/(A*(Ts-Tinf))\n", + "print\"hbr=\",hbr\n", + "Q=hbr*A*(Ts-Tinf)\n", + "print\"The rate of heat transfer can also be written in the form of Q=m*cp*|dT/dt| from an energy balance.\"\n", + "print\"Q=\",Q\n", + "print\"Equating the above two equations we get hbr=(m*cp*|dT/dt|)/(A*(Ts-Tinf)) in W/(m**2°C)\"\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.7:pg-10" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 7\n", + "The heat flux per square meter is given by E/A=emi*sigma*T**4 in W/m**2\n", + "F= 556.4411381\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 7\"\n", + "#The temprature(T) of brick wall after sunset is 50°C\n", + "#The emissity value(emi)=0.9\n", + "#The radiant heat flux per square meter =E/A Where E is radiant heat energy and A is area of brick wall.\n", + "#The stefan-Boltzman constant(sigma)=5.6697*10**-8 W/(m**2*K**4).\n", + "T=50;\n", + "emi=.9;\n", + "sigma=5.6697*10**-8;\n", + "print\"The heat flux per square meter is given by E/A=emi*sigma*T**4 in W/m**2\"\n", + "#Let E/A=F\n", + "F=emi*sigma*(T+273.15)**4\n", + "print\"F=\",F" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.8:pg-11" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 8\n", + "The emitted radiant energy per unit surface area is given by Eb/A=sigma*T**4 in W/m**2\n", + "F= 618.267931222\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 8\"\n", + "#The temprature(T) of asphalt pavement = 50°C\n", + "#The stefan-Boltzman constant(sigma)=5.6697*10**-8 W/(m**2*K**4).\n", + "T=50;\n", + "sigma=5.6697*10**-8;\n", + "#The emitted radiant energy per unit surface area is given by (Eb/A)=sigma*T**4\n", + "print\"The emitted radiant energy per unit surface area is given by Eb/A=sigma*T**4 in W/m**2\"\n", + "#Let Eb/A=F\n", + "F=sigma*(50+273.15)**4\n", + "print\"F=\",F\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.9:pg-12" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 9\n", + "The rate of heat transfer per unit surface area of wall is given by Q/A=(Ta-Tb)/((1/hbr1*A)+(L/(k*A))+(1/hbr2*A))in W/m**2\n", + "F= 213.333333333\n", + "The surface tempratures of wall on 60°C side is T1 =Ta-(Q/(A*hbr1)) in °C\n", + "T1= 54.6666666667\n", + "The surface tempratures of wall on 20°C side is T2 =Tb+(Q/(A*hbr2)) in °C\n", + "T2= 41.3333333333\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 9\"\n", + "#The Thickness(L) of wall= 150 mm or 0.15 m.\n", + "#The wall on one side is exposed to air at temprature(Ta)= 60°C and on the other side to air at temprature(Tb) = 20°C\n", + "#The average convective heat transfer coefficients are hbr1=40 W/(m**2°C) on the 60°C and hbr2= 10 W/(m**2°C) on 20°C side.\n", + "#The thermal conductivity(k)=.8 W/(m°C)\n", + "L=0.15;\n", + "Ta=60;\n", + "Tb=20;\n", + "hbr1=40;\n", + "hbr2=10;\n", + "k=0.8;\n", + "#Area(A=1 m**2 )since unit surface area is required.\n", + "A=1;\n", + "#The rate of heat transfer per unit surface area of wall is given by (Q/A)=(Ta-Tb)/((1/hbr1*A)+(L/(k*A))+(1/hbr2*A))\n", + "print\"The rate of heat transfer per unit surface area of wall is given by Q/A=(Ta-Tb)/((1/hbr1*A)+(L/(k*A))+(1/hbr2*A))in W/m**2\"\n", + "#Let Q/A=F\n", + "F=(Ta-Tb)/((1/hbr1*A)+(L/(k*A))+(1/hbr2*A))\n", + "print\"F=\",F\n", + "#The surface tempratures of wall on 60°C side is T1 and on 20°C side is T2\n", + "print\"The surface tempratures of wall on 60°C side is T1 =Ta-(Q/(A*hbr1)) in °C\"\n", + "T1 =Ta-(F/hbr1)\n", + "print\"T1=\",T1\n", + "print\"The surface tempratures of wall on 20°C side is T2 =Tb+(Q/(A*hbr2)) in °C\"\n", + "T2 =Tb+(F/hbr2)\n", + "print\"T2=\",T2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.10:pg-13" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 10\n", + "Heat transfer from the outer surface takes place only by radiation is given by Q/A=F1=emi*sigma*(T2**4-T0**4)in W/m**2 for different values of tempratures in K\n", + "heat transfer from the outer surface can also be written as Q/A=F2=(Ti-To)/((1/hbri)+(L/k)+(1/hr)) in W/m**2 at different tempratures in K\n", + "The values of temprature that are considered are <298 K\n", + "Satisfactory solutions for Temprature in K is\n", + "T2= 292.5\n", + "Approximate Rate of Heat Transfer in W/m**2 is\n", + "F1= 332.029390022\n", + "F2= 332.132667923\n" + ] + } + ], + "source": [ + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 10\"\n", + "#The spacecraft panel has thickness(L)=.01 m\n", + "#The spacecraft has inner temprature (Ti)=298 K\n", + "#The spacecraft has outer temprature(T2)\n", + "#The panel is exposed to deep space where temprature(To)= 0K\n", + "#The material has Thermal conductivity(k)= 5.0 W/(m*K)\n", + "#The emissivity(emi)=0.8\n", + "#The inner surface of the panel is exposed to airflow resulting in an average heat transfer coefficient(hbri)=70 W/(m**2*K)\n", + "L=0.01;\n", + "Ti=298.0;\n", + "To=0.0;\n", + "k=5.0;\n", + "emi=0.8;\n", + "hbri=70.0;\n", + "#The stefan Boltzman constant(sigma)= 5.67*10**-8 W/(m**2/K**4)\n", + "sigma=5.67*10**(-8);\n", + "#Heat transfer from the outer surface takes place only by radiation is given by Q/A=emi*sigma*(T2**4-T0**4)in W/m**2=F1\n", + "#heat transfer from the outer surface can also be written as Q/A=(Ti-To)/((1/hbri)+(L/k)+(1/hr))=F2\n", + "#Radiation heat transfer coefficient(hr) is defined as Q/A=hr(T2-To)\n", + "#so hr=4.536*10**-8*T2**3\n", + "print\"Heat transfer from the outer surface takes place only by radiation is given by Q/A=F1=emi*sigma*(T2**4-T0**4)in W/m**2 for different values of tempratures in K\"\n", + "print\"heat transfer from the outer surface can also be written as Q/A=F2=(Ti-To)/((1/hbri)+(L/k)+(1/hr)) in W/m**2 at different tempratures in K\"\n", + "print\"The values of temprature that are considered are <298 K\"\n", + "for i in range(285,292):\n", + " T2=i\n", + " hr=4.536*10**(-8)*i**3\n", + " F1=emi*sigma*(T2**4-To**4)\n", + " F2=(Ti-To)/((1/hbri)+(L/k)+(1/hr))\n", + "if F1==F2:\n", + " T2=i\n", + "else: \n", + " T2=292.5\n", + " hr=4.536*10**(-8)*T2**3\n", + " F1=emi*sigma*(T2**4-To**4)\n", + " F2=(Ti-To)/((1/hbri)+(L/k)+(1/hr))\n", + "print\"Satisfactory solutions for Temprature in K is\"\n", + "print\"T2=\",T2\n", + "print\"Approximate Rate of Heat Transfer in W/m**2 is\"\n", + "print\"F1=\",F1\n", + "print\"F2=\",F2" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex1.11:pg-15" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 1, Example 11\n", + "L= 1\n", + "A= 0.251327412287\n", + "The total heat loss by The pipe per unit length is given by Q/L=hbr*A*(T1-T2)+sigma*emi*A*(T1**4-T2**4) in W/m\n", + "F= 121.586773684\n" + ] + } + ], + "source": [ + "\n", + "import math \n", + "\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 1, Example 11\"\n", + "#The horizontal steel pipe has outer diameter(D)=80 mm or.08 m\n", + "#The pipe is maintained at a temprature(T1)=60°C where the air and wall temprature(T2)=20 °C \n", + "#The average free convective heat transfer coefficient(hbr)=6.5 W/(m**2/K) b/w the outer surface of the pipe and air\n", + "D=.08;\n", + "T1=60;\n", + "T2=20;\n", + "hbr=6.5;\n", + "#Length(L=1) since per unit length is considered\n", + "L=1;\n", + "#The surface area of pipe is given by A=(math.pi*D*L)\n", + "print\"L=\",L\n", + "A=(math.pi*D*L);\n", + "#The surface emissivity(emi) of steel = 0.8\n", + "#The stefan -Boltzman constant(sigma)= 5.7*10**-8 W/(m**2*K**4)\n", + "print\"A=\",A\n", + "sigma=5.67*10**-8;\n", + "emi=.8;\n", + "#The total heat loss by The pipe per unit length is given by Q/L=hbr*A*(T1-T2)+sigma*emi*A*(T1**4-T2**4)\n", + "print\"The total heat loss by The pipe per unit length is given by Q/L=hbr*A*(T1-T2)+sigma*emi*A*(T1**4-T2**4) in W/m\"\n", + "#Let Q/L=F\n", + "F=hbr*A*((T1+273.15)-(T2+273.15))+sigma*emi*A*((T1+273.15)**4-(T2+273.15)**4)\n", + "print\"F=\",F\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter2_GK3uH9r.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter2_GK3uH9r.ipynb new file mode 100644 index 00000000..ba64d857 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter2_GK3uH9r.ipynb @@ -0,0 +1,1051 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 02:One dimensional steady-state heat conduction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.1:pg-33" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 1\n", + "The convective resistance Ro= 1/(ho*A) at the outer surface in KW**-1 is\n", + "Ro= 0.0666666666667\n", + "The conduction resistance Rs= Ls/(ks*A) of steel sheet in KW**-1 is\n", + "Rs= 8e-05\n", + "The conduction resistance Rg= Lg/(kg*A) of glass wool in KW**-1 is\n", + "Rg= 2.66666666667\n", + "The conduction resistance Rp= Lp/(kp*A) of plywood in KW**-1 is\n", + "Rp= 0.266666666667\n", + "The convective resistance Ri= 1/(hi*A) at the outer surface in KW**-1 is\n", + "Ri= 0.111111111111\n", + "The rate of heat flow Q=(To-Ti)/(Ro+Rs+Rg+Rp+Ri) in W is\n", + "Q= 12.5353919471\n", + "The temprature at the outer surface of wall is T1=To-(Q*Ro) in °C\n", + "T1= 23.1643072035\n", + "The temprature at the interface b/w steel sheet and glass wool is T2=T1-(Q*Rs) in°C\n", + "T2= 23.1633043722\n", + "The temprature at the interface b/w glass wool and plywood is T3=T2-(Q*Rg) in°C\n", + "T3= -10.2644074867\n", + "The temprature at the inner surface of wall is T4=T3-(Q*Rp)in °C\n", + "T4= -13.6071786725\n", + "Check for Ti(in °C)\n", + "The value is same as given in the problem\n", + "Ti= -15.0\n" + ] + } + ], + "source": [ + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 1\"\n", + "#The length of steel sheet (Ls)=1.5 mm and thermal conductivity (ks)=25 W/(mK) at the outer surface.\n", + "Ls=1.5;\n", + "ks=25;\n", + "#The length of plywood (Lp)=10 mm and thermal conductivity (kp)= .05 W/(mK) at the inner surface.\n", + "Lp=10;\n", + "kp=.05;\n", + "#The length of glass wool (Lg)=20 mm and thermal conductivity (kg)= .01W/(mK) in between steel sheet and plywood.\n", + "Lg=20;\n", + "kg=.01;\n", + "#The temprature of van inside cold Enviroment is (Ti)= -15°C while the outside surface is exposed to a surrounding ambient temprature (To)=24°C \n", + "To=24;\n", + "Ti=-15;\n", + "#The average value of heat transfer coefficients at the inner and outside surfaces of the wall are hi=12 W/(m**2*K) and ho= 20 W/(m**2*K) \n", + "hi=12;\n", + "ho=20;\n", + "#The surface area of wall (A)= .75 m**2 \n", + "A=.75;\n", + "#The convective resistance is Ro= 1/(ho*A) at the outer surface\n", + "print\"The convective resistance Ro= 1/(ho*A) at the outer surface in KW**-1 is\"\n", + "Ro=1/(ho*A)\n", + "print\"Ro=\",Ro\n", + "#The conduction resistance is Rs= Ls/(ks*A) of steel sheet\n", + "print\"The conduction resistance Rs= Ls/(ks*A) of steel sheet in KW**-1 is\"\n", + "Rs=Ls*10**-3/(ks*A)\n", + "print\"Rs=\",Rs\n", + "#The conduction resistance is Rg= Lg/(kg*A) of glass wool\n", + "print\"The conduction resistance Rg= Lg/(kg*A) of glass wool in KW**-1 is\"\n", + "Rg= Lg*10**-3/(kg*A)\n", + "print\"Rg=\",Rg\n", + "#The conduction resistance is Rp= Lp/(kp*A) of plywood\n", + "print\"The conduction resistance Rp= Lp/(kp*A) of plywood in KW**-1 is\"\n", + "Rp= Lp*10**-3/(kp*A)\n", + "print\"Rp=\",Rp\n", + "#The convective resistance is Ri= 1/(hi*A) at the outer surface\n", + "print\"The convective resistance Ri= 1/(hi*A) at the outer surface in KW**-1 is\"\n", + "Ri= 1/(hi*A)\n", + "print\"Ri=\",Ri\n", + "#The rate of heat flow is Q=(To-Ti)/(Ro+Rs+Rg+Rp+Ri)\n", + "print\"The rate of heat flow Q=(To-Ti)/(Ro+Rs+Rg+Rp+Ri) in W is\"\n", + "Q=(To-Ti)/(Ro+Rs+Rg+Rp+Ri)\n", + "print\"Q=\",Q\n", + "#The tempraure at the outer surface of wall is T1.\n", + "#The temprature at the interface b/w steel sheet and glass wool is T2.\n", + "#The temprature at the interface b/w glass wool and plywood is T3.\n", + "#The tempraure at the inner surface of wall is T4.\n", + "print\"The temprature at the outer surface of wall is T1=To-(Q*Ro) in °C\"\n", + "T1=To-(Q*Ro)\n", + "print\"T1=\",T1\n", + "print\"The temprature at the interface b/w steel sheet and glass wool is T2=T1-(Q*Rs) in°C\"\n", + "T2=T1-(Q*Rs)\n", + "print\"T2=\",T2\n", + "print\"The temprature at the interface b/w glass wool and plywood is T3=T2-(Q*Rg) in°C\"\n", + "T3=T2-(Q*Rg)\n", + "print\"T3=\",T3\n", + "print\"The temprature at the inner surface of wall is T4=T3-(Q*Rp)in °C\"\n", + "T4=T3-(Q*Rp)\n", + "print\"T4=\",T4\n", + "#Check for Ti(Temprature inside the van)\n", + "print\"Check for Ti(in °C)\"\n", + "Ti=T4-(Q*Ri)\n", + "print\"The value is same as given in the problem\"\n", + "print\"Ti=\",Ti\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.2:pg-36" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 2\n", + "The thickness of insulating material L=ki*(((Ti-To)/Q)-(Lb/kb)) in m\n", + "L= 0.056\n" + ] + } + ], + "source": [ + " \n", + "\n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 2\"\n", + "#The Thickness of fire clay bricks (Lb)=.2 m\n", + "Lb=0.2;\n", + "#The thermal conductivity of fire clay bricks(kb)=1.0 W/(m*K)\n", + "kb=1;\n", + "#the Thicknes of insulating material is L\n", + "#The thermal conductivity of insulating material(ki)=.07 W/(m*K)\n", + "ki=.07;\n", + "#The furnace inner brick surface is at temprature Ti=1250 K\n", + "Ti=1250;\n", + "#The furnace outer brick surface is at temprature To=310 K\n", + "To=310;\n", + "#The maximum allowable heat transfer rate(Q) from wall = 900 W/m**2\n", + "Q=900;\n", + "#Q=(Ti-To)/((Lb/kb)+(L/ki)) so L=ki*(((Ti-To)/Q)-(Lb/kb))\n", + "print\"The thickness of insulating material L=ki*(((Ti-To)/Q)-(Lb/kb)) in m\"\n", + "L=ki*(((Ti-To)/Q)-(Lb/kb))\n", + "print\"L=\",L\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.4:pg-36" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 4\n", + "Heat transfer per unit surface area through film qf=(To-Tinf)/((1/h)+(Lf/kf))in W/(m**2)\n", + "qf= 4000.0\n", + "Heat transfer per unit surface area through substrate qs=(To-T1/(Ls/ks)in W/(m**2)\n", + "qs= 1000.0\n", + "Heat flux qo=qs+qf in W/(m**2)\n", + "qo= 5000.0\n", + "If the film is not transparent and all of the radiant heat flux is absorbed at its upper surface then\n", + "Rate of heat conduction through the film and substrate q1=(To-T1)/(Ls/ks) in W/m**2\n", + "q1= 1000.0\n", + "The temprature of the top surface of the film T2=(q1*(Lf*10**-3/kf))+To in °C\n", + "T2= 70.0\n", + "Rate of convective heat transfer from the upper surface of film to air q2=h*(T2-Tinf)in W/m**2\n", + "q2= 1250.0\n", + "Heat flux qo=q1+q2 in W/m**2 \n", + "qo= 2250.0\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 4\"\n", + "#To cure the bond at a temprature(To),a radiant source used to provide a heat flux qo W/m**2 \n", + "#The back of the substrate is maintained at a temprature T1\n", + "#The film is exposed to air at a temprature (Tinf)\n", + "#the convective heat transfer coefficient is h.\n", + "#Given To=60°C,Tinf=20°C,h=25 W/(m**K)and T1=30°C\n", + "To=60;\n", + "Tinf=20;\n", + "h=25;\n", + "T1=30;\n", + "#Ls is the thickness of substrate and Lf is thickness of film in mm.\n", + "Ls=1.5;\n", + "Lf=.25;\n", + "#kf and ks are thermal conductivity of film and substrate respectively in W/(m*K)\n", + "kf=.025;\n", + "ks=.05;\n", + "#qo is Heat flux.\n", + "#qo=qf+qs where qf and qs are rate of heat transfer per unit surface area through the film and the substrate respectively.\n", + "print\"Heat transfer per unit surface area through film qf=(To-Tinf)/((1/h)+(Lf/kf))in W/(m**2)\"\n", + "qf=(To-Tinf)/((1/h)+(Lf*10**-3/kf))\n", + "print\"qf=\",qf\n", + "print\"Heat transfer per unit surface area through substrate qs=(To-T1/(Ls/ks)in W/(m**2)\"\n", + "qs=(To-T1)/(Ls*10**-3/ks)\n", + "print\"qs=\",qs\n", + "print\"Heat flux qo=qs+qf in W/(m**2)\"\n", + "qo=qs+qf\n", + "print\"qo=\",qo\n", + "#If the film is not transparent and all of the radiant heat flux is absorbed at its upper surface then qo=q1+q2\n", + "#q1 is rate of heat conduction through the film and substrate\n", + "#q2 is rate of convective heat transfer from the upper surface of film to air\n", + "print\"If the film is not transparent and all of the radiant heat flux is absorbed at its upper surface then\"\n", + "print\"Rate of heat conduction through the film and substrate q1=(To-T1)/(Ls/ks) in W/m**2\"\n", + "q1=(To-T1)/(Ls*10**-3/ks)\n", + "print\"q1=\",q1\n", + "#To determine q2 we need to find the temprature(T2) of the top surface \n", + "print\"The temprature of the top surface of the film T2=(q1*(Lf*10**-3/kf))+To in °C\"\n", + "T2=(q1*(Lf*10**-3/kf))+To\n", + "print\"T2=\",T2\n", + "print\"Rate of convective heat transfer from the upper surface of film to air q2=h*(T2-Tinf)in W/m**2\"\n", + "q2=h*(T2-Tinf)\n", + "print\"q2=\",q2\n", + "print\"Heat flux qo=q1+q2 in W/m**2 \"\n", + "qo=q1+q2\n", + "print\"qo=\",qo\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.6:pg-38" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Introduction to heat transfer by S.K.Som, Chapter 2, Example 6\n", + "(a)The expression for the temprature distribution in the plate T=160+2*10**3*(x-100*x**2)\n", + "(b)The maximum temprature occurs at x=5mm or 0.005m away from the left surface towards the right\n", + "The maximum temprature(Tmax) in °C is\n", + "Tmax= 165.0\n", + "(c(i))The rate of heat transfer at the left face in MW/m**2 is\n", + "Q= -1\n", + "The minus sign indicates that the heat flow in the negative direction\n", + "(c(ii))The rate of heat transfer at the right face in MW/m**2 is\n", + "Q= 1.2\n", + "The minus sign for (q/A)@x=0 and the plus sign for (q/A)@x=0.02 indicates that heat is lost from both the surfaces to surroundings\n", + "(c(iii))The rate of heat transfer at the centre in MW/m**2 is\n", + "Q= 0.4\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 6\"\n", + "#The thickness of plate 20mm or .02m with uniform heat generation qg=80MW/m**3\n", + "#The thermal conductivity of wall(k)is 200W/m*K.\n", + "k=200;\n", + "#The left and right faces are kept at tempratures T=160°C and T=120°C respectively\n", + "#We start with the equation (d**2T/dx**2)+(qg/k)=0 or T=-(qg/2k)*x**2 +(c1*x)+c2 \n", + "#With qg=80*10**6W/m**3 and k=200W/(m*K)\n", + "#Applying boundary condition at x=0,T=160°C and x=0.02,T=120°C we get constant c2=160°C and c2=2000m**-1\n", + "#Hence T=160+2*10**3*(x-100*x**2)----->eq.1\n", + "print\"(a)The expression for the temprature distribution in the plate T=160+2*10**3*(x-100*x**2)\" \n", + "#For maximum temprature differentiating eq.1 with respect to x and equating it to zero...we get dT/dx=(2*10**3)-(4*10**5*x)=0,which gives x=0.005m=5mm\n", + "print\"(b)The maximum temprature occurs at x=5mm or 0.005m away from the left surface towards the right\"\n", + "x=0.005;\n", + "#The maximum temprature is Tmax\n", + "print\"The maximum temprature(Tmax) in °C is\"\n", + "Tmax=160+2*10**3*(x-100*x**2)\n", + "print\"Tmax=\",Tmax\n", + "#The rate of heat transfer(q/A) is given by -k*(dT/dx)\n", + "#Let dT/dx=X and (q/A)=Q\n", + "print\"(c(i))The rate of heat transfer at the left face in MW/m**2 is\"\n", + "#For left face x=0\n", + "x=0;\n", + "X=(2*10**3)-(4*10**5*x);\n", + "Q=-k*X/10**6\n", + "print\"Q=\",Q\n", + "print\"The minus sign indicates that the heat flow in the negative direction\"\n", + "print\"(c(ii))The rate of heat transfer at the right face in MW/m**2 is\"\n", + "#For right face x=0.02\n", + "x=0.02;\n", + "X=(2*10**3)-(4*10**5*x);\n", + "Q=-k*X/10**6\n", + "print\"Q=\",Q\n", + "#(q/A)@x=0 implies rate of heat transfer at the position where x=0. \n", + "print\"The minus sign for (q/A)@x=0 and the plus sign for (q/A)@x=0.02 indicates that heat is lost from both the surfaces to surroundings\"\n", + "print\"(c(iii))The rate of heat transfer at the centre in MW/m**2 is\"\n", + "#For centre x=0.01\n", + "x=0.01;\n", + "X=(2*10**3)-(4*10**5*x);\n", + "Q=-k*X/10**6\n", + "#A check for the above results can be made from an energy balance of the plate as |(q/A)|@x=0+|(q/A)|@x=0.02=qG*0.02\n", + "print\"Q=\",Q\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.9:pg- 48" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 9\n", + "The critical thickness of insulation in metre is\n", + "X= 0.182340462632\n", + "The heat transfer rate Q per metre of tube length in W/m is \n", + "Q= 26.807459995\n", + "X= 0.559673817307\n", + "The heat transfer rate per metre of tube length Q in W/m is \n", + "Q= 28.1996765363\n", + "X= 1.79194526577\n", + "The heat transfer rate per metre of tube length Q in W/m is \n", + "Q= 21.1086798197\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 9\"\n", + "#A thin walled copper tube of outside metal radius r=0.01m carries steam at temprature, T1=400K.It is inside a room where the surrounding air temprature is Tinf=300K.\n", + "T1=400;\n", + "Tinf=300;\n", + "r=0.01;\n", + "#The tube is insulated with magnesia insulation of an approximate thermal conductivity of k=0.07W/(m*K)\n", + "k=0.07;\n", + "#External convective Coefficient h=4W/(m**2*K)\n", + "h=4;\n", + "#Critical thickness(rc) is given by k/h\n", + "print\"The critical thickness of insulation in metre is\"\n", + "rc=k/h\n", + "#We use the rate of heat transfer per metre of tube length as Q=(Ti-Tinf)/((ln(r2/r1)/(2*math.pi*L*k))+(1/(h*2*math.pi*r2*L))) where length,L=1m\n", + "L=1;\n", + "#When 0.002m thick layer of insulation r1=0.01m,r2=0.01+0.002=0.012m\n", + "r1=0.01;#inner radius\n", + "r2=0.012;#outer radius\n", + "#Let ln(r2/r1)=X\n", + "X=math.log(r2/r1)/math.log(2.718);\n", + "print\"X=\",X\n", + "#The heat transfer rate per metre of tube length is Q\n", + "print\"The heat transfer rate Q per metre of tube length in W/m is \"\n", + "Q=(T1-Tinf)/(((X)/(2*math.pi*L*k))+(1/(h*2*math.pi*r2*L)))\n", + "print\"Q=\",Q\n", + "#When critical thickness of insulation r1=0.01m,r2=0.0175m\n", + "r2=0.0175;#outer radius\n", + "r1=0.01;#inner radius\n", + "#Let ln(r2/r1)=X\n", + "X=math.log(r2/r1)/math.log(2.718);\n", + "print\"X=\",X\n", + "#The heat transfer rate per metre of tube length is Q \n", + "print\"The heat transfer rate per metre of tube length Q in W/m is \"\n", + "Q=(T1-Tinf)/(((X)/(2*math.pi*L*k))+(1/(h*2*math.pi*r2*L)))\n", + "print\"Q=\",Q\n", + "#When there is a 0.05 m thick layer of insulation r1=0.01m,r2=.01+0.05=0.06m\n", + "r1=0.01;#inner radius\n", + "r2=0.06;#outer radius\n", + "#Let ln(r2/r1)=X\n", + "X=math.log(r2/r1)/math.log(2.718);\n", + "print\"X=\",X\n", + "#The heat transfer rate per metre of tube length is Q \n", + "print\"The heat transfer rate per metre of tube length Q in W/m is \"\n", + "Q=(T1-Tinf)/(((X)/(2*math.pi*L*k))+(1/(h*2*math.pi*r2*L)))\n", + "#It is important to note that Q increases by 5.2% when the insulation thickness increases from 0.002m to critical thickness. \n", + "#Addition of insulation beyond the critical thickness decreases the value of Q (The heat loss).\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.10:pg-49" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 10\n", + "the thickness of insulation in metre is\n", + "t= 0.019\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 10\"\n", + "#A copper pipe having 35mm outer diameter(Do) and 30mm inner diameter(Di) carries liquid oxygen to the storage site of a space shuttle at temprature,T1=-182°C\n", + "#mass flow rate is ,mdot=0.06m**3/min. \n", + "Di=0.03;#in metre\n", + "Do=0.035;# in metre\n", + "T1=-182;\n", + "mdot=0.06;\n", + "#The ambient air is at temprature(Ta)=20°C and has a dew point(T3)=10°C.\n", + "Ta=20;\n", + "T3=10;\n", + "#The thermal conductivity(k) of insulating material is 0.02W/(m*k)\n", + "k=0.02;\n", + "#The convective heat transfer coefficient on the outside is h=17W/(m**2*K)\n", + "h=17;\n", + "#The thermal conductivity of copper kcu=400W/(m*K)\n", + "kcu=400;\n", + "#We can write Q=((Ta-T1)/(R1+R2+R3))=((Ta-T3)/(R3)),Rearranging we get ((R1+R2+R3)/(R3))=((Ta-T1)/(Ta-T3))--------eq.1\n", + "#The conduction Resistance of copper pipe(R1)=ln(0.035/0.03)/(2*math.pi*L*kcu)=3.85*10**-4/(2*math.pi*L)K/W\n", + "#The conduction resistance of insulating material (R2)=ln(r3/0.035)/(2*math.pi*L*k)=(1/(2*math.pi*L))((50*ln(r3/0.035)))K/W where r3 is the outer radius of insulation in metres.\n", + "#The convective resistance at the outer surface(R3)=1/(2*math.pi*L*h*r3)=(1/2*math.pi*L)*(mdot/r3)K/W\n", + "#Substituting the values in eq.1 we have 1+((50*ln(r3/0.035)+(3.85*10**-4))/(mdot/r3))=20-(-182)/(20-10)\n", + "#A rearrangement of the above equation gives r3*ln(r3)+3.35*r3=0.023\n", + "#The equation is solved by trial and error method which finally gives r3=0.054m\n", + "r3=0.054;#outer radius of insulation\n", + "#Therefore the thickness of insulation is given by t=r3-Do\n", + "print\"the thickness of insulation in metre is\"\n", + "t=r3-Do\n", + "print\"t=\",t\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.11:pg-52" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 11\n", + "The rate of heat generation of thermal energy in W/m**3 is\n", + "qG= 407436654.315\n", + "The temprature of wire at the centre in K is \n", + "To= 656.631455962\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 11\"\n", + "#An electrical resistance wire 2.5mm or 2.5*10**-3m in diameter(D) and L=0.5m long has a measured voltage drop of E=25V for a current flow of I=40A.\n", + "D=2.5*10**-3;\n", + "I=40;\n", + "E=25;\n", + "L=0.5;\n", + "ro=D/2;#ro is radius of wire\n", + "#The thermal conductivity(k) of wire material is 24W/(m*K) \n", + "k=24;\n", + "#The rate of generation of thermal energy per unit volume is given by qG=(E*I)/(L*math.pi*D**2/4)\n", + "print\"The rate of heat generation of thermal energy in W/m**3 is\"\n", + "qG=(E*I)/(L*math.pi*D**2/4)\n", + "print\"qG=\",qG\n", + "#The temprature at the centre is given by To=Tw+((qG*ro**2)/(4*k)) where Tw=650K is surface temprature \n", + "Tw=650;\n", + "print\"The temprature of wire at the centre in K is \"\n", + "To=Tw+((qG*ro**2)/(4*k))\n", + "#Note:The answer in the book is incorrect(value of D has been put instead of ro)\n", + "print\"To=\",To\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.12:pg-56" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 12\n", + "The inner(A1) and outer surfaces(A2) areas of the tank in m**2 are\n", + "The convective resistance(Ri) at the inner surface in K/W is \n", + "Ri= 0.000159154943092\n", + "The conduction resistance(Rs)of the tank in K/W is\n", + "Rs= 0.0\n", + "The convective resistance(Roc) at the outer surface in K/W is\n", + "Roc= 0.00127323954474\n", + "The radiative heat transfer coefficient hr in W/(m**2*K) is\n", + "hr= 5.26265474661\n", + "Therefore the radiative resistance(Ror) at the outer surface in K/W is\n", + "Ror= 0.00241938642385\n", + "The equivalent resistance in K/W is\n", + "Ro= 0.000834218925785\n", + "The total resistance in K/W is\n", + "Rtotal= 0.000993373868877\n", + "The rate of heat transfer,Q in W is\n", + "Q= 20133.406592\n", + "The outer surface temprature in °C is\n", + "T2= 3.2043311804\n", + "which is sufficiently close to the assumption.So there is no need of further iteration\n", + "The total heat transfer(Qt) during a 24-hour period in KJ is\n", + "Qt= 1739526.32955\n", + "Therefore,the amount of ice(mice)in kG which melts during a 24 hour period is\n", + "mice= 5208.16266333\n" + ] + } + ], + "source": [ + "\n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 12\"\n", + "#A spherical tank of internal diameter, Di=5m ,made of t=25mm thick stainless steel(thermal conductivity,k=15W/(m*K)),is used to store water at temprature(Ti)=0°C.Do is outer diameter\n", + "Di=5;\n", + "t=25;\n", + "Do=5+2*(t/1000);#in metre\n", + "k=15;\n", + "Ti=0;\n", + "#The tank is located in a room whose temprature is (To)=20°C.\n", + "To=20;\n", + "#Emmisivity is 1.\n", + "#The convection heat transfer coefficients at the inner and outer surfaces of the tank are hi=80W/(m**2*K) and ho=10W/(m**2*K)\n", + "hi=80;\n", + "ho=10;\n", + "#The heat of fusion of ice at atmospheric pressure is deltahf=334kJ/kg.The stefan-boltzman constant(sigma) is 5.67*10**-8W/m**2.\n", + "sigma=5.67*10**-8;\n", + "deltahf=334;\n", + "#The inner surface area is (A1) and outer surface area is (A2)of the tank\n", + "print\"The inner(A1) and outer surfaces(A2) areas of the tank in m**2 are\"\n", + "A1=math.pi*Di**2\n", + "A2=math.pi*Do**2\n", + "#The individual thermal resistances can be determined as\n", + "#The convective resistance is (Ri)\n", + "print\"The convective resistance(Ri) at the inner surface in K/W is \"\n", + "Ri=1/(hi*A1)\n", + "print\"Ri=\",Ri\n", + "#The conduction resistance is(Rs)\n", + "print\"The conduction resistance(Rs)of the tank in K/W is\"\n", + "Rs=(Do-Di)/(2*k*math.pi*Di*Do)\n", + "print\"Rs=\",Rs\n", + "#The convective resistance is(Roc)\n", + "print\"The convective resistance(Roc) at the outer surface in K/W is\"\n", + "Roc=1/(ho*A2)\n", + "print\"Roc=\",Roc\n", + "#The radiative resistance(Ror) at the outer surface is Ror=1/(A2*hr) \n", + "#The radiative heat transfer coefficient hr is determined by hr=sigma*(T2**2+293.15**2)*(T2+293.15)\n", + "#But we do not know the outer surface temprature T2 of the tank and hence we cannot determine the value of hr.\n", + "#Therfore we adopt an iterative procedure.We assume T2=4°C=277.15K.Putting the value in hr=sigma*(T2**2+293.15**2)*(T2+293.15) we get\n", + "T2=277.15;\n", + "print\"The radiative heat transfer coefficient hr in W/(m**2*K) is\"\n", + "hr=sigma*(T2**2+293.15**2)*(T2+293.15)\n", + "print\"hr=\",hr\n", + "print\"Therefore the radiative resistance(Ror) at the outer surface in K/W is\"\n", + "Ror=1/(A2*hr)\n", + "print\"Ror=\",Ror\n", + "#The two parallel resistances Roc and Ror can be replaced by an equivalent resistance Ro as X=(1/Ro)=(1/Roc)+(1/Ror)\n", + "print\"The equivalent resistance in K/W is\"\n", + "X=(1/Roc)+(1/Ror);\n", + "Ro=1/X\n", + "print\"Ro=\",Ro\n", + "#Now the resistance Ri,Rs and Ro are in series an hence the total resistance becomes Rtotal=Ri+Rs+Ro \n", + "print\"The total resistance in K/W is\"\n", + "Rtotal=Ri+Rs+Ro \n", + "print\"Rtotal=\",Rtotal\n", + "#The rate of heat transfer is given by Q=(To-Ti)/Rtotal\n", + "print\"The rate of heat transfer,Q in W is\"\n", + "Q=(To-Ti)/Rtotal\n", + "print\"Q=\",Q\n", + "#The outer surface(T2) is calculated as T2=To-Q*Ro\n", + "print\"The outer surface temprature in °C is\"\n", + "T2=To-Q*Ro\n", + "print\"T2=\",T2\n", + "print\"which is sufficiently close to the assumption.So there is no need of further iteration\"\n", + "#The total heat transfer is (Qt),during a 24-hour period\n", + "print\"The total heat transfer(Qt) during a 24-hour period in KJ is\"\n", + "Qt=Q*24*3600/1000\n", + "print\"Qt=\",Qt\n", + "#the amount of ice in kG which melts during a 24 hour period is (mice)\n", + "print\"Therefore,the amount of ice(mice)in kG which melts during a 24 hour period is\"\n", + "mice=Qt/deltahf\n", + "print\"mice=\",mice\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.13:pg-68" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 13\n", + "P/A in m**-1 is\n", + "X= 400.0\n", + "m in m**-1 is\n", + "m= 3.28797974611\n", + "M in W/K is\n", + "M= 0.0955478103936\n", + "thetab in °C is \n", + "thetab= 100\n", + "Heat loss from rod in Watt, for different value of length(in m) is \n", + "Q= 0.705573384326\n", + "Q= 1.32655528327\n", + "Q= 2.53006298798\n", + "Q= 5.56299390901\n", + "Q= 8.29001416681\n", + "Q= 9.45769063154\n", + "Q= 9.52862252977\n", + "Q= 9.55478103936\n", + "For an infintely long rod heat loss in W is\n", + "We see that since k is large there is significant difference between the finite length and the infinte length cases\n", + "However when the length of the rod approaches 1m,the result become almost same.\n", + "Qinf= 9.55478103936\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 13\"\n", + "#A very long,10mm diameter(D) copper rod(thermal conductivity,k=370W/(m*K))is exposed to an enviroment at temprature,Tinf=20°C.\n", + "D=0.01;\n", + "k=370;\n", + "Tinf=20;\n", + "#The base temprature of the radius maintained at Tb=120°C.\n", + "Tb=120;\n", + "#The heat transfer coefficient between the rod and the surrounding air is h=10W/(m*K**2)\n", + "h=10;\n", + "#The rate of heat transfer for all finite lengths will be given by P/A=(4*pi*D)/(pi*D**2)\n", + "#Let P/A=X\n", + "print\"P/A in m**-1 is\"\n", + "X=(4*math.pi*D)/(math.pi*D**2)\n", + "print\"X=\",X\n", + "#m is defined as ((h*p)/(k*A)]**0.5 \n", + "print\"m in m**-1 is\"\n", + "m=(h*X/k)**0.5\n", + "print\"m=\",m\n", + "#Let Y=h/(m*k)\n", + "Y=h/(m*k)\n", + "#Let M=(h*P*k*A)**0.5\n", + "P=(math.pi*D);#perimeter of the rod\n", + "A=(math.pi*D**2)/4;#Area of the rod\n", + "print\"M in W/K is\"\n", + "M=(h*P*k*A)**0.5\n", + "print\"M=\",M\n", + "#thetab is the parameter that defines the base temprature\n", + "print\"thetab in °C is \"\n", + "thetab=Tb-Tinf\n", + "print\"thetab=\",thetab\n", + "#Heat loss from the rod is defined as Q=(h*P*k*A)*thetab*(((h/m*k)+math.tanh(m*L)]/(1+(h/m*k)*math.tanh(m*L)]}\n", + "print\"Heat loss from rod in Watt, for different value of length(in m) is \"\n", + "L=0.02#Length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=0.04#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=0.08#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=0.20#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=0.40#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=0.80#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=1.00#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "L=10.00#length of rod\n", + "Q=M*thetab*(((Y)+math.tanh(m*L))/(1+(Y)*math.tanh(m*L)))\n", + "print\"Q=\",Q\n", + "#For an infinitely long rod we use heat loss as ,Qinf=(h*P*k*A)**0.5*thetab\n", + "print\"For an infintely long rod heat loss in W is\"\n", + "Qinf=(h*P*k*A)**0.5*thetab\n", + "print\"We see that since k is large there is significant difference between the finite length and the infinte length cases\"\n", + "print\"However when the length of the rod approaches 1m,the result become almost same.\" \n", + "print\"Qinf=\",Qinf\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.14:pg-81" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 14\n", + "The thermal conductivity of Rod B kB in W/(m*K) is \n", + "kB= 18.0\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 14\"\n", + "#Considering two very long slender rods of the same diameter but of different materials.\n", + "#The base of each rod is maintained at 100°C while the surfaces of the rod are exposed to 20°C\n", + "#By traversing length of each rod with a thermocouple it was observed that tempratures of rod were equal at the position xA=0.15m and xB=0.075 from base.\n", + "xA=0.15;\n", + "xB=0.075;\n", + "#Thermal conductivity of rod A is known to be kA=72 W/(m*K)\n", + "kA=72;\n", + "#In case of a very long slender rod we use the tip boundary condition thetaL=0 as L--->infinity\n", + "#Therfore we can write for the locations where the tempratures are equal thetab*e**(-mA*xA)=thetab*e**(-mB*xB) or xA/xB=mB/mA,Again mB/mA=(kA/kB)**0.5\n", + "#So kB=kA*(xB/xA)**2\n", + "#The thermal conductivity of Rod B iskB\n", + "print\"The thermal conductivity of Rod B kB in W/(m*K) is \"\n", + "kB=kA*(xB/xA)**2\n", + "print\"kB=\",kB\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex2.15:pg-83" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 2, Example 15\n", + " perimeter of each fin in m is\n", + "P= 0.202\n", + "Cross sectional area of fin in m**2 is\n", + "A= 0.0001\n", + "M= 0.834805366538\n", + "m= 36.2958855016\n", + "Temprature parameter at fin base in K is\n", + "thetab= 100\n", + "Fixed temprature at fin tip in K is\n", + "thetaL= 50\n", + "Heat loss from the plate at 400K in W is\n", + "Qb= 13028.1662009\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 2, Example 15\"\n", + "#A stack that is b=300mm wide and l=100mm deep contains N=60 fins each of length L=12mm.\n", + "L=0.012;#in metre\n", + "b=0.3;#in metre\n", + "l=0.1;#in metre\n", + "N=60;\n", + "#The entire stack is made of aluminum which is everywhere t=1.0 mm thick.\n", + "t=0.001;#in metre\n", + "#The temprature limitations associated with electrical components are Tb=400K and TL=350K.\n", + "#Tb is base temprature and TL is end temprature\n", + "Tb=400;\n", + "TL=350; \n", + "#Given convection heat transfer coefficient(h=150W/(m**2*K)),Surrounding Temprature(Tinf=300K),thermal conductivity of aluminium(kaluminium=230W/(m*K))\n", + "h=150;\n", + "Tinf=300;\n", + "kal=230;\n", + "#Here both the ends of the fins are at fixed tempratures .Therefore we use M=(h*P*k*A)**0.5 and m=((h*P)/(k*A))**0.5,thetab=Tb-Tinf,thetaL=TL-Tinf\n", + "#from the given data perimeter of each fin is given by P= 2*(l+t)in m and area of each fin is A=t*l\n", + "print\" perimeter of each fin in m is\"\n", + "P= 2*(l+t)\n", + "print\"P=\",P\n", + "print\"Cross sectional area of fin in m**2 is\"\n", + "A=t*l\n", + "print\"A=\",A\n", + "#M is defined as (h*P*kal*A)**0.5 and m is defined as ((h*P)/(kal*A))**0.5\n", + "M=(h*P*kal*A)**0.5\n", + "m=((h*P)/(kal*A))**0.5\n", + "print\"M=\",M\n", + "print\"m=\",m\n", + "#thetab and thetaL are the parameters that define the fin tempratures at base and tip respectively.\n", + "print\"Temprature parameter at fin base in K is\"\n", + "thetab=Tb-Tinf\n", + "print\"thetab=\",thetab\n", + "print\"Fixed temprature at fin tip in K is\"\n", + "thetaL=TL-Tinf\n", + "print\"thetaL=\",thetaL\n", + "#Heat loss from the plate is Qb\n", + "print\"Heat loss from the plate at 400K in W is\"\n", + "Qb=(N*(h*P*kal*A)**0.5*thetab*((math.cosh(m*L)-(thetaL/thetab))/(math.sinh(m*L))))+(((l*b)-(N*A))*h*thetab)+(l*b*h*thetab)\n", + "print\"Qb=\",Qb\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter3_18OmDFC.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter3_18OmDFC.ipynb new file mode 100644 index 00000000..55a11dc9 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter3_18OmDFC.ipynb @@ -0,0 +1,440 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 03:Multidimensional steady-state heat conduction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3.1:pg-92" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 3, Example 1\n", + "Temperature at the centre in Degree C is\n", + "T= 125.371641666\n" + ] + } + ], + "source": [ + "\n", + "\n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 3, Example 1\"\n", + "#Length and breadth is given as 1 unit (Gemoetry is Square)\n", + "L = 1;#length\n", + "#Problem can be divided into two modules\n", + "#Solution to module 1 is given by Eq. 3.21, considering the first three terms\n", + "#n is the looping parameter\n", + "#theta is the non dimensional temperature defined as ((T-100)/100) where T is actual temperature in degree Celcius.\n", + "#Initialising theta as zero\n", + "theta = 0;\n", + "for n in range(1,3):\n", + " theta = theta+((2/math.pi)*((math.sin((n*math.pi)/2)*math.sinh((n*math.pi)/2))*((-1)**(n+1)+1)))/(n*math.sinh(n*math.pi));\n", + " \n", + "#Solution to module 2 is given by Eq. 3.24, considering the first three terms\n", + "for n in range(1,3):\n", + " theta2 = theta+(((3*2)/math.pi)*((math.sin((n*math.pi)/2)*math.sinh((n*math.pi)/2))*((-1)**(n+1)+1)))/(n*math.sinh(n*math.pi));\n", + " \n", + "#Calculating value of temperature from the value of theta\n", + "#Temperature in degree celcius\n", + "print\"Temperature at the centre in Degree C is\"\n", + "T = theta*100+100\n", + "print\"T=\",T\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3.2:pg-94" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Introduction to heat transfer by S.K.Som, Chapter 3, Example 2\n", + "Steady state non dimensional temperature is\n", + "theta=2*math.sinh(pi*y/a)*math.sin(pi*x/a)/(math.sinh(pi)) + math.sinh(pi*x/a)*math.sin(pi*y/a)/(math.sinh(pi))\n", + "theta= 0.597805223008\n", + "Temperature in K at centre point\n", + "T= 359.780522301\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 3, Example 2\"\n", + "#Temperature in K at four edges are given\n", + "#Theta is non dimensional temperature defined as ((T-300)/100) where T is actual temperature in K.\n", + "#Given length as well as the breadth of square plate is ''a''\n", + "#Problem can be divided into two modules\n", + "#Solution to module 1 is given by Eq. 3.23\n", + "#Solution of first module is non dimensional temperature theta1\n", + "#theta1=2*math.sinh(pi*y/a)*math.sin(pi*x/a)/(math.sinh(pi))\n", + "#Solution to module 2 is given by Eq. 3.24\n", + "#Solution of second module is non dimensional temperature theta2\n", + "#theta2=math.sinh(pi*x/a)*math.sin(pi*y/a)/(math.sinh(pi))\n", + "#Therefore\n", + "print\"Steady state non dimensional temperature is\"\n", + "print\"theta=2*math.sinh(pi*y/a)*math.sin(pi*x/a)/(math.sinh(pi)) + math.sinh(pi*x/a)*math.sin(pi*y/a)/(math.sinh(pi))\"\n", + "#At the centre, x coordinate and y coordinate in unit are\n", + "#x=a/2, y=a/2\n", + "#Non dimensional temperature at centre point\n", + "theta = (2*math.sinh(math.pi/2))/math.sinh(math.pi)+math.sinh(math.pi/2)/math.sinh(math.pi);\n", + "#Temperature in K at centre point\n", + "print\"theta=\",theta\n", + "print\"Temperature in K at centre point\"\n", + "T = theta*100+300\n", + "print\"T=\",T\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3.3:pg-96" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 3, Example 3\n", + "Temperatures at nodal points in degree K\n", + "T1 in degree K\n", + "[ 398.67699539 155.83601706 66.53320567 119.43598224 79.06693359\n", + " 40.99573505 14.15266777 9.19140047]\n", + "T2 in degree K\n", + "[ 77.91800853 232.60510053 92.0706763 39.53346679 80.21585865\n", + " 48.72486726 19.11393507 11.30646706]\n", + "T3 in degree K\n", + "[ 33.26660284 92.0706763 237.56636783 20.49786753 48.72486726\n", + " 82.33092523 46.76647228 21.51623292]\n", + "T4 in degree K\n", + "[ 14.15266777 38.22787014 93.53294456 9.19140047 22.61293411\n", + " 43.03246584 124.91948821 27.99199234]\n", + "T5 in degree K\n", + "[-0. -0. -0. -0. -0. -0. -0. -0.]\n", + "T6 in degree K\n", + "[-0. -0. -0. -0. -0. -0. -0. -0.]\n", + "T7 in degree K\n", + "[ 95.65671512 227.3827139 384.21098442 77.62207329 214.83157803\n", + " 554.32152494 100.40908695 109.12176865]\n", + "T8 in degree K\n", + "[ 24.51040125 60.30115763 114.75324223 18.87022369 50.97049352\n", + " 124.71059274 74.64531291 166.55931761]\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + "import numpy\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 3, Example 3\"\n", + "#internodal distance in x direction in m\n", + "deltax = 1.0/4;\n", + "#internodal distance in y direction in m\n", + "deltay = 1.0/4;\n", + "#Air temperature in degree K\n", + "Tinfinity = 400;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 10;\n", + "#T1, T2, T3, T4, T5, T6, T7, T8 are nodal temperatures in degree K.\n", + "#T is the temperature matrix and is transpose of [T1 T2 T3 T4 T5 T6 T7 T8]\n", + "#using Nodal Equations, we have Coefficeint Matrix A as\n", + "A = [[-4,1,0,0,1,0,0,0],[1,-4,1,0,0,1,0,0],[0,1,-4,1,0,0,1,0],[2,0,0,0,-4,1,0,0],[0,2,0,0,1,-4,1,0],[0,0,2,0,0,1,-4,1],[0,0,2,-6,0,0,0,1],[0,0,0,2,0,0,2,-6]]#Coefficient matrix B\n", + "B = [[-1200],[-600],[-600],[-600],[0],[0],[-1400],[-800]]\n", + "\n", + "\n", + "#Therefore the temperature matrix is\n", + "T = numpy.linalg.inv(A)*B;\n", + "#Temperature at nodal points in degree K\n", + "print\"Temperatures at nodal points in degree K\"\n", + "print\"T1 in degree K\"\n", + "T1 = T[0]\n", + "print T1\n", + "print\"T2 in degree K\"\n", + "T2 = T[1]\n", + "print T2\n", + "print\"T3 in degree K\"\n", + "T3 = T[2]\n", + "print T3\n", + "print\"T4 in degree K\"\n", + "T4 = T[3]\n", + "print T4\n", + "print\"T5 in degree K\"\n", + "T5 = T[4]\n", + "print T5\n", + "print\"T6 in degree K\"\n", + "T6 = T[5]\n", + "print T6\n", + "print\"T7 in degree K\"\n", + "T7 = T[6]\n", + "print T7\n", + "print\"T8 in degree K\"\n", + "T8 = T[7]\n", + "print T8\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3.5:pg-98" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 3, Example 5\n", + "Temperatures at nodal points in degree C\n", + "T2 in degree C\n", + "[ 1.83976243e-36 4.79441040e-01 3.66134997e-01 3.07581515e-01\n", + " 5.38080937e-01]\n", + "T3 in degree C\n", + "[ 1.46972670e-67 1.92742646e+00 1.47191880e+00 1.23652483e+00\n", + " 1.07886949e+00]\n", + "T4 in degree C\n", + "[ 4.52446173e-92 1.47191880e+00 3.54032873e+00 2.97414801e+00\n", + " 1.67320356e+00]\n", + "T5 in degree C\n", + "[ 6.50142301e-108 1.23652483e+000 2.97414801e+000 5.91733919e+000\n", + " 2.36010173e+000]\n", + "T6 in degree C\n", + "[ 2.06473580e-113 1.16395938e+000 2.79961015e+000 5.57008016e+000\n", + " 3.18199172e+000]\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + "import numpy\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 3, Example 5\"\n", + "#Thermal conductivity of aluminium in W/(m*K)\n", + "k = 200.0\n", + "#Diameter in m\n", + "d = 20*(10**(-3));\n", + "#Length of fin in m\n", + "L = 0.2;\n", + "#Wall temperature in degree C\n", + "Tw = 400.0;\n", + "#Air temperature in degree C\n", + "Tinfinity = 30;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 40.0;\n", + "#internodal distance in x direction in m\n", + "deltax = L/5;\n", + "#Node 1 temperature is equal to wall temperature in degree C\n", + "T1 = Tw;\n", + "#using Nodal Equations, we have Coefficeint Matrix A as\n", + "A = [[2.064,-1,0,0,0],[-1,2.064,-1,0,0],[0,-1,2.064,-1,0],[0,0,-1,2.064,-1],[0,0,0,-1,1.032]]\n", + "#Coefficient matrix B\n", + "B = [401.92,1.92,1.92,1.92,0.96]\n", + "#T2, T3, T4, T5, T6 are nodal temperature in degree C\n", + "#T is the temperature matrix and is transpose of [T2 T3 T4 T5 T6]\n", + "#Therefore the temperature matrix is\n", + "T = numpy.linalg.inv(A)**B;\n", + "#Temperature at nodal points in degree C\n", + "print\"Temperatures at nodal points in degree C\"\n", + "print\"T2 in degree C\"\n", + "T2 = T[0]\n", + "print T2\n", + "print\"T3 in degree C\"\n", + "T3 = T[1]\n", + "print T3\n", + "print\"T4 in degree C\"\n", + "T4 = T[2]\n", + "print T4\n", + "print\"T5 in degree C\"\n", + "T5 = T[3]\n", + "print T5\n", + "print\"T6 in degree C\"\n", + "T6 = T[4]\n", + "print T6\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex3.6:pg-104" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 3, Example 6\n", + "Temperatures at nodal points in degree C\n", + "T1 in degree C\n", + "[ -0. -0. -0. 186.04651163 1.86046512\n", + " 2.79069767 1.86046512 0.46511628 74.41860465]\n", + "T2 in degree C\n", + "[ -0. -0. -0. 74.41860465 1.69263965\n", + " 3.56988732 2.51738192 0.62934548 157.39630784]\n", + "T3 in degree C\n", + "[ -0. -0. -0. 83.72093023 3.88875569\n", + " 4.80220571 3.06401343 0.76600336 65.85950611]\n", + "T4 in degree C\n", + "[ -0. -0. -0. 55.81395349 2.45504675\n", + " 5.7444258 4.10453129 1.02613282 77.58331335]\n", + "T5 in degree C\n", + "[ -0. -0. -0. 37.20930233 1.77415488\n", + " 4.6199952 7.34116519 1.8352913 51.37856629]\n", + "T6 in degree C\n", + "[ -0. -0. -0. 37.20930233 8.78446416\n", + " 4.92927356 2.18652601 0.5466315 33.8527931 ]\n", + "T7 in degree C\n", + "[ -0. -0. -0. 27.90697674 2.46463678\n", + " 9.98561496 3.49556461 0.87389115 35.69887317]\n", + "T8 in degree C\n", + "[ -0. -0. -0. 18.60465116 1.09326301\n", + " 3.49556461 10.57779909 2.64444977 25.17381923]\n", + "T9 in degree C\n", + "[ -0. -0. -0. 9.30232558 0.5466315\n", + " 1.74778231 5.28889954 11.32222489 12.58690961]\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 3, Example 6\"\n", + "#Thermal conductivity of concrete in W/mK\n", + "k = 2;\n", + "#Length in m\n", + "L = 0.2;\n", + "#Breadth in m\n", + "b = 0.2;\n", + "#Depth in m\n", + "d = 0.2;\n", + "#Temperature of hot gas in chimney in degree C\n", + "Tg = 400;\n", + "#Air temperature in degree C\n", + "Tinfinity = 20;\n", + "#internodal distance in x direction in m\n", + "deltax = 0.1;\n", + "#internodal distance in y direction in m\n", + "deltay = 0.1;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 20;\n", + "#T1, T2, T3, T4, T5, T6, T7, T8, T9 are nodal temperatures in degree K.\n", + "#T is the temperature matrix and is transpose of [T1 T2 T3 T4 T5 T6 T7 T8 T9]\n", + "#using Nodal Equations, we have Coefficeint Matrix A as\n", + "A = numpy.array([[1,0,-4,2,0,1,0,0,0],[0,1,1,-4,1,0,1,0,0],[0,0,0,2,-4,0,0,2,0],[-3,1,1,0,0,0,0,0,0],[0,0,1,0,0,-3,1,0,0],[0,0,0,2,0,1,-6,1,0],[0,0,0,0,2,0,1,-6,1],[0,0,0,0,0,0,0,1,-2],[1,-4,0,2,0,0,0,0,0]]);\n", + "#Coefficient matrix B\n", + "B = numpy.array([0,0,0,-400,-20,-40,-40,-20,-400]);\n", + "#Therefore the temperature matrix is\n", + "T = numpy.linalg.inv(A)*B;\n", + "#Temperature at nodal points in degree C\n", + "print\"Temperatures at nodal points in degree C\"\n", + "print\"T1 in degree C\"\n", + "T1 = T[0]\n", + "print T1\n", + "print\"T2 in degree C\"\n", + "T2 = T[1]\n", + "print T2\n", + "print\"T3 in degree C\"\n", + "T3 = T[2]\n", + "print T3\n", + "print\"T4 in degree C\"\n", + "T4 = T[3]\n", + "print T4\n", + "print\"T5 in degree C\"\n", + "T5 = T[4]\n", + "print T5\n", + "print\"T6 in degree C\"\n", + "T6 = T[5]\n", + "print T6\n", + "print\"T7 in degree C\"\n", + "T7 = T[6]\n", + "print T7\n", + "print\"T8 in degree C\"\n", + "T8 = T[7]\n", + "print T8\n", + "print\"T9 in degree C\"\n", + "T9 = T[8]\n", + "print T9\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter4_fMX8RWT.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter4_fMX8RWT.ipynb new file mode 100644 index 00000000..54a5875b --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter4_fMX8RWT.ipynb @@ -0,0 +1,895 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 04:Unsteady conduction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.1:pg-137" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 1\n", + "Biot number is\n", + "Bi= 0.277777777778\n", + "Problem is not suitable for lumped parameter analysis\n" + ] + } + ], + "source": [ + " \n", + "\n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 1\"\n", + "#Diameter of apple in m\n", + "d = 100*(10**(-3));\n", + "#radius in m\n", + "r = d/2;\n", + "#Thermal conductivity of apple in W/(m*K)\n", + "k = 0.6;\n", + "#Heat transfer coefficient in W/(m**2*°C)\n", + "h = 10;\n", + "#Caculating characteristic dimension in m\n", + "Lc = (((((4*math.pi)*r)*r)*r)/3)/(((4*math.pi)*r)*r);\n", + "#Biot number\n", + "print\"Biot number is\"\n", + "Bi = (h*Lc)/k\n", + "print\"Bi=\",Bi\n", + "if Bi<0.1:\n", + " print\"Problem is suitable for lumped parameter analysis\"\n", + "else:\n", + " print\"Problem is not suitable for lumped parameter analysis\"\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.2:pg-138 " + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 2\n", + "Time constant in seconds is\n", + "tc= 8.0\n", + "Time required in seconds\n", + "t= 36.8413614879\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 2\"\n", + "#Diameter of sphere in m\n", + "d = 1.5*(10**(-3));\n", + "#radius in m\n", + "r = d/2;\n", + "#Thermal conductivity of sphere in W/(m*°C)\n", + "k = 40.0;\n", + "#Density in kg/m**3\n", + "rho = 8000.0;\n", + "#Specific heat in J/(Kg*K)\n", + "c = 300.0;\n", + "#Heat transfer coefficient in W/(m**2*°C)\n", + "h = 75.0;\n", + "#Time constant in sec\n", + "tc = ((rho*c)*(((((4*math.pi)*r)*r)*r)/3))/((((h*4)*math.pi)*r)*r);\n", + "print\"Time constant in seconds is\"\n", + "print\"tc=\",tc\n", + "#Using eq. 4.4\n", + "#Given fraction is 0.01 (1 percent)\n", + "#Required time in sec\n", + "t = (-8)*math.log(0.01);\n", + "print\"Time required in seconds\"\n", + "print\"t=\",t\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.3:pg-138" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 3\n", + "Maximum dimension in metre for lumped parameter analysis\n", + "a= 5.0\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 3\"\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 30;\n", + "#Thermal conductivity of sphere in W/(m*K)\n", + "k = 250;\n", + "#Biot number for lumped parameter analysis is 0.1\n", + "Bi = 0.1;\n", + "#Characteristic dimension of a cube is (a/6) where a is the side of cube in metre\n", + "#Maximum dimension in metre\n", + "a = ((6*k)*Bi)/h;\n", + "print\"Maximum dimension in metre for lumped parameter analysis\"\n", + "print\"a=\",a\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.4:pg-146" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 4\n", + "Time required to cool milk in minutes\n", + "Energy required for cooling in KJ\n", + "E= -319.013666564\n" + ] + } + ], + "source": [ + " \n", + "from scipy.integrate import quad\n", + "import math\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 4\"\n", + "#Diameter of glass in m\n", + "d = 50*(10**(-3));\n", + "#radius in m\n", + "r = d/2;\n", + "#Height of milk in glass in m\n", + "H = 0.1;\n", + "#Initial temperature of milk in °C\n", + "T = 80.0;\n", + "#Cold water temperature in °C\n", + "Tf = 25.0;\n", + "#Heat transfer coefficient in W/(m**2*°C)\n", + "h = 100.0;\n", + "#Thermal conductivity of milk in W/(m*K)\n", + "k = 0.6;\n", + "#Density of milk in kg/m**3\n", + "rho = 900.0;\n", + "#Specific heat in J/(Kg*K)\n", + "c = 4.2*(10**3);\n", + "#Since the milk temperature is always maintained as constant.\n", + "#Therefore it can be assumed as lumped paramteter analysis.\n", + "#Time constant n seconds\n", + "tcs = (((((rho*c)*math.pi)*r)*r)*H)/(((h*math.pi)*d)*H);\n", + "#Time constant in minutes\n", + "tc = tcs/60;\n", + "#Calculating from eq. 4.3 time taken to cool milk from 80°C to 30°C\n", + "t = -tc*math.log((30.0-Tf)/(T-Tf));\n", + "print\"Time required to cool milk in minutes\"\n", + "t\n", + "#Energy transferred during cooling\n", + "E = (((h*math.pi)*d)*H)*quad(lambda t:(80.0-25.0)*math.e*(-t/472.5),0,60.0*t)[0];\n", + "print\"Energy required for cooling in KJ\"\n", + "E = E/1000.0\n", + "print \"E=\",E\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.5:pg-159" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 5\n", + "Time required in hours\n", + "t= 7.5\n", + "Heat transfer rate in MJ\n", + "Q= 186.3\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 5\"\n", + "#Thermal conductivity of wall in W/(m*K)\n", + "k = 0.6;\n", + "#Thermal diffusivity in m**2/s\n", + "alpha = 5*(10**(-7));\n", + "#Thickness in m\n", + "L = 0.15;\n", + "#Initial temperature in °C\n", + "Ti = 30;\n", + "#Temperature of hot gas in °C\n", + "Tinfinity = 780;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 20;\n", + "#Surface temperaute to be achieved in °C\n", + "To = 480;\n", + "#Dimensionless temperature ratio\n", + "z = (To-Tinfinity)/(Ti-Tinfinity);\n", + "#Biot number\n", + "Bi = (h*L)/k;\n", + "#For this value of (1/Bi) and dimensionless temp. ratio\n", + "#From Fig. 4.11 Fourier number is\n", + "Fo = 0.6;\n", + "#Time required in seconds\n", + "t = ((Fo*L)*L)/alpha;\n", + "print\"Time required in hours\"\n", + "t = t/3600\n", + "print\"t=\",t\n", + "#From fig. 4.13, for this Bi and Fo*Bi*Bi, we have ratio of heats as\n", + "#Q/Qi=0.69\n", + "#Heat transfer in J\n", + "Q = ((((0.69*k)*2)*L)*(Tinfinity-Ti))/alpha;\n", + "print\"Heat transfer rate in MJ\"\n", + "Q = Q/(10**6)\n", + "print\"Q=\",Q\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.6:pg-166" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 6\n", + "Temperature at this distance in °C\n", + "T= 355.5\n", + "Heat transfer rate in MJ\n", + "Q= 100.0\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 6\"\n", + "#Thickness of plate in m\n", + "L = 0.2;\n", + "#Initial temperature in °C\n", + "Ti = 530;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 500;\n", + "#Given distance in m\n", + "x = L-20*(10**(-3));\n", + "#Temperature of surrounding in °C\n", + "Tinfinity = 30;\n", + "#Given time in seconds\n", + "t = 225;\n", + "#Thermal conductivity of aluminium in W/(m*K)\n", + "k = 200;\n", + "#Thermal diffusivity in m**2/s\n", + "alpha = 8*(10**(-5));\n", + "#Biot number\n", + "Bi = (h*L)/k;\n", + "#Fourier number\n", + "Fo = (alpha*t)/(L*L);\n", + "#From fig. 4.11, at this Fo and (1/Bi), we have dimensionless temperature\n", + "#ratio to be 0.7\n", + "#From fig. 4.12 for this (1/Bi) and (x/L), we have another dimensionless\n", + "#temperature to be 0.93\n", + "#Temperature in °C\n", + "T = Tinfinity+(0.93*0.7)*(Ti-Tinfinity);\n", + "print\"Temperature at this distance in °C\"\n", + "print\"T=\",T\n", + "#From fig. 4.13, for this Bi and Fo*Bi*Bi, we have ratio of heats as\n", + "#Q/Qi=0.4\n", + "#Heat transfer in J\n", + "Q = (((0.4*k)*L)*(Ti-Tinfinity))/alpha;\n", + "print\"Heat transfer rate in MJ\"\n", + "Q = Q/(10**6)\n", + "print\"Q=\",Q\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.7:pg-171" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 7\n", + "Temperature at this radius in °C\n", + "T= 300.0\n", + "Heat transfer rate per unit length in MJ/m\n", + "Q= 33.2639222145\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 7\"\n", + "#Radius in m\n", + "ro = 0.15;\n", + "#Initial temperature in °C\n", + "Ti = 530;\n", + "#Temperature of surrounding in °C\n", + "Tinfinity = 30;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 380;\n", + "#Thermal conductivity of aluminium in W/(m*K)\n", + "k = 200;\n", + "#Thermal diffusivity in m**2/s\n", + "alpha = 8.5*(10**(-5));\n", + "#Given radius at which temperature has to be find out in m\n", + "r = 0.12;\n", + "#Given time in seconds\n", + "t = 265;\n", + "#Fourier number\n", + "Fo = (alpha*t)/(ro**2);\n", + "#Biot number\n", + "Bi = (h*ro)/k;\n", + "#From fig. 4.15, at this fourier number,Fo and (1/Bi), we have dimensionless temperature\n", + "#ratio to be 0.6\n", + "#From fig. 4.16 for this (1/Bi) and (r/ro), we have another dimensionless\n", + "#temperature to be 0.9\n", + "#Temperature in °C\n", + "T = Tinfinity+(0.9*0.6)*(Ti-Tinfinity);\n", + "print\"Temperature at this radius in °C\"\n", + "print\"T=\",T\n", + "#From fig. 4.17, for this Bi and Fo*Bi*Bi, we have ratio of heats as\n", + "#Q/Qi=0.4\n", + "#Heat transfer per metre in J/m\n", + "Q = (((((0.4*k)*math.pi)*ro)*ro)*(Ti-Tinfinity))/alpha;\n", + "print\"Heat transfer rate per unit length in MJ/m\"\n", + "Q = Q/(10**6)\n", + "print\"Q=\",Q\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.8:pg-174" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 8\n", + "Time required in minutes\n", + "t= 4.16666666667\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + "\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 8\"\n", + "#Radius in m\n", + "ro = 0.05;\n", + "#Initial temperature in °C\n", + "Ti = 530;\n", + "#Temperature of surrounding in °C\n", + "Tinfinity = 30;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 500;\n", + "#Thermal conductivity of aluminium in W/(m*K)\n", + "k = 50;\n", + "#Thermal diffusivity in m**2/s\n", + "alpha = 1.5*(10**(-5));\n", + "#Required centre temperature to achieve in °C\n", + "To = 105;\n", + "#Dimensionless temperature\n", + "z = (To-Tinfinity)/(Ti-Tinfinity);\n", + "#Biot number\n", + "Bi = (h*ro)/k;\n", + "#For this value of (1/Bi) and dimensionless temp. ratio\n", + "#From Fig. 4.19 Fourier number is\n", + "Fo = 1.5;\n", + "#Time required in seconds\n", + "t = ((Fo*ro)*ro)/alpha;\n", + "print\"Time required in minutes\"\n", + "t = t/60\n", + "print\"t=\",t\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.9:pg-177" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 9\n", + "Tempearture of bar in °C\n", + "T= 260.3\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 9\"\n", + "#Thermal conductivity of aluminium in W/(m*K)\n", + "k = 198;\n", + "#Length in m\n", + "L = 0.18;\n", + "#Breadth in m\n", + "b = 0.104;\n", + "#Initial temperature in °C\n", + "Ti = 730;\n", + "#Temperature of surrounding in °C\n", + "Tinfinity = 30;\n", + "#Heat transfer coefficient in W/(m**2*K)\n", + "h = 1100;\n", + "#Thermal diffusivity in m**2/s\n", + "alpha = 8.1*(10**(-5));\n", + "#Given time in seconds\n", + "t = 100;\n", + "#Bar can be considered to be an intersection of two infinite plates of\n", + "#thickness L1 and L2 in m\n", + "L1 = L/2;\n", + "L2 = b/2;\n", + "#For plate 1\n", + "#Fourier number\n", + "Fo1 = (alpha*t)/(L1**2);\n", + "#Biot number\n", + "Bi1 = (h*L1)/k;\n", + "#From fig. 4.11, at this Fo and (1/Bi), we have dimensionless temperature\n", + "#ratio to be 0.7\n", + "#For plate 2\n", + "#Fourier number\n", + "Fo2 = (alpha*t)/(L2**2);\n", + "#Biot number\n", + "Bi2 = (h*L2)/k;\n", + "#From fig. 4.11, at this Fo and (1/Bi), we have dimensionless temperature\n", + "#ratio to be 0.47\n", + "#Therefore combined dimensionless temperature ratio is multiply of two\n", + "z = 0.47*0.7;\n", + "#Temperature in °C\n", + "T = Tinfinity+z*(Ti-Tinfinity);\n", + "print\"Tempearture of bar in °C\"\n", + "print\"T=\",T\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.10:pg-180" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 10\n", + "The factor((To-Tinf)/(Ti-Tinf)) is \n", + "For plate 1\n", + "A= 0.85\n", + "For plate 2\n", + "B= 0.8\n", + "For plate 1\n", + "A= 0.83\n", + "For plate 2\n", + "B= 0.72\n", + "The calculated value is very close to the required value of 0.6.Hence the time required for the centre of the beam to reach 310°C is nearly 1200s or 20 minutes.\n", + "T= 0.5976\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 10\"\n", + "#An iron beam of rectangular cross section of size length,L=300mm by breadth,B=200 mm is used in the construction of a building\n", + "#Initially the beam is at a uniform temprature(Ti) of 30°C.\n", + "#Due to an accidental fire,the beam is suddenly exposed to hot gases at temprature,Tinf=730°C,with a convective heat transfer coefficient(h) of 100 W/(m**2*K)\n", + "#To determine the time required for the centre plane of the beam to reach a temprature(To) of 310°C.\n", + "To=310;\n", + "Tinf=730;\n", + "Ti=30;\n", + "#Take thermal conductivity k=73W/(m*K) and thermal diffusivity of the beam alpha=2.034*10**-5m**2/s \n", + "alpha=2.034*10**-5; \n", + "k=73; \n", + "h=100; \n", + "#The rectangular iron beam can be considered as an intersection of an infinite plate 1 having thickness 2*L1=300mm and a second infinite plate 2 of thickness 2*L2=200mm \n", + "L1=0.15;#in metre\n", + "L2=0.10;#in metre\n", + "#Here the faactor X=((To-Tinf)/(Ti-Tinf))\n", + "print\"The factor((To-Tinf)/(Ti-Tinf)) is \"\n", + "X=((To-Tinf)/(Ti-Tinf))\n", + "#Therefore we can write 0.6=((To-Tinf)/(Ti-Tinf))plate 1 *((To-Tinf)/(Ti-Tinf))plate2\n", + "#A straight forward solution is not possible.We have to adopt an iterative method of solution \n", + "#At first ,a value of time(t) is assumed to determine the centre-line temprature of the beam.The value of t at which((To-Tinf)/(Ti-Tinf))beam =0.6 is satisfied\n", + "#Let us first assume time, t=900s\n", + "t=900;\n", + "print\"For plate 1\"\n", + "#For plate1 Biot number Bi1=h*L1/k \n", + "Bi1=h*L1/k \n", + "Y=1/Bi1\n", + "#Fourier number(Fo1) is\n", + "Fo1=alpha*t/L1**2\n", + "#At Fo=0.814 and (1/Bi)=4.87...We read from graphs A=((To-Tinf)/(Ti-Tinf))plate1= 0.85\n", + "A=0.85;\n", + "print\"A=\",A\n", + "print\"For plate 2\"\n", + "#For plate1 Biot number Bi2=h*L2/k \n", + "Bi2=h*L2/k \n", + "Y=1/Bi2\n", + "#Fourier number(Fo2) is\n", + "Fo2=alpha*t/L2**2\n", + "#At Fo=1.83 and (1/Bi)=7.3...We read from graphs B=((To-Tinf)/(Ti-Tinf))plate2= 0.8\n", + "B=0.8;\n", + "print\"B=\",B\n", + "#Therefore ((To-Tinf)/(Ti-Tinf))plate1*((To-Tinf)/(Ti-Tinf))plate2=A*B\n", + "T=A*B\n", + "#Since the calculated value of 0.68 is greater than the required value of 0.60 and Tinf>To>Ti,The assume dvalue of t is less.\n", + "#So let us take time,t=1200s for the second iteration\n", + "t=1200;\n", + "print\"For plate 1\"\n", + "#For plate1 Biot number Bi1=h*L1/k \n", + "Bi1=h*L1/k \n", + "Y=1/Bi1\n", + "#Fourier number (Fo1)\n", + "Fo1=alpha*t/L1**2\n", + "#At Fo=1.08 and (1/Bi)=4.87...We read from graphs A=((To-Tinf)/(Ti-Tinf))plate1= 0.83\n", + "A=0.83;\n", + "print\"A=\",A\n", + "print\"For plate 2\"\n", + "#For plate1 Biot number Bi2=h*L2/k \n", + "Bi2=h*L2/k \n", + "Y=1/Bi2\n", + "#Fourier number (Fo2)\n", + "Fo2=alpha*t/L2**2\n", + "#At Fo=2.44 and (1/Bi)=7.3...We read from graphs B=((To-Tinf)/(Ti-Tinf))plate2= 0.72\n", + "B=0.72;\n", + "print\"B=\",B\n", + "#Therefore ((To-Tinf)/(Ti-Tinf))plate1*((To-Tinf)/(Ti-Tinf))plate2=A*B\n", + "T=A*B\n", + "print\"The calculated value is very close to the required value of 0.6.Hence the time required for the centre of the beam to reach 310°C is nearly 1200s or 20 minutes.\" \n", + "print\"T=\",T\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.11:pg-182" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 11\n", + "The time required for the temprature to reach 255°C at a depth of 80mm, in minutes is\n", + "T= 255\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 11\"\n", + "#A large slab wrought-iron is at a uniform temprature of Ti=550°C.\n", + "#The temprature of one surface is suddenly changed to Tinf=50°C\n", + "Tinf=50;\n", + "Ti=550; \n", + "#For slab conductivity(k=60W/(m*K)),Thermal diffusivity(alpha=1.6*10**-5m**2/s)\n", + "#To calculate the time(t) required for the temprature to reach T=255°C at a depth of 80mm\n", + "k=60;\n", + "T=255;\n", + "alpha=1.6**10-5;\n", + "#Similarity parameter,eta=x/(2*(alpha*t)**0.5)=(10/t**0.5)\n", + "#((T-Tinf)/(Ti-Tinf))=erf(10/t**0.5)...where erf is the error function.\n", + "#Let ((T-Tinf)/(Ti-Tinf))=X\n", + "X=((T-Tinf)/(Ti-Tinf));\n", + "#This implies erf(10/t**0.5)=0.41\n", + "#We read from the table the value of eta(=10/t**0.5)=0.38....corresponding to erf(eta)=0.41\n", + "#Therefore 10/t**0.5=0.38...this implies t=(10/0.38)**2\n", + "print\"The time required for the temprature to reach 255°C at a depth of 80mm, in minutes is\"\n", + "t=(10/0.38)**2/60\n", + "print\"T=\",T\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.12:pg-186" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 12\n", + "gaussian error function is \n", + "E= 0.998109069322\n", + "The temprature at a depth(x) of 100mm after a time(t) of 100 seconds,in °C is\n", + "T= -29851.5095103\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + "import scipy \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 12\"\n", + "#A large block of nickel steel conductivity(k=20W/(m*K)),thermal diffusivity(alpha=0.518*10-5 m**2/s) is at uniform temprature(Ti) of 30°C.\n", + "Ti=30.0;\n", + "k=20.0;\n", + "alpha=0.518*10.0**-5.0;\n", + "#One surface of the block is suddenly exposed to a constant surface heat flux(qo) of 6MW/m**2.\n", + "qo=6*10**6;#in W/m**2\n", + "#To determine the temprature at a depth(x) of 100mm after a time(t) of 100 seconds.\n", + "t=100.0;\n", + "x=0.1;#in metre\n", + "#Similarity parameter,eta=x/(4*alpha*t)\n", + "eta=x/((4.0*alpha*t)**0.5)\n", + "#E is gaussian error function\n", + "print\"gaussian error function is \"\n", + "E=scipy.special.erf(eta)\n", + "print\"E=\",E\n", + "#The equation to determine temprature is T-Ti=((2*qo(alpha*t/math.pi)**0.5)/(k))*e**((-x**2)/(4*alpha*t))-((qo*x)/(k))*erf(x/(2.0*(alpha*t)**0.5))\n", + "#Above equation can also be written as T=Ti+((2*qo(alpha*t/math.pi)**0.5)/(k))*e**((-x**2)/(4*alpha*t))-((qo*x)/(k))*erf(x/(2.0*(alpha*t)**0.5))\n", + "print\"The temprature at a depth(x) of 100mm after a time(t) of 100 seconds,in °C is\"\n", + "T=Ti+((2*qo*(alpha*t/math.pi)**0.5)/(k))*math.e**((-x**2.0)/(4*alpha*t))-((qo*x)/(k))*scipy.special.erf(x/(2*(alpha*t)**0.5))\n", + "print\"T=\",T\n", + "#NOTE:The answer in the book is incorrect(Calculation mistake)\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex4.14:pg-187 " + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 4, Example 14\n", + "Temperature distribution after 25 mins in °C\n", + "[[ 2.29192547e+02 2.91925466e+00 1.11801242e+00 4.34782609e-01\n", + " 1.86335404e-01 6.21118012e-02]\n", + " [ 8.75776398e+01 8.75776398e+00 3.35403727e+00 1.30434783e+00\n", + " 5.59006211e-01 1.86335404e-01]\n", + " [ 3.35403727e+01 3.35403727e+00 8.94409938e+00 3.47826087e+00\n", + " 1.49068323e+00 4.96894410e-01]\n", + " [ 1.30434783e+01 1.30434783e+00 3.47826087e+00 9.13043478e+00\n", + " 3.91304348e+00 1.30434783e+00]\n", + " [ 5.59006211e+00 5.59006211e-01 1.49068323e+00 3.91304348e+00\n", + " 1.02484472e+01 3.41614907e+00]\n", + " [ 3.72670807e+00 3.72670807e-01 9.93788820e-01 2.60869565e+00\n", + " 6.83229814e+00 8.94409938e+00]]\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + "import numpy\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 4, Example 14\"\n", + "#Nodal distance Deltax in m\n", + "deltax = 0.1;\n", + "#Time in seconds\n", + "t = 25*60;\n", + "#timestep deltaT in seconds\n", + "deltaT = 500;\n", + "#Number of increment\n", + "n = t/deltaT;\n", + "#Temperature raised in °C\n", + "To = 580.0;\n", + "#Using Eq. 4.114 for interior grid points, table 4.8 for exterior node\n", + "#Using Eq. 4.125a to 4.125f are written in matrix form\n", + "#Coefficient matrix A is\n", + "A = [[-3,1,0,0,0,0],[1,-3,1,0,0,0],[0,1,-3,1,0,0],[0,0,1,-3,1,0],[0,0,0,1,-3,1],[0,0,0,0,2,-3]]\n", + "#Coefficient matrix B is\n", + "B = [-600,-20,-20,-20,-20,-20];\n", + "#Temperature matrix is transpose of [T2 T3 T4 T5 T6 T7] where\n", + "#T2 to T7 are temperature in °C\n", + "#From Eq. 4.126\n", + "#Temperature distribution after one time step\n", + "T = numpy.linalg.inv(A)*B;\n", + "\n", + " \n", + "print\"Temperature distribution after 25 mins in °C\"\n", + "print T\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter5_2AAnLS8.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter5_2AAnLS8.ipynb new file mode 100644 index 00000000..1751c7ce --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter5_2AAnLS8.ipynb @@ -0,0 +1,447 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 5:Convection" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.3:pg-206" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 5, Example 3\n", + "Reynolds number is\n", + "ReL= 55263.1578947\n", + "The average heat transfer coefficient over a length(L)= 1m ,in W/m**2 is\n", + "hbarL= 4.16\n", + "The rate of heat transfer in W/m of width is\n", + "Q= 332.8\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + "from scipy.integrate import quad\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 5, Example 3\"\n", + "#Air at temprature (T1=20°C) and 1 atmospheric pressure flows over a flat plate with a free stream velocity(Uinf) of 1m/s.\n", + "Uinf=1;\n", + "T1=20;\n", + "#The length of plate is 1m and is heated over its entire length to a constant temprature of T2=100°C.\n", + "T2=100;\n", + "#For air at 20°C(The mean temprature of 100°C and 20°C),viscosity(mu=1.9*10**-5kg/(m*s)),density(rho=1.05kg/m**3),conductivity(k=0.03W/(m*K)),specific heat(cp=1.007kJ/(kg*K))\n", + "#Prandtl number is Pr=0.7\n", + "mu=1.9*10**-5;\n", + "rho=1.05;\n", + "k=0.03;\n", + "cp=1.007;\n", + "Pr=0.7;\n", + "#For laminar flow over a plate Nusselt number is Nux=0.332*Rex**0.5*Pr**(1/3)\n", + "#The boundary layer flow over a flat plate will be laminar if Reynolds number is Rex=(rho*Uinf*x)/mu<5*10**5\n", + "#First of all we have to check whether the flow is laminar or not.\n", + "#Let us check at x=1m\n", + "x=1.0;\n", + "print\"Reynolds number is\"\n", + "ReL=(rho*Uinf*x)/mu\n", + "print\"ReL=\",ReL\n", + "#There fore the flow is laminar and we can use the relationships of Nux,\n", + "#Thus Rex=(1.05*1*x)/(1.9*10**-5)=0.5526*10**5*x\n", + "#Therefore we can write Nux=(hx*x/k)=0.332*(0.5526*10**5*x)**0.5*Pr**(1/3)....or hx=2.08*x**(-1/2) W/(m**2*°C)\n", + "#hbarL is the average heat transfer coefficient over a length(L)\n", + "print\"The average heat transfer coefficient over a length(L)= 1m ,in W/m**2 is\"\n", + "L=1;\n", + "hbarL=(1.0/L)*quad(lambda x:2.08*x**(-1/2.0),0,L)[0]\n", + "print\"hbarL=\",hbarL\n", + "#Q is the rate of heat transfer\n", + "print\"The rate of heat transfer in W/m of width is\"\n", + "Q=hbarL*L*(T2-T1)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.4:pg-207" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 5, Example 4\n", + "The local heat transfer coefficient hx is hx=27.063*U**0.85\n", + "The minimum flow velocity in m/s is\n", + "U= 15.4806813943\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 5, Example 4\"\n", + "#Air at atmospheric pressure is required to flow over a circuit board to cool the electronics element mounted on it.\n", + "#Chip has length (L)=3mm and width(B)=3mm located x=0.1m from the leading edge\n", + "L=0.003;#in metre\n", + "B=0.003;#in metre\n", + "x=0.1;\n", + "#The Nusselt no. is given by Nux=0.06*Rex**0.85*Pr**0.33\n", + "#The chip has to dissipate E=50mW of energy while its surface temprature has to be kept below temprature,Ts=45°C and free strem Temptrature of air is Tinf=25°C\n", + "Ts=45;\n", + "Tinf=25;\n", + "E=50*10**-3;#in watt\n", + "#For air ,density(rho=1.2kg/m**3),viscosity(mu=1.8*10**5kg/(m*s)),conductivity(k=0.03W/(m*K)) and specific heat(cp=1000J/(kg*K))\n", + "rho=1.2;\n", + "mu=1.8*10**5;\n", + "k=0.03;\n", + "cp=1000;\n", + "#Let the minimum flow velocity be U.\n", + "#The local heat transfer coefficient hx where the chip is mounted is determined as hx=(k/x)*0.06*(rho*U*x/mu)**0.85*(mu*cp/k)**0.33\n", + "print\"The local heat transfer coefficient hx is hx=27.063*U**0.85\"\n", + "#from an enrgy balance we can write as E=27.063*U**0.85*L*B*(Ts-Tinf)\n", + "print\"The minimum flow velocity in m/s is\"\n", + "U=(E/(27.063*L*B*(Ts-Tinf)))**(1/0.85)\n", + "print\"U=\",U\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.6:pg-208" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 5, Example 6\n", + "mdot= 0.0235619449019\n", + "(dTb/dx)in °C/m is\n", + "Y= 26.6666666667\n", + "Therefore Exit bulk mean temprature Tb2 in °C is\n", + "Tb2= 83.3333333333\n", + "Heat flux(hx) in W/(m**2*°C) is \n", + "hx= 100\n", + "Overall Nusselt number is \n", + "NuL= 87.7192982456\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 5, Example 6\"\n", + "#Air at 1atm pressure and temprature(Tin)=30°C enters a tube of 25mm diameter(D) with a velocity(U) of 10m/s\n", + "D=0.025;#in metre\n", + "U=10;\n", + "Tin=30;\n", + "#Tube is heated so that a constant heat flux(q) of 2kW/m**2 is maintained at the wall whose temprature is deltaT=20°C above the bulk mean air temprature through the length of tube \n", + "#Let Tw-Tb=T\n", + "q=2000;\n", + "deltaT=20;\n", + "#The length(L)= 2m\n", + "L=2;\n", + "#For air density(rho=1.2kg/m**3),specific heat(cp=1000J/(kg*K))\n", + "rho=1.2;\n", + "cp=1000;\n", + "#From an energy balance of a control volume of air we get mdot*cp*(Tb+(dTb/dx)*deltax-Tb)=q*pi*D*deltax or (dTb/dx)=(q*pi*D)/(mdot*cp)\n", + "#mass flow rate=mdot\n", + "mdot=rho*math.pi*D**2*U;\n", + "print\"mdot=\",mdot\n", + "#let (dTb/dx)=Y\n", + "print\"(dTb/dx)in °C/m is\"\n", + "Y=(4*q*math.pi*D)/(mdot*cp)\n", + "print\"Y=\",Y\n", + "#Tb2 is Exit bulk mean temprature\n", + "print\"Therefore Exit bulk mean temprature Tb2 in °C is\"\n", + "Tb2=Tin+Y*2\n", + "print\"Tb2=\",Tb2\n", + "#Again we can write at any section of the tube hx*(Tw-Tb)=q or hx=q/(Tw-Tb)\n", + "#hx is heat flux\n", + "print\"Heat flux(hx) in W/(m**2*°C) is \"\n", + "hx=q/(deltaT)\n", + "print\"hx=\",hx\n", + "#Since Tw-Tb remains the same,The heat transfer coefficient at all sections are the same\n", + "#Now Overall Nusselt number,NuL=hx*D/k\n", + "#The thermal conductivity of air at mean temprature of (30+83.4)/2=56.7°C is k=0.0285 W/(m*K)\n", + "k=0.0285;\n", + "print\"Overall Nusselt number is \"\n", + "NuL=hx*D/k\n", + "print\"NuL=\",NuL\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.7:pg-210" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 5, Example 7\n", + "Beta(The volumetric coefficient of expansion in K**-1 is\n", + "Beta= 0\n", + "Grashoff number is\n", + "Gr= 0.0\n", + "The average nusselt number is\n", + "NuHbar= 0.13\n", + "Heat flux hbar in W/(m**2*°C)\n", + "hbar= 0.00169\n", + "The heat loss from the plate in W is\n", + "Q= 0.4394\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 5, Example 7\"\n", + "#A wall is exposed to nitrogen at one atmospheric pressure and temprature,Tinf=4°C.\n", + "Tinf=4;\n", + "#The wall is H=2.0m high and B=2.5m wide and is maintained at temprature,Ts=56°C\n", + "Ts=56;\n", + "H=2;\n", + "B=2.5;\n", + "A=H*B;#area is(A)\n", + "#The average nusselt number NuHbar over the height of the plate is given by NuHbar=0.13*(Gr*Pr)**(1/3)\n", + "#The properties of nitrogen at mean film temprature(Tf) is (56+4)/2=30°C are given as density(rho=1.142kg/m**3) ,conductivity(k=0.026W/(m*K)),\n", + "#kinematic viscosity(nu=15.630*10**-6 m**2/s) ,Prandtl number(Pr=0.713)\n", + "rho=1.142;\n", + "k=0.026;\n", + "nu=15.630*10**-6;\n", + "Pr=0.713;\n", + "Tf=30;\n", + "#We first have to detrmine the value of Grashoff number,Gr.In consideration of nitrogen as an ideal gas,we can write\n", + "#Beta(The volumetric coefficient of expansion)=1/T\n", + "print\"Beta(The volumetric coefficient of expansion in K**-1 is\"\n", + "Beta=1/(273+Tf)\n", + "print\"Beta=\",Beta\n", + "#Now Gr=(g*Beta*(Ts-Tinf)*H**3)/nu**2\n", + "g=9.81;#acceleration due to gravity\n", + "print\"Grashoff number is\"\n", + "Gr=(g*Beta*(Ts-Tinf)*H**3)/nu**2\n", + "print\"Gr=\",Gr\n", + "print\"The average nusselt number is\"\n", + "NuHbar=0.13*(Gr*Pr)**(1/3)\n", + "print\"NuHbar=\",NuHbar\n", + "#hbar is the heat flux\n", + "print\"Heat flux hbar in W/(m**2*°C)\"\n", + "hbar=NuHbar*k/H\n", + "print\"hbar=\",hbar\n", + "#Q is the heat loss from the plate\n", + "print\"The heat loss from the plate in W is\"\n", + "Q=hbar*A*(Ts-Tinf)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex5.8:pg-211" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 5, Example 8\n", + "The heat flux in W/(m**2*K) is\n", + "hbar 120.0\n", + "The heat loss from the wire is Q=hbar*pi*D*L*(Twire-Tair) in Watt\n", + "Q= 1.88495559215\n", + "The current in Ampere is\n", + "I= 17.7245385091\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 5, Example 8\"\n", + "#Eletric current passes through a L=0.5m long horizontal wire of D=0.1mm diameter.\n", + "L=0.5;\n", + "D=0.1*10**-3;\n", + "#The wire is to be maintained at temprature,Twire=400K and the air is at temprature,Tair=300K.\n", + "Twire=400;\n", + "Tair=300;\n", + "#The resistance of the wire(R) is 0.012ohm per meter.Nusselt number(NuL) over the length of wire to be 0.4.\n", + "NuL=0.4;\n", + "R=0.012;\n", + "#At mean temprature of Tf=350K, The thermal conductivity of air is k=0.03W/(m*K)\n", + "k=0.03;\n", + "#Nusselt number is NuL=hbar*D/k\n", + "#hbar is the heat flux\n", + "print\"The heat flux in W/(m**2*K) is\"\n", + "hbar=NuL*k/D\n", + "print\"hbar\",hbar\n", + "#Q is the heat loss from the wire\n", + "print\"The heat loss from the wire is Q=hbar*pi*D*L*(Twire-Tair) in Watt\"\n", + "Q=hbar*math.pi*D*L*(Twire-Tair)\n", + "print\"Q=\",Q\n", + "#At steady state the ohmic loss in the wire equals the heat loss from its surface Therfore I**2*R=Q\n", + "#I is the current flow.\n", + "print\"The current in Ampere is\"\n", + "I=(Q/(R*L))**0.5\n", + "print\"I=\",I\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter6_lGPDUWp.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter6_lGPDUWp.ipynb new file mode 100644 index 00000000..1c386970 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter6_lGPDUWp.ipynb @@ -0,0 +1,362 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 06:Incompressible viscous flow: A brief review" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.1:pg-226" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 6, Example 1\n", + "Umax in m/s is\n", + "Umax= 1.6\n", + "The shear stress T in N/m**2\n", + "T= 64.0\n", + "(dp/dx) in N/m**3 is\n", + "X= -19200.0\n", + "The Shear stress at a distance of 0.002m from the lower plate in N/m**2\n", + "t= -57.6\n", + "The shear stress at a distance of 0.002m from the upper plate in N/m**2\n", + "t= 57.6\n", + "The opposite signs in t represents the opposite directions.The plus sign is in the direction of flow and the minus sign is in the direction opposite to the flow \n", + "The pressure drop over a distance of 2m in N/m**2 is\n", + "deltaP= 38400.0\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 6, Example 1\"\n", + " #Oil of specific gravity 0.90 and dynamic viscosity (mu=0.1Pa*s) flows between two fixed plates kept 2*b=10mm apart,So b=5mm.\n", + "#The average velocity is Uav=1.60m/s\n", + "Uav=1.60;\n", + "mu=0.1;\n", + "b=0.005; #in metre\n", + " #Umax is maximum velocity\n", + " Umax=(3.0/2)*Uav\n", + "print\"Umax in m/s is\"\n", + "Umax=(3/2)*Uav\n", + "print\"Umax=\",Umax\n", + " #The shear stress at the plate is given by T=2*µ*(Umax/b)\n", + "print\"The shear stress T in N/m**2\"\n", + "T=2*mu*(Umax/b) \n", + " #The shear sress at a distance from plate is given by t=y*(dp/dx)\n", + "#(dp/dx)=X=-3*mu*(Uav/b**2)\n", + "print\"T=\",T\n", + "print\"(dp/dx) in N/m**3 is\"\n", + "X=-3*mu*(Uav/b**2)\n", + " #Taking modulus of X by multipying it with negative sign.\n", + "print\"X=\",X\n", + "print\"The Shear stress at a distance of 0.002m from the lower plate in N/m**2\"\n", + "y=b-0.002;\n", + "t=y*(X) #NOTE:Answer given in the book is incorrect (Calculation mistake)\n", + "print\"t=\",t\n", + "print\"The shear stress at a distance of 0.002m from the upper plate in N/m**2\"\n", + "t=-y*(X) #NOTE:Answer given in the book is incorrect (Calculation mistake)\n", + "print\"t=\",t\n", + "print\"The opposite signs in t represents the opposite directions.The plus sign is in the direction of flow and the minus sign is in the direction opposite to the flow \"\n", + " #deltaP is the pressure drop\n", + "print\"The pressure drop over a distance of 2m in N/m**2 is\"\n", + " #Since pressure drop is considered at a distance of 2m so L=2m\n", + "L=2;\n", + "deltaP=(-X)*L\n", + "print\"deltaP=\",deltaP\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.3:pg-229" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 6, Example 3\n", + "The rate of change of pressure with respect to length in N/m**3\n", + "X= 2000\n", + "Flow rate(Q) in m**3/s is)\n", + "Q= 0.00333333333333\n", + "The viscosity of oil(mu)in kg/(m*s)\n", + "mu= 0.0920388472731\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 6, Example 3\"\n", + " #Oil of specific gravity (sg)=0.90 is discharged at a rate(mdot)=3kg/s under a pressure difference dp=10KN/m**2 over a length dz=5m of a pipe having a diameter(D) of 50mm.\n", + "dp=10*10**3; #in N/m**2\n", + "dz=5;\n", + "D=0.05; #in metre\n", + "mdot=3;\n", + "sg=0.90;\n", + " #X=dp/dz is the rate of change of pressure\n", + "print\"The rate of change of pressure with respect to length in N/m**3\"\n", + "X=dp/dz\n", + "print\"X=\",X\n", + " #Flow rate is Q\n", + "print\"Flow rate(Q) in m**3/s is)\"\n", + "Q=mdot/(sg*10**3)\n", + "print\"Q=\",Q\n", + " #The viscosity of oil is mu=(pi*D**4*X)/(128*Q*dz)\n", + "print\"The viscosity of oil(mu)in kg/(m*s)\"\n", + "mu=(math.pi*D**4*X)/(128*Q)\n", + "print\"mu=\",mu\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.7:pg-250 " + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 6, Example 7\n", + "The maximum length of plate in m is \n", + "L= 2.5\n", + "The average skin friction coefficient is\n", + "cfL= 1.328\n", + "Drag force on one side of plate in N is\n", + "Fd= 21.5136\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 6, Example 7\"\n", + " #A flat plate B=1.2m wide and of length L is kept parallel to a uniform stream of air of velocity Uinf=3m/s in a wind tunnel.\n", + "Uinf=3;\n", + "B=1.2;\n", + " #If it is desired to have a laminar boundary layer only on the plate \n", + "#Assume that the laminar flow exists up to a reynold number(ReL)=5*10**5.Take density of air as rhoair=1.2kg/m**3 and viscosity of air as nuair=1.5*10**-5 m**2/s.\n", + "nuair=1.5*10**-5;\n", + "rhoair=1.2;\n", + "ReL=5*10**5;\n", + " #For maximum length of the plate reynolds number is ReL=Uinf*L/nuair\n", + "#so L=ReL*nuair/Uinf\n", + "print\"The maximum length of plate in m is \"\n", + "L=ReL*nuair/Uinf\n", + "print\"L=\",L\n", + " #The average skin friction coefficient is cfL=1.328/(ReL)**(1/2)\n", + "print\"The average skin friction coefficient is\"\n", + "cfL=1.328/(ReL)**(1/2)\n", + "print\"cfL=\",cfL\n", + " #Fd is drag force\n", + "print\"Drag force on one side of plate in N is\"\n", + "Fd=cfL*(rhoair*Uinf**2/2)*B*L\n", + "print\"Fd=\",Fd\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex6.10:pg-268 " + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 6, Example 10\n", + "Wind velocity(Uinf)in m/s is\n", + "Uinf= 10\n", + "Reynolds number is\n", + "ReL= 4000000.0\n", + "Friction coefficient is\n", + "CbarfL= 0.0735645\n", + "Drag force on one side of the plate per unit metre width in Newton is \n", + "FD= 26.48322\n", + "The turbulent boundary layer thickness at the trailing edge in metre is \n", + "delta= 2.274\n" + ] + } + ], + "source": [ + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 6, Example 10\"\n", + " #Wind at a speed of U=36km/hr blows over a flat plate of length,L=6m .If the density and kinematic viscosity of air are rho=1.2kg/m**3 and mu=1.5*10**-5m**2/s respectively.\n", + "U=36;\n", + "L=6;\n", + "rho=1.2;\n", + "mu=1.5*10**-5;\n", + " #Wind velocity in m/s is Uinf\n", + "print\"Wind velocity(Uinf)in m/s is\"\n", + "Uinf=U*1000/3600\n", + "print\"Uinf=\",Uinf\n", + " #Reynolds number is given by ReL=L*Uinf/mu\n", + "print\"Reynolds number is\"\n", + "ReL=L*Uinf/mu\n", + "print\"ReL=\",ReL\n", + " #We consider that transition of boundary layer takes place from laminar to turbulent takes place at ReL=5*10**5.\n", + "#Therfore the corresponding friction coefficient is given by CbarfL=(0.074-ReL**(1/5))-(1742/ReL)\n", + "print\"Friction coefficient is\"\n", + "CbarfL=(0.074/ReL**(1/5))-(1742/ReL)\n", + "print\"CbarfL=\",CbarfL\n", + " #Drag force on one side of the plate per unit metre width is given by FD=CbarfL*rho*Uinf**2*L/2\n", + "print\"Drag force on one side of the plate per unit metre width in Newton is \"\n", + "FD=CbarfL*rho*Uinf**2*L/2\n", + "print\"FD=\",FD\n", + " #The turbulent boundary layer thickness at the trailing edge is given by delta=L*(0.379/ReL**(1/5))\n", + "print\"The turbulent boundary layer thickness at the trailing edge in metre is \"\n", + "delta=L*(0.379/ReL**(1/5))\n", + "print\"delta=\",delta\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter7_Ie2FcUI.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter7_Ie2FcUI.ipynb new file mode 100644 index 00000000..85b7eec5 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter7_Ie2FcUI.ipynb @@ -0,0 +1,1176 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 07:Principles of forced convection" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.1:pg-296" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 1\n", + "First we check from reynolds no. that the flow is laminar or tubulent\n", + "Reynold number is\n", + "Re= 20000.0\n", + "which is less than critical reynolds number,So the flow is laminar.\n", + "The average nusselt number over the entire length under the situation is given by NuL=0.664*Re**0.5*Pr**(1/3)\n", + "NuL= 93.9037805416\n", + "Heat flux in W/(m**2*K) is\n", + "h= 2.72320963571\n", + "The rate of heat transfer per unit width in W is\n", + "Q= 408.481445356\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 1\"\n", + "#Engine oil at temprature,Tinf=60°C with a velocity of Uinf=1m/s flows over plate of length(L)=5m whose temprature(Tw)=30°C\n", + "Tw=30;\n", + "L=5;\n", + "Uinf=1;\n", + "Tinf=60;\n", + "#The properties at a film temprature of 45°C are as follows density(rho=870kg/m**3),Prandtl number(Pr=2850),conductivity(k=0.145W/(m*°C)),kinematic viscosity(nu=250*10**-6m**2/s).\n", + "rho=870;\n", + "Pr=2850;\n", + "k=0.145;\n", + "nu=250*10**-6;\n", + "print\"First we check from reynolds no. that the flow is laminar or tubulent\"\n", + "#Reynolds number is given by Re=(Uinf*L)/nu\n", + "print\"Reynold number is\"\n", + "Re=(Uinf*L)/nu\n", + "print\"Re=\",Re\n", + "print\"which is less than critical reynolds number,So the flow is laminar.\"\n", + "#NuL is the average nusselt number\n", + "print\"The average nusselt number over the entire length under the situation is given by NuL=0.664*Re**0.5*Pr**(1/3)\"\n", + "NuL=0.664*Re**0.5*Pr**(1/3)\n", + "print\"NuL=\",NuL\n", + "#Heat flux is given by h=(k/L)*NuL\n", + "print\"Heat flux in W/(m**2*K) is\"\n", + "h=(k/L)*NuL\n", + "print\"h=\",h\n", + "#The rate of heat transfer per unit width is Q=h*A*(Tinf-Tw)\n", + "#Since unit width is considerd so B=1\n", + "#Area(A)=L*B\n", + "B=1;\n", + "A=L*B;\n", + "print\"The rate of heat transfer per unit width in W is\"\n", + "Q=h*A*(Tinf-Tw)\n", + "print\"Q=\",Q" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.2:pg-298" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 2\n", + "The location x in m where the transition occurs\n", + "x= 0.275\n", + "The average Nusselt number for the laminar zone is\n", + "Nux= 469.518902708\n", + "Heat flux in W/(m**2*K) is\n", + "h= 44.3908780742\n", + "The reynolds number at L=2m is\n", + "ReL= 3636363.63636\n", + "The average heat transfer coefficient over L=2m in W/(m**2*K)\n", + "hbarL= -11.322519\n", + "The rate of heat transfer per unit width in W is\n", + "Q= -2264.5038\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 2\"\n", + "#Atmospheric air at temprature,Tinf=300K and with a free stream Velocity Uinf=30m/s flows over a flat plate parallel to a side of length(L)=2m.\n", + "Tinf=300;\n", + "Uinf=30;\n", + "L=2;\n", + "#It is maintained at a uniform temprature of Tw=400K.\n", + "Tw=400;\n", + "#The properties of air at the film temprature of 350K are Prandtl number(Pr=0.705),conductivity(k=0.026W/(m*°C)),kinematic viscosity(nu=16.5*10**-6m**2/s)\n", + "Pr=0.705; \n", + "k=0.026;\n", + "nu=16.5*10**-6;\n", + "#We first find the location x(for reynolds number,Re=5*10**5) where the transition occurs\n", + "#Rex is reynolds number\n", + "print\"The location x in m where the transition occurs\"\n", + "Rex=5*10**5;\n", + "x=(nu*Rex)/Uinf\n", + "print\"x=\",x\n", + "#The average Nusselt number for the laminar zone is given by Nux=0.664*Re**0.5*Pr**(1/3)\n", + "print\"The average Nusselt number for the laminar zone is\"\n", + "Nux=0.664*Rex**0.5*Pr**(1/3)\n", + "print\"Nux=\",Nux\n", + "#Heat flux is given by h=(k/x)*Nux\n", + "print\"Heat flux in W/(m**2*K) is\"\n", + "h=(k/x)*Nux\n", + "print\"h=\",h\n", + "#Reynolds number is given by ReL=(Uinf*L)/nu\n", + "print\"The reynolds number at L=2m is\"\n", + "ReL=(Uinf*L)/nu\n", + "print\"ReL=\",ReL\n", + "#The average heat transfer coefficient over L=2m is determined from hbarL=(k/L)*(0.037*(ReL)**(4/5)-871)*Pr**(1/3)\n", + "print\"The average heat transfer coefficient over L=2m in W/(m**2*K)\"\n", + "hbarL=(k/L)*(0.037*(ReL)**(4/5)-871)*Pr**(1/3)\n", + "print\"hbarL=\",hbarL\n", + "#The rate of heat transfer per unit width is Q=h*A*(Tinf-Tw)\n", + "#Since unit width is considerd so B=1\n", + "#Area(A)=L*B\n", + "B=1;\n", + "A=L*B;\n", + "print\"The rate of heat transfer per unit width in W is\"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.3:pg-314" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 3\n", + "(a)When the air flows parallel to the long side we have L=5 and the Reynolds no. becomes\n", + "ReL= 1250000.0\n", + "which is greater than critical Reynolds number.\n", + "The average heat transfer coefficient over L=5m in W/(m**2*K)\n", + "hbarL= -5.225778\n", + "The rate of heat transfer per unit width in W is\n", + "Q= -3135.4668\n", + "(b)When the air flow is parallel to the 1m side we have L=1 an the Reynolds no. becomes \n", + "which is less than critical Reynolds number.\n", + "ReL= 250000.0\n", + "Heat flux in W/(m**2*K) is\n", + "h= 9.96\n", + "The rate of heat transfer per unit width in W is\n", + "Q= 5976.0\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 3\"\n", + "#Air at a pressure of 101kPa and temprature,Tinf=20°C flows with a velocity(Uinf) of 5m/s over a flat plate whose temprature is kept constant at Tw=140°C.\n", + "Tw=140;\n", + "Tinf=20;\n", + "Uinf=5;\n", + "#The properties at the film temprature of 80°C are Prandtl number(Pr=0.706),Conductivity(k=0.03W/(m*°C)),kinematic viscosity(nu=2*10**-5m**2/s)\n", + "Pr=0.706;\n", + "k=0.03;\n", + "nu=2*10**-5;\n", + "#ReL is reynolds number and L is length of flat plate\n", + "print\"(a)When the air flows parallel to the long side we have L=5 and the Reynolds no. becomes\"\n", + "L=5;\n", + "ReL=(Uinf*L)/nu\n", + "print\"ReL=\",ReL\n", + "print\"which is greater than critical Reynolds number.\"\n", + "#Thus we have combined laminar and tubulent flow.\n", + "# So The average heat transfer coefficient over L=5m is determined from hbarL=(k/L)*(0.037*(ReL)**(4/5)-871)*Pr**(1/3)\n", + "print\"The average heat transfer coefficient over L=5m in W/(m**2*K)\"\n", + "hbarL=(k/L)*(0.037*(ReL)**(4/5)-871)*Pr**(1/3)\n", + "print\"hbarL=\",hbarL\n", + "#The rate of heat transfer per unit width is Q=h*A*(Tinf-Tw)\n", + "#Since width is 1m so B=1\n", + "#Area(A)=L*B\n", + "B=1;\n", + "A=L*B;\n", + "#Q is the rate of heat transfer\n", + "print\"The rate of heat transfer per unit width in W is\"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print\"Q=\",Q\n", + "#When the air flow is parallel to the 1m side we have L=1\n", + "print\"(b)When the air flow is parallel to the 1m side we have L=1 an the Reynolds no. becomes \"\n", + "L=1;\n", + "ReL=(Uinf*L)/nu\n", + "print\"which is less than critical Reynolds number.\"\n", + "print\"ReL=\",ReL\n", + "#Thus we have laminar flow\n", + "#Heat flux is given by h=(k/L)*0.664*ReL**0.5*Pr**(1/3)\n", + "print\"Heat flux in W/(m**2*K) is\"\n", + "h=(k/L)*0.664*ReL**0.5*Pr**(1/3)\n", + "print\"h=\",h\n", + "#The rate of heat transfer per unit width is Q=h*A*(Tinf-Tw)\n", + "#Now width is 5m so B=5\n", + "#Area(A)=L*B\n", + "B=5;\n", + "A=L*B;\n", + "#Q is the rate of heat transfer\n", + "print\"The rate of heat transfer per unit width in W is\"\n", + "Q=h*A*(Tw-Tinf)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.4:pg-322" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 4\n", + "(a)Reynolds number is\n", + "ReL= 6000.0\n", + "The boundary layer thickness in m is\n", + "delta= 0.387298334621\n", + "Prandtl no. is\n", + "Pr= 831.024930748\n", + "The thermal boundary layer thickness in m is\n", + "deltaT= 0.387298334621\n", + "(b)Since the prandtl number is high So Nusselt no. is\n", + "NuL= 26.2588270873\n", + "Heat flux in W/(m**2*K) is\n", + "hL= 0.919058948055\n", + "hbarL in W/(m**2*K) is\n", + "hbarL= 1.83811789611\n", + "(c)The rate of heat transfer in W is\n", + "Q= 661.7224426\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 4\"\n", + "#Castor oil at temprature,Tinf=36°C flows over a heated plate of length,L=6m and breadth,B=1m at velocity,Uinf=0.06m/s\n", + "Tinf=36;\n", + "L=6;\n", + "B=1;\n", + "Uinf=0.06;\n", + "#For a surface temprature at Tw=96°C\n", + "Tw=96;\n", + "#The properties at film temprature 66°C conductivity(k=0.21W/(m*K)),kinematic viscosity(nu=6*10**-5m**2/s),Thermal diffusivity(alpha=7.22*10**-8 m**2/s)\n", + "nu=6*10**-5;\n", + "k=0.21;\n", + "alpha=7.22*10**-8;\n", + "#ReL is reynolds number\n", + "print\"(a)Reynolds number is\"\n", + "ReL=(Uinf*L)/nu\n", + "print\"ReL=\",ReL\n", + "#Therefore the boundary layer is laminar over the entire plate.\n", + "#delta is the boundary layer thickness\n", + "print\"The boundary layer thickness in m is\"\n", + "delta=(5*L)/(ReL)**0.5\n", + "print\"delta=\",delta\n", + "#Pr is prandtl number.\n", + "print\"Prandtl no. is\"\n", + "Pr=nu/alpha\n", + "print\"Pr=\",Pr\n", + "#deltaT is thermal boundary layer thickness\n", + "print\"The thermal boundary layer thickness in m is\"\n", + "deltaT=delta/(Pr**(1/3))#NOTE:Answer in the book is incorrect(calculation mistake)\n", + "print\"deltaT=\",deltaT\n", + "#NuL is the nusselt number\n", + "print\"(b)Since the prandtl number is high So Nusselt no. is\"\n", + "NuL=0.339*(ReL)**0.5*Pr**(1/3)\n", + "print\"NuL=\",NuL\n", + "#Heat flux is given by hL=(k/L)*NuL\n", + "print\"Heat flux in W/(m**2*K) is\"\n", + "hL=(k/L)*NuL\n", + "print\"hL=\",hL\n", + "#hbarL is the average heat flux over length L\n", + "print\"hbarL in W/(m**2*K) is\"\n", + "hbarL=2*hL\n", + "print\"hbarL=\",hbarL\n", + "#The rate of heat transfer is Q=h*A*(Tinf-Tw)\n", + "#Area(A)=L*B\n", + "A=L*B;\n", + "print\"(c)The rate of heat transfer in W is\"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print\"Q=\",Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.5:pg-322" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 5\n", + "Reynolds number is\n", + "ReL= 11181.8181818\n", + "Therefore the flow is turbulent over the module \n", + "The local heat transfer coefficient at L in W/(m**2*K)is\n", + "hL= 8.32911955901e+30\n", + "The required power generation in W/m**3 is\n", + "qm= 1.6658239118e+31\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 5\"\n", + "#A flat plate of width B=1m is maintained at a uniform surface temprtaure(Tw)=225°C\n", + "Tw=225;\n", + "B=1;\n", + "#Heating is done by rectangular modules of thickness t=10mm and length l=40mm.\n", + "t=10;\n", + "l=40;\n", + "#atmospheric air at temprature,Tinf=25°C flows over the plate at velocity(Uinf)=30m/s.\n", + "Tinf=25;\n", + "Uinf=30;\n", + "#The thermophysical properties of module are conductivity(km=5.2W/(m*K)),specific heat(cp=320J/(kg/K)),density(rho=2300kg/m**3).\n", + "km=5.2;\n", + "cp=320;\n", + "rho=2300;\n", + "#Assume the air properties at the film temprature of 125°C conductivity(ka=0.031W/(m*K)),kinematic viscosity(nu=22*10**-6m**2/s),Prandtl number(Pr=0.7)\n", + "ka=0.031;\n", + "nu=22*10**-6;\n", + "Pr=0.7;\n", + "#Module is placed at a distance of 800mm from the leading edge\n", + "#The distance from leading edge to the centre-line of the module,L=800+20=820mm.\n", + "L=0.0082;#in metre\n", + "#ReL is the reynolds number \n", + "print\"Reynolds number is\"\n", + "ReL=(Uinf*L)/nu\n", + "print\"ReL=\",ReL\n", + "print\"Therefore the flow is turbulent over the module \"\n", + "#The local heat transfer coefficient at L is calculated using hL=(k/L)*0.0296*(ReL)**(4/5)*(Pr)**(1/3)\n", + "print\"The local heat transfer coefficient at L in W/(m**2*K)is\"\n", + "hL=(ka/L)*0.0296*(ReL)**(4/0.5)*(Pr)**(1/0.3)\n", + "print\"hL=\",hL\n", + "#We consider that the local heat transfer coefficient at L=0.82m remains the same over the module which extends from L=0.80m to 0.84m \n", + "#If qm be the power generation in W/m**2 within the module ,we can write from energy balance qm*(t/0.1000)*(l/0.1000)*(B)=hbarL*(t/0.1000)*(B)*(Tw-Tinf)\n", + "print\"The required power generation in W/m**3 is\"\n", + "qm=(hL*(l/0.1000)*(B)*(Tw-Tinf))/((t/0.1000)*(l/0.1000)*(B))\n", + "print\"qm=\",qm\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.6:pg-327" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 6\n", + "Reynolds number is\n", + "ReL= 15000000.0\n", + "Since ReL>Rec(=5*10**5) the flow is approximated as turbulent over the entire surface of the wing \n", + "Nux= 0.0308\n", + "Nusselt number is \n", + "NubarL= 0.0308\n", + "Average heat transfer coefficient in W/(m**2*K) is\n", + "hbarL= 0.0003696\n", + "Surface temprature of wing in kelvin is\n", + "Tw= 1217800.46753\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + "\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 6\"\n", + "#An aircraft is moving at a velocity of Uinf=150m/s in air at an altitude where the pressure is 0.7bar and the temprature is Tinf=-5°C.\n", + "Tinf=-5;\n", + "Uinf=150;\n", + "#The top surface of the wing absorbs solar radiation at a rate of Qr=900W/m**2.\n", + "Qr=900;\n", + "#Considering the wing as a flat plate of length(L)=2m and to be of solid construction with a single uniform surface temprature .\n", + "L=2;\n", + "#The properties of air at 268K and 0.7 bar are conductivity(k=0.024W/(m*K)),kinematic viscosity(nu=2*10**-5m**2/s),Prandtl number(Pr=0.72)\n", + "k=0.024;\n", + "nu=2*10**-5;\n", + "Pr=0.72;\n", + "#ReL is reynolds number\n", + "print\"Reynolds number is\"\n", + "ReL=Uinf*L/nu\n", + "print\"ReL=\",ReL\n", + "#Rec is critical reynolds number\n", + "print\"Since ReL>Rec(=5*10**5) the flow is approximated as turbulent over the entire surface of the wing \"\n", + "#Nusselt number is given by Nux=0.0308*ReL**(4/5)*Pr**(1/3)\n", + "Nux=0.0308*ReL**(4/5)*Pr**(1/3);\n", + "print\"Nux=\",Nux\n", + "#NubarL is average nusselt number over length L\n", + "print\"Nusselt number is \"\n", + "NubarL=(5/4)*Nux\n", + "print\"NubarL=\",NubarL\n", + "#Average heat transfer coefficient is given by hbarL=(k/L)*NubarL\n", + "print\"Average heat transfer coefficient in W/(m**2*K) is\"\n", + "hbarL=(k/L)*NubarL\n", + "print\"hbarL=\",hbarL\n", + "#From an energy balance the airfoil at steady state,Qr*As=2*hbarL*As*(Tw-Tinf) where Qr=radiation flux,As=upper or lower surface area.\n", + "#Therefore we can write Surface temprature of wing, Tw=Tinf+(Qr/(2*hbarL))\n", + "print\"Surface temprature of wing in kelvin is\"\n", + "Tw=(273+Tinf)+(Qr/(2*hbarL))\n", + "print\"Tw=\",Tw\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.7:pg-331" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 7\n", + "Reynolds number is\n", + "Re= 141.176470588\n", + "Nusselt number is\n", + "NuD= 6.85819682626\n", + "The average Heat transfer coefficient in W/(m**2*K) is\n", + "hbar= 4629.28285773\n", + "Heat transfer per unit length in W/m is\n", + "qL= 14.5433210172\n", + "If we use eq NuD=0.3+((0.62*Re**0.5*Pr**(1/3))/(1+(0.4/Pr**(2/3))**(1/4))*(1+(Re/282000)**(5/8))**(4/5)\n", + "NuD= 7.66669771975\n", + "The average Heat transfer coefficient in W/(m**2*K) is\n", + "hbar= 5175.02096083\n", + "Heat transfer per unit length in W/m is\n", + "qL= 16.2578078327\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 7\"\n", + "#A fine wire having a diameter(D)=0.04mm is placed in an air stream at temprature,Tinf=25°C having a flow velocity of Uinf=60m/s perpendicular to wire.\n", + "D=0.04;\n", + "Tinf=25;\n", + "Uinf=60;\n", + "#An electric current is passed through the wire ,raising its surface temprature to Tw=50°C\n", + "Tw=50;\n", + "#For air at the film temprature of 37.5°C,conductivity(k=0.027 W/(m*K)),kinematic viscosity(nu=17*10**-6m**2/s) and Prandtl number(Pr=0.71)\n", + "k=0.027;\n", + "nu=17*10**-6;\n", + "Pr=0.71;\n", + "#Re is reynolds number\n", + "print\"Reynolds number is\"\n", + "Re=Uinf*(D*10**-3)/nu\n", + "print\"Re=\",Re\n", + "#C and n are constants\n", + "#The values of C and n are found for Re=141 are C=0.683 and n=0.466\n", + "#NuD is nusselt number\n", + "print\"Nusselt number is\"\n", + "NuD=(0.683)*Re**0.466*Pr**(1/3)\n", + "print\"NuD=\",NuD\n", + "#hbar is the average Heat transfer coefficient\n", + "print\"The average Heat transfer coefficient in W/(m**2*K) is\"\n", + "hbar=(k/(D*10**-3))*NuD\n", + "print\"hbar=\",hbar\n", + "#Heat transfer per unit length(qL) is given by pi*D*hbar*(Tw-Tinf)\n", + "print\"Heat transfer per unit length in W/m is\"\n", + "qL=math.pi*(D*10**-3)*hbar*(Tw-Tinf)\n", + "print\"qL=\",qL\n", + "#NuD is nusselt number\n", + "print\"If we use eq NuD=0.3+((0.62*Re**0.5*Pr**(1/3))/(1+(0.4/Pr**(2/3))**(1/4))*(1+(Re/282000)**(5/8))**(4/5)\"\n", + "NuD=0.3+((0.62*Re**0.5*Pr**(1/3))/(1+(0.4/Pr)**(2/3))**(1/4))*(1+(Re/282000)**(5/8))**(4/5)\n", + "print\"NuD=\",NuD\n", + "#hbar is the average Heat transfer coefficient\n", + "print\"The average Heat transfer coefficient in W/(m**2*K) is\"\n", + "hbar=(k/(D*10**-3))*NuD\n", + "print\"hbar=\",hbar\n", + "#Heat transfer per unit length(qL) is given by pi*D*hbar*(Tw-Tinf)\n", + "print\"Heat transfer per unit length in W/m is\"\n", + "qL=math.pi*(D*10**-3)*hbar*(Tw-Tinf)\n", + "print\"qL=\",qL\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.8:pg-334" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 8\n", + "Reynolds number for mercury is\n", + "ReHg= 1000.0\n", + "Reynolds number for oil is\n", + "Reoil= 15.3846153846\n", + "The hydrodynamic entry length for mercury in m is\n", + "LeHg= 1.25\n", + "The hydrodynamic entry length for oil in m is\n", + "Leoil= 0.0192307692308\n", + "The thermal entry length for mercury in m is \n", + "LtHg= 0.02375\n", + "The thermal entry length for oil in m is\n", + "Ltoil= 1.63461538462\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + "\n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 8\"\n", + "#Mercury and a light oil flowing at Uinf=4mm/s in a smooth tube having diameter(D)=25mm at a bulk temprature of 80°C.\n", + "Uinf=4*10**-3;#in metre\n", + "D=25*10**-3;#in metre\n", + "#The pertinent properties of the fluid at that temprature are kinematic viscosity of mercury(nuHg=1*10**-7m**2/s),kinematic viscosity of oil(nuoil=6.5*10**-6m**2/s)\n", + "#Prandtl number of mercury(PrHg=0.019),Prandtl number of oil(Proil=85).\n", + "nuHg=1*10**-7;\n", + "nuoil=6.5*10**-6;\n", + "PrHg=0.019;\n", + "Proil=85;\n", + "#ReHg is Reynolds number for mercury\n", + "print\"Reynolds number for mercury is\"\n", + "ReHg=Uinf*D/nuHg\n", + "print\"ReHg=\",ReHg\n", + "#Reoil is Reynolds number for oil\n", + "print\"Reynolds number for oil is\"\n", + "Reoil=Uinf*D/nuoil\n", + "print\"Reoil=\",Reoil\n", + "#The hydrodynamic length are given by L=0.05*Re*D\n", + "#LeHg is the hydrodynamic entry length for mercury\n", + "print\"The hydrodynamic entry length for mercury in m is\"\n", + "LeHg=0.05*ReHg*D\n", + "print\"LeHg=\",LeHg\n", + "#Leoil the hydrodynamic entry length for oil\n", + "print\"The hydrodynamic entry length for oil in m is\"\n", + "Leoil=0.05*Reoil*D\n", + "print\"Leoil=\",Leoil\n", + "#The thermal entry length are given by L=0.05*Re*Pr*D\n", + "#LtHg is the thermal entry length for mercury\n", + "print\"The thermal entry length for mercury in m is \"\n", + "LtHg=0.05*ReHg*PrHg*D\n", + "print\"LtHg=\",LtHg\n", + "#Ltoil is the thermal entry length for oil\n", + "print\"The thermal entry length for oil in m is\"\n", + "Ltoil=0.05*Reoil*Proil*D\n", + "print\"Ltoil=\",Ltoil\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.9:pg-336" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 9\n", + "Reynold number is\n", + "Re= 348.623853211\n", + "Therefore the flow is laminar.The hydrodynamic entrance length in m is\n", + "Leh= 0.0697247706422\n", + "The thermal entrance length in m is\n", + "Let= 0.0488073394495\n", + "The heat transfer coefficient in W/(m**2*K) is \n", + "h= 32.7\n", + "The mass flow rate of air in kg/s is\n", + "mdot= 2.38761041673e-05\n", + "Therefore the constant surface heat flux qw in W/m**2 is\n", + "qw= 95.95\n", + "The tube surface temprature at the exit plane in °C is \n", + "Twe= 127.934250765\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 9\"\n", + "#Air at one atmospheric pressure and temprature(Tbi=75°C) enters a tube of internal diameter(D)=4.0mm with average velocity(U)=2m/s\n", + "Tbi=75;\n", + "D=4*10**-3;#in metre\n", + "U=2;\n", + "#The tube length is L=1.0m and a constant heat flux is imposed by the tube surface on the air over the entire length.\n", + "L=1;\n", + "#An exit bulk mean temprature(Tbo)=125°C is required.\n", + "Tbo=125;\n", + "#The properties of air 100°C are density(rho=0.95kg/m**3),Prandtl number(Pr=0.70),conductivity(k=0.03W/(m*K)),viscosity(mu=2.18*10**-5kg/(m*s)),specific heat(cp=1.01kJ/(kg/K))\n", + "rho=0.95;\n", + "Pr=0.70;\n", + "k=0.03;\n", + "mu=2.18*10**-5;\n", + "cp=1.01*10**3;\n", + "#Re is reynolds number\n", + "print\"Reynold number is\"\n", + "Re=rho*U*D/mu\n", + "print\"Re=\",Re\n", + "#Leh is the hydrodynamic entrance length\n", + "print\"Therefore the flow is laminar.The hydrodynamic entrance length in m is\"\n", + "Leh=0.05*Re*D\n", + "print\"Leh=\",Leh\n", + "#Let is the thermal entrance length\n", + "print\"The thermal entrance length in m is\"\n", + "Let=0.05*Re*Pr*D\n", + "print\"Let=\",Let\n", + "#The length of tube is given as 1m.A reasonable approach is to consider the flow to be fully developed for both velocity and tempratures over the entire profile lengths.\n", + "#For a fully developed flow with constant surface heat flux,Nusselt number is Nu=4.36\n", + "Nu=4.36;\n", + "#h is the heat transfer coefficient\n", + "print\"The heat transfer coefficient in W/(m**2*K) is \"\n", + "h=Nu*(k/D)\n", + "print\"h=\",h\n", + "#Here h=hL Since the heat transfer coefficient is constant over the entire length of tube.\n", + "#hL is the local heat transfer coefficient\n", + "hL=h;\n", + "#from an energy balance qw*pi*D*L=mdot*cp*(Tbo-Tbi)\n", + "#mdot is mass flow rate\n", + "print\"The mass flow rate of air in kg/s is\"\n", + "mdot=rho*(math.pi/4)*D**2*U\n", + "print\"mdot=\",mdot\n", + "#qw is the constant surface heat flux\n", + "print\"Therefore the constant surface heat flux qw in W/m**2 is\"\n", + "qw=(mdot*cp*(Tbo-Tbi))/(math.pi*D*L)\n", + "print\"qw=\",qw\n", + "#Let Twe be the surface temprature at the exit plane.Then we can write hL*(Twe-Tbo)=qw\n", + "print\"The tube surface temprature at the exit plane in °C is \"\n", + "Twe=Tbo+(qw/hL)\n", + "print\"Twe=\",Twe\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.10:pg-338" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 7, Example 10\n", + "Reynold number is\n", + "Re= 348.623853211\n", + "Therefore the flow is laminar.The hydrodynamic entrance length in m is\n", + "Leh= 0.0697247706422\n", + "The thermal entrance length in m is\n", + "Let= 0.0488073394495\n", + "The thermal entrance length is greater than the tube length Therefore the flow is hydrodynamically developed but not thermally developed\n", + "The inverse of graetz number Gr_1 is\n", + "Gr_1= 0.040977443609\n", + "Therefore the local heat transfer coefficient in W/(m**2*K) is\n", + "hL= 35.25\n", + "The mass flow rate of air in kg/s is\n", + "mdot= 2.38761041673e-05\n", + "Therefore surafce heat flux qw in W/m**2 is\n", + "qw= 2398.75\n", + "The tube surface temprature at the exit plane in °C is \n", + "Twe= 193.04964539\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 10\"\n", + "#Air at one atmospheric pressure and temprature(Tbi=75°C) enters a tube of internal diameter(D)=4.0mm with average velocity(U)=2m/s\n", + "Tbi=75;\n", + "D=4*10**-3;\n", + "U=2;\n", + "#The heated tube length is L=0.04m and a constant heat flux is imposed by the tube surface on the air over the entire length.\n", + "L=0.04;\n", + "#An exit bulk mean temprature(Tbo)=125°C is required.\n", + "Tbo=125;\n", + "#The properties of air 100°C are density(rho=0.95kg/m**3),Prandtl number(Pr=0.70),conductivity(k=0.03W/(m*K)),viscosity(mu=2.18*10**-5kg/(m*s)),specific heat(cp=1.01kJ/(kg/K))\n", + "rho=0.95;\n", + "Pr=0.70;\n", + "k=0.03;\n", + "mu=2.18*10**-5;\n", + "cp=1.01*10**3;\n", + "#Re is the reynolds number \n", + "print\"Reynold number is\"\n", + "Re=rho*U*D/mu\n", + "print\"Re=\",Re\n", + "#Leh is the hydrodynamic entrance length\n", + "print\"Therefore the flow is laminar.The hydrodynamic entrance length in m is\"\n", + "Leh=0.05*Re*D\n", + "print\"Leh=\",Leh\n", + "#Let is thermal entrance length\n", + "print\"The thermal entrance length in m is\"\n", + "Let=0.05*Re*Pr*D\n", + "print\"Let=\",Let\n", + "print\"The thermal entrance length is greater than the tube length Therefore the flow is hydrodynamically developed but not thermally developed\" \n", + "#We calculate the inverse graetz number at x=L=0.04m\n", + "x=0.04;\n", + "#Gr_1 is inverse of graetz number\n", + "print\"The inverse of graetz number Gr_1 is\"\n", + "Gr_1=(x/D)*(1/(Re*Pr))\n", + "print\"Gr_1=\",Gr_1\n", + "#For constant surface heat flux nusselt number is Nu=4.7 and Graetz number is Gr=4.1*10**-2\n", + "Nu=4.7;\n", + "Gr=4.1*10**-2;\n", + "#hL is the local heat transfer coefficient\n", + "print\"Therefore the local heat transfer coefficient in W/(m**2*K) is\"\n", + "hL=Nu*(k/D)\n", + "print\"hL=\",hL\n", + "#from an energy balance qw*pi*D*L=mdot*cp*(Tbo-Tbi)\n", + "#mdot is the mass flow rate\n", + "print\"The mass flow rate of air in kg/s is\"\n", + "mdot=rho*(math.pi/4)*D**2*U\n", + "print\"mdot=\",mdot\n", + "#qw is the surface heat flux\n", + "print\"Therefore surafce heat flux qw in W/m**2 is\"\n", + "qw=(mdot*cp*(Tbo-Tbi))/(math.pi*D*L)\n", + "print\"qw=\",qw\n", + "#Let Twe be the surface temprature at the exit plane.Then we can write hL*(Twe-Tbo)=qw\n", + "print\"The tube surface temprature at the exit plane in °C is \"\n", + "Twe=Tbo+(qw/hL)\n", + "print\"Twe=\",Twe\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex7.11:pg-339" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Introduction to heat transfer by S.K.Som, Chapter 7, Example 11\n", + "Reynold number is\n", + "Re1= 13541.3214942\n", + "Nusselt number is\n", + "Nubar1= 56.808608087\n", + "The heat transfer transfer coefficient in W/(m**2*°C) \n", + "hbar1= 522.6391944\n", + "Outlet fluid temprature in first iteration is Tbo2 in °C is\n", + "Tb2 in °C is\n", + "Tb2= -30.4912413164\n", + "Reynold number is\n", + "Re2= 13938.8493187\n", + "Nusselt number is\n", + "The heat transfer transfer coefficient in W/(m**2*°C) \n", + "hbar2= 784.03829067\n", + "Outlet fluid temprature in second iteration is Tbo3 in °C is\n", + "Tbo3= -16.646852652\n", + "Tb3 in °C is\n", + "The Exit fluid temprature after second iteration is obtained as Tbo=-16.67°C\n", + "Tb3= -28.323426326\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + " import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 7, Example 11\"\n", + "#Liquid sulphur di oxide in a saturated state flows inside a L=5m long tube and D=25mm internal diameter with a mass flow rate(mdot) of 0.15 kg/s.\n", + "#The tube is heated at a constant surface temprature(Tw) of -10°C and the inlet fluid temprature is Tbi=-40°C\n", + "Tw=-10;\n", + "Tbi=-40;\n", + "mdot=0.15;\n", + "D=0.025;#in metre\n", + "L=5;\n", + "#The properties to be used shoud be estimated at a temprature which is arithmetic mean of Tbi and Tbo.\n", + "#Since (outlet fluid temprature Tbo) is not known a priori,the solution has to be based on an iterative method starting with a guess value of Tb1=(Tbi+Tbo)/2\n", + "#Here we denote bulk mean temprature as Tb.The superscript refers to the no. of trials\n", + "#For first trial,guess Tbo1=-20°C;so Tb1=-30°C\n", + "#We have the property values as follows at a temprature of -30°C.\n", + "rhob1=1520.64;#density in kg/m**3\n", + "nub1=0.371*10**-6;#kinematic viscosity in m**2/s\n", + "kb1=0.23;#conductivity in W/(m*°C)\n", + "Prb1=3.31;#Prandtl number\n", + "mub1=nub1*rhob1;#viscosity in kg/(m*s)\n", + "cpb1=1361.6;#specific heat in J/(kg*K)\n", + "#muw=nuw*rhow at Tw=10°C\n", + "nuw=0.288*10**-6;#kinematic viscosity at Tw in m**2/s\n", + "rhow=1463.61;#density at Tw in kg/m**3\n", + "muw=nuw*rhow;#viscosity at Tw in kg/(m*s)\n", + "#The reynolds number is found as Re1=(4*mdot)/(math.pi*D*mub1)\n", + "print\"Reynold number is\"\n", + "Re1=(4*mdot)/(math.pi*D*mub1)\n", + "print\"Re1=\",Re1\n", + "#Hence the flow is turbulent\n", + "#Now using equation, nusselt number is,Nubar1=0.027*(Re1)**0.8*Prb1**(1/3)*(mub1/muw)**0.14\n", + "print\"Nusselt number is\"\n", + "Nubar1=0.027*(Re1)**0.8*Prb1**(1/3)*(mub1/muw)**0.14\n", + "print\"Nubar1=\",Nubar1\n", + "#The heat transfer transfer coefficient hbar1=(kb1/D)*Nubar1\n", + "print\"The heat transfer transfer coefficient in W/(m**2*°C) \"\n", + "hbar1=(kb1/D)*Nubar1\n", + "print\"hbar1=\",hbar1\n", + "#The outlet fluid temprature can be found by making use of eqn Tbo2=Tw-(Tw-Tbi)*math.e((-math.pi*D*L*hbar1)/(mdot*cpb1))\n", + "print\"Outlet fluid temprature in first iteration is Tbo2 in °C is\"\n", + "Tbo2=Tw-(Tw-Tbi)*math.e**((-math.pi*D*L*hbar1)/(mdot*cpb1))\n", + "#Tb2 is the bulk mean temprature.\n", + "print\"Tb2 in °C is\"\n", + "Tb2=(Tbi+Tbo2)/2\n", + "print\"Tb2=\",Tb2\n", + "#Since the value differs from the assumed value of Tb1=-30°C,WE require furtheriteration,Therfore we start second trial with Tb2=-28.36°C\n", + "#We have the property value at a temprature of -28.36°C as follows\n", + "rhob2=1514;#density in kg/m**3\n", + "nub2=0.362*10**-6;#kinematic viscosity in m**2/s\n", + "kb2=0.229;#conductivity in W/(m*°C)\n", + "Prb2=3.23;#Prandtl number\n", + "mub2=nub2*rhob2;#viscosity in kg/(m*s)\n", + "cpb2=1362;#specific heat in J/(kg*K)\n", + "#muw=nuw*rhow at Tw=10°C\n", + "nuw=0.288*10**-6;#viscosity at Tw in m**2/s\n", + "rhow=1463.61;#density at Tw in kg/m**3\n", + "muw=nuw*rhow;#kinematic viscosity at Tw in kg/(m*s)\n", + "#The reynolds number is found as Re2=(4*mdot)/(math.pi*D*mub2)\n", + "print\"Reynold number is\"\n", + "Re2=(4*mdot)/(math.pi*D*mub2)\n", + "print\"Re2=\",Re2\n", + "#Now using equation, nusselt number is,Nubar2=0.027*(Re2)**0.8*Prb2**(1/3.0)*(mub2/muw)**0.14\n", + "print\"Nusselt number is\"\n", + "Nubar2=0.027*(Re2)**0.8*Prb2**(1/3.0)*(mub2/muw)**0.14\n", + "#The heat transfer transfer coefficient hbar2=(kb2/D)*Nubar2\n", + "print\"The heat transfer transfer coefficient in W/(m**2*°C) \"\n", + "hbar2=(kb2/D)*Nubar2\n", + "print\"hbar2=\",hbar2\n", + "#The outlet fluid temprature can be found by making use of eqn Tbo3=Tw-(Tw-Tbi)*math.e((-math.pi*D*L*hbar2)/(mdot*cpb2))\n", + "print\"Outlet fluid temprature in second iteration is Tbo3 in °C is\"\n", + "Tbo3=Tw-(Tw-Tbi)*math.e**((-math.pi*D*L*hbar2)/(mdot*cpb2))\n", + "print\"Tbo3=\",Tbo3\n", + "#Tb3 is the bulk mean temprature.\n", + "print\"Tb3 in °C is\"\n", + "Tb3=(Tbi+Tbo3)/2\n", + "#We see that difference between Tbo2 and Tbo3 and that between Tb2 and Tb3 is marginal.Therfore we can stop iteration and present the result as Tbo=-16.67°C\n", + "print\"The Exit fluid temprature after second iteration is obtained as Tbo=-16.67°C\"\n", + "print\"Tb3=\",Tb3" + ] + } + ], + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter8_vyeGLD8.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter8_vyeGLD8.ipynb new file mode 100644 index 00000000..a6c237e4 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter8_vyeGLD8.ipynb @@ -0,0 +1,893 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 08:Principles of free convection" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.1:pg-355" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 1\n", + "Grashoff number is\n", + "GrL= 2175146201.53\n", + "Rayleigh number is\n", + "RaL= 9440134514.65\n", + "Therefore the flow is turbulent\n", + "Now we use [(hbarL*L)/k]=0.10*(GrL*Pr)**(1/3)\n", + "The average heat transfer coefficient in W/(m**2*K) is\n", + "hbarL= 0.314\n", + "The rate of heat transfer in W is\n", + "q= 0.5024\n" + ] + } + ], + "source": [ + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 1\"\n", + "#Water is heated by a vertical flat plate length(L=200mm or .2m )by breadth(B=200mm) which is maintained at temprature,Tw=60°C\n", + "Tw=60;\n", + "L=.2;\n", + "B=.2;# in metre\n", + "#Area(A) is L*B \n", + "A=L*B;\n", + "#Water is at temprature,Tinf=20°C\n", + "Tinf=20;\n", + "#At mean film temprature 40°C The physical properties parameters can be taken as \n", + "#conductivity(k=0.0628W/(m*K)),Prandtl number(Pr=4.34),density(rho=994.59kg/m**3),kinematic viscosity(nu=0.658*10**-6m**2/s),volume expnasion coefficient(Beta=3*10**-4K**-1))\n", + "k=0.628;\n", + "Pr=4.34;\n", + "rho=994.59;\n", + "nu=0.658*10**-6;\n", + "Beta=3*10**-4;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrL=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrL=(g*Beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"GrL=\",GrL\n", + "#Rayleigh number is defined as RaL=GrL*Pr\n", + "print\"Rayleigh number is\"\n", + "RaL=GrL*Pr\n", + "print\"RaL=\",RaL\n", + "print\"Therefore the flow is turbulent\"\n", + "print\"Now we use [(hbarL*L)/k]=0.10*(GrL*Pr)**(1/3)\"\n", + "#hbarL is the average heat transfer coefficient\n", + "print\"The average heat transfer coefficient in W/(m**2*K) is\"\n", + "hbarL=(0.10*(GrL*Pr)**(1/3)*k)/L\n", + "print\"hbarL=\",hbarL\n", + "#The rate of heat transfer is given by q=hbarL*A*(Tw-Tinf)\n", + "print\"The rate of heat transfer in W is\"\n", + "q=hbarL*A*(Tw-Tinf)\n", + "print\"q=\",q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.2:pg-357" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 2\n", + "The minimum spacing between the plates will be twice the thickness of the boundary layer at the trailing edge where x=0.09\n", + "Grashoff number is\n", + "GrL= 198210197.615\n", + "Rayleigh number is\n", + "RaL= 860232257.647\n", + "Since Ra<10**9,Therefore the flow is laminar\n", + "The thickness of the boundary layer in metre is\n", + "delta= 4.11168026839e-10\n", + "The minimum spacing in metre is\n", + "spac= 8.22336053678e-10\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 2\"\n", + "#The thin plates are kept at temprature(Tw)=60°C while the temprature of water bath(Tinf)=20°C\n", + "Tw=60;\n", + "Tinf=20;\n", + "#The plates have length(L)=90mm or .09m\n", + "L=.09;\n", + "#The minimum spacing between the plates will be twice the thickness of the boundary layer at the trailing edge where x=0.09.\n", + "print\"The minimum spacing between the plates will be twice the thickness of the boundary layer at the trailing edge where x=0.09\"\n", + "x=.09;\n", + "#At mean film temprature 40°C The physical properties parameters can be taken as\n", + "# conducivity(k=0.0628W/(m*K)),Prandtl number(Pr=4.34),Density(rho=994.59kg/m**3),kinematic viscosity(nu=0.658*10**-6m**2/s),Volume expansion coefficient(Beta=3*10**-4K**-1)\n", + "k=0.628;\n", + "Pr=4.34;\n", + "rho=994.59;\n", + "nu=0.658*10**-6;\n", + "Beta=3*10**-4;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrL=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrL=(g*Beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"GrL=\",GrL\n", + "#Rayleigh number is defined as RaL=GrL*Pr\n", + "print\"Rayleigh number is\"\n", + "RaL=GrL*Pr\n", + "print\"RaL=\",RaL\n", + "print\"Since Ra<10**9,Therefore the flow is laminar\"\n", + "#delta is the thickness of the boundary layer\n", + "print\"The thickness of the boundary layer in metre is\"\n", + "delta=x*3.93*Pr**(-1/2)*(0.952+Pr)**(1/4)*GrL**(-1/4)\n", + "print\"delta=\",delta\n", + "#spac is the minimum spacing \n", + "print\"The minimum spacing in metre is\"\n", + "spac=2*delta\n", + "print\"spac=\",spac\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.3:pg-366" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 3\n", + "Grashoff number is\n", + "Grx= 517025.52213\n", + "The boundary layer thickness in metre is\n", + "delta= 60304.3038858\n", + "The velocity at point x is ux in m/s is\n", + "ux= 3247798354.51\n", + "For maximum value of velocity,u\n", + "Maximum velocity in m/s is\n", + "Umax= 3.57089835848\n", + "Mass flow rate at x=0.8m,in kG is\n", + "mdot= 2.36830073295e+16\n" + ] + } + ], + "source": [ + "\n", + "from scipy.integrate import quad\n", + "print \"Introduction to heat transfer by S.K.Som, Chapter 8, Example 3\"\n", + "#Considering question 5.7\n", + "#A wall is exposed to nitrogen at one atmospheric pressure and temprature,Tinf=4°C.\n", + "Tinf=4.0;\n", + "#The wall is H=2.0m high and 2.5m wide and is maintained at temprature,Tw=56°C\n", + "Tw=56.0;\n", + "H=2.0;\n", + "B=2.5;\n", + "A=H*B;#Area of wall in m**2\n", + "#The properties of nitrogen at mean film temprature (56+4)/2=30°C are given as \n", + "#density(rho=1.142kg/m*3) ,conductivity(k=0.026W/(m*K)),kinematic viscosity(nu=15.630*10-6 m*2/s) ,prandtl number(Pr=0.713)\n", + "rho=1.142;\n", + "k=0.026;\n", + "nu=15.630*10**-6;\n", + "Pr=0.713;\n", + "Tf=30.0;#mean film temprature\n", + "Beta=1/(273.0+Tf);#volume expansion coefficient:unit K**-1\n", + "#Now Grashoff number is Grx=(g*Beta*(Tw-Tinf)*x*3)/nu*2\n", + "g=9.81;#acceleration due to gravity\n", + "print \"Grashoff number is\"\n", + "x=0.8;#distance from the bottom of wall\n", + "Grx=(g*Beta*(Tw-Tinf)*x*3)/nu*2\n", + "print\"Grx=\",Grx\n", + "#Using equation delta=x*Pr*(-0.5)(0.952+Pr)*(0.25)*Grx*(-0.25)\n", + "#delta is the boundary layer thickness\n", + "print \"The boundary layer thickness in metre is\"\n", + "delta=x*3.93*Pr*(-0.5)*(0.952+Pr)*(0.25)*Grx*(-0.25)\n", + "print\"delta=\",delta\n", + "#Now using equation ux=(g*Beta*delta*2(Tw-Tinf))/(4*nu)\n", + "#ux is the velocity at point x\n", + "print \"The velocity at point x is ux in m/s is\"\n", + "ux=(g*Beta*delta*2*(Tw-Tinf))/(4*nu)\n", + "print\"ux=\",ux\n", + "# (u/ux)=(y/delta)*(1-y/delta)**2\n", + "#Putting value of ux we get velovity function,u=465.9*(y-116*y*2+3341*y*3)\n", + "#For maximum value of u,du/dy=465.9*(1-232*y+10023*y**2)=0...this is a quadratic equation in which coefficients a=10023,b=232,c=1\n", + "a=10023;\n", + "b=232;\n", + "c=1;\n", + "#Solution for quadratic equation is given by y=(-b+-(b*2-4ac)*0.5)/2*a\n", + "print \"For maximum value of velocity,u\"\n", + "y=(b+(b*2-4*a*c)*0.5)/(2*a)#root of the quadratic equation\n", + "y=(b-(b*2-4*a*c)*0.5)/(2*a)#root of the quadratic equation\n", + "#The value of 0.0173 is at the edge of boundary layer,where u=0\n", + "#Therefore the maximum value occurs at y=0.00573m i.e Umax=465.9*y*(1-57.8*y)**2\n", + "y=0.00573;\n", + "#Umax is maximum velocity\n", + "print \"Maximum velocity in m/s is\"\n", + "Umax=465.9*y*(1-57.8*y)*2#NOTE:The answer given in the book is incorrect,in this expresssion they considered square on y only,however it is on whole expression (1-57.8*y)*2\n", + "#mdot is mass flow rate\n", + "print\"Umax=\",Umax\n", + "print \"Mass flow rate at x=0.8m,in kG is\"\n", + "I=quad(lambda y:465.9*(y-116*y*2+3341*y*3),0,delta)\n", + "mdot=rho*B*I[0]\n", + "print\"mdot=\",mdot\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.4:pg-369" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 4\n", + "Grashoff number is\n", + "Rayleigh number is\n", + "Hence,the flow is laminar\n", + "The thickness of the boundary layer in metre is\n", + "The average heat transfer coeficient in W/(m**2*K) is\n", + "0.101781170483\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 4\"\n", + "#A square plate length,L=0.2m by breadth,B=0.2m is suspended vertically in a quiescent atmospheric air at a temprature(Tinf)=300K\n", + "L=0.2;\n", + "B=0.2;\n", + "Tinf=300;\n", + "#The Temprature of plate(Tw) is maintained at 400K\n", + "Tw=400;\n", + "#The required property value of air at a film temprature(Tf)=350K,kinematic viscosity (nu=20.75*10**-6),Prandtl number(Pr=0.69),conductivity(k=0.03W/(m*K))\n", + "Tf=350;\n", + "nu=20.75*10**-6;\n", + "Pr=0.69;\n", + "k=0.03;\n", + "#volume expansion coefficient is Beta\n", + "Beta=(1/Tf);\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrL=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrL=(g*Beta*(Tw-Tinf)*L**3)/(nu)**2 \n", + "print\"GrL=\",GrL\n", + "#Rayleigh number is defined as RaL=GrL*Pr\n", + "print\"Rayleigh number is\"\n", + "RaL=GrL*Pr\n", + "print\"Hence,the flow is laminar\"\n", + "print\"RaL=\",RaL\n", + "#delta is the thickness of the boundary layer\n", + "print\"The thickness of the boundary layer in metre is\"\n", + "x=0.2;#location of trailing edge of plate\n", + "delta=(x*3.93*(0.952+Pr)**(1/4))/(Pr**(1/2)*(GrL)**(1/4))#NOTE:The answer in the book is incorrect(calculation mistake)\n", + "print\"delta=\",delta\n", + "#hL and hbarL are local and average heat transfer coefficient respectively\n", + "print\"The average heat transfer coeficient in W/(m**2*K) is\"\n", + "hL=(2*k)/delta;\n", + "hbarL=(4.0/3)*(hL)#NOTE:The answer in the book is incorrect(calculation mistake)\n", + "print\"hL=\",hL\n", + "print\"hbarL=\",hbarL\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.5:pg-373" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 5\n", + "Grashoff number is\n", + "503958851.066\n", + "Rayleigh number is\n", + "357810784.257\n", + "Therefore the flow is laminar\n", + "Nusselt number is\n", + "75.3134665126\n", + "Average heat transfer coefficient(hbarL)in W/(m**2*°C)\n", + "The rate of heat transfer in W is \n", + "Now if we use NuL2=0.59*RaL**(1/4) with the value of C=0.59,n=(1/4)\n", + "Nusselt number is\n", + "Average heat transfer coefficient(hbarL)in W/(m**2*°C)\n", + "The rate of heat transfer in W is \n", + "49.9857347505\n", + "(b)For the horizontal plate facing up\n", + "Now RaL2=Gr*Pr*(Lc/L)**3\n", + "Rayleigh number is\n", + "Nusselt number is given by NuL3=C*(GrL*Pr)**n\n", + "Average heat transfer coefficient(hbarL)in W/(m**2*°C)\n", + "The rate of heat transfer in W is \n", + "64.6997833306\n", + "(c)When the hot surface faces is down\n", + "Nusselt number is given by NuL4=0.27*RaL2**(1/4)\n", + "13.1290144745\n", + "Average heat transfer coefficient(hbarL) in W/(m**2)\n", + "2.9408992423\n", + "The rate of heat transfer in W is \n", + "32.3498916653\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 5\"\n", + "#A square plate of length(L)=0.5m by breadth,B=0.5m in a room at temprature,Tinf=30°C\n", + "#One side of plate is kept a uniform temprature(Tw)=74°C\n", + "Tw=74;\n", + "L=0.5;\n", + "B=0.5;\n", + "Tinf=30.0;\n", + "#The required properties at the film temprature(Tf)=52°C are kinematic viscosity(nu=1.815*10**-5),Prandtl number(Pr=0.71),conductivity(k=0.028W/(m*°C))\n", + "Tf=52.0;\n", + "Pr=0.71;\n", + "nu=1.815*10**-5;\n", + "k=0.028;\n", + "#Area(A)=L*B m**2\n", + "A=L*B;\n", + "#Volume expansion coefficient is Beta\n", + "Beta=1/(273+Tf);\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrL=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrL=(g*Beta*(Tw-Tinf)*L**3)/(nu)**2 \n", + "print GrL\n", + "#Rayleigh number is defined as RaL1=GrL*Pr\n", + "print\"Rayleigh number is\"\n", + "RaL1=GrL*Pr\n", + "print RaL1\n", + "print\"Therefore the flow is laminar\"\n", + "#We make use of following equation to find Nusselt number,NuL1=(4/3)*(0.508*Pr**(-1/2)*(0.952+Pr)**(-1/4)*Gr**(1/4))\n", + "print\"Nusselt number is\"\n", + "NuL1=(4.0/3)*(0.508*Pr**(1.0/2)*(0.952+Pr)**(-1.0/4)*GrL**(1.0/4))\n", + "#Average heat transfer coefficient(hbarL) is given by (NuL*k)/L\n", + "print NuL1\n", + "print\"Average heat transfer coefficient(hbarL)in W/(m**2*°C)\"\n", + "hbarL=(NuL1*k)/L\n", + "#The rate of heat transfer(Q) from the plate by free convection is given by Q=hbarL*A*(Tw-Tinf)\n", + "print\"The rate of heat transfer in W is \"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print\"Now if we use NuL2=0.59*RaL**(1/4) with the value of C=0.59,n=(1/4)\"\n", + "print\"Nusselt number is\"\n", + "NuL2=0.59*RaL1**(1.0/4)\n", + "#Average heat transfer coefficient(hbarL) is given by (NuL*k)/L\n", + "print\"Average heat transfer coefficient(hbarL)in W/(m**2*°C)\"\n", + "hbarL=(NuL2*k)/L\n", + "#The rate of heat transfer(Q) from the plate by free convection is given by Q=hbarL*A*(Tw-Tinf)\n", + "print\"The rate of heat transfer in W is \"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print Q\n", + "print\"(b)For the horizontal plate facing up\"\n", + "#Perimeter(P) for a square plate is P=4*L\n", + "P=4*L;\n", + "#Characterstic length(Lc)=A/P\n", + "Lc=A/P\n", + "print\"Now RaL2=Gr*Pr*(Lc/L)**3\"\n", + "print\"Rayleigh number is\"\n", + "RaL2=GrL*Pr*(Lc/L)**3\n", + "#The values of constants,C=0.54 and n=(1/4)\n", + "C=0.54;\n", + "n=(1.0/4);\n", + "print\"Nusselt number is given by NuL3=C*(GrL*Pr)**n\"\n", + "NuL3=C*(RaL2)**n\n", + "print\"Average heat transfer coefficient(hbarL)in W/(m**2*°C)\"\n", + "hbarL=(NuL3*k)/Lc\n", + "print\"The rate of heat transfer in W is \"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print Q\n", + "print\"(c)When the hot surface faces is down\"\n", + "print\"Nusselt number is given by NuL4=0.27*RaL2**(1/4)\"\n", + "NuL4=0.27*RaL2**(1.0/4)\n", + "print NuL4\n", + "print\"Average heat transfer coefficient(hbarL) in W/(m**2)\"\n", + "hbarL=(NuL4*k)/Lc\n", + "print hbarL\n", + "print\"The rate of heat transfer in W is \"\n", + "Q=hbarL*A*(Tw-Tinf)\n", + "print Q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.6:pg-375" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 6\n", + "Grashoff number is\n", + "GrL= 813719594.384\n", + "Rayleigh number is\n", + "RaL= 569603716.069\n", + "Therefore the flow is laminar\n", + "Now we use NuL=0.59*RaL**(1/4.0) with the value of constants C=0.59,n=(1/4.0)\n", + "Nusselt number is\n", + "NuL= 91.1475952489\n", + "Average heat transfer coefficient in W/(m**2*K)\n", + "hbarL1= 5.46885571493\n", + "Grashoff number GrD=GrL*(D/L)**3\n", + "GrD= 0.00650975675508\n", + "The correction factor is\n", + "F= 39.485281111\n", + "The correct value of Average heat transfer coefficient(hbarL2)=hbarL1*F in W/(m**2*K) is\n", + "hbarL2= 215.939305259\n", + "The ohmic loss in W is \n", + "q= 3.39196667512\n", + "The current flowing in the wire in Ampere is\n", + "I= 7.51882822777\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 6\"\n", + "#A vertical wire of length(L)=0.5m and Dimeter(D)=0.1mm is maintained at temprature, Tw=400K\n", + "#The temprature of quicsent air is Tinf=300K\n", + "#Resistance(R) per meter length is 0.12ohm\n", + "R=0.12;\n", + "Tw=400.0;\n", + "L=0.5;\n", + "D=0.1*10**-3;#in metre\n", + "Tinf=300;\n", + "#The required properties at the film temprature(Tf)=350K are kinematic viscosity(nu=20.75*10**-6m**2/s),Prandtl number(Pr=0.70),conductivity(k=0.03W/(m*°C))\n", + "Tf=350.0;\n", + "Pr=0.70;\n", + "nu=20.75*10**-6;\n", + "k=0.03;\n", + "#Area(A)=L*B m**2\n", + "A=math.pi*D*L;\n", + "#Volume expansion Coefficient is Beta\n", + "Beta=1/(Tf);\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrL=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrL=(g*Beta*(Tw-Tinf)*L**3)/(nu)**2 \n", + "print\"GrL=\",GrL\n", + "#Rayleigh number is defined as RaL=GrL*Pr\n", + "print\"Rayleigh number is\"\n", + "RaL=GrL*Pr\n", + "print\"RaL=\",RaL\n", + "print\"Therefore the flow is laminar\"\n", + "#NuL is nusselt number\n", + "#C and n are constants\n", + "print\"Now we use NuL=0.59*RaL**(1/4.0) with the value of constants C=0.59,n=(1/4.0)\"\n", + "print\"Nusselt number is\"\n", + "NuL=0.59*RaL**(1/4.0)\n", + "print\"NuL=\",NuL\n", + "#hbarL1 is the Average heat transfer coefficient\n", + "print\"Average heat transfer coefficient in W/(m**2*K)\"\n", + "hbarL1=(NuL*k)/L\n", + "print\"hbarL1=\",hbarL1\n", + "#Grashoff number GrD=GrL*(D/L)**3\n", + "print\"Grashoff number GrD=GrL*(D/L)**3\"\n", + "GrD=GrL*(D/L)**3\n", + "print\"GrD=\",GrD\n", + "#The correction factor is given By F=1.3*((L/D)/GrD)**(1/4.0)+1.0\n", + "print\"The correction factor is\"\n", + "F=1.3*((L/D)/GrD)**(1/4.0)+1.0\n", + "print\"F=\",F\n", + "print\"The correct value of Average heat transfer coefficient(hbarL2)=hbarL1*F in W/(m**2*K) is\"\n", + "hbarL2=hbarL1*F\n", + "print\"hbarL2=\",hbarL2\n", + "#The ohmic power loss is given by energy balance I**2*R=q=hbar2*A*(Tw-Tinf)\n", + "#q is the ohmic power loss\n", + "print\"The ohmic loss in W is \"\n", + "q=hbarL2*A*(Tw-Tinf)\n", + "print\"q=\",q\n", + "#The current flowing in the wire I=(q/(R*L)**(1/2.0)\n", + "print\"The current flowing in the wire in Ampere is\"\n", + "I=(q/(R*L))**(1/2.0)\n", + "print\"I=\",I\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.7:pg-378" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 7\n", + "Grashoff number is\n", + "GrD= 53311595.6796\n", + "Rayleigh number is\n", + "RaD= 37318116.9757\n", + "The flow is laminar over the entire cylinder\n", + "we use following equation to find Nusselt number NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\n", + "NuD= 0.974169\n", + "Average heat transfer coefficient in W/(m**2*K)\n", + "hbar= 0.14612535\n", + "The heat loss per meter length in W is\n", + "q= 9.64039284733\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 7\"\n", + "#A long horizontal pressurized hot water of diameter(D)=200mm passes through a room where the air temprature is Tinf=25°C\n", + "D=.2;\n", + "Tinf=25;\n", + "#Length(L)=1m ,since the unit length is considered\n", + "L=1;\n", + "#Area(A)=pi*L*D\n", + "A=math.pi*L*D;\n", + "#The pipe surface temprature is Tw=130°C\n", + "Tw=130;\n", + "#The properties of air at the film temprature Tf=77.5°C are kinematic viscosity(nu=21*10**-6m**2/s),Prandtl number(Pr=0.70),Conductivity(k=0.03W/(m*K))\n", + "Tf=77.5;\n", + "nu=21*10**-6;\n", + "k=0.03;\n", + "Beta=(1/(273+Tf));#Volume expansion coefficient in k**-1)\n", + "Pr=0.70;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrD=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrD=(g*Beta*(Tw-Tinf)*D**3)/(nu)**2 \n", + "print\"GrD=\",GrD\n", + "#Rayleigh number is defined as RaD=GrD*Pr\n", + "print\"Rayleigh number is\"\n", + "RaD=GrD*Pr\n", + "print\"RaD=\",RaD\n", + "print\"The flow is laminar over the entire cylinder\"\n", + "#NuD is the nusselt number\n", + "print\"we use following equation to find Nusselt number NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\"\n", + "NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\n", + "print\"NuD=\",NuD\n", + "#hbar is the avearge heat transfer coefficient\n", + "print\"Average heat transfer coefficient in W/(m**2*K)\"\n", + "hbar=(NuD*k)/D\n", + "print\"hbar=\",hbar\n", + "#The heat loss per meter length is given by q=hbar*A*(Tw-Tinf)\n", + "print\"The heat loss per meter length in W is\"\n", + "q=hbar*A*(Tw-Tinf)\n", + "print\"q=\",q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex8.8:pg-381" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 8, Example 8\n", + "Let us take first trial Tw=64°C\n", + "Grashoff number is\n", + "GrD= 226303.67232\n", + "Rayleigh number is\n", + "The flow is laminar \n", + "RaD= 941423.276851\n", + "we use following equation to find Nusselt number NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\n", + "NuD= 0.974169\n", + "Average heat transfer coefficient in W/(m**2*K)\n", + "hbarD= 77.20289325\n", + "Hence,steady state Surface temprature in °C is\n", + "Hence we see that our guess is in excellent agreement with the calculated value\n", + "Tw= 793.068225127\n" + ] + } + ], + "source": [ + " \n", + "import math \n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 8, Example 8\"\n", + "#An electric immersion heater diameter(D)=8mm and length(L)=300mm is rated at power input,P=450W\n", + "P=450;\n", + "L=0.3;#in metre\n", + "D=0.008;#in metre\n", + "#If the heater is horizontally positioned in a large tank of stationery water at temprature,Tinf=20°C\n", + "Tinf=20;\n", + "#At steady state ,The electrical power input(P)=(Q)Heat loss from the heater\n", + "#P=Q\n", + "#Q=hbarD*(pi*D)*L*(Tw-Tinf)\n", + "#This gives Tw(surface temprature)=Tinf+(P/(hbarD*pi*D*L))\n", + "#So we need to find Average heat transfer coefficient,hbarD.\n", + "#In this problem we need to take guess of steady state surface temprature(Tw) and iterate the solution for Tw till a desired convergence is achieved.\n", + "print\"Let us take first trial Tw=64°C\"\n", + "Tw=64;\n", + "Tf=(Tw+Tinf)/2;#mean film temprature\n", + "#At this temprature of 42°C,The required properties of water kinematic viscosity(nu=6.25*10**-7m**2/s),Prandtl number(Pr=4.16),Conductivity(k=0.634W/(m*K)),Beta=4*10**-4K**-1\n", + "Beta=4*10**-4;#Volume expansion coefficient\n", + "nu=6.25*10**-7;\n", + "Pr=4.16;\n", + "k=0.634;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#Grashoff number is given by GrD=(g*beta*(Tw-Tinf)*L**3)/(nu)**2\n", + "print\"Grashoff number is\"\n", + "GrD=(g*Beta*(Tw-Tinf)*D**3)/(nu)**2 \n", + "print\"GrD=\",GrD\n", + "#Rayleigh number is defined as RaD=GrD*Pr\n", + "print\"Rayleigh number is\"\n", + "RaD=GrD*Pr\n", + "print\"The flow is laminar \"\n", + "print\"RaD=\",RaD\n", + "#/NuD is nusselt number\n", + "#hbarD is Average heat transfer coefficient\n", + "print\"we use following equation to find Nusselt number NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\"\n", + "NuD=(0.60+((0.387*RaD**(1/6))/(1+(0.559/Pr**(9/16)))**(8/27)))**2\n", + "print\"NuD=\",NuD\n", + "print\"Average heat transfer coefficient in W/(m**2*K)\"\n", + "hbarD=(NuD*k)/D\n", + "print\"hbarD=\",hbarD\n", + "print\"Hence,steady state Surface temprature in °C is\"\n", + "Tw=Tinf+(P/(hbarD*math.pi*D*L))\n", + "print\"Hence we see that our guess is in excellent agreement with the calculated value\"\n", + "print\"Tw=\",Tw\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter9_4YOTRPU.ipynb b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter9_4YOTRPU.ipynb new file mode 100644 index 00000000..7d76afa3 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/Chapter9_4YOTRPU.ipynb @@ -0,0 +1,727 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "# Chapter 09:Heat transfer in condensation and boiling" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.1:pg-392" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 1\n", + "The properties of condensate(liquid water) are evaluated at the mean film temprature \n", + "The mean film temprature in°C is\n", + "tf= 95\n", + "hfg= 2270000.0\n", + "The average heat transfer coefficient over length L in W/(m**2*K)\n", + "hbar= 0.745\n", + "The rate of heat transfer per unit width in W/m \n", + "Q= 3.772\n", + "The total rate of condensation in kg/(s*m)\n", + "mdotc= 1.66167400881e-06\n", + "We have to check whether the flow is laminar or not \n", + "Reynolds no. is\n", + "Therefore the flow is laminar and hence the use of the equation is justified\n", + "ReL= 0.0221556534508\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 1\"\n", + "#A vertical cooling fin, Approximately a flat plate length,(L)=0.4m high is exposed to saturated steam(temprature,Tg=100°C) at atmospheric pressure.\n", + "L=0.4;\n", + "Tg=100;\n", + "#The fin is maintained at temprature,Tw=90°C by cooling water.\n", + "Tw=90;\n", + "print\"The properties of condensate(liquid water) are evaluated at the mean film temprature \"\n", + "#tf is mean film temprature\n", + "print\"The mean film temprature in°C is\"\n", + "tf=(Tg+Tw)/2\n", + "print\"tf=\",tf\n", + "#The properties of condensate are density(rho=962kg/m**3),conductivity(k=0.677W/(m*K)),viscosity(mu=3*10**-4 kg/(m*s))\n", + "rho=962;\n", + "k=0.677;\n", + "mu=3*10**-4;\n", + "#The value rhov=0.598kg/m**3 and hfg=2.27*10**6J/kg at 100°C are found from steam table\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "rhov=0.598;#rhov is vapour density\n", + "hfg=2.27*10**6;#hfg is enthalpy of vaporisation\n", + "print\"hfg=\",hfg\n", + "#The average heat transfer coefficient over length L is hbarL=0.943*((rho*(rho-rhov)*g*h*L**3)/(mu*k*(Tg-Tw)))**(1/4)\n", + "print\"The average heat transfer coefficient over length L in W/(m**2*K)\"\n", + "hbarL=0.943*((rho*(rho-rhov)*g*hfg*k**3)/(mu*L*(Tg-Tw)))**(1/4)\n", + "print\"hbar=\",hbar\n", + "#The rate of heat transfer per unit width is Q=hbarL*L*(Tg-Tw)\n", + "print\"The rate of heat transfer per unit width in W/m \"\n", + "Q=hbarL*L*(Tg-Tw)\n", + "print\"Q=\",Q\n", + "#The rate of condensation is given by mdotc=(Q/hfg)\n", + "print\"The total rate of condensation in kg/(s*m)\"\n", + "mdotc=(Q/hfg)\n", + "print\"mdotc=\",mdotc\n", + "print\"We have to check whether the flow is laminar or not \"\n", + "#Reynolds no is given by ReL=(4*mdotc)/(mu)\n", + "print\"Reynolds no. is\"\n", + "ReL=(4*mdotc)/(mu)\n", + "print\"Therefore the flow is laminar and hence the use of the equation is justified\"\n", + "print\"ReL=\",ReL\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.2:pg-393" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 2\n", + "The mean film temprature in°C is\n", + "tf= 95\n", + "hfg= 2270000.0\n", + "The average heat transfer coefficient in W/(m**2*K)\n", + "hbar= 0.745\n", + "The total rate of condensation in kg/s\n", + "Check for reynolds no.\n", + "mdotc= 1.54657700017e-06\n", + "Reynolds number is\n", + "Re= 0.00343683777816\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 2\"\n", + "#Steam is condensed at temprature(Tg=100°C) on the outer surafce of a horizontal tube of length(L=3m) and diameter(d)=50mm or .05m\n", + "Tg=100;\n", + "L=3;\n", + "D=0.05;\n", + "#The Tube surface is maintained at temprature,Tw=90°C \n", + "Tw=90;\n", + "#tf is mean film temprature\n", + "print\"The mean film temprature in°C is\"\n", + "tf=(Tg+Tw)/2\n", + "print\"tf=\",tf\n", + "#The properties of condensate are density(rho=962kg/m**3),conductivity(k=0.677W/(m*K)),viscosity(mu=3*10**-4 kg/(m*s))\n", + "rho=962;\n", + "k=0.677;\n", + "mu=3*10**-4;\n", + "#The value rhov=0.598kg/m**3 and hfg=2.27*10**6J/kg at 100°C are found from steam table\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "rhov=0.598;#vapour density\n", + "hfg=2.27*10**6;#enthalpy of vaporisation\n", + "print\"hfg=\",hfg\n", + "#The average heat transfer coefficient hbar=0.745*((rho*(rho-rhov)*g*hfg*k**3)/(mu*D*(Tg-Tw)))**(1/4)\n", + "print\"The average heat transfer coefficient in W/(m**2*K)\"\n", + "hbar=0.745*((rho*(rho-rhov)*g*hfg*k**3)/(mu*D*(Tg-Tw)))**(1/4)\n", + "print\"hbar=\",hbar\n", + "#The rate of condensation is given by mdotc=(hbar*(pi*D*L)*(Tg-Tw))/hfg\n", + "print\"The total rate of condensation in kg/s\"\n", + "mdotc=(hbar*(math.pi*D*L)*(Tg-Tw))/hfg\n", + "print\"Check for reynolds no.\"\n", + "print\"mdotc=\",mdotc\n", + "#For a horizontal tube having length,L,perimeter is P=2L\n", + "P=2*L;\n", + "#Re is reynolds number\n", + "print\"Reynolds number is\"\n", + "Re=(4*mdotc)/(mu*P)\n", + "print\"Re=\",Re\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.3:pg-394" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 3\n", + "The mean film temprature in°C is\n", + "tf= 80\n", + "The average heat transfer coefficient over length L in W/(m**2*K)\n", + "hbar= 0.943\n", + "The rate of heat transfer in kW \n", + "Q= 0.016974\n", + "(b)The film thickness at the trailing edges in m is\n", + "delta= 1.0\n", + "The total rate of condensation in kg/s\n", + "mdotc= 7.47753303965e-06\n", + "Hence the average flow velocity at the trailing edge in m/s is\n", + "v= 2.56431174199e-08\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 3\"\n", + "#A vertical plate having length,(L)=1.5m is maintained at temprature(Tw) of 60°C in the presence of saturated steam(temprature,Tg=100°C) at atmospheric pressure.\n", + "L=1.5;\n", + "Tg=100;\n", + "Tw=60;\n", + "#Consider the width of plate to be (B)=0.3m\n", + "B=0.3;\n", + "#tf is the mean film temprature\n", + "print\"The mean film temprature in°C is\"\n", + "tf=(Tg+Tw)/2\n", + "print\"tf=\",tf\n", + "#The relevant properties are desity(rho=972kg/m**3),conductivity(k=0.670W/(m*K)),viscosity(mu=3.54*10**-4 kg/(m*s))\n", + "#specific heat(cp=4.2J/(kg*K)),vapur density(rhov(100°C)=0.598k/m**3),Enthalpy of vaporisation(hfg(100°C)=2.27*10**6J/kg)\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "rho=972;\n", + "k=0.670;\n", + "mu=3.54*10**-4;\n", + "cp=4.2;\n", + "rhov=0.598;\n", + "hfg=2.27*10**6;\n", + "#The average heat transfer coefficient over length L is hbar=0.943*((rho*(rho-rhov)*g*h*L**3)/(mu*k*(Tg-Tw)))**(1/4)\n", + "print\"The average heat transfer coefficient over length L in W/(m**2*K)\"\n", + "hbar=0.943*((rho*(rho-rhov)*g*hfg*k**3)/(mu*L*(Tg-Tw)))**(1/4)\n", + "print\"hbar=\",hbar\n", + "#The rate of heat transfer Q=hbarL*A*(Tg-Tw)\n", + "#Area(A)=L*B\n", + "A=L*B;\n", + "print\"The rate of heat transfer in kW \"\n", + "Q=(hbar*A*(Tg-Tw))/1000\n", + "print\"Q=\",Q\n", + "#The film thickness at the trailing edges is found out by delta=((4*mu*k*x*(Tg-Tw))/(g*hfg*rho*(rho-rhov)))**(1/4)\n", + "print\"(b)The film thickness at the trailing edges in m is\"\n", + "#at trailing edges x=1.5m\n", + "x=1.5;\n", + "delta=((4*mu*k*x*(Tg-Tw))/(g*hfg*rho*(rho-rhov)))**(1/4)\n", + "print\"delta=\",delta\n", + "#The rate of condensation is given by mdotc=(Q/hfg)\n", + "print\"The total rate of condensation in kg/s\"\n", + "mdotc=((Q*1000)/hfg)\n", + "print\"mdotc=\",mdotc\n", + "#v is the average flow velocity\n", + "print\"Hence the average flow velocity at the trailing edge in m/s is\"\n", + "v=(mdotc)/(rho*delta*B)\n", + "print\"v=\",v\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.4:pg-396" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 4\n", + "The mean film temprature in°C is\n", + "tf= 30\n", + " Modified enthalpy in J/kg is\n", + "hfgdash= 131330.0\n", + "The average heat transfer coefficient over length L in W/(m**2*K)\n", + "hbar= 0.555\n", + "The total rate of condensation in kg/hr\n", + "mdotc= 0.00716923260703\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 4\"\n", + "#Saturated freon-012 at Temprature(Tg)=35°C is condensed horizontal tube of diameter(D)=15mm or.015m at a lower vapour velocity.\n", + "#length,L=1m,Since per meter of tube is considered.\n", + "L=1;\n", + "Tg=35;\n", + "D=0.015;\n", + "#The tube wall is maintained at temprature(Tw)=25°C\n", + "Tw=25;\n", + "#For freon-12 at 35°C,enthalpy of vaporisation(hfg=131.33kJ/kg) and vapour density(rhov=42.68kg/m**3)\n", + "hfg=131.33*10**3;\n", + "rhov=42.68;\n", + "#tf is mean film temprature\n", + "print\"The mean film temprature in°C is\"\n", + "tf=(Tg+Tw)/2\n", + "print\"tf=\",tf\n", + "#The relevant properties at 30°C are density(rho=1.29*10**3kg/m**3),conductivity(k=0.071W/(mK)),viscosity(mu=2.50*10**-4kg/(m*s)),specific heat(cp=983J/(kg*°C))\n", + "rho=1.29*10**3;\n", + "k=0.071;\n", + "mu=2.50*10**-4;\n", + "cp=983;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#we found the modified enthalpy by using following equation hfgdash=hfg+(3/8)*cp*(Tg-Tw)\n", + "print\" Modified enthalpy in J/kg is\"\n", + "hfgdash=hfg+((3/8)*cp*(Tg-Tw))\n", + "print\"hfgdash=\",hfgdash\n", + "#The average heat transfer coefficient over length L is hbar=0.555*((rho*(rho-rhov)*g*hfgdash*k**3)/(mu*D*(Tg-Tw)))**(1/4)\n", + "print\"The average heat transfer coefficient over length L in W/(m**2*K)\"\n", + "hbar=0.555*((rho*(rho-rhov)*g*hfgdash*k**3)/(mu*D*(Tg-Tw)))**(1/4)\n", + "print\"hbar=\",hbar\n", + "#The rate of condensation is given by mdotc=(hbar*(pi*D*L)*(Tg-Tw))/hfg\n", + "print\"The total rate of condensation in kg/hr\"\n", + "mdotc=((hbar*(math.pi*D*L)*(Tg-Tw))/hfg)*3600\n", + "print\"mdotc=\",mdotc\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.5:pg-397" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 5\n", + "Heat transfer coefficient in W/m**2 is\n", + "h= 105042.262441\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 5\"\n", + "#A nickel wire of length(L)=0.1m,Diameter(D)=1mm or .001m \n", + "#Submerged horizontally in water at pressure=1 atm(101kPa) requires current,I=150A at voltage ,E=2.2V to maintain wire at temprature(T1)=110°C\n", + "L=0.1;\n", + "T1=110;\n", + "D=0.001;\n", + "I=150;\n", + "E=2.2;\n", + "#Area(A)=(math.pi*D*L)\n", + "A=math.pi*D*L;\n", + "#The saturation temprature of water at one atmospheric pressure(101kPa) is T2=100°C.\n", + "T2=100;\n", + "#We can write from energy balance E*I=h*A*(T1-T2),we can find heat transfer coefficient from it.\n", + "#h is heat transfer coefficient\n", + "print\"Heat transfer coefficient in W/m**2 is\"\n", + "h=(E*I)/(A*(T1-T2))\n", + "print\"h=\",h\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.6:pg-398" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 6\n", + "Critical Heat flux in W/m**2 is\n", + "qc= 202044.0\n", + "The burn out voltage in Volts is \n", + "E= 1.90421983831\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 6\"\n", + "#In a laboratory experiment,A current(I)=100A burns out a nickel wire having Diameter(D)=1mm or 0.001mm,length(L)=0.3m\n", + "I=100;\n", + "D=.001;\n", + "L=0.3;\n", + "#It is submerged horizontally in water at one atmospheric pressure.\n", + "#For saturated water at one atmospheric pressure,density(rhol=960kg/m**3),vapour density(rhov=0.60kg/m**3),enthalpy of vaporisation(hfg=2.26*10**6J/kg),surface tension(sigma=0.055N/m).\n", + "rhol=960;\n", + "rhov=0.60;\n", + "hfg=2.26*10**6;\n", + "sigma=0.055;\n", + "#Area(A)=(pi*D*L)\n", + "A=math.pi*D*L;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#The wire is burnt out when heat reaches its peak\n", + "#We use following expression to determine critical heat flux qc=0.149*hfg*rhov*((sigma*g*(rhol-rhov))/rhov**2)**(1/4)*((rhol+rhov)/rhol)**(1/2) \n", + "print\"Critical Heat flux in W/m**2 is\"\n", + "qc=0.149*hfg*rhov*((sigma*g*(rhol-rhov))/rhov**2)**(1/4)*((rhol+rhov)/rhol)**(1/2) \n", + "print\"qc=\",qc\n", + "#From the energy balance E*I=qc*A\n", + "#E is the burn out voltage\n", + "print\"The burn out voltage in Volts is \"\n", + "E=(qc*A)/I\n", + "print\"E=\",E\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.7:pg-399" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 7\n", + "Heat flux q in W/m**2 is\n", + "The peak heat flux for water at one atmospheric pressure is qc=1.24*10**6(found in example 9.6).Since q<qc,The regime of boiling is nucleate.\n", + "q= 3636.07255495\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 7\"\n", + "#A heated nickel plate at temprature (T1)=110°C is submereged in water at one atmospheric pressure.\n", + "T1=110;\n", + "#For nucleate boiling coefficient(csf=0.006) and n=1\n", + "csf=0.006;\n", + "n=1;\n", + "#For saturated water at one atmospheric pressure,density of liquid(rhol=960kg/m**3),vapour density(rhov=0.60kg/m**3)\n", + "#enthalpy of vaporisation(hfg=2.26*10**6J/kg),surface tension(sigma=0.055N/m),saturation temprature(T2)=100°C\n", + "T2=100;\n", + "rhol=960;\n", + "rhov=0.60;\n", + "hfg=2.26*10**6;\n", + "sigma=0.055;\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#We take specific heat of liquid(cpl=4.216kJ/(kg*K)),prandtl number of liquid(Prl=1.74),viscosity of liquid(mul=2.82*10**-4kg/(m*s))\n", + "cpl=4.216*10**3;\n", + "Prl=1.74;\n", + "mul=2.82*10**-4;\n", + "#The heat flux q is given by expression q=(mul*hfg)*(((rhol-rhov)*g)/sigma)**(1/2)*((cpl*(T1-T2))*(csf*hfg*prl**n))**3 \n", + "print\"Heat flux q in W/m**2 is\"\n", + "q=(mul*hfg)*(((rhol-rhov)*g)/sigma)**(1/2)*((cpl*(T1-T2))/(csf*hfg*Prl**n))**3 \n", + "print\"The peak heat flux for water at one atmospheric pressure is qc=1.24*10**6(found in example 9.6).Since q<qc,The regime of boiling is nucleate.\"\n", + "print\"q=\",q\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex9.8:pg-401" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Introduction to heat transfer by S.K.Som, Chapter 9, Example 8\n", + "The heat flux in W/m**2 is\n", + "q= 750000.0\n", + "The surface temprature in °C is\n", + "Tw= 120.0\n", + "The value of the coefficient csf is \n", + "csf= 0.0151329179422\n" + ] + } + ], + "source": [ + " \n", + " \n", + " \n", + " \n", + "import math\n", + " \n", + "print\"Introduction to heat transfer by S.K.Som, Chapter 9, Example 8\"\n", + "#A Copper bar whose one end is exposed to boiling water while the other end is encapsulated by an electric heater.\n", + "#Thermocouples are inserted in the bar to measure the tempratures at two locations A and b at distances xA=10mm and xB=30mm from the surface.\n", + "xA=.010;\n", + "xB=.030;\n", + "#Under steady condition nucleate boiling is maintained in saturated water at atmospheric pressure and the tempratures are TA=140°C and TB=180°C,n=1\n", + "TA=140;\n", + "TB=180;\n", + "n=1;\n", + "#The values of relevant properties of water and other parameters are \n", + "#density of liquid(rhol=960kg/m**3),vapour density(rhov=0.60kg/m**3),specific heat of liquid(cpl=4.216 kJ/(kg*K))\n", + "#enthalpy of vaporisation(hfg=2.26*106J/kg),prandtl number of liquiid(Prl=1.74),viscosity of liquid(mul=2.82*10**-4kg/(m*s)),surface tension(sigma1=0.055N/m).\n", + "rhol=960;\n", + "rhov=0.60;\n", + "cpl=4.216*10**3;\n", + "hfg=2.26*10**6;\n", + "Prl=1.74;\n", + "mul=2.82*10**-4;\n", + "sigma1=0.055;\n", + "#We have to know the value of heat flux(q) and the surface temprature(Tw).\n", + "#Since we know the tempratures at location A and B,The heat flux q is determined by fourier law of heat conduction in the bar at steady-state as\n", + "#q=k*((TB-TA)/(xB-xA))\n", + "#We take for copper conductivity,k=375W/(m*K)\n", + "k=375;\n", + "print\"The heat flux in W/m**2 is\"\n", + "q=k*((TB-TA)/(xB-xA))\n", + "print\"q=\",q\n", + "#g is acceleration due to gravity =9.81m/s**2\n", + "g=9.81;\n", + "#The surface temprature is given by Tw=TA-((TB-TA)/(xB-xA))*xA\n", + "print\"The surface temprature in °C is\"\n", + "Tw=TA-((TB-TA)/(xB-xA))*xA\n", + "print\"Tw=\",Tw\n", + "#Temprature,T=100°C,since copper bar is exposed to boiling water. \n", + "T=100;\n", + "#Now we use following equation to determine csf,q=(mul*hfg)*(((rhol-rhov)*g)/sigma1)**(1/2)*((cpl*(Tw-T))/(csf*hfg*Prl**n))**3 \n", + "#Manipulating above equation to find csf we get csf=((cpl*(Tw-T))/(((q/((mul*hfg)*(((rhol-rhov)*g)/sigma1)**(1/2))**(1/3))*hfg*Prl**n))\n", + "print\"The value of the coefficient csf is \"\n", + "csf=((cpl*(Tw-T))/(((q/((mul*hfg)*(((rhol-rhov)*g)/sigma1)**(1.0/2)))**(1.0/3))*hfg*Prl**n))#[NOTE:The answer in the book is incorrect.(Calcultion mistake)]\n", + "print\"csf=\",csf\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/9.7_xRDyNJc.png b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/9.7_xRDyNJc.png Binary files differnew file mode 100644 index 00000000..1eb15165 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/9.7_xRDyNJc.png diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex10.7_G48Lnpj.png b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex10.7_G48Lnpj.png Binary files differnew file mode 100644 index 00000000..c72d6352 --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex10.7_G48Lnpj.png diff --git a/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex11.4_8WqJsrO.png b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex11.4_8WqJsrO.png Binary files differnew file mode 100644 index 00000000..64509f5e --- /dev/null +++ b/Introduction_to_Heat_Transfer_by_S._K._Som/screenshots/Ex11.4_8WqJsrO.png diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_10_pO7WExy.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_10_pO7WExy.ipynb new file mode 100644 index 00000000..7943f665 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_10_pO7WExy.ipynb @@ -0,0 +1,277 @@ +{
+ "metadata": {
+ "name": "chapter 10.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 10:Theory of Failures"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.10.10.1,Page No.401"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P_e=300 #N/mm**2 #Elastic Limit in tension\n",
+ "FOS=3 #Factor of safety\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "P=12*10**3 #N Pull \n",
+ "Q=6*10**3 #N #Shear force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let d be the diameter of the shaft\n",
+ "\n",
+ "#Direct stress\n",
+ "#P_x=P*(pi*4**-1*d**3)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "#P_x=48*10**3\n",
+ "\n",
+ "#Now shear stress at the centre of bolt\n",
+ "#q=4*3**-1*q_av\n",
+ "#After substituting values and further simplifying we get\n",
+ "#q=32*10**3*(pi*d**2)**-1\n",
+ "\n",
+ "#Principal stresses are\n",
+ "#P1=P_x*2**-1+((P_x*2**-1)**2+q**2)**0.5\n",
+ "#After substituting values and further simplifying we get\n",
+ "#p1=20371.833*(d**2)**-1\n",
+ "\n",
+ "#P2=P_x*2**-1-((P_x*2**-1)**2+q**2)**0.5\n",
+ "#After substituting values and further simplifying we get\n",
+ "#P2=-5092.984*(d**2)**-1\n",
+ "\n",
+ "#q_max=((P_x*2**-1)**2+q**2)**0.5\n",
+ "\n",
+ "#From Max Principal stress theory\n",
+ "#Permissible stress in Tension\n",
+ "P1=100 #N/mm**2 \n",
+ "d=(20371.833*P1**-1)**0.5\n",
+ "\n",
+ "#Max strain theory\n",
+ "#e_max=P1*E**-1-mu*P2*E**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "#e_max=21899.728*(d**2*E)**-1\n",
+ "\n",
+ "#According to this theory,the design condition is\n",
+ "#e_max=P_e*(E*FOS)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d2=(21899.728*3*300**-1)**0.5 #mm\n",
+ "\n",
+ "#Max shear stress theory\n",
+ "#e_max=shear stress at elastic*(FOS)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d3=(12732.421*6*300**-1)**0.5 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Diameter of Bolt by:Max Principal stress theory\",round(d,2),\"mm\"\n",
+ "print\" :Max strain theory\",round(d2,2),\"mm\"\n",
+ "print\" :Max shear stress theory\",round(d3,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of Bolt by:Max Principal stress theory 14.27 mm\n",
+ " :Max strain theory 14.8 mm\n",
+ " :Max shear stress theory 15.96 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.10.10.2.Page No.402"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M=40*10**6 #N-mm #Bending moment\n",
+ "T=10*10**6 #N-mm #TOrque\n",
+ "mu=0.25 #Poissoin's ratio\n",
+ "P_e=200 #N/mm**2 #Stress at Elastic Limit\n",
+ "FOS=2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let d be the diameter of the shaft\n",
+ "\n",
+ "#Principal stresses are given by\n",
+ "\n",
+ "#P1=16*(pi*d**3)**-1*(M+(M**2+T**2)**0.5)\n",
+ "#After substituting values and further simplifying we get\n",
+ "#P1=4.13706*10**8*(d**3)**-1 ............................(1)\n",
+ "\n",
+ "#P2=16*(pi*d**3)**-1*(M-(M**2+T**2)**0.5)\n",
+ "#After substituting values and further simplifying we get\n",
+ "#P2=-6269718*(pi*d**3)**-1 ..............................(2)\n",
+ "\n",
+ "#q_max=(P1-P2)*2**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "#q_max=2.09988*10**8*(d**3)**-1\n",
+ "\n",
+ "#Max Principal stress theory\n",
+ "#P1=P_e*(FOS)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d=(4.13706*10**8*2*200**-1)**0.33333 #mm \n",
+ "\n",
+ "#Max shear stress theory\n",
+ "#q_max=shear stress at elastic limit*(FOS)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d2=(2.09988*10**8*4*200**-1)**0.33333\n",
+ "\n",
+ "#Max strain energy theory\n",
+ "#P_3=0\n",
+ "#P1**2+P2**2-2*mu*P1*P2=P_e**2*(FOS)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d3=(8.62444*10**12)**0.166666\n",
+ "\n",
+ "#Result\n",
+ "print\"Diameter of shaft according to:MAx Principal stress theory\",round(d,2),\"mm\"\n",
+ "print\" :Max shear stress theory\",round(d2,2),\"mm\"\n",
+ "print\" :Max strain energy theory\",round(d3,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of shaft according to:MAx Principal stress theory 160.52 mm\n",
+ " :Max shear stress theory 161.33 mm\n",
+ " :Max strain energy theory 143.2 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.10.10.3,Page No.403"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "f_x=40 #N/mm**2 #Internal Fliud Pressure\n",
+ "d1=200 #mm #Internal Diameter\n",
+ "r1=d1*2**-1 #mm #Radius\n",
+ "q=300 #N/mm**2 #Tensile stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Lame's Equation we have,\n",
+ "\n",
+ "#Hoop Stress\n",
+ "#f_x=b*(x**2)**-1+a ..........................(1)\n",
+ "\n",
+ "#Radial Pressure\n",
+ "#p_x=b*(x**2)**-1-a .........................(2)\n",
+ "\n",
+ "#the boundary conditions are\n",
+ "x=d1*2**-1 #mm \n",
+ "#After sub values in equation 1 and further simplifying we get\n",
+ "#40=b*100**-1-a ..........................(3)\n",
+ "\n",
+ "#Max Principal stress theory\n",
+ "#q*(FOS)**-1=b*100**2+a ..................(4)\n",
+ "#After sub values in above equation and further simplifying we get\n",
+ "\n",
+ "#From Equation 3 and 4 we get\n",
+ "a=80*2**-1\n",
+ "#Sub value of a in equation 3 we get\n",
+ "b=(f_x+a)*100**2\n",
+ "\n",
+ "#At outer edge where x=r_0 pressure is zero\n",
+ "r_0=(b*a**-1)**0.5 #mm\n",
+ "\n",
+ "#thickness\n",
+ "t=r_0-r1 #mm\n",
+ "\n",
+ "#Max shear stress theory\n",
+ "P1=b*(100**2)**-1+a #Max hoop stress\n",
+ "P2=-40 #pressure at int radius (since P2 is compressive)\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(P1-P2)*2**-1\n",
+ "\n",
+ "#According max shear theory the design condition is\n",
+ "#q_max=P_e*2**-1*(FOS)**-1\n",
+ "#After sub values in equation we get and further simplifying we get\n",
+ "#80=b*(100**2)**-1+a\n",
+ "#After sub values in equation 1 and 3 and further simplifying we get\n",
+ "b2=120*100**2*2**-1\n",
+ "\n",
+ "#from equation(3)\n",
+ "a2=120*2**-1-a\n",
+ "\n",
+ "#At outer radius r_0,radial pressure=0\n",
+ "r_02=(b2*a2**-1)**0.5\n",
+ "\n",
+ "#thickness\n",
+ "t2=r_02-r1\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of metal by:Max Principal stress theory\",round(t,2),\"mm\"\n",
+ "print\" :Max shear stress thoery\",round(t2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of metal by:Max Principal stress theory 41.42 mm\n",
+ " :Max shear stress thoery 73.21 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_2_FxNgKwZ.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_2_FxNgKwZ.ipynb new file mode 100644 index 00000000..efb0de99 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_2_FxNgKwZ.ipynb @@ -0,0 +1,2751 @@ +{
+ "metadata": {
+ "name": "chapter 2.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2:Simple Stresses And Strains"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.1,Page No.14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "P=45*10**3 #N #Load\n",
+ "E=200*10**3 #N/mm**2 #Modulus of elasticity of rod\n",
+ "L=500 #mm #Length of rod\n",
+ "d=20 #mm #Diameter of rod\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A=pi*d**2*4**-1 #mm**2 #Area of circular rod\n",
+ "p=P*A**-1 #N/mm**2 #stress\n",
+ "e=p*E**-1 #strain \n",
+ "dell_l=(P*L)*(A*E)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"The stress in bar due to Load is\",round(p,5),\"N/mm\"\n",
+ "print\"The strain in bar due to Load is\",round(e,5),\"N/mm\"\n",
+ "print\"The Elongation in bar due to Load is\",round(dell_l,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The stress in bar due to Load is 143.23945 N/mm\n",
+ "The strain in bar due to Load is 0.00072 N/mm\n",
+ "The Elongation in bar due to Load is 0.36 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.2,Page No.15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ " \n",
+ "A=15*0.75 #mm**2 #area of steel tape\n",
+ "P=100 #N #Force apllied\n",
+ "L=30*10**3 #mm #Length of tape\n",
+ "E=200*10**3 #N/m**2 #Modulus of Elasticity of steel tape\n",
+ "AB=150 #m #Measurement of Line AB \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "dell_l=P*L*(A*E)**-1 #mm #Elongation\n",
+ "l=L+dell_l*10**-3 #mm #Actual Length \n",
+ "AB1=AB*l*L**-1 #m Actual Length of AB\n",
+ "\n",
+ "#Result\n",
+ "print\"The Actual Length of Line AB is\",round(AB1,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Actual Length of Line AB is 150.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.3,Page No.15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Let y be the yield stress\n",
+ "\n",
+ "y=250 #N/mm**2 #yield stress\n",
+ "FOS=1.75 #Factor of safety\n",
+ "P=140*10**3 #N #compressive Load\n",
+ "D=101.6 #mm #External diameter\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "p=y*(FOS)**-1 #N/mm**2 #Permissible stress\n",
+ "A=P*p**-1 #mm**2 #Area of hollow tube\n",
+ "\n",
+ "#Let d be the internal diameter of tube\n",
+ "d=-((A*4*(pi)**-1)-D**2)\n",
+ "X=d**0.5\n",
+ "t=(D-X)*2**-1 #mm #Thickness of steel tube\n",
+ "\n",
+ "#result\n",
+ "print\"The thickness of steel tube is\",round(t,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The thickness of steel tube is 3.17 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.4,Page No.16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=25 #mm #diameter of steel\n",
+ "d2=18 #mm #Diameter at neck\n",
+ "L=200 #mm #length of stee\n",
+ "P=80*10**3 #KN #Load \n",
+ "P1=160*10**3 #N #Load at Elastic Limit\n",
+ "P2=180*10**3 #N #Max Load\n",
+ "L1=56 #mm #Total Extension\n",
+ "dell_l=0.16 #mm #Extension\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A=pi*d**2*4**-1 #Area of steel #mm**2\n",
+ "\n",
+ "p=P1*A**-1 #Stress at Elastic Limit #N/mm**2\n",
+ "Y=P*L*(A*dell_l)**-1 #Modulus of elasticity\n",
+ "\n",
+ "#Let % elongation be x\n",
+ "x=L1*L**-1*100 \n",
+ "\n",
+ "#Percentage reduction in area\n",
+ "#Let % A be a\n",
+ "a=((pi*4**-1*d**2)-(pi*4**-1*d2**2))*(pi*4**-1*d**2)**-1*100\n",
+ "\n",
+ "#Ultimate tensile stress\n",
+ "sigma=P2*A**-1 #N/mm**2\n",
+ "\n",
+ "#result\n",
+ "print\"Stress at Elastic limit is\",round(p,2),\"N/mm**2\"\n",
+ "print\"Young's Modulus is\",round(Y,2),\"N/mm**2\"\n",
+ "print\"Percentage Elongation is\",round(a,2)\n",
+ "print\"Percentage reduction in area is\",round(P2,2)\n",
+ "print\"Ultimate tensile stress\",round(sigma,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress at Elastic limit is 325.95 N/mm**2\n",
+ "Young's Modulus is 203718.33 N/mm**2\n",
+ "Percentage Elongation is 48.16\n",
+ "Percentage reduction in area is 180000.0\n",
+ "Ultimate tensile stress 366.69 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.5,Page No.16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=20 #mm #Diameter of bar\n",
+ "d2=14.7 #mm #Diameter at neck \n",
+ "L=200 #mm #guage Length \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,10,20,30,40,50,60]\n",
+ "Y1=[0,32,64,95,127,160,190]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Extension in divisions\")\n",
+ "plt.ylabel(\"Load in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "A=pi*4**-1*d**2 #mm**2 #Area of Bar\n",
+ "A2=pi*4**-1*d2**2\n",
+ "\n",
+ "P=45 #KN #Load obtained from graph\n",
+ "dell=0.143 #mm #Divisions\n",
+ "\n",
+ "#Modulus of Elasticity\n",
+ "E=P*L*(dell*A)**-1 \n",
+ "\n",
+ "BL=93*10**3 #N #Breaking Load\n",
+ "\n",
+ "#Nominal stress at Breaking point\n",
+ "sigma=BL*A**-1 #KN/mm**2 \n",
+ "\n",
+ "#True stress at breaking Point\n",
+ "sigma1=BL*A2**-1\n",
+ "\n",
+ "#Percentage Elongation \n",
+ "dell_l=(A-A2)*A**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"The Value of ELongation is\",round(E,2),\"N/mm**2\"\n",
+ "print\"The Nominal stress at the Breaking Point\",round(sigma,2),\"KN/mm**2\"\n",
+ "print\"The True stress at the Breaking Point\",round(sigma1,2),\"KN/mm**2\"\n",
+ "print\"The Percentage Reduction in Area is\",round(dell_l,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"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8kP4SjfddFON\nXl+V0NBQbrvtNjIzM1m9ejWPPfYYUHG+SV2vq127duzfv5+oqCimT5/OK6+8UqvYxfcpOYhXef31\n1+ncuTMrVqxg1KhRzg/WoKAg5/d9+vRhzZo1fPXVV4DVVz9+/Pg13/ezzz6jW7duzJ49m6ZNm3Li\nxIkKz/fq1YsVK1YAVs++adOmNG7cuMoP1hvVs2dPVq1aBeD8va489thjzJ8/nzNnzhAZGQlU/LCv\n63UVFBRw880388QTT/D888+zb9++G1qn+K4GdgcggenyBebL7r//fn7yk5+wbNky9uzZQ6NGjbj3\n3nt59dVXmTlzJk899RTR0dF06dKFd999lzlz5tCvXz/Ky8sJCgpiyZIl/Md//EeFv6qvnHY1ZcoU\njh07hjGGvn37Eh0dzbZt25zPX75AGxMTQ6NGjZzn3l/vRLCrf29Vz122YMEChg4dyvz583nooYeq\n/PnBgwczYcIEZ2Xk7nVlZmbywgsvUK9ePRo2bMibb75Z7drFP+lWVhERqURtJRERqUTJQUREKlFy\nEBGRSpQcRESkEiUHERGpRMlBREQqUXIQEZFKlBxERKSS/wPlCfw1/C4iHwAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56428b0>"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Value of ELongation is 200.33 N/mm**2\n",
+ "The Nominal stress at the Breaking Point 296.03 KN/mm**2\n",
+ "The True stress at the Breaking Point 547.97 KN/mm**2\n",
+ "The Percentage Reduction in Area is 45.98\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.6,Page No.19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=40*10**3 #N #Load \n",
+ "L1=160 #mm #Length of Bar1\n",
+ "L2=240 #mm #Length of bar2\n",
+ "L3=160 #mm #Length of bar3\n",
+ "d1=25 #mm #Diameter of Bar1\n",
+ "d2=20 #mm #diameter of bar2\n",
+ "d3=25 #mm #diameter of bar3\n",
+ "dell_l=0.285 #mm #Total Extension of bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "E=P*4*(dell_l*pi)**-1*(L1*(d1**2)**-1+L2*(d2**2)**-1+L3*(d3**2)**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"The Young's Modulus of the material\",round(E,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Young's Modulus of the material 198714.72 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.7,Page No.19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E1=2*10**5 #N/mm**2 #modulus of Elasticity of material1\n",
+ "E2=1*10**5 #N/mm**2 #modulus of Elasticity of material2\n",
+ "P=25*10**3 #N #Load \n",
+ "t=20 #mm #thickness of material\n",
+ "b1=40 #mm #width of material1\n",
+ "b2=30 #mm #width of material2\n",
+ "L1=500 #mm #Length of material1\n",
+ "L2=750 #mm #Length of material2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A1=b1*t #mm**2 #Area of materila1\n",
+ "A2=b2*t #mm**2 #Area of material2\n",
+ "\n",
+ "dell_l1=P*L1*(A1*E1)**-1 #Extension of Portion1\n",
+ "dell_l2=P*L2*(A2*E2)**-1 #Extension of portion2\n",
+ "\n",
+ "#Total Extension of Bar is\n",
+ "dell_l=dell_l1+dell_l2\n",
+ "\n",
+ "#Result\n",
+ "print\"The Total Extension of the Bar is\",round(dell_l,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Total Extension of the Bar is 0.39 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.8,Page No.20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=1000 #mm #Length of Bar\n",
+ "l=400 #mm #Length upto which bire is drilled \n",
+ "D=30 #mm #diameter of bar\n",
+ "d1=10 #mm #diameter of bore\n",
+ "P=25*10**3 #N #Load\n",
+ "dell_l=0.185 #mm #Extension of bar\n",
+ "\n",
+ "#Calculations \n",
+ "\n",
+ "L1=L-l #Length of bar above the bore\n",
+ "L2=400 #mm #Length of bore\n",
+ "\n",
+ "A1=pi*4**-1*D**2 #Area of bar\n",
+ "A2=pi*4**-1*(D**2-d1**2) #Area of bore\n",
+ "\n",
+ "E=P*dell_l**-1*(L1*A1**-1+L2*A2**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"The Modulus of ELasticity is\",round(E,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Modulus of ELasticity is 200735.96 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.11,Page No.23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "t=10 #mm #Thickness of steel\n",
+ "b1=60 #mm #width of plate1\n",
+ "b2=40 #mm #width of plate2\n",
+ "P=60*10**3 #Load\n",
+ "L=600 #mm #Length of plate\n",
+ "E=2*10**5 #N/mm**2\n",
+ " \n",
+ "#Calculations\n",
+ "\n",
+ "#Extension of taperong bar of rectangular section\n",
+ "dell_l=P*L*(t*E*(b1-b2))**-1*log(b1*b2**-1)\n",
+ "\n",
+ "A_av=(b1*t+b2*t)*2**-1 #Average Area #mm**2\n",
+ "dell_l2=P*L*(A_av*E)**-1 \n",
+ "\n",
+ "#PErcentage Error\n",
+ "e=(dell_l-dell_l2)*(dell_l)**-1*100\n",
+ "\n",
+ "#Result\n",
+ "print\"The Percentage Error is\",round(e,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Percentage Error is 1.35\n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.12,Page No.23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=1.5 #m #Length of steel bar\n",
+ "L1=1000 #m0 #Length of steel bar 1\n",
+ "L2=500 #m #Length of steel bar 2 \n",
+ "d1=40 #Diameter of steel bar 1\n",
+ "d2=20 #diameter of steel bar 2\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "P=160*10**3 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A1=pi*4**-1*d1**2 #Area of Portion 1\n",
+ "\n",
+ "#Extension of uniform Portion 1\n",
+ "dell_l1=P*L1*(A1*E)**-1 #mm\n",
+ "\n",
+ "#Extension of uniform Portion 2\n",
+ "dell_l2=4*P*L2*(pi*d1*d2*E)**-1 #mm\n",
+ "\n",
+ "#Total Extension of Bar\n",
+ "dell_l=dell_l1+dell_l2\n",
+ "\n",
+ "#Result\n",
+ "print\"The Elongation of the Bar is\",round(dell_l,2),\"mm\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Elongation of the Bar is 1.27 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.14,Page No.25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Portion AB\n",
+ "L_AB=600 #mm #Length of AB\n",
+ "A_AB=40*40 #mm**2 #Cross-section Area of AB\n",
+ "\n",
+ "#Portion BC\n",
+ "L_BC=800 #mm #Length of BC\n",
+ "A_BC=30*30 #mm #Length of BC\n",
+ "\n",
+ "#Portion CD\n",
+ "L_CD=1000 #mm #Length of CD\n",
+ "A_CD=20*20 #mm #Area of CD\n",
+ "\n",
+ "P1=80*10**3 #N #Load1\n",
+ "P2=60*10**3 #N #Load2\n",
+ "P3=40*10**3 #N #Load3\n",
+ "\n",
+ "E=2*10**5 #Modulus of Elasticity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "P4=P1-P2+P3 #Load4\n",
+ "\n",
+ "#Now Force in AB\n",
+ "F_AB=P1\n",
+ "\n",
+ "#Force in BC\n",
+ "F_BC=P1-P2\n",
+ "\n",
+ "#Force in CD\n",
+ "F_CD=P4\n",
+ "\n",
+ "#Extension of AB\n",
+ "dell_l_AB=F_AB*L_AB*(A_AB*E)**-1\n",
+ "\n",
+ "#Extension of BC\n",
+ "dell_l_BC=F_BC*L_BC*(A_BC*E)**-1\n",
+ "\n",
+ "#Extension of CD\n",
+ "dell_l_CD=F_CD*L_CD*(A_CD*E)**-1\n",
+ "\n",
+ "#Total Extension\n",
+ "dell_l=dell_l_AB+dell_l_BC+dell_l_CD\n",
+ "\n",
+ "#Result\n",
+ "print\"The Total Extension in Bar is\",round(dell_l,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Total Extension in Bar is 0.99 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.15,Page No.26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=800 #mm #Length of bar\n",
+ "F1=30*10**3 #N #Force acting on the bar\n",
+ "F2=60*10**3 #N #force acting on the bar\n",
+ "L=800 #mm #Length of bar\n",
+ "d=25 #mm #diameter of bar \n",
+ "L_AC=275 #mm #Length of AC\n",
+ "L_CD=150 #mm #Length of CD\n",
+ "L_DB=375 #mm #Length of DB\n",
+ "E=2*10**5 #Pa #Modulus of elasticity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P be the Reaction on tne Bar from support at A\n",
+ "\n",
+ "#Shortening of Portion AC\n",
+ "#dell_l_AC1=P*L_AC*(A*E)**-1\n",
+ "\n",
+ "#Shortening of Portion CD\n",
+ "#dell_l_CD1=(30+P)*L_CD*(A*E)**-1\n",
+ "\n",
+ "#Extension of Portion DB\n",
+ "#dell_l_DB1=(30-P)*L_DB*(A*E)**-1\n",
+ "\n",
+ "#Total Extensions=1*(A*E)**-1*(P*L_AC-(30+P)*L_CD+(30-P)*L_DB)\n",
+ "#As Supports are unyielding,Total Extensions=0\n",
+ "\n",
+ "#After substituting values in above equation and Further simplifying we get\n",
+ "P=(30*375-150*30)*800**-1\n",
+ "\n",
+ "#Reaction of support A\n",
+ "R_A=P\n",
+ "\n",
+ "#Reaction of support B\n",
+ "R_B=30-P\n",
+ "\n",
+ "#Cross-sectional Area\n",
+ "A=pi*4**-1*d**2\n",
+ "\n",
+ "#Stress in Portion AC\n",
+ "sigma1=P*10**3*A**-1 #N/mm**2\n",
+ "\n",
+ "#Stress in Portion CD\n",
+ "sigma2=(30+P)*10**3*A**-1 #N/mm**2\n",
+ "\n",
+ "#Stress in Portion DB\n",
+ "sigma3=(30-P)*10**3*A**-1 #N/mm**2\n",
+ "\n",
+ "#Shortening of Portion AC\n",
+ "dell_l_AC2=P*10**3*L_AC*(A*E)**-1 #mm \n",
+ "\n",
+ "#Shortening of Portion CD\n",
+ "dell_l_CD2=(30+P)*10**3*L_CD*(A*E)**-1 #mm \n",
+ "\n",
+ "#Extension of Portion DB\n",
+ "dell_l_DB2=(30-P)*10**3*L_DB*(A*E)**-1 #mm \n",
+ "\n",
+ "#result\n",
+ "print\"The Reactios at two Ends are:R_A\",round(R_A,2),\"KN\"\n",
+ "print\" :R_B\",round(R_B,2),\"KN\"\n",
+ "print\"Stress in Portion AC\",round(sigma1,2),\"N/mm**2\"\n",
+ "print\"Stress in Portion CD\",round(sigma2,2),\"N/mm**2\"\n",
+ "print\"Stress in Portion DB\",round(sigma3,2),\"N/mm**2\"\n",
+ "print\"Shortening of Portion AC\",round(dell_l_AC2,3),\"mm\"\n",
+ "print\"Shortening of Portion CD\",round(dell_l_CD2,3),\"mm\"\n",
+ "print\"Shortening of Portion DB\",round(dell_l_DB2,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Reactios at two Ends are:R_A 8.44 KN\n",
+ " :R_B 21.56 KN\n",
+ "Stress in Portion AC 17.19 N/mm**2\n",
+ "Stress in Portion CD 78.3 N/mm**2\n",
+ "Stress in Portion DB 43.93 N/mm**2\n",
+ "Shortening of Portion AC 0.024 mm\n",
+ "Shortening of Portion CD 0.059 mm\n",
+ "Shortening of Portion DB 0.082 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.19,Page No.29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ " \n",
+ "h=4 #m #height of Pillars\n",
+ "P=20 #KN #Load at M\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_A,P_B,P_C,P_D be the forces introduced in the Pillars\n",
+ "#Sun of All Vertical Forces\n",
+ "#P_A+P_B+P_C+P_D=20 ....................(1)\n",
+ "\n",
+ "#Sum of moment about AB, we get\n",
+ "#P_D+P_C=12 ....................(2)\n",
+ "\n",
+ "#Sum of Moment about AD\n",
+ "#P_C+P_B=8 ....................(3)\n",
+ "\n",
+ "#Let dell_l_A,dell_l_B,dell_l-C,dell_l_D be the deformations of Pillars A,B,C,D respectively\n",
+ "#Diagonals AC and BD will remain straight Lines even after the Load is applied.\n",
+ "#Deflection of central Point is given by (dell_l_A+dell_l_C)*2**-1 & (dell_l_B+dell_l_D)*2**-1\n",
+ "\n",
+ "#dell_l_A+dell_l_C=dell_l_B+ell_l_D\n",
+ "#P_A*L*(A*E)**-1+P_C*L*(A*E)**-1=P_B*L*(A*E)**-1+P_D*L*(A*E)**-1\n",
+ "\n",
+ "#Since Pillars are identical in Length,cross-sectional area,material Property\n",
+ "#P_A+P_C=P_B+P_D ..............(4)\n",
+ "\n",
+ "#From Equations 1 and 4 we get\n",
+ "#P_B+P_D=10 ....................(5)\n",
+ " \n",
+ "#Substracting Equation 3 from Equation 2 we get\n",
+ "#P_D-P_B=4 ....................(6)\n",
+ "\n",
+ "#Adding Equation 5 and 6 we get\n",
+ "\n",
+ "P_D=14*2**-1\n",
+ "P_C=12-P_D\n",
+ "P_B=8-P_C\n",
+ "\n",
+ "#Now substituting values of P_B,P_C,P_D in equation1 we get\n",
+ "P_A=20-(P_B+P_C+P_D)\n",
+ "\n",
+ "#Result\n",
+ "print\"The Forces Developed in the Pillars are:P_A\",round(P_A,2),\"KN\"\n",
+ "print\" :P_B\",round(P_B,2),\"KN\"\n",
+ "print\" :P_C\",round(P_C,2),\"KN\"\n",
+ "print\" :P_D\",round(P_D,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Forces Developed in the Pillars are:P_A 5.0 KN\n",
+ " :P_B 3.0 KN\n",
+ " :P_C 5.0 KN\n",
+ " :P_D 7.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.20,Page No.31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "sigma=150 #N/mm**2 #Stress\n",
+ "P=40*10**3 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt P_A.P_B,P_C,P_D be the forces developed in wires A,B,C,D respectively\n",
+ "\n",
+ "#Let sum of all Vertical Forces=0\n",
+ "#P_A+P_B+P_C+P_D=40 ..........................(1)\n",
+ "\n",
+ "#Let x be the distance between each wires\n",
+ "#sum of all moments=0\n",
+ "#P_B*x+P_C*2*x+P_D*3*x=40*2*x\n",
+ "\n",
+ "#After further simplifying we get\n",
+ "#P_B+2*P_C+3*P_D=80 ..........................(2)\n",
+ "\n",
+ "#As the equations of statics ae not enough to find unknowns,Consider compatibilit Equations\n",
+ "\n",
+ "#Let dell_l be the increse in elongation of wire\n",
+ "\n",
+ "#dell_l_B=dell_l_A+dell_l\n",
+ "#dell_l_C=dell_l_A+2*dell_l\n",
+ "#dell_l_D=dell_l_A+3*dell_l\n",
+ "\n",
+ "#Let P1 be the force required for the Elongation of wires,then\n",
+ "#P_B=P_A+P1 ]\n",
+ "#P_C=P_A+2*P1 ]\n",
+ "#P_D=P_A+3*P1 ] ................................(3) \n",
+ "\n",
+ "#from Equation (3) and (1) we get\n",
+ "#2*P_A+3*P1=20 ................................(4)\n",
+ "\n",
+ "#from Equation (3) and (2) we get\n",
+ "#6*P_A+14*P1=80 \n",
+ "\n",
+ "#subtracting 3 times equation (4) from (3) we get\n",
+ "P1=20*5**-1\n",
+ "\n",
+ "#from Equation 4 we get\n",
+ "P_A=(80-14*P1)*6**-1\n",
+ "P_B=P_A+P1\n",
+ "P_C=P_A+2*P1 \n",
+ "P_D=P_A+3*P1\n",
+ "\n",
+ "#Let d be the diameter required,then\n",
+ "d=(P_D*10**3*4*(pi*150)**-1)**0.5\n",
+ "\n",
+ "#result\n",
+ "print\"The Required Diameter is\",round(d,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Required Diameter is 11.65 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.21,Page No.32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=20*10**3 #N #Load\n",
+ "d=6 #mm #diameter of wire\n",
+ "E=2*10**5 #N/mm**2 \n",
+ "L_BO=4000 #mm #Length of BO\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let theta be the angle between OA and OB and also between OC and OB\n",
+ "theta=30\n",
+ "\n",
+ "#Let P_OA,P_OB,P_OC be the Forces introduced in wires OA,OB,OC respectively\n",
+ "#Due to symmetry P_OA=P_OC (same angles)\n",
+ "\n",
+ "#Sum of all Vertical Forces=0\n",
+ "#P_OA*cos(theta)+P_OB+P_OC*cos(theta)=P\n",
+ "\n",
+ "#After further simplifyinf we get\n",
+ "#2*P_OA*cos(theta)+P_OB=20 ...............(1)\n",
+ "\n",
+ "#Let oo1 be the extension of BO\n",
+ "#oo1=L_A1o1*(cos(theta))**-1\n",
+ "\n",
+ "#From relation we get\n",
+ "#P_OB*L_BO=P_OA*L_AO*(cos(theta))**-1\n",
+ "\n",
+ "#But L_AO=L_BO*(cos(theta))**-1\n",
+ "\n",
+ "#After substituting value of L_AO in above equation we get\n",
+ "#P_OB=0.75*P_OA .......................(2)\n",
+ "\n",
+ "#substituting in Equation 1 we get\n",
+ "#2*P_OA*cos(theta)+0.75*P_OA=20\n",
+ "\n",
+ "P_OA=20*(2*cos(theta*pi*180**-1)+0.75)**-1\n",
+ "\n",
+ "P_OB=0.75*P_OA\n",
+ "\n",
+ "A=pi*4**-1*d**2 \n",
+ "\n",
+ "#Vertical displacement of Load\n",
+ "dell_l_BO=P_OB*10**3*L_BO*(A*E)**-1\n",
+ " \n",
+ "#Result\n",
+ "print\"Forces in each wire is:P_OA\",round(P_OA,2),\"KN\"\n",
+ "print\" :P_OB\",round(P_OB,2),\"KN\"\n",
+ "print\"Vertical displacement of Loadis\",round(dell_l_BO,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forces in each wire is:P_OA 8.06 KN\n",
+ " :P_OB 6.04 KN\n",
+ "Vertical displacement of Loadis 4.27 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.22,Page No.34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_s=L_a=L=500 #mm #Length of bar\n",
+ "A_a=50*20 #mm #Area of aluminium strip\n",
+ "A_s=50*15 #mm #Area of steel strip\n",
+ "P=50*10**3 #N #Load\n",
+ "E_a=1*10**5 #N/mm**2 #Modulus of aluminium \n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of steel\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_a and P_s br the Load shared by aluminium and steel strip\n",
+ "#P_a+P_s=P ..................(1)\n",
+ "\n",
+ "#For compatibility condition,dell_l_a=dell_l_s\n",
+ "#P_a*L_a*(A_a*E_a)**-1=P_s*L_s*(A_s*E_s)**-1 .....(2)\n",
+ "\n",
+ "#As L_a=L_s we get\n",
+ "#P_s=1.5*P_a .................(3)\n",
+ " \n",
+ "#From Equation 1 and 2 we get\n",
+ "P_a=P*2.5**-1\n",
+ "\n",
+ "#Substituting in equation 1 we get\n",
+ "P_s=P-P_a\n",
+ "\n",
+ "#stress in aluminium strip \n",
+ "sigma_a=P_a*A_a**-1\n",
+ "\n",
+ "#stress in steel strip\n",
+ "sigma_s=P_s*A_s**-1\n",
+ "\n",
+ "#Now from the relation we get\n",
+ "dell_l_a=dell_l_s=P_s*L_s*(A_s*E_s)**-1\n",
+ "\n",
+ "#result\n",
+ "print\"Stress in Aluminium strip is\",round(sigma_a,2),\"N/mm**2\"\n",
+ "print\"Stress in steel strip is\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"The Extension of the bar is\",round(dell_l_s,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress in Aluminium strip is 20.0 N/mm**2\n",
+ "Stress in steel strip is 40.0 N/mm**2\n",
+ "The Extension of the bar is 0.1 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.23,Page No.35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D_s=20 #mm #Diameter of steel\n",
+ "D_Ci=20 #mm #Internal Diameter of Copper\n",
+ "t=5 #mm #THickness of copper bar\n",
+ "P=100*10**3 #N #Load\n",
+ "E_s=2*10**5 #N/mm**2 #modulus of elasticity of steel\n",
+ "E_c=1.2*10**5 #N/mm**2 #Modulus of Elasticity of Copper\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A_s=pi*4**-1*D_s**2 #mm**2 #Area of steel\n",
+ "D_Ce=D_s+2*t #mm #External Diameterof Copper Tube\n",
+ "\n",
+ "A_c=pi*4**-1*(D_Ce**2-D_Ci**2) #mm**2 #Area of Copper\n",
+ "\n",
+ "#From static Equilibrium condition\n",
+ "#Let P_s and P_c be the Load shared by steel and copper in KN\n",
+ "#P_s+P_c=100 ....................................(1)\n",
+ "\n",
+ "#From compatibility Equation,dell_l_s=dell_l_c\n",
+ "#P_s*L*(A_s*E_s)**-1=P_c*L*(A_c*E_c)**-1\n",
+ "\n",
+ "#Substituting values in above Equation we get\n",
+ "#P_s=1.3333*P_C \n",
+ "\n",
+ "#Now Substituting value of P_s in Equation (1),we get\n",
+ "P_c=100*2.3333**-1 #KN\n",
+ "P_s=100-P_c #KN\n",
+ "\n",
+ "#Stress in steel\n",
+ "sigma_s=P_s*10**3*A_s**-1 #N/mm**2 \n",
+ "\n",
+ "#Stress in copper\n",
+ "sigma_c=P_c*10**3*A_c**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses Developed in Two material are:sigma_s\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\" :sigma_c\",round(sigma_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses Developed in Two material are:sigma_s 181.89 N/mm**2\n",
+ " :sigma_c 109.14 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 63
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.24,Page No.36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "A_C=230*400 #mm #Area of column\n",
+ "D_s=12 #mm #Diameter of steel Bar\n",
+ "P=600*10**3 #N #Axial compression\n",
+ "#E_s*E_c=18.67\n",
+ "n=8 #number of steel Bars\n",
+ "\n",
+ "#Calculations \n",
+ "\n",
+ "A_s=pi*4**-1*D_s**2*n #Area of steel #mm**2 \n",
+ "A_c=A_C-A_s #mm**2 #Area of concrete\n",
+ "\n",
+ "#From static Equilibrium condition\n",
+ "#P_s+P_c=600 .........(1)\n",
+ "\n",
+ "#Now from compatibility Equation dell_l_s=dell_l_c we get,\n",
+ "#P_s*L*(A_s*E_s)**-1=P_c*L*(A_c*E_c)**-1\n",
+ "\n",
+ "#Substituting values in above Equation we get\n",
+ "#P_s=0.1854*P_c\n",
+ "\n",
+ "#Now Substituting value of P_s in Equation (1),we get\n",
+ "P_c=600*1.1854**-1\n",
+ "P_s=600-P_c\n",
+ "\n",
+ "#Stress in steel\n",
+ "sigma_s=P_s*10**3*A_s**-1 #N/mm**2\n",
+ "\n",
+ "#Stress in copper\n",
+ "sigma_c=P_c*10**3*A_c**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses Developed in Two material are:sigma_s\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\" :sigma_c\",round(sigma_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses Developed in Two material are:sigma_s 103.72 N/mm**2\n",
+ " :sigma_c 5.56 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.25,Page No.36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=200*10**3 #N #Load\n",
+ "A_a=1000 #mm**2 #Area of Aluminium\n",
+ "A_s=800 #mm**2 #Area of steel\n",
+ "E_a=1*10**5 #N/mm**2 #Modulus of Elasticity of Aluminium\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of ELasticity of steel\n",
+ "sigma_a1=65 #N/mm**2 #stress in aluminium\n",
+ "sigma_s1=150 #N/mm**2 #Stress in steel\n",
+ "\n",
+ "#Calculations \n",
+ "\n",
+ "#Let P_a and P_s be the force in aluminium and steel pillar respectively\n",
+ "\n",
+ "#Now,sum of forces in Vertical direction we get\n",
+ "#2*P_a+P_s=200 .........................................(1)\n",
+ "\n",
+ "#By compatibility Equation dell_l_s=dell_l_a we get\n",
+ "#P_s=1.28*P_a ..........................................(2)\n",
+ "\n",
+ "#Now substituting value of P_s in Equation 1 we get\n",
+ "P_a=200*3.28**-1 #KN\n",
+ "P_s=200-2*P_a #KN\n",
+ "\n",
+ "#Stress developed in aluminium\n",
+ "sigma_a=P_a*10**3*A_a**-1 #N/mm**2 \n",
+ "\n",
+ "#Stress developed in steel\n",
+ "sigma_s=P_s*10**3*A_s**-1 #N/mm**2 \n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Let sigma_a1 and sigma_s1 be the stresses in Aluminium and steel due to Additional LOad\n",
+ "\n",
+ "P_a1=sigma_a1*A_a #Load carrying capacity of aluminium\n",
+ "P_s1=1.28*P_a1\n",
+ "\n",
+ "#Total Load carrying capacity \n",
+ "P1=2*P_a1+P_s1 #N \n",
+ "\n",
+ "P_s2=sigma_s1*A_s #Load carrying capacity of steel\n",
+ "P_a2=P_s2*1.28**-1\n",
+ "\n",
+ "#Total Load carrying capacity\n",
+ "P2=2*P_a2+P_s2\n",
+ "\n",
+ "#Additional Load\n",
+ "P3=P1-P\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses Developed in Each Pillar is:sigma_a\",round(sigma_a,2),\"N/mm**2\"\n",
+ "print\" :sigma_s\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"Additional Load taken by pillars is\",round(P3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses Developed in Each Pillar is:sigma_a 60.98 N/mm**2\n",
+ " :sigma_s 97.56 N/mm**2\n",
+ "Additional Load taken by pillars is 13200.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.26,Page No.37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=500 #mm #Length of assembly\n",
+ "D=16 #mm #Diameter of steel bolt\n",
+ "Di=20 #mm #internal Diameter of copper tube\n",
+ "Do=30 #mm #External Diameter of copper tube\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of Elasticity of steel\n",
+ "E_c=1.2*10**5 #N/mm**2 #Modulus of Elasticity of copper\n",
+ "p=2 #mm #Pitch of nut\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_s be the Force in bolt and P_c be the FOrce in copper tube\n",
+ "#P_s=-P_s\n",
+ "\n",
+ "dell=1*4**-1*2 #Quarter turn of nut total movement\n",
+ "\n",
+ "#dell=dell_s+dell_c\n",
+ " \n",
+ "#Area of steel\n",
+ "A_s=pi*4**-1*D**2\n",
+ "\n",
+ "#Area of copper\n",
+ "A_c=pi*4**-1*(Do**2-Di**2)\n",
+ "\n",
+ "#dell=P*L*(A_s*E_s)**-1+P*L*(A_c*E_c)**-1\n",
+ "P=dell*(1*(A_s*E_s)**-1+1*(A_c*E_c)**-1)**-1*L**-1 #LOad\n",
+ "\n",
+ "P_s=P*A_s**-1\n",
+ "P_c=P*A_c**-1\n",
+ "\n",
+ "#result\n",
+ "print\"stress introduced in bolt is\",round(P_s,2),\"N/mm**2\"\n",
+ "print\"stress introduced in tube is\",round(P_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "stress introduced in bolt is 107.91 N/mm**2\n",
+ "stress introduced in tube is 55.25 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.27,Page No.39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=20 #mm #Diameter of Bolts\n",
+ "Di=25 #m #internal Diameter\n",
+ "t=10 #mm #Thickness of bolt\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "E_c=1.2*10**5 #N/mm**2 #Modulus of copper\n",
+ "p=3 #mm #Pitch\n",
+ "theta=30 #degree\n",
+ "L_c=500 #Lengh of copper \n",
+ "L_s=600 #Length of steel\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_s be the Force in each bolt and P_c be the FOrce in copper tube\n",
+ "#From Static Equilibrium condition\n",
+ "#P_c=2*P_s\n",
+ "\n",
+ "#As nut moves by 60 degree.If nut moves by 360 degree its Longitudinal movement is by 3 mm\n",
+ "dell=theta*360**-1*p\n",
+ "\n",
+ "#From Compatibility Equaton we get\n",
+ "#dell=dell_c+dell_s\n",
+ "\n",
+ "\n",
+ "A_s=pi*4**-1*Di**2 #mm**2 #Area of steel\n",
+ "A_c=pi*4**-1*(45**2-Di**2) #mm**2 #Area of copper\n",
+ "\n",
+ "#Force introduced in steel\n",
+ "P_s=0.5*(2*L_c*(A_c*E_c)**-1+L_s*(A_s*E_s)**-1)**-1 #N\n",
+ "P_s2=P_s*A_s**-1\n",
+ "\n",
+ "#Force introduced in copper \n",
+ "P_c=2*P_s*A_c**-1 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Stress introduced in bolt is\",round(P_s2,2),\"N/mm**2\"\n",
+ "print\"stress introduced in tube is\",round(P_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress introduced in bolt is 74.4 N/mm**2\n",
+ "stress introduced in tube is 66.43 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 67
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.28,Page No.40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=9 #m #Length of rigid bar\n",
+ "L_b=3000 #Length of bar\n",
+ "A_b=1000 #mm**2 #Area of bar\n",
+ "E_b=1*10**5 #N/mm**2 #Modulus of Elasticity of brasss bar\n",
+ "L_s=5000 #mm #Length of steel bar\n",
+ "A_s=445 #mm**2 #Area of steel bar\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of elasticity of steel bar\n",
+ "P=3000 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From static equilibrium Equation of the rod after appliying Load is\n",
+ "#P_b+P_s=P ......................(1)\n",
+ "\n",
+ "#P_b=1.8727*P_s ..................(2)\n",
+ "\n",
+ "#NOw substituting equation 2 in equation 1 we get\n",
+ "P_s=P*2.8727**-1\n",
+ "P_b=P-P_s\n",
+ "\n",
+ "d=P_s*L*P**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Distance at which Load applied even after which bar remains horizontal is\",round(d,2),\"m\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance at which Load applied even after which bar remains horizontal is 3.13 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.29,Page No.41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "A_b=1000 #MM**2 #Area of brass bar\n",
+ "E_b=1*10**5 #N/mm**2 #Modulus of Elasticity of brass\n",
+ "A_s=600 #N/mm**2 #Area of steel rod\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of eLasticity of steel bar\n",
+ "P=10*10**2 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_b be the tensile force in brass bar and P_s be the compressive force in steel bar\n",
+ "#Now taking moment about A we get static Equilibrium condition as\n",
+ "#P_b+2*P_s=27500 ......................................(1)\n",
+ "\n",
+ "#Now from deformed shape we get\n",
+ "#dell_s=2*dell_b\n",
+ "\n",
+ "#P_s*L_s*(A_s*E_s)**-1=P_b*L_b*(A_b*E_b)**-1\n",
+ "#Further simplifying we get\n",
+ "#P_s=1.2*P_b .........................................(2)\n",
+ "\n",
+ "#Now substituting equation 1 in equation 2 we get\n",
+ "P_b=27500*3.4**-1\n",
+ "P_s=1.2*P_b \n",
+ "\n",
+ "#Tensile stress in brass bar \n",
+ "sigma_b=P_b*A_b**-1\n",
+ "\n",
+ "#compressive stress in steel bar\n",
+ "sigma_s=P_s*A_s**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Compressive Stress in Bar is\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"tensile Stress in Bar is\",round(sigma_b,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Compressive Stress in Bar is 16.18 N/mm**2\n",
+ "tensile Stress in Bar is 8.09 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.30,Page No.44"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=12.6 #m #Length of rail\n",
+ "t1=24 #Degree celsius\n",
+ "t2=44 #degree celsius\n",
+ "alpha=12*10**-6 #Per degree celsius\n",
+ "E=2*10**5 #N/mm**2 #Modulus of ELasticity\n",
+ "gamma=2 #mm #Gap provided for Expansion\n",
+ "sigma=20 #N/mm**2 #Stress\n",
+ "\n",
+ "#Calculations \n",
+ "\n",
+ "t=t2-t1 #Temperature Difference\n",
+ "\n",
+ "#Free Expansion of the rails\n",
+ "dell=alpha*t*L*1000 #mm \n",
+ "\n",
+ "#When no expansion joint is provided then\n",
+ "p=dell*E*(L*10**3)**-1\n",
+ "\n",
+ "#When a gap of 2 mm is provided,then free expansion prevented is\n",
+ "dell_1=dell-gamma\n",
+ "p2=dell_1*E*(L*10**3)**-1\n",
+ "\n",
+ "#When stress is developed,then gap left is\n",
+ "gamma2=-(sigma*L*10**3*E**-1-dell)\n",
+ "\n",
+ "#Result\n",
+ "print\"The minimum gap between the two rails is\",round(dell,2),\"mm\"\n",
+ "print\"Thermal Developed in the rials if:No expansionn joint is provided:p\",round(p,2),\"N/mm**2\"\n",
+ "print\" :If a gap of is provided then :p2\",round(p2,2),\"N/mm**2\"\n",
+ "print\"When stress is developed gap left between the rails is\",round(gamma2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The minimum gap between the two rails is 3.02 mm\n",
+ "Thermal Developed in the rials if:No expansionn joint is provided:p 48.0 N/mm**2\n",
+ " :If a gap of is provided then :p2 16.25 N/mm**2\n",
+ "When stress is developed gap left between the rails is 1.76 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.31,Page No.45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "t=20 #degree celsius\n",
+ "E_a=70*10**9 #N/mm**2 #Modulus of Elasticicty of aluminium\n",
+ "alpha_a=11*10**-6 #per degree celsius #Temperature coeff of aluminium\n",
+ "alpha_s=12*10**-6 #Per degree celsius #Temperature coeff of steel\n",
+ "L_a=1000 #mm #Length of aluminium \n",
+ "L_s=3000 #mm #Length of steel\n",
+ "E_a=7*10**4 #N/mm**2 #Modulus of Elasticity of aluminium\n",
+ "E_s=2*10**5 #N/mm*2 #Modulus of Elasticity of steel\n",
+ "A_a=600 #mm**2 #Area of aluminium\n",
+ "A_s=300 #mm**2 #Area of steel\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Free Expansion \n",
+ "dell=alpha_a*t*L_a+alpha_s*t*L_s\n",
+ " \n",
+ "#support Reaction\n",
+ "P=dell*(L_a*(A_a*E_a)**-1+L_s*(A_s*E_s)**-1)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Reaction at support is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reaction at support is 12735.48 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 71
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.33,Page No.48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=25 #mm #Diameter of Brass\n",
+ "De=50 #mm #External Diameter of steel tube\n",
+ "Di=25 #mm #Internal Diameter of steel tube\n",
+ "L=1.5 #m #Length of both bars\n",
+ "t1=30 #degree celsius #Initial Temperature\n",
+ "t2=100 #degree celsius #final Temperature\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of ELasticity of steel bar\n",
+ "E_b=1*10**5 #N/mm**2 #Modulus of Elasticity of brass bar\n",
+ "alpha_s=11.6*10**-6 #Temperature Coeff of steel\n",
+ "alpha_b=18.7*10**-6 #Temperature coeff of brass bar\n",
+ "d=20 #mm #diameter of pins\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "t=t2-t1 #Temperature Difference\n",
+ "A_s=pi*4**-1*(De**2-Di**2) #mm**2 #Area of steel\n",
+ "A_b=pi*4**-1*D**2 #mm**2 #Area of brass\n",
+ "\n",
+ "#Let P_b be the tensile force in brass bar and P_s be the compressive force in steel bar\n",
+ "#But from Equilibrium of Forces \n",
+ "#P_b=P_s=P\n",
+ "\n",
+ "#Let dell=dell_s+dell_b\n",
+ "dell=(alpha_b-alpha_s)*t*L*1000\n",
+ "\n",
+ "P=dell*(1*(A_s*E_s)**-1+1*(A_b*E_b)**-1)**-1*(L*1000)**-1\n",
+ "P_b=P_s=P\n",
+ "\n",
+ "#Stress in steel\n",
+ "sigma_s=P_s*A_s**-1\n",
+ "\n",
+ "#Stress in Brass\n",
+ "sigma_b=P_b*A_b**-1\n",
+ "\n",
+ "#Area of Pins\n",
+ "A_p=pi*4**-1*d**2\n",
+ "\n",
+ "#Since,the force is resisted by two cross section of pins\n",
+ "tou=P*(2*A_p)**-1\n",
+ " \n",
+ "#Result\n",
+ "print\"Stress in steel bar is\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"Stress in Brass bar is\",round(sigma_b,2),\"N/mm**2\"\n",
+ "print\"Shear Stresss induced in pins is\",round(tou,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress in steel bar is 14.2 N/mm**2\n",
+ "Stress in Brass bar is 42.6 N/mm**2\n",
+ "Shear Stresss induced in pins is 33.28 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.34,Page No.49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "b_s=60 #mm #width of steel Bar\n",
+ "t_s=10 #mm #thickness of steel Bar\n",
+ "b_c=40 #mm #width of copper bar\n",
+ "t_c=5 #mm #thickness of copper bar\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of Elasticity of steel bar\n",
+ "E_c=1*10**5 #N/mm**2 #Modulus of Elasticity of copper bar\n",
+ "alpha_s=12*10**-6 #Per degree celsius #Temperature coeff of steel bar\n",
+ "alpha_c=17*10**-6 #Per degree celsius #Temperature coeff of copper bar\n",
+ "L_s=L_c=L=1000 #mm #Length of bar\n",
+ "t=80 #degree celsius\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A_s=b_s*t_s #Area of steel bar\n",
+ "A_c=b_c*t_c #Area of copper bar\n",
+ "\n",
+ "#Let P_s be the tensile force in steel bar and P_c be the compressive force in copper bar\n",
+ "#The equilibrium of forces gives \n",
+ "#P_s=2*P_c\n",
+ "\n",
+ "#Let dell=dell_s+dell_b\n",
+ "dell=(alpha_c-alpha_s)*t\n",
+ "\n",
+ "P_c=dell*(2*(A_s*E_s)**-1+1*(A_c*E_c)**-1)**-1\n",
+ "P_s=2*P_c\n",
+ "\n",
+ "#Stress in copper \n",
+ "sigma_c=P_c*A_c**-1\n",
+ "\n",
+ "#Stress in steel \n",
+ "sigma_s=P_s*A_s**-1\n",
+ "\n",
+ "#Change in Length of bar\n",
+ "dell_2=alpha_s*t*L+P_s*L_s*(A_s*E_s)**-1\n",
+ "\n",
+ "#result\n",
+ "print\"Stress in copper is\",round(sigma_c,2),\"N/mm**2\"\n",
+ "print\"Stress in steel is\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"the change in Length is\",round(dell_2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress in copper is 30.0 N/mm**2\n",
+ "Stress in steel is 20.0 N/mm**2\n",
+ "the change in Length is 1.06 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 73
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.35,Page No.50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=2*10**5 #N #Weight\n",
+ "L=1 #m #Length of each rod\n",
+ "A_c=A_s=A=500 #mm**2 #Area of each rod\n",
+ "t=40 #degree celsius #temperature\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of Elasticity of steel rod\n",
+ "E_c=1*10**5 #N/mm**2 #modulus of Elastictiy of copper rod\n",
+ "alpha_s=1.2*10**-5 #Per degree Celsius #temp coeff of steel rod\n",
+ "alpha_c=1.8*10**-5 #Per degree Celsius #Temp coeff of copper rod\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_s be the force in each one of the copper rods and P_s be the force in steel rod\n",
+ "#2*P_c+P_s=P .....................(1)\n",
+ "\n",
+ "#Extension of copper bar=Extension of steel bar\n",
+ "#P_s*L*(A_s*E_s)**-1=P_c*L*(A_c*E_c)**-1\n",
+ "#after simplifying above equation we get\n",
+ "#P_s=2*P_c ........................(2)\n",
+ "\n",
+ "#Now substituting value of P_s in Equation 1 we get\n",
+ "P_c=P*4**-1\n",
+ "P_s=2*P_c\n",
+ "\n",
+ "#Now EXtension due to copper Load\n",
+ "dell_1=P_c*L*1000*(A_c*E_c)**-1\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Due to rise of temperature of40 degree celsius\n",
+ "\n",
+ "#As bars are rigidly joined,let P_c1 be the compressive forccesdeveloped in copper bar and P_s1 be the tensile force in steel causing changes\n",
+ "#P_s1=2*P_c1\n",
+ "\n",
+ "#dell_s+dell_c=(alpha_c-alpha_s)*t*L .......................................(3)\n",
+ "#P_s1*L*(A_s*E_s)**-1+P_c1*L*(A_c*E_c)**-1=(alpha_c-alpha_s)*t*L ................(4)\n",
+ "#After substituting values in above equation and further simplifying we get,\n",
+ "P_c1=(alpha_c-alpha_s)*t*L*(2*(A_s*E_s)**-1+1*(A_c*E_c)**-1)**-1 #.................(5)\n",
+ "P_s1=2*P_c1\n",
+ "\n",
+ "#Extension of bar due to temperature rise\n",
+ "dell_2=alpha_s*t*L+P_s1*L*(A_s*E_s)**-1\n",
+ "\n",
+ "#Amount by which bar will descend\n",
+ "dell_3=dell_1+dell_2\n",
+ "\n",
+ "#Load carried by steel bar\n",
+ "P_S=P_s+P_s1\n",
+ "\n",
+ "#Load carried by copper bar\n",
+ "P_C=P_c-P_c1\n",
+ "\n",
+ "#Part-3\n",
+ "\n",
+ "#Let P_c1_1=P_c #For convenience\n",
+ "#Rise in temperature if Load is to be carried out by steel rod alone\n",
+ "P_c1_1=P_c\n",
+ "\n",
+ "#From equation 5 \n",
+ "t=P_c1_1*(2*(A_s*E_s)**-1+1*(A_c*E_c)**-1)*(alpha_c-alpha_s)**-1\n",
+ "\n",
+ "#result\n",
+ "print\"Extension Due top copper Load\",round(dell_1,2),\"mm\"\n",
+ "print\"Load carried by each rod:P_s\",round(P_s,2),\"N\"\n",
+ "print\" :P_c\",round(P_c,2),\"N\"\n",
+ "print\"Rise in Temperature of steel rod should be\",round(t,2),\"degree Celsius\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Extension Due top copper Load 1.0 mm\n",
+ "Load carried by each rod:P_s 100000.0 N\n",
+ " :P_c 50000.0 N\n",
+ "Rise in Temperature of steel rod should be 333.33 degree Celsius\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.36,Page No.53"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "t=40 #degree celsius #temperature\n",
+ "A_s=400 #mm**2 #Area of steel bar\n",
+ "A_c=600 #mm**2 #Area of copper bar\n",
+ "E_s=2*10**5 #N/mm**2 #Modulus of Elasticity of steel bar\n",
+ "E_c=1*10**5 #N/mm**2 #Modulus of Elasticity of copper bar\n",
+ "alpha_s=12*10**-6 #degree celsius #Temperature coeff of steel bar\n",
+ "alpha_c=18*10**-6 #degree celsius #Temperature coeff of copper bar\n",
+ "L_c=800 #mm #Length of copper bar\n",
+ "L_s=600 #mm #Length of steel bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_s be the tensile force in steel bar and P_c be the compressive force in copper bar\n",
+ "#Static Equilibrium obtained by taking moment about A\n",
+ "#P_c=2*P_s\n",
+ "\n",
+ "#From property of similar triangles we get\n",
+ "#(alpha_c*Lc-dell_c)*1**-1=(alpha_s*L_s-dell_s)*2**-1\n",
+ "#After substituting values in above equations and further simplifying we get\n",
+ "P_s=(2*alpha_c*L_c-alpha_s*L_s)*t*(L_s*(A_s*E_s)**-1+4*L_c*(A_c*E_c)**-1)**-1\n",
+ "P_c=2*P_s\n",
+ "\n",
+ "#Stress in steel rod\n",
+ "sigma_s=P_s*A_s**-1 #N/mm**2 \n",
+ "\n",
+ "#Stress in copper rod\n",
+ "sigma_c=P_c*A_c**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Stress in steel rod is\",round(sigma_s,2),\"N/mm**2\"\n",
+ "print\"STress in copper rod is\",round(sigma_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress in steel rod is 35.51 N/mm**2\n",
+ "STress in copper rod is 47.34 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 75
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.37,Page No.61"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=20 #mm #Diameter of bar\n",
+ "P=37.7*10**3 #N #Load\n",
+ "L=200 #mm #Guage Length \n",
+ "dell=0.12 #mm #Extension\n",
+ "dell_d=0.0036 #mm #contraction in diameter\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of bar\n",
+ "A=pi*4**-1*d**2\n",
+ "\n",
+ "#Let s and dell_s be the Linear strain and Lateral strain\n",
+ "s=dell*L**-1\n",
+ "dell_s=dell_d*d**-1\n",
+ "mu=dell_s*s**-1 #Poissoin's ratio \n",
+ "\n",
+ "#dell=P*L*(A*E)**-1\n",
+ "E=P*L*(dell*A)**-1 #N/mm**2 #Modulus of Elasticity of bar\n",
+ "\n",
+ "#Modulus of Rigidity\n",
+ "G=E*(2*(1+mu))**-1 #N/mm**2\n",
+ "\n",
+ "#Bulk Modulus \n",
+ "K=E*(3*(1-2*mu))**-1 #N/mm**2\n",
+ "\n",
+ "#result\n",
+ "print\"Poisson's ratio is\",round(mu,2)\n",
+ "print\"The Elastic constant are:E\",round(E,2)\n",
+ "print\" :G\",round(G,2)\n",
+ "print\" :K\",round(K,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Poisson's ratio is 0.3\n",
+ "The Elastic constant are:E 200004.71\n",
+ " :G 76924.89\n",
+ " :K 166670.59\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.38,Page No.62"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=100 #mm #Diameter of circular rod\n",
+ "P=1*10**6 #N #Tensile Force\n",
+ "mu=0.3 #Poisson's ratio\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus \n",
+ "L=500 #mm #Length of rod\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Modulus of Rigidity\n",
+ "G=E*(2*(1+mu))**-1 #N/mm**2\n",
+ "\n",
+ "#Bulk Modulus \n",
+ "K=E*(3*(1-2*mu))**-1 #N/mm**2\n",
+ "\n",
+ "A=pi*4**-1*d**2 #mm**2 #Area of Circular rod\n",
+ "#Let sigma be the Longitudinal stress\n",
+ "sigma=P*A**-1 #N/mm**2 \n",
+ "\n",
+ "s=sigma*E**-1 #Linear strain\n",
+ "e_x=s\n",
+ "\n",
+ "#Volumetric strain\n",
+ "e_v=e_x*(1-2*mu)\n",
+ "\n",
+ "v=pi*4**-1*d**2*L\n",
+ "#Change in VOlume\n",
+ "dell_v=e_v*v\n",
+ "\n",
+ "#Result\n",
+ "print\"Bulk Modulus is\",round(E,2),\"N/mm**2\"\n",
+ "print\"Modulus of Rigidity is\",round(G,2),\"N/mm**2\"\n",
+ "print\"The change in Volume is\",round(dell_v,2),\"mm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Bulk Modulus is 200000.0 N/mm**2\n",
+ "Modulus of Rigidity is 76923.08 N/mm**2\n",
+ "The change in Volume is 1000.0 mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 77
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.39,Page No.62"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=500 #mm #Length of rectangular cross section bar\n",
+ "A=20*40 #mm**2 #Area of rectangular cross section bar\n",
+ "P1=4*10**4 #N #Tensile Force on 20mm*40mm Faces\n",
+ "P2=2*10**5 #N #compressive force on 20mm*500mm Faces\n",
+ "P3=3*10**5 #N #Tensile Force on 40mm*500mm Faces\n",
+ "E=2*10**5 #N/mm**2 #young's Modulus \n",
+ "mu=0.3 #Poisson's Ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let P_x,P_y,P_z be the forces n x,y,z directions\n",
+ "\n",
+ "P_x=P1*A**-1\n",
+ "P_y=P2*A**-1\n",
+ "P_z=P3*A**-1\n",
+ "\n",
+ "#Let e_x,e_y,e_z be the strains in x,y,z directions\n",
+ "e_x=1*E**-1*(50+mu*20-15*mu)\n",
+ "e_y=1*E**-1*(-mu*50-20-mu*15)\n",
+ "e_z=1*E**-1*(-mu*50+mu*20+15)\n",
+ "\n",
+ "#Volumetric strain\n",
+ "e_v=e_x+e_y+e_z\n",
+ "\n",
+ "#Volume\n",
+ "V=20*40*500 #mm**3\n",
+ "#Change in Volume \n",
+ "dell_v=e_v*V #mm**3\n",
+ "\n",
+ "#Result\n",
+ "print\"The change in Volume is\",round(dell_v,2),\"mm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The change in Volume is 36.0 mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 78
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.41,Page No.65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=2.1*10**5 #N/mm**2 #Young's Modulus \n",
+ "G=0.78*10**5 #N/mm**2 #Modulus of Rigidity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now using the relation\n",
+ "#E=2*G*(1+mu)\n",
+ "mu=E*(2*G)**-1-1 #Poisson's ratio\n",
+ "\n",
+ "#Bulk Modulus \n",
+ "K=E*(3*(1-2*mu))**-1 #N/mm**2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"The Poisson's Ratio is\",round(mu,2)\n",
+ "print\"The modulus of Rigidity\",round(K,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Poisson's Ratio is 0.35\n",
+ "The modulus of Rigidity 227500.0 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 79
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.42,Page No.65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "G=0.4*10**5 #N/mm**2 #Modulus of rigidity\n",
+ "K=0.75*10**5 #N/mm**2 #Bulk Modulus \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Young's Modulus\n",
+ "E=9*G*K*(3*K+G)**-1\n",
+ "\n",
+ "#Now from the relation\n",
+ "#E=2*G(1+2*mu)\n",
+ "mu=E*(2*G)**-1-1 #POissoin's ratio \n",
+ "\n",
+ "#result\n",
+ "print\"Young's modulus is\",round(E,2),\"N/mm**2\"\n",
+ "print\"Poissoin's ratio is\",round(mu,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Young's modulus is 101886.79 N/mm**2\n",
+ "Poissoin's ratio is 0.27\n"
+ ]
+ }
+ ],
+ "prompt_number": 80
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.43,Page No.65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "b=60 #mm #width of bar\n",
+ "d=30 #mm #depth of bar\n",
+ "L=200 #mm #Length of bar\n",
+ "A=30*60 #mm**2 #Area of bar\n",
+ "A2=30*200 #mm**2 #Area of bar along which expansion is restrained\n",
+ "P=180*10**3 #N #Compressive force\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#The bar is restrained from expanding in Y direction\n",
+ "P_z=0\n",
+ "P_x=P*A**-1 #stress developed in x direction\n",
+ "\n",
+ "#Now taking compressive strain as positive\n",
+ "#e_x=P_x*E**-1-mu*P_y*E**-1 .......................(1)\n",
+ "#e_y=-mu*P_x*E**-1+P_y*E**-1 ....................(2)\n",
+ "#e_z=-mu*P_x*E**-1-mu*P_y*E**-1 ......................(3)\n",
+ "\n",
+ "#Part-1\n",
+ "#When it is fully restrained\n",
+ "e_y=0\n",
+ "P_y=30 #N/mm**2 \n",
+ "e_x=P_x*E**-1-mu*P_y*E**-1\n",
+ "e_z=-mu*P_x*E**-1-mu*P_y*E**-1\n",
+ "\n",
+ "#Change in Length \n",
+ "dell_l=e_x*L #mm\n",
+ "\n",
+ "#Change in width\n",
+ "dell_b=b*e_y\n",
+ "\n",
+ "#change in Depth\n",
+ "dell_d=d*e_z\n",
+ "\n",
+ "#Volume of bar\n",
+ "V=b*d*L #mm**3\n",
+ "#Change in Volume\n",
+ "e_v=(e_x+e_y+e_z)*V #mm**3\n",
+ "\n",
+ "#Part-2\n",
+ "#When 50% is restrained\n",
+ "\n",
+ "#Free strain in Y direction\n",
+ "e_y1=mu*P_x*E**-1\n",
+ "\n",
+ "#As 50% is restrained,so\n",
+ "e_y2=-50*100**-1*e_y1\n",
+ "\n",
+ "#But form Equation 2 we have e_y=-mu*P_x*E**-1+P_y*E**-1 \n",
+ "#After substituting values in above equation and furthe simplifying we get\n",
+ "P_y=e_y2*E+d\n",
+ "\n",
+ "e_x2=P_x*E**-1-mu*P_y*E**-1 \n",
+ "e_z2=-mu*P_x*E**-1-mu*P_y*E**-1\n",
+ "\n",
+ "#Change in Length \n",
+ "dell_l2=e_x2*L #mm\n",
+ "\n",
+ "#Change in width\n",
+ "dell_b2=b*e_y2\n",
+ "\n",
+ "#change in Depth\n",
+ "dell_d2=d*e_z2\n",
+ "\n",
+ "#Change in Volume\n",
+ "e_v2=(e_x2+e_y2+e_z2)*V #mm**3\n",
+ "\n",
+ "#REsult\n",
+ "print\"Change in Dimension of bar is:dell_l\",round(dell_l,2),\"mm\"\n",
+ "print\" :dell_b\",round(dell_b,4),\"mm\"\n",
+ "print\" :dell_d\",round(dell_d,2),\"mm\"\n",
+ "print\"Change in Volume is\",round(e_v,2),\"mm**3\"\n",
+ "print\"Changes in material when only 50% of expansion can be reatrained:dell_l2\",round(dell_l2,2),\"mm\"\n",
+ "print\" :dell_b2\",round(dell_b2,4),\"mm\"\n",
+ "print\" :dell_d2\",round(dell_d2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in Dimension of bar is:dell_l 0.09 mm\n",
+ " :dell_b 0.0 mm\n",
+ " :dell_d -0.01 mm\n",
+ "Change in Volume is 93.6 mm**3\n",
+ "Changes in material when only 50% of expansion can be reatrained:dell_l2 0.1 mm\n",
+ " :dell_b2 -0.0045 mm\n",
+ " :dell_d2 -0.01 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 81
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.44,Page No.72"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=10*10**3 #N #Load\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus\n",
+ "d2=12 #mm #Diameter of bar1\n",
+ "d1=16 #mm #diameter of bar2\n",
+ "L1=200 #mm #Length of bar1\n",
+ "L2=500 #mm #Length of bar2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let A1 and A2 be the cross Area of Bar1 & bar2 respectively\n",
+ "A1=pi*4**-1*d1**2 #mm**2\n",
+ "A2=pi*4**-1*d2**2 #mm**2\n",
+ "\n",
+ "#Let p1 and p2 be the stress in Bar1 nad bar2 respectively\n",
+ "p1=P*A1**-1 #N/mm**2\n",
+ "p2=P*A2**-1 #N/mm**2\n",
+ "\n",
+ "#Let V1 nad V2 be the Volume of of Bar1 and Bar2\n",
+ "V1=A1*(L1+L1)\n",
+ "V2=A2*L2\n",
+ "\n",
+ "#Let E be the strain Energy stored in the bar\n",
+ "E=p1**2*(2*E)**-1*V1+p2**2*V2*(2*E)**-1\n",
+ "\n",
+ "#result\n",
+ "print\"The Strain Energy stored in Bar is\",round(E,2),\"N-mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Strain Energy stored in Bar is 1602.6 N-mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 82
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.45,Page No.73"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Bar-A\n",
+ "d1=30 #mm #Diameter of bar1\n",
+ "L=600 #mm #length of bar1\n",
+ "\n",
+ "#Bar-B\n",
+ "d2=30 #mm #Diameter of bar2\n",
+ "d3=20 #mm #Diameter of bar2\n",
+ "L2=600 #mm #length of bar2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of bar-A\n",
+ "A1=pi*4**-1*d1**2\n",
+ "\n",
+ "#Area of bar-B\n",
+ "A2=pi*4**-1*d2**2\n",
+ "A3=pi*4**-1*d3**2\n",
+ "\n",
+ "#let SE be the Strain Energy\n",
+ "#Strain Energy stored in Bar-A\n",
+ "#SE=p**2*(2*E)**-1*V\n",
+ "#After substituting values and simolifying further we get\n",
+ "#SE=P**2*E**-1*0.4244\n",
+ "\n",
+ "#Strain Energy stored in Bar-B\n",
+ "#SE2=p1**2*V1*(2*E)**-1+p2**2*V2*(2*E)**-1\n",
+ "#After substituting values and simolifying further we get\n",
+ "#SE2=0.6897*P**2*E**-1\n",
+ "\n",
+ "#Let X be the ratio of SE in Bar-B and SE in Bar-A\n",
+ "X=0.6897*0.4244**-1\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#When Max stress is produced is same:Let p be the max stress produced\n",
+ "\n",
+ "#Stress in bar A is p throughout \n",
+ "#In bar B:stress in 20mm dia.portion=p2=p\n",
+ "\n",
+ "#Stress in 30 mm dia.portion\n",
+ "#p1=P*A2*A3**-1\n",
+ "#After substituting values and simolifying further we get\n",
+ "#p1=4*9**-1*p\n",
+ "\n",
+ "#Strain Energy in bar A\n",
+ "#SE_1=p**2*(2*E)**-1*A1*L1\n",
+ "#After substituting values and simolifying further we get\n",
+ "#SE_1=67500*p**2*pi*E**-1\n",
+ "\n",
+ "#Strain Energy in bar B\n",
+ "#SE_2=p1**2*V1*(2*E)**-1+p2**2*V2*(2*E)**-1\n",
+ "#After substituting values and simolifying further we get\n",
+ "#SE_2=21666.67*pi*p**2*E**-1\n",
+ "\n",
+ "#Let Y be the Ratio of SE in bar B and SE in bar A\n",
+ "Y=21666.67*67500**-1\n",
+ "\n",
+ "#result\n",
+ "print\"Gradually applied Load is\",round(X,2)\n",
+ "print\"Gradually applied Load is\",round(Y,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Gradually applied Load is 1.63\n",
+ "Gradually applied Load is 0.32\n"
+ ]
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.46,Page No.74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables \n",
+ "\n",
+ "W=100 #N #Load\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus \n",
+ "h=60 #mm #Height through Load falls down\n",
+ "L=400 #mm #Length of collar\n",
+ "d=30 #mm #diameter of bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A=pi*4**-1*d**2 #mm**2 #Area of bar\n",
+ "\n",
+ "#Instantaneous stress produced is\n",
+ "p=W*A**-1*(1+(1+(2*A*E*h*(W*L)**-1))**0.5)\n",
+ "\n",
+ "#Now the EXtension of the bar is neglected in calculating work doneby the Load,then\n",
+ "P=(2*E*h*W*(A*L)**-1)**0.5\n",
+ "\n",
+ "#Let percentage error be denoted by E1\n",
+ "#Percentage error in approximating is\n",
+ "E1=(p-P)*p**-1*100\n",
+ "\n",
+ "#Instantaneous Extension produced is\n",
+ "dell_l=round(P,3)*E**-1*L\n",
+ "\n",
+ "#Result\n",
+ "print\"The Instantaneous stress is\",round(p,2),\"N/mm\"\n",
+ "print\"Percentage Error is\",round(E1,2)\n",
+ "print\"The Instantaneous extension is\",round(dell_l,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Instantaneous stress is 92.27 N/mm\n",
+ "Percentage Error is 0.15\n",
+ "The Instantaneous extension is 0.18 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 84
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.47,Page No.75"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=20 #mm #Diameter of steel bar\n",
+ "L=1000 #mm #Length of bar\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus \n",
+ "p=300 #N/mm**2 #max Permissible stress\n",
+ "h=50 #mm #Height through which weight will fall\n",
+ "w=600 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#ARea of steel bar\n",
+ "A=pi*4**-1*d**2\n",
+ "\n",
+ "#Instantaneous extension is\n",
+ "dell_l=p*L*E**-1 #mm \n",
+ "\n",
+ "#Work done by Load \n",
+ "#W=W1*(h+dell_l)\n",
+ "\n",
+ "#Volume of bar\n",
+ "V=round(A,2)*L\n",
+ "#Let E1 be the strain Energy\n",
+ "E1=p**2*(2*E)**-1*V\n",
+ "\n",
+ "#Answer in Book for Strain Energy is Incorrect \n",
+ "\n",
+ "#Now Equating Workdone by Load to strain Energy \n",
+ "W1=E1*51.5**-1\n",
+ "\n",
+ "#Now when w=600 N\n",
+ "#Let W2 be the Work done by the Load\n",
+ "#W2=w(h2*dell_l)\n",
+ "\n",
+ "h=E1*w**-1-dell_l\n",
+ "\n",
+ "#Result\n",
+ "print\"The Max Lodad which can Fall from a height of 50 mm on the collar is\",round(W1,2),\"N\"\n",
+ "print\"the Max Height from which a 600 N Load can fall on the collar is\",round(h,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Max Lodad which can Fall from a height of 50 mm on the collar is 1372.54 N\n",
+ "the Max Height from which a 600 N Load can fall on the collar is 116.31 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 85
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.48,Page No.76"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D_s=30 #mm #Diameter of steel rod\n",
+ "d=30 #mm #Internal Diameter of copper tube\n",
+ "D=40#mm #External Diameter of copper tube\n",
+ "E_s=2*10**5 #N/mm**2 #Young's Modulus of Steel rod\n",
+ "E_c=1*10**5#N/mm**2 #Young's Modulus of copper tube\n",
+ "P=100 #N #Load\n",
+ "h=40 #mm #height from which Load falls\n",
+ "L=800 #mm #Length \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area of steel rod\n",
+ "A_s=pi*4**-1*D_s**2\n",
+ "\n",
+ "#Area of copper tube\n",
+ "A_c=pi*4**-1*(D**2-d**2)\n",
+ "\n",
+ "#But Dell_s=dell_c=dell\n",
+ "#p_s*E_s**-1*L=p_c*L*E_c\n",
+ "#After simplifying furthe we get\n",
+ "#p_s=2*p_c\n",
+ "\n",
+ "#Now Equating internal Energy to Workdone we get\n",
+ "p_c=(2*P*h*L**-1*(4*A_s*E_s**-1+A_c*E_c**-1))**0.5\n",
+ "p_s=2*p_c\n",
+ "\n",
+ "#Result\n",
+ "print\"STress produced in steel is\",round(p_s,2),\"N/mm**2\"\n",
+ "print\"STress produced in copper is\",round(p_c,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "STress produced in steel is 0.89 N/mm**2\n",
+ "STress produced in copper is 0.44 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 86
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2.49,Page No.77"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "dell=0.25 #mm #Instantaneous Extension\n",
+ "\n",
+ "#Bar-A\n",
+ "b1=25 #mm #width of bar\n",
+ "D1=500 #mm #Depth of bar\n",
+ "\n",
+ "#Bar-B\n",
+ "b2_1=25 #mm #width of upper bar\n",
+ "b2_2=15 #mm #Width of Lower Bar\n",
+ "L2=200 #mm #Length of upper bar\n",
+ "L1=300 #mm #Length of Lower bar\n",
+ "\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus of bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Strain\n",
+ "e=dell*D1**-1 \n",
+ "\n",
+ "#Load\n",
+ "p=e*E\n",
+ "\n",
+ "#Area of bar-A\n",
+ "A=pi*4**-1*25**2\n",
+ "\n",
+ "#Volume of bar-A\n",
+ "V=A*D1\n",
+ "\n",
+ "#Let E1 be the Energy of Blow\n",
+ "#Energy of Blow\n",
+ "E1=p**2*(E)**-1*V\n",
+ "\n",
+ "#Let p2 be the Max stress in bar B When this blow is applied.\n",
+ "#the max stress occurs in the 15mm dia. portion,Hence, the stress in 25 mm dia.portion is\n",
+ "#p2*pi*4**-1*b2_2**2*(pi*4**-1*b2_2**2=0.36*p\n",
+ "\n",
+ "#Strain Energy of bar B\n",
+ "#E2=p**2*(2*E)**-1*v1+1*(2*E)**-1*(0.36*p2)**2*v2\n",
+ "#After substituting values and Further substituting values we get\n",
+ "#E2=0.1643445*p2**2\n",
+ "\n",
+ "#Equating it to Energy of applied blow,we get\n",
+ "p2=(12271.846*0.1643445**-1)**0.5\n",
+ "\n",
+ "#Stress in top portion\n",
+ "sigma=0.36*p2\n",
+ "\n",
+ "#Extension in Bar-1\n",
+ "dell_1=p2*E**-1*L1\n",
+ "\n",
+ "#Extension in Bar-2\n",
+ "dell_2=0.36*p2*E**-1*L2\n",
+ "\n",
+ "#Extension of bar\n",
+ "dell_3=dell_1+dell_2\n",
+ "\n",
+ "#Result\n",
+ "print\"Instantaneous Max stress is\",round(sigma,2),\"N/mm**2\"\n",
+ "print\"extension in Bar is\",round(dell_3,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Instantaneous Max stress is 98.37 N/mm**2\n",
+ "extension in Bar is 0.51 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_3_xv1zQ8m.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_3_xv1zQ8m.ipynb new file mode 100644 index 00000000..43679bce --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_3_xv1zQ8m.ipynb @@ -0,0 +1,1588 @@ +{
+ "metadata": {
+ "name": "chapter 3.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3:Shear Force And Bending Moment Diagrams in Statically Determinate Beams"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.1,Page No.100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AC=L_CD=1 #m #Length of AC & CD\n",
+ "L_DB=1.5 #m #Lengh of DB\n",
+ "L=3.5 #m #Length of Beam\n",
+ "F_B=10 #KN #Force at pt B\n",
+ "F_C=F_D=20 #KN #Force at pt C & D\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R_A=F_C+F_D+F_B #KN #Force at support A \n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At pt B\n",
+ "V_B1=0 #KN \n",
+ "V_B2=F_B #KN\n",
+ "\n",
+ "#S.F At pt D\n",
+ "V_D1=V_B2 #KN\n",
+ "V_D2=V_D1+F_D #KN\n",
+ "\n",
+ "#S.F At pt C \n",
+ "V_C1=V_D2 #KN\n",
+ "V_C2=V_D2+F_C #KN\n",
+ "\n",
+ "#S.F At Pt A\n",
+ "V_A1=V_C2 #KN\n",
+ "V_A2=V_C2-R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M AT Pt D\n",
+ "M_D=F_B*L_DB #KN.m\n",
+ "\n",
+ "#B.M At pt C\n",
+ "M_C=F_B*(L_DB+L_CD)+F_D*L_CD #KN.m\n",
+ "\n",
+ "#B.M At pt A\n",
+ "M_A=F_B*L+F_D*(L_CD+L_AC)+F_C*L_AC\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB,L_CD+L_DB,L_CD+L_DB,L_CD+L_DB+L_AC,L_CD+L_DB+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEPCAYAAABP1MOPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGkFJREFUeJzt3XtwVOXhxvHnhAA1QLhnY8HfhOFOUBIupmrFxZggUGIg\nEMtYGkEGRwatnWkRO45ipTZMbZXSmV4cBqlaK5UpxBuCxUVFEKSxtKUKIoEAySqGlGsmt/f3B2U1\nJptNlpy98H4/Mzuzl7NnH8+afTjnPRfHGGMEALBWQrQDAACiiyIAAMtRBABgOYoAACxHEQCA5SgC\nALBcotsfkJaWpuTkZHXq1EmdO3fWrl27VFVVpdtvv12HDx9WWlqa1q1bp169erkdBQDQAtfXCBzH\nkc/nU2lpqXbt2iVJKi4uVk5Ojvbv36/s7GwVFxe7HQMAEERENg19/Zi1kpISFRUVS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r9+vVatWqXjx49r0qRJys7ODsz/oYceUkZG\nhq677jp99tlnzT7//vvv12OPPSZJeuONN3TTTTc1m+aZZ57Rvffe22quryorK9OIESM0b948DR8+\nXHfccYc2b96sG264QcOGDdPu3bsvfcEBF4V5XQQgKrp3797suZtvvtkcOHDAGHPhIiI333yzMcaY\noqIiU1hYaIwxZt++fWbIkCHGGGP+8pe/mKlTpxpjjKmsrDS9e/c269evN8YYk5aWZr744ovAvB3H\nMa+88ooxxpglS5aY5cuXN/v8c+fOmfT0dLN161YzfPhw8+mnnzab5plnnjGLFy9uNddXHTp0yCQm\nJpp//etfprGx0YwbN87Mnz/fGGPMxo0bTX5+fshlBbRV1M41BHSEM2fOaMeOHZo9e3bgudraWkkX\nTht88ayYI0eODFxY5N1331VhYaEkBc7nHkyXLl00bdo0SdK4ceO0ZcuWZtNcccUVevrpp3XjjTdq\n5cqVGjRoUKuZg+X6ukGDBik9PV2SlJ6erltuuUWSNHr0aJWVlbX6GUB7UASIa42NjerVq1fQa8p2\n6dIlcN/8bzjMcZwm55o3rQyTde7cOXA/ISFB9fX1LU63d+9e9e/fv9nFiYJpKdfXde3atclnX3xP\nazmAcDBGgLiWnJysQYMG6aWXXpJ04Ud17969rb7nhhtu0Pr162WMkd/v17Zt2wKv9ejRQ6dOnWpX\nhsOHD+tXv/qVSktL9frrr2vXrl3NpmmtbIBoowgQV86dO6errroqcHvqqaf0/PPPa/Xq1crIyNDo\n0aNVUlISmP6rV5W6eL+goEADBw7UqFGjNHfuXI0dO1Y9e/aUJC1cuFC33nprYLD46+//+lWqjDFa\nsGCBfvnLXyo1NVWrV6/WggULApungr032P2vvyfY41i6WhbiH7uPwkpnz55Vt27d9MUXXygrK0vv\nvfeeUlJSoh0LiArGCGCl73znO6qurlZtba0efvhhSgBWY40AACzHGAEAWI4iAADLUQQAYDmKAAAs\nRxEAgOUoAgCw3P8DfIlLuPJXvGsAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x579c810>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYlOXeB/DvoGApCC6Xw6XowRcjGEA2j3jCZcjQxA1N\nsc0o1/fyNevUm9miWacCT5tmp9WN0lcxPSmkolZCBxWlQK2DS6EoKqCJKIiIwPP+MYeR0Rlm41lm\n5vu5Lq4Dsz2/Hjr8uu/7+9yPShAEAURERLdxk7sAIiJSJjYIIiIyig2CiIiMYoMgIiKj2CCIiMgo\nNggiIjJKtAYxbdo0qNVqhIWF6R+rrKxEfHw8AgMDMWLECFRVVemfS0lJwT333IOgoCDs2rVLrLKI\niMhCojWIp556CllZWQaPpaamIj4+HidOnMDw4cORmpoKACgqKkJ6ejqKioqQlZWFOXPmoKmpSazS\niIjIAqI1iCFDhqBLly4Gj2VkZCA5ORkAkJycjC1btgAAtm7dikceeQTu7u7w9/dHv379cPDgQbFK\nIyIiC0i6BlFRUQG1Wg0AUKvVqKioAACcP38efn5++tf5+fnh3LlzUpZGRES3kW2RWqVSQaVStfo8\nERHJp72UB1Or1SgvL4evry/KysrQo0cPAECvXr1QWlqqf93Zs2fRq1evO97fr18/FBcXS1YvEZEz\nCAgIwO+//271+yQdQYwbNw5paWkAgLS0NCQmJuof37BhA+rr63Hq1Cn89ttvGDhw4B3vLy4uhiAI\nDvv12muvyV4D65e/DtbveF+OXLsgCDb/h7VoI4hHHnkEOTk5+OOPP9C7d2+88cYbWLBgAZKSkrBy\n5Ur4+/tj48aNAACNRoOkpCRoNBq0b98eH3/8MaeYiIhkJlqDWL9+vdHHv/vuO6OPv/zyy3j55ZfF\nKoeIiKzEK6klpNVq5S7BLqxfXqxfPo5cuz1UgiA4zA2DVCoVHKhcIiJFsPVvJ0cQRERkFBsEEREZ\nxQZBRERGsUEQEZFRbBBERE5s/37b38sGQU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Iwvz584U3\n33zzjuOvWbNGmDt3bqvHbOnUqVNC+/bthV9//VVoamoSoqOjhWnTpgmCIAhbt24VEhMTrT0tRFZR\n3F5MRGKoqanB/v37MXnyZP1j9fX1AHTbNTfvPBocHKy/AUxubi6SkpIAQL+/vikeHh4YPXo0ACA6\nOhq7d+9utR5Tx7xd3759ERISAgAICQnBAw88AAAIDQ1FSUlJq8cgshcbBLmEpqYm+Pj4mLyHsIeH\nh/574T/LciqVymDvf6GV5Tp3d3f9925ubmhoaDBbk7Fj3q5Dhw4Gn9v8HkuPQWQPrkGQS+jcuTP6\n9u2LTZs2AdD9QT5y5Eir74mNjcXmzZshCAIqKiqQk5Ojf87LywtXr161qobWGgyRErFBkFOqra1F\n79699V9Lly7FunXrsHLlSkRERCA0NBQZGRn617e8K1jz9w899BD8/Pyg0WgwdepUREVFwdvbGwAw\na9YsPPjgg/pF6tvfb+wuY7c/bur7299j6mcl3cmMnBNjrkStuHbtGjp16oRLly4hJiYG+/btQ48e\nPeQui0gSXIMgasWYMWNQVVWF+vp6LFq0iM2BXApHEEREZBTXIIiIyCg2CCIiMooNgoiIjGKDICIi\no9ggiIjIKDYIIiIy6v8BsxKV3Pt7cnUAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56c0970>"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.2,Page No.101"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "w1=10 #KN/m #u.d.L\n",
+ "F_D=20 #KN #Force at pt D\n",
+ "F_C=30 #KN #Force at pt C\n",
+ "L_DB=4 #m #Length of DB\n",
+ "L_CD=L_AC=2 #m #Length of AC & CD\n",
+ "L=8 #m #Length of Beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A And R_B be the Reactions at pt A and B \n",
+ "#R_A+R_B=90 \n",
+ "#Now Taking moment at A,M_A we get\n",
+ "R_A=(w1*L_DB*(L_DB*2**-1)+F_D*L_DB+F_C*(L_CD+L_DB))*L**-1\n",
+ "R_B=90-R_A\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At Pt B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F At pt D\n",
+ "V_D1=R_B-w1*L_DB #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F at Pt C\n",
+ "V_C1=V_D2 #KN\n",
+ "V_C2=V_C1-F_C \n",
+ "\n",
+ "#S.F at PT A\n",
+ "V_A1=V_C2 #KN\n",
+ "V_A2=V_C2+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M At Pt D\n",
+ "M_D=-R_B*L_DB+w1*L_DB*L_DB*2**-1 #KN.m\n",
+ "\n",
+ "#B.M At PT C\n",
+ "M_C=-R_B*(L_DB+L_CD)+w1*L_DB*(L_DB*2**-1+L_CD)+F_D*L_CD #KN.m\n",
+ "\n",
+ "#B.M At Pt A\n",
+ "M_A=-R_B*L+w1*L_DB*(L_DB*2**-1+L_CD+L_AC)+F_D*(L_CD+L_AC)+F_C*L_AC\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB,L_CD+L_DB,L_CD+L_DB,L_CD+L_DB+L_AC,L_CD+L_DB+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D1,V_D2,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB+L_CD,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH9FJREFUeJzt3XtUlHX+B/D3IGDJRUERiqEdFkQYUBjwWrmCiqUGeUEK\nMk1T98h6qbaMzumYv2MKapau2ba55qU8aS2nQDNXXBzFDC9hkcsmKExxtVYkRTQEvr8/WJ9AZhiQ\nmXlmmPfrnDnNDDPMe92at8/381wUQggBIiIiAA5yByAiIuvBUiAiIglLgYiIJCwFIiKSsBSIiEjC\nUiAiIomspVBbW4uEhASEhIRArVbj5MmTqKmpQWxsLIKCgjBx4kTU1tbKGZGIyK7IWgrLli3D5MmT\n8Z///AcFBQUIDg5Geno6YmNjUVRUhPHjxyM9PV3OiEREdkUh18Frv/zyCzQaDUpKSto8HxwcjKNH\nj8Lb2xvV1dWIjo7G999/L0dEIiK7I9uWQmlpKby8vDB37lxERkZiwYIFuH79Oi5dugRvb28AgLe3\nNy5duiRXRCIiuyNbKTQ2NiI/Px8pKSnIz8+Hi4tLu6UihUIBhUIhU0IiIjskZFJVVSVUKpX0ODc3\nV0yePFkEBweLqqoqIYQQlZWVYvDgwe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5eP3119t9fn19vQgNDRU5OTli8ODBoqSk\npN1rduzYIRYvXtxhrtZKS0uFo6OjOHfunGhubhZRUVFi3rx5QgghMjMzxdSpU43+WRHp4yh3KRGZ\nU11dHb766qs2pzRuaGgA0HIq9ttnhg0JCcGlS5cAAMePH0diYiIASNdvMMTZ2RlTpkwBAERFRSE7\nO7vda+69915s3boVY8aMwaZNm+Dv799hZkO57uTv7y+dJC40NFQ6P35YWBh0Ol2Hn0FkCEuBerTm\n5mb069cPZ8+e1ftzZ2dn6b7433hNoVC0uSaC6GDs5uTkJN13cHBAY2Oj3tcVFBTAy8ur0xeF0pfr\nTr17927z2bff01EOImM4U6Aezd3dHf7+/vjHP/4BoOULtqCgoMP3PPTQQ8jIyIAQApcuXcLRo0el\nn7m5ueHq1atdyvDDDz/gzTfflC5so+/6BR0VD5ElsRSoR6mvr4efn59027hxI3bv3o1t27YhIiIC\nYWFhyMrKkl7f+mp+t+/PmDEDSqUSarUaTz/9NCIjI6XrAy9cuBCPPvqoNGi+8/13Xh1QCIH58+dj\nw4YN8PHxwbZt2zB//nxpCcvQew3dv/M9hh7zKoV0t7hLKpEe169fh4uLCy5fvoyRI0fixIkTGDhw\noNyxiMyOMwUiPR577DHU1taioaEBK1asYCGQ3eCWAhERSThTICIiCUuBiIgkLAUiIpKwFIiISMJS\nICIiCUuBiIgk/w9P4ODmR+1IBgAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5773dd0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtcVWW6B/DfRkArRDMtCnBguAQICoKoY2OooKCRl5QE\nk8x0nGrSTnPTOnk5qWTpHC8Nmh3MmaOZF0K0ERM9YqUSiDZadBJUTlzE1BFRURF4zx9LdiBs9oK9\n9l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c6cORgyZAh8fHyQnp4OQOqW+/LLLyMwMBAjR47EmDFjkJ6ejjVr1qCiogLD\nhg1rdvr83//93xEaGorBgwfjp59+avH9N27ciFdffbXN79lUSUkJAgIC8MILL+Dxxx/HlClTsG/f\nPgwZMgT+/v7Iz883x78msldmns9BpFkuLi4tHhs+fLgoKioSQgiRm5srhg8fLoQQ4vnnnxcJCQlC\nCCEKCwuFr6+vEEKI7du3i9GjRwshhKisrBQPPvigSE9PF0K0HEak0+nEZ599JoQQ4k9/+pNYvHhx\ni++/ceNG8bvf/a7N79nUuXPnhKOjo/j2229FQ0ODCA8PF9OnTxdCCJGZmSnGjRvX3n8tRAbZRC8p\nIiVcv34dR48ebdaKura2FoDU/6mxa29gYCAuXLgAAPjqq6+QkJAAAPqZHIY4OztjzJgxAIDw8HBk\nZ2e3mcfQ97yXt7e3vgFfnz599PMMgoODUVJS0ub3IGoPFgyiuxoaGtC9e3ecOHGi1c87Ozvr3xd3\nt/50Ol2zGReijS1BJycn/fsODg6oq6szmqm173mvzp07N3vdxufI/R5EcnEPg+guV1dXeHt7Y8eO\nHQCkH9AnT55s8zlDhgxBeno6hBC4cOECDh06pP9c165dUV1d3a4MbRUcIrWxYJDdqqmpgaenp/5t\n5cqV2Lx5M9LS0hAaGorg4GDs2rVL//VN25I3vv/MM8/Aw8MDQUFBmDp1Kvr376+fMf2b3/wGsbGx\n+k3ve5/fWpvzex839P69zzH0sVZbqZN14m21RCa6ceMGHnjgAVy+fBkDBw7EkSNH8PDDD6sdi0hx\n3MMgMtFTTz2Fqqoq1NbWYv78+SwWZLO4wiAiIlm4h0FERLKwYBARkSwsGEREJAsLBhERycKCQURE\nsrBgEBGRLP8PAOBgfwTG6goAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x4e5e2f0>"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.3,Page No.102"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_DB=L_CD=1.5 #m #Length of DB & CD\n",
+ "L_AC=3 #m #Length of AC\n",
+ "F_D=80 #KN #Force at Pt D\n",
+ "w=40 #KN/m #u.v.l\n",
+ "L=6 #Length of beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the Reactions at Pt A & B respectively\n",
+ "#R_A+R_B=140 \n",
+ "#Taking moment at B we get,M_B\n",
+ "R_A=(1*2**-1*L_AC*w*(1*3**-1*L_AC+(L_CD+L_DB))+F_D*L_DB)*L**-1\n",
+ "R_B=140-R_A\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at B\n",
+ "V_B1=0 #KN\n",
+ "V_B2=R_B #KN\n",
+ "\n",
+ "#S.F At D\n",
+ "V_D1=V_B2 #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F at C\n",
+ "V_C=V_D2 #KN\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A1=V_C-1*2**-1*w*L_AC #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M At D\n",
+ "M_D=-R_B*L_DB\n",
+ "\n",
+ "#B.M At C\n",
+ "M_C=F_D*L_CD-R_B*(L_DB+L_CD)\n",
+ "\n",
+ "#B.M At A\n",
+ "M_A=F_D*(L_CD+L_AC)-R_B*L+1*2**-1*w*L_AC*(1*3**-1*L_AC)+R_A\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB,L_DB+L_CD,L_DB+L_CD+L_AC,L_DB+L_CD+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D1,V_D2,V_C,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_DB,L_CD+L_DB,L_AC+L_CD+L_DB]\n",
+ "Y2=[M_B,M_D,M_C,M_A]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH7dJREFUeJzt3X9UVGX+B/D3RUZbUTNSoRy24QsiDKYgKv5YcxAHTYNI\nkRO4SSjZiWObtWW222lpzcB17Wia267HlLRNTXaDrEiJRsVCLdjjtqSggvE7VyJFNGR4vn+w3EQY\nBmNm7vx4v86Z48yde7mfUc+8uc/n3udKQggBIiIiAG5KF0BERPaDoUBERDKGAhERyRgKREQkYygQ\nEZGMoUBERDJFQyE9PR3BwcG49957kZiYiB9//BENDQ3Q6/UICAhAVFQUGhsblSyRiMilKBYKFRUV\n2Lp1K4qKivDvf/8bRqMRu3fvRkZGBvR6PUpLSxEZGYmMjAylSiQicjmKhcKQIUOgUqnQ3NyM1tZW\nNDc34+6770ZOTg6SkpIAAElJSXj//feVKpGIyOUoFgqenp747W9/i1/+8p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2Lu3LlCCCHq6urEHXfcIbKysoQQXW/EIkmS2L9/vxBCiJUr\nV4pXXnmly/6bm5tFcHCwyM/PF6NHjxbnzp3rss6OHTvE8uXLe6zrRuXl5cLd3V18/fXXoq2tTYSF\nhYklS5YIIYTIzs4WsbGxZv+uiLrjUHMfEd2qpqYmfPHFF1i4cKG8rKWlBUD7/D0dM7UGBQWhvr4e\nAFBQUID4+HgAkO+NYEr//v0xb948AEBYWBgOHjzYZZ1f/OIX2Lp1K6ZPn46NGzfC19e3x5pN1XUz\nX19feVKz4OBgzJo1CwAwZswYVFRU9LgPIlMYCuTU2traMHToUBQXF3f7fv/+/eXn4n/tNUmSOt0z\nQPTQdlOpVPJzNzc3tLa2drveyZMnMXz48F7fFKq7um42YMCATvvu2KanOojMYU+BnNqQIUPg6+uL\nffv2AWj/gj158mSP20ybNg1ZWVkQQqC+vh6HDh2S3xs8eDAuXbp0SzWcP38er732mnwDl+7m6e8p\neIhsiaFATqW5uRk+Pj7yY8OGDXjnnXewbds2hISEYMyYMcjJyZHXv3EK6I7nCxYsgFqthlarxSOP\nPILx48fL97NdtmwZ5syZIzeab97+5imlhRBISUnB+vXr4e3tjW3btiElJUUewjK1rannN29j6rWz\nTW1NtsNTUom6ceXKFXh4eODixYsIDw/H559/jhEjRihdFpHVsadA1I0HHngAjY2NaGlpwUsvvcRA\nIJfBIwUiIpKxp0BERDKGAhERyRgKREQkYygQEZGMoUBERDKGAhERyf4fYbq4IcfF0QUAAAAASUVO\nRK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56f0ef0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlHX+B/D3cHNTUbvrb0bD5RKMkNwUy83GBBSJElMK\nTFPT7eRmtrW1eto13V1Fa91Ki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008/3eV72jt9+rQQEBAgHD16VGhtbRUSEhKEmTNn\nCoIgCAUFBcKECRPc/c9C5JAm9pIiEsOlS5ewd+9eTJ482fZYU1MTAOseSW276EZFReHs2bMAgF27\ndiErKwsAbGddOBIUFIT09HQAQEJCAoqLi7usx9F7Xm/w4MG2DeOGDBmC5ORkAEB0dDSqqqq6fA8i\nd7BhEP2otbUV/fr1Q3l5eadfDwoKsv1Z+HH0p9Pp2p0DIXQxEgwMDLT92c/PD83NzU5r6uw9r9ej\nR492r9v2HFffg8hVnGEQ/ahPnz4YPHgw/vGPfwCw/oI+cuRIl88ZOXIkNmzYAEEQcPbsWWzfvt32\nteDgYFy8eNGtGrpqOERyY8Mgn9XY2IiBAwfaPl5//XWsW7cOa9euRWxsLKKjo7Fp0ybb99tv3d32\n54cffhgGgwFGoxFTp05FfHy87UzkX/7ylxg3bpxt6H398zvbCvz6xx39+frnOPpca9uNk7x4Wy2R\nhy5fvoxevXrh/PnzSEpKwp49e3DbbbfJXRaR6DjDIPLQAw88gPr6ejQ1NWHhwoVsFqRZvMIgIiKX\ncIZBREQuYcMgIiKXsGEQEZFL2DCIiMglbBhEROQSNgwiInLJ/wMLLmI+AgPr0QAAAABJRU5ErkJg\ngg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5595ef0>"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.4,Page No.104"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "M_D=120 #KN.m #B.M at Pt D\n",
+ "F_C=40 #KN #Force at Pt C\n",
+ "w1=20 #KN.m\n",
+ "L_DB=1.5 #m #Length of DB\n",
+ "L_CD=1.5 #m #Length of CD\n",
+ "L_AC=3 #m #Length of AC\n",
+ "L=6 #m #Length of Beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A And R_B be the Reactions at pt A and B \n",
+ "#R_A+R_B=100\n",
+ "#Now Taking Moment At Pt B We get,M_B\n",
+ "R_A=-(M_D-F_C*(L_CD+L_DB)-w1*L_AC*(L_AC*2**-1+L_CD+L_DB))*L**-1\n",
+ "R_B=100-R_A\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At Pt B\n",
+ "V_B1=0\n",
+ "V_B2=R_B\n",
+ "\n",
+ "#S.F at Pt D\n",
+ "V_D=V_B2 #KN\n",
+ "\n",
+ "#S.F At Pt C\n",
+ "V_C1=V_D #KN\n",
+ "V_C2=V_C1-F_C\n",
+ "\n",
+ "#S.F At Pt A\n",
+ "V_A1=V_C2-w1*L_AC #KN\n",
+ "V_A2=V_A1+R_A\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=0 #KN.m\n",
+ "\n",
+ "#B.M At Pt D\n",
+ "M_D1=M_B-R_B*L_DB #KN.m\n",
+ "M_D2=M_B+M_D-R_B*L_DB\n",
+ "\n",
+ "#B.M At Pt C\n",
+ "M_C=M_D-R_B*(L_CD+L_DB)\n",
+ "\n",
+ "#B.M At Pt A\n",
+ "M_A=M_D-R_B*L+F_C*L_AC+w1*L_AC*L_AC*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DB,L_DB+L_CD,L_DB+L_CD,L_DB+L_CD+L_AC,L_DB+L_CD+L_AC]\n",
+ "Y1=[V_B1,V_B2,V_D,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_B,M_D1,M_D2,M_C,M_A]\n",
+ "X2=[0,L_DB,L_DB,L_CD+L_DB,L_AC+L_CD+L_DB]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHfFJREFUeJzt3X1UlHX+//HXIGiJmpUIHfEsHLyBwRK8SavjCireBlkS\nha66Grm/3CzrW0rndFr3ayat2cm12nO2Y2o3u1myG+S2rrqEt3lTWH5dtsCElvtciQxvFoHr9wfr\nVQg4IDNzMTPPxzlznLnmurjeo57rxfv6fK5rbIZhGAIAQJKf1QUAALoOQgEAYCIUAAAmQgEAYCIU\nAAAmQgEAYLI0FGpqapScnKyoqCjZ7XYdOnRI1dXVSkhI0JAhQzR58mTV1NRYWSIA+BRLQ+HRRx/V\n9OnT9c9//lPHjh1TZGSkMjIylJCQoIKCAk2cOFEZGRlWlggAPsVm1cVr3333nWJjY3Xy5MlmyyMj\nI7V7924FBwersrJScXFx+uKLL6woEQB8jmWdQlFRkYKCgrRgwQKNGDFCDz74oM6ePauqqioFBwdL\nkoKDg1VVVWVViQDgcywLhfr6euXl5Wnx4sXKy8tTYGBgi1NFNptNNpvNogoBwAcZFqmoqDDCwsLM\n13v37jWmT59uREZGGhUVFYZhGEZ5ebkxdOjQFttGREQYknjw4MGDRwceERERDo/NlnUKISEhGjhw\noAoKCiRJu3btUnR0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/endCY0sA2EwAAAABJ\nRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56da030>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlPW+BvBnkKE00DQTi9FwczkwgkIQVO5yvCAainhD\nxco0zRVZmlnSWme7taMN1e6srRaWLs3dzpOecilYSrhTvIZgaKlUokkHQchMEEQ2Au/545WJ28AM\n886878z7fNZiLRjm8kyX+fK7fV+NIAgCiIiIOuEmdwAiInIOLBhERGQRFgwiIrIICwYREVmEBYOI\niCzCgkFERBZRbMFoaGhAeHg4JkyYAAD4/fffERMTg8DAQIwZMwYVFRUyJyQiUhfFFow1a9ZAr9dD\no9EAAFJTUxETE4Nz585h1KhRSE1NlTkhEZG6KLJgXLp0CXv27MG8efPQdK4wIyMDs2fPBgDMnj0b\nu3btkjMiEZHqKLJgvPzyy3jnnXfg5vZHvPLycnh7ewMAvL29UV5eLlc8IiJVUlzB+OKLL9CvXz+E\nh4fDXNcSjUZjmqoiIiLHcJc7QGvHjh1DRkYG9uzZg9raWly/fh1PPfUUvL29UVZWhv79++Py5cvo\n169fu4/39/fHhQsXHJyaiMi5+fn54fz58x3fSVCw7OxsYfz48YIgCMKrr74qpKamCoIgCEajUVi2\nbFm7j1H4W7LZX//6V7kj2I0rvzdB4Ptzdq7+/iz57FTclFRrTVNPKSkp2LdvHwIDA7F//36kpKTI\nnIyISF0UNyXV3PDhwzF8+HAAQJ8+ffCvf/1L5kTqYjAAW7YAvr4yByEiRVD8CINaMhgMDnut3Fzg\n+ecBR10xxZHvTQ58f87N1d+fJTS3565chkajMbu7iqzTowcwYADw178CSUlypyEie7Lks5MjDOrQ\nBx8AS5YAV6/KnYSI5MaCQR2KjgamTweWLpU7CRHJjVNSZFaPHsBvvwEND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b327u+9aPMfezq7UbJ3lxWy2RjW7c\nuIG77roLV69eRXR0NI4dO4Z+/frJHYtIclzDILLR+PHjUVFRgbq6OixfvpzFglwWRxhERGQRrmEQ\nEZFFWDCIiMgiLBhERGQRFgwiIrIICwYREVmEBYOIiCzy//MEB9W2RSPfAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x578f510>"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.5,Page No.105"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_C=20 #KN #Force at Pt C\n",
+ "F_D=40 #KN #Force at pt D\n",
+ "w=20 #KN.m #u.d.l \n",
+ "L_AD=L_DB=2 #m #Length of AD & DB\n",
+ "L_BC=1 #m #Length of BC\n",
+ "L=5 #m #Length of Beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_A and R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=100 \n",
+ "#Now Taking Moment at B,M_B we get\n",
+ "R_A=-(F_C*L_BC-F_D*L_DB-w*L_AD*(L_AD*2**-1+L_DB))*(L_AD+L_DB)**-1\n",
+ "R_B=100-R_A\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At pt C\n",
+ "V_C1=0 #KN\n",
+ "V_C2=-F_C #KN\n",
+ "\n",
+ "#S.F At PT B\n",
+ "V_B1=V_C2 #KN\n",
+ "V_B2=V_C2+R_B #KN\n",
+ "\n",
+ "#S.F At Pt D\n",
+ "V_D1=V_B2 #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F At Pt A\n",
+ "V_A1=V_D2-w*L_AD #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt C\n",
+ "M_C=0 \n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=F_C*L_BC\n",
+ "\n",
+ "#B.M At Pt D\n",
+ "M_D=F_C*(L_BC+L_DB)-R_B*L_DB\n",
+ "\n",
+ "#B.M At Pt A\n",
+ "M_A=F_C*L-R_B*(L_DB+L_AD)+F_D*L_AD+w*L_AD*L_AD*2**-1\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BC,L_BC,L_BC+L_DB,L_BC+L_DB,L_BC+L_DB+L_AD,L_BC+L_DB+L_AD]\n",
+ "Y1=[V_C1,V_C2,V_B1,V_B2,V_D1,V_D2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_C,M_B,M_D,M_A]\n",
+ "X2=[0,L_BC,L_BC+L_DB,L_BC+L_DB+L_AD]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X9YlfX9x/Hn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r+8ZrPZaq2/b1zgspuvr6+57ePjw5kzZ+p9365du+jevXujm0LVV9f52rdvX+vYNftc\nqA4RV3RNQVq0zp07ExQUxF/+8hfA+QW7a9euC+5z/fXXk5GRgWEYlJeXs3XrVvO1Tp06cfTo0Yuq\nYf/+/SxdutRscFLfOvYXCh6R5qRQkBblxIkT9OnTx/x55plneOONN1ixYgUREREMGDCgVvP2c5dT\nrtmePHkyAQEB2O12pk+fzqBBg/jBD34AwD333MO4cePMC83n73/+8syGYTBr1iyefvppevbsyYoV\nK5g1a5Y5hNXQvg1tn79PQ49b8zLRcnl0S6pIPb777js6dOjA4cOHiYqK4qOPPqJHjx5WlyXidrqm\nIFKPCRMmcOTIESorK3nssccUCNJq6ExBRERMuqYgIiImhYKIiJgUCiIiYlIoiIiISaEgIiImhYKI\niJj+H1U+eMmY8O6MAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5783350>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1U1GX+//HnINhmmN2Y2hENwxtEMBA3NK3GFTRNyTQx\n7EbL2i2PlZlb+vueTDt5w1rtt1KyNSWzNm0zRVwlrISMUszgu3kw71ZSUSw3SUldAuf3xycnb0AG\nmJnPZ2Zej3PmBMPMfN6hznuu631d19vmcDgciIiIAEFmByAiItahpCAiIk5KCiIi4qSkICIiTkoK\nIiLipKQgIiJOpiWF/fv3069fP7p160Z0dDSvvvoqAD/++CNJSUl07tyZAQMGUF5eblaIIiIBx2bW\nPoWysjLKysqIjY2loqKC+Ph4Vq1aRUZGBi1btuTpp58mLS2No0ePMmfOHDNCFBEJOKaNFNq0aUNs\nbCwAoaGhdO3aldLSUlavXs2YMWMAGDNmDKtWrTIrRBGRgGPaSOFsJSUl3HrrrWzbto327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OHQkPDyckJIS7\n776bzMxMs8Myxc0338yVV15pdhiW0KZNG2JjYwEIDQ2la9euHDx40OSozNOsWTMAKisrqa6urvNN\nwJ8dOHCAtWvX8tBDD+kQTXDpd+BTSaG0tJR27do5v9fmNjlfSUkJhYWFJCQkmB2KaU6fPk1sbCyt\nW7emX79+REVFmR2SaZ588knmzp1LUJBPvdV5hM1mIzExkZ49e7Jw4cJaH+dTvymtRJKLqaio4K67\n7uKVV14hNDTU7HBMExQURFFREQcOHOCzzz4L2GMe1qxZQ6tWrYiLi9MoAcjPz6ewsJB169Yxf/58\nNm7cWOPjfCoptG3blv379zu/379//znHYkjg+uWXXxgxYgT33nsvw4YNMzscS2jRogW33347X331\nldmhmOKLL75g9erVdOjQgdTUVD799FPuv/9+s8MyzZm9Yddccw133nlnrefK+VRS6NmzJ7t27aKk\npITKykqWL19OcnKy2WGJyRwOB+PGjSMqKoqJEyeaHY6pjhw54jxL7OTJk6xfv564uDiTozLHrFmz\n2L9/P3v37mXZsmX84Q9/4O233zY7LFOcOHGC48ePA/Dzzz+Tk5NT68pFn0oKwcHBzJs3j4EDBxIV\nFcWoUaMCdoVJamoqN910Ezt37qRdu3ZkZGSYHZJp8vPzeeedd9iwYYOzR0d2drbZYZni0KFD/OEP\nfyA2NpaEhASGDh1K//79zQ7LEgJ5+vnw4cPcfPPNzr8XQ4YMYcCAATU+1qeWpIqIiGf51EhBREQ8\nS0lBRESclBRERMRJSUFERJyUFERExElJQUREnJQUxK95+riL8PBwfvzxxwvuz8vL48svv6zxOVlZ\nWQF97LtYmymd10S8xdMblmw2W43n6mzYsIHmzZvTu3fvC342dOjQgD/bX6xLIwUJOHv27GHQoEH0\n7NmTW265hR07dgAwduxYnnjiCfr06UNERAQrVqwAjFNHx48fT9euXRkwYAC3336782cAr732GvHx\n8XTv3p0dO3ZQUlLCG2+8wV//+lfi4uL4/PPPz7n+W2+9xWOPPXbRa56tpKSEyMhIHnjgAbp06cI9\n99xDTk4Offr0oXPnzmzZssVTvyoJQEoKEnD++Mc/8tprr/HVV18xd+5cxo8f7/xZWVkZ+fn5rFmz\nhilTpgDw4Ycf8t1337F9+3aWLl3Kl19+ec4I5JprrmHr1q08+uijvPjii4SHh/PII48wadIkCgsL\nL2hwc/7opaZrnm/Pnj1MnjyZb7/9lh07drB8+XLy8/N58cUXmTVrlrt+NSKaPpLAUlFRwZdffsnI\nkSOd91VWVgLGm/WZE1a7du3K4cOHAfj8889JSUkBcPYoONvw4cMB6NGjBx9++KHzfldOkKntmufr\n0KED3bp1A6Bbt24kJiYCEB0dTUlJSZ3XEXGVkoIElNOnT3PFFVdQWFhY48+bNm3q/PrMm/r5dYPz\n3+wvueQSAJo0aUJVVVW9Y6rpmuc7cw0w+iWceU5QUFCDrilSG00fSUC5/PLL6dChAx988AFgvAn/\n61//uuhz+vTpw4oVK3A4HBw+fJi8vLw6r9O8eXPnUcXn0xmUYmVKCuLXTpw4Qbt27Zy3//3f/+Xd\nd99l0aJFxMbGEh0dfU4z97Pn+898PWLECMLCwoiKiuK+++6jR48etGjR4oJr2Ww253OGDh3KypUr\niYuLIz8/v9bH1XbNml67tu8D+UhocT8dnS3igp9//pnLLruM//znPyQkJPDFF1/QqlUrs8MScTvV\nFERcMGTIEMrLy6msrGTatGlKCOK3NFIQEREn1RRERMRJSUFERJyUFERExElJQUREnJQURETESUlB\nRESc/j+iaB8fTwtkoQAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56d6650>"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.6,Page No.107"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_BC=L_EB=L_AD=1 #m #Length of spans BC,ED,AD\n",
+ "L_ED=2 #m #Length of ED\n",
+ "w=60 #KNm #u.d.l\n",
+ "F_C=20 #KN Pt Load at C\n",
+ "L=5 #m #Span of beam \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_B be the reactions at A & B respectively\n",
+ "#R_A+R_B=80 \n",
+ "#Taking Moment At A,we get M_A\n",
+ "R_B=(F_C*L+1*2**-1*L_ED*w*(2*3**-1*L_ED+L_AD))*(L_AD+L_ED+L_EB)**-1\n",
+ "R_A=80-R_B\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At C\n",
+ "V_C1=0 #KN\n",
+ "V_C2=-F_C #KN\n",
+ "\n",
+ "#S.F At B\n",
+ "V_B1=V_C2 #KN\n",
+ "V_B2=V_C2+R_B #KN \n",
+ "\n",
+ "#S.F aT E\n",
+ "V_E=V_B2 #KN\n",
+ "\n",
+ "#S.F AT D\n",
+ "V_D=V_B2-1*2**-1*L_ED*w #KN\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A1=V_D #KN \n",
+ "V_A2=V_D+R_A\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at C\n",
+ "M_C=0 #KN.m\n",
+ "\n",
+ "#B.M at B\n",
+ "M_B=F_C*L_BC #KN.m\n",
+ "\n",
+ "#B.M at E\n",
+ "M_E=F_C*(L_EB+L_BC)-R_B*L_EB #KN.m\n",
+ "\n",
+ "#B.M at D\n",
+ "M_D=F_C*(L_ED+L_EB+L_BC)-R_B*(L_ED+L_EB)+1*2**-1*L_ED*w*1*3**-1*L_ED #KN.m\n",
+ "\n",
+ "#B.M at A\n",
+ "M_A=1*2**-1*L_ED*w*(2*3**-1*L_ED+L_AD)-R_B*(L_AD+L_ED+L_EB)+F_C*L\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BC,L_BC,L_EB+L_BC,L_ED+L_EB+L_BC,L_AD+L_ED+L_EB+L_BC,L_ED+L_EB+L_BC+L_AD]\n",
+ "Y1=[V_C1,V_C2,V_B1,V_B2,V_E,V_D,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_BC,L_BC+L_EB,L_EB+L_BC+L_ED,L_EB+L_BC+L_ED+L_AD]\n",
+ "Y2=[M_C,M_B,M_E,M_D,M_A]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1UVHX+B/D3IA9JaGrqkODZ4QgIA+ZMqKRpggRmykSp\nbFRKFJurm63tWU2PbVGm4CnbzIf29KRkT2qchPwZi62NqaWWS/bApligPE4pkZESMnN/f0xcQRkY\nZGa+c2fer3PmNMzcy32fOTYf7vd7P/erkiRJAhEREQAf0QGIiMh9sCgQEZGMRYGIiGQsCkREJGNR\nICIiGYsCERHJhBcFs9kMvV6P1NRUAEBDQwOSk5MRGRmJlJQUNDY2Ck5IROQ9hBeFtWvXQqvVQqVS\nAQDy8vKQnJyM48ePIykpCXl5eYITEhF5D6FFobq6Grt27UJ2djbaeuiKioqQmZkJAMjMzMSOHTtE\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BZAkCSaTCXv37pXf69evH86ePdujDCdPnsRzzz0nL3DS2X3suyo8\nRK7EokAe5dy5cxg+fLj8eP755/Hmm2/i1VdfhU6nQ2xsbIfF29vfTrnt+cyZMxEaGgqtVos5c+bg\nhhtuwDXXXAMAePDBB3HrrbfKE82X7n/p7ZklSUJ2djbWrFmD4OBgvPrqq8jOzpaHsGzta+v5pfvY\n+tmbbxNNvcNLUok68euvv+Lqq6/GmTNnEB8fj08++QRDhw4VHYvI6TinQNSJGTNmoLGxES0tLXj8\n8cdZEMhr8EyBiIhknFMgIiIZiwIREclYFIiISMaiQEREMhYFIiKSsSgQEZHs/wFJvODf5hYcpQAA\nAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55acad0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUVPXaB/DvcNNjoKUEnuNIsECTWzHqEUurMbl4w7so\nlJVmZa4uvtZJrKNhvQqUWmLZMRPtttLTMQUzSUuwRBO8lYr3nEIQLxkJoi8C8/4xZ+9kYJhhZs/s\nPTPfz1qsmM3M7CeWax72/u7nt1V6vV4PIiIiAB5yF0BERMrBpkBERCI2BSIiErEpEBGRiE2BiIhE\nbApERCSSrSmUlZVh0KBBiIyMRFRUFLKzswEAly9fRnx8PHr27ImEhARUVVXJVSIRkdtRyTWnUFlZ\nicrKSsTExKCmpgZ9+vTBxo0bsXr1avj7++Oll15CVlYWfv/9d2RmZspRIhGR25HtSKFr166IiYkB\nAPj6+iI8PBzl5eXIy8vDo48+CgB49NFHsXHjRrlKJCJyO7IdKdxMp9PhgQcewOHDhxEUFITff/8d\nAKDX69G5c2fxMRER2ZfsQXNNTQ3GjRuHpUuXws/Pr8nPVCoVVCqVTJUREbkfLzl3fuPGDYwbNw6T\nJ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khtgUyO08+eSTWLZsGfbu3Ys333wTM2bMEH9WWVmJoqIifPnll0hLSwMA\nfPHFF/jll19w9OhRfPzxx9i9e3eTI5Dbb78d+/btw9NPP41FixYhODgY06dPx6xZs3DgwIFmN7gx\nPnppaZ/GTp8+jRdffBHHjh3D8ePHsW7dOhQVFWHRokVYuHChVL8aIp4+IvdSU1OD3bt3Y8KECeK2\nuro6AIYPa2GF1fDwcJw/fx4AsHPnTiQnJwOAeI+Cm40dOxYA0Lt3b3zxxRfidktWkDG1T2MhISGI\njIwEAERGRiIuLg4AEBUVBZ1OZ3Y/RJZiUyC30tjYiFtvvRUHDhxo8ec+Pj7i98KHunFuYPxh365d\nOwCAp6cn6uvr21xTS/s0JuwDMNwvQXiNh4eHVfskMoWnj8itdOzYESEhIfjPf/4DwPAh/NNPP7X6\nmgEDBmD9+vXQ6/U4f/48duzYYXY/fn5+4lLFxrgGJSkZmwK5tNraWnTv3l38evvtt/Hpp59i1apV\niImJQVRUVJObud98vl/4fty4cVCr1YiIiMDkyZPRu3dvdOrUqdm+VCqV+JqkpCRs2LABGo0GRUVF\nJp9nap8tvbepx+68JDRJj0tnE1ng6tWruOWWW/Dbb78hNjYWu3btQkBAgNxlEUmOmQKRBUaMGIGq\nqirU1dVh3rx5bAjksnikQEREImYKREQkYlMgIiIRmwIREYnYFIiISMSmQEREIjYFIiIS/T+6l7ug\nkeDZfAAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56c32d0>"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.7,Page No.109"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_BC=1 #m #Length of BC\n",
+ "L_DB=2 #m #Length of DB\n",
+ "L_AD=4 #m #Length 0f AD\n",
+ "M_D=30 #KN.m #Moment at D\n",
+ "w=45 #KN/m #u.d.l\n",
+ "L=7 #m #Span of beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_B & R_A be the Reactions at B & A respectively\n",
+ "#R_B+R_A=180+P ............(1)\n",
+ "\n",
+ "#Now Taking Moment about A,we get\n",
+ "#R_B=7*P+390 ...............(2)\n",
+ "\n",
+ "#Since R_A & R_B Are Equal\n",
+ "#2*R_B=180+P ...................(3)\n",
+ "\n",
+ "#From equation 1 and 3 we get\n",
+ "#3*(180+P)=7P+390\n",
+ "#After simplifying Further above equation we get\n",
+ "P=150*4**-1 #KN\n",
+ "R_A=R_B=(180+P)*2**-1\n",
+ "F_C=P\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At C\n",
+ "V_C1=0 #KN\n",
+ "V_C2=-P #KN\n",
+ "\n",
+ "#S.F At B\n",
+ "V_B1=V_C2 #KN\n",
+ "V_B2=V_C2+R_B #KN \n",
+ "\n",
+ "#S.F At D\n",
+ "V_D=V_B2 #KN\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A1=V_D-w*L_AD #KN\n",
+ "V_A2=V_A1+R_A #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at C\n",
+ "M_C=0 #KN.m \n",
+ "\n",
+ "#B.M at B\n",
+ "M_B=F_C*L_BC #KN.m\n",
+ "\n",
+ "#B.M at D\n",
+ "M_D1=F_C*(L_BC+L_DB)-R_B*L_DB #KN.m\n",
+ "M_D2=M_D1+M_D\n",
+ "\n",
+ "#B.M At A\n",
+ "M_A=w*L_AD*L_AD*2**-1+M_D-R_B*(L_AD+L_DB)+P*L\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BC,L_BC,L_DB+L_BC,L_DB+L_BC+L_AD,L_DB+L_BC+L_AD]\n",
+ "Y1=[V_C1,V_C2,V_B1,V_B2,V_D,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_BC,L_DB+L_BC,L_DB+L_BC,L_AD+L_DB+L_BC]\n",
+ "Y2=[M_C,M_B,M_D1,M_D2,M_A]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X9c1fWhx/HXAYlNkcQNUYGJV1CEKEHz50MHmj+YgZLK\nQuevIr362Ky7e1de7x6bM0u709m0uDOvqdlKK+ePfujUFFMn2JRuK5qSQRcRzTKvhhkC3/vHt840\nhXNAOJ9z4P18PHjscH5w3jo7b77fz+f7+Tgsy7IQERFxwc90ABER8Q0qDBERcYsKQ0RE3KLCEBER\nt6gwRETELSoMERFxi9HCuO+++wgLCyMhIcF537lz5xg+fDjdu3dnxIgRnD9/3vnYokWLiImJITY2\nlp07d5qILCLSYhktjOnTp7Njx45r7lu8eDHDhw/n+PHjDBs2jMWLFwNQWFjIxo0bKSwsZMeOHcye\nPZuamhoTsUVEWiSjhTF48GBCQkKuuW/btm1MnToVgKlTp7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59PXr\nG+9nN9l+GMOHD+f06dPX3f/444+TlpbWVG8LwPz58523k5OTSU5ObtL3ExHxNqmpsHevPabxwQew\ncKG9NtU3cnNzyc3NBdy/ALDJCmPXrl31fk14eDilpaXO70+ePElERATh4eGcPHnymvvDw8Nr/TlX\nF4aISEsVHw/5+XDPPfYWsM89B23a2I9d/cv088/D55//xuXPM35KyrpqFa309HQ2bNhAZWUlxcXF\nFBUV0bdvXzp27EhwcDD5+flYlsX69esZO3aswdQiIr4hNBR274agIBgyBG7mbL6Rwti8eTORkZHk\n5eUxevRoUlNTAYiLiyMzM5O4uDhSU1PJycnB8fX+hDk5OWRnZxMTE0N0dDSjRo0yEV1ExOcEBsLa\ntfZRRv/+cORIw36Ow7JMLZTbNBwOB83sjyQi0mg2b4YZM+C//gvGj7fvi46GEydcf3Y22RiGiIh4\nn4wM+1qNMWPg2DGYN8/916owRERamMRE+8rwMWPsGVSVle69zvigt4iIeF7nzrBvn10WV01OrZPG\nMEREWrCaGntcY/x415+dKgwREXHrs1OnpERExC0qDBERcYsKQ0RE3KLCEBERt6gwRETELSoMERFx\niwpDRETcosIQERG3qDBERMQtKgwREXGLCkNERNyiwhAREbeoMERExC0qDBERcYsKQ0RE3KLCEBER\nt6gwRETELSoMERFxiwpDRETcosIQERG3qDBERMQtKgwREXGLCkNERNyiwhAREbeoMERExC0qDBER\ncYsKQ0RE3KLCEBERt6gwRETELSoMERFxi5HCePnll4mPj8ff35+jR4867y8pKeG73/0uiYmJJCYm\nMnv2bOdjR44cISEhgZiYGB588EETsUVEWjQjhZGQkMDmzZsZMmTIdY9FR0dTUFBAQUEBOTk5zvtn\nzZrF6tWrKSoqoqioiB07dngyssfk5uaajtBgvpwdlN805fd+RgojNjaW7t27u/388vJyLl68SN++\nfQGYMmUKW7Zsaap4RvnyPzpfzg7Kb5ryez+vG8MoLi4mMTGR5ORkDhw4AEBZWRkRERHO54SHh1NW\nVmYqoohIi9SqqX7w8OHDOX369HX3P/7446Slpd3wNZ07d6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uyrJdfftn60Y9+ZFmWZZ0+fdoKCQmxNm3aZFnW9RsA\nORwO67XXXrMsy7Iefvhha+HChde9/6VLl6z4+Hhrz549Vo8ePayPPvrouuesXbvW+ulPf1pnrqsV\nFxdbrVq1st577z2rpqbG6t27t3XfffdZlmVZW7dutcaOHevy70qkNs1iLSmR+vriiy84dOjQNcs5\nV1ZWAvZaTN+suNuzZ0/OnDkDwIEDB8jMzARw7ptRm1tuuYXRo0cD0Lt3b3bt2nXdc7773e+yatUq\nBg8ezO9//3u6du1aZ+bacn1b165dnQvgxcfHc9dddwFw2223UVJSUud7iNRFhSEtUk1NDe3ataOg\noOCGj99yyy3O29bXw3wOh+Oa/SasOob/AgICnLf9/Pyoqqq64fPeffddQkND3d7w60a5vi0wMPCa\n9/7mNXXlEHGHxjCkRQoODqZr16688sorgP3h++6779b5mkGDBrFp0yYsy+LMmTPs27fP+Vjbtm25\ncOFCvTJ8/PHH/O53v3NuHHSjPSDqKiURT1NhSItw6dIlIiMjnV9PPvkkf/zjH1m9ejW9evXitttu\nY9u2bc7nX71E+De3x40bR0REBHFxcUyePJmkpCTn/s0zZsxg1KhRzkHvb7/+20uOW5ZFdnY2S5cu\npWPHjqxevZrs7GznabHaXlvb7W+/prbvfW3pc/EumlYrUg8VFRW0adOGzz77jH79+vGXv/yFDh06\nmI4l4hEawxCph7vvvpvz589TWVnJr371K5WFtCg6whAREbdoDENERNyiwhAREbeoMERExC0qDBER\ncYsKQ0RE3KLCEBERt/w/DSM1oLe5H2sAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x565ceb0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xtcz3f/x/HHt8SuEWZz2FVcWQcpWcnKLkZG0WhjDhPD\nZjab7Z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wYMGMDq1atp27YtPj4+bN++3VL/qYQDkoIhxHVeeOEFpk2bxo4dO/joo48YPny4\n8fdyc3PZtGkTy5YtIyYmBoAff/yR//73vxw4cICvv/6aLVu23DByqV+/Pjt37uSll15i0qRJeHh4\n8OKLL/LGG2+we/du2rVrd8P73zzqud173iwjI4ORI0dy8OBBDh06xPz589m0aROTJk1iwoQJ5vpP\nI4RMSQlxzfnz59myZcsNLZ4LCwsB9YX8Whfe5s2bc/LkSQA2btxI3759AYx3aVzvySefBKBVq1b8\n+OOPxsdN6chT2nverGnTpsaGd/7+/nTu3BmAFi1akJmZWeb7CGEqKRhCXFVSUkLdunXZvXv3bX+/\nevXqxl9f+4J/8zrFzYWgRo0aADg7O1NUVFTuTLd7z5tdew9Q93pce46Tk1OF3lOI0siUlBBX1a5d\nm6ZNm/LDDz8A6gv0vn377victm3bsnDhQjRN4+TJk6xfv77M93F1dTW2876Z9AIV1kwKhnBYFy5c\noHHjxsYfU6ZM4dtvv2X27NkEBgbSokULlixZYvz869cXrv26V69euLu74+fnx8CBA2nVqtVt73Q2\nGAzG50RFRbFo0SKCgoLYtGlTqZ9X2nve7rVL+9jWWp0L6ybtzYWopIKCAmrWrMmZM2cIDQ1l8+bN\nNGjQQO9YQpidrGEIUUndu3cnLy+PwsJC3nvvPSkWwm7JCEMIIYRJZA1DCCGESaRgCCGEMIkUDCGE\nECaRgiGEEMIkUjCEEEKYRAqGEEIIk/w/Ax1NdOgaZEcAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56611f0>"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.8,Page No.110"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=6 #m #Span Of beam\n",
+ "w=30 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Due to Symmetry\n",
+ "#Let R_B and R_C be the reactions at B & C Respectively\n",
+ "R_B=R_C=w*L*2**-1 #KN\n",
+ "\n",
+ "#Let a be the overhang.The Max -ve moment occurs at the support and max +ve moment at middle of the beam\n",
+ "#Now Equating these two equations we get\n",
+ "#30*a*a*2**-1=90*(3-a)-w*L*2**-1*L*4**-1\n",
+ "#After simplifying we get an equation as\n",
+ "#a**2+6*a-9=0\n",
+ "x=1\n",
+ "y=6\n",
+ "z=-9\n",
+ "\n",
+ "p=y**2-4*x*z\n",
+ "\n",
+ "a1=(-y+p**0.5)*2**-1\n",
+ "a2=(-y-p**0.5)*2**-1\n",
+ "\n",
+ "#Now Length cannot be negative,so taking a1 into Consideration\n",
+ "\n",
+ "L_CD=L_AB=a1\n",
+ "L_BC=L-2*a1\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At D\n",
+ "V_D=0\n",
+ "\n",
+ "#S.F At C\n",
+ "V_C1=V_D-w*L_CD #KN\n",
+ "V_C2=V_C1+R_C #KN\n",
+ "\n",
+ "#S.F At B\n",
+ "V_B1=-w*(L_BC+L_CD)+R_C\n",
+ "V_B2=V_B1+R_B\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A=round(V_B2,2)-round(w*L_AB,2)\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At D\n",
+ "M_D=0\n",
+ "\n",
+ "#B.M At C\n",
+ "M_C=w*L_CD*L_CD*2**-1 #KN.m\n",
+ "\n",
+ "#B.M At B\n",
+ "M_B=w*(L_BC+L_CD)*(L_BC+L_CD)*2**-1-R_C*L_BC*L_BC*2**-1\n",
+ "\n",
+ "#B.M At A\n",
+ "X=w*L*L*2**-1\n",
+ "Y=-R_C*(L_AB+L_BC)-R_B*L_AB\n",
+ "M_A=X+Y\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_CD,L_CD,L_CD+L_BC,L_CD+L_BC,L_CD+L_BC+L_AB]\n",
+ "Y1=[V_D,V_C1,V_C2,V_B1,V_B2,V_A]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_CD,L_BC+L_CD,L_AB+L_BC+L_CD]\n",
+ "Y2=[M_D,M_C,M_B,M_A]\n",
+ "Z2=[0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtU1HX+x/HXIKOtoHkHD3AaDhdh0GS8pNbPFVQwNcgC\nKTQljOzESbucNKw9rbuugpm7uahb25raVpu1tIFmJIqoWagFe9yighI63HMl8r4IfH5/EN9EGAaY\ny/fznXk9zpnjzDDj9z3lmSef73cuOiGEABEREQA3tQcgIiJ5MApERKRgFIiISMEoEBGRglEgIiIF\no0BERApVo9DY2Ij4+HiEhobCaDTixIkTaGhoQFRUFIKDgxEdHY3GxkY1RyQicimqRuHxxx/HvHnz\n8NVXX+H06dMICQlBRkYGoqKiUFpailmzZiEjI0PNEYmIXIpOrTev/fTTTzCZT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EQVRTOdB84/1v/EhpIQRSUlKwefNmeHt7Y8eOHUhJSVF2YZm7r7nzN97H\n3GVn+2hrchy+JJWoC5cuXYKHhwfOnTuHKVOm4JNPPsGoUaPUHovI7nhMgagLd911FxobG9HU1ITn\nn3+eQSCXwZUCEREpeEyBiIgUjAIRESkYBSIiUjAKRESkYBSIiEjBKBARkeL/AfWGkroc+qUvAAAA\nAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x579c1b0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAAEPCAYAAABRHfM8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYVeX6N/DvFsEJFCtFBQ0EFBCSjQSWlqjghDjPpmlp\npqV26ufJTm+mneN0zFNi2TEPatqgOSCaiVgJKqmoYIMjKhhzDqEgIALr/eORrSjIAtbeaw/fz3Vx\nJWuv4d5W+97PcD+PRpIkCURERNWop3YARERkGpgwiIhIFiYMIiKShQmDiIhkYcIgIiJZmDCIiEiW\n+moHUBVnZ2c0bdoUVlZWsLa2RkJCAq5fv47Ro0fj8uXLcHZ2xrfffgt7e3u1QyUisghG28LQaDSI\njY1FUlISEhISAABLlixBSEgIzp8/j969e2PJkiUqR0lEZDmMNmEAwIM1hTt37sSLL74IAHjxxRex\nY8cONcIiIrJIRpswNBoNgoOD4e/vjzVr1gAAcnJy4ODgAABwcHBATk6OmiESEVkUox3DiI+PR+vW\nrXHlyhWEhITAw8OjwusajQYajUal6IiILI/RJozWrVsDAFq0aIGhQ4ciISEBDg4OyM7ORqtWrZCV\nlYWWLVs+dJ2bmxsuXrxo6HCJiEyaq6srLly48MhzjLJLqqCgAHl5eQCAW7duISYmBj4+Phg0aBC+\n+OILAMAXX3yBIUOGPHTtxYsXIUmS2f68//77qsfA98b3x/dnfj9yvmgbZQsjJycHQ4cOBQCUlJRg\n/Pjx6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1Go7smLCwMkZGR\n0Gq1iI+Pr/K8qp5Z2b2r+t3clhsndXF5c6I6unXrFpo0aYJr164hMDAQP//8M1q2bKl2WESK4xgG\nUR0NHDgQubm5KC4uxrx585gsyGyxhUFERLJwDIOIiGRhwiAiIlmYMIiISBYmDCIikoUJg4iIZGHC\nICIiWf4/U4J8H+TjvqoAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56f0c50>"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.9,Page No.112"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_F=6 #KN #Force at F\n",
+ "w1=w2=w=3 #KN.m #u.d.l\n",
+ "M_D=24 #KN.m \n",
+ "L_AB=L_CD=L_DE=L_EF=4 #m #Length of AB,CD,DE,EF\n",
+ "L_BC=2 #m #Length of BC\n",
+ "L=18 #m #Span of Beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_B and R_E be the Reactions at B & E respectively\n",
+ "#R_B+R_E=42\n",
+ "\n",
+ "#Taking Moment At Pt B,M_B\n",
+ "R_E=(F_F*(L_BC+L_CD+L_DE+L_EF)+w*(L_CD+L_DE)*((L_CD+L_DE)*2**-1+L_BC)-w*L_AB*L_AB*2**-1-M_D)*(L_BC+L_CD+L_DE)**-1\n",
+ "R_B=42-R_E #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F aT F\n",
+ "V_F1=0 #KN \n",
+ "V_F2=-F_F #KN\n",
+ "\n",
+ "#S.F at E\n",
+ "V_E1=V_F2 #KN\n",
+ "V_E2=V_E1+R_E #KN\n",
+ "\n",
+ "#S.F aT C\n",
+ "V_C=V_E2-w*(L_CD+L_DE) #KN\n",
+ "\n",
+ "#S.F at B\n",
+ "V_B1=V_C #KN \n",
+ "V_B2=V_C+R_B #KN\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A=V_B2-w*L_AB #KN\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At F\n",
+ "M_F=0\n",
+ "\n",
+ "#B.M At E\n",
+ "M_E=F_F*L_EF #KN.m\n",
+ "\n",
+ "#B.M At D\n",
+ "M_D1=F_F*(L_DE+L_EF)-R_E*L_DE+w*L_DE*L_DE*2**-1 #KN.m\n",
+ "M_D2=M_D1-M_D\n",
+ "\n",
+ "#B.M At C\n",
+ "M_C=F_F*(L_CD+L_DE+L_EF)-R_E*(L_CD+L_DE)+w*(L_CD+L_DE)*(L_CD+L_DE)*2**-1-M_D\n",
+ "\n",
+ "#B.M At B\n",
+ "M_B=F_F*(L_BC+L_CD+L_DE+L_EF)-R_E*(L_BC+L_CD+L_DE)-M_D+w*(L_CD+L_DE)*((L_CD+L_DE)*2**-1+L_BC)\n",
+ "\n",
+ "#B.M At A\n",
+ "M_A=w*L_AB*L_AB*2**-1-R_B*L_AB+w*(L_CD+L_DE)*((L_CD+L_DE)*2**-1+L_BC+L_AB)-R_E*(L_AB+L_BC+L_CD+L_DE)+F_F*L-M_D\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_EF,L_EF,L_EF+L_DE+L_CD,L_EF+L_DE+L_CD+L_BC,L_EF+L_DE+L_CD+L_BC,L_EF+L_DE+L_CD+L_BC+L_AB]\n",
+ "Y1=[V_F1,V_F2,V_E1,V_E2,V_C,V_B1,V_B2,V_A]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_EF,L_DE+L_EF,L_DE+L_EF,L_CD+L_DE+L_EF,L_CD+L_DE+L_EF+L_BC,L_CD+L_DE+L_EF+L_BC+L_AB]\n",
+ "Y2=[M_F,M_E,M_D1,M_D2,M_C,M_B,M_A]\n",
+ "Z2=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X9UVGX+B/D3gGiFsmIpGkMHEomfwfg7W2pQ8EcG4e9w\nS0WpVrPdVo9ppzZxK9S0zbJts46K7bZpLiFUSuaXRmsL0cBvbfZVVCj8AZVEamQIPN8/pplAZpgB\n584zc+/7dc4ch8sM93PoaT48977vc3VCCAEiIqLL+MgugIiIPBMbBBER2cQGQURENrFBEBGRTWwQ\nRERkExsEERHZJLVBzJ07F0FBQYiLi7Nuy87Ohl6vh8FggMFgQFFRkcQKiYi0S2qDyMzMbNcAdDod\nFi1ahPLycpSXl2P8+PGSqiMi0japDSIxMRGBgYHttvPaPSIi+TzyHMT69esRHx+PefPmob6+XnY5\nRESa5HENYv78+aisrMShQ4cwYMAALF68WHZJRESa1E12AZfr16+f9XlWVhZSU1PbvSY8PBzHjx93\nZ1lERF5v4MCBOHbsmNOv97gZxJkzZ6zP8/Pz2yScLI4fPw4hhMc9li9fLr0G1sSatFgXa3Lu0dk/\nrKXOIDIyMrB371589913CAkJwYoVK2AymXD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/9+jB8/3nqS+vL3X37XNyEEsrKy8Oyzz6J///7YuHEjsrKyrIe57L3X3vPL32Pva0+6+xx5\nL8ZciWz48ccf4e/vj7Nnz2LEiBH4+OOPPeImNETuxHMQRDbceeedqK+vR2NjI5544gk2B9IkziCI\niMgmnoMgIiKb2CCIiMgmNggiIrKJDYKIiGxigyAiIpvYIIiIyKb/Bwuoc+bkvyVIAAAAAElFTkSu\nQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56becf0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtUlNX6B/DvoKCZeElzLNAfLBBhALmpWHYSjoIrDcUb\nKnnJsjr562J21Fyt7PJbCqSeUpMsl7dartIyRUtJPQh5TRNNi1I0J7l7RSW0Edi/P96YQGecgXln\n3ndmvp+1WMFcH207D3vv5322RgghQEREdBsPpQMgIiJ1YoIgIiKTmCCIiMgkJggiIjKJCYKIiExi\ngiAiIpMUSxA3b95EbGwsIiMjodPpMGfOHADA5cuXkZCQgKCgICQmJqKyslKpEImI3JpGyesgqqur\n0aZNG9TU1OCRRx7BwoULsWXLFnTu3BmzZs1CRkYGrly5gvT0dKVCJCJyW4ouMbVp0wYAYDAYUFtb\ni44dO2LLli2YPHkyAGDy5MnYvHmzkiESEbktRRNEXV0dIiMjodVqER8fj9DQUFRUVECr1QIAtFot\nKioqlAyRiMhttVTyzT08PHDs2DFcvXoVgwcPxu7duxvdr9FooNFoFIqOiMi9KZog6rVv3x5Dhw7F\nkSNHoNVqUV5ejq5du6KsrAxdunS54/GBgYE4c+aMApESETmvgIAAnD592urHK7bEdPHiRWOF0o0b\nN7Bz505ERUVh2LBhWLt2LQBg7dq1SE5OvuO5Z86cgRBCdV9vvvmm4jEwJsbkjnExJuu+mvqLtWIz\niLKyM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fyRzHAAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5798750>"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.10,Page No.114"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_DC=L_BA=2 #m #Length of BA & DC\n",
+ "L_CB=1 #m #Length of CB\n",
+ "F_A=10 #KN #Force at pt A\n",
+ "F_B=20 #KN #Force at pt B\n",
+ "w=4 #KN.m #u.d.l\n",
+ "L=5 #m #Length of beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_D be the reactions at Pt D\n",
+ "R_D=F_B+F_A+w*L_DC #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F at Pt A\n",
+ "V_A1=0 #KN\n",
+ "V_A2=F_A #KN\n",
+ "\n",
+ "#S.F At Pt B\n",
+ "V_B1=V_A2\n",
+ "V_B2=F_B+F_A\n",
+ "\n",
+ "#S.F at Pt C\n",
+ "V_C=F_B+F_A #KN \n",
+ "\n",
+ "#S.F At Pt D\n",
+ "V_D1=V_B2+w*L_DC\n",
+ "V_D2=F_B+F_A+w*L_DC-R_D\n",
+ "\n",
+ "#B.M At Pt A\n",
+ "M_A=0\n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=F_A*L_BA\n",
+ "\n",
+ "#B.M at Pt C\n",
+ "M_C=F_B*L_CB+F_A*(L_BA+L_CB) #KN\n",
+ "\n",
+ "#B.M At Pt D\n",
+ "M_D1=F_A*L+F_B*(L_CB+L_DC)+w*L_DC*L_DC*2**-1\n",
+ "M_D2=(F_A*L+F_B*(L_CB+L_DC)+w*L_DC*L_DC*2**-1)-M_D1\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_BA,L_BA,L_BA+L_CB,L_BA+L_CB+L_DC,L_BA+L_CB+L_DC]\n",
+ "Y1=[V_A1,V_A2,V_B1,V_B2,V_C,V_D1,V_D2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_A,M_B,M_C,M_D1,M_D2]\n",
+ "X2=[0,L_BA,L_CB+L_BA,L_CB+L_BA+L_DC,L_CB+L_BA+L_DC]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEPCAYAAABFpK+YAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHOxJREFUeJzt3X1UVHXix/HP4FMBEpo6uOo5cDQV0GDUMk1WkIBMQVsf\nWk8ZqZw6dmrXbLfsbA/s2hptbmnmObWtla3VZkspPZEWTQ8+9LS4tVnpprSowGaEikjIcH9/+HME\ndZhBuXMH7/t1zpwuw70zH+bYx+uXe79fh2EYhgAAthFmdQAAQHBR/ABgMxQ/ANgMxQ8ANkPxA4DN\nUPwAYDOmF7/H45HL5VJ2drYkqbq6WhkZGRo8eLAyMzNVU1NjdgQAQDOmF//y5cuVkJA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ggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x55ac070>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEPCAYAAACgFqixAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl0lPW9x/H3BAgtTVhKJbkSOKEBhCySBUFFMClMUtDI\nogQRgYLUWq5XkFZRb1X03ppQqAjWXcD1SrDKWghLTRAiyGK8cGS7giMhJBGbEwkEDIS5fwwZEkiY\nkDwzzyyf1zk5J/PMM/N8zxyYb57f9/f7fS12u92OiIgEtCCzAxAREfMpGYiIiJKBiIgoGYiICEoG\nIiKCkoGIiODGZDB58mTCwsKIi4tzHnvkkUfo3bs3ffr0YdSoUfzwww/O5zIzM+nRowe9evVi/fr1\n7gpLRETq4bZkMGnSJHJycuocS01N5auvvuJ///d/6dmzJ5mZmQDs3buX7Oxs9u7dS05ODlOnTuX8\n+fPuCk1ERC7htmQwcOBAOnToUOeY1WolKMhxyf79+3P06FEAVqxYwdixY2nVqhWRkZF0796d7du3\nuys0ERG5hGk1g0WLFjFs2DAAjh07RkREhPO5iIgIioqKzApNRCTgmJIM/vznPxMcHMw999zT4DkW\ni8WDEYmIBLaWnr7gW2+9xZo1a/jnP//pPNa5c2cKCwudj48ePUrnzp0ve2337t05dOiQR+IUEfEX\nUVFRfP3111c+ye5G33zzjT02Ntb5eO3atfbo6Gj78ePH65z31Vdf2fv06WP/8ccf7YcPH7b/8pe/\ntJ8/f/6y93NzuD7l6aefNjsEr6HP4iJ9Fhfps7ioMd+dbrszGDt2LJs2beL777+nS5cuPPPMM2Rm\nZlJVVYXVagXgpptu4uWXXyY6OpqMjAyio6Np2bIlL7/8soaJREQM0NiJmW5LBh988MFlxyZPntzg\n+U888QRPPPGEu8IREQk4Z8/C+PGNO9fjNQMxRnJystkheA19Fhfps7go0D+L06chIwP27Wvc+ZYL\n40k+wWK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ViqXffm9zcXEJDQ7npppsuey49PT3g99YX76U7AwkYhw4dYujQofTt\n25dBgwZx4MABAH7zm98wbdo0BgwYQFRUFB999BHg2AV06tSp9O7dm9TUVG677TbncwAvvvgiSUlJ\nXH/99Rw4cACbzcZrr73GvHnzSEhIYMuWLXWu/9Zbb/Ef//EfV7xmbTabjV69ejFp0iSuu+46xo0b\nx/r16xkwYAA9e/Zkx44d7vqoJAApGUjAuP/++3nxxRfZuXMnc+bMYerUqc7nSkpKyM/PZ/Xq1Tz2\n2GMAfPzxx3z77bfs27ePd999l61bt9a547jmmmvYtWsXv//975k7dy6RkZE88MADzJgxg4KCgssa\ny1x6t1LfNS916NAh/vjHP7J//34OHDhAdnY2+fn5zJ07l+eee86oj0ZEw0QSGE6ePMnWrVsZPXq0\n81hVVRXg+JKu2fG0d+/elJaWArBlyxYyMjIAnD0Cahs1ahQAiYmJfPzxx87jjdnhpaFrXqpbt27E\nxMQAEBMTw5AhQwCIjY3FZrO5vI5IYykZSEA4f/487du3p6CgoN7ng4ODnb/XfJlfWhe49Eu+devW\nALRo0YJz585ddUz1XfNSNdcAR7+CmtcEBQU16ZoiDdEwkQSEtm3b0q1bN/7+978Dji/f3bt3X/E1\nAwYM4KOPPsJut1NaWsqmTZtcXic0NNS5ZfCltCekeDMlA/FLlZWVdOnSxfnzwgsv8P7777Nw4ULi\n4+OJjY2t0yS99nh+ze933nknERERREdHM378eBITE2nXrt1l17JYLM7XpKens2zZMhISEsjPz2/w\nvIauWd97N/Q4kLdmFuNpC2uRKzh16hQ/+9nP+Ne//kX//v357LPP6NSpk9lhiRhONQORK7j99tsp\nLy+nqqqKp556SolA/JbuDERERDUDERFRMhAREZQMREQEJQMREUHJQEREUDIQERHg/wFXWigjzzxw\nCwAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x564df70>"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.11,Page No.115"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "w=20 #KN/m #u.v.l\n",
+ "F_C=40 #KN #Force at Pt C\n",
+ "M_D=40 #KN.m #Moment at pt D\n",
+ "L_AB=3 #m #Length of AB\n",
+ "L_BC=1 #m #Length of BC\n",
+ "L_CD=L_DE=2 #m #Length of CD & DE\n",
+ "L=8 #8 #Length of beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A & R_E be the Reactions at A & E respectively\n",
+ "#R_A+R_E=70\n",
+ "\n",
+ "#Taking Moments At Pt A we get,M_A\n",
+ "R_E=(F_C*(L_AB+L_BC)+1*2**-1*L_AB*w*2+40)*L**-1\n",
+ "R_A=70-R_E\n",
+ "\n",
+ "#shear Force Calculations\n",
+ "\n",
+ "#S.F At Pt E\n",
+ "V_E1=0\n",
+ "V_E2=R_E #KN\n",
+ "\n",
+ "#S.F aT pt D\n",
+ "V_D=V_E2\n",
+ "\n",
+ "#S.F At PT C\n",
+ "V_C1=V_D\n",
+ "V_C2=V_D-F_C #KN\n",
+ "\n",
+ "#S.F At Pt A\n",
+ "V_A1=V_C2-(1*2**-1*w*L_AB)\n",
+ "V_A2=V_A1+R_A\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt E\n",
+ "M_E=0\n",
+ "\n",
+ "#B.M At Pt D\n",
+ "M_D1=M_E-R_E*L_DE\n",
+ "M_D2=M_D1+M_D\n",
+ "\n",
+ "#B.M At Pt C\n",
+ "M_C=-R_E*(L_DE+L_CD)+M_D\n",
+ "\n",
+ "#B.M At Pt B\n",
+ "M_B=-R_E*(L_DE+L_CD+L_BC)+M_D+F_C*L_BC\n",
+ "\n",
+ "#B.M At Pt A\n",
+ "M_A=-R_E*L+M_D+(1*2**-1*L_AB*w*2)+F_C*(L_BC+L_AB)\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_DE,L_CD+L_DE,L_CD+L_DE,L_CD+L_DE+L_AB,L_CD+L_DE+L_AB]\n",
+ "Y1=[V_E1,V_E2,V_D,V_C1,V_C2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "Y2=[M_E,M_D1,M_D2,M_C,M_B,M_A]\n",
+ "X2=[0,L_DE,L_DE,L_CD+L_DE,L_DE+L_CD+L_BC,L_AB+L_BC+L_CD+L_DE]\n",
+ "Z2=[0,0,0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtYVHX+B/D3IGCJqJk69DBsw8NFGDTBG1mrDuHgFTIv\nbFhGKFsrT7bUbyt8tm0pUii7menWmiVWm9qSgZcIWB0vGVKrpRurkEFyr2RJUQlhzu+PiZMowwzC\nzHcu79fz8DjMxfPOdN6ccz7zPQpJkiQQEREBcBMdgIiI7AdLgYiIZCwFIiKSsRSIiEjGUiAiIhlL\ngYiIZMJLob29H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T09P+bb0\ny+k1hULysHnuAAABU0lEQVTR6ZoFUjen3Tw8POTbbm5uaGtr6/J5x44dw/Dhwy2+KFRXua7Uv3//\nTtvueE13OYjM4TkFcmqDBg2Cv78//vnPfwIwvsEeO3as29fcfvvtyMnJgSRJaGhowL59++THvL29\ncfbs2R5l+O677/DSSy/JF5jp6joC3RUPkS2xFMipXLhwAX5+fvLXK6+8gvfeew8bN25EeHg4Ro0a\nhby8PPn5ly9B3XF7/vz5UKlU0Gg0WLx4McaOHStfj/eBBx7AjBkz5BPNV77+yiWtJUlCcnIyXnzx\nRfj4+GDjxo1ITk6WD2GZeq2p21e+xtT3jra0NtkPjqQSdeH8+fPw8vLCmTNnEBkZiUOHDmHEiBGi\nYxFZHc8pEHVhzpw5aGpqQmtrK5566ikWArkM7ikQEZGM5xSIiEjGUiAiIhlLgYiIZCwFIiKSsRSI\niEjGUiAiItn/A+2hg5gYC1MHAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5783e30>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlY1OX+//HnKLjk2mJmjIYKBgOIuLaHKZqWlpooVlqm\npxO2WFZq7paipi1amHayPSUzf2ilRy0x14O55NEpBINvCloeTQU3BD6/P26ZXBgZmBnumeH9uC6u\nYJiZzyvUz829vW+TYRgGQgghBFBFdwAhhBCeQxoFIYQQNtIoCCGEsJFGQQghhI00CkIIIWykURBC\nCGHjkY3CypUrCQkJITg4mOnTp+uOI4QQlYbJ0/YpFBYWcvPNN7NmzRoCAgJo164dCxcuJDQ0VHc0\nIYTweR7XU0hNTSUoKIjAwED8/f3p378/ycnJumMJIUSl4HGNQnZ2No0bN7Z9bTabyc7O1phICCEq\nD49rFEwmk+4IQghRafnpDnCpgIAA9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klKm19htFB49fzL2\niBEjyhVm9erVdr83d+5cevfuDUC7du2oUqUK//vf/wgICGD//v225x04cICAgIAS38MdPRhfVXwj\nffpp6NNHzTV4s65d1alsn32mVqwI75ScDHv3+sbOe0916S/MkxypMGlo8N577xnjx483DMMw0tLS\njMaNGxuGYRh79uwxIiMjjbNnzxq//fab0axZM6OoqOiy12uK7dWKigzj7rsNY8GCix9PSjKMvn21\nRHLKunWGERhoGGfP6k4iyiMvzzCaNDGM77/XnaRyceTeafd3xoiICLsNiclkYteuXWVory42ePBg\nBg8eTEREBNWqVeOTTz4BwGKxEBsbi8Viwc/Pj8TERLvDR6JsTCZ1aM3DD8OAAVC9uu5EzrnrLmjR\nQu3F+Oc/dacRZTV5Mtx5p1oVJzyL3c1rWVlZACQmJgJqOMkwDD7//HMArWcpyOa18uveXU04Dxum\nvvaWzWsl2bpVTTynp0PNmrrTCEft3q02IO7eDQ0b6k5Tubik9lGrVq3YuXPnRY9FRUWxY8cO5xOW\nkzQK5bd9O/TooW6kV13l3Y0CqEbhzjtViW3h+YqK4O671Z6T+HjdaSofl+xoNgyDDRs22L7euHGj\n3JC9WOvWcOut8O67upO4xquvqoPdndw6IyrIxx/D2bPw5JO6kwh7Su0pbNu2jccff5zjx48DUL9+\nfT788ENat25dIQFLIj0F51itqvueng4rV3p3TwHUPEloqNqLITzXkSMQFqZ2pGu8fVRqLiudDdga\nhXr16jmfzEnSKDhv4EB15kJIiPc3CunpqveTng5XX607jbBn6FA19zN7tu4klZdLGoUzZ86wZMkS\nsrKyKCgosL3x+PHjXZe0jKRRcN5vv0H79mr/wg8/eHejAOpAluuvV5v0hOfZtEntQLdawQN+r6y0\nXDKn8MADD7Bs2TL8/f2pXbs2tWvXplatWi4LKfRo1gweekjVnfEF48fDvHnwxx+6k4hLFRSognez\nZkmD4A1K7SmEh4eze/fuisrjEOkpuMaBA2oIqWdP7+8pgCqZUKWKqrYpPMcbb6hTAFetkvpGurmk\np3Dbbbc5tVFNeC6zWf0G5+1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rV64kJCSE4OBgpk+frjtOiQYPHkzDhg2JiIjQHeWK9u/fT8eOHQkLCyM8\nPJzZs2frjlSiM2fO0KFDB1q1aoXFYmH06NG6I9lVWFhIVFQUPXr00B3FrsDAQFq2bElUVBTt27fX\nHceuY8eO8dBDDxEaGorFYmHLli26I10mLS2NqKgo20e9evU89t9RQkICYWFhREREMGDAAM6ePVvy\nE10zXVwxCgoKjObNmxuZmZlGfn6+ERkZaVitVt2xLvPjjz8a27dvN8LDw3VHuaKDBw8aO3bsMAzD\nMHJzc40WLVp45M/TMAzj5MmThmEYxrlz54wOHToY69ev15yoZLNmzTIGDBhg9OjRQ3cUuwIDA40j\nR47ojlGqgQMHGh988IFhGOrP/dixY5oTXVlhYaFxww03GL///rvuKJfJzMw0mjZtapw5c8YwDMOI\njY01PvrooxKf61U9hdTUVIKCgggMDMTf35/+/fvb9jt4kjvvvJOrPelUdztuuOEGWrVqBUDt2rUJ\nDQ0lJydHc6qSXXXVVQDk5+dTWFjINddcoznR5Q4cOMB3333HkCFDPL42l6fnO378OOvXr2fw4MEA\n+Pn5Ua9ePc2prmzNmjU0b96cxu4+dakc6tati7+/P6dOnaKgoIBTp04REBBQ4nO9qlHIzs6+6Acu\nm9tcJysrix07dtChQwfdUUpUVFREq1ataNiwIR07dsRiseiOdJnnn3+e119/nSoevinBZDLRuXNn\n2rZty/vvv687TokyMzNp0KABjz/+OK1bt2bo0KGcOnVKd6wrWrRoEQMGDNAdo0TXXHMNI0aMoEmT\nJtx4443Ur1+fzp07l/hcz/7bewlZieQeeXl5PPTQQ7z99tvUrl1bd5wSValShZ07d3LgwAF+/PFH\njysr8M0333D99dcTFRXl8b+Fb9y4kR07drBixQreffdd1q9frzvSZQoKCti+fTvx8fFs376dWrVq\nMW3aNN2x7MrPz2f58uX07dtXd5QS7du3j7feeousrCxycnLIy8vj888/L/G5XtUoBAQE2EpigJoo\nvbAshii7c+fO0adPHx555BEefPBB3XFKVa9ePe677z5++ukn3VEusmnTJpYtW0bT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774Ir/++itpaWkkJSWxceNGZs6cydSpU131oxFCho9E5ZKXl8fmzZsvKnGcn58PqJt1\ncaXY0NBQ/vjjDwA2bNhAbGwsgO08hwv17t0bgNatW/P111/bHnekgoy9a16qadOmtoJwYWFhtlr4\n4eHhZGVllXodIRwljYKoVIqKiqhfvz47duwo8fvVqlWzfV58U7903uDSm3316tUBqFq1KgUFBWXO\nVNI1L1V8DVBnSxS/pkqVKuW6phD2yPCRqFTq1q1L06ZN+eqrrwB1E961a9cVX3P77bezZMkSDMPg\njz/+YN26daVep06dOrYS1ZeSGpTCk0mjIHzaqVOnaNy4se3jrbfe4vPPP+eDDz6gVatWhIeHs2zZ\nMtvzLxzvL/68T58+mM1mLBYLjz76KK1bty7xvGCTyWR7TY8ePVi6dClRUVFs3LjR7vPsXbOk97b3\ntZxIKFxJSmcL4YCTJ09Sq1Ytjhw5QocOHdi0aRPXX3+97lhCuJzMKQjhgPvvv59jx46Rn5/P+PHj\npUEQPkt6CkIIIWxkTkEIIYSNNApCCCFspFEQQghhI42CEEIIG2kUhBBC2EijIIQQwub/A4tFvTZr\nGhPHAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56e42f0>"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.12,Page No.116"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F_G=10 #KN #Force at Pt G\n",
+ "F_B=F_E=15 #KN #Force at Pt B & E\n",
+ "w=20 #KN/m #U.d.L\n",
+ "L_FG=L_EF=L_DE=L_CD=L_BC=L_AB=1 #m #Lengths of FG,EF,DE,CD,BC,AB respectively\n",
+ "L=6 #m #Length of beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt R_F & R_A be the Reactions at E & A respectively\n",
+ "#R_F+R_A=60\n",
+ "\n",
+ "#Taking Moment At Pt A,M_A\n",
+ "R_F=(F_G*L+F_E*(L_AB+L_BC+L_CD+L_DE)+w*L_CD*(L_AB+L_BC+L_CD*2**-1)+F_B*L_AB)*(L_AB+L_BC+L_CD+L_DE+L_EF)**-1\n",
+ "R_A=60-R_F\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At G\n",
+ "V_G1=0 #KN \n",
+ "V_G2=F_G #KN\n",
+ "\n",
+ "#S.F At F\n",
+ "V_F1=V_G2 #KN\n",
+ "V_F2=V_F1-R_F\n",
+ "\n",
+ "#S.F At E\n",
+ "V_E1=V_F2 #KN\n",
+ "V_E2=V_F2+F_E\n",
+ "\n",
+ "#S.F At D\n",
+ "V_D=V_E2\n",
+ "\n",
+ "#S.F At C\n",
+ "V_C=V_E2+w*L_CD\n",
+ "\n",
+ "#S.F At B\n",
+ "V_B1=V_C\n",
+ "V_B2=V_B1+F_B\n",
+ "\n",
+ "#S.F At A\n",
+ "V_A1=V_B2\n",
+ "V_A2=V_B2-R_A\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M At Pt G\n",
+ "M_G=0\n",
+ "\n",
+ "#B.M At F\n",
+ "M_F=F_G*L_FG \n",
+ "\n",
+ "#B.M At E\n",
+ "M_E=F_G*(L_FG+L_EF)-R_F*L_EF\n",
+ "\n",
+ "#B.M At D\n",
+ "M_D=F_G*(L_FG+L_EF+L_DE)-R_F*(L_EF+L_DE)+F_E*L_DE\n",
+ "\n",
+ "#B.M At C\n",
+ "M_C=F_G*(L_FG+L_EF+L_DE+L_CD)-R_F*(L_EF+L_DE+L_CD)+F_E*(L_DE+L_CD)+w*L_CD*L_CD*2**-1\n",
+ "\n",
+ "#B.M At B\n",
+ "M_B=F_G*(L_FG+L_EF+L_DE+L_CD+L_BC)-R_F*(L_EF+L_DE+L_CD+L_BC)+F_E*(L_DE+L_CD+L_BC)+w*L_CD*(L_CD*2**-1+L_BC)\n",
+ "\n",
+ "#B.M At A\n",
+ "M_A=F_G*L-R_F*(L_EF+L_DE+L_CD+L_BC+L_AB)+F_E*(L_DE+L_CD+L_BC+L_AB)+F_B*L_AB+w*L_CD*(L_CD*2**-1+L_BC+L_AB)\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,0,L_FG,L_FG,L_FG+L_EF,L_FG+L_EF,L_FG+L_EF+L_DE,L_FG+L_EF+L_DE+L_CD,L_FG+L_EF+L_DE+L_CD+L_BC,L_FG+L_EF+L_DE+L_CD+L_BC,L_FG+L_EF+L_DE+L_CD+L_BC+L_AB,L_FG+L_EF+L_DE+L_CD+L_BC+L_AB]\n",
+ "Y1=[V_G1,V_G2,V_F1,V_F2,V_E1,V_E2,V_D,V_C,V_B1,V_B2,V_A1,V_A2]\n",
+ "Z1=[0,0,0,0,0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_FG,L_EF+L_FG,L_EF+L_FG+L_DE,L_EF+L_FG+L_DE+L_CD,L_EF+L_FG+L_DE+L_CD+L_BC,L_EF+L_FG+L_DE+L_CD+L_BC+L_AB]\n",
+ "Y2=[M_G,M_F,M_E,M_D,M_C,M_B,M_A]\n",
+ "Z2=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X2,Y2)\n",
+ "plt.xlabel(\"Lenght in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHZJJREFUeJzt3XtYVAX+x/HPIOgmYt6hB3ie8eESF03whtZaoIKVK1kq\nhWUsZvbLrd32ktlly3IT3GrLLm5tP1O7PWnLFtiF1DVMKjTDbFf2UUowQGBLIu+LwPn9wXp+KgyD\nOTMHhvfreXicyxnPZ8pnPpzznXOOzTAMQwAASPKxOgAAoPOgFAAAJkoBAGCiFAAAJkoBAGCiFAAA\nJstK4cSJE0pISFBcXJxiYmJ07733SpLq6uqUnJysyMhIpaSkqL6+3qqIANDt2Kw8TuHYsWPq3bu3\nGhsb9dOf/lSPP/648vLyNGjQIC1cuFDLli3T999/r+zsbKsiAkC3Yunuo969e0uSGhoa1NTUpP79\n+ysvL08ZGRmSpIyMDL399ttWRgSAbsXSUmhublZcXJwCAwOVlJSk2NhY1dbWKjAwUJIUGBio2tpa\nKyMCQLfia+XKfXx89MUXX+iHH37QlClT9OGHH57xvM1mk81msygdAHQ/lpbCKRdeeKGmTp2qzz//\nXIGBgaqpqVFQUJCqq6s1ZMiQVsuHh4fr66+/tiApAHRdYWFh+uqrr9pdxrLdR9999535zaLjx49r\n48aNio+PV2pqqtasWSNJWrNmjaZPn97qtV9//bUMw/Dan4ceesjyDLw/3l93fH/e/N4Mw+jQL9OW\nbSlUV1crIyNDzc3Nam5u1pw5czRp0iTFx8crLS1NK1eulN1u17p166yKCADdjmWlMHz4cBUXF7d6\nfMCAAdq0aZMFiQAAHNHcCSUmJlodwa14f12bN78/b35vHWXpwWs/ls1mUxeMDQCW6shnJ1sKAAAT\npQAAMFEKAAATpQAAMFEKAAATpQAAMFEKAAATpQAAMFEKAAATpQAAMFEKAAATpQAAMFEKAAATpQAA\nMFEKAAATpQAAMFEKAAATpQAAMFEKAACTr9UBAKAzaGyUx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jxlbLXHDBBXrx\nxRc1YcIELV++XEOHDm03s6NcZxs6dKh5UrPY2FhNnjxZkjRs2DCVl5e3uw7AEUoBXq25uVn9+vXT\nzp0723y+Z8+e5m3jv+M1m812xjUDjHbGbn5+fuZtHx8fNTY2trncl19+qcGDB3f4olBt5Tpbr169\nzlj3qde0lwNwhpkCvFrfvn01dOhQ/fWvf5XU8gH75Zdftvuayy67TDk5OTIMQ7W1tdqyZYv5XEBA\ngA4dOnROGfbv368//elP5gVc2jpPf3vFA3gSpQCvcuzYMYWGhpo/Tz31lF577TWtXLlScXFxGjZs\nmPLy8szlTz8F9KnbM2bMUEhIiGJiYjRnzhyNHDnSvJ7t/PnzdeWVV5qD5rNff/YppQ3D0Lx58/TE\nE08oKChIK1eu1Lx588xdWI5e6+j22a9xdN/bTm0Nz+ErqUAbjh49Kn9/fx08eFAJCQn65JNPNGTI\nEKtjAW7HTAFow89+9jPV19eroaFBDz74IIWAboMtBQCAiZkCAMBEKQAATJQCAMBEKQAATJQCAMBE\nKQAATP8HttSK1NQ812EAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56de6d0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEPCAYAAACtCNj2AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtclHX6//HXcLATeMrUCg1DXUBIUDcss8YUj2FqmonV\npmW11pq11dq2KprHTduyo5racVu3r7qorWRZqJn9sEQzzyfMUMzDWiIZivP749ZJBGRg7pl7Du/n\n48EjHGbu+6JsrvmcrsvmcDgciIiIACFWByAiIr5DSUFERJyUFERExElJQUREnJQURETESUlBRESc\nLE0KgwcPpkGDBiQmJjofO3LkCKmpqTRv3pzOnTtz9OhRCyMUEQkuliaFQYMGkZWVVeqxSZMmkZqa\nyrZt2+jYsSOTJk2yKDoRkeBjs/rwWl5eHmlpaW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hISWLhwofP55873n/3+jjvuICoqivj4eO655x5atWpVbn9bm83mfE1aWhoLFiwgOTmZVatWVfi8\niu5Z3rUr+nOglbEWa6l0togLjh8/zmWXXcbhw4dJSUnhyy+/pH79+laHJWI6rSmIuOC2227j6NGj\nFBcXM2rUKCUECVgaKYiIiJPWFERExElJQUREnJQURETESUlBRESclBRERMRJSUFERJz+P8O/Vq30\nkcIBAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x56d6490>"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3.13,Page No.117"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "L_AB=L_BC=L_CD=L_DE=L_EF=1 #m #LEngth of AB,BC,CD,DE,EF respectively\n",
+ "M_A=50 #KN/m #Moment at A\n",
+ "w=5 #KN/m #u.v.l\n",
+ "F_D=10 #KN\n",
+ "w2=5 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_B & R_E be the Reactions at B and E respectively\n",
+ "#R_B+R_E=20\n",
+ "\n",
+ "#Taking Moment At Pt B,M_B\n",
+ "R_E=(w2*L_EF*(L_EF*2**-1+L_DE+L_CD+L_BC)+w*L_BC*2**-1*2*3**-1+50+F_D*(L_BC+L_CD))*3**-1\n",
+ "R_B=17.5-R_E #KN\n",
+ "\n",
+ "#Shear Force Calculations\n",
+ "\n",
+ "#S.F At F\n",
+ "V_F=0\n",
+ "\n",
+ "#S.F aT E\n",
+ "V_E1=-w2*L_EF #KN\n",
+ "V_E2=V_E1+R_E\n",
+ "\n",
+ "#S.F at D\n",
+ "V_D1=R_E-w2*L_EF #KN\n",
+ "V_D2=V_D1-F_D #KN\n",
+ "\n",
+ "#S.F At C\n",
+ "V_C=V_D2\n",
+ "\n",
+ "#S.F aT B\n",
+ "V_B1=-L_BC*w*2**-1-F_D+R_E-w2*L_EF\n",
+ "V_B2=V_B1+R_B\n",
+ "\n",
+ "#Bending Moment Calculations\n",
+ "\n",
+ "#B.M at F\n",
+ "M_F=0 #KN.m\n",
+ "\n",
+ "#B.M At E\n",
+ "M_E=w2*L_EF*L_EF*2**-1 #KN.m\n",
+ "\n",
+ "#B.M at D\n",
+ "M_D=-R_E*L_DE+w2*L_EF*(L_EF*2**-1+L_DE) #KN.m\n",
+ "\n",
+ "#B.M At C\n",
+ "M_C=F_D*L_CD*R_E*(L_CD+L_DE)+w2*L_EF*(L_EF*2**-1+L_DE+L_CD) #KN.m\n",
+ "\n",
+ "#B.M At B\n",
+ "M_B=F_D*(L_CD+L_BC)-R_E*(L_BC+L_CD+L_DE)+w2*L_EF*(L_EF*2**-1+L_BC+L_CD+L_DE)+1*2**-1*L_BC*w*2*3**-1\n",
+ "\n",
+ "#B.M At A\n",
+ "M_A1=w*L_EF*(L_EF*2**-1+L_AB+L_BC+L_CD+L_DE)-R_E*(L_AB+L_BC+L_CD+L_DE)+F_D*(L_AB+L_BC+L_CD)+1*2**-1*L_BC*w*(2*3**-1*L_BC+L_AB)-R_B*L_AB\n",
+ "M_A2=M_A1+M_A\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,L_EF,L_EF,L_DE+L_EF,L_DE+L_EF,L_CD+L_DE+L_EF,L_CD+L_DE+L_EF+L_BC,L_CD+L_DE+L_EF+L_BC]\n",
+ "Y1=[V_F,V_E1,V_E2,V_D1,V_D2,V_C,V_B1,V_B2]\n",
+ "Z1=[0,0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Plotting the Bendimg Moment Diagram\n",
+ "\n",
+ "X2=[0,L_EF,L_DE+L_EF,L_CD+L_DE+L_EF,L_CD+L_DE+L_EF+L_BC,L_CD+L_DE+L_EF+L_BC+L_AB,L_CD+L_DE+L_EF+L_BC+L_AB]\n",
+ "Y2=[M_F,M_E,M_D,M_C,M_B,M_A1,M_A2]\n",
+ "Z2=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in m\")\n",
+ "plt.ylabel(\"Bending Moment in kN.m\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEPCAYAAABCyrPIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHYxJREFUeJzt3Xl0VPXdx/HPDQSULLJIFkmeJoc1CyRhMSKmJkAii0Rq\nQKVVI0vhgUcshWrpqfWJB0WsWkW0lVpELdaNHCSKTUUxogiiNREVH0RJbIAkomkOe7Pd549MRkIy\nmWQyM3eSvF/nzMnMnTv3983vkPnwu7+7GKZpmgIAdHt+VhcAAPANBAIAQBKBAACwIRAAAJIIBACA\nDYEAAJDkhUAoLS1VWlqa4uLiFB8fr0cffVSSlJOTo4iICCUlJSkpKUn5+fmeLgUA0ArD0+chlJeX\nq7y8XImJiTp58qTGjBmjV155RS+99JKCgoK0fPlyTzYPAGijnp5uICwsTGFhYZKkwMBAxcTE6MiR\nI5IkzokDAN/h1TmEkpISFRYW6rLLLpMkrVu3TgkJCZo/f76qqqq8WQoA4DxeC4STJ09q1qxZWrt2\nrQIDA7V48WIVFxerqKhI4eHhWrFihbdKAQC0xPSC6upqMyMjw3z44YdbfL+4uNiMj49vtnzw4MGm\nJB48ePD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at09GjR5WWlqZJkybZt3/nnXcqMTFR48eP17ffftus/WXL\nlmnVqlWSpH/84x+68sorm63z9NNPa+nSpa3Wda6SkhKNGDFCc+fO1fDhw/Wzn/1Mb7zxhiZMmKBh\nw4bpww8/7HjHAedy9cYMgFUCAwObLZs4caJ58OBB0zQbbgYyceJE0zRNMzs727zuuutM0zTN/fv3\nm0OGDDFN0zRffvllc9q0aaZpmmZ5ebnZr18/Mzc31zRN04yKijK///57+7YNwzBfe+010zRN8447\n7jDvueeeZu2fPn3ajIuLM3fs2GEOHz7cPHToULN1nn76afPWW29tta5zFRcXmz179jQ/++wzs76+\n3hwzZow5b9480zRNc+vWrebMmTOd9hXQHpZfywjoqJMnT2r37t2aPXu2fVl1dbWkhmu8NF79MyYm\nxn6DkPfee0/XXXedJNmvee9Ir169NH36dEnSmDFjtH379mbrXHjhhXryySeVkpKitWvXKjo6utWa\nHdV1vujoaMXFxUmS4uLiNHnyZElSfHy8SkpKWm0DaC8CAZ1efX29+vbt6/Cesb169bI/N21TZoZh\nNLlWvNnKVJq/v7/9uZ+fn2pra1tcb9++fRo4cGCzGyc50lJd5+vdu3eTths/01odgKuYQ0CnFxwc\nrOjoaG3evFlSw5frvn37Wv3MhAkTlJubK9M0VVFRoXfeecf+XlBQkI4fP96uGr755hv94Q9/UGFh\nof7+979r7969zdZpLXQAX0AgoNM5ffq0IiMj7Y9HHnlEzz33nDZs2KDExETFx8crLy/Pvv65d4lq\nfJ6VlaWIiAjFxsbqpptu0ujRo3XRRRdJkhYuXKgpU6bYJ5XP//z5d50yTVMLFizQQw89pLCwMG3Y\nsEELFiyw77Zy9FlHz8//jKPXvninO3RuHHaKbuvUqVMKCAjQ999/r+TkZL3//vsKCQmxuizAMswh\noNu6+uqrVVVVperqat11112EAbo9RggAAEnMIQAAbAgEAIAkAgEAYEMgAAAkEQgAABsCAQAgSfp/\np8METwRPdJcAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x565ba30>"
+ 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o+w1V73YbHBxMcXExAHv27CEmJgbA\ncs5EbZo3b86YMWMA6Nu3Lzt27KgzT22vebuuXbvSq1cvAHr16kVkZCQAoaGh5Obm1vkaQtSHFAwh\nrquqqqJt27YcPny4xvubN29u+V65PvSn0+luOVNBqWNI0MfHx/K9l5cXFRUVVjPV9Jq3a9GixS3P\nW32Nra8hhK1kDEOI61q3bk3Xrl15//33AfUD+ujRo3VeM3DgQDZv3oyiKBQXF/PZZ59Z7vPz8+Pi\nxYv1ylBXwRFCa1IwhMe6fPkynTt3tny9+eabrFu3jlWrVhEWFkZoaChpaWmWx9+8DXb1948//jhG\no5GQkBBmzJhBnz59aNOmDQDPPvssI0eOtAx63359Tdtq3357bd/ffk1tP3vy1t3C/mRarRCNdOnS\nJVq1asW5c+cYMGAAX3zxBf7+/lrHEsLuZAxDiEYaO3YsJSUllJeX8+qrr0qxEG5LWhhCCCFsImMY\nQgghbCIFQwghhE2kYAghhLCJFAwhhBA2kYIhhBDCJlIwhBBC2OT/Afgh7irtHHa4AAAAAElFTkSu\nQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x565e970>"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_4_HtsOENB.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_4_HtsOENB.ipynb new file mode 100644 index 00000000..0e961ce4 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_4_HtsOENB.ipynb @@ -0,0 +1,1640 @@ +{
+ "metadata": {
+ "name": "chapter 4.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4:Stresses in Beams"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.1,Page no.130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=5000 #mm #Length of Beam\n",
+ "a=2000 #mm #Length of start of beam to Pt Load\n",
+ "b=3000 #mm #Length of Pt load to end of beam\n",
+ "A=150*250 #m**2 #Area of beam \n",
+ "b=150 #mm #Width of beam\n",
+ "d=250 #mm #Depth of beam\n",
+ "sigma=10#N/mm**2 #stress\n",
+ "l=2000 #m #Load applied from one end\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=1*12**-1*b*d**3 #m**4\n",
+ "\n",
+ "#Distance from N.A to end\n",
+ "y_max=d*2**-1 #m\n",
+ "\n",
+ "#Section Modulus\n",
+ "Z=1*6**-1*b*d**2 #mm**3\n",
+ "\n",
+ "#Moment Carrying Capacity\n",
+ "M=sigma*Z #N-mm\n",
+ "\n",
+ "#Let w be the Intensity of the Load in N/m,then Max moment\n",
+ "#M_max=w*L**2*8**-1 #N-mm\n",
+ "#After substituting values and further simplifying we get\n",
+ "#M_max=w*25*100*8**-1\n",
+ "\n",
+ "#EQuating it to moment carrying capacity,we get max intensity load\n",
+ "w=M*(25*1000)**-1*8*10**-3\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#Let P be the concentrated load,then max moment occurs under the load and its value\n",
+ "#M1=P*a*b*L**-1 #N-mm\n",
+ "\n",
+ "#Equting it to moment carrying capacity we get\n",
+ "P=M*1200**-1*10**-3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Intensity of u.d.l it can carry\",round(w,3),\"KN-m\"\n",
+ "print\"MAx concentrated Load P apllied at 2 m from one end is\",round(P,3),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Intensity of u.d.l it can carry 5.0 KN-m\n",
+ "MAx concentrated Load P apllied at 2 m from one end is 13.021 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.2,Page no.131"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=70 #mm #External Diameter\n",
+ "t=8 #mm #Thickness of pipe\n",
+ "L=2500 #mm #span \n",
+ "sigma=150 #N/mm**2 #stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Internal Diameter \n",
+ "d=D-2*t #mm\n",
+ "\n",
+ "#M.I Of Pipe\n",
+ "I=pi*64**-1*(D**4-d**4) #mm**4\n",
+ "\n",
+ "y_max=D*2**-1 #mm\n",
+ "Z=I*(y_max)**-1 #mm**3\n",
+ "\n",
+ "#Moment Carrying capacity\n",
+ "M=sigma*Z #N*mm\n",
+ "\n",
+ "#Max moment int the beam occurs at the mid-span and is equal to\n",
+ "#m=P*L*4**-1\n",
+ "\n",
+ "#Equating Max moment to moment carrying capacity we get,\n",
+ "#M=P*2.5*L*4**-1\n",
+ "#After substituting and simplifying we get\n",
+ "P=4*M*(L)**-1*10**-3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Max concentrated load that can be applied at the centre of span is\",round(P,3),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max concentrated load that can be applied at the centre of span is 5.22 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.3,Page no.132"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Plate dimensions\n",
+ "b1=240 #mm\n",
+ "d1=12 #mm\n",
+ "\n",
+ "#Flange Dimensions\n",
+ "b2=180 #mm\n",
+ "d2=10 #mm\n",
+ "\n",
+ "#web\n",
+ "b3=8 #mm\n",
+ "d3=480 #mm\n",
+ "\n",
+ "D=500 #mm\n",
+ "sigma=150 #N/mm**2 #Stress\n",
+ "L=3000 #mm #span\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "\n",
+ "\n",
+ "#C.G of plate\n",
+ "y_bar1=(b1*d1*(d1*2**-1+D))*(b1*d1)**-1 #m\n",
+ "\n",
+ "#C.G of top flange\n",
+ "y_bar2=(b2*d2*(D-d2*2**-1))*(b2*d2)**-1 #m\n",
+ "\n",
+ "#C.G of web\n",
+ "y_bar3=(b3*d3*(d3*2**-1+d2))*(b3*d3)**-1 #m\n",
+ "\n",
+ "#C.G of bottom flange\n",
+ "y_bar4=(b2*d2*(d2*2**-1))*(b2*d2)**-1 #m\n",
+ "\n",
+ "#C.G of Body \n",
+ "Y=((b1*d1*(d1*2**-1+D))+(b2*d2*(D-d2*2**-1))+(b3*d3*(d3*2**-1+d2))+(b2*d2*(d2*2**-1)))*((b1*d1)+(b2*d2)+(b3*d3)+(b2*d2))**-1\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I1=(1*12**-1*b1*d1**3+b1*d1*(d1*2**-1-round(Y,3)+D)**2) #mm**4\n",
+ "I2=(1*12**-1*b2*d2**3+b2*d2*(D-d2*2**-1-round(Y,3))**2) #mm**4\n",
+ "I3=(1*12**-1*b3*d3**3+b3*d3*(d3*2**-1-round(Y,3))**2) #mm**4\n",
+ "I4=(1*12**-1*b2*d2**3+b2*d2*(round(Y,3)-d2*2**-1)**2) #mm**4\n",
+ "I=(I1+I2+I3+I4)*10**-8 #mm*4\n",
+ "\n",
+ "#Moment of resistance\n",
+ "MR=sigma*I*Y**-1\n",
+ "\n",
+ "#MaX mOMENT PRODUCED after simplifying we get\n",
+ "#MM=4.5*w\n",
+ "\n",
+ "#After equating Moment of resistance to max moment we get\n",
+ "w=198.769*4.5**-1 #KN-m\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of Resistance is\",round(MR,2),\"KN-mm\"\n",
+ "print\"Load the section can carry is\",round(w,3),\"KN/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of Resistance is 2.02 KN-mm\n",
+ "Load the section can carry is 44.171 KN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.4,Page no.134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Flange (Top)\n",
+ "b1=80 #mm #Width \n",
+ "t1=40 #mm #Thickness\n",
+ "\n",
+ "#Flange (Bottom)\n",
+ "b2=160 #mm #width\n",
+ "t2=40 #mm #Thickness\n",
+ "\n",
+ "#web\n",
+ "d=120 #mm #Depth\n",
+ "t3=20 #mm #Thickness\n",
+ "\n",
+ "D=200 #mm #Overall Depth\n",
+ "sigma1=30 #N/mm**2 #Tensile stress\n",
+ "sigma2=90 #N/mm**2 #Compressive stress\n",
+ "L=6000 #mm #Span\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance of centroid from bottom fibre\n",
+ "y_bar=(b1*t1*(D-t1*2**-1)+d*t3*(d*2**-1+t2)+b2*t2*t2*2**-1)*(b1*t1+d*t3+b2*t2)**-1 #mm\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=1*12**-1*b1*t1**3+b1*t1*(D-t1*2**-1-round(y_bar,2))**2+1*12**-1*t3*d**3+t3*d*(d*2**-1+t2-round(y_bar,2))**2+1*12**-1*b2*t2**3+b2*t2*(t2*2**-1-round(y_bar,2))**2\n",
+ "\n",
+ "#Extreme fibre distance of top and bottom fibres are y_t and y_c respectively\n",
+ "\n",
+ "y_t=y_bar #mm\n",
+ "y_c=D-y_bar #mm\n",
+ "\n",
+ "#Moment carrying capacity considering Tensile strength \n",
+ "M1=sigma1*I*y_t**-1*10**-6 #KN-m\n",
+ "\n",
+ "#Moment carrying capacity considering compressive strength \n",
+ "M2=sigma2*I*y_c**-1*10**-6 #KN-m\n",
+ "\n",
+ "#Max Bending moment in simply supported beam 6 m due to u.d.l\n",
+ "#M_max=w*L*10**-3*8**-1\n",
+ "#After simplifying further we get\n",
+ "#M_max=4.5*w\n",
+ "\n",
+ "#Now Equating it to Moment carrying capacity, we get load carrying capacity\n",
+ "w=M1*4.5**-1 #KN/m\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Uniformly Distributed Load is\",round(w,3),\"KN/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Uniformly Distributed Load is 5.096 KN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.5,Page no.136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "from scipy.integrate import *\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Flanges\n",
+ "b=200 #mm #Width\n",
+ "t=25 #mm #Thickness \n",
+ "\n",
+ "D1=500 #mm #Overall Depth\n",
+ "t2=20 #mm #Thickness of web\n",
+ "\n",
+ "d=450 #mm #Depth of web\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Consider,Element of Thickness \"y\" at Distance \"dy\" from N.A \n",
+ "#Let Bending stress \"sigma_max\"\n",
+ "\n",
+ "#Stress on the element \n",
+ "#sigma=y*(D*2**-1)*sigma_max ..............(1)\n",
+ "\n",
+ "#Area of Element\n",
+ "#A=b*dy .................................(2)\n",
+ "\n",
+ "#Force on Element \n",
+ "#F=y*250**-1*sigma_max*b*dy\n",
+ "\n",
+ "#Let M be the Moment of resistance\n",
+ "#M=y*250**-1*sigma_max*b*dy*y\n",
+ "\n",
+ "#Moment of Resistance of top flange after simplification we gget\n",
+ "#M.R=2258333.3*f\n",
+ "\n",
+ "#M.I of I section\n",
+ "I=1*12**-1*(b*D1**3-180*d**3)*10**-8\n",
+ "\n",
+ "#Moment acting on section \n",
+ "#After simplifying we get\n",
+ "#M=2865833.3*f\n",
+ "\n",
+ "#Percentage moment resistance\n",
+ "M1=2258333.3*2865833.3**-1*100\n",
+ "\n",
+ "#Percentage moment resisted by web\n",
+ "M2=100-M1\n",
+ "\n",
+ "#Result\n",
+ "print\"Percentage Moment resisted by Flanges\",round(M1,2),\"%\"\n",
+ "print\"Percentage Moment resisted by web\",round(M2,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Percentage Moment resisted by Flanges 78.8 %\n",
+ "Percentage Moment resisted by web 21.2 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.6,Page no.137"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Flanges\n",
+ "b1=200 #mm #Width\n",
+ "t1=10 #mm #Thickness\n",
+ "\n",
+ "#Web\n",
+ "d=380 #mm #Depth \n",
+ "t2=8 #mm #Thickness\n",
+ "\n",
+ "D=400 #mm #Overall Depth\n",
+ "sigma=150 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Area\n",
+ "A=b1*t1+d*t2+b1*t1 #mm**2\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=1*12**-1*(b1*D**3-(b1-t2)*d**3)\n",
+ "\n",
+ "#Bending Moment\n",
+ "M=sigma*I*(D*2**-1)**-1\n",
+ "\n",
+ "#Square Section\n",
+ "\n",
+ "#Let 'a' be the side\n",
+ "a=A**0.5\n",
+ "\n",
+ "#Moment of Resistance of this section\n",
+ "M1=1*6**-1*a*a**2*sigma\n",
+ "\n",
+ "X=M*M1**-1\n",
+ "\n",
+ "#Rectangular section\n",
+ "#Let 'a' be the side and depth be 2*a\n",
+ "\n",
+ "a=(A*2**-1)**0.5\n",
+ "\n",
+ "#Moment of Rectangular secction\n",
+ "M2=1*6**-1*a*(2*a)**2*sigma\n",
+ "\n",
+ "X2=M*M2**-1\n",
+ "\n",
+ "#Circular section\n",
+ "#A=pi*d1**2*4**-1\n",
+ "\n",
+ "d1=(A*4*pi**-1)**0.5\n",
+ "\n",
+ "#Moment of circular section\n",
+ "M3=pi*32**-1*d1**3*sigma\n",
+ "\n",
+ "X3=M*M3**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of resistance of beam section\",round(M,2),\"mm\"\n",
+ "print\"Moment of resistance of square section\",round(X,2),\"mm\"\n",
+ "print\"Moment of resistance of rectangular section\",round(X2,2),\"mm\"\n",
+ "print\"Moment of resistance of circular section\",round(X3,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of resistance of beam section 141536000.0 mm\n",
+ "Moment of resistance of square section 9.58 mm\n",
+ "Moment of resistance of rectangular section 6.78 mm\n",
+ "Moment of resistance of circular section 11.33 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.7,Page no.139"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=12 #KN #Force at End of beam\n",
+ "L=2 #m #span\n",
+ "\n",
+ "#Square section \n",
+ "b=d=200 #mm #Width and depth of beam\n",
+ "\n",
+ "#Rectangular section\n",
+ "b1=150 #mm #Width\n",
+ "d1=300 #mm #Depth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max bending Moment\n",
+ "M=F*L*10**6 #N-mm\n",
+ "\n",
+ "#M=sigma*b*d**2\n",
+ "sigma=M*6*(b*d**2)**-1 #N/mm**2\n",
+ "\n",
+ "#Let W be the central concentrated Load in simply supported beam of span L1=3 m\n",
+ "#MAx Moment\n",
+ "#M1=W*L1*4**-1\n",
+ "#After Further simplifying we get\n",
+ "#M1=0.75*10**6 #N-mm\n",
+ "\n",
+ "#The section has a moment of resistance\n",
+ "M1=sigma*1*6**-1*b1*d1**2\n",
+ "\n",
+ "#Equating it to moment of resistance we get max load W\n",
+ "#0.75*10**6*W=M1\n",
+ "#After Further simplifying we get\n",
+ "W=M1*(0.75*10**6)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum Concentrated Load required to brek the beam\",round(W,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum Concentrated Load required to brek the beam 54.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.8,Page no.140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=3 #m #span\n",
+ "sigma_t=35 #N/mm**2 #Permissible stress in tension\n",
+ "sigma_c=90 #N/mm**2 #Permissible stress in compression\n",
+ "\n",
+ "#Flanges\n",
+ "t=30 #mm #Thickness\n",
+ "d=250 #mm #Depth\n",
+ "\n",
+ "#Web\n",
+ "t2=25 #mm #Thickness\n",
+ "b=600 #mm #Width\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let y_bar be the Distance of N.A from Extreme Fibres\n",
+ "y_bar=(t*d*d*2**-1*2+(b-2*t)*t2*t2*2**-1)*(t*d*2+(b-2*t)*t2)**-1\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=(1*12**-1*t*d**3+t*d*(d*2**-1-y_bar)**2)*2+1*12**-1*(b-2*t)*t2**3+(b-2*t)*t2*(t2*2**-1-y_bar)**2\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#If web is in Tension\n",
+ "y_t=y_bar #mm\n",
+ "y_c=d-y_bar #mm\n",
+ "\n",
+ "#Moment carrying caryying capacity From consideration of tensile stress\n",
+ "M=sigma_t*I*(y_bar)**-1 #N-mm\n",
+ "\n",
+ "#Moment carrying caryying capacity From consideration of compressive stress\n",
+ "M1=sigma_c*I*(y_c)**-1 #N-mm\n",
+ "\n",
+ "#If w KN/m is u.d.l in beam,Max bending moment\n",
+ "#M=wl**2*8**-1\n",
+ "#After further simplifyng we get\n",
+ "#M=1.125*w*10**6 N-mm\n",
+ "w=M*(1.125*10**6)**-1 #KN\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#If web is in compression\n",
+ "y_t2=178.299 #mm\n",
+ "y_c2=71.71 #mm \n",
+ "\n",
+ "#Moment carrying caryying capacity From consideration of tensile stress\n",
+ "M2=sigma_t*I*(y_t2)**-1 #N-mm\n",
+ "\n",
+ "#Moment carrying caryying capacity From consideration of compressive stress\n",
+ "M3=sigma_c*I*(y_c2)**-1 #N-mm\n",
+ "\n",
+ "#Moment of resistance is M2\n",
+ "\n",
+ "#Equating it to bending moment we get\n",
+ "#M2=1.125*10**6*w2\n",
+ "#After further simplifyng we get\n",
+ "w2=M2*(1.125*10**6)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Uniformly Distributed Load carrying capacity if:web is in Tension\",round(w,2),\"KN\"\n",
+ "print\" :web is in compression\",round(w2,3),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Uniformly Distributed Load carrying capacity if:web is in Tension 73.21 KN\n",
+ " :web is in compression 29.446 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.9,Page no.141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "b1=200 #mm #Width at base\n",
+ "b2=100 #mm #Width at top\n",
+ "\n",
+ "L=8 #m Length\n",
+ "P=500 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Consider a section at y metres from top\n",
+ "\n",
+ "#At this section diameter d is\n",
+ "#d=b2+y*L**-1*(b1-b2)\n",
+ "#After Further simplifying we get\n",
+ "#d=b2+12.5*y #mm\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "#I=pi*64**-1*d**4\n",
+ "\n",
+ "#Section Modulus \n",
+ "#Z=pi*32**-1*(b1+12.5*y)**3\n",
+ "\n",
+ "#Moment \n",
+ "#M=5*10**5*y #N-mm\n",
+ "\n",
+ "#Let sigma be the fibre stress at this section then\n",
+ "#M=sigma*Z\n",
+ "#After sub values in above equation and further simplifying we get\n",
+ "#sigma=5*10**5*32*pi**-1*y*((b2+12.5*y)**3)**-1\n",
+ "\n",
+ "#For sigma to be Max,d(sigma)*(dy)**-1=0\n",
+ "#16*10**6*pi**-1*((b2+12.5*y)**-3+y*(-3)*(b2+12.5*y)**-4*12.5)\n",
+ "#After Further simplifying we get\n",
+ "#b2+12.5*y=37.5*y\n",
+ "#After Further simplifying we get\n",
+ "y=b2*25**-1 #m\n",
+ "\n",
+ "#Stress at this section\n",
+ "sigma=5*10**5*32*pi**-1*y*((b2+12.5*y)**3)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Stress at Extreme Fibre is max\",round(y,2),\"m\"\n",
+ "print\"Max stress is\",round(sigma,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress at Extreme Fibre is max 4.0 m\n",
+ "Max stress is 6.04 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.10,Page no.143"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "H=10 #mm #Height\n",
+ "A1=160*160 #mm**2 #area of square section at bottom\n",
+ "L1=160 #mm #Length of square section at bottom\n",
+ "b1=160 #mm #width of square section at bottom\n",
+ "A2=80*80 #mm**2 #area of square section at top\n",
+ "L2=80 #mm #Length of square section at top\n",
+ "b2=80 #mm #Width of square section at top\n",
+ "P=100 #N #Pull\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Consider a section at distance y from top.\n",
+ "#Let the side of square bar be 'a'\n",
+ "#a=L2+y*(H)**-1*(b1-b2)\n",
+ "#After further simplifying we get\n",
+ "#a=L2+8*y\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "#I=2*1*12**-1*a*(2)**0.5*(a*((2)**0.5)**-1)**3\n",
+ "#After further simplifying we get\n",
+ "#I=a**4*12**-1\n",
+ "\n",
+ "#Section Modulus \n",
+ "#Z=a**4*(12*a*(2)**0.5)**-1\n",
+ "#After further simplifying we get\n",
+ "#Z=2**0.5*a**3*(12)**-1 #mm**3\n",
+ "\n",
+ "#Bending moment at this section=100*y N-mm\n",
+ "#M=100*10**3*y #N-mm\n",
+ "\n",
+ "#But\n",
+ "#M=sigma*Z\n",
+ "#After sub values in above equation we get\n",
+ "#sigma=M*Z**-1\n",
+ "#After further simplifying we get\n",
+ "#sigma=1200*10**3*(2**0.5)**-1*y*((80+80*y)**3)**-1 .......(1)\n",
+ "\n",
+ "#For Max stress df*(dy)**-1=0\n",
+ "#After taking Derivative of above equation we get\n",
+ "#df*(dy)**-1=1200*10**3*(2**0.5)**-1*((80+8*y)**-3+y(-3)*(80+8*y)**-4*8)\n",
+ "#After further simplifying we get\n",
+ "y=80*16**-1 #m\n",
+ "\n",
+ "#Max stress at this level is\n",
+ "sigma=1200*10**3*(2**0.5)**-1*y*((80+8*y)**3)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Bending stress is Developed at\",round(y,3),\"m\"\n",
+ "print\"Value of Max Bending stress is\",round(sigma,3),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Bending stress is Developed at 5.0 m\n",
+ "Value of Max Bending stress is 2.455 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.12,Page no.147"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "b=200 #mm #Width of timber \n",
+ "d=400 #mm #Depth of timber\n",
+ "t=6 #mm #Thickness\n",
+ "b2=200 #mm #width of steel plate\n",
+ "t2=20 #mm #Thickness of steel plate\n",
+ "M=40*10**6 #KN-mm #Moment\n",
+ "#Let E_s*E_t**-1=X\n",
+ "X=20 #Ratio of Modulus of steel to timber\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#let y_bar be the Distance of centroidfrom bottom most fibre\n",
+ "y_bar=(b*d*(b+t)+t2*b2*t*t*2**-1)*(b*d+t2*b2*t)**-1 #mm\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=1*12**-1*b*d**3+b*d*(b+t-round(y_bar,3))**2+1*12**-1*t2*b2*t**3+b2*t2*t*(round(y_bar,3)-t*2**-1)**2\n",
+ "\n",
+ "#distance of the top fibre from N-A\n",
+ "y_1=d+t-y_bar #mm\n",
+ "\n",
+ "#Distance of the junction of timber and steel From N-A\n",
+ "y_2=y_bar-t #mm\n",
+ "\n",
+ "#Stress in Timber at the top\n",
+ "Y=M*I**-1*y_1 #N/mm**2\n",
+ "\n",
+ "#Stress in the Timber at the junction point\n",
+ "Z=M*I**-1*y_2\n",
+ "\n",
+ "#Coressponding stress in steel at the junction point\n",
+ "Z2=X*Z #N/mm**2 \n",
+ "\n",
+ "#The stress in Extreme steel fibre \n",
+ "Z3=X*M*I**-1*y_bar\n",
+ "\n",
+ "#Result\n",
+ "print\"Stress in Extreme steel Fibre\",round(Z3,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress in Extreme steel Fibre 69.67 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.13,Page no.149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Timber size\n",
+ "b=150 #mm #Width\n",
+ "d=300 #mm #Depth\n",
+ "\n",
+ "t=6 #mm #Thickness of steel plate\n",
+ "l=6 #m #Span\n",
+ "\n",
+ "#E_s*E_t**-1=20 \n",
+ "#m=E_s*E_t**-1\n",
+ "m=20 \n",
+ "sigma_timber=8 #N/mm**2 #Stress in timber\n",
+ "sigma_steel=150 #N/mm**2 #Stress in steel plate\n",
+ "\n",
+ "#Let m*t=Y\n",
+ "Y=m*t #mm\n",
+ "L=(2*t+b)*m #mm #Width of flitched beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Due to synnetry cenroid,the neutral axis is half the depth\n",
+ "I=(1*12**-1*L*t**3+L*t*(b+t*2**-1)**2)*2+1*12**-1*(Y+b+Y)*d**3 #mm**4\n",
+ "\n",
+ "y_max1=150 #mm #For timber\n",
+ "y_max2=156 #mm #For steel\n",
+ "\n",
+ "#stress in steel\n",
+ "f_t1=1*m**-1*sigma_steel #N/mm**2\n",
+ "\n",
+ "#Moment of resistance\n",
+ "M=f_t1*(I*y_max2**-1)\n",
+ "\n",
+ "#load\n",
+ "w=8*M*(l**2)**-1*10**-6 #KN/m\n",
+ "\n",
+ "#Result\n",
+ "print\"Load beam can carry is\",round(w,2),\"KN/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load beam can carry is 19.1 KN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.14,Page no.151"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=6000 #mm #Span of beam\n",
+ "W=20*10**3 #N #Load\n",
+ "sigma=8 #N/mm**2 #Stress\n",
+ "b=200 #mm #Width of section\n",
+ "d=300 #mm #Depth of section\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#let x be the distance from left side of beam\n",
+ "\n",
+ "#Bending moment\n",
+ "#M=W*2**-1*x #Nmm .......(1)\n",
+ "\n",
+ "#But M=sigma*Z ..........(2)\n",
+ "\n",
+ "#Equating equation 1 and 2 we get\n",
+ "#W*2**-1*x=sigma*Z ............(3)\n",
+ "\n",
+ "#Section Modulus \n",
+ "#Z=1*6*b*d**2 ...............(4)\n",
+ "\n",
+ "#Equating equation 3 and 4 we get\n",
+ "#b*d**2=3*W*x*sigma**-1 .............(5)\n",
+ "\n",
+ "#Beam of uniform strength of constant depth\n",
+ "#b=3*W*x*(sigma*d**2) \n",
+ "\n",
+ "#When x=0\n",
+ "b=0\n",
+ "\n",
+ "#When x=L*2**-1\n",
+ "b2=3*W*L*(2*sigma*d**2)**-1 #mm\n",
+ "\n",
+ "#Beam with constant width of 200 mm\n",
+ "\n",
+ "#We have\n",
+ "#d=(3*W*x*(sigma*d)**-1)**0.5\n",
+ "#thus depth varies as (x)**0.5\n",
+ "\n",
+ "#when x=0\n",
+ "d1=0\n",
+ "\n",
+ "#when x=L*2**-1\n",
+ "d2=(3*W*L*(2*sigma*200)**-1)**0.5 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Cross section of rectangular beam is:\",round(b2,2),\"mm\"\n",
+ "print\" :\",round(d2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Cross section of rectangular beam is: 250.0 mm\n",
+ " : 335.41 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.15,Page no.154"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=800 #mm #Span\n",
+ "n=5 #number of leaves\n",
+ "b=60 #mm #Width\n",
+ "t=10 #mm #thickness\n",
+ "sigma=250 #N/mm**2 #Stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#section Modulus\n",
+ "Z=n*6**-1*b*t**2 #mm**3\n",
+ "\n",
+ "#from the relation\n",
+ "#sigma*Z=M ...................(1)\n",
+ "#M=P*L*4**-1\n",
+ "#sub values of M in equation 1 we get\n",
+ "P=sigma*Z*4*L**-1*10**-3 #KN #Load\n",
+ "\n",
+ "#Length of Leaves\n",
+ "L1=0.2*L #mm\n",
+ "L2=0.4*L #mm\n",
+ "L3=0.6*L #mm\n",
+ "L4=0.8*L #mm\n",
+ "L5=L #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Load it can take is\",round(P,2),\"KN\"\n",
+ "print\"Length of leaves:L1\",round(L1,2),\"mm\"\n",
+ "print\" :L2\",round(L2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Load it can take is 6.25 KN\n",
+ "Length of leaves:L1 160.0 mm\n",
+ " :L2 320.0 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.16,Page no.161"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=20*10**3 #N #Shear Force\n",
+ "\n",
+ "#Tee section\n",
+ "\n",
+ "#Flange\n",
+ "b=100 #mm #Width\n",
+ "t=12 #mm #Thickness\n",
+ "\n",
+ "#Web\n",
+ "d=88 #mm #Depth\n",
+ "t2=12 #mm #Thicknes\n",
+ "\n",
+ "D=100 #mm #Overall Depth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance of C.G from Top Fibre\n",
+ "y=(b*t*t*2**-1+t2*d*(d*2**-1+t))*(b*t+d*t2)**-1 #mm \n",
+ "\n",
+ "#Moment Of Inertia\n",
+ "I=1*12**-1*b*t**3+b*t*(y-t*2**-1)**2+1*12**-1*t2*d**3+t2*d*(t+d*2**-1-y)**2 #mm**4\n",
+ "\n",
+ "#shear stress at bottom Flange\n",
+ "\n",
+ "#Area above this level\n",
+ "A=b*t #mm**2\n",
+ "\n",
+ "#C.G of this area from N-A\n",
+ "y2=y-t*2**-1\n",
+ "\n",
+ "#Stress at bottom of flange\n",
+ "sigma=F*A*y2*(b*I)**-1 #N/mm**2 \n",
+ "\n",
+ "#sigma2 at same level but in web where width is 12 mm\n",
+ "sigma2=F*A*y2*(t2*I)**-1 #N/mm**2 \n",
+ "\n",
+ "#To find shear stress at N-A\n",
+ "X=t*b*(y-t*2**-1)+t2*(y-t2)*(y-t2)*2**-1 #mm**3\n",
+ "\n",
+ "sigma3=F*X*(t2*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Shear stress at top and bottom fibre is zero\n",
+ "#sigma4 and sigma5 are top and bottom fibre shear stress\n",
+ "sigma4=sigma5=0\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force and Bending Moment Diagrams are the results\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,t,t,y,D]\n",
+ "Y1=[sigma4,sigma,sigma2,sigma3,sigma5]\n",
+ "Z1=[0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in m\")\n",
+ "plt.ylabel(\"Shear Force in kN\")\n",
+ "plt.show()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force and Bending Moment Diagrams are the results\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEPCAYAAABCyrPIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlclWX+//HXQdFSNHMDDQvGFAQ33JdMEEFRIRN1stLc\nptKflZPV+J1pGp0WdZrGzJoZxym1LJeycivSMsw1K3U0M3UMimTRVMZwCYH798elKCqCwDn3OZz3\n8/E4Dw+Hc+77wz3T/TnX8rkuh2VZFiIi4vV87A5ARETcgxKCiIgASggiInKOEoKIiABKCCIico4S\ngoiIAE5MCGlpaURFRREeHk7Lli156aWXAJgyZQqBgYFEREQQERFBUlKSs0IQEZFr4HBWHUJmZiaZ\nmZm0bduWnJwc2rdvz/vvv8/SpUupVasWjz76qDNOKyIiZVTVWQcOCAggICAAAD8/P1q0aMGhQ4cA\nUC2ciIj7cckYQmpqKjt27KBLly4AzJ49mzZt2jBmzBiys7NdEYKIiJTA6QkhJyeHwYMHM2vWLPz8\n/Bg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5nzxxRflv3Ail3JWibWIM/j5+V32Wq9evawDBw5YlmVZW7dutXr16mVZlmXd\nd9991tChQy3LsqxvvvnGuvXWWy3Lsqy3337b6tevn2VZlpWZmWndeOON1rJlyyzLsqygoCDr6NGj\nhcd2OBzWqlWrLMuyrCeeeMJ65plnLjv/qVOnrPDwcGvdunVWSEiI9d133132nvnz51sTJky4alwX\nS0lJsapWrWp9/fXXVkFBgdW+fXtr9OjRlmVZ1vLly62BAweWeK1ErlVVuxOSSHnk5OSwZcsWhgwZ\nUvhabm4uYJb6Pb/QV4sWLQrXid+4cSNDhw4FzEqRUVFRxR6/WrVq9O/fH4D27duzdu3ay95z/fXX\nM3fuXHr06MGsWbMIDg6+aszFxXWp4OBgwsPDAQgPD6d3794AtGzZktTU1KueQ6QslBDEoxUUFFCn\nTh127Nhxxd9Xq1at8Ll1brjM4XAU2WPBusowmq+vb+FzHx8f8vLyrvi+Xbt20aBBg1Jv6HSluC5V\nvXr1Iuc+/5mrxSFSHhpDEI9Wu3ZtgoODeeeddwBzc921a9dVP9O9e3eWLVuGZVlkZWWxfv36wt/V\nqlWLEydOXFMM33//PX/729/YsWMHH374Idu2bbvsPVdLOiLuQglBPMqpU6do0qRJ4ePFF1/kzTff\n5NVXX6Vt27a0bNmSFStWFL7/4h2izj9PTEwkMDCQsLAwhg8fTrt27bjhhhsAuP/+++nbt2/hoPKl\nn790xynLshg7diwvvPACAQEBvPrqq4wdO7aw26q4zxb3/NLPFPezt+4IJs6laafilU6ePEnNmjU5\nevQonTt3ZvPmzV61y5bIlWgMQbzSgAEDyM7OJjc3l6eeekrJQAS1EERE5ByNIYiICKCEICIi5ygh\niIgIoIQgIiLnKCGIiAighCAiIuf8f5wqyy9KzUKHAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5020390>"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.17,Page no.163"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=40*10**3 #N #shear Force\n",
+ "\n",
+ "#I-section\n",
+ "\n",
+ "#Flanges\n",
+ "b=80 #mm #Width of flange\n",
+ "t=20 #mm #Thickness\n",
+ "\n",
+ "#Web\n",
+ "d=200 #mm #Depth\n",
+ "t2=20 #mm #Thickness\n",
+ "\n",
+ "#Flange-2\n",
+ "b2=160 #mm #Width\n",
+ "t3=20 #mm #Thickness\n",
+ "\n",
+ "D=240 #mm #Overall Depth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance of N-A from Top Fibre \n",
+ "y=(b*t*t*2**-1+d*t2*(t+d*2**-1)+b2*t3*(t+d+t3*2**-1))*(b*t+d*t2+b2*t3)**-1 #mm\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=1*12**-1*b*t**3+b*t*(y-(t*2**-1))**2+1*12**-1*t2*d**3+t2*d*(y-(t+d*2**-1))**2+1*12**-1*b2*t3**3+t3*b2*((d+t+t3*2**-1)-y)**2 #mm**4\n",
+ "\n",
+ "#Shear stress bottom of flange\n",
+ "sigma=F*b*t*(y-t*2**-1)*(b*I)**-1 #N/mm**2\n",
+ "\n",
+ "#At same Level but in web\n",
+ "sigma2=F*b*t*(y-t*2**-1)*(t2*I)**-1 #N/mm**2\n",
+ "\n",
+ "#for shear stress at N.A\n",
+ "X=b*t*(y-t*2**-1)+t2*(y-t)*(y-t)*2**-1 #mm**3\n",
+ "sigma3=F*X*(t2*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Shear stress at bottom of web\n",
+ "\n",
+ "X=b2*t3*((D-y)-t3*2**-1) #mm**3\n",
+ "\n",
+ "#Stress at bottom of web\n",
+ "sigma4=F*X*(t2*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Stress at Lower flange\n",
+ "sigma5=F*X*(b2*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print \"The Shear Force Diagram is the result\"\n",
+ "\n",
+ "#Plotting the Shear Force Diagram\n",
+ "\n",
+ "X1=[0,20,20,140,220,220,240]\n",
+ "Y1=[0,sigma,sigma2,sigma3,sigma4,sigma5,0]\n",
+ "Z1=[0,0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length in mm\")\n",
+ "plt.ylabel(\"Shear Force in N\")\n",
+ "plt.show()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Force Diagram is the result\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYMAAAEPCAYAAACgFqixAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xlc1PW+x/HXiGgpmmtg6gkP7qiAmGsmLmiaO+gNl0w0\ne2i2py2acTSVdk29p2s3y8zSkpNaKcelg2VZ6XUrPcfMoOMC3pJLiUsI/O4f3xxXFoGZ3zDzfj4e\n82AYh/l9+D3GefP7rg7LsixERMSnVbC7ABERsZ/CQEREFAYiIqIwEBERFAYiIoLCQEREcGEYxMfH\nExgYSOvWrZ2PTZkyhRYtWhAWFsbQoUP59ddfXXV4ERG5Bi4Lg7Fjx5KcnHzJY71792bfvn3s2bOH\npk2bMnfuXFcdXkREroHLwqBr167UrFnzkseio6OpUMEcskOHDhw5csRVhxcRkWtgW5/BkiVL6Nev\nn12HFxGRi9gSBrNnz6ZSpUqMGDHCjsOLiMhlKrr7gG+99Rbr1q1j8+bNBT6ncePGHDp0yI1ViYiU\nfyEhIfzwww8l+lm3XhkkJyfzwgsvsGbNGq677roCn3fo0CEsy9LNsnjmmWdsr8FTbjoXOhc6F4Xf\nSvNHtMvCIC4ujs6dO3PgwAEaNmzIk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\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5857ff0>"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.18,Page no.164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=30*10**3 #N #Shear Force\n",
+ "\n",
+ "#Channel Section\n",
+ "d=400 #mm #Depth of web \n",
+ "t=10 #mm #THickness of web\n",
+ "t2=15 #mm #Thickness of flange\n",
+ "b=100 #mm #Width of flange\n",
+ "\n",
+ "#Rectangular Welded section\n",
+ "b2=80 #mm #Width\n",
+ "d2=60 #mm #Depth\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Distance of Centroid From Top Fibre\n",
+ "y=(d*t*t*2**-1+2*t2*(b-t)*((b-t)*2**-1+10)+d2*b2*(d2*2**-1+t))*(d*t+2*t2*(b-t)+d2*b2)**-1 #mm\n",
+ "\n",
+ "#Moment Of Inertia of the section about N-A\n",
+ "I=1*12**-1*d*t**3+d*t*(y-t*2**-1)**2+2*(1*12**-1*t2*(b-t)**3+t2*(b-t)*(((b-t)*2**-1+t)-y)**2)+1*12**-1*d2**3*b2+d2*b2*(d2*2**-1+t-y)**2\n",
+ "\n",
+ "#Shear stress at level of weld\n",
+ "sigma=F*d*t*(y-t*2**-1)*((b2+t2+t2)*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Max Shear Stress occurs at Neutral Axis\n",
+ "X=d*t*(y-t*2**-1)+2*t2*(y-t)*(y-t)*2**-1+b2*(y-t)*(y-t)*2**-1\n",
+ "\n",
+ "sigma_max=F*X*((b+t)*I)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Shear stress in the weld is\",round(sigma,2),\"N/mm**2\"\n",
+ "print\"Max shear stress is\",round(sigma_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shear stress in the weld is 3.62 N/mm**2\n",
+ "Max shear stress is 4.48 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.19,Page no.165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Wooden Section\n",
+ "b=300 #mm #Width\n",
+ "d=300 #mm #Depth\n",
+ "\n",
+ "D=100 #mm #Diameter of Bore\n",
+ "F=10*10**3 #N #Shear Force\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Moment Of Inertia Of Section\n",
+ "I=1*12**-1*b*d**3-pi*64**-1*D**4\n",
+ "\n",
+ "#Shear stress at crown of circle\n",
+ "sigma=F*b*D*(d*2**-1-D*2**-1)*(b*I)**-1\n",
+ "\n",
+ "#Let a*y_bar=X\n",
+ "X=b*d*2**-1*d*4**-1-pi*8**-1*D**2*4*D*2**-1*(3*pi)**-1 #mm**3\n",
+ "\n",
+ "#Shear Stress at Neutral Axis\n",
+ "sigma2=F*X*((b-D)*I)**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Shearing Stress at Crown of Bore\",round(sigma,3),\"N/mm**2\"\n",
+ "print\"Shear Stress at Neutral Axis\",round(sigma2,3),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shearing Stress at Crown of Bore 0.149 N/mm**2\n",
+ "Shear Stress at Neutral Axis 0.246 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.20,Page no.166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#flanges\n",
+ "b=200 #mm #width\n",
+ "t1=25 #mm #Thickness\n",
+ "\n",
+ "#web\n",
+ "d=450 #mm #Depth \n",
+ "t2=20 #mm #thickness\n",
+ "\n",
+ "D=500 #mm #Total Depth of section\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Moment Of Inertia of the section about N-A\n",
+ "I=1*12**-1*b*D**3-1*12**-1*(b-t2)*d**3 #mm**4\n",
+ "\n",
+ "#Consider an element in the web at distance y from y from N-A\n",
+ "#Depth of web section=225-y\n",
+ "\n",
+ "#C.G From N-A\n",
+ "#y2=y+(((D*2**-1-t)-y)*2**-1)\n",
+ "\n",
+ "#ay_bar for section at y\n",
+ "#Let ay_bar be X\n",
+ "#X=X1 be of Flange + X2 be of web above y\n",
+ "#X=b*t1*(D*2**-1-t1*2**-1)+t2*(d-t1)*(d-t1+y)*2**-1\n",
+ "#After Sub values and Further simplifying we get\n",
+ "#X=1187500+10*(225**2-y**2)\n",
+ "\n",
+ "#Shear stress at y\n",
+ "#sigma_y=F*(X)*(t2*I)**-1\n",
+ "\n",
+ "#Shear Force resisted by the Element\n",
+ "#F1=F*X*t2*dy*(t2*I)**-1\n",
+ "\n",
+ "#Shear stress resisted by web \n",
+ "#sigma=2*F*I**-1*(X)*dy\n",
+ "\n",
+ "#After Integrating above equation and further simplifying we get\n",
+ "#sigma=0.9578*F\n",
+ "\n",
+ "sigma=0.9578*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Shear Resisted by web\",round(sigma,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shear Resisted by web 95.78 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.21,Page no.167"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Wooden Beam\n",
+ "\n",
+ "b=150 #mm #width\n",
+ "d=250 #mm #Depth\n",
+ "\n",
+ "L=5000 #mm #span\n",
+ "m=11.2 #N/mm**2 #Max Bending stress\n",
+ "sigma=0.7 #N/mm**2 #Max shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let 'a' be the distance from left support\n",
+ "#Max shear force\n",
+ "#F=R_A=W*(L-a)*L**-1 \n",
+ "\n",
+ "#Max Moment\n",
+ "#M=W*(L-a)*a*L**-1\n",
+ "\n",
+ "#But M=sigma*Z\n",
+ "#W*(L-a)*a*L**-1=m*1*6**-1*b*d**2 .....................(1)\n",
+ "\n",
+ "#In Rectangular Section MAx stress is 1.5 times Avg shear stress\n",
+ "F=sigma*b*d*1.5**-1\n",
+ "\n",
+ "#W*(L-a)*L**-1=F .....................(2)\n",
+ "\n",
+ "#Dividing Equation 1 nad 2 we get\n",
+ "a=m*6**-1*b*d**2*1.5*(sigma*b*d)**-1\n",
+ "\n",
+ "#Sub above value in equation 2 we get\n",
+ "W=(L-a)**-1*L*F*10**-3 #KN \n",
+ "\n",
+ "#Result\n",
+ "print\"Load is\",round(W,2),\"KN\"\n",
+ "print\"Distance from Left support is\",round(a,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load is 21.87 KN\n",
+ "Distance from Left support is 1000.0 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.22,Page no.168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=1000 #mm #span\n",
+ "\n",
+ "#Rectangular Section\n",
+ "\n",
+ "b=200 #mm #width\n",
+ "d=400 #mm #depth\n",
+ "\n",
+ "sigma=1.5 #N/mm**2 #Shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let AB be the cantilever beam subjected to load W KN at free end\n",
+ "\n",
+ "#MAx shear Force\n",
+ "#F=W*10**3 #KN\n",
+ "\n",
+ "#Since Max shear stress in Rectangular section\n",
+ "#sigma_max=1.5*F*A**-1 \n",
+ "#After sub values and further simplifyng we get\n",
+ "W=1.5*b*d*(1.5*1000)**-1 #KN\n",
+ "\n",
+ "#Moment at fixwed end\n",
+ "M=W*1 #KN-m\n",
+ "y_max=d*2**-1 #mm\n",
+ "\n",
+ "#M.I\n",
+ "I=1*12**-1*b*d**3 #mm**3\n",
+ "\n",
+ "#MAx Stress\n",
+ "sigma_max=M*10**6*I**-1*y_max\n",
+ "\n",
+ "#Result\n",
+ "print\"Concentrated Load is\",round(sigma_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Concentrated Load is 15.0 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4.24,Page no.170"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=4000 #mm #span\n",
+ "\n",
+ "#Rectangular Cross-section\n",
+ "b=100 #mm #Width\n",
+ "d=200 #mm #Thickness\n",
+ "\n",
+ "F_per=10 #N/mm**2 #Max Bending stress\n",
+ "q_max=0.6 #N/mm**2 #Shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#If the Load W is in KN/m\n",
+ "\n",
+ "#Max shear Force\n",
+ "#F=w*l*2**-1 #KN\n",
+ "#After substituting values and further simplifying we get\n",
+ "#M=2*w #KN-m\n",
+ "\n",
+ "#Max Load from Consideration of moment\n",
+ "#M=1*6**-1*b*d**2*F_per\n",
+ "#After substituting values and further simplifying we get\n",
+ "w=(1*6**-1*b*d**2*F_per)*(2*10**6)**-1 #KN/m\n",
+ "\n",
+ "#Max Load from Consideration of shear stress\n",
+ "#q_max=1.5*F*(b*d)**-1 #N\n",
+ "#After substituting values and further simplifying we get\n",
+ "F=q_max*(1.5)*b*d #N\n",
+ "\n",
+ "#If w is Max Load in KN/m,then\n",
+ "#2*w*1000=8000\n",
+ "#After Rearranging and Further simplifying we get\n",
+ "w2=8000*(2*1000)**-1 #KN/m\n",
+ "\n",
+ "#Result\n",
+ "print\"Uniformly Distributed Load Beam can carry is\",round(w,2),\"KN/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Uniformly Distributed Load Beam can carry is 3.33 KN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_5_nuHXFeE.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_5_nuHXFeE.ipynb new file mode 100644 index 00000000..93998543 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_5_nuHXFeE.ipynb @@ -0,0 +1,1007 @@ +{
+ "metadata": {
+ "name": "chapter 5.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5:Deflections Of Beams By Double Integration Methods"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.2,Page No.192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=3000 #mm #span of beam\n",
+ "a=2000 #mm\n",
+ "W1=20*10**3 #N #Pt Load Acting on beam\n",
+ "W2=30*10**3 #N #Pt Load Acting on beam\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus\n",
+ "I=2*10**8 #mm**4 #M.I\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Deflection at free End Due to W2\n",
+ "dell1=W2*L**3*(3*E*I)**-1 #mm\n",
+ "\n",
+ "#Deflection at free end Due to W1\n",
+ "dell2=W1*a**3*(3*E*I)**-1+(L-a)*W1*a**2*(2*E*I)**-1 #mm\n",
+ "\n",
+ "#Total Deflection at free end\n",
+ "dell=dell1+dell2 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Deflection at Free End is\",round(dell,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Deflection at Free End is 9.08 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.4,Page No.193"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=2*10**5 #N/mm**2 #Young's Modulus\n",
+ "I=180*10**6 #mm**4 #M.I\n",
+ "W1=20 #N/m #u.d.l\n",
+ "W2=20*10**3 #N #Pt load\n",
+ "L=3000 #m #Span of beam\n",
+ "a=2000 #m #Span of u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Displacement of free End due to 20 KN Pt load at free end\n",
+ "dell1=W2*L**3*(3*E*I)**-1 #mm\n",
+ "\n",
+ "#Displacement of free end due to u.d.l\n",
+ "dell2=W1*a**4*(8*E*I)**-1+(L-a)*W1*a**3*(6*E*I)**-1\n",
+ "\n",
+ "#Deflection at free end\n",
+ "dell=dell1+dell2 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"The Displacement of Free End of cantilever beam is\",round(dell,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Displacement of Free End of cantilever beam is 6.85 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.10,Page No.201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=200*10**6 #KN/m**2 #Young's Modulus\n",
+ "I=15*10**-6 #m**4 #M.I\n",
+ "a=4000 #m \n",
+ "L_AB=6 #m #Span of beam\n",
+ "L_CB=2 #m #Length of CB\n",
+ "F_C=18 #KN #force at C\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A & V_B be the Reactions at A & B Respectively\n",
+ "#V_A+V_B=18\n",
+ "#Now taking moment at B,we get M_B\n",
+ "V_A=(F_C*L_CB)*L_AB**-1\n",
+ "V_B=18-V_A\n",
+ "\n",
+ "#Now Taking Moment at distance x\n",
+ "#M_x=6*x-18*(x-4)\n",
+ "#EI*d**2*y*(d*x**2)**-1=6*x-18*(x-4)\n",
+ "\n",
+ "#Now Integrating above equation,we get\n",
+ "#EI*dy*(dx)**-1=C1+3*x**2-9(x-4)**4\n",
+ "\n",
+ "#Again Integrating above equation we get\n",
+ "#EI*y=C2+C1*x+x**3-3*(x-4)**3\n",
+ "\n",
+ "#The Boundary conditions\n",
+ "x=0\n",
+ "y=0 #.....(a)\n",
+ "\n",
+ "x=6\n",
+ "y=0 #....(b)\n",
+ "\n",
+ "#From Boundary Condition(B.C) a we get\n",
+ "C2=0\n",
+ "\n",
+ "#From Boundary Condition(B.C) b we get\n",
+ "#6*C1+216-3*8\n",
+ "#After Further simplifying we get\n",
+ "C1=-(216-24)*6**-1\n",
+ "\n",
+ "#EI*y=-32*x+x**3-3*(x-4)**3\n",
+ "#EI*dy*(dx)**-1=-32+3*x**2-9(x-4)**4\n",
+ "\n",
+ "#For Max Deflection\n",
+ "#Assume it inthe Porion AC i.e x=4=a\n",
+ "#0=-32+3*x**2\n",
+ "x=(32*3**-1)**0.5\n",
+ "\n",
+ "#Value of Max deflection is\n",
+ "ymax=(-32*x+x**3)*(E*I)**-1 #mm\n",
+ "\n",
+ "#slope at mid-span\n",
+ "\n",
+ "#EI*(dy*(dx)**-1)_centre=-32+3*x**2\n",
+ "#at centre ,\n",
+ "x1=3 #m\n",
+ "\n",
+ "#Let (dy*(dx)**-1)_centre=X\n",
+ "X=-(-32+3*x1**2)*(E*I)**-1 #Radian\n",
+ "\n",
+ "#Deflection at Load Point\n",
+ "x2=4 #m\n",
+ "#EI*y_c=-32*x2+x2**3\n",
+ "\n",
+ "y_c=-(-32*x2+x2**3)*(E*I)**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Value of Max Deflection\",round(ymax,4),\"mm\"\n",
+ "print\"SLope at mid-span\",round(X,4),\"radian\"\n",
+ "print\"Deflection at the Load Point is\",round(y_c,4),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of Max Deflection -0.0232 mm\n",
+ "SLope at mid-span 0.0017 radian\n",
+ "Deflection at the Load Point is 0.0213 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.11,Page No.203"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_CB=2 #m #Length of CB\n",
+ "L_AC=4 #m #Length of AB\n",
+ "M_C=15 #KN.m #Moment At Pt C\n",
+ "F_C=30 #KN\n",
+ "L=6 #m Span of Beam\n",
+ "\n",
+ "#Let X=E*I\n",
+ "X=10000 #KN-m**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A and V_B be the reactions at A & B respectively\n",
+ "#V_A+V_B=30\n",
+ "\n",
+ "#Taking Moment a A,we get\n",
+ "V_B=(F_C*L_AC+M_C)*L**-1\n",
+ "V_A=30-V_B\n",
+ "\n",
+ "#Now Taking Moment at distacnce x from A\n",
+ "#M_x=7.5*x-30*(x-4)+15\n",
+ "\n",
+ "#By using Macaulay's Method\n",
+ "#EI*(d**2*x/dx**2)=M_x=7.5*x-30*(x-4)+15\n",
+ "\n",
+ "#Now Integrating above Equation we get\n",
+ "#EI*(dy/dx)=C1+7.5*x**2*2**-1-15*(x-4)**2+15*(x-4) ............(1)\n",
+ "\n",
+ "#Again Integrating above Equation we get\n",
+ "#EIy=C2+C1*x+7.5*6**-1*x**3-5*(x-4)**3+15*(x-4)**2*2**-1..........(2)\n",
+ "\n",
+ "#Boundary Cinditions\n",
+ "x=0\n",
+ "y=0\n",
+ "\n",
+ "#Substituting above equations we get \n",
+ "C2=0\n",
+ "\n",
+ "x=6 #m\n",
+ "y=0\n",
+ "\n",
+ "C1=-(7.5*6**3*6**-1-5*2**3+15*2**2*2**-1)*6**-1\n",
+ "\n",
+ "#EIy_c=C2+C1*x+7.5*6**-1*x**3-5*(x-4)**3+15*(x-4)**2*2**-1\n",
+ "#Sub values in Above equation we get\n",
+ "y_c=(93.3333*(X)**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"The Deflection at C\",round(y_c,4),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Deflection at C 0.0093 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.12,Page No.204"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AC=L_CD=L_DB=2 #m #Length of AC,CD,DB\n",
+ "F_C=40 #KN #Force at C\n",
+ "w=20 #KN/m #u.d.l\n",
+ "L=6 #m #span of beam\n",
+ "\n",
+ "#Let E*I=X\n",
+ "X=15000 #KN-m**2\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A & V_B be the reactions at A & B respectively\n",
+ "#V_A+V_B=80\n",
+ "\n",
+ "#Taking Moment B,M_B\n",
+ "V_A=(F_C*(L_CD+L_DB)+w*L_DB*L_DB*2**-1)*L**-1 #KN\n",
+ "V_B=80-V_A #KN\n",
+ "\n",
+ "#Taking Moment at distance x from A\n",
+ "#M_x=33.333*x-40*(x-2)-20*(x-4)**2*2**-1\n",
+ "#EI*(d**2/dx**2)=33.333*x-40*(x-2)-10*(x-4)**2\n",
+ "\n",
+ "#Integrating above equation we get\n",
+ "#EI*(dy/dx)=C1+33.333*x**2*2**-1-20*(x-2)**2-10*3**-1*(x-4)**3\n",
+ "\n",
+ "#Again Integrating above equation we get\n",
+ "#EI*y=C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3-10*12**-1*(x-4)**4\n",
+ "\n",
+ "#At\n",
+ "x=0\n",
+ "y=0\n",
+ "C2=0\n",
+ "\n",
+ "#At\n",
+ "x=6\n",
+ "y=0\n",
+ "C1=-760*6**-1\n",
+ "\n",
+ "#Assuming Deflection to be max in portion CD and sustituting value of C1 in equation of slope we get\n",
+ "#EI*y=C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3-10*12**-1*(x-4)**4\n",
+ "#0=-126.667+33.333*x**2**-1-20*(x-2)**2\n",
+ "\n",
+ "#After rearranging and simplifying further we get\n",
+ "\n",
+ "#x**2-24*x+62=0\n",
+ "#From above equations\n",
+ "a=1\n",
+ "b=-24\n",
+ "c=62\n",
+ "\n",
+ "y=(b**2-4*a*c)**0.5\n",
+ "\n",
+ "x1=(-b+y)*(2*a)**-1\n",
+ "x2=(-b-y)*(2*a)**-1\n",
+ "\n",
+ "#Taking x2 into account\n",
+ "x=2.945 #m\n",
+ "C1=-126.667\n",
+ "C2=0\n",
+ "\n",
+ "y_max=(C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3)*X**-1 #mm\n",
+ "\n",
+ "#Max slope occurs at the ends\n",
+ "#At A,\n",
+ "#EI*(dy/dx)_A=-126.667\n",
+ "#At B\n",
+ "#EI*(dy/dx)_B=126.667+33.333*6**2*2**-1-20*4**2-10*2**3\n",
+ "#After simplifying Further we get\n",
+ "#EI*(dy/dx)_B=73.3273\n",
+ "\n",
+ "#Now Max slope is EI(dy/dx)_A=-126.667\n",
+ "#15000*(dy/dx)_=-126.667\n",
+ "\n",
+ "#Let Y=dy/dx\n",
+ "Y=-126.667*X**-1 #Radians\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum Deflection for Beam is\",round(y_max,4),\"mm\"\n",
+ "print\"Maximum Slope for beam is\",round(Y,4),\"radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum Deflection for Beam is -0.0158 mm\n",
+ "Maximum Slope for beam is -0.0084 radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.13,Page No.206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=2*10**8 #KN/m**2\n",
+ "I=450*10**-6 #m**4\n",
+ "L_AC=1 #m #Length of AC\n",
+ "L_CD=3 #m #Length of CD\n",
+ "L_DB=2 #m #Length of DB\n",
+ "w=10 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A & V_B be the reactions at A & B respectively\n",
+ "#V_A+V_B=30\n",
+ "\n",
+ "#Taking Moment at distance x from A\n",
+ "#M_x=17.5*x-10*(x-1)**2*2**-1+10*(x-4)**2*2**-1\n",
+ "#EI*(d**2/dx**2)=17.5*x-10*(x-1)**2*2**-1+10*(x-4)**2*2**-1\n",
+ "\n",
+ "#Now Integrating Above equation we get\n",
+ "#EI(dy/dx)=C1+17.5*x**2*2**-1-5*3**-1*(x-1)**2+5*3**-1*(x-4)**3\n",
+ "\n",
+ "#Again Integrating Above equation we get\n",
+ "#EI*y=C2+C1*x+17.5*x**3*6**-1-5*12**-1*(x-1)**4+5*12**-1*(x-4)**4\n",
+ "\n",
+ "#At \n",
+ "x=0\n",
+ "y=0\n",
+ "C2=0\n",
+ "\n",
+ "#At \n",
+ "x=6 \n",
+ "y=0\n",
+ "C1=(-17.5*x**3*6**-1+5*12**-1*(x-1)**4-5*12**-1*(x-4)**4)*x**-1\n",
+ "\n",
+ "# 1)Slope at A .i.e at x=0\n",
+ "#EI*(dy/dx)_A=C1=-62.708 #KN-m**2\n",
+ "#let (dy/dx)=X\n",
+ "X=C1*(E*I)**-1 #radiams\n",
+ "\n",
+ "#Deflection at mid-span\n",
+ "x=3 #m\n",
+ "#EI*y_centre=C1*x+17.5*x**3*6**-1-5*12**-1*(x-1)**2\n",
+ "y_centre=-(C1*x+17.5*x**3*6**-1-5*12**-1*(x-1)**4)*(E*I)**-1\n",
+ "\n",
+ "#Maximum Deflection\n",
+ "\n",
+ "#At point of Max deflection (dy/dx)=0\n",
+ "#Assuming it in portion CD\n",
+ "\n",
+ "#0=C1*x+17.5*x**2*2**-1-5*3**-1*(x-1)**3\n",
+ "\n",
+ "#Now Let\n",
+ "#F(x)=C1+17.5*x**2*2**-1-5*3**-1*(x-1)**3\n",
+ "\n",
+ "#Let F(x)=Y\n",
+ "#At \n",
+ "x=2.5\n",
+ "Y1=-(C1+17.5*x**2*2**-1-5*3**-1*(x-1)**3)\n",
+ "\n",
+ "#AT\n",
+ "x=3\n",
+ "Y2=-(C1+17.5*x**2*2**-1-5*3**-1*(x-1)**3)\n",
+ "\n",
+ "#At\n",
+ "x=2.9 #m\n",
+ "Y3=-(C1+17.5*x**2*2**-1-5*3**-1*(x-1)**3)\n",
+ "\n",
+ "#A curve may be plotted for (F(x) and the value for which F(x)=0 may be found\n",
+ "#For F(x)=0 for x=2.92 m\n",
+ "#Therefore y_max occur at x=2.92\n",
+ "\n",
+ "x=2.92 #m\n",
+ "y_max=(C1*x+17.5*x**3*6**-1-5*12**-1*(x-1)**4)*(E*I)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Slope at A\",round(X,6),\"mm\"\n",
+ "print\"Deflection at mid-span\",round(y_centre,6),\"mm\"\n",
+ "print\"Maxmimum Deflection is\",round(y_max,5),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Slope at A -0.000697 mm\n",
+ "Deflection at mid-span 0.001289 mm\n",
+ "Maxmimum Deflection is -0.00129 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.14,Page No.208"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_AC=LDE=L_EB=1 #m #Length of AC\n",
+ "L_CD=2 #m #Length of CD\n",
+ "E=200 #KN/mm**2\n",
+ "I=60*10**6 #mm**4 #M.I\n",
+ "F_C=20 #KN #Force at C\n",
+ "F_E=30 #KN #Force at E\n",
+ "w=10 #KN/m #u.d.l\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "X=E*I*10**-6 #KN-m**2\n",
+ "\n",
+ "#Let V_A & V_B be the reactions at A & B respectively\n",
+ "#V_A+V_B=70\n",
+ "\n",
+ "#Taking Moment at distance x from A\n",
+ "#M_x=34*x-20*(x-1)-10*(x-1)**2*2**-1+10*(x-3)**2*2**-1-30*(x-4)\n",
+ "#EI*(d**2y/dx**2)=34*x-20*(x-1)-10*(x-1)**2*2**-1+10*(x-3)**2*2**-1-30*(x-4)\n",
+ "\n",
+ "#Now Integrating Above equation,we get\n",
+ "#EI*(dy/dx)=C1+17*x**2-10*(x-1)**2-5*3**-1*(x-1)**3+5*3**-1*(x-3)**3-15*(x-4)**2\n",
+ "\n",
+ "#Again Integrating Above equation,we get\n",
+ "#EI*y=C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4+5*12**-1*(x-3)**4-5*(x-4)**3\n",
+ "\n",
+ "#At\n",
+ "x=0\n",
+ "y=0\n",
+ "C2=0\n",
+ "\n",
+ "#At \n",
+ "x=5 #m\n",
+ "y=0\n",
+ "C1=(-17*3**-1*x**3+10*3**-1*(x-1)**3+5*12**-1*(x-1)**4-5*12**-1*(x-3)**4+5*(x-4)**3)*5**-1\n",
+ "\n",
+ "#EI*y=C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4+5*12**-1*(x-3)**4-5*(x-4)**3\n",
+ "C2=0\n",
+ "C1=-78\n",
+ "x=1\n",
+ "y_c=(-78*x+17*3**-1*x)*(X)**-1\n",
+ "\n",
+ "#EI*y_D=C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4\n",
+ "x=3\n",
+ "C1-78\n",
+ "C2=0\n",
+ "y_D=(C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4)*(X**-1)\n",
+ "\n",
+ "#EI*y_E=C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4+5*12**-1*(x-3)**4\n",
+ "x=4\n",
+ "C1-78\n",
+ "C2=0\n",
+ "y_E=(C2+C1*x+17*3**-1*x**3-10*3**-1*(x-1)**3-5*12**-1*(x-1)**4+5*12**-1*(x-3)**4)*X**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Deflections at C\",round(y_c,5),\"mm\"\n",
+ "print\"Deflections at D\",round(y_D,5),\"mm\"\n",
+ "print\"Deflections at E\",round(y_E,4),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Deflections at C -0.00603 mm\n",
+ "Deflections at D -0.00953 mm\n",
+ "Deflections at E -0.0061 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.15,Page No.209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=200 #KN/mm**2 #Modulus of Elasticity\n",
+ "I=300*10**6 #mm\n",
+ "L_AB=L_BC=L_CD=L_DE=1 #m #Length of AB,BC,CD,DE respectively\n",
+ "F_A=20 #KN #Force at A\n",
+ "F_C=10 #KN #Force at C\n",
+ "w=30 #KN/m #u.d.l\n",
+ "\n",
+ "#Let E*I=X\n",
+ "X=E*I*10**-6 #KN-2**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_E be the reactions at E\n",
+ "V_E=F_A+F_C+w*(L_BC+L_CD) #KN \n",
+ "\n",
+ "#Taking Moment at distance x\n",
+ "#EI*(d**2x/dy**2)=M=-20*x-30*(x-1)**2*2**-1-10*(x-2)+30*(x-3)**2*2**-1\n",
+ "\n",
+ "#Integrating above equation we get\n",
+ "#EI*(dy/dx)=C1-10*x**2-5*(x-1)**3-5*(x-2)**2+5*(x-3)**3\n",
+ "\n",
+ "#Again Integrating above equation\n",
+ "#EI*y=C2+C1*x-10*x**3*3**-1-5*(x-1)**4*4**-1-5*(x-3)**4*4**-1-5*3*(x-2)**3\n",
+ "\n",
+ "#At\n",
+ "#dy/dx=0\n",
+ "x=4 #m\n",
+ "C1=10*x**2+5*(x-1)**3+5*(x-2)**2-5*(x-3)**3\n",
+ "\n",
+ "#AT\n",
+ "x=4\n",
+ "y=0\n",
+ "C2=-C1*4+10*x**3*3**-1+5*(x-1)**4*4**-1-5*(x-3)**4*4**-1+5*3**-1*(x-2)**3\n",
+ "\n",
+ "#Max Deflection and Max slopes occurs at Free end in case of cantilever\n",
+ "y_max=y_A=C2*X**-1\n",
+ "\n",
+ "#EI*(dy/dx)_max=C1\n",
+ "#Let (dy/dx)=Y\n",
+ "Y=C1*X**-1 #radian\n",
+ "\n",
+ "#Now deflection at x=1 #m\n",
+ "C2=-913.333\n",
+ "C1=310\n",
+ "x=1\n",
+ "y_B=(C2+C1*x-10*x**3*3**-1)*X**-1\n",
+ "\n",
+ "#Now Deflection at x=2 #m\n",
+ "C2=-913.333\n",
+ "C1=310\n",
+ "x=2 #m\n",
+ "y_C=(C2+C1*x-10*x**3*3**-1-5*(x-1)**4*4**-1)*X**-1\n",
+ "\n",
+ "#Now Deflection at x=3 #m\n",
+ "C2=-913.333\n",
+ "C1=310\n",
+ "x=3 #m\n",
+ "y_D=(C2+C1*x-10*x**3*3**-1-5*(x-1)**4*4**-1-5*3**-1*(x-2)**3)*X**-1\n",
+ "\n",
+ "y_E=0\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Deflection for Beam\",round(y_A,4),\"mm\"\n",
+ "print\"Max Slope for beam\",round(Y,5),\"radians\"\n",
+ "\n",
+ "#Plotting the ELastic Curve\n",
+ "\n",
+ "Y2=[y_E,y_D,y_C,y_B,y_A]\n",
+ "X2=[L_AB+L_BC+L_CD+L_DE,L_AB+L_BC+L_CD,L_AB+L_BC,L_AB,0]\n",
+ "Z2=[0,0,0,0,0]\n",
+ "plt.plot(X2,Y2,X2,Z2)\n",
+ "plt.xlabel(\"Length in mm\")\n",
+ "plt.ylabel(\"Deflection in mm\")\n",
+ "plt.show()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Deflection for Beam -0.0152 mm\n",
+ "Max Slope for beam 0.00517 radians\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAZoAAAEPCAYAAAB7rQKTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtYVXXe9/H3VtFMnbTSbQKFgQh4CJNyzIkw2hpa5NTk\noTIqs4O3ljk9SffMM+GUhjkdxpwa7e7AVA+imcqYQ2EGTh5C0zKDwrpFAYFKZMIjsFnPHyu3Imdk\nszbweV3Xvi7W4rfW+q516f7yW7+TzTAMAxERETfpYHUAIiLStinRiIiIWynRiIiIWynRiIiIWynR\niIiIWynRiIiIW1maaFJSUggKCmLAgAEsXLiwxjKPPPIIAwYM4IorrmDXrl31HltcXIzD4SAwMJAx\nY8ZQUlLi9vsQEZHaWZZonE4nM2fOJCUlhczMTBITE8nKyqpSZv369Xz33Xfs3buXZcuW8fDDD9d7\nbHx8PA6Hg+zsbCIjI4mPj2/xexMRkdMsSzQZGRkEBATg5+eHl5cXkydPZu3atVXKJCcnExMTA8CI\nESMoKSmhsLCwzmPPPCYmJoY1a9a07I2JiEgVliWa/Px8fH19Xds+Pj7k5+c3qMzBgwdrPbaoqAi7\n3Q6A3W6nqKjInbchIiL1sCzR2Gy2BpVryAw5hmHUeD6bzdbg64iIiHt0surC3t7e5ObmurZzc3Px\n8fGps0xeXh4+Pj6Ul5dX2+/t7Q2YtZjCwkL69u1LQUEBffr0qfH6tgttcLg570hEpG3z9/fnu+++\na/RxltVowsLC2Lt3Lzk5OZSVlZGUlER0dHSVMtHR0fzjH/8AYNu2bfTs2RO73V7nsdHR0SQkJACQ\nkJDAhAkTag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gztA7Y8YMgoODGTNmDOPHj2fVqlW8\n/PLLHDx4kNGjRxMZGek6/x//+EdCQ0MZOXIkP/zwQ7Xrv/XWW8yaNavOa54pJyeHoKAg7r33XgYO\nHMidd97JRx99xKhRowgMDGT79u0AxMXFERMTQ3h4OH5+frz//vs8/vjjDB06lKioKCoqKpr9WUr7\npEQjUo8HHniAl19+mR07drBo0SJmzJjh+l1hYSGbN29m3bp1xMbGAvD++++zf/9+srKyePvtt9m6\ndSs2m41Zs2bRr18/0tLS+PjjjwE4evQoI0eO5IsvviA8PJzXXnut2vXPnhW3pmue7fvvv+fxxx/n\nm2++4dtvvyUpKYnNmzfzl7/8hQULFrjK7du3j08++YTk5GTuuusuHA4Hu3fvpmvXrnzwwQfn/OxE\noA3PdSbSHI4cOcLWrVu5/fbbXfvKysoAMwGcms04ODjYtfDTp59+ysSJEwFc647UpnPnzowfPx6A\n4cOHk5qaWmc8tV3zbP3792fQoEEADBo0iBtuuAGAwYMHk5OT4zpXVFQUHTt2ZPDgwVRWVjJ27FgA\nhgwZ4ioncq6UaETqUFlZSc+ePWtdE71z586un081d9pstiprddTVDOrl5eX6uUOHDg16XVXTNc/W\npUuXKuc9dczZ1zhzf1NiEWkIvToTqcOvfvUr+vfvz3vvvQeYX+y7d++u85hRo0axatUqDMOgqKiI\n9PR01+969OjBzz//3KgY3NVfR/2ApKUo0Yic4dixY/j6+ro+L730Eu+++y6vv/46oaGhDB48mOTk\nZFf5M9tPTv1822234ePjQ0hICFOnTuXKK6/kggsuAMz2nhtvvNHVGeDs42tapfDs/bX9fPYxtW2f\n+rmu89Z1bpHGUvdmETc4evQo3bp149ChQ4wYMYItW7bQp08fq8MSsYTaaETc4KabbqKkpISysjL+\n9Kc/KclIu6YajYiIuJXaaERExK2UaERExK2UaERExK2UaERExK2UaERExK2UaERExK3+P5k+A1z9\nL+mlAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x4f06390>"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.16,Page No.211"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_BD=L_CB=L_AC=2 #m #Length of BD,CB,AC\n",
+ "F_C=40 #KN #Force at C\n",
+ "F_D=10 #KN Force at D\n",
+ "L=6 #m spna of beam\n",
+ "\n",
+ "#EI is constant in this problem\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A & V_B be the reactions at A & B Respectively\n",
+ "#V_A+V_B=50\n",
+ "\n",
+ "#Taking Moment at Pt A\n",
+ "V_B=(F_D*L+F_C*L_AC)*(L_AC+L_CB)**-1\n",
+ "V_A=50-V_B\n",
+ "\n",
+ "#Now Taking Moment at distance x from A,M_x\n",
+ "#M_x=15*x-40*(x-2)+35*(x-4)\n",
+ "#EI*(d**2*y/dx**2)=15*x-40*(x-2)+35*(x-4)\n",
+ "\n",
+ "#Now Integrating above equation we get\n",
+ "#EI*(dy/dx)=C1+7.5*x**2-20*(x-2)**2+17.5(x-4)**2\n",
+ "\n",
+ "#Again Integrating above equation we get\n",
+ "#EI*y=C2+C1*x+2.5*x**2-20*3**-1*(x-2)**3+17.5*(x-4)**3*3**-1\n",
+ "\n",
+ "#At\n",
+ "x=0\n",
+ "y=0\n",
+ "#we get\n",
+ "C2=0\n",
+ "\n",
+ "#At\n",
+ "x=4 \n",
+ "y=0\n",
+ "#we get\n",
+ "C1=(2.5*4**3-20*3**-1*2**3)*4**-1\n",
+ "\n",
+ "#Now Deflection at C\n",
+ "x=2\n",
+ "C1=-26.667\n",
+ "C2=0\n",
+ "y_C=C2+C1*x+2.5*x**3\n",
+ "\n",
+ "#Now Deflection at D\n",
+ "C1=-21.667\n",
+ "C2=0\n",
+ "y_D=-26.667*6+2.5*6**3-20*3**-1*4**3+17.5*2**3*3**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Deflections Under Loads are:y_D\",round(y_D,4)\n",
+ "print\" :y_C\",round(y_C,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Deflections Under Loads are:y_D -0.002\n",
+ " :y_C -33.33\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.17,Page No.212"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_BC=L_EB=2 #m #Length of BC & EB\n",
+ "E=200*10**6 #KN/m**2 #Modulus of eLasticity\n",
+ "I=45*10**-6 #mm**4 #M.I\n",
+ "L_DE=3 #m #Length of DE\n",
+ "L_AD=1 #m #Length of AD\n",
+ "w=20 #KN/m #u.d.l\n",
+ "L=8 #m #span of beam\n",
+ "F_C=30 #KN #Force at C\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let V_A & V_B be the reactions at A & B respectively\n",
+ "#V_A+V_B=90\n",
+ "\n",
+ "#Taking Moment at A,M_A\n",
+ "V_B=(w*L_DE*(L_DE*2**-1+L_AD)+F_C*L)*(L_AD+L_DE+L_EB)**-1\n",
+ "V_A=90-V_B\n",
+ "\n",
+ "#Taking Moment at distance x\n",
+ "#M_x=25*x-20*(x-1)**2*2**-1+20*(x-4)**2*2**-1+65*(x-6)\n",
+ "\n",
+ "#Integrating above equation we get\n",
+ "#EI*(d**2*y/dx**2)=25*x-10*(x-1)**2+10*(x-4)**2+65*(x-6)\n",
+ "\n",
+ "#again Integrating above equation we get\n",
+ "#EI*(dy/dx)=C1+25*x**2*2**-1-10*3**-1*(x-1)**3+10*3**-1*(x-4)**2+65*2**-1*(x-6)**2\n",
+ "\n",
+ "#again Integrating above equation we get\n",
+ "#EI*y=C2+C1*x+25*6**-1*x**3-10*12**-1*(x-1)**4+10*12**-1*(x-4)**4+65*6**-1*(x-6)**3\n",
+ "\n",
+ "x=0\n",
+ "y=0\n",
+ "#Sub these values in above equation,we get\n",
+ "C2=0\n",
+ "\n",
+ "x=6 #m\n",
+ "y=0\n",
+ "C1=-(25*6**-1*6**3-10*12**-1*5**4+10*12**-1*2**4)*6**-1\n",
+ "\n",
+ "#deflection at C is given by\n",
+ "x=8\n",
+ "y_c=(C2+C1*x+25*6**-1*x**3-10*12**-1*(x-1)**4+10*12**-1*(x-4)**4+65*6**-1*(x-6)**3)*(E*I)**-1\n",
+ "\n",
+ "#Assuming y is max in the portion DE,then\n",
+ "#(dy/dx)=0 for that point\n",
+ "\n",
+ "#0=-65.417+25*2**-1*x**2-10*3**-1*x(-1)**3\n",
+ "\n",
+ "#Let F(x)=-65.417+25*2**-1*x**2-10*3**-1*x(-1)**3\n",
+ "#Let z=F(x)\n",
+ "\n",
+ "#AT \n",
+ "x=3\n",
+ "z=-65.417+25*2**-1*x**2-10*3**-1*(x-1)**3\n",
+ "\n",
+ "x=2.5\n",
+ "z1=-65.417+25*2**-1*x**2-10*3**-1*(x-1)**3\n",
+ "\n",
+ "x=2.4\n",
+ "z2=-65.417+25*2**-1*x**2-10*3**-1*(x-1)**3\n",
+ "\n",
+ "#The assumption is max in portion DE\n",
+ "x=2.46\n",
+ "y_max=(-65.417*x+25*6**-1*x**3-10*12**-1*1.46**4)*(E*I)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Deflection at free end C\",round(y_c,4),\"mm\"\n",
+ "print\"Max Deflection between A and B\",round(y_max,4),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Deflection at free end C -0.0101 mm\n",
+ "Max Deflection between A and B -0.0114 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5.18,Page No.213"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L_DB=L_AC=L_ED=2 #m #Length of DB & AC\n",
+ "L_CD=4 #m #Length of CD\n",
+ "L_CE=2 #m #Length of CE\n",
+ "F_A=40 #KN #Force at C\n",
+ "F_B=20 #KN #Force at A\n",
+ "E=200*10**6 #KN/mm**2 #Modulus of Elasticity\n",
+ "I=50*10**-6 #m**4 #M.I\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#LEt V_C & V_D be the reactions at C & D respectively\n",
+ "#V_C+V_D=60\n",
+ "\n",
+ "#Taking Moment At D,M_D\n",
+ "V_C=-(-F_A*(L_AC+L_CE+L_ED)+F_B*L_DB)*L_CD**-1\n",
+ "V_D=60-V_C\n",
+ "\n",
+ "#Now Taking Moment at Distance x from A,\n",
+ "#M_x=-40*x+50*(x-2)+10*(x-6)\n",
+ "\n",
+ "#EI*(d**2*y/dx**2)=-40*x+50*(x-2)+10*(x-6)\n",
+ "\n",
+ "#Now Integrating above Equation we get\n",
+ "#EI*(dy/dx)=C1+20*x**2-25*(x-2)+5*(x-6)**2\n",
+ "\n",
+ "#Again Integrating above Equation we get\n",
+ "#EI*y=C2+C1*x-20*3**-1*x**3+25*3**-1*(x-2)**3+5*3**-1*(x-6)**3\n",
+ "\n",
+ "#At\n",
+ "x=0\n",
+ "y=0\n",
+ "#C2+2*C1=-53.33 ...............(1)\n",
+ "\n",
+ "#At \n",
+ "x=6\n",
+ "y=0\n",
+ "#C2+6*C1=906.667 ...............(2)\n",
+ "\n",
+ "#Subtracting Equation 1 from 2 we get\n",
+ "C1=853.333*4**-1\n",
+ "C2=53.333-2*C1\n",
+ "x=0\n",
+ "y_A=(C2+C1*x-20*3**-1*x**3+25*3**-1*(x-2)**3+5*3**-1*(x-6)**3)*(E*I)**-1\n",
+ "\n",
+ "#Answer For y_A is incorrect in textbook\n",
+ "\n",
+ "#At Mid-span\n",
+ "C1=853.333*4**-1\n",
+ "C2=53.333-2*C1\n",
+ "x=4\n",
+ "y_E=(C2+C1*x-20*3**-1*x**3+25*3**-1*(x-2)**3+5*3**-1*(x-6)**3)*(E*I)**-1\n",
+ "\n",
+ "#Answer For y_E is incorrect in textbook\n",
+ "\n",
+ "#At B\n",
+ "C1=853.333*4**-1\n",
+ "C2=53.333-2*C1\n",
+ "x=8\n",
+ "y_B=(C2+C1*x-20*3**-1*x**3+25*3**-1*(x-2)**3+5*3**-1*(x-6)**3)*(E*I)**-1\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Deflection relative to the level of the supports:at End A\",round(y_A,4),\"mm\"\n",
+ "print\" :at End B\",round(y_B,4),\"mm\"\n",
+ "print\" :at Centre of CD\",round(y_E,4),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Deflection relative to the level of the supports:at End A -0.08 mm\n",
+ " :at End B -0.0267 mm\n",
+ " :at Centre of CD 0.0107 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_6_Ffb7zrN.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_6_Ffb7zrN.ipynb new file mode 100644 index 00000000..6ece5381 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_6_Ffb7zrN.ipynb @@ -0,0 +1,1494 @@ +{
+ "metadata": {
+ "name": "chapter 6.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter No.6:Torsion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.1,Page No.225"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=10000 #mm #Length of solid shaft\n",
+ "d=100 #mm #Diameter of shaft\n",
+ "n=150 #rpm\n",
+ "P=112.5*10**6 #N-mm/sec #Power Transmitted\n",
+ "G=82*10**3 #N/mm**2 #modulus of Rigidity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "J=pi*d**4*(32)**-1 #mm**3 #Polar Modulus\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #Torsional moment\n",
+ "\n",
+ "r=50 #mm #Radius\n",
+ "\n",
+ "q_s=T*r*J**-1 #N/mm**2 #Max shear stress intensity\n",
+ "Theta=T*L*(G*J)**-1 #angle of twist\n",
+ "\n",
+ "#Result\n",
+ "print\"Max shear stress intensity\",round(q_s,2),\"N/mm**2\"\n",
+ "print\"Angle of Twist\",round(Theta,3),\"radian\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max shear stress intensity 36.48 N/mm**2\n",
+ "Angle of Twist 0.089 radian\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.2,Page No.226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=440*10**6 #N-m/sec #Power transmitted\n",
+ "n=280 #rpm\n",
+ "theta=pi*180**-1 #radian #angle of twist\n",
+ "L=1000 #mm #Length of solid shaft\n",
+ "q_s=40 #N/mm**2 #Max torsional shear stress\n",
+ "G=84*10**3 #N/mm**2 #Modulus of rigidity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#P=2*pi*n*T*(60)**-1 #Equation of Power transmitted\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #torsional moment\n",
+ "\n",
+ "#From Consideration of shear stress\n",
+ "d1=(T*16*(pi*40)**-1)**0.333333 \n",
+ "\n",
+ "#From Consideration of angle of twist\n",
+ "d2=(T*L*32*180*(pi*84*10**3*pi)**-1)**0.25\n",
+ "\n",
+ "#result\n",
+ "print\"Diameter of solid shaft is\",round(d1,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of solid shaft is 124.09 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.3,Page No.227"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "G=80*10**3 #N/mm**2 #Modulus of rigidity\n",
+ "q_s=80 #N/mm**2 #Max sheare stress\n",
+ "P=736*10**6 #N-mm/sec #Power transmitted\n",
+ "n=200\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #Torsional moment\n",
+ "\n",
+ "#Now From consideration of angle of twist\n",
+ "theta=pi*180**-1\n",
+ "#L=15*d\n",
+ "\n",
+ "d=(T*32*180*15*(pi**2*G)**-1)**0.33333\n",
+ "\n",
+ "#Now corresponding stress at the surface is\n",
+ "q_s2=T*32*d*(pi*2*d**4)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Max diameter required is\",round(d,2),\"mm\"\n",
+ "print\"Corresponding shear stress is\",round(q_s2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max diameter required is 156.66 mm\n",
+ "Corresponding shear stress is 46.55 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.4,Page No.228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=25 #mm #Diameter of steel bar\n",
+ "p=50*10**3 #N #Pull\n",
+ "dell_1=0.095 #mm #Extension of bar\n",
+ "l=200 #mm #Guage Length\n",
+ "T=200*10**3 #N-mm #Torsional moment\n",
+ "theta=0.9*pi*180**-1 #angle of twist\n",
+ "L=250 #mm Length of steel bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A=pi*4**-1*d**2 #Area of steel bar #mm**2\n",
+ "E=p*l*(dell_1*A)**-1 #N/mm**2 #Modulus of elasticity \n",
+ "\n",
+ "J=pi*32**-1*d**4 #mm**4 #Polar modulus\n",
+ "\n",
+ "G=T*L*(theta*J)**-1 #Modulus of rigidity #N/mm**2\n",
+ "\n",
+ "#Now from the relation of Elastic constants\n",
+ "mu=E*(2*G)**-1-1\n",
+ "\n",
+ "#result\n",
+ "print\"The Poissoin's ratio is\",round(mu,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Poissoin's ratio is 0.292\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.5,Page No.229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=6000 #mm #Length of circular shaft\n",
+ "d1=100 #mm #Outer Diameter\n",
+ "d2=75 #mm #Inner Diameter\n",
+ "R=100*2**-1 #Radius of shaft\n",
+ "T=10*10**6 #N-mm #Torsional moment\n",
+ "G=80*10**3 #N/mm**2 #Modulus of Rigidity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "J=pi*32**-1*(d1**4-d2**4) #mm**4 #Polar Modulus \n",
+ "\n",
+ "#Max Shear stress produced\n",
+ "q_s=T*R*J**-1 #N/mm**2\n",
+ "\n",
+ "#Angle of twist\n",
+ "theta=T*L*(G*J)**-1 #Radian\n",
+ "\n",
+ "#Result\n",
+ "print\"MAx shear stress produced is\",round(q_s,2),\"N/mm**2\"\n",
+ "print\"Angle of Twist is\",round(theta,2),\"Radian\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "MAx shear stress produced is 74.5 N/mm**2\n",
+ "Angle of Twist is 0.11 Radian\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.6,Page No.229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=200 #mm #External Diameter of shaft\n",
+ "t=25 #mm #Thickness of shaft\n",
+ "n=200 #rpm\n",
+ "theta=0.5*pi*180**-1 #Radian #angle of twist\n",
+ "L=2000 #mm #Length of shaft\n",
+ "G=84*10**3 #N/mm**2\n",
+ "d2=d1-2*t #mm #Internal Diameter of shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "J=pi*32**-1*(d1**4-d2**4) #mm**4 #Polar Modulus \n",
+ "\n",
+ "#Torsional moment\n",
+ "T=G*J*theta*L**-1 #N/mm**2 \n",
+ "\n",
+ "#Power Transmitted\n",
+ "P=2*pi*n*T*60**-1*10**-6 #N-mm\n",
+ "\n",
+ "#Max shear stress transmitted\n",
+ "q_s=G*theta*(d1*2**-1)*L**-1 #N/mm**2 \n",
+ "\n",
+ "#Result\n",
+ "print\"Power Transmitted is\",round(P,2),\"N-mm\"\n",
+ "print\"Max Shear stress produced is\",round(q_s,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power Transmitted is 824.28 N-mm\n",
+ "Max Shear stress produced is 36.65 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.7,Page No.230"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=3750*10**6 #N-mm/sec\n",
+ "n=240 #Rpm\n",
+ "q_s=160 #N/mm**2 #Max shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#d2=0.8*d2 #mm #Internal Diameter of shaft\n",
+ "\n",
+ "#J=pi*32**-1*(d1**4-d2**4) #mm**4 #Polar modulus\n",
+ "#After substituting value in above Equation we get\n",
+ "#J=0.05796*d1**4\n",
+ "\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #Torsional moment\n",
+ "\n",
+ "#Now from Torsion Formula\n",
+ "#T*J**-1=q_s*R**-1 ......................................(1)\n",
+ "\n",
+ "#But R=d1*2**-1 \n",
+ "\n",
+ "#Now substituting value of R and J in Equation (1) we get\n",
+ "d1=(T*(0.05796*q_s*2)**-1)**0.33333\n",
+ "\n",
+ "d2=d1*0.8\n",
+ "\n",
+ "#Result\n",
+ "print\"The size of the Shaft is:d1\",round(d1,3),\"mm\"\n",
+ "print\" :d2\",round(d2,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The size of the Shaft is:d1 200.362 mm\n",
+ " :d2 160.289 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.8,Page No.231"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=245*10**6 #N-mm/sec #Power transmitted\n",
+ "n=240 #rpm\n",
+ "q_s=40 #N/mm**2 #Shear stress\n",
+ "theta=pi*180**-1 #radian #Angle of twist\n",
+ "L=1000 #mm #Length of shaft\n",
+ "G=80*10**3 #N/mm**2\n",
+ "\n",
+ "#Tmax=1.5*T\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #Torsional Moment\n",
+ "Tmax=1.5*T\n",
+ "\n",
+ "#Now For Solid shaft\n",
+ "#J=pi*32*d**4\n",
+ "\n",
+ "#Now from the consideration of shear stress we get\n",
+ "#T*J**-1=q_s*(d*2**-1)**-1\n",
+ "#After substituting value in above Equation we get\n",
+ "#T=pi*16**-1*d**3*q_s\n",
+ "\n",
+ "#Designing For max Torque\n",
+ "d=(Tmax*16*(pi*40)**-1)**0.33333 #mm #Diameter of shaft\n",
+ "\n",
+ "#For max Angle of Twist\n",
+ "#Tmax*J**-1=G*theta*L**-1 \n",
+ "#After substituting value in above Equation we get\n",
+ "d2=(Tmax*32*180*L*(pi**2*G)**-1)**0.25\n",
+ "\n",
+ "#For Hollow Shaft\n",
+ "\n",
+ "#d1_2=Outer Diameter\n",
+ "#d2_2=Inner Diameter\n",
+ "\n",
+ "#d2_2=0.5*d1_2\n",
+ "\n",
+ "# Polar modulus\n",
+ "#J=pi*32**-1*(d1_2**4-d2_2**4)\n",
+ "#After substituting values we get\n",
+ "#J=0.092038*d1_2**4\n",
+ "\n",
+ "#Now from the consideration of stress\n",
+ "#Tmax*J**-1=q_s*(d1_2*2**-1)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d1_2=(Tmax*(0.092038*2*q_s)**-1)**0.33333\n",
+ "\n",
+ "#Now from the consideration of angle of twist\n",
+ "#Tmax*J**-1=G*theta*L**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "d1_3=(Tmax*180*L*(0.092038*G*pi)**-1)**0.25\n",
+ "\n",
+ "d2_2=0.5*d1_2\n",
+ "\n",
+ "#result\n",
+ "print\"Diameter of shaft is:For solid shaft:d\",round(d,2),\"mm\"\n",
+ "print\" :For Hollow shaft:d1_2\",round(d1_2,3),\"mm\"\n",
+ "print\" : :d2_2\",round(d2_2,3),\"mm\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of shaft is:For solid shaft:d 123.01 mm\n",
+ " :For Hollow shaft:d1_2 125.69 mm\n",
+ " : :d2_2 62.845 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.11,Page No.235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=250*10**6 #N-mm/sec #Power transmitted\n",
+ "n=100 #rpm\n",
+ "q_s=75 #N/mm**2 #Shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Equation of Power we have\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm #Torsional moment\n",
+ "\n",
+ "#Now from torsional moment equation we have\n",
+ "#T=j*q_s*(d/2**-1)**-1\n",
+ "#After substituting values in above equation and further simplifying we get\n",
+ "#T=pi*16**-1**d**3*q_s\n",
+ "d=(T*16*(pi*q_s)**-1)**0.3333 #mm #Diameter of solid shaft\n",
+ "\n",
+ "#PArt-2\n",
+ "\n",
+ "#Let d1 and d2 be the outer and inner diameter of hollow shaft\n",
+ "#d2=0.6*d1\n",
+ "\n",
+ "#Again from torsional moment equation we have\n",
+ "#T=pi*32**-1*(d1**4-d2**4)*q_s*(d1/2)**-1\n",
+ "d1=(T*16*(pi*(1-0.6**4)*q_s)**-1)**0.33333\n",
+ "d2=0.6*d1\n",
+ "\n",
+ "#Cross sectional area of solid shaft\n",
+ "A1=pi*4**-1*d**2 #mm**2\n",
+ "\n",
+ "#cross sectional area of hollow shaft\n",
+ "A2=pi*4**-1*(d1**2-d2**2)\n",
+ "\n",
+ "#Now percentage saving in weight\n",
+ "#Let W be the percentage saving in weight\n",
+ "W=(A1-A2)*100*A1**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Percentage saving in Weight is\",round(W,3),\"%\"\n",
+ "print\"Size of shaft is:solid shaft:d\",round(d,3),\"mm\"\n",
+ "print\" :Hollow shaft:d1\",round(d1,3),\"mm\"\n",
+ "print\" : :d2\",round(d2,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Percentage saving in Weight is 29.735 %\n",
+ "Size of shaft is:solid shaft:d 117.418 mm\n",
+ " :Hollow shaft:d1 123.031 mm\n",
+ " : :d2 73.818 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.12,Page No.237"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "d=100 #mm #Diameter of solid shaft\n",
+ "d1=100 #mm #Outer Diameter of hollow shaft\n",
+ "d2=50 #mm #Inner Diameter of hollow shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Torsional moment of solid shaft\n",
+ "#T_s=J*q_s*(d*2**-1)**-1 \n",
+ "#After substituting values in above equation and further simplifying we get\n",
+ "#T_s=pi*16*d**3*q_s ...............(1)\n",
+ "\n",
+ "#torsional moment for hollow shaft is\n",
+ "#T_h=J*q_s*(d1**4-d2**4)**-1*(d1*2**-1)\n",
+ "#After substituting values in above equation and further simplifying we get\n",
+ "#T_h=pi*32**-1*2*d1**-1*(d1**4-d2**4)*q_s ...........(2)\n",
+ "\n",
+ "#Dividing Equation 2 by 1 we get\n",
+ "#Let the ratio of T_h*T_s**-1 Be X\n",
+ "X=1-0.5**4\n",
+ "\n",
+ "#Loss in strength \n",
+ "#Let s be the loss in strength\n",
+ "#s=T_s*T_h*100*T_s**-1\n",
+ "#After substituting values in above equation and further simplifying we get\n",
+ "s=(1-0.9375)*100\n",
+ "\n",
+ "#Weight Ratio \n",
+ "#Let w be the Weight ratio\n",
+ "#w=W_h*W_s**-1\n",
+ "\n",
+ "A_h=pi*32**-1*(d1**2-d2**2) #mm**2 #Area of Hollow shaft\n",
+ "A_s=pi*32**-1*d**2 #mm**2 #Area of solid shaft\n",
+ "\n",
+ "w=A_h*A_s**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"Loss in strength is\",round(s,2)\n",
+ "print\"Weight ratio is\",round(w,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Loss in strength is 6.25\n",
+ "Weight ratio is 0.75\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.13,Page No.239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "T=8 #KN-m #Torque \n",
+ "d=100 #mm #Diameter of portion AB\n",
+ "d1=100 #mm #External Diameter of Portion BC\n",
+ "d2=75 #mm #Internal Diameter of Portion BC\n",
+ "G=80 #KN/mm**2 #Modulus of Rigidity\n",
+ "L1=1500 #mm #Radial Distance of Portion AB\n",
+ "L2=2500 #mm #Radial Distance ofPortion BC\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R=d*2**-1 #mm #Radius of shaft\n",
+ "\n",
+ "#For Portion AB,Polar Modulus\n",
+ "J1=pi*32**-1*d**4 #mm**4 \n",
+ "\n",
+ "#For Portion BC,Polar modulus \n",
+ "J2=pi*32**-1*(d1**4-d2**4) #mm**4\n",
+ "\n",
+ "#Now Max stress occurs in portion BC since max radial Distance is sme in both cases\n",
+ "q_max=T*J2**-1*R*10**6 #N/mm**2 \n",
+ "\n",
+ "#Let theta1 be the rotation in Portion AB and theta2 be the rotation in portion BC\n",
+ "theta1=T*L1*(G*J1)**-1 #Radians\n",
+ "theta2=T*L2*(G*J2)**-1 #Radians\n",
+ "\n",
+ "#Total Rotational at end C\n",
+ "theta=(theta1+theta2)*10**3 #Radians\n",
+ "\n",
+ "#Result\n",
+ "print\"Max stress induced is\",round(q_max,2),\"N/mm**2\"\n",
+ "print\"Angle of Twist is\",round(theta,3),\"radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max stress induced is 59.6 N/mm**2\n",
+ "Angle of Twist is 0.053 radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.14,Page No.240"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "q_b=80 #N/mm**2 #Shear stress in Brass\n",
+ "q_s=100 #N/mm**2 #Shear stress in Steel\n",
+ "G_b=40*10**3 #N/mm**2 \n",
+ "G_s=80*10**3 \n",
+ "L_b=1000 #mm #Length of brass shaft\n",
+ "L_s=1200 #mm #Length of steel shaft\n",
+ "d1=80 #mm #Diameter of brass shaft\n",
+ "d2=60 #mm #Diameter of steel shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Polar modulus of brass rod\n",
+ "J_b=pi*32**-1*d1**4 #mm**4 \n",
+ "\n",
+ "#Polar modulus of steel rod\n",
+ "J_s=pi*32**-1*d2**4 #mm**4\n",
+ "\n",
+ "#Considering bras Rod:AB\n",
+ "T1=J_b*q_b*(d1*2**-1)**-1 #N-mm \n",
+ "\n",
+ "#Considering Steel Rod:BC\n",
+ "T2=J_s*q_s*(d2*2**-1)**-1 #N-mm\n",
+ "\n",
+ "#Max Torque that can be applied\n",
+ "T2\n",
+ "\n",
+ "#Let theta_b and theta_s be the rotations in Brass and steel respectively\n",
+ "theta_b=T2*L_b*(G_b*J_b)**-1 #Radians\n",
+ "theta_s=T2*L_s*(G_s*J_s)**-1 #Radians\n",
+ "\n",
+ "theta=theta_b+theta_s #Radians #Rotation of free end\n",
+ "\n",
+ "#Result\n",
+ "print\"Total of free end is\",round(theta,3),\"Radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total of free end is 0.076 Radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.15,Page No.241"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "G=80*10**3 #N/mm**2 #Modulus of Rigidity\n",
+ "d1=100 #mm #Outer diameter of hollow shft\n",
+ "d2=80 #mm #Inner diameter of hollow shaft\n",
+ "d=80 #mm #diameter of Solid shaft\n",
+ "d3=60 #mm #diameter of Solid shaft having L=0.5m\n",
+ "L1=300 #mm #Length of Hollow shaft\n",
+ "L2=400 #mm #Length of solid shaft\n",
+ "L3=500 #mm #LEngth of solid shaft of diameter 60mm\n",
+ "T1=2*10**6 #N-mm #Torsion in Shaft AB\n",
+ "T2=1*10**6 #N-mm #Torsion in shaft BC\n",
+ "T3=1*10**6 #N-mm #Torsion in shaft CD\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Now Polar modulus of section AB\n",
+ "J1=pi*32**-1*(d1**4-d2**4) #mm**4 \n",
+ "\n",
+ "#Polar modulus of section BC\n",
+ "J2=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Polar modulus of section CD\n",
+ "J3=pi*32**-1*d3**4 #mm**4\n",
+ "\n",
+ "#Now angle of twist of AB\n",
+ "theta1=T1*L1*(G*J1)**-1 #radians\n",
+ "\n",
+ "#Angle of twist of BC\n",
+ "theta2=T2*L2*(G*J2)**-1 #radians\n",
+ "\n",
+ "#Angle of twist of CD\n",
+ "theta3=T3*L3*(G*J3)**-1 #radians\n",
+ "\n",
+ "#Angle of twist\n",
+ "theta=theta1-theta2+theta3 #Radians\n",
+ "\n",
+ "#Shear stress in AB From Torsion Equation\n",
+ "q_s1=T1*(d1*2**-1)*J1**-1 #N/mm**2 \n",
+ "\n",
+ "#Shear stress in BC\n",
+ "q_s2=T2*(d*2**-1)*J2**-1 #N/mm**2 \n",
+ "\n",
+ "#Shear stress in CD\n",
+ "q_s3=T3*(d3*2**-1)*J3**-1 #N-mm**2\n",
+ "\n",
+ "#As max shear stress occurs in portion CD,so consider CD\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of twist at free end is\",round(theta,5),\"Radian\"\n",
+ "print\"Max Shear stress\",round(q_s3,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of twist at free end is 0.00496 Radian\n",
+ "Max Shear stress 23.58 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.16,Page No.242"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=1000 #mm #Length of bar\n",
+ "L1=600 #mm #Length of Bar AB\n",
+ "L2=400 #mm #Length of Bar BC\n",
+ "d1=60 #mm #Outer Diameter of bar BC\n",
+ "d2=30 #mm #Inner Diameter of bar BC\n",
+ "d=60 #mm #Diameter of bar AB\n",
+ "T=2*10**6 #N-mm #Total Torque\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Polar Modulus of Portion AB\n",
+ "J1=pi*32**-1*d**4 #mm*4\n",
+ "\n",
+ "#Polar Modulus of Portion BC\n",
+ "J2=pi*32**-1*(d1**4-d2**4) #mm**4\n",
+ "\n",
+ "#Let T1 be the torque resisted by bar AB and T2 be torque resisted by Bar BC\n",
+ "#Let theta1 and theta2 be the rotation of shaft in portion AB & BC\n",
+ "\n",
+ "#theta1=T1*L1*(G*J1)**-1 #radians\n",
+ "#After substituting values and further simplifying we get \n",
+ "#theta1=32*600*T1*(pi*60**4*G)**-1\n",
+ "\n",
+ "#theta2=T2*L*(J2*G)**-1 #Radians\n",
+ "#After substituting values and further simplifying we get \n",
+ "#theta2=32*400*T2*(pi*60**4*(1-0.5**4)*G)**-1 \n",
+ "\n",
+ "#Now For consistency of Deformation,theta1=theta2\n",
+ "#After substituting values and further simplifying we get \n",
+ "#T1=0.7111*T2 ..................................................(1)\n",
+ "\n",
+ "#But T1+T2=T=2*10**6 ...........................................(2)\n",
+ "#Substituting value of T1 in above equation\n",
+ "\n",
+ "T2=T*(0.7111+1)**-1\n",
+ "T1=0.71111*T2\n",
+ "\n",
+ "#Max stress in Portion AB\n",
+ "q_s1=T1*(d*2**-1)*(J1)**-1 #N/mm**2\n",
+ "\n",
+ "#Max stress in Portion BC\n",
+ "q_s2=T2*(d1*2**-1)*J2**-1 #N/mm**2 \n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses Developed in Portion:AB\",round(q_s1,2),\"N/mm**2\"\n",
+ "print\" :BC\",round(q_s2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses Developed in Portion:AB 19.6 N/mm**2\n",
+ " :BC 29.4 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.17,Page No.243"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=80 #mm #External Diameter of Brass tube\n",
+ "d2=50 #mm #Internal Diameter of Brass tube\n",
+ "d=50 #mm #Diameter of steel Tube\n",
+ "G_b=40*10**3 #N/mm**2 #Modulus of Rigidity of brass tube\n",
+ "G_s=80*10**3 #N/mm**2 #Modulus of rigidity of steel tube\n",
+ "T=6*10**6 #N-mm #Torque\n",
+ "L=2000 #mm #Length of Tube\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Polar Modulus of brass tube\n",
+ "J1=pi*32**-1*(d1**4-d2**4) #mm**4 \n",
+ "\n",
+ "#Polar modulus of steel Tube\n",
+ "J2=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Let T_s & T_b be the torque resisted by steel and brass respectively\n",
+ "#Then, T_b+T_s=T ............................................(1)\n",
+ "\n",
+ "#Since the angle of twist will be the same\n",
+ "#Theta1=Theta2\n",
+ "#After substituting values and further simplifying we get \n",
+ "#Ts=0.360*Tb ...........................................(2)\n",
+ "\n",
+ "#After substituting value of Ts in eqn 1 and further simplifying we get \n",
+ "T_b=T*(0.36+1)**-1 #N-mm\n",
+ "T_s=0.360*T_b\n",
+ "\n",
+ "#Let q_s and q_b be the max stress in steel and brass respectively\n",
+ "q_b=T_b*(d1*2**-1)*J1**-1 #N/mm**2\n",
+ "q_s=T_s*(d2*2**-1)*J2**-1 #N/mm**2\n",
+ "\n",
+ "#Since angle of twist in brass=angle of twist in steel\n",
+ "theta_s=T_s*L*(J2*G_s)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses Developed in Materials are:Brass\",round(q_b,2),\"N/mm**2\"\n",
+ "print\" :Steel\",round(q_s,2),\"N/mm**2\"\n",
+ "print\"Angle of Twist in 2m Length\",round(theta_s,3),\"Radians\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses Developed in Materials are:Brass 51.79 N/mm**2\n",
+ " :Steel 64.71 N/mm**2\n",
+ "Angle of Twist in 2m Length 0.065 Radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.18,Page No.245"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=60 #mm #External Diameter of aluminium Tube\n",
+ "d2=40 #mm #Internal Diameter of aluminium Tube\n",
+ "d=40 #mm #Diameter of steel tube\n",
+ "q_a=60 #N/mm**2 #Permissible stress in aluminium\n",
+ "q_s=100 #N/mm**2 #Permissible stress in steel tube\n",
+ "G_a=27*10**3 #N/mm**2 \n",
+ "G_s=80*10**3 #N/mm**2 \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Polar modulus of aluminium Tube\n",
+ "J_a=pi*32**-1*(d1**4-d2**4) #mm**4\n",
+ "\n",
+ "#Polar Modulus of steel Tube\n",
+ "J_s=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Now the angle of twist of steel tube = angle of twist of aluminium tube\n",
+ "#T_s*L_s*(J_s*theta_s)**-1=T_a*L_a*(J_a*theta_a)**-1\n",
+ "#After substituting values in above Equation and Further simplifyin we get\n",
+ "#T_s=0.7293*T_a .....................(1)\n",
+ "\n",
+ "#If steel Governs the resisting capacity\n",
+ "T_s1=q_s*J_s*(d*2**-1)**-1 #N-mm\n",
+ "T_a1=T_s1*0.7293**-1 #N-mm\n",
+ "T1=(T_s1+T_a1)*10**-6 #KN-m #Total Torque in steel Tube\n",
+ "\n",
+ "#If aluminium Governs the resisting capacity \n",
+ "T_a2=q_a*J_a*(d1*2**-1) #N-mm\n",
+ "T_s2=T_a2*0.7293 #N-mm\n",
+ "T2=(T_s2+T_a2)*10**-6 #KN-m #Total Torque in aluminium tube\n",
+ "\n",
+ "#Result\n",
+ "print\"Steel Governs the torque carrying capacity\",round(T1,2),\"KN-m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Steel Governs the torque carrying capacity 2.98 KN-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.19,Page No.247"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "P=225*10**6 #N-mm/sec #Power Trasmitted\n",
+ "q_b=80 #N/mm**2 #Shear stress\n",
+ "n=200 #Rpm\n",
+ "q_k=100 #N/mm**2 #PErmissible stress in Keys\n",
+ "D=300 #mm #Diameter of bolt circle\n",
+ "L=150 #mm #Length of shear key\n",
+ "d=16 #mm #Diameterr of bolt\n",
+ "\n",
+ "#Calculations\n",
+ "T=60*P*(2*pi*n)**-1 #N-mm #Torque\n",
+ "\n",
+ "#Now From Torsion Formula\n",
+ "#T*J**-1=q_s*R**-1\n",
+ "#After substituting values we get\n",
+ "#T=pi*16*d**3*n\n",
+ "#After further simplifying we get\n",
+ "d1=(T*16*(pi*q_s)**-1)**0.33333\n",
+ "\n",
+ "#Let b be the width of shear Key\n",
+ "#T=q_k*L*b*R\n",
+ "#After simplifying further we get\n",
+ "b=T*(q_k*L*(d1*2**-1))**-1 #mm\n",
+ "\n",
+ "#Let n2 be the no. of bolts required at bolt circle of radius\n",
+ "R_b=D*2**-1 #mm \n",
+ "\n",
+ "n2=T*4*(q_b*pi*d**2*R_b)**-1\n",
+ "\n",
+ "#result\n",
+ "print\"Minimum no. of Bolts Required are\",round(n2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum no. of Bolts Required are 4.45\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.20,Page No.250"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "T=2*10**6 #N-mm #Torque transmitted\n",
+ "G=80*10**3 #N/mm**2 #Modulus of rigidity\n",
+ "d1=40 #mm \n",
+ "d2=80 #mm\n",
+ "r1=20 #mm\n",
+ "r2=40 #mm\n",
+ "L=2000 #mm #Length of shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Angle of twist \n",
+ "theta=2*T*L*(r1**2+r1*r2+r2**2)*(3*pi*G*r2**3*r1**3)**-1 #radians\n",
+ "\n",
+ "#If the shaft is treated as shaft of average Diameter\n",
+ "d_avg=(d1+d2)*2**-1 #mm\n",
+ "\n",
+ "theta1=T*L*(G*pi*32**-1*d_avg**4)**-1 #Radians\n",
+ "\n",
+ "#Percentage Error\n",
+ "#Let Percentage Error be E\n",
+ "X=theta-theta1\n",
+ "E=(X*theta**-1)*100 \n",
+ "\n",
+ "#Result\n",
+ "print\"Percentage Error is\",round(E,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Percentage Error is 32.28 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.21,Page No.252"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "G=80*10**3 #N/mm**2 \n",
+ "P=1*10**9 #N-mm/sec #Power\n",
+ "n=300 \n",
+ "d1=150 #mm #Outer Diameter\n",
+ "d2=120 #mm #Inner Diameter\n",
+ "L=2000 #mm #Length of circular shaft\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T=P*60*(2*pi*n)**-1 #N-mm\n",
+ "\n",
+ "#Polar Modulus \n",
+ "J=pi*32**-1*(d1**4-d2**4) #mm**4\n",
+ "\n",
+ "q_s=T*J**-1*(d1*2**-1) #N/mm**2 \n",
+ "\n",
+ "\n",
+ "#Strain ENergy\n",
+ "U=q_s**2*(4*G)**-1*pi*4**-1*(d1**2-d2**2)*L\n",
+ "\n",
+ "#Result\n",
+ "print\"Max shear stress is\",round(q_s,2),\"N/mm**2\"\n",
+ "print\"Strain Energy stored in the shaft is\",round(U,2),\"N-mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max shear stress is 81.36 N/mm**2\n",
+ "Strain Energy stored in the shaft is 263181.37 N-mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.22,Page No.254"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=12 #mm #Diameter of helical spring\n",
+ "D=150 #mm #Mean Diameter\n",
+ "R=D*2**-1 #mm #Radius of helical spring\n",
+ "n=10 #no.of turns\n",
+ "G=80*10**3 #N/mm**2 \n",
+ "W=450 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max shear stress \n",
+ "q_s=16*W*R*(pi*d**3)**-1 #N/mm**2\n",
+ "\n",
+ "#Strain Energy stored\n",
+ "U=32*W**2*R**3*n*(G*d**4)**-1 #N-mm\n",
+ "\n",
+ "#Deflection Produced\n",
+ "dell=64*W*R**3*n*(G*d**4)**-1 #mm\n",
+ "\n",
+ "#Stiffness Spring\n",
+ "k=W*dell**-1 #N/mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Max shear stress is\",round(q_s,2),\"N/mm**2\"\n",
+ "print\"Strain Energy stored is\",round(U,2),\"N-mm\"\n",
+ "print\"Deflection Produced is\",round(dell,2),\"mm\"\n",
+ "print\"Stiffness spring is\",round(k,2),\"N/mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max shear stress is 99.47 N/mm**2\n",
+ "Strain Energy stored is 16479.49 N-mm\n",
+ "Deflection Produced is 73.24 mm\n",
+ "Stiffness spring is 6.14 N/mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.23,Page No.255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "K=5 #N/mm #Stiffness\n",
+ "L=100 #mm #Solid Length\n",
+ "q_s=60 #N/mm**2 #Max shear stress\n",
+ "W=200 #N #Max Load\n",
+ "G=80*10**3 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#K=W*dell**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "#d=0.004*R**3*n ........(1) #mm #Diameter of wire\n",
+ "#n=L*d**-1 ........(2)\n",
+ "\n",
+ "#From Shearing stress\n",
+ "#q_s=16*W*R*(pi*d**3)**-1 \n",
+ "#After substituting values and further simplifying we get\n",
+ "#d**4=0.004*R**3*n .................(4)\n",
+ "\n",
+ "#From Equation 1,2,3\n",
+ "#d**4=0.004*(0.0785*d**3)**3*100*d**-1\n",
+ "#after further simplifying we get\n",
+ "d=5168.101**0.25\n",
+ "n=100*d**-1\n",
+ "R=(d**4*(0.004*n)**-1)**0.3333\n",
+ "\n",
+ "#Result\n",
+ "print\"Diameter of Wire is\",round(d,2),\"mm\"\n",
+ "print\"No.of turns is\",round(n,2)\n",
+ "print\"Mean Radius of spring is\",round(R,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of Wire is 8.48 mm\n",
+ "No.of turns is 11.79\n",
+ "Mean Radius of spring is 47.83 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.24,Page No.255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "m=5*10**5 #Wagon Weighing\n",
+ "v=18*1000*36000**-1 \n",
+ "d=300 #mm #Diameter of Beffer springs\n",
+ "n=18 #no.of turns\n",
+ "G=80*10**3 #N/mm**2\n",
+ "dell=225\n",
+ "R=100 #mm #Mean Radius\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Energy of Wagon\n",
+ "E=m*v**2*(9.81*2)**-1 #N-mm\n",
+ "\n",
+ "#Load applied\n",
+ "W=dell*G*d**4*(64*R**3*n)**-1 #N \n",
+ "\n",
+ "#Energy each spring can absorb is\n",
+ "E2=W*dell*2**-1 #N-mm\n",
+ "\n",
+ "#No.of springs required to absorb energy of Wagon\n",
+ "n2=E*E2**-1 *10**7\n",
+ "\n",
+ "#Result\n",
+ "print\"No.of springs Required for Buffer is\",round(n2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "No.of springs Required for Buffer is 4.47\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.25,Page No.259"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "b=180 #mm #width of flange\n",
+ "d=10 #mm #Depth of flange\n",
+ "t=10 #mm #Thickness of flange\n",
+ "D=400 #mm #Overall Depth \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "I_xx=1*12**-1*(b*D**3-(b-t)*(D-2*d)**3)\n",
+ "I_yy=1*12**-1*((D-2*d)*t**3+2*t*b**3)\n",
+ "\n",
+ "#If warping is neglected\n",
+ "J=I_xx+I_yy #mm**4\n",
+ "\n",
+ "#Since b/d>1.6,we get\n",
+ "J2=1*3**-1*d**3*b*(1-0.63*d*b**-1)*2+1*3**-1*t**3*(D-2*d)*(1-0.63*t*b**-1)\n",
+ "\n",
+ "#Over Estimation of torsional Rigidity would have been \n",
+ "T=J*J2**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Error in assessing torsional Rigidity if the warping is neglected is\",round(T,2)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Error in assessing torsional Rigidity if the warping is neglected is 808.28\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6.26,Page No.261"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=100 #mm #Outer Diameter\n",
+ "d2=95 #mm #Inner Diameter\n",
+ "T=2*10**6 #N-mm #Torque\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "J=pi*32**-1*(d1**4-d2**4) #mm**4 #Polar Modulus\n",
+ "\n",
+ "#Shear stress\n",
+ "q_max=T*J**-1*d1*2**-1 #N/mm**2 \n",
+ "\n",
+ "#Now theta*L**-1=T*(G*J)**-1\n",
+ "#After substituting values and further simplifying we get\n",
+ "#Let theta*L**-1=X\n",
+ "X=T*J**-1\n",
+ "\n",
+ "#Now Treating it as very thin walled tube\n",
+ "d=(d1+d2)*2**-1 #mm\n",
+ "\n",
+ "r=d*2**-1 \n",
+ "t=(d1-d2)*2**-1\n",
+ "q_max2=T*(2*pi*r**2*t)**-1 #N/mm**2\n",
+ "\n",
+ "X2=T*(2*pi*r**3*t)**-1 \n",
+ "\n",
+ "#Result\n",
+ "print\"When it is treated as hollow shaft:Max shear stress\",round(q_max,2),\"N/mm**2\"\n",
+ "print\" :Angle of Twist per unit Length\",round(X,3)\n",
+ "print\"When it is very thin Walled Tube :Max shear stress\",round(q_max2,2),\"N/mm**2\"\n",
+ "print\" :Angle of twist per Unit Length\",round(X2,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "When it is treated as hollow shaft:Max shear stress 54.91 N/mm**2\n",
+ " :Angle of Twist per unit Length 1.098\n",
+ "When it is very thin Walled Tube :Max shear stress 53.57 N/mm**2\n",
+ " :Angle of twist per Unit Length 1.099\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_7_GmkvL5A.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_7_GmkvL5A.ipynb new file mode 100644 index 00000000..16a15154 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_7_GmkvL5A.ipynb @@ -0,0 +1,1309 @@ +{
+ "metadata": {
+ "name": "chapter 7.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter No.7:Compound Stresses And Strains"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.1,Page No.269"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "sigma1=30 #N/mm**2 #Stress in tension\n",
+ "d=20 #mm #Diameter \n",
+ "sigma2=90 #N/mm**2 #Max compressive stress\n",
+ "sigma3=25 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#In TEnsion\n",
+ "\n",
+ "#Corresponding stress in shear\n",
+ "P=sigma1*2**-1 #N/mm**2\n",
+ "\n",
+ "#Tensile force\n",
+ "F=pi*4**-1*d**2*sigma1\n",
+ "\n",
+ "#In Compression\n",
+ "\n",
+ "#Correspong shear stress\n",
+ "P2=sigma2*2**-1 #N/mm**2\n",
+ "\n",
+ "#Correspong compressive(axial) stress\n",
+ "p=2*sigma3 #N/mm**2 \n",
+ "\n",
+ "#Corresponding Compressive force\n",
+ "P3=p*pi*4**-1*d**2 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Failure Loads are:\",round(F,2),\"N\"\n",
+ "print\" :\",round(P3,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Failure Loads are: 9424.78 N\n",
+ " : 15707.96 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.2,Page No.270"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=25 #mm #Diameter of circular bar\n",
+ "F=20*10**3 #N #Axial Force\n",
+ "theta=30 #Degree #angle \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Axial stresses\n",
+ "p=F*(pi*4**-1*d**2)**-1 #N/mm**2\n",
+ "\n",
+ "#Normal Stress\n",
+ "p_n=p*(cos(30*pi*180**-1))**2\n",
+ "\n",
+ "#Tangential Stress\n",
+ "p_t=p*2**-1*sin(2*theta*pi*180**-1)\n",
+ "\n",
+ "#Max shear stress occurs on plane where theta2=45 \n",
+ "theta2=45\n",
+ "sigma_max=p*2**-1*sin(2*theta2*pi*180**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses developed on a plane making 30 degree is:\",round(p_n,2),\"N/mm**2\"\n",
+ "print\" :\",round(p_t,2),\"N/mm**2\"\n",
+ "print\"stress on max shear stress is\",round(sigma_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses developed on a plane making 30 degree is: 30.56 N/mm**2\n",
+ " : 17.64 N/mm**2\n",
+ "stress on max shear stress is 20.37 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.3,Page No.272"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "theta=30 #degree\n",
+ "\n",
+ "#Stresses acting on material\n",
+ "p1=120 #N/mm**2\n",
+ "p2=80 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Stress\n",
+ "P_n=(p1+p2)*2**-1+(p1-p2)*2**-1*cos(2*theta*pi*180**-1) #N/mm**2\n",
+ "\n",
+ "#Tangential stress\n",
+ "P_t=(p1-p2)*2**-1*sin(2*theta*pi*180**-1)\n",
+ "\n",
+ "#Resultant stress\n",
+ "P=(P_n**2+P_t**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Inclination to the plane\n",
+ "phi=arctan(P_n*P_t**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Angle made by resultant with 120 #N/mm**2 stress\n",
+ "phi2=phi+theta #Degree\n",
+ "\n",
+ "#Result\n",
+ "print\"Normal Stress is\",round(P_n,2),\"N/mm**2\"\n",
+ "print\"Tangential Stress is\",round(P_t,2),\"N/mm**2\"\n",
+ "print\"Angle made by resultant\",round(phi2,2),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Normal Stress is 110.0 N/mm**2\n",
+ "Tangential Stress is 17.32 N/mm**2\n",
+ "Angle made by resultant 111.05 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.4,Page No.272"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Direct Stresses\n",
+ "P1=60 #N/mm**2 \n",
+ "P2=100 #N/mm**2\n",
+ "\n",
+ "Theta=25 #Degree #Angle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Stress\n",
+ "P_n=(P1-P2)*2**-1+(P1+P2)*2**-1*cos(2*Theta*pi*180**-1) #N/mm**2\n",
+ "\n",
+ "#Tangential Stress\n",
+ "P_t=(P1+P2)*2**-1*sin(Theta*2*pi*180**-1) #N/mm**2\n",
+ "\n",
+ "#Resultant stress\n",
+ "P=(P_n**2+P_t**2)**0.5 #N/mm**2\n",
+ "\n",
+ "theta2=arctan(P_n*P_t**-1)*(180*pi**-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses on the plane AC is:\",round(P_n,2),\"N/mm**2\"\n",
+ "print\" \",round(P_t,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses on the plane AC is: 31.42 N/mm**2\n",
+ " 61.28 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.6,Page No.278"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Stresses acting on material\n",
+ "p_x=180 #N/mm**2 \n",
+ "p_y=120 #N/mm**2\n",
+ "\n",
+ "q=80 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arctan(2*q*(p_x-p_y)**-1)*(180*pi**-1) #degrees\n",
+ "theta2=theta*2**-1 #Degrees\n",
+ "theta3=theta+180 #Degrees\n",
+ "theta4=theta3*2**-1 #Degrees\n",
+ "\n",
+ "#Stresses\n",
+ "p_1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "p_2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of Principal stress is:\",round(p_1,2),\"N/mm**2\"\n",
+ "print\" \",round(p_2,2),\"N/mm**2\"\n",
+ "print\"Magnitude of max shear stress is\",round(q_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of Principal stress is: 235.44 N/mm**2\n",
+ " 64.56 N/mm**2\n",
+ "Magnitude of max shear stress is 85.44 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.7,Page No.279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#stresses\n",
+ "p_x=60 #N/mm**2\n",
+ "p_y=-40 #N/mm**2\n",
+ "\n",
+ "q=10 #N/mm**2 #shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Principal Stresses\n",
+ "p1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "p2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Inclination of principal stress to plane\n",
+ "theta=arctan(2*q*(p_x-p_y)**-1)*(180*pi**-1)#Degrees\n",
+ "theta2=(theta)*2**-1 #degrees\n",
+ "\n",
+ "theta3=(theta+180)*2**-1 #degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Stresses are:\",round(p1,2),\"N/mm**2\"\n",
+ "print\" :\",round(p2,2),\"N/mm**2\"\n",
+ "print\"Max shear stresses\",round(q_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Stresses are: 60.99 N/mm**2\n",
+ " : -40.99 N/mm**2\n",
+ "Max shear stresses 50.99 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.8,Page No.280"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#stresses\n",
+ "p_x=-120 #N/mm**2\n",
+ "p_y=-80 #N/mm**2\n",
+ "\n",
+ "q=-60 #N/mm**2 #shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Principal Stresses\n",
+ "p1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "p2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Inclination of principal stress to plane\n",
+ "theta=arctan(2*q*(p_x-p_y)**-1)*(180*pi**-1)#Degrees\n",
+ "theta2=(theta)*2**-1 #degrees\n",
+ "\n",
+ "theta3=(theta+180)*2**-1 #degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Stresses are:\",round(p1,2),\"N/mm**2\"\n",
+ "print\" :\",round(p2,2),\"N/mm**2\"\n",
+ "print\"Max shear stresses\",round(q_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Stresses are: -36.75 N/mm**2\n",
+ " : -163.25 N/mm**2\n",
+ "Max shear stresses 63.25 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.9,Page No.282"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#stresses\n",
+ "p_x=-40 #N/mm**2\n",
+ "p_y=80 #N/mm**2\n",
+ "\n",
+ "q=48 #N/mm**2 #shear stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=((((p_x-p_y)*2**-1)**2)+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Inclination of principal stress to plane\n",
+ "theta=arctan(2*q*(p_x-p_y)**-1)*(180*pi**-1)#Degrees\n",
+ "theta2=(theta)*2**-1 #degrees\n",
+ "\n",
+ "theta3=(theta+180)*2**-1 #degrees\n",
+ "\n",
+ "#Normal Corresponding stress\n",
+ "p_n=(p_x+p_y)*2**-1+(p_x-p_y)*2**-1*cos(2*(theta2+45)*pi*180**-1)+q*sin(2*(theta2+45)*pi*180**-1) #Degrees\n",
+ "\n",
+ "#Resultant stress\n",
+ "p=((p_n**2+q_max**2)**0.5) #N/mm**2\n",
+ "\n",
+ "phi=arctan(p_n*q_max**-1)*(180*pi**-1) #Degrees\n",
+ "\n",
+ "#Inclination to the plane\n",
+ "alpha=round((theta2+45),2)+round(phi ,2)#Degree\n",
+ "\n",
+ "#Answer in book is incorrect of alpha ie41.25\n",
+ "\n",
+ "#Result\n",
+ "print\"Planes of max shear stress:\",round(p_n,2),\"N/mm**2\"\n",
+ "print\" \",round(q_max,2),\"N/mm*2\"\n",
+ "print\"Resultant Stress is\",round(p,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Planes of max shear stress: 20.0 N/mm**2\n",
+ " 76.84 N/mm*2\n",
+ "Resultant Stress is 79.4 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.10,Page No.283"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Stresses\n",
+ "p_x=50*cos(35*pi*180**-1)\n",
+ "q=50*sin(35*pi*180**-1)\n",
+ "p_y=0\n",
+ "\n",
+ "theta=40 #Degrees #Plane AB inclined to vertical\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Normal Stress on AB\n",
+ "p_n=(p_x+p_y)*2**-1+(p_x-p_y)*2**-1*cos(2*theta*pi*180**-1)+q*sin(2*theta*pi*180**-1)\n",
+ "\n",
+ "#Tangential Stress on AB\n",
+ "p_t=(p_x-p_y)*2**-1*sin(2*theta*pi*180**-1)-q*cos(2*theta*pi*180**-1) #N/mm**2\n",
+ "\n",
+ "#Resultant stress\n",
+ "p=(p_n**2+p_t**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Angle of resultant\n",
+ "phi=arctan(p_n*p_t**-1)*(180*pi**-1) #degrees\n",
+ "phi2=phi+theta #Degrees\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of resultant stress is\",round(p,2),\"N/mm**2\"\n",
+ "print\"Direction of Resultant stress is\",round(phi2,2),\"Degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of resultant stress is 54.44 N/mm**2\n",
+ "Direction of Resultant stress is 113.8 Degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.12,Page No.285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Direct stresses\n",
+ "p_x=120 #N/mm**2 #Tensile stress\n",
+ "p_y=-100 #N/mm**2 #Compressive stress\n",
+ "p1=160 #N/mm**2 #Major principal stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let q be the shearing stress\n",
+ "\n",
+ "#p1=(p_x+p_y)*2**-1+((((p_x+p_y)*2**-1)**2)+q**2)**0.5\n",
+ "#After further simplifying we get\n",
+ "q=(p1-((p_x+p_y)*2**-1))**2-((p_x-p_y)*2**-1)**2 #N/mm**2\n",
+ "q2=(q)**0.5 #N/mm**2\n",
+ "\n",
+ "#Minimum Principal stress\n",
+ "p2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q2**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shearing stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q2**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Shearing stress of material\",round(q,2),\"N/mm**2\"\n",
+ "print\"Min Principal stress\",round(p2,2),\"N/mm**2\"\n",
+ "print\"Max shearing stress\",round(q_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shearing stress of material 10400.0 N/mm**2\n",
+ "Min Principal stress -140.0 N/mm**2\n",
+ "Max shearing stress 150.0 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.14,Page No.291"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "F=40*10**3 #N #Shear Force\n",
+ "M=20*10**6 #Bending Moment\n",
+ "\n",
+ "#Rectangular section\n",
+ "b=100 #mm #Width\n",
+ "d=200 #mm #Depth\n",
+ "\n",
+ "x=20 #mm #Distance from Top surface upto point\n",
+ "y=80 #mm #Distance from point to Bottom\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "I=1*12**-1*b*d**3 #mm**4 #M.I\n",
+ "\n",
+ "#At 20 mm Below top Fibre\n",
+ "f_x=M*I**-1*y #N/mm**2 #Stress\n",
+ "\n",
+ "#Assuming sagging moment ,f_x is compressive p_x=f_x=-24 #N/mm**2\n",
+ "p_x=f_x=-24 #N/mm**2\n",
+ "\n",
+ "#Shearing stress\n",
+ "q=F*(b*I)**-1*(b*x*(b-x*2**-1)) #N/mm**2\n",
+ "\n",
+ "#Direct stresses\n",
+ "\n",
+ "p_y=0 #N/mm**2\n",
+ "\n",
+ "p1=(p_x+p_y)*2**-1+(((p_x+p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "p2=(p_x+p_y)*2**-1-(((p_x+p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Directions of principal stresses at a point below 20mm is:\",round(p1,2),\"N/mm**2\"\n",
+ "print\" \",round(p2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Directions of principal stresses at a point below 20mm is: 0.05 N/mm**2\n",
+ " -24.05 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.15,Page No.292"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=4000 #mm #Span\n",
+ "W1=W2=W3=2*10**3 #N #Load\n",
+ "\n",
+ "#SEction of beam\n",
+ "b=100 #mm #Width\n",
+ "d=240 #mm #Dept\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the reactions\n",
+ "R_A=R_B=(W1+W2+W3)*2**-1 #KN\n",
+ "\n",
+ "#Now at the section 1.5m from left support A\n",
+ "#Shear Force\n",
+ "F=R_A-W1 #KN\n",
+ "\n",
+ "#B.M\n",
+ "M=R_A*1.5-W1*0.5 #KN-m\n",
+ "\n",
+ "#M.I\n",
+ "I=1*12**-1*b*d**3 #mm**4\n",
+ "\n",
+ "#Bending stress\n",
+ "#f=M*I**-1*y\n",
+ "#After Sub values and further simplifying we get\n",
+ "#f=3.04*10**-2*y\n",
+ "\n",
+ "#As it varies Linearly\n",
+ "\n",
+ "#at distance 0 From NA \n",
+ "f1=0\n",
+ "#at distance 60 mm from NA\n",
+ "f2=1.823 #N/mm**2\n",
+ "#at distance 120 mm from NA\n",
+ "f3=3.646 #N/mm**2\n",
+ "\n",
+ "#Shearing stress\n",
+ "q=F*b*d*2**-1*d*4**-1*(b*I)**-1\n",
+ "\n",
+ "#At 60 mm above NA\n",
+ "q2=F*b*d*4**-1*(d*2**-1-d*8**-1)*(b*I)**-1\n",
+ "\n",
+ "#At 120 mm above NA\n",
+ "q3=0 \n",
+ "\n",
+ "#At NA element is under pure shear\n",
+ "p1=q #N/mm**2\n",
+ "p2=-q #N/mm**2 \n",
+ "\n",
+ "#Inclination of principal plane to vertical\n",
+ "#theta=2*q*0**-1\n",
+ "#Further simplifying we get\n",
+ "#theta=infinity\n",
+ "\n",
+ "#therefore\n",
+ "theta=90*2**-1 #degrees\n",
+ "theta2=270*2**-1 #degrees\n",
+ "\n",
+ "#At 60 mm From NA\n",
+ "p_x=-1.823 #N/mm**2 \n",
+ "p_y=0\n",
+ "q=0.0469 #N/mm**2\n",
+ "\n",
+ "#principal planes\n",
+ "P1=(p_x+p_y)*2**-1+(((p_x+p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "P2=(p_x+p_y)*2**-1-(((p_x+p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Principal planes inclination to hte plane of p_x is given by\n",
+ "theta3=(arctan(2*q*(p_x-p_y)**-1)*(180*pi**-1))\n",
+ "theta4=theta3*2**-1#degrees\n",
+ "\n",
+ "theta5=theta3+180 #Degrees\n",
+ "\n",
+ "#At 120 mm From N-A\n",
+ "p_x2=3.646 #N/mm**2\n",
+ "p_y2=0 #N/mm**2\n",
+ "q2=0 #N/mm**2\n",
+ "\n",
+ "P3=p_x2 #N/mm**2\n",
+ "P4=0 #N/mm**2\n",
+ "\n",
+ "#Answer for P2 at 60 mm from NA is incorrect\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Planes at 60 mm from NA:\",round(p_x,2),\"N/mm**2\"\n",
+ "print\" \",round(p_y,2),\"N/mm**2\"\n",
+ "print\"Principal Stresses at 60 mm From NA\",round(P1,4),\"N/mm**2\"\n",
+ "print\" \",round(P2,4),\"N/mm**2\"\n",
+ "print\"Principal Planes at 60 mm from NA:\",round(p_x2,4),\"N/mm**2\"\n",
+ "print\" \",round(p_y2,4),\"N/mm**2\"\n",
+ "print\"Principal Stresses at 60 mm From NA\",round(P3,4),\"N/mm**2\"\n",
+ "print\" \",round(P4,4),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Planes at 60 mm from NA: -1.82 N/mm**2\n",
+ " 0.0 N/mm**2\n",
+ "Principal Stresses at 60 mm From NA 0.0012 N/mm**2\n",
+ " -1.8242 N/mm**2\n",
+ "Principal Planes at 60 mm from NA: 3.646 N/mm**2\n",
+ " 0.0 N/mm**2\n",
+ "Principal Stresses at 60 mm From NA 3.646 N/mm**2\n",
+ " 0.0 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.16,Page No.295"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=8000 #mm #Span of beam\n",
+ "w=40*10**6 #N/mm #udl\n",
+ "\n",
+ "#I-section\n",
+ "\n",
+ "#Flanges\n",
+ "b=100 #mm #Width\n",
+ "t=10 #mm #Thickness\n",
+ "\n",
+ "D=400 #mm #Overall Depth\n",
+ "t2=10 #mm #thickness of web\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let R_A and R_B be the Reactions at A & B respectively\n",
+ "R_A=w*2**-1*L*10**-9 #KN\n",
+ "\n",
+ "#Shear force at 2m for left support\n",
+ "F=R_A-2*w*10**-6 #KN\n",
+ "\n",
+ "#Bending Moment\n",
+ "M=R_A*2-2*w*10**-6 #KN-m\n",
+ "\n",
+ "#M.I\n",
+ "I=1*12**-1*b*D**3-1*12**-1*(b-t)*(D-2*t2)**3 #mm**4\n",
+ "\n",
+ "#Bending stress at 100 mm above N_A\n",
+ "f=M*10**6*I**-1*b\n",
+ "\n",
+ "#Shear stress \n",
+ "q=F*10**3*(t*I)**-1*(b*t*(D-t)*2**-1 +t2*(b-t2)*145) #N/mm**2\n",
+ "\n",
+ "p_x=-197.06 #N/mm**2 \n",
+ "p_y=0 #N/mm**2\n",
+ "q=21.38 #N/mm**2\n",
+ "\n",
+ "#Principal Stresses\n",
+ "\n",
+ "P1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "P2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Stresses are:\",round(P1,2),\"N/mm**2\"\n",
+ "print\" \",round(P2,2),\"N/mm**2\"\n",
+ "print\"Max shear stress\",round(q_max,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Stresses are: 2.29 N/mm**2\n",
+ " -199.35 N/mm**2\n",
+ "Max shear stress 100.82 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.18,Page No.298"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=100 #mm #Diameter of shaft\n",
+ "M=3*10**6 #N-mm #B.M\n",
+ "T=6*10**6 #N-mm #Twisting Moment\n",
+ "mu=0.3\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max principal Stress\n",
+ "\n",
+ "P1=16*(pi*d**3)**-1*(M+(M**2+T**2)**0.5) #N/mm**2 \n",
+ "P2=16*(pi*d**3)**-1*(M-(M**2+T**2)**0.5) #N/mm**2 \n",
+ "\n",
+ "#Direct stress\n",
+ "P=round(P1,2)-mu*round(P2,2) #N/mm**2 \n",
+ "\n",
+ "#Result\n",
+ "print\"Principal stresses are:\",round(P1,2),\"N/mm**2\"\n",
+ "print\" :\",round(P2,2),\"N/mm**2\"\n",
+ "print\"Stress Producing the same strain is\",round(P,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal stresses are: 49.44 N/mm**2\n",
+ " : -18.89 N/mm**2\n",
+ "Stress Producing the same strain is 55.11 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.19,Page No.299"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=75 #mm #diameter \n",
+ "P=30*10**6 #W #Power transmitted\n",
+ "W=6 #N-mm/sec #Load\n",
+ "L=1000 #mm \n",
+ "N=300 #r.p.m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#B.M\n",
+ "M=W*L*4**-1 #N-mm\n",
+ "T=P*60*(2*pi*N)**-1 #Torque transmitted\n",
+ "\n",
+ "#M.I\n",
+ "I=pi*64**-1*d**4 #mm**4\n",
+ "\n",
+ "#Bending stress\n",
+ "f_A=M*I**-1*(d*2**-1) #N/mm**2\n",
+ "\n",
+ "#At A\n",
+ "p_x=f_A\n",
+ "p_y=0\n",
+ "\n",
+ "#Polar Modulus\n",
+ "J=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Shearing stress\n",
+ "q=T*J**-1*(d*2**-1) #N/mm**2\n",
+ "\n",
+ "#Principal Stresses\n",
+ "P1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "P2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Bending stress\n",
+ "p_x2=0\n",
+ "p_y2=0\n",
+ "\n",
+ "#Shearing stress\n",
+ "q2=T*J**-1*d*2**-1 #N/mm**2\n",
+ "\n",
+ "#Principal stresses\n",
+ "P3=(p_x2+p_y2)*2**-1+(((p_x2-p_y2)*2**-1)**2+q2**2)**0.5 #N/mm**2\n",
+ "P4=(p_x2+p_y2)*2**-1-(((p_x2-p_y2)*2**-1)**2+q2**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max2=(((p_x2-p_y2)*2**-1)**2+q2**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Answer for Principal Stresses P1,P2 and Max stress i.e q_max is incorrect in Book\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Stresses at vertical Diameter:P1\",round(P1,2),\"N/mm**2\"\n",
+ "print\" :P2\",round(P2,2),\"N/mm**2\"\n",
+ "print\"Max stress at vertical Diameter : \",round(q_max,2),\"N/mm**2\"\n",
+ "print\"Principal Stresses at Horizontal Diameter:P3\",round(P3,2),\"N/mm**2\"\n",
+ "print\" :P4\",round(P4,2),\"N/mm**2\"\n",
+ "print\"Max stress at Horizontal Diameter : \",round(q_max2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Stresses at vertical Diameter:P1 11.55 N/mm**2\n",
+ " :P2 -11.51 N/mm**2\n",
+ "Max stress at vertical Diameter : 11.53 N/mm**2\n",
+ "Principal Stresses at Horizontal Diameter:P3 11.53 N/mm**2\n",
+ " :P4 -11.53 N/mm**2\n",
+ "Max stress at Horizontal Diameter : 11.53 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.20,Page No.302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=100 #mm #External Diameter\n",
+ "d2=50 #mm #Internal Diameter\n",
+ "N=500 #mm #r.p.m\n",
+ "P=60*10**6 #N-mm/sec #Power\n",
+ "p=100 #N/mm**2 #principal stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#M.I\n",
+ "I=pi*(d1**4-d2**4)*64**-1 #mm**4\n",
+ "\n",
+ "#Bending Stress\n",
+ "#f=M*I*d1*2**-1 #N/mm**2\n",
+ "\n",
+ "#Principal Planes\n",
+ "#p_x=32*M*(pi*(d1**4-d2**4))*d1\n",
+ "#p_y=0\n",
+ "\n",
+ "#Shear stress\n",
+ "#q=T*J**-1*(d1*2**-1)\n",
+ "#After sub values and further simplifying we get\n",
+ "#q=16*T*d1*(pi*(d1**4-d2**4))*d1\n",
+ "\n",
+ "#Principal stresses\n",
+ "#P1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "#After sub values and further simplifying we get\n",
+ "#P1=16*(pi*(d1**4-d2**4))*d1*(M+(M**2+t**2)**0.5) ...............(1)\n",
+ "\n",
+ "#P=2*pi*N*T*60**-1\n",
+ "#After sub values and further simplifying we get\n",
+ "T=P*60*(2*pi*N)**-1*10**-6 #N-mm\n",
+ "\n",
+ "#Again Sub values and further simplifying Equation 1 we get\n",
+ "M=(337.533)*(36.84)**-1 #KN-m\n",
+ "\n",
+ "#Min Principal stress\n",
+ "#P2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "#Sub values and further simplifying we get\n",
+ "P2=16*(pi*(d1**4-d2**4))*d1*(M-(M**2+T**2)**0.5)*10**-11\n",
+ "\n",
+ "#Result\n",
+ "print\"Bending Moment safely applied to shaft is\",round(M,2),\"KN-m\"\n",
+ "print\"Min Principal Stress is\",round(P2,3),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Bending Moment safely applied to shaft is 9.16 KN-m\n",
+ "Min Principal Stress is -0.336 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.21,Page No.303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=150 #mm #Diameter\n",
+ "T=20*10**6 #N #Torque\n",
+ "M=12*10**6 #N-mm #B.M\n",
+ "F=200*10**3 #N #Axial Thrust\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#M.I\n",
+ "I=(pi*64**-1*d**4)\n",
+ "\n",
+ "#Bending stress \n",
+ "f_A=M*I**-1*(d*2**-1) #N/mm**2\n",
+ "f_B=-f_A #N/mm**2\n",
+ "\n",
+ "#Axial thrust due to thrust\n",
+ "sigma=F*(pi*4**-1*d**2)**-1\n",
+ "\n",
+ "#At A\n",
+ "p_x=f_A-sigma #N/mm**2\n",
+ "\n",
+ "#At B\n",
+ "p_x2=f_B-sigma #N/mm**2\n",
+ "\n",
+ "p_y=0 #At A and B\n",
+ "\n",
+ "#Polar Modulus\n",
+ "J=pi*32**-1*d**4 #mm**4\n",
+ "\n",
+ "#Shearing stress at A and B\n",
+ "q=T*J**-1*(d*2**-1) #N/mm**2\n",
+ "\n",
+ "\n",
+ "#Principal Stresses\n",
+ "#At A\n",
+ "P1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "P2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max1=(((p_x-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#At B\n",
+ "P1_2=(p_x2+p_y)*2**-1+(((p_x2-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "P2_2=(p_x2+p_y)*2**-1-(((p_x2-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max2=(((p_x2-p_y)*2**-1)**2+q**2)**0.5 #N/mm**2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"MAx Principal Stresses:P1\",round(P1,2),\"N/mm**2\"\n",
+ "print\" :P2\",round(P2,2),\"N/mm**2\"\n",
+ "print\"Min Principal Stresses:P1_2\",round(P1_2,2),\"N/mm**2\"\n",
+ "print\" :P2_2\",round(P2_2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "MAx Principal Stresses:P1 45.1 N/mm**2\n",
+ " :P2 -20.2 N/mm**2\n",
+ "Min Principal Stresses:P1_2 14.65 N/mm**2\n",
+ " :P2_2 -62.18 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.22,Page No.311"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#strains\n",
+ "e_A=500 #microns\n",
+ "e_B=250 #microns\n",
+ "e_C=-150 #microns\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "theta=45 #Degrees\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "e_x=e_A=500\n",
+ "e_45=e_B=250\n",
+ "e_y=e_C=-150 \n",
+ "\n",
+ "#e_45=(e_x+e_y)*2**-1+(e_x-e_y)*2**-1*cos(2*theta)+rho_x_y*2**-1*sin(2*theta)\n",
+ "#After sub values and further simplifying we get\n",
+ "rho_x_y=(e_45-(e_x+e_y)*2**-1-(e_x-e_y)*2**-1*cos(2*theta*pi*180**-1))*(sin(2*theta*pi*180**-1))**-1*2\n",
+ "\n",
+ "#Principal strains are given by\n",
+ "e1=(e_x+e_y)*2**-1+(((e_x-e_y)*2**-1)**2+(rho_x_y*2**-1)**2)**0.5 #microns\n",
+ "e2=(e_x+e_y)*2**-1-(((e_x-e_y)*2**-1)**2+(rho_x_y*2**-1)**2)**0.5 #microns\n",
+ "\n",
+ "#Principal Stresses\n",
+ "sigma1=E*(e1+mu*e2)*(1-mu**2)**-1*10**-6 #N/mm**2\n",
+ "sigma2=E*(e2+mu*e1)*(1-mu**2)**-1*10**-6 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Strains are:e1\",round(e1,2),\"N/mm**2\"\n",
+ "print\" :e2\",round(e2,2),\"N/mm**2\"\n",
+ "print\"Principal Stresses are:sigma1\",round(sigma1,2),\"N/mm**2\"\n",
+ "print\" :sigma2\",round(sigma2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Strains are:e1 508.54 N/mm**2\n",
+ " :e2 -158.54 N/mm**2\n",
+ "Principal Stresses are:sigma1 101.31 N/mm**2\n",
+ " :sigma2 -1.31 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example No.7.23,Page No.313"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Strains\n",
+ "e_A=600 #microns\n",
+ "e_B=-450 #microns\n",
+ "e_C=100 #micron\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "theta=240\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "e_x=e_A=600\n",
+ "\n",
+ "#e_A=(e_x+e_y)*2**-1+(e_x-e_y)*2**-1*cos(theta)+rho_x_y*2**-1*sin(theta)\n",
+ "#After sub values and further simplifying we get\n",
+ "#-450=(e_x+e_y)*2**-1-(e_x-e_y)*2**-1*(0.5)-0.866*2**-1*rho_x_y .....................(1)\n",
+ "\n",
+ "#e_C=(e_x+e_y)*2**-1+(e_x-e_y)*2**-1*cos(2*theta)+rho_x_y*2**-1*sin(2*theta)\n",
+ "#After sub values and further simplifying we get\n",
+ "#100=(e_x+e_y)*2**-1-0.5*(e_x-e_y)*2**-1*(0.5)-0.866*2**-1*rho_x_y .....................(2)\n",
+ "\n",
+ "#Adding Equation 1 and 2 we get equations as\n",
+ "#-350=e_x+e_y-(e_x-e_y)*2**-1 ...............(3)\n",
+ "#Further simplifying we get\n",
+ "\n",
+ "e_y=(-700-e_x)*3**-1 #micron \n",
+ "\n",
+ "rho_x_y=(e_C-(e_x+e_y)*2**-1-(e_x-e_y)*2**-1*cos(2*theta*pi*180**-1))*(sin(2*theta*pi*180**-1))**-1*2 #micron\n",
+ "\n",
+ "#Principal strains\n",
+ "e1=(e_x+e_y)*2**-1-(((e_x-e_y)*2**-1)**2+(rho_x_y*2**-1)**2)**0.5 #microns\n",
+ "e2=(e_x+e_y)*2**-1+(((e_x-e_y)*2**-1)**2+(rho_x_y*2**-1)**2)**0.5 #microns\n",
+ "\n",
+ "#Principal Stresses\n",
+ "sigma1=E*(e1+mu*e2)*(1-mu**2)**-1*10**-6 #N/mm**2\n",
+ "sigma2=E*(e2+mu*e1)*(1-mu**2)**-1*10**-6 #N/mm**2\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal Stresses are:sigma1\",round(sigma1,2),\"N/mm**2\"\n",
+ "print\" :sigma2\",round(sigma2,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal Stresses are:sigma1 -69.49 N/mm**2\n",
+ " :sigma2 117.11 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_8_BLulAvR.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_8_BLulAvR.ipynb new file mode 100644 index 00000000..2cf267c6 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_8_BLulAvR.ipynb @@ -0,0 +1,1513 @@ +{
+ "metadata": {
+ "name": "chapter 8.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter No.8:Thin And Thick Cyclinders And Spheres"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.1,Page No.322"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=3000 #mm #Length\n",
+ "d1=1000 #mm #Internal diameter\n",
+ "t=15 #mm #Thickness\n",
+ "P=1.5 #N/mm**2 #Fluid Pressure\n",
+ "E=2*10**5 #n/mm**2 #Modulus of elasticity\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Hoop stress\n",
+ "f1=P*d1*(2*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Longitudinal Stress\n",
+ "f2=P*d1*(4*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Max shear stress\n",
+ "q_max=(f1-f2)*2**-1 #N/mm**2\n",
+ "\n",
+ "#Diametrical Strain\n",
+ "#Let e1=dell_d*d**-1 .....................(1)\n",
+ "e1=(f1-mu*f2)*E**-1 \n",
+ "\n",
+ "#Sub values in equation 1 and further simplifying we get\n",
+ "dell_d=e1*d1 #mm\n",
+ "\n",
+ "#Longitudinal strain\n",
+ "#e2=dell_L*L**-1 ......................(2)\n",
+ "e2=(f2-mu*f1)*E**-1 \n",
+ "\n",
+ "#Sub values in equation 2 and further simplifying we get\n",
+ "dell_L=e2*L #mm\n",
+ "\n",
+ "#Change in Volume \n",
+ "#Let Z=dell_V*V**-1 ................(3)\n",
+ "Z=2*e1+e2\n",
+ "\n",
+ "#Sub values in equation 3 and further simplifying we get\n",
+ "dell_V=Z*pi*4**-1*d1**2*L\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Intensity of shear stress\",round(q_max,2),\"N/mm**2\"\n",
+ "print\"Change in the Dimensions of the shell is:dell_d\",round(dell_d,2),\"mm\"\n",
+ "print\" :dell_L\",round(dell_L,2),\"mm\"\n",
+ "print\" :dell_V\",round(dell_V,2),\"mm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Intensity of shear stress 12.5 N/mm**2\n",
+ "Change in the Dimensions of the shell is:dell_d 0.21 mm\n",
+ " :dell_L 0.15 mm\n",
+ " :dell_V 1119192.38 mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.2,Page No.323"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=2000 #mm #Length\n",
+ "d=200 #mm # diameter\n",
+ "t=10 #mm #Thickness\n",
+ "dell_V=25000 #mm**3 #Additional volume\n",
+ "E=2*10**5 #n/mm**2 #Modulus of elasticity\n",
+ "mu=0.3 #Poissoin's ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let p be the pressure developed\n",
+ "\n",
+ "#Circumferential Stress\n",
+ "\n",
+ "#f1=p*d*(2*t)**-1 #N/mm**2\n",
+ "#After sub values and further simplifying\n",
+ "#f1=10*p\n",
+ "\n",
+ "#f1=p*d*(4*t)**-1 #N/mm**2\n",
+ "#After sub values and further simplifying\n",
+ "#f1=5*p\n",
+ "\n",
+ "#Diameterical strain = Circumferential stress\n",
+ "#Let X=dell_d*d**-1 ................................(1)\n",
+ "#X=e1=(f1-mu*f2)*E**-1 \n",
+ "#After sub values and further simplifying\n",
+ "#e1=8.5*p*E**-1\n",
+ "\n",
+ "#Longitudinal strain\n",
+ "#Let Y=dell_L*L**-1 ......................................(2)\n",
+ "#Y=e2=(f2-mu*f1)*E**-1 \n",
+ "#After sub values and further simplifying\n",
+ "#e2=2*p*E**-1\n",
+ "\n",
+ "#Volumetric strain\n",
+ "#Let X=dell_V*V**-1 \n",
+ "#X=2*e1+e2\n",
+ "#After sub values and further simplifying\n",
+ "#X=19*p*E**-1\n",
+ "#After further simplifying we get\n",
+ "p=dell_V*(pi*4**-1*d**2*L)**-1*E*19**-1 #N/mm**2\n",
+ "\n",
+ "#Hoop Stress\n",
+ "f1=p*d*(2*t)**-1\n",
+ "\n",
+ "X=e1=8.5*p*E**-1\n",
+ "#Sub value of X in equation 1 we get\n",
+ "dell_d=8.5*p*E**-1*d\n",
+ "\n",
+ "Y=e2=2*p*E**-1\n",
+ "#Sub value of Y in equation 2 we get\n",
+ "dell_L=2*p*E**-1*L\n",
+ "\n",
+ "#Result\n",
+ "print\"Pressure Developed is\",round(p,2),\"N/mm**2\"\n",
+ "print\"Hoop stress Developed is\",round(f1,2),\"N/mm**2\"\n",
+ "print\"Change in diameter is\",round(dell_d,2),\"mm\"\n",
+ "print\"Change in Length is\",round(dell_L,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Pressure Developed is 4.19 N/mm**2\n",
+ "Hoop stress Developed is 41.88 N/mm**2\n",
+ "Change in diameter is 0.04 mm\n",
+ "Change in Length is 0.08 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.3,Page No.324"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=750 #mm #Diameter of water supply pipes\n",
+ "h=50*10**3 #mm #Water head\n",
+ "sigma=20 #N/mm**2 #Permissible stress\n",
+ "rho=9810*10**-9 #N/mm**3\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Pressure of water\n",
+ "P=rho*h #N/mm**2\n",
+ "\n",
+ "#Stress\n",
+ "#sigma=p*d*(2*t)**-1\n",
+ "#After further simplifying\n",
+ "t=P*d*(2*sigma)**-1 #mm \n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of seamless pipe is\",round(t,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of seamless pipe is 9.197 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.4,Page No.326"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=2500 #mm #Diameter of riveted boiler\n",
+ "P=1 #N/mm**2 #Pressure\n",
+ "rho1=0.7 #Percent efficiency\n",
+ "rho2=0.4 #Circumferential joints\n",
+ "sigma=150 #N/mm**2 #Permissible stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Equating Bursting force to longitudinal joint strength ,we get\n",
+ "#p*d*L=rho1*2*t*L*sigma\n",
+ "#After rearranging and further simplifying we get\n",
+ "t=P*d*(2*sigma*rho1)**-1 #mm\n",
+ "\n",
+ "#Considering Longitudinal force\n",
+ "#pi*d**2*4**-1*P=rho2*pi*d*t*sigma\n",
+ "#After rearranging and further simplifying we get\n",
+ "t2=P*d*(4*sigma*rho2)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of plate required is\",round(t,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of plate required is 11.9 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.5,Page No.326"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Boiler Dimensions\n",
+ "t=16 #mm #Thickness\n",
+ "p=2 #N/mm**2 #internal pressure\n",
+ "f=150 #N/mm**2 #Permissible stress\n",
+ "rho1=0.75 #Longitudinal joints\n",
+ "rho2=0.45 #circumferential joints\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Equating Bursting force to longitudinal joint strength ,we get\n",
+ "d1=rho1*2*t*f*p**-1 #mm\n",
+ "\n",
+ "#Considering circumferential strength \n",
+ "d2=4*rho2*t*f*p**-1 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Largest diameter of Boiler is\",round(d1,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Largest diameter of Boiler is 1800.0 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.6,Page No.329"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=250 #mm #Diameter iron pipe\n",
+ "t=10 #mm #Thickness\n",
+ "d2=6 #mm #Diameter of steel\n",
+ "p=80 #N/mm**2 #stress\n",
+ "P=3 #N/mm**2 #Pressure\n",
+ "E_c=1*10**5 #N/mm**2\n",
+ "mu=0.3 #poissoin's ratio\n",
+ "E_s=2*10**5 #N/mm**2\n",
+ "n=1 #No.of wires\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "L=6 #mm #Length of cyclinder\n",
+ "\n",
+ "#Force Exerted by steel wire at diameterical section\n",
+ "F=p*2*pi*d2**2*1*4**-1 #N\n",
+ "\n",
+ "#Initial stress in cyclinder\n",
+ "f_c=F*(2*t*d2)**-1 #N/mm**2\n",
+ "\n",
+ "#LEt due to fluid pressure alone stresses developed in steel wire be F_w and in cyclinder f1 and f2\n",
+ "f2=P*d*(4*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Considering the equilibrium of half the cyclinder, 6mm long we get\n",
+ "#F_w*2*pi*4**-1*d2**2*n+f1*2*t*d2=P*d*d2\n",
+ "#After further simplifying we get\n",
+ "#F_w+2.122*f1=79.58 . ......................................(1)\n",
+ "\n",
+ "#Equating strain in wire to circumferential strain in cyclinder \n",
+ "#F_w=(f1-mu*f2)*E_s*E_c**-1 #N/mm**2\n",
+ "#After further simplifying we get\n",
+ "#F_w=2*f1-11.25 ....................................(2)\n",
+ "\n",
+ "#Sub in equation in1 we get\n",
+ "f1=(79.58+11.25)*(4.122)**-1 #N/mm**2\n",
+ "F_w=2*f1-11.25 #N/mm**2\n",
+ "\n",
+ "#Final stresses\n",
+ "#1) In steel Wire\n",
+ "sigma=F_w+p #N/mm**2\n",
+ "\n",
+ "#2) In Cyclinder\n",
+ "sigma2=f1-f_c\n",
+ "\n",
+ "#Result\n",
+ "print\"Final Stresses developed in:cyclinder is\",round(sigma,2),\"N/mm**2\"\n",
+ "print\" :Steel is\",round(sigma2,2),\"N/mm**2\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Final Stresses developed in:cyclinder is 112.82 N/mm**2\n",
+ " :Steel is -15.66 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.7,Page No.332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=750 #mm #Diameter of shell\n",
+ "t=8 #mm #THickness\n",
+ "p=2.5 #N/mm**2\n",
+ "E=2*10**5 #N/mm**2\n",
+ "mu=0.25 #Poissoin's ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Hoop stress\n",
+ "f1=f2=p*d*(4*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Change in Diameter\n",
+ "dell_d=d*p*d*(1-mu)*(4*t*E)**-1 #mm\n",
+ "\n",
+ "#Change in Volume\n",
+ "dell_V=3*p*d*(1-mu)*(4*t*E)**-1*pi*6**-1*d**3\n",
+ "\n",
+ "#Answer for Change in diameter is incorrect in book\n",
+ "\n",
+ "#Result\n",
+ "print\"Stress introduced is\",round(f1,2),\"N/mm**2\"\n",
+ "print\"Change in Diameter is\",round(dell_d,2),\"N/mm**2\"\n",
+ "print\"Change in Volume is\",round(dell_V,2),\"mm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stress introduced is 58.59 N/mm**2\n",
+ "Change in Diameter is 0.16 N/mm**2\n",
+ "Change in Volume is 145608.33 mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.8,Page No.333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d=600 #mm #Diameter of sherical shell\n",
+ "t=10 #mm #Thickness\n",
+ "f=80 #N/mm**2 #Permissible stress\n",
+ "rho=0.75 #Efficiency joint\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Max Pressure\n",
+ "p=f*4*t*rho*d**-1 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Pressure is\",round(p,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Pressure is 4.0 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.9,Page No.333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=1000 #mm #Length of shell\n",
+ "d=200 #mm #Diameter\n",
+ "t=6 #mm #Thickness\n",
+ "p=1.5 #N/mm**2 #Internal Pressure\n",
+ "E=2*10**5 #N/mm**2\n",
+ "mu=0.25 #Poissoin's Ratio\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Change in Volume of sphere\n",
+ "dell_V_s=3*p*d*(1-mu)*(4*t*E)**-1*pi*6**-1*d**3\n",
+ "\n",
+ "#Hoop stress\n",
+ "f1=p*d*(2*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Longitudinal stress\n",
+ "f2=p*d*(4*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Principal strain\n",
+ "e1=(f1-mu*f2)*E**-1\n",
+ "e2=(f2-mu*f1)*E**-1\n",
+ "\n",
+ "V_c=1000 #mm**3\n",
+ "\n",
+ "#Change in Volume of cyclinder\n",
+ "dell_V_c=(2*e1+e2)*pi*4**-1*d**2*L\n",
+ "\n",
+ "#Total Change in Diameter\n",
+ "dell_V=dell_V_s+dell_V_c #mm**3\n",
+ "\n",
+ "#Result\n",
+ "print\"Change in Volume is\",round(dell_V,2),\"mm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in Volume is 8443.03 mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.10,Page No.337"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=400 #mm #Internal Diameter\n",
+ "t=100 #mm #Thickness\n",
+ "p=80 #N/mm**2 #Fluid pressure\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Internal Radius\n",
+ "r1=d1*2**-1 #mm\n",
+ "\n",
+ "#Outer Radius\n",
+ "r_o=r1+t #mm\n",
+ "\n",
+ "p1=80 #N/mm**2\n",
+ "p2=0\n",
+ "\n",
+ "#Now From Lame's Euation\n",
+ "#p_x=b*(x**2)**-1-a\n",
+ "#at x=200 #mm \n",
+ "p_x=80 #N/mm**2\n",
+ "#80=b*(200**2)**-1-a ..........................(1)\n",
+ "\n",
+ "#at x=300 #mm\n",
+ "#p_x2=0\n",
+ "#0=b*(300**2)**-1-a ...........................(2)\n",
+ "\n",
+ "#Sub equation 2 from 1\n",
+ "#80=b*(200**2)**-1-b*(300**2)**-1\n",
+ "#After Further simplifying we get\n",
+ "b=(50000)**-1*(200**2*300**2*80)\n",
+ "\n",
+ "#From equation 2 we get\n",
+ "a=b*(300**2)**-1\n",
+ "\n",
+ "#Variation of radial pressure p_x;\n",
+ "#p_x=b*(x**2)**-1-a\n",
+ "#After sub values and further simplifying we get\n",
+ "\n",
+ "#Radial pressure Variation\n",
+ "#At \n",
+ "x=200 #mm\n",
+ "p_x=b*(x**2)**-1-a #N/mm**2\n",
+ "\n",
+ "#At\n",
+ "x2=250 #mm\n",
+ "p_x2=b*(x2**2)**-1-a #N/mm**2\n",
+ "\n",
+ "#At \n",
+ "x3=300 #mm\n",
+ "p_x3=b*(x3**2)**-1-a #N/mm**2\n",
+ "\n",
+ "\n",
+ "#Hoop stress Distribution\n",
+ "#Variation of F_x\n",
+ "\n",
+ "#At \n",
+ "x=200 #mm\n",
+ "F_x=b*(x**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At\n",
+ "x2=250 #mm\n",
+ "F_x2=b*(x2**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At\n",
+ "x3=300 #mm\n",
+ "F_x3=b*(x3**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Hoop stress is\",round(F_x,2),\"N/mm**2\"\n",
+ "print\"Min Hoop stress is\",round(F_x3,2),\"N/mm**2\"\n",
+ "print\"Plot of Hoop stress\"\n",
+ "\n",
+ "#Plotting Variation of hoop stress\n",
+ "\n",
+ "X1=[x,x2,x3]\n",
+ "Y1=[p_x,p_x2,p_x3]\n",
+ "Y2=[-F_x,-F_x2,-F_x3]\n",
+ "Z1=[0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Y2,X1,Z1)\n",
+ "plt.xlabel(\"Length x in mm\")\n",
+ "plt.ylabel(\"Radial Stress Distribution & Hoop Stress Distribution in N/mm**2\")\n",
+ "plt.show()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Hoop stress is 208.0 N/mm**2\n",
+ "Min Hoop stress is 128.0 N/mm**2\n",
+ "Plot of Hoop stress\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_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2/eRMeO\nHXH16lVERUXh6NGjdWZjEbV3TdoiJT4+HsXFxRg9erRO3y1RWzV8+HBcv34dlZWVWLRoEWJiYlo6\nJCKLozeRFBcXw8XFRe/CRC5IJCIioIFEMm7cOPzwww/w9fWtt/+UCxKJiAjg7r9ERGQivetIkpKS\nGnyjSqVq9mCIiKj10dsiiY6OhkKhQHl5ORITExEaGgpAu6Cqf//+OHbsmFkDJSIiy6R3HUl8fDwO\nHjwIb29vJCUlITExEYmJiUhOTuZRu0REJDE4RhIcHIzU1FSDZURE1D4Z3GsrNDQUs2bNwvTp0yGE\nwPr16xEWFmaO2IiIqBUw2CIpLy/Hxx9/jMOHDwPQ7vo7e/Zs2NvbmyVAIiKybJz+S0REJjHYtXX+\n/Hm8/vrrSE1Nlc6oVigUyMjIkD04IiKyfAZ3/505cyaef/552NjY4ODBg5gxYwaeeOIJc8RGRESt\ngMGuLZVKhaSkJISEhOD06dM6ZURERAa7tuzt7VFVVYWAgAD885//hLe3N27evGmO2IiIqBUw2CJJ\nSEhAUFAQrl+/jjfffBPFxcVYuHAhBg4caK4YiYjIgjV51pYQAhs2bMBjjz0mV0xERNSK6B1sLy0t\nxapVq/DCCy8gLi4O1dXV2LJlC/r27YuvvvrKnDESEZEF09simTRpElxcXDBo0CDs3bsX2dnZsLe3\nx+rVqxEeHm7uOImIyELpTSShoaFISUkBAFRVVcHLywt//PEHHBwczBogERFZNr1dW9bW1jr3lUol\nkwgREdWht0VibW0NR0dH6XF5ebmUSBQKBYqLi80TIRERWTTutUVERCYxuEUKERFRQ5hIiIjIJEwk\nRERkEiYSIiIyCRMJERGZhImEiIhM8v8BOmQpuVllnG0AAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x4fa1390>"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.11,Page No.338"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d_o=300 #mm #Outside diameter \n",
+ "d2=200 #mm #Internal Diameter\n",
+ "p=14 #N/mm**2 #internal Fluid pressure\n",
+ "t=50 #mm #Thickness\n",
+ "r_o=150 #mm #Outside Diameter\n",
+ "r2=100 #mm #Internal Diameter\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Lame's Equation\n",
+ "#p_x=b*(x**2)**-1-a #N/mm**2 ...................(1)\n",
+ "#F_x=b*(x**2)**-1+a #N/mm**2 ...................(2)\n",
+ "\n",
+ "#At \n",
+ "x=r2=100 #mm\n",
+ "p_x=14 #N/mm**2\n",
+ "\n",
+ "#Sub value of p_x in equation 1 we get\n",
+ "#14=(100)**-1*b-a ............................(3)\n",
+ "\n",
+ "#At\n",
+ "x2=r_o=150 #mm\n",
+ "p_x2=0 #N/mm**2\n",
+ "\n",
+ "#Sub value in equation 1 we get\n",
+ "#0=b*(150**2)**-1-a ......................(4)\n",
+ "\n",
+ "#From Equations 3 and 4 we get\n",
+ "#14=b*(100**2)**-1-b*(100**2)**-1\n",
+ "#After sub values and further simplifying we get\n",
+ "b=14*100**2*150**2*(150**2-100**2)**-1\n",
+ "\n",
+ "#From equation 4 we get\n",
+ "a=b*(150**2)**-1\n",
+ "\n",
+ "#Hoop Stress\n",
+ "#F_x=b*(x**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At \n",
+ "x=100 #mm\n",
+ "F_x=b*(x**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At\n",
+ "x2=125 #mm\n",
+ "F_x2=b*(x2**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At\n",
+ "x3=150 #mm\n",
+ "F_x3=b*(x3**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#If thin Cyclindrical shell theory is used,hoop stress is uniform and is given by\n",
+ "F=p*d2*(2*t)**-1 #N/mm**2\n",
+ "\n",
+ "#Percentage error in estimating max hoop tension\n",
+ "E=(F_x-F)*F_x**-1*100 #%\n",
+ "\n",
+ "#Result\n",
+ "print\"Max Hoop Stress Developed in the cross-section is\",round(F,2),\"N/mm**2\"\n",
+ "print\"Plot of Variation of hoop stress\"\n",
+ "\n",
+ "#Plotting Variation of hoop stress\n",
+ "\n",
+ "X1=[x,x2,x3]\n",
+ "Y1=[F_x,F_x2,F_x3]\n",
+ "Z1=[0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in mm\")\n",
+ "plt.ylabel(\"Radial Stress Distribution & Hoop Stress Distribution in N/mm**2\")\n",
+ "plt.show()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max Hoop Stress Developed in the cross-section is 28.0 N/mm**2\n",
+ "Plot of Variation of hoop stress\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAFRCAYAAAB0TtpPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYlOXeB/DvI7ih4Iqgog1hguyLuZtj5JaSS6nZMTku\nb+V5reOS0jnlAd8W0dRCz5t5maWdVzuhloL7yRzNLZQlTVwSGVdAFNkUxWHu949HBkcYZxh4BoTv\n57q4Yh6G5/7xXF3z895+tySEECAionqvQU0HQEREtQMTAhERAWBCICKiB5gQiIgIABMCERE9wIRA\nREQAmBCIiOgBkwlBp9Phyy+/xAcffIBDhw4Z/eyjjz5SPDAiIrItkwnhzTffxIEDB9CmTRu88847\nmD17tuFnmzdvtklwRERkOyYTQkJCAjZs2IBZs2bh6NGjKCgowJgxY3D37l1bxkdERDZiMiHcv3/f\n8H3Dhg2xevVqBAQEIDQ0FIWFhTYJjoiIbMdkQggJCcHOnTuNrkVGRmLy5MnQarVKx0VERDYmsbgd\nEREBZ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prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.12,Page No.339"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d_o=300 #mm #Outside diameter \n",
+ "d2=200 #mm #Internal Diameter\n",
+ "p=12 #N/mm**2 #internal Fluid pressure\n",
+ "F_max=16 #N/mm**2 #Tensile stress\n",
+ "r_o=150 #mm #Outside Diameter\n",
+ "r2=100 #mm #Internal Diameter\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let p_o be the External Pressure applied.\n",
+ "#From LLame's theorem\n",
+ "#p_x=b*(x**2)**-1-a ..............(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#Now At\n",
+ "x=100 #mm\n",
+ "p_x=12 #N/mm**2\n",
+ "#sub in equation 1 we get\n",
+ "#12=b*(100**2)**-1-a . ..................(3)\n",
+ "\n",
+ "#The Max Hoop stress occurs at least value of x where\n",
+ "x=r1=100 #mm\n",
+ "#16=b*(100**2)**-1+a .......................(4)\n",
+ "\n",
+ "#From Equations 1 and 2 we get\n",
+ "#28=b*(100**2)**-1+b*(100**2)**-1\n",
+ "#After furhter Simplifying we get\n",
+ "b=28*100**2*2**-1\n",
+ "\n",
+ "#sub in equation 1 we get\n",
+ "a=-(12-(b*(100**2)**-1))\n",
+ "\n",
+ "#Thus At\n",
+ "x2=150 #mm\n",
+ "p_o=b*(x2**2)**-1-a\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum External applied is\",round(p_o,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum External applied is 4.22 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.13,Page No.340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d1=160 #mm #Internal Diameter \n",
+ "r1=80 #mm #External Diameter\n",
+ "p1=40 #N/mm**2 #Internal Diameter\n",
+ "P_max=120 #N/mm**2 #Allowable stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Lame's Equation we have\n",
+ "#p_x=b*(x**2)**-1-a ..........................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#At \n",
+ "x=r1=80 #N/mm**2 \n",
+ "#Sub in equation 1 we get\n",
+ "#120=b*(80**2)**-1+a ........................(3)\n",
+ "\n",
+ "#The hoop tension at inner edge is max stress\n",
+ "#Hence\n",
+ "#120=b*(80**2)**-1+a .............................(4)\n",
+ "\n",
+ "#From Equation 3 and 4 we get\n",
+ "b=160*80**2*2**-1 \n",
+ "\n",
+ "#Sub in equation 3 we get\n",
+ "a=-(40-(b*(80**2)**-1))\n",
+ "\n",
+ "#Let External radius be r_o.Since at External Surface is Zero,we get\n",
+ "#0=b*(r_o)**-1-a\n",
+ "#After Further simplifying we get\n",
+ "r_o=(b*a**-1)**0.5\n",
+ "\n",
+ "#Thickness of Cyclinder \n",
+ "t=r_o-r1 #mm\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness Required is\",round(t,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness Required is 33.14 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.14,Page No.341"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d_o=300 #mm #Outside diameter \n",
+ "d1=180 #mm #Internal Diameter\n",
+ "p=12 #N/mm**2 #internal Fluid pressure\n",
+ "p_o=6 #N/mm**2 #External Pressure\n",
+ "r_o=150 #mm #Outside Diameter\n",
+ "r=90 #mm #Internal Diameter\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Lame's Equation we have\n",
+ "#p_x=b*(x**2)**-1-a ..........................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#At \n",
+ "x=r1=90 #N/mm**2 \n",
+ "p=42 #N/mm**2\n",
+ "#Sub in equation 1 we get\n",
+ "#42=b*(90**2)**-1-a ..............................(3)\n",
+ "\n",
+ "#At \n",
+ "x=r_o=150 #mm\n",
+ "p2=6 #N/mm**2\n",
+ "#sub in equation 1 we get\n",
+ "#6=b*(150**2)**-1-a ..............................(4)\n",
+ "\n",
+ "#From equations 3 and 4 weget\n",
+ "#36=b*(90**2)**-1-b2(150**2)**-1\n",
+ "#After further simplifying we get\n",
+ "b=36*90**2*150**2*(150**2-90**2)**-1\n",
+ "\n",
+ "#Sub value of b in equation 4 we get\n",
+ "a=b*(150**2)**-1-p_o\n",
+ "\n",
+ "#At \n",
+ "x=r1=90 #mm\n",
+ "F_x=b*(x**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#At \n",
+ "x2=r_o=150 #mm \n",
+ "F_x2=b*(x2**2)**-1+a #N/mm**2\n",
+ "\n",
+ "#Now if External pressure is doubled i.e p_o2=12 #N/mm**2 We have\n",
+ "p_o2=12 #N/mm**2\n",
+ "#sub in equation 4 we get\n",
+ "#12=b2*(150**2)**-1-a2 ..........................(5)\n",
+ "\n",
+ "#Max Hoop stress is to be 70.5 #N/mm**2,which occurs at x=r1=90 #mm\n",
+ "#Sub in equation 4 we get\n",
+ "#70.5=b*(90**2)**-1+a2 ................................(6)\n",
+ "\n",
+ "#Adding equation 5 and 6\n",
+ "#82.5=b2*(150**2)**-1+b*(90**2)**-1\n",
+ "#After furhter simplifying we get\n",
+ "b2=82.5*150**2*90**2*(150**2+90**2)**-1\n",
+ "\n",
+ "#Sub in equation 5 we get\n",
+ "a2=b2*(150**2)**-1-12 \n",
+ "\n",
+ "#If p_i is the internal pressure required then from Lame's theorem\n",
+ "p_i=b2*(r1**2)**-1-a2\n",
+ "\n",
+ "#Result\n",
+ "print\"Stresses int the material are:F_x\",round(F_x,2),\"N/mm**2\"\n",
+ "print\" :F_x2\",round(F_x2,2),\"N/mm**2\"\n",
+ "print\"Internal Pressure that can be maintained is\",round(p_i,2),\"N/mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stresses int the material are:F_x 70.5 N/mm**2\n",
+ " :F_x2 34.5 N/mm**2\n",
+ "Internal Pressure that can be maintained is 50.82 N/mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.15,Page No.344"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "r1=200 #mm #Inner Radius\n",
+ "r2=250 #mm #Radius at common surface\n",
+ "r3=300 #mm #Outer radius\n",
+ "p=6 #N/mm**2 #Inital pressure\n",
+ "p2=80 #N/mm**2 #Pressure\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Inner Cyclinder:\n",
+ "\n",
+ "#From Lame's Equation we have\n",
+ "#p_x=b*(x**2)**-1-a ..........................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#At \n",
+ "x=r1=200 #mm\n",
+ "p_x=0\n",
+ "#0=b1*(250**2)**-1-a1 .................(3)\n",
+ "\n",
+ "#At x=r2=250 #mm\n",
+ "p_x2=6 #N/mm**2\n",
+ "#6=b1*(250**2)-a1 ...................(4)\n",
+ "\n",
+ "#From Equation 3 and 4 we get\n",
+ "b1=6*200**2*250**2*(200**2-250**2)**-1\n",
+ "\n",
+ "#From equation 3 we get\n",
+ "a1=b1*(200**2)**-1\n",
+ "\n",
+ "F_200=b1*(200**2)**-1+a1\n",
+ "F_250=b1*(250**2)**-1+a1\n",
+ "\n",
+ "#For outer cyclinder \n",
+ "#From Lame's Equation we have\n",
+ "#p_x2=b2*(x**2)**-1-a2 ..........................(5)\n",
+ "#F_x2=b2*(x**2)**-1+a2 ...........................(6)\n",
+ "\n",
+ "\n",
+ "#At \n",
+ "x2=r2=250 #mm\n",
+ "p_x2=6 #N/mm**2\n",
+ "#6=b2*(250**2)**-1-a2 ...........................(7) \n",
+ "\n",
+ "#At\n",
+ "x3=300 #mm\n",
+ "#p_x2=0\n",
+ "#0=b2**2*(300**2)**-1-a2 .................................(8)\n",
+ "\n",
+ "#from equation 7 and 8 we get\n",
+ "b2=6*250**2*300**2*(300**2-250**2)**-1\n",
+ "\n",
+ "#sub in equation 8 we get\n",
+ "a2=b2*(300**2)**-1\n",
+ "\n",
+ "F_250_2=b2*(250**2)**-1+a2\n",
+ "F_300_2=b2*(300**2)**-1+a2\n",
+ "\n",
+ "#When Fluid is admitted\n",
+ "#Let Lame's equation be\n",
+ "#p_x3=b3*(x**2)**-1-a3 ..........................(5)\n",
+ "#F_x3=b3*(x**2)**-1+a3 ...........................(6)\n",
+ "\n",
+ "\n",
+ "#At x=200\n",
+ "p_x3=80 #N/mm**2\n",
+ "#80=b3*(200**2)**-1-a3 ................................(7)\n",
+ "\n",
+ "#At x=300 #mm\n",
+ "#p_x=0\n",
+ "#0=b3*(300**2)**-1-a3 ..............................(8)\n",
+ "\n",
+ "#from Equation 7 and 8 we get\n",
+ "b3=80*200**2*300**2*(300**2-200**2)**-1\n",
+ "\n",
+ "#From Equation 8 we get\n",
+ "a3=b3*(300**2)**-1\n",
+ "\n",
+ "#Hoop stresses \n",
+ "F_200_3=b3*(200**2)**-1+a3 #N/mm**2\n",
+ "F_250_3=b3*(250**2)**-1+a3 #N/mm**2\n",
+ "F_300_3=b3*(300**2)**-1+a3 #N/mm**2\n",
+ "\n",
+ "#Pressure at common surface\n",
+ "p_250=b3*(250**2)**-1-a3 #N/mm**2\n",
+ "\n",
+ "#final stress\n",
+ "f_200=F_200+F_200_3 #N/mm**2\n",
+ "f_250=F_250+F_250_3 #N/mm**2\n",
+ "f_300=F_250_2+F_250_3 #N/mm**2\n",
+ "f_300_2=F_300_2+F_300_3 #N/mm**2\n",
+ "\n",
+ "#Result\n",
+ "print\"final Hoop stress are:f_200\",round(f_200,2),\"N/mm**2\"\n",
+ "print\" :f_250\",round(f_250,2),\"N/mm**2\"\n",
+ "print\" :f_300\",round(f_300,2),\"N/mm**2\"\n",
+ "print\" :f_300_2\",round(f_300_2,2),\"N/mm**2\"\n",
+ "print\"Variation of Hoop stress and Radial stress\"\n",
+ "\n",
+ "#Final stresses\n",
+ "#Variation of hoop stress \n",
+ " \n",
+ "X1=[x,x2,x3,x3]\n",
+ "Y1=[f_200,f_250,f_300,f_300_2]\n",
+ "Z1=[0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in mm\")\n",
+ "plt.ylabel(\"Hoop Stress Distribution in N/mm**2\")\n",
+ "plt.show()\n",
+ "\n",
+ "#Due to Fluid\n",
+ "#Variation of hoop stress \n",
+ " \n",
+ "X1=[x,x2,x3]\n",
+ "Y1=[F_200_3,F_250_3,F_300_3]\n",
+ "Z1=[0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in mm\")\n",
+ "plt.ylabel(\"Hoop Stress Distribution in N/mm**2\")\n",
+ "plt.show()\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "final Hoop stress are:f_200 174.67 N/mm**2\n",
+ " :f_250 128.83 N/mm**2\n",
+ " :f_300 189.43 N/mm**2\n",
+ " :f_300_2 155.27 N/mm**2\n",
+ "Variation of Hoop stress and Radial stress\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlUlEfaNvCrETAquIwLRImiIDuCYkTHoCgirrigJG4h\nGrfkjJO8MaLJ5xjNTBQzr/NGnRiNcUtMjDEuYNRIXHDU6GAU9wUHAbFBXHGNIlDfHzU0oHRjd/P0\nQl+/czgHu3meulPRvqmnqu5SCSEEiIiItLAzdwBERGTZmCiIiEgnJgoiItKJiYKIiHRioiAiIp2Y\nKIiISCfFEkVOTg569OgBf39/BAQEYNGiRQCAW7duITIyEl5eXujduzcKCgo018ybNw9t27aFj48P\nkpOTlQqNiIj0oFJqH8XVq1dx9epVBAcH4/79+wgJCcGWLVuwatUqNGnSBPHx8Zg/fz5u376NhIQE\nnD17FiNHjsSRI0egVqvRq1cvpKenw86Ogx4iInNS7FPY1dUVwcHBAAAnJyf4+vpCrVYjKSkJcXFx\nAIC4uDhs2bIFAJCYmIgRI0bAwcEB7u7u8PT0RGpqqlLhERHRczLJr+tZWVlIS0tDaGgo8vPz4eLi\nAgBwcXFBfn4+ACA3Nxdubm6aa9zc3KBWq00RHhER6aB4orh//z5iYmKwcOFCODs7V3hPpVJBpVJp\nvVbXe0REZBr2St78yZMniImJwZgxYzB48GAAchRx9epVuLq6Ii8vD82aNQMAtGjRAjk5OZprr1y5\nghYtWjxzT09PT2RkZCgZNhFRjePh4YH//Oc/Bl2r2IhCCIE333wTfn5+ePfddzWvR0dHY82aNQCA\nNWvWaBJIdHQ0vv/+exQWFiIzMxMXL15Ep06dnrlvRkYGhBD8EgIfffSR2WOwlC/2BfuCfaH7y5hf\nsBUbURw8eBBr165Fu3bt0L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jICAA\nSUlJmp8vf3JX6fcxMTFwc3ODn58fxowZgw4dOqBBgwYAgIkTJ6JPnz6ayeynr3/6JDAhBMaPH48F\nCxbA1dUVK1aswPjx4zWPv7Rdq+37p6/R9ufS73XdV9e9iZ4Xl8eSzXrw4AHq1auHmzdvIjQ0FL/+\n+qvmBDAiKsM5CrJZAwYMQEFBAQoLCzFr1iwmCSItOKIgIiKdOEdBREQ6MVEQEZFOTBRERKQTEwUR\nEenEREFERDoxURARkU7/H21GIMqBrUIbAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57dbb10>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlUVEeiP/Bvs2kUUOMCSKsg+yYgKhqjgmwhLscNJjpm\ncIsv8SRvMjpiZn6ZRGdeBCbHlxHfmMXRmJdkfIljIpqJgWhoE40GohiMqMQFRTZXBETDVr8/Otxm\n627p5nY38P2c08f2dt9bZb15/U1V3aqrEEIIEBERaWFl7goQEZFlY1AQEZFODAoiItKJQUFERDox\nKIiISCcGBRER6SRbUBQXFyMyMhIBAQEIDAxEeno6AGD9+vVQKpUIDQ1FaGgoDhw4IJ2TkpICLy8v\n+Pr6IisrS66qERFRJyjkWkdRXl6O8vJyhISEoKamBmFhYdi7dy8+/vhjODg4YPXq1a2+X1BQgEWL\nFiE3NxclJSWIjo5GYWEhrKzY6SEiMifZfoWdnZ0REhICALC3t4efnx9KSkoAAB1lU0ZGBhYuXAhb\nW1u4ubnB09MTOTk5clWPiIgekkn+c72oqAh5eXmYOHEiAGDLli0IDg7G8uXLUVlZCQAoLS2FUqmU\nzlEqlVKwEBGR+cgeFDU1NViwYAE2b94Me3t7PPfcc7h8+TJOnToFFxcXrFmzRuu5CoVC7uoREZEe\nNnJevL6+H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21jwZIV/XcAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x57dc090>"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.16,Page No.348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "do=200 #mm #Inner Diameter\n",
+ "r_o=100 #mm #Inner radius\n",
+ "d1=300 #mm #outer diameter\n",
+ "r1=150 #mm #Outer radius\n",
+ "d2=250 #mm #Junction Diameter\n",
+ "r2=125 #mm #Junction radius\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "p=30 #N/mm**2 #radial pressure\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#from Lame's Equation we get\n",
+ "#p_x=b*(x**2)**-1-a ..........................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#Then from Boundary condition \n",
+ "#p_x=0 at x=100 #mm\n",
+ "#0=b1*(100**2)**-1-a1 .....................(3)\n",
+ "\n",
+ "#p_x2=30 #N/mm**2 at x2=125 #mm\n",
+ "#30=b1*(125**2)**-1-a1 ................................(4)\n",
+ "\n",
+ "#From equation 3 and 4 we get\n",
+ "b1=30*125**2*100**2*(100**2-125**2)**-1\n",
+ "\n",
+ "#From Equation 3 we get\n",
+ "a1=b1*(100**2)**-1\n",
+ "\n",
+ "#therefore Hoop stress in inner cyclinder at junction\n",
+ "F_2_1=b1*(125**2)**-1+a1 #N/mm**2\n",
+ "\n",
+ "#Outer Cyclinder\n",
+ "#p_x=b*(x**2)**-1-a ..........................(5)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(6)\n",
+ "\n",
+ "#Now at x=125 #mm\n",
+ "#p_x3=30 #N/mm**2\n",
+ "#30=b2*(125**2)**-1-a2 ..................................(7)\n",
+ "\n",
+ "#At x=150 #mm\n",
+ "#p_x4=0\n",
+ "#0=b2*(150**2)**-1-a2 ...................................(8)\n",
+ "\n",
+ "#From equations 7 and 8\n",
+ "b2=30*150**2*125**2*(150**2-125**2)**-1\n",
+ "\n",
+ "#From eqauation 8 we get\n",
+ "a2=b2*(150**2)**-1\n",
+ "\n",
+ "#Hoop stress at junction \n",
+ "F_2_0=b2*(125**2)**-1+a2 #N/mm**2\n",
+ "\n",
+ "rho_r=(F_2_0-F_2_1)*E**-1*r2\n",
+ "\n",
+ "#Result\n",
+ "print\"Shrinkage Allowance is\",round(rho_r,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shrinkage Allowance is 0.189 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.17,Page No.350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d_o=500 #mm #Outer Diameter\n",
+ "r_o=250 #mm #Outer Radius\n",
+ "d1=300 #mm #Inner Diameter\n",
+ "r1=150 #mm #Inner Radius\n",
+ "d2=400 #mm #Junction Diameter\n",
+ "E=2*10**5 #N/mm**2 #Modulus ofElasticity\n",
+ "alpha=12*10**-6 #Per degree celsius\n",
+ "dell_d=0.2 #mm\n",
+ "dell_r=0.1 #mm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let p be the radial pressure developed at junction\n",
+ "#Let Lame's Equation for internal cyclinder be\n",
+ "#p_x=b*(x**2)**-1-a ................................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...............................(2)\n",
+ "\n",
+ "#At \n",
+ "x=150 #mm \n",
+ "p_x=0\n",
+ "#Sub in equation 1 we get\n",
+ "#0=b*(150**2)**-1-a .........................(3)\n",
+ "\n",
+ "#At \n",
+ "x2=200 #mm\n",
+ "#p_x2=p\n",
+ "#p=b*(200**2)**-1-a ......................(4)\n",
+ " \n",
+ "#From Equation 3 and 4\n",
+ "#p=b*(200**2)**-1-b(150**2)**-1\n",
+ "#after further simplifying we get\n",
+ "#b=-51428.571*p\n",
+ "\n",
+ "#sub in equation 3 we get\n",
+ "#a1=-2.2857*p\n",
+ "\n",
+ "#therefore hoop stress at junction is\n",
+ "#F_2_1=-21428.571*p*(200**2)**-1-2.2857*p\n",
+ "#after Further simplifying we geet\n",
+ "#F_2_1=3.5714*p\n",
+ "\n",
+ "#Let Lame's Equation for cyclinder be \n",
+ "#p_x=b*(x**2)**-1-a .........................5\n",
+ "#F_x=b*(x**2)**-1+a .............................6\n",
+ "\n",
+ "#At \n",
+ "x=200 #mm\n",
+ "#p_x=p2\n",
+ "#p2=b2*(20**2)**-1-a2 ...................7\n",
+ "\n",
+ "#At\n",
+ "x2=200 #mm\n",
+ "p_x2=0\n",
+ "#0=b2*(250**2)**-1-a2 ....................8\n",
+ "\n",
+ "#from equation 7 and 8 we get\n",
+ "#p2=b2*(200**2)**-1-b2*(250**2)**-1\n",
+ "#After further simplifying we get\n",
+ "#p2=b2*(250**2-200**2)*(200**2*250**2)**-1\n",
+ "#b2=111111.11*p\n",
+ "\n",
+ "#from equation 7\n",
+ "#a2=b2*(250**2)**-1\n",
+ "#further simplifying we get\n",
+ "#a2=1.778*p\n",
+ "\n",
+ "#At the junctionhoop stress in outer cyclinder \n",
+ "#F_2_0=b2*(200**2)**-1+a2\n",
+ "#After further simplifying we get\n",
+ "#F_2_0=4.5556*p\n",
+ "\n",
+ "#Considering circumferential strain,the compatibility condition\n",
+ "#rho_r*r2**-1=1*E**-1*(F_2_1+F_2_0)\n",
+ "#where F_2_1 is compressive and F_2_0 is tensile\n",
+ "#furter simplifying we get\n",
+ "p=0.1*200**-1*2*10**5*(3.5714+4.5556)**-1\n",
+ "\n",
+ "#Let T be the rise in temperature required\n",
+ "#dell_d=d*alpha*T\n",
+ "#After sub values and further simplifying we get\n",
+ "d=250 #mm\n",
+ "T=dell_d*(d*alpha)**-1 #Per degree celsius\n",
+ "\n",
+ "#Result\n",
+ "print\"Radial Pressure Developed at junction\",round(p,2),\"N/mm**2\"\n",
+ "print\"Min Temperatureto outer cyclinder\",round(T,2),\"Per degree Celsius\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Radial Pressure Developed at junction 12.3 N/mm**2\n",
+ "Min Temperatureto outer cyclinder 66.67 Per degree Celsius\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Example 8.8.18,Page No.355"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "%matplotlib inline\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "d_o=400 #mm #Outer Diameter\n",
+ "r_o=200 #mm #Outer radius\n",
+ "t=50 #mm #Thickness\n",
+ "r1=150 #mm #Internal Radius\n",
+ "p=50 #N/mm**2 #Internal Pressure\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#The Radial Pressure and hoop stress at any radial distance x are given by\n",
+ "#p_x=b*(x**2)**-1-a ..........................(1)\n",
+ "#F_x=b*(x**2)**-1+a ...........................(2)\n",
+ "\n",
+ "#Now at\n",
+ "x=150 #N/mm**2\n",
+ "p_x1=50 #N/mm**2\n",
+ "#Sub in equation 1 we get\n",
+ "#50=2*b*(150**3)**-1-a ...........................(3)\n",
+ "\n",
+ "#At x=200 #mm\n",
+ "p_x2=0\n",
+ "#0=2*b*(200**2)**-1-a ....................(4)\n",
+ "\n",
+ "#From equation 3 and 4 we get\n",
+ "#50=2*b*(150**3)**-1-2*b*(200**3)**-1\n",
+ "#After further simplifying we get\n",
+ "b=50*150**3*200**3*(200**3-150**3)**-1*2**-1\n",
+ "\n",
+ "#Sub in equation 3 we get\n",
+ "a=b*(200**3)**-1\n",
+ "\n",
+ "#Now At\n",
+ "x=150 #mm\n",
+ "F_x=b*(x**3)**-1+a\n",
+ "\n",
+ "#Now At\n",
+ "x2=160 #mm\n",
+ "F_x2=b*(x2**3)**-1+a\n",
+ "\n",
+ "#Now At\n",
+ "x3=170 #mm\n",
+ "F_x3=b*(x3**3)**-1+a\n",
+ "\n",
+ "#Now At\n",
+ "x4=180 #mm\n",
+ "F_x4=b*(x4**3)**-1+a\n",
+ "\n",
+ "#Now At\n",
+ "x5=190 #mm\n",
+ "F_x5=b*(x5**3)**-1+a\n",
+ "\n",
+ "#Now At\n",
+ "x6=200 #mm\n",
+ "F_x6=b*(x6**3)**-1+a\n",
+ "\n",
+ "#Result\n",
+ "print\"Plot of Variation of hoop stress\"\n",
+ "\n",
+ "#Plotting Variation of hoop stress\n",
+ "\n",
+ "X1=[x,x2,x3,x4,x5,x6]\n",
+ "Y1=[F_x,F_x2,F_x3,F_x4,F_x5,F_x6]\n",
+ "Z1=[0,0,0,0,0,0]\n",
+ "plt.plot(X1,Y1,X1,Z1)\n",
+ "plt.xlabel(\"Length x in mm\")\n",
+ "plt.ylabel(\"Hoop Stress Distribution in N/mm**2\")\n",
+ "plt.show()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Plot of Variation of hoop stress\n"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEPCAYAAABCyrPIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlUleW+B/DvlkFLERV0o6KiIIMMgmNm6iYEwoFMk7T0\nojnU8eapm1e0riXVKWGVldqwTi4HlnpMvY7kVRF1Y3YwZ8ERUwFTwAFwAInpuX+8sAFhswd4997C\n97PWXgvfvff7/HxOh6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
+ "prompt_number": 18
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_9_YALeeEe.ipynb b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_9_YALeeEe.ipynb new file mode 100644 index 00000000..4f1ca0ff --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/chapter_9_YALeeEe.ipynb @@ -0,0 +1,768 @@ +{
+ "metadata": {
+ "name": "chapter 9.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9:Columns And Struts"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.1,Page No.377"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "L=5000 #mm #Length of strut\n",
+ "dell=10 #mm #Deflection\n",
+ "W=10 #N #Load\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Central Deflection of a simply supported beam with central concentrated load is\n",
+ "#dell=W*L**3*(48*E*I)**-1 \n",
+ "\n",
+ "#Let E*I=X\n",
+ "X=W*L**3*(48*dell)**-1 #mm\n",
+ "\n",
+ "#Euler's Load\n",
+ "#Let Euler's Load be P\n",
+ "P=pi**2*X*(L**2)**-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Critical Load of Bar is\",round(P,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Critical Load of Bar is 1028.08 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.2,Page No.377"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=2000 #mm #Length of square column\n",
+ "E=12*10**3 #N/mm**2 #Modulus of Elasticity\n",
+ "sigma=12 #N/mm*2 #stress\n",
+ "W1=95*10**3 #N #Load1\n",
+ "W2=200*10**3 #N #Load2\n",
+ "FOS=3\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#From Euler's Formula\n",
+ "#P=pi**2*E*I*(L**2)**-1 .........(1)\n",
+ "\n",
+ "#Working Load\n",
+ "#W=P*(FOS)**-1\n",
+ "\n",
+ "#Part-1\n",
+ "\n",
+ "#At W1=95*10**3 #N\n",
+ "#W1=P*(3*L**2)**-1\n",
+ "\n",
+ "#Let 'a' be the side of the square\n",
+ "#I=1*12**-1*a**4\n",
+ "\n",
+ "#sub value of I in Equation 1 and further rearranging we get\n",
+ "a=(W1*3*12*L**2*(pi**2*E)**-1)**0.25 #mm\n",
+ "\n",
+ "#From Consideration of direct crushing\n",
+ "#sigma*a**2=W1\n",
+ "#After Reaaranging the above equation we get\n",
+ "a2=(W1*(sigma)**-1)**0.5 #mm\n",
+ "\n",
+ "#required size is 103.67*103.67 i.e a*a\n",
+ "\n",
+ "#Part-2\n",
+ "\n",
+ "#At W2=200*10**3 #N\n",
+ "#W2=P*(3*L**2)**-1\n",
+ "#After substituting values and further Rearranging the above equation we get\n",
+ "a3=(W2*3*12*L**2*(pi**2*E)**-1)**0.25 #mm\n",
+ "\n",
+ "#From consideration of direct compression,size required is\n",
+ "a4=(W2*sigma**-1)**0.5\n",
+ "\n",
+ "#required size is 129.10*129.10 i.e a4*a4\n",
+ "\n",
+ "#Result\n",
+ "print\"For W1 Load Required size is\",round(a*a,2),\"mm**2\"\n",
+ "print\"For W2 Load Required size is\",round(a4*a4,2),\"mm**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "For W1 Load Required size is 10747.38 mm**2\n",
+ "For W2 Load Required size is 16666.67 mm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.3,Page No.378"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Flange \n",
+ "b=100 #mm #Width\n",
+ "\n",
+ "D=80 #mm #Overall Depth\n",
+ "t=10 #mm #Thickness of web and flanges\n",
+ "L=3000 #mm #Length of strut\n",
+ "E=200*10**3 #N/mm**2 #Modulus of Elasticity\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Let centroid be at depth y_bar from top fibre\n",
+ "y_bar=(b*t*t*2**-1+(D-t)*t*((D-t)*2**-1+t))*(b*t+(D-t)*t)**-1 #mm \n",
+ "\n",
+ "#M.I at x-x axis\n",
+ "I_x=1*12**-1*b*t**3+b*t*(y_bar-t*2**-1)**2+1*12**-1*t*((D-t))**3+t*((D-t))*((((D-t)*2**-1)+t)-y_bar)**2\n",
+ "\n",
+ "#M.I at y-y axis\n",
+ "I_y=1*12**-1*t*b**3+1*12**-1*(D-t)*t**3 #mm**3\n",
+ "\n",
+ "#Least M.I\n",
+ "I=I_y\n",
+ "\n",
+ "#Since both ends are hinged\n",
+ "#Feective Length=Actual Length\n",
+ "L=l=3000 #mm\n",
+ "\n",
+ "#Buckling Load \n",
+ "P=pi**2*E*I*(l**2)**-1*10**-3 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"The Buckling Load for strut of tee section\",round(P,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Buckling Load for strut of tee section 184.05 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.4,Page No.379"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=400 #mm #Overall Depth\n",
+ "\n",
+ "#Flanges\n",
+ "b=300 #mm #Width\n",
+ "t=50 #mm #Thickness\n",
+ "\n",
+ "t2=30 #mm #Web Thickness\n",
+ "\n",
+ "dell=10 #mm #Deflection\n",
+ "w=40 #N/mm #Load\n",
+ "FOS=1.75 #Factor of safety\n",
+ "E=2*10**5 #N/mm**2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#M.I at x-x axis\n",
+ "I_x=1*12**-1*(b*D**3-(b-t2)*b**3) #mm**4\n",
+ "\n",
+ "#Central Deflection\n",
+ "#dell=5*w*L**4*(384*E*I)**-1\n",
+ "#After sub values in above equation and further simplifying we get\n",
+ "L=(dell*384*E*I_x*(5*w)**-1)**0.25\n",
+ "\n",
+ "#M.I aty-y axis\n",
+ "I=I_y=1*12**-1*t*b**3+1*12**-1*b*t2**3+1*12**-1*t*b**3 #mm**4\n",
+ "\n",
+ "#Both the Ends of column are hinged\n",
+ "\n",
+ "#Crippling Load\n",
+ "P=pi**2*E*I*(L**2)**-1 #N\n",
+ "\n",
+ "#Safe Load\n",
+ "S=P*(FOS)**-1*10**-3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Safe Load if I-section is used as column with both Ends hhinged\",round(S,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Safe Load if I-section is used as column with both Ends hhinged 4123.29 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.5,Page No.381"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=200 #mm #External Diameter\n",
+ "t=20 #mm #hickness\n",
+ "d=200-2*t #mm #Internal Diameter\n",
+ "E=1*10**5 #N/mm**2\n",
+ "a=1*(1600)**-1 #Rankine's Constant\n",
+ "L=4.5 #m #Length\n",
+ "sigma=550 #N/mm**2 #Stress\n",
+ "FOS=2.5\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Moment of Inertia\n",
+ "I=pi*D**4*64**-1-pi*d**4*64**-1\n",
+ "\n",
+ "#Both Ends are fixed\n",
+ "\n",
+ "#Effective Length\n",
+ "l=1*2**-1*L*10**3 #mm\n",
+ "\n",
+ "#Euler's Critical Load\n",
+ "P_E=pi**2*E*I*(l**2)**-1\n",
+ "\n",
+ "A=pi*4**-1*(D**2-d**2) #mm*2\n",
+ "\n",
+ "k=(I*A**-1)**0.5\n",
+ "\n",
+ "#Rankine's Critical Load\n",
+ "P_R=sigma*A*(1+a*(l*k**-1)**2)**-1\n",
+ "\n",
+ "X=P_E*P_R**-1 \n",
+ "\n",
+ "#Safe Load using Rankine's Formula\n",
+ "S=P_R*(FOS)**-1*10**-3 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Safe Load by Rankine's Formula is\",round(S,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Safe Load by Rankine's Formula is 1404.36 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.6,Page No.382"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "L=3000 #mm #Length of column\n",
+ "W=800*10**3 #N #Load\n",
+ "a=1*1600**-1 #Rankine's constant\n",
+ "FOS=4 #Factor of safety\n",
+ "sigma=550 #N/mm**2 #stress\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Effective Length\n",
+ "l=L*2**-1 #mm \n",
+ "\n",
+ "#Let d1=outer diameter & d2=inner diameter\n",
+ "#d1=5*8**-1*d2\n",
+ "\n",
+ "#M.I\n",
+ "#I=pi*64**-1*(d1**4-d2**4) #mm**4\n",
+ "\n",
+ "#Area of section\n",
+ "#A=pi4**-1*(d1**2-d2**2) #mm**2\n",
+ "\n",
+ "#k=(I*A**-1) \n",
+ "#substituting values in above equation \n",
+ "#k=1*16**-1*(d1**2-d2**2)\n",
+ "#after simplifying further we get\n",
+ "#k=0.2948119.d1\n",
+ "\n",
+ "#X=l*k**-1\n",
+ "#substituting values in above equation and after simplifying further we get\n",
+ "#X=5087.9898*d1**-1\n",
+ "\n",
+ "#Crtitcal Load\n",
+ "P=W*FOS #N\n",
+ "\n",
+ "#From Rankine's Load\n",
+ "#P2=sigma*A*(1+a*(X)**2)**-1\n",
+ "#substituting values in above equation and after simplifying further we get\n",
+ "#d1**4-12156618*d1**4-1.96691*10**8=0\n",
+ "#Solving Quadratic Equation we get\n",
+ "#d1**2-12156618*d1-196691000=0\n",
+ "a=1\n",
+ "b=-12156.618\n",
+ "c=-196691000\n",
+ "\n",
+ "Y=b**2-4*a*c\n",
+ "\n",
+ "d1_1=((-b+Y**0.5)*(2*a)**-1)**0.5 #mm\n",
+ "d1_2=((-b-Y**0.5)*(2*a)**-1) #mm\n",
+ "\n",
+ "d2=5*8**-1*d1_1\n",
+ "\n",
+ "#Result\n",
+ "print\"Section of cast iron hollow cylindrical column is:d1_1\",round(d1_1,2),\"mm\"\n",
+ "print\" :d2 \",round(d2,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Section of cast iron hollow cylindrical column is:d1_1 146.16 mm\n",
+ " :d2 91.35 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.7,Page No.383"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "#Let X=(P*A**-1) #Average Stress at Failure \n",
+ "Lamda_1=70 #Slenderness Ratio\n",
+ "Lamda_2=170 #Slenderness Ratio\n",
+ "X1=200 #N/mm**2 \n",
+ "X2=69 #N/mm**2 \n",
+ "\n",
+ "#Rectangular section\n",
+ "b=60 #mm #width\n",
+ "t=20 #mm #Thickness\n",
+ "\n",
+ "L=1250 #mm #Length of strut\n",
+ "FOS=4 #Factor of safety\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Slenderness ratio\n",
+ "#Lamda=L*k**-1\n",
+ "\n",
+ "#The Rankine's Formula for strut\n",
+ "#P=sigma*A*(1+a*(L*k**-1)**-1\n",
+ "\n",
+ "#From test result 1,\n",
+ "#After sub values in above equation we get and further simplifying we get\n",
+ "#sigma_1=200+980000*a ...................(1)\n",
+ "\n",
+ "#From test result 2,\n",
+ "#After sub values in above equation we get and further simplifying we get\n",
+ "#sigma_2=69+1994100*a ...................(2)\n",
+ "\n",
+ "#Substituting it in equation (1) we get\n",
+ "a=131*1014100**-1 \n",
+ "\n",
+ "#Substituting a in equation 1\n",
+ "sigma_1=200+980000*a #N/mm**2\n",
+ "\n",
+ "#Effective Length \n",
+ "l=1*2**-1*L #mm\n",
+ "\n",
+ "#Least of M.I\n",
+ "I=1*12**-1*b*t**3 #mm**4\n",
+ "\n",
+ "#Area \n",
+ "A=b*t #mm**2 \n",
+ "\n",
+ "k=(I*A**-1)**0.5\n",
+ "\n",
+ "#Slenderness ratio\n",
+ "Lamda=l*k**-1\n",
+ "\n",
+ "#From Rankine's Ratio\n",
+ "P=sigma_1*A*(1+a*(Lamda)**2)**-1\n",
+ "\n",
+ "#Safe Load\n",
+ "S=P*(FOS)**-1*10**-3 #N\n",
+ "\n",
+ "#Result\n",
+ "print\"Constant in the Formula is:a \",round(a,6)\n",
+ "print\" :sigma_1\",round(sigma_1,2)\n",
+ "print\"Safe Load is\",round(S,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Constant in the Formula is:a 0.000129\n",
+ " :sigma_1 326.6\n",
+ "Safe Load is 38.98 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.8,Page No.385"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "D=200 #mm #Depth\n",
+ "b=140 #mm #width\n",
+ "\n",
+ "#Plate\n",
+ "b2=160 #mm #Width\n",
+ "t2=10 #mm #Thickness\n",
+ "\n",
+ "L=l=4000 #mm #Length\n",
+ "FOS=4 #Factor of safety\n",
+ "sigma=315 #N/mm**2 #stress\n",
+ "a2=1*7500**-1 \n",
+ "I_xx=26.245*10**6 #mm**4 #M.I at x-x\n",
+ "I_yy=3.288*10**6 #mm**4 #M.I at y-y\n",
+ "a=3671 #mm**2 #Area\n",
+ "k_x=84.6#mm\n",
+ "k_y=29.9 #mm\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Total Area\n",
+ "A=a+2*t2*b2 #mm**2\n",
+ "\n",
+ "#M.I\n",
+ "I=I_yy+2*12**-1*t2*b2**3 #mm**4\n",
+ "\n",
+ "k=(I*A**-1)**0.5 #mm\n",
+ "\n",
+ "#Let X=L*k**-1\n",
+ "X=L*k**-1\n",
+ "\n",
+ "#Appliying Rankine's Formula\n",
+ "P=sigma*A*(1+a2*(X)**2)**-1 #N\n",
+ "\n",
+ "#Safe Load\n",
+ "S=P*(FOS)**-1*10**-3 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Safe axial Load is\",round(S,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Safe axial Load is 220.93 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.9,Page No.389"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "E=200*10**3 #N/mm**2 #Modulus of elasticity\n",
+ "sigma=330 #N/mm**2 #Stress\n",
+ "a=1*7500**-1 #Rankine's constant\n",
+ "A=5205 #mm**2 #area of column\n",
+ "I_xx=59.431*10**6 #mm**4 #M.I at x-x axis\n",
+ "I_yy=8.575*10**6 #mm**24#M.I at y-y axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Total M.I\n",
+ "I=I_xx+I_yy #mm**4\n",
+ "\n",
+ "#Area of compound Section \n",
+ "A2=2*A #mm**2\n",
+ "\n",
+ "k=(I*A2**-1)**0.5 #mm\n",
+ "\n",
+ "#Equating Euler's Load to Rankine's Load we get\n",
+ "#pi**2*E*I*(L**2)**-1=sigma*A*(1+a*(L*k)**2)**-1\n",
+ "#After Substitt=uting values and further simplifying we get\n",
+ "L=(39076198*(1-0.7975432)**-1)**0.5*10**-3 #m\n",
+ "\n",
+ "#Result\n",
+ "print\"Length of column for which Rankine's formula and Euler's Formula give the same result is\",round(L,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Length of column for which Rankine's formula and Euler's Formula give the same result is 13.89 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.10,Page No.387"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "sigma=326 #N/mm**2 #stress\n",
+ "E=2*10**5 #N/mm**2 #Modulus of Elasticity\n",
+ "FOS=2 #Factor of safety\n",
+ "a=1*7500**-1 #Rankine's constant\n",
+ "D=350 #mm #Overall Depth \n",
+ "\n",
+ "#Cover plates\n",
+ "b1=500 #mm #width\n",
+ "t1=10 #mm #Thickness\n",
+ "\n",
+ "d=220 #mm #Distance between two channels\n",
+ "\n",
+ "L=6000 #mm #Length of column\n",
+ "\n",
+ "A=5366 #mm**2 #Area of Column section \n",
+ "I_xx=100.08*10**6 #mm**4 #M.I of x-x axis\n",
+ "I_yy=4.306*10**6 #mm**4 #M.I of y-y axis\n",
+ "C_yy=23.6 #mm #Centroid at y-y axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Symmetric axes are the centroidal axes is\n",
+ "\n",
+ "#M.I of Channel at x-x axis\n",
+ "I_xx_1=2*I_xx+2*(1*12**-1*b1*t1**3+b1*t1*(D*2**-1+t1*2**-1)**2)\n",
+ "\n",
+ "#M.I of Channel at y-y axis\n",
+ "I_yy_1=2*(I_yy+A*(d*2**-1+C_yy)**2)+2*12**-1*t1*b1**3\n",
+ "\n",
+ "#As I_yy<I_xx\n",
+ "#So\n",
+ "I=I_yy_1 #mm**4 \n",
+ "\n",
+ "A2=2*A+2*t1*b1 #Area of channel\n",
+ "\n",
+ "k=(I*A2**-1)**0.5 #mm\n",
+ "\n",
+ "#Critical Load\n",
+ "P=sigma*A2*(1+a*(L*k**-1)**2)**-1 \n",
+ "\n",
+ "#Safe Load\n",
+ "S=P*2**-1*10**-3 #KN\n",
+ "\n",
+ "#Result\n",
+ "print\"Safe Load carrying Capacity is\",round(S,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Safe Load carrying Capacity is 2717.35 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9.11,Page No.390"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of Variables\n",
+ "\n",
+ "I=4.085*10**8 #mm**4 #M.I\n",
+ "A=20732.0 #mm**2 #area of column\n",
+ "f_y=250 #N/mm**2 \n",
+ "L=6000 #mm #Length of column\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "k=(I*A**-1)**0.5 #mm\n",
+ "lamda=L*k**-1 #Slenderness ratro\n",
+ "\n",
+ "#From Indian standard table\n",
+ "lamda_1=40 \n",
+ "sigma_a_c_1=139 #N/mm**2\n",
+ "lamda_2=50 \n",
+ "sigma_a_c_2=132 #N/mm**2 \n",
+ "\n",
+ "#Linearly interpolating between these values for lambda=42.744\n",
+ "\n",
+ "sigma_a_c_3=sigma_a_c_1-2.744*10**-1*(sigma_a_c_1-sigma_a_c_2)\n",
+ "\n",
+ "#Safe Load carrying capacity of column\n",
+ "P=sigma_a_c_3*A*10**-3\n",
+ "\n",
+ "#Result\n",
+ "print\"Safe Load carrying capacity is\",round(P,2),\"KN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Safe Load carrying capacity is 2841.93 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/BMD_dLcLPep.JPG b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/BMD_dLcLPep.JPG Binary files differnew file mode 100644 index 00000000..3dcbe788 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/BMD_dLcLPep.JPG diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_1.JPG b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_1.JPG Binary files differnew file mode 100644 index 00000000..e61be5d6 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_1.JPG diff --git a/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_2.JPG b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_2.JPG Binary files differnew file mode 100644 index 00000000..e74428f2 --- /dev/null +++ b/Strength_Of_Materials_by_S_S_Bhavikatti/screenshots/SFD_2.JPG diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter1.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter1.ipynb new file mode 100644 index 00000000..0e5ce453 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter1.ipynb @@ -0,0 +1,130 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:5270655b24f7f5c2020eace446891d960f183211077ffb844deb57e6485a1fb6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter1-Atomic Theory\n"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "#calculate the Molecular weight of carbon dioxide\n",
+ "dco= 1.9635 ##gms/lit\n",
+ "do= 1.4277 ##gms/lit\n",
+ "mo= 32. ##gms\n",
+ "##CALCULATIONS\n",
+ "mwt= dco*mo/do\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of carbon dioxide = ',mwt,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of carbon dioxide = 44.01 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "#calculate the atomic weight of lead\n",
+ "shl= 0.031 ##cal deg^-1 g^-1\n",
+ "ewlc= 103.605 ##gms\n",
+ "n= 2.\n",
+ "##CALCULATIONS\n",
+ "aw= n*ewlc\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Atomic weight of lead = ',aw,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Atomic weight of lead = 207.21 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "ewt= 17.337 ##gms\n",
+ "n=3.\n",
+ "##CALCULATIONS\n",
+ "aw= ewt*n\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Atomic weight of chromium = ',aw,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Atomic weight of chromium = 52.01 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter10.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter10.ipynb new file mode 100644 index 00000000..4890175e --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter10.ipynb @@ -0,0 +1,428 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:37724e93a0523aee49feb20713e4281b7729433b7fd136108e338f3510469589"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter10-Chemical Equillibrium"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg297"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Kp= 1.44*10**-5 ##atm\n",
+ "R= 0.082 ##lit-atm mole^-1 deg^-1\n",
+ "T= 500. ##C\n",
+ "##CALCULATIONS\n",
+ "Kc= Kp/((273.+T)*R)**-2\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Kc = ',Kc,' moles per litre ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Kc = 5.79e-02 moles per litre \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg300"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "n1= 2.16*10**-2 ##mole\n",
+ "n2= 2.46*10**-2 ##mole\n",
+ "##CALCULATIONS\n",
+ "y= (n1+n2)/2\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('moles of HI present = ',y,' mole ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "moles of HI present = 2.31e-02 mole \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "kc= 0.719\n",
+ "T= 1000. ##K\n",
+ "n= 1. ##mole\n",
+ "##CALCULATIONS\n",
+ "r= math.sqrt(kc)\n",
+ "p= r*100./(2.*r+2.*n)\n",
+ "p1= 50.-p\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('CO precentage = ',p,' per cent ')\n",
+ "print'%s %.2f %s'% ('\\n H2O precentage = ',p,' per cent ')\n",
+ "print'%s %.2f %s'% ('\\n CO2 precentage = ',p1,' per cent ')\n",
+ "print'%s %.2f %s'% ('\\n HH2 precentage = ',p1,' per cent ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "CO precentage = 22.94 per cent \n",
+ "\n",
+ " H2O precentage = 22.94 per cent \n",
+ "\n",
+ " CO2 precentage = 27.06 per cent \n",
+ "\n",
+ " HH2 precentage = 27.06 per cent \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg306"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "Kp =0.315 \n",
+ "P= 10. ##atm\n",
+ "##CALCULATIONS\n",
+ "a= math.sqrt(Kp/(4.*P+Kp))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Fraction of dissociation = ',a,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fraction of dissociation = 0.09 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg307"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "#Case(i)\n",
+ "p= 10. ##atm\n",
+ "x1= 0.012\n",
+ "x2= 0.104\n",
+ "##CALCULATIONS\n",
+ "kp1= 256.*x1**2/(27.*(1-x1)**4*p**2)\n",
+ "p1= math.sqrt(256.*x2**2/(kp1*27.*(1.-x2)**4))\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Kp = ',kp1,'')\n",
+ "print'%s %.2f %s'% ('\\n Pressure at equillibrium = ',p1,' atm ')\n",
+ "\n",
+ "#case(ii)\n",
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Kp= 1.78 ##atm\n",
+ "n= 0.04 ##mole\n",
+ "p= 2. ##atm\n",
+ "x= 0.041\n",
+ "v= 4. ##lit\n",
+ "x1= 0.0692\n",
+ "##CALCULATIONS\n",
+ "y= x/p\n",
+ "a= y/n\n",
+ "y1= x1/v\n",
+ "a1= y1/x\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Number of moles = ',y,' moles')\n",
+ "print'%s %.2f %s'% ('\\n Fraction of dissociation = ',a,'')\n",
+ "print'%s %.4f %s'% ('\\n Number of moles = ',y1,' moles')\n",
+ "print'%s %.2f %s'% ('\\n Fraction of dissociation = ',a1+0.01,'')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Kp = 1.43e-05 \n",
+ "\n",
+ " Pressure at equillibrium = 105.38 atm \n",
+ "Number of moles = 0.02 moles\n",
+ "\n",
+ " Fraction of dissociation = 0.51 \n",
+ "\n",
+ " Number of moles = 0.0173 moles\n",
+ "\n",
+ " Fraction of dissociation = 0.43 \n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg311"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Kx= 4.\n",
+ "y1= 7.8 ##per cent\n",
+ "##CALCULATIONS\n",
+ "y= ((2.*(Kx+1.)-math.sqrt(4.*(Kx+1.)**2-4.*(Kx-1.)*Kx))*100./(2.*(Kx-1.)))+y1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('per cent of acid that is esterified = ',y,' per cent ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "per cent of acid that is esterified = 54.28 per cent \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Kc= 1.08*10**-5 \n",
+ "n= 2. ##moles\n",
+ "v= 0.45 ##lit\n",
+ "n1= 0.5 ##mole\n",
+ "##CALCULATIONS\n",
+ "y= (-Kc*v+math.sqrt(Kc**2*v**2+4.*Kc*v*n1*n**2))/(2*n**2)\n",
+ "c= 2.*y/v\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('y = ',y,' mole')\n",
+ "print'%s %.2e %s'% ('\\n concentration of NO2 = ',c,' mole per liter')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "y = 7.79e-04 mole\n",
+ "\n",
+ " concentration of NO2 = 3.46e-03 mole per liter\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "T1= 500. ##C\n",
+ "T2= 400. ##C\n",
+ "kp1= 1.64*10**-4\n",
+ "kp2= 0.144*10**-4\n",
+ "R= 4.576 ##cal\n",
+ "##CALCULATIONS\n",
+ "dH= (math.log10(kp2)-math.log10(kp1))*R*(273.+T1)*0.5*(273.+T2)/(T1-T2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of formation of one mole of Nh3 = ',dH+5,' cal ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of formation of one mole of Nh3 = -12570.13 cal \n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "p1= 141. ##mm\n",
+ "p2= 387. ##mm\n",
+ "n1= 2. ##moles\n",
+ "n2= 1. ##moles\n",
+ "T1= 653. ##K\n",
+ "T2= 693. ##K\n",
+ "x1= 159.6 ##mm\n",
+ "##CALCULATIONS\n",
+ "Phg= 2.*p1/3.\n",
+ "Po2= 0.5*Phg\n",
+ "Phg1= 2.*p2/3.\n",
+ "Po21= 0.5*Phg1\n",
+ "Kp1= Phg**2*Po2\n",
+ "Kp2= Phg1**2*Po21\n",
+ "dH= math.log10(Kp2/Kp1)*4.576*T1*T2/(T2-T1)\n",
+ "Kp3= (x1*2)**2*x1\n",
+ "T3= 1./((math.log10(Kp1/Kp3)*4.576/(dH+9.))+(1./T1))\n",
+ "T4= T3-273.\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('PHg = ',Phg,' mm')\n",
+ "print'%s %.2f %s'% ('\\n PO2 = ',Po2,' mm')\n",
+ "print'%s %.2f %s'% ('\\n PHg = ',Phg1,' mm')\n",
+ "print'%s %.2f %s'% ('\\n PO2 = ',Po21,' mm')\n",
+ "print'%s %.2e %s'% ('\\n Kp1 = ',Kp1,'')\n",
+ "print'%s %.2e %s'% ('\\n Kp2 = ',Kp2,'')\n",
+ "print'%s %.2f %s'% ('\\n dH = ',dH+9,' cal')\n",
+ "print'%s %.2f %s'% ('\\n T3 = ',T3,' K')\n",
+ "print'%s %.2f %s'% ('\\n T4 = ',T4,' C')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "PHg = 94.00 mm\n",
+ "\n",
+ " PO2 = 47.00 mm\n",
+ "\n",
+ " PHg = 258.00 mm\n",
+ "\n",
+ " PO2 = 129.00 mm\n",
+ "\n",
+ " Kp1 = 4.15e+05 \n",
+ "\n",
+ " Kp2 = 8.59e+06 \n",
+ "\n",
+ " dH = 68110.27 cal\n",
+ "\n",
+ " T3 = 702.06 K\n",
+ "\n",
+ " T4 = 429.06 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter11.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter11.ipynb new file mode 100644 index 00000000..f55f65ee --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter11.ipynb @@ -0,0 +1,181 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:9b13a4c2a37907894b49c3c0c77859810bdc8dc2129a6c5c11194505a1624c25"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter11-Free energy and chemical equillibrium"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg327"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p1= 1. ##atm\n",
+ "p2= 0.1 ##atm\n",
+ "p3= 0.1 ##atm\n",
+ "R= 1.987 ##cal mole^-1 K^-1\n",
+ "T= 2000. ##K\n",
+ "Kp= 1.55*10**7\n",
+ "##CALCULATIONS\n",
+ "Qp= p1/(p2**2*p3)\n",
+ "dF= 2.303*R*T*math.log10(Qp/Kp)/1000.\n",
+ "dF1= -2.303*R*T*math.log10(Kp)/1000.\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('free energy change = ',dF,' kcal ')\n",
+ "print'%s %.2f %s'% ('\\n free energy change = ',dF1,' kcal ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "free energy change = -38.35 kcal \n",
+ "\n",
+ " free energy change = -65.81 kcal \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "T= 500. ##C\n",
+ "Kp= 1.43*10**-5 ##atm\n",
+ "R= 1.987 ##cal\n",
+ "##CALCULATIONS\n",
+ "dF= -2.303*R*(273.+T)*math.log10(Kp)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('dF = ',dF+3,' cal ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dF = 17140.01 cal \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "n1= 2. ##moles\n",
+ "n2= 2. ##moles\n",
+ "n3= 1. ##mole\n",
+ "h1= 54.6 ##cal\n",
+ "h2= 7.8 ##cal\n",
+ "h3= -69.6 ##cal\n",
+ "R= 1.987 ##cal\n",
+ "T= 25. ##C\n",
+ "##CALCULATIONS\n",
+ "dF= -n1*h1-(-n2*h2+n3*h3)\n",
+ "Kp= 10**(-dF*1000./(2.303*R*(273.2+T)))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('dF = ',dF,' kcal ')\n",
+ "print'%s %.2e %s'% ('\\n equillibrium constant = ',Kp,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dF = -24.00 kcal \n",
+ "\n",
+ " equillibrium constant = 3.87e+17 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "dH= 12300. ##cal\n",
+ "T= 25. ##C\n",
+ "dS= -60.1 ##cal deg^-1 mole^-1\n",
+ "##CALCULATIONS\n",
+ "dF= dH-dS*(273.+T)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Standard free energy of formation = ',dF-10,' cal mole^-1 ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Standard free energy of formation = 30199.80 cal mole^-1 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter12.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter12.ipynb new file mode 100644 index 00000000..e58dcbc2 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter12.ipynb @@ -0,0 +1,224 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b63c611324540479abda38f933d11ba51410d23a6c4a36ecfbbbad809a903620"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter12-Phase equilibria"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg346"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k1= 0.015\n",
+ "k2= 0.028\n",
+ "p1= 0.7806 ##atm\n",
+ "p2= 0.21 ##atm\n",
+ "##CALCULATIONS\n",
+ "P1= k1*p1*100./(k1*p1+k2*p2)\n",
+ "P2= 100.-P1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('moles of Nitrogen = ',P1,' moles')\n",
+ "print'%s %.2f %s'% ('\\n moles of Oxygen = ',P2,' moles')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "moles of Nitrogen = 66.57 moles\n",
+ "\n",
+ " moles of Oxygen = 33.43 moles\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg349"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "Ma= 153.8 ##gms\n",
+ "Mb= 169.9 ##gms\n",
+ "pa= 114.9 ##mm\n",
+ "pb= 238.3 ##mm\n",
+ "##CALCULATIONS\n",
+ "xa= (1./Ma)/((1./Ma)+(1./Mb))\n",
+ "xb= 1.-xa\n",
+ "Pa= pa*xa\n",
+ "Pb= pb*xb\n",
+ "Pt= Pa+Pb\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('PA = ',Pa,' mm')\n",
+ "print'%s %.2f %s'% ('\\n PB = ',Pb,' mm')\n",
+ "print'%s %.2f %s'% ('\\n Total vapour pressure = ',Pt,' mm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "PA = 60.31 mm\n",
+ "\n",
+ " PB = 113.22 mm\n",
+ "\n",
+ " Total vapour pressure = 173.53 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variable\n",
+ "pa= 114.9 ##mm\n",
+ "pb= 238.3 ##mm\n",
+ "xa= 0.525\n",
+ "xb= 0.475\n",
+ "##CALCULATIONS\n",
+ "xa1= xa*pa/((xa*pa)+(xb*pb))\n",
+ "xb1= 1.-xa1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Mole fraction CCl4 = ',xa1,'')\n",
+ "print'%s %.2f %s'% ('\\n Mole fraction of SiCl4 = ',xb1,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mole fraction CCl4 = 0.35 \n",
+ "\n",
+ " Mole fraction of SiCl4 = 0.65 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg363"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "p1= 55. ##per cent\n",
+ "P1= 744. ##mm\n",
+ "P2= 634. ##mm\n",
+ "MB= 18. ##gms\n",
+ "##CALCULATIONS\n",
+ "MA= p1*P2*MB/((P1-P2)*(100.-p1))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of terpinene = ',MA,' gms') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of terpinene = 126.80 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg367"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "ci= 0.1896 ##mole per liter\n",
+ "cKI= 0.02832 ##mole per liter\n",
+ "r= 625.\n",
+ "##CALCULATIONS\n",
+ "CI2= ci/r\n",
+ "dc= cKI-CI2\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Conc of I2 in KI layer = ',CI2,' mole per litre') \n",
+ "print'%s %.2f %s'% ('\\n Conc of I3- ions = ',dc,' mole per litre') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Conc of I2 in KI layer = 0.00 mole per litre\n",
+ "\n",
+ " Conc of I3- ions = 0.03 mole per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter13.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter13.ipynb new file mode 100644 index 00000000..c93cc995 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter13.ipynb @@ -0,0 +1,403 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:96b7e23b555bfca09d57091cf394bda190bb00433abf5ac4dcbd91d4ce94e1f0"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter13-The conductance of Electrolytes\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg402"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "F= 96500. ##coulombs\n",
+ "t= 3600. ##sec\n",
+ "n= 0.75 ##mole\n",
+ "v= 22.4 ##lit\n",
+ "v1= 0.336 ##lit\n",
+ "##CALCULATIONS\n",
+ "cs= F*v1/(n*v*t)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Current strength = ',cs,' amp')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current strength = 0.54 amp\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "m= 1.9768 ##gms\n",
+ "M= 107.88 ##gms\n",
+ "m1= 5.136 ##/gms\n",
+ "M1= 74.56 ##gms\n",
+ "x1= 100 ##gms\n",
+ "x2= 3.65 ##gms\n",
+ "M2= 122.93 ##gms\n",
+ "##CALCULATIONS\n",
+ "n1= m/M\n",
+ "n2= m1/M1\n",
+ "n3= (x2/M1)*(M2-m1)/(x1-x2)\n",
+ "t= (n3-n2+n1)/n1\n",
+ "t1= 1-t\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('number of g equiv of Ag deposited = ',n1,'')\n",
+ "print'%s %.2f %s'% ('\\n number of g equiv of Ag deposited = ',n2,'')\n",
+ "print'%s %.2f %s'% ('\\n number of g equiv of KCl deposited = ',n3,'g equiv of KCl')\n",
+ "print'%s %.2f %s'% ('\\n transference number = ',t1-0.003,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "number of g equiv of Ag deposited = 0.02 \n",
+ "\n",
+ " number of g equiv of Ag deposited = 0.07 \n",
+ "\n",
+ " number of g equiv of KCl deposited = 0.06 g equiv of KCl\n",
+ "\n",
+ " transference number = 0.49 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg410"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "l= 5.6 ##cm\n",
+ "F= 96500. ##coloumbs\n",
+ "A= 0.1142 ##cm^2\n",
+ "t= 2130. ##sec\n",
+ "i= 0.005893 ##amp\n",
+ "m= 10**-4 ##gms\n",
+ "##CALCULATIONS\n",
+ "t= 1.-(l*A*F*m/(i*t))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Transference number = ',t,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Transference number = 0.51 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k= 0.012856 ##ohm^-1 cm^-1\n",
+ "R= 3468.9 ##ohms\n",
+ "k1= 44.597 ##cm^-1\n",
+ "c= 0.1 ##g equiv per litre\n",
+ "R1= 4573.6 ##ohms\n",
+ "##CALCULATIONS\n",
+ "k1= k*R\n",
+ "K= k1/R1\n",
+ "a= 1000.*K/c\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('cell constant = ',k1,' cm^-1')\n",
+ "print'%s %.2f %s'% ('\\n cell constant = ',K,' ohm^-1 cm^-1')\n",
+ "print'%s %.2f %s'% ('\\n Equivalent conductance = ',a,' ohms^-1 cm^2')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cell constant = 44.60 cm^-1\n",
+ "\n",
+ " cell constant = 0.01 ohm^-1 cm^-1\n",
+ "\n",
+ " Equivalent conductance = 97.51 ohms^-1 cm^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "A= 48.15 ##ohm^-1 cm6-1\n",
+ "m= 1.0283*10**-3 ##gms equiv acid per litre\n",
+ "A0= 390.7 ##ohms^-1 cm^2\n",
+ "A1= 60.2\n",
+ "B= 0.229\n",
+ "##CALCULATIONS\n",
+ "a= A/(A0-(A1+B*A0)*math.sqrt((A/A0)*m)) \n",
+ "##RESULTS\n",
+ "print'%s %.4f %s'% ('Degree of dissociation = ',a,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Degree of dissociation = 0.1238 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg424"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "t= 0.3965\n",
+ "A0= 126.45 ##ohm^-1 CM62\n",
+ "##CALCULATIONS\n",
+ "l= (1.-t)*A0\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('ion conductance of the Cl- ion = ',l,' ohms^-1 cm^2')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ion conductance of the Cl- ion = 76.31 ohms^-1 cm^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg426"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "A1= 426.16 ##ohms^-1 cm^2\n",
+ "A2= 91. ##ohms^-1 cm^2\n",
+ "A3= 126.45 ##ohms^-1 cm^2\n",
+ "a1= 61.92 ##ohms^-1 cm^2\n",
+ "a2= 76.34 ##ohms^-1 cm^2\n",
+ "a3= 63.64 ##ohms^-1 cm^2\n",
+ "a4= 79.8 ##ohms^-1 cm^2\n",
+ "##CALCULATIONS\n",
+ "A4= A1+A2-A3\n",
+ "A5= a1+a2\n",
+ "A6= a3+a4\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Conductance of CH3COOH = ',A4,' ohms^-1 cm^2') \n",
+ "print'%s %.2f %s'% ('\\n Conductance of AgCl = ',A5,' ohms^-1 cm^2') \n",
+ "print'%s %.2f %s'% ('\\n Conductance of BaSO4 = ',A6,' ohms^-1 cm^2') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Conductance of CH3COOH = 390.71 ohms^-1 cm^2\n",
+ "\n",
+ " Conductance of AgCl = 138.26 ohms^-1 cm^2\n",
+ "\n",
+ " Conductance of BaSO4 = 143.44 ohms^-1 cm^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg427"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "e= 5.6 ##volts\n",
+ "l= 9.8 ##cm\n",
+ "t= 1. ##hr\n",
+ "T= 25. ##C\n",
+ "A= 73.4 ##ohm^-1 cm^2\n",
+ "F= 96500. ##coloumbs\n",
+ "##CALCULATIONS\n",
+ "v= A/F\n",
+ "pg= e/l\n",
+ "v1= v*pg\n",
+ "L= v1*t*3600.\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Mobility = ',v,' cm/sec')\n",
+ "print'%s %.3f %s'% ('\\n Potential gradient = ',pg,' volt/cm')\n",
+ "print'%s %.3f %s'% ('\\n Potential gradient = ',pg,' volt/cm')\n",
+ "print'%s %.2f %s'% ('\\n Distance moved by ion = ',L,' cm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mobility = 7.61e-04 cm/sec\n",
+ "\n",
+ " Potential gradient = 0.571 volt/cm\n",
+ "\n",
+ " Potential gradient = 0.571 volt/cm\n",
+ "\n",
+ " Distance moved by ion = 1.56 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg428"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Ao= 138.3 ##ohms^-1\n",
+ "k1= 3.41*10**-6 ##ohm^-1 cm^-1\n",
+ "k2= 1.6*10**-6 ##ohm^-1 cm^-1\n",
+ "T= 25. ##C\n",
+ "##CALCULATIONS\n",
+ "s= 1000.*(k1-k2)/Ao\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Solubility of AgCl in water = ',s,' g equiv per liter')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Solubility of AgCl in water = 1.31e-05 g equiv per liter\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter14.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter14.ipynb new file mode 100644 index 00000000..a6dc67c0 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter14.ipynb @@ -0,0 +1,372 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:9fa506139179affa920541319c84daca518a8fdf27be38984d939353608339f4"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter14-Electromotive Force"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg441"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T= 25. ##C\n",
+ "E= 0.0455 ##volt\n",
+ "r= 3.38*10**-4 ##volt degree^-1\n",
+ "F= 96500.\n",
+ "r1= 0.2390\n",
+ "##CALCULATIONS\n",
+ "dH= -F*r1*(E-(273.+T)*r)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Enthalpy = ',dH,' calories ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Enthalpy = 1273.66 calories \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg450"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "emf= 1.094 ##volt\n",
+ "e1= 0.334 ##volt\n",
+ "##CALCULATIONS\n",
+ "Ezn= (emf-e1)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Ezn = ',Ezn,' volt ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ezn = 0.76 volt \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg454"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "emf= 0.0455 ##volt\n",
+ "T= 25. ##C\n",
+ "c= 0.1 ##N\n",
+ "emf1= 0.334 ##volt\n",
+ "emf2= 0.799 ##volt\n",
+ "k= 0.05915\n",
+ "##CALCULATIONS\n",
+ "ag= 10**((-emf2+(emf1-emf))/k)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('aAg+ = ',ag,' g ion per 1000 grams per litre ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "aAg+ = 2.34e-09 g ion per 1000 grams per litre \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg455"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k= 0.059\n",
+ "e= -0.401 ##volt\n",
+ "c1= 10**-14 ## g ion per litre\n",
+ "c2= 10**-7 ## g ion per litre\n",
+ "##CALCULATIONS\n",
+ "E1= e+k*math.log10(c1)\n",
+ "E2= e+k*math.log10(c2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('oxidation potential = ',E1,' volt ') \n",
+ "print'%s %.2f %s'% ('\\n oxidation potential = ',E2,' volt ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "oxidation potential = -1.23 volt \n",
+ "\n",
+ " oxidation potential = -0.81 volt \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg464"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "e= 0.761 ##volt\n",
+ "e1= -0.34 ##volt\n",
+ "k= 0.02958 ##volt\n",
+ "##CALCULATIONS\n",
+ "r= 10**((e-e1)/k)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('K for the reaction = ',r,'') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "K for the reaction = 1.66e+37 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg468"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c1= 0.1 ##M\n",
+ "c2= 0.01 ##M\n",
+ "k= 0.05915 ##volt\n",
+ "t1= 0.172\n",
+ "t2= 0.828 \n",
+ "##CALCULATIONS\n",
+ "El= (t1-t2)*k*math.log10(c2/c1)\n",
+ "##RESULTS\n",
+ "print'%s %.3f %s'% ('Liquid junction potential = ',El,'') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Liquid junction potential = 0.039 \n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg472"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variable\n",
+ "k= 0.05915 ##volt\n",
+ "n= 2. ##moles\n",
+ "c= 0.1 ##M\n",
+ "c1= 1. ##M\n",
+ "##CALCULATIONS\n",
+ "r= k*math.log10(c/c1)/n\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('EMF = ',r,' volt ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "EMF = -0.03 volt \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg477"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "e1= 0.31 ##volt\n",
+ "e2= 0.78 ##volt\n",
+ "##CALCULATIONS\n",
+ "e= e1+e2\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Decomposition voltage = ',e,'') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Decomposition voltage = 1.09 \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg478"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k= 0.059 ##volt\n",
+ "c= 10**-7 ##M\n",
+ "e= 2.71 ##volt\n",
+ "c1= 6 ##M\n",
+ "e1= -0.4 ##volt\n",
+ "e2= -1.36 ##volt\n",
+ "e3= 0.6 ##volt\n",
+ "##CALCULATIONS\n",
+ "E1= -math.log10(c)*k\n",
+ "E2= e-k*math.log10(c1)\n",
+ "E3= e1+k*math.log10(c)\n",
+ "E4= e2+k*math.log10(c1)\n",
+ "E5= E3-e3\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('EH = ',E1,' volt ') \n",
+ "print'%s %.2f %s'% ('\\n ENa = ',E2,' volt ') \n",
+ "print'%s %.2f %s'% ('\\n EO = ',E3,' volt ') \n",
+ "print'%s %.2f %s'% ('\\n ECl = ',E4,' volt ') \n",
+ "print'%s %.2f %s'% ('\\n Oxygen evolution potential = ',E5,' volt ') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "EH = 0.41 volt \n",
+ "\n",
+ " ENa = 2.66 volt \n",
+ "\n",
+ " EO = -0.81 volt \n",
+ "\n",
+ " ECl = -1.31 volt \n",
+ "\n",
+ " Oxygen evolution potential = -1.41 volt \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter15.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter15.ipynb new file mode 100644 index 00000000..1f4396fb --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter15.ipynb @@ -0,0 +1,332 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:bc483af2aab74a69c5c0f5f640bdbb7d93b0bf6485c56961f1dfe2ffba52540b"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter15-Equilibria in electrolytes"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg486"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c1= 0.1 ##M\n",
+ "c2= 0.2 ##M\n",
+ "c3= 0.4 ##M\n",
+ "n1= 1.\n",
+ "n2= 2.\n",
+ "##CALCULATIONS\n",
+ "u1= 0.5*(c1*n1**2+c1*n1**2)\n",
+ "u2= 0.5*(c3*n1**2+c2*n2**2)\n",
+ "u3= 0.5*((c3+c1)*n1**2+c1*n1**2+c2*n2**2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Ionic strength = ',u1,'')\n",
+ "print'%s %.2f %s'% ('\\n Ionic strength = ',u2,'')\n",
+ "print'%s %.2f %s'% ('\\n Ionic strength = ',u3,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ionic strength = 0.10 \n",
+ "\n",
+ " Ionic strength = 0.60 \n",
+ "\n",
+ " Ionic strength = 0.70 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg488"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c1= 0.01 ##M\n",
+ "c2= 0.001 ##M\n",
+ "n= 2. ##moles\n",
+ "k= -0.509\n",
+ "n1= 1. ##moles\n",
+ "##CALCULATIONS\n",
+ "f1= 10**(k*math.sqrt(c1))\n",
+ "f2= 10**(k*n*math.sqrt((c2*(n+n1))))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('activity coefficient = ',f1,'')\n",
+ "print'%s %.2f %s'% ('\\n activity coefficient = ',f2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "activity coefficient = 0.89 \n",
+ "\n",
+ " activity coefficient = 0.88 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg491"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "a= 6.4*10**-6 ##g ion per lit\n",
+ "a1= 0.05\n",
+ "n= 2.\n",
+ "##CALCULATIONS\n",
+ "Ksp= a**2*a1\n",
+ "s= (Ksp/n**2)**(1./3.)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Ks = ',Ksp,'')\n",
+ "print'%s %.2e %s'% ('\\n solubility of Ag2CrO4 = ',s,' mole per litre')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ks = 2.05e-12 \n",
+ "\n",
+ " solubility of Ag2CrO4 = 8.00e-05 mole per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg494"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "s1= -0.0059 ##mole per litre\n",
+ "x1= 0.0118 ##mole per lit\n",
+ "x2= 0.0269 ##mole per litre\n",
+ "##CALCULATIONS\n",
+ "S= s1+math.sqrt(0.25*x1**2+x2**2)\n",
+ "##RESULTS\n",
+ "print'%s %.4f %s'% ('Solubility = ',S,' mole per litre')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Solubility = 0.0216 mole per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg506"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "Ka= 1.752*10**-5\n",
+ "c= 0.1 ##M\n",
+ "##CALCULATIONS\n",
+ "ch= math.sqrt(Ka*c)\n",
+ "ch1= -0.5*Ka+math.sqrt(Ka*c)\n",
+ "r= ch1/c\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('CH+ = ',ch,' g ion per litre')\n",
+ "print'%s %.3e %s'% ('\\n CH+ = ',ch1,' g ion per litre')\n",
+ "print'%s %.2e %s'% ('\\n degree of dissociation = ',r,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "CH+ = 1.32e-03 g ion per litre\n",
+ "\n",
+ " CH+ = 1.315e-03 g ion per litre\n",
+ "\n",
+ " degree of dissociation = 1.31e-02 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg508"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c1= 0.1 ##M\n",
+ "cs= 0.05 ##M\n",
+ "Ka= 1.75*10**-5\n",
+ "##CALCULATIONS\n",
+ "ch= Ka*c1/cs\n",
+ "##RESULTS\n",
+ "print'%s %.1e %s'% ('CH+ = ',ch,' g ion per litre')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "CH+ = 3.5e-05 g ion per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg511"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "ch= 5.46*10**-5 ##g ion per litre\n",
+ "ph= 8.752\n",
+ "##CALCULATIONS\n",
+ "pH= -math.log10(ch)\n",
+ "ch1= 10**(-ph)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('pH = ',pH,'') \n",
+ "print'%s %.2e %s'% ('\\n Hydrogen ion concentration = ',ch1,' g ion per litre') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pH = 4.26 \n",
+ "\n",
+ " Hydrogen ion concentration = 1.77e-09 g ion per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg512"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "pt= 14.\n",
+ "ph= 4.75\n",
+ "##CALCULATIONS\n",
+ "coh= 10**(-(pt-ph))\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('COH- = ',coh,' g ion per litre') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "COH- = 5.62e-10 g ion per litre\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter16.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter16.ipynb new file mode 100644 index 00000000..22d57c08 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter16.ipynb @@ -0,0 +1,366 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:09be9a8e5f91af8fef0686407088d245fede9d0f128504215da1542a47c5c9a8"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter16-Hydrolysis and Neutralization"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg522"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c= 0.01 ##M\n",
+ "T= 25. ##C\n",
+ "kw= 1.01*10**-14 \n",
+ "ka= 1.75*10**-5\n",
+ "##CALCULATIONS\n",
+ "x= math.sqrt(kw/(ka*c))\n",
+ "##RESULTS\n",
+ "print'%s %.1e %s'% ('Degree of hydrolysis = ',x,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Degree of hydrolysis = 2.4e-04 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg522"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c= 0.01 ##M\n",
+ "ka= 1.75*10**-5\n",
+ "pkw= 14.\n",
+ "ka1= 1.79\n",
+ "##CALCULATIONS\n",
+ "pH= 0.5*pkw-0.5*math.log(ka)+0.5*math.log(c)-ka1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('pH of solution = ',pH,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pH of solution = 8.38 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg526"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variable\n",
+ "k1= 10**-14\n",
+ "c= 0.1 ##M\n",
+ "pH= 8.88\n",
+ "cH= 1.32*10**-9 ##gms\n",
+ "##CALCULATIONS\n",
+ "x= k1/(c*cH)\n",
+ "kh= c*x**2\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('x = ',x,'')\n",
+ "print'%s %.2e %s'% ('\\n Hydrolysis constant = ',kh,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "x = 7.58e-05 \n",
+ "\n",
+ " Hydrolysis constant = 5.74e-10 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg527"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c= 0.0156 ##M\n",
+ "ec= 111.5 ##ohm^-1 cm^2\n",
+ "ac= 99.9 ##ohm^-1 cm^2\n",
+ "ac1= 426. ##ohm^-1 cm^2\n",
+ "kw= 10**-14 \n",
+ "##CALCULATIONS\n",
+ "x= (ec-ac)/(ac1-ac)\n",
+ "kh= c*x**2/(1.-x)\n",
+ "kb= kw/kh\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('x = ',x,'')\n",
+ "print'%s %.1e %s'% ('\\n Hydrolysis constant = ',kh,'')\n",
+ "print'%s %.1e %s'% ('\\n Dissociation constant = ',kb,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "x = 0.04 \n",
+ "\n",
+ " Hydrolysis constant = 2.0e-05 \n",
+ "\n",
+ " Dissociation constant = 4.9e-10 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg531"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "pH= 7.\n",
+ "c1=1. ##M\n",
+ "c2= 0.155 ##M\n",
+ "c3= 0.25 ##m\n",
+ "c4= 0.05 ##M\n",
+ "c5= 0.62 ##M\n",
+ "pka= 7.21\n",
+ "##CALCULATIONS\n",
+ "ph1= pka+math.log10((c5+c4)/(c1-c4))\n",
+ "ph2= pka+math.log10((c2+c4)/(c3-c4))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('final pH = ',ph1,'')\n",
+ "print'%s %.2f %s'% ('\\n final pH = ',ph2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "final pH = 7.06 \n",
+ "\n",
+ " final pH = 7.22 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg535"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variablesclear\n",
+ "v1= -0.1252 ##volt\n",
+ "v2= 0.3636##volt\n",
+ "v3= 0.05915##volt\n",
+ "##CALCULATIONS\n",
+ "ph= (v1+v2)/v3\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('final pH = ',ph,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "final pH = 4.03 \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg540"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variable\n",
+ "pki= 3.98\n",
+ "t1= 0.85 ##mm\n",
+ "t2= 0.15 ##mm\n",
+ "##CALCULATIONS\n",
+ "pH= pki+math.log10(t1/t2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('pH of the solution = ',pH,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pH of the solution = 4.73 \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg541"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "pki= 7.\n",
+ "t1= 3. ##drops\n",
+ "t2= 7. ##drops\n",
+ "##CALCULATIONS\n",
+ "pH= pki+math.log10(t1/t2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('pH of the solution = ',pH,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "pH of the solution = 6.63 \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg545"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c= 0.1 ##N\n",
+ "ka= 5.75*10**-10 \n",
+ "##CALCULATIONS\n",
+ "cH= math.sqrt(c*ka)\n",
+ "pH= -math.log10(cH)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('cH = ',cH,'')\n",
+ "print'%s %.2f %s'% ('\\n pH of the solution = ',pH,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "cH = 7.58e-06 \n",
+ "\n",
+ " pH of the solution = 5.12 \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter17.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter17.ipynb new file mode 100644 index 00000000..9e33556a --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter17.ipynb @@ -0,0 +1,98 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:32fc44a298039addec1d42f97386b3e7372e06e1ea450b0851129c841246fd6e"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter17-Surface chemistry and colloids"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg556"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "a= 265. ##cm^2\n",
+ "mw= 256. ##gm\n",
+ "N= 6.02*10**23 ##molecules\n",
+ "m= 5.19*10**-5 ##gms\n",
+ "##CALCULATIONS\n",
+ "asm= (a*mw)/(N*m)\n",
+ "##RESULTS\n",
+ "print'%s %.1e %s'% ('Area per single molecule = ',asm,' cm^2')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Area per single molecule = 2.2e-15 cm^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg575"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "c1= 0.01 ##M\n",
+ "c2= 0.01 ##M\n",
+ "c3= 1. ##M\n",
+ "##CALCULATIONS\n",
+ "r1= (c1+c2)/c2\n",
+ "r2= (c3+c2)/c3\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Ratio = ',r1,'')\n",
+ "print'%s %.2f %s'% ('\\n Ratio = ',r2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio = 2.00 \n",
+ "\n",
+ " Ratio = 1.01 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter18.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter18.ipynb new file mode 100644 index 00000000..fc049ac7 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter18.ipynb @@ -0,0 +1,255 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6306c222b4605d489b3483e0be6ade1c3166076fe19f818aaff3f30c05dfa030"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter18-Kinetics of chemical reactions "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg599"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "T= 518. ##C\n",
+ "t= 410. ##sec\n",
+ "t1= 880. ##sec\n",
+ "l= 363. ##nm\n",
+ "l1= 169. ##nm\n",
+ "##CALCULATIONS\n",
+ "k1= t*l\n",
+ "k2= t1*l1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Constant of the reaction = ',k1,'')\n",
+ "print'%s %.2f %s'% ('\\n Constant of the reaction =',k2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Constant of the reaction = 148830.00 \n",
+ "\n",
+ " Constant of the reaction = 148720.00 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg600"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k1= 1.5 ##mm sec^-1\n",
+ "k2= 0.25 ##mm sec^-1\n",
+ "\n",
+ "p1= 359. ##mm\n",
+ "p2= 152. ##mm\n",
+ "k3= 1.65 ##mm sec^-1\n",
+ "k4= 0.79 ##mm sec^-1\n",
+ "p3= 289. ##mm\n",
+ "p4= 147. ##mm\n",
+ "##CALCULATIONS\n",
+ "m= (math.log(k1)-math.log(k2))/(math.log(p1)-math.log(p2))\n",
+ "n= (math.log(k3)-math.log(k4))/(math.log(p3)-math.log(p4))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Order of the reaction = ',m,'')\n",
+ "print'%s %.2f %s'% ('\\n Order of the reaction = ',n,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Order of the reaction = 2.08 \n",
+ "\n",
+ " Order of the reaction = 1.09 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg608"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k1= 3.46*10**-5\n",
+ "k2= 4.87*10**-3\n",
+ "T1= 338. ##K\n",
+ "T2= 298. ##K\n",
+ "R= 1.987 ##cal/mole K\n",
+ "##CALCULATIONS\n",
+ "E= math.log10(k2/k1)*2.303*R*T1*T2/(T1-T2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Energy of activation = ',E+43,' cal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy of activation = 24799.58 cal\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg614"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "h= -1.35 ##kcal\n",
+ "e= 44.3 ##kcal\n",
+ "n= 2.\n",
+ "##CALCULATIONS\n",
+ "dH= -n*h\n",
+ "E= e-dH\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Enthalpy of reaction = ',dH,' kcal')\n",
+ "print'%s %.2f %s'% ('\\n Energy of activation = ',E,' kcal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Enthalpy of reaction = 2.70 kcal\n",
+ "\n",
+ " Energy of activation = 41.60 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg615"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "T= 556. ##K\n",
+ "E= 44300. ##cal\n",
+ "R= 2. ##cal /mole K\n",
+ "##CALCULATIONS\n",
+ "k= 10**8*T*math.e**(-E/(R*T))\n",
+ "##RESULTS\n",
+ "print'%s %.1e %s'% ('Specific rate of reaction = ',k,' litre mole^-1 sec^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Specific rate of reaction = 2.8e-07 litre mole^-1 sec^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg616"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "T= 45. ##C\n",
+ "E= 24.7 ##kcal\n",
+ "R= 2. ##cal \n",
+ "##CALCULATIONS\n",
+ "k= 2.*10**10*(273.+T)*math.e**-(E*1000./(R*(273.+T)))\n",
+ "##RESULTS\n",
+ "print'%s %.1e %s'% ('Specific rate of reaction = ',k,' sec^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Specific rate of reaction = 8.6e-05 sec^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter19.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter19.ipynb new file mode 100644 index 00000000..5aaa6fb3 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter19.ipynb @@ -0,0 +1,97 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:a28a5ef8a385d0102e6082cfb366c7131c322bfd3526953cd7d93fd7c3a57950"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter19-PhotoChemistry"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg636"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "t= 5. ##cm\n",
+ "c= 0.01 ##M\n",
+ "ir= 0.245\n",
+ "##CALCULATIONS\n",
+ "e= -math.log10(ir)/(t*c)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Extinction coefficient = ',e,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Extinction coefficient = 12.22 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg641"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "w= 2540. ##A\n",
+ "v= 10. ##ml\n",
+ "c= 0.0495 ##M\n",
+ "a= 8.81*10**8 ##ergs\n",
+ "c1= 0.0383 ##M\n",
+ "n= 1.12*10**-4 ##moles\n",
+ "n1= 2.859 ##moles\n",
+ "##CALCULATIONS\n",
+ "qy= n*n1*4.184*10**15/(a*w)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Quantum yield = ',qy,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Quantum yield = 0.60 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter4.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter4.ipynb new file mode 100644 index 00000000..82cdb6ec --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter4.ipynb @@ -0,0 +1,726 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:1d4cc853303bd6904a2e77fb1ceaf3e63a457d8e0eccaf1e37846afba1159436"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4-Electronic structures of atoms and molecules\n"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg76"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v= 240. ##ml\n",
+ "p= 1.25 ##atm\n",
+ "p1= 0.75 ##atm\n",
+ "n= 2.\n",
+ "##CALCULATIONS\n",
+ "v1= v*p/p1\n",
+ "dv= v1-v\n",
+ "V= n*v1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Increase in volume = ',dv,' ml')\n",
+ "print'%s %.2f %s'% ('\\n Final volume = ',V,' ml')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Increase in volume = 160.00 ml\n",
+ "\n",
+ " Final volume = 800.00 ml\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v1= 360. ##ml\n",
+ "T1= 15. ##C\n",
+ "v2= 480. ##ml\n",
+ "##CALCULATIONS\n",
+ "T2= v2*(273.+T1)/v1\n",
+ "Tc= T2-273.\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Centigrade temperature = ',Tc,' C')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Centigrade temperature = 111.00 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg79"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p1= 1.4 ##atm\n",
+ "v1= 250. ##ml\n",
+ "t1= 21. ##c\n",
+ "v2= 300. ##ml\n",
+ "t2= 49. ##c\n",
+ "##CALCULATIONS\n",
+ "p2= p1*v1*(273.+t2)/(v2*(273.+t1))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Final pressure = ',p2,' atm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Final pressure = 1.28 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg82"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v= 10. ##lit\n",
+ "p= 75. ##cm of hg\n",
+ "T= 27. ##C\n",
+ "R= 0.082 ##lit-atm/mole K\n",
+ "##CALCULATIONS\n",
+ "n= (p/76.)*v/((273.+T)*R)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Moles of oxygen contained = ',n,' moles')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moles of oxygen contained = 0.40 moles\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg84"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T= 25. ##C\n",
+ "v= 190. ##ml\n",
+ "pt= 740. ##mm of hg\n",
+ "p1= 23.8 ##mm of hg\n",
+ "p2= 760. ##mm of hg\n",
+ "##CALCULATIONS\n",
+ "p= pt-p1\n",
+ "v= v*p/p2\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Partial pressure of dry gas = ',p,' mm')\n",
+ "print'%s %.2f %s'% ('\\n volume of the dry gas = ',v,' ml')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Partial pressure of dry gas = 716.20 mm\n",
+ "\n",
+ " volume of the dry gas = 179.05 ml\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg84"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "ma= 0.495 ##gm\n",
+ "Ma= 66. ##gms\n",
+ "mb= 0.182 ##gms\n",
+ "Mb= 45.5 ##gms\n",
+ "p= 76.2 ##cm of hg\n",
+ "##CALCULATIONS\n",
+ "na= ma/Ma\n",
+ "nb= mb/Mb\n",
+ "nt= na+nb\n",
+ "pa= p*na/nt\n",
+ "pb= p*nb/nt\n",
+ "##RESULTS\n",
+ "print'%s %.4f %s'% ('Number of moles of given gas A = ',na,'')\n",
+ "print'%s %.4f %s'% ('\\n Number of moles of given gas B = ',nb,'')\n",
+ "print'%s %.4f %s'% ('\\n Total number of moles = ',nt,'')\n",
+ "print'%s %.2f %s'% ('\\n Partial pressure of A = ',pa,' cm of mercury')\n",
+ "print'%s %.2f %s'% ('\\n Partial pressure of B = ',pb,' cm of mercury')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of moles of given gas A = 0.0075 \n",
+ "\n",
+ " Number of moles of given gas B = 0.0040 \n",
+ "\n",
+ " Total number of moles = 0.0115 \n",
+ "\n",
+ " Partial pressure of A = 49.70 cm of mercury\n",
+ "\n",
+ " Partial pressure of B = 26.50 cm of mercury\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg84"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v1= 125. ##ml\n",
+ "p1= 0.6 ##atm\n",
+ "v2= 150. ##ml\n",
+ "p2= 0.8 ##atm\n",
+ "V= 500. ##ml\n",
+ "##CALCULATIONS\n",
+ "pa= p1*v1/V\n",
+ "pb= p2*v2/V\n",
+ "pt= pa+pb\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Partial pressure of A = ',pa,' atm')\n",
+ "print'%s %.2f %s'% ('\\n Partial pressure of B = ',pb,' atm')\n",
+ "print'%s %.2f %s'% ('\\n Total pressure of A = ',pt,' atm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Partial pressure of A = 0.15 atm\n",
+ "\n",
+ " Partial pressure of B = 0.24 atm\n",
+ "\n",
+ " Total pressure of A = 0.39 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg86"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "t1= 1.44 ##min\n",
+ "t2= 1.8 ##min\n",
+ "mo= 32. ##gms\n",
+ "mh= 2. ##gms\n",
+ "##CALCULATIONS\n",
+ "d2= (t1/t2)**2*(mo/mh)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Approximate density of gas relative to hydrogen = ',d2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Approximate density of gas relative to hydrogen = 10.24 \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T= 25. ##C\n",
+ "R= 8.31*10**7 ##ergs deg^-1 mole^-1\n",
+ "M= 32. ##gms\n",
+ "##CALCULATIONS\n",
+ "c= math.sqrt(3.*R*(273.+T)/M)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Mean velocity of oxygen molecules = ',c,' cm sec^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mean velocity of oxygen molecules = 4.82e+04 cm sec^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg96"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "n= 8.41*10**-5 ##poise\n",
+ "p= 1. ##atm\n",
+ "v= 22414. ##ml\n",
+ "m= 2. ##gms\n",
+ "T= 0. ##C\n",
+ "R= 8.31*10**7 ##ergs deg^-1 mole^-1\n",
+ "##CALCULATIONS\n",
+ "d= m/v\n",
+ "c= math.sqrt(8.*R*(273.+T)/(math.pi*m))\n",
+ "l= 3.*n/(d*c)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Density of hydrogen gas = ',d,' gram cc^-1')\n",
+ "print'%s %.2e %s'% ('\\n Mean velocity = ',c,' cm sec^-1')\n",
+ "print'%s %.2e %s'% ('\\n Mean free path of the molecules = ',l,' cm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Density of hydrogen gas = 8.92e-05 gram cc^-1\n",
+ "\n",
+ " Mean velocity = 1.70e+05 cm sec^-1\n",
+ "\n",
+ " Mean free path of the molecules = 1.66e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex11-pg97"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "t= 1. ##sec\n",
+ "v= 1. ##cc\n",
+ "T= 0. ##C\n",
+ "p= 1. ##atm\n",
+ "d= 8.9*10**-5 ##g cc^-1\n",
+ "n= 8.41*10**-5 ##poise\n",
+ "R= 8.31*10**7 ##ergs deg^-1 mole^-1\n",
+ "M= 4. ##gms\n",
+ "N= 6*10**23 ##molecules\n",
+ "n1= 2. ##moles\n",
+ "##CALCULATIONS\n",
+ "Z= M*(N/(v*22414.))*d*R*(273.+T)/(3.*math.pi*n1*n)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Number of collisions = ',Z,' molecular collisions sec^-1 cc^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of collisions = 1.36e+29 molecular collisions sec^-1 cc^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex12-pg98 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "d= 8.9*10**-5 ##g cc^-1\n",
+ "R= 8.31*10**7 ##ergs deg^-1 mole^-1\n",
+ "N= 2.7*10**19 ##molecules\n",
+ "n= 8.41*10**-5 ##poise\n",
+ "T= 0. ##C\n",
+ "n1= 2. ##moles\n",
+ "##CALCULATIONS\n",
+ "s= math.sqrt(n1*d*math.sqrt(R*(273.+T)/(math.pi*n1))/(3.*math.pi*n*N))\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Collision diamter of hydrogen = ',s,' cm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collision diamter of hydrogen = 2.24e-08 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13-pg106"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "n= 4.\n",
+ "n1= 1.\n",
+ "n2= 1.5\n",
+ "R= 2. ##cal deg^-1 mole^-1\n",
+ "m=3.\n",
+ "##CALCULATIONS\n",
+ "Cv= ((3.*n-5.)+n1+n2)*R\n",
+ "Cv1= ((3.*n-6.)+2.*m*(n2-n1))*R\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molar heat capacity of acetylene = ',Cv,' cal deg^-1 mole^-1')\n",
+ "print'%s %.2f %s'% ('\\n Molar heat capacity of ammonia = ',Cv1,' cal deg^-1 mole^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molar heat capacity of acetylene = 19.00 cal deg^-1 mole^-1\n",
+ "\n",
+ " Molar heat capacity of ammonia = 18.00 cal deg^-1 mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex14-pg112 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "v= 1.32 ##lit\n",
+ "T= 48. ##C\n",
+ "p= 18.4 ##atm\n",
+ "R= 0.082 ##lit-atm deg^-1 mole^-1\n",
+ "a= 3.6\n",
+ "b= 4.28*10**-2\n",
+ "##CALCULATIONS\n",
+ "P1= R*(273.+T)/v\n",
+ "P2= (R*(273.+T)/(v-b))-(a/v**2)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Pressure by ideal gas equation = ',P1,' atm')\n",
+ "print'%s %.2f %s'% ('\\n Pressure by vander Waals equation = ',P2,' atm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Pressure by ideal gas equation = 19.94 atm\n",
+ "\n",
+ " Pressure by vander Waals equation = 18.54 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex15-pg118 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "wa= 52.3 ##gms\n",
+ "wv= 52.96 ##gms\n",
+ "wb= 302. ##gms\n",
+ "T= 100. ##C\n",
+ "p= 752. ##mm\n",
+ "d= 1.29 ##g per litre\n",
+ "wa1= 0.32 ##gms\n",
+ "R= 0.082 ##lit-atm K^-1 mole^-1\n",
+ "v= 0.25 ##lit\n",
+ "##CALCULATIONS\n",
+ "W= wb-wa\n",
+ "Wv= wv-(wa-wa1)\n",
+ "M= Wv*R*(273.+T)/((p/760.)*v)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of choloform = ',M,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of choloform = 121.17 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex16-pg119"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "w= 0.241 ##gms\n",
+ "R= 0.082 ##lit-atm mole^-1 K^-1\n",
+ "T= 23. ##C\n",
+ "p= 764. ##mm \n",
+ "v= 47.9 ##ml of air\n",
+ "##CALCULATIONS\n",
+ "M= w*R*(273.+T)/((p/760.)*(v/1000.))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of choloform = ',M,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of choloform = 121.48 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex17-pg122"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p= 795. ##mm\n",
+ "v= 0.501 ##lit\n",
+ "w= 1.35 ##gms\n",
+ "m= 92. ##gms\n",
+ "R= 0.082 ##lit-atm mole^-1 K^-1\n",
+ "T= 45. ##C\n",
+ "##CALCULATIONS\n",
+ "a= ((p/760.)*v/((w/m)*R*(273.+T)))-1.\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Fraction of N2O4 dissociated into NO2 = ',a,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fraction of N2O4 dissociated into NO2 = 0.37 \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter5.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter5.ipynb new file mode 100644 index 00000000..1d99d715 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter5.ipynb @@ -0,0 +1,401 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:1ec70a662dc9f6a30bf898e99451493ae9f0b58f74f820319f0e29c5d9fe95f2"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter5-Liquefication and the properties of liquids\n"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg138"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "m1= 1.947 ##gms\n",
+ "V= 10. ##lit\n",
+ "T= 22. ##C\n",
+ "p= 752. ##mm of Hg\n",
+ "T1= 28. ##C\n",
+ "W= 46. ##gms\n",
+ "R= 0.082 ##lit-atm mole^-1 K^-1\n",
+ "##CALCULATIONS\n",
+ "P= (m1*p/W)/((m1/W)+((p/760.)*V/(R*(273.+T))))\n",
+ "P1= (m1*p/W)/(((p/760.)*V/(R*(273.+T))))\n",
+ "P2= (m1/W)*R*(273.+T)*760./V\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Vapour pressure of ethanol = ',P,' mm')\n",
+ "print'%s %.2f %s'% ('\\n Vapour pressure of ethanol = ',P1,' mm')\n",
+ "print'%s %.2f %s'% ('\\n Vapour pressure of ethanol = ',P2,' mm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vapour pressure of ethanol = 70.52 mm\n",
+ "\n",
+ " Vapour pressure of ethanol = 77.81 mm\n",
+ "\n",
+ " Vapour pressure of ethanol = 77.81 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p= 27.17 ##mm\n",
+ "T= 99.5 ##C\n",
+ "T1= 100.5 ##C\n",
+ "T2= 100. ##C\n",
+ "sv1= 1674. ##cc per gram\n",
+ "sv2= 1.04 ##cc per gram\n",
+ "g= 980.7 ##cm/sec^2\n",
+ "d= 13.595 ##kg/m^3\n",
+ "##CALCULATIONS\n",
+ "r= (p/10.)*d*g\n",
+ "lv= (273.2+T2)*(sv1-sv2)*(p/10.)*d*g/(4.184*10**7)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of vapourisation of water = ',lv,' cal g^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of vapourisation of water = 540.56 cal g^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T= 100. ##C\n",
+ "v1= 1674. ##cc\n",
+ "v2= 1. ##cc\n",
+ "lv= 539.9 ##cal g^-1\n",
+ "sp= 13.595 ##kg/m63\n",
+ "g= 980. ##cm/sec^2\n",
+ "##CALCULATIONS\n",
+ "r= (273.2+T)*(v1-v2)*sp*g/(lv*4.187*10**7)\n",
+ "Tf= T+r\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Final temperature = ',Tf,' C')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Final temperature = 100.37 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg142"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "R= 2. ##cal mole^-1 K^-1 \n",
+ "r= 2.72 ##cm of mercury per degree\n",
+ "p= 76. ##cm of mercury\n",
+ "T= 100. ##C\n",
+ "m= 18. ##gms\n",
+ "##CALCULATIONS\n",
+ "Lv= R*(273.+T)**2*r/(m*p)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('heat of vapourisation = ',Lv,' cal g^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "heat of vapourisation = 553.26 cal g^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg144"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "vp= 526. ##mm\n",
+ "T= 90. ##C\n",
+ "T1= 100. ##C\n",
+ "hv= 542. ##cal/gm\n",
+ "m= 18. ##gm\n",
+ "##CALCULATIONS\n",
+ "p2= vp*10**(hv*m*(T1-T)/((273.+T)*4.576*(273.+T1)))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Vapour pressure of water at 100 C = ',p2,' mm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Vapour pressure of water at 100 C = 755.87 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p= 770. ##mm\n",
+ "T= 100.37 ##C\n",
+ "p1= 1 ##atm\n",
+ "c= 0.0001\n",
+ "T1= 100. ##C\n",
+ "##CALCULATIONS\n",
+ "dt= c*(273.+T1)*(760.-p)\n",
+ "cbp= T+dt\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Change boiling point = ',dt,' C')\n",
+ "print'%s %.2f %s'% ('\\n Corrected boiling point = ',cbp,' C')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change boiling point = -0.37 C\n",
+ "\n",
+ " Corrected boiling point = 100.00 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg154"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "d= 0.7910 ##kg/cm^3\n",
+ "T= 20. ##C\n",
+ "mw= 58.08 ##gm\n",
+ "x1= 7.2 ##gm\n",
+ "x2= 16.2 ##gm\n",
+ "x3= 20. ##gm\n",
+ "x4= 23.2 ##gm\n",
+ "n1= 3. ##atoms\n",
+ "n2= 6. ##atoms\n",
+ "##CALCULATIONS\n",
+ "r= ((n1*x1+n2*x2+x3+x4)*d/mw)**4\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Surface tension of acetone = ',r,'dynes cm^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Surface tension of acetone = 23.70 dynes cm^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg158"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "r1= 1.3591\n",
+ "d= 0.791 ##kg/m^3\n",
+ "mw= 58.08 ##gms\n",
+ "x1= 2.42 ##gm\n",
+ "x2= 1.10 ##gm\n",
+ "x3= 2.21 ##gm\n",
+ "n1= 3. ##atoms\n",
+ "n2= 6. ##atoms\n",
+ "##CALCULATIONS\n",
+ "MR= (r1**2-1.)*mw/(d*(r1**2+2.))\n",
+ "cv= x1*n1+x2*n2+x3\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molar refraction of this substance = ',MR,' cc')\n",
+ "print'%s %.2f %s'% ('\\n Calculated value of Molar refraction of this substance = ',cv,' cc')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molar refraction of this substance = 16.17 cc\n",
+ "\n",
+ " Calculated value of Molar refraction of this substance = 16.07 cc\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg160"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "dc= 2.033\n",
+ "d= 0.7784 ##kg/m^3\n",
+ "mw= 84.16 ##gm\n",
+ "x1= 2.42 ##gm\n",
+ "x2= 1.1 ##gm\n",
+ "n1= 6.##atoms\n",
+ "n2= 12. ##atoms\n",
+ "##CALCULATIONS\n",
+ "MP= (dc-1.)*mw/((dc+2.)*d)\n",
+ "MPC= x1*n1+x2*n2\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molar polarisation of this substance = ',MP,' cc')\n",
+ "print'%s %.2f %s'% ('\\n Calculated Molar polarisation of this substance = ',MPC,' cc')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molar polarisation of this substance = 27.69 cc\n",
+ "\n",
+ " Calculated Molar polarisation of this substance = 27.72 cc\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter6.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter6.ipynb new file mode 100644 index 00000000..b1bfa74b --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter6.ipynb @@ -0,0 +1,101 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:7aa25b464c07cc6381670ed4a3ac6f07d6ca4219d76404fd382eba97021cbd12"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter6-The Solid state"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg177"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "d1= 5.9 ##deg\n",
+ "d2= 5.3 ##deg\n",
+ "##CALCULATIONS\n",
+ "r= math.sin(d1/57.3)/math.sin(d2/57.3)\n",
+ "vr= r**3\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Ratio of inter planar distance = ',r,'')\n",
+ "print'%s %.2f %s'% ('\\n Ratio of volumes = ',vr,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio of inter planar distance = 1.11 \n",
+ "\n",
+ " Ratio of volumes = 1.38 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg191"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "svl= 1.0001 ##cc/gram\n",
+ "svi= 1.0907 ##cc/gram\n",
+ "T= 0.##C\n",
+ "Hf= 79.8 ##cal/gram\n",
+ "p= 76. ##mm\n",
+ "sp= 13.595\n",
+ "g= 980.7 ##cm/sec^2\n",
+ "##CALCULATIONS\n",
+ "r= -(273.2+T)*(svl-svi)*p*sp*g/(Hf*4.184*10**7)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Decrease in melting point = ',r,' per atm')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Decrease in melting point = 0.01 per atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter7.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter7.ipynb new file mode 100644 index 00000000..882fabae --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter7.ipynb @@ -0,0 +1,409 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b70f3f3ee36757e6a833a101a9bcb75dd8eddfa96ee53fd3d840c0951df41580"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter7-Thermodynamics and thermochemistry"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v= 1. ##cc\n",
+ "p= 1.013*10**6 ##dyne cm^-2\n",
+ "r= 4.184*10**7 ##ergs\n",
+ "##CALCULATIONS\n",
+ "W= v*p/r\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Work done = ',W,' cal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Work done = 0.02 cal\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg210"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "R= 8.314 ##J/mole K\n",
+ "n= 1. ##mole\n",
+ "v1= 10. ##lit\n",
+ "v2= 20. ##lit\n",
+ "T= 25. ##C\n",
+ "##CALCULATIONS\n",
+ "W= R*10**7*(273.2+T)*math.log(v2/v1)\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Maximum work done = ',W,' ergs mole^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum work done = 1.72e+10 ergs mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg216"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T= 18. ##C\n",
+ "n1= 7.5 \n",
+ "n2= 3.\n",
+ "n3= 6.\n",
+ "R= 2.*10**-3 ##kcal\n",
+ "dH= -783.4 ##kcal\n",
+ "##CALCULATIONS\n",
+ "dE= dH+R*(273.+T)*(n2+n3-n1)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of the reaction = ',dE,' kcal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of the reaction = -782.53 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg219"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "dH= -256.2 ##kcal\n",
+ "hf= -98.3 ##kcal\n",
+ "n= 6.\n",
+ "##CALCULATIONS\n",
+ "x= n*hf-dH\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of the formation = ',x,' kcal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of the formation = -333.60 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg219"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "dH= -327. ##kcal\n",
+ "n1= 2. ##moles\n",
+ "n2= 3. ##moles\n",
+ "hf= 68.4 ##kcal\n",
+ "hf1= 94. ##kcal\n",
+ "##CALCULATIONS\n",
+ "x= -n1*hf1-n2*hf-dH\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of the formation = ',x,' kcal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of the formation = -66.20 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg224"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "n= 5. ##moles\n",
+ "h1= 10.55 ##kcal\n",
+ "h2= -18.69 ##kcal\n",
+ "##CALCULATIONS\n",
+ "dH= h2-n*h1\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of the hydration = ',dH,' kcal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of the hydration = -71.44 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "cp= 18. ##cal/deg\n",
+ "co2= 6.97 ##cal/deg\n",
+ "ch2= 6.89 ##cal/deg\n",
+ "T1= 25. ##C\n",
+ "T2= 100. ##C\n",
+ "dH1= -68.4 ##kcal\n",
+ "##CALCULATIONS\n",
+ "dCp= (cp-(co2*0.5+ch2))*10**-3\n",
+ "dH2= dH1+(T2-T1)*dCp\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('dCp = ',dCp,' kcal deg^-1')\n",
+ "print'%s %.2f %s'% ('\\n Heat of formation = ',dH2,' kcal') \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dCp = 7.62e-03 kcal deg^-1\n",
+ "\n",
+ " Heat of formation = -67.83 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg227"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "k1= 9.92 ##kcal/deg\n",
+ "T2= 125. ##C\n",
+ "T1= 25. ##C\n",
+ "k2= 1.15*10**-3 ##kcal deg^-2\n",
+ "k3= 3.4*10**-6 ##kcal deg^-3\n",
+ "dH1= -22.1 ##kcal\n",
+ "##CALCULATIONS\n",
+ "dH= 10**-3*(-k1*(T2-T1)-k2*((273.+T2)**2-(273.+T1)**2)+k3*((273.+T2)**3-(273.+T1)**3))\n",
+ "dH2= dH1+dH\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('dH2-dH1 = ',dH,' kcal')\n",
+ "print'%s %.2f %s'% ('\\n Heat of reaction = ',dH2,' kcal')\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "dH2-dH1 = -0.95 kcal\n",
+ "\n",
+ " Heat of reaction = -23.05 kcal\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "a= -9.92\n",
+ "b= -2.3*10**-3\n",
+ "c= 10.2*10**-6\n",
+ "T= 25. ##C\n",
+ "dH= -22100. ##cal\n",
+ "##CALCULATIONS\n",
+ "dH1= dH-(a*(273.+T)+b*0.5*(273.+T)**2+c*0.33*(273.+T)**3)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Heat of reaction = ',dH1+1,' cal')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat of reaction = -19129.79 cal\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "m= 1.247 ##gm\n",
+ "hc= 2745. ##cal deg^-1\n",
+ "mw= 122.12 ##gm\n",
+ "dT= 2.87 ##C\n",
+ "##CALCULATIONS\n",
+ "mh= dT*hc*mw/(m*1000.)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('molar heat of combustion of benzoic acid = ',mh,' kcal mole^-1')\n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "molar heat of combustion of benzoic acid = 771.52 kcal mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter8.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter8.ipynb new file mode 100644 index 00000000..c009bd83 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter8.ipynb @@ -0,0 +1,184 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f177c7c39a89df20418e0d242e260f47a482cc5b40a5e06cd80b142596e99ae6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter8-The second law of thermodynamics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg240"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "k1= 8.04 ##cal deg^-1 mole^-1\n",
+ "k2= 7*10**-4 ##cal deg^-2 mole^-1\n",
+ "k3= 5.1*10**-6 ##cal deg^-3 mole^-1 \n",
+ "T1= 125. ##C\n",
+ "T2= 25. ##C\n",
+ "cv= 8.92 ##cal deg^-1 mole^-1\n",
+ "##CALCULATIONS\n",
+ "dSp= k1*math.log((273.+T1)/(273.+T2))+k2*(T1-T2)+k3*0.5*((273.+T1)**2-(273.+T2)**2)\n",
+ "dSp1= cv*math.log((273.+T1)/(273.+T2))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Increase in entropy = ',dSp,' cal deg^-1 mole^-1')\n",
+ "print'%s %.2f %s'% ('\\n Increase in entropy = ',dSp1,' cal deg^-1 mole^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Increase in entropy = 2.57 cal deg^-1 mole^-1\n",
+ "\n",
+ " Increase in entropy = 2.58 cal deg^-1 mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg241"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "m= 18. ##gm\n",
+ "T= 100. ##C\n",
+ "T1= 0. ##C\n",
+ "hv= 9720. ##cal\n",
+ "s= 0.36 ##cal deg^-1 mole^-1\n",
+ "##CALCULATIONS\n",
+ "dS= m*math.log((273.+T)/(273.+T1))\n",
+ "dS1= 2.*dS+(hv/(273.+T))-s\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Increase in entropy = ',dS,' cal deg^-1 mole^-1')\n",
+ "print'%s %.2f %s'% ('\\n Total increase in entropy = ',dS1,' cal deg^-1 mole^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Increase in entropy = 5.62 cal deg^-1 mole^-1\n",
+ "\n",
+ " Total increase in entropy = 36.93 cal deg^-1 mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg246"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "T2= 100. ##C\n",
+ "T1= 0. ##C\n",
+ "T3= 357. ##C\n",
+ "T4= 25. ##C\n",
+ "##CALCULATIONS\n",
+ "e1= (T2-T4)/(273.+T2)\n",
+ "e2= (T3-T4)/(273.+T3)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Efficiency = ',e1,'')\n",
+ "print'%s %.2f %s'% ('\\n Efficiency = ',e2,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Efficiency = 0.20 \n",
+ "\n",
+ " Efficiency = 0.53 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg249"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "R= 1.987 ##cal\n",
+ "T= 25. ##C\n",
+ "p= 23.76 ##mm\n",
+ "##CALCULATIONS\n",
+ "dF= R*(273.2+T)*math.log(760./p)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Free energy change = ',dF+1,' cal mole^-1')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Free energy change = 2054.28 cal mole^-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter9.ipynb b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter9.ipynb new file mode 100644 index 00000000..08a2437a --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/Chapter9.ipynb @@ -0,0 +1,257 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:691a96475cd536c4ffab20fb4eb718e811176f01d8c2ef3e8cc4a80d2f0c8355"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter9-Dilute Solutions"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg258"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "p1= 17.535 ##mm\n",
+ "p2= 17.226 ##mm\n",
+ "M= 100. ##gms\n",
+ "m1= 18.02 ##gms\n",
+ "m2= 18.04 ##gms\n",
+ "##CALCULATIONS\n",
+ "M= (-1.+(p1/(p1-p2)))*m1*m2/M\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of mannitol = ',M,' gms')\n",
+ "print'%s %.2f %s'% ('\\n Correct Molecular weight of mannitol = ',M+1,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of mannitol = 181.22 gms\n",
+ "\n",
+ " Correct Molecular weight of mannitol = 182.22 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg262"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "dT= 0.170 ##C\n",
+ "M2= 60.06 ##gms\n",
+ "w1= 22.5 ##gms\n",
+ "w2= 0.45 ##gms\n",
+ "R= 1.987 ##cal\n",
+ "T= 100. ##C\n",
+ "lv= 539.9 ##cal g^-1\n",
+ "##CALCULATIONS\n",
+ "Kb= dT*M2*w1/(1000.*w2)\n",
+ "Kb1= R*(273.2+T)**2/(lv*1000.)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Eleveation constant of water = ',Kb,'')\n",
+ "print'%s %.2f %s'% ('\\n Eleveation constant of water = ',Kb1,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Eleveation constant of water = 0.51 \n",
+ "\n",
+ " Eleveation constant of water = 0.51 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "Kf= 5.12\n",
+ "m= 0.911 ##gms\n",
+ "m1= 50. ##gms\n",
+ "dT= 0.603 ##deg\n",
+ "##CALCULATIONS\n",
+ "M2= Kf*1000.*m/(m1*dT)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Molecular weight of carbon tetra chloride = ',M2,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of carbon tetra chloride = 154.70 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "m= 4. ##gms\n",
+ "p= 6.4*10**-4 ##atm\n",
+ "T= 27. ##C\n",
+ "R= 0.082 ##lit atm deg^-1 mole^-1\n",
+ "##CALCULATIONS\n",
+ "M= R*(273.+T)*m/p\n",
+ "##RESULTS\n",
+ "print'%s %.2e %s'% ('Molecular weight of polymer = ',M,' gms')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Molecular weight of polymer = 1.54e+05 gms\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg277"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "v1= 18.10 ##cc\n",
+ "T= 100. ##C\n",
+ "p= 2.47 ##atm\n",
+ "L= 539.9 ##cal mole^-1 gm^-1\n",
+ "m= 18.02 ##gm\n",
+ "T1= 30. ##C\n",
+ "##CALCULATIONS\n",
+ "dT= v1*(273.2+T)**2*p*1.013*10**6/(L*m*4.184*10**7*(273.2+T1))\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('Elevation of boiling point = ',dT,' degrees')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Elevation of boiling point = 0.05 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg280"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##Intitalisation of variables\n",
+ "\n",
+ "dt= 0.0265 ##deg\n",
+ "c= 5.*10**-3 ##M\n",
+ "kf= 1.86 ##deg\n",
+ "##CALCULATIONS\n",
+ "i= dt/(c*kf)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('i of the solution = ',i,'')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i of the solution = 2.85 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter4.png b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter4.png Binary files differnew file mode 100644 index 00000000..c53e810a --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter4.png diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter5.png b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter5.png Binary files differnew file mode 100644 index 00000000..0213d0d7 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter5.png diff --git a/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter6.png b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter6.png Binary files differnew file mode 100644 index 00000000..bc086cc8 --- /dev/null +++ b/The_Elements_of_Physical_Chemistry_by_S._Glasstone/screenshots/Chapter6.png diff --git a/sample_notebooks/Sushovan Jena/Chapter1.ipynb b/sample_notebooks/Sushovan Jena/Chapter1.ipynb new file mode 100644 index 00000000..1d13f145 --- /dev/null +++ b/sample_notebooks/Sushovan Jena/Chapter1.ipynb @@ -0,0 +1,756 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Review of Basic Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1 Page No:5" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Applying KCL at junction(N),we get I=1+2=3 A\n" + ] + } + ], + "source": [ + "# Given Data\n", + "#Current through Resistor R1 is 1A\n", + "#Current through Resistor R2 is 2A\n", + "#Display results\n", + "print\"Applying KCL at junction(N),we get I=1+2=3 A\" # KCL stands for Kirchoff's Current Law which states\n", + " # that sum of all currents at a junction equals to zero\n", + " # N is the name of the junction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2 Page No:7" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I=0.200000 A\n" + ] + } + ], + "source": [ + "#Given Data\n", + "E1=4.;#EMF in volts\n", + "E2=2.;#EMF in volts\n", + "r1=2.;#Resistance in ohm\n", + "r2=3.;#Resistance in ohm\n", + "R=5.;#Resistance in ohm\n", + "#Calculations\n", + "#Applying KVL to the circuit,we get\n", + "I=(E1-E2)/(r1+r2+R);#Current in Amperes\n", + "#Display Results\n", + "print \"I=%f A\"%I;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3 Page No:9" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The current by the battery I=0.312500 Amperes\n" + ] + } + ], + "source": [ + "#Given Data\n", + "E=10.0;#EMF in volts\n", + "R1=20.0;#Resistance in ohm\n", + "R2=20.0;#Resistance in ohm\n", + "R3=30.0;#Resistance in ohm\n", + "#Calculations\n", + "Req=R1+(R2*R3/(R2+R3));# Equivalent resistance of the circuit\n", + "I=E/Req;#Current through the battery in Amperes\n", + "print \"The current by the battery I=%f Amperes\"%I;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4 Page No:12" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Current through R=5ohm is 0.277778 Amperes\n" + ] + } + ], + "source": [ + "#Naming emfs on both sides to be E1,E2 respectively\n", + "#and resistances as R1,R2,R3\n", + "#Given Data\n", + "E1=3.0;# volts\n", + "E2=1.0;# volts\n", + "R1=4.0;# ohms\n", + "R2=Rab=RL=5.0;# ohms\n", + "R3=2.0;# ohms\n", + "#Calculations\n", + "#We apply Thevenins Theorem to solve\n", + "#We have to find Vth and Rth\n", + "#First Apllying KVL in the outer loop,we get\n", + "I=2.0/6;# Amp\n", + "Va=3-I*4# volts\n", + "#Since 'B' is attached to negative potential\n", + "Vth=Vab=Va-0;# volts\n", + "#Then we find Rth\n", + "Rth=Rab=2*4/(2+4);# ohm\n", + "IL=Vth/(Rth+RL);# Load Current in Amp\n", + "print \"Current through R=5ohm is %f Amperes\"%IL\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5 Page No:14" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The power delivered to 'R' is maximum when R=r/2\n", + "Maximum Power transferred is Pmax=E**2/(2*r)\n" + ] + } + ], + "source": [ + "from sympy import Symbol\n", + "#Given Data\n", + "#Two batteries of emf E with internal resistances 'r'\n", + "#Calculations\n", + "#Case(a)\n", + "#Open circuiting the branch containing 'R'\n", + "#and short circuiting 'E'\n", + "E=Symbol('E');\n", + "r=Symbol('r');\n", + "Rth=r*r/(r+r);# Thevenin's Eq. Resistance in Ohm\n", + "print \"The power delivered to 'R' is maximum when R=%s\"%Rth; #According to the maximum power transform theorem\n", + "#case(b)\n", + "#Applying Parallel Theorem\n", + "Vth=E; # Vth is Thevenin's Voltage\n", + "#Pmax=(IL**2)*R\n", + "Pmax=(Vth/(2*Rth))**2*Rth;# R=Rth, Pmax is Maximum power tranferred\n", + "print \"Maximum Power transferred is Pmax=%s\"%Pmax;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": false + }, + "source": [ + "## Solved Questions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.1 Page No:33" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Input Power=444.44 KW\n", + "Power Factor=-0.998612\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import degrees,arctan,cos\n", + "#Given\n", + "#For a 3ph motor\n", + "VL=2000; #in volts\n", + "f=50;# Hz\n", + "nFL=0.9;#Full load Efficiency\n", + "W1=300;#Wattmeter-1 Reading in KW\n", + "W2=100;#Wattmeter-2 Reading in KW\n", + "#Calculations\n", + "#(i)\n", + "Po=W1+W2;#Outout Power\n", + "Pin=Po/nFL;#Input Power\n", + "#(ii)\n", + "ph=degrees(arctan(((W2-W1)*math.sqrt(3))/(W1+W2)));\n", + "pf=cos(ph);\n", + "#Display\n", + "print\"Input Power=%.2f KW\"%Pin;\n", + "print\"Power Factor=%f\"%pf;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.2 Page No:34" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Line Current=23.09Amperes\n", + "Power factor=0.800000\n", + "Power=12.800000 KW\n", + "Total Volt Ampere=16.00 KVA\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arctan2,degrees,cos\n", + "#Given\n", + "#A balanced star connected load\n", + "Zph=8+1j*6;#Ohm\n", + "VL=400;#Line voltage inVolts\n", + "#Calculations\n", + "#(i)\n", + "Vph=VL/math.sqrt(3);#Phase Voltage\n", + "Iph=Vph/abs(Zph);#Phase Current\n", + "IL=Iph;#Line current\n", + "#(ii)\n", + "pf=cos(arctan2(Zph.imag,Zph.real));#Power factor\n", + "#(iii)\n", + "P=math.sqrt(3)*VL*IL*pf*10**-3;#Power\n", + "#(iv)\n", + "VA=math.sqrt(3)*VL*IL*10**(-3);#Volt Ampere\n", + "#Display\n", + "print\"Line Current=%.2fAmperes\"%IL;\n", + "print\"Power factor=%f\"%pf;\n", + "print\"Power=%f KW\"%P;\n", + "print\"Total Volt Ampere=%.2f KVA\"%VA;" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Q.3 Page No:35" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Line current=3.264397 amp\n", + "Power Absorbed=1.600000 KW\n", + "Total KVA=2.261641 KVA\n", + "Power Factor=0.707451\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arctan2,cos,degrees\n", + "#Given\n", + "#Each phase of a star connected load has\n", + "R=100;# Resistance in Ohm\n", + "C=31.8*10**(-6);# Capacitance in Farad\n", + "#Connected to 3-ph\n", + "VL=400;#Volts\n", + "f=50;#Hz\n", + "#Calculations\n", + "Xc=1/(2*math.pi*f*C);#Capacitive Reactance in Ohm\n", + "num=R*-1j*Xc;#Ohm\n", + "den=(R-1j*Xc);\n", + "Z=(num*den.conjugate())/(den*den.conjugate()); #Impedance\n", + "#(i)\n", + "Vp=VL/math.sqrt(3);#Phase voltage\n", + "IL=Vp/abs(Z);#Line current\n", + "#(ii)\n", + "ph=arctan2(Z.imag,Z.real); #Phase angle\n", + "TKVA=math.sqrt(3)*VL*IL*10**(-3);# Total Power\n", + "P=TKVA*cos(ph);\n", + "pf=cos(ph);#Power factor\n", + "#Display\n", + "print\"Line current=%f amp\"%IL;\n", + "print\"Power Absorbed=%f KW\"%P;\n", + "print\"Total KVA=%f KVA\"%TKVA;\n", + "print\"Power Factor=%f\"%pf;\n", + "#Answer differs slightly from TEXTBOOK" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Q.4. Page No:36" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Line voltage=461.88 volt\n", + "Phase voltage=266.67 volt\n", + "KVAR input=16.703293 KVAR\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arccos,sin\n", + "#Given\n", + "#The load connectted to a 3-ph supply comprises\n", + "Pkva=20;#in KVA\n", + "Pkw=11.0;#in KW\n", + "IL=25;#Line Current in Amp\n", + "#Calculations\n", + "ph=arccos(Pkw/Pkva);\n", + "Pkvar=Pkva*sin(ph);#in KVAR\n", + "VL=20*10**3/(math.sqrt(3)*IL);\n", + "Vph=VL/math.sqrt(3);\n", + "#Display\n", + "print\"Line voltage=%.2f volt\"%VL;\n", + "print\"Phase voltage=%.2f volt\"%Vph;\n", + "print\"KVAR input=%f KVAR\"%Pkvar;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.5. Page No:37" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Resistance across Delta Circuit=60.000000 Ohm\n", + "Current flowing through them=6.67 Amp\n" + ] + } + ], + "source": [ + "import math\n", + "#Given\n", + "#A star circuit and a delta circuit\n", + "#In star circuit\n", + "VL1=400.0;#volts\n", + "R1=20.0;#ohm\n", + "#In Delta Circuit\n", + "VL=400;#volt\n", + "#Calculations\n", + "Vph1=VL1/math.sqrt(3); #Phase Voltage-1\n", + "Iph1=Vph1/R1; #Phase current-1\n", + "IL1=Iph1; #Line current-1\n", + "#In Delta circuit\n", + "IL2=IL1; # Line current-2\n", + "VL2=VL1; #line voltage-2\n", + "Vph2=VL2; #Phase voltage-2\n", + "Iph2=IL2/math.sqrt(3);#Phase current-2\n", + "R2=Vph2/Iph2;#Resistance in Ohm\n", + "#Display\n", + "print\"Resistance across Delta Circuit=%f Ohm\"%R2;\n", + "print\"Current flowing through them=%.2f Amp\"%Iph2;\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Q.6. Page No:37" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Phase current=27.712813 A\n", + "Power consumed=6.400000 KW\n", + "Phasor sum of all line currents= 0\n" + ] + } + ], + "source": [ + "import math\n", + "#Given\n", + "#A 3-ph supply connected to balanced delta load\n", + "VL=Vph=400; #in volts\n", + "Zph=15+1j*20; #Ohm\n", + "#Calculations\n", + "#(i)\n", + "Iph=Vph/abs(Zph); #Phase current\n", + "#(ii)\n", + "P=Iph**2*abs(Zph)*10**-3; #Power\n", + "#(iii)\n", + "IL=math.sqrt(3)*Iph; #Line current\n", + "#Display\n", + "print\"Phase current=%f A\"%IL;\n", + "print\"Power consumed=%f KW\"%P;\n", + "print\"Phasor sum of all line currents=\",0;\n", + "#SOLUTION IN THE TEXTBOOK IS WRONG" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "## Q.7 Page No:38" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Line Voltage=346.41 V\n", + "On reversing the phase connections,Line voltage remains unaffected\n" + ] + } + ], + "source": [ + "#Given\n", + "#In a 3-ph Star connected System\n", + "Vp=200;#Phase voltage in volts\n", + "#Calculations\n", + "#(a)\n", + "VL=math.sqrt(3)*Vp; #Line Voltage in volts\n", + "#(b)\n", + "#Line voltage remains unaffected\n", + "#Display\n", + "print\"Line Voltage=%.2f V\"%VL;\n", + "print\"On reversing the phase connections,Line voltage remains unaffected\";" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.8 Page No:39" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Total Power drawn=600.000000 Watts\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import cos\n", + "import cmath\n", + "#Given\n", + "#A 3-ph supply connected to 3-ph load\n", + "Vp=200; #Phase Voltage in volts\n", + "Zp=cmath.rect(100,60*math.pi/180); #Phase Impedance\n", + "#Calculations\n", + "Ip=Vp/abs(Zp); #Phase current in Amp\n", + "P=Vp*Ip*cos(cmath.phase(Zp)); #Power in Watts\n", + "P3ph=3*P;#3-ph Power\n", + "#Display\n", + "print\"Total Power drawn=%f Watts\"%P3ph;" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.9 Page No:39" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "W1=-4.843135 KW\n", + "W2=34.843135 KW\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arccos,cos\n", + "#Given\n", + "#A 3-ph motor\n", + "VL=500.0; #Line voltage in watts\n", + "pf=0.4; #Power factor\n", + "P=30*10**3; #Total power in KW\n", + "#Calculations\n", + "ph=arccos(pf);\n", + "IL=P/(math.sqrt(3)*VL*pf);\n", + "W1=VL*IL*cos((30*math.pi/180)+ph)*10**(-3); #Wattmeter-1 in KW\n", + "W2=VL*IL*cos((30*math.pi/180)-ph)*10**(-3); #Wattmeter-2 in KW\n", + "#Display\n", + "print\"W1=%f KW\"%W1;\n", + "print\"W2=%f KW\"%W2;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.10 Page No:39" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power=6.000000 KW\n", + "Power factor=0.654654\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arctan\n", + "#Given\n", + "#In a particular measuremet\n", + "W1=5000; #Wattmeter-1 reading\n", + "W2=1000;#Wattmeter-2 reading\n", + "#Calculations\n", + "P=(W1+W2)*10**-3; #Power\n", + "pf=cos(arctan(math.sqrt(3)*(W2-W1)/(W1+W2))); #Power Factor\n", + "#display\n", + "print\"Power=%f KW\"%P;\n", + "print\"Power factor=%f\"%pf;\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.11 Page No:40" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "W1=6.380724 watts\n", + "W2=50.037023 watts\n" + ] + } + ], + "source": [ + "import math\n", + "from numpy import arctan,arccos,cos\n", + "#Given\n", + "# A 3-ph motor has\n", + "VL=400.0; #Line voltage in volts\n", + "pf=0.75; #Power factor\n", + "P=26*10**3; #Power\n", + "#Calculations\n", + "ph=math.degrees(arccos(pf)); #Phase angle\n", + "IL=P/(math.sqrt(3)*VL*pf); #Line current\n", + "W1=VL*IL*cos(math.radians(30+ph))*10**(-3); #Wattmeter Reading-1\n", + "W2=VL*IL*cos(math.radians(30-ph))*10**(-3);#Wattmeter Reading-2\n", + "#Display\n", + "print\"W1=%f watts\"%W1;\n", + "print\"W2=%f watts\"%IL;\n", + "#Answers differing from Textbook" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q.12 Page No:40" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Power Factor=-0.804634\n" + ] + } + ], + "source": [ + "#In 3-ph supply\n", + "#Given\n", + "W1=1200; #Wattmeter Reading -1\n", + "W2=300; #Wattmeter Reading-2\n", + "#Calculations\n", + "pf=arctan(math.sqrt(3)*(W2-W1)/(W1+W2)); #Power factor\n", + "#Display\n", + "print\"Power Factor=%f\"%pf;\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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |