Skip to content

Xflr5

Xflr5 Logo

Xflr5 is a free, open-source aerodynamic modeling and analysis software tool based upon the aerodynamics work done by Mark Drela, an MIT professor specializing in aerodynamic analysis and aircraft flight dynamics. This tool directly integrates with additional aerodynamic analysis software tools such as Xfoil and AVL and can export / import compatible files between them.

This tool is especially useful for modeling and analyzing the lifting surfaces of an aircraft (wing and tail). Xflr5 also has an entire airfoil analysis and optimization suite, which provides powerful analysis tools for users looking to improve their fundamental flight characteristics. This tool also has more intuitive stability and control visualizations. Besides these specific distinguishing factors, much of the functionality is similar to what is found in other software tools.

Using Xflr5, you can expect to relatively quickly produce a model of the lifting surfaces of your aircraft and analyze them in a variety of flight configurations.

The following quick-links will walk you through basic navigation of the software, step-by-step aircraft modeling and analysis instructions, an overview of all of the visualization tools available, a list of common errors, and a list of useful resources for users wishing to go more in depth.

Quick Navigation:

To download XFLR5, go to the XFLR5 website.

Once downloaded, open the XFLR5.exe file to start the program.

Navigation 1 Once XFLR5 is open, you will see the main menu screen.

The menu bar is located at the top of the screen.

Under the File tab you can open and save projects. In the Module tab you can access the different modules of XFLR5.

Navigation 2 These modules contain the different tools and features of XFLR5.

Modules 1

Direct Foil Design

Direct Foil Design is where you will create, import, edit, and save each airfoil for your aircraft. Modules 2

Xfoil Inverse Design

Xfoil Inverse Design is where you reverse engineer an optimal foil shape by editing airfoil performance curves.

Modules 1

Xfoil Direct Analysis

Xfoil Direct Analysis is where you can analyze airfoils in each expected flight condition (determined by a range of Reynolds numbers).

Modules 2

Wing and Plane Design

Wing and Plane Design is where you can use your previously analyzed airfoils to model and analyze the performance/stability of a complete aircraft.

Modules 2

Creating and Analyzing Airfoils

Direct Foil Design

The first step in modeling an aircraft is defining the airfoils used in the aircraft.

Module > Direct Foil Design

Direct foil design 1 Prerequisite: You must already know the NACA code or have a .dat file on hand for every airfoil on each section of the wing, elevator, and rudder.

Direct Foil Design is where you will create, import, edit, and save each airfoil for your aircraft.

Direct foil design 2 SAVE CONSTANTLY!

Adding NACA Foils

NACA foils are standardized airfoils commonly defined by a 4-digit code (ex. 2412).

To import a NACA foil: > Foil > Naca Foils

Naca 1 Enter the NACA code and the number of desired panels for the airfoil you want to add.

Click OK.

Naca 2 Enter the name of your airfoil into the popup box and click OK.

Naca 3

Adding .dat Files

You can also add a custom airfoil by importing a .dat file of the airfoil shape.

To add a .dat airfoil: > File > Open > Select .dat file from your computer > Open

dat1 The newly imported airfoil will appear here.

Adding Flaps

Once your airfoil is added to your project, you can edit the airfoil and add control surfaces.

To add a flap to the airfoil: right click on your airfoil, then click "Set Flap"

flaps 1 Click the box for a leading edge (LE) and/or tailing edge (TE) flap.

Input the flap characteristics (angle, position along chord, position of hinge)

Click OK

flaps 2 Enter the name of your new airfoil and click OK. Click "Overwrite" if you don't want to add a new airfoil.

flaps 3 You can edit any airfoil by right clicking it and using the drop-down menu.

Repeat these steps for every airfoil in your aircraft with control surfaces.

flaps 4

Inverse Foil Design

Inverse Foil Design allows you to create a custom airfoil based off desired performance characteristics.

Module > Xfoil Inverse Design

inverse foil design section 1 See the graphic below for an overview of the tools in Xfoil Inverse Design

inverse foil design section 2 To start, import the foil you want to edit.

Click on the "extract foil" button.

Click on the foil you want to modify then click "OK".

inverse foil design section 3 Next, choose what flight condition context you want to modify your airfoil in and activate the spline function.

