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 /32/CH7/EX7.20 | |
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 '32/CH7/EX7.20')
-rwxr-xr-x | 32/CH7/EX7.20/7_20.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/32/CH7/EX7.20/7_20.sce b/32/CH7/EX7.20/7_20.sce new file mode 100755 index 000000000..bcab9843b --- /dev/null +++ b/32/CH7/EX7.20/7_20.sce @@ -0,0 +1,25 @@ +//pathname=get_absolute_file_path('7.20.sce')
+//filename=pathname+filesep()+'7.20-data.sci'
+//exec(filename)
+//From steam tables:
+//Saturated vapor pressure:
+p5=260.96 //kPa
+p15=182.60 //kPa
+vg10=0.07665 // m^3/kg
+vf10=0.00070 //m^3/kg
+R=0.06876 //kJ/kg.K
+hfg10=156.3 //kJ/kg
+T=-5+273
+T1=-15+273
+T2=-5+273
+//By Clapeyron equation:
+//Value of hfg:
+hfg=T*(vg10-vf10)*(p5-p15)/(15-5)
+//By Clapeyron-Clausius equation:
+hfg1=log(p5/p15)*R*(T1*T2)/((T2-T1))
+//Deviation:
+d=(hfg1-hfg)/hfg*100
+printf("\nRESULT")
+printf("\nhfg by Clapeyron equation = %f kJ/kg",hfg)
+printf("\nhfg by Clapeyron-Clausius equation = %f kJ/kg",hfg1)
+printf("\nPercentage deviation in hfg value by Clapeyron-Clausius equation compared to the value from Clapeyron equation = %f percent",d)
\ No newline at end of file |