Skip to content

Commit

Permalink
Fix performance.c_d0 not being reset in drag_buildup()
Browse files Browse the repository at this point in the history
  • Loading branch information
marioarbras committed Aug 2, 2019
1 parent f202af2 commit 99cf86e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drag_buildup.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function performance = drag_buildup(performance, aircraft)

performance.c_d0;
performance.c_d0 = 0;

% Iterate over aircraft lifting surfaces
for i = 1 : length(aircraft.lifting_surfaces)
Expand Down
2 changes: 1 addition & 1 deletion main.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

% Performance
performance.c_d0 = 0.02; % Aircraft base drag
performance.ar = 10; % Aspect ratio
performance.ar = 5; % Aspect ratio
performance.ld_max = performance.ar + 10; % Maximum L/D ratio
performance.dl = 700; % Disk loading (N/m^2)

Expand Down

0 comments on commit 99cf86e

Please sign in to comment.