summaryrefslogtreecommitdiff
path: root/2870/CH5/EX5.11/Ex5_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH5/EX5.11/Ex5_11.sce')
-rwxr-xr-x2870/CH5/EX5.11/Ex5_11.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2870/CH5/EX5.11/Ex5_11.sce b/2870/CH5/EX5.11/Ex5_11.sce
new file mode 100755
index 000000000..0961b288a
--- /dev/null
+++ b/2870/CH5/EX5.11/Ex5_11.sce
@@ -0,0 +1,20 @@
+clc;clear;
+//Example 5.11
+
+//giaven data
+T1=17+273;//in K
+P1=100;
+V1=150;
+Win=15;
+Qout=200/1000;//in kJ/s
+
+//constants used
+R=0.287;//in kPa-m^3/kg-K
+cp=1.005;//in kJ/kg C
+
+//calculations
+v1=R*T1/P1;
+m=V1/v1/60;//factor of 6 to convert to s
+// Win - Qout = m*cp*(T2-T1)
+T2= T1 + (Win - Qout)/(m*cp);
+disp((T2-273),'exit temperature in C')