summaryrefslogtreecommitdiff
path: root/2126/CH5/EX5.6/6.sce
blob: 48d7ee78d6b0099d1fb4a64755bc60e9cfc7fd40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear

//Input data
Mx=2 //Mach number before the shock 
Px=50 //Pressure before the shock in kPa 

//Calculation
p1=6.335 //Stagnation pressure after shock to Static pressure before shock from gas tables @Mx
Poy=p1*Px //Stagnation pressure after shock in kPa

//Output
printf('Pressure acting on the front of the body is %3.2f kPa',Poy)