summaryrefslogtreecommitdiff
path: root/32/CH7/EX7.01
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH7/EX7.01
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/CH7/EX7.01')
-rwxr-xr-x32/CH7/EX7.01/7_01.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/32/CH7/EX7.01/7_01.sce b/32/CH7/EX7.01/7_01.sce
new file mode 100755
index 000000000..efaa3e37a
--- /dev/null
+++ b/32/CH7/EX7.01/7_01.sce
@@ -0,0 +1,26 @@
+//pathname=get_absolute_file_path('7.01.sce')
+//filename=pathname+filesep()+'7.01-data.sci'
+//exec(filename)
+//Pressure of entering steam(in MPa):
+p1=1.6
+//Temperature of entering steam(in K):
+T1=300+273
+//Pressure of leaving steam(in MPa):
+p2=0.1
+//Temperature of leaving steam(in K):
+T2=150+273
+//Velocity of the leaving steam(in m/s):
+c2=150
+//Surrounding temperature(in K):
+T0=15+273
+//Mass flow rate(in kg/s):
+m=2.5
+//From steam tables:
+h1=3034.8 //kJ/kg
+s1=6.8844 //kJ/kg.K
+h2=2776.4 //kJ/kg
+s2=7.6134 //kJ/kg.K
+//Maxiimum work possible(in kW):
+Wmax=(h1-h2)-T0*(s1-s2)-(c2^2)/2*10^(-3)
+printf("\nRESULT")
+printf("\nMaximum work possible = %f kW",m*Wmax) \ No newline at end of file