Professional Documents
Culture Documents
How To Get A Wing Into Workbench
How To Get A Wing Into Workbench
How To Get A Wing Into Workbench
Introduction
D. Open the csv file in Notepad ++ and save a copy as a Normal Text
File with a *.txt extension.
E Read the (Notepad ++) text file within SolidWorks and create a
Curve Though X,Y,Z Points.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
Create a Sketch – Draw a surrounding box and then use the
Convert Entities command to make wing the profile part of sketch.
These basic steps up to, but not including, the stage of importing the
geometry into Ansys Workbench will be outlined in detail throughout the
remainder of this document. Further processing of the geometry within
Ansys Workbench will be detailed in a later document.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
A. Obtaining the 2d Coordinate Data
The initial data can be obtained from the UIUC (University of Illinois at
Urbana-Champaign) Airfoli Data Site. This can be easily accessed by
typing:
into a web browser. The actual page should be titled UIUC Airfoil Data
Site in the search results.
Click on the link and a banner page should appear entitled UIUC Applied
Aerodynamics Group.
Part of the way down the page will be the alphabetical characters A – Z.
These letters generally denote the first character in the aerofoil name
e.g. a NACA 0012 will obviously have the letter N has an initial letter.
Click on the appropriate letter (N) and a list of different aerofoil shapes
will appear. The NACA0012 may not be immediately visible in the list so
it may be necessary to scroll up or down a bit to find it but what is visible
in the list should be fairly close to its position.
Click on the label n0012.dat from the list. What happens next may be
computer specific but either:
i) a new window containing a list of formatted point data will appear; or,
In the first instance select all the data and copy it to the clipboard using
the normal procedures for doing so. Then progress to step B.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
Alternatively, if the file has been downloaded it will need to be opened
using Notepad. To do this click on the down arrow (1):
(1)
And then select Show in Folder. A file older will appear containing the
relevant file. This can be opened using Notepad. There is no need to do
any copy and pasting.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
B. Notepad Editing
Note that only a few of the data points have been shown in the figure
above. For the NACA0012 there are actually a total of 66 data points.
The first two data lines indicate the aerofoil name and the number of
datapoint pairs whilst the third line is blank. However, this is information
is not required and must be deleted from the list. Hence the data should
start from the initial coordinates:
Now save the Notepad file. By default the file should save as a *.txt file.
For example the file could be named NACA0012_Aerofoil.txt.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
C Editing Using Excel
Start up Excel in the usual manner. Use the Open procedure to locate
the *.txt file in the working directory.
or
When opening the file Excel will present a number of dialog menus (Text
Import Wizards) for file import. The appropriate options to use are:
Column Data Format => Do not Import Column (Skip) for the first
column only. The two remaining columns are imported as General
(clicking within the columns is used to select them.)
Finish
The data points are now displayed within Excel, with the first data pair
0, 0 appearing in row one.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
row 66 contains the values 1, 0.00126 in columns A, and B. Also row 67
is blank, and row 68 contains the values 0,0. Also scrolling to the very
bottom of the list shows that:
ii) Two surfaces i.e. a top surface and a bottom surface make up the
aerofoil geometry. The top surface is contained in the rows 1 to 66 whilst
the bottom surface is in rows 68 to 133. Note that the blank row 67 is
actually a discontinuity in the data.
iii) The X coordinates are range from 0 to 1 for the top surface and
repeat from 0 to 1 for the bottom surface.
d) a requirement of the CAD package that will be used is that the data
should be listed in a continuous “clockwise” manner. That is the X
coordinates should be listed 0 to 1 and then back to 0.
The first two steps are trivial. Insert a zero in cell C1 and copy this to all
cells in the column down to C133.
For convenience (this is not essential) on the next step the three cells in
row 67 can be filled.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
The next step involves using the Data – Sort command to rearrange the
data in rows 67 to 132 (one row has been deleted from the original 133)
so that they will achieve the required clockwise ordering.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
and the row 132 should contain the coordinates 0,0,0, whilst row 133 will
be blank.
Note that at the bottom of the worksheet window a new tab may have
appeared. In the view shown the original worksheet is labelled n0012
and the new tab is labelled Scaled. Changing the labels is entirely
optional but can be done by right clicking on the tabs and using the
Rename command.
Now select the cell A1 within the new sheet. Within that cell use the
formula:
=’n0012’!A1*2500
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
permissible to also copy the formula to the C column this will not affect
the values therein as they are all zeros anyway.
Now, use Save As to save the file as a comma separated values *.csv
file:
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
This is the file that will be opened in Notepad ++ to convert to a *.txt file
that can be opened in SolidWorks.
(Note, although it may appear to be possible to save the file directly out
of Excel as a *.txt file this approach will not work. The csv file format
inserts commas that are expected by SolidWorks between the
coordinate values. Saving it directly as *.txt does not do this.)
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
D.. Editing the Data in Notepad ++
From a file folder that displays your working directory right click on the
*.csv file and select Edit with Notepad ++ from the drop down dialog:
Open the file, and the data should be displayed similar to:
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
E. Creating Geometry in SolidWorks
A dialog box will appear that has empty cells for X,Y and Z coordinates.
What needs to be done is to specify the *.txt file to as input. You will
need to browse to your working directory and select the appropriate file.
However, the default file type that SolidWorks looks for is of *.sldcrv
format. Therefore the *.txt file will not be immediately visible. So click on
the down arrow to and select Text Files (*.txt) to enable visibility of this
file format.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
It should now be possible to select the appropriate file.
Once the correct file has been specified the dialog box should display
the XYZ coordinates being read from the *.txt file:
then there is a problem with the way the data has been formatted. In this
case retrace the earlier steps to find out where any error could have
occurred and correct any mistakes.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
Because the data points were created with non zero values in the first
and second column then the curve should be displayed in an orientation
that corresponds to the Front Plane within SolidWorks.
Note that sometimes it will be necessary to use the Zoom All icon in
order to see the complete aerofoil profile.
Now, pick on Front Plane from the history tree (usually on the left hand
side f the screen) and create a Sketch on that plane.
The aerofoil profile will be visible within the sketch however it will not be
possible at this stage to edit it (SolidWorks does not as yet recognise it
as part of its internal entity set.)
and select the aerofoil profile. This will make the geometry part of the
current sketch. The success of this operation will be signified by the
colour of the curves should turning from blue to black.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
(note aerofoil profile is shown before applying Convert Entities here.)
This can be done using the Corner Rectangle icon and defining
two opposing corners of a box that surrounds the aerofoil profile.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
The dimensions all start from a datum defined by the point at the leading
edge of the aerofoil.
What has been created is a box that is two and a half chord lengths in
front of the aerofoil’s leading edge, ten chord lengths behind, and three
chord lengths above and below the chord. These dimensions will not
necessarily ensure that at a subsequent meshing stage a “good” overall
mesh will created for the aerofoil geometry. This process is intended to
be iterative – that is we start with an initial guess, run an analysis, see
how good the results are, and then determine if changes need to be
made to obtain better results.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014
The reason for this dimension is that the final 3d mesh will have just one
cell throughout its thickness. This cell should be dimensioned so that
ideally it will be of approximately similar size to the smallest cell that
appears in the other two dimensions. This issue should become clearer
when the mesh is being created at a later stage.
Now save the file again but this time using a *.igs format.
(Note: IGES is a CAD file translation format that allows model data to be
transferred between different CAD software systems.)
This completes the process of creating the aerofoil geometry. The next
stages of meshing and analysis within Ansys Workbench will be detailed
within a further document.
Method for Creating Aerofoil Geometry for Import into an Ansys CFD Analysis
– D.A. Fisher Sept 2014