summaryrefslogtreecommitdiff
path: root/2015/CH5/EX5.1/5_1.sce
blob: 400298e6becca8f69e9be2df7076b33561870c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//initialisation of variables
c=300 //velocity in m/s
cp=1.005 //kj/kgk
g=1.4
t=478 //static temparature in k
p=15 //static pressure in bar
//CALCULATIONS
t0=t+((c)^2/(2*cp*1000))
x=(t0/t)^(g/(g-1))*p
//RESULTS
printf('stagnation temparature and stagnation pressure is %2fk and %2fbar',t0,x)