{{Macro
|Name=Macro AeroFoil
|Icon=AeroFoil.png
|Description=AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, and DAT or CSV Files.
|Author=Melwyncarlo
|Date=2021-03-10
|Version=2.0.1
|FCVersion=(v0.17)
|Download=[https://github.com/melwyncarlo/AeroFoil/blob/main/AeroFoil.zip?raw=true AeroFoil.zip]
|Links=[https://github.com/melwyncarlo/AeroFoil Personal Github - AeroFoil]
[https://github.com/FreeCAD/FreeCAD-macros/tree/master/ObjectCreation FC Github - AeroFoil]
[https://forum.freecadweb.org/viewtopic.php?f=22&t=56162 FC Forum - AeroFoil]
}}
AeroFoil is a user-created macro to be used within the FreeCAD application. AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, as well as imported DAT or CSV files.
This is the AeroFoil Macro icon.
The AeroFoil Macro can be downloaded using the in-built Addon Manager within the FreeCAD software.
- Airfoil points refinement
- Multiple airfoil copy generation
- 2D curves and planar face output
- DWire/PolyLine and BSpline output
- Sketcher workbench and Draft workbench output
- Fully constrained sketches in Sketcher workbench
- Split (upper and lower) airfoil curves generation
- Ready-made NACA 4-digit and 5-digit solvers
- Symmetric and asymmetric curve functions parser
- DAT text file and CSV spreadsheet data parser
- Chord length input in mm, cm, m, in., ft, and yards
AeroFoil object properties (read-only) : {{Properties Title|Base}}
-
Airfoil Type|String
-
Airfoil Chord Length|Length
-
Design Curve Type|String
-
Number Of Points|Integer
[[File:AeroFoil-output-types.gif%7Cframe%7Ccenter%7Calt=AeroFoil-output-types.gif|
Caption : AeroFoil Macro Output Types
]]
[[File:AeroFoil-input-types.gif%7Cframe%7Ccenter%7Calt=AeroFoil-input-types.gif|
Caption : AeroFoil Macro Input Types
]]
AeroFoil can be installed manually, similar to Windows installation, or by using the command terminal and its relevant commands as mentioned in the INSTALL file.
By default, the Linux command terminal can be launched by pressing the following keyboard keys simultaneously :
Control + Alt + T
AeroFoil can be installed with the help of the following two steps :-
- Download the AeroFoil.zip file.
- Extract the ZIP file's contents into the FreeCAD User Macro directory location.
By default, the FreeCAD User Macro directory should be located at :
AeroFoil can be loaded by performing the following steps :-
- Launch the FreeCAD application.
- Go to Macro → Macros ....
- Click on the User macros tab in the pop-up dialog box.
- Select {{FileName|AeroFoil.FCMacro}}.
- Click on Execute.
Once the AeroFoil macro has been loaded, follow the instructions in the respective dialog boxes, fill in the relevant inputs, and navigate accordingly. In case of error or warning, you will automatically be notified of the same. In case you are notified to report an unexpected error, communicate the error by mentioning the FreeCAD version, tracing the steps taken, and mentioning whether (and how much) or not any ouput was generated.
(1) Performing the macro operation with custom points and refinement produces no visible changes. (2) The AeroFoil object properties are only visible on the FreeCAD software version 0.19. On older versions, you will be shown a warning on the console. This warning will not affect the output.
- For the NACA airfoils, the last two digits (combined) cannot have a value of zero; thickness cannot be a zero value.
- The NACA 5-digit airfoils are limited to the following models ('XX' denotes the last two digits, thickness, of the airfoil) :
- 210XX
- 220XX
- 221XX
- 230XX
- 231XX
- 240XX
- 241XX
- 250XX
- 251XX
- For curve functions, only use the preset characters and functions.
- For curve functions,
$2 * x$ is correct, whereas$2x$ is incorrect. - For curve functions,
$y = f(x)$ ranges from 0 to 1, both inclusive. - For curve functions, the trigonometric theta is in degrees (θ °)
- For curve functions, the trigonometric theta ranges from 0° to 360°, subject to computational limits.
- Curves or points that are intersecting between 0 and 1, both exclusive, will return an error.
- Curves or points that contain the bottom airfoil data cannot be mirrored
- For file imports, it is suggested to leave the line, row, and column numbers to their default values, unless you are well-informed.
- Increasing the refine and quantity parameters increases the computation time and resources.
- Absolute chord length, in millimetres, cannot be less than 1mm.
[[File:AeroFoil-preset-functions.png%7Cframe%7Ccenter%7Calt=AeroFoil-preset-functions.png|
Caption : Preset Characters and Functions
]]
{{MacroCode|code=
Title = "AeroFoil"
Author = "Melwyncarlo"
Version = "2.0.1"
Date = "2021-03-10"
Comment = "AeroFoil creates airfoil curves and faces using "
"pre-defined models, algebraic functions, "
"and DAT or CSV Files"
Web = "https://github.com/melwyncarlo/AeroFoil"
Wiki = "http://www.freecadweb.org/wiki/index.php?title=Macro_AeroFoil"
Icon = "AeroFoil_UI_Files/AeroFoil.svg"
Help = "Click on the AeroFoil button/macro, and follow the "
"instructions in the subsequent dialog boxes."
Status = "stable"
Requires = "Freecad >= v0.17"
Communication = "https://github.com/melwyncarlo/AeroFoil/issues"
Files = "AeroFoil_UI_Files/AeroFoil_Initial_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_NACA4Digit_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_NACA5Digit_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_CurvesInput_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_PointsInput_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_DATInput_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_CSVInput_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_FileLoad_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_Final_Dialog.ui, "
"AeroFoil_UI_Files/AeroFoil_Math_Functions_Box.ui, "
"AeroFoil_UI_Files/AeroFoil_mfb_img.gif, "
"AeroFoil_UI_Files/AeroFoil.svg"
}}
[1] AeroFoil Github Repository [2] FreeCAD Macros Github Repository - AeroFoil [3] FreeCAD Forum Discussion Page - AeroFoil [4] Airfoil Tools contains about 1,638 different airfoils. [5] UIUC Airfoil Coordinates Database contains nearly 1,600 different airfoils.
documentation index > Macro AeroFoil