From 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Fri, 12 May 2017 18:53:46 +0530 Subject: Removed duplicates --- .../Chapter_5_Force_Torque_and_Shaft.ipynb | 265 +++++++++++++ .../Chapter_5_Force_Torque_and_Shaft_power.ipynb | 265 ------------- sample_notebooks/vijayadurga/sample.ipynb | 410 +++++++++++++++++++++ sample_notebooks/vijayadurga/sample_(chapter.ipynb | 410 --------------------- 4 files changed, 675 insertions(+), 675 deletions(-) create mode 100755 sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft.ipynb delete mode 100755 sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft_power.ipynb create mode 100755 sample_notebooks/vijayadurga/sample.ipynb delete mode 100755 sample_notebooks/vijayadurga/sample_(chapter.ipynb (limited to 'sample_notebooks/vijayadurga') diff --git a/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft.ipynb b/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft.ipynb new file mode 100755 index 00000000..379da0ca --- /dev/null +++ b/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft.ipynb @@ -0,0 +1,265 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5 Force Torque and Shaft power Measurement" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5_1 pgno:204" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x=(Sg*sig_f*(1+v))/(2*E)\n", + "('a voltmeter with a maximum range of mV is suitable for measurement', 94.9385766342288)\n", + "Round it off to get the suitable range voltmeter\n" + ] + } + ], + "source": [ + "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", + "#Caption : Load cell\n", + "# Example 1# Page 294\n", + "from math import sqrt\n", + "\n", + "Sg=2.; # Strain gage factor\n", + "Rg=120.; # Gage resistance\n", + "v=0.3 # poissons ratio\n", + "E=210*10**9; # for steel\n", + "Pd=1. #('enter the power dissipation capacity=:')\n", + "# Looking for a suitable voltage measuring system\n", + "sig_f=700*10**6 #('enter the fatigue strength=:')\n", + "P_max=10000. #('enter the maximum load=:')\n", + "# For a load cell of square cross-section d,\n", + "d=sqrt(P_max/sig_f);\n", + "Ei=sqrt(4*Rg*Pd) #input excitation to the bridge circuit\n", + "x=(Sg*sig_f*(1+v))/(2*E);\n", + "dEo_max=x*Ei*10**3;\n", + "print (\"x=(Sg*sig_f*(1+v))/(2*E)\")\n", + "print ('a voltmeter with a maximum range of mV is suitable for measurement',dEo_max)\n", + "print (\"Round it off to get the suitable range voltmeter\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5_2 pgno:295" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "('(dE/V)_max= d\\n ', 4285714.285714285)\n", + "Sensitivity of this load cell is nV/N/per unit excitation 42.8571428571\n" + ] + } + ], + "source": [ + "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", + "#Caption : Load cell\n", + "# Example 2# Page 295\n", + "\n", + "b=.2 #('enter the width of load cell=:')\n", + "h=.05 #('enter the thickness of load cell=:')\n", + "Sg=2.;\n", + "Rg=120.;\n", + "sig_f=150*10**6 #('enter the fatigue strength=:')\n", + "E=70.; #(in GPa) for aluminium\n", + "v=0.33; #poissons ratio\n", + "# Let dE/V_max be represented by W\n", + "W=Sg*sig_f/E;\n", + "print('(dE/V)_max= d\\n ',W)\n", + "P_max=100000. #('enter the value of maximum load=:')\n", + "l=sig_f*b*h**2/(6*P_max);\n", + "\n", + "S=(6*Sg*l)/(E*b*h**2);\n", + "print'Sensitivity of this load cell is nV/N/per unit excitation',S\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5_3 pgno:296" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sensitivity of this load cell is micro V/N\n", + "0.13\n", + "The maximum density that can be achieved without endangering the strain gage sensors is micro V/N\n", + "0.284815729903\n", + "The voltage ratio is mV/V 3.9\n" + ] + } + ], + "source": [ + "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", + "#Caption : Load cell\n", + "# Example 3# Page 296\n", + "from math import sqrt\n", + "Sg=2;\n", + "v=0.3; #poissons ratio\n", + "Ei=10. #('enter the excitation voltage=:')\n", + "A=5*10**-4 #('enter the area of load cell=:')\n", + "E=200.; #(in Gpa) Youngs modulus\n", + "# Let sensitivity Eo/P be represented by Se\n", + "Se=Sg*(1+v)*Ei/(2*A*E)*.001;\n", + "print'Sensitivity of this load cell is micro V/N\\n',Se\n", + "Rg=120. #given\n", + "Pd=1. #('enter the power dissipated in each gage=:')\n", + "Ei_max=sqrt(4*Rg*Pd)\n", + "Se_max=Sg*(1+v)*Ei_max/(2*A*E)*.001\n", + "print'The maximum density that can be achieved without endangering the strain gage sensors is micro V/N\\n',Se_max\n", + "# Let (Eo/Ei)_max be represented by Em\n", + "sig_f=600*10**6 #('enter the fatigue strength=:')\n", + "Em=Sg*sig_f*(1+v)/(2*E)*10**-6\n", + "print'The voltage ratio is mV/V',Em\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5_4 pgno:302" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "('Relative displacement is d', 1.9999999999999997e-08)\n", + "wnc**2 is approx. 10**9. So,\n", + "Z is approx. 20nm(rms)\n", + "Actual force transmitted to the plate is d N 18.0260791198\n" + ] + } + ], + "source": [ + "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", + "#Caption : Piezoelectric Transducers\n", + "# Example 4# Page 302\n", + "from math import sqrt,pi\n", + "mc=0.04 #('enter the connector mass=:')\n", + "m=0.01 #('enter the seismic mass=:')\n", + "k=10**9 #('enter the stiffness of the sensing element=:')\n", + "Sf=.005 #('enter the sensitivity of the transducer=:')\n", + "Xi=100*10**-6 # ('enter the displacement amplitude of the shaker vibration=:')\n", + "Eo=.1 #('enter the reading of voltage recorder connected to the transducer=:')\n", + "wnc=sqrt(k/(m+mc));\n", + "R=20; #20N (rms)\n", + "Z=(1/(m+mc))*(1/wnc**2)*R;\n", + "print('Relative displacement is d',Z)\n", + "print(\"wnc**2 is approx. 10**9. So,\")\n", + "print(\"Z is approx. 20nm(rms)\")\n", + "f=100.; # given\n", + "\n", + "F=R-((2*pi*f)**2*(m+mc)*Xi);\n", + "print'Actual force transmitted to the plate is d N',F\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5_5 pgno:308" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The load torque is d N-m 1636.24617374\n" + ] + } + ], + "source": [ + "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", + "#Caption : Torque measurement on rotating shaft\n", + "# Example 5# Page 308\n", + "Sg=2.;\n", + "Rg=120.;\n", + "G=80*10**9 #('enter the sheer modulus of elasticity=:')\n", + "D=0.05 #('enter the shaft diameter=:')\n", + "dR=0.1 # given\n", + "# we have to find the load torque\n", + "from math import pi\n", + "\n", + "y=2*dR/(Rg*Sg);\n", + "tou_xy=y*G;\n", + "j=pi*D**4;\n", + "T=tou_xy*2*j/(D*32);\n", + "print'The load torque is d N-m',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.9" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft_power.ipynb b/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft_power.ipynb deleted file mode 100755 index 379da0ca..00000000 --- a/sample_notebooks/vijayadurga/Chapter_5_Force_Torque_and_Shaft_power.ipynb +++ /dev/null @@ -1,265 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 5 Force Torque and Shaft power Measurement" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 5_1 pgno:204" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x=(Sg*sig_f*(1+v))/(2*E)\n", - "('a voltmeter with a maximum range of mV is suitable for measurement', 94.9385766342288)\n", - "Round it off to get the suitable range voltmeter\n" - ] - } - ], - "source": [ - "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", - "#Caption : Load cell\n", - "# Example 1# Page 294\n", - "from math import sqrt\n", - "\n", - "Sg=2.; # Strain gage factor\n", - "Rg=120.; # Gage resistance\n", - "v=0.3 # poissons ratio\n", - "E=210*10**9; # for steel\n", - "Pd=1. #('enter the power dissipation capacity=:')\n", - "# Looking for a suitable voltage measuring system\n", - "sig_f=700*10**6 #('enter the fatigue strength=:')\n", - "P_max=10000. #('enter the maximum load=:')\n", - "# For a load cell of square cross-section d,\n", - "d=sqrt(P_max/sig_f);\n", - "Ei=sqrt(4*Rg*Pd) #input excitation to the bridge circuit\n", - "x=(Sg*sig_f*(1+v))/(2*E);\n", - "dEo_max=x*Ei*10**3;\n", - "print (\"x=(Sg*sig_f*(1+v))/(2*E)\")\n", - "print ('a voltmeter with a maximum range of mV is suitable for measurement',dEo_max)\n", - "print (\"Round it off to get the suitable range voltmeter\")" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 5_2 pgno:295" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "('(dE/V)_max= d\\n ', 4285714.285714285)\n", - "Sensitivity of this load cell is nV/N/per unit excitation 42.8571428571\n" - ] - } - ], - "source": [ - "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", - "#Caption : Load cell\n", - "# Example 2# Page 295\n", - "\n", - "b=.2 #('enter the width of load cell=:')\n", - "h=.05 #('enter the thickness of load cell=:')\n", - "Sg=2.;\n", - "Rg=120.;\n", - "sig_f=150*10**6 #('enter the fatigue strength=:')\n", - "E=70.; #(in GPa) for aluminium\n", - "v=0.33; #poissons ratio\n", - "# Let dE/V_max be represented by W\n", - "W=Sg*sig_f/E;\n", - "print('(dE/V)_max= d\\n ',W)\n", - "P_max=100000. #('enter the value of maximum load=:')\n", - "l=sig_f*b*h**2/(6*P_max);\n", - "\n", - "S=(6*Sg*l)/(E*b*h**2);\n", - "print'Sensitivity of this load cell is nV/N/per unit excitation',S\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 5_3 pgno:296" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Sensitivity of this load cell is micro V/N\n", - "0.13\n", - "The maximum density that can be achieved without endangering the strain gage sensors is micro V/N\n", - "0.284815729903\n", - "The voltage ratio is mV/V 3.9\n" - ] - } - ], - "source": [ - "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", - "#Caption : Load cell\n", - "# Example 3# Page 296\n", - "from math import sqrt\n", - "Sg=2;\n", - "v=0.3; #poissons ratio\n", - "Ei=10. #('enter the excitation voltage=:')\n", - "A=5*10**-4 #('enter the area of load cell=:')\n", - "E=200.; #(in Gpa) Youngs modulus\n", - "# Let sensitivity Eo/P be represented by Se\n", - "Se=Sg*(1+v)*Ei/(2*A*E)*.001;\n", - "print'Sensitivity of this load cell is micro V/N\\n',Se\n", - "Rg=120. #given\n", - "Pd=1. #('enter the power dissipated in each gage=:')\n", - "Ei_max=sqrt(4*Rg*Pd)\n", - "Se_max=Sg*(1+v)*Ei_max/(2*A*E)*.001\n", - "print'The maximum density that can be achieved without endangering the strain gage sensors is micro V/N\\n',Se_max\n", - "# Let (Eo/Ei)_max be represented by Em\n", - "sig_f=600*10**6 #('enter the fatigue strength=:')\n", - "Em=Sg*sig_f*(1+v)/(2*E)*10**-6\n", - "print'The voltage ratio is mV/V',Em\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 5_4 pgno:302" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "('Relative displacement is d', 1.9999999999999997e-08)\n", - "wnc**2 is approx. 10**9. So,\n", - "Z is approx. 20nm(rms)\n", - "Actual force transmitted to the plate is d N 18.0260791198\n" - ] - } - ], - "source": [ - "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", - "#Caption : Piezoelectric Transducers\n", - "# Example 4# Page 302\n", - "from math import sqrt,pi\n", - "mc=0.04 #('enter the connector mass=:')\n", - "m=0.01 #('enter the seismic mass=:')\n", - "k=10**9 #('enter the stiffness of the sensing element=:')\n", - "Sf=.005 #('enter the sensitivity of the transducer=:')\n", - "Xi=100*10**-6 # ('enter the displacement amplitude of the shaker vibration=:')\n", - "Eo=.1 #('enter the reading of voltage recorder connected to the transducer=:')\n", - "wnc=sqrt(k/(m+mc));\n", - "R=20; #20N (rms)\n", - "Z=(1/(m+mc))*(1/wnc**2)*R;\n", - "print('Relative displacement is d',Z)\n", - "print(\"wnc**2 is approx. 10**9. So,\")\n", - "print(\"Z is approx. 20nm(rms)\")\n", - "f=100.; # given\n", - "\n", - "F=R-((2*pi*f)**2*(m+mc)*Xi);\n", - "print'Actual force transmitted to the plate is d N',F\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 5_5 pgno:308" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The load torque is d N-m 1636.24617374\n" - ] - } - ], - "source": [ - "#CHAPTER 5_ Force,Torque and Shaft Power Measurement\n", - "#Caption : Torque measurement on rotating shaft\n", - "# Example 5# Page 308\n", - "Sg=2.;\n", - "Rg=120.;\n", - "G=80*10**9 #('enter the sheer modulus of elasticity=:')\n", - "D=0.05 #('enter the shaft diameter=:')\n", - "dR=0.1 # given\n", - "# we have to find the load torque\n", - "from math import pi\n", - "\n", - "y=2*dR/(Rg*Sg);\n", - "tou_xy=y*G;\n", - "j=pi*D**4;\n", - "T=tou_xy*2*j/(D*32);\n", - "print'The load torque is d N-m',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.9" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/sample_notebooks/vijayadurga/sample.ipynb b/sample_notebooks/vijayadurga/sample.ipynb new file mode 100755 index 00000000..f655751e --- /dev/null +++ b/sample_notebooks/vijayadurga/sample.ipynb @@ -0,0 +1,410 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 Fundamentals of Fault Clearing and Switching Phenomena" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_1 pgno:24" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the transient current =A 1.56\n" + ] + } + ], + "source": [ + "from math import pi,exp\n", + "from math import atan,sin\n", + "from math import sqrt\n", + "R=10; \n", + "L=0.1; \n", + "f=50; \n", + "w=2*pi*f; \n", + "k=sqrt((R**2)+((w*L)**2));\n", + "angle=atan(w*L/R);\n", + "E=400 \n", + "A=E*sin(angle)/k;\n", + "i=A*exp((-R)*.02/L);\n", + "i=round(i*100)/100;\n", + "print\"the transient current =A\",i\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_2 pgno:26" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "current in amperes for part1=A\n", + "4.1\n", + "current in part 2& part 3= 0\n", + "\n", + "the DC component vanishes if e=V 141.4\n", + "\n", + "current at .5 cycles for t1=sec \n", + "current in the problem = A 0.01 1.50368424845\n", + "\n", + "current at 1.5 cycles for t2=sec \n", + "current in the problem = A 0.03 0.203501533662\n", + "\n", + "current at 5.5 cycles for t3=sec \n", + "current in the problem = A 0.11 6.82671592646e-05\n", + "the difference in result is due to erroneous value in textbook.\n" + ] + } + ], + "source": [ + "from math import sqrt,sin,atan,pi,exp\n", + "R=10; \n", + "L=0.1; \n", + "f=50; \n", + "w=2*pi*f; \n", + "k=sqrt((R**2)+((w*L)**2));\n", + "angle=atan(w*L/R); \n", + "E=100; \n", + "Em=sqrt(2)*E; \n", + "A=Em*sin(angle)/k;\n", + "i1=A; \n", + "Em=round(Em*10)/10;\n", + "i1=round(i1*10)/10;\n", + "print\"current in amperes for part1=A\\n\",i1\n", + "print\"current in part 2& part 3= 0\\n\"\n", + "print\"the DC component vanishes if e=V\",Em#the error is due to the erroneous values in the textbook\n", + "\n", + "t1=0.5*.02; \n", + "i2=A*exp((-R)*t1/L);\n", + "print\"\\ncurrent at .5 cycles for t1=sec \\ncurrent in the problem = A\",t1,i2\n", + "t2=1.5*.02;\n", + "i3=A*exp((-R)*t2/L);\n", + "print\"\\ncurrent at 1.5 cycles for t2=sec \\ncurrent in the problem = A\",t2,i3\n", + "t3=5.5*.02;\n", + "i4=A*exp((-R)*t3/L);\n", + "print\"\\ncurrent at 5.5 cycles for t3=sec \\ncurrent in the problem = A\",t3,i4\n", + "\n", + "\n", + "print\"the difference in result is due to erroneous value in textbook.\"\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_3 pgno:28" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "frequency of oscillations=c/s 72400.0\n", + "\n", + "time of maximum restriking voltage=microsec 3.46\n", + "\n", + "maximum restriking voltage=V/microsecs 2430.0\n" + ] + } + ], + "source": [ + "from math import sqrt,e,pi\n", + "C=.003e-6 \n", + "L=1.6e-3 \n", + "y=sqrt(L*C);\n", + "y=round(y*1e7)/1e7;\n", + "f=(2*3.14*y)**-1; \n", + "f=round(f/100)*100;\n", + "i=7500;\n", + "E=i*2*3.15*L*50;\n", + "Em=1.414*E;\n", + "Em=round(Em/10)*10\n", + "t=y*pi/2;\n", + "t=t*1e6;\n", + "t=round(t*100)/100;\n", + "e=Em/y;\n", + "e=round((e)/1e6)*1e6;\n", + "e=round(e/1e7)*1e7\n", + "print\"frequency of oscillations=c/s\",f\n", + "print\"\\ntime of maximum restriking voltage=microsec\",t\n", + "print\"\\nmaximum restriking voltage=V/microsecs\",e/1e6\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_4 pgno:30" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "peak restriking voltage=kV 18.0\n", + "\n", + "frequency of oscillations=c/s 12637.7514913\n", + "\n", + "average rate of restriking voltage=kV/microsecs 0.455\n", + "\n", + "max restriking voltage=V/microsecs 714.0\n" + ] + } + ], + "source": [ + "from math import pi,sqrt\n", + "R=5 \n", + "f=50\n", + "L=R/(2*pi*f);\n", + "V=11e3;\n", + "Vph=11/sqrt(3);\n", + "C=0.01e-6;\n", + "y=sqrt(L*C);\n", + "Em=sqrt(2)*Vph;\n", + "ep=2*Em;\n", + "ep=round(ep*10)/10;\n", + "y=round(y*1e7)/1e7;\n", + "t=y*pi;\n", + "t=round(t*1e7)/1e7\n", + "ea=ep/t;\n", + "ea=round(ea/1e3)*1e3\n", + "fn=(2*3.14*y)**-1;\n", + "Em=round(Em)\n", + "Emax=Em/y;\n", + "Emax=round(Emax/1000)*1e3;\n", + "print\"peak restriking voltage=kV\",ep\n", + "print\"\\nfrequency of oscillations=c/s\",fn\n", + "print\"\\naverage rate of restriking voltage=kV/microsecs\",ea/1e6\n", + "print\"\\nmax restriking voltage=V/microsecs\",Emax/1e3\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_5 pgno:31" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average restriking voltage=V/microsecs 1220.0\n" + ] + } + ], + "source": [ + "from math import pi,sqrt\n", + "E=19.1*1e3;\n", + "L=10*1e-3;\n", + "C=.02*1e-6;\n", + "Em=sqrt(2)*E;\n", + "y=sqrt(L*C);\n", + "t=pi*y*1e6;\n", + "emax=2*Em;\n", + "eavg=emax/t;\n", + "eavg=round(eavg/10)*10\n", + "print\"average restriking voltage=V/microsecs\",eavg\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_6 pgno:33" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average restriking voltage=kV/microsecs 4.8\n" + ] + } + ], + "source": [ + "from math import e,sqrt,acos,sin\n", + "V=78e3;\n", + "Vph=V/sqrt(3);\n", + "Em=2*Vph;\n", + "pf=0.4;\n", + "angle=acos(pf);\n", + "k1=sin(angle); \n", + "k1=round(k1*100)/100;\n", + "k2=.951;\n", + "k3=1;\n", + "k=k1*k2*k3;\n", + "k=round(k*1000)/1e3;\n", + "E=k*Em;\n", + "f=15000.; \n", + "t=1/(2*f);\n", + "t=round(t*1e6);\n", + "eavg=2*E/t;\n", + "eavg=round(eavg/100)*100;\n", + "print\"average restriking voltage=kV/microsecs\",eavg/1e3\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_7 pgno:35" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "average voltage in volts=V/microsecs 1430.0\n", + "frequency of oscillation =c/s 7143.0\n" + ] + } + ], + "source": [ + "Em=100e3\n", + "t=70e-6\n", + "Ea=Em/t/1e6\n", + "f=1/(2*t);\n", + "Ea=round(Ea/10)*10;\n", + "f=round(f);\n", + "print\"average voltage in volts=V/microsecs\",Ea\n", + "print\"frequency of oscillation =c/s\",f\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3_8 pgno:37" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "damping resistance in ohms=kohms 12.25\n" + ] + } + ], + "source": [ + "from math import sqrt\n", + "L=6; \n", + "C=0.01e-6;\n", + "i=10;\n", + "v=i*sqrt(L/C);\n", + "R=.5*v/i;\n", + "R=round(R/10)*10;\n", + "print\"damping resistance in ohms=kohms\",R/1e3\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "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.9" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/sample_notebooks/vijayadurga/sample_(chapter.ipynb b/sample_notebooks/vijayadurga/sample_(chapter.ipynb deleted file mode 100755 index f655751e..00000000 --- a/sample_notebooks/vijayadurga/sample_(chapter.ipynb +++ /dev/null @@ -1,410 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 3 Fundamentals of Fault Clearing and Switching Phenomena" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_1 pgno:24" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "the transient current =A 1.56\n" - ] - } - ], - "source": [ - "from math import pi,exp\n", - "from math import atan,sin\n", - "from math import sqrt\n", - "R=10; \n", - "L=0.1; \n", - "f=50; \n", - "w=2*pi*f; \n", - "k=sqrt((R**2)+((w*L)**2));\n", - "angle=atan(w*L/R);\n", - "E=400 \n", - "A=E*sin(angle)/k;\n", - "i=A*exp((-R)*.02/L);\n", - "i=round(i*100)/100;\n", - "print\"the transient current =A\",i\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_2 pgno:26" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "current in amperes for part1=A\n", - "4.1\n", - "current in part 2& part 3= 0\n", - "\n", - "the DC component vanishes if e=V 141.4\n", - "\n", - "current at .5 cycles for t1=sec \n", - "current in the problem = A 0.01 1.50368424845\n", - "\n", - "current at 1.5 cycles for t2=sec \n", - "current in the problem = A 0.03 0.203501533662\n", - "\n", - "current at 5.5 cycles for t3=sec \n", - "current in the problem = A 0.11 6.82671592646e-05\n", - "the difference in result is due to erroneous value in textbook.\n" - ] - } - ], - "source": [ - "from math import sqrt,sin,atan,pi,exp\n", - "R=10; \n", - "L=0.1; \n", - "f=50; \n", - "w=2*pi*f; \n", - "k=sqrt((R**2)+((w*L)**2));\n", - "angle=atan(w*L/R); \n", - "E=100; \n", - "Em=sqrt(2)*E; \n", - "A=Em*sin(angle)/k;\n", - "i1=A; \n", - "Em=round(Em*10)/10;\n", - "i1=round(i1*10)/10;\n", - "print\"current in amperes for part1=A\\n\",i1\n", - "print\"current in part 2& part 3= 0\\n\"\n", - "print\"the DC component vanishes if e=V\",Em#the error is due to the erroneous values in the textbook\n", - "\n", - "t1=0.5*.02; \n", - "i2=A*exp((-R)*t1/L);\n", - "print\"\\ncurrent at .5 cycles for t1=sec \\ncurrent in the problem = A\",t1,i2\n", - "t2=1.5*.02;\n", - "i3=A*exp((-R)*t2/L);\n", - "print\"\\ncurrent at 1.5 cycles for t2=sec \\ncurrent in the problem = A\",t2,i3\n", - "t3=5.5*.02;\n", - "i4=A*exp((-R)*t3/L);\n", - "print\"\\ncurrent at 5.5 cycles for t3=sec \\ncurrent in the problem = A\",t3,i4\n", - "\n", - "\n", - "print\"the difference in result is due to erroneous value in textbook.\"\n", - " " - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_3 pgno:28" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "frequency of oscillations=c/s 72400.0\n", - "\n", - "time of maximum restriking voltage=microsec 3.46\n", - "\n", - "maximum restriking voltage=V/microsecs 2430.0\n" - ] - } - ], - "source": [ - "from math import sqrt,e,pi\n", - "C=.003e-6 \n", - "L=1.6e-3 \n", - "y=sqrt(L*C);\n", - "y=round(y*1e7)/1e7;\n", - "f=(2*3.14*y)**-1; \n", - "f=round(f/100)*100;\n", - "i=7500;\n", - "E=i*2*3.15*L*50;\n", - "Em=1.414*E;\n", - "Em=round(Em/10)*10\n", - "t=y*pi/2;\n", - "t=t*1e6;\n", - "t=round(t*100)/100;\n", - "e=Em/y;\n", - "e=round((e)/1e6)*1e6;\n", - "e=round(e/1e7)*1e7\n", - "print\"frequency of oscillations=c/s\",f\n", - "print\"\\ntime of maximum restriking voltage=microsec\",t\n", - "print\"\\nmaximum restriking voltage=V/microsecs\",e/1e6\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_4 pgno:30" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "peak restriking voltage=kV 18.0\n", - "\n", - "frequency of oscillations=c/s 12637.7514913\n", - "\n", - "average rate of restriking voltage=kV/microsecs 0.455\n", - "\n", - "max restriking voltage=V/microsecs 714.0\n" - ] - } - ], - "source": [ - "from math import pi,sqrt\n", - "R=5 \n", - "f=50\n", - "L=R/(2*pi*f);\n", - "V=11e3;\n", - "Vph=11/sqrt(3);\n", - "C=0.01e-6;\n", - "y=sqrt(L*C);\n", - "Em=sqrt(2)*Vph;\n", - "ep=2*Em;\n", - "ep=round(ep*10)/10;\n", - "y=round(y*1e7)/1e7;\n", - "t=y*pi;\n", - "t=round(t*1e7)/1e7\n", - "ea=ep/t;\n", - "ea=round(ea/1e3)*1e3\n", - "fn=(2*3.14*y)**-1;\n", - "Em=round(Em)\n", - "Emax=Em/y;\n", - "Emax=round(Emax/1000)*1e3;\n", - "print\"peak restriking voltage=kV\",ep\n", - "print\"\\nfrequency of oscillations=c/s\",fn\n", - "print\"\\naverage rate of restriking voltage=kV/microsecs\",ea/1e6\n", - "print\"\\nmax restriking voltage=V/microsecs\",Emax/1e3\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_5 pgno:31" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "average restriking voltage=V/microsecs 1220.0\n" - ] - } - ], - "source": [ - "from math import pi,sqrt\n", - "E=19.1*1e3;\n", - "L=10*1e-3;\n", - "C=.02*1e-6;\n", - "Em=sqrt(2)*E;\n", - "y=sqrt(L*C);\n", - "t=pi*y*1e6;\n", - "emax=2*Em;\n", - "eavg=emax/t;\n", - "eavg=round(eavg/10)*10\n", - "print\"average restriking voltage=V/microsecs\",eavg\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_6 pgno:33" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "average restriking voltage=kV/microsecs 4.8\n" - ] - } - ], - "source": [ - "from math import e,sqrt,acos,sin\n", - "V=78e3;\n", - "Vph=V/sqrt(3);\n", - "Em=2*Vph;\n", - "pf=0.4;\n", - "angle=acos(pf);\n", - "k1=sin(angle); \n", - "k1=round(k1*100)/100;\n", - "k2=.951;\n", - "k3=1;\n", - "k=k1*k2*k3;\n", - "k=round(k*1000)/1e3;\n", - "E=k*Em;\n", - "f=15000.; \n", - "t=1/(2*f);\n", - "t=round(t*1e6);\n", - "eavg=2*E/t;\n", - "eavg=round(eavg/100)*100;\n", - "print\"average restriking voltage=kV/microsecs\",eavg/1e3\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_7 pgno:35" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "average voltage in volts=V/microsecs 1430.0\n", - "frequency of oscillation =c/s 7143.0\n" - ] - } - ], - "source": [ - "Em=100e3\n", - "t=70e-6\n", - "Ea=Em/t/1e6\n", - "f=1/(2*t);\n", - "Ea=round(Ea/10)*10;\n", - "f=round(f);\n", - "print\"average voltage in volts=V/microsecs\",Ea\n", - "print\"frequency of oscillation =c/s\",f\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 3_8 pgno:37" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "damping resistance in ohms=kohms 12.25\n" - ] - } - ], - "source": [ - "from math import sqrt\n", - "L=6; \n", - "C=0.01e-6;\n", - "i=10;\n", - "v=i*sqrt(L/C);\n", - "R=.5*v/i;\n", - "R=round(R/10)*10;\n", - "print\"damping resistance in ohms=kohms\",R/1e3\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - }, - { - "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.9" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} -- cgit