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 --- 32/CH7/EX7.20/7_20.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 32/CH7/EX7.20/7_20.sce (limited to '32/CH7/EX7.20/7_20.sce') 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 -- cgit