summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.19/1_19.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH1/EX1.19/1_19.sce
downloadScilab-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/CH1/EX1.19/1_19.sce')
-rwxr-xr-x32/CH1/EX1.19/1_19.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/32/CH1/EX1.19/1_19.sce b/32/CH1/EX1.19/1_19.sce
new file mode 100755
index 000000000..df2bc6a61
--- /dev/null
+++ b/32/CH1/EX1.19/1_19.sce
@@ -0,0 +1,28 @@
+//pathname=get_absolute_file_path('1.19.sce')
+//filename=pathname+filesep()+'1.19-data.sci'
+//exec(filename)
+//Pressure of steam(in kPa):
+p=17672
+//Temperature of steam(in K):
+t=712
+//Critical pressure(in kPa):
+Pc=22.09*10^3
+//Critical temperature(in K):
+Tc=647.3
+//Gas constant for steam(in kJ/kg-K):
+Rs=0.4615
+//Considering perfect gas:
+//Specific volume(in m^3/kg)
+vp=Rs*t/p
+//Considering real gas:
+//Reduced pressure:
+Rp=p/Pc
+//Reduced temperature:
+Rt=t/Tc
+//Value of compressibility factor(from chart for Rp & Rt):
+Z=0.785
+//Specific volume(in m^3/kg):
+vr=Z*vp
+printf("\n\n RESULT \n\n")
+printf("\n\n Specific volume considering perfect gas = %f m^3/kg",vp)
+printf("\n Specific volume considering real gas =%f m^3/kg \n\n",vr) \ No newline at end of file