summaryrefslogtreecommitdiff
path: root/3012/CH11/EX11.6/Ex11_6.sce
blob: acc0b5c1fc651e770fa3c2a0434dbd5e1d27b093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Given:-
// Part(a)
v = 1.00/998.21                                                             // specific volume of water in m^3/kg
T = 293.00                                                                  // given temperature in kelvin
beta = 206.6e-6                                                             // volume expansivity in /K
k = 45.90e-6                                                                // isothermal compressibility in /bar
// Interpolating in Table A-19
cp = 4.188                                                                  // in kj/kg.k
// Calculations
cpv = (v*T*beta**2.00/k)*10**2                                              // in kj/kg.k
cv = cp-cpv                                                                 // in kj/kg.k
errorPercentage = 100*(cp-cv)/cv
// Result
printf( ' The percentage error is:  %.2f',errorPercentage)

// Part(b)
// Calculations
K = cp/cv                                                                   // specific heat ratio
c = ((K*v/k)*10**5)**0.5                                                      // velocity of sound in m/s
// Result
printf( ' The velocity of sound is:  %.2f m/s',c)