From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 581/CH11/EX11.5/Example11_5.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 581/CH11/EX11.5/Example11_5.sce (limited to '581/CH11/EX11.5/Example11_5.sce') diff --git a/581/CH11/EX11.5/Example11_5.sce b/581/CH11/EX11.5/Example11_5.sce new file mode 100755 index 000000000..db4b22fa6 --- /dev/null +++ b/581/CH11/EX11.5/Example11_5.sce @@ -0,0 +1,19 @@ + +clear; +clc; + +printf("\t Example 11.5\n"); +Psat = [0.6113 1.2276 2.3385 4.2461 7.3837 12.35 19.941 31.188 47.39 70.139 101.325]; +T = [0.01 10 20 30 40 50 60 70 80 90 100]; +i=1; +while i<12 + xw(i)=Psat(i)/101.325; //mole fraction of water + printf("\n %.4f",xw(i)); + mw(i)=(xw(i)*18.02)/(xw(i)*18.02+(1-xw(i))*28.96);//mass fraction of water + i = i+1; +end +plot(T,mw); +xtitle("Mass fraction of water vapour in air above liquid water surface as a function of surface temperature(1 atm total pressure)","Temperature(degree celsius)","Mass fraction of water vapor"); + + + -- cgit