summaryrefslogtreecommitdiff
path: root/Advanced_Strength_and_Applied_Elasticity/Chapter11.ipynb
blob: ba80b8251b202a338f9b858af2c49bb9f93f4a50 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:f729277270c4906babbae57b26d0a48c913109394e1fe2bf1cae355bbbb10bbd"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter11-Elastic Stability"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg319"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calcualte weight and N\n",
      "E=210*10**9. ##Pa\n",
      "d=100. ##mm\n",
      "t=50 ##mm\n",
      "A=0.005\n",
      "Iz=0.05*(0.1**3)/12.\n",
      "print(Iz)\n",
      "Iy=0.1*(0.05**3)/12\n",
      "print(Iy)\n",
      "##r=sqrt(Iy/A)\n",
      "r= math.sqrt(Iy/A)\n",
      "print(r)##mm\n",
      "L=2.75\n",
      "\n",
      "##P=W/tand(15)=3.732\n",
      "Pcr=(math.pi**2.*E*Iz)/L**2.\n",
      "print'%s %.2f %s'%(\"into W is= \",Pcr,\"\")\n",
      "W=Pcr/3.732\n",
      "print'%s %.2f %s'%(\"in N is= \",W,\"\")\n",
      "\n",
      "Pcr=(math.pi**2*E*Iy)/L**2.\n",
      "print'%s %.2f %s'%(\"into W is= \",Pcr,\"\")\n",
      "W=Pcr/3.732\n",
      "print'%s %.2f %s'%(\"in N is= \",W,\"\")\n",
      "\n",
      "## Ans varies due to round of error\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "4.16666666667e-06\n",
        "1.04166666667e-06\n",
        "0.0144337567297\n",
        "into W is=  1141937.70 \n",
        "in N is=  305985.45 \n",
        "into W is=  285484.42 \n",
        "in N is=  76496.36 \n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}