summaryrefslogtreecommitdiff
path: root/1457/CH9/EX9.3/9_3.sce
blob: 80b3ac7feb32b98d3a9f1efce5141276f6d028a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
//Initialization of variables
k=1.4
R=1773
v=600 //fps
T=660 //K
P=100 //psia
cp=6210
g=32.2
//calculations
c=sqrt(k*R*T)
M=v/c
rho=k*P*144/c^2
Ps=P*144 + 0.5*(rho)*v^2 *(1+ 0.25*M^2)
Ts= (cp/g *T + v^2 /(2*g))*g/cp
//results
printf("Stagnation pressure = %d lb/ft^2",Ps)
printf("\n Stagnation temperature = %d R",Ts)
disp("Please check the units of the answer.")