summaryrefslogtreecommitdiff
path: root/Aircraft_Structures_for_Engineering_Students/Chapter22.ipynb
blob: 15f86e3c3d0c1b12386afbce74c0d4569f622f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
 "metadata": {
  "name": "",
  "signature": "sha256:7afcc7b44b13ea906e3e2317703c261e07426e5f23f7958a6b7966ba0274524d"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 22: Fuselages"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 22.1 Pg.No.598"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "#B1=t_D*b/6(2+sigma_2/sigma_1)\n",
      "Mx=200*10**6                     # (N*mm)\n",
      "y=[381,352,269.5,145.8,0,-145.8,-269.5,-352,-381,-352,-269.5,-145.8,0,145.8,269.5,352]\n",
      "sigma_2=sigma_16=352\n",
      "sigma_1=381\n",
      "A=100\n",
      "B1=A+0.8*149.6/6*(2+sigma_2/sigma_1)*2\n",
      "Ixx=2.52*10**8\n",
      "def sigma_z(y):\n",
      "    return Mx/Ixx*y\n",
      "print \"Stringer/Boom \\t y(mm) \\t \\tsigma_z(N/mm^2)\"\n",
      "for i in range (0,16):\n",
      "    print \"%2.0f \\t\\t %3.1f\\t\\t\\t%3.1f \"%(i+1,y[i],sigma_z(y[i]))\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Stringer/Boom \t y(mm) \t \tsigma_z(N/mm^2)\n",
        " 1 \t\t 381.0\t\t\t302.4 \n",
        " 2 \t\t 352.0\t\t\t279.4 \n",
        " 3 \t\t 269.5\t\t\t213.9 \n",
        " 4 \t\t 145.8\t\t\t115.7 \n",
        " 5 \t\t 0.0\t\t\t0.0 \n",
        " 6 \t\t -145.8\t\t\t-115.7 \n",
        " 7 \t\t -269.5\t\t\t-213.9 \n",
        " 8 \t\t -352.0\t\t\t-279.4 \n",
        " 9 \t\t -381.0\t\t\t-302.4 \n",
        "10 \t\t -352.0\t\t\t-279.4 \n",
        "11 \t\t -269.5\t\t\t-213.9 \n",
        "12 \t\t -145.8\t\t\t-115.7 \n",
        "13 \t\t 0.0\t\t\t0.0 \n",
        "14 \t\t 145.8\t\t\t115.7 \n",
        "15 \t\t 269.5\t\t\t213.9 \n",
        "16 \t\t 352.0\t\t\t279.4 \n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}