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
|
{
"metadata": {
"name": "",
"signature": "sha256:6a31e38d48b33cd2883c4a445f48cd42fa9848c47c13fe5bbf0011e5bf0bde7b"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 1:Simple Stresses and Strains"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Problem 1.1, Page no.9"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Given\n",
"#Variable declaration\n",
"L=150 #Length of the rod in cm\n",
"D=20 #Diameter of the rod in mm\n",
"P=20*1000 #Axial pull in N\n",
"E=2.0*(10**5) #Modulus of elasticity in N/(mm**2)\n",
"\n",
"#Calculation\n",
"A=(math.pi/4)*(D**2) #Area in sq.mm\n",
"sigma=P/A #Stress \n",
"e=sigma/E #Strain\n",
"dL=e*L #Elongation\n",
"\n",
"#Result\n",
"print \"sigma =\",round(sigma,3),\"N/mm^2\"\n",
"print \"Strain,e =\",round(e,6)\n",
"print \"Elongation,dL =\",round(dL,4),\"cm\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"sigma = 63.662 N/mm^2\n",
"Strain,e = 0.000318\n",
"Elongation,dL = 0.0477 cm\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|