inverse foil design section 4 Move the spline to create the curve you want your airfoil to reflect.

inverse foil design section 5 After your custom spline is complete, click "execute" to create your spline.

inverse foil design section 6 Once the airfoil is created, it can be exported by selecting the "Foil" tab at the top and then the "Store Foil" option.

inverse foil design section 7 Name your airfoil, then click the "OK" button to save your new airfoil. inverse foil design section 8

This airfoil can now be added to your project and analyzed in Xfoil Direct Analysis.

XFoil Direct Analysis

Each airfoil must be individually analyzed at every expected flight condition before it can be used in a full aircraft analysis.

Module > XFoil Direct Analysis

This tool basically analyzes how the airfoils will behave at a variety of airspeeds and angles of attack.

Prerequisites: Know the expected Reynolds numbers of each flight condition (airspeed etc.) for the aircraft.

direct analysis section 1 After opening XFoil Direct Analysis, you will see the following viewer.

direct analysis section 1 Click "Analysis", then click "Batch Analysis".

direct analysis section 2 Note: Batch analysis performs many analyses simultaneously across a variety of flight conditions to save time. If you want to analyze the airfoil at a single Reynolds number, choose "Define an Analysis" instead.

direct analysis section 3 Select the airfoils you want to analyze in the top list, specify the range of Reynolds numbers over which you want to analyze the airfoil, select any other desired polar specifications (alpha sweep etc), and click "Analyze". Click "Close" when finished.

direct analysis section 4 The graphs on the viewer will update after the analysis is completed. In the top menu, the chart icon on the right will show you polar views (drag, lift polars etc.)

direct analysis section 5 The OpPoint viewer icon is on the left. This viewer will show you performance distributions across the airfoil at specific flight situations (e.g. pressure distributions at a specific angle of attack, flow separation, etc.)

direct analysis section 6 To change any of the graphs, right click on the graph, then select "Current Graph" and "Define Graph Settings". This will allow you to customize the axes and any other graph information.

direct analysis section 7 To change the lines on the graphs (color, weight, etc) right click on the airfoil or operating point on the list on the left then select your desired line characteristics.

direct analysis section 8

Creating a Plane

Information Checklist

creating a plane 1

Making the Plane

Open the "Wing and Plane Design" tab in the top left menu. To begin modeling your aircraft, click on "Plane" on the top left menu. Then select "Define a New Plane".

wing and plane design 1 Once the "Plane Editor" opens, you will be able to define the wing, elevator, rudder, and weight distribution of the aircraft.

wing and plane design 2 To create a wing, first click the "Symmetric" button (depending on your wing design). Next, begin inputting your wing data into the table below. Input the airfoil and airfoil position for each section of the wing into the table. Make sure your measurements are in meters. (Reminder: your airfoils must already be created in Foil Design and analyzed in Xfoil Direct Analysis).

wing and plane design 3 Note: You should have a measurement for every major change in the wing. If there is a change in airfoil (such as the start of end of a flap), you will have two overlapping measurements at that transition point.

wing and plane design 4 Once the wing is defined, make sure that your wing matches your design, and that each airfoil transition overlaps correctly. (Note: the control surfaces do not need to be angled unless you are specifically analyzing at an actuated position. A zero angle will still suffice for a stability analysis as long as the control surface hinge exists).

wing and plane design 5 Next, check the paneling on the wing. On the lower right menu, toggle the "Surfaces" button off and the "Panels" button on. Set the Y-panels over long sections to fill the space and set the distribution to "Cosine" so the edges of the sections have more panels than the middle. Set overlapped sections to 1.

wing and plane design 6 Click "Save" when you are done.

Once your wing is defined and saved, define the position of the leading edge and the initial geometric tilt angle. wing and plane design 7

Follow the same steps for the elevator and rudder.

Mass and Inertia Inputs

After all your lifting surfaces are correctly defined, click on the "Plane Inertia" button to define the weight distribution of your aircraft.

mass and inertia inputs 1 Input the mass and position of each important mass of the aircraft.

mass and inertia inputs 2

Validate that your weight distribution is accurate by comparing your CG and inertia tensor values with experimental values.

