prandtl meyer array help

조회 수: 1 (최근 30일)
Yoslin Herrera
Yoslin Herrera 2019년 4월 3일
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개)

카테고리

Help CenterFile Exchange에서 Gas Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by