Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skyward
Matlab dependencies
Common
Commits
344bfd7d
Commit
344bfd7d
authored
1 year ago
by
giuliaghirardini
Browse files
Options
Downloads
Patches
Plain Diff
[refactoring-msa][classes] Implemented Parachute class and parachuteConfig
parent
c14ae924
Branches
Branches containing commit
No related tags found
1 merge request
!2
Final data structure
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/components/Parachute.m
+19
-15
19 additions, 15 deletions
classes/components/Parachute.m
missions/2024_Lyra_Roccaraso_September/config/parachuteConfig.m
+67
-51
67 additions, 51 deletions
...ns/2024_Lyra_Roccaraso_September/config/parachuteConfig.m
with
86 additions
and
66 deletions
classes/components/Parachute.m
+
19
−
15
View file @
344bfd7d
classdef
Parachute
classdef
Parachute
<
Component
%PARACHUTE Summary of this class goes here
% Detailed explanation goes here
properties
Property1
end
methods
function
obj
=
Parachute
(
inputArg1
,
inputArg2
)
%PARACHUTE Construct an instance of this class
% Detailed explanation goes here
obj
.
Property1
=
inputArg1
+
inputArg2
;
name
{
mustBeTextScalar
}
=
''
surface
double
% [m^2] Surface
mass
double
% [kg] Parachute Mass
cd
double
% [/] Parachute Drag Coefficient
cl
double
% [/] Parachute Lift Coefficient
openingDelay
double
% [s] drogue opening delay
finalAltitude
double
% [m] Final altitude of the parachute
cx
double
% [/] Parachute Longitudinal Drag Coefficient
chordLength
double
% [m] Shock Chord Length
chordK
double
% [N/m^2] Shock Chord Elastic Constant
chordC
double
% [Ns/m] Shock Chord Dynamic Coefficient
m
double
% [m^2/s] Coefficient of the surface vs. time opening model
nf
double
% [/] Adimensional Opening Time
expulsionSpeed
double
end
function
outputArg
=
method1
(
obj
,
inputArg
)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg
=
obj
.
Property1
+
inputArg
;
end
properties
(
Access
=
protected
)
configName
=
'parachuteConfig.m'
variableName
=
'parachute'
mission
Mission
end
end
This diff is collapsed.
Click to expand it.
missions/2024_Lyra_Roccaraso_September/config/parachuteConfig.m
+
67
−
51
View file @
344bfd7d
% CONFIG - This script contains information about the parachutes onboard
parachute
=
Parachute
();
%% ROCKET CHUTES
% parachute 1
parachute
.
para
(
1
,
1
)
.
name
=
'DROGUE chute'
;
parachute
.
para
(
1
,
1
)
.
surface
=
1.2219
;
% [m^2] Surface
parachute
.
para
(
1
,
1
)
.
mass
=
0.15
;
% [kg] Parachute Mass
parachute
.
para
(
1
,
1
)
.
cd
=
0.96
;
% [/] Parachute Drag Coefficient
parachute
.
para
(
1
,
1
)
.
cl
=
0
;
% [/] Parachute Lift Coefficient
parachute
.
para
(
1
,
1
)
.
openingDelay
=
1
;
% [s] drogue opening delay
parachute
.
para
(
1
,
1
)
.
finalAltitude
=
350
;
% [m] Final altitude of the parachute
parachute
.
para
(
1
,
1
)
.
cx
=
1.4
;
% [/] Parachute Longitudinal Drag Coefficient
parachute
.
para
(
1
,
1
)
.
chordLength
=
1.5
;
% [m] Shock Chord Length
parachute
.
para
(
1
,
1
)
.
chordK
=
7200
;
% [N/m^2] Shock Chord Elastic Constant
parachute
.
para
(
1
,
1
)
.
chordC
=
0
;
% [Ns/m] Shock Chord Dynamic Coefficient
parachute
.
para
(
1
,
1
)
.
m
=
1
;
% [m^2/s] Coefficient of the surface vs. time opening model
parachute
.
para
(
1
,
1
)
.
nf
=
12
;
% [/] Adimensional Opening Time
parachute
.
para
(
1
,
1
)
.
expulsionSpeed
=
5
;
% [m/s] Expulsion Speed
parachute
.
name
=
'DROGUE chute'
;
parachute
.
surface
=
1.2219
;
% [m^2] Surface
parachute
.
mass
=
0.15
;
% [kg] Parachute Mass
parachute
.
cd
=
0.96
;
% [/] Parachute Drag Coefficient
parachute
.
cl
=
0
;
% [/] Parachute Lift Coefficient
parachute
.
openingDelay
=
1
;
% [s] drogue opening delay
parachute
.
finalAltitude
=
350
;
% [m] Final altitude of the parachute
parachute
.
cx
=
1.4
;
% [/] Parachute Longitudinal Drag Coefficient
parachute
.
chordLength
=
1.5
;
% [m] Shock Chord Length
parachute
.
chordK
=
7200
;
% [N/m^2] Shock Chord Elastic Constant
parachute
.
chordC
=
0
;
% [Ns/m] Shock Chord Dynamic Coefficient
parachute
.
m
=
1
;
% [m^2/s] Coefficient of the surface vs. time opening model
parachute
.
nf
=
12
;
% [/] Adimensional Opening Time
parachute
.
expulsionSpeed
=
5
;
% [m/s] Expulsion Speed
% parachute 2
parachute
.
para
(
2
,
1
)
.
name
=
'MAIN chute'
;
parachute
.
para
(
2
,
1
)
.
surface
=
7.34
;
% [m^2] Surface
parachute
.
para
(
2
,
1
)
.
mass
=
1.05
;
% [kg] Parachute Mass
parachute
.
para
(
2
,
1
)
.
cd
=
1.75
;
% [/] Parachute Drag Coefficient
parachute
.
para
(
2
,
1
)
.
cl
=
0
;
% [/] Parachute Lift Coefficient
parachute
.
para
(
2
,
1
)
.
finalAltitude
=
0
;
% [m] Final altitude of the parachute
parachute
.
para
(
2
,
1
)
.
cx
=
1.2
;
% [/] Parachute Longitudinal Drag Coefficient
parachute
.
para
(
2
,
1
)
.
chordLength
=
6
;
% [m] Shock Chord Length
parachute
.
para
(
2
,
1
)
.
chordK
=
3000
;
% [N/m^2] Shock Chord Elastic Constant
parachute
.
para
(
2
,
1
)
.
chordC
=
0
;
% [Ns/m] Shock Chord Dynamic Coefficient
parachute
.
para
(
2
,
1
)
.
m
=
1
;
% [m^2/s] Coefficient of the surface vs. time opening model
parachute
.
para
(
2
,
1
)
.
nf
=
8.7
;
% [/] Adimensional Opening Time
%% PAYLOAD CHUTES
% parachute 1
parachute
.
para
(
1
,
2
)
.
name
=
"Payload DROGUE"
;
parachute
.
para
(
1
,
2
)
.
surface
=
0.11
;
% [m^2] Surface
parachute
.
para
(
1
,
2
)
.
mass
=
0.15
;
% [kg] Parachute Mass
parachute
.
para
(
1
,
2
)
.
cd
=
1.2
;
% [/] Parachute Drag Coefficient
parachute
.
para
(
1
,
2
)
.
cl
=
0
;
% [/] Parachute Lift Coefficient
parachute
.
para
(
1
,
2
)
.
openingDelay
=
1
;
% [s] drogue opening delay
parachute
.
para
(
1
,
2
)
.
finalAltitude
=
300
;
% [m] Final altitude of the parachute
parachute
.
para
(
1
,
2
)
.
cx
=
1.4
;
% [/] Parachute Longitudinal Drag Coefficient
parachute
.
para
(
1
,
2
)
.
chordLength
=
1.5
;
% [m] Shock Chord Length
parachute
.
para
(
1
,
2
)
.
chordK
=
7200
;
% [N/m^2] Shock Chord Elastic Constant
parachute
.
para
(
1
,
2
)
.
chordC
=
0
;
% [Ns/m] Shock Chord Dynamic Coefficient
parachute
.
para
(
1
,
2
)
.
m
=
1
;
% [m^2/s] Coefficient of the surface vs. time opening model
parachute
.
para
(
1
,
2
)
.
nf
=
12
;
% [/] Adimensional Opening Time
parachute
.
para
(
1
,
2
)
.
expulsionSpeed
=
10
;
% [m/s] Expulsion Speed
% parachute 2
parachute
.
para
(
2
,
2
)
.
name
=
"Payload AIRFOIL"
;
parachute
.
para
(
2
,
2
)
.
mass
=
0.50
;
% [kg] Parachute Mass
parachute
.
para
(
2
,
2
)
.
finalAltitude
=
0
;
% [m] Final altitude of the parachute
% %% ROCKET CHUTES
% % parachute 1
% parachute.para(1, 1).name = 'DROGUE chute';
% parachute.para(1, 1).surface = 1.2219; % [m^2] Surface
% parachute.para(1, 1).mass = 0.15; % [kg] Parachute Mass
% parachute.para(1, 1).cd = 0.96; % [/] Parachute Drag Coefficient
% parachute.para(1, 1).cl = 0; % [/] Parachute Lift Coefficient
% parachute.para(1, 1).openingDelay = 1; % [s] drogue opening delay
% parachute.para(1, 1).finalAltitude = 350; % [m] Final altitude of the parachute
% parachute.para(1, 1).cx = 1.4; % [/] Parachute Longitudinal Drag Coefficient
% parachute.para(1, 1).chordLength = 1.5; % [m] Shock Chord Length
% parachute.para(1, 1).chordK = 7200; % [N/m^2] Shock Chord Elastic Constant
% parachute.para(1, 1).chordC = 0; % [Ns/m] Shock Chord Dynamic Coefficient
% parachute.para(1, 1).m = 1; % [m^2/s] Coefficient of the surface vs. time opening model
% parachute.para(1, 1).nf = 12; % [/] Adimensional Opening Time
% parachute.para(1, 1).expulsionSpeed = 5; % [m/s] Expulsion Speed
%
% % parachute 2
% parachute.para(2, 1).name = 'MAIN chute';
% parachute.para(2, 1).surface = 7.34; % [m^2] Surface
% parachute.para(2, 1).mass = 1.05; % [kg] Parachute Mass
% parachute.para(2, 1).cd = 1.75; % [/] Parachute Drag Coefficient
% parachute.para(2, 1).cl = 0; % [/] Parachute Lift Coefficient
% parachute.para(2, 1).finalAltitude = 0; % [m] Final altitude of the parachute
% parachute.para(2, 1).cx = 1.2; % [/] Parachute Longitudinal Drag Coefficient
% parachute.para(2, 1).chordLength = 6; % [m] Shock Chord Length
% parachute.para(2, 1).chordK = 3000; % [N/m^2] Shock Chord Elastic Constant
% parachute.para(2, 1).chordC = 0; % [Ns/m] Shock Chord Dynamic Coefficient
% parachute.para(2, 1).m = 1; % [m^2/s] Coefficient of the surface vs. time opening model
% parachute.para(2, 1).nf = 8.7; % [/] Adimensional Opening Time
%
% %% PAYLOAD CHUTES
% % parachute 1
% parachute.para(1, 2).name = "Payload DROGUE";
% parachute.para(1, 2).surface = 0.11; % [m^2] Surface
% parachute.para(1, 2).mass = 0.15; % [kg] Parachute Mass
% parachute.para(1, 2).cd = 1.2; % [/] Parachute Drag Coefficient
% parachute.para(1, 2).cl = 0; % [/] Parachute Lift Coefficient
% parachute.para(1, 2).openingDelay = 1; % [s] drogue opening delay
% parachute.para(1, 2).finalAltitude = 300; % [m] Final altitude of the parachute
% parachute.para(1, 2).cx = 1.4; % [/] Parachute Longitudinal Drag Coefficient
% parachute.para(1, 2).chordLength = 1.5; % [m] Shock Chord Length
% parachute.para(1, 2).chordK = 7200; % [N/m^2] Shock Chord Elastic Constant
% parachute.para(1, 2).chordC = 0; % [Ns/m] Shock Chord Dynamic Coefficient
% parachute.para(1, 2).m = 1; % [m^2/s] Coefficient of the surface vs. time opening model
% parachute.para(1, 2).nf = 12; % [/] Adimensional Opening Time
% parachute.para(1, 2).expulsionSpeed = 10; % [m/s] Expulsion Speed
%
% % parachute 2
% parachute.para(2, 2).name = "Payload AIRFOIL";
% parachute.para(2, 2).mass = 0.50; % [kg] Parachute Mass
% parachute.para(2, 2).finalAltitude = 0; % [m] Final altitude of the parachute
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment