summaryrefslogtreecommitdiff
path: root/3843/CH4/EX4.10/Ex4_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3843/CH4/EX4.10/Ex4_10.sce')
-rw-r--r--3843/CH4/EX4.10/Ex4_10.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3843/CH4/EX4.10/Ex4_10.sce b/3843/CH4/EX4.10/Ex4_10.sce
new file mode 100644
index 000000000..dc6b6c95c
--- /dev/null
+++ b/3843/CH4/EX4.10/Ex4_10.sce
@@ -0,0 +1,15 @@
+// Example 4_10
+clc;funcprot(0);
+// Given data
+V=0.02;// m^3
+T_1=50;// °C
+P=400;// kPa
+Q=50;// The amount of heat added in kJ
+T_2=700;// °C
+R=287;// J/kg.K
+c_p=1.00;// kJ/kg.K
+
+// Calculation
+m=((P*10^3)*V)/(R*(T_1+273));// The mass in kg
+W_paddle=Q-(m*c_p*(T_2-T_1));// The paddel-wheel work in kJ
+printf("\nThe paddel-wheel work,W_paddle=%1.3f kJ",W_paddle);