Skip to content
Snippets Groups Projects
Commit d40cbc71 authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[msa-refactoring][classes] Added Wind

parent 7d9a130a
No related branches found
No related tags found
1 merge request!2Final data structure
classdef untitled
classdef Wind < Component
%UNTITLED Summary of this class goes here
% Detailed explanation goes here
properties
Property1
end
model % [] Chosen wind model: 'custom' or 'matlab'
methods
function obj = untitled(inputArg1,inputArg2)
%UNTITLED Construct an instance of this class
% Detailed explanation goes here
obj.Property1 = inputArg1 + inputArg2;
altitudes
magnitudeMin % [m/s] Minimum Magnitude
magnitudeMax % [m/s] Maximum Magnitude
elevationMin % [rad] Minimum Elevation, user input in degrees (ex. 0)
elevationMax % [rad] Maximum Elevation, user input in degrees (ex. 0) (Max == 90 Deg)
azimuthMin % [rad] Minimum Azimuth, user input in degrees (ex. 90)
azimuthMax % [rad] Maximum Azimuth, user input in degrees (ex. 90)
magnitudeDistribution %
azimuthDistribution %
magnitude %
azimuth %
DayMin % [d] Minimum Day of the launch
DayMax % [d] Maximum Day of the launch
HourMin % [h] Minimum Hour of the day
HourMax % [h] Maximum Hour of the day
ww % [m/s] Vertical wind speed
end
function outputArg = method1(obj,inputArg)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg = obj.Property1 + inputArg;
properties(Access = protected)
mission Mission = Mission()
configName = 'windConfig.m'
variableName = ''
end
methods
end
end
......@@ -7,13 +7,28 @@
% 180 deg -> South
% 270 deg -> West
wind.magnitude = [5, 5]; % [m/s] Magnitude, [min, max] % [m/s] Maximum Magnitude
wind.elevationMin = [0, 0] * pi/180; % [rad] Elevation, user input in degrees, [min, max <= 90]
wind.azimuthMin = [180, 180] * pi/180; % [rad] Azimuth, user input in degrees, [min, max]
wind.model = 'custom'; % [] Chosen wind model: 'custom' or 'matlab'
wind.altitudes = [0 200 2000];
wind.magDistribution = ["g", "u", "u"];
wind.mag = [7 2 10;
%% CUSTOM WIND MODEL
wind.magnitudeMin = 1; % [m/s] Minimum Magnitude
wind.magnitudeMax = 5; % [m/s] Maximum Magnitude
wind.elevationMin = 0*pi/180; % [rad] Minimum Elevation, user input in degrees (ex. 0)
wind.elevationMax = 0*pi/180; % [rad] Maximum Elevation, user input in degrees (ex. 0) (Max == 90 Deg)
wind.azimuthMin = wrapTo360(180)*pi/180; % [rad] Minimum Azimuth, user input in degrees (ex. 90)
wind.azimuthMax = wrapTo360(180)*pi/180; % [rad] Maximum Azimuth, user input in degrees (ex. 90)
wind.altitudes = [0 200 2000]; % [m] Altitudes at which a distribution change occurs
wind.magnitudeDistribution = ["g", "u", "u"]; % []
wind.magnitude = [7 2 10; % []
0.5 9 20];
wind.azDistribution = ["u", "u", "u"];
wind.az = 90*pi/180 * ones(2,3);
\ No newline at end of file
wind.azimuthDistribution = ["u", "u", "u"]; % []
wind.azimuth = 0*pi/180 * ones(2,3); % []
%% MATLAB WIND MODEL
wind.DayMin = 105; % [d] Minimum Day of the launch
wind.DayMax = 105; % [d] Maximum Day of the launch
wind.HourMin = 4; % [h] Minimum Hour of the day
wind.HourMax = 4; % [h] Maximum Hour of the day
wind.ww = 0; % [m/s] Vertical wind speed
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment