summaryrefslogtreecommitdiff
path: root/2024/CH5/EX5.5
diff options
context:
space:
mode:
Diffstat (limited to '2024/CH5/EX5.5')
-rwxr-xr-x2024/CH5/EX5.5/5_5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2024/CH5/EX5.5/5_5.sce b/2024/CH5/EX5.5/5_5.sce
new file mode 100755
index 000000000..1f154b8a4
--- /dev/null
+++ b/2024/CH5/EX5.5/5_5.sce
@@ -0,0 +1,12 @@
+clc
+//Initialization of variables
+cp=0.25
+T1=3460 //R
+T2=520 //R
+//calculations
+Q=cp*(T2-T1)
+ds=cp*log(T2/T1)
+G= Q - T2*ds
+eta= G/Q
+//results
+printf("Thermal efficiency = %.1f percent",eta*100)