{ "metadata": { "name": "", "signature": "sha256:80d6cc3748bed03e9fd030c70419175672c3c9a4d62b5544fe9d0f908939d53e" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 12 : Stresses in Beams" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 12.1 Page No : 281" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\t\t\t\n", "# Variables\n", "L = 20. \t\t\t#ft\n", "b1 = 12. \t\t\t#in\n", "h1 = 4. \t\t\t#in\n", "b2 = 4. \t\t\t#in\n", "h2 = 12. \t\t\t#in\n", "Fs = 1200. \t\t\t#psi\n", "La = 5. \t\t\t#ft\n", "Lb = 15. \t\t\t#ft\n", "\t\t\t\n", "# Calculations\n", "Ina = b1*h1**3/12\n", "P1 = (Fs*Ina*4)/((h1/2)*12*La*3)\n", "Ina1 = b2*h2**3/12\n", "P2 = (Fs*Ina1*4)/((h2/2)*12*La*3)\n", "\t\t\t\n", "# Results\n", "print 'P max in first case = %.0f lb'%(P1)\n", "print 'P max in second case = %.2f lb'%(P2)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "P max in first case = 853 lb\n", "P max in second case = 2560.00 lb\n" ] } ], "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 12.2 Page No : 282" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\t\t\t\n", "# Variables\n", "b = 0.5 \t\t\t#in\n", "h = 1./32 \t\t\t#in\n", "d = 4. \t\t\t#ft\n", "E = 30.*10**6\n", "\t\t\t\n", "# Calculations\n", "stress = E*(h/2)/((d/2)*12)\n", "Ina = b*h**3/12\n", "M = stress*Ina/(h/2)\n", "\t\t\t\n", "# Results\n", "print 'maximum stress = %.2f psi'%(round(stress,-2))\n", "print 'internal moment = %.2f lb in'%(M) \n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "maximum stress = 19500.00 psi\n", "internal moment = 1.59 lb in\n" ] } ], "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 12.3 Page No : 283" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\t\t\t\n", "# Variables\n", "W = 1000. \t\t\t#lb/ft\n", "L = 10. \t\t\t#in\n", "b1 = 4. \t\t\t#in\n", "h1 = 1. \t\t\t#in\n", "b2 = 1. \t\t\t#in\n", "h2 = 6. \t\t\t#in\n", "\t\t\t\n", "# Calculations\n", "Mmax = 12500 \t\t\t#lb ft\n", "y = ((b1*h1*h1/2)+(b2*h2*((h2/2)+h1)))/(b1*h1+b2*h2)\n", "Ina = round((b1*h1**3/12)+b1*h1*(y-h1/2)**2+(b2*h2**3/12)+b2*h2*(h1+h2-y-(h2/2))**2,1)\n", "sigmat = Mmax*12*y/Ina\n", "sigmac = Mmax*12*(h1+h2-y)/Ina\n", "\n", "\t\t\t\n", "# Results\n", "print 'maximum tensile stress = %.2f psi'%(round(sigmat,-1))\n", "print 'maximum compressive bending stress = %.2f psi'%(round(sigmac,-2)) \n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "maximum tensile stress = 8180.00 psi\n", "maximum compressive bending stress = 13800.00 psi\n" ] } ], "prompt_number": 5 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 12.4 Page No : 287" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\t\t\t\n", "# Variables\n", "st = 1200. \t\t\t#psi\n", "sc = 100. \t\t\t#psi\n", "h = 12. \t\t\t#in\n", "b = 4. \t\t\t#in\n", "\t\t\t\n", "# Calculations\n", "I = b*h**3/12\n", "P1 = st*I/(b*12*(h/2))\n", "P2 = 2*sc*b*12/3\n", "if (P1