summaryrefslogtreecommitdiff
path: root/Material_Science_In_Engineering/ch12.ipynb
blob: fb6de32dd03fa5a216a903b483e3596eadb82aac (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 12 : Heat Treatment"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 12.1 page no : 304"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "# Variables\n",
      "n_bcc = 1./2;\n",
      "n_fcc = 1./4;\n",
      "r_fcc = 1.26;\t\t\t#in Angstorm\n",
      "r_bcc = 1.24;\t\t\t#in Angstorm\n",
      "\n",
      "# Calculations\n",
      "a_bcc = 4.*r_bcc/math.sqrt(3);\t\t\t#in Angstorm\n",
      "a_fcc = 2.*math.sqrt(2)*r_fcc;\t\t\t#in Angstorm\n",
      "v_fcc = a_fcc**3;\n",
      "v_bcc = a_bcc**3;\n",
      "v = 100*((n_fcc*v_fcc)-(n_bcc*v_bcc))/(n_fcc*v_fcc);\n",
      "\n",
      "# Results\n",
      "print \"Percentage change in volume  =  %.3f\"%v\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Percentage change in volume  =  -3.764\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 12.3 pageno : 317"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "e = 51.;\t\t\t#Young modulous in GPa\n",
      "v = 0.22;\t\t\t#poisson ratio\n",
      "\n",
      "# Calculations\n",
      "g = e/(2*(1-v));\t\t\t#shear modulous in GPa\n",
      "b = 2*10.**-10;\n",
      "ue = (1./2)*g*10**9*b**2*10**12;\t\t\t#in J/m**3\n",
      "\n",
      "# Results\n",
      "print \"Change in free energy during recrysatllization (in J/m**3)  =  %.1f J/m**3\"%ue\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Change in free energy during recrysatllization (in J/m**3)  =  653.8 J/m**3\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 12.5 pageno : 329"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "g = 41.*10**9;\t\t\t#in N/m**2\n",
      "b = 0.64*10**-9;\t\t\t#in m\n",
      "l = 20.*10**-6;\t\t\t#in m\n",
      "\n",
      "# Calculations\n",
      "t = g*b/l;\t\t\t#in N/m**2\n",
      "T = t*10.**-6;\t\t\t#in MPa\n",
      "\n",
      "# Results\n",
      "print \"Contribution of these particles (in MPa)  =  %.3f MPa\"%T\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Contribution of these particles (in MPa)  =  1.312 MPa\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}