summaryrefslogtreecommitdiff
path: root/2144/CH3/EX3.3/ex3_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2144/CH3/EX3.3/ex3_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2144/CH3/EX3.3/ex3_3.sce')
-rwxr-xr-x2144/CH3/EX3.3/ex3_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2144/CH3/EX3.3/ex3_3.sce b/2144/CH3/EX3.3/ex3_3.sce
new file mode 100755
index 000000000..2407d4910
--- /dev/null
+++ b/2144/CH3/EX3.3/ex3_3.sce
@@ -0,0 +1,23 @@
+// Exa 3.3
+clc;
+clear;
+close;
+// Given data
+P = 3.2;// in bar
+P = P * 10^5;// in N/m^2
+R = 292.7;// in kJ/kg-K
+C_p = 1.003;// in kJ/kg-K
+m = 1;
+V1 = 0.3;// in m^3
+V2 = 2*V1;// in m^3
+W = P*(V2-V1);// in J
+W = W * 10^-3;// in kJ
+disp(W,"The work done in kJ is");
+T1 = (P*V1)/(m*R);// in K
+disp(T1-273,"The intail Temperature in °C is");
+T2 = T1*(V2/V1);// in K
+disp(T2-273,"The final temperature in °C is");
+Q = m*C_p*(T2-T1);// in kJ
+disp(Q,"The Heat added in kJ is");
+
+// Note: To evaluate the value of Heat added, wrong value of T1 is putted (i.e 273 k at place of 328 K), so the answer of Heat added is wrong in the book.