mass and inertia inputs 3 You can also validate your mass distribution by toggling on the "masses" button on the Plane Editor page and visually inspecting the location of the CG.

Running an Analysis

Basic Analysis

A basic analysis will help you obtain information about lift, drag, moments from the airfoils, and other basic aerodynamic characteristics of your aircraft.

Analysis > Define an Analysis

basic analysis 1 Once the Analysis Definition box opens, in the Polar Type tab choose your desired polar type. (Fixed lift is recommended because it automatically trims the aircraft)

basic analysis 2 In the Analysis tab, choose your desired analysis method (VLM2 is recommended) and whether or not to include viscous flows.

basic analysis 3 In the Inertia tab, check the "Use plane inertia" box and change nothing (assuming you already accurately defined your plane inertia). Otherwise, uncheck the box and define your Mass and CG location manually.

basic analysis 4 In the Ref. dimensions tab, select the dimensions you want to use for your aerodynamic coefficient calculations.

basic analysis 5

In the Aero data tab, ensure the density and viscosity measurements are accurate to your expected flight environment.

Leave "Ground Effect" unchecked, unless you are simulating takeoff and landing.

basic analysis 6 In the Extra drag tab, add any extra drag areas and drag coefficients in the corresponding table. Xflr5 only accurately simulates airflow over the lifting surfaces of the aircraft, so the drag from the fuselage, landing gear, or any other parts of the aircraft need to be accounted for separately.

A simple way to estimate extra drag is to calculate the cross-sectional area of the other parts of the aircraft and use a drag coefficient from a similar shape (sphere, cone, etc).

Click "Save" when you are done.

basic analysis 7 A popup tab will appear. Type your desired identifier or name of your analysis.

Click "OK" when you are done.

basic analysis 8

Your analysis is now defined, and ou can now run it.

Choose your analysis from the left, define the parameters on the right, and click "analyze".

basic analysis 9 Wait until the analysis is completed, the click the close button.

basic analysis 10 On the home screen, you will see the analysis has updated. On the left you can select specific points of the analysis. In the middle you will see charts visualizing the analysis data. You can move between visualization by using the plot menu at the top.

basic analysis 11

Stability Analysis

A stability analysis will allow you to evaluate the stability and control derivatives as well the time response of the aircraft to disturbances.

Stability Analysis Prerequisites:

  • Airfoil polars analyzed (Xfoil Direct Analysis)
  • Basic aerodynamic analysis performed
  • Cm – alpha curve has a positive x-intercept
  • Cm – CL curve must have a positive CL value at 0 Cm
  • Aircraft inertia tensors and center of gravity are correct
  • Control surface dimensions, position, and paneling must be accurate and appropriate

You should actuate only one group of control surfaces in a stability analysis. For this reason, you will most likely need to run several stability analyses.

Example: have one stability analysis with ailerons activated to get the aileron control derivatives, and another analysis to get the elevator control derivatives.

To setup your stability analysis, select the aircraft you want to analyze.

Analysis > Define a Stability Analysis

stability analysis 1 Once the Stability Polar Definition box opens, define any relevant analysis constraints in the Analysis tab.

stability analysis 2 In the Ref. dimensions tab, select the dimensions you want to use for the stability and control coefficient calculations.

stability analysis 3 In the Mass and inertia tab, check the "Use plane inertia" box at the top and change nothing (assuming you already accurately defined your plane inertia); Otherwise, uncheck the box and define your Mass and CG location manually.

stability analysis 4 In the "Control parameters" tab, select the control surfaces to analyze.

To calculate control derivatives for each set of control surfaces (ailerons, rudder, elevator) it is recommended to perform a stability analysis for each set individually.

It is not recommended to activate multiple control surfaces at once. Ailerons should be actuated in opposite directions and elevators are in the same direction.

stability analysis 5 In the Aero data tab, ensure the density and viscosity measurements are accurate to your expected flight environment.

stability analysis 6 In the Extra drag tab, add any extra drag areas and drag coefficients in the corresponding table. Xflr5 only accurately simulates airflow over the lifting surfaces of the aircraft, so the drag from the fuselage, landing gear, or any other parts of the aircraft need to be accounted for separately.

