Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MSA Toolkit
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
Aerodynamics and Flight Dynamics
Mission Analysis
MSA Toolkit
Commits
2080b6ae
Commit
2080b6ae
authored
9 months ago
by
Marco Luigi Gaibotti
Browse files
Options
Downloads
Patches
Plain Diff
[code-refactoring][automatricesProtub] Added options and output arguments
parent
d1f53902
Branches
arp
Branches containing commit
No related tags found
1 merge request
!11
Merge code-refactoring into master
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autoMatricesProtub/mainAutoMatProtub.m
+9
-6
9 additions, 6 deletions
autoMatricesProtub/mainAutoMatProtub.m
with
9 additions
and
6 deletions
autoMatricesProtub/mainAutoMatProtub.m
+
9
−
6
View file @
2080b6ae
function
mainAutoMatProtub
(
rocket
)
function
[
coeffsTot
,
coeffsTotHighAOA
]
=
mainAutoMatProtub
(
rocket
,
options
)
arguments
arguments
rocket
=
[];
% Empty by default
rocket
=
[];
% Empty by default
options
.
saveVars
logical
=
true
end
end
%% PATH
%% PATH
currentPath
=
fileparts
(
mfilename
(
"fullpath"
));
currentPath
=
fileparts
(
mfilename
(
"fullpath"
));
...
@@ -86,11 +87,13 @@ input = createDissileInput(rocket, autoMatSettings.vars);
...
@@ -86,11 +87,13 @@ input = createDissileInput(rocket, autoMatSettings.vars);
[
coeffsTot
,
finsCN
]
=
dissileMatcom
(
input
);
[
coeffsTot
,
finsCN
]
=
dissileMatcom
(
input
);
%% SAVE DATA
%% SAVE DATA
if
options
.
saveVars
saveVars
(
autoMatSettings
.
varsHighAOA
,
rocket
,
mission
,
coeffsTotHighAOA
,
finsCNHighAOA
,
...
saveVars
(
autoMatSettings
.
varsHighAOA
,
rocket
,
mission
,
coeffsTotHighAOA
,
finsCNHighAOA
,
...
chosenXcg
,
xcgTime
,
autoMatSettings
.
saveFinsCN
,
'aeroCoefficientsHighAOA'
);
chosenXcg
,
xcgTime
,
autoMatSettings
.
saveFinsCN
,
'aeroCoefficientsHighAOA'
);
saveVars
(
autoMatSettings
.
vars
,
rocket
,
mission
,
coeffsTot
,
finsCN
,
...
saveVars
(
autoMatSettings
.
vars
,
rocket
,
mission
,
coeffsTot
,
finsCN
,
...
chosenXcg
,
xcgTime
,
autoMatSettings
.
saveFinsCN
,
'aeroCoefficients'
);
chosenXcg
,
xcgTime
,
autoMatSettings
.
saveFinsCN
,
'aeroCoefficients'
);
AMtime
=
toc
;
end
AMtime
=
toc
;
fprintf
(
'Aerodynamics Prediction completed \n'
)
fprintf
(
'Aerodynamics Prediction completed \n'
)
fprintf
(
'Elapsed time for aerodynamic matrices computation: %3.3f s\n'
,
AMtime
);
fprintf
(
'Elapsed time for aerodynamic matrices computation: %3.3f s\n'
,
AMtime
);
\ No newline at end of file
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