prandtl meyer array help
1 次查看(过去 30 天)
显示 更早的评论
Using the Aerospace tool function "flowprandtlmeyer" link to the info page: flowprandtlmeyer I am inoutting an array and defining it like it asks "prandtlmeyer_array" but it gives me an error "The expression to the left of the equals sign is not a valid target for an assignment."
Note the first use of the function is implemented correctly. It is the last line that results in error.
Please advise.
gamma=1.4;
M=2;
e=2.865; %epsilon
%AoA until e
AoA1=linspace(0,2.859);
v1=sqrt((gamma+1)/(gamma-1))*atan(sqrt(((gamma-1)/(gamma+1))*((M^2)-1)))-atan(sqrt((M^2)-1));
v1=v1*180/pi;
theta2=AoA1;
v2=v1+theta2;
prandtlmeyer_array=v2;
%Obtain Mach number M2 from V2
[mach]=flowprandtlmeyer(1.4,v1,'nu');
M2=mach;
%solving for p1p0 (oblique shock) pressure of leading edge top surface
po2p2=(1+((gamma-1)/2)*M2^2)^(gamma/(gamma-1));
%Find the P-M value for region 3
theta3=2*e;
v3=v2+theta3;
[mach]=flowprandtlmeyer(1.4,prandtlmeyer_array,mtype='nu');
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gas Dynamics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!