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
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 02 : Equilibrium and Kinetics"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 2.1, Page No 13"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"del_h = 6.02 #Heat added in kJ/mol\n",
"t_m = 273.15 #mean temperature in kelvin\n",
"\n",
"#Calculations\n",
"del_s = del_h*1e3/t_m\n",
"\n",
"#Results\n",
"print(\"Increase in entropy is %.2f J mol^-1 K^-1\" %del_s)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Increase in entropy is 22.04 J mol^-1 K^-1\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 2.2, Page No 16"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"E = 1.0 # energy in electron volt\n",
"e = 1.6e-19 # charge on electron\n",
"k = 1.38e-23 # constant\n",
"t1 = 300.0 # temperature in K\n",
"t2 = 1500.0 # temperature in K\n",
"\n",
"#Calculations\n",
"print(\"Part A:\")\n",
"n_N = math.exp(-(e/(k*t1)))\n",
"print(\"Fraction of atoms with energy equal to or greater than 1eV at temperature %.2f K \" %t1) #numerical value of answer in book is 2e-17\n",
"print(\" is %.2e \" %n_N)\n",
"print(\"Part B:\")\n",
"n_N = math.exp(-(e/(k*t2)))\n",
"\n",
"#Results\n",
"print(\"Fraction of atoms with energy equal to or greater than 1eV at temperature %.2f K \" %t2) #numerical value of answer in book is 4.3e4\n",
"print(\" is %.2e \" %n_N)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Part A:\n",
"Fraction of atoms with energy equal to or greater than 1eV at temperature 300.00 K \n",
" is 1.64e-17 \n",
"Part B:\n",
"Fraction of atoms with energy equal to or greater than 1eV at temperature 1500.00 K \n",
" is 4.40e-04 \n"
]
}
],
"prompt_number": 2
}
],
"metadata": {}
}
]
}
|