summaryrefslogtreecommitdiff
path: root/599/CH5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /599/CH5
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '599/CH5')
-rwxr-xr-x599/CH5/EX5.5/example5_5.sce65
1 files changed, 33 insertions, 32 deletions
diff --git a/599/CH5/EX5.5/example5_5.sce b/599/CH5/EX5.5/example5_5.sce
index a018ee637..d9c962270 100755
--- a/599/CH5/EX5.5/example5_5.sce
+++ b/599/CH5/EX5.5/example5_5.sce
@@ -1,33 +1,34 @@
-
-clear;
-clc;
-printf("\t Example 5.5\n");
-
-//part(i)
-y_bar=.0183; //kg water vapour/kg dry air
-printf("\n we get humidity as(from chart) :%f kg of water/kg dry air",y_bar);
-printf("\n we get saturation humidity as(from chart) :%d percent",67);
-Ma=18; //molecular weight
-Mb=28.84; //molecular weight
-Tg=30; //temperature of mixture
-rh=(pa/pa2)*100; //relative humidity in pecentage
-pt=1.013*10^5; //total pressure in pascal
-VH=8315*[(1/Mb)+(y_bar/Ma)]*[(Tg+273)/pt]; //humid volume in m^3mixture/kg of dry air
-printf("\n we get humid volume as \t:%f m^3/kg dry air",VH);
-
-//part(ii)
-Ca=1005;
-Cb=1884;
-Cs=Ca+Cb*y_bar; //humid heat in j/kg dry air degree celcius
-printf("\n we get humid heat as \t\t :%f j/kg dry air degree celcius ",Cs);
-
-//part(iii)
-d=2502300; //latent heat in j/kg
-H=Cs*(Tg-0)+y_bar*d; //enthalpy for refrence temperature of 0 degree
-printf("\n we get Enthalpy H as \t\t:%f j/kg dry air",H);
-
-//part(iv)
-dewpoint=23.5; //dew point temperature in degree celcius
-printf("\n the dew point temperature \t :%f degree celcius",dewpoint);
-
+clear;
+clc;
+printf("\t Example 5.5\n");
+
+//part(i)
+pa = 13.3
+pa2 = 20.6
+y_bar=.0183; //kg water vapour/kg dry air
+printf("\n we get humidity as(from chart) :%f kg of water/kg dry air",y_bar);
+printf("\n we get saturation humidity as(from chart) :%d percent",67);
+Ma=18; //molecular weight
+Mb=28.84; //molecular weight
+Tg=30; //temperature of mixture
+rh=(pa/pa2)*100; //relative humidity in pecentage
+pt=1.013*10^5; //total pressure in pascal
+VH=8315*[(1/Mb)+(y_bar/Ma)]*[(Tg+273)/pt]; //humid volume in m^3mixture/kg of dry air
+printf("\n we get humid volume as \t:%f m^3/kg dry air",VH);
+
+//part(ii)
+Ca=1005;
+Cb=1884;
+Cs=Ca+Cb*y_bar; //humid heat in j/kg dry air degree celcius
+printf("\n we get humid heat as \t\t :%f j/kg dry air degree celcius ",Cs);
+
+//part(iii)
+d=2502300; //latent heat in j/kg
+H=Cs*(Tg-0)+y_bar*d; //enthalpy for refrence temperature of 0 degree
+printf("\n we get Enthalpy H as \t\t:%f j/kg dry air",H);
+
+//part(iv)
+dewpoint=23.5; //dew point temperature in degree celcius
+printf("\n the dew point temperature \t :%f degree celcius",dewpoint);
+
//end \ No newline at end of file