OK, I think I got ya. Have a look at this and let me know if it's close. I used the NACA0012 foil and sort of followed the graph in your image. If this is close to what your wanting, we'll have a starting point for me to explain how it was done. I'v attached the file that is in the pic.woodbuddha wrote:Hi Mark,
Thanks for the reply.I have FreeCAD 0.13 Rev 1828 installed on W7. The import airfoil feature is available and I have managed to import a NACA 0012 DAT file.
I'm unsure as to how to "loft" the foil to the plan shape in the attached image and the thickness. Do you think this can be done natively in FreeCAD? At this stage I would be happy to be able to use an image of the fin plan and manually draw around it in FreeCAD. Not sure if this is possible.
I think you can get what you want to do done in FreeCAD. So give it a try and when you get stuck, just ask. Keep in mind that when asking, it's always a real good idea to attach the file of the model your stuck on. And whenever starting a new topic for help, ALWAYS include your Help > About FreeCAD info. It tells us allot, not just the FreeCAD version, but which Python, Qt, OCC, etc. your using, and there are differences. If you haven't done so, check out some of the video tutorials. There are a good number of videos out there that you can follow along with and I found them to be quite helpful in reducing the learning curve. Once you get the basics, things will start to fly together.woodbuddha wrote:Hi Mark,
Yep. That looks like it.
@ jmaustpc - Thanks Jim. Hope you stick around, I'm sure you'll be able to answer some things better than I can.woodbuddha wrote:Thanks Mark and understood. Do you have quick suggestions on the best way to get started, what features to use, etc? I've been looking through video and written tutorials and I can't seem to find much on this type of modelling. Any help would be appreciated.
Code: Select all
#================================================= # Import & Scale .dat Formatted Airfoil # Original scaling script by shoogen, modified for GUI input #================================================= from PyQt4 import QtCore, QtGui import FreeCAD, FreeCADGui, Draft import importAirfoilDAT # Selcet .dat airfoil data file to be imported filename = QtGui.QFileDialog.getOpenFileName(QtGui.qApp.activeWindow(),'Open An Airfoil File','*.dat') class p(): def proceed(self): try: # start Original Script scalefactor=float(self.s1.text()) f1=str(filename) importAirfoilDAT.insert(f1,"Unnamed") # imports one Draft Wire named and labeled 'DWire' oldobject = FreeCAD.ActiveDocument.DWire # imported object matrix=FreeCAD.Matrix() matrix.scale(scalefactor,scalefactor,scalefactor) #scale uniformly newshape=oldobject.Shape.copy() # extract the shape from the imported airfoil newshape.transformShape(matrix) # scale the Shape newobject=FreeCAD.ActiveDocument.addObject('Part::Feature','Airfoil1') #create a new Object for the resized shape newobject.Shape=newshape # assign the resized shape oldobject.ViewObject.Visibility=False #hide the old object # end Orignial Script except: FreeCAD.Console.PrintError("Error, not a valid .dat file\n") self.close() def close(self): self.dialog.hide() def __init__(self): self.dialog = None self.s1 = None # Make dialog box and get the scale size self.dialog = QtGui.QDialog() self.dialog.resize(260,100) self.dialog.setWindowTitle("Airfoil Import Scale") la = QtGui.QVBoxLayout(self.dialog) t1 = QtGui.QLabel("Chord Length") la.addWidget(t1) self.s1 = QtGui.QLineEdit() la.addWidget(self.s1) okbox = QtGui.QDialogButtonBox(self.dialog) okbox.setOrientation(QtCore.Qt.Horizontal) okbox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) la.addWidget(okbox) QtCore.QObject.connect(okbox, QtCore.SIGNAL("accepted()"), self.proceed) QtCore.QObject.connect(okbox, QtCore.SIGNAL("rejected()"), self.close) QtCore.QMetaObject.connectSlotsByName(self.dialog) self.dialog.show() self.dialog.exec_() p()