summaryrefslogtreecommitdiff
path: root/1913/CH2/EX2.23/ex23.sce
blob: 47158f38043a0bc442a1d95bcf7cecf2353e0518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Input data
c1=40;//Velocity of air at the inlet of nozzle in m/s
h=180;//The decrease in enthalpy in the nozzle in kJ/kg
w=0;//Since adiabatic
q=0;//Since adiabatic
z=0;//Since adiabatic

//Calculations
c2=[(2*1000)*((h)+(c1^2/(2*1000)))]^(1/2);//The exit velocity of air in m/s

//Output
printf('The exit velocity of the air C2 = %3.2f m/s ',c2)