summaryrefslogtreecommitdiff
path: root/2120/CH4/EX4.5/ex4_5.sce
blob: 6134cda9067c513c261edaeff4996a4a486eda2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Exa 4.5
clc;
clear;
close;
// Given data
m = 1.5;// in kg
T1 = 90;// in °C
T1 = T1 + 273;//in K
T2 = 225;// in °C
T2 = T2 + 273;// in K
C_p = 0.24;
C_v = 0.17;
Q = (m * C_p * (T2-T1));// in kcal
del_U = (m * C_v * (T2-T1));// in kcal
W = Q - del_U;// in kcal
disp(W,"The external work done in kcal is");