summaryrefslogtreecommitdiff
path: root/3878/CH24/EX24.2/Ex24_2.sce
blob: 04a3de15edec01407e0f2d12203aa2be2233f867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
// Variable declaration
V=1// The volume of air in m**3
t=20// The dry bulb temperature in °C
H=60// % saturation
p=101.325// The pressure in kPa
v=7// The velocity in m/s
v_s=0.8419// The specific volume in m**3/kg

// Calculation
m=V/v_s// Mass in kg
Ke=(m*v**2)/2// Kinetic energy in kg/(m s**2)
printf("\n Kinetic energy=%2.1f kg/(m s**2)",Ke)