summaryrefslogtreecommitdiff
path: root/2774/CH5/EX5.11/Ex5_11.sce
blob: 4d403f02f4625e3c199483bba312713a9a8fb5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
// initialization of variables
v1=0.5 // assumed as air is filled in half of the tank
v2=1 // final volume when partition is removed
R=0.287 // gas contant for air
//solution
q=0 // heat transfer is zero
w=0 // work done is zero
// temperatue is constant as no change in internal energy by first law
dels=R*log(v2/v1)// change in entropy when temperature is constant
printf("The change in specific entropy is %.3f kJ/kg.K",dels)