diff options
author | hardythe1 | 2014-07-28 14:01:58 +0530 |
---|---|---|
committer | hardythe1 | 2014-07-28 14:01:58 +0530 |
commit | 7876eeaf85f7c020ec1f3530963928cd2bc26a66 (patch) | |
tree | 67f4da564402aeb9869eaaf6f1e83ec7f1f75aa9 /Mechanics_of_Materials | |
parent | 1c1ea29e3e213559fef5f928df109b7d17c21f24 (diff) | |
download | Python-Textbook-Companions-7876eeaf85f7c020ec1f3530963928cd2bc26a66.tar.gz Python-Textbook-Companions-7876eeaf85f7c020ec1f3530963928cd2bc26a66.tar.bz2 Python-Textbook-Companions-7876eeaf85f7c020ec1f3530963928cd2bc26a66.zip |
adding book
Diffstat (limited to 'Mechanics_of_Materials')
19 files changed, 7738 insertions, 9 deletions
diff --git a/Mechanics_of_Materials/APPENDIX_A.ipynb b/Mechanics_of_Materials/APPENDIX_A.ipynb new file mode 100755 index 00000000..b7a1f860 --- /dev/null +++ b/Mechanics_of_Materials/APPENDIX_A.ipynb @@ -0,0 +1,366 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "APPENDIX A:Geomatric Properties of an Area"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.1:Page no. 786"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#From fig. A-4(a) The given dimensions are\n",
+ "l1=8 #inch\n",
+ "l2=3 #inch\n",
+ "l3=10 #inch\n",
+ "l4=5 #inch\n",
+ "l5=11.5 #inch\n",
+ "l6=2 #inch\n",
+ "\n",
+ "#calculation\n",
+ "ymean1=((l4*l3*l6)+(l5*l2*l1))/((l3*l6)+(l2*l1))\n",
+ "#From fig. A-4(b)\n",
+ "l1_=-8 #inch\n",
+ "l2_=3 #inch\n",
+ "l3_=10 #inch\n",
+ "l4_=-1.5 #\n",
+ "l5_=2 #inch\n",
+ "ymean2=((l4_*l2_*-l1_)+(l1_*l3_*l5_))/((l2_*-l1_)+(l3_*l5_))\n",
+ "d=ymean1-ymean2 #Depth of beam\n",
+ "#From fig. A-4(c)\n",
+ "la=8 #inch\n",
+ "lb=6.5 #inch\n",
+ "lc=10 #inch\n",
+ "ld=13 #\n",
+ "le=5 #inch\n",
+ "lf=3 #inch\n",
+ "ymean3=((lb*ld*la)-2*(le*lc*lf))/((ld*la-2*(lc*lf)))\n",
+ "print\"Location of centroid in fig (a)is\",ymean1,\"inch\" \n",
+ "print\"Location of centroid in fig (b)is\",ymean2,\"inch\"\n",
+ "print\"Location of centroid in fig (c)is\",ymean3,\"inch\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Location of centroid in fig (a)is 8.54545454545 inch\n",
+ "Location of centroid in fig (b)is -4.45454545455 inch\n",
+ "Location of centroid in fig (c)is 8.54545454545 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.2:Page no 789"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#Dimension in the fig.A-7 a\n",
+ "#The given dimensions are\n",
+ "l1=8 #inch\n",
+ "l2=8.55 #inch\n",
+ "l3=10 #inch\n",
+ "l4=5 #inch\n",
+ "l5=1.5 #inch\n",
+ "l6=2 #inch\n",
+ "l7=4.45 #inch\n",
+ "\n",
+ "#Calculation\n",
+ "Ix1=(1/12.0*l6*l3**3)\n",
+ "A1=l6*l3\n",
+ "dy1=(l2-l4)\n",
+ "Ix2=(1/12.0*l1*(l5+l5)**3)\n",
+ "A2=l1*(l5+l5)\n",
+ "dy2=(l7-l5)\n",
+ "I1=(Ix1+A1*dy1**2)+(Ix2+A2*dy2**2)\n",
+ "print I1\n",
+ "\n",
+ "#Dimension in the fig.A-7 b\n",
+ "l1_= 13 #inch\n",
+ "l2_= 3 #inch\n",
+ "l3_=10 #inch\n",
+ "l4_=5 #inch\n",
+ "l5_= 2 #inch\n",
+ "l6_= 6.5 #inch\n",
+ "l7_=4.45 #inch\n",
+ "l8_=8.55 #inch\n",
+ "l9_=6.5 #inch\n",
+ "\n",
+ "Ix1_=(1/12.0*l1_*(l2_+l5+l2_)**3)\n",
+ "A1_=l1_*(l2_+l5+l2_)\n",
+ "dy1_=(l8_-l9_)\n",
+ "Ix2_=(1/12.0*l2_*(l3_)**3)\n",
+ "A2_=l2_*(l3_)\n",
+ "dy2_=(l7_-l4_)\n",
+ "I2=(Ix1+A1*dy1**2)+(Ix2+A2*dy2**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of inertia for fig a is\",round(I1,0),\"inch**4\"\n",
+ "print\"Moment of inertia for fig a is\",round(I2,0),\"inch**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "645.576666667\n",
+ "645.576666667\n",
+ "Moment of inertia for fig a is 646.0 inch**4\n",
+ "Moment of inertia for fig a is 646.0 inch**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.3 Page no: 790"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#From fig A-8(a)\n",
+ "#The given dimensions are\n",
+ "l1=100 #mm\n",
+ "l2=400 #mm\n",
+ "l3=600 #mm\n",
+ "dx=250 #mm\n",
+ "dy=200 #mm\n",
+ "\n",
+ "#Calculation\n",
+ "#Rectangle A:\n",
+ "Ix1=(1/12.0*l1*(l2-l1)**3)\n",
+ "Ady=(l1*(l2-l1)*dy**2)\n",
+ "Ix=(Ix1+Ady)\n",
+ "Iy1=(1/12.0*(l2-l1)*l1**3)\n",
+ "Adx=(l1*(l2-l1)*dx**2)\n",
+ "Iy=(Iy1+Adx)\n",
+ "\n",
+ "#Rectangle B:\n",
+ "Ix_=(1/12.0*l3*l1**3)\n",
+ "Iy_=(1/12.0*l1*l3**3)\n",
+ "\n",
+ "#Rectangle C\n",
+ "Ix3=(1/12.0*l1*(l2-l1)**3)\n",
+ "Ady_=(l1*(l2-l1)*200**2)\n",
+ "Ix3_=(Ix3+Ady_)\n",
+ "Iy3=(1/12.0*(l2-l1)*l1**3)\n",
+ "Adx_=(l1*(l2-l1)*dx**2)\n",
+ "Iy3_=(Iy3+Adx)\n",
+ "\n",
+ "#Total Moment of inertia\n",
+ "Itx=(Ix+Ix_+Ix3_)\n",
+ "Ity=(Iy+Iy_+Iy3_)\n",
+ "\n",
+ "#Result\n",
+ "print\"Moment of inertia across x is \",Itx,\"mm**4\"\n",
+ "print\"Moment of inertia across y is \",Ity,\"mm**4\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment of inertia across x is 2900000000.0 mm**4\n",
+ "Moment of inertia across y is 5600000000.0 mm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.4 :page no. 793"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#From fig A-12 a\n",
+ "#The given length of sides are\n",
+ "l1=100 #mm\n",
+ "l2=300 #mm\n",
+ "dy=200 #mm\n",
+ "dx=250 #mm\n",
+ "\n",
+ "#Calculation\n",
+ "#Rectangle A\n",
+ "Ixy1=0\n",
+ "A1=l1*l2\n",
+ "Ixy1=Ixy1+A1*(-dx)*dy\n",
+ "\n",
+ "#Rectangle B\n",
+ "Ixy2=0\n",
+ "A2=0\n",
+ "Ixy2=Ixy2+A2*dx*dy\n",
+ "\n",
+ "#Rectangle D\n",
+ "Ixy3=0\n",
+ "A3=l1*l2\n",
+ "Ixy3=Ixy3+A3*(dx)*(-dy)\n",
+ "Ixy=Ixy1+Ixy2+Ixy3\n",
+ "\n",
+ "#Result\n",
+ "print\"The moment of inertia is\",Ixy,\"mm**4\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The moment of inertia is -3000000000 mm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.5 :page no. 796"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#From fig A-15 and From Example A.3 and A.4\n",
+ "Ix=2.9*10**9 #moment of inertia along x\n",
+ "Iy=5.6*10**9 #moment of inertia along y\n",
+ "Ixy=-3*10**9 #moment of inertia along xy\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "#Using eq. A11\n",
+ "import math\n",
+ "thetaP1=1/2.0*math.atan(-Ixy*2/(Ix-Iy))*100\n",
+ "#As shown in fig. A-15\n",
+ "thetaP2=-32.9 #degree\n",
+ "Imax=(Ix+Iy)/2.0+math.sqrt((((Ix-Iy)/2.0)**2)+Ixy**2)\n",
+ "Imin=(Ix+Iy)/2.0-math.sqrt((((Ix-Iy)/2.0)**2)+Ixy**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum moment of inertia is\",Imax,\"mm**4\"\n",
+ "print\"Minimum moment of inertia is\",Imin,\"mm**4\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum moment of inertia is 7539756829.92 mm**4\n",
+ "Minimum moment of inertia is 960243170.081 mm**4\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example A.6 :page no. 799"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "#From fig. A-17 a and Example A.3 and A.4\n",
+ "Ix=2.9*10**9 #mm**4, moment of inertia\n",
+ "Iy=5.6*10**9\n",
+ "Ixy=-3*10**9\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=(Ix+Iy)/2.0 #distance of centre of circle \n",
+ "#from fig A-17 b\n",
+ "BC=1.35\n",
+ "AB=3\n",
+ "CA=math.sqrt(BC**2+AB**2)\n",
+ "\n",
+ "#the circle intersect the I axis at point (7.54,0) and (0.960,0) hence\n",
+ "Imax=7.54*(10**9) #mm**4\n",
+ "Imin=0.960*(10**9) #mm**4\n",
+ "thetap1=1/2.0*(180-(math.atan(AB/BC))*180/math.pi)\n",
+ "\n",
+ "#Result\n",
+ "print\"The maximum moment of inertia is\",Imax,\"mm**4\"\n",
+ "print\"The minimum moment of inertia is\",Imin,\"mm**4\"\n",
+ "print\"The angle is \",round(thetap1,1)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum moment of inertia is 7540000000.0 mm**4\n",
+ "The minimum moment of inertia is 960000000.0 mm**4\n",
+ "The angle is 57.1\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter1.ipynb b/Mechanics_of_Materials/Chapter1.ipynb new file mode 100755 index 00000000..4446458c --- /dev/null +++ b/Mechanics_of_Materials/Chapter1.ipynb @@ -0,0 +1,843 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1:Equilibrium of a deformable body"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.1 Page no 11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w_varying = 270.0 #N/m, torque\n",
+ "l_crossection = 9.0 #m , length\n",
+ "l_cb = 6.0 #m length\n",
+ "l_ac = 2.0 #m length\n",
+ "\n",
+ "#Calculation\n",
+ "w_c = (w_varying/l_crossection) * l_cb #By proportion, load at C is found.\n",
+ "f_resultant_c = 0.5* w_c *l_cb \n",
+ "#Balancing forces in the x direction:\n",
+ "n_c = 0\n",
+ "#Balncing forces in the y direction:\n",
+ "v_c = f_resultant_c\n",
+ "# Balncing the moments about C:\n",
+ "m_c = - (f_resultant_c*l_ac)\n",
+ "\n",
+ "#Results\n",
+ "print\"The resultant force at C is \",f_resultant_c,\"N\"\n",
+ "print\"The horizontal force at C is \",n_c,\"N\"\n",
+ "print\"The vertical force at C is \",v_c,\"N\"\n",
+ "print\"The moment about C is \",m_c,\"Nm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The resultant force at C is 540.0 N\n",
+ "The horizontal force at C is 0 N\n",
+ "The vertical force at C is 540.0 N\n",
+ "The moment about C is -1080.0 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.2 Page no 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f_d = 225 #N\n",
+ "w_uniform = 800 # N/m\n",
+ "l_ac = 0.200 #m\n",
+ "l_cb = 0.05+0.1 #m\n",
+ "l_bd = 0.100 #m\n",
+ "l_bearing = 0.05 #m\n",
+ "f_resultant = w_uniform*l_cb #120N\n",
+ "l_f_resultant_b = (l_cb/2)+ l_bearing #0.125m\n",
+ "l = l_ac + l_cb + l_bearing + l_bd \n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "m_b = 0 # Net moment about B is zero for equilibrium \n",
+ "a_y = -((f_d*l_bd) - (f_resultant*l_f_resultant_b))/ (l - l_bd) # finding the reaction force at A\n",
+ "\n",
+ "# Refer to the free body diagram in Fig.1-5c.\n",
+ "f_c = 40 #N\n",
+ "#Balancing forces in the x direction\n",
+ "n_c = 0\n",
+ "#Balncing forces in the y direction\n",
+ "v_c = a_y - f_c #-18.75N - 40N-Vc = 0\n",
+ "# Balncing the moments about C\n",
+ "m_c = ((a_y * (l_ac + 0.05)) - f_c*(0.025) ) # Mc+40N(0.025m)+ 18.75N(0.250m) = 0\n",
+ "\n",
+ "\n",
+ "# Result\n",
+ "print'The horizontal force at C =',n_c,\"N\"\n",
+ "print'The vertical force at C =',v_c,\"N\"\n",
+ "print'The moment about C =',round(m_c,2),\"NM\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal force at C = 0 N\n",
+ "The vertical force at C = -58.75 N\n",
+ "The moment about C = -5.69 NM\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.3 Page no 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "# Given\n",
+ "l_ac = 2 #m.,length\n",
+ "l_cb = 1 #m.\n",
+ "l_ad = 1.5 #m.\n",
+ "#r_a = 0.125 #m.\n",
+ "#r_d = 0.125 #m.\n",
+ "W = 500 # N, force\n",
+ "g=9.81\n",
+ "\n",
+ "#Calculation\n",
+ "#Balancing forces in the x direction\n",
+ "n_c = (W*g*(l_ac+l_cb))/(3*2/5.0) # N\n",
+ "#Balncing forces in the y direction\n",
+ "v_c = n_c*(4/5.0) #N\n",
+ "# Balncing the moments about C\n",
+ "m_c = n_c*(3/5.0)-(W*g)\n",
+ "\n",
+ "\n",
+ "# Result\n",
+ "print'The horizontal force at C = ',-v_c/1000,\"KN\"\n",
+ "print'The vertical force at C = ',-m_c/1000,\"KN\"\n",
+ "print'The moment about C = ',-m_c/1000,\"KNm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal force at C = -9.81 KN\n",
+ "The vertical force at C = -2.4525 KN\n",
+ "The moment about C = -2.4525 KNm\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.4 Page no 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "# Given\n",
+ "l_ag = 2 #Length of AG is 1m.\n",
+ "l_gd = 1 #Length of GD is 1m.\n",
+ "l_de = 3 #Length of DE is 1m.\n",
+ "f_a = 1500 #Force at A is 1500N.\n",
+ "l_ec = 1.5 #Length of EC is 1m.\n",
+ "l = l_ag +l_gd +l_de\n",
+ "w_uniform_varying = 600 #Nm.\n",
+ "f_ba = 7750 #N\n",
+ "f_bc = 6200 #N\n",
+ "f_bd = 4650 #N\n",
+ "\n",
+ "#Calculation\n",
+ "w_resultant = 0.5*l_de*w_uniform_varying\n",
+ "# calling point of action of resultant as P\n",
+ "l_ep = (2/3.0)*l_de \n",
+ "l_ap = l - l_ep \n",
+ "\n",
+ "#Free Body Diagram Using the result for Fba, the left section AG of the beam is shown in Fig 1-7d.\n",
+ "# Equations of equilibrium\n",
+ "#Balancing forces in the x direction\n",
+ "n_g = -f_ba * (4/5.0) # N\n",
+ "#Balncing forces in the y direction\n",
+ "v_g = -f_a + f_ba*(3/5.0) #N\n",
+ "\n",
+ "# Balncing the moments about C\n",
+ "m_g = (f_ba * (3/5.0)*l_ag) - (f_a * l_ag) #Nm\n",
+ "\n",
+ "# Result\n",
+ "print'The horizontal force at G = ',n_g,\"lb\"\n",
+ "print'The vertical force at G = ',v_g,\"lb\"\n",
+ "print'The moment about G = ',m_g,\"lb-ft\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal force at G = -6200.0 lb\n",
+ "The vertical force at G = 3150.0 lb\n",
+ "The moment about G = 6300.0 lb-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.5 Page no 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given\n",
+ "f_a = 50 #N, force\n",
+ "m_a = 70 # Moment at A in Nm\n",
+ "l_ad = 1.25 #Length of AD in m.\n",
+ "l_bd = 0.5 #Length of BD in m.\n",
+ "l_cb = 0.75 #Length of BC in m.\n",
+ "w_l = 2 #Kg/m\n",
+ "g = 9.81 #N/kg- acceleration due to gravity\n",
+ "\n",
+ "#Free Body Diagram \n",
+ "import math\n",
+ "w_bd = w_l*l_bd*g #in N. \n",
+ "w_ad = w_l*l_ad*g\n",
+ "# Equations of Equilibrium\n",
+ "#Balancing forces in the x, y and z direction\n",
+ "f_b_x = 0 # N\n",
+ "f_b_y = 0 #N\n",
+ "f_b_z = g + w_ad + f_a #N\n",
+ "# Balancing Moments in the x,y and z direction\n",
+ "m_b_x = - m_a + (f_a*l_bd) + (w_ad*l_bd) + (l_bd/2.0)*g #Nm\n",
+ "m_b_y = - (w_ad*(l_ad/2.0)) - (f_a*l_ad) #Nm\n",
+ "m_b_z = 0 #Nm\n",
+ "v_b_shear = sqrt(f_b_z **2 + 0) #Shear Force in N\n",
+ "t_b = - m_b_y #Torsional Moment in Nm\n",
+ "m_b = math.sqrt(m_b_x **2+ 0) # Bending moment in Nm\n",
+ "\n",
+ "# Result\n",
+ "print' The weight of segment BD =',w_bd,\"N\"\n",
+ "print' The weight of segment AD =',w_ad,\"N\"\n",
+ "print' The force at B in the Z direction =',f_b_z,\"N\"\n",
+ "print' The moment about B in the X direction =',m_b_x,\"Nm\"\n",
+ "print' The moment about G in the Y direction =',m_b_y,\"Nm\"\n",
+ "print' The Shear Force at B =',v_b_shear,\"N\"\n",
+ "print' The Torsional Moment at B =',t_b,\"Nm\"\n",
+ "print' The Bending Moment at B =',m_b,\"Nm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " The weight of segment BD = 9.81 N\n",
+ " The weight of segment AD = 24.525 N\n",
+ " The force at B in the Z direction = 84.335 N\n",
+ " The moment about B in the X direction = -30.285 Nm\n",
+ " The moment about G in the Y direction = -77.828125 Nm\n",
+ " The Shear Force at B = 84.335 N\n",
+ " The Torsional Moment at B = 77.828125 Nm\n",
+ " The Bending Moment at B = 30.285 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.6 Page no 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "netf_b = 18*(10 **3) #N Net force at B.\n",
+ "netf_c = 8*(10**3) #N Net force at C.\n",
+ "f_a = 12 *(10**3) #N Force at A.\n",
+ "f_d = 22* (10**3) #N Force at D.\n",
+ "w = 35.0 #mm Width.\n",
+ "t = 10.0 #mm Thickness.\n",
+ "\n",
+ "#calculations\n",
+ "p_bc = netf_b + f_a #N Net force in region BC.\n",
+ "a = w*t #m**2 The area of the cross section.\n",
+ "avg_normal_stress = p_bc/a #Average Normal Stress.\n",
+ "\n",
+ "# Result\n",
+ "print'The Average Normal Stress in the bar when subjected to load = ',round(avg_normal_stress,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Average Normal Stress in the bar when subjected to load = 85.7 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.7 Page no: 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given :\n",
+ "m_lamp = 80 #Mass of lamp in Kg.\n",
+ "d_ab = 10 # Diameter of AB in mm.\n",
+ "d_bc = 8 # Diameter of BC in mm.\n",
+ "ab_h = 60 *(math.pi/180.0) # In degrees - Angle made by AB with the horizontal.\n",
+ "w = m_lamp*9.81 #N\n",
+ "a_bc = (math.pi/4.0)*(d_bc**2) #m**2 Area of cross section of rod BC\n",
+ "a_ab = (math.pi/4.0)*(d_ab**2) #m**2 Area of cross section of rod AB\n",
+ "\n",
+ "\n",
+ "#calculation\n",
+ "import math # Equations of equilibrium: Solving equilibrium equations simultaneously ,\n",
+ "f_bc=395\n",
+ "f_ab=f_bc*(4/5.0)/(math.cos(60*3.14/180.0))\n",
+ "avg_normal_stress_a = f_ab / a_ab #Mpa Average Normal Stress in AB\n",
+ "avg_normal_stress_c = f_bc/ a_bc# Mpa Average Normal Stress in BC\n",
+ "\n",
+ "# Displaying results:\n",
+ "print\"The Average Normal Stress in AB when subjected to load = MPa\",round(avg_normal_stress_a,2),\"MPa\"\n",
+ "print\"The Average Normal Stress in BC when subjected to load = MPa\",round(avg_normal_stress_c,2),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Average Normal Stress in AB when subjected to load = MPa 8.04 MPa\n",
+ "The Average Normal Stress in BC when subjected to load = MPa 7.86 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.8 Page no 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "h_above_ab = 2.75 #ft , height\n",
+ "h_below_ab = 0.2 \n",
+ "d_a = 0.75 #diameter ft \n",
+ "d_b = 0.1 \n",
+ "sp_w = 490 \n",
+ "\n",
+ "# Equation of Equilibrium\n",
+ "import math\n",
+ "a = math.pi* (d_a**2) # Area of cross section in m**2\n",
+ "p = sp_w * h_above_ab * a\n",
+ "avg_comp_stress = p/a # The average compressive stress in kN/m**2\n",
+ "\n",
+ "#Display\n",
+ "print'The average compressive stress = ',avg_comp_stress,\"lb/ft**2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average compressive stress = 1347.5 lb/ft**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.9 Page no 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Determine Distance of force from AB\n",
+ "\n",
+ "#Given \n",
+ "f = 3000 #N Force acting at distance x from AB.\n",
+ "l_ac = 200 #Length of AC in mm.\n",
+ "a_ab = 400 #Cross sectional area of AB in mm**2.\n",
+ "a_c = 650 # area of C in mm**2.\n",
+ "\n",
+ "#Calculation\n",
+ "#Equations are\n",
+ "#Fab+Fc=3000\n",
+ "#-3000*x+Fc*200=0\n",
+ "Fc=1857\n",
+ "Fab=3000-Fc\n",
+ "x=Fc*200/3000\n",
+ "\n",
+ "#Display\n",
+ "print'Distance of force from AB = ',x,\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance of force from AB = 123 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.10 Page no 35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "af =30\t\t #kN Axial force along centroidal axis\n",
+ "t1 = 2 \t\t#m thickness of square cross section\n",
+ "t2=4\n",
+ "#Internal loading\n",
+ "import math\n",
+ "Fb=af*t1/((t1+t2)*(4/5.0))\n",
+ "Ax=Fb*(3/5.0)\n",
+ "Ay=af-(Fb*(4/5.0))\n",
+ "Fa=math.sqrt(Ax**2+Ay**2)\n",
+ "Va=Fa/t1\n",
+ "Vb=Fb\n",
+ "Aa=(math.pi/4.0)*((t1/100.0)**2)\n",
+ "Ab=(math.pi/4.0)*(((t1+t2)/200.0)**2)\n",
+ "Ta=Va/Aa\n",
+ "Tb=Vb/Ab\n",
+ "\n",
+ "#Display\n",
+ "print'The Average Normal Stress for section b-b = ',round(Ta/1000,0),\"Mpa\"\n",
+ "print'The Average Shear Stress for section b-b = ',round(Tb/1000,1),\"Mpa\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Average Normal Stress for section b-b = 34.0 Mpa\n",
+ "The Average Shear Stress for section b-b = 17.7 Mpa\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.11 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given \n",
+ "f = 6 #kN\n",
+ "d_rod = 0.1 #Diameter of steel rod in mm.\n",
+ "l_bc = 0.125 #Length of side bc in mm.\n",
+ "l_ac=0.15\n",
+ "#Calculation\n",
+ "F=f/2.0\n",
+ "#Appling Force balance\n",
+ "Va=F\n",
+ "Vb=F\n",
+ "a_rod=d_rod*l_ac\n",
+ "a_strut=l_bc*l_ac\n",
+ "#Average shear stress\n",
+ "avg_shear_rod = F/a_rod #for rod in Mpa\n",
+ "avg_shear_strut = (f/2)/a_strut #for strut\n",
+ "\n",
+ "#Display\n",
+ "print'The average shear stress for the rod = ',avg_shear_rod,\"Kpa\"\n",
+ "print'The average shear stress for the strut = ',avg_shear_strut,\"Kpa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average shear stress for the rod = 200.0 Kpa\n",
+ "The average shear stress for the strut = 160.0 Kpa\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.12 Page no 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "l_bc = 1 \t#Length of BC in inc.\n",
+ "l_db = 3 \t# in.\n",
+ "l_ed = 2 \t# in.\n",
+ "l_ab = 1.5 \t# in.\n",
+ "f_diagonal = 600 \t#lb\n",
+ "\n",
+ "#Calculation\n",
+ "a1 = l_bc*l_ab \t\t#Area of face AB in mm**2.\n",
+ "a2 = l_ab*l_ed \t#mm**2.\n",
+ "a3 = l_db*l_ab \t# mm**2.\n",
+ "#Balancing forces along the x- direction.\n",
+ "f_ab = f_diagonal*(3/5.0) #Force on segment AB in N\n",
+ "V = f_ab \n",
+ "\n",
+ "#Balancing forces along the Y direction.\n",
+ "f_bc = f_diagonal*(4/5.0) #Force on segment BC in N.\n",
+ "avg_comp_ab = f_ab/a1 # N/mm**2\n",
+ "avg_comp_bc = f_bc/a2 # N/mm**2\n",
+ "avg_shear = f_ab/a3 # N/mm**2\n",
+ "\n",
+ "#Display\n",
+ "print a1\n",
+ "print'The average compressive stress along AB = ',avg_comp_ab,\"psi\"\n",
+ "print'The average compressive stress along BC = ',avg_comp_bc,\"psi\"\n",
+ "print'The average shear stress along EDB = ',avg_shear,\"psi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "1.5\n",
+ "The average compressive stress along AB = 240.0 psi\n",
+ "The average compressive stress along BC = 160.0 psi\n",
+ "The average shear stress along EDB = 80.0 psi\n"
+ ]
+ }
+ ],
+ "prompt_number": 81
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.13 Page no 49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "shear_allow = 3 \t#ksi, stress\n",
+ "tensile_allow = 5 \t#ksi, stress\n",
+ "l_C1 = 3\t\t #in\n",
+ "l_C2 = 2 \t\t #in\n",
+ "l_ac=8 #inch\n",
+ "Tauallow=8 #ksi\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "Fab=(tensile_allow*(3/5.0)*(l_C1+l_C2)+shear_allow*l_C1)/(l_ac)\n",
+ "Cx=-shear_allow+tensile_allow*(4/5.0)\n",
+ "Cy=tensile_allow*(3/5.0)+l_C1\n",
+ "Fc=math.sqrt(Cx**2+Cy**2)\n",
+ "A=(Fc/2.0)/Tauallow\n",
+ "d=2*math.sqrt(A/math.pi)\n",
+ "\n",
+ "#Result\n",
+ "print\" The diameter of rod is = \",round(d,3),\"inch\"\n",
+ "print\"Wse a pin of diameter =\",3/4.0,\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " The diameter of rod is = 0.696 inch\n",
+ "Wse a pin of diameter = 0.75 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.14 Page no 50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P= 20.0\t\t #kN, force\n",
+ "d_hole = 40.0 \t #mm\n",
+ "normal_allow = 60.0 #MPa, pressure\n",
+ "shear_allow = 35.0 #MPa, pressure\n",
+ "\n",
+ "\n",
+ "#Diameter of Rod\n",
+ "import math\n",
+ "area1 = (P*10**3)/(normal_allow*10**6) #Area in m**2\n",
+ "d = ((math.sqrt((4*area1)/math.pi))*1000) # Area = (math.pi\\4)d**2\n",
+ "#Thickness of disc\n",
+ "V = P\n",
+ "area2 = (V*10**3)/(shear_allow*10**6) #Area in m**2\n",
+ "thickness = (area2*10**6)/(d_hole*math.pi)# A = pi*d*t\n",
+ " \n",
+ "\n",
+ "#Result\n",
+ "print\"The diameter of rode = \",round(d,2),\"mm\"\n",
+ "print\"The thickness of disc = \",round(thickness,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The diameter of rode = 20.6 mm\n",
+ "The thickness of disc = 4.55 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 93
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.15 Page no 51"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "bearing_allow = 75.0\t #MPa, pressure\n",
+ "tensile_allow = 55.0 \t#MPa, pressure\n",
+ "d_shaft = 60.0\t\t #mm\n",
+ "r_shaft = d_shaft/2.0 \t#mm\n",
+ "area_shaft = math.pi*(r_shaft**2) #Area = pi*r**2\n",
+ "d_collar = 80 #mm\n",
+ "thick_collar = 20 #mm\n",
+ "\n",
+ "#Calculation\n",
+ "r_collar = d_collar/2.0 #mm\n",
+ "area_collar = math.pi*(r_collar**2) #Area = pi*r**2\n",
+ "#Normal Stress\n",
+ "P1 = (tensile_allow* area_shaft)/3.0 #Tensile stress = 3P/A.\n",
+ "P1_kN = P1/1000.0\n",
+ "#Bearing Stress\n",
+ "bearing_area = area_collar-area_shaft \n",
+ "P2 = (bearing_allow*bearing_area)/3 \n",
+ "P2_kN= P2/1000.0\n",
+ "\n",
+ "#Result\n",
+ "print\"The load calculated by Normal Stress \",round(P1_kN,1),\"kN\"\n",
+ "print\"The load calculated by Bearing Stress \",round(P2_kN,0),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The load calculated by Normal Stress 51.8 kN\n",
+ "The load calculated by Bearing Stress 55.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 96
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.16 Page no 52"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d_ac= 20.0 #mm\n",
+ "area_al = 1800.0 #mm**2, area\n",
+ "d_pins = 18.0 #mm\n",
+ "st_fail_stress = 680.0 #MPa, pressure\n",
+ "al_fail_stress = 70.0 #MPa, pressure\n",
+ "shear_fail_pin = 900.0 #MPa\n",
+ "fos = 2.0 #Factor of safety\n",
+ "l_ab = 2.0 #m\n",
+ "l_ap = 0.75 #m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "area_pins = math.pi*(d_pins/2.0)**2\n",
+ "area_ac = math.pi*(d_ac/2.0)**2 #Area = (math.pi\\4)d**2\n",
+ "st_allow= st_fail_stress /fos #MPa\n",
+ "al_allow = al_fail_stress/fos #MPa\n",
+ "pin_allow_shear = shear_fail_pin/fos #MPa\n",
+ "\n",
+ "#Rod AC\n",
+ "f_ac = (st_allow*area_ac)/1000.0\n",
+ "P1 = ((f_ac*l_ab)/(l_ab-l_ap))\n",
+ "\n",
+ "#Block B\n",
+ "f_b =(al_allow*area_al)/1000.0\n",
+ "P2 = ((f_b*l_ab)/l_ap)\n",
+ "\n",
+ "#Pin A or C\n",
+ "V = (pin_allow_shear*area_pins)/1000.0\n",
+ "P3 = (V*l_ab)/(l_ab-l_ap)\n",
+ "\n",
+ "#Result\n",
+ "print\"The load allowed on rod AC \",round(P1,0),\"kN\"\n",
+ "print\"The load allowed on block B \",P2,\"kN\"\n",
+ "print\"The load allowed on pins A or C \",round(P3,0),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The load allowed on rod AC 171.0 kN\n",
+ "The load allowed on block B 168.0 kN\n",
+ "The load allowed on pins A or C 183.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 102
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter10.ipynb b/Mechanics_of_Materials/Chapter10.ipynb new file mode 100755 index 00000000..8492cf8c --- /dev/null +++ b/Mechanics_of_Materials/Chapter10.ipynb @@ -0,0 +1,674 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 10:Strain Transformation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.1 Page No 491"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = 500 #Normal Strain\n",
+ "ep_y = -300 #Normal Strain\n",
+ "gamma_xy = 200 #Shear Strain\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "theta = 30*(math.pi/180)\n",
+ "theta = theta*-1\n",
+ "ep_x_new = ((ep_x+ep_y)/2) + ((ep_x - ep_y)/2)*math.cos(2*theta) + (gamma_xy/2)*math.sin(2*theta)\n",
+ "gamma_xy_new = -((ep_x - ep_y)/2)*math.sin(2*theta) + (gamma_xy/2)*math.cos(2*theta)\n",
+ "gamma_xy_new = 2*gamma_xy_new\n",
+ "phi = 60*(math.pi/180)\n",
+ "ep_y_new = (ep_x+ep_y)/2 + ((ep_x - ep_y)/2)*math.cos(2*phi) + (gamma_xy/2)*math.sin(2*phi)\n",
+ "\n",
+ "#Display\n",
+ "print'The equivalent strain acting on the element oriented at 30 degrees clockwise = ',round(ep_y_new,1),\"*10**-6\"\n",
+ "print'The equivalent shear strain acting on the element = ',round(gamma_xy_new,0),\"10**-6\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The equivalent strain acting on the element in the y plain oriented at 30 degrees clockwise = -13.4 *10**-6\n",
+ "The equivalent shear strain acting on the element = 793.0 10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.2 Page No 492"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = -350.0 #(*10**-6) Normal Strain\n",
+ "ep_y = 200.0 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 80.0 #*(10**-6) Shear Strain\n",
+ "\n",
+ "#Calculation\n",
+ "#Orientation of the element\n",
+ "import math\n",
+ "tan_thetap = (gamma_xy)/(ep_x - ep_y)\n",
+ "thetap1 =math.atan(tan_thetap)*180/3.14+180\n",
+ "thetap=thetap1/2.0\n",
+ "\n",
+ "#Principal Strains\n",
+ "k = (ep_x + ep_y)/2\n",
+ "l = (ep_x - ep_y)/2\n",
+ "tou = gamma_xy/2\n",
+ "R = math.sqrt( (l)**2 + tou**2)\n",
+ "ep1 = R + k\n",
+ "ep2 = k -R \n",
+ "ep_x1 = k + l*math.cos(2*-4.14*3.14/180.0)+ tou*math.sin(2*-4.14*3.14/180.0)\n",
+ "\n",
+ "#Display\n",
+ "print'The orientation of the element in the positive counterclockwise direction = ',round(thetap,1),\"degree\"\n",
+ "print'The principal strains are ',round(ep1,0),\"*10**-6 and \",round(ep2,0),\"*10**-6\"\n",
+ "print'The principal strain in the new x direction is ',round(ep_x1,0),\"*10**-6\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The orientation of the element in the positive counterclockwise direction = 85.9 degree\n",
+ "The principal strains are 203.0 *10**-6 and -353.0 *10**-6\n",
+ "The principal strain in the new x direction is -353.0 *10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.3 Page No 493"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = -350 #(*10**-6) Normal Strain\n",
+ "ep_y = 200.0 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 80.0 #*(10**-6) Shear Strain\n",
+ "\n",
+ "#Orientation of the element\n",
+ "import math\n",
+ "tan_thetap = -(ep_x - ep_y)/(gamma_xy)\n",
+ "thetap1 = math.atan(tan_thetap)*180/3.14+180\n",
+ "thetap=thetap1/2.0\n",
+ "\n",
+ "#Maximum in-plane shear strain\n",
+ "l = (ep_x - ep_y)/2\n",
+ "tou = gamma_xy/2\n",
+ "R = sqrt( l**2 + tou**2)\n",
+ "max_inplane_strain = 2*R\n",
+ "gamma_xy_1 = (-l*math.sin(2*thetap1)+ tou*math.cos(2*thetap1))*2\n",
+ "strain_avg = (ep_x + ep_y)/2\n",
+ "thetap1 = thetap1*(180/math.pi)\n",
+ "thetap2 = (90 + thetap1)\n",
+ "\n",
+ "#Display\n",
+ "print'The orientation of the element =',round(thetap,0,),\"degre\"\n",
+ "print'The maximum in-plane shear strain = ',round(max_inplane_strain,0),\"*10**-6\"\n",
+ "print'The average strain =',strain_avg,\"*10**-6\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The orientation of the element = 131.0 degre\n",
+ "The maximum in-plane shear strain = 556.0 *10**-6\n",
+ "The average strain = -75.0 *10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.4 Page No 496"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = 250.0 #(*10**-6) Normal Strain\n",
+ "ep_y = -150.0 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 120.0 #*(10**-6) Shear Strain\n",
+ "\n",
+ "#Calculation\n",
+ "#Construction of the circle\n",
+ "import math\n",
+ "strain_avg = (ep_x + ep_y)/2\n",
+ "tou = gamma_xy/2\n",
+ "R = sqrt((ep_x - strain_avg)**2 + (tou**2))\n",
+ "#Principal Strains\n",
+ "ep1 = (strain_avg + R)\n",
+ "ep2 = (strain_avg - R)\n",
+ "tan_thetap = (tou)/(ep_x - strain_avg)\n",
+ "thetap1 = (math.atan(tan_thetap))/2.0\n",
+ "thetap1 = thetap1*(180/math.pi)\n",
+ "\n",
+ "#Display\n",
+ "print'The principal strains are = ',round(ep1,0),\"*10**-6 and \",round(ep2,0),\"*10**-6\"\n",
+ "print'The orientation of the element = ',round(thetap1,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The principal strains are = 259.0 *10**-6 and -159.0 *10**-6\n",
+ "The orientation of the element = 8.35 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.5 Page No 497"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = 250 #(*10**-6) Normal Strain\n",
+ "ep_y = -150 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 120 #*(10**-6) Shear Strain\n",
+ "\n",
+ "#calculation\n",
+ "#Orientation of the element\n",
+ "thetas = 90 - 2*8.35\n",
+ "thetas1 = thetas/2\n",
+ "#Maximum in-plane shear strain\n",
+ "l = (ep_x - ep_y)/2\n",
+ "tou = gamma_xy/2\n",
+ "R = sqrt( l**2 + tou**2)\n",
+ "max_inplane_strain = 2*R\n",
+ "strain_avg = (ep_x + ep_y)/2\n",
+ "\n",
+ "#Display\n",
+ "print'The orientation of the element ',thetas1,\"degree\"\n",
+ "print'The maximum in-plane shear strain',round(max_inplane_strain,0),\"*10**-6\"\n",
+ "print'The average strain = ',strain_avg,\"*10**-6\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The orientation of the element 36.65 degree\n",
+ "The maximum in-plane shear strain 418.0 *10**-6\n",
+ "The average strain = 50 *10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.6 Page No 498"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = -300 #(*10**-6) Normal Strain\n",
+ "ep_y = -100 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 100 #*(10**-6) Shear Strain\n",
+ "theta = 20 #degrees\n",
+ "\n",
+ "#Calculation\n",
+ "#Construction of the circle\n",
+ "import math\n",
+ "strain_avg = (ep_x+ ep_y)/2.0\n",
+ "tou = gamma_xy/2.0\n",
+ "R = sqrt((-ep_x + strain_avg)**2 + tou**2)\n",
+ "#Strains on Inclined Element\n",
+ "theta1 = 2*theta\n",
+ "phi = math.atan((tou)/(-ep_x +strain_avg))\n",
+ "phi = phi*(180/math.pi)\n",
+ "psi = theta1 - phi\n",
+ "psi = psi*(math.pi/180)\n",
+ "ep_x1 = -(-strain_avg+ R*math.cos(psi))\n",
+ "gamma_xy1 = -(R*math.sin(psi))*2\n",
+ "ep_y1 = -(-strain_avg - R*math.cos(psi))\n",
+ "\n",
+ "#Display\n",
+ "print'The normal strain in the new x direction = ',round(ep_x1,0),\"10**-6\"\n",
+ "print'The normal strain in the new y direction = ',round(ep_y1,1),\"10**-6\"\n",
+ "print'The shear strain in the new xy direction = ',round(gamma_xy1,0),\"10**-6\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal strain in the new x direction = -309.0 10**-6\n",
+ "The normal strain in the new y direction = -91.3 10**-6\n",
+ "The shear strain in the new xy direction = -52.0 10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.7 Page No 503"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ep_x = -400 #(*10**-6) Normal Strain\n",
+ "ep_y = 200 #*(10**-6) Normal Strain\n",
+ "gamma_xy = 150 #*(10**-6) Shear Strain\n",
+ "\n",
+ "#calculation\n",
+ "#Maximum in-plane Shear Strain\n",
+ "strain_avg = (ep_x+ ep_y)/2\n",
+ "tou = gamma_xy/2\n",
+ "R = sqrt((-ep_x + strain_avg)**2 + tou**2) \n",
+ "strain_max = strain_avg + R\n",
+ "strain_min = strain_avg - R\n",
+ "max_shear_strain = strain_max - strain_min\n",
+ "#Absolute Maximum Shear Strain\n",
+ "abs_max_shear = max_shear_strain\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum in-plane shear strain= ',round(max_shear_strain,0),\"10**-6\"\n",
+ "print'The absolute maximum shear strain ',round(abs_max_shear,0),\"10**-6\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum in-plane shear strain= 618.0 10**-6\n",
+ "The absolute maximum shear strain 618.0 10**-6\n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.8 Page No 505"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "ep_a = 60.0 #(*10**-6) Normal Strain\n",
+ "ep_b = 135.0 #*(10**-6) Normal Strain\n",
+ "ep_c = 264.0 #*(10**-6) Normal Strain\n",
+ "theta_a = 0\n",
+ "theta_b = 60*(math.pi/180)\n",
+ "theta_c = 120*(math.pi/180)\n",
+ "\n",
+ "#Calculation\n",
+ "a1 = (math.cos(theta_a))**2\n",
+ "b1 = (math.sin(theta_a))**2\n",
+ "c1 = math.cos(theta_a)*math.sin(theta_a)\n",
+ "a2 = (math.cos(theta_b))**2\n",
+ "b2 = (math.sin(theta_b))**2\n",
+ "c2 = math.cos(theta_b)*math.sin(theta_b)\n",
+ "a3 = (math.cos(theta_c))**2\n",
+ "b3 = (math.sin(theta_c))**2\n",
+ "c3 = math.cos(theta_c)*math.sin(theta_c)\n",
+ "\n",
+ "ep_x = 60 #*10**-6\n",
+ "ep_y = 246 #*10**-6\n",
+ "gamma_xy = -149 #*10**-6\n",
+ "strain_avg = (ep_x + ep_y )/2.0\n",
+ "tou = gamma_xy/2.0\n",
+ "R = sqrt((-ep_x + strain_avg)**2 + tou**2) \n",
+ "ep1 = strain_avg + R\n",
+ "ep2 = strain_avg - R\n",
+ "tan_thetap =math.atan(-tou/(-ep_x + strain_avg))\n",
+ "thetap = tan_thetap/2.0\n",
+ "thetap2 = thetap*(180/math.pi)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum in-plane principal strains are',round(ep1,0),\"*10**-6 and \",round(ep2,1),\"*10**-6\"\n",
+ "print'The angle of orientation ',round(thetap2,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum in-plane principal strains are 272.0 *10**-6 and 33.8 *10**-6\n",
+ "The angle of orientation 19.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.9 Page No 512"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "E_st = 200*10**9 #GPa\n",
+ "nu_st = 0.3 #Poisson's ratio\n",
+ "ep1 = 272 *10**-6\n",
+ "ep2 = 33.8 *10**-6\n",
+ "\n",
+ "#Solving for the equations\n",
+ "#6.78*10**-6=sigma2-0.3sigma1\n",
+ "#54.4*10**-6=sigma1-0.3sigma2\n",
+ "sigma2= 25.4\n",
+ "\n",
+ "#Display\n",
+ "print'The principal stresses at point A are ',sigma1,\"MPa and \" ,sigma2,\"Mpa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The principal stresses at point A are 62 MPa and 25.4 Mpa\n"
+ ]
+ }
+ ],
+ "prompt_number": 79
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.10 Page No 514"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a = 300.0 #mm\n",
+ "b = 50.0 #mm\n",
+ "t = 20.0 #mm\n",
+ "E_cu = 120*10**3 #MPa\n",
+ "nu_cu = 0.34 # Poisson's ratio\n",
+ "#By inspection\n",
+ "sigma_x = 800 #MPa\n",
+ "sigma_y = -500.0 #MPa\n",
+ "tou_xy = 0\n",
+ "sigma_z = 0\n",
+ "\n",
+ "#calculation\n",
+ "#By Hooke's Law\n",
+ "ep_x = (sigma_x/E_cu) - (nu_cu/E_cu)*(sigma_y + sigma_z)\n",
+ "ep_y = (sigma_y/E_cu) - (nu_cu/E_cu)*(sigma_x + sigma_z)\n",
+ "ep_z = (sigma_z/E_cu) - (nu_cu/E_cu)*(sigma_y + sigma_x)\n",
+ "#New lengths\n",
+ "a_dash = a + ep_x*a\n",
+ "b_dash = b + ep_y*b\n",
+ "t_dash = t + ep_z*t\n",
+ "\n",
+ "#Display\n",
+ "print'The new length = ',round(a_dash,1),\"mm\"\n",
+ "print 'The new nas base is',round(b_dash,1),\"mm\"\n",
+ "print'The new thickness = ',round(t_dash,2),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The new length = 300.4 mm\n",
+ "The new nas base is 49.7 mm\n",
+ "The new thickness = 19.98 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 88
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.11 Page No 515"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "p = 20 #psi, pressure\n",
+ "E = 600 #psi, pressure\n",
+ "nu = 0.45\n",
+ "#the given dimension are:\n",
+ "a = 4 #in\n",
+ "b = 2 # in\n",
+ "c = 3 #in\n",
+ "\n",
+ "#Calculation\n",
+ "#Dilatation\n",
+ "sigma_x = -p\n",
+ "sigma_y = -p\n",
+ "sigma_z = -p\n",
+ "e = ((1-2*nu)/E)*(sigma_x + sigma_y + sigma_z)\n",
+ "#Change in Length\n",
+ "ep = (sigma_x - nu*(sigma_y + sigma_z))/E\n",
+ "del_a = ep*a\n",
+ "del_b = ep*b\n",
+ "del_c = ep*c\n",
+ "\n",
+ "#Display\n",
+ "print'The change in length a = ',round(del_a,4),\"inch\"\n",
+ "print'The change in length b = ',round(del_b,4),\"inch\"\n",
+ "print'The change in length c = ',round(del_c,4),\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The change in length a = -0.0133 inch\n",
+ "The change in length b = -0.0067 inch\n",
+ "The change in length c = -0.01 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 92
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.12 Page No 526"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "T = 400 #lbft, tourqe\n",
+ "sigma_ult = 20000 #psi\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "x = T*12/(math.pi/2)\n",
+ "r=(x/sigma_ult)**(1/3.0)\n",
+ "\n",
+ "#Display\n",
+ "print'The smallest radius of the solid cast iron shaft ',round(r,3),\"inch\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The smallest radius of the solid cast iron shaft 0.535 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 99
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "EXample 10.13 Page No 527"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "sigmay=36 #ksi, stress\n",
+ "r = 0.5 #cm\n",
+ "sigma_yield = 360 #MPa, yield stress\n",
+ "T = 3.25 #kN/cm\n",
+ "A= (math.pi*r**2)\n",
+ "P = 15 #kN\n",
+ "J = (math.pi/2.0)*(r**4)\n",
+ "sigma_y_sqr = sigma_yield**2\n",
+ "\n",
+ "#Calculations\n",
+ "sigma_x = -(P/A)\n",
+ "sigma_y = 0\n",
+ "tou_xy = (T*r)/J\n",
+ "k = (sigma_x + sigma_y)/2.0\n",
+ "R = sqrt(k**2 + (tou_xy**2))\n",
+ "sigma1 = k+R\n",
+ "sigma2 = k-R\n",
+ "l = sigma1 - sigma2\n",
+ "#Maximum Shear Stress Theory\n",
+ "x=sigma1-sigma2\n",
+ "y=sigma1**2+sigma2**2-sigma1*sigma2\n",
+ "if x>sigmay:\n",
+ " print\"Shear failure of material will occur\"\n",
+ "else:\n",
+ " print\"not\"\n",
+ "if y<sigmay**2:\n",
+ " print\"Failure will not occur\"\n",
+ "else:\n",
+ " print\"it will occur\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shear failure of material will occur\n",
+ "Failure will not occur\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter11.ipynb b/Mechanics_of_Materials/Chapter11.ipynb new file mode 100755 index 00000000..fc68b993 --- /dev/null +++ b/Mechanics_of_Materials/Chapter11.ipynb @@ -0,0 +1,267 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 11:Design of Beams and Shafts"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 11.1 Page No 544"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_allow = 24 #ksi, stress\n",
+ "tou_allow = 14.5 #ksi, allowable stress\n",
+ "\n",
+ "#Shear and Moment Diagrams\n",
+ "V_max = 30 #kip, \n",
+ "M_max = 120 #kip, bending moment\n",
+ "\n",
+ "#Bending Stress\n",
+ "S_reqd = (M_max*(10**3))/sigma_allow\n",
+ "#Shear Stress\n",
+ "d = 17.9 #in\n",
+ "tw = 0.315 #inch\n",
+ "tou_avg = (V_max)/(d*tw)\n",
+ "\n",
+ "if tou_avg<14.5:\n",
+ " print\"Use a W18*14\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Use a W18*14\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 11.2 Page No 545"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "udl = 0.5 #kN/m\n",
+ "h_by_a = 1.5 \n",
+ "sigma_allow = 9 #MPa, allowable bending stress\n",
+ "tou_allow = 0.6 #MPa, allowable shear stress\n",
+ "\n",
+ "#calculation\n",
+ "#Shear and Moment Diagrams\n",
+ "import math\n",
+ "V_max =20 #kNm\n",
+ "M_max =10.67 #kNm\n",
+ "#Bending Stress\n",
+ "S_reqd = (M_max)/(sigma_allow*1000)\n",
+ "c = h_by_a/2.0\n",
+ "a_cube = (S_reqd*c*12)/(1.5**3) #S_reqd = I/c\n",
+ "a = a_cube**(1/3.0)\n",
+ "A = a*h_by_a*a\n",
+ "tou_max = (1.5*V_max)/(A*1000)\n",
+ "if tou_max>tou_allow:\n",
+ " a_sqr = (3/2.0)*(V_max)/(h_by_a*tou_allow*1000)\n",
+ " a =math.sqrt(a_sqr)\n",
+ "else:\n",
+ " print\"not\"\n",
+ "\n",
+ "#Display\n",
+ "print\"The smallest width for the laminated wooden beam = \", round(a,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The smallest width for the laminated wooden beam = 0.18 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 11.3 Page No 546"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l = 200/1000.0 #m, length\n",
+ "t = 30/1000.0 #m\n",
+ "sigma_allow = 9 #MPa, shear stress\n",
+ "tou_allow = 0.6 #MPa, bending stress\n",
+ "V_nail = 1.50 #kN\n",
+ "l_bc = 2 #m\n",
+ "l_cd = 2 #m\n",
+ "\n",
+ "#Shear and Moment Diagrams\n",
+ "V_max = 20 #kN\n",
+ "M_max =10.67 #kNm\n",
+ "#Bending Stress\n",
+ "y1 = l/2.0\n",
+ "A1 = l*t\n",
+ "y2 = l+(t/2.0)\n",
+ "A2 = t*l\n",
+ "y_dash = (y1*A1 + y2*A2)/(A1 + A2)\n",
+ "\n",
+ "I1 = (t*l**3)/12.0 + (t*l*(y_dash - y1)**2)\n",
+ "I2 = (l*t**3)/12.0 + (t*l*(y2 - y_dash)**2)\n",
+ "I =I1 + I2\n",
+ "\n",
+ "c = y_dash\n",
+ "sigma = (M_max*c)/(I)\n",
+ "flag1 = 0\n",
+ "sigma_allow = sigma_allow*1000 #kPa\n",
+ "\n",
+ "if(sigma<sigma_allow):\n",
+ " flag1 = 1\n",
+ "else:\n",
+ " print\"otherwisw not\"\n",
+ "\n",
+ "#Shear Stress\n",
+ "y3 = y_dash/2.0\n",
+ "A3 = y_dash*t\n",
+ "Q = y3*A3\n",
+ "\n",
+ "tou = (V_max*Q)/(I*t)\n",
+ "tou_allow = tou_allow*1000 #kPa\n",
+ "flag2 =0\n",
+ "\n",
+ "if(tou<tou_allow):\n",
+ " flag2 = 1\n",
+ "else:\n",
+ " print\"flag2 is not equal to one\"\n",
+ "\n",
+ "#Nail Spacing\n",
+ "y4a = (l+t-y_dash)\n",
+ "y4 = y4a - (t/2.0)\n",
+ "A4 = l*t\n",
+ "Q4 = y4*A4\n",
+ "V_bc = 1.5 #kN\n",
+ "V_cd = 1 #kN\n",
+ "\n",
+ "q_bc = (V_bc*Q4)/I\n",
+ "q_cd = (V_cd*Q4)/I\n",
+ "\n",
+ "s_bc = (V_nail)/(q_bc)\n",
+ "s_cd = (V_nail)/(q_cd)\n",
+ "\n",
+ "chosen_bc = 150 #mm\n",
+ "chosen_cd = 250 #mm\n",
+ "\n",
+ "#Result\n",
+ "print'The design is safe in bending and shear.'\n",
+ "print'The calculated nail spacing BC ',round(s_bc,2),\"m\"\n",
+ "print'The calculated nail spacing CD ',round(s_cd,2),\"m\"\n",
+ "print'The chosen nail spacing BC ',chosen_bc,\"mm\"\n",
+ "print'The chosen nail spacing CD ',chosen_cd,\"mm\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "otherwisw not\n",
+ "flag2 is not equal to one\n",
+ "The design is safe in bending and shear.\n",
+ "The calculated nail spacing BC 0.17 m\n",
+ "The calculated nail spacing CD 0.26 m\n",
+ "The chosen nail spacing BC 150 mm\n",
+ "The chosen nail spacing CD 250 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 11.6 Page No 560"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Find smallest allowable diameter\n",
+ "\n",
+ "#Given\n",
+ "tou_allow = 50*10**6 #MPa, shear stress\n",
+ "T = 7.5 #Nm, torque\n",
+ "R_ah = 150 #N, horizontal force\n",
+ "R_av = 475 #N\n",
+ "l_ac = 0.25 #m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "mc = R_ah*l_ac\n",
+ "m = R_av*l_ac\n",
+ "M_c = sqrt(m**2 + mc**2)\n",
+ "k = sqrt(M_c**2 + T**2)\n",
+ "c1 = (2*k)/(math.pi*tou_allow)\n",
+ "c = c1**(1/3.0)\n",
+ "d = 2*c*1000\n",
+ "\n",
+ "#Display\n",
+ "print\"The smallest allowable diameter of the shaft =\",round(d,1),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The smallest allowable diameter of the shaft = 23.3 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter12.ipynb b/Mechanics_of_Materials/Chapter12.ipynb new file mode 100755 index 00000000..ac815672 --- /dev/null +++ b/Mechanics_of_Materials/Chapter12.ipynb @@ -0,0 +1,437 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 12:Deflection of Beams and Shaft"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.10 Page No 610"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 200*10**6 #kN/m**2, stress\n",
+ "I = 17*10**-6 #mm**4, moment of inertia\n",
+ "\n",
+ "#The given dimension are\n",
+ "l_ac = 2 #m\n",
+ "l_cF = 4 #m\n",
+ "l_Fb = 2 #m\n",
+ "l_cb = 6 #m\n",
+ "l_aF = 6 #m\n",
+ "l_ab = 8 #m\n",
+ "F = 16 #kN\n",
+ "R_b = (F*l_cb)/l_ab\n",
+ "R_a = F - R_b\n",
+ "\n",
+ "#Calculation\n",
+ "mc = R_a*l_ac\n",
+ "mf = R_b*l_Fb\n",
+ "theta_ca = (0.5*l_ac*mc)/(E*I)\n",
+ "A1 = 0.5*l_aF*mf\n",
+ "t1_ba = (l_Fb + l_aF/3)*(A1)\n",
+ "A2 = 0.5*l_Fb*mf\n",
+ "t2_ba = (l_Fb*2*A2)/3\n",
+ "t_ba = (t1_ba+t2_ba)/(E*I)\n",
+ "theta_c = (t_ba/l_ab)-(theta_ca)\n",
+ "\n",
+ "#Display\n",
+ "print\"The slope at point C of the steel beam = \",round(theta_c,4),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The slope at point C of the steel beam = 0.0094 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12 Page No 612"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 29*10**3 #ksi, stress\n",
+ "I = 125 #inch**4, moment of inertia\n",
+ "l_ab = 12 #ft, dimension\n",
+ "l_bc =12 #ft\n",
+ "l_ac = l_ab+l_bc\n",
+ "R_a = -5 #kip, normal force\n",
+ "R_b = 10 #kip\n",
+ "R_c = 5 #kip\n",
+ "\n",
+ "#calculation\n",
+ "mb = R_a*l_ab\n",
+ "#Moment-Area Theorem\n",
+ "t_ca = (l_ab*0.5*l_ac*mb)/(E*I)\n",
+ "t_ba = ((1/3.0)*l_ab*0.5*l_ab*mb)/(E*I)\n",
+ "del_c = (t_ca - 2*t_ba)*1728\n",
+ "\n",
+ "#Display\n",
+ "print\"The displacement at point C for the steel overhanging beam =\",round(del_c,2),\"inch\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement at point C for the steel overhanging beam = -2.75 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.13 Page No 620"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w = 2 #kN/m, load\n",
+ "L = 8 #m, length\n",
+ "P = 8 #kN\n",
+ "\n",
+ "#Calculations\n",
+ "EI_theta_A1 = (3*w*L**3)/(128) #ThetaA1 = (3wL**3)/(128EI)\n",
+ "EI_nu_C1 = (5*w*L**4)/(768) #NuC1 = (5wL**4)/(768EI)\n",
+ "EI_theta_A2 = (P*L**2)/(16) #theta_A2 = (PL**2)/(16EI)\n",
+ "EI_nu_C2 = (P*L**3)/(48) #nu_C2 = (PL**3)/(48EI)\n",
+ "theta_A = EI_theta_A1 + EI_theta_A2\n",
+ "nu_C = EI_nu_C1 + EI_nu_C2\n",
+ "\n",
+ "#Display\n",
+ "print'The slope at A in terms of EI =',theta_A,\"kNm**2\"\n",
+ "print'The displacement at point C in terms of EI =',nu_C,\"kNm**2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The slope at A in terms of EI = 56 kNm**2\n",
+ "The displacement at point C in terms of EI = 138 kNm**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.14 Page No 621"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w = 5 #kN/m, force per unit length\n",
+ "l_ab = 4 #m, length\n",
+ "l_bc = 2 #m\n",
+ "P = 10 #kN, load\n",
+ "M = w*l_ab #kNm\n",
+ "\n",
+ "#Calculations\n",
+ "EI_theta_B1 = (w*l_ab**3)/(24) #ThetaB1 = (wL**3)/(24EI)\n",
+ "EI_nu_C1 = l_bc*EI_theta_B1\n",
+ "\n",
+ "EI_theta_B2 = (M*l_ab)/(3) #\n",
+ "EI_nu_C2 = l_bc*EI_theta_B2\n",
+ "EI_nu_C3 = (P*l_bc**3)/(3) #nuC3 = (PL**3)/(24EI)\n",
+ "nu_C = -EI_nu_C1 + EI_nu_C2 + EI_nu_C3\n",
+ "\n",
+ "#Display\n",
+ "print'The displacement at end C of the overhanging beam, in terms of EI = ',nu_C,\"kNm**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement at end C of the overhanging beam, in terms of EI = 52 kNm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.15 Page No 622"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w = 4 #kN/m, force per unit length\n",
+ "l = 6 #m, length\n",
+ "l_bc =2 #m\n",
+ "\n",
+ "#Calculations\n",
+ "EI_theta_B = (w*l**3)/(24.0) #ThetaB1 = (wL**3)/(24EI)\n",
+ "EI_nu_B = (w*l**4)/(30.0) #nuB = (wL**4)/(30EI)\n",
+ "nu_C = EI_nu_B + (EI_theta_B*l_bc)\n",
+ "\n",
+ "#Display\n",
+ "print'The displacement at end C of the cantilever beam, in terms of EI = ',nu_C,\"kNm**3\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement at end C of the cantilever beam, in terms of EI = 244.8 kNm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.16 Page No 623"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "k = 15.0 #kip/ft, force per unit length\n",
+ "F = 3 #kip, force\n",
+ "E = 29*10**3 #ksi, stress\n",
+ "l_ab = 3.0 #ft, length\n",
+ "l_ac = 1 #ft\n",
+ "l_cb = 2 #ft\n",
+ "I = 12 #in**4, moment of inertia\n",
+ "R_a = (F*l_cb)/(l_ab)\n",
+ "R_b = F-R_a\n",
+ "\n",
+ "#Calculations\n",
+ "mu_a = (R_a)/k\n",
+ "mu_b = (R_b)/k\n",
+ "mu_c1 = mu_b + (l_cb/l_ab)*(mu_a - mu_b)\n",
+ "#From fig b\n",
+ "a=3 #ft\n",
+ "b=6 #ft\n",
+ "L=9 #ft\n",
+ "mu_c2 = ((F*a*b)*(L**2 - a**2 - b**2))/(6*E*144*I*(1/20736.0)*L)\n",
+ "mu_c = mu_c1 + mu_c2\n",
+ "\n",
+ "#Display\n",
+ "print'The vertical displacement of the force at C = ',round(mu_c,3),\"ft\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The vertical displacement of the force at C = 0.126 ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.21 Page No 643"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l = 10 #ft, length\n",
+ "P = 8 #kip, load\n",
+ "w = 2 #kip/ft, force per unit length\n",
+ "\n",
+ "#Calculation\n",
+ "#Compatibility Equation\n",
+ "EI_nu_b1 = (w*l**4)/8.0 + (5*P*l**3)/48.0 #nu_b = (wl**4)/8EI + (5Pl**3)/48EI\n",
+ "EI_nu_b2 = (l**3)/3.0\n",
+ "B_y = EI_nu_b1 / EI_nu_b2\n",
+ "\n",
+ "#Display\n",
+ "print\"The reactions at roller support B = \",B_y,\"kip\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reactions at roller support B = 10.0 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.22 Page No 644"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "l = 8 #ft, length\n",
+ "l_ab = 5 #ft\n",
+ "l_bc = 5 #ft\n",
+ "l_af = 1/2.0 #inch\n",
+ "b = 12/1000.0 #m\n",
+ "w = 8 #kip, force per unit length\n",
+ "E = 29*10**3 #Ksi\n",
+ "I = 475.0 # inch**4, moment of inertia\n",
+ "\n",
+ "#Compatibility Equation:\n",
+ "import math\n",
+ "A=math.pi/4.0*(l_af**2)\n",
+ "muB__byFbc=l*12/(A*E)\n",
+ "L=l_ab+l_bc\n",
+ "muB=5*w*L**3*12/(48*E*I)\n",
+ "muB_byFbc=L**3*12/(3*E*I)\n",
+ "#From equation muB__=muB-muB_\n",
+ "Fbc=muB/(muB_byFbc+muB__byFbc)\n",
+ "\n",
+ "#Display:\n",
+ "print \"Force developed in the rod is\",round(Fbc,3),\"kip\"\n",
+ "print\"In the book: Calculation mistake\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force developed in the rod is 0.042 kip\n",
+ "In the book: Calculation mistake\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.23 Page No: 646"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "L = 12 #ft\n",
+ "#E and I are constant say\n",
+ "E = 29*10**3 #Ksi\n",
+ "I = 475 # inch**4\n",
+ "w = 3 #kip/ft\n",
+ "\n",
+ "#calculation\n",
+ "thetab=w*L**3/(48*E*I)\n",
+ "mub=7*w*L**4/(384*E*I)\n",
+ "theta_bbyBy=L**2/(2*E*I)\n",
+ "mu_bbyBy=L**3/(3*E*I)\n",
+ "theta__byMb=L/(E*I)\n",
+ "muB__byMb=L**2/(2*E*I)\n",
+ "\n",
+ "#From eq 1 and 2 (solving by matrix)\n",
+ "#72By+12Mb=-108\n",
+ "#576By+72Mb=-1134\n",
+ "M = array([[576, 72], [72, 12]])\n",
+ "N=([-108,-1134])\n",
+ "X=inv(M)*N #Inverse matrix\n",
+ "a=X[0,0]\n",
+ "b=X[1,0]*2.5\n",
+ "\n",
+ "#Display:\n",
+ "print\"Moment at B is\",b,\"kip-ft\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Moment at B is 11.25 kip-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter13.ipynb b/Mechanics_of_Materials/Chapter13.ipynb new file mode 100755 index 00000000..2e2e42c7 --- /dev/null +++ b/Mechanics_of_Materials/Chapter13.ipynb @@ -0,0 +1,636 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 13:Buckling of Columns"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.1 Page NO 665"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l = 12 #ft, length\n",
+ "E = 29*10**3 #GPa, stress\n",
+ "ro = 75 #mm, outside radius\n",
+ "ri = 70 #mm, inside radius\n",
+ "sigma_y = 250 #MPa, stress\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "Ix=110\n",
+ "Iy=37\n",
+ "A = 9.13\n",
+ "Pcr = (math.pi**2*(E*10**3)*Iy)/((l*12)**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "sigma_cr = (Pcr*1000)/A\n",
+ "p=36*A\n",
+ " \n",
+ "print\"The maximum allowable axial load that the column can support = \",round(p,0),\"kip\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum allowable axial load that the column can support = 329.0 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.2 Page NO 668"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 29*10**3 #GPa, stress\n",
+ "lx= 144 #inch, length\n",
+ "ly=100.8 #inch\n",
+ "A =4.43 #inch**2, area\n",
+ "sigma_y = 60 #ksi, stress\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "Ix=29\n",
+ "Iy=9.32\n",
+ "\n",
+ "Pcrx = ((math.pi**2)*E*Ix)/(lx**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "Pcry = ((math.pi**2)*E*Iy)/(ly**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "sigma_cr = (Pcr*1000)/A\n",
+ "sigmacr = Pcry/A #in kN\n",
+ "if sigmacr<sigma_y:\n",
+ " print\"Buckling will occue before the material yield. So Psr=\",round(Pcry,0),\"kip\"\n",
+ "else:\n",
+ " print\"n\"\n",
+ " \n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Buckling will occue before the material yield. So Psr= 263.0 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.3 Page No 669"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 70 #GPa\n",
+ "Ix = 61.3*10**-6 #Moment of inertia along x-axis\n",
+ "Iy = 23.2*10**-6 ##Moment of inertia along y-axis\n",
+ "l = 5\n",
+ "KLx = 2*l #m\n",
+ "KLy = 0.7*(l) #m\n",
+ "FS = 3 #Factor of safety\n",
+ "sigma_y = 215 #MPa\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "Pcrx = (math.pi**2*E*10**6*Ix)/(KLx**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "Pcry = (math.pi**2*E*10**6*Iy)/(KLy**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "Pcr = min(Pcrx,Pcry)\n",
+ "A = 7.5*10**-3 #mm**2\n",
+ "P_allow = Pcr/FS\n",
+ "sigma_cr = (Pcr*10**-3)/A\n",
+ "\n",
+ "\n",
+ "if(sigma_cr<sigma_y):\n",
+ " print\"The largest allowable load that the column can support = \",round(P_allow,0),\"kN\"\n",
+ "else:\n",
+ " print\"n\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The largest allowable load that the column can support = 141.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.4 Page NO 683"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "z1 = 4*1000 #mm, length\n",
+ "e = 200 #mm, elongation\n",
+ "KLy = 100.8 #inch**2\n",
+ "Iy = 49.1 #inch**4\n",
+ "E = 29*10**3 #ksi, stress\n",
+ "sigma_y =421.2 #MPa\n",
+ "\n",
+ "#Calculation\n",
+ "#y-y Axis Buckling\n",
+ "import math\n",
+ "Pcry = (math.pi**2*E*10**6*Iy)/(KLy**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "Pcry = Pcry/1000\n",
+ "#x-x Axis Yielding\n",
+ "Kx= 2\n",
+ "KLx = 288 #inch\n",
+ "A=11.7\n",
+ "c = (8.25)/2.0\n",
+ "rx = 3.53 #inch\n",
+ "\n",
+ "#Solved by applying the Secant Formula and then finding Px by trial and error\n",
+ "trial_Px = 88.4 #kN\n",
+ "A = 7850#mm**2\n",
+ "sigma = (trial_Px*1000)/(A)\n",
+ "\n",
+ "if(Pcry>trial_Px and sigma<sigma_y):\n",
+ " print'The maximum eccentric load that the column can support = ',trial_Px\n",
+ " print'Failure will occur about the x-x axis.'\n",
+ "\n",
+ "else:\n",
+ " print\"n\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum eccentric load that the column can support = 88.4\n",
+ "Failure will occur about the x-x axis.\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.5 Page NO 686"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d = 30 #mm, diameter\n",
+ "r = d/2 #mm, radius\n",
+ "L = 600 #mm\n",
+ "sigma_pl = 150#MPa, stress\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "I = (math.pi/4)*(r**4)\n",
+ "A = math.pi*r**2\n",
+ "r_gyr = sqrt(I/A)\n",
+ "K = 1\n",
+ "sl_ratio = (K*L)/(r_gyr)\n",
+ "flag1 = 0\n",
+ "\n",
+ "#Assuming the critical stress is elastic\n",
+ "E = 150/0.001\n",
+ "sigma_cr1 = (math.pi**2*E)/(sl_ratio**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ "\n",
+ "\n",
+ "if(sigma_cr1 > sigma_pl):\n",
+ " Et = (270 - 150)/(0.002 - 0.001)\n",
+ " sigma_cr2 = (math.pi**2*Et)/(sl_ratio**2) #Pcr = (math.pi**2*EI)/(l**2)\n",
+ " \n",
+ "if(sigma_cr2>150 and sigma_cr2<270): \n",
+ " Pcr = sigma_cr2*A\n",
+ " Pcr = Pcr/1000.0 #in kN\n",
+ " print'The critical load when used as a pin supported column = ',round(Pcr,0),\"kN\"\n",
+ " \n",
+ "else:\n",
+ " print\"\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The critical load when used as a pin supported column = 131.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.6 page No 696"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "l=16 #16 ft\n",
+ "A=29.4 #in**2, area\n",
+ "rx=4.60 #in\n",
+ "ry=2.65 #in\n",
+ "k=1\n",
+ "E=29*10**3 #Stress\n",
+ "sigmay=36.0 #ksi\n",
+ "#calculation\n",
+ "import math\n",
+ "x1=k*l*12/ry\n",
+ "x=math.sqrt(2*math.pi**2*E/sigmay)\n",
+ "a=(1-(x1**2/(2.0*x**2)))*((sigmay))\n",
+ "b=(5/3.0)+((3/8.0)*(x1)/(x))-((x1**3)/(8.0*(x**3)))\n",
+ "sigmaallow=a/b\n",
+ "P=sigmaallow*A\n",
+ "\n",
+ "#result\n",
+ "print\" The largest load is\",round(P,0),\"kip\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " The largest load is 476.0 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.7 Page NO 697"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 18 #kip, load\n",
+ "E = 29*10**3 #ksi, stress\n",
+ "sigma_y = 50 #ksi, shear stress\n",
+ "l = 15 #ft, length\n",
+ "k =0.5 #shape factor\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "I_by_d = (1/4.0)*(math.pi)*(d/2.0)**4\n",
+ "A_by_d = (1/4.0)*(math.pi)*d**2\n",
+ "r_by_d = math.sqrt(I_by_d/A_by_d)\n",
+ "sl_ratio_c = math.sqrt((2*math.pi**2*E)/(sigma_y))\n",
+ "\n",
+ "a1=math.sqrt(2*(math.pi)**2*E/(sigma_y))\n",
+ "\n",
+ "d_=((18*4*16*23*(k**2)*(l**2)*12**2)/(12*math.pi**3*E))**(1/4.0)\n",
+ "print \"The smallest diameter is \",round(d_,2),\"inch. So use d=2.25 inch\"\n",
+ "d=2.25\n",
+ "a1=k*l*12/(d/4.0)\n",
+ "if a1<200:\n",
+ " print\"Use of equation is appropriate\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The smallest diameter is 2.11 inch. So use d=2.25 inch\n",
+ "Use of equation is appropriate\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.8 Page NO 698"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L = 30 #inch\n",
+ "P = 12 #kip\n",
+ "sigma =28.0 #ksi\n",
+ "K = 1\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "b2 = (P)/(2*sigma)\n",
+ "b_ = math.sqrt(b2)\n",
+ "A = 2*b_*b_\n",
+ "Iy = (1/12.0)*(2*b_*b_**3)\n",
+ "ry = sqrt(Iy/A)\n",
+ "sl_ratio = (K*L)/(ry)\n",
+ "if(sl_ratio>12):\n",
+ " b4 = (P*103.9**2)/(2*54000) #Eqn 13.26\n",
+ " b = b4**(1/4.0)\n",
+ " \n",
+ " sl_ratio_ = (2598.1)/(b)\n",
+ " w = 2*b\n",
+ "else:\n",
+ " print\"j\"\n",
+ " \n",
+ "if(sl_ratio>55):\n",
+ " print'The thickness of the bar = ',round(b,2),\"inch\"\n",
+ " \n",
+ "else:\n",
+ " print\"h\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The thickness of the bar = 1.05 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.9 Page NO 699"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 5.0 #kip. load\n",
+ "y1 = 5.5 #inch, length\n",
+ "x1 = 1.5 #inch\n",
+ "A = (x1*y1) #area\n",
+ "d = 1.5 #inch\n",
+ "K = 1\n",
+ "\n",
+ "#Eqn 13.29\n",
+ "L2 = (540*A*d**2)/(P)\n",
+ "L = sqrt(L2)\n",
+ "KL_d = (K*L)/(d)\n",
+ "\n",
+ "if(KL_d>26 and KL_d<=50):\n",
+ " print'The greatest allowable length L as specified by the NFPA = ',round(L,1),\"inch\"\n",
+ "else:\n",
+ " print\"j\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The greatest allowable length L as specified by the NFPA = 44.8 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.10 Page NO 705"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#the given dimansion are\n",
+ "L = 80.0 #inch\n",
+ "K = 2.0\n",
+ "l = 4.0 #inch\n",
+ "b = 2.0 #inch\n",
+ "e = 1 #inch\n",
+ "c = 2 #inch\n",
+ "\n",
+ "#Calculations\n",
+ "I1 = (1/12.0)*(l*b**3)\n",
+ "A = l*b\n",
+ "r = sqrt(I1/A)\n",
+ "sl_ratio = (K*L)/(r)\n",
+ "\n",
+ "#Eqn 13.26\n",
+ "sigma_allow = (54000)/(sl_ratio**2)\n",
+ "I2 = (1/12.0)*(b*l**3)\n",
+ "coefficient = (1/A) + (e*c)/I2\n",
+ "\n",
+ "sigma_max = sigma_allow\n",
+ "P = sigma_max/coefficient\n",
+ "\n",
+ "#Display\n",
+ "print'The load that can be supported if the column is fixed at its base ',P,\"kip\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The load that can be supported if the column is fixed at its base 2.25 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.11 Page No 706"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "sigmaB_allow = 22 #ksi, allowable stress\n",
+ "E = 29*10**3 #ksi, stress\n",
+ "sigma_y = 36 #ksi, shear stress\n",
+ "K= 1 #shape factor\n",
+ "A = 5.87 #inch**2, area\n",
+ "Ix = 41.4 #inch**4, moment of inertia\n",
+ "ry = 1.5 #inch\n",
+ "d = 6.2 #inch\n",
+ "c= d/2.0 \n",
+ "e = 30 #inch\n",
+ "L = 15 #ft\n",
+ "\n",
+ "sl_ratio = (K*L*12)/(ry)\n",
+ "sl_ratio_c = math.sqrt((2*math.pi**2*E)/(sigma_y))\n",
+ "\n",
+ "\n",
+ "\n",
+ "if(sl_ratio<sl_ratio_c):\n",
+ " num = (1 - (sl_ratio**2/(2*sl_ratio_c**2)))*sigma_y\n",
+ " denom1 = (5/3.0) + ((3/8.0)*sl_ratio/sl_ratio_c)\n",
+ " denom2 = (sl_ratio**3)/(8*sl_ratio_c**3)\n",
+ " sigmaA_allow = num/(denom1 - denom2)\n",
+ " \n",
+ " coeffP = 1/(sigmaA_allow*A) + (e*c)/(Ix*sigmaB_allow)\n",
+ " P = 1/coeffP\n",
+ " \n",
+ " sigA = (P/A)/(sigmaA_allow)\n",
+ "else:\n",
+ " print\"k\"\n",
+ " \n",
+ " \n",
+ "if(sigA < 0.15):\n",
+ " print'The maximum allowable value of eccentric load = ',round(P,2),\"kN\"\n",
+ "else:\n",
+ " print\"h\"\n",
+ " "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum allowable value of eccentric load = 8.43 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.12 Page NO 707"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K = 2 #shape factor\n",
+ "d= 3.0 #inch, diameter\n",
+ "L = 60 #inch, length\n",
+ "e = 4 #inch\n",
+ "c = d\n",
+ "l = 3.0 #inch\n",
+ "b =6.0 #inch\n",
+ "A = l*b #inch**2\n",
+ "\n",
+ "#Calculations\n",
+ "sl_ratio = (K*L)/(d)\n",
+ "\n",
+ "if(sl_ratio>26 and sl_ratio<50):\n",
+ " sigma_allow = (540)/(sl_ratio**2)\n",
+ " sigma_max = sigma_allow\n",
+ " \n",
+ " I = (1/12.0)*(l*b**3)\n",
+ " coeffP = (1/A) + (e*c)/(I)\n",
+ " P = sigma_max/coeffP\n",
+ " print'The eccentric load that can be supported = ',round(P,2),\"kip\"\n",
+ "else:\n",
+ " print\"no\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The eccentric load that can be supported = 1.22 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter14.ipynb b/Mechanics_of_Materials/Chapter14.ipynb new file mode 100755 index 00000000..aa30b557 --- /dev/null +++ b/Mechanics_of_Materials/Chapter14.ipynb @@ -0,0 +1,447 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 14:Energy Methods"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.1 Page No 721"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_y = 44 #stress ,ksi\n",
+ "db =0.731 #inch, diameter\n",
+ "rb = db/2.0 #radius\n",
+ "import math\n",
+ "Ab = math.pi*(rb**2)\n",
+ "E = 29*10**3 #N/mm**2, stress\n",
+ "da1 = 0.875 #inch, diameter\n",
+ "ra1 = da1/2.0\n",
+ "La1 = 2 #inch\n",
+ "La2= 0.25 #inch\n",
+ "da2 =0.731 #inch\n",
+ "ra2 = da2/2.0\n",
+ "Lb = 2.25 #inch\n",
+ "\n",
+ "#Calculation\n",
+ "#Bolt A\n",
+ "Aa2 = math.pi*(ra2**2)\n",
+ "Aa1 = math.pi*(ra1**2)\n",
+ "P_max = sigma_y*Ab\n",
+ "Uia = (P_max**2/(2*E))*(La1/Aa1 + La2/Aa2) #Ui = (N**2L)/(2AE)\n",
+ "#Bolt B\n",
+ "Uib = (P_max**2/(2*E))*(Lb/Ab)\n",
+ "\n",
+ "#Display\n",
+ "print'The greatest amount of strain energy absorbed by bolt A = ',round(Uia,4),\"J\"\n",
+ "print'The greatest amount of strain energy absorbed by bolt B = ',round(Uib,4),\"J\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "0.0230568851609\n",
+ "The greatest amount of strain energy absorbed by bolt A = 0.0231 J\n",
+ "The greatest amount of strain energy absorbed by bolt B = 0.0315 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.5 Page No 728"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "G = 75*10**9 #N/m**2, stress\n",
+ "ro = 80/1000.0 #m, outside radius\n",
+ "t = 15/1000.0 #m, thickness\n",
+ "ri = ro - t #inside radius\n",
+ "l1 = 750/1000.0 #m, length\n",
+ "l2 = 300/1000.0 #m\n",
+ "T1 = 40 #Nm. torque\n",
+ "T2 =15 #Nm\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "J = (math.pi/2.0)*(ro**4 - ri**4)\n",
+ "#Eqn 14-22\n",
+ "U1 = (T1**2*l1)/(2*G*J) \n",
+ "U2 = (T2**2*l2)/(2*G*J)\n",
+ "Ui = U1 + U2\n",
+ "Ui = Ui*10**6 #in micro Joule\n",
+ "\n",
+ "#Display\n",
+ "print'The strain energy stored in the shaft = ',round(Ui,0),\"micro J\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The strain energy stored in the shaft = 233.0 micro J\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.6 Page No 735"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "F=5.0 #kip, horizontal distance\n",
+ "A=0.20 #inch**2, area\n",
+ "E=29*10**3 #ksi, stress\n",
+ "Nab=2.89 #kip, normal stress\n",
+ "Nac=5.77 #kip\n",
+ "L1=2 #ft, length\n",
+ "L2=4 #ft\n",
+ "L3=3.46 #ft\n",
+ "\n",
+ "#calculation\n",
+ "#Appling equation 14-24\n",
+ "dBh=(Nab**2*L1/(2*A*E)+(-Nac)**2*L2/(2*A*E)+F**2*L3/(2*A*E))*(2/F)\n",
+ "\n",
+ "#result\n",
+ "print\"The horizontal displacement is\",round(dBh*12,4),\"inch\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal displacement is 0.0978 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.8 Page No 743"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ro = 3 #inch, outside radius\n",
+ "ri = 2.5 #inch, inside radius\n",
+ "E = 10*10**3 #ksi, stress\n",
+ "W = 150 #kip, force\n",
+ "L = 12 #inch, length\n",
+ "h = 0\n",
+ "\n",
+ "#Part a\n",
+ "import math\n",
+ "A = (math.pi)*(ro**2 - ri**2)\n",
+ "del_st= (W*L)/(A*E)\n",
+ "#Part b\n",
+ "del_max = del_st*(1 + math.sqrt(1 + 2*(h/del_st)))\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum displacement at the top of the pipe for gradually applied load = ',round(del_st,4),\"inch\"\n",
+ "print'The maximum displacement at the top of the pipe for suddenly applied load = ',round(del_max,4),\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum displacement at the top of the pipe for gradually applied load = 0.0208 inch\n",
+ "The maximum displacement at the top of the pipe for suddenly applied load = 0.0417 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.9 Page No 744"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "W = 1.5 #kip, force\n",
+ "h = 2 #inch, height\n",
+ "E = 29*1000 #N/mm**2, stress\n",
+ "L = 16 #ft, length\n",
+ "I = 209 #inch**2, area\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "del_st = (W*L**3*12**3)/(48*E*I)\n",
+ "del_max = del_st*(1 + math.sqrt(1 + 2*(h/del_st)))\n",
+ "c = 9.92/2.0\n",
+ "Pmax=48*E*I/(L**3*12**3)\n",
+ "Mmax=Pmax*L/4.0\n",
+ "sigma_max = (12*E*del_max*c)/(L**2*12**2)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum bending stress in the steel beam = ',round(sigma_max,1),\"ksi\"\n",
+ "print'The maximum deflection in the beam = ',round(del_max,2),\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum bending stress in the steel beam = 19.7 ksi\n",
+ "The maximum deflection in the beam = 0.42 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.10 Page No 745"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m = 80*1000 #kg\n",
+ "v = 0.2 #m/s\n",
+ "l_ac = 1.5 #m\n",
+ "E = 200*10**9 #N/m**2\n",
+ "w = 0.2 #m\n",
+ "I = (1/12.0)*(w**4)\n",
+ "l_ab = 1000 #mm\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "del_Amax = math.sqrt((m*v**2*l_ac**3)/(3*E*I))\n",
+ "\n",
+ "P_max = (3*E*I*del_Amax)/(l_ac**3)\n",
+ "theta_A = (P_max*l_ac**2)/(2*E*I)\n",
+ "del_Amax = del_Amax*1000\n",
+ "del_Bmax = del_Amax + (theta_A*l_ab)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum horizontal displacement of the post at B due to impact =',round(del_Bmax,2),\"mm\"\n",
+ " \n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum horizontal displacement of the post at B due to impact = 23.24 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.11 Page No 758"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A = 400*10**-6 #m**2\n",
+ "E = 200*10**6 #kN/m**2\n",
+ "P = 100 #kN\n",
+ "\n",
+ "#Virtual Work Equation\n",
+ "n1 = 0\n",
+ "n2=0\n",
+ "n3=-1.414\n",
+ "n4=1\n",
+ "N1=-100\n",
+ "N2=-141.4\n",
+ "N3=-141.4\n",
+ "N4=200\n",
+ "L1=4\n",
+ "L2=2.828\n",
+ "L3=2.828\n",
+ "L4=2\n",
+ "Sum=n1*N1*L1+n2*N2*L2+n3*N3*L3+n4*N4*L4\n",
+ "del_cv = Sum/(A*E)\n",
+ "\n",
+ "#Display\n",
+ "print'The vertical displacement of joint C of the steel truss ',round(del_cv*1000,1),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The vertical displacement of joint C of the steel truss 12.1 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.12 Page no 759"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "A=250*10**(-6) #m**2\n",
+ "E=200*10**6 #pa\n",
+ "alpha=12*10**(-6)\n",
+ "l=4 #m\n",
+ "l1=-1.155 #KN\n",
+ "l2=-12 #KN\n",
+ "\n",
+ "#calculation\n",
+ "x=0 #x=n*N*L/A*E\n",
+ "y=0 #y=n*alpha*delta*T*L\n",
+ "z=(l1*l2*l)/(A*E)\n",
+ "deltabh=(x+y+z)\n",
+ "\n",
+ "#result\n",
+ "print \"The horizontal displacement is \",round(deltabh*1000,2),\"m\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal displacement is 1.11 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.15 Page No 774"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 200*10**6 #kN/m**2\n",
+ "P = 0 #N\n",
+ "A = 400*10**-6 #m**2\n",
+ "\n",
+ "#Calculation\n",
+ "N_by_P1 = 0\n",
+ "N_by_P2=0\n",
+ "N_by_P3=-1.414\n",
+ "N_by_P4=1\n",
+ "L1=4\n",
+ "L2=2.828\n",
+ "L3=2.828\n",
+ "L4=2\n",
+ "N1=-100\n",
+ "N2=141.4\n",
+ "N3=-141.4\n",
+ "N4=200\n",
+ "\n",
+ "Sum = N_by_P1*L1*N1+N_by_P2*L2*N2+N_by_P3*L3*N3+N_by_P4*L4*N4\n",
+ "del_ch = Sum/(E*A)\n",
+ "\n",
+ "#Display\n",
+ "print'The vertical displacement of joint C of the steel truss =',round(del_ch*1000,1),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The vertical displacement of joint C of the steel truss = 12.1 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter2.ipynb b/Mechanics_of_Materials/Chapter2.ipynb new file mode 100755 index 00000000..c29910ba --- /dev/null +++ b/Mechanics_of_Materials/Chapter2.ipynb @@ -0,0 +1,207 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2: Strain"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.1 page no. 70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "e_z= 4 #Constant\n",
+ "ab = 0.200 #m, dimension\n",
+ "from scipy import integrate\n",
+ "#Calculations\n",
+ "#Part a)\n",
+ "import math\n",
+ "def f(z):\n",
+ " return(1+(40*10**-3)*(math.sqrt(z)))\n",
+ "z=integrate.quad(f,0,ab) #Strain formula for short line segment = delta(sdash) =(1+e_z)delta(s) \n",
+ "deltaB= z[0]-ab\n",
+ "deltaB_mm= deltaB*1000\n",
+ "\n",
+ "#Part b)\n",
+ "\n",
+ "e_avg = deltaB/ab# Normal strain formula e = (delta(sdash) -delta(s))/delta(s)\n",
+ "\n",
+ "#Display\n",
+ "print\"The displacement at the end of the rod is = \",round(deltaB_mm,2),\"mm\"\n",
+ "print\"The average normal strain in the rod is =\",round(e_avg,4),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement at the end of the rod is = 2.39 mm\n",
+ "The average normal strain in the rod is = 0.0119 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2 page no. 71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "theta = 0.05 #degree, angle\n",
+ "L1=300.0 #mm, length\n",
+ "L2 = 400.0 #mm\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "alpha=math.atan(L2/L1)*180/3.14\n",
+ "phi=90-alpha+theta\n",
+ "Lad=math.sqrt(L1**2+L2**2)\n",
+ "Lbd=math.sqrt(Lad**2+L2**2-2*L2*Lad*math.cos(36.92*3.14/180.0))\n",
+ "epsilonBD=(Lbd-L1)/(L1)\n",
+ "dLbd=(theta*3.14/180.0)*L2\n",
+ "\n",
+ "#Display\n",
+ "print\"The average normal strain =\",round(epsilonBD,3),\"mm/mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average normal strain = 0.001 mm/mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.3 page no. 72"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#The given dimension are\n",
+ "ab= 250.0 #mm\n",
+ "bbdash_x = 3.0 #mm\n",
+ "bbdash_y = 2.0 #mm\n",
+ "ac = 300.0 #mm\n",
+ "\n",
+ "#calculations\n",
+ "#Part(a)\n",
+ "import math\n",
+ "abdash = math.sqrt((ab - bbdash_y)**2 + (bbdash_x)**2) #Pythagoras theorem\n",
+ "avg_normal_strain = (abdash-ab)/ab\n",
+ "\n",
+ "#Part(b)\n",
+ "gamma_xy = math.atan(bbdash_x/(ab - bbdash_y)) #shear strain formula\n",
+ "\n",
+ "#Display\n",
+ "print\"The average normal strain along AB is =\",round(avg_normal_strain,4),\"mm/mm\"\n",
+ "print\"The average shear strain =\",round(gamma_xy,4),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average normal strain along AB is = -0.0079 mm/mm\n",
+ "The average shear strain = 0.0121 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.4 page no. 73"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ab = 150 #mm\n",
+ "bc = 150 #mm\n",
+ "disp_cd= 2 #mm\n",
+ "ab_half = ab/2.0\n",
+ "addash_half = (bc+disp_cd)/2.0 \n",
+ "\n",
+ "#Calculations\n",
+ "#Part(a)\n",
+ "import math\n",
+ "ac = sqrt((ab)**2 + (bc)**2) #Pythagoras theorem in mm\n",
+ "ac_m = ac/1000.0 #in m\n",
+ "acdash = sqrt((ab)**2 + (bc+disp_cd)**2) #Pythagoras theorem in mm\n",
+ "acdash_m = acdash/1000.0 #in m\n",
+ "avg_strain_ac = (acdash_m - ac_m)/ac_m #Normal strain formula\n",
+ "\n",
+ "#Part(b)\n",
+ "theta_dash = 2* math.atan((addash_half)/(bc/2.0)) \n",
+ "gamma_xy = (math.pi / 2.0)- theta_dash \n",
+ "\n",
+ "#Display\n",
+ "print\"The average normal strain along the diagonal AC is =\",round(avg_strain_ac,5),\"mm/mm\"\n",
+ "print\"The shear strain at E relative to the x,y axes =\",round(gamma_xy,4),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average normal strain along the diagonal AC is = 0.00669 mm/mm\n",
+ "The shear strain at E relative to the x,y axes = -0.0132 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter3.ipynb b/Mechanics_of_Materials/Chapter3.ipynb new file mode 100755 index 00000000..355e0ff6 --- /dev/null +++ b/Mechanics_of_Materials/Chapter3.ipynb @@ -0,0 +1,334 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3: Mechanics Properties of Materials"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.1 Page no 94"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "offset = 0.2 #\n",
+ "a_x = 0.0016 #in/in\n",
+ "a_y = 50 #ksi\n",
+ "\n",
+ "#Calculations\n",
+ "#Modulus of Elasticity\n",
+ "E = a_y/(a_x*10**3) #E is the slope in GPa.\n",
+ "#Yield Strength\n",
+ "sigma_ys = 68 #ksi, Graphically, for a strain of 0.0016 mm/mm\n",
+ "#Ultimate Stress\n",
+ "sigma_u = 108 #ksi B is the peak of stress strain graph.\n",
+ "#Fracture Stress\n",
+ "ep_f = 0.23 #in/in\n",
+ "sigma_f = 90 #ksi from the graph.\n",
+ "\n",
+ "#Display\n",
+ "print\"The Modulus of Elasticity is \",E,\"ksi\"\n",
+ "print\"The Yield Strength from the graph \",sigma_ys,\"ksi\"\n",
+ "print\"The Ultimate Stress from the graph is \",sigma_u,\"ksi\"\n",
+ "print\"The Fracture Stress from the graph is \",sigma_f,\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Modulus of Elasticity is 31.25 ksi\n",
+ "The Yield Strength from the graph 68 ksi\n",
+ "The Ultimate Stress from the graph is 108 ksi\n",
+ "The Fracture Stress from the graph is 90 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.2 Page No 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "stress_b = 600 #MPa, stress\n",
+ "strain_b = 0.023 #mm/mm, strain\n",
+ "stress_a = 450 #Mpa, stress\n",
+ "strain_a = 0.006 #mm/mm, strain\n",
+ "\n",
+ "#Calculations\n",
+ "#Permanent Strain\n",
+ "E = stress_a/strain_a\n",
+ "strain_cd = stress_b/E #The recovered elastic strain\n",
+ "perm_strain = strain_b - strain_cd #mm/mm\n",
+ "\n",
+ "#Modulus of Resilience\n",
+ "ur_initial = (0.5*stress_a*strain_a)\n",
+ "ur_final = (0.5*stress_b*strain_cd) \n",
+ "\n",
+ "#Display\n",
+ "print\"The Permanent Strain is =\",perm_strain,\"mm/mm\"\n",
+ "print\"The Initial Modulus of Resilience is = \",ur_initial,\"MJ/mm**3\"\n",
+ "print\"The Final Modulus of Resilience is = \",ur_final,\"MJ/mm**3\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Permanent Strain is = 0.015 mm/mm\n",
+ "The Initial Modulus of Resilience is = 1.35 MJ/mm**3\n",
+ "The Final Modulus of Resilience is = 2.4 MJ/mm**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3 Page No 96"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "#Given\n",
+ "p = 10000 #N, load\n",
+ "E_al = 70*(10**3) #MPa,pressure\n",
+ "#The given dimension are\n",
+ "l_ab = 600.0 #mm\n",
+ "d_ab = 20.0 #mm\n",
+ "l_bc = 400.0 #mm\n",
+ "d_bc = 15.0 #mm\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "a_ab = (math.pi/4.0)*(d_ab**2) # Area of AB\n",
+ "a_bc = (math.pi/4.0)*(d_bc**2)\n",
+ "stress_ab = p/a_ab\n",
+ "stress_bc = p/a_bc\n",
+ "e_ab = stress_ab/E_al \n",
+ "e_bc = 0.045 #mm/mm . From the graph for stress_bc\n",
+ "elongation = (l_ab*e_ab)+ (l_bc*e_bc)\n",
+ "strain_rec = stress_bc/E_al \n",
+ "e_og = e_bc-strain_rec\n",
+ "rod_elong = e_og*l_bc\n",
+ "\n",
+ "#Display\n",
+ "print\"The elongation of the rod when load is applied is\",round(elongation,1),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The elongation of the rod when load is applied is 18.3 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.4 Page No 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 80 \t#kN load\n",
+ "#Dimensions are\n",
+ "l_z = 1.5\t #m\n",
+ "l_y = 0.05\t#m\n",
+ "l_x = 0.1 \t#m\n",
+ "\n",
+ "#Calculations\n",
+ "Aa= l_x*l_y\n",
+ "normal_stress_z = (P*(10**3))/Aa\n",
+ "Est = 200 #GPa - from the tables.\n",
+ "strain_z = (normal_stress_z)/(Est*(10**9)) \n",
+ "axial_elong = strain_z*l_z #elongation in the y direction\n",
+ "nu_st = 0.32 #Poisson's Ratio - from the tables.\n",
+ "strain_x = -(nu_st)*(strain_z) #strain in the x direction.\n",
+ "strain_y = strain_x\n",
+ "#Elongations\n",
+ "delta_x = strain_x*l_x\n",
+ "delta_y = strain_y*l_y\n",
+ "\n",
+ "#Display\n",
+ "print\"The change in the length (z direction) =\",axial_elong*10**6,\"micrometer\"\n",
+ "print\"The change in the cross section (x direction)=\",delta_x*10**6,\"micrometer\"\n",
+ "print\"The change in the cross section (y direction)=\",delta_y*10**6,\"micrometer\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The change in the length (z direction) = 120.0 micrometer\n",
+ "The change in the cross section (x direction)= -2.56 micrometer\n",
+ "The change in the cross section (y direction)= -1.28 micrometer\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.5 Page No 105"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#Refer to the graph of shear stress-strain of titanium alloy.\n",
+ "x_A = 0.008 #rad - x co-ordinate of A\n",
+ "y_A = 52\t #MPa - y co-ordinate of A\n",
+ "height = 2 \t#mm\n",
+ "l = 3.0 \t\t #mm\n",
+ "b = 4.0 \t #mm\n",
+ "\n",
+ "\n",
+ "#Calculations\n",
+ "#Shear Modulus\n",
+ "G = y_A/x_A\n",
+ "#Proportional Limit\n",
+ "tou_pl = 52 #ksi Point A\n",
+ "#Ultimate Stresss\n",
+ "tou_u = 73 #ksi - Max shear stress at B\n",
+ "#Maximum Elastic Displacement\n",
+ "tanA= x_A # tan theta is approximated as theta.\n",
+ "d = tanA*height\n",
+ "#Shear Force\n",
+ "A = l*b\n",
+ "V = tou_pl*A\n",
+ "\n",
+ "#Display\n",
+ "print\"The Shear Modulus = \",G,\"ksi\"\n",
+ "print\"The Proportional Limit = \",tou_pl,\"ksi\"\n",
+ "print\"The Ultimate Shear Stress = \",tou_u,\"ksi\"\n",
+ "print\"The Maximum Elastic Displacement = \",d,\"inch\"\n",
+ "print\"The Shear Force = \",V,\"kip\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Shear Modulus = 6500.0 ksi\n",
+ "The Proportional Limit = 52 ksi\n",
+ "The Ultimate Shear Stress = 73 ksi\n",
+ "The Maximum Elastic Displacement = 0.016 inch\n",
+ "The Shear Force = 624.0 kip\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.6 Page No 106"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d_o = 0.025 \t\t#m, outside diameter\n",
+ "l_o =0.25 \t\t #m\n",
+ "F =165 \t\t\t #kN, load\n",
+ "delta = 1.2 \t\t#mm\n",
+ "G_al = 26 \t\t #GPa\n",
+ "sigma_y = 440 \t\t#MPa\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "#Modulus of Elasticity\n",
+ "A = (math.pi/4)*(d_o**2)\n",
+ "avg_normal_stress = (F*10**3)/A\n",
+ "avg_normal_strain = delta/l_o\n",
+ "E_al = avg_normal_stress/ avg_normal_strain\n",
+ "E_al = E_al/10**6\n",
+ "#Contraction of Diameter\n",
+ "nu = (E_al/(2*G_al))-1\n",
+ "strain_lat = nu*(avg_normal_strain) \n",
+ "d_contraction = strain_lat* d_o \n",
+ "\n",
+ "#Display\n",
+ "print\"The Modulus of Elasticity is = \",round(E_al,0),\"GPa\"\n",
+ "print\"The contraction in diameter due to the force = \",round(d_contraction,4),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "70.0281749604\n",
+ "The Modulus of Elasticity is = 70.0 GPa\n",
+ "The contraction in diameter due to the force = 0.0416 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter4.ipynb b/Mechanics_of_Materials/Chapter4.ipynb new file mode 100755 index 00000000..8da809d8 --- /dev/null +++ b/Mechanics_of_Materials/Chapter4.ipynb @@ -0,0 +1,728 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4:Axial Load"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1 Page no 126"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a_ab = 1\t\t #inch**2, area\n",
+ "a_bd = 2 \t\t #inch**2\n",
+ "a_bc = a_bd\n",
+ "p = 29\t\t\t #kN, load\n",
+ "l_ab = 2\t\t #ft\n",
+ "l_bc = 1.5 \t\t #ft\n",
+ "l_cd = 1 \t #ft\n",
+ "\n",
+ "#Calculations\n",
+ "#Internal Forces By method of Sections\n",
+ "p_bc = 15 #kip\n",
+ "p_cd = 7 #kip\n",
+ "p_ab=9 #kip\n",
+ "#Displacement\n",
+ "d=(p_bc*l_ab*12/(a_ab*p*10**3))+(p_cd*l_bc*12/(a_bd*p*10**3))+(p_ab*l_cd*12/(a_bc*p*10**3))\n",
+ "d_=p_cd*l_bc*12/(a_bd*p*10**3)\n",
+ "\n",
+ "#Display\n",
+ "print\"The displacement of B relative to C is = +%1.3f mm\",round(d*10,4),\"inch\"\n",
+ "print \"Displacement of B relative to C is\",round(d_,5),\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement of B relative to C is = +%1.3f mm 0.0217 inch\n",
+ "Displacement of B relative to C is 0.00217 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.2 Page no 127"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a_ab = 400.0 #mm**2, area\n",
+ "d_rod = 10.0 #mm\n",
+ "r_rod = d_rod/(2*1000) #radius in m\n",
+ "P = 80.0 #kN, load\n",
+ "E_st = 200*(10**9) #Pa, pressure\n",
+ "E_al = 70*(10**9) #Pa\n",
+ "l_ab = 400.0 #mm, length of ab\n",
+ "l_bc = 600.0 #mm length of bc\n",
+ "\n",
+ "#Calculations\n",
+ "#Displacement\n",
+ "#delta =PL/AE\n",
+ "import math\n",
+ "numerator1 = P*(10**3)*(l_bc/1000.0) \n",
+ "denominator1 = (math.pi*r_rod**2*E_st)\n",
+ "delta_cb = numerator1/denominator1 #to the right\n",
+ "numerator2 = -P*(10**3)*(l_ab/1000.0) \n",
+ "denominator2 = (a_ab* 10**-6 *E_al)\n",
+ "delta_a = -numerator2/denominator2 #to the right\n",
+ "delta_c = delta_a+delta_cb\n",
+ "\n",
+ "#Display\n",
+ "print\"The displacement of C with respect to B = \",round(delta_cb,4),\"m\"\n",
+ "print\"The displacement of B with respect to A = \",round(delta_a,4),\"m\"\n",
+ "print'The displacement of C relative to A = ',round(delta_c*1000,2),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement of C with respect to B = 0.0031 m\n",
+ "The displacement of B with respect to A = 0.0011 m\n",
+ "The displacement of C relative to A = 4.2 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.3 Page no 128"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d_ac = 20.0 #mm, ac diameter\n",
+ "r_ac = d_ac/(2*1000)\t\t #radius in m\n",
+ "d_bd =40.0 \t\t\t #mm\n",
+ "r_bd = d_bd/(2*1000) \t\t#radius in m\n",
+ "P = 90.0 \t\t\t\t#kN\n",
+ "E_st = 200*(10**9) \t\t#Pa\n",
+ "E_al = 70*(10**9) \t\t#Pa\n",
+ "l_af = 200.0 \t\t\t#mm\n",
+ "l_fb = 400.0 \t\t\t#mm\n",
+ "l_bd = 300.0\t\t\t#mm\n",
+ "l_ac = l_bd\n",
+ "\n",
+ "#Calculations\n",
+ "#Internal Force\n",
+ "P_ac = 60 #kN\n",
+ "P_bd = 30 #kN\n",
+ "#Displacement\n",
+ "import math\n",
+ "num1 = -(P_ac*10**3*(l_ac/1000.0))\n",
+ "denom1 = math.pi* r_ac**2*E_st\n",
+ "delta_a = -num1/denom1 \n",
+ "delta_a = delta_a*1000 \n",
+ "#Post BD delta = PL/AE\n",
+ "num2 = -(P_bd*10**3*(l_bd/1000))\n",
+ "denom2 = math.pi* r_bd**2*E_al\n",
+ "delta_b = -num2/denom2 \n",
+ "delta_b = delta_b*1000 \n",
+ "delta_f = delta_b + (0.184)*(l_fb/(l_af+l_fb)) \n",
+ "\n",
+ "#Display\n",
+ "print'The displacement of Post AC =',round(delta_a,3),\"mm downwards\"\n",
+ "print'The displacement of Post BD =',round(delta_b,3),\"mm downwards\"\n",
+ "print'nThe displacement of point F =',round(delta_f,3),\"mm downwards\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The displacement of Post AC = 0.286 mm downwards\n",
+ "The displacement of Post BD = 0.102 mm downwards\n",
+ "nThe displacement of point F = 0.225 mm downwards\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.5 Page no 139"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "d_ab = 5 #mm, ab diameter\n",
+ "A = (math.pi/4)*(d_ab/1000)**2\n",
+ "gap = 1 #mm\n",
+ "P = 20 #kN, pressure\n",
+ "E_st = 200 #GPa\n",
+ "l_ac = 0.4 #m\n",
+ "l_cb = 0.8 #m\n",
+ "l_ab = l_ac+l_cb\n",
+ "\n",
+ "#Calculations\n",
+ "#Equilibrium\n",
+ "# Eqn1 -Fa - Fb +P*10**3 = 0 \n",
+ "#Compatibility\n",
+ "delta_ba = gap/1000.0 #in m\n",
+ "delta = delta_ba*(A*E_st*10**9) #delta_ba* Lac/AE \n",
+ "\n",
+ "#Eqn2 (L/AE)*Fa -(Lb/AE)*Fb = delta_ba\n",
+ "#Solving Equations 1 and 2 by matrices\n",
+ "Fa=16 #KN\n",
+ "Fb=4.05 #KN\n",
+ "\n",
+ "#Display\n",
+ "print\"The reaction force at A = \",Fa,\"kN\"\n",
+ "print\"The reaction force at B = \",Fb,\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction force at A = 16 kN\n",
+ "The reaction force at B = 4.05 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.6 Page no 140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 9 \t\t #kip, load\n",
+ "E_al = 10 #ksi, \n",
+ "E_br = 15 # ksi\n",
+ "h = 1.5 \t #ft\n",
+ "ri = 1 \t #inch\n",
+ "ro = 2 \t #inch\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "A = (math.pi*(ro**2 -ri**2))\n",
+ "Ai = math.pi*ri**2\n",
+ "#Equilibrium Eqn1 F_al +F_br = P\n",
+ "#Compatibility\n",
+ "coeff_F_br = (A*E_al)/(Ai*E_br) \n",
+ "#Eqn2 F_al- (coeff_F_br*F_br) = 0\n",
+ "#Solving equations 1 and 2 using matrices\n",
+ "Fal=6 \n",
+ "Fbr=3\n",
+ "\n",
+ "avg_stress_al = Fal/A \n",
+ "avg_stress_br = Fbr/Ai \n",
+ "avg_stress_al = avg_stress_al/1000\n",
+ "avg_stress_br = avg_stress_br/1000\n",
+ "\n",
+ "#Display\n",
+ "print\"The axial force experienced by Al = \",Fal,\"ksi\"\n",
+ "print\"The axial force experienced by Brass = \",Fbr,\"ksi\"\n",
+ "print'The average normal stress in Al = ',round(avg_stress_al*1000,3),\"ksi\"\n",
+ "print'The average normal stress in Al Brass = ',round(avg_stress_br*1000,3),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force experienced by Al = 6 ksi\n",
+ "The axial force experienced by Brass = 3 ksi\n",
+ "The average normal stress in Al = 0.637 ksi\n",
+ "The average normal stress in Al Brass = 0.955 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.7 Page no 141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 15\t\t #kN. load\n",
+ "a_ab = 50 \t#mm**2, area\n",
+ "a_ef =a_ab\n",
+ "a_cd = 30 \t#mm**2, area\n",
+ "l_ef = 0.5 \t#m, ef length\n",
+ "l_ce = 0.4 \t#m\n",
+ "l_ac = 0.4 \t#m\n",
+ "\n",
+ "#Calculations\n",
+ "#In the y direction F_a +F_c +F_e = P\n",
+ "#of moments -F_a(l_ac)+ P(l_ac/2) +F_e(l_ce) = 0\n",
+ "\n",
+ "#Compatibility equation for displacemnts\n",
+ "coeff_Fc = (1/a_cd) #coefficient of Fc\n",
+ "coeff_Fa = (0.5/a_ab) #coefficient of Fc\n",
+ "coeff_Fe = (0.5/a_ef) #coefficient of Fc\n",
+ "\n",
+ "#Solving the 3 Equations\n",
+ "F_a=9.52\n",
+ "F_b=3.46\n",
+ "F_c=2.02\n",
+ "#Display\n",
+ "print\"The force in rod AB = \",F_a,\"kN\"\n",
+ "print'The force in rod CD = ',F_b,\"kN\"\n",
+ "print'The force in rod EF = ',F_c,\"kN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force in rod AB = 9.52 kN\n",
+ "The force in rod CD = 3.46 kN\n",
+ "The force in rod EF = 2.02 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.8 Page no 142"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "r_o = 0.5\t\t #inch, outside radius\n",
+ "r_i = 0.25\t\t#inch, inside radius\n",
+ "l = 3 \t\t\t#inch\n",
+ "one_turn =20 #threads per inch\n",
+ "\n",
+ "#calculations\n",
+ "import math\n",
+ "a_t = (math.pi)*(r_o**2 - r_i**2) #Area of thread\n",
+ "a_b = (math.pi*(r_i**2))# Area of bolt\n",
+ "# In Y direction F_b - F_t = 0\n",
+ "\n",
+ "#Compatibility\n",
+ "half_turn = one_turn/2.0\n",
+ "#Solving the two simultaneous equations for F_b and F_t\n",
+ "F_b =11.22 #kip\n",
+ "F_t = F_b\n",
+ "stress_b = F_b/a_b\n",
+ "stress_t = F_t/a_t\n",
+ "F_b = F_b/1000.0\n",
+ "F_t = F_t/1000.0\n",
+ "\n",
+ "#Display\n",
+ "print'The stress in the bolt ',round(stress_b,1),\"ksi\"\n",
+ "print'The stress in the screw ',round(stress_t,1),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The stress in the bolt 57.1 ksi\n",
+ "The stress in the screw 19.0 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.9 Page no 144"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "l_ab = 800 + 400\t\t#mm, ab length\n",
+ "P = 20 \t\t \t#kN, load\n",
+ "d = 5/1000.0 \t\t\t#m, diameter\n",
+ "area = (math.pi/4.0)*d**2 \t#Cross sectional area\n",
+ "l_bbdash = 1/1000.0\t\t#m\n",
+ "E = 200.0 \t\t\t#GPa\n",
+ "\n",
+ "#Calculations\n",
+ "#Compatibility\n",
+ "delta_p = (P*10**3*0.4)/(area*E*10**9) #delta = PL/AE\n",
+ "delta_b = delta_p-l_bbdash\n",
+ "F_b = (delta_b*area*E*10**9)/(l_ab/1000.0)\n",
+ "F_b = F_b/1000.0\n",
+ "\n",
+ "#Equilibrium\n",
+ "F_a = P - F_b\n",
+ "\n",
+ "#Display\n",
+ "print\"The reaction at A \",round(F_a,2),\"kN\"\n",
+ "print'The reaction at B',round(F_b,2),\"kN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at A 16.61 kN\n",
+ "The reaction at B 3.39 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.10 Page no 152"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T1 = 60\t\t #degree celcius\n",
+ "T2 = 120\t\t#degress celcius\n",
+ "l_ab = 0.5\t\t#m\n",
+ "area =l_ab**2 \t#m**2\n",
+ "alpha = 6.6*10**-6\t# per degree celcius\n",
+ "E = 29*10**6 \t\t#kPa\n",
+ "\n",
+ "#Equilibrium\n",
+ "#F_a = F_b = F\n",
+ "del_T = T2-T1\n",
+ "F = alpha*del_T*area*E #Thermal Stress Formula\n",
+ "avg_normal_comp_stress = (F*10**-3)/area # sigma = F/A\n",
+ "\n",
+ "#Display\n",
+ "print\"The force at A and B = \",F/1000,\"kip\"\n",
+ "print'The average normal compressive stress = ',avg_normal_comp_stress,\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force at A and B = 2.871 kip\n",
+ "The average normal compressive stress = 11.484 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.12 Page no 154"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "area_sleeve = 600*10**-6 #m**2, area\n",
+ "area_bolt = 400*10**-6 #m**2, area\n",
+ "T1 = 15 #degree celcius\n",
+ "T2 = 80 #degree celcius\n",
+ "alpha_bolt = 12*10**-6 #per degree celcius\n",
+ "alpha_sleeve = 23*10**-6 #per degree celcius\n",
+ "l = 0.15 #m\n",
+ "E_bolt = 200*10**9 #N/m**2 \n",
+ "E_sleeve = 73.1*10**9 #N/m**2 \n",
+ "\n",
+ "#Equilibrium\n",
+ "#F_s = F_b\n",
+ "\n",
+ "#Compatibility\n",
+ "del_T = T2 - T1 \n",
+ "delb_T = alpha_bolt*del_T*l \n",
+ "delb_F = l/(area_bolt*E_bolt)\n",
+ "dels_T = alpha_sleeve*del_T*l \n",
+ "dels_F = l/(area_sleeve*E_sleeve)\n",
+ "\n",
+ "#delb_T + F_b*delb_F = dels_T + F_s*dels_F\n",
+ "F_b = (dels_T-delb_T)/(delb_F+dels_F)\n",
+ "F_b = F_b/1000 #in kN\n",
+ "F_s= F_b\n",
+ "\n",
+ "#Display\n",
+ "print\"The force experienced by sleeve and bolt, Fs=Fb \",round(F_s,1),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force experienced by sleeve and bolt, Fs=Fb 20.3 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.13 Page no 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "yiel = 250 #MPa, yield stress\n",
+ "r = 4 #mm, radius\n",
+ "width = 40 #mm\n",
+ "thick = 2 #mm\n",
+ "\n",
+ "#a)\n",
+ "r_h = r/(width - (2*r))\n",
+ "w_h = width/(width - (2*r))\n",
+ "K = 1.75\n",
+ "area = (thick*(width - (2*r))*10**-6)\n",
+ "P_y = (yiel*10**6*area)/K\n",
+ "P_y = P_y/1000.0\n",
+ "#b)\n",
+ "P_p = (yiel*10**6*area)\n",
+ "P_p = P_p/1000.0\n",
+ "\n",
+ "#Display\n",
+ "print\"The maximum load P that does not cause the steel to yield \",round(P_y,2),\"kN\"\n",
+ "print'The maximum load that the bar can support ',P_p,\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum load P that does not cause the steel to yield 9.14 kN\n",
+ "The maximum load that the bar can support 16.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.14 Page No:166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "P = 60 #KN, load\n",
+ "sigmaY= 420 #MPa, bending stress\n",
+ "E = 70*10**6 #MPa\n",
+ "l1 = 0.1 #m\n",
+ "l2 = 0.3 #m\n",
+ "r=0.005 #m \n",
+ "\n",
+ "#Maximum Normal Stress:\n",
+ "#r_h = 6/20.0\n",
+ "#w_h = 40/20.0\n",
+ "#K = 1.6\n",
+ "#from sec 4.4\n",
+ "Fa=45\n",
+ "Fb=15\n",
+ "sigmaAC=(Fa/1000.0)/((math.pi)*r**2)\n",
+ "sigmaCB=(Fb/1000.0)/((math.pi)*r**2)\n",
+ "Fay=sigmaY*10**3*(math.pi)*r**2\n",
+ "Fb=P-Fay\n",
+ "if sigmaAC>sigmaY:\n",
+ " print\"Calculate sigmaAC again\"\n",
+ "else:\n",
+ " print\"It is OK\" \n",
+ "sigmaAC_=sigmaY\n",
+ "sigmaCB_=Fb/1000.0/((math.pi)*r**2)\n",
+ "if sigmaCB_<sigmaY:\n",
+ " print\"It is OK\"\n",
+ "else:\n",
+ " print\"Calculate sigmaAC again\" \n",
+ "dL=Fb*l2/(((math.pi)*r**2)*E)\n",
+ "epsilonCB=dL/l2\n",
+ "epsilonAC=dL/l1\n",
+ "epsilonY=sigmaY*10**6/(E*10**3)\n",
+ "sigmaACr=-sigmaAC_+sigmaAC\n",
+ "sigmaCBr=sigmaCB_-sigmaCB\n",
+ "\n",
+ "#Display:\n",
+ "print\"Residual stress in AC is\",round(sigmaACr,0),\"MPa\"\n",
+ "print\"Residual stress in CB is\",round(sigmaCBr,0),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Calculate sigmaAC again\n",
+ "It is OK\n",
+ "420\n",
+ "572.957795131\n",
+ "190.98593171\n",
+ "343.943726841\n",
+ "Residual stress in AC is 153.0 MPa\n",
+ "Residual stress in CB is 153.0 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.15 Page no 168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "weight = 3.0 #kip, weight\n",
+ "l_ab = 20.0 #ft, length\n",
+ "l_ac= 20.03 #ft\n",
+ "area = 0.05 #inch**2, area\n",
+ "sigmaY=50 #ksi\n",
+ "\n",
+ "#calculations\n",
+ "strain_ab = (l_ac-l_ab)/l_ab \n",
+ "max_strain = 0.0017 \n",
+ "stress_ab = (350*strain_ab)/max_strain\n",
+ "F_ab = stress_ab*area \n",
+ "E_st = 350/max_strain \n",
+ "del1 = l_ab/(area*10**-6*E_st*10**3) \n",
+ "del2 = l_ac/(area*10**-6*E_st*10**3) \n",
+ "\n",
+ "T_ab=sigmaY*area\n",
+ "T_ac = weight-T_ab #kip\n",
+ "stress_in_ab = (T_ab*10**3)/area\n",
+ "stress = (T_ac)/area\n",
+ "strain_ac = (stress*max_strain)/50.0\n",
+ "elong_ac = strain_ac*l_ac #m\n",
+ "elong_ab = (l_ac-l_ab)+elong_ac #m\n",
+ "\n",
+ "#Display\n",
+ "print'The force experienced by wire AB = ',T_ab,\"kip\"\n",
+ "print'The force experienced by wire AC = ',T_ac,\"kip\"\n",
+ "print'The elongation in wire AB = ',round(elong_ab,4),\"ft\"\n",
+ "print'The elongation in wire AC = ',round(elong_ac,5),\"ft\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force experienced by wire AB = 2.5 kip\n",
+ "The force experienced by wire AC = 0.5 kip\n",
+ "The elongation in wire AB = 0.0368 ft\n",
+ "The elongation in wire AC = 0.00681 ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter5.ipynb b/Mechanics_of_Materials/Chapter5.ipynb new file mode 100755 index 00000000..649dd3d3 --- /dev/null +++ b/Mechanics_of_Materials/Chapter5.ipynb @@ -0,0 +1,736 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5:Torsion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.2 Page No 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T1 = 4250.0 #kNmm, torque\n",
+ "T2 = -3000.0 #kNm\n",
+ "T3 = T1+T2 #kNm\n",
+ "r = 75.0 #mm, radius\n",
+ "\n",
+ "#Calculation\n",
+ "#Section Property\n",
+ "import math\n",
+ "J = (math.pi/2.0)*(r**4) #polar moment of inertia\n",
+ "#Shear Stress\n",
+ "c_a = 75 #mm\n",
+ "tou_a = (T3*c_a*1000)/J #tou = Tc/J\n",
+ "c_b = 15 #mm\n",
+ "tou_b = (T3*c_b*1000)/J #tou = Tc/J\n",
+ "\n",
+ "#Display\n",
+ "print'The shear stress developed at A = ',round(tou_a*10,1),\"ksi\"\n",
+ "print'The shear stress developed at B = ',round(tou_b*10,2),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shear stress developed at A = 18.9 ksi\n",
+ "The shear stress developed at B = 3.77 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.3 Page No 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "di = 80 #mm, inside diameter\n",
+ "ri = 40/1000.0 #m, inside radius\n",
+ "d0 = 100 #mm, outside diameter\n",
+ "ro = d0/2000.0 #m outside radius\n",
+ "F = 80 #N, force\n",
+ "l1 = 0.2 #m, length\n",
+ "l2 = 0.3 #m\n",
+ "\n",
+ "#Internal Torque\n",
+ "T = F*(l1+l2)\n",
+ "#Section Property\n",
+ "import math\n",
+ "J = (math.pi/2.0)*((ro**4)-(ri**4))\n",
+ "#Shear Stress\n",
+ "c_o = 0.05#m\n",
+ "tou_o = (T*c_o)/(J*10**6)\n",
+ "c_i = 0.04 #m\n",
+ "tou_i = (T*c_i)/(J*10**6)\n",
+ "\n",
+ "#Display\n",
+ "print'The shear stress in the inner wall = ',round(tou_i,3),\"MPa\"\n",
+ "print'The shear stress in the outer wall = ',round(tou_o,3),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shear stress in the inner wall = 0.276 MPa\n",
+ "The shear stress in the outer wall = 0.345 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.4 Page No 191"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P = 5 #hp\n",
+ "N = 175 #rpm\n",
+ "allow_shear = 14.5 #ksi\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "P_=P*550 #ftlb/s\n",
+ "ang_vel = (2*math.pi*N)/60.0 # rad/s\n",
+ "T = P_/ang_vel #P = T*angular velocity\n",
+ "c = ((2*T*12)/(math.pi*allow_shear*1000))**(1/3.0)\n",
+ "d =2*c\n",
+ "\n",
+ "#Display\n",
+ "print'The required diameter of the shaft = ',round(d,3),\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The required diameter of the shaft = 0.858 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5 Page No 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E = 80*10**9 #N/m**2, longitudinal stress\n",
+ "d = 14/1000.0 #m, diameter\n",
+ "r = d/2.0 #m, radius\n",
+ "R = 100 #mm\n",
+ "l_ac = 0.4 #m, length\n",
+ "l_cd = 0.3 #m\n",
+ "l_de = 0.5 #m\n",
+ "T_c = 280 #Nm, torque\n",
+ "T_a = 150 #Nm\n",
+ "T_d = 40 #Nm\n",
+ "T_ac = T_a #Nm\n",
+ "\n",
+ "#Calculation\n",
+ "T_cd = T_ac - T_c \n",
+ "T_de = T_cd - T_d\n",
+ "#Angle of Twist\n",
+ "import math\n",
+ "J = (math.pi/2.0)*(r**4)\n",
+ "phiA=T_ac*l_ac/(J*E)+T_cd*l_cd/(J*E)+T_de*l_de/(J*E)\n",
+ "Sp=phiA*R\n",
+ "\n",
+ "#Display\n",
+ "print'The angle of twist of the shaft = ',round(phiA,3),\"rad\"\n",
+ "print'The displacement of tooth P on gear A =',round(Sp,3),\"mm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of twist of the shaft = -0.212 rad\n",
+ "The displacement of tooth P on gear A = -21.212 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.6 Page No 206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T = 45\t\t #N, torque\n",
+ "G = 80 \t\t#GPa, pressure\n",
+ "d = 20/1000.0\t\t #m\n",
+ "r = d/2.0\t #m\n",
+ "l_dc = 1.5\t\t #m\n",
+ "l_ab = 2 \t\t#m\n",
+ "r1 = 75/1000.0\t\t #m\n",
+ "r2 = 150/1000.0\t\t #m\n",
+ "\n",
+ "#Calculation\n",
+ "#Internal Torque\n",
+ "F = T/r2\n",
+ "T_d_x = F*r1\n",
+ "#Angle of twist\n",
+ "import math\n",
+ "J = (math.pi/2)*(r**4)\n",
+ "phi_c = (T*l_dc)/(2*J*G*10**9)\n",
+ "phi_b = (phi_c*r1)/r2\n",
+ "phi_ab = (T*l_ab)/(J*G*10**9)\n",
+ "phi_a = phi_b + phi_ab\n",
+ "\n",
+ "#Display\n",
+ "print'The angle of twist of end A of shaft AB = ',round(phi_a,3),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of twist of end A of shaft AB = 0.085 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.7 Page No 207"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d = 2 #inch, diameter\n",
+ "r = d/2.0 #radius\n",
+ "c = d/2.0\n",
+ "l_buried = 600\t\t #mm, buried length\n",
+ "G = 5500*10**3 \t\t#MPa\n",
+ "F = 1 \t\t#N\n",
+ "l_handle= 150 \t\t#mm\n",
+ "l_ab = 36 \t\t#inch\n",
+ "\n",
+ "#Internal Torque\n",
+ "T_ab = F*2*l_handle\n",
+ "t = T_ab/l_buried\n",
+ "#Maximum Shear Stress\n",
+ "import math\n",
+ "J = (math.pi/2.0)*(r**4)\n",
+ "tou_max = (T_ab*c)/(J)\n",
+ "\n",
+ "#Angle of Twist\n",
+ "from scipy import integrate\n",
+ "def f(x):\n",
+ " return(x)\n",
+ "x=integrate.quad(f,0,24) #Strain formula for short line segment = delta(sdash) =(1+e_z)delta(s) \n",
+ "X= x[0]\n",
+ "phi_a = ((T_ab*l_ab)+(50*X/4.0))/(J*G) \n",
+ "\n",
+ "#Display\n",
+ "print'The maximum shear stress in the post =',round(tou_max,1),\"psi\"\n",
+ "print'The angle of twist at the top of the post = ',round(phi_a,5),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum shear stress in the post = 191.0 psi\n",
+ "The angle of twist at the top of the post = 0.00167 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.8 Page No 216"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d = 20/1000.0 #m, diameter\n",
+ "r = d/2.0\n",
+ "l_bc = 0.2\n",
+ "l_cd = 1.5\n",
+ "l_da = 0.3\n",
+ "T_c = 800 #Nm, torque\n",
+ "T_d = -500 #Nm\n",
+ "\n",
+ "#Calculation\n",
+ "#Eqn 1 300 = T_a + T_b\n",
+ "#Compatibility\n",
+ "#Eqn 2\n",
+ "coeff_Tb = -l_bc\n",
+ "coeff_Ta = l_cd + l_da\n",
+ "#Solving Equations simultaneously using matrices\n",
+ "T_b = 645\n",
+ "T_a = -345\n",
+ "\n",
+ "#Display\n",
+ "print'The reaction at A = ',T_a,\"Nm\"\n",
+ "print'The reaction at B = ',T_b,\"Nm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at A = -345 Nm\n",
+ "The reaction at B = 645 Nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.9 Page No 217"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T = 250 #Nm, torque\n",
+ "G_st = 80 #GPa, pressure\n",
+ "G_br = 36 #GPa\n",
+ "ri = 0.5 #inch, inside radius\n",
+ "ro = 1 #inch, outside radius\n",
+ "l_ab = 1.2 #m\n",
+ "\n",
+ "#Equilibrium\n",
+ "# -Tst-Tbr+250Nm = 0\n",
+ "coeff1_st = -1\n",
+ "coeff1_br = -1\n",
+ "b1 = -250\n",
+ "\n",
+ "#Compatibility\n",
+ "#phi = TL/JG\n",
+ "import math\n",
+ "J1 = (math.pi/2.0)*(ro**4 - ri**4)\n",
+ "J2 = (math.pi/2.0)*(ri**4)\n",
+ "coeff2_st = 1/(J1*G_st*10**3)\n",
+ "coeff2_br = -1/(J2*G_br*10**3)\n",
+ "b2 = 0\n",
+ "\n",
+ "#Solving the above two equations simultaneously using matrices\n",
+ "T_st = 2911.5 #lb-inch\n",
+ "T_br = 88.5 #lb-inch\n",
+ "\n",
+ "shear_br_max = (T_br*10**3*ri)/(J2) #tou = (Tr)/J\n",
+ "shear_st_min = (T_st*10**3*ri)/(J1) #tou = (Tr)/J\n",
+ "shear_st_max = (T_st*10**3*ro)/(J1) #tou = (Tr)/J\n",
+ "\n",
+ "shear_strain = shear_br_max / G_br\n",
+ "shear_strain = shear_strain\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum shear stress experienced by Steel =',round(shear_st_max/1000),\"psi\"\n",
+ "print'The minimum shear stress experienced by Steel =',round(shear_st_min/1000),\"psi\"\n",
+ "print'The maximum shear stress experienced by Brass ',round(shear_br_max/1000),\"psi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum shear stress experienced by Steel = 1977.0 psi\n",
+ "The minimum shear stress experienced by Steel = 989.0 psi\n",
+ "The maximum shear stress experienced by Brass 451.0 psi\n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.10 Page No 223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "l = 4*12 #m, length\n",
+ "a = 1.5 #inch\n",
+ "tou_allow = 8000 #lb\n",
+ "phi_allow = 0.02 #rad\n",
+ "G = 3.7*10**6 #lb/inch**2, pressure\n",
+ "alpha = (60*math.pi)/180.0 #degrees\n",
+ " \n",
+ "#Calculations\n",
+ "T_shear1 = (tou_allow*a**3)/(20.0) # allowable shear stress = (20T)/(a**3)\n",
+ "T_twist1 = (phi_allow*a**4*G)/(46*l) #angle of twist =(46TL)/(a**4*G)\n",
+ "T1 = min(T_shear1, T_twist1)\n",
+ " \n",
+ "#Circular Cross Section\n",
+ "c_ = (a*a*math.sin(alpha))/(math.pi*2)\n",
+ "c = math.sqrt(c_)\n",
+ "\n",
+ "J = (math.pi/2.0)*(c**4)\n",
+ "T_shear2 = (tou_allow*J)/(c*1000)\n",
+ "T_twist2 = (phi_allow*J*G*10**3)/(l*10**6)\n",
+ "T2 = min(T_shear2, T_twist2)\n",
+ "\n",
+ "#Display\n",
+ "print'The largest torque that applied at the end of the triangular shaft ',round(T1,0),\"lb-in\"\n",
+ "print'The largest torque that applied at the end of the circular shaft ',round(T2*1000,0),\"lb-in\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The largest torque that applied at the end of the triangular shaft 170.0 lb-in\n",
+ "The largest torque that applied at the end of the circular shaft 233.0 lb-in\n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.12 Page No 228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#The given dimension are\n",
+ "l_cd = 0.5 #m\n",
+ "l_de = 1.5 #m\n",
+ "h =60/1000.0 #m\n",
+ "w = 40/1000.0 #m\n",
+ "t_h = 3/1000.0 #m\n",
+ "t_w = 5/1000.0 #m\n",
+ "T_c = 60 #Nm\n",
+ "T_d = 25 #Nm\n",
+ "G = 38*10**9 #N/m**2\n",
+ "T1 = T_c - T_d\n",
+ "\n",
+ "#Calculation\n",
+ "#Average Shear Stress\n",
+ "area = (w-t_w)*(h-t_h)\n",
+ "shear_a = T1/(2*t_w*area*10**6)\n",
+ "shear_b = T1/(2*t_h*area*10**6)\n",
+ "\n",
+ "#Angle of Twist\n",
+ "phi=(T_c*l_cd/(4*area**2*G))*((2*57/5.0)+(2*35/3.0))+(T1*l_de/(4*area**2*G))*((2*57/5.0)+(2*35/3.0))\n",
+ "\n",
+ "#Display\n",
+ "print'The average shear stress of the tube at A = ',round(shear_a,2),\"MPa\"\n",
+ "print'The average shear stress of the tube at B = ',round(shear_b,2),\"MPa\"\n",
+ "print'The angle of twist of end C = ',round(phi,5),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average shear stress of the tube at A = 1.75 MPa\n",
+ "The average shear stress of the tube at B = 2.92 MPa\n",
+ "The angle of twist of end C = 0.00629 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 78
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.13 Page No 236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "fillet_r = 6 #mm, fillet radius\n",
+ "D = 40/1000.0 #m, diameter\n",
+ "d = 20/1000.0 #m\n",
+ "T = 30 #Nm\n",
+ "\n",
+ "#Calculation\n",
+ "D_d = D/d \n",
+ "r_d = fillet_r/d \n",
+ "k = 1.3\n",
+ "#Maximum Shear Stress\n",
+ "import math\n",
+ "c = D/2.0\n",
+ "J = (math.pi/2.0)*(c**4)\n",
+ "max_shear = (k*T*c)/(J*10**6) # tou = K(Tc/J)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum shear stress in the shaft is = ',round(max_shear,1),\"MPa\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum shear stress in the shaft is = 3.1 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.14 Page No 242"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ro = 50/1000.0 #m, outside radius\n",
+ "ri = 30/1000.0 #m inside radius\n",
+ "c = ro\n",
+ "shear = 20*10**6 #N/m**2\n",
+ "\n",
+ "#Maximum Elastic Torque\n",
+ "import math\n",
+ "J = (math.pi/2.0)*((ro**4)-(ri**4))\n",
+ "T_y = (shear*J)/c # tou = Tc/J\n",
+ "T_y = T_y/1000.0 #in kN\n",
+ "\n",
+ "#Plastic Torque\n",
+ "x0 = 0.03\n",
+ "x1 = 0.05\n",
+ "\n",
+ "from scipy import integrate\n",
+ "def f(rho):\n",
+ " return(rho**2)\n",
+ "I=integrate.quad(f,x0,x1) #Strain formula for short line segment = delta(sdash) =(1+e_z)delta(s) \n",
+ "\n",
+ "Tp =(2*math.pi*I[0]*shear)\n",
+ "Tp_= Tp/1000.0\n",
+ "#Outer Shear Strain\n",
+ "strain = (0.286*10**-3*ro)/(ri)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum torque that can be applied to the shaft ',round(T_y,2),\"kNm\"\n",
+ "print'The plastic torque that can be applied to the shaft',round(Tp_,2),\"kNm\" \n",
+ "print'The minimum shear strain at the outer radius of the shaft ',round(strain,6),\"rad\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum torque that can be applied to the shaft 3.42 kNm\n",
+ "The plastic torque that can be applied to the shaft 4.11 kNm\n",
+ "The minimum shear strain at the outer radius of the shaft 0.000477 rad\n"
+ ]
+ }
+ ],
+ "prompt_number": 104
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.15 Page No 243"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "r = 20/1000.0 #m, radius\n",
+ "l = 1.5 #m, length\n",
+ "phi = 0.6 #rad\n",
+ "shear_y = 75*10**6 #N/m**2\n",
+ "\n",
+ "#Calculations\n",
+ "max_shear_strain = (phi*r)/(l) #phi = (strain*L)/r\n",
+ "strain_y = 0.0016\n",
+ "r_y = (r*strain_y)/(max_shear_strain) #by ratios\n",
+ "#T= (math.pi*shear_y)*(4c**3 - r_y**3)/6.0\n",
+ "import math\n",
+ "c = r\n",
+ "T = (math.pi*shear_y)*(4*c**3 - r_y**3)/6.0\n",
+ "T = T/1000.0\n",
+ "\n",
+ "#Display\n",
+ "print'The torque needed to twist the shaft by 0.6 rad ',T,\"kNm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The torque needed to twist the shaft by 0.6 rad 1.25412378731 kNm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.16 Page No 244"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l = 5 #m, length\n",
+ "G = 12*10**3 #GPa\n",
+ "co = 2 #inch\n",
+ "ci = 1 #inch\n",
+ "shear_y = 12 #N/mm**2\n",
+ "strain_y = 0.002 #rad, strain\n",
+ "\n",
+ "#Plastic Torque\n",
+ "import math\n",
+ "T_p = ((2*math.pi)*(co**3 - ci**3)*shear_y)/3.0\n",
+ "phi_p = (strain_y*l*shear_y)/ci\n",
+ "J = (math.pi/2.0)*(co**4 - ci**4)\n",
+ "shear_r = (T_p*co)/J\n",
+ "shear_i = (shear_r*ci)/(co)# shear = Tc/J\n",
+ "G = shear_y/strain_y \n",
+ "phi_dash = (T_p*l*10**3)/(J*G) #phi = TpL/JG\n",
+ "phi = phi_p - phi_dash\n",
+ "\n",
+ "\n",
+ "#Display\n",
+ "print'The plastic torque Tp = ',round(T_p,1),\"kip in\"\n",
+ "print'shear stress at inner wall is ',round(shear_i,2),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The plastic torque Tp = 175.9 kip in\n",
+ "shear stress at inner wall is 7.47 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter6.ipynb b/Mechanics_of_Materials/Chapter6.ipynb new file mode 100755 index 00000000..7a27f067 --- /dev/null +++ b/Mechanics_of_Materials/Chapter6.ipynb @@ -0,0 +1,798 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6:Bending"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.10 Page No 271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Lab=12.0 #ft, length\n",
+ "f=120 #lb/ft , force\n",
+ "shear=240 #shear at x=0\n",
+ "\n",
+ "#Calculation\n",
+ "a=f/Lab #a=w/x\n",
+ "x=(shear*2/(a))**(1/2.0)\n",
+ "#Moment diagram\n",
+ "Mmax=shear*x-(0.5)*(a*x)*x*(1/3.0)*x\n",
+ "\n",
+ "#Result\n",
+ "print\"The Maximum Bending Moment is\",round(Mmax,0),\"lb-ft\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Maximum Bending Moment is 1109.0 lb-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.11 Page No:289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "b = 6.0 #inch, length\n",
+ "h = 12.0 #inch\n",
+ "sigma_max = 2.0 #ksi\n",
+ "c = b\n",
+ "\n",
+ "#Part (a):\n",
+ "I = (1/12.0)*b*h**3\n",
+ "M1 = (sigma_max*I)/(c) #sigma_max = Mc/I Flexure Formula\n",
+ "\n",
+ "F = (0.5*sigma_max*b*b)\n",
+ "c = (2/3.0)*(b) #distance between centroids of each volume.\n",
+ "d=2*c #distance\n",
+ "M2 = F*d\n",
+ "\n",
+ "#Display:\n",
+ "print\"The internal moment M calculated using : \"\n",
+ "print\"a)The flexure formula = \",M1,\"kip-inch or \",M1/12.0,\"kip-ft\"\n",
+ "print\"b)The resultant of the stress distribution using the basic principles \",M2,\"kip-inch or\",M2/12.0,\"kip-ft\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The internal moment M calculated using : \n",
+ "a)The flexure formula = 288.0 kip-inch or 24.0 kip-ft\n",
+ "b)The resultant of the stress distribution using the basic principles 288.0 kip-inch or 24.0 kip-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.12 Page No:290"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "udl = 5 #kN/m, force\n",
+ "l1 = 3 #m , lenght\n",
+ "l2 = 6 #m\n",
+ "t = 20/1000.0 #mm\n",
+ "yb = 0.15 #m\n",
+ "\n",
+ "#Section Property:\n",
+ "I_bar1 = (1/12.0)*(0.25)*(t**3)\n",
+ "Ad2 = (0.25)*(0.02)*(yb+(t/2.0))**2\n",
+ "I_bar2 = (1/12.0)*(0.02)*(0.3**3)\n",
+ "I = 2*(I_bar1 + Ad2) + I_bar2\n",
+ "\n",
+ "#Bending stress:\n",
+ "c = 0.15 + t\n",
+ "M= 22.5 #kNm\n",
+ "sigma_max = (M*c)/(I*1000)\n",
+ "sigma_B = (M*yb)/(I*1000)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The absolute maximum bending stress is \",round(sigma_max,1),\"MPa\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The absolute maximum bending stress is 12.7 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.13 Page No:291"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "t1 = 15/1000.0 #m, thickness\n",
+ "t2 = 20/1000.0 #m\n",
+ "l = 250/1000.0 #m\n",
+ "b = 200/1000.0 #m\n",
+ "P = 2.4 #kN, load\n",
+ "l_a = 2 #m\n",
+ "l_b = 1 #m\n",
+ "\n",
+ "#Internal Moment:\n",
+ "y1 = b/2.0\n",
+ "y2 = t2/2.0\n",
+ "A = (2*t1*b)+(t2*l)\n",
+ "y_bar = ((2*y1*t1*b)+(y2*t2*l))/A\n",
+ "M = (P*l_a)+(1*y_bar)\n",
+ "\n",
+ "#Section Property:\n",
+ "I1 = (1/12.0)*(l*t2**3) + (l*t2*(y_bar - y2)**2)\n",
+ "I2 = (1/12.0)*(t1*b**3) + (t1*b*(y1 - y_bar)**2)\n",
+ "I =I1+ 2*I2\n",
+ "\n",
+ "#Maximum Bending Stress:\n",
+ "c = b - y_bar\n",
+ "sigma_max = (M*c)/(I*1000)\n",
+ "\n",
+ "#Display:\n",
+ "print'The maximum bending stress at section a-a is',round(sigma_max,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum bending stress at section a-a is 16.2 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.14 Page No:292"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "b = 60/1000.0 #m, breadth\n",
+ "h = 30/1000.0 #m, height\n",
+ "M = 40 #Nm, moment\n",
+ "c1= h/2.0\n",
+ "rib_t = 5/1000.0 #m\n",
+ "rib_w = 10/1000.0 #m\n",
+ "\n",
+ "#Without Ribs:\n",
+ "I1 = (1/12.0)*(b*h**3)\n",
+ "sigma_max1 = (M*c1)/(I1*10**6)\n",
+ "\n",
+ "#With Ribs:\n",
+ "y1 = c1\n",
+ "y2 = h+(rib_t/2.0)\n",
+ "A1 = h*b\n",
+ "A2 = rib_t*rib_w\n",
+ "y_bar = ((y1*A1)+2*(y2*A2))/(A1 + 2*A2)\n",
+ "\n",
+ "c2 = h+rib_t - y_bar\n",
+ "I2 = I1 + (b*h*(y_bar - y1)**2)\n",
+ "I3 = (1/12)*rib_w*rib_t**3 + (rib_w*rib_t*(y2 - y_bar)**2)\n",
+ "I = I2 + 2*I3\n",
+ "sigma_max2 = (M*c2)/(I*10**6)\n",
+ "\n",
+ "if(sigma_max2>sigma_max1):\n",
+ " print\"The maximum normal stress in the member without ribs\",round(sigma_max1,2),\"MPa\" \n",
+ " print\"The maximum normal stress in the member with ribs = \",round(sigma_max2,2),\"MPa\"\n",
+ " print\"The ribs should be omitted.\"\n",
+ " \n",
+ "else:\n",
+ " print\"no\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum normal stress in the member without ribs 4.44 MPa\n",
+ "The maximum normal stress in the member with ribs = 4.65 MPa\n",
+ "The ribs should be omitted.\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.15 Page No:306"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "M = 12 #kNm, moment\n",
+ "l_bc = 0.2 #m, length\n",
+ "l_be = 0.4 #m\n",
+ "\n",
+ "#Internal Moment Components:\n",
+ "import math\n",
+ "My = (-4/5.0)*M\n",
+ "Mz = (3/5.0)*M\n",
+ "\n",
+ "Iy = (1/12.0)*(l_be*l_bc**3)\n",
+ "Iz = (1/12.0)*(l_bc*l_be**3) \n",
+ "\n",
+ "#Bending Stress:\n",
+ "sigma_B = (-Mz*1000*(l_be/2.0))/Iz + (My*1000*(-l_bc/2.0))/Iy\n",
+ "sigma_B = sigma_B/10.0**6\n",
+ "sigma_C = (-Mz*1000*(l_be/2.0))/Iz + (My*1000*(l_bc/2.0))/Iy\n",
+ "sigma_C = sigma_C/10.0**6\n",
+ "sigma_D = (-Mz*1000*(-l_be/2.0))/Iz + (My*1000*(l_bc/2.0))/Iy\n",
+ "sigma_D = sigma_D/10.0**6\n",
+ "sigma_E = (-Mz*1000*(-l_be/2.0))/Iz + (My*1000*(-l_bc/2.0))/Iy\n",
+ "sigma_E = sigma_E/10.0**6\n",
+ "\n",
+ "#Orientation of Nuetral Axis:\n",
+ "z = (0.45)/(sigma_E + sigma_B)\n",
+ "\n",
+ "#theta = -atan(4/3.0)\n",
+ "import math\n",
+ "tanA = (Iz/Iy)*(-4/3.0)\n",
+ "alpha = math.atan(tanA)\n",
+ "alpha = alpha*(180/math.pi)\n",
+ "\n",
+ "\n",
+ "#Display:\n",
+ "print\"The normal stress at B\",sigma_B,\"MPa\"\n",
+ "print\"The normal stress at C \",sigma_C,\"MPa\"\n",
+ "print\"The normal stress at D \",sigma_D,\"MPa\"\n",
+ "print\"The normal stress at E \",sigma_E,\"MPa\"\n",
+ "print\"The orientation of the nuetral axis \",round(alpha,1),\"degree\"\n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress at B 2.25 MPa\n",
+ "The normal stress at C -4.95 MPa\n",
+ "The normal stress at D -2.25 MPa\n",
+ "The normal stress at E 4.95 MPa\n",
+ "The orientation of the nuetral axis -79.4 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.16 Page No:308"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "import math\n",
+ "M =20 #kN, moment\n",
+ "Iy = 0.96*10**-3 #m**4, moment of inertia\n",
+ "Iz = 7.54*10**-3 #m**4\n",
+ "theta = 57.1*(math.pi/180.0) #angle\n",
+ "\n",
+ "#Calculation\n",
+ "#Internal moment Components:\n",
+ "My = M*sin(theta) \n",
+ "Mz = M*cos(theta) \n",
+ "#Bending Stress:\n",
+ "y_p = -0.2 #y Coordinate of P\n",
+ "z_p = 0.35 #z Coordinate of P\n",
+ "\n",
+ "theta1 = (math.pi/2)-(theta)\n",
+ "yp = -z_p*math.sin(theta1)+ y_p*math.cos(theta1)\n",
+ "zp = z_p*math.cos(theta1) + y_p*math.sin(theta1)\n",
+ "\n",
+ "#Eq 6-17\n",
+ "\n",
+ "sigma_p = ((Mz*-yp)/Iz) + ((My*zp)/Iy) \n",
+ "sigma_p = sigma_p/10.0**3\n",
+ "#Orientation of the Nuetral Axis:\n",
+ "alpha = math.atan((Iz/Iy)*math.tan(theta))\n",
+ "alpha = alpha*(180/math.pi)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The maximum normal stress at point P is\",round(sigma_p,1),\"Mpa\"\n",
+ "print\"The orientation of the nuetral axis is\",round(alpha,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum normal stress at point P is 3.8 Mpa\n",
+ "The orientation of the nuetral axis is 85.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.17 Page No:316"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "M = 2 #kNm, moment\n",
+ "Ew = 12 #GPa, Pressure\n",
+ "Est = 200.0 #GPa\n",
+ "bw = 150/1000.0 #m\n",
+ "t = 20/1000.0 #m\n",
+ "rib = 9/1000.0#m\n",
+ "\n",
+ "#Section Properties:\n",
+ "n = (Ew/Est)\n",
+ "bst = n*bw\n",
+ "y1 = t/2.0\n",
+ "A1 = t*bw\n",
+ "y2 = bw/2.0 + t\n",
+ "A2 = rib*bw\n",
+ "\n",
+ "y_bar = (y1*A1 +y2*A2)/(A1+A2)\n",
+ "I1 = (1/12.0)*(bw)*(t**3) + A1*(y_bar - y1)**2\n",
+ "I2 = (1/12.0)*(rib)*(bw**3) + A2*(y2-y_bar)**2\n",
+ "Ina = I1+I2\n",
+ "\n",
+ "#Normal Stress:\n",
+ "sigma_B = (M*(bw+t-y_bar))/(Ina*1000)\n",
+ "sigma_C = (M*(y_bar))/(Ina*1000)\n",
+ "\n",
+ "#Normal Stress in the wood:\n",
+ "sigmaB = n*sigma_B\n",
+ "\n",
+ "#Display:\n",
+ "print\"The normal stress at point B = \",round(sigma_B,1),\"MPa\"\n",
+ "print\"The normal stress at point C = \",round(sigma_C,1),\"MPa\"\n",
+ "print\"The normal stress at point B in the wood =\",round(sigmaB,2),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress at point B = 28.6 MPa\n",
+ "The normal stress at point C = 7.8 MPa\n",
+ "The normal stress at point B in the wood = 1.71 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.18 Page No:308"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "M = 60 #kip, moment \n",
+ "Est = 29*10**3 #GPa, stress\n",
+ "Econc = 3.6*10**3 #GPa\n",
+ "d = 25.0 #mm, diameter\n",
+ "r = d/2.0 #radius\n",
+ "w = 12 #inch, width\n",
+ "ht =16 #inch, height\n",
+ "\n",
+ "#Section Properties:\n",
+ "import math\n",
+ "n = Est/Econc\n",
+ "Ast = 2*math.pi*r**2\n",
+ "A = n*Ast\n",
+ "\n",
+ "#h**2+2.11h-33.7=0\n",
+ "#Constants (a,b,c) of quadratic no\n",
+ "a=1\n",
+ "b=2.11\n",
+ "c=-33.7\n",
+ "d=b**2-4*a*c\n",
+ "x1 = (-b+math.sqrt(b**2-4*a*c))/2*a\n",
+ "x2 = (-b-math.sqrt(b**2-4*a*c))/2*a\n",
+ "I = (1/12.0)*(w*x1**3) +w*x1*(x1/2.0)**2 + 12.65*(ht - x1)**2\n",
+ "\n",
+ "#Normal Stress:\n",
+ "sigma_conc_max = (M*12*x1)/(I)\n",
+ "sigma_conc = (M*12*(ht-x1))/(I)\n",
+ "sigma_st = n*sigma_conc\n",
+ "\n",
+ "#Display:\n",
+ "print\"The normal stress in each steel reinforcing rod = \",round(sigma_st,1),\"ksi\"\n",
+ "print\"The maximum normal stress in the concrete = \",round(sigma_conc_max,2),\"ksi\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress in each steel reinforcing rod = 31.9 ksi\n",
+ "The maximum normal stress in the concrete = 1.72 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.19 Page No:324"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "#The given radius are\n",
+ "ri = 200/1000.0 #m\n",
+ "r1 = 250/1000.0 #m\n",
+ "ro = 280/1000.0 #m\n",
+ "M = 4 #kNm\n",
+ "a = 0.05 #m\n",
+ "h = 0.03 #m\n",
+ "\n",
+ "#Section Properties:\n",
+ "import math\n",
+ "A1 = a**2 \n",
+ "A2 = (0.5*a*h)\n",
+ "A = A1+A2\n",
+ "r_avg1 = (r1+ri)/2.0\n",
+ "r_avg2 = r1+(h/3.0)\n",
+ "r_bar =((r_avg1*A1)+(r_avg2*A2))/A\n",
+ "\n",
+ "int_dA_r1 = a*math.log(r1/ri)\n",
+ "int_dA_r2 = (a*ro*math.log(ro/r1))/(ro-r1) - a\n",
+ "R = (A)/(int_dA_r1+ int_dA_r2)\n",
+ "k= r_bar - R\n",
+ "\n",
+ "#Normal Stress:\n",
+ "sigma_B = (-M*(R-ri))/(A*ri*k*1000)\n",
+ "sigma_A = (-M*(R-ro))/(A*ro*k*1000)\n",
+ "sigma = max(abs(sigma_B),abs(sigma_A))\n",
+ "\n",
+ "#Display:\n",
+ "print\"The maximum normal stress in the bar =\",round(sigma,0),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum normal stress in the bar = 129.0 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.20 Page No:328"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "M = 5 #kNm, moment\n",
+ "sigma_y = 500 #MPa, stress\n",
+ "r = 16 #mm, radius\n",
+ "h = 80.0 #mm, height\n",
+ "w = 120 #mm, width\n",
+ "r_h = r/h\n",
+ "w_h = w/h\n",
+ "k = 1.45 \n",
+ "c = h/(2000.0)\n",
+ "t = 20/1000.0 #m\n",
+ "\n",
+ "#Calculations:\n",
+ "I = (1/12.0)*(t)*(h/1000.0)**3\n",
+ "sigma_max = (k*M*c)/(I*1000)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The maximum normal stress in the steel =\",round(sigma_max,0),\"Mpa\"\n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum normal stress in the steel = 340.0 Mpa\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.21 Page No:341"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "sigma_y = 36 #ksi, stress\n",
+ "t = 0.5 #inch, thickness\n",
+ "w = 8 #inch, width\n",
+ "h = 9 #inch, height\n",
+ "\n",
+ "#Maximum Elastic Moment:\n",
+ "yy = (h+t)/2.0\n",
+ "I1 = (1/12.0)*(w*t**3) + (w*t*yy**2)\n",
+ "I = (1/12.0)*(t*h**3) + 2*(I1)\n",
+ "c = 5.0 #mm\n",
+ "\n",
+ "My = (sigma_y*I)/(c) #Flexure Formula\n",
+ "#Plastic Moment:\n",
+ "C1= sigma_y*t*(h/2.0)\n",
+ "C2= sigma_y*t*(w)\n",
+ "Mp = (2*2.25*C1) + (2*yy*C2)\n",
+ "\n",
+ "#Shape Factor:\n",
+ "k = Mp/My\n",
+ "\n",
+ "#Display:\n",
+ "print\"The shape factor for the beam = \",round(k,2)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shape factor for the beam = 1.14\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.22 Page no 342"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "sigma_y = 250 #MPa, bending stress\n",
+ "t = 15/1000.0 #m, thickness\n",
+ "w = 100/1000.0 #m, width\n",
+ "h = 120/1000.0 #m, height\n",
+ "c = 10/1000.0 #m\n",
+ "\n",
+ "#Calculations:\n",
+ "d = ((sigma_y*t*w)+(sigma_y*t*h))/(sigma_y*t*2)\n",
+ "T = sigma_y*t*d*10**3\n",
+ "C1 = sigma_y*t*c*10**3\n",
+ "C2 = sigma_y*t*w*10**3\n",
+ "Mp = (T*d/2.0)+(C1*c/2.0)+(C2*(c+t/2.0))\n",
+ "\n",
+ "#Display:\n",
+ "print\"The plastic moment that can be resisted by the beam = \",round(Mp,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The plastic moment that can be resisted by the beam = 29.4 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.23 Page no 343"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "sigma_y = 36 #ksi, bending stress\n",
+ "t = 12.5 #mm, thickness\n",
+ "w = 8 #inch, width\n",
+ "h = 9 #inch, height\n",
+ "c = (h/2.0)+t\n",
+ "I = 211 #inch**4, moment of inertia\n",
+ "Mp = 1732.5 #kip\n",
+ "\n",
+ "#Calculations:\n",
+ "sigma_allow = (Mp*c)/(I)\n",
+ "y = (sigma_y*c)/(sigma_allow)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The point of zero normal stress = \",round(y,2),\"inch\"\n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The point of zero normal stress = 4.38 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 6.24,Page no :344"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "ep1 = 0.01 #Strain at top\n",
+ "ep2 = 0.05 #strain at bottom\n",
+ "sig1 = 150 #kip\n",
+ "sig2 = 150 #N/mm**2\n",
+ "sig3 = 40 #N/mm**2\n",
+ "y = 0.3 #in\n",
+ "h = 3 #in\n",
+ "w = 2 #in\n",
+ "\n",
+ "#Calculations:\n",
+ "yy = (h/2.0)-y\n",
+ "T1 = (1/2.0)*(sig3*yy*w)\n",
+ "y1 = y +(2/3.0)*(yy)\n",
+ "T2 = yy*sig1*w\n",
+ "y2 = y+(0.5*yy)\n",
+ "T3 = (0.5*y*sig1*w)\n",
+ "y3 = (2/3.0)*(y)\n",
+ "M = 2*(T1*y1 + T2*y2 + T3*y3)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The bending moment applied that will cause a strain of \",round(M,0),\"kip in\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The bending moment applied that will cause a strain of 772.0 kip in\n"
+ ]
+ }
+ ],
+ "prompt_number": 71
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter7.ipynb b/Mechanics_of_Materials/Chapter7.ipynb new file mode 100755 index 00000000..2461bf06 --- /dev/null +++ b/Mechanics_of_Materials/Chapter7.ipynb @@ -0,0 +1,390 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7:Transverse Shear"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.1 Page No 369"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V = 4\t\t #kN, load\n",
+ "co = 0.05\t\t#mm, outside radius\n",
+ "ci = 0.02\t\t #mm, inside radius\n",
+ "t1 = 0.1 \t#mm, thickness\n",
+ "t2=0.06\n",
+ "\n",
+ "#Part (a)\n",
+ "#Section Properties\n",
+ "import math\n",
+ "Isolid=1/4.0*(math.pi)*co**4\n",
+ "Itube = 1/4.0*(math.pi)*(co**4-ci**4)\n",
+ "Qsolid=4*co/(3*math.pi)*(math.pi*co**2/2.0)\n",
+ "Qtube=4*co/(3*math.pi)*(math.pi*co**2/2.0)-4*ci/(3*math.pi)*(math.pi*ci**2/2.0)\n",
+ "Tsolid=V*10**3*Qsolid/(Isolid*t1)\n",
+ "Ttube=V*10**3*Qsolid/(Itube*t2)\n",
+ "\n",
+ "#Display\n",
+ "print\"The shear stress in solid = \",round(Tsolid/1000,1),\"KPa\"\n",
+ "print'The shear stress in tube = ',round(Ttube/1000000,2),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shear stress in solid = 679.1 KPa\n",
+ "The shear stress in tube = 1.16 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.3 Page No 370"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V = 80.0 \t\t\t#kN, load\n",
+ "thick_1 = 20/1000.0 \t#m, thickness\n",
+ "thick_2 = 15/1000.0 \t#m\n",
+ "l = 300/1000.0 \t\t#m, length\n",
+ "y = 100/1000.0 \t\t#m\n",
+ "h = 2*y\n",
+ "y_dash = y +thick_1/2.0\n",
+ "\n",
+ "#Part(a)\n",
+ "I1 = (thick_2*(h**3))/12.0\n",
+ "I2 = (l*(thick_1**3))/12.0\n",
+ "I3 = (l*thick_1*(y_dash)**2)\n",
+ "I = I1+2*(I2+I3) #Moment of inertia\n",
+ "Q_b = y_dash*l*thick_1\n",
+ "#At B'\n",
+ "tou_b_dash = (V*Q_b)/(I*l*1000)\n",
+ "#At B\n",
+ "tou_b = (V*Q_b)/(I*thick_2*1000)\n",
+ "\n",
+ "#At C\n",
+ "Q_c = (y_dash*l*thick_1)+(y*thick_2*y/2.0)\n",
+ "tou_c = (V*Q_c)/(I*thick_2*1000)\n",
+ "\n",
+ "#Display\n",
+ "print\"The shear stress at B dash = \",round(tou_b_dash,1),\"MPa\"\n",
+ "print\"The shear stress at B = \",round(tou_b,1),\"MPa\"\n",
+ "print\"The shear stress at C = \",round(tou_c,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shear stress at B dash = 1.1 MPa\n",
+ "The shear stress at B = 22.6 MPa\n",
+ "The shear stress at C = 25.2 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.4 Page No 372"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "udl = 6.5\t\t #kN, force\n",
+ "l_bc = 8 \t\t#m, length\n",
+ "l = 150/1000.0\t\t#m\n",
+ "t = 30/1000.0\t\t#m, thickness\n",
+ "\n",
+ "#Calculation\n",
+ "#Internal Shear\n",
+ "w = udl*l_bc/2.0\n",
+ "l_wc = l_bc/4.0\n",
+ "l_bw = l_bc - l_wc\n",
+ "V = (w*l_bw)/l_bc\n",
+ "R_b = w - V\n",
+ "\n",
+ "#Section Properties\n",
+ "y1= l/2.0\n",
+ "A = (l*t)\n",
+ "y2= l+(t/2.0)\n",
+ "y_dash = (y1*A + y2*A)/(2*A)\n",
+ "I1 = (t*l**3)/12.0\n",
+ "I2 = (A*(y_dash-y1)**2)\n",
+ "I3 = (l*t**3)/12.0\n",
+ "I4 = (A*(y2 - y_dash)**2)\n",
+ "I = I1+I2+I3+I4\n",
+ "Q = ((l+t)-(t/2.0)-y_dash)*A\n",
+ "#Shear Stress\n",
+ "tou_max = (V*Q)/(I*t*1000)\n",
+ "\n",
+ "#Display\n",
+ "print\"The maximum shear stress in the glue necessary to hold the boards together\",round(tou_max,2),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum shear stress in the glue necessary to hold the boards together 4.88 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.5 Page No 380"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V = 850 #kN, force\n",
+ "#The given dimension are\n",
+ "l1 =250/1000.0 #m.\n",
+ "l2 = 300/1000.0 #m\n",
+ "l3 = 125/1000.0 #m\n",
+ "t = 10/1000.0 #m\n",
+ "h = 200/1000.0 #m\n",
+ "\n",
+ "#Calculation\n",
+ "A1 = l1*t\n",
+ "A2 = l2*t\n",
+ "A3 = l3*t\n",
+ "y1 = l2+(t/2.0)\n",
+ "y2 = l2/2.0\n",
+ "y3 = h+(t/2.0)\n",
+ "y_dash = (2*y2*A2 + A1*y1 + A3*y3)/(2*A2 + A1 + A3)\n",
+ "I1 = ((l1*t**3)/12.0) +(A1 * (l2+(t/2.0)-y_dash)**2)\n",
+ "I2 = ((t*l2**3)/12.0) +(A2 * (y_dash - (l2/2.0))**2)\n",
+ "I3 = ((l3*t**3)/12.0) +(A1 * (h+(t/2.0)-y_dash)**2)\n",
+ "I = 2*I2 + I1 + I3\n",
+ "Q_b = (l2+(t/2.0) - y_dash)*A1 #Q = y'A'\n",
+ "Q_c = (h+(t/2.0) - y_dash)*A3 #Q = y'A'\n",
+ "\n",
+ "#Shear Flow\n",
+ "q_b = (V*Q_b)/I\n",
+ "q_c = (V*Q_c)/I\n",
+ "q_b = q_b/(2*1000)\n",
+ "q_c = q_c/(2*1000)\n",
+ "\n",
+ "#Display\n",
+ "print\"The shear flow at B, resisted by the glue is \",round(q_b,2),\"MN/m\"\n",
+ "print\"The shear flow at C, resisted by the glue is \",round(q_c,4),\"MN/m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The shear flow at B, resisted by the glue is 1.31 MN/m\n",
+ "The shear flow at C, resisted by the glue is 0.0498 MN/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.6 Page No 381"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V = 80 #lb, load\n",
+ "#The given dimension are\n",
+ "t = 1.5 #inch\n",
+ "a = 7.5 #inch\n",
+ "b = a-2*t #inch\n",
+ "F_nail= 30 #lb\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "#Section Properties\n",
+ "I = (a*a**3 - b*b**3 )/12.0\n",
+ "Q_b = (((a-2*t)/2.0)+(t/2.0))*a*t #Q = y'A'\n",
+ "Q_c = (((a-2*t)/2.0)+(t/2.0))*(a-2*t)*t #Q = y'A'\n",
+ "\n",
+ "#Shear Flow\n",
+ "q_b = (V*Q_b)/I\n",
+ "q_c = (V*Q_c)/I\n",
+ "s_b = F_nail/(q_b/2.0)\n",
+ "s_c = F_nail/(q_c/2.0)\n",
+ "\n",
+ "#Display\n",
+ "print\"The maximum spacing of nails required at B is =\",s_b,\"inch\"\n",
+ "print\"The maximum spacing of nails required at C is =\",s_c,\"inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum spacing of nails required at B is = 5.1 inch\n",
+ "The maximum spacing of nails required at C is = 8.5 inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7 Page No 382"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "F = 40 #lb, force\n",
+ "#The other dimension are\n",
+ "s = 9.0 #inch\n",
+ "h = 5 #inch\n",
+ "t = 0.5 #inch\n",
+ "w = 3 #inch\n",
+ "w_3 = w/3.0 #inch\n",
+ "\n",
+ "#Calculations\n",
+ "I = (w*h**3)/12.0 - (2*w_3*(h - 2*t)**3)/12.0\n",
+ "#Case 1\n",
+ "Q1 = ((h-t)/2.0)*(w*t)\n",
+ "V1 =((F/s)*I)/Q1 #q = VQ/I\n",
+ "\n",
+ "#Case2\n",
+ "Q2 = ((h-t)/2.0)*(w_3*t)\n",
+ "V2 =((F/s)*I)/Q2 #q = VQ/I\n",
+ "\n",
+ "#Display\n",
+ "print\"The largest vertical shear that can be supported in Case 1 = \",round(V1,1),\"lb\"\n",
+ "print\"The largest vertical shear that can be supported in Case 2 = \",round(V2,1),\"lb\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The largest vertical shear that can be supported in Case 1 = 27.1 lb\n",
+ "The largest vertical shear that can be supported in Case 2 = 81.3 lb\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.8 Page No 381"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V = 10 #lb, load\n",
+ "b1 = 6 #inch\n",
+ "h1 = 8 #inch\n",
+ "t = 1 #inch\n",
+ "b2 = b1-2*t\n",
+ "h2 = h1-2*t #inch\n",
+ "b3 = 4 #inch\n",
+ "\n",
+ "#Calculations\n",
+ "I = ((b2/2.0*(b1+t)**3))/12.0 +2*((b3+t)*t*((h1-t)/2.0)**2)\n",
+ "q_b = 0\n",
+ "Q_c = (h1-t)/2.0*(b3+t)*t \n",
+ "q_c = 1/2.0*(V*Q_c)/I\n",
+ "Q_d = 2*((h1-t)/4.0)*(h1-t)/2.0*t+(h1-t)/2.0*(b3+t)*t\n",
+ "q_d = 1/2.0*(V*Q_d)/I #Q = VQ/I\n",
+ "\n",
+ "#Display\n",
+ "print\"Variation of shear flow at B = \",q_b,\"kip/inch\"\n",
+ "print\"Variation of shear flow at C = \",round(q_c,3),\"kip/inch\"\n",
+ "print'Variation of shear flow at D = ',round(q_d,3),\"kip/inch\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Variation of shear flow at B = 0 kip/inch\n",
+ "Variation of shear flow at C = 0.487 kip/inch\n",
+ "Variation of shear flow at D = 0.828 kip/inch\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter8.ipynb b/Mechanics_of_Materials/Chapter8.ipynb new file mode 100755 index 00000000..366c18a1 --- /dev/null +++ b/Mechanics_of_Materials/Chapter8.ipynb @@ -0,0 +1,412 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8:Combined Loadings"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.1 Page No 408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "di=4*12 #inch, diameter\n",
+ "ri=di/2.0 #Radius\n",
+ "t=0.5 #inch, thickness\n",
+ "sigma=20.0 #Ksi, stress\n",
+ "\n",
+ "#Calculation\n",
+ "#Cylindrical Pressure Vessel\n",
+ "p1=(t*sigma)/ri #sigma = pr/t\n",
+ "#Spherical Vessel\n",
+ "p2=(2*t*sigma)/(ri) #sigma = pr/2t\n",
+ "\n",
+ "#Display\n",
+ "print\"The maximum internal pressure the cylindrical pressure vessel can sustainis\",round(p1*1000,0),\"psi\"\n",
+ "print\"The maximum internal pressure a spherical pressure vessel can sustain is\",round(p2*1000,0),\"psi\"\n",
+ "\n",
+ " "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum internal pressure the cylindrical pressure vessel can sustainis 417.0 psi\n",
+ "The maximum internal pressure a spherical pressure vessel can sustain is 833.0 psi\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.2 Page No 414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Determine stress at point B and C\n",
+ "\n",
+ "#Given\n",
+ "P = 15000.0 #N, force,\n",
+ "a = 40.0 #mm, length\n",
+ "b = 100.0 #mm, breadth\n",
+ "\n",
+ "#CAlculation\n",
+ "#Normal Force\n",
+ "A = a*b #Area\n",
+ "sigma = P/A\n",
+ "#Bending Moment\n",
+ "I = (a*b**3)/12.0 #I = (1/12)*bh**3\n",
+ "M = P*(b/2.0) \n",
+ "c = b/2.0\n",
+ "sigma_max =(M*c)/I\n",
+ "\n",
+ "#Superposition\n",
+ "x = ((sigma_max-sigma)*b)/((sigma_max+sigma)+(sigma_max-sigma))\n",
+ "sigma_b = (sigma_max-sigma)\n",
+ "sigma_c = (sigma_max + sigma)\n",
+ "\n",
+ "#Display\n",
+ "print\"The state of stress at B is(tensile)\",sigma_b,\"psi\"\n",
+ "print\"The state of stress at C is (compressive)\",sigma_c,\"psi\"\n",
+ "\n",
+ "\n",
+ " \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The state of stress at B is(tensile) 7.5 psi\n",
+ "The state of stress at C is (compressive) 15.0 psi\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.3 Page No 415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate the stress\n",
+ "\n",
+ "#Given:\n",
+ "ri =24 #inch, radius\n",
+ "t = 0.5 #inch\n",
+ "ro = ri+t\n",
+ "sp_wt_water = 62.4 #lb/ft**3\n",
+ "sp_wt_steel = 490 #lb/ft**3\n",
+ "l_a = 3 #m depth of point A from the top\n",
+ "\n",
+ "#Internal Loadings:\n",
+ "import math\n",
+ "v = (math.pi*l_a)*((ro/12.0)**2 - (ri/12.0)**2)\n",
+ "W_st = sp_wt_steel*v\n",
+ "p = sp_wt_water*l_a #lb/ft**2,Pascal's Law\n",
+ "p_=p*0.0069 #psi\n",
+ "#Circumferential Stress:\n",
+ "sigma1 = (p_*ri)/t\n",
+ "#Longitudinal Stress:\n",
+ "A_st = (math.pi)*(ro**2 - ri**2)\n",
+ "sigma2 = W_st/A_st\n",
+ "\n",
+ "#Display:\n",
+ "print\"The state of stress at A (Circumferential)\",round(sigma1,0),\"KPa\"\n",
+ "print\"The state of stress at A (Longitudinal) \",round(sigma2,1),\"KPa\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The state of stress at A (Circumferential) 62.0 KPa\n",
+ "The state of stress at A (Longitudinal) 10.2 KPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.4 Page No 417"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Determine the state of stress\n",
+ "\n",
+ "#Given\n",
+ "y_c = 125/1000.0 #m, length\n",
+ "x_c = 1.5 #m\n",
+ "y_b = 1.5 #m\n",
+ "x_b = 6.0 #m\n",
+ "udl = 50.0 #kN/m, force per unit length\n",
+ "l_udl = 2.5 #m\n",
+ "l = 250/1000.0 #m\n",
+ "width = 50/1000.0 #m \n",
+ "\n",
+ "\n",
+ "#Internal Loadings:\n",
+ "N = 16.45 #kN\n",
+ "V = 21.93 #kN\n",
+ "M = 32.89 #kNm\n",
+ "\n",
+ "#Stress Components:\n",
+ "#Normal Force:\n",
+ "A = l*width\n",
+ "sigma1 = N/(A*1000)\n",
+ "#Shear Force:\n",
+ "tou_c = 0\n",
+ "#Bending Moment:\n",
+ "c = y_c\n",
+ "I = (1/12.0)*(width*l**3)\n",
+ "sigma2 = (M*c)/(I*1000)\n",
+ "#Superposition:\n",
+ "sigmaC = sigma1+sigma2\n",
+ "\n",
+ "#Display:\n",
+ "print\"The stress due to normal force at C \",round(sigma1,2),\"MPa\"\n",
+ "print\"The stress due to shear force at C \",tou_c,\"MPa\"\n",
+ "print\"The stress due to bending moment at C \",round(sigma2,1),\"MPa\"\n",
+ "print\"The resultant stress at C \",round(sigmaC,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The stress due to normal force at C 1.32 MPa\n",
+ "The stress due to shear force at C 0 MPa\n",
+ "The stress due to bending moment at C 63.1 MPa\n",
+ "The resultant stress at C 64.5 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.5 Page No 418"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given:\n",
+ "r = 0.75*10 #mm, radius\n",
+ "f_x =40000 #N, force along x\n",
+ "f_y =800 #N force along y\n",
+ "l1 = 0.8 #mm\n",
+ "l2 = 0.4 #mm\n",
+ "\n",
+ "#Stress Components:\n",
+ "#Normal Force:\n",
+ "A1 =l1*l2\n",
+ "sigma1 = f_x/A1 #stress = P/A\n",
+ "\n",
+ "#Bending Moment:\n",
+ "M_y1 = 8000 #N\n",
+ "c1 = l2/2.0\n",
+ "I1 = (1/12.0)*(l1*l2**3)\n",
+ "sigma_A1 = (M_y1*c1)/I1 \n",
+ "M_y2 = 16000 #N\n",
+ "c2 = l2\n",
+ "I2 = (1/12.0)*(l2*l1**3)\n",
+ "sigma_A2 = (M_y2*c2)/I2 \n",
+ "\n",
+ "#Resultant:\n",
+ "res_normal= -sigma1-sigma_A1-sigma_A2\n",
+ "\n",
+ "#Display:\n",
+ "\n",
+ "print\"The stress due to normal force at A \",sigma1/1000,\"KPa\"\n",
+ "print\"The stress due to bending moment 8KN at A \",sigma_A1/1000,\"KPa\"\n",
+ "print\"The stress due to bending moment 16KN at A \",sigma_A2/1000,\"KPa\"\n",
+ "print\"The resultant normal stress component at A \",res_normal/1000,\"KPa\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The stress due to normal force at A 125.0 KPa\n",
+ "The stress due to bending moment 8KN at A 375.0 KPa\n",
+ "The stress due to bending moment 16KN at A 375.0 KPa\n",
+ "The resultant normal stress component at A -875.0 KPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.7 Page No 420"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate Stress at A\n",
+ "\n",
+ "#Given:\n",
+ "P = 500 #lb, load\n",
+ "r=0.75 #inch, radius\n",
+ "#Stress Components:\n",
+ "\n",
+ "#Normal Force:\n",
+ "import math\n",
+ "A = math.pi*r**2\n",
+ "sigma = P/A\n",
+ "\n",
+ "#Bendng Moments:\n",
+ "M_x =7000 #lb\n",
+ "cy = r\n",
+ "Ix = (1/4.0)*math.pi*(r**4) \n",
+ "sigma_max_1 = (M_x*cy)/Ix \n",
+ "\n",
+ "M_y = P*l_bc/2.0\n",
+ "cx = l_bc/2.0\n",
+ "Iy = (1/12.0)*(l_ab*l_bc**3) #I = (1/12)*(bh**3)\n",
+ "sigma_max_2 = (M_y*cx)/Iy #sigma = My/I\n",
+ "#Superposition\n",
+ "sigmaf=round(sigma/1000,3)+round(sigma_max_1/1000,1)\n",
+ "\n",
+ "#Display:\n",
+ "print\"The normal stress at corner A \",round(sigma/1000,3),\"ksi\"\n",
+ "print\"The normal stress at point A for Bending Moment \",round(sigma_max_1/1000,1),\"ksi\"\n",
+ "print\"The normal stress at point A for Superimposition \",round(sigmaf,1),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress at corner A 0.283 ksi\n",
+ "The normal stress at point A for Bending Moment 21.1 ksi\n",
+ "The normal stress at point A for Superimposition 21.4 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8 Page No 421"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Determine the state of stress at point A\n",
+ "\n",
+ "#Given\n",
+ "r=0.75 #radius,inch\n",
+ "V=800 #Forca, lb\n",
+ "\n",
+ "#Calculation\n",
+ "#shear force\n",
+ "import math\n",
+ "Q=(4*r/(3*math.pi))*(0.5*(math.pi*r**2))\n",
+ "Ix=(1/4.0)*math.pi*(r**4) \n",
+ "tau=V*Q/(Ix*2*r)\n",
+ "#Since point A is on neutral axis\n",
+ "sigmaA=0\n",
+ "T=11200 #lb inch, force \n",
+ "Iy=(1/2.0)*math.pi*(r**4) \n",
+ "sigma_a=T*r/Iy\n",
+ "#Superimposition\n",
+ "sigmayzA=tau+sigma_a\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"The stress for shear stress distribution is\",round(tau/1000,3),\"ksi\"\n",
+ "print\"The stress for Bending moment is\",sigmaA,\"ksi\"\n",
+ "print\"The stress for torque\",round(sigma_a/1000,2),\"ksi\"\n",
+ "print\"The stress for Superimposition \",round(sigmayzA/1000,1),\"ksi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The stress for shear stress distribution is 0.604 ksi\n",
+ "The stress for Bending moment is 0 ksi\n",
+ "The stress for torque 16.9 ksi\n",
+ "The stress for Superimposition 17.5 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 67
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/Chapter9.ipynb b/Mechanics_of_Materials/Chapter9.ipynb new file mode 100755 index 00000000..cb81513e --- /dev/null +++ b/Mechanics_of_Materials/Chapter9.ipynb @@ -0,0 +1,454 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9:Stress Transformation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.1 Page no 440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "tou = 25\t\t #MPa, shear stress\n",
+ "sigma1 = 50 \t\t#MPa, stress\n",
+ "sigma2 = 80 \t\t#MPa\n",
+ "phi = 30*(math.pi/180.0)\n",
+ "\n",
+ "# Calculations\n",
+ "sigma_x1 = (sigma1*math.cos(phi)*math.cos(phi))- (tou*math.cos(phi)*math.sin(phi)) - (sigma2*math.sin(phi)*math.sin(phi))- (tou*math.sin(phi)*math.cos(phi))\n",
+ "tou1 = (sigma1*math.cos(phi)*math.sin(phi))+ (tou*math.cos(phi)*math.cos(phi)) + (sigma2*math.sin(phi)*math.cos(phi))- (tou*math.sin(phi)*math.sin(phi))\n",
+ "sigma_x2 = (tou*math.cos(phi)*math.sin(phi))- (sigma2*math.cos(phi)*math.cos(phi)) + (tou*math.sin(phi)*math.cos(phi))+ (sigma1*math.sin(phi)*math.sin(phi))\n",
+ "tou2 = (tou*math.cos(phi)*math.cos(phi))+ (sigma2*math.cos(phi)*math.sin(phi)) - (tou*math.sin(phi)*math.sin(phi))+ (sigma1*math.sin(phi)*math.cos(phi))\n",
+ "\n",
+ "#Display\n",
+ "print\"The normal stress component in the x diection is = \",round(sigma_x1,1),\"MPa\"\n",
+ "print\" The shear stress component in the x diection is = \",round(tou1,1),\"MPa\"\n",
+ "print\" The normal stress component in the y diection is = \",round(sigma_x2,1),\"MPa\"\n",
+ "print\" The shear stress component in the y diection is = \",round(tou2,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress component in the x diection is = -4.2 MPa\n",
+ " The shear stress component in the x diection is = 68.8 MPa\n",
+ " The normal stress component in the y diection is = -25.8 MPa\n",
+ " The shear stress component in the y diection is = 68.8 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.2 Page no 444"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "import math\n",
+ "phi = -30*(math.pi/180) #angle\n",
+ "theta = 60*(math.pi/180) \n",
+ "sigma_x = -80 #MPa\n",
+ "sigma_y = 50 #MPa\n",
+ "tou_xy = -25 #MPa\n",
+ "\n",
+ "#Plane CD\n",
+ "sigma_x1 = (sigma_x+sigma_y)/2 + ((sigma_x-sigma_y)*math.cos(2*phi))/2 + (tou_xy*math.sin(2*phi)) #Eqn 9.1\n",
+ "tou_xy1 = ((-(sigma_x - sigma_y)*math.sin(2*phi))/2) + (tou_xy*math.cos(2*phi)) #Eqn 9.2\n",
+ "\n",
+ "#Plane BC\n",
+ "sigma_x2 = (sigma_x+sigma_y)/2 + ((sigma_x-sigma_y)*math.cos(2*theta))/2 + (tou_xy*math.sin(2*theta)) #Eqn 9.1\n",
+ "tou_xy2 = (-(sigma_x - sigma_y)*math.sin(2*theta))/2 + tou_xy*math.cos(2*theta) #Eqn 9.2\n",
+ "\n",
+ "#Display\n",
+ "print'The normal stress of plane CD inclined at 30 degrees = ',round(sigma_x1,1),\"MPa\"\n",
+ "print'The shear stress of plane CD inclined at 30 degrees = ',round(tou_xy1,1),\"MPa\"\n",
+ "print'The normal stress of plane BC inclined at 60 degrees = ',round(sigma_x2,1),\"MPa\"\n",
+ "print'The shear stress of plane BC inclined at 60 degrees = ',round(tou_xy2,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress of plane CD inclined at 30 degrees = -25.8 MPa\n",
+ "The shear stress of plane CD inclined at 30 degrees = -68.8 MPa\n",
+ "The normal stress of plane BC inclined at 60 degrees = -4.2 MPa\n",
+ "The shear stress of plane BC inclined at 60 degrees = 68.8 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.3 Page no 448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_x = -20 #MPa, stress\n",
+ "sigma_y = 90 #MPa\n",
+ "tou_xy = 60 #MPa\n",
+ "\n",
+ "#Orientation of Element\n",
+ "import math\n",
+ "theta_p2 = math.atan((2*tou_xy)/(sigma_x - sigma_y))\n",
+ "theta_p2 = theta_p2/2.0\n",
+ "theta_p1 = (180+2*theta_p2)/2.0\n",
+ "\n",
+ "#Principal Stresses\n",
+ "\n",
+ "sigma1 = ((sigma_x+sigma_y)/2.0)+(math.sqrt(((sigma_x - sigma_y)/2.0)**2 + tou_xy**2))\n",
+ "sigma2 = ((sigma_x+sigma_y)/2.0)- math.sqrt(((sigma_x-sigma_y)/2.0)**2 + tou_xy**2)\n",
+ "sigma_x2 = ((sigma_x+sigma_y)/2.0)+ (((sigma_x-sigma_y)/2.0)*math.cos(2*theta_p2)) + (tou_xy*math.sin(2*theta_p2))\n",
+ "\n",
+ "#Display\n",
+ "print\"The first principal stress is = \",round(sigma1,1),\"MPa\"\n",
+ "print\"The second principal stress is = \",round(sigma2,1),\"MPa\"\n",
+ "print'The normal stress acting on the 23.7 degrees plane = ',round(sigma_x2,1),\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The first principal stress is = 116.4 MPa\n",
+ "The second principal stress is = -46.4 MPa\n",
+ "The normal stress acting on the 23.7 degrees plane = -43.3 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.4 Page no 449"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_x = -20.0 #MPa, stress along x\n",
+ "sigma_y = 90.0 #MPa stress along y\n",
+ "tou_xy =60.0 #Mpa, shear stress\n",
+ "\n",
+ "#Calculation\n",
+ "#Orientation of Element\n",
+ "import math\n",
+ "theta_s2 = math.atan(-(sigma_x - sigma_y)/(2*tou_xy))\n",
+ "theta_s2 = theta_s2/2.0\n",
+ "theta_s1 = math.pi + 2*theta_s2\n",
+ "theta_s1 = theta_s1/2.0\n",
+ "\n",
+ "#Maximum in plane Shear Stress\n",
+ "tou_max = (math.sqrt(((sigma_x - sigma_y)/2.0)**2 + tou_xy**2))\n",
+ "tou_xy1 = -(sigma_x - sigma_y)*(math.sin(2*theta_s2))/2.0 + (tou_xy*math.cos(2*theta_s2))\n",
+ "#Average Normal Stress\n",
+ "sigma_avg = (sigma_x+sigma_y)/2\n",
+ "\n",
+ "#Display\n",
+ "print\"The maximum in-plane shear stress is = \",round(tou_xy1,1),\"MPa\"\n",
+ "print\"The average normal stress is = \",round(sigma_avg,0),\"MPa\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum in-plane shear stress is = 81.4 MPa\n",
+ "The average normal stress is = 35.0 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.7 Page no 465"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_x = -12 #ksi, stress along x\n",
+ "sigma_y = 0\n",
+ "tou_xy = -6 #ksi, stress along xy\n",
+ "\n",
+ "#Calculation\n",
+ "#Construction of the circle\n",
+ "import math\n",
+ "sigma_avg = (sigma_x+sigma_y)/2.0\n",
+ "R = sqrt((-sigma_x+sigma_avg)**2 + (tou_xy)**2)\n",
+ "#Principal Stresses\n",
+ "sigma2 = -R+sigma_avg\n",
+ "sigma1 = R+sigma_avg\n",
+ "theta_p2 = math.atan((-tou_xy)/(-sigma_x+sigma_avg))\n",
+ "theta_p2 = theta_p2/2*(180/math.pi)\n",
+ "\n",
+ "#Display\n",
+ "print'The first principal stress is = ',round(sigma1,2),\"ksi\"\n",
+ "print'The second principal stress is = ',round(sigma2,2),\"ksi\"\n",
+ "print'The direction of the principal plane is = ',theta_p2,\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The first principal stress is = 2.49 ksi\n",
+ "The second principal stress is = -14.49 ksi\n",
+ "The direction of the principal plane is = 22.5 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.8 Page no 466"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_x = -20.0 #MPa\n",
+ "sigma_y = 90.0 #MPa\n",
+ "tou_xy = 60.0 #MPa\n",
+ "\n",
+ "#Construction of the circle\n",
+ "import math\n",
+ "sigma_avg = (sigma_x+sigma_y)/2\n",
+ "R = math.sqrt(((sigma_x-sigma_avg))**2 + (tou_xy)**2)\n",
+ "#Maximum In plane Shear Stress\n",
+ "tou_max = R\n",
+ "theta_s1 = math.atan(-(sigma_x - sigma_avg)/(tou_xy))\n",
+ "theta_s1 = theta_s1/2.0*(180/math.pi)\n",
+ "\n",
+ "#Display\n",
+ "print'The maximum in-plane shear stresses are = ',round(tou_max,1),\"MPa\"\n",
+ "print'The second principal stress = ',sigma_avg,\"MPa\"\n",
+ "print'The orientation of the element is = ',round(theta_s1,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum in-plane shear stresses are = 81.4 MPa\n",
+ "The second principal stress = 35.0 MPa\n",
+ "The orientation of the element is = 21.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9 Page no 467"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate normal stress and shear stress \n",
+ "\n",
+ "#Given\n",
+ "sigma_x = -8.0 #MPa\n",
+ "sigma_y = 12.0 #MPa\n",
+ "tou_xy = -6.0 #Mpa\n",
+ "\n",
+ "#Construction of the circle\n",
+ "import math\n",
+ "sigma_avg = (sigma_x+sigma_y)/2.0\n",
+ "R = math.sqrt( 10**2 + tou_xy**2)\n",
+ "#Stresses on 30 degree element\n",
+ "phi = math.atan(6/10.0)\n",
+ "psi = (math.pi/3.0) - phi\n",
+ "#On face BD\n",
+ "sigma_x1 = 2 - (R*math.cos(psi))\n",
+ "tou_xy1 = (R*math.sin(psi))\n",
+ "#On face DE\n",
+ "sigma_x2 = 2 + (R*math.cos(psi))\n",
+ "tou_xy2 = -(R*math.sin(psi))\n",
+ "\n",
+ "#Display\n",
+ "print'The normal stress on plane BD inclined at 30 degrees is = ',round(sigma_x1,1),\"ksi\"\n",
+ "print'The normal stress on plane DE inclined at 60 degrees is = ',round(sigma_x2,1),\"ksi\"\n",
+ "print'The shear stress is = ',round(tou_xy1,1),\"ksi\"\n",
+ "print'The shear stress is = ',round(tou_xy2,1),\"ksi\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal stress on plane BD inclined at 30 degrees is = -8.2 ksi\n",
+ "The normal stress on plane DE inclined at 60 degrees is = 12.2 ksi\n",
+ "The shear stress is = 5.7 ksi\n",
+ "The shear stress is = -5.7 ksi\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.10 Page no 476"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "sigma_max = 32 #MPa\n",
+ "sigma_min = 0 #MPa\n",
+ "sigma_int = 16 #MPa\n",
+ "\n",
+ "#Calculation\n",
+ "tou_max = (sigma_max - sigma_min)/2 \n",
+ "sigma_avg = (sigma_max + sigma_min)/2 \n",
+ "tou_in_plane = (sigma_max - sigma_int)/2\n",
+ "sigma_avg2 = sigma_avg + (tou_in_plane)\n",
+ "\n",
+ "#Display\n",
+ "print 'The normal shears tress is', sigma_avg,\"MPa\"\n",
+ "print'The maximum absolute shear stress = ',tou_max,\"MPa\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal shears tress is 16 MPa\n",
+ "The maximum absolute shear stress = 16 MPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.11 Page no 477"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "tou = 40 #psi\n",
+ "sigma = -20 #psi\n",
+ "\n",
+ "#Calculation\n",
+ "#Principal Stresses\n",
+ "import math\n",
+ "sigma_avg = sigma/2\n",
+ "R = sqrt( (-sigma + sigma_avg)**2 + tou**2)\n",
+ "sigma_max = sigma_avg + R \n",
+ "sigma_min = sigma_avg - R \n",
+ "theta = math.atan(tou/(-sigma+sigma_avg))\n",
+ "theta = theta/2\n",
+ "#Absolute Maximum Shear Stress\n",
+ "tou_max = (sigma_max - sigma_min)/2\n",
+ "sigma_avg = (sigma_max + sigma_min)/2\n",
+ "\n",
+ "#Display\n",
+ "print'The prinicpal stresses at the point are ',round(sigma_max,2),\"psi and\",round(sigma_min,1),\"psi\"\n",
+ "print'The absolute maximum shear stress at the point ',round(tou_max,1),\"psi\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The prinicpal stresses at the point are 31.23 psi and -51.2 psi\n",
+ "The absolute maximum shear stress at the point 41.2 psi\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Mechanics_of_Materials/README.txt b/Mechanics_of_Materials/README.txt index 433bd9d4..bcc04e6f 100755 --- a/Mechanics_of_Materials/README.txt +++ b/Mechanics_of_Materials/README.txt @@ -1,10 +1,10 @@ -Contributed By: Parth Parmar -Course: mca -College/Institute/Organization: Indus Ind Bank -Department/Designation: Relationship Officer +Contributed By: Ankit Garg +Course: btech +College/Institute/Organization: DCRUST, Murthal +Department/Designation: Chemical Engineering Book Title: Mechanics of Materials -Author: James M. Gere -Publisher: Thomson Learning, USA -Year of publication: 2004 -Isbn: 0-534-41793-0 -Edition: 6th
\ No newline at end of file +Author: R. C. Hibbeler +Publisher: Pearson Prentice Hall +Year of publication: 2011 +Isbn: 978-013-602230-5 +Edition: 8
\ No newline at end of file diff --git a/Mechanics_of_Materials/screenshots/10_5.png b/Mechanics_of_Materials/screenshots/10_5.png Binary files differnew file mode 100755 index 00000000..2e50015b --- /dev/null +++ b/Mechanics_of_Materials/screenshots/10_5.png diff --git a/Mechanics_of_Materials/screenshots/14_5.png b/Mechanics_of_Materials/screenshots/14_5.png Binary files differnew file mode 100755 index 00000000..5fdc4b38 --- /dev/null +++ b/Mechanics_of_Materials/screenshots/14_5.png diff --git a/Mechanics_of_Materials/screenshots/1_1.png b/Mechanics_of_Materials/screenshots/1_1.png Binary files differnew file mode 100755 index 00000000..6b09b98f --- /dev/null +++ b/Mechanics_of_Materials/screenshots/1_1.png |