{ "metadata": { "name": "", "signature": "sha256:fe60a567abd9a722f9efaa797b5de23eaf91ae1c1b70917990ddaa017e213706" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 15 : Welded, Bolted, and Riveted Connections" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 15.1 Page No : 393" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\t\t\t\n", "# Variables\n", "sigma = 20000. \t\t\t#psi\n", "b = 6. \t\t \t#in\n", "h = 0.5 \t\t \t#in\n", "p1 = 3750.\n", "\t\t\t\n", "# Calculations\n", "P = sigma*b*h\n", "L = (P-p1*b)/(2*p1)\n", "\t\t\t\n", "# Results\n", "print 'L = %.2f in'%(L)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "L = 5.00 in\n" ] } ], "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 15.2 Page No : 294" ] }, { "cell_type": "code", "collapsed": false, "input": [ "from numpy import linalg\n", "\t\t\t\n", "# Variables\n", "P = 5000. \t\t\t#lb per in\n", "Tl = 75. \t\t\t#kips\n", "y1 = 2.63 \t\t\t#in\n", "y2 = 1.37 \t\t\t#in\n", "\t\t\t\n", "# Calculations\n", "A = [[P, P],[y1*P, -y2*P]]\n", "b = [Tl*10**3, 0]\n", "c = linalg.solve(A,b)\n", "L1 = c[0]\n", "L2 = c[1]\n", "\t\t\t\n", "# Results\n", "print 'L1 = %.2f in'%(L1)\n", "print 'L2 = %.2f in'%(L2)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "L1 = 5.14 in\n", "L2 = 9.86 in\n" ] } ], "prompt_number": 2 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 15.3 Page No : 397" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import math \n", "\t\t\t\n", "# Variables\n", "d = 3./8 \t \t\t#in\n", "d1 = 1./8 \t\t \t#in\n", "y = 1. \t\t \t #in\n", "T = 15000. \t\t\t #psi\n", "sigmab = 32000. \t\t\t#psi\n", "sigmat = 18000. \t\t\t#psi\n", "\t\t\t\n", "# Calculations\n", "Ps = math.pi*T*(d/2)**2\n", "Pt = sigmat*d1*(y-d)\n", "Pb = sigmab*d1*d\n", "Pmin =Ps\n", "sigma =T\n", "if(PtP1):\n", " print 'Stornger P = %.2f lb'%(P)\n", "else:\n", " print 'Stornger P = %.2f lb'%(P1)\n", "\n", "# note : answer is different because of rounding off error. please check." ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Stornger P = 7450.94 lb\n" ] } ], "prompt_number": 3 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 15.7 Page No : 403" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import math \n", "\t\t\t\n", "# Variables\n", "P = 5. \t\t\t#kips\n", "xab = 3. \t\t\t#in\n", "xbc = 6. \t\t\t#in\n", "xbp = 1. \t\t\t#in\n", "y = 6. \t\t\t#in\n", "n = 3.\n", "\t\t\t\n", "# Calculations\n", "Dl = P/3\n", "Pct = (6*P)/(((xab+xbp)*(xab+xbp)/(xbc-xbp))+(xbp/(xbc-xbp))+(xbc-xbp))\n", "R = math.sqrt(Pct**2+Dl**2)\n", "\t\t\t\n", "# Results\n", "print 'Greatest Load = %.2f kips'%(R)\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Greatest Load = 3.94 kips\n" ] } ], "prompt_number": 7 } ], "metadata": {} } ] }