summaryrefslogtreecommitdiff
path: root/599/CH2/EX2.20/example2_20.sce
blob: b68b30242fab4728b2cffa236564de1f371f7e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

clear;
clc;
printf("\t Example 2.20\n");
                      //this is the case of equimolar counter diffusion as the latent heat of vaporisation are very close to each other

T=(360);                            //temperature  in kelvin
pt=372.4/760;                       //total pressure in atm
R=82.06;                           //universal gas constant
Dab=0.0506;                        //diffusion coefficient in cm^2/s 
z=0.254;                          //gas layer thickness in cm
vp=368/760;                      //vapour pressure of toluene in atm
xtol=.3;                        //mole fractoin of toluene in atm
pb1=xtol*vp;                   //partial pressure of toluene
//since pb1 is .045263 bt in book it is rounded to 0.145
pb2=xtol*pt;                  //parial pressure of toluene in vapour phase
Na=Dab*(pb1-pb2)/(z*R*T);    //diffusion flux 
printf("\n the diffusion flux of a mixture of benzene and toluene %f*10^-8 gmol/cm^2*s\n",Na/10^-8);
printf("\nthe negative sign indicates that the toluene is getting transferred from gas phase to liquid phase(hence the transfer of benzene is from liquid to gas phase)")
//end