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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 13: Dilute solution laws"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 13.1: Depression_in_freezing_point.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.\n",
"\n",
"//Chapter-13,Example 1,Page 478\n",
"//Title:Depression in freezing point\n",
"//================================================================================================================\n",
"clear \n",
"clc\n",
"\n",
"//INPUT\n",
"weight=10; //weight of NaCl in grams\n",
"volume=1; //volume of water in litres\n",
"weight_water=1000; // weight of water in grams (Weight=Volume*Density, density of water =1g/cc=1g/ml=1000g/l)\n",
"molwt_NaCl=58.5; //molecular weight of NaCl in grams\n",
"molwt_water=18; //molecular weight of water in grams\n",
"hf=6.002; //enthalpy change of fusion in kJ/mol at 0 degree celsius\n",
"P=101.325; //pressure in kPa\n",
"T=273.15; // freezing point temperature of water at the given pressure in K\n",
"R=8.314; //universal gas constant in J/molK;\n",
"\n",
"//CALCULATION\n",
"x2=(weight/molwt_NaCl)/((weight/molwt_NaCl)+(weight_water/molwt_water));// calculation of mole fraction of solute NaCl (no unit)\n",
"delt=(R*T^2*x2)/(hf*10^3);//calculation of depression in freezing point of water using Eq.(13.14)\n",
"\n",
"//OUTPUT\n",
"mprintf('\n The depression in freezing point of water when 10g of NaCl solute is added = %0.2f K',delt);\n",
"\n",
"//===============================================END OF PROGRAM==================================================="
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 13.2: Elevation_in_Boiling_Point.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.\n",
"\n",
"//Chapter-13,Example 2,Page 480\n",
"//Title:Elevation in Boiling Point\n",
"//================================================================================================================\n",
"clear \n",
"clc\n",
"\n",
"//INPUT\n",
"weight=10; //weight of NaCl in grams\n",
"volume=1; //volume of water in litres\n",
"weight_water=1000; // weight of water in grams (Weight=Volume*Density, density of water =1g/cc=1g/ml=1000g/l)\n",
"molwt_NaCl=58.5; //molecular weight of NaCl in grams\n",
"molwt_water=18; //molecular weight of water in grams\n",
"lat_ht=2256.94; //latent heat of vaporization in kJ/kg at 100 degree celsius (obtained from steam tables)\n",
"P=101.325; //pressure in kPa\n",
"T=373.15; //boiling point temperature of water at the given pressure in K\n",
"R=8.314; //universal gas constant in J/molK\n",
"\n",
"//CALCULATION\n",
"x2=0.0031;//mole fraction of solute NaCl (From Example 13.1)(no unit)\n",
"hv=(lat_ht*molwt_water)/1000; //conversion of latent heat from kJ/kg to kJ/mol\n",
"delt=(R*T^2*x2)/(hv*10^3); //calculation of elevation in boiling point of water using Eq.(13.24)\n",
"\n",
"//OUTPUT\n",
"mprintf('\n The elevation in boiling point of water when 10g of NaCl solute is added = %0.2f K',delt);\n",
"\n",
"//===============================================END OF PROGRAM==================================================="
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 13.3: Osmotic_pressure.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.\n",
"\n",
"//Chapter-13,Example 3,Page 481\n",
"//Title:Osmotic pressure\n",
"//================================================================================================================\n",
"clear \n",
"clc\n",
"\n",
"//INPUT\n",
"weight=10; //weight of NaCl in grams\n",
"weight_water=1000; // weight of water in grams\n",
"molwt_NaCl=58.5; //molecular weight of NaCl in grams\n",
"molwt_water=18; //molecular weight of water in grams\n",
"T=300; //prevailing temperature of water in K\n",
"R=8.314; //universal gas constant in (Pa m^3)/(mol K);\n",
"v=18*10^-6;//molar volume in m^3/mol\n",
"//CALCULATION\n",
"x2=0.0031;//mole fraction of solute NaCl (From Example 13.1)(no unit)\n",
"pi=((R*T*x2)/v)*10^-3; // calulation of osmotic pressure using Eq(13.30)(in kPa)\n",
"\n",
"//OUTPUT\n",
"mprintf('\n The osmotic pressure of a solution conatining 10g of NaCl in 1000g of water at 300K = %0.2f kPa',pi);\n",
"\n",
"//===============================================END OF PROGRAM==================================================="
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 13.4: Ideal_solubility.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.\n",
"\n",
"//Chapter-13,Example 4,Page 483\n",
"//Title:Ideal solubility\n",
"//================================================================================================================\n",
"clear \n",
"clc\n",
"\n",
"//INPUT\n",
"temp=20; // prevailing tempearture in degree celsius\n",
"melt_temp=80.05; // melting point of naphthalene in degree celsius\n",
"hf=18.574; // enthalpy of fusion in kJ/mol\n",
"R=8.314; // universal gas constant in J/molK\n",
"\n",
"//CALCULATION\n",
"t=temp+273.15; // convesion of prevailing temperature to K\n",
"melt_t=melt_temp+273.15; //conversion of melting point of naphtalene to K\n",
"x2=exp(((hf*10^3)/R)*((1/melt_t)-(1/t))); //calculation of ideal solubility using Eq.(13.40)(no unit)\n",
"\n",
"//OUTPUT\n",
"mprintf('\n The ideal solubility of naphthalene at 20 degree celsius= %0.4f',x2);\n",
"\n",
"//===============================================END OF PROGRAM==================================================="
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 13.5: Solubility_of_gas.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.\n",
"\n",
"//Chapter-13,Example 5,Page 483\n",
"//Title:Solubility of gas\n",
"//================================================================================================================\n",
"clear \n",
"clc\n",
"\n",
"//INPUT\n",
"t=295.43; //prevailing temperature in K\n",
"sat_p=6.05; //Sasturation pressure of carbon dioxide at the prevailing temperature in MPa\n",
"p=0.1; //pressure at which solubility has to be determined in MPa\n",
"\n",
"//CALCULATION\n",
"x2=p/sat_p; //calculation of solubility using Eq.(13.44)(no unit)\n",
"\n",
"//OUTPUT\n",
"mprintf('\n The solubility of carbon dioxide expressed in mole fraction of carbon dioxide in solution at 0.1MPa= %0.4f',x2);\n",
"\n",
"//===============================================END OF PROGRAM===================================================\n",
" "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|