summaryrefslogtreecommitdiff
path: root/2144/CH3/EX3.3/ex3_3.sce
blob: 2407d491025eeac54f700c2cd670f46bc9761a00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.