Flight Dynamics
Flight Dynamics
Cd0 = 0.0358;
k = 0.0404;
m = 2180;
rho = 1.225;
S = 15;
W = m*9.81;
Cl = sqrt(Cd0/k);
Cd = Cd0 + k*(Cl)^2;
x = Cl/Cd;
V = sqrt((2*w)/(rho*S*Cd));
Tr = (1/2)*rho*(V^2)*S*Cd;
Pr = Tr*V;
display(x)
display(V)
display(Pr)
2)
Cd0 = 0.0358;
k = 0.0405;
m = 2180;
rho = 1.225;
S = 15;
W = m*9.81;
v = 10:0.01:100;
v1 = v';
Cl = (2*W)/(rho*S.*(v1.^2));
Cdi = k.*Cl.^2;
Cd = Cd0+k.*Cl.^2;
A=rho*S*Cd0/2;
B=(2*k*W^2)/(rho*S);
Tre=A*v1.^2;
Tri=B./v1.^2;
Tr=Tre+Tri;
TA = W./(Cl./Cd);
figure;
subplot(2,1,1);plot(v1,Tr);
hold on;
plot(v1,TA);
legend("Tr","TA");
Pr = Tr.*v1;
PA = TA.*v1;
hold off;
subplot(2,1,2);plot(v1,Pr);
hold on;
plot(v1,PA);
● legend("Pr","PA")
2)
% Given values
S = 15;
m = 2180;
W = m * 9.81;
CDo = 0.0358;
k = 0.0405;
rho_inf = 1.225;
V_inf1 = 1:400;
% Calculate Thrust Required (TR) and Power Required (PR) as functions of velocity
TR = 0.5 * rho_inf * (V_inf1.^2) * S * CDo + (2 * k * W^2) ./ (rho_inf * (V_inf1.^2) * S);
PR = TR .* V_inf1;
% Create plots
figure;
3)
Cd0 = 0.0358;
k = 0.0405;
s = 15;
d = 1.225;
m = 2180;
w= m*9.81;
vi=10:0.0001:100;
v=vi';
A=d*s*Cd0/2;
B=(2*k*w^2)/(d*s);
Cde=A*v.^2;
% plot(v,Cd)
Cdi=B./v.^2;
CD = Cde + Cdi;
plot(v,Cde,v,Cdi,v,CD)
xlabel('velocity')
ylabel('drag')
legend('PARASITE DRAG','INDUCED DRAG','TOTALÂ DRAG')