summaryrefslogtreecommitdiff
path: root/2705/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2705/CH2/EX2.3/Ex2_3.sce')
-rwxr-xr-x2705/CH2/EX2.3/Ex2_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2705/CH2/EX2.3/Ex2_3.sce b/2705/CH2/EX2.3/Ex2_3.sce
new file mode 100755
index 000000000..0f6f799d4
--- /dev/null
+++ b/2705/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,23 @@
+clear;
+clc;
+disp('Example 2.3');
+
+
+
+// Given values
+Q = -150; // Heat transferred out of the system, [kJ/kg]
+del_u = -400; // Internal energy decreased ,[kJ/kg]
+
+// solution
+// using equation [3],the non flow energy equation
+// Q=del_u+W
+W = Q-del_u; // [kJ/kg]
+mprintf('\n The Work done is, W = %f kJ/kg \n',W);
+
+if(W>0)
+ disp('Since W>0, so Work done by the engine per kilogram of working substance')
+else
+ disp('Since <0, so Work done on the engine per kilogram of working substance')
+end
+
+// End