summaryrefslogtreecommitdiff
path: root/Chemical_Engineering_Thermodynamics___by_S._Sundaram/ch13.ipynb
blob: 2d92c849c0ab8a4bad60e8b3652306dcc515a60c (plain)
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
{
 "metadata": {
  "name": "",
  "signature": "sha256:98e5c2c383a1a1550ca177061033a45bcfa7bc464bb9def6e21c0e4e3bbd4374"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 13 : Thermodynamics in Phase Equilibria"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.1  Page No : 238"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "#N2 obeys the relation : Z = 1+(2.11*10**-4*P)\n",
      "Tc = 126;#Critical temperature in K\n",
      "Pc = 33.5;#Critical pressure in atm\n",
      "T = 373;#in K\n",
      "P = 100;#in atm\n",
      "\n",
      "#To Calculate the fugacity of N2 at 373K and 100 atm\n",
      "#(i)Umath.sing the Z relation given above\n",
      "#From equation 13.12 (page no 239)\n",
      "phi = math.e**(2.11*10**-4*(P-0));#fugacity coefficient\n",
      "f = phi*P;\n",
      "print \"i)The fugacity of N2 umath.sing the given Z relation is %f atm\"%(f);\n",
      "\n",
      "#(ii)Umath.sing the fugacity chart given in figure A.2.9\n",
      "Pr = P/Pc;#Reduced pressure in atm\n",
      "Tr = T/Tc;#Reduced temperature in K\n",
      "#From figure A.2.9,\n",
      "phi = 1.04\n",
      "f = phi*P;\n",
      "print \" ii)The fugacity of N2 umath.sing the fugacity chart is %f atm\"%(f);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "i)The fugacity of N2 umath.sing the given Z relation is 102.132418 atm\n",
        " ii)The fugacity of N2 umath.sing the fugacity chart is 104.000000 atm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.2  Page No : 241"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "P1 = 50*1.03*10**4;#Initial pressure in Kgf/sq m\n",
      "T = 373.0;#Temperature in K\n",
      "P2 = 1.03*10**4;#Final pressure in Kgf/sq m\n",
      "V = 0.001*18;#Volume in cubic meter\n",
      "R = 848.0;#gas consmath.tant in m Kgf/Kgmole K\n",
      "\n",
      "#To Calculate the fugacity of liquid water\n",
      "#From equation 13.13(page no 240)\n",
      "del_u = (V/(R*T))*(P2-P1);#del_u = ln(f2/f1); Change in chemical potential\n",
      "f1 = P2;#in Kgf/sq m\n",
      "f2 = f1*(math.e**del_u);\n",
      "print \"The fugacity of the liquid water at 50 atm is %4.2e Kgf/sq m\"%(f2);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The fugacity of the liquid water at 50 atm is 1.00e+04 Kgf/sq m\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.3  Page No : 242"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "\n",
      "#Given\n",
      "x1 = 0.1;#mole fraction of methane\n",
      "x2 = 0.9;#mole fraction of propane\n",
      "P = [28.1,31.6,35.1];#Pressure in Kgf/sq cm are\n",
      "K1 = [5.8,5.10,4.36];#Vapourisation consmath.tants of methane at the corresponding presssures\n",
      "K2 = [0.61,0.58,0.56];#Vapourisation consmath.tants of propane at the correspondig pressures\n",
      "\n",
      "#To Calculate the bubble point pressure of the solution\n",
      "#From equation 13.27 (page no 245)\n",
      "y1 = []\n",
      "y2 = []\n",
      "y = []\n",
      "for i in range(0,3):\n",
      "    y1.append(K1[i]*x1);#mole fraction of methane in the vapour phase\n",
      "    y2.append(K2[i]*x2);#mole fraction of propane in the vapour phase\n",
      "    y.append(y1[i]+y2[i]);#sum of the mole fraction in the vapour phase\n",
      "    \n",
      "\n",
      "plt.plot(P,y)\n",
      "plt.title(\"y vs pressure\")\n",
      "plt.xlabel(\"P\")\n",
      "plt.ylabel(\"y\")\n",
      "plt.show()\n",
      "P1 = numpy.interp(1,y,P)\n",
      "print \"The bubble point pressure of the solution is %f Kgf/sq cm\"%(P1);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEZCAYAAACJjGL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH5RJREFUeJzt3X2clXP+x/HXmWkqhUIRaYWkmYpGjCI6W9rKXcoPvzyI\nfqxtV2ndJITGvW6oLLsbi3XfYm3EDxt2fnKTlOl+ZlSKbkgSKtLNnN8fn2vMmemc00zNdb7XOef9\nfDzO45xzXefmPdN0Puf63l0gIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIuKjeq4DANmuA4iI\nuDQCeLHatgeAiTEeOxJ4odq2Sd4F4FJgGfAD8BlwYZz3LPTec4r32DnAMVH7VwDXA/OBn4AsoAvw\nAbABmAt0j3p8vPdtA/wf8B2wzns/gNZAufe6FYqAy6Je733gfuAb4HagPjAe+Bz4CvgL0DDOzyci\nklZaAJuAJt79esBaID/GY38FbAb29u5nA2uAAqAx8D1wlLfvICAvznsWAluBAd5rXIt9wFd8c18B\nfAK0BBp4198Afbz9p3n3D9jF+z4H3Ojdrg+c5N1uzc6F4j/A/3i3LwW2AVd6j2kITACmAk29n/8V\n4O44P5+ISNp5Hbjcu30msDDBY2cAF3u3ewFLvduNsW/7A4C9dvF+hdjRQYUQVnBO9u4vxz6sK4wE\nnqz2Gm8Ag4BGCd73CWAyVmiitWbXheLzavk2AUdEbeuKFTeRGsna9UNEAu0J4CLv9kXAUwke+yww\n0Lt9IfCMd3szcAEwBPvQfxU4OsHrrIq6HfHuHxK1bWXU7cOA87CCUHE5GTsa+jHB+16PfcjPworf\n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L2AUZgTSZb3ESrIl7ONlGP6cfOv+Nki5XzQ+Ag4HDvsgr7kvC1i4CeeL/PFlGP6Y/bQhEv\n41Ts8xLsy2t9YH3S0/mgG9YxOJfKYWd9sba1iuFfHwL5rgISP+NV2AioMuBuZ+kqdcSWd5+LDdkd\n4W3fH2vKC8rw2Hg5+2P9Uj9hAwhed5KuUrycS7B+qoq/hT87SVcpXs4XsQ+zuVgTmetv6fFyRvsM\n930U8XI+6d2fh30gH+QknYmXMQd4Cvt3n8POTZAiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIjWxA5sz\nsQB4HpvkJJLSUmlmtkgq+BGb9NkR2Iqt0imS0lQoRPzzHlWXxxBJSSoUIv6ohy3fMt91EBERCZbt\nVK7tNAkrGCIiIr/YuOuHiKQWNT2JiEhCKhQidSviOoCIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiI\niIiI+OD/AXPamuB7GdSzAAAAAElFTkSuQmCC\n",
       "text": [
        "<matplotlib.figure.Figure at 0x10643f210>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The bubble point pressure of the solution is 35.100000 Kgf/sq cm\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.4  Page No : 244"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "T = [80.6,79.0,77.3,61.4];#Various temperature in deg cel\n",
      "x1 = [0.0,15.0,29.0,100.0];#mole fraction of CHCl3 in liquid phase\n",
      "y1 = [0.0,20.0,40.0,100.0];#mole fraction of CHCl3 in vapour phase\n",
      "P1 = [1370,1310,1230,700];#Vapour pressure of CHCl3 in mm Hg\n",
      "P = 760.0;#Total pressure in mm Hg\n",
      "\n",
      "#To Calculate the equilibrium data i.e y/x and compare with the experimental values\n",
      "#From equation 13.27 (page no 245);K = y1/x1 = Pi/P\n",
      "print \"Temperature    Experimental   Calculated\";\n",
      "Ke_x = []\n",
      "K_c = []\n",
      "for i in range(0,4):\n",
      "    print \" %f\"%(T[i]),\n",
      "    if x1[i] == 0 :\n",
      "        print \"     Not defined\",\n",
      "        Ke_x.append(0)\n",
      "    else:\n",
      "        Ke_x.append(y1[i]/x1[i]);\n",
      "        print \"        %f\"%(Ke_x[i]),\n",
      "    K_c.append(P1[i]/P);\n",
      "    print \"      %f\"%(K_c[i])\n",
      "\n",
      "if Ke_x[i] == K_c[i]:\n",
      "    print ' The liquid solution is perfect';\n",
      "else:\n",
      "    print \" The liquid solution is imperfect\";\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Temperature    Experimental   Calculated\n",
        " 80.600000      Not defined       1.802632\n",
        " 79.000000         1.333333       1.723684\n",
        " 77.300000         1.379310       1.618421\n",
        " 61.400000         1.000000       0.921053\n",
        " The liquid solution is imperfect\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.6  Page No : 246"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "x1 = 0.1;#Mole fraction of dichloromethane (CCl2H2)\n",
      "x2 = 0.9;#Mole fraction of methyl acetate (C3H6O2)\n",
      "M1 = 85.0;#Molecular weight of CCl2H2\n",
      "M2 = 74.0;#Molecular weight of C3H602\n",
      "D1 = 1.3163;#Density of CCl2H2 in gm/cc\n",
      "D2 = 0.9279;#Density of C3H6O2 in gm/cc\n",
      "\n",
      "#To Calculate the volume of 10% dichloromethane solution\n",
      "V1 = M1/D1;#Specific volume of pure CCL2H2 in cc/gmole\n",
      "V2 = M2/D2;#Specific volume of C3H6O2 in cc/gmole\n",
      "#From equation 13.62(page no 256)& 13.78 (page no 257)\n",
      "V_e = x1*x2*(1.2672-0.771*x1);#excess volume in cc/gmole\n",
      "V = V1*x1+V2*x2+V_e;\n",
      "print \"The volume of 10 percent dichloromethane is %f cc/gmole\"%(V);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The volume of 10 percent dichloromethane is 78.339579 cc/gmole\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.7  Page No : 249"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "\n",
      "#Given\n",
      "x_T = 0.957;#mole fraction of Toluene\n",
      "x_D = 0.043;#mole fraction of 1,2-dichloroethane\n",
      "t = [90, 100, 110];#temperature in deg cel\n",
      "R = 1.98;#gas consmath.tant in Kcal/Kgmole K\n",
      "\n",
      "#To Calculate the vapour pressure of the solution, bubble point at 686 mm Hg and the vapour composition at equilibrium,\n",
      "#compare the experimental value of 91.2% toluene in vapour with the calculated value & calculate the free energy of mixing\n",
      "#(1)Calculation of vapour pressure\n",
      "print \"1Tempdeg cel    P_TmmHg          P_DmmHg           P_smmHg\";\n",
      "P_T = []\n",
      "P_D = []\n",
      "P_s = []\n",
      "for i in range(0,3):\n",
      "    P_T.append(10**(6.95464-(1344.8/(219.482+t[i]))));#Given as equation(a)(page no 260)\n",
      "    P_D.append(10**(7.03993-(1274.079/(223+t[i]))));#Given as equation(b)(page no 260)\n",
      "    P_s.append(x_T*P_T[i]+x_D*P_D[i]);#pressure of the solution in mm Hg\n",
      "    print '   %f'%(t[i]),\n",
      "    print '          %f'%(P_T[i]),\n",
      "    print '        %f'%(P_D[i]),\n",
      "    print '         %f'%(P_s[i])\n",
      "\n",
      "#(2)Calculation of bubble point and comparison of values\n",
      "plt.plot(t,P_s)\n",
      "plt.title(\"t vs P_s\")\n",
      "plt.xlabel(\"t\")\n",
      "plt.ylabel(\"P_s\")\n",
      "plt.show()\n",
      "T = numpy.interp(686,P_s,t)\n",
      "P = 686.0;#pressure of solution in mm Hg\n",
      "y_T_e = 0.912;#experimental value of mole fraction of toluene\n",
      "#From the graph we found that the temperature at P = 686 mm Hg is\n",
      "#t = 105.3;#in deg cel\n",
      "print '2)The bubble point is %f deg cel'%(T);\n",
      "#From equation (a)(page no 260)\n",
      "P_T = 10**(6.95464-(1344.8/(219.482+T)));#vapour pressure of Toluene in mmHg\n",
      "#From equation 13.27 (page no 245)\n",
      "y_T_c = (x_T*P_T)/P;\n",
      "y_D_c = 1-y_T_c;\n",
      "print '  The vapour composition of toluene is %f'%(y_T_c);\n",
      "print '  The vapour composition of 1,(2-dichloroethane is %f'%(y_D_c);\n",
      "e = ((y_T_e-y_T_c)/y_T_e)*100;\n",
      "print ' The percentage error is %f percent'%(e);\n",
      "\n",
      "#(3)Calculation of free energy\n",
      "del_F = R*(T+273)*((x_T*math.log(x_T))+(x_D*math.log(x_D)));\n",
      "print '3)The free energy of mixing is %f Kcal/Kgmole'%(del_F);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "1Tempdeg cel    P_TmmHg          P_DmmHg           P_smmHg\n",
        "   90.000000           406.737847         931.944531          429.321734\n",
        "   100.000000           556.321921         1245.698588          585.965118\n",
        "   110.000000           746.589152         1636.315096          784.847367\n"
       ]
      },
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEZCAYAAABmTgnDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XecE3X+x/EXKohyKOIp0hSkiKs05VDUkxwgYAOUEzi8\nhwiIhRO7J9hYO6jYlTsBFRVR9CcKIkiRIBZAYKUtXVCWo6l0FHbZ+f3xmXXDun2TmUzyfj4eeWQy\nmUk+xpDPfr5tQERERERERERERERERERERERERERERERERERERESkCOuBNh69zz5gN7AZeB2o5MH7\nikT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8SvzdjPdksRTLllWBo7GZ4LUo\neFKfFC6/z7O2+9wAYBEwCjXrlZQmmUZXYf++62JNUGHgAm/DSigl/m7Ge7JYAQzF2i0nY2XTwTzH\n5IwflqIp4mTnAAABnUlEQVQV9Hm+gv0jbIbNhxnmV4AJoKjvo76rJRP5ef4P++OmOdZs+g5Q2ae4\nElGh3814TxZgnTYtsKG327GSaguHTurb6k9ogRT5ee4AVgLbyP1HORI1lZRUQd/HjeRWbmBV8UYP\n4wqqgj7PA+Q2syzE5mE18Da0hFHi72YQksWJ7v3JWPv6O9h8jV7u/l7ARz7EFVSRn+cV2OdZPeL5\nK1AnYkkV9H2cAPQgd5JpA2Ce59EFT0Gf55+xgRkAp2Kf5/fehhZokf2SCfnd/AIb+vUd8Dd3X2GT\n+qRw+X2ebwKLsT6Lj1AfUGHGYs0hB7ClbHqjSaZlUZLP80qs3y0NWABc6nWwcS7vZ9kHGxywARty\nvBlrfs6h76aIiIiIiIiIiIiIiIiIiIiIiIiIiIiIxNKxwE1+ByEiIvGtDpr9LiIiRXgX2IfNMB7q\ncywiIhKnTkGVhSSoICwkKBIUuoCUJCwlCxERKZKShUj07EYX45EEpWQhEj0/A19h/Rbq4BYRERER\nERERERERERERERERERERERERERERERFJRv8P69Cq8Xr1R48AAAAASUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x1057dc4d0>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "2)The bubble point is 105.029855 deg cel\n",
        "  The vapour composition of toluene is 0.901898\n",
        "  The vapour composition of 1,(2-dichloroethane is 0.098102\n",
        " The percentage error is 1.107696 percent\n",
        "3)The free energy of mixing is -132.756668 Kcal/Kgmole\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.8  Page No : 252"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "#Consider the diagram shown in page no 263\n",
      "w1 = 100.0;#weight of LiBr entered as feed in the evaporator per hour in Kg\n",
      "x1 = 0.45;#weight  fraction of LiBr entered as feed\n",
      "x2 = 0.0;#weight fraction of steam in the LiBr soln\n",
      "x3 = 0.65;#weight fraction of LiBr formed as product\n",
      "H1 = -39.0;#Enthalpy of 45% solution at 25 deg cel in Kcal/Kg\n",
      "H3 = -4.15;#Enthalpy of 65% solution at 114.4 deg cel in Kcal/Kg\n",
      "H2 = 649.0;#Enthalpy of superheated steam at 100 mmHg and 114.4 deg cel in Kcal/Kg\n",
      "\n",
      "#To Calculate the heating load required for the process\n",
      "#According to material balance\n",
      "w3 = (w1*x1)/x3;#weight of LiBr solution formed after evaporation per hour in Kg\n",
      "w2 = w1-w3;# weight of steam formed in Kg/hr\n",
      "#According to energy balance\n",
      "Q = (w2*H2)+(w3*H3)-(w1*H1);\n",
      "print 'The heat that has to be supplied for this concentration process is %f Kcal/hr'%(Q);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The heat that has to be supplied for this concentration process is 23581.923077 Kcal/hr\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.12  Page No : 253"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "\n",
      "#Given\n",
      "x_A = [0.0, 0.0435, 0.0942, 0.1711, 0.2403, 0.3380, 0.5981];#mole fraction of acetic acid\n",
      "p_A = [0.0, 17.2, 30.5, 46.5, 57.8, 69.3, 95.7];#partial pressure of acetic acid in mmHg\n",
      "P_T1 = 202.0;#vapour pressure of toulene in mmHg\n",
      "P_T2_ex = 167.3;#experimental partial pressure in mmmHg\n",
      "\n",
      "#To Calculate the partial pressure of toulene in the solution and check with the experimental value\n",
      "#From the equation 13.95,\n",
      "#ln(P_T2/P_T1) = -intg(x_A/((1-x_A)*p_A))\n",
      "x = []\n",
      "for i in range(0,7):\n",
      "    if (p_A[i] != 0):\n",
      "        x.append((x_A[i]/((1-x_A[i])*p_A[i]))*10**4)\n",
      "    else:\n",
      "        x.append(0)\n",
      "\n",
      "\n",
      "plt.plot(x,p_A)\n",
      "plt.title(\" \")\n",
      "plt.xlabel(\"(x_A/((1-x_A)*p_A))*10**4\")\n",
      "plt.ylabel(\"p_A\")\n",
      "plt.show()\n",
      "      \n",
      "#Area of the graph drawn is\n",
      "A = -0.138;\n",
      "P_T2 = (math.e**A)*P_T1;\n",
      "e = ((P_T2-P_T2_ex)*100)/P_T2_ex;\n",
      "print 'The partial pressure of toulene is %f mmHg'%(P_T2);\n",
      "print ' This deviates %i percent from the reported value'%(e);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEQCAYAAACugzM1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH/NJREFUeJzt3X2clXP+x/FX0n3UxnajG6UkcptINzQiKoSKpsXWsotF\n2EU3rJXdnyX8JJLdxbYtfo1ulO50R4coSneiErpRbkZlE92Z6vz++FzjnJnmfs453+u6zvv5eMxj\nzrnmzLk+NTPncz7f7/f6fEFERERERERERERERERERERERERERERK6F9ANrAq7lgdYC6wDpgD1I77\n2lDgU2AtcFGKYhQREYfOBc4gb6J4FBjk3R4MPOLdPglYAVQCmgKfAYelJEoREXGqKXkTxVqgnne7\nvncfrJoYHPe4WcA5yQ5ORESK5uIdez1sOArvc27SOAbYEve4LUDDFMYlIiIFcD20E/U+ivq6iIg4\ndLiDc2ZjQ07fAA2Ab73jXwKN4x7XyDuWR/PmzaOff/55smMUEQmbz4EWZflGFxXFVKC/d7s/MCXu\neCZQGWgGHA8szv/Nn3/+OdFo1PcfDzzwgP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enPEWYz3/GwB/xRLQeGJ9iqJY88AzgFu88xWlJOfKtRzr\nWnsacDPW12eOF0dRCtrfpZF3vobYlqTHevcLOgYF728iIlKsesRexMHe7X6J7QZWlMrYi1UN7/5E\n4BLvdkPsnXRBz98Oe2HMrz/Fz1E0A37EXgCLUo+8u+59QN539TeRdy/i/HMU88nbjG0TcGSCzvUw\n8Pu4+wXNI8ChFcU0oGPc/XlYO/einif+2KXEKpcMVFGEmioKSYb4iejG2Dv+ehQ9uX0xllQ+wl7U\nziX2zrUbebfBzf88JZk0v4JYR9LcF8SW2KR3cTuQXY29yG7wPpqS951+BfJWMGM5dE4gv8IqntKe\nK//9BymZ4vYjKOh54o8VtL/Jf0p4bhFJcxWx4SawoaPF2IvKP4G7ivi+/yPvmHl1bLOdatgQTO6c\nRPzzgw09FbRPwACKrihqYePyLYDZQO8iHrsQq1xyNcVWEuV6EBv2Kcx8YpPFnbBVRok611hiczdF\n2YCtCMvVg9g2o+dgW2WWVfz+JiIiJTIXOAG4H3jcO1YTWOMdz686tlNczXzHJ2LvsJcV8vy51hAb\nsgLY6D3fD9hGLa0KOOcL2NwJ2LvpTzl0sxywF+rNBRxfSmxSOv8Ec37zsfH8Zdjkc9tCHleWc32I\nJb3C3O49509YxfDPuK+NwpLQSvIOO5VW/P4mIiIlMoDYbmrl1ZG8m9cU9PzDyFuNpNKRxLZtLcx8\nyvdCXNi5WqIXaBEJqMrYdqbJmgPLff7cuYlfEhtGSbXbgWuLeUyiEkX+cz2BDWWJJFVo9kiVwLiY\nQ/eRXk/RcwSpMgC7gCzeO+S9yC2I5xIRERERERERERERERERERERERFJI/8PWAkS6uYdzjkAAAAA\nSUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x10654c750>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The partial pressure of toulene is 175.961936 mmHg\n",
        " This deviates 5 percent from the reported value\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.13  Page No : 254"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "from numpy.linalg import solve\n",
      "\n",
      "#Given\n",
      "P = 760.0;#pressure at maximum boiling azeotrope of A and B in mmHg\n",
      "x_A = 0.6;#mole fraction of A in liquid phase\n",
      "x_B = 0.4;#mole fraction of B in liquid phase\n",
      "p_A = 600.0;#vapour pressure of A at 90 deg cel\n",
      "p_B = 300.0;#vapour pressure of B at 90 deg cel\n",
      "\n",
      "#To Check whether the activity coefficient of the solution can be represented by the Margules equation\n",
      "y_A = P/p_A;#Activity coefficient of A\n",
      "y_B = P/p_B;#Activity coefficient of B\n",
      "#From the Margules equation or equation (a) & (b)\n",
      "U = [[((x_B**2)-(2*(x_B**2)*x_A)), (2*(x_B**2)*x_A)], [(2*(x_A**2)*x_B), ((x_A**2)-(2*(x_A**2)*x_B))]];\n",
      "V = [math.log(y_A), math.log(y_B)];\n",
      "W = solve(U,V);\n",
      "#Now the value of consmath.tants A and B in equations(a)&(b) are given as\n",
      "\n",
      "A = W[0];\n",
      "B = W[1];\n",
      "#let us assume \n",
      "x_A = [0.0,0.2,0.4,0.6,0.8,1.0];\n",
      "x_B = [1.0,0.8,0.6,0.4,0.2,0.0];\n",
      "#C = lny_A; D = lny_B; E = ln(y_A/y_B)\n",
      "C = []\n",
      "D = []\n",
      "E = []\n",
      "for i in range(6):\n",
      "    C.append((x_B[i]**2)*(2*(B-A)*x_A[i]+A));\n",
      "    D.append((x_A[i]**2)*(2*(A-B)*x_B[i]+B));\n",
      "    E.append(C[i]-D[i]);\n",
      "    \n",
      "plt.plot(x_A,E)\n",
      "plt.title(\" \")\n",
      "plt.xlabel(\"x_A\")\n",
      "plt.ylabel(\"ln(y_A/y_B)\")\n",
      "plt.show()\n",
      "#Since the graph drawn is approximately symmetrical.Thus it satisfies the Redlich-Kister Test\n",
      "print 'The actvity coefficients of the system can be represented by Margules equation';\n",
      "#end\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEQCAYAAACwSgOGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG3ZJREFUeJzt3XeY1OW58PHvsoA0kWAjiUYi2LsI0hkEEdFIQI2KJYr1\noLzm1eSK5U0gJx6j8VhOwJKg8bUbCxoVwaBhQREpigUUC6ghMSCKDVEB2fPHM+usS9nZMvPM/Ob7\nua65mJ39OXP7sPzufe6ngSRJkiRJkiRJkiRJkiRJklTwWgCzgReBV4HfxQ1HkhRTq/SfTYHngN4R\nY5GkktUkdgDA6vSfzYFyYGXEWCSpZBVCQmhCKBktB6YRSkeSpBK2FaFklIochySVpKaxA6jmE2AS\ncBBQUfVip06dKhcvXhwrJkkqVouBznX5D2KXjLYB2qWftwQOBeZXv2Dx4sVUVlb6qKxkzJgx0WMo\nlIdtYVvYFpt/AJ3qekOO3UP4LnAbITE1Ae4AnooakSSVqNgJ4RXgwMgxSJKIXzJSHaRSqdghFAzb\nIsO2yLAtGqYsdgBZqEzXwyRJWSorK4M63uPtIUiSABOCJCmtKBKCFSNJyr2iSAijRsH69bGjkKRk\nK4qEsHAhnHoqrFsXOxJJSq6iSAhTpsDy5XD88bBmTexoJCmZiiIhtGoFjzwSegjDhsEXX8SOSJKS\npygSAsAWW8D998NWW8ERR8CqVbEjkqRkKZqEANCsGdxxB3TqBIMGwccfx45IkpKjqBICQHk5/OlP\n0K0b9O8PK1bEjkiSkqHoEgJAWRlce20oHfXrB++9FzsiSSp+sXc7rbeyMrjsMmjdGvr2hSefhI4d\nY0clScWraBNClYsvhjZtQk9h6lTYddfYEUlScSr6hAAwenToKaRS8MQTsM8+sSOSpOKTiIQAMHJk\nWK9w6KHw2GNw0EGxI5Kk4pK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Ga0sI51ZIkhLgFOD+9PMmhLJRaiPXLQZ2rfHa1cAvchaZJEmS\nJEk55bRTKXv7ALfXeO1LwhRTSZIkSZIkSZIkSZIkSZIS7n8B02y2CVc2t6IAAAAASUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x10654cdd0>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The actvity coefficients of the system can be represented by Margules equation\n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.14  Page No : 259"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "\n",
      "#Given\n",
      "P = 760.0#Total pressure of the mixture in mmHg\n",
      "T = [80, 90, 95, 100];#Temperature in deg celsius\n",
      "P1 = [87.4, 129.0, 162.0, 187.0];#vapour pressure of 1,1,2,2-tetrachloroethane in mmHg\n",
      "P2 = [356, 526, 648, 760];#Vapour pressure of water in mmHg\n",
      "\n",
      "#To Calculate the composition of the vapour evolved\n",
      "plt.plot(T,P1,\"green\",T,P2,\"red\")\n",
      "plt.title(\" \")\n",
      "plt.xlabel(\"Temp in deg cel\")\n",
      "plt.ylabel(\"Vapour pressure in mmHg\")\n",
      "plt.show()\n",
      "#From the graph we conclude that at 93.8 deg cel\n",
      "P1 = 155.0;#in mm Hg\n",
      "P2 = 605.0;#in mm Hg\n",
      "y_1 = P1/P;\n",
      "y_2 = P2/P;\n",
      "print 'Mole fraction of 1,(1,(2,(2-tetrachloroethane in vapour is %f'%(y_1);\n",
      "print ' Mole fraction of water in vapour is %f'%(y_2);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEPCAYAAABcA4N7AAAABHNCSVQICAgIfAhkiAAAAAlw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t8i8XfxXqwTuwq4OKMlFREREREREREREREREREREREREREREZFkfYHItNOf\nE5mGehk24aFXfg5c2Ir3B4Gz0lOUpMzCJiwUSYmX/6lEvLIDm1IZbBrqfcCvM/C501r5fr/mftKc\nU9Iq2TyFh4hbBdgv9SDwHrCQyNQkQSxE3gU+BEYBz2FXq/7Cec0g7ArVP2HTmvwZm+ok1iwiv8w3\nYIvqLMWuHB4W5/WFwDPOPufF7HMcNvfWUmAu0M3ZfolTzveA32JT1sRqD/xf7Ar7lcDtzvbmjgFo\nqm4RacOmAT8C3gCOc7Zdg01JDbAEuM+5fwc2zUEpNn3JRqAYC4pGbNJJnPf+R5zPepLIGgmfAv/L\nuf994LE4r/8hNpEdwKnY/P9nOuV8lUhw3A38DFu05zPgBGd7eO6oWN/HwiX8Q68Ym97mTaxZDpoe\ngydR05O0gpqeJB90xlZIW+w8bo8FQlj4ZPu+cwvP0b8em0VzLxYa/3K2/wkLlZamtJ7n/F1GJECi\nnQc85NxfjdU8wCZnHIGd2MFC602sVrIe+LezvRL4bpz9XohND9/oPN6F/ftPIbLGSOwxEEmZgkLy\nQQE2mdxXmnn+sPO3Mep++HH4/0B0G34B7tr0w/tqoPn/S7FNPuHHi4Fvxjx3WgvvbWm/iY6BSMrU\nRyH54DDQG/ulDtYMMyLJfRwf9f5vYktLttZrRMJgJPAlLIDeAr6KLSYF1j9xMrb+wolEmp6uIX5g\nLQa+h9UawJqeqmj9MRCJS0Eh+aAB+Aa2QtoKbKjsOXFel2j0z0dYn8MaoCfWtONWc/t9BFtJcA02\ntPY9Z/t2YArWtLSSSLNTLXAb1hH9HtYktjfOfh/H+jJWYf/e67D+j0THQKOeRERaYRDZsyBOt6j7\n/w3c6VdBRMJUoxAx2fKL+ztYbeADoAfwqL/FEREREREREREREREREREREREREREREckr/x/T5jgr\n3MaCOwAAAABJRU5ErkJggg==\n",
       "text": [
        "<matplotlib.figure.Figure at 0x106604950>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Mole fraction of 1,(1,(2,(2-tetrachloroethane in vapour is 0.203947\n",
        " Mole fraction of water in vapour is 0.796053\n"
       ]
      }
     ],
     "prompt_number": 17
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.15  Page No : 263"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%matplotlib inline\n",
      "import math\n",
      "import matplotlib.pyplot as plt\n",
      "import numpy\n",
      "\n",
      "#Given\n",
      "T = [146.2, 142.3, 126.1, 115.9, 95.0, 98.0, 100.0];#Temperature in deg cel\n",
      "P1 = [760.0, 685.0, 450.3, 313.0];#Vapour pressure of 1,1,2,2-tetrachloroethane at the coressponding temperature in mm Hg\n",
      "P2_5 = 648.0;#Vapour pressure of water at 95 deg cel in mm Hg\n",
      "P2_6 = 711.0;#Vapour pressure of water at 98 deg cel in mm Hg\n",
      "P = 760.0;#Total pressure of mixture in mm Hg\n",
      "\n",
      "x1 = [0, 0, 0, 0, 0, 0, 0];\n",
      "#To plot a graph between temperature and vapour phase composition\n",
      "for i in range(0,4):\n",
      "    x1[i] = P1[i]/P;#mole fraction of 1,1,2,2-tetrachloroethane\n",
      "x2_5 = P2_5/P;#mole fraction of water at 95 deg cel\n",
      "x2_6 = P2_6/P;#mole fraction of water at 98 deg cel\n",
      "x1[4] = 1-x2_5;\n",
      "x1[5] = 1-x2_6;\n",
      "\n",
      "plt.plot(x1,T)\n",
      "plt.title(\"\")\n",
      "plt.xlabel(\"mole fraction of 1,1,2,2-tetrachloroethane\")\n",
      "plt.ylabel(\"Temperature in deg cel\")\n",
      "plt.show()\n",
      "print 'The required graph has been ploted in the graphic window';\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIAB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5ZljXneyXsW1wR8dkWtv0cVmr4CGs0zYvx/rFEq/8Oxhv+\n++6h7L/X8NdJZl32cKw65NkYx0Sbkr0v0BuL9fIoz4nncwpP7o9g39C7YBfLyRGvGU3wXMc6z6U9\nd3sp+4PH74f9zqWtgRz5WUWL5W6saq07drHfGeX4yOd8h7s2HSmFGqkzzzSs1wxY8Xs9ofr+oM/Y\ne3bP012+dvgFogahb2Q9wvZ/Tqi6AkJVTMVEv/BMw0oc+2F17m2wb4Rukswm7MITrKfujtU5R8bq\nVhfg/yL2RXudSUBdZ/tR7FzcHeO1jsa+Fd+AzaQZ9AJ20WyGXfy2sHdpr7TPKfK4SLE+mz6Eqp9q\n4d4MoJuzfT3WHhCptM9jC1b6vcrZX4lQT64thJYDjaUGsMbZ/gOxG8QDWMI+nNA0+FXIzOnOPaUE\nkV4iv2kFomznYY1z87EL1I1hjweP6Yf1UJqPfcu6pRzvl4dVGXyDJaHgY49iF55CQqt4gX3LXkCo\nkTp4/AeEGrQnAfdhVU3h8ZYWD87vN9h5/qnAX8OOLa0U8SQ2HfKBzu2fnf3HE1rf+0jnsbuBP2Hd\nYqtj/zPHA//FFlwZiFUDzcXae3pGea0/Y+fkRWJPyT4OSyzBRurSPqfgccFG6uDvG/77/c15vHLY\nY684v8cC7LO5LkoM4ectfPsOrO1hPpYg7ox4TlBpn8f1WAP+t1iVaEdn/1vYZz4Ha6SOFg9YMr3R\nef6J7P2lJ9rnXIwlpCec58wjsV2DRSTLvE6oUbM0TSm766vb1xIRERERERERERERERERERERERER\nERERERGRBPh/OQohdiTCkTUAAAAASUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x1064ce750>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The required graph has been ploted in the graphic window\n"
       ]
      }
     ],
     "prompt_number": 18
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.16  Page No : 266"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "#B = -(1.203*10**10)*(T**2.7); second virial coefficient, T is in K\n",
      "#math.log P = 6.95464-(1344.8/(219.482+t))...(a);Vapour pressure of toulene\n",
      "t = 107.2;#Temperature in deg cel\n",
      "T = t+273.16;#in K\n",
      "H_ex = 7964.0;#experimental value of heat of vapourisation in Kcal/Kgmole\n",
      "d = 800.0;#density of liquid toulene in Kg/cubic meter\n",
      "R = 1.98;#gas consmath.tant in Kcal/Kgmole K\n",
      "M = 92.14;#molecular weight of toulene\n",
      "\n",
      "#To Calculate the heat of vapourization of toulene by umath.sing ideal gas law, second virial coefficient but neglecting vl and including vl\n",
      "#From equation (a), let K = dmath.logP/dT\n",
      "K = 1344.8/(219.482+t)**2;\n",
      "#(i)Umath.sing ideal gas behaviour\n",
      "#From equation 13.112(page no 286)\n",
      "H_c = (2.303*R*(T**2))*K;\n",
      "print 'i)The heat of vapourization  umath.sing ideal gas behaviour is %f Kcal/Kgmole'%(H_c);\n",
      "D = ((H_c-H_ex)/H_c)*100;\n",
      "print '    The deviation is %f percent'%(D);\n",
      "\n",
      "#(ii)Umath.sing second virial coeff but neglecting vl\n",
      "#From equation(a)\n",
      "P = 10**(6.95464-1344.8/(219.482+t));#in mm Hg\n",
      "P1 = P*1.033*10**4/760;#in Kgf/sq m\n",
      "B = -((1.203*10**10)/(T**2.7))*10**-3;#in cubic meter/Kgmole\n",
      "#From equation 13.111 (page no 286) neglecting vl,\n",
      "l = (R*T)+((B*P1)/427);#in Kcal/Kgmole\n",
      "H_c = K*2.303*T*l;\n",
      "print 'ii)The heat of vapourisation umath.sing second virial coefficient but neglecting vl is %f Kcal/Kgmole'%(H_c);\n",
      "D = ((H_c-H_ex)/H_c)*100;\n",
      "print '    The deviation in this case is %f percent'%(D);\n",
      "\n",
      "#(iii)Umath.sing second virial coeff including vl\n",
      "vl = M/d;#Liquid specific volume in cubic meter/Kgmole\n",
      "n = P1*vl/427;#in Kcal/Kgmole\n",
      "H_c = K*2.303*T*(l-n);\n",
      "print 'iii)The heat of vapourisation umath.sing second virial coefficient including vl is %f Kcal/Kgmole'%(H_c);\n",
      "D = ((H_c-H_ex)/H_c)*100;\n",
      "print '     The deviation in this case is %f'%(D);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "i)The heat of vapourization  umath.sing ideal gas behaviour is 8312.967730 Kcal/Kgmole\n",
        "    The deviation is 4.197872 percent\n",
        "ii)The heat of vapourisation umath.sing second virial coefficient but neglecting vl is 7998.487742 Kcal/Kgmole\n",
        "    The deviation in this case is 0.431178 percent\n",
        "iii)The heat of vapourisation umath.sing second virial coefficient including vl is 7970.612948 Kcal/Kgmole\n",
        "     The deviation in this case is 0.082967\n"
       ]
      }
     ],
     "prompt_number": 19
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.17  Page No : 269"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "H_ex = 539.0;#Heat of vapoization of water in Kcal/Kg\n",
      "Tc = 647.0;#Critical temperature in K\n",
      "Pc = 218.0;#Critical pressure in atm\n",
      "Tb = 373.0;#Boiling point of water in K\n",
      "t = 100.0;#temperature in deg cel\n",
      "M = 18.0;#Molecular weight of water\n",
      "P = 1.0;#pressure at boiling point in atm\n",
      "P1 = 1.033*10**4;#pressure in Kgf/sq m\n",
      "\n",
      "#To Calculate the heat of vapourisation of water by Vishwanath and Kuloor method and by Riedel's method and compare with the experimental value\n",
      "#(i) Umath.sing Vishwanath and Kuloor method\n",
      "H_c = (4.7*Tc*((1-(P/Pc))**0.69)*math.log(P/Pc))/((1-(Tc/Tb))*18);\n",
      "print 'i)The heat of vapourisation of water umath.sing Vishwanath and Kuloor method is %f Kcal/Kg'%(H_c);\n",
      "D = (H_c-H_ex)*100/H_c;\n",
      "print '    The deviation occurs umath.sing this method is %f percent'%(D);\n",
      "\n",
      "#(ii)Umath.sing Riedel's method\n",
      "H_c = (Tb*2.17*(math.log(218)-1))/((0.93-(Tb/Tc))*18);\n",
      "print 'ii)The heat of vapourisation of water umath.sing Riedel method is %f Kcal/Kg'%(H_c);\n",
      "D = (H_c-H_ex)*100/H_c;\n",
      "print '    The deviation occurs umath.sing this method is %f percent'%(D);\n",
      "\n",
      "#(iii)By umath.sing given vapour equation; math.logP = 8.2157-(2218.8537/(273.16+t)), t is in deg cel\n",
      "#From steam table,\n",
      "Vv = 1.673;#in cubic meter/Kg\n",
      "Vl = 0.001;#in cubic meter/Kg\n",
      "H_c = (2218.8/(273.16+t)**2)*(2.3*Tb*P1*(Vv-Vl)/427);\n",
      "print 'iii)The heat of vapourisation umath.sing the given vapour equation is %f Kcal/Kg'%(H_c);\n",
      "D = (H_c-H_ex)*100/H_c;\n",
      "print '    The deviation occurs umath.sing this method is %f percent'%(D);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "i)The heat of vapourisation of water umath.sing Vishwanath and Kuloor method is 1234.397750 Kcal/Kg\n",
        "    The deviation occurs umath.sing this method is 56.334982 percent\n",
        "ii)The heat of vapourisation of water umath.sing Riedel method is 557.743828 Kcal/Kg\n",
        "    The deviation occurs umath.sing this method is 3.360652 percent\n",
        "iii)The heat of vapourisation umath.sing the given vapour equation is 552.934102 Kcal/Kg\n",
        "    The deviation occurs umath.sing this method is 2.520029 percent\n"
       ]
      }
     ],
     "prompt_number": 20
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.18  Page No : 270"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "T1 = 273-87.0;#temp in K\n",
      "T2 = 273.0;#temp in K\n",
      "H1 = 115.0;#Latent heat of saturated ethane at 1 atm and -87 deg cel in Kcal/Kg\n",
      "H2_ex = 72.44;#Experimental value of latent heat at 0 deg cel in Kcal/Kg\n",
      "Tc = 306.0;#Critical temperature in K\n",
      "M = 30.0;#Molecular weight of ethane\n",
      "\n",
      "#To Calculate the latent heat of saturated ethane at 0 deg cel\n",
      "Tr1 = T1/Tc;#reduced temp in K\n",
      "Tr2 = T2/Tc;#reduced temp in K\n",
      "#(i)Umath.sing Waton's method:\n",
      "H2_c = H1*((1-Tr2)/(1-Tr1))**0.38;\n",
      "print 'i)The latent heat of saturated ethane at 0 deg cel umath.sing Waton method is %f Kcal/Kg'%(H2_c);\n",
      "D = (H2_ex-H2_c)*100/H2_ex;\n",
      "print '   The deviation occurs umath.sing this method is %f percent'%(D);\n",
      "\n",
      "#(ii)Umath.sing Vishwanath and Kuloor method\n",
      "#From equation 13.117 (page no 289)\n",
      "n = (0.00133*(H1*M/T1)+0.8794)**(1/0.1);\n",
      "H2_c = H1*((1-Tr2)/(1-Tr1))**n;\n",
      "print 'ii)The latent heat of saturated ethane at 0 deg cel umath.sing Vishwanath and Kuloor method is %f Kcal/Kg'%(H2_c);\n",
      "D = (H2_ex-H2_c)*100/H2_ex;\n",
      "print '   The deviation occurs umath.sing this method is %f percent'%(D);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "i)The latent heat of saturated ethane at 0 deg cel umath.sing Waton method is 70.411608 Kcal/Kg\n",
        "   The deviation occurs umath.sing this method is 2.800099 percent\n",
        "ii)The latent heat of saturated ethane at 0 deg cel umath.sing Vishwanath and Kuloor method is 71.809846 Kcal/Kg\n",
        "   The deviation occurs umath.sing this method is 0.869898 percent\n"
       ]
      }
     ],
     "prompt_number": 21
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.19  Page No : 272"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "#Given\n",
      "H_s_ex = 32.7;#experimental value of latent heat of the solution in KJ/mole\n",
      "x1 = 0.536;#mole percent of toulene in the solution\n",
      "x2 = 1-0.536;#mole percent of 1,1,1-trichloroethane in the solution\n",
      "H1 = 33.34;#Latent heat of toulene in KJ/gmole\n",
      "H2 = 29.72;#Latent heat of 1,1,1-trichloroethane in KJ/gmole\n",
      "He = 0.0;#excess enthalpy is neglected\n",
      "Cp1 = 39.55;#Specific heat of toulene in cal/gmole deg cel\n",
      "Cp2 = 24.62;#Specific heat of 1,1,1-trichloroethane in cal/gmole deg cel\n",
      "T_D = 100.0;#dew point temperature in deg cel\n",
      "T_B = 92.6;#bubble point temperature in deg cel\n",
      "\n",
      "#To calculate the latent heat of the solution and compare it with the one which calculated from the given vapour pressure equation\n",
      "#(i)Calculation of latent heat of the solution\n",
      "#From equation 13.118 (page no 291)\n",
      "H_s = H1*x1+H2*x2+He+(Cp1*x1+Cp2*x2)*10**-3*4.17*(T_D-T_B);\n",
      "print 'i)The latent heat of the solution is %f KJ/gmole'%(H_s);\n",
      "D = ((H_s_ex-H_s)*100)/H_s_ex;\n",
      "print '    The deviation occurs using this method is %f percent'%(D);\n",
      "\n",
      "#(ii)Calculation of latent heat from the vapour pressure equation\n",
      "#From equation (a) (page no 291)\n",
      "K = 1657.599/((273.16+5)**2);\n",
      "H_s = (K*2.303*8.314*(273.16+5)**2)*10**-3;\n",
      "print 'ii)The latent heat of the solution is %f KJ/gmole'%(H_s);\n",
      "D = ((H_s_ex-H_s)*100)/H_s_ex;\n",
      "print '    The deviation occurs using this method is %f percent'%(D);\n",
      "#end\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "i)The latent heat of the solution is 32.666984 KJ/gmole\n",
        "    The deviation occurs using this method is 0.100965 percent\n",
        "ii)The latent heat of the solution is 31.738283 KJ/gmole\n",
        "    The deviation occurs using this method is 2.941029 percent\n"
       ]
      }
     ],
     "prompt_number": 23
    }
   ],
   "metadata": {}
  }
 ]
}