summaryrefslogtreecommitdiff
path: root/3843/CH4/EX4.4/Ex4_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3843/CH4/EX4.4/Ex4_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3843/CH4/EX4.4/Ex4_4.sce')
-rw-r--r--3843/CH4/EX4.4/Ex4_4.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/3843/CH4/EX4.4/Ex4_4.sce b/3843/CH4/EX4.4/Ex4_4.sce
new file mode 100644
index 000000000..6d6eee614
--- /dev/null
+++ b/3843/CH4/EX4.4/Ex4_4.sce
@@ -0,0 +1,33 @@
+// Example 4_4
+clc;funcprot(0);
+// Given data
+P=400;// kPa
+V_1=2;// m^3
+T_2=200;// °C
+Q=3500;// The amount of heat added in kJ
+
+// Calculation
+// Using the steam tables
+v_1=0.5342;// m^3/kg
+u_1=2674;// kJ/kg
+m=V_1/v_1;// kg
+// V_2=m*v_2
+// Q-(P*(V_2-V_1))=(u_2-u_1)*m---->(a)
+// This requires the trial and error process.
+// For example,guess
+v_2=1.0;// m^3/kg
+u_2=((Q-(P*((m*v_2)-V_1)))/m)+u_1;// kJ/kg
+// From the steam tables at P=0.4 MPa
+T_2=654;// °C
+// The v_2 gives
+T_2=600;// °C
+// Guess
+v_2=1.06;// m^3/kg
+u_2=((Q-(P*((m*v_2)-V_1)))/m)+u_1;// kJ/kg
+// The tables are interpolated to give
+T_2=640;// °C
+// The v_2 gives
+T_2=647;// °C
+// The final temperature being approximately
+T_2=644;// °C
+printf("\nThe final temperature being approximately,T_2=%3.0f°C",T_2);