我正在为涡轮喷气发动机的热力学设计编写代码。我的代码的一部分如下:
if pi_N > pi_CR
disp('Flow through propulsive nozzle is Choked');
T5 = T04 * (1/(gamma_G + 1)); %Temperature at nozzle exit
p5 = p04/pi_CR; %Pressure at nozzle exit
rho5 = p5/(R*T5); %Air density at Nozzle Exit
Ca5 = sqrt(gamma_G * R * T5); %Air velocity at nozzle exit
A5_mN = 1 / (rho5 * Ca5); %Area of flow divided by mass flow rate in the nozzle
Fs = (Ca5 - Ca1) + A5_mn(p5 - pa); %Specific Thrust
end
所以当我运行代码时,我得到一个错误 - 未定义的函数'A5_mn'用于'double'类型的输入参数。我知道这意味着变量'A5_mn'被视为一个函数,而不是一个变量。但是,对于我的生活,我无法想象如何纠正这一点。