Front Wing Tutorial

From GTMS
Revision as of 04:44, 11 November 2025 by Jfd (talk | contribs) (Added some more about the cascades)

XFLR5

GTMS leverages an open-source software called XFLR5 for design and simulation of 2D Airfoils. Download the latest or most recommended version. Your computer will likely give you a warning that the software isn't safe. It is, just hit the more info button to allow it to run. Follow the steps below to create and analyze a two-dimensional airfoil.

  1. Open XFLR5. You'll be met with a blank screen
  2. Navigate to Module -> Direct Foil Design at the top left of the screen. You should see an interface that looks like this:
  3. Click to drag the points you see on screen to make a new spline shape. Yes, it will likely look like a mess your first time making one. You likely barely know what a "good" airfoil is supposed to look like. That's okay! We have resources for that, and this tutorial is just to get familiar with the design procedure. Here's what mine looks like, if you want a reference:
    Note that you can change the appearance of your spline by clicking on the "style" tab on the table below your airfoil.
  4. Navigate to Splines -> Store Splines as Foil in the top left. Enter a name with the naming convention (initials)_(type)_(descriptor). Type for our case is sort of ambiguous, but know that "primary", "secondary", and "tertiary" are common designations for the first, second, and third elements of a wing. They are usually abbreviated as "P", "S", and "T". Equally as valid is element 1, element 2, and element 3 which shorten to E1, E2, and E3 respectively. I named the above airfoil "JD_E3_Example".
  5. Navigate to Module -> Direct Foil Analysis. You'll see an interface that looks like this:
  6. Navigate to Analysis -> Batch Analysis. It may be a bit confusing for those less experienced from here. Batch analysis allows us to test our airfoil at multiple angles of attack and at multiple Reynolds Numbers. The UI will look like this:
    First, set Min Alpha to -18 and Max Alpha to 6. This defines the range of angles of attack we simulate. Change the increment to 0.500. For Reynolds Numbers, calculate a good range of numbers between 10 and 60 mph at sea level conditions. Assume a characteristic length of 1 m. Use the 1976 Standard Atmosphere Calculator to determine dynamic viscosity and density at sea level. One of my personal favorite websites that one, love the little fishes they have at the top. Click the checkbox for Initialize BLs between polars and Store operating points. Change the number of threads such that your computer has four threads available. finally... HIT ANALYZE
  7. Exit out of the batch analysis window. You should see the graphs populated with data like so:
    Now what? You just completed your first airfoil simulation! Click and drag the graphs to bring more data into view. Click the dropdown on the left hand side (in the screenshot, the row that says "JD_E3_Example". Clicking the x's will show or hide the data for a specific Reynolds Number of a specific angle of attack point.
  8. SAVE YOUR PROJECT. I didn't, literally just as I was making the tutorial, and lost my progress.

Check-in questions before moving to the next section:

  • What is the general trend of Cl versus alpha? Linear? Exponential?
    • What is Cl or Cd anyway?
  • What is the trend for Cd versus alpha?
  • How do these relationships correlate? E.g., what is the relationship between Cl and Cd? Is there a point at which that relationship changes?
  • How do the trends differ for different Reynolds Numbers?
  • How can I improve airfoil lift? How can I reduce drag?

XFLR5 Export / Solidworks Import

Now that you've designed an airfoil and completed analysis on it, its time to take it to Solidworks. Follow the steps to obtain a generic sketch in Solidworks with your airfoil profile.

  1. Clone a local view of "Airfoil-.DAT-Inverter" from GitHub. This section will require you to create a GitHub enterprise account with your Gatech account information. Once this account is created, message a lead asking for GitHub access. They'll need to send you an invite to join the organization. Once you're on, here's the steps to make a local view:
    1. Open command prompt and navigate to a directory in which you want this Matlab tool (cd "C:\ahoosian45\Example_Folder\")
    2. Run the command "git clone https://github.com/username/repo.git subfolder-name", where the URL is the URL of the repository online
    3. You're good! If you want you can listen to more about using GitHub through this passive-aggressive video!
  2. Open "dat_inverter_notebook.mlx" in Matlab. This is the main live script that will take the exported .dat file from XFLR5, scale the values, and convert to .txt which is readable by Solidworks.
  3. Lets go back to XFLR5. To export your spline, navigate to Splines -> Export Splines to File. Save the .dat file with the same name as the spline to the directiory "...Airfoil-.DAT-Inverter/input_airfoils"
  4. Hit run on the entire "dat_inverter_notebook.mlx" script. At the end of the script, you'll see a bunch of graphs with some example airfoils and your new airfoil. If you don't see your airfoil, you did something wrong.
  5. Open Solidworks. If you haven't already, follow this onboarding document to setup the proper GTMS Solidworks Templates
  6. Create a new GTMS part
  7. Navigate to Features -> Curves -> Curve through XYZ Points. You are not creating a sketch yet. curve import is a feature outside of sketch creation.
  8. Hit "Browse" and navigate to the folder "......Airfoil-.DAT-Inverter/solidworks_txt". You should see your converted spline .txt file in this folder. Select it and hit ok
  9. Tada!

3-D CAD (Setup)

The airfoil profile is the only import component necessary to construct CAD of your front wing. This generally applies to all aerodynamic parts, as any other element you need can be constructed by curvature you design.

DISCLAIMER: CAD is hard. This tutorial is not intended to be an "introduction to CAD". The steps should be clear enough to follow as a beginner, but at times will likely feel un-intuitive if you're knew to CAD.

Sketching and Ideas

When in a design cycle, you really should try to draw or document your ideas before you CAD them. There's a few reasons as to why;

  1. Figure out what it is you're actually thinking. Too often, even with myself, aero engineers have an idea for a part, spend a day trying to get the CAD to work, and end up with something completely different to what they originally thought of. Corners are often cut just to make the part quicker. When you can help it, avoid doing this by sketching so you know exactly what CAD you want. What dimensions are important? What curves will define my part? Decide this before throwing darts at the CAD board.
  2. Decide on structures and manufacturing points. Can we even build this? It's okay to design parts that are floating for aero development, but you should have at least one idea in your mind on how this would eventually be attached to the car. There is no point otherwise.
  3. Is it stupid. Stupid is relative, but sometimes drawing out a part makes it a LOT more clear as to what you can accomplish. Say you want some crazy endplate design. When you try to draw it out, you should be able to see how the dimensions of the design work with each other, and what parts need to be compromised. Do things actually align with, say, the tire or the sidepod inlet? If, instead, you draw it out and what you're able to achieve looks like spaghetti in space, its probably dumb to some degree.

tl;dr do a drawing so you know the part works before CADing. No specific tips or steps here, every design has their own process.

Bounding Box

We'll be working with the CAD file you've just imported your airfoil into. The first step in a design is understanding your constraints. We'll put these into your part now.

  1. The "bounding box" is a design space for aerodynamic components in FSAE. The box is outlined in section T.7 of the FSAE rules. The box is largely dictated by wheel position, so we must define that first.
    1. Create a sketch on "GTMS_TOP". The origin of the part is located on the ground plane and is on-plane with the vertical front axle plane. This means that we can define track width using the origin as the midpoint. Create a centerline that does so.
    2. Dimension the line to 48 inches. This is the base track width for the majority of our cars.
    3. Create a rectangle based on the size of our tires. We use the 16x7.5" Hoosier R20's (Last updated 10/27/2025). This sketch serves as the "shadow" of our tire.
  2. Create another sketch on "GTMS_TOP", which represents our ground plane. Make this sketch while referencing the rules to ensure the bounding box lines up. Ask yourself what is the reason for adding 1 inch of clearance to the actual rules.
  3. Extrude the box upwards by 250 mm minus 1 inch
  4. Make a sketch on the top of the new box. Highlight the top of the box and go to Sketch -> Convert Entities
  5. Use the trim and line tools to create a rectangle that looks like this:
  6. Extrude this box by 250mm
  7. Go to solid bodies and right click the box. Make the box transparent.
  8. Your front wing bounding box is now complete with 1 in. tolerance in all dimensions

References

Another crucial constraint we need to model is interferences with the rest of the car. Below is a methodology for importing reference surfaces for the rest of the car into the part file.

ASIDE: The following process is typically done within some larger assembly that already exists, e.g. F26_AE_SimAssembly. For this tutorial (and since PDM is down while I'm making this), we'll use a generic assembly.

  1. Create a reference assembly. Any normal assembly will do. We will delete this reference assembly after use.
  2. Include your front wing part and an part you want as a reference into the assembly. This is done using this command:
  3. MATE BOTH PART ORIGINS TO THE ORIGIN OF THE ASSEMBLY. This is the most important part. We'll be utilizing something called "model in place" where the origin for every part in our assembly is shared. Feel free to look it up and how it's different from modeling with mates.
  4. Right click the front wing file and hit "Edit Component". The icon will be a yellow Tetris piece with a blue square and a pencil. When selecting this, your part being edited should show a blue feature tree like so:
    You'll notice a few things here. First, I am using the F26 spaceframe as my only reference part. Also, you'll see that this part is now transparent. This means that the part is in the assembly but not being edited.
  5. Roll back your feature tree so that no parts are showing
  6. Go to the "surfaces" tab and hit "offset surface". Set the offset distance to zero. You should see that instead of "offset", the operation says "copy".
  7. Click on everything! Yes, you have to individually select any part of the existing geometry that you want to be able to reference or see when designing your front wing. Sorry. When this is done, hit the green checkmark. Any part you selected should appear in solid grey, as these surfaces are now copies that are contained in your front wing file.
  8. If everything looks good, close the editing window in the assembly and navigate back to your part file. If not, edit the offset geometry until you have every surface you want.
  9. Right click on the part, navigate to "External References" and hit "break all". This ensures that any further adjustments made to the original geometry do not affect your part file.
    You might be thinking right now "Hey stupid internet man, wouldn't I want the references to update to see if my part contacts anything?" To that I would say, firstly, I'm not just Internet man. Secondly, yes, in a perfect world you have references that update with any part. In practice, this rarely works. Members of the team often will start to use a new part, break the original part, or remove a surface from their part that you were referencing. All of these things will cause your reference to break, which risks the rest of your part breaking if you used the reference in any way outside of a visual reference. TL;DR count on CAD getting broken and break references in advance. Confirm your part still works and clears before manufacturing.
  10. Rename your part to identify it. This is important considering this reference has been broken forever.

3-D CAD (Wing Construction)

Freaking finally, the fun part. Sort of. A good wing design (or any aero part) will have a good amount of reference geometry to define airfoil cascade sections and lofting areas in advance. What that means is more boring plane work before actually constructing the part. Trust that you will thank yourself for doing these setup steps.

Airfoil Preparation

  1. Your airfoils aren't usable in their current "curve" format. We'll need to transfer them onto a sketch. Make a sketch on GTMS_TOP. Highlight the airfoil you want and hit "Convert Entities"
  2. You'll see that the curve is now a part of your sketch. Delete the "On Edge" relation.
  3. We now begin to define our airfoil in the sketch. This step is crucial for properly CADing airfoils. Begin by drawing a construction line from the leading edge upwards. Draw another construction line from the leading edge to the trailing edge.
  4. Add a perpendicular relation between the two lines. Then add a tangent relation to the vertical line and the airfoil. Finally, add an arbitrary dimension to the horizontal line. Notice that the horizontal line now defines your chord and the dimension you added is the chord length.
    Try to adjust this airfoil by moving it from different points. You should notice that it can only be translated, not scaled in any way.
  5. We have, like, never done this, but PLEASE label your airfoil with its name in the sketch. Without it, no one has any idea which airfoil they're seeing. To do this, simply write the name of the airfoil in the "Dimension Text" box of your chord length dimension:
    Notice that the NACA 6412 is also a part of this sketch. It's common to include all of the airfoils in a single arbitrary sketch. That way, when creating airfoil cascades, you can just copy the curve from the sketch and use it in the cascade sketch. I'll let you figure out how to import the NACA 6412. Hint, its one of the example airfoils in the DAT_inverter notebook

Reference Planes

"Reference Planes" (as I call them now apparently) are planes that define the 2-D sections of your 3-D geometry. We will define four reference planes and thus four different cascade profiles in the wing.

From this point on, the tutorial will be dependent on your reference geometry and the design you want. You can choose to follow exactly, or go your own way. They should make a song about that.

  1. Create a reference plane on the middle plane. Just so we don't need to use the GTMS_SIDE plane all the time.
  2. I created three more planes. One plane is offset 4 in from the chassis. Another is coincident with the inboard plane of the bounding box. The last is offset 2 in from the outboard plane of the bounding box to allow room for the endplate.
  3. Define a minimum ride height plane. This is incredibly necessary when sketching your airfoil cascades. This plane sets the lowest point in your wing (not by rules, but by vehicle dynamics / scraping). LOTS of discussion and foresight should be used in finding the value of this plane. So, for now, lets say its, uhhh, i dunno, 2.5 inches from the ground?

Cascade Sketches

You'll define an airfoil cascade for each of the planes you generated. A "cascade" is a section of multiple airfoils. I'm not teaching any aerodynamics in this tutorial, but I'll be touching on why my cascades look like they do.

  1. Create a cascade sketch for all of your airfoils. I'm attaching a picture of my four cascades and the sketch view of one of them. These are my pointers for making the sketches:
    1. The leading edge of elements behind another element should be slightly forward and slightly above the trailing edge. This is a fundamental design feature for airfoil cascades. Ask yourself why this is. How can we accelerate flow (thus lower pressure) beneath an airfoil? What happens in a converging duct? What's an adverse vs. favorable pressure gradient?
    2. Don't make your airfoils tangent to the minimum ride height plane as it can provide undesirable results. The spline from points makes tangents behave in an unintuitive way. Instead, just visually check your airfoil is above the plane
    3. Use the chord lines to define the angle of the first element with respect to ground. Define the angle of each following element with respect to the chord of the element before it
    4. Use Ctrl+c and Ctrl+v for copy paste of the airfoils. Its that simple if you've make the initial airfoil sketch correct.
    5. Use convert entities if you want to use the same airfoil cascade you already sketched on another plane. I did this for planes 3 and 4.
  2. We will begin construction of "E1", otherwise known as "mainplane", "primary", or "The first one that's typically the biggest". Name it however you like. This part will not feel intuitive but:
    1. Make a sketch on plane 1, the plane of the inboard cascade. Do "convert entities" on the first element in the cascade and its construction chord line.
    2. Trim the part of the element above the chord line, so only the bottom section is remaining.
      So basically, if you hide the original cascades, you'll only see the bottom of the first element. We do this so we can construct the top and bottom sides separately. This helps with complex lofting profiles and makes trailing edge truncation and mold design easier. We'll get there. Eventually.