A simple way to estimate extra drag is to calculate the cross-sectional area of the other parts of the aircraft and use a drag coefficient from a similar shape (sphere, cone, etc).

Click "Save" when you are done.

stability analysis 7 Select the analysis you want to run and double check your analysis is defined correctly. Set the analysis settings, and click "Analyze".

stability analysis 8 While the analysis is being performed you will see a "3D Panel Analysis" box displaying the test code. If there are no errors, the box will automatically close. In the case of errors, the box will remain open and you will need to close it manually.

stability analysis 9 Feel free to look through the test code after the analysis is performed.

After the analysis is complete, save your work immediately.

To explore the analysis results, click on the analysis from the list on the left.

stability analysis 10 To see specific outputs or results, click on an operating point from the analysis.

Aerodynamic, stability, and control derivatives are in the box at the bottom left.

stability analysis 11 A more in-depth record of the analysis outputs can be found in the log file.

Analysis > View Log File

stability analysis 12 The log file contains the complete outputs at each point of the analysis such as each stability and control derivative, state matrices, and stability response modes.

stability analysis 13 The analysis output tab on the bottom left shows all of the outputs for the selected point of the analysis.

stability analysis 14

*** IMPORTANT NOTE *** In the ROSplane parameters, C_D_p is "parasitic drag", NOT drag from roll rate. Make sure to take this into account when building your model and inputting values into your .yaml file.

Reading Graphs

Overview

On the home screen, you will see the analysis has updated. On the left you can select specific points of the analysis. In the middle you will see charts visualizing the analysis data. You can move between visualization by using the plot menu at the top.

reading graphs 1

OpPoint Viewer

reading graphs 2 The OpPoint viewer shows several charts that display spanwise aerodynamic data at specific points of the analysis (e.g. at specific angles of attack)

Polar Viewer

The polar viewer shows aerodynamic trends across the whole analysis and specifically how they relate to each other (e.g. how lift coefficient relates to angle of attack)

reading graphs 3

Root Locus Viewer

The root locus viewer shows the roots of the aircraft response to disturbances.

reading graphs 4

Time Response Viewer

The time response viewer shows the aircraft response to disturbances as a function of time.

reading graphs 5

Pressure Viewer

The pressure viewer shows the pressure distributions across the lifting surfaces of the wing at specific operating points of the analysis.

reading graphs 6

Changing Graphs

To change any of the graphs, right click on the graph, then select "Current Graph" and "Define Graph Settings". This will allow you to customize the axes and any other graph information.

reading graphs 7

Customizing Visuals

To change the lines on the graphs (color, weight, etc) right click on the airfoil or operating point on the list on the left then select your desired line characteristics.

reading graphs 8

Common Errors

Outside Flight Envelope

Cause: Your batch analysis includes angle of attack (α), Reynolds number (Re), or Mach number values beyond the range where data has been defined or computed for your airfoil(s).

To Fix:

  • Go to the "Batch Analysis" settings.

  • Restrict the angle of attack and Reynolds number range to within what you've previously analyzed in the airfoil polar analysis (e.g., -5° to +15°, 50,000 ≤ Re ≤ 1,000,000).

  • Make sure your aircraft's velocity, altitude, and configuration don't push the operating point outside of what was analyzed.

  • Expand your airfoil batch analysis or restrict the plane analysis until they are both consistent.

common errors 1

Can't be Interpolated

Cause: XFLR5 failed to interpolate a value because a requested parameter (e.g., lift coefficient or moment) is between or outside available data points.

To Fix:

  • Check that your airfoil polar data is dense enough. You might need more data points at smaller intervals in AoA or Re.

  • Re-run your airfoil analysis with finer steps, e.g., AoA from -6° to 16° in 0.5° increments.

  • Ensure matching Reynolds numbers between your airplane analysis and airfoil polar data. common errors 2

Negative Lift

Cause: at the angle of attack analyzed, the airfoil does not have positive lift (it falls)

To Fix:

  • Check the wing incidence angle and orientation in your model are correct.

  • Check that your range of tested values in your analysis are appropriate.

If the above test reveal no problems, then this probably is not a problem and simply identifies an angle of attack that your aircraft cannot sustain.

common errors 3