How to Make a Smooth Wing from an Airfoil Section in FreeCAD
16.1 هزار بار بازدید -
4 سال پیش
-
This video shows how to
This video shows how to make a smooth wing part in FreeCAD from an airfoil section defined by coordinates in a file. (see the bottom of this description for a workaround if you're using Windows).
The wing has sweep, taper and twist, and the thickness to chord ratio varies across the span. The result is a smooth 3D shape that follows the shape of the loaded airfoil section.
There's a blog article accompanying this video that you can find here:
http://www.ittextra.com/techPop.jsp?id=69
From the article website you can download the macro and airfoil section used in this video and the final part. Alternatively, download directly from here:
http://www.ittextra.com/downloads/WingFromAirfoil.zip
Feel free to leave any comments or questions on the video or the article below.
------------------------------ Windows workaround.
I found that my macro does not work on a vanilla FreeCAD install on Windows. It seems to be related to tkinter but I haven't had chance to work out why yet. You can work around this by hard-coding the file path to the airfoil file as follows:
Comment out the lines that mention tkinter and the two lines starting "root" as indicated below
#import tkinter as tk
#from tkinter.filedialog import askopenfilename
#root = tk.Tk()
#show askopenfilename dialog without the tkinter window
#root.withdraw()
Comment out the file_name line and replace with the hard-coded path to your file as shown.
#default is all file types
#file_name = askopenfilename()
file_name = "C:/Users/MyUser/Documents/airfoils/NACA0012.dat"
Save this macro and run. You'll need to change the path each time you want to use a different airfoil section. Hope this works for you.
4 سال پیش
در تاریخ 1399/12/30 منتشر شده
است.
16,124
بـار بازدید شده