diff options
author | Trupti Kini | 2016-01-28 23:30:22 +0600 |
---|---|---|
committer | Trupti Kini | 2016-01-28 23:30:22 +0600 |
commit | 3a6859f2e7200d62f6cc320c42367dcede9c7731 (patch) | |
tree | 290129a6ed534fd00d9ecb31cfd3dda10a86474f /Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana | |
parent | 39d8a08165d74513440d0bd6ca8bf32ee9d32729 (diff) | |
download | Python-Textbook-Companions-3a6859f2e7200d62f6cc320c42367dcede9c7731.tar.gz Python-Textbook-Companions-3a6859f2e7200d62f6cc320c42367dcede9c7731.tar.bz2 Python-Textbook-Companions-3a6859f2e7200d62f6cc320c42367dcede9c7731.zip |
Added(A)/Deleted(D) following books
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch1.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch10.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch12.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch14.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch16.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch2.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch3.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch4.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch5.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch6.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch7.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch8.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch9.ipynb
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNi7.png
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNu1.png
A Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rp10.png
Diffstat (limited to 'Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana')
16 files changed, 3199 insertions, 0 deletions
diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch1.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch1.ipynb new file mode 100644 index 00000000..024118ad --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch1.ipynb @@ -0,0 +1,279 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter1 - Standards, Units & Dimensions" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.17 page 46" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "Y=90 \n", + "X=89 \n", + "Error_absolute=Y-X \n", + "print 'Absolute Error =',round(Error_absolute,2)\n", + "Error_relative=(Y-X)*100/Y \n", + "print 'Relative Error = %0.2f %%'%Error_relative\n", + "Accuracy_relative=1-Error_relative \n", + "print 'Accuracy relative =',round(Accuracy_relative,2)\n", + "Accuracy_percentage=100*Accuracy_relative \n", + "print 'Accuracy = %0.2f %%'%Accuracy_percentage" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Absolute Error = 1.0\n", + "Relative Error = 1.11 %\n", + "Accuracy relative = -0.11\n", + "Accuracy = -11.11 %\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.18 page 46" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "S=98+100+102+98+100+100+104+104+105+97 \n", + "n=10 \n", + "Avg=S/n \n", + "P=1-abs((104-Avg)/Avg) \n", + "print \"Precision for the 8th reading=%.2f\"%(P)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Precision for the 8th reading=0.97\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.19 page 47" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V=10 \n", + "I=20*10**-3 \n", + "RI=50 \n", + "R=(V/I)-RI \n", + "print \"The value of Resistance=%.0f ohm\"%(R)\n", + "dV=0.2 \n", + "dI=1*10**-3 \n", + "dRI=5 \n", + "dR=(dV/I)+(V*dI/I**2)+(dRI)\n", + "print \"Limiting error of resistance=%.0f ohm\"%(dR)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of Resistance=450 ohm\n", + "Limiting error of resistance=40 ohm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.20 page 47" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R0=5 \n", + "a=0.004 \n", + "T=30 \n", + "R=R0*(1+a*(T-20)) \n", + "print \"Resistance of the wire=%.1f ohm\"%(R)\n", + "#Let (dR/dR0) =b (dR/da)=c (dR/dT)=d\n", + "b=(1+a*(T-20)) \n", + "c=R0*(T-20) \n", + "d=R0*a \n", + "ur0=5*0.003 \n", + "ua=0.004*0.01 \n", + "ut=1 \n", + "uR=(b**2*ur0**2+c**2*ua**2+d**2*ut**2)**0.5 \n", + "print \"Uncertanity in resistance=%.2f ohm\"%(uR)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance of the wire=5.2 ohm\n", + "Uncertanity in resistance=0.03 ohm\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.21 page 47" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "X_mean=(15+20+25+30+35+45)/6 \n", + "print \"The sample mean of the temperature=%.2f degree C\"%(X_mean)\n", + "Y_mean=(1.9+1.93+1.97+2+2.01+2.01+1.94+1.95+1.97+2.02+2.02+2.04)/12*10**-6 \n", + "print \"The sample mean of the faliure=%.6f failures/hour\"%(Y_mean)\n", + "print 'from these values we get'\n", + "a=1.80*10**-6 \n", + "b=0.00226 \n", + "print 'Y=1.80+0.00226x is the required least square line'" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The sample mean of the temperature=28.33 degree C\n", + "The sample mean of the faliure=0.000002 failures/hour\n", + "from these values we get\n", + "Y=1.80+0.00226x is the required least square line\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.22 page 48" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "n=2 \n", + "k=1 \n", + "dof=n-k \n", + "chi_square=(3-5)**2/5+(7-5)**2/5 \n", + "print 'Chi square value =',chi_square\n", + "print 'From the dof and chi square value we find P=0.22'\n", + "print 'Hence there are 22% chance that the distribution is just the result of random fluctuations and the coin may be unweighted'" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Chi square value = 1.6\n", + "From the dof and chi square value we find P=0.22\n", + "Hence there are 22% chance that the distribution is just the result of random fluctuations and the coin may be unweighted\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 1.23 page 48" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "X_mean=501*1/5 \n", + "print \"Assigned Value=%.1f V\"%(X_mean)\n", + "sigma=((1/(5-1))*((100.2-X_mean)**2+(100.3-X_mean)**2+(100.2-X_mean)**2+(100.2-X_mean)**2+(100.1-X_mean)**2))**0.5 \n", + "#print 'For 95% confidance level student factor t is 2.78'\n", + "t=2.78 \n", + "n=5 \n", + "Ur=t*sigma/(n**0.5) \n", + "print \"Uncertanity=%.3f V\"%(Ur)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Assigned Value=100.2 V\n", + "Uncertanity=0.088 V\n" + ] + } + ], + "prompt_number": 7 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch10.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch10.ipynb new file mode 100644 index 00000000..99b5b7ae --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch10.ipynb @@ -0,0 +1,102 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter10 - Magnetic Measurements" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 10.1 page 229" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from math import pi\n", + "K=0.1*10**-3 \n", + "d=60 \n", + "N2=200 \n", + "phi2=K*d/(2*N2) \n", + "a2=25*10**-6 \n", + "B=phi2/a2 \n", + "N=300 \n", + "I=10 \n", + "l=0.1 \n", + "H=N*I/l \n", + "Permability_absolute=4*pi*10**-7 \n", + "Permability_relative=B/(Permability_absolute*H)\n", + "print \"Relative permability of iron = %.2f\"%(Permability_relative)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Relative permability of iron = 15.92\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 10.2 page 229" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "N1=2500 \n", + "I1=2 \n", + "l1=1 \n", + "a2=3*10**-4 \n", + "Permability_absolute=4*pi*10**-7 \n", + "phi2=Permability_absolute*N1*I1*a2/(l1) \n", + "N2=50 \n", + "theta=1 \n", + "l=10 \n", + "K=2*N2*phi2/(theta*l) \n", + "a=60*pi*10**-7 \n", + "print \"Galvanometer Constant=%.6f Wb turns/division\"%(K)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Galvanometer Constant=0.000019 Wb turns/division\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch12.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch12.ipynb new file mode 100644 index 00000000..c52962cf --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch12.ipynb @@ -0,0 +1,192 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter12 - Basic Transducers" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 12.1 page 244" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "K=4 \n", + "strain=1*10**-6 \n", + "R=150 \n", + "dR=K*strain*R*10**6 \n", + "print \"Change in resistance = %.1f micro-ohm\"%(dR)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Change in resistance = 600.0 micro-ohm\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 12.2 page 244" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import pi\n", + "d=0.03 \n", + "a=pi*d**2/4 \n", + "f=40000 \n", + "l=0.5 \n", + "E=3*10**10 \n", + "dl=f*l/(E*a) \n", + "print \"Change in length = %.6f m\"%(dl)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Change in length = 0.000943 m\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 12.3 page 245" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "d=10**-4 \n", + "A=6*10**-3 \n", + "permitivity_absolute=8.854*10**-12 \n", + "permitivity_relative=1\n", + "C=permitivity_absolute*permitivity_relative*A*10**12/d \n", + "print \"capacitance = %.2f pF\"%(C)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "capacitance = 531.24 pF\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 12.4 page 246" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print '1.5 cm core displacement produces 6V so'\n", + "d_15=6 \n", + "d_18=1.8*d_15/1.5\n", + "print \"1.8 cm core displacement produces = %.2f V\"%(d_18) \n", + "d_08=(-0.8)*(-d_15)/(-1.5) \n", + "print \"-0.8 cm core displacement produces = %.2f V\"%(d_08) \n", + "d_06=(-0.6)*(-d_15)/(-1.5) \n", + "print \"-0.6 cm core displacement produces = %.2f V\"%(d_06) " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "1.5 cm core displacement produces 6V so\n", + "1.8 cm core displacement produces = 7.20 V\n", + "-0.8 cm core displacement produces = -3.20 V\n", + "-0.6 cm core displacement produces = -2.40 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 12.5 page 247" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "k=4*10**3 \n", + "dx=0.04 \n", + "m=0.1 \n", + "acc=k*dx/m \n", + "accg=acc/9.8 \n", + "print \"acceleration=%.2f g\"%(accg)\n", + "fn=(1/2*pi)*(k/m)**0.5 \n", + "print \"Natural Frequency = %.2f Hz\"%(fn)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "acceleration=163.27 g\n", + "Natural Frequency = 0.00 Hz\n" + ] + } + ], + "prompt_number": 6 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch14.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch14.ipynb new file mode 100644 index 00000000..7d188756 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch14.ipynb @@ -0,0 +1,119 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter14 - Cathode Ray Oscilloscope" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 14.1 page 290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R=3 \n", + "V_pp =10*6 \n", + "Vrms=V_pp/(2*2**0.5) \n", + "Irms=Vrms/R \n", + "print \"R.M.S. value of current=%.2f A\"%(Irms)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "R.M.S. value of current=7.07 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 14.2 page 290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "T=3*10**-3 \n", + "f=1/T \n", + "print \"frequency of the voltage applied=%.2f m\"%(f)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "frequency of the voltage applied=333.33 m\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 14.3 page 290" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "tc=2*2.5 \n", + "print \"time constant=%.6f ms\"%(tc)\n", + "R=5*10**3 \n", + "C=(tc*10**-3/R)*10**6 \n", + "print \"Capacitance=%.2f uF\"%(C)\n", + "Tmax=10*R*C*10**-6 \n", + "fmax=1/Tmax \n", + "print \"Maximum frequency=%.2f m\"%(fmax)\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "time constant=5.000000 ms\n", + "Capacitance=1.00 uF\n", + "Maximum frequency=20.00 m\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch16.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch16.ipynb new file mode 100644 index 00000000..cc3153f0 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch16.ipynb @@ -0,0 +1,589 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter16 - Polyphase Systems" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.1 page 344" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print 'For star connected load'\n", + "Il=50000/((3**0.5)*440*0.85) \n", + "print \"Line current=%.2f A\"%(Il)\n", + "Iph=Il \n", + "print \"Phase current=%.2f A\"%(Iph)\n", + "print 'For Delta connected load'\n", + "Il=50000/((3**0.5)*440*0.85) \n", + "print \"Line current=%.2f A\"%(Il)\n", + "Iph=Il/(3**0.5) \n", + "print \"Phase current=%.2f A\"%(Iph)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "For star connected load\n", + "Line current=77.19 A\n", + "Phase current=77.19 A\n", + "For Delta connected load\n", + "Line current=77.19 A\n", + "Phase current=44.56 A\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.2 page 345" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print 'For star connection'\n", + "Zph=(12**2+5**2)**0.5 \n", + "Eph=440/(3**0.5) \n", + "Iph=Eph/Zph \n", + "Il=Iph \n", + "print \"Line current=%.2f A\"%(Il)\n", + "P_total=(3**0.5)*440*Il*12/(Zph*1000) \n", + "print \"Total Power=%.2f kW\"%(P_total)\n", + "\n", + "print 'For Delta connection'\n", + "Zph=(12**2+5**2)**0.5 \n", + "Eph=440 \n", + "Iph=Eph/Zph \n", + "Il=Iph*(3**0.5) \n", + "print \"Line current=%.2f A\"%(Il)\n", + "P_total=(3**0.5)*440*Il*12/(Zph*1000) \n", + "print \"Total Power=%.2f kW\"%(P_total)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "For star connection\n", + "Line current=19.54 A\n", + "Total Power=13.75 kW\n", + "For Delta connection\n", + "Line current=58.62 A\n", + "Total Power=41.24 kW\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.3 page 346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "pf=(1.8*1000)/(1100*(3**0.5)) \n", + "Z=1100/100 \n", + "R=Z*pf \n", + "print \"Resistance of the load=%.2f ohm\"%(R)\n", + "Xl=(121-108)**0.5 \n", + "L=Xl/314 \n", + "print \"Inductive reactance of the load=%.2f H\"%(L)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance of the load=10.39 ohm\n", + "Inductive reactance of the load=0.01 H\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.4 page 346" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import cos, pi\n", + "Eph=400/(3**0.5) \n", + "print \"\\nPhase voltage=%.2f V\"%(Eph)\n", + "P_total=(3**0.5)*400*30*cos(30*pi/180)/1000 \n", + "print \"Total power=%.2f kW\"%(P_total)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Phase voltage=230.94 V\n", + "Total power=18.00 kW\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.5 page 347" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Out_motor=80*735.5 \n", + "Input_motor=Out_motor/0.8 \n", + "I_alternator_phase=120.64 \n", + "I_motor_phase= I_alternator_phase/(3**0.5) \n", + "print \"Current in each motor phase=%.2f A\"%(I_motor_phase)\n", + "print \"Current in each generator phase=%.2f A\"%(I_alternator_phase)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in each motor phase=69.65 A\n", + "Current in each generator phase=120.64 A\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.6 page 348" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "El=400 \n", + "Eph=El \n", + "Impedance_per_phase= (10**2+15**2)**0.5 \n", + "Iph= 400/Impedance_per_phase \n", + "print \"Phase current=%.2f A\"%(Iph)\n", + "Il=Iph*3**0.5 \n", + "print \"Line current=%.2f A\"%(Il)\n", + "pf=10/Impedance_per_phase \n", + "print \"Power factor=%.2f \"%(pf)\n", + "P_total=(3**0.5)*El*Il*pf/1000 \n", + "print \"Total Power=%.2f kW\"%(P_total)\n", + "VAR=(3**0.5)*El*Il*15/(Impedance_per_phase*1000) \n", + "print \"Reactive volt ampers=%.2f KVAR\"%(VAR)\n", + "VA=(3**0.5)*El*Il/1000 \n", + "print \"Total Volt ampers=%.2f kVA\"%(VA)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Phase current=22.19 A\n", + "Line current=38.43 A\n", + "Power factor=0.55 \n", + "Total Power=14.77 kW\n", + "Reactive volt ampers=22.15 KVAR\n", + "Total Volt ampers=26.63 kVA\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.7 page 349" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print 'Star connections'\n", + "R=20 \n", + "Iph=440/(3**0.5*R) \n", + "P_total=3*Iph**2*R \n", + "print 'when one of the resistor get disconnected'\n", + "Iph=440/(2*20) \n", + "P_total_new=2*Iph**2*R \n", + "P_reduction=(P_total-P_total_new)*100/P_total \n", + "print \"Reduction in Power=%.2f percent\"%(P_reduction)\n", + "print 'Delta connections'\n", + "R=20 \n", + "Iph=440/(R) \n", + "P_total=3*Iph**2*R \n", + "print 'when one of the resistor get disconnected'\n", + "Iph=440/(20) \n", + "P_total_new=2*Iph**2*R \n", + "P_reduction=(P_total-P_total_new)*100/P_total \n", + "print \"Reduction in Power=%.2f percent\"%(P_reduction)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Star connections\n", + "when one of the resistor get disconnected\n", + "Reduction in Power=50.00 percent\n", + "Delta connections\n", + "when one of the resistor get disconnected\n", + "Reduction in Power=33.33 percent\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.8 page 350" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "R=3 \n", + "XL=4 \n", + "Z=(R**2+XL**2)**0.5 \n", + "Iph1=440/(3**0.5*Z) \n", + "IL1=Iph1 \n", + "print \"Line current=%.1f A\"%(IL1)\n", + "P=3*Iph1**2*R \n", + "print \"Power=%.0f W\"%(P)\n", + "pf1=R/Z \n", + "print \"power factor=%.2f (lag)\"%(pf1)\n", + "IL2=IL1*(4/5) \n", + "Iph2=IL2/3**0.5 \n", + "XL2=440/Iph2 \n", + "C2=1*10**6/(2*50*28.755) \n", + "print \"Capacitance=%.1f uF\"%(C2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Line current=50.8 A\n", + "Power=23232 W\n", + "power factor=0.60 (lag)\n", + "Capacitance=347.8 uF\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.9 page 350" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "IL=11000 \n", + "Eph=IL/3**0.5 \n", + "print \"\\nLine to neutral voltage=%.2f V\"%(Eph)\n", + "E_Each_phase=Eph \n", + "print \"\\nVoltage induced in Each phase winding=%.2f V\"%(E_Each_phase)\n", + "T=(242/360)*(1/50)*1000 \n", + "print \"\\nTime interval=%.2f ms\"%(T)\n", + "IL_peak=(2**0.5)*IL \n", + "print \"\\nPeak line voltage=%.2f V\"%(IL_peak)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Line to neutral voltage=6350.85 V\n", + "\n", + "Voltage induced in Each phase winding=6350.85 V\n", + "\n", + "Time interval=13.44 ms\n", + "\n", + "Peak line voltage=15556.35 V\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "16.10 page 351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "P_consumed=3000/3 \n", + "E_per_phase=440/(3**0.5) \n", + "IL=P_consumed/E_per_phase \n", + "print \"\\nCurrent in each line=%.2f A\"%(IL)\n", + "R=E_per_phase/IL \n", + "print \"\\nResistance of resistor=%.2f ohm\"%(R)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Current in each line=3.94 A\n", + "\n", + "Resistance of resistor=64.53 ohm\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.11 page 351" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "VL=1100 \n", + "IL=100 \n", + "pf=150*1000/(3**0.5*VL*IL) \n", + "E_per_phase=VL/3**0.5 \n", + "Zph=E_per_phase/100 \n", + "Rph=pf*Zph \n", + "Xc=(Zph**2-Rph**2)**0.5 \n", + "C=10**6/(2*pi*50*Xc) \n", + "print 'Circuit Constants are'\n", + "print \"\\nR=%.2f ohm\"%(Rph)\n", + "print \"\\nC=%.2f uF\"%(C)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Circuit Constants are\n", + "\n", + "R=5.00 ohm\n", + "\n", + "C=812.89 uF\n" + ] + } + ], + "prompt_number": 25 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.12 page 352" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import degrees, acos, tan\n", + "#P_input=W1+W2=15000........(i)\n", + "pf=0.4\n", + "phi=degrees(acos(0.4) )\n", + "a=tan(phi*pi/180) \n", + "#tand(phi)=(3**0.5)*(W1-W2)/(W1+W2)\n", + "#on solving W1-W2=3464.2 ..............(ii)\n", + "#From (i) and (ii) we can calculate\n", + "W1=9.232 \n", + "W2=5.768 \n", + "print \"\\nW1=%.2f kW\"%(W1)\n", + "print \"\\nW2=%.2fkW \"%(W2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "W1=9.23 kW\n", + "\n", + "W2=5.77kW \n" + ] + } + ], + "prompt_number": 26 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.13 page 352" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import atan\n", + "W1=10 \n", + "W2=-1.2 \n", + "P_absorbed=W1+W2 \n", + "print \"\\nPower=%.2f kW\"%(P_absorbed)\n", + "phi=degrees(atan((3**0.5)*(W1-W2)/(W1+W2)) )\n", + "pf=cos(phi*pi/180) \n", + "print \"\\nPower Factor=%.2f \"%(pf)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "Power=8.80 kW\n", + "\n", + "Power Factor=0.41 \n" + ] + } + ], + "prompt_number": 27 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 16.14 page 353" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "P_input=10*735.5/0.82 \n", + "#P_input=W1+W2=8974........(i)\n", + "pf=0.4\n", + "phi=degrees(acos(0.83))\n", + "a=tan(phi*pi/180) \n", + "#tand(phi)=(3**0.5)*(W1-W2)/(W1+W2)\n", + "#on solving W1-W2=3482 ..............(ii)\n", + "#From (i) and (ii) we can calculate\n", + "W1=6.228 \n", + "W2=2.746 \n", + "print \"\\nW1=%.2f kW\"%(W1)\n", + "print \"\\nW2=%.2fkW \"%(W2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "\n", + "W1=6.23 kW\n", + "\n", + "W2=2.75kW \n" + ] + } + ], + "prompt_number": 28 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch2.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch2.ipynb new file mode 100644 index 00000000..0f2beb0c --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch2.ipynb @@ -0,0 +1,143 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter2 - Calculation of Capacitance & Inductance" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 2.1 page 69" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from numpy import pi\n", + "N=400 \n", + "a=4*10**-4 \n", + "MUo=4*pi*10**-7 \n", + "MUr=800 \n", + "l=0.3 \n", + "L=(MUo*MUr*a*N**2)/l \n", + "print \"Self inductance of the coil=%.3f H\"%(L)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Self inductance of the coil=0.214 H\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 2.2 page 69" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "P0=8.854*10**-12 \n", + "Pr1=5.5 \n", + "d1=10**-3 \n", + "b1=d1/Pr1 \n", + "Pr2=2.2 \n", + "d2=10**-3 \n", + "b2=d2/Pr2 \n", + "Pr3=1.5 \n", + "d3=10**-3 \n", + "b3=d3/Pr3 \n", + "A=100*10**-4 \n", + "C=P0*A/(b1+b2+b3) \n", + "V=5000 \n", + "Q=C*V*10**6 \n", + "print \"stored charge in the capacitor=%.2f coulombs\"%(Q)\n", + "D=Q/A \n", + "D=146*10**-6 \n", + "g1=D*10**-3/(P0*Pr1) \n", + "print \"potential gradient g1=%.2f kV/m\"%(g1)\n", + "g2=D*10**-3/(P0*Pr2) \n", + "print \"potential gradient g2=%.2f kV/m\"%(g2)\n", + "g3=D*10**-3/(P0*Pr3) \n", + "print \"potential gradient g3=%.2f kV/m\"%(g3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "stored charge in the capacitor=0.34 coulombs\n", + "potential gradient g1=2998.13 kV/m\n", + "potential gradient g2=7495.33 kV/m\n", + "potential gradient g3=10993.15 kV/m\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 2.3 page 69" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log10\n", + "a=0.5/2 \n", + "b=0.25+0.4 \n", + "Pr=4.5 \n", + "C=(0.024*Pr)/(log10(b/a))\n", + "C_total=300*C\n", + "print \"capacitance of the cable=%.2f uF\"%(C_total)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "capacitance of the cable=78.08 uF\n" + ] + } + ], + "prompt_number": 3 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch3.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch3.ipynb new file mode 100644 index 00000000..4ebe9375 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch3.ipynb @@ -0,0 +1,406 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter3 - Principal of Electrical Measurement & Measuring Instruments" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.1 page 85" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from math import asin, pi\n", + "print 'For spring controlled Tc is proportional to theta'\n", + "theta=90*(3/5)**2 \n", + "print \"Deflection for spring controlled instrument=%.2f degree\"%(theta)\n", + "print 'For gravity controlled Tc is proportional to sin(theta)'\n", + "theta=asin((3/5)**2)*180/pi \n", + "print \"Deflection for gravity controlled instrument=%.2f degree\"%(theta)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "For spring controlled Tc is proportional to theta\n", + "Deflection for spring controlled instrument=32.40 degree\n", + "For gravity controlled Tc is proportional to sin(theta)\n", + "Deflection for gravity controlled instrument=21.10 degree\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.2 page 85" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "I=1000 \n", + "Ia=50*10**-3 \n", + "Is=I-Ia \n", + "Ra=10 \n", + "Va=Ia*Ra \n", + "Rs=10*Va/Is \n", + "print \"The shunt resistance=%.2f ohm\"%(Rs)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The shunt resistance=0.01 ohm\n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.3 page 85" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Is=150*10**-6 \n", + "I=50*10**-6 \n", + "R=4*10**3 \n", + "Rt=R*I/Is \n", + "print \"the value of total resistance=%.2f ohm\"%(Rt)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "the value of total resistance=1333.33 ohm\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.4 page 86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V=1 \n", + "R=2*10**3 \n", + "I=(V/R)*1000 \n", + "print \"Actual current=%.2f mA\"%(I)\n", + "Rm=1000 \n", + "Rt=R+Rm \n", + "I=(V/Rt)*1000 \n", + "print \"Current when Rm is 1000 ohm =%.2f mA\"%(I)\n", + "Rm=100 \n", + "Rt=R+Rm \n", + "I=(V/Rt)*1000 \n", + "print \"Current when Rm is 100 ohm =%.2f mA\"%(I)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Actual current=0.50 mA\n", + "Current when Rm is 1000 ohm =0.33 mA\n", + "Current when Rm is 100 ohm =0.48 mA\n" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.5 page 86" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "I=20 \n", + "E_expected=2.5*I/100 \n", + "print \"Expected error=+/-%.2f mA\"%(E_expected)\n", + "print 'Actual reading for 5mA indication will be 4.5mA to 5.5mA'\n", + "print 'Actual reading for 15mA indication will be 14.5mA to 15.5mA'\n", + "E_5mA=(0.5/5)*100 \n", + "print \"Error for 5mA reading=%.2f percent\"%(E_5mA)\n", + "E_15mA=(0.5/15)*100 \n", + "print \"Error for 15mA reading=%.2f percent\"%(E_15mA)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Expected error=+/-0.50 mA\n", + "Actual reading for 5mA indication will be 4.5mA to 5.5mA\n", + "Actual reading for 15mA indication will be 14.5mA to 15.5mA\n", + "Error for 5mA reading=10.00 percent\n", + "Error for 15mA reading=3.33 percent\n" + ] + } + ], + "prompt_number": 17 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.6 page 87" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V=20 \n", + "A=20*10**-6 \n", + "Ra=25*10**3 \n", + "Rx=((V/A)-Ra)*10**-3 \n", + "print \"The resistance = %.0f Kohm\"%(Rx)\n", + "E_voltmeter=(2/(100*20))*20*100 \n", + "E_current=(2/(100*20))*50*100 \n", + "E_total=E_voltmeter+E_current \n", + "print \"Maximum possible error=%.1f percent\"%(E_total)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resistance = 975 Kohm\n", + "Maximum possible error=7.0 percent\n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.7 page 88" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V=20 \n", + "A=20*10**-3 \n", + "Rv=10*10**3*20 \n", + "Rx=(V/(A-(V/Rv)))/1000 \n", + "print \"The resistance=%.2f Kohm\"%(Rx)\n", + "E_total=2.5+2.5 \n", + "print \"Maximum possible error=%.0f percent\"%(E_total)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The resistance=1.01 Kohm\n", + "Maximum possible error=5 percent\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.8 page 88" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Sp_constant=10.5*10**-6*pi/180 \n", + "deflection=83 \n", + "Td=Sp_constant*deflection \n", + "I1=10 \n", + "K=0.078 \n", + "I2=(Td/(K*I1))*10**6 \n", + "print \"Current in the voltage coil=%.2f uA\"%(I2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Current in the voltage coil=19.50 uA\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.9 page 89" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "AH=5*1/2 \n", + "print \"AH passed in 30 minuties = %.1f percent\"%(AH)\n", + "V_assumed=0.51*1000/AH \n", + "V_actual=200 \n", + "Error=V_actual-V_assumed \n", + "Correction=-Error \n", + "Cor=Correction*100/V_actual \n", + "print \"Correction required = %.1f percent\"%(Cor)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "AH passed in 30 minuties = 2.5 percent\n", + "Correction required = 2.0 percent\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.10 page 89" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "E_unity_pf=230*6*4*1/1000 \n", + "M_constant=2208/E_unity_pf \n", + "print \"Meter constant=%.1f rev/kWh\"%(M_constant)\n", + "E_consumed=1472/M_constant \n", + "pf=(E_consumed/(230*5*4))*1000 \n", + "print \"power factor=%.2f\"%(pf)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Meter constant=400.0 rev/kWh\n", + "power factor=0.80\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 3.11 page 90" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import acos\n", + "phi=acos(0.8)*180/pi \n", + "alpha_actual=85-phi \n", + "alpha_true=90-phi \n", + "er=(alpha_true-alpha_actual)/(alpha_true)*100 \n", + "print \"percentage error at full load = %.2f\"%(er)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "percentage error at full load = 9.41\n" + ] + } + ], + "prompt_number": 23 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch4.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch4.ipynb new file mode 100644 index 00000000..ab30f304 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch4.ipynb @@ -0,0 +1,291 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter4 - Measurement of Resistance" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.1 page 121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from math import log10\n", + "t=20 \n", + "C=8*10**-10 \n", + "E=200 \n", + "e=150 \n", + "a=log10(E/e)\n", + "R=(0.4343*t)/(C*a)*10**-6 \n", + "print \"Insulation resistance = %.2f mega-ohm\"%(R)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Insulation resistance = 86902.59 mega-ohm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.2 page 121" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "t=600 \n", + "C=2.5*10**-12 \n", + "E=500 \n", + "e=300 \n", + "a=log10(E/e)\n", + "R=(0.4343*t)/(C*a) \n", + "print \"Insulation resistance=%.2f mega-ohm\"%(R/1e6)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Insulation resistance=469833614.93 mega-ohm\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.3 page 122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import log\n", + "#V=Eexp(-t/tc) where tc= RC=Time constant\n", + "t=30 \n", + "V=125 \n", + "E=200 \n", + "tc=-30/log(V/E) \n", + "R=(7/15)*tc-7 \n", + "print \"Insulation resistance=%.2f mega-ohm\"%(R)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Insulation resistance=22.79 mega-ohm\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.4 page 122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Q=3000 \n", + "S=0.1 \n", + "M=2000 \n", + "X=Q*S/M \n", + "print \"The value of X=%.2f ohm\"%(X)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The value of X=0.15 ohm\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.5 page 122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "lx=55 \n", + "ly=100-lx \n", + "Y=100 \n", + "X=Y*(lx/ly) \n", + "print \"Resistance of the field coil=%.2f ohm\"%(X)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance of the field coil=122.22 ohm\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.6 page 122" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "p=200.7 \n", + "q=400 \n", + "S=200.05*10**-6 \n", + "P=200.5 \n", + "Q=400 \n", + "r=1400*10**-6 \n", + "X=((P*S/Q)+((q*r)/(p+q))*((P/Q)-(p/q)))*10**6 \n", + "print \"Unknown resistance=%.2f micro-ohm\"%(X)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Unknown resistance=99.81 micro-ohm\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.7 page 123" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "E=230 \n", + "V1=60 \n", + "V2=40 \n", + "Rv=50000 \n", + "R1=((E-(V1+V2))/V2)*Rv*10**-3 \n", + "print \"Resistance between positive and earth=%.2f Kohm\"%(R1)\n", + "R2=((E-(V1+V2))/V1)*Rv*10**-3 \n", + "print \"\\nResistance between -ve and earth=%.2f Kohm\"%(R2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance between positive and earth=162.50 Kohm\n", + "\n", + "Resistance between -ve and earth=108.33 Kohm\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 4.8 page 124" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Q=100.5 \n", + "M=300 \n", + "q=100.6 \n", + "m=300.25 \n", + "r=0.1 \n", + "S=0.0045 \n", + "X=((M*S/Q)+((r)/(r+m*q))*((M*q/Q)-(m)))*10**6 \n", + "print \"Unknown resistance=%.2f micro-ohm\"%(X)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Unknown resistance=13433.00 micro-ohm\n" + ] + } + ], + "prompt_number": 9 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch5.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch5.ipynb new file mode 100644 index 00000000..6c78bed3 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch5.ipynb @@ -0,0 +1,187 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter5 - Potentiometer" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 5.1 page 139" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "Ipq=4/(3+4) \n", + "Vpq=Ipq*3 \n", + "Vpq_per_cm=Vpq/100 \n", + "Dpx=1.0186/Vpq_per_cm \n", + "print \"Distance PX = %.2f cm\"%(Dpx)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Distance PX = 59.42 cm\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 5.2 page 139" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V_per_cm=1.0186/60 \n", + "#When S is replaced by a dry cell we get PK=85 cm for null deflection\n", + "Dpk=85 \n", + "V_dry_cell=Dpk*V_per_cm \n", + "print \"Voltage of dry cell=%.2f V\"%(V_dry_cell)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage of dry cell=1.44 V\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 5.3 page 140" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Vpq=(1.02*5/2500)*1000 \n", + "Lpq=1.2*100/Vpq \n", + "print \"Length of PQ=%.2f m\"%(Lpq)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Length of PQ=58.82 m\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 5.4 page 140" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "l2=(10/3)*(1.5/1.5)*(9/15)**2 \n", + "print \"Length of wire=%.2f m\"%(l2)\n", + "a1=0.0004 \n", + "a2=0.0003 \n", + "R2=1 \n", + "R1=1.5*R2 \n", + "T=100 \n", + "Rp=R1*(1+a1*T) \n", + "Rq=R2*(1+a2*T) \n", + "R=Rp/Rq \n", + "print \"Ratio of resistances=%.2f\"%(R)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Length of wire=1.20 m\n", + "Ratio of resistances=1.51\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 5.5 page 141" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "emf_std_cell=1.0183 \n", + "emf_cell=70/50*emf_std_cell \n", + "print \"e.m.f. of the cell=%.2f V\"%(emf_cell)\n", + "V_read=1.35 \n", + "V_cal=1.32379 \n", + "error_voltmeter_percent=((V_read-V_cal)/V_cal)*100 \n", + "print \"Perentage error of the voltmeter = %.2f\"%(error_voltmeter_percent)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "e.m.f. of the cell=1.43 V\n", + "Perentage error of the voltmeter = 1.98\n" + ] + } + ], + "prompt_number": 7 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch6.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch6.ipynb new file mode 100644 index 00000000..5930b89e --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch6.ipynb @@ -0,0 +1,186 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter6 - Location of the Faults" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 6.1 page 155" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "r=250 \n", + "s=1000 \n", + "l=1000 \n", + "x=r*l/s \n", + "print \"Position of the fault=%.1fm\"%(x)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Position of the fault=250.0m\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 6.2 page 156" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "r=600 \n", + "s=1000 \n", + "El=500*30/50 \n", + "l=450+El \n", + "x=r*l/s \n", + "print \"Position of the fault=%.1f m\"%(x)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Position of the fault=450.0 m\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 6.3 page 156" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R_armature=0.256/16 \n", + "print \"Armature Resistance=%.2f ohm\"%(R_armature)\n", + "R_armature_true=0.256/(16-(0.256/10)) \n", + "Error=R_armature-R_armature_true \n", + "Error_percentage=Error*100/R_armature_true \n", + "print \"\\nPercentage Error=%.2f\"%(Error_percentage)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Armature Resistance=0.02 ohm\n", + "\n", + "Percentage Error=-0.16\n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 6.4 page 157" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R1=45 \n", + "R2=100-R1 \n", + "l=500 \n", + "x=2*l*R1/(R1+R2) \n", + "print \"Position of the fault from the test end=%.1f m\"%(x)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Position of the fault from the test end=450.0 m\n" + ] + } + ], + "prompt_number": 10 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 6.5 page 157" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "r3=300 \n", + "r2=1500 \n", + "r1=15 \n", + "R=(r3/r2)*r1 \n", + "l=4000 \n", + "r3=180 \n", + "d=(2*l/R)*(R*r2-r3*r1)/(r1+r2) \n", + "print \"Distance of the fault=%.2fm\"%(d)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Distance of the fault=3168.32m\n" + ] + } + ], + "prompt_number": 11 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch7.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch7.ipynb new file mode 100644 index 00000000..5e1ad649 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch7.ipynb @@ -0,0 +1,354 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter7 - Measurement of Capacitance & Inductance" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.1 page 174" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#The coil has resistance of R ohm and inductance L2\n", + "#ZKL=25+j(2*pi*f)*0.05 \n", + "ZLM=100 \n", + "#ZKN=(R+2)+j(2*pi*f)*L2 \n", + "ZNM=100 \n", + "#Now (ZKL/ZLM)=(ZKN/ZNM)\n", + "#((25+j(2*pi*f)*0.05)/100)=((R+2)+j(2*pi*f)*L2/100)\n", + "#Equating Real and imaginary parts\n", + "#we have 25=R+2\n", + "#2*pi*f)*0.05=2*pi*f)*L2\n", + "R=23 \n", + "L2=50 \n", + "print \"Resistance=%.0f ohm\"%(R)\n", + "print \"Inductance=%.0f mH\"%(L2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance=23 ohm\n", + "Inductance=50 mH\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.2 page 175" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from math import atan, degrees, pi\n", + "C1=50*10**-12 \n", + "r2=1500/pi \n", + "r3=120 \n", + "Cs=C1*r2/r3*10**12 \n", + "print \"Cable capacitance=%.1f pF\"%(Cs)\n", + "C2=0.95*10**-6 \n", + "rs=C2*r3/(C1*10**6) \n", + "print \"Parallel loss resistance=%.2f Mega-ohm\"%(rs)\n", + "w=314 \n", + "Loss_angle=degrees(atan(rs*w*Cs) )\n", + "print \"Loss angle=%.1f degree\"%(Loss_angle)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Cable capacitance=198.9 pF\n", + "Parallel loss resistance=2.28 Mega-ohm\n", + "Loss angle=90.0 degree\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.3 page 176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "C3=106*10**-12 \n", + "C1=0.35*10**-6 \n", + "R1=318 \n", + "R2=130 \n", + "C2=C3*R1/R2 \n", + "Rx=R2*C1/C3 \n", + "print \"Series Resistance = %.2f ohm\"%(Rx)\n", + "wr=314 \n", + "pf=wr*Rx*C2 \n", + "print \"Power factor = %.2f\"%(pf)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Series Resistance = 429245.28 ohm\n", + "Power factor = 0.03\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.4 page 176" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Q=10 \n", + "Cs=0.2 \n", + "P=2 \n", + "Cx=Q*Cs/P \n", + "print \"Capacitance = %.1f uF\"%(Cx)\n", + "S=5 \n", + "rx=P*S/Q \n", + "print \"Resistance = %.0f Kohm\"%(rx)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Capacitance = 1.0 uF\n", + "Resistance = 1 Kohm\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.5 page 177" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "S=900 \n", + "P=1.5*10**3 \n", + "Q=2*10**3 \n", + "Cs=0.2*10**-6 \n", + "rx=S*P/Q \n", + "print \"Resistance=%.0f ohm\"%(rx)\n", + "Lx=P*Cs*S \n", + "print \"Inductance=%.2f H\"%(Lx)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance=675 ohm\n", + "Inductance=0.27 H\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.6 page 178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R1=2 \n", + "R2=1 \n", + "R4=500 \n", + "L4=0.1\n", + "R3=R1*R4/R2 \n", + "print \"Resistance=%.0f ohm\"%(R3)\n", + "L3=R1*L4/R2 \n", + "print \"Inductance=%.2f H\"%(L3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance=1000 ohm\n", + "Inductance=0.20 H\n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.7 page 178" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "S=0.875 \n", + "P=1.35*10**3 \n", + "Q=1*10**3 \n", + "Cs=0.1*10**-6 \n", + "rx=S*P/Q \n", + "print \"Resistance = %.2f ohm\"%(rx)\n", + "Lx=P*Cs*S*10**3 \n", + "print \"Inductance = %.3f mH\"%(Lx)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance = 1.18 ohm\n", + "Inductance = 0.118 mH\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.8 page 179" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "r1=250 \n", + "r4=1200 \n", + "r2=10**6 \n", + "C4=4*10**-5 \n", + "r3=r1*r4/r2 \n", + "print \"Resistance=%.2f ohm\"%(r3)\n", + "C3=r2*C4/r1 \n", + "print \"Capacitance=%.2f uF\"%(C3)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance=0.30 ohm\n", + "Capacitance=0.16 uF\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 7.9 page 180" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "R2=1000 \n", + "R4=833 \n", + "f=50 \n", + "w=2*pi*f \n", + "C=0.38*10**-6 \n", + "R3=16800 \n", + "R1=(R2*R3*R4*w**2*C**2)/(1+w**2*R4**2*C**2) \n", + "print \"Resistance = %.2f ohm\"%(R1)\n", + "L=R2*R3*C/(1+w**2*R4**2*C**2) \n", + "print \"Inductance = %.2f H\"%(L)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Resistance = 197.49 ohm\n", + "Inductance = 6.32 H\n" + ] + } + ], + "prompt_number": 9 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch8.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch8.ipynb new file mode 100644 index 00000000..6ab0b32c --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch8.ipynb @@ -0,0 +1,108 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter8 - Measurement of Power" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 8.1 page 189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "ZL=220/2 \n", + "print \"Load impedance=%.1f ohm\"%(ZL)\n", + "Z_total=220/4 \n", + "print \"Impedance of the combination=%.2f ohm\"%(Z_total)\n", + "I1=2 \n", + "I2=2.5 \n", + "I3=4 \n", + "P=(Z_total/2)*(I3**2-I1**2-I2**2) \n", + "print \"Power absorbed by load=%.2f W\"%(P)\n", + "pf=P/(220*2**2) \n", + "print \"power factor of load=%.2f\"%(pf)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load impedance=110.0 ohm\n", + "Impedance of the combination=55.00 ohm\n", + "Power absorbed by load=155.25 W\n", + "power factor of load=0.18\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 8.2 page 189" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "I=125/10 \n", + "ZL=50/I \n", + "print \"Load impedance = %.1f ohm\"%(ZL)\n", + "Z_total=150/I \n", + "print \"Impedance of the combination = %.2f ohm\"%(Z_total)\n", + "I1=125 \n", + "I2=50 \n", + "I3=150 \n", + "P=(1/(2*10))*(I3**2-I1**2-I2**2) \n", + "print \"Power absorbed by load = %.2f W\"%(P)\n", + "Pr=I**2*10 \n", + "print \"Power consumed by the resistor = %.2f W\"%(Pr)\n", + "pf=P/(50*I) \n", + "print \"power factor of load = %.2f\"%(pf)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Load impedance = 4.0 ohm\n", + "Impedance of the combination = 12.00 ohm\n", + "Power absorbed by load = 218.75 W\n", + "Power consumed by the resistor = 1562.50 W\n", + "power factor of load = 0.35\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch9.ipynb b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch9.ipynb new file mode 100644 index 00000000..5934ce4b --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/ch9.ipynb @@ -0,0 +1,243 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter9 - Instrument Transformers" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.1 page 203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from cmath import polar, sin\n", + "from __future__ import division\n", + "n=300/1 \n", + "Z2=1.5+1J \n", + "I2=5 \n", + "E2=I2*Z2\n", + "E1=E2/n \n", + "from math import atan, degrees, sin, cos\n", + "alpha=(atan(1/1.5))\n", + "Io=(100+40*1J)\n", + "delta=(atan(40/100) )\n", + "sigma=-(Io*sin(alpha+delta))*100/(n*I2) \n", + "print \"Ratio error=%.2f percent\"%abs(sigma)\n", + "bet=(Io*cos(alpha+delta))/(n*I2) \n", + "print \"Phase angle=%.2f degree\"%abs(bet)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ratio error=5.92 percent\n", + "Phase angle=0.04 degree\n" + ] + } + ], + "prompt_number": 20 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.2 page 203" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "I_ratio=500/5 \n", + "n=1/100 \n", + "I2=300/100 \n", + "print \"Secondary current=%.2f A\"%(I2)\n", + "V2=I2*1.5 \n", + "print \"Secondary voltage=%.2f V\"%(V2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Secondary current=3.00 A\n", + "Secondary voltage=4.50 V\n" + ] + } + ], + "prompt_number": 21 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.3 page 204" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "V_line=200*33000/220 \n", + "print \"Voltage on line=%.0f \"%V_line\n", + "I_line=4*100/5 \n", + "print \"Current in line=%.0f A\"%(I_line)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Voltage on line=30000 \n", + "Current in line=80 A\n" + ] + } + ], + "prompt_number": 22 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.4 page 205" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "n=1000/5 \n", + "Ie=0.7*1000/100 \n", + "Tp=1 \n", + "n=200 \n", + "Ts=200 \n", + "R_actual=Ts+(7/5) \n", + "Error_ratio=(200-R_actual)*100/R_actual \n", + "print \"Ratio error=%.2f percent\"%(Error_ratio)\n", + "Ts=200-(0.5*200/100) \n", + "n=199/1 \n", + "R_actual=Ts+(7/5) \n", + "Error_ratio=(200-R_actual)*100/R_actual \n", + "print \"Ratio error=%.2f percent\"%(Error_ratio)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ratio error=-0.70 percent\n", + "Ratio error=-0.20 percent\n" + ] + } + ], + "prompt_number": 23 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.5 page 206" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "Vp=1000 \n", + "Vs=100 \n", + "n=Vp/Vs \n", + "pf_no_load=0.4 \n", + "sina=0.4 \n", + "cosa= (1-sina**2)**0.5 \n", + "tana=sina/cosa \n", + "Im=0.02 \n", + "Ie=Im*tana \n", + "xp=66.2 \n", + "rp=94.5 \n", + "#At no load Is=0 so\n", + "theta=((Ie*xp)-(Im*rp))/(n*Vs) \n", + "print \"Phase angle error at no load=%.4f\"%(theta)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Phase angle error at no load=-0.0013\n" + ] + } + ], + "prompt_number": 24 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Exa 9.6 page 207" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "E2=((1.8+5*0.16)**2+(2.4+5*0.195)**2)**0.5 \n", + "pf2=2.6/E2 \n", + "AT_sec=600 \n", + "sina=3.375/E2 \n", + "AT_pri=600+10.1*pf2+13.4*sina \n", + "I1=AT_pri/40 \n", + "Ratio_error=(15-I1)*100/I1 \n", + "print \"Ratio error=%.2f percent\"%(Ratio_error)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ratio error=-2.72 percent\n" + ] + } + ], + "prompt_number": 25 + } + ], + "metadata": {} + } + ] +} diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNi7.png b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNi7.png Binary files differnew file mode 100644 index 00000000..ec3b80a3 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNi7.png diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNu1.png b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNu1.png Binary files differnew file mode 100644 index 00000000..14d811b3 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rNu1.png diff --git a/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rp10.png b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rp10.png Binary files differnew file mode 100644 index 00000000..193c45a7 --- /dev/null +++ b/Electrical_Measurements_And_Measuring_Instruments_by_N._V._Suryanarayana/screenshots/rp10.png |