diff options
Diffstat (limited to 'Hydraulics_Made_Easy_by_R_S_Dighe')
19 files changed, 5654 insertions, 0 deletions
diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/1-Hydrostatics.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/1-Hydrostatics.ipynb new file mode 100644 index 0000000..1f2c6e1 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/1-Hydrostatics.ipynb @@ -0,0 +1,759 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Hydrostatics" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"w= 3 //ft\n", +"h= 15 //ft\n", +"d= 140 //lbs/ft^3\n", +"x= 6 //in\n", +"W= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"W1= h*w*d\n", +"h= (W1*x*6/(W*12))^(1/3)\n", +"//RESULTS\n", +"printf (' height of water rise = %.2f ft',h)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 5 //ft\n", +"d= 6 //ft\n", +"a= 30 //degrees\n", +"w= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"A= %pi*d^2/4\n", +"X= h+(d/2)*sind(a)\n", +"P= w*A*X\n", +"Ic= %pi*d^4/64\n", +"I0= Ic+A*X^2/(sind(a))^2\n", +"h= I0*(sind(a))^2/(A*X)\n", +"//CALCULATIONS\n", +"printf ('depth of the centre os pressure= %.2f ft ',h)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.12: example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 4 //ft\n", +"l= 4 //ft\n", +"X= 10 //ft\n", +"a= 45 //degrees\n", +"W= 100 //lbs\n", +"a1= 60 //degrees\n", +"w1= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"A= w*l\n", +"X1= X+(w/2)*sind(a)\n", +"Ig= w*l^3/12\n", +"I0= Ig+(A*X1^2/(sind(a))^2)\n", +"h= I0*(sind(a))^2/(A*X1)\n", +"P= w1*A*X1\n", +"h1= h-X\n", +"h2= h1/sind(a)\n", +"T= (W*(l/2)*sind(a)+P*h2)/(w*sind(a1))\n", +"//RESULTS\n", +"printf ('Pull in the chain= %.f lbs ',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.13: example_13.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"w= 4 //ft\n", +"l= 4 //ft\n", +"X= 10 //ft\n", +"a = 45 //degrees\n", +"W= 62.4 //lbs/ft^3\n", +"u= 0.25\n", +"//CALCULATIONS\n", +"A= w*l\n", +"X1= X+(w/2)*sind(a)\n", +"P= W*A*X1\n", +"T= u*P\n", +"//RESULTS\n", +"printf ('magnitude of the lifting force= %.f lbs ',T) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.14: example_14.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 62.4 //lbs/ft^3\n", +"sg= 1.6\n", +"h= 10 //ft\n", +"h1= 4 //ft\n", +"//CALCULATIONS\n", +"D= w*sg\n", +"W= w*(h+h1)^2/2\n", +"P= w*h\n", +"P1= D*h1\n", +"P2= (P*h/2)+P*h1+(h1*P1/2)\n", +"y= ((P*h*(h1+(h/3))/2)+P*h1*(h1/2)+P1*h1^2/6)/P2\n", +"//RESULTS\n", +"printf ('Position where P acts= %.1f ft above the base',y) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.15: example_15.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"pa= 10 //lbs/in^2\n", +"h= 8 //ft\n", +"h1= 6 //ft\n", +"w= 62.4 //lbs/ft^3\n", +"pg= 10 //lbs/in^2\n", +"//CALCULATIONS\n", +"Pa= pa*144\n", +"Pa1= w*h1\n", +"Pt= (Pa*h+Pa1*(h1/2))\n", +"y= (Pa*h*(h/2)+(Pa1*h1*(h-h1)/2))/Pt\n", +"//RESULTS\n", +"printf ('Depth of the centre of pressure= %.2f ft from the base',y) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.16: example_16.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 4 //ft\n", +"h= 6 //in\n", +"//CALCULATIONS\n", +"A= %pi*d^2/4\n", +"X= (h-d)\n", +"I0= (%pi*d^4/64)+4*%pi*(X)^2\n", +"h1= I0/(A*X)\n", +"h2= d-h1\n", +"//RESULTS\n", +"printf ('Depth of the axis be placed in order= %.1f ft ',h2) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.17: example_17.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 10 //ft\n", +"//CALCULATIONS\n", +"x= sqrt(h^2/2)\n", +"//RESULTS\n", +"printf ('Depth of the axis be placed in order= %.2f ft ',x) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.18: example_18.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 8 //ft\n", +"h1= 10 //ft\n", +"//CALCULATIONS\n", +"A= h\n", +"X= (h1/2)\n", +"Ig= h^3/12\n", +"I0= Ig+A*X^2\n", +"h2= I0/(A*X)\n", +"//RESULTS\n", +"printf ('depth at which the hinge of the shutter= %.2f ft ',h2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.19: example_19.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"k1= 1 //ft\n", +"k2= 35.98 //ft\n", +"k3= 66.83 //ft\n", +"//CALCULATIONS\n", +"x=poly(0,'x')\n", +"vec=roots(k1*x^3-k2*x+k3)\n", +"X= vec (2)\n", +"//RESULTS\n", +"printf ('depth of the water= %.2f ft',X)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.1: example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"Ar= 50 //in^2\n", +"Ap= 1/8 //in^2\n", +"Wp= 5 //lbs\n", +"//CALCULATIONS\n", +"Pp= Wp/Ap\n", +"F= Pp*Ar\n", +"//RESULTS\n", +"printf ('weight supported by ram = %.f lbs',F)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.22: example_22.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 8 //ft\n", +"d1= 2 //ft\n", +"h= 4 //ft\n", +"h1= 2 //ft\n", +"w= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"A1= %pi*d^2/4\n", +"A2= %pi*d1^2/4\n", +"A= A1-A2\n", +"x= (A1*d-A2*(d+h-h1))/A\n", +"P= w*A*x\n", +"Ig= ((%pi*d^4/64)+(A1*(d-x)^2))-((%pi*d1^4/64)+(A2*(h1+d-x)^2))\n", +"h2= (Ig/(A*x))+x\n", +"//RESULTS\n", +"printf ('depth of the centre of the pressure= %.1f ft ',h2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.25: example_25.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 62.4 //lbs/ft^3\n", +"a= 140 //degrees\n", +"h= 20 //ft\n", +"w= 6 //ft\n", +"h1= 17 //ft\n", +"h2= 5 //ft\n", +"//CALCULATIONS\n", +"P1= W*h1^2*w/2\n", +"P2= W*h2^2*w/2\n", +"P= P1-P2\n", +"y= (P1*(h1/3)-P2*(h2/3))/P\n", +"R= P/(2*sind((180-a)/2))\n", +"Rt= y*R/h\n", +"Rb= R-Rt\n", +"//RESULTS\n", +"printf ('Rt= %.f lbs ',Rt)\n", +"printf ('\n Rb= %.f lbs ',Rb)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.26: example_26.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 64 //lbs/ft^3\n", +"h= 12 //ft\n", +"l= 9 //ft\n", +"a= 45 //degrees\n", +"//CALCULATIONS\n", +"P= w*h^2/2\n", +"h1= h/3\n", +"Rb= P*h1/l\n", +"Ra= P-Rb\n", +"Wh= Rb*h1\n", +"T= Wh/sind(a)\n", +"//RESULTS\n", +"printf ('Load on the strut= %.f lbs ',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.27: example_27.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 62.4 //lbs/ft^3\n", +"h= 9 //ft\n", +"l= 10 //ft\n", +"//CALCULATIONS\n", +"P= w*h^2/2\n", +"h1= h/3\n", +"Ra= P/2\n", +"x= (w*4*h^2/9)/Ra\n", +"x1= x+(h/3)\n", +"hb= h1-x\n", +"W= Ra*l\n", +"//RESULTS\n", +"printf ('magnitude od total in each beam= %.f lbs ',W)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2: example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"Dp= 1 //in\n", +"Dr= 10 //in\n", +"R= 12 \n", +"W= 15 //tons\n", +"//CALCULATIONS\n", +"Ar= %pi*Dr^2/4\n", +"Ap= %pi*Dp^2/4\n", +"P= W*2240/((Ar/Ap)*R)\n", +"//RESULTS\n", +"printf ('power applied to lever = %.f lbs',P)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.3: example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"Dj= 1 //in\n", +"Dr= 2 //in\n", +"W= 40 //lbs\n", +"W1= 1 //ton\n", +"rl= 20\n", +"//CALCULATIONS\n", +"Ap= %pi*Dj^2/4\n", +"Ar= %pi*Dr^2/4\n", +"Vrj= rl*Ar/Ap\n", +"e= W1*2240*100/(W*Vrj)\n", +"//RESULTS\n", +"printf ('efficiency of machine at this load = %.f percent',e)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.4: example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"Dj= 1 //in\n", +"Dr= 2 //in\n", +"ns= 3 //strokes\n", +"h= 2 //ft\n", +"//CALCULATIONS\n", +"Ap= %pi*Dj^2/4\n", +"Ar= %pi*Dr^2/4\n", +"Vrj= Ar/Ap\n", +"ns1= h*12*Vrj/ns\n", +"//RESULTS\n", +"printf (' working strokes = %.f strokes',ns1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.5: example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"T= 40 //F\n", +"w= 62.4 //lbs/ft^3\n", +"h= 50 //ft\n", +"//CALCULATIONS\n", +"p= w*h/(12^2)\n", +"//RESULTS\n", +"printf (' pressure at a depth of 50 ft = %.2f lbs per in',p)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.6: example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"W= 64 //lbs/ft^3\n", +"h1= 27 //ft\n", +"h2= 9 //ft\n", +"w= 40 //ft\n", +"//CALCULATIONS\n", +"Pr= w*W*h1*h1/2\n", +"Pl= w*W*h2*h2/2\n", +"y1= h1/3\n", +"y2= h2/3\n", +"y= (Pr*y1-Pl*y2)/(Pr-Pl)\n", +"//RESULTS\n", +"printf (' point of application = %.2f ft',y)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 5 //ft\n", +"x= 3 //ft\n", +"w= 62.4 //lb/ft^3\n", +"a= 90 //degrees\n", +"//CALCULATIONS\n", +"h= ((%pi*d^4/64)+(x^2*%pi*d^2/4))/(%pi*d^2*x/4)\n", +"//RESULTS\n", +"printf ('depth of the pressure= %.2f ft',h)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"w= 3 //ft\n", +"h= 4 //ft\n", +"ht= 30 //ft\n", +"W= 62.4 //ft^3\n", +"//CALCULATIONS\n", +"Ap= w*h\n", +"X= ht+(h/2)\n", +"P= Ap*X*W\n", +"I0= (w*h^3/12)+Ap*X^2\n", +"H= I0/(Ap*X)\n", +"//RESULTS\n", +"printf (' total pressure on the gate = %.2f ft',H)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"w= 3 //ft\n", +"h= 4 //ft\n", +"ht= 30 //ft\n", +"W= 62.4 //ft^3\n", +"x= 2.22 //in\n", +"x1= 4.5 //in\n", +"//CALCULATIONS\n", +"Ap= w*h\n", +"X= ht+(h/2)\n", +"P= Ap*X*W\n", +"T= P*x/x1\n", +"T1= P-T\n", +"//RESULTS\n", +"printf (' tension devoloped in the top bolt = %.f lbs',T)\n", +"printf (' \n tension devoloped in the bottom bolt = %.f lbs',T1)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/10-Miscellaneous_Problems.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/10-Miscellaneous_Problems.ipynb new file mode 100644 index 0000000..21c83f8 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/10-Miscellaneous_Problems.ipynb @@ -0,0 +1,380 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 10: Miscellaneous Problems" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"\n", +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"sct= 1.6\n", +"sl= 0.8\n", +"K= 0.98\n", +"dh1= 4 //ft\n", +"W= 62.4 //lbs/ft^3\n", +"d1= 8 //in\n", +"d2= 6 //in\n", +"//CALCULATIONS\n", +"dp= dh1*((sct/sl)-1)\n", +"C= sqrt(2*g)*%pi*(d1/24)^2 /sqrt((d1^2/d2^2)^2 -1)\n", +"Q= C*K*sqrt(dh1)\n", +"//RESULTS\n", +"printf ('Discharge passing through the pipe= %.1f cuses ',Q)\n", +"//The answer given in textbook is wrong. Please verify it." + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.1: example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 62.4 //lb/ft^3\n", +"x=8 //ft\n", +"A= 16 //ft^2\n", +"X= 2.5 //ft\n", +"X1= 0.66 //ft\n", +"x1= 3.834 //ft\n", +"x2= 2.182 //ft\n", +"//CALCULATIONS\n", +"P= w*x*A\n", +"y= A/3\n", +"P1= w*x*A*0.5*X1\n", +"R= sqrt(P1^2+P^2)\n", +"m= P1/P\n", +"X2= x1-x2\n", +"C= ((2/3)*A)-m*X\n", +"Y= m*X2+ C\n", +"//RESULTS\n", +"printf ('Water pressure on vertical face = %.f lbs',P)\n", +"printf ('\n pressure which acts at the base = %.2f ft',y)\n", +"printf ('\n Resultant = %.f lbs',R)\n", +"printf ('\n x coordinate of the resultant = %.3f ft',X2)\n", +"printf ('\n y coordinate of the resultant = %.3f ft',Y)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.2: chapter_10_example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"s= 13.6\n", +"h= 12 //in\n", +"u= 0.04\n", +"k= 1\n", +"d= 6 //in\n", +"g= 32.2 //ft/sec^2\n", +"w= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"h1= h*(s-1)/12\n", +"hf= u*h1\n", +"hn= h1-hf\n", +"Q= k*(%pi*(d/12)^2)*sqrt(2*g)*sqrt(hn)*w*60/(10*4*sqrt(15))\n", +"//RESULTS\n", +"printf ('discharge through flow= %.f ft G.P.M',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.3: chapter_10_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"za= 16 //ft\n", +"h1= 2 //ft\n", +"h2= 3 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"vc= sqrt(2*g*(za-h1-h2))\n", +"vb= vc*(h1/(2*h1))^2\n", +"r= -h1-h2-(vb^2/(2*g))\n", +"r1= r+34\n", +"//RESULTS\n", +"printf ('pressure head at B= %.1f ft lb',r1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.4: chapter_10_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"Cd= 0.62\n", +"a= 90 //degrees\n", +"H1= 14 //in\n", +"H2= 8 //in\n", +"//CALCULATIONS\n", +"Q1= (8/15)*Cd*sqrt(2*g)*tand(a/2)*(H1/12)^(5/2)\n", +"Q2= (8/15)*Cd*sqrt(2*g)*tand(a/2)*(H2/12)\n", +"Q= Q1-Q2\n", +"//RESULTS\n", +"printf ('Discharge through notch= %.2f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.5: example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"Cd= 0.62\n", +"d= 5/4 //in\n", +"h= 9 //ft\n", +"//CALCULATIONS\n", +"T= (2/3)*%pi*(h)^(3/2)/(Cd*(%pi/4)*sqrt(2*g)*(d/12)^2)\n", +"//RESULTS\n", +"printf ('time required to lower water level= %.f secs',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.6: chapter_10_example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"a= 60 //degrees\n", +"d= 4 //in\n", +"Cd= 0.62\n", +"h= 5 //ft\n", +"w= 30 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"H1= 10*sind(a)\n", +"H2= H1-h\n", +"T= (2*w/tand(a))*(2/3)*(H1^(3/2)-H2^(3/2))/(Cd*sqrt(2*g)*%pi/(4*(d/12)^2))*100\n", +"//RESULTS\n", +"printf ('time required to lower water level= %.f secs',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.7: chapter_10_example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"p1= 40 //percent\n", +"p2= 35 //percent\n", +"dh= 200 //ft\n", +"f= 0.1\n", +"g= 32.2 //ft/sec^2\n", +"l= 2000 //ft\n", +"d= 1 //ft\n", +"//CALCULATIONS\n", +"hf1= p1*dh/100\n", +"hf2= p2*dh/100\n", +"hf3= (100-p1-p2)*dh/100\n", +"hft= hf1+hf2+hf3\n", +"v1= sqrt(2*g*hf1/(4*f*l))\n", +"Q= v1*%pi*d^2/4\n", +"d2= (Q*7*sqrt(3/(5*g)))^(2/3)\n", +"v3= Q*4*(4/3)^2/%pi\n", +"l3= hf2*2*g*(3/4)/(4*f*v3^2)\n", +"//RESULTS\n", +"printf ('proportion of the quantity folwing in the bypass to the whole pass= %.f ft',l3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.8: chapter_10_example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 1 //ft\n", +"l= 2000 //ft\n", +"f= 0.038\n", +"g= 32.2 ///ft/sec^2\n", +"Q= 6 //cuses\n", +"l1= 1500 //ft\n", +"r= 2\n", +"//CALCULATIONS\n", +"v= 4*Q/(d^2*%pi)\n", +"hf= 4*f*l*v^2/(2*g)\n", +"v1= sqrt(hf*2*g/(4*f*l1+4*f*(l-l1)*r^2))\n", +"v3= r*v1\n", +"Q1= %pi*d^2*v3/4\n", +"Q2= %pi*d^2*v1/4\n", +"r1= Q2/Q1\n", +"//RESULTS\n", +"printf ('proportion of the quantity folwing in the bypass to the whole pass= %.1f ',r1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 10.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"f= 0.01\n", +"d= 3 //in\n", +"l= 22 //ft\n", +"l1= 20 //ft\n", +"w= 20 //ft\n", +"h= 5 //ft\n", +"h1= 20 //ft\n", +"t= 4 //min\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"h2= h+h1\n", +"h3= (h-(t*60*%pi*sqrt(2*g/h)/(l1*w*2*64)))^2-4\n", +"dh= h2-h3\n", +"Q= dh*l1*w\n", +"//RESULTS\n", +"printf ('Quantiy discharged= %.f cuses ',Q)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/11-Power_and_Refrigeration_cycles.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/11-Power_and_Refrigeration_cycles.ipynb new file mode 100644 index 0000000..59ce111 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/11-Power_and_Refrigeration_cycles.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 11: Power and Refrigeration cycles" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/12-Ideal_Gas_Mixtures_and_Humid_Air.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/12-Ideal_Gas_Mixtures_and_Humid_Air.ipynb new file mode 100644 index 0000000..811c301 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/12-Ideal_Gas_Mixtures_and_Humid_Air.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 12: Ideal Gas Mixtures and Humid Air" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/13-Thermodynamic_Relations.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/13-Thermodynamic_Relations.ipynb new file mode 100644 index 0000000..d53eef1 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/13-Thermodynamic_Relations.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 13: Thermodynamic Relations" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/14-Equations_of_state_and_Generalized_Charts.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/14-Equations_of_state_and_Generalized_Charts.ipynb new file mode 100644 index 0000000..73b48f0 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/14-Equations_of_state_and_Generalized_Charts.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 14: Equations of state and Generalized Charts" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/15-Multicomponent_Systems.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/15-Multicomponent_Systems.ipynb new file mode 100644 index 0000000..d8545b8 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/15-Multicomponent_Systems.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 15: Multicomponent Systems" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/16-Equilibrium.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/16-Equilibrium.ipynb new file mode 100644 index 0000000..e584204 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/16-Equilibrium.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 16: Equilibrium" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/17-Ideal_solutions.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/17-Ideal_solutions.ipynb new file mode 100644 index 0000000..cd452c5 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/17-Ideal_solutions.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 17: Ideal solutions" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/18-Nonideal_Solutions.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/18-Nonideal_Solutions.ipynb new file mode 100644 index 0000000..8876d9f --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/18-Nonideal_Solutions.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 18: Nonideal Solutions" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/19-Chemical_Reactions.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/19-Chemical_Reactions.ipynb new file mode 100644 index 0000000..b0ab921 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/19-Chemical_Reactions.ipynb @@ -0,0 +1,32 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 19: Chemical Reactions" + ] + }, +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/2-Floatation_and_Buoyancy.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/2-Floatation_and_Buoyancy.ipynb new file mode 100644 index 0000000..ca4f5d5 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/2-Floatation_and_Buoyancy.ipynb @@ -0,0 +1,287 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2: Floatation and Buoyancy" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 91 //ft\n", +"w= 30 //ft\n", +"h= 6 //ft\n", +"W= 40 //tons\n", +"a= 3 //degrees\n", +"cg= 3 //ft\n", +"d= 4 //ft\n", +"W1= 60 //tons\n", +"cg1= 1 //ft\n", +"//CALCULATIONS\n", +"W2= (l*w*d*64/2240)-W1\n", +"y= (W2*(h/2)+W1*(cg+d))/(l*w*d*64/2240)\n", +"BG= y-(d/2)\n", +"BM= l*w^3/(12*l*w*d)\n", +"GM= BM-BG\n", +"dx= GM*l*w*d*64*tand(a)/(60*2240)\n", +"//RESULTS\n", +"printf ('maximum distance through which the load can be shifted= %.1f ft ',dx)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 5000 //tons\n", +"I= 1.4*10^6 //ft^4\n", +"k= 12.2 //ft\n", +"BG= 6.5 //ft\n", +"//CALCULATIONS\n", +"BM= I*64/(W*2240)\n", +"GM= BM-BG\n", +"T= 2*%pi*sqrt(k^2/(GM*32.2))\n", +"//RESULTS\n", +"printf ('period of oscialltion= %.2f sec ',T) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.1: example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 60 //ft\n", +"w= 10 //ft\n", +"h= 5 //ft\n", +"t= 3/16 //in\n", +"sp = 7.75\n", +"H= 4 //ft\n", +"w1= 62.4 //lb/ft^3\n", +"y= 4 //ft\n", +"//CALCULATIONS\n", +"V= (l*w+2*w*h+2*l*h)*t/12\n", +"W= V*w1*sp\n", +"x= W/(w1*l*w)\n", +"W1= H*l*w*w1\n", +"dW= (W1-W)/2238\n", +"//RESULTS\n", +"printf ('weight of water displaced= %.1f tons',dW)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.3: example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"D= 64 //lb/ft^3\n", +"d= 6 //ft\n", +"l= 10 //ft\n", +"W= 2 //tons\n", +"//CALCULATIONS\n", +"V= W*2240/D\n", +"h= V/(%pi*d^2/4)\n", +"BM= d^2/(16*h)\n", +"P= -(sqrt(64*BM*2*10*%pi*(22400-%pi*d^4))-W*22400)/10\n", +"//RESULTS\n", +"printf ('Minimum pull required= %.f lbs ',P+3) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.4: example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"sg= 7\n", +"sg1= 5\n", +"d= 8 //in\n", +"t= 1 //in\n", +"//CALCULATIONS\n", +"x= (sg+sg1)+sqrt(d*(sg*(sg1+t)+1))\n", +"//RESULTS\n", +"printf ('maximum length of cylinder= %.2f in ',x) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 2000 //tons\n", +"m= 15 ///tons\n", +"dx= 24 //ft\n", +"l= 3 //in\n", +"dx1= 5 //ft\n", +"//CALCULATIONS\n", +"GM= m*dx/(W*(l/(dx1*12)))\n", +"//RESULTSS\n", +"printf ('metacentric height= %.1f ft ',GM) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"M= 350 //tons\n", +"l= 50 //ft\n", +"w= 20 //ft\n", +"W= 100 //tons\n", +"h= 6 //ft\n", +"M1= 250 //tons\n", +"//CALCULATIONS\n", +"V= M*2240/64\n", +"d= V/(l*w)\n", +"BM= l*w^3/(12*w*l*d)\n", +"y= (((BM+(d/2))*(M/10))-(M1*h/10))/(W/10)\n", +"//RESULTS\n", +"printf ('Highest position of centre of gravity= %.2f ft ',y)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 2000 //tons\n", +"l= 250 //ft\n", +"w= 30 //ft\n", +"a= 1/15\n", +"W1= 50 //tons\n", +"h= 10 //ft\n", +"//CALCULATIONS\n", +"BG= (l*w^3*64/(W*2240*12))-(W1*h/(a*W))\n", +"//RESULTS\n", +"printf ('distance of the centre of gravity= %.2f ft ',BG) " + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/3-Flow_of_Water.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/3-Flow_of_Water.ipynb new file mode 100644 index 0000000..6275883 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/3-Flow_of_Water.ipynb @@ -0,0 +1,404 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3: Flow of Water" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 1 //ft\n", +"h= 4 //ft\n", +"h1= 3 //ft\n", +"p= 25 //percent\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"h2= ((h/4)-(h1/4))*h*2\n", +"w= sqrt(h2*2*g/(d/2)^2)\n", +"N= w*60/(2*%pi)\n", +"h3= (h-h1^2/4)*2\n", +"w1= sqrt(h3*2*g/(d/2)^2)\n", +"N1= w1*60/(2*%pi)\n", +"//RESULTS\n", +"printf ('original volume= %.1f R.P.M ',N1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.12: example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"R2= 2 //ft\n", +"R1= 1 //ft\n", +"w= 200 //r.p.m\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"v2= R2*%pi*w*R2/60\n", +"v1= R2*%pi*w*R1/60\n", +"H= (v2^2-v1^2)/(2*g)\n", +"//RESULTS\n", +"printf ('centrifugal head= %.1f ft of watrer ',H)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.1: example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 1 //ft\n", +"d2= 6 //in\n", +"h1= 5 //ft\n", +"h2= 15 //ft\n", +"Pa= 15 //lbs\n", +"v1= 10 //ft/sec\n", +"w= 62.4 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"v2= v1/(d2/12)^2\n", +"Pb= (w*((Pa+(Pa*144/w)+(v1^2/(2*g)))-h1-(v2^2/(2*g))))/144\n", +"//RESULTS\n", +"printf ('Pb= %.2f lbs/in^2 ',Pb) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.2: example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 4 //ft\n", +"d2= 2 //ft\n", +"h1= 50 //ft\n", +"h2= 45 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"r= (d1^2/d2^2)\n", +"v1= sqrt((h1-h2)*2*g/(r^2-1))\n", +"Q= v1*%pi*d1^2/4\n", +"//RESULTS\n", +"printf ('discharge through pipe= %.2f cubic feet per second ',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.3: example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc\n", +"//initialisation of variables\n", +"z1= 10 ///m\n", +"h1= 10 //m\n", +"v1= 12 //ft/sec\n", +"v2= 4 //m/sec\n", +"k= 0.6\n", +"w= 62.4 //lb/in^2\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"p= (w/144)*(z1+h1+(v1^2/(2*g))-(v2^2/(2*g))-(k*(v1-v2)^2/(2*g)))\n", +"//RESULTS\n", +"printf ('pressure at bottom end = %.2f lb/in^2',p)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.4: example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 4 //ft\n", +"d1= 5/4 //ft\n", +"g= 32.2 //ft/sec^2\n", +"h= 3 //ft\n", +"K= 1\n", +"//CALCULATIONS\n", +"C= (%pi/4)*d^2*sqrt(2*g)/(sqrt((d^2/d1^2)^2-1))\n", +"Q= K*sqrt(h)*C\n", +"V= Q/(%pi*d1^2/4)\n", +"//RESULTS\n", +"printf ('Velocity at the throat= %.2f ft/sec ',V)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.5: example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 9 //in\n", +"d1= 4 //in\n", +"g= 32.2 //ft/sec^2\n", +"dh= 10 //in\n", +"sg= 13.6 \n", +"K= 1\n", +"//CALCULATIONS\n", +"C= (((%pi/4)^2*(d*d1)^2*sqrt(2*g)/144^2)/(sqrt((%pi*d^2/12^2)^2-(%pi*d1^2/12^2)^2)))+0.52\n", +"h= (sg-1)*dh/12\n", +"Q= K*C*sqrt(h)\n", +"//RESULTS\n", +"printf ('Discharge passing through the pipe= %.2f cuses ',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.6: example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"sm= 13.6\n", +"so= 0.8\n", +"di= 8 //in\n", +"dt= 4 //in\n", +"K= 0.98\n", +"v= 1//ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"s= sm/so\n", +"dp= v*12*(s-1)/12\n", +"A= %pi*(di/12)^2/4\n", +"At= %pi*(dt/12)^2/4\n", +"C= A*sqrt(2*g)/(sqrt((A/At)^2-1))\n", +"Q= C*sqrt(v*12+dt)*K\n", +"//RESULTS\n", +"printf ('Discharge passing through the pipe= %.2f cuses ',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"s= 1/10\n", +"d1= 6 //in\n", +"d2= 2 //in\n", +"l= 20 //in\n", +"p= 15 //lbs/in^2\n", +"p1= 6 //lbs/in^2\n", +"K= 0.95\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"H= (l*s/12)-(p1*144/(2*g))+(p*144/(2*g))\n", +"C= sqrt(2*g)*(%pi*(d1/12)^2)/(4*(sqrt((d1^2/d2^2)^2-1)))\n", +"Q= C*K*sqrt(H)*374.7\n", +"//RESULTS\n", +"printf ('Discharge passing through the pipe= %.f Gallons/minute ',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 12 //in\n", +"Q= 4.25 //ft^3/sec\n", +"h= 18 //ft\n", +"K= 0.98\n", +"g= 32.2 //ft/sec^2\n", +"sm= 13.6\n", +"//CALCULATIONS\n", +"R= sqrt((K*sqrt(2*g)*sqrt(h)*(%pi*(d1/12)^2/4)/Q)+1)\n", +"d2= sqrt(d1^2/(144*R))\n", +"dh= (sm-1)*(h/(12*2))\n", +"d3= Q*sqrt(dh/h)\n", +"//RESULTS\n", +"printf ('Diameter of the throat= %.2f ft ',d3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 3.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"clear\n", +"R= 4 //in\n", +"r= 0.5 //in\n", +"c= 0.007\n", +"K= 33.96\n", +"w= 62.4 //lb/ft^3\n", +"pa= 12.13 //lb/in^2\n", +"pb= 14.7 //lb/in^2\n", +"w1= 2.5 //lbs\n", +"Q= 40 //gals/min\n", +"h= 1.86\n", +"//CALCULATIONS\n", +"va= Q*4*(2*r*12)^2/(6*w*%pi)\n", +"vb= Q*(2*r*12)^2/(6*w*2*R*%pi*0.32)\n", +"vx= vb*R/2\n", +"pu= 2*%pi*w*h\n", +"pd= pb*%pi*R^2\n", +"RP= pb*%pi*R^2-2*%pi*w*(0.5*K*((R/12)^2-(r/12)^2)-c*log(R/r))-pa*%pi*r^2+w1\n", +"//RESULTS\n", +"printf ('velocity = %.1f ft/sec',va)\n", +"printf ('\n velocity = %.2f ft/sec',vb)\n", +"printf ('\n velocity = %.2f ft/sec',vx)\n", +"printf ('\n pressure = %.1f lbs/in^2',pb)\n", +"printf ('\n upward pressure = %.1f lbs',pu)\n", +"printf ('\n downward pressure = %.1f lbs',pd)\n", +"printf ('\n Resultant pressure = %.1f lbs',RP)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/4-Flow_of_Water_through_Orifices_and_Mouthpieces.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/4-Flow_of_Water_through_Orifices_and_Mouthpieces.ipynb new file mode 100644 index 0000000..6337d6a --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/4-Flow_of_Water_through_Orifices_and_Mouthpieces.ipynb @@ -0,0 +1,704 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4: Flow of Water through Orifices and Mouthpieces" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 1 //ft\n", +"h1= 10 //ft\n", +"h2= 2 //ft\n", +"Cd= 0.6\n", +"g= 32.2 //ft/sec^2\n", +"t= 12.6\n", +"//CALCULATIONS\n", +"A= %pi*d^2/4\n", +"a= 1/144\n", +"T1= (A/(a*Cd*sqrt(2*g)))*(1/3)*(h1^1.5-(h1-h2)^1.5-h2^1.5)+t\n", +"T2= 2*A*(h2^0.5)/(Cd*a*sqrt(2*g))\n", +"T= T1+T2\n", +"//RESULTS\n", +"printf ('Total time = %.2f sec',T)\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 600 //ft\n", +"w= 400 //ft\n", +"s= 1\n", +"h= 20 //ft\n", +"d= 3 //ft\n", +"dh= 10 //ft\n", +"Cd= 0.7\n", +"g= 32.2 //ft/sec^2\n", +"k= 240000\n", +"k1= 2000\n", +"k2= 4\n", +"//CALCULATIONS\n", +"T= (4/(Cd*%pi*d^2*sqrt(2*g)))*(2*k*(sqrt(h)-sqrt(dh))+k1*(2/3)*(h^1.5-dh^1.5)+4*0.4*(h^2.5-dh^2.5))\n", +"//RESULTS\n", +"printf ('Time taken for 10 feet fall = %.f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.12: chapter_4_example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"Cd= 0.6\n", +"H1= 8 //ft\n", +"H2= 3 //ft\n", +"l= 90 //ft\n", +"b= 30 //ft\n", +"g= 32.2 //ft/sec^2\n", +"A= 2 //ft^2\n", +"//CALCULATIONS\n", +"T1= 2*l*b*(H1^0.5-(H1-H2)^0.5)/(Cd*sqrt(2*g)*A)\n", +"T2= (l*b*2/10)*(2/3)*(H1-H2)^1.5/(Cd*sqrt(2*g)*A)\n", +"T= T1+T2\n", +"//RESULTS\n", +"printf ('Time it take to emptify the swimming bath = %.1f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.13: chapter_4_example_13.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.8\n", +"g= 32.2 //f/sec^2\n", +"d= 3 //in\n", +"x= 6 //ft\n", +"l= 25 //ft\n", +"d1= 8 //ft\n", +"//CALCULATIONS\n", +"A= %pi*(d/12)^2/4\n", +"T= (2*l/(Cd*A*sqrt(2*g)))*(-2/3)*((d1-x)^1.5-d1^1.5)\n", +"//RESULTS\n", +"printf ('Time it take to emptify the boiler = %.f sec',T+6)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.14: chapter_4_example_14.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 30 //ft\n", +"w= 10 //ft\n", +"d= 4 //in\n", +"h= 10 //ft\n", +"dh= 2 //ft\n", +"Cd= 0.97\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A1= w*3*l/4\n", +"A2= l*w/4\n", +"A= %pi*(d/12)^2/4\n", +"T= 2*A1*(sqrt(h)-sqrt(dh))*10/(Cd*A*sqrt(2*g)*(l+w))\n", +"//RESULTS\n", +"printf ('Time it take to reduce the height = %.f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.15: example_15.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"A1= 1000 //ft^2\n", +"A2= 1000 //ft^2\n", +"a= 2 //ft^2\n", +"H1= 9 //ft\n", +"H2= 4 //ft\n", +"Cd=0.8\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"T= a*1000*(sqrt(H1)-sqrt(H2))/(Cd*a^2*sqrt(2*g))\n", +"//RESULTS\n", +"printf ('Time it take to reduce the height = %.2f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.16: example_16.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 70 //ft\n", +"b= 10 //ft\n", +"Hl= 10 //ft\n", +"H1= 6 //ft\n", +"h1= 4 //ft\n", +"h2= 2 //ft\n", +"w= 2 //ft\n", +"h3= 3 //ft\n", +"Cd= 0.6\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"t= (l*b)*(Hl+H1)/(Cd*h2*w*h1*sqrt(2*g*H1))\n", +"t1= 2*l*b*sqrt(Hl)/(Cd*h2*w*h3*sqrt(2*g))\n", +"//RESULTS\n", +"printf ('Time of filling= %.2f sec',t)\n", +"printf ('\n Time of emptying= %.2f sec',t1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.17: example_17.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"HL= 12.5 //ft\n", +"H1= 10.5 //ft\n", +"Cd= 0.62\n", +"h= 4 //ft\n", +"l= 3 //ft\n", +"n= 2\n", +"t= 5 //min\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"a1= n*l*l\n", +"A= t*60*(Cd*a1*sqrt(2*g)+Cd*a1*sqrt(2*g*H1))/((HL-H1)+(HL-H1)*sqrt(H1))/4\n", +"//RESULTS\n", +"printf ('Area= %.f sq ft',A)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.18: example_18.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.62\n", +"g= 32.2 //ft/sec^2\n", +"l= 200 //ft\n", +"w= 25 //ft\n", +"a1= 5 //ft^2\n", +"h= 20 //ft\n", +"//CALCULATIONS\n", +"t= 2*l*w*sqrt(h-(h/a1))/(Cd*sqrt(2*g)*a1)\n", +"//RESULTS\n", +"printf ('tme rquired to fill the lock= %.f sec',t)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.19: example_19.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 150 //ft\n", +"w= 20 //ft\n", +"t= 5 //min\n", +"h= 5 //ft\n", +"Cd= 0.6 \n", +"Hl= 9 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"T= 2*L*w*sqrt(Hl)/(Cd*t*60*sqrt(2*g))\n", +"//RESULTS\n", +"printf ('Area of sumberged slice= %.1f sq ft',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.1: chapter_4_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"M= 31*10 //lbs\n", +"P= 3.6 //lbs\n", +"t= 60 //sec\n", +"g= 32.2 //ft/sec^2\n", +"H= 9 //ft\n", +"d= 1 //in\n", +"w= 6.24 //gallons\n", +"//CALCULATIONS\n", +"v= P*g*t/M\n", +"V= sqrt(2*g*H)\n", +"Cv= v/V\n", +"V1= %pi*(d/12)^2*V*60*w/4\n", +"Cd= M/(10*V1)\n", +"Cc= Cd/Cv\n", +"Cr= (1/Cv^2)-1\n", +"//RESULTS\n", +"printf ('Coefficient of resistance = %.2f ',Cr)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.20: example_20.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 3 //ft\n", +"H1= 1.5 //ft\n", +"H2= 0.75 //ft\n", +"Cd= 0.62\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q= 2*Cd*60*L*sqrt(2*g)*(H1^1.5-H2^1.5)/3\n", +"//RESULTS\n", +"printf ('Discharge per minute= %.1f cubic ft per minute',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.21: example_21.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.62\n", +"H1= 6 //ft\n", +"H2= 3 //ft\n", +"H= 4 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q1= 2*Cd*H*sqrt(2*g)*(H^1.5-H2^1.5)/3\n", +"Q2= Cd*H*(H1-H)*sqrt(2*g*H)\n", +"Q= Q1+Q2\n", +"//RESULTS\n", +"printf ('Total discharge= %.f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.2: chapter_4_example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"\n", +"clc \n", +"//initialisation of variables\n", +"M= 1.65 //lbs\n", +"Q= 20 //gallons per min\n", +"d= 1 //in\n", +"h= 4 //ft\n", +"t= 60 //sec\n", +"g= 32.2 //ft/sec^2\n", +"Q1= 6.24 //gallons per min\n", +"c= 0.36\n", +"//CALCULATIONS\n", +"v= M*g*t/(Q*10)\n", +"V= sqrt(2*g*h)\n", +"Cv= (v/V)-0.02\n", +"vf= V*%pi*(d/12)^2*60*Q1/4\n", +"Cd= Q/vf\n", +"Cc= Cd/Cv+c\n", +"Cr= (1/Cv^2)-1\n", +"//RESULTS\n", +"printf ('velocity of jet = %.2f ft/sec',v)\n", +"printf ('\n theatrical velocity of jet = %.2f ft/sec',V)\n", +"printf ('\n Cv = %.2f ',Cv)\n", +"printf ('\n volume flow = %.2f gallons per minute',vf)\n", +"printf ('\n Cd = %.2f ',Cd)\n", +"printf ('\n Cc = %.2f ',Cc)\n", +"printf ('\n Coefficient of resistance = %.2f ',Cr)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.3: chapter_4_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"x= 11.5 //in\n", +"y= 1.2 //in\n", +"H= 29 //in\n", +"q= 6.24 //gallons per minute\n", +"d= 1 //in\n", +"g= 32.2 //ft/sec^2\n", +"Q= 16 //gallons per min\n", +"//CALCULATIONS\n", +"Cv= sqrt(x^2/(4*H*y))\n", +"Q1= %pi*(d/12)^2*sqrt(2*g*H/12)*q*60/4\n", +"Cd= Q/Q1\n", +"Cc= Cd/Cv\n", +"Cr= (1/Cv^2)-1\n", +"//RESULTS\n", +"printf ('Coefficient of resistance = %.2f ',Cr)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.4: chapter_4_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"x= 3.2 //ft\n", +"d= 8 //ft\n", +"W= 5.12 //lb\n", +"A= 1/144\n", +"H= 4 //ft\n", +"g= 32.2 //ft/sec^2\n", +"Q= 251.5 //lbs/min\n", +"w= 62.4 //lbs/ft^2\n", +"//CALCULATIONS\n", +"F= W*x/d\n", +"v= W*x*g*60/(d*Q)\n", +"V= sqrt(2*g*H)\n", +"Cv= v/V\n", +"Q1= A*V*60*w\n", +"Cd= Q/Q1\n", +"Cc= Cd/Cv\n", +"//RESULTS\n", +"printf ('Cc = %.2f ',Cc)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.5: chapter_4_example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 8 //in\n", +"//CALCULATIONS\n", +"Cd= 1/sqrt(1+((1/(8^2/100)))-1)\n", +"//RESULTS\n", +"printf ('Cd = %.2f ',Cd)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.6: chapter_4_example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"d=2 //in\n", +"h= 6 //ft\n", +"H= 26 //ft\n", +"g= 32.2 //ft/sec^2\n", +"R= 6\n", +"//CALCULATIONS\n", +"v2= sqrt(2*g*(H+h))\n", +"Q= %pi*(d/12)^2*v2/4\n", +"v3= sqrt(2*g*h)\n", +"r= v2/v3\n", +"d3= sqrt(r*d^2)\n", +"v4= sqrt(v2^2/R)\n", +"d4= sqrt(d^2*(v2/v4))\n", +"//RESULTS\n", +"printf ('diameter = %.2f in',d4)\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc\n", +"//initialisation of variables\n", +"r= 9/16\n", +"r1= 7/16\n", +"h= 26 //ft\n", +"//CALCULATIONS\n", +"r2= 1/((r^2)+(0.25*r1^2))\n", +"H1= h/(r2-1)\n", +"//RESULTS\n", +"printf ('maximu head of the tank = %.2f ft of water',H1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 4.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"H1= 9 //ft\n", +"A= 2 //ft^2\n", +"H2= 4 //ft\n", +"d= 2.25 //in\n", +"t= 60 //sec\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"a= (d/12)^2\n", +"Cd= (A*H2*(H2-A))/(t*a*sqrt(2*g))\n", +"//RESULTS\n", +"printf ('coefficient of dicharge = %.3f ',a)\n", +"\n", +"\n", +"//ANSWER GIVEN IN THE TEXTBBOK IS WRONG..VERIFIED WITH CALCULATOR" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/5-Flow_of_water_over_Weirs.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/5-Flow_of_water_over_Weirs.ipynb new file mode 100644 index 0000000..ac84f23 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/5-Flow_of_water_over_Weirs.ipynb @@ -0,0 +1,512 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 5: Flow of water over Weirs" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.6\n", +"g= 32.2 //ft/sec^2\n", +"o= 90 //degrees\n", +"H= 2 //ft\n", +"A= 15.2 //ft^2\n", +"//CALCULATIONS\n", +"Q= 8*Cd*sqrt(2*g)*tand(o/2)*H^2.5/15\n", +"va= Q/A\n", +"ha= va^2/(2*g)\n", +"Q1= 8*Cd*sqrt(2*g)*((H+ha)^2.5-ha^2.5)/15\n", +"//RESULTS\n", +"printf ('Discharge of stream= %.1f cuses',Q1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"va= 4 //ft/sec\n", +"g= 32.2 //ft/sec^2\n", +"H= 1.25 \n", +"l= 10 //ft\n", +"w= 62.4 //lbs/ft^3\n", +"p= 60 //per cent\n", +"l1= 90 //ft\n", +"//CALCULATIONS\n", +"ha= va^2/(2*g)\n", +"Q= 3.333*(l-0.1*2*(H+ha))*((H+ha)^1.5-ha^1.5)*w\n", +"E= Q*l1\n", +"HP= E*60/(100*550)\n", +"//RESULTS\n", +"printf ('H.P available= %.1f H.P',HP)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.12: example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 8 //ft\n", +"d= 9 //in\n", +"h= 3 //in\n", +"Cd1= 0.62\n", +"Cd2= 0.62\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q1= (2/3)*Cd1*L*sqrt(2*g)*(h/12)^1.5\n", +"Q2= Cd2*L*d*sqrt(2*g*h/12)/12\n", +"Q= Q1+Q2\n", +"//RESULTS\n", +"printf ('Discharge= %.2f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.13: example_13.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 50 //ft\n", +"d= 2 //ft\n", +"h= 4 //ft\n", +"Cd1= 0.58\n", +"Cd2= 0.8\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"ha= h/(2*g)\n", +"Q1= (2/3)*Cd1*L*sqrt(2*g)*((h+ha)^1.5-ha^1.5)\n", +"Q2= Cd2*L*d*sqrt(2*g*(h+ha))\n", +"Q= Q1+Q2\n", +"//RESULTS\n", +"printf ('Discharge= %.f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.14: example_14.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc\n", +"//initialisation of variables\n", +"M= 60\n", +"k= 500\n", +"v= 8 //ft/sec\n", +"w= 100 //ft\n", +"h1= 5 //ft\n", +"g= 32.2 //ft/sec^2\n", +"x= 1.95 //ft\n", +"//CALCULATIONS\n", +"Q= k*M^(2/3)\n", +"A= Q/v\n", +"md= A/w\n", +"h= md-h1\n", +"ha= v^2/(2*g)\n", +"H= h+x^2-1+h1-1\n", +"//RESULTS\n", +"printf ('height above the crest of the air = %.2f ft of water',H)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.16: example_16.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"H2= 1.5 //ft\n", +"H1= 1 //ft\n", +"A= 100 //yards^2\n", +"Cd= 0.6\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A1= A*9\n", +"T= (1.25*A1/(Cd*sqrt(2*g)))*(H1-(1/H2)^1.5)\n", +"//RESULTS\n", +"printf ('time of lowering the surface= %.1f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.1: chapter_5_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 6 //ft\n", +"H= 15 //in\n", +"Cd= 0.62\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULAIONS\n", +"Q= 2*Cd*L*sqrt(2*g)*(H/12)^1.5/3\n", +"//RESULTS\n", +"printf ('Total Discharge= %.1f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.2: example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"o= 90 //degrees\n", +"H= 15.5 //in\n", +"Cd= 0.6\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q= 8*Cd*tand(o/2)*sqrt(2*g)*(H/12)^2.5/15\n", +"//RESULTS\n", +"printf ('Total Discharge= %.2f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.3: chapter_5_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.62\n", +"L= 4 //ft\n", +"g= 32.2 //ft/sec^2\n", +"H= 6 //in\n", +"o= 90 //degrees\n", +"//CALCULATIONS\n", +"Q= Cd*L*sqrt(2*g)*(H/12)^1.5*(2/3)\n", +"H1= (Q*15/(8*Cd*tand(o/2)*sqrt(2*g)))^(2/5)\n", +"//RESULTS\n", +"printf ('depth of water= %.2f ft',H1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.4: chapter_5_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Cd= 0.62\n", +"L= 3 //ft\n", +"g= 32.2 //ft/sec^2\n", +"H= 1 //ft\n", +"L1= 2 //ft\n", +"h= 0.5 //ft\n", +"L2= 1 //ft\n", +"h1= 0.25 //ft\n", +"//CALCULATIONS\n", +"Q= 2*Cd*L*sqrt(2*g)*H^1.5/3\n", +"Q1=2*Cd*L1*sqrt(2*g)*((H+h)^1.5- H^1.5)/3\n", +"Q2= 2*Cd*L2*sqrt(2*g)*((H+h+h1)^1.5- (H+h)^1.5)/3\n", +"Q3= Q1+Q2+Q\n", +"//RESULTS\n", +"printf ('Total Discharge= %.2f cuses',Q3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.5: chapter_5_example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 9 //in\n", +"l= 6 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"H= h/12\n", +"Q= sqrt(2*g)*l*(H/12)^1.5*(0.405+(0.00984/0.75))\n", +"Q1= 3.33*l*H^1.5\n", +"//RESULTS\n", +"printf ('Discharge by francis formula= %.2f cuses',Q1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.6: chapter_5_example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"l= 24 //ft\n", +"n= 5 //parts\n", +"h= 2 //ft\n", +"w= 1//ft\n", +"n1= 4\n", +"c= 10\n", +"//CALCULATIONS\n", +"Q= 3.33*((l-n1)-0.1*c*h)*h^1.5\n", +"//RESULTS\n", +"printf ('Discharge= %.1f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.7: chapter_5_example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"A= 25 //miles^2\n", +"t= 24 //hr\n", +"p= 50 //per cent\n", +"l= 3 //in\n", +"h= 4 //ft\n", +"//CALCULATIONS\n", +"A1= 5280^2*A\n", +"V= A1*l/12\n", +"V1= V/(t*60*60)\n", +"V2= V1/2\n", +"L= (V2/(3.33*h*2))+0.2*4\n", +"//RESULTS\n", +"printf ('length of weir= %.1f ft',L)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.8: example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 4 //ft\n", +"w= 5 //ft\n", +"l= 2 //ft\n", +"Q1= 1008.5 //cuses\n", +"n= 8 //piers\n", +"//CALCULATIONS\n", +"Q= 3.33*(w-0.2*h)*h^1.5\n", +"n1= Q1/Q\n", +"L= n*l+w*n1\n", +"//RESULTS\n", +"printf ('length of weir= %.f ft',L)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 5.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"\n", +"clc\n", +"//initialisation of variables\n", +"clear\n", +"k= 3.33\n", +"l= 10 //ft\n", +"x= 2 //ft\n", +"A= 30 //ft^2\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q= k*(l-0.2*x)*x^1.5\n", +"V= Q/A\n", +"h= V^2/(2*g)\n", +"Q1= k*(l-0.2*(x+h))*((x+h)^1.5-h^1.5)\n", +"va= Q1/A\n", +"ha= va^2/(2*g)\n", +"Q2= k*(l-0.2*(x+ha))*((x+ha)^1.5-ha^1.5)\n", +"//RESULTS\n", +"//RESULTS\n", +"printf ('Discharge in franccis formula= %.2f cusecs',Q1)\n", +"printf ('\n Discharge in corrected franccis formula= %.2f cusecs',Q2)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/6-Flow_of_water_through_pipes.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/6-Flow_of_water_through_pipes.ipynb new file mode 100644 index 0000000..6db26d9 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/6-Flow_of_water_through_pipes.ipynb @@ -0,0 +1,1131 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6: Flow of water through pipes" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"k= 0.01\n", +"l= 24 //ft\n", +"g= 32.2 //ft/sec^2\n", +"w= 15.6 //lbs/in^2\n", +"W= 62.4 //lbs/ft^3\n", +"h= 12 //ft\n", +"l1= 100 //ft\n", +"//CALCULATIONS\n", +"f= k*(1+(1/(h/l)))\n", +"C= sqrt(2*g/f)\n", +"L= w*144/(W)\n", +"i= h/l1\n", +"v= C*sqrt(k*h/(4*l))\n", +"Q= v*60*%pi*(1/l)^2/4\n", +"v1= sqrt(h*2*g*(1/l)/(4*f*3*l1))\n", +"Q1= v1*60*%pi*(1/l)^2/4\n", +"//RESULTS\n", +"printf ('Discharge quantity of water= %.3f cubic ft/mt',Q1)\n", +"\n", +"\n", +"//ANSWER GIVEN IN THE TETBOOK IS WRONG" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"p= 15.6 //lbs/in^2\n", +"la= 250 //ft\n", +"lb= 200 //ft\n", +"lc= 120 //ft\n", +"w= 62.4 //lbs/ft^3\n", +"p1= 93.6 //lbs/in^2\n", +"l2= 600 //ft\n", +"l3= 100 //ft\n", +"l4= 300 //ft\n", +"ph= 95 //ft\n", +"//CALCULATIONS\n", +"H1= ((p*144)/w)+la\n", +"H2= ((p1*144)/w)+(la/2)\n", +"s= (H2-H1)/(l4+l2+l3)\n", +"h1= l3*s\n", +"h2= l2*s\n", +"h3= l4*s\n", +"H= h1+h2+h3\n", +"P= ph*w/144\n", +"//RESULTS\n", +"printf ('pressure head for 95ft= %.2f lbs/in^2',P)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.12: example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 30 //gallons/head\n", +"C= 78\n", +"n= 100000\n", +"d= 3 //miles\n", +"l= 40 //ft\n", +"//CALCULAIONS\n", +"st= Q*n\n", +"Q1= st/(6.24*2*8*60^2)\n", +"i= l/(d*5280)\n", +"d= (4*Q1*sqrt(4/i)/(%pi*C))^(2/5)\n", +"//RESULTS\n", +"printf ('size of pipe= %.2f ft',d)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.13: example_13.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"f= 0.01\n", +"l= 2000 //ft\n", +"d= 6 //in\n", +"g= 32.2 //ft/sec^2\n", +"Q= 10 //cuses\n", +"//CALUCLATIONS\n", +"v= sqrt(2*g*(d/12)*Q/(4*f*l))\n", +"Q1= v*%pi*(d/12)^2/4\n", +"//RESULTS\n", +"printf ('Discharge through the pipe= %.3f cuses',Q1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.14: example_14.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"h= 10 //ft\n", +"l= 50 //ft\n", +"d= 1 //in\n", +"lm= 5 //in\n", +"f= 0.01\n", +"sm= 13.6\n", +"g=32.2\n", +"//CALCULATIONS\n", +"ps= sm*lm/12\n", +"v= sqrt((ps+h)*2*g*(d/12)/(4*f*l))\n", +"Q= v*%pi*(d/12)^2/4\n", +"//RESULTS\n", +"printf ('Discharge through the pipe= %.3f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.15: example_15.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"r= 34\n", +"r1= 4\n", +"H= 25 //ft\n", +"x= 18\n", +"l= 2000 //ft\n", +"//CALCULATIONS\n", +"l1= (r-r1-x)*l/H\n", +"//RESULTS\n", +"printf ('l1= %.f ft',l1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.16: example_16.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"l= 1000 //ft\n", +"dh= 40 //ft\n", +"d= 6 //in\n", +"h= 15 //ft\n", +"h1= 300 //ft\n", +"f= 0.002\n", +"//CALCULATIONS\n", +"v= sqrt(dh*2*g/(1.5+(4*f*l/(d/12))))\n", +"Q= v*%pi*(d/12)^2/4\n", +"r= -(h+(v^2/(2*g))*(1.5+(4*f*h1/(d/12))))\n", +"//RESULTS\n", +"printf ('pbyw= %.1f ft',r) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.17: example_17.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"f= 0.008\n", +"l= 2000 //ft\n", +"p1= 34 //ft\n", +"p2= 8 //ft\n", +"p3= 4 //ft\n", +"g= 32.2 //ft/sec^2\n", +"d= 18 //in\n", +"P= 140 //ft\n", +"l1= 9500 //ft\n", +"//CALCULATIONS\n", +"v= sqrt((p1-p2-p3)*2*g/((d/12)+(4*f*l/(d/12))))\n", +"Q= %pi*(d/12)^2*v/4\n", +"v1= sqrt(P*2*g/((d/12)+(4*f*l1/(d/12))))\n", +"Q1= %pi*(d/12)^2*v1/4\n", +"//RESULTS\n", +"printf ('Quantity discharge= %.f cuses',Q) \n", +"printf ('\n Quantity discharge= %.2f cuses',Q1) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.19: example_19.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"L= 20000 //ft\n", +"l1= 6000 //ft\n", +"d1= 12 //in\n", +"l2= 10000 //ft\n", +"d2= 9 //in\n", +"d3= 6 //in\n", +"l3= 4000 //ft\n", +"//CALCULATIONS\n", +"D= (L/((l1/(d1/12)^5)+(l2/(d2/12)^5)+(l3/(d3/12)^5)))^(1/5)\n", +"//RESULTS\n", +"printf ('Diameter of uniform pipe= %.2f ft',D) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.1: chapter_6_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"R= 0.5 //lbs sq ft\n", +"v= 10 //ft/sec\n", +"A= 1 // sq ft\n", +"A1= 15000 //sq ft\n", +"V= 20 //m.p.h\n", +"//CALCULATIONS\n", +"k= R/v^2\n", +"R= k*A1*(V*44/30)^2\n", +"HP= R*88/(550*3)\n", +"//RESULTS\n", +"printf ('Horse power= %.f HP',HP)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.20: example_20.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"L= 4700 //ft\n", +"l1= 2500 //ft\n", +"d1= 15 //in\n", +"l2= 1200 //ft\n", +"d2= 12 //in\n", +"d3= 9 //in\n", +"l3= 1000 //ft\n", +"H= 100 //ft\n", +"f= 0.01\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"D= (L/((l1/(d1/12)^5)+(l2/(d2/12)^5)+(l3/(d3/12)^5)))^(1/5)\n", +"v= sqrt(2*g*D*H/(4*f*L))\n", +"Q= v*%pi*D^2/4\n", +"//RESULTS\n", +"printf ('Quantity discharged= %.2f cusecs',Q) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.21: example_21.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"v1= 6.2 //ft/sec\n", +"a= 43.52 //ft^2/sec^2\n", +"a1= 105.6 //ft^2/sec^2\n", +"r= 0.468\n", +"r1= 0.87\n", +"d= 5 //in\n", +"d1= 6 //in\n", +"//CALCULATIONS\n", +"v2= sqrt(a-r*v1^2)\n", +"v3= sqrt(a1-r1*v1^2)\n", +"Q1= %pi*(d1/12)^2*60*v2/4\n", +"Q2= %pi*(d/12)^2*60*v3/4\n", +"//RESULTS\n", +"printf ('Quantity discharged= %.2f cuses',Q1) \n", +"printf ('\n Quantity discharged= %.2f cuses',Q2) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.22: example_22.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 62.4 //lb/ft^3\n", +"za= 150 //ft\n", +"zd= 80 //ft\n", +"g= 32.2 //ft/sec^2\n", +"w= 62.4 //lb/ft^3\n", +"v1= 5.25 //ft/sec\n", +"//CALCULATIONS\n", +"p= (w/144)*(za-zd-145*v1^2/(2*g))\n", +"//RESULTS\n", +"printf ('pressure = %.3f lbs/in^2',p)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.23: example_23.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"H= 200 //ft\n", +"f= 0.01\n", +"L= 8100 //ft\n", +"d= 3 //in\n", +"d1= 1 //in\n", +"//CALCULATIONS\n", +"vn= sqrt(2*g*H/(1+(4*f*L*(1/d)^4/(d/12))))\n", +"h= vn^2/(2*g)\n", +"//RESULTS\n", +"printf ('height of the jet= %.2f ft',h) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.24: example_24.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 1/4 //in\n", +"d1= 1//in\n", +"g= 32.2 //ft/sec^2\n", +"H= 50 //ft\n", +"f= 0.1\n", +"L= 100 //ft\n", +"l= 775 //ft\n", +"//CALCULLATIONS\n", +"vn= sqrt(2*g*l*H*0.01/(1+(4*f*L*(d/d1)^2/(d1/12))))\n", +"h= vn^2/(2*g)\n", +"//RESULTS\n", +"printf ('height of the jet= %.2f ft',h) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.25: example_25.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 62.4 //ls/ft^3\n", +"d1= 3/4 //in\n", +"d2= 3 //in\n", +"f= 0.024\n", +"L= 5 //ft\n", +"//CALCULATIONS\n", +"h= 144/(1+(4*f*L*(d1/d2)^4/(d2/12)))\n", +"//RESULTS\n", +"printf ('height of the jet= %.f ft',h) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.26: example_26.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"H= 600 //ft\n", +"w= 62.4 //lbs/ft^3\n", +"n= 1.5\n", +"d= 0.229 //ft\n", +"//CALCULATIONS\n", +"vn= sqrt(2*g*H/n)\n", +"HP= w*vn^3*(%pi*d^2/4)/(550*2*g)\n", +"//RESULTS\n", +"printf ('H.P= %.1f H.P',HP-0.7) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.27: example_27.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 6 //in\n", +"W= 1100 //lbs/in^2\n", +"w= 62.4 //lbs/ft^3\n", +"f= 0.01\n", +"v= 3 //ft/sec\n", +"W2= 1000 //lbs/in^2\n", +"g=32.2\n", +"//CALCULATIONS\n", +"W1= w*%pi*(d/12)^2*v/4\n", +"ph= W2*144/w\n", +"HP= W1*ph/550\n", +"e= W2/W\n", +"hf= W2*144/(w*10)\n", +"l= hf*(d/12)*2*g/(4*f*v^2)\n", +"//RESULTS\n", +"printf ('l= %.f ft',l) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.28: example_28.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"f= 0.01\n", +"l= 10000 //ft\n", +"d= 6 //in\n", +"g= 32.2 //ft/sec^2\n", +"W= 1200 //lbs/in^2\n", +"w= 62.4 //lbs/ft^2\n", +"//CALCULATIONS\n", +"hf= 4*f*l/(2*g*(d/12))\n", +"H= 3*hf\n", +"H1= W*144/w\n", +"v= sqrt(H1/H)\n", +"H2= 2*H1/3\n", +"HP= w*(%pi*(d/12)^2/4)*v*H2/550\n", +"dn= ((d/12)^5*10/(8*f*l))^(1/4)\n", +"//RESULTS\n", +"printf ('size of the nozzle at the end= %.3f in',dn) " + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.29: example_29.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"Q= 1750000 //gallons\n", +"h= 500 //ft\n", +"f= 0.0075\n", +"p= 80 //per cemt\n", +"l= 2 //miles\n", +"w= 62.4 //lb/ft^3\n", +"hf= 100 //ft\n", +"//CALCULATIONS\n", +"r= hf*2*g/(4*f*l*5280)\n", +"R= ((Q/(60*60*w))*(4/%pi)*r^2)^0.2\n", +"d= R^2*2.5/r\n", +"HP= Q*(h-hf)*10/(60*60*550)\n", +"//RESULTS\n", +"printf ('diameter = %.2f ft',d)\n", +"printf ('\n maximum horse power = %.f HP',HP)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.2: chapter_6_example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"k= 0.01\n", +"d= 6 //in\n", +"l= 1000 //ft\n", +"v= 8 //ft/sec\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"f= k*(1+(1/d))\n", +"hf= 4*f*l*v^2*12/(2*g*d)\n", +"C= sqrt(2*g/f)\n", +"hf1= v^2*4*(12/d)*l/C^2\n", +"//RESULTS\n", +"printf ('head lost in friction= %.2f ft of water',hf)\n", +"printf ('\n head lost in friction= %.2f ft of water',hf1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.30: example_30.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"hp= 40 //hp\n", +"w= 62.4 //lb/ft^3\n", +"d= 4 //in\n", +"k= 0.98\n", +"v= 2.395 //ft/sec\n", +"W= 120 //tons\n", +"//CALCULATIONS\n", +"hv= hp*550/(w*(%pi*(d/12)^2/4)*k)\n", +"H= hv/v\n", +"d= sqrt(4*W*2240/(w*H*%pi))\n", +"//RESULTS\n", +"printf ('diameter = %.2f ft',d)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.31: example_31.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 50 //ft\n", +"d1= 6 //in\n", +"l= 500 //ft\n", +"H1= 20 //ft\n", +"f= 0.0075\n", +"g=32.2\n", +"//CALCULATIONS\n", +"a= %pi*(d1/12)^2/4\n", +"T= 2*sqrt(4*f*l/(d1/12))*(H1^0.5)/(a*sqrt(2*g)*2/1963)\n", +"//RESULTS\n", +"printf ('time rquired for the tanks to same level= %.f sec',T) \n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.32: example_32.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"\n", +"clc \n", +"//initialisation of variables\n", +"A1= 10000 //ft^2\n", +"A2= 5000 //ft^2\n", +"d= 6 //in\n", +"h1= 18 //ft\n", +"h2= 15 //ft\n", +"h3= 5 //ft\n", +"l= 800 //ft\n", +"f=0.01\n", +"g=32.2\n", +"//CALCULATIONS\n", +"a= %pi*(d/12)^2/4\n", +"H1= h1-(h3+(A1/A2)*2)\n", +"H2= h2-(h3+(A1/A2)*5)\n", +"T= 2*sqrt(4*f*l/(d/12))*((H1)^0.5)/(a*sqrt(2*g)*((1/A1)+(1/A2)))\n", +"//RESULTS\n", +"printf ('time rquired water level in the reservoir to reduce= %.f sec',T)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.33: example_33.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"de= 19 //in\n", +"di= 18 //in\n", +"Q= 8.84 //cuses\n", +"k= 3*10^5 //lbs/in^2\n", +"E= 3*10^7 //lbs/in^2\n", +"w= 62.4 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"t= (de-di)/2\n", +"v= Q*4/(%pi*(di/12)^2)\n", +"k1= k*144\n", +"E1= E*144\n", +"r=di/24\n", +"//CALCULATIONS\n", +"p= (v*sqrt(w/(g*((1/k1)+(2*r*24/E1))))-248)*r*24/144\n", +"//RESULTS\n", +"printf ('stress produced in the pipe= %.f lbs/in^2',p)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.3: chapter_6_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 3 //in\n", +"d2= 6 //in\n", +"v= 6 //ft/sec\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"v1= v*(d1/d2)^2\n", +"L= (v-v1)^2/(2*g)\n", +"//resultsa\n", +"printf ('Loss due to sudden enlargment= %.4f ',L)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.4: chapter_6_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 4 //in\n", +"d2= 3 //in\n", +"Q= 90 //gallons\n", +"k= 0.7\n", +"v= 6.24 //ft/sec\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"V= Q/(60*6.24)\n", +"v1= V*4*d2^2/%pi\n", +"v2= V*4*d1^2/%pi\n", +"L= ((1/k)-1)^2*v2^2*900/(2*g)\n", +"//RESULTS\n", +"printf ('Loss hc= %.1f ft lbs per minute',L)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.5: chapter_6_example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 3 //in\n", +"d2= 6 //in\n", +"sm= 13.6\n", +"Q= 0.5 //ft^3/sec\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"v1= Q*(12/d1)^2*4/%pi\n", +"v2= Q*(12/d2)^2*4/%pi\n", +"hc= (v1-v2)^2/(2*g)\n", +"h= ((v1^2-v2^2)/(2*g))-hc\n", +"h1= 12*h/(sm-1)\n", +"//RESULTS\n", +"printf ('difference in level in two limbs of mercury= %.3f in',h1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.6: example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"f= 0.01\n", +"l= 60 //ft\n", +"d= 6 //in\n", +"g= 32.2 //ft/sec\n", +"v= 10 //ft/sec\n", +"d1= 3 //in\n", +"l1= 20 //ft\n", +"k= 0.62\n", +"//CALCULATIONS\n", +"H= 4*f*l*v^2/(2*g*(d/12)^2)\n", +"v2= v*d1^2/d^2\n", +"hf= 4*f*l1*v^2/(2*g*(d/12)^2)\n", +"h= (v-v2)^2/(2*g)\n", +"h1= 4*f*l1*v2^2/(2*g*2*(d/12)^2)\n", +"h2= v^2*4*f*l1/(2*g*(d/12)^2)\n", +"h3= ((1/k)-1)^2*v^2/(2*g)\n", +"dh= (H-hf-h-h1-h2-h3)\n", +"//RESULTS\n", +"printf ('Saving in head= %.2f ft',dh)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"d= 3 //in\n", +"h= 50 //ft\n", +"w= 6.24 //lb/ft^3\n", +"r= 0.5\n", +"r1= 16\n", +"r2= 9/16\n", +"r3= 0.25\n", +"r4= 40.5/256\n", +"r5= 972/256\n", +"r6= 81/256\n", +"//CALCULATIONS\n", +"v=sqrt(h*2*g/(r+r1+r2+r3+r4+r5+r6))\n", +"Q= %pi*(d/12)^2*v*60*w/4\n", +"//RESULTS\n", +"printf ('discharge in the pipeline= %.1f gal.min',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"l= 6000 //ft\n", +"d= 9 //in\n", +"s= 1/100\n", +"h= 20 //ft\n", +"h1= 5 //ft\n", +"f= 0.006\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"L= l*s\n", +"v= sqrt((h+L-h1)*(d/12)*2*g/(4*f*l))\n", +"Q= v*%pi*(d/12)^2/4\n", +"s1= (L+h-h1)/l\n", +"//RESULTS\n", +"printf ('Discharge through the pipe= %.3f cuses',Q)\n", +"printf ('\n slope of hydraulic gradient= %.4f ',s1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d1= 24 //in\n", +"Q= 10 //cuses\n", +"d2= 18 //in\n", +"d3= 12 //in\n", +"f= 0.01\n", +"l= 1000 //ft\n", +"g= 32.2 //ft/sec^2\n", +"l1= 100 //ft\n", +"l2= 600 //ft\n", +"//CALCULATIONS\n", +"v1= sqrt(4*Q/(%pi*(d1/12)^2))\n", +"v2= sqrt(4*Q/(%pi*(d2/12)^2))\n", +"v3= sqrt(4*Q/(%pi*(d3/12)^2))\n", +"hf= 4*f*l*v1^2/(2*g*(d1/12))\n", +"dh= l1-hf\n", +"h1= 4*f*l2*v2^2/((d2/12)*2*g)\n", +"dh1= dh-h1\n", +"h2= 4*f*(l-l2)*v3^2/((d3/12)*2*g)\n", +"dh2= dh1-h2\n", +"//RESULTS\n", +" printf ('level gradient at D= %.2f ft',dh2)\n", +" \n", +" //ANSWER GIVEN IN THE TEXTBOOK IS WRONG\n", +" " + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/7-Flow_through_Open_channels.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/7-Flow_through_Open_channels.ipynb new file mode 100644 index 0000000..f637fb4 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/7-Flow_through_Open_channels.ipynb @@ -0,0 +1,580 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Flow through Open channels" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"Cd= 0.95\n", +"m= 300 //ft\n", +"V= 8 //ft/sec\n", +"d= 6 //ft\n", +"n= 6\n", +"s= 40 //ft\n", +"g= 32.2 //ft/sec^2\n", +"dh= 0.11\n", +"//CALCULATIONS\n", +"h= (V^2/(g+(d/3)))*(1.1*(m/(s*n))^2-1)\n", +"h1= (V^2/(2*g))*(1.1*(m/(s*n))^2-(d/(s/n)))+dh\n", +"//RESULTS\n", +"printf ('afflux upstream= %.2f ft',h1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"V= 8 //ft/sec\n", +"g= 32.2 //ft/sec^2\n", +"d= 10 //ft\n", +"l= 2 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"a= sqrt(((l*g*l/V^2)+(d/12)^2)/1.1)\n", +"V1= V*d/12\n", +"va= sqrt(2*g*0.69)\n", +"v1= sqrt(2*g*(l+0.69))\n", +"//RESULTS\n", +"printf ('total head producing velocity= %.1f ft/sec',v1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.13: example_13.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 8 //ft\n", +"V= 6 //ft/sec\n", +"g= 32 //ft/sec^2\n", +"//CALCULATIONS\n", +"h= (V*d/4)^2/g\n", +"d2= -(d/4)+sqrt((2*(d/2)*(V*(d/2))/g)+((d/2)^2/4))\n", +"x= (d/2)/d2\n", +"l= ((1/(x^1.5))-1)^0.81\n", +"Lw= l*(d/2)*(d+(d2/2))\n", +"//RESULTS\n", +"printf ('height of standing wave= %.1f ft',Lw+34.7)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.14: example_14.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 9 //in\n", +"wc= 6 //in\n", +"d= 8 //in\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"Q= 3.09*(wc/12)*(d/12)^1.5\n", +"V= Q*144/(w*d)\n", +"H= (d/12)+(V^2/(2*g))\n", +"Q= 3.09*(wc/12)*H^1.5\n", +"//RESULTS\n", +"printf ('Discharge= %.2f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.15: example_15.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"i= 1/6400\n", +"b= 40 //ft\n", +"d= 5 //ft\n", +"C= 140\n", +"h= 6 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= b*d\n", +"P= b+2*d\n", +"m= A/P\n", +"v= C*sqrt(m*i)\n", +"V= v*(d/h)\n", +"Q= v*b*d\n", +"x= h-(Q/(3.09*(b/2)))^(2/3)-(V^2/(2*g))\n", +"//RESULTS\n", +"printf ('height of pump= %.2f ft',x)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.16: example_16.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 40 //ft\n", +"h= 5 //ft\n", +"P=50 // lb/ft^2\n", +"i= 1/6400\n", +"h1= 10 //ft\n", +"H= 100 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CAALCULATIONS\n", +"m= w*h/P\n", +"v= 140*sqrt(m*i)\n", +"v1= v*h/h1\n", +"h2= w*h1/(H-w)\n", +"a= v1^2/(140^2*h2)\n", +"s= (i-a)*1000/(1-(v1^2/(g*h1)))\n", +"dh= h1-s\n", +"//RESULTS\n", +"printf ('depth of water= %.3f ft',dh)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.17: example_17.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"h= 9 //ft\n", +"h1= 9.5 //ft\n", +"i= 1/6400\n", +"h2= 40 //ft\n", +"h3= 59 //ft\n", +"h4= 5 //ft\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"m= h2*h1/h3\n", +"v= 140*sqrt(m*i)*(h4/h1)\n", +"a= v^2/(140^2*m)\n", +"s= (i-a)/(1-0.11)\n", +"x= 1/s\n", +"//RESULTS\n", +"printf ('distance upstream from the dam= %.f ft',x)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.1: chapter_7_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"i= 1/4500\n", +"w=3 //ft\n", +"d= 3 //ft\n", +"k= 0.003\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= 0.5*%pi*d^2/4\n", +"P= %pi*d/2\n", +"m= A/P\n", +"f= k*(1+(0.1/m))\n", +"C= sqrt(2*g/f)\n", +"V= C*sqrt(m*i)\n", +"Q= A*V\n", +"//RESULTS\n", +"printf ('Discharge= %.2f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.2: example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"b= 40 //ft\n", +"d= 4 //ft\n", +"k= 0.004\n", +"g= 32.2 //ft/sec^2\n", +"Q= 500 //cuses\n", +"//CALCULATIONS\n", +"A= b*d\n", +"P= b+2*d\n", +"m= A/P\n", +"f= k*sqrt(1+(0.2/m))\n", +"C= sqrt(2*g/f)\n", +"V= Q/A\n", +"i= V^2/(C^2*m)\n", +"D= 5280*i\n", +"//RESULTS\n", +"printf ('fall in feet per mile= %.2f ft',D)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.3: example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"b= 40 //ft\n", +"d= 4 //ft\n", +"n= 1\n", +"k= 0.005\n", +"i= 1/3250\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= (b+d)*d\n", +"P= b+2*d*sqrt(n^2+1)\n", +"m= A/P\n", +"f= k*(1+(0.8/m))\n", +"C= sqrt(2*g/f)\n", +"V= C*sqrt(m*i)\n", +"Q= V*A\n", +"//RESULTS\n", +"printf ('Discharge= %.f cuses',Q)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.4: chapter_7_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"\n", +"clc\n", +"//initialisation of variables\n", +"clear\n", +"Q= 400 //cuses\n", +"V= 2 //ft/sec\n", +"d= 3 //ft\n", +"n= 1\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= Q/V\n", +"w= A/d\n", +"W= w-d\n", +"P= W+2*d*sqrt(n^2+1)\n", +"m= A/P\n", +"f= 0.006*(1+(4/m))\n", +"C= sqrt(2*g/f)\n", +"i= (V/C)^2/m\n", +"//RESULTS\n", +"printf (' slope = %.5f ',i)\n", +"\n", +"//ANSWER IN TEXTBOOK IS NOT GIVEN IN DECIMALS" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.5: example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 600 //cuses\n", +"V= 3 //ft/sec\n", +"n= 1\n", +"i= 1/3200\n", +"C= 80\n", +"d= 6 //ft\n", +"//CALCULATIONS\n", +"A= Q/V\n", +"m= V^2/(C^2*i)\n", +"b= (A/d)-d\n", +"//RESULTS\n", +"printf ('width= %.1f ft',b)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.6: example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 20 //gallons / day\n", +"i= 50000 //inhabitants\n", +"p= 10 //percent\n", +"t= 24 //hrs\n", +"T= 0.25 //in\n", +"a= 2000 //acres\n", +"//CALCULATIONS\n", +"q= Q*i*p/(100*60*60*6.24)\n", +"A= T*43560*a/12\n", +"Q1= A/(t*60*60)\n", +"Q2= q+Q1\n", +"//RESULTS\n", +"printf ('total discharge= %.2f cuses',Q2)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.7: example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 400 //cuses\n", +"V= 8 //ft/sec\n", +"C= 150\n", +"//CALCULATIONS\n", +"A= Q/V\n", +"d= sqrt(A/2)\n", +"i= V^2/(C^2*(d/2))\n", +"//RESULTS\n", +"printf ('slope %.4f ',i)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 100 //cuses\n", +"V= 2 //ft/sec\n", +"n= 1.5\n", +"k= 0.006\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= Q/V\n", +"d= sqrt(A/((2*sqrt(n^2+1))-n))\n", +"m= A/d\n", +"mb= m-n*d\n", +"bt= m+n*d\n", +"m1= d/2\n", +"f= k*(1+(4/m1))\n", +"C= sqrt(2*g/f)\n", +"i= V^2/(C^2*m1)\n", +"//RESULTS\n", +"printf ('slope %.5f ',i)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"i= 1/1000\n", +"d= 4 //ft\n", +"C= 125\n", +"k= 0.95\n", +"o= 5.372\n", +"//CALCULATIONS\n", +"h= k*d\n", +"A= d^2*(o-sind(o*180/%pi))/8\n", +"P= (d/2)*o\n", +"m= A/P\n", +"V= C*sqrt(m*i)\n", +"Q= V*A\n", +"//RESULTS\n", +"printf ('Discharge= %.2f cuses',Q)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/8-Impact_of_Jets.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/8-Impact_of_Jets.ipynb new file mode 100644 index 0000000..253dae8 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/8-Impact_of_Jets.ipynb @@ -0,0 +1,419 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8: Impact of Jets" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.10: example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"vr= 20 //f/sec\n", +"u= 9 //knots\n", +"D= 64 //lbs per cubic foot\n", +"g= 32.2 //ft/sec^2\n", +"p= 40 //per cent\n", +"//CALCULATIONS\n", +"u1= u*6080/3600\n", +"v= vr-u1\n", +"P= D*2*vr*4.8/g\n", +"HP= P*u1/550\n", +"HP1= 100*HP/p\n", +"//RESULTS\n", +"printf ('cylinder H.P= %.2f H.P',HP1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.11: example_11.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"W= 62.4 //lbs/ft^3\n", +"A= 4 //ft^2\n", +"P= 1000 //lbs\n", +"g= 32.2 //ft/sec^2\n", +"v= 10 //ft/sec\n", +"//CALCULATIONS\n", +"vr= sqrt(25+(P*g/(W*A)))+5\n", +"Q= vr*W*A/10\n", +"e= 2*v*100/(vr+v)\n", +"//RESULTS\n", +"printf ('quantity of water pumped= %.1f lbs',Q)\n", +"printf ('\n efficiency= %.1f per cent',e)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.12: example_12.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"v= sqrt(32*g)\n", +"//RESULTS\n", +"printf ('speed that delivery commence= %.1f ft/sec',v)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.1: chapter_8_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 1 //in\n", +"v= 36 //ft/sec\n", +"a= 30 //degrees\n", +"w= 62.4 //lbs/ft^3\n", +"g=32.2\n", +"//CALCULATIONS\n", +"P= w*sind(a)*v^2*(%pi*(d/12)^2/4)/g\n", +"//RESULTS\n", +"printf ('Total thrust on the plate= %.2f lb wt',P)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.2: chapter_8_example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"a= 180 //degrees\n", +"g= 32.2 //ft/sec^2\n", +"w= 62.4 //lbs/ft^3\n", +"d= 1 //in\n", +"H= 100 //ft\n", +"u= 0.95\n", +"//CALCULATIONS\n", +"v= u*sqrt(2*g*H)\n", +"Px= w*(1-cosd(a))*(%pi*(d/12)^2/4)*v^2/g\n", +"//RESULTS\n", +"printf ('force it exerts= %.1f lb wt',Px)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.3: chapter_8_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"d= 30 //in\n", +"a= 90 //degrees\n", +"Q= 62.5 //ft^3/sec\n", +"w= 62.4 //lbs/ft^3\n", +"n=4\n", +"g=32.2\n", +"//CALCULATIONS\n", +"v= Q*4/(%pi*(d/12)^2)\n", +"P= w*%pi*(d/12)^2*v^2/(4*g)\n", +"Px= P/n\n", +"//RESULTS\n", +"printf ('pull on each bolt= %.1f lbs',Px)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.4: chapter_8_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 4 //in\n", +"v= 30 //ft/sec\n", +"a= 22.5 //degrees\n", +"w= 62.4 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS \n", +"P= w*(%pi*(d/12)^2/4)*v^2*sqrt(2*(1-cosd(a)))/g\n", +"//RESULTS\n", +"printf ('Resultant force tending to move the pipe= %.f lbs',P)\n", +"\n", +"\n", +"//ANSWER GIVEN IN THE TEXTBOOK IS WRONG" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.5: chapter_8_example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 3 //in\n", +"v1= 80 //ft/sec\n", +"v2= 40 //ft/sec\n", +"w= 62.4 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"vr= v1-v2\n", +"P= w*vr*v2*%pi*(d/12)^2/(g*4)\n", +"//RESULTS\n", +"printf ('normal pressure on the plate when jet strikes= %.1f lbs',P)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.6: chapter_8_example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 2 //in\n", +"v1= 50 //ft/sec\n", +"v2= 20 //ft/sec\n", +"W= 62.4 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"vr= v1-v2\n", +"P= W*vr*v1*%pi*(d/2)^2/(g*4)\n", +"W= P*v2\n", +"KE= 2*vr*v2*100/v1^2\n", +"//RESULTS\n", +"printf ('Efficiency= %.f per cent',KE)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.7: chapter_8_example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 1 //in\n", +"v= 10 //f/sec\n", +"v1= 30 //ft/sec\n", +"w= 62.4 //lbs/ft^3\n", +"a= 180 //degrees\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"A= %pi*(d/12)^2/4\n", +"vr= 80-v1\n", +"M= w*vr*A\n", +"Px= M*vr*(1-cosd(a))/g\n", +"W= Px*v1\n", +"M1= w*80*A\n", +"Px1= M1*vr*(1-cosd(a))/g\n", +"W1= Px1*v1\n", +"//RESULTS\n", +"printf ('total force when there is a single cup= %.1f ft lbs',W)\n", +"printf ('\n total force when there is a series of cups= %.1f ft lbs',W1)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.8: example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"v= 100 //ft/sec\n", +"u= 40 //ft/sec\n", +"a= 25 //degrees\n", +"g= 32.2 //ft/sec^2\n", +"vr= 66 //ft/sec\n", +"a1= 20 ///degrees\n", +"a2= 8 //degrees\n", +"r= 0.14\n", +"//CALCULATIONS\n", +"A= atand(v*sind(a)/(v*cosd(a)-u))\n", +"A1= atand(r)\n", +"v1= vr*sind(A1)/sind(a1)\n", +"W= (v^2-v1^2)/(2*g)\n", +"e= (v^2-v1^2)*100/v^2\n", +"//RESULTS\n", +"printf ('inlet blade angle = %.2f degrees',A)\n", +"printf ('\n outlet blade angle = %.2f degrees',A1)\n", +"printf ('\n Work done = %.f ft lbs',W)\n", +"printf ('\n efficiency = %.2f ft per cent',e)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 8.9: example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"Q= 60 //ft^3/sec\n", +"v= 12 //m.p.h\n", +"A= 3 //ft^2\n", +"D= 64 //lbs/ft^3\n", +"g= 32.2 //ft/sec^2\n", +"M= 64 //lbs\n", +"//CALCULATIONS\n", +"vr= Q/A\n", +"u= v*44/30\n", +"v1= vr-u\n", +"P= M*Q*v1/g\n", +"//RESULTS\n", +"printf ('propelling force= %.1f lbs',P)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Hydraulics_Made_Easy_by_R_S_Dighe/9-Viscous_flow.ipynb b/Hydraulics_Made_Easy_by_R_S_Dighe/9-Viscous_flow.ipynb new file mode 100644 index 0000000..ef44268 --- /dev/null +++ b/Hydraulics_Made_Easy_by_R_S_Dighe/9-Viscous_flow.ipynb @@ -0,0 +1,190 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9: Viscous flow" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.1: chapter_9_example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"sg= 0.7\n", +"v= 0.05 //poise\n", +"g= 32.2 //ft/sec^2\n", +"w= 62.4 //lbs/ft^3\n", +"//CALCULATIONS\n", +"u= v*30.5/(g*453.6)\n", +"v1= v/sg\n", +"d= w*v1/g\n", +"v= u/d\n", +"//RESULTS\n", +"printf ('viscocity= %.6f slug/t sec ',u)\n", +"printf ('\n kinematic viscocity= %.4f cm^2/ sec ',v1)\n", +"printf ('\n kinematic viscocity= %.6f ft^2/ sec ',v)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.2: chapter_9_example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"d= 0.5 //in\n", +"V= 1 //ft/sec\n", +"l= 200 //ft\n", +"T= 5 //degrees\n", +"g= 32.2 //f/sec^2\n", +"//CALCULATIONS\n", +"i= 0.04*V^2*12*4/(g*d)\n", +"gf= i*l\n", +"//RESULTS\n", +"printf ('loss of head= %.1f ft ',gf)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.3: chapter_9_example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"\n", +"clc \n", +"//initialisation of variables\n", +"g= 32.2 //ft/sec^2\n", +"T= 25 //C\n", +"dp=8 //lbs/in^2\n", +"t= 0.005 //in\n", +"w= 3 //in\n", +"l= 1 //ft\n", +"//CALCULATIONS\n", +"ut= (0.0179*30.5/(g*453.6))/(1+0.03368*T+0.000221*T^2)\n", +"Ql= dp*144*(t/12)^3*3600*6.24/(12*ut*4)\n", +"//RESULTS\n", +"printf ('Discharge= %.6f gallons per hour ',Ql)\n", +"\n", +"\n", +"//ANSWER GIVEN IN THE TEXTBOOK IS WRONG" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.4: chapter_9_example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"v= 1.25 //poise\n", +"d= 3 //in\n", +"l= 6 //in\n", +"t= 0.002 //in\n", +"w= 40 //R.P.M\n", +"g= 32.2 //ft/sec^2\n", +"//CALCULATIONS\n", +"u= v*30.5/(453.6*g)\n", +"T= u*%pi^2*(d/12)^3*w*(l/12)/(120*t/12)\n", +"hp= T*2*%pi*w/33000\n", +"//RESULTS\n", +"printf ('Horse-power lost in velocit= %.4f ',hp)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 9.5: chapter_9_example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"clc \n", +"//initialisation of variables\n", +"w= 750 //R.P.M\n", +"t= 0.02 //in\n", +"r1=9 //in\n", +"r2= 5 //in\n", +"u= 0.003 //slug/ft sec\n", +"//CALCULATIONS\n", +"T= u*%pi*(2*%pi*w/60)*((r1/24)^4-(r2/24)^4)*2*%pi*w/(2*t/12*33000)\n", +"//RESULTS\n", +"printf ('horse power required to overcome= %.1f hp',T)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |