Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
matlab_airfoil_toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Aerospace and Mechanical Engineering
matlab_airfoil_toolbox
Commits
f4c15847
Verified
Commit
f4c15847
authored
2 years ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
refact(Airfoil)!: remove useless methods
parent
ea1163b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#8642
passed
2 years ago
Stage: static analysis
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
+af_tools/@Airfoil/Airfoil.m
+7
-15
7 additions, 15 deletions
+af_tools/@Airfoil/Airfoil.m
+af_tools/@Airfoil/addextremereynolds.m
+0
-45
0 additions, 45 deletions
+af_tools/@Airfoil/addextremereynolds.m
+af_tools/@Polar/Polar.m
+3
-6
3 additions, 6 deletions
+af_tools/@Polar/Polar.m
with
10 additions
and
66 deletions
+af_tools/@Airfoil/Airfoil.m
+
7
−
15
View file @
f4c15847
...
...
@@ -70,8 +70,6 @@ classdef Airfoil < handle
% If no name is given, it will be retreived from the coordFile. See main class help
% for details.
self
.
Polar
=
af_tools
.
Polar
;
if
nargin
>
0
&&
~
isempty
(
coordFile
)
import
af_tools
.*
...
...
@@ -88,27 +86,21 @@ classdef Airfoil < handle
self
.
name
=
Dat
.
airfoil
;
end
end
self
.
Polar
=
af_tools
.
Polar
;
end
% ---------------------------------------
% ---------------------------------------
------
% Other methods
function
self
=
loadpolar
(
self
,
polarFile
)
self
.
Polar
=
self
.
Polar
.
loadpolar
(
polarFile
);
self
.
Polar
=
af_tools
.
Polar
.
loadpolar
(
polarFile
);
end
function
self
=
polypolar
(
self
,
clPoly
,
cdPoly
)
self
.
Polar
=
self
.
Polar
.
polypolar
(
clPoly
,
cdPoly
);
self
.
Polar
=
af_tools
.
Polar
.
polypolar
(
clPoly
,
cdPoly
);
end
function
self
=
extendpolar
(
self
)
self
.
Polar
=
self
.
Polar
.
extendpolar
();
end
function
self
=
analyze
(
self
)
self
.
Polar
=
self
.
Polar
.
analyze
();
end
self
=
addextremereynolds
(
self
)
end
end
This diff is collapsed.
Click to expand it.
+af_tools/@Airfoil/addextremereynolds.m
deleted
100644 → 0
+
0
−
45
View file @
ea1163b1
function
obj
=
addextremereynolds
(
obj
)
% ADDEXTREMEREYNOLDS Adds dupplicate polars for extreme Reynolds number.
% In order to make a proper interpolation later on, this method duplicates the polars for the
% lowest and highest Reynolds and assign these respectively to Re = 1 and Re = 1e15.
% This will allow extrapolation outside of the original Range by symply considering the Polars
% to be Reynolds-independant if the Reynolds is very low or very high.
%
% Note:
% If we have only one polar (i.e. one Reynolds), then this method does not do anything.
% -----
% <a href="https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox">Documentation (online)</a>
% -------------------------------------------
% (c) Copyright 2022 University of Liege
% Author: Thomas Lambert <t.lambert@uliege.be>
% ULiege - Aeroelasticity and Experimental Aerodynamics
% MIT License
% Repo: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox
% Issues: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/issues
% ----------------------------------------------------------------------------------------------
% Defaults extreme Reynolds
DEF
.
LOW_REYNOLDS
=
1
;
DEF
.
HIGH_REYNOLDS
=
1e15
;
% Add duplicate polars for extreme Reynolds
if
~
isempty
(
obj
.
Polar
)
if
length
(
obj
.
Polar
.
reynolds
)
>
1
obj
.
Polar
.
reynolds
=
[
DEF
.
LOW_REYNOLDS
,
obj
.
Polar
.
reynolds
,
DEF
.
HIGH_REYNOLDS
];
obj
.
Polar
.
aoa
=
duplicateextremes
(
obj
.
Polar
.
aoa
);
obj
.
Polar
.
cl
=
duplicateextremes
(
obj
.
Polar
.
cl
);
obj
.
Polar
.
cd
=
duplicateextremes
(
obj
.
Polar
.
cd
);
obj
.
Polar
.
cm
=
duplicateextremes
(
obj
.
Polar
.
cm
);
end
end
end
function
array
=
duplicateextremes
(
array
)
% DUPLICATEEXTREMES Duplicates the first and last columns of an array
array
=
[
array
(:,
1
),
array
,
array
(:,
end
)];
end
This diff is collapsed.
Click to expand it.
+af_tools/@Polar/Polar.m
+
3
−
6
View file @
f4c15847
...
...
@@ -176,12 +176,9 @@ classdef Polar < handle
% ----------------------------------------------------------------------------------------------
methods
(
Static
)
self
=
loadpolar
(
polarFile
)
% Load polar from file
end
% ----------------------------------------------------------------------------------------------
methods
(
Static
)
self
=
loadpolar
(
self
,
polarFile
)
% Load polar from file
self
=
polypolar
(
polyCl
,
polyCd
)
% Create polar using polynomial coefficients
end
end
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