summaryrefslogtreecommitdiff
path: root/1309/CH5/EX5.1/ch5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1309/CH5/EX5.1/ch5_1.sce')
-rwxr-xr-x1309/CH5/EX5.1/ch5_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1309/CH5/EX5.1/ch5_1.sce b/1309/CH5/EX5.1/ch5_1.sce
new file mode 100755
index 000000000..be744c630
--- /dev/null
+++ b/1309/CH5/EX5.1/ch5_1.sce
@@ -0,0 +1,14 @@
+clc;
+clear;
+printf("\t\t\tChapter5_example1\n\n\n");
+// properties of CO at 300K from appendix table D2
+Cp=871;
+Gamma=1.3;
+Cv=Cp/Gamma;
+printf("\nThe specific heat at constant volume is %d J/(kg.K)",Cv);
+dT=20;
+m=5;
+Qp=m*Cp*dT;
+Qv=m*Cv*dT;
+printf("\n The heat required at constant pressure is %.1f kJ",Qp/1000);
+printf("\nThe heat required at constant volume is %d kJ",Qv/1000);