summaryrefslogtreecommitdiff
path: root/2024/CH3/EX3.1/3_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2024/CH3/EX3.1/3_1.sce')
-rwxr-xr-x2024/CH3/EX3.1/3_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2024/CH3/EX3.1/3_1.sce b/2024/CH3/EX3.1/3_1.sce
new file mode 100755
index 000000000..4f8e895ef
--- /dev/null
+++ b/2024/CH3/EX3.1/3_1.sce
@@ -0,0 +1,19 @@
+clc
+//Initialization of variables
+f=5 //lbm/s
+h2=1020 //B/lbm
+h1=1000 //B/lbm
+v2=50 //ft/s
+v1=100 //ft/s
+J=778
+g=32.2
+z2=0
+z1=100
+gc=32.2
+Q=50 //Btu/s
+//calculations
+W=Q/f - (h2-h1) - (v2^2 -v1^2)/(2*J*gc) - g/gc *(z2-z1)/J
+power = W*f
+//results
+printf("Work done = %.1f Btu/lbm",W)
+printf("\n Power = %.1f Btu/s",power)