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
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 7 : Thermodynamic Relations"
]
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 7.17 Page no : 370"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''\n",
"Determine the following :\n",
"(i) Work done on the copper during the process,\n",
"(ii) Change in entropy,\n",
"(iii) The heat transfer,\n",
"(iv) Change in internal energy, and\n",
"(v) (c p \u2013 c v ) for this change of state.\n",
"'''\n",
"\n",
"# Variables\n",
"B = 5.*10**(-5); \t\t\t# /K\n",
"K = 8.6*10**(-12); \t\t\t# m**2/N\n",
"v = 0.114*10**(-3); \t\t\t#m**3/kg\n",
"p2 = 800.*10**5; \t\t\t#Pa\n",
"p1 = 20.*10**5; \t\t\t#Pa\n",
"T = 288.; \t\t\t#K\n",
"\n",
"# Calculations and Results\n",
"W = -v*K/2*(p2**2-p1**2);\n",
"print (\"(i) Work done on the copper = %.3f\")%(W),(\"J/kg\")\n",
"\n",
"ds = -v*B*(p2-p1);\n",
"print (\"(ii) Change in entropy = %.3f\")% (ds), (\"J/kg K\")\n",
"\n",
"Q = T*ds;\n",
"print (\"(iii) The heat transfer = %.3f\")%(Q), (\"J/kg\")\n",
"\n",
"du = Q-W;\n",
"print (\"(iv) Change in internal energy = %.3f\")%(du),(\"J/kg\")\n",
"\n",
"R = B**2*T*v/K;\n",
"print (\"(v) cp \u2013 cv = %.3f\")%(R),(\"J/kg K\")\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) Work done on the copper = -3.135 J/kg\n",
"(ii) Change in entropy = -0.445 J/kg K\n",
"(iii) The heat transfer = -128.045 J/kg\n",
"(iv) Change in internal energy = -124.909 J/kg\n",
"(v) cp \u2013 cv = 9.544 J/kg K\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 7.18 Page no : 371"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''\n",
"Using Clausius-Claperyon\u2019s equation, find enthalpy of vapourisation.\n",
"'''\n",
"\n",
"# Variables\n",
"vg = 0.1274; \t\t\t#m**3/kg\n",
"vf = 0.001157; \t\t\t#m**3/kg\n",
"# dp/dT = 32; \t\t\t#kPa/K\n",
"T3 = 473; \t\t\t#K\n",
"\n",
"# Calculations\n",
"h_fg = 32*10**3*T3*(vg-vf)/10**3;\n",
"\n",
"# Results\n",
"print (\" enthalpy of vapourisation = %.3f\")%(h_fg),(\"kJ/kg\")\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" enthalpy of vapourisation = 1910.814 kJ/kg\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 7.19 Page no : 372"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''\n",
"Determine the pressure an ice skate blade must exert to allow smooth ice skate at \u2013 10\u00b0C.\n",
"'''\n",
"\n",
"import math\n",
"\n",
"# Variables\n",
"h_fg = 334.; \t\t\t#kJ/kg\n",
"v_liq = 1.; \t\t\t#m**3/kg\n",
"v_ice = 1.01; \t\t\t#m**3/kg\n",
"T1 = 273.; \t\t\t#K\n",
"T2 = 263.; \t\t\t#K\n",
"p1 = 1.013*10**5; \t\t\t#Pa\n",
"\n",
"# Calculations\n",
"p2 = (p1+h_fg*10**3/(v_ice-v_liq)*math.log(T1/T2))/10**5;\n",
"\n",
"# Results\n",
"print (\"pressure = %.3f\")%(p2),(\"bar\")\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"pressure = 13.477 bar\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 7.20 Page no : 372"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''\n",
"Calculate the specific volume v g of saturation mercury vapour at 0.1 bar\n",
"'''\n",
"\n",
"# Variables\n",
"h_fg = 294.54; \t\t\t#kJ/kg\n",
"p = 0.1; \t\t\t#bar\n",
"T = 523; \t\t\t#K\n",
"\n",
"# Calculations\n",
"vg = h_fg*10**3/T/(2.302*3276.6*p*10**5/T**2 - 0.652*p*10**5/T);\n",
"\n",
"# Results\n",
"print (\"specific volume = %.3f\")%(vg),(\"m**3/kg\")\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"specific volume = 2.139 m**3/kg\n"
]
}
],
"prompt_number": 3
}
],
"metadata": {}
}
]
}
|