summaryrefslogtreecommitdiff
path: root/Materials_science_and_engineering_an_introduction/CH14.ipynb
diff options
context:
space:
mode:
authorHardik Ghaghada2014-06-20 15:52:25 +0530
committerHardik Ghaghada2014-06-20 15:52:25 +0530
commite1e59ca3a50d9f93e8b7bc0693b8081d5db77771 (patch)
treef54eab21dd3d725d64a495fcd47c00d37abed004 /Materials_science_and_engineering_an_introduction/CH14.ipynb
parenta78126bbe4443e9526a64df9d8245c4af8843044 (diff)
parent83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (diff)
downloadPython-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.tar.gz
Python-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.tar.bz2
Python-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.zip
Merge pull request #1 from debashisdeb/master
removing problem statements from all the chapters to avoid copyright violations
Diffstat (limited to 'Materials_science_and_engineering_an_introduction/CH14.ipynb')
-rw-r--r--Materials_science_and_engineering_an_introduction/CH14.ipynb24
1 files changed, 0 insertions, 24 deletions
diff --git a/Materials_science_and_engineering_an_introduction/CH14.ipynb b/Materials_science_and_engineering_an_introduction/CH14.ipynb
index 7ade4dbe..e860f213 100644
--- a/Materials_science_and_engineering_an_introduction/CH14.ipynb
+++ b/Materials_science_and_engineering_an_introduction/CH14.ipynb
@@ -27,11 +27,7 @@
"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",
@@ -47,7 +43,6 @@
"xi6=0.08\n",
"xi7=0.02\n",
"\n",
- "#Calculation\n",
"xM1=Mi1*xi1\n",
"xM2=Mi2*xi2\n",
"xM3=Mi3*xi3\n",
@@ -57,7 +52,6 @@
"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",
@@ -67,7 +61,6 @@
"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",
@@ -76,7 +69,6 @@
"wi6=0.13\n",
"wi7=0.02\n",
"\n",
- "#Calculation\n",
"wM1=Mi1*wi1\n",
"wM2=Mi2*wi2\n",
"wM3=Mi3*wi3\n",
@@ -86,7 +78,6 @@
"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"
@@ -118,9 +109,7 @@
"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",
@@ -128,18 +117,15 @@
"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"
@@ -170,31 +156,21 @@
"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"