summaryrefslogtreecommitdiff
path: root/32/CH13/EX13.01
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH13/EX13.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/CH13/EX13.01')
-rwxr-xr-x32/CH13/EX13.01/13_01.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/32/CH13/EX13.01/13_01.sce b/32/CH13/EX13.01/13_01.sce
new file mode 100755
index 000000000..df39554db
--- /dev/null
+++ b/32/CH13/EX13.01/13_01.sce
@@ -0,0 +1,31 @@
+//pathname=get_absolute_file_path('13.01.sce')
+//filename=pathname+filesep()+'13.01-data.sci'
+//exec(filename)
+//Pressure of dry steam(in bar):
+p1=10
+//Velocity of steam entering(in m/s):
+C1=100
+//Velocity of steam leaving the nozzle(in m/s):
+C2=300
+//Pressure of steam at exit(in bar):
+p2=5
+//Mass flow rate(in kg/s):
+m=16
+//Heat loss to surroundings(in kJ/kg):
+q=10
+//From steam tables:
+h1=2778.1 //kJ/kg
+hf=640.23 //kJ/kg
+hfg=2108.5 //kJ/kg
+//Heat drop in the nozzle(in kJ/kg):
+dh=(q*10^3+(C1^2-C2^2)/2)/1000
+//Total heat drop(in kJ/s):
+dQ=-dh*m
+//Enthalpy at state 2(in kJ/kg):
+h2=h1+dh
+//Dryness fraction at state 2:
+x2=(h2-hf)/hfg
+printf("\nRESULT\n")
+printf("\nHeat drop in the nozzle = %f kJ/kg",-dh)
+printf("\nTotal heat drop = %f kJ/s",dQ)
+printf("\nDryness fraction at exit = %f",x2) \ No newline at end of file