summaryrefslogtreecommitdiff
path: root/backup/Mechanical_Metallurgy_version_backup/Chapter_7.ipynb
blob: 9111bb76bb0aa56eaa261edea091c2aabf025141 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 7: Fracture"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Example 7.1, Cohesive Strength, Page No. 245"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Cohesive strength of a silica fiber = 24.367 GPa\n"
     ]
    }
   ],
   "source": [
    "from math import sqrt\n",
    "\n",
    "#variable declaration\n",
    "E=95;\n",
    "E=E*10**9;\n",
    "Ys=1000;\n",
    "Ys=Ys*10**-3;                 #conversion to J/m^2\n",
    "a0=1.6;\n",
    "a0=a0*10**-10;                   #conversion to m\n",
    "\n",
    "#calculation\n",
    "sigma_max=sqrt(E*Ys/a0)\n",
    "sigma_max=sigma_max*10**-9;\n",
    "\n",
    "#result\n",
    "print('Cohesive strength of a silica fiber = %g GPa')%(sigma_max);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Example 7.2, Fracture Stress, Page No. 246"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Fracture Stress = 100 MPa\n"
     ]
    }
   ],
   "source": [
    "from math import sqrt\n",
    "\n",
    "#variable declaration\n",
    "E=100;\n",
    "E=E*10**9;\n",
    "Ys=1;\n",
    "a0=2.5*10**-10;\n",
    "c=10**4*a0;\n",
    "\n",
    "#calculation\n",
    "sigma_f=sqrt(E*Ys/(4*c));\n",
    "sigma_f=sigma_f*10**-6;\n",
    "\n",
    "#result\n",
    "print('Fracture Stress = %g MPa')%(sigma_f);"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}