{ "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