summaryrefslogtreecommitdiff
path: root/629/CH12/EX12.12/example12_12.sce
blob: df847404a118eddb81a651e0a215bb6d85bf8c88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear
clc
//Example 12.12 MASS FLOW IN TRUNCATED NOZZLE
k=1.4;
d=0.03; //diameter[m]
A=%pi*d^2/4 //area[m^2]
pt=160; //[kPa]
pb=100; //[kPa]
Tt=273+80; //total temp.[K]
//Mach number at exit
Me=sqrt((2/(k-1))*[(pt/pb)^((k-1)/k)-1])
//Static temperature at exit
Te=Tt/(1+((k-1)/2)*Me^2) //[K]
R=287; //[J/kg.K]
//Static density at exit
rho=pb*10^3/(R*Te) //[kg/m^3]
c=sqrt(k*R*Te) //speed of sound[m/s]
//Mass flow rate
m=rho*A*Me*c //[kg/s]
printf("\n The mass flow rate = %.3f kg/s.\n",m)