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
9d0cd8a5
Commit
9d0cd8a5
authored
1 month ago
by
Marco Luigi Gaibotti
Browse files
Options
Downloads
Patches
Plain Diff
[alpha-phi] Added test directly with Coeficient
parent
6d5984ea
No related branches found
No related tags found
1 merge request
!19
Draft: Implementation of Alpha phi
Pipeline
#11400
failed
1 month ago
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
common
+1
-1
1 addition, 1 deletion
common
utils/tests/alphaPhi/testRotation.m
+8
-0
8 additions, 0 deletions
utils/tests/alphaPhi/testRotation.m
with
9 additions
and
1 deletion
common
@
1bc8c371
Compare
bc61b5b9
...
1bc8c371
Subproject commit bc
61b5b9265bde0f30dfc53db0bf5820e3c69b04
Subproject commit
1
bc
8c371f3852dab849aa6db901c8f275dfe025f
This diff is collapsed.
Click to expand it.
utils/tests/alphaPhi/testRotation.m
+
8
−
0
View file @
9d0cd8a5
...
@@ -23,6 +23,8 @@ interpolant = griddedInterpolant(...
...
@@ -23,6 +23,8 @@ interpolant = griddedInterpolant(...
%% Validate in multiple cases coefficients by n*section
%% Validate in multiple cases coefficients by n*section
% uncomment * if manually outputting err from Coefficient
n
=
100
;
n
=
100
;
mach
=
rand
(
n
,
1
);
mach
=
rand
(
n
,
1
);
...
@@ -32,11 +34,16 @@ sections = ap.geometry.nPanel;
...
@@ -32,11 +34,16 @@ sections = ap.geometry.nPanel;
% Generic alpha-phi
% Generic alpha-phi
alpha
=
rand
(
n
,
1
)
*
20
;
alpha
=
rand
(
n
,
1
)
*
20
;
phi
=
rand
(
n
,
1
)
*
360
;
phi
=
rand
(
n
,
1
)
*
360
;
beta
=
rand
(
n
,
1
)
*
20
-
10
;
err1
=
nan
(
6
,
n
);
err1
=
nan
(
6
,
n
);
altitude
=
rand
(
n
,
1
)
*
3000
;
for
i
=
1
:
n
for
i
=
1
:
n
[
coeffsR
,
coeffs
]
=
computeCoeffs
(
sections
,
alpha
(
i
),
mach
(
i
),
phi
(
i
),
abk
(
i
),
interpolant
);
[
coeffsR
,
coeffs
]
=
computeCoeffs
(
sections
,
alpha
(
i
),
mach
(
i
),
phi
(
i
),
abk
(
i
),
interpolant
);
err1
(:,
i
)
=
abs
(
coeffs
-
coeffsR
);
err1
(:,
i
)
=
abs
(
coeffs
-
coeffsR
);
% uncomment if error calculation manually added internally
% [~, err1(:, i)] = ap.get(alpha(i)*pi/180, mach(i), beta(i)*pi/180, altitude(i), abk(i), 1.7);
end
end
% Extrapolation (best near)
% Extrapolation (best near)
...
@@ -46,6 +53,7 @@ phi = 247;
...
@@ -46,6 +53,7 @@ phi = 247;
abk
=
1.3
;
% This should actually never happen
abk
=
1.3
;
% This should actually never happen
[
coeffsR
,
coeffs
]
=
computeCoeffs
(
sections
,
alpha
,
mach
,
phi
,
abk
,
interpolant
);
[
coeffsR
,
coeffs
]
=
computeCoeffs
(
sections
,
alpha
,
mach
,
phi
,
abk
,
interpolant
);
err2
=
abs
(
coeffs
-
coeffsR
);
err2
=
abs
(
coeffs
-
coeffsR
);
% Edge cases (phi = 120*n)
% Edge cases (phi = 120*n)
...
...
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