Skip to content
Snippets Groups Projects

Draft: Alpha phi

Open Marco Luigi Gaibotti requested to merge alpha-phi into main
Files
20
+ 10
6
@@ -52,7 +52,8 @@ classdef Rocket < Config
parachutes cell % [-] (nParachutes, nStages) Parachutes onboard
dynamicDerivatives (1, 1) logical % [-] True if dynamic derivatives will be loaded
highAOACoefficients (1, 1) logical % [-] True if highAOACoefficients are loaded
coefficients Coefficient % [-] Aerodynamic coefficients
coefficientsHighAOA Coefficient % [-] Aerodynamic coefficients at high angle of attack
end
@@ -150,13 +151,16 @@ classdef Rocket < Config
fullfile(mission.dataPath, 'aeroCoefficients.mat'), ...
coeffName);
obj.coefficientsHighAOA = Coefficient( ...
fullfile(mission.dataPath, 'aeroCoefficientsHighAOA.mat'), ...
coeffName);
if obj.highAOACoefficients
obj.coefficientsHighAOA = Coefficient( ...
fullfile(mission.dataPath, 'aeroCoefficientsHighAOA.mat'), ...
coeffName);
end
answer = '';
if isempty(obj.coefficients.static) || isempty(obj.coefficientsHighAOA.static)
if isempty(obj.coefficients.static) || ...
(obj.highAOACoefficients && isempty(obj.coefficientsHighAOA.static))
answer = questdlg(['Coefficient matrices not found. ' ...
'Do you want to create new matrices?']);
elseif options.checkGeometry
@@ -195,7 +199,7 @@ classdef Rocket < Config
parserPath = fullfile(mission.msaPath, 'autoMatricesProtub');
addpath(genpath(parserPath));
[obj.coefficients, obj.coefficientsHighAOA] = ...
mainAutoMatProtub(obj);
mainAutoMatProtub(obj, 'computeHighAOA', obj.highAOACoefficients);
case 'Cancel'
error('Rocket creation aborted')
otherwise
Loading