blob: c2fae69510c0a4f7d634c6a444c8e482be0d0c83 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Example 12_8
clc;funcprot(0);
// Given data
theta=10;// The half angle of two dimensional wedge in degree
beta=20;// The attached shock wave angle in degree
r=1.4;// The specific heat ratio
// Calculation
M=sqrt(((2*tand(theta))+(2*cotd(beta)))/((2*cosd(beta)*sind(beta))-((r+(cosd(beta)*cosd(beta)))*tand(theta))));// The Mach number M of the flow in the wind tunnel
printf("The Mach number M of the flow in the wind tunnel,M=%1.3f",M);
|