summaryrefslogtreecommitdiff
path: root/Strength_of_Materials_by_Dr.R.K.Bansal/chapter10.ipynb
blob: 5b3303b1f669ada5aa5566adbbbba601760ef5f1 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:eb79edf44fe3869f7971ad4e31d339c536c40824da513e054e2534b46f2f0fbe"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 10:Dams and Retaining Walls"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 10.19,page no.459"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "#Given\n",
      "#Variable declaration\n",
      "h=20              #height in m\n",
      "D=4               #External diameter in m\n",
      "d=2               #Internal diameter in m\n",
      "p=1               #Horizontal wind pressure in kN/sq.m\n",
      "w=22              #specific weight in kN/m^3            \n",
      "K=2/3             #Co-efficient of wind resistance\n",
      "\n",
      "#Calculation\n",
      "A1=(math.pi/4)*(D**2-d**2)           #Area of cross-section\n",
      "W=w*A1*h                             #Weigth of the chimney in kN\n",
      "sigma0=W/A1                          #Direct stress in kN/sq.mm\n",
      "A2=D*h                               #Projected area of the surface exposed to wind in sq.m\n",
      "F=K*p*A2                             #Wind Force in kN\n",
      "M=F*h/2                              #Bending moment in kNm\n",
      "I=(math.pi/64)*(D**4-d**4)           #Moment of inertia\n",
      "y=D/2                                #Distance between C.G. of the base section and extreme edge of the base\n",
      "Z=I/y                                #Section modulus\n",
      "sigmab=M/Z                           #Bending stress                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             \n",
      "sigma_max=round(sigma0+sigmab,2)     #Maximum stress in kN/sq.m\n",
      "sigma_min=round(sigma0-sigmab,2)     #Minimum stress in kN/sq.m\n",
      "\n",
      "#Result\n",
      "print\"Maximum stress =\",sigma_max,\"kN/m^2\"\n",
      "print\"Minimum stress =\",sigma_min,\"kN/m^2\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Maximum stress = 530.54 kN/m^2\n",
        "Minimum stress = 349.46 kN/m^2\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}