summaryrefslogtreecommitdiff
path: root/Materials_science_and_engineering_an_introduction/CH14.ipynb
blob: 7ade4dbe19ad7244788f5daca49e9eaf97c469a7 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 14: Polymer Structure"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 14.1 Page No 499"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Computation of average Molecular wt and Degree of Polymerisation\n",
      "\n",
      "#Given\n",
      "#For different molecular wt range ,\n",
      "#From Table 14.1 (a)\n",
      "Mi1=7500          #g/mol , Molecular wt\n",
      "Mi2=12500     \n",
      "Mi3=17500\n",
      "Mi4=22500\n",
      "Mi5=27500\n",
      "Mi6=32500\n",
      "Mi7=37500\n",
      "xi1=0.05           #Number fraction\n",
      "xi2=0.16\n",
      "xi3=0.22\n",
      "xi4=0.27\n",
      "xi5=0.2\n",
      "xi6=0.08\n",
      "xi7=0.02\n",
      "\n",
      "#Calculation\n",
      "xM1=Mi1*xi1\n",
      "xM2=Mi2*xi2\n",
      "xM3=Mi3*xi3\n",
      "xM4=Mi4*xi4\n",
      "xM5=Mi5*xi5\n",
      "xM6=Mi6*xi6\n",
      "xM7=Mi7*xi7\n",
      "xM=xM1+xM2+xM3+xM4+xM5+xM6+xM7\n",
      "\n",
      "#(b)\n",
      "nC=2          #no of carbon atoms in repeat unit\n",
      "nH=3          #no of hydrogen atoms in repeat unit\n",
      "nCl=1         #no of chlorine atoms in repeat unit\n",
      "MwC=12.01     #Molecular wt of carbon\n",
      "MwH=1.01       #Molecular wt of Hydogen\n",
      "MwCl=35.45     #Molecular wt of  chlorine\n",
      "m=nC*MwC+nH*MwH+nCl*MwCl     #Total wt for PVC\n",
      "DP=xM/m\n",
      "\n",
      "#(c) from fig 14.3 (b)\n",
      "wi1=0.02           #weight fraction\n",
      "wi2=0.1\n",
      "wi3=0.18\n",
      "wi4=0.29\n",
      "wi5=0.26\n",
      "wi6=0.13\n",
      "wi7=0.02\n",
      "\n",
      "#Calculation\n",
      "wM1=Mi1*wi1\n",
      "wM2=Mi2*wi2\n",
      "wM3=Mi3*wi3\n",
      "wM4=Mi4*wi4\n",
      "wM5=Mi5*wi5\n",
      "wM6=Mi6*wi6\n",
      "wM7=Mi7*wi7\n",
      "wM=wM1+wM2+wM3+wM4+wM5+wM6+wM7\n",
      "\n",
      "#Result\n",
      "print\"(a)The no Av Molecular wt is\",xM,\"g/mol\"\n",
      "print\"(b)Degree of Polymerisation is\",round(DP,0)\n",
      "print\"(c)The weight  Av Molecular wt is\",wM,\"g/mol\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)The no Av Molecular wt is 21150.0 g/mol\n",
        "(b)Degree of Polymerisation is 338.0\n",
        "(c)The weight  Av Molecular wt is 23200.0 g/mol\n"
       ]
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 14.2 Page No 511"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Computations of the Density\n",
      "\n",
      "#Given\n",
      "Ac=12.01       #in g/mol  Molecular weight of Carbon\n",
      "Ah=1.008       #in g/mol  molecular weight of hydrogen\n",
      "a=7.41*10**-8  #in cm\n",
      "b=4.94*10**-8  #in cm\n",
      "c=2.55*10**-8  #in cm\n",
      "Na=6.023*10**23\n",
      "\n",
      "#calculation\n",
      "Vc=a*b*c\n",
      "n=2\n",
      "A=(2*Ac)+(4*Ah)\n",
      "density_c=n*A/(Vc*Na)\n",
      "\n",
      "#(b)Percent Crystallinity of Polyethylene\n",
      "density_a=0.870  # in g/cm**3\n",
      "density_s=0.925  # in g/cm**3\n",
      "pc=density_c*(density_s-density_a)*100/(density_s*(density_c-density_a))\n",
      "\n",
      "#Result\n",
      "print\"(a)Density is\",round(density_c,3),\"g/cm**3\"\n",
      "print\"(b)percentage crystallinity is\",round(pc,1),\"%\"\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)Density is 0.998 g/cm**3\n",
        "(b)percentage crystallinity is 46.4 %\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 14.3 Page No 516"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Computations of Diffusion Flux of Carbon dioxide through Plasic Beverage Container\n",
      "\n",
      "#function[A]= approx(V,n)\n",
      "#    A= round(V*10**n)/10**n\n",
      "#    funcprot(0)\n",
      "#endfunction\n",
      "\n",
      "#print\"\\tExample 14.3\\n\")\n",
      "\n",
      "#a\n",
      "P1=400000.0       # in Pa  Pressure inside the bottle\n",
      "P2=400.0          # in Pa  Pressure outside the bottle\n",
      "Pm=0.23*10**-13  #Solubility Coefficient\n",
      "dx=0.05          # in cm Thickness of wall\n",
      "\n",
      "#calculation\n",
      "J=(-Pm*(P2-P1)/dx)\n",
      "#(b)Beverage Shell Life\n",
      "\n",
      "A=500           #surface area of bottle in cm**2\n",
      "V_lose=750.0    #cm**3 STP\n",
      "V=J*A\n",
      "t=V_lose/round(V,5)\n",
      "\n",
      "#Result\n",
      "print\"Diffusion flux is \",round(J,9),\"cm**3 STP/cm**2-s\"\n",
      "print\"Time to escape is \",round(t/(3600*24),1),\"days\"\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Diffusion flux is  1.84e-07 cm**3 STP/cm**2-s\n",
        "Time to escape is  96.5 days\n"
       ]
      }
     ],
     "prompt_number": 20
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}