diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1442/CH17 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1442/CH17')
-rwxr-xr-x | 1442/CH17/EX17.1/17_1.sce | 21 | ||||
-rwxr-xr-x | 1442/CH17/EX17.2/17_2.sce | 39 | ||||
-rwxr-xr-x | 1442/CH17/EX17.3/17_3.sce | 11 | ||||
-rwxr-xr-x | 1442/CH17/EX17.4/17_4.sce | 14 | ||||
-rwxr-xr-x | 1442/CH17/EX17.5/17_5.sce | 21 | ||||
-rwxr-xr-x | 1442/CH17/EX17.6/17_6.sce | 17 |
6 files changed, 123 insertions, 0 deletions
diff --git a/1442/CH17/EX17.1/17_1.sce b/1442/CH17/EX17.1/17_1.sce new file mode 100755 index 000000000..b3b8442c5 --- /dev/null +++ b/1442/CH17/EX17.1/17_1.sce @@ -0,0 +1,21 @@ +clc
+//initialisation of variables
+Pa= 40 //kPa
+Pb= 50 //kPa
+na= 2 //moles
+nb= 6 //moles
+//CALCULATIONS
+a= Pb/Pa
+xa= na/(na+nb)
+xb= 1-xa
+p= xa*Pa+xb*Pb
+y= xa*Pa/p
+ya= 1-y
+Xa= a*xa/(1+(a-1)*xa)
+Xb= 1-Xa
+//RESULTS
+printf (' Total pressure= %.1f kPa',p)
+printf (' \n composition of vapour phase= %.4f ',y)
+printf (' \n composition of vapour phase= %.4f ',ya)
+printf (' \n composition of last drop of liquid= %.4f ',Xa)
+printf (' \n composition of last drop of liquid= %.4f ',Xb)
diff --git a/1442/CH17/EX17.2/17_2.sce b/1442/CH17/EX17.2/17_2.sce new file mode 100755 index 000000000..da2e3c829 --- /dev/null +++ b/1442/CH17/EX17.2/17_2.sce @@ -0,0 +1,39 @@ +clc
+//initialisation of variables
+T= 290 //K
+xa= 0.4
+xb= 0.6
+P= 600 //kPa
+V= 60 //L
+R= 8.314 //J/mol K
+Mp= 44 //kg/kmol
+Mb= 58.12 //kg/kmol
+vp= 0.00171 //m^3/kg
+vb= 0.00166 //m^3/kg
+na= 0.1 //kmol
+nb= 0.15 //kmol
+V1= 0.04000 //m^3
+xa= 0.4
+np= 2
+Vc= 0.1 //m^3
+//CALCULATIONS
+Pasat= %e^(14.435-(2255/T))
+Pbsat= %e^(14.795-(2770/T))
+P1= xa*Pasat+xb*Pbsat
+Na1= P*V/(100*R*T)
+Vp= vp*Mp
+Vb= vb*Mb
+V= na*Vp+nb*Vb
+Vv= V1-V
+nv= P1*Vv/(R*T)
+ya= xa*Pasat/P
+yb=1-ya
+Na= na+ya*nv
+Nb= nb+yb*nv
+//RESULTS
+printf (' initial pressure= %.2f kPa',P1)
+printf (' \n moles of propane= %.5f kmol',Na1)
+printf (' \n initial mole of propane= %.5f kmol',Na)
+printf (' \n initial mole of butane= %.5f kmol',Nb)
+printf (' \n numbar of phases= %.f ',np)
+printf (' \n volume in final state= %.1f m^3',Vc)
diff --git a/1442/CH17/EX17.3/17_3.sce b/1442/CH17/EX17.3/17_3.sce new file mode 100755 index 000000000..c37af4af7 --- /dev/null +++ b/1442/CH17/EX17.3/17_3.sce @@ -0,0 +1,11 @@ +clc
+//initialisation of variables
+p0= 10 //Mpa
+R= 8.314 //J/mol K
+T= 30 //C
+va= 0.02 //m^3/kmol
+xa= 0.98
+//CALCULATIONS
+p= p0+(R*(273.15+T)*log(xa)/(va*1000))
+//RESULTS
+printf (' Pressure of the phase of pure A= %.2f Mpa',p)
diff --git a/1442/CH17/EX17.4/17_4.sce b/1442/CH17/EX17.4/17_4.sce new file mode 100755 index 000000000..b75c82c01 --- /dev/null +++ b/1442/CH17/EX17.4/17_4.sce @@ -0,0 +1,14 @@ +clc
+//initialisation of variables
+hfg= 2257.0 //kJ/kg
+Tb= 100 //C
+R= 8.314 //J/mol K
+m2= 10 //gms
+M2= 58.5 //gms
+m1= 90 //gms
+M1= 18 //gms
+//CALCULATIONS
+x2= (m2/M2)/((m2/M2)+(m1/M1))
+dT= R*(273.15+Tb)^2*x2/(M1*hfg)
+//RESULTS
+printf (' Boiling point elevation= %.3f C',dT)
diff --git a/1442/CH17/EX17.5/17_5.sce b/1442/CH17/EX17.5/17_5.sce new file mode 100755 index 000000000..53e2996df --- /dev/null +++ b/1442/CH17/EX17.5/17_5.sce @@ -0,0 +1,21 @@ +clc
+//initialisation of variables
+M1= 18.02 //gms
+m1= 0.965 //gms
+m2= 0.035 //gms
+M2= 58.5 //gms
+R= 8.314 //J/mol K
+M= 18.02 //kg
+T= 20 //C
+vf= 0.001002 //m^3
+x21= 0.021856 //m^3
+//CALCULATIONS
+n1= m1/M1
+n2= m2/M2
+x1= n1/(n1+n2)
+x2= n2/(n2+n1)
+P= R*(273.15+T)*x2/(M*vf)
+P1= R*(273.15+T)*x21/(M*vf)
+//RESULTS
+printf (' Osmotic pressure= %.1f kpa',P)
+printf (' \n Osmotic pressure= %.1f kpa',P1)
diff --git a/1442/CH17/EX17.6/17_6.sce b/1442/CH17/EX17.6/17_6.sce new file mode 100755 index 000000000..4efeb002a --- /dev/null +++ b/1442/CH17/EX17.6/17_6.sce @@ -0,0 +1,17 @@ +clc
+//initialisation of variables
+W= 0
+Q= 0
+R= 8.314 //J/mol K
+T0= 300 //K
+x= 5/13
+n1= 0.5 //kmol/s
+n2= 0.8 //kmol/s
+//CALCULATIONS
+W1= (n1+n2)*R*T0*(x*log(1/x)+(1-x)*log(1/(1-x)))
+I= W1
+//RESULTS
+printf (' useful work of the process= %.f kW',W)
+printf (' \n heat interaction= %.f kW',Q)
+printf (' \n maximum work= %.1f kW',W1)
+printf (' \n irreversibility= %.1f kW',I)
|