You are on page 1of 3

TRSLFJ.

m
V=linspace(150,1000,500);
W=73000; S=950; CD0=0.015; K=0.05; rho=1.7553e-3;
T=1/2*rho*V.2*S*CD0+2*K*W2/rho./V.2/S
plot(V,T);
xlabel(Velocity (ft/s));
ylabel(Thrust required (lb));
grid on;
MMSSLFJ.m
function [Vmin,Vmax]=MMSSLFJ
%Output: Minimum airspeed and maximum airspeed
W=73000; S=950; CD0=0.015; K=0.05; Tsmax=12500; m=0.6;
[Ts ps rhos]=StdAtpUS(0);
[Th ph rhoh]=StdAtpUS(h);
[Vmin,Vmax]=roots([1/2*rho*S*CD0 0 -Tsmax*(rho/rhos)m 0 2*K*W2/rho/S]);
eqnFCLJ.m
function error=eqnFCLJ(h)
%Input: altitude (ft)
%Output: Error
W=73000; CD0=0.015; K=0.05; Tsmax=12500; m=0.6;
[Ts ps rhos]=StdAtpUS(0);
[Th ph rhoh]=StdAtpUS(h);
error=2*W*sqrt(K*CD0)-Tsmax*(rhoh/rhos)m;
SLFJ.m
function [Vmax VminTC Vstall]=SLFJ(h);
%Input: altitude h (ft)
%Output: max airspeed Vmax (ft/s), min airspeed due to thrust constraint VminTC (ft/s),
stall speed Vstall (ft/s)
W=73000; S=950; CD0=0.015; K=0.05; Tsmax=12500; m=0.6; CLmax=2.8;
[Ts ps rhos]=StdAtpUS(0);
[T p rho]=StdAtpUS(h);
tmp=sort(roots([1/2*rho*S*CD0 0 -Tsmax*(rho/rhos)m 0 2*K*W2/rho/S]));
Vmax=tmp(4);
VminTC=tmp(3);

Vstall=sqrt(2*W/rho/S/CLmax);
FigSLFJ.m
h=linspace(0,50361,500);
for k=1:size(h,2)
[Vmax(k) VminTC(k) Vstall(k)]=SLFJ(h(k));
end
Vmin=max(VminTC,Vstall);
area([Vmin Vmax(end:-1:1)],[h h(end:-1:1)],...
FaceColor,[0.8 1 1],LineStyle,none);
hold on;
plot(Vmax,h,VminTC,h,Vstall,h);
grid on;
xlim([0 1200]);
xlabel(Velocity (ft/s));
ylabel(Altitude (ft));
PRSLFP.m
V=linspace(20,350,500);
W=2900; S=175; CD0=0.026; K=0.054; rho=1.7553e-3;
P=1/2*rho*V.3*S*CD0+2*K*W2/rho./V/S
plot(V,P);
xlabel(Velocity (ft/s));
ylabel(Power required (ft lb/s));
grid on;
MMSSLFP.m
function [Vmin,Vmax]=MMSSLFP
%Output: Minimum airspeed and maximum airspeed
W=2900; S=175; CD0=0.026; K=0.054; Psmax=290*550; m=0.6; eta=0.8;
[Ts ps rhos]=StdAtpUS(0);
[Th ph rhoh]=StdAtpUS(h);
[Vmin,Vmax]=sort(roots([1/2*rho*S*CD0 0 0 -eta*Psmax*(rho/rhos)m 2*K*W2/rho/S]));
eqnFCLP.m
function error=eqnFCLP(h)
%Input: altitude (ft)

%Output: error
W=2900; S=175; CD0=0.026; K=0.054; Psmax=290*550; m=0.6; eta=0.8;
[Ts ps rhos]=StdAtpUS(0);
[Th ph rhoh]=StdAtpUS(h);
error=4/3*sqrt(2*W3/rhoh/S*sqrt(3*K3*CD0))-eta*Psmax*(rhoh/rhos)m;
SLFP.m
function [Vmax VminPC Vstall]=SLFP(h);
%Input: altitude h (ft)
%Output: max airspeed Vmax (ft/s), min airspeed due to thrust constraint VminPC (ft/s),
% stall speed Vstall (ft/s)
W=2900; S=175; CD0=0.026; K=0.054; Psmax=290*550; m=0.6; CLmax=2.4; eta=0.8;
[Ts ps rhos]=StdAtpUS(0);
[T p rho]=StdAtpUS(h);
tmp=sort(roots([1/2*rho*S*CD0 0 0 -eta*Psmax*(rho/rhos)m 2*K*W2/rho/S]));
Vmax=tmp(2);
VminPC=tmp(1);
Vstall=sqrt(2*W/rho/S/CLmax);
FigSLFP.m
h=linspace(0,40190,500);
for k=1:size(h,2)
[Vmax(k) VminTC(k) Vstall(k)]=SLFP(h(k));
end
Vmin=max(VminTC,Vstall);
area([Vmin Vmax(end:-1:1)],[h h(end:-1:1)],...
FaceColor,[0.8 1 1],LineStyle,none);
hold on;
plot(Vmax,h,VminTC,h,Vstall,h);
grid on;
xlim([0 400]);
xlabel(Velocity (ft/s));
ylabel(Altitude (ft));

You might also like