summaryrefslogtreecommitdiff
path: root/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commitd36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch)
tree9806b0d68a708d2cfc4efc8ae3751423c56b7721 /Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb
parent1b1bb67e9ea912be5c8591523c8b328766e3680f (diff)
downloadPython-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip
Revised list of TBCs
Diffstat (limited to 'Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb')
-rw-r--r--[-rwxr-xr-x]Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb32
1 files changed, 18 insertions, 14 deletions
diff --git a/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb b/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb
index e9d827fd..228b303a 100755..100644
--- a/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb
+++ b/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter22.ipynb
@@ -16,7 +16,7 @@
},
{
"cell_type": "code",
- "execution_count": 22,
+ "execution_count": 1,
"metadata": {
"collapsed": false
},
@@ -35,6 +35,7 @@
}
],
"source": [
+ "import math\n",
"# Given that\n",
"p = 1.013e5 # Pressure in Pa\n",
"t = 300 # Temperature in K\n",
@@ -57,7 +58,7 @@
},
{
"cell_type": "code",
- "execution_count": 23,
+ "execution_count": 1,
"metadata": {
"collapsed": false
},
@@ -76,7 +77,7 @@
}
],
"source": [
- "\n",
+ "import math\n",
"# Given that\n",
"lambda1 = (2.63e-5) # Mean free path of the molecules of the gas in m\n",
"t = 25 # Temperature in degree centigrade\n",
@@ -127,7 +128,6 @@
}
],
"source": [
- "\n",
"# Given that\n",
"import math\n",
"from scipy import integrate \n",
@@ -172,7 +172,7 @@
},
{
"cell_type": "code",
- "execution_count": 25,
+ "execution_count": 2,
"metadata": {
"collapsed": false
},
@@ -190,6 +190,7 @@
}
],
"source": [
+ "import math\n",
"# Given that\n",
"p = 1.0 # Pressure in atm\n",
"t = 300.0 # Temperature in K\n",
@@ -212,7 +213,7 @@
},
{
"cell_type": "code",
- "execution_count": 26,
+ "execution_count": 3,
"metadata": {
"collapsed": false
},
@@ -232,7 +233,7 @@
}
],
"source": [
- "\n",
+ "import math\n",
"# Given that\n",
"p = 1.0 # Pressure in atm\n",
"t = 300.0 # Temperature in K\n",
@@ -298,7 +299,7 @@
},
{
"cell_type": "code",
- "execution_count": 28,
+ "execution_count": 2,
"metadata": {
"collapsed": false
},
@@ -318,6 +319,7 @@
}
],
"source": [
+ "import math\n",
"# Given that\n",
"V = 1.0 # Volume of the flask in litre\n",
"p = 1.0 # Pressure in atm\n",
@@ -360,6 +362,7 @@
}
],
"source": [
+ "import math\n",
"# Given that\n",
"lambda1 = 2.0 # Mean free path in cm\n",
"T = 300.0 # Temperature in K\n",
@@ -381,7 +384,7 @@
},
{
"cell_type": "code",
- "execution_count": 30,
+ "execution_count": 4,
"metadata": {
"collapsed": false
},
@@ -399,7 +402,7 @@
}
],
"source": [
- "\n",
+ "import math\n",
"# Given that\n",
"f = 0.9 # Fraction of electrons leaving the cathode ray and reaching the anode without making any collision\n",
"x = 20.0 # Distance between cathode ray tube and anode in cm\n",
@@ -422,7 +425,7 @@
},
{
"cell_type": "code",
- "execution_count": 31,
+ "execution_count": 6,
"metadata": {
"collapsed": false
},
@@ -431,18 +434,19 @@
"name": "stdout",
"output_type": "stream",
"text": [
- "\n",
+ " \n",
" Example 22.10 \n",
"\n",
"\n",
" Initial concentration gradient of reactive molecules = 0.0 molecules/m**4, \n",
" The no of reactive molecules per sec cross a cross section at the mid point of the tube from left to right = 0.9 molecules/m**2,\n",
- " The no of reactive molecules per sec cross a cross section at the mid point of the tube from right to left = 4.08598425576e-12 molecule/m**2,\n",
+ " The no of reactive molecules per sec cross a cross section at the mid point of the tube from right to left = 2.71828182846 molecule/m**2,\n",
" Initial net rate of diffusion = 0.0112863158384 g/m**2-s\n"
]
}
],
"source": [
+ "import math\n",
"# Given that\n",
"l = 2.0 # Length of tube in m\n",
"a = 1e-4 # Cross section of the tube in m**2\n",
@@ -463,7 +467,7 @@
"d = (1.0/6)*(v*lambda1*(-1*C_g))*2*(m)\n",
"a=x+y\n",
"b=x-y\n",
- "print \"\\n Initial concentration gradient of reactive molecules =\",math.exp (C_g),\" molecules/m**4, \\n The no of reactive molecules per sec cross a cross section at the mid point of the tube from left to right =\",f , \"molecules/m**2,\\n The no of reactive molecules per sec cross a cross section at the mid point of the tube from right to left =\",e ,\" molecule/m**2,\\n Initial net rate of diffusion = \",d*1000 ,\"g/m**2-s\"\n",
+ "print \"\\n Initial concentration gradient of reactive molecules =\",math.exp (C_g),\" molecules/m**4, \\n The no of reactive molecules per sec cross a cross section at the mid point of the tube from left to right =\",f , \"molecules/m**2,\\n The no of reactive molecules per sec cross a cross section at the mid point of the tube from right to left =\",math.e ,\" molecule/m**2,\\n Initial net rate of diffusion = \",d*1000 ,\"g/m**2-s\"\n",
"# The answer for lambda given in the book conatains calculation error\n",
"# The answers contains calculation error\n"
]