Skip to content

Commit

Permalink
Added license boiler plate in files and packaged license file with bi…
Browse files Browse the repository at this point in the history
…naries
  • Loading branch information
dciliberti committed Apr 16, 2020
1 parent 502fea6 commit b092add
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/LinearInterpWithClipExtrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
% Like INTERP1 function, but clip extrapolated results to available data.
% Input V must be a vector, this function does not work yet if V is a
% multi-dimensional array.
%
% Copyright (C) 2020 Danilo Ciliberti [email protected]
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>

vq = interp1(x,v,xq);

Expand Down
4 changes: 3 additions & 1 deletion src/airfoilDataExe.prj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@
<fileset.resources>
<file>${PROJECT_ROOT}\Database</file>
</fileset.resources>
<fileset.package />
<fileset.package>
<file>C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\LICENSE</file>
</fileset.package>
<fileset.depfun>
<file>${PROJECT_ROOT}\airfoilDatabase.m</file>
<file>${PROJECT_ROOT}\LinearInterpWithClipExtrap.m</file>
Expand Down
3 changes: 2 additions & 1 deletion src/airfoilDataPackage.prj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<deployment-project plugin="plugin.apptool" plugin-version="1.0">
<configuration build-checksum="1787414199" file="C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\src\airfoilDataPackage.prj" location="C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\src" name="airfoilDataPackage" target="target.mlapps" target-name="Package App">
<configuration build-checksum="25243528" file="C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\src\airfoilDataPackage.prj" location="C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\src" name="airfoilDataPackage" target="target.mlapps" target-name="Package App">
<param.appname>airfoilData</param.appname>
<param.authnamewatermark>Danilo Ciliberti</param.authnamewatermark>
<param.email>[email protected]</param.email>
Expand Down Expand Up @@ -41,6 +41,7 @@
<file>${PROJECT_ROOT}\LinearInterpWithClipExtrap.m</file>
</fileset.depfun>
<fileset.resources>
<file>C:\Users\Danilo\Documents\MATLAB\experimentalAirfoilDatabase\LICENSE</file>
<file>${PROJECT_ROOT}\Database</file>
</fileset.resources>
<fileset.package />
Expand Down
16 changes: 16 additions & 0 deletions src/airfoilDatabase.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
function [localClMax, localClAlfa, localAlfaStar, localAlfaStall, localClZero,...
localAlfaZeroLift, localCdMin, localK, localCli, localCmc4] = ...
airfoilDatabase(numberOfSections,airfoilType,localReynolds,thicknessRatio)
% AIRFOILDATABASE calls the HDF database of airfoil experimental data.
%
% Copyright (C) 2020 Danilo Ciliberti [email protected]
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>

%% database load
Cl_max_naca = h5read('Database/AerodinamicParameters_vs_t_vs_FamilyOfWingSection.h5','/Cl_max/data')';
Expand Down
16 changes: 16 additions & 0 deletions src/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
% experimental data. Input data are airfoil type (chosen among 4-digits,
% 5-digits, 6-series, and supercritical, the first three can be symmetric
% or asymmetric), Reynolds number and relative thickness.
%
% Copyright (C) 2020 Danilo Ciliberti [email protected]
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>

close all; clear; clc

% Input data
Expand Down

0 comments on commit b092add

Please sign in to comment.