summaryrefslogtreecommitdiff
path: root/2015/CH5/EX5.2/5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2015/CH5/EX5.2/5_2.sce')
-rwxr-xr-x2015/CH5/EX5.2/5_2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2015/CH5/EX5.2/5_2.sce b/2015/CH5/EX5.2/5_2.sce
new file mode 100755
index 000000000..8faf72704
--- /dev/null
+++ b/2015/CH5/EX5.2/5_2.sce
@@ -0,0 +1,12 @@
+clc
+//initialisation of variables
+hg=2803.4 //kj/kg
+c=300 //m/s
+sg=6.1253 //kj/kgk
+h2=2090.0 //kj/kg
+//CALCULATIONS
+h0=hg+((c)^2)/2000
+c2=44.72*(h0-h2)^0.5
+//RESULTS
+printf('total enthalpy is %2fkj/kg',h0) //textbook answer is wrong
+printf('\nfinal stream is %2fm/s',c2) //textbook answer is wrong