diff --git a/air_viscosity.m b/air_viscosity.m index 3f355c9..4c3c993 100644 --- a/air_viscosity.m +++ b/air_viscosity.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function mm = air_viscosity(t) % Sutherland's formula (Crane, 1988) % http://jullio.pe.kr/fluent6.1/help/html/ug/node294.htm diff --git a/design_point.m b/design_point.m index 498352b..cc66cae 100644 --- a/design_point.m +++ b/design_point.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function [propulsion, performance] = design_point(mission, propulsion, performance, constants) wl = 0:10:10000; diff --git a/drag_buildup.m b/drag_buildup.m index 217fef1..ddf84a1 100644 --- a/drag_buildup.m +++ b/drag_buildup.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function performance = drag_buildup(performance, aircraft) performance.c_d0 = 0; diff --git a/estimate_mf_prop.m b/estimate_mf_prop.m index d5e242b..a25c58f 100644 --- a/estimate_mf_prop.m +++ b/estimate_mf_prop.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function mf_prop = estimate_mf_prop(f_install, pw_to, pw_ice, pw_gen, pw_em, pw_prop, config) % f_install: Factor that accounts for all auxiliary systems for propulsion (> 1) % pw_to: Shaft power to MTOW ratio diff --git a/estimate_mf_subs.m b/estimate_mf_subs.m index b4ef314..b5d8a34 100644 --- a/estimate_mf_subs.m +++ b/estimate_mf_subs.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function mf_subs = estimate_mf_subs(mf_prop, mf_struct) mf_subs = 3 / 7 * (mf_prop + mf_struct); diff --git a/friction_coeff.m b/friction_coeff.m index a976dbd..025a69a 100644 --- a/friction_coeff.m +++ b/friction_coeff.m @@ -1,5 +1,12 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function cf = friction_coeff(x, v, a, rr, mm) -re = reynolds(x, v, rr, mm); + + re = reynolds(x, v, rr, mm); if is_laminar(re) cf = 1.328 / sqrt(re); else diff --git a/fuselage.m b/fuselage.m index df7f622..1b6128f 100644 --- a/fuselage.m +++ b/fuselage.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function aircraft = fuselage(aircraft, segment) % Iterate over aircraft lifting surfaces diff --git a/lifting_surface.m b/lifting_surface.m index 002e737..3b9f1fd 100644 --- a/lifting_surface.m +++ b/lifting_surface.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function aircraft = lifting_surface(aircraft, segment) m = segment.v / segment.speed_sound; diff --git a/main.m b/main.m index adf3fe4..4192ce0 100644 --- a/main.m +++ b/main.m @@ -1,6 +1,8 @@ % Aircraft design tool % % Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution close all; diff --git a/mtow.m b/mtow.m index 70c8c16..5261e33 100644 --- a/mtow.m +++ b/mtow.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function mission = mtow(mission, propulsion, energy, performance, constants) % Initialize mission parameters diff --git a/plot_mission.m b/plot_mission.m index 07a287b..786bdc4 100644 --- a/plot_mission.m +++ b/plot_mission.m @@ -1,3 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function plot_mission(mission) x = 0; diff --git a/reynolds.m b/reynolds.m index f850bbd..2005447 100644 --- a/reynolds.m +++ b/reynolds.m @@ -1,2 +1,9 @@ +% Aircraft design tool +% +% Mario Bras (mbras@uvic.ca) and Ricardo Marques (ricardoemarques@uvic.ca) 2019 +% +% This file is subject to the license terms in the LICENSE file included in this distribution + function r = reynolds(x, v, rr, mm) -r = rr * v * x / mm; + + r = rr * v * x / mm;