TUTORIAL Xflr5 Tutorial
TUTORIAL Xflr5 Tutorial
1/71
TABLE OF CONTENTS
1 PURPOSE................................................................................................................................................................ 4
2 INTRODUCTION.......................................................................................................................................................... 4
2.1 Code limitations and domain of validity......................................................................................................... 4
2.2 XFLR5's development history....................................................................................................................... 4
2.3 Changes introduced in XFLR5 v6................................................................................................................. 5
2.4 Code structure ............................................................................................................................................. 6
3 FOIL ANALYSIS AND DESIGN MODES............................................................................................................................. 7
3.1 General......................................................................................................................................................... 7
3.2 Direct Analysis [Oper]................................................................................................................................... 7
3.2.1 Foil object.............................................................................................................................................................................................7
3.2.2 Foil Modification...................................................................................................................................................................................7
3.2.3 Analysis/Polar object............................................................................................................................................................................8
3.2.4 Operating Point (OpPoint) object.........................................................................................................................................................8
3.2.5 XFoil analysis.......................................................................................................................................................................................9
3.2.6 XFoil errors.........................................................................................................................................................................................10
3.2.7 Session example Direct Analysis....................................................................................................................................................10
3.3 Full Inverse Design [MDES] and Mixed Inverse Design [QDES]................................................................. 11
3.3.1 General...............................................................................................................................................................................................11
3.3.2 Session example Full Inverse Design.............................................................................................................................................11
3.3.3 Session example Mixed Inverse Design.........................................................................................................................................11
4 3D ANALYSIS ....................................................................................................................................................... 13
4.1 Wind and body axis, sign conventions........................................................................................................ 13
4.2 Object Definition.......................................................................................................................................... 14
4.2.1 Wing Definition...................................................................................................................................................................................14
4.2.2 Reference area for aerodynamic coefficients....................................................................................................................................15
4.2.3 Flaps 15
4.2.4 Body Design.......................................................................................................................................................................................16
4.2.5 Plane Definition..................................................................................................................................................................................17
4.2.6 Inertia estimations..............................................................................................................................................................................17
4.2.7 Mesh 19
4.2.8 Symmetry...........................................................................................................................................................................................22
5 CODE SPECIFICS..................................................................................................................................................... 67
5.1 XFoil, AVL and XFLR5................................................................................................................................ 67
5.2 Files and Registry....................................................................................................................................... 67
5.3 Shortcuts..................................................................................................................................................... 67
5.4 Mouse input................................................................................................................................................ 67
5.5 Memory....................................................................................................................................................... 68
5.6 Export Options............................................................................................................................................ 68
5.7 Bugs............................................................................................................................................................ 68
5.8 Open Source Development......................................................................................................................... 69
6 CREDITS............................................................................................................................................................... 69
7 REFERENCES......................................................................................................................................................... 70
PURPOSE
This document is not intended as a formal help manual, but rather as an aid in using XFLR5. Its purpose is to explain the
methods used in the calculations, and to provide assistance for the less intuitive aspects of the software.
2.1
INTRODUCTION
The code has been intended and written exclusively for the design of model sailplanes, for which it
gives reasonable and consistent results. The code's use for all other purpose, especially for the
design of real size aircraft is strongly disapproved.
2.2
A translation of the original FORTRAN source code to the C/C++ language, for all developers who might have a
need for it
This was done in accordance with, and in the spirit of, Mark Drela's and Harold Youngren's highly valuable work, which they have
been kind enough to provide free of use under the General Public License.
The resulting software is not intended as a professional product, and thus it does not offer any guarantees of robustness,
accuracy or product support. It is merely a personal use application, developed as a hobby, and provided under GPL rules for use
by all.
For this reason, it should be noted and understood that XFLR5 may not be default-free. Some significant bugs affecting result
precision have been reported in the beta releases and corrected.
However, XFLR5 has been thoroughly tested against other software and published experimental results, up to now with some
success, and this permits a limited amount of trust in the results it provides.
The algorithms for foil analysis implemented in XFLR5 are exactly the same as those of the original XFoil code, except for the
translation from FORTRAN to C. No changes nor amendments have been made. The translation in itself could have caused new
bugs. However, the code has been thoroughly tested against numerous original XFoil analyses, always with consistent results. It
may be found, in some cases, that one of the two programs may not converge where the other will, or that the path to
convergence is different from one to the other. This is due to the different manner in which floating point numbers and
calculations are processed by the two compilers. Having said this, the converged results are always close, and any differences
within the convergence criteria set in the XFoil source code.
Hence, both XFoil and XFLR5 results of airfoil analysis will be referred to herein as "XFoil results".
Wing analysis capabilities have been added in version 2.00. Initially, this was done at the suggestion of Matthieu Scherrer, who
has experimented with his Mathlab "Miarex" code the application of the Non-linear Lifting Line Theory (herein referred to as
"LLT") to the design of wings operating at low Reynolds numbers.
Later on, the necessity arose to add the Vortex Lattice Method (herein referred to as "VLM") for the design and analysis of wings
with geometries not consistent with the limitations of the LLT.
Version v3.00 introduced Katz and Plotkins recommended VLM method based on quadrilateral rings, and the VLM calculation of
planes with elevator and fin.
On March 31st, 2007, XFLR5 has become an Open Source Development Project hosted by Sourceforge.net.
Version v4.00 introduces a 3D panel method for wings and planes, including modeling options for fuselages.
Up to this last version, XFLR5 has been developed specifically for Windows, using Microsoft's MFC libraries. This is a limitation of
the product, making it non available for Unix, Linux, and MAC systems. It has therefore been decided to re-write the code using
the cross-platform Qt4 libraries provided by Nokia. This version has been released as XFLR5 v5. It does not offer any new
functionality compared to the original code.
Released in a beta version in September 2010, XFLR5 v6 introduces the stability and control analysis, and a modification of the
3D-panel method for the plane.
2.3
2.4
Code structure
Five different "Applications" have been implemented:
Two direct design modes which are convenient to compare foils, and to design new foils with the use of B-Splines
The mixed inverse (QDES) and the full inverse (MDES) foil design routines, virtually unchanged from the original
The foil direct analysis routines (OPER)
3.1
General
This part of the code is built around XFoil and its main features, i.e. the design routines, and the direct and inverse analysis
(OPER, MDES, GDES, and QDES). Except for the implementation of the Windows interface, no special feature has been added
to these modules.
To run and use XFLR5, no special knowledge nor any previous experience of XFoil is necessary, although users accustomed to
XFoil should have no difficulty in recognizing the new Windows-style menu options.
Since the analysis engine is very much unchanged from the original, users are advised to refer to the original XFoil help to
understand the purpose, operation, and limitations of the foil direct and inverse analysis. Their use in XFLR5 is basically the
same, with a limited number of necessary adaptations for the Windows interface.
3.2
3.2.1
3.2.1.1
Foil Database
Foils are loaded from standard foil files and are stored in a runtime database. Any number of foils may be loaded at any time.
3.2.1.2
File format
XFLR5 recognizes only the plain traditional format for foils, i.e. files which contain the foil's name on the first line, followed by the
X,Y coordinates, which run from the trailing edge, round the leading edge, back to the trailing edge in either direction:
Foil
X(1)
X(2)
. .
. .
X(N)
Name
Y(1)
Y(2)
Y(N)
Foil Modification
XFLR5 provides the same options for foil modification as the original XFoil code. These are:
local and global refinement
modification of the thickness, camber, max thickness and max camber positions.
The modification of these parameters will cause a new foil to be generated.
Whenever a foil is modified, deleted or overwritten, all its associated results are deleted to ensure consistency.
Experience shows, and XFoil advises, that refinement of the foil's panels, after it has been loaded or modified, is usually a
prudent measure to take before any analysis.
3.2.3
Analysis/Polar object
Unlike XFoil, an analysis of a given foil may be performed only after a 'polar object' has been defined and associated to this foil.
The results of the analysis will automatically be associated and added to the polar object.
Any number of polars may be created and associated to a given foil.
A polar object is defined by:
its Type
its Reynolds and Mach numbers
the laminar to turbulent transition criterion
the forced trip locations on top and bottom surfaces
By default, the transition number is set to 9, and the trip locations are set at the trailing edge.
In addition to the Type 1, 2 and 3 polars which are unchanged from XFoil, Type 4 polars have been introduced, showing data for
a given angle of attack at variable Re. The purpose is to enable determination of the critical Re value.
Figure 2 : Cp calculation
3.2.5
XFoil analysis
Each time an XFoil direct analysis is performed and the convergence is achieved, an OpPoint is generated and the values of
interest are stored in the currently selected polar object. Data is added to the polar, whether the option to store OpPoints has
been activated or not.
An XFoil calculation performed at the same angle of attack and Re as an existing OpPoint causes the latter to be replaced, and
the polar data to be updated.
The "Init BL" checkbox is the equivalent of the "Init" menu command in XFoil, i.e., it resets the boundary layer to standard values
before an analysis. It is recommended to check the box at the time of the first calculation, and whenever the analysis of an
OpPoint is unconverged or is very different from the previous one.
In the case of sequential analysis, the "Init BL" is automatically deactivated after a first converged point has been reached, and is
reset after an unconverged calculation.
3.2.6
XFoil errors
Given the complexity and difficulty of a viscous analysis, XFoil is remarkably robust and consistent. It may happen however that
the following error message is generated during an analysis.
This error message is usually caused by a too coarse paneling of the foil, or a too sharp leading edge. It is possible that in such a
case XFoil gets "stuck" and fails at any attempt to perform a new analysis. The menu command "Operating Point/Reset XFoil"
can be used to reinitialize all the variables and reset the currently selected foils and polars.
3.2.7
10. Define the min and max angles for the analysis for instance from = -6 to = 10
11. Since the new start value is significantly different from the last calculation (i.e. = 0), check the "Init BLs" button
12. Click on the "Analyze" button
13. Click on the "Animate" button to visualize modifications of the boundary layer or pressure distributions with angle of
attack variations
14. Click on the "Polars" command in the View menu, or type F8
15. Use the mouse button and wheel to drag and zoom the graphs
3.3
3.3.1
3.3.2
3.3.3
3.4
3.4.1
interpolation of foils
inverse methods
This foil design mode, however, may be useful to overlay different foils and compare their geometries.
An option has been added in v6 to load a background image, with the idea of digitalizing existing foils.
3.4.2
3.4.3
3.4.4
3.4.5
Output precision
The maximum number of output points on each surface is 150. This is consistent with the sizing of the XFoil arrays, and with the
precision required for the application, although the increase of computing power and memory capacity of modern computers
could allow for more points. Typically, XFoil requires at least 50 points on each side to perform an adequate analysis.
In both cases, it is prudent to "re-panel" the foil in the main menu, to improve the convergence of the XFoil analysis and its
precision. This can be done with the equivalent of XFoil's "PANE" and "CADD" commands.
Upon exit from the design module, the user is asked whether to export or not the foil to the analysis module.
3.4.6
Digitalization
An option has been added in v6.02 to load a background image. The purpose is to enable digitialization of existing foil images
using splines.
After digitalization, the splines should be stored as a foil in the database, and the foil ought to be normalized, de-rotated and repaneled.
4.1
3D ANALYSIS
Vinf
Zbody
L
D
xwind
Xbody
Figure 4 - Wind and Body axis
The lift and drag coefficients are given in wind axis.
Note : Up to v3.21, calculations have been performed using a small angles approximation, which means that the wind and body
axis were the same.
Sign Conventions for moments Quote from Wikipedia, Flight Dynamics :
The most common aeronautical convention defines the roll as acting about the longitudinal
axis, positive with the starboard wing down. The yaw is about the vertical body axis, positive
with the nose to starboard. Pitch is about an axis perpendicular to the longitudinal plane of
symmetry, positive nose up.
This is illustrated in the Figure 5.
4.2
4.2.1
Object Definition
Wing Definition
S=2 li
For ease of interpretation, the wing is shown developed on a horizontal planform, both in the wing design dialog box and in the
2D view. Only the 3D view gives a realistic representation of the geometry.
A wing may be asymmetric if the foils are different on each side. This option is meant to provide some capability to evaluate the
influence of flaps, but should be used with caution. It has been tested neither against experimental nor theoretical results.
4.2.2
4.2.3
Up to v.4.15, the reference area and the reference span have been defined as the planform's area and span. With this
convention, the winglets' contribution are counted in the area and in the span. This is not necessarily the best choice,
since it is usually convenient to compare performance coefficients of a wing with and without winglets, but with a
constant reference area.
Starting in v4.16, the default option is to use the planform area and span projected on the xy plane. With this definition,
the contribution of the winglets to span and area is zero. For convenience, it is still possible to choose either reference
area; the option can be set in the dialog box for analysis definition.
Flaps
From version v3.16 onwards, the automatic mesh methods takes into account the breaks at the flap position, if both foils at each
end of the wing panel are defined with a flap.
The recommended way to create a flap is to define two foils at the same spanwise position, the first with a flap break, the other
without. The code will ignore the zero-length panel.
The flaps are counted as one for each wing side, e.g. ailerons are counted as two flaps. This is necessary to calculate separately
hinge moments for asymmetrical wings.
4.2.4
Body Design
The modeling of the body is natural in a 3D panel method, but isn't either without difficulties.
4.2.4.1
4.2.4.2
Modeling options
Two options are provided, for two different purposes :
1.
2.
#FRAME
x1 y1 z1
xn yn zn
#OFFSET
Xo Yo Zo
#BODYTYPE
1 or 2
Remarks/Notes :
4.2.5
n is the number of side point definining the frame. This number must be the same for all frame. If the frames are defined with
different numbers of points, the frame last defined will set the number of points.
The points in the frame should be defined in clockwise order, on the body's left side, when looking at the body from the front;
this is the view which is displayed in the right panel in the body design module.
A plane consists in a main wing, and optionally of a secondary wing, an elevator, one or two fins, and a body.
The body may be described either by cross-sections located at different streamwise locations or by NURBS surfaces.
4.2.5.1
Surface assemblies
The main difficulty with the construction of a 3D plane model is to connect the wing, elevator, fin and body together. Without the
help of a CAD system, it has been difficult to implement a versatile and robust algorithm, mainly because of the number of
configurations to consider. For instance, the elevator may or may not intersect the body, it may or may not intersect the fin, it may
intersect the body only on its bottom or upper surface, etc.
The only surface verification implemented in V4.00 is a trim of the wings, elevator and fin to the body's surface, and even then,
the algorithm may not be robust for all configurations.
Whats more, even if the wings, elevator and fin are trimmed to the fuselage surface, the body's panels are not adapted to follow
their contour. This implies that some of the body's panels will be located inside the volume, which is not consistent with the panel
theory.
4.2.5.2
Tip Patches
The Panel Theory requires that the volume on which the analysis is performed is completely closed by the surfaces which support
the panels. In other words, a body or a wing cannot have an open end, in which case a numerical error will occur.
To try to close the volumes, the code will automatically create tip patches in the following cases :
Left tip of the left wing, and right tip of the right wing
Gap at the center of the wing, i.e. if the first chord is located at a positive span position
4.2.6
Inertia estimations
A calculation form is available to provide an approximate evaluation for the CoG position and for the inertia tensor associated to
the geometry. The evaluation should not be understood as anything else than a rough order of magnitude.
The inertia is evaluated in the default coordinate system, i.e. with respect to the CoG. The tensor in other systems can be
computed by the appropriate tensor transformations.
The evaluation is based on the following assumptions.
For the body, the mass is distributed uniformly in the external surface, and this surface is assumed to have a
uniform thickness. The body is divided in Nb elementary sections along the x-axis. The weight is concentrated at the
center of the cross section. This is illustrated in Figure 8.
For the wings, the mass is assumed to be distributed uniformly in the wing volume along the span.
In XFLR5 v5, it has been modeled as point masses concentrated at the quarter-chord point of distributed sections along
the span.
In XFLR5 v6, it is modeled as point masses distributed both in the span and chord directions, as illustrated in .
The mass distribution is independent of the wing's mesh used for aerodynamic calculations;
Parts such as actuators, battery, lead, or receiver should be modeled separately as point masses.
Notes :
At this stage of the code development, the results are not used at any point in the performance calculations.
The inertia evaluations are provided as a convenience for external stability analysis to be performed with codes such as
AVL.
The mass defined for wings and bodies is not the one used for Type 2 calculations. The mass for type 2 is
defined with the Analysis/Polar.
y
Figure 8 Mass representation for the body
Mesh
The wing is "meshed" into a number of panels distributed over the span and the chord of the planform, and a vortex or a doublet
and source is associated to each panel.
The analysis may be of the VLM type and is performed on the mean camber line
The analysis may be of the 3D-panel type in which case the wing is modeled as a thick surface
It is recommended to choose a panel distribution which is consistent with the wing's geometry, i.e. the density of the mesh needs
to be increased at geometrical breakpoints and at the root and tip of the wings. A cosine type distribution is recommended in the
chordwise direction to provide increased density at the leading and trailing edges.
There is a lower limit size for the panels below which the calculation becomes unstable, or which leads to non-physical results.
This can typically occur with "sine" spanwise distributions of panels. Ideally, the precision of the calculation increases with the
mesh's refinement, but so do the calculation times. It is fairly simple to experiment to determine what is the best compromise for a
given design objective.
Numerical instability may also occur in 3D Panel analysis if a panels lengths in the streamwise and chordwise directions are too
different. The panels aspect ratio should be kept low.
It is possible to exclude from the calculations the wing panels with a spanwise length less than a minimum value. This can be set
in the advanced settings dialog box. If the minimum length is set to zero, then all wing panels with length less than 1/1000 of the
span will be excluded. This is meant to avoid numerical errors linked to small mesh elements.
Panel Methods :
1.
2.
The surface velocity is the gradient of the doublet strengths between adjacent panels as described in ref [4]. It is
therefore recommended to have the same number of chordwise panels along the span, and the same type of distribution,
either uniform or sine.
Ideally, the panels should share the same edges and corner nodes. In the case of a flap, the 'trick' to connect properly the
panels is to define a foil with a false flap set at 0 flap angle, as is illustrated in Figure 10.
4.2.7.1
Control Points
Horseshoe vortex
Wake Panels
In the VLM method, the wake is represented by the trailing legs of the horseshoe vortices.
In the 3D-panel method, the wake is modeled as a series of flat panels which extend 'far behind' the wing.
The idea is that each of the wing's chordwise strip sheds a column of wake panels. The doublet strength of each panel in this
wake strip is the difference of the doublet strength of the top and bottom panels of the wing's strip. This is a consequence of the
fact that the wake cannot sustain load. In addition, being a thin surface, the wake panels have a zero source strength.
The wake strips are modeled as a column of thin panels. In the simplest form, these wake panels are straight aligned behind the
wing panels, as illustrated in Figure .
In such a situation, it is necessary to modify slightly the geometry to avoid the interference Figure 13b.
Symmetry
A symmetric calculation reduces the matrix's size by approximately half (exception is the fin), and reduces the matrix inversion
operations by a factor 4. The code detects automatically whether the problem is symmetric or not. It is considered to be
symmetric in the following cases :
4.3
4.3.1
Performance analysis
Theory - General
XFoil provides unique insight in the behavior of airfoils, but is a 2D analysis, hence the results are those of a wing of infinite
aspect ratio and which is defined with a single airfoil. The influence that the aspect ratio alone may have on the wing's polars, let
alone the sweep or the dihedral, justifies the need for a more sophisticated wing analysis.
Figure 14 Influence of Aspect Ratio - LLT Calculation NACA 3412 Airfoil - Taper Ratio = 1 - Sweep = 0
The wing may be computed by either one of three methods, each having its own advantages, and all having some usage
restrictions.
The first is a Lifting Line method, derived from Prandtl's wing theory. The second is a Vortex Lattice method. The third is a 3D
panel method.
The originality of the implementations is their coupling with XFoil calculation results to estimate the viscous drag associated with
the wing, although this is done in a different manner depending on the method.
4.3.2
4.3.3
4.3.3.1
In the present implementation, the non linear lift behavior is interpolated on pre-generated meshes of XFoil Type 1 polars and the
non-linearity is solved by an iteration loop :
Wing definition
Selection of , V parameters
Initialization of i with the linear solution to the
LLT
Interpolation of Cl from ( + i + washout,Re) on
the type 1 polar mesh
If Type 2 analysis, scaling of V to create a lift
opposite to the weight
Calculation of the non linear i distribution
Interpolation of Cl from ( + i + washout,Re) on
the type 1 polar mesh
If Type 2 analysis, scaling of V to create a lift
opposite to the weight
Loop until | i|<criterion
From + i + washout, interpolate, on the type 1
polar mesh, values for Cd, Cm, etc.
4.3.3.3
4.3.3.4
4.3.3.5
2D vs. 3D
The LLT assumes implicitly that all the surfaces lie essentially in the X-Y plane.
The only use for the sweep and the dihedral in this implementation of the LLT is for the calculation of the pitching moment
coefficient Cm.
Sweep and dihedral are not used in the calculation of the lift distribution.
Viscous and inviscid calculations
There is no option available to perform a non-viscous LLT calculation. The reason behind is that the linear
theory requires that a zero-lift angle be defined for each airfoil, and that there is no convenient manner to
define this 0 value which depends on the Reynolds number.
4.3.3.6
X CP =0. 25
Cm 0
Cl
From v3.12 onwards, the wings Center of Pressures x-position is calculated by interpolation of the center of pressures position
on the foils polar mesh.
For foil polar meshes generated prior to v3.05, the foils center of pressure was not stored, hence the formula above is used to
calculate the wings center of pressure.
4.3.3.7
Downwash
The downwash is defined at each span station as
V i =V sin i
For convenience, it is represented at the wing's trailing edge in 3D views.
4.3.4
4.3.4.1
4.3.4.2
F= V
being the vortex strength x its length,
is the fluid density
V is the freestream speed
Which implies that the force is normal to each panel.
The lift coefficient is defined as
CL=
1
SV 2
p a nels
Fw z
2.
4.3.4.4
In the current formulation, the VLM makes the assumptions of the small angle of attack. As a main consequence, the trailing
vortices are not aligned with the freestream velocity. This means that the influence matrix will be independent of the a.o.a.
To explore this limitation, it is possible to experiment a calculation of the tilted geometry, as explained in 4.3.6.8. The
results tend to show that the assumption of small angles of attack is acceptable.
Horseshoe vortices
Control Points
In the method recommended by Katz and Plotkin [3], only the trailing vortices extend to infinity.
Quad vortices
Control Points
Trailing vortices
4.3.5.2
for the analysis of a single wing, the wing is modeled as thick surface, and the full 3D method described in 4 is applied
for the analysis of a plane, the fuselage/body is taken into account, and the wings are modeled as thin surfaces; this is a
restriction due to the impossibility to generate appropriate connections between wing and body without the help of a 3DCAD program.
In reference [4], the authors propose to model the circulation on the wings using uniform strength doublets, and to place the
Neumann type boundary condition at the collocation point, i.e. the panel's centroid or center of gravity. The alternative is to use a
VLM method, and to place a vortex at the panel's chord, and the BC point at the panel's chord.
Both method have been tested, and the second alternative has proved more precise and reliable. Hence the 3D-panel method
retained for planes is a mix model of uniform source/doublet for thick bodies, and horseshoe vortices for thin surfaces.
4.3.5.3
Problem solving
The resolution of the panel problem requires the inversion of a square matrix of the size of the number of panels. This inversion is
performed by LU decomposition.
4.3.5.4
Wake roll-up
The wake roll-up process has been implemented and tested. However, it is not considered to be sufficiently robust to be released
at this time, and has been disabled in v4.00.
4.3.5.5
4.3.5.6
Validation
Infinite Cylinder and Sphere Analysis
The theoretical values for the Cp coefficients of a body in a uniform flow are :
-
for a cylinder : Cp = 1.0 at the leading and trailing edges, and Cp = -3.0 at the lowest and highest points
for a sphere : Cp = 1.0 at the leading and trailing edges, and Cp = -1.25 at the lowest and highest points
Cp
3D Panel Analysis
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0.0
0.2
0.4
0.6
1.5
1.0
x/c
0.5
1
0.8
Wing Analysis
The Cp distributions calculated by 3D panel analysis for a near infinite wing, and by 2D panel analysis with XFoil are
plotted in Figure 22 and in Figure 23. There is general concordance for inviscid results.
Cp
-1
NACA 2412
Alpha = 2.0
Re = 100 000
Wing AR = 40
-0.8
-0.6
-0.4
-0.2
0.0
0.2
0.4
0.6
0.8
1.0
x/c
0
0.2
0.4
Wing Analysis
0.6
XFoil - Inviscid
0.8
XFoil - Viscous
Cp
-4
-3.5
Wing Analysis
-3
XFoil - Inviscid
NACA 2412
Alpha = -5
Re = 100 000
Wing AR = 40
XFoil - Viscous
-2.5
-2
-1.5
-1
-0.5
0.0
0.2
0.4
0.6
0.8
1.0
x/c
0.5
1
Analysis considerations
General Limitations
As a general rule, LLT and VLM are adapted to configurations of thin lifting surfaces, operating at small angles of attack.
The most questionable assumption of the wing design algorithm is probably the use of XFoil transition results to wings with finite
aspect ratio. The 2D simulation proposed by XFoil corresponds to infinite wings, where a laminar bubble extends indefinitely
along the span. Some authors suggest that on span-limited wings, such bubbles will appear only on a fraction of the planform.
However, theories for 3D transitions are still in development and to the author's knowledge, not giving total satisfaction yet.
The method which consists in interpolating XFoil generated results is clearly an approximation with no real theoretical or
experimental background, but should be a reasonable approximation for wings with moderate to high aspect ratio.
The viscous characteristics will be less and less representative as the wing geometries differ from the ideal 2D Xfoil infinite wing.
Hence those results for non planar geometries, low aspect ratio or high sweep should be considered with caution.
4.3.6.2
x (mm)
0.05
0.10
0.15
0.20
-0.2
-0.3
-0.4
-0.5
-0.6
-0.7
-0.8
Airfoil = RG15
Span = 1400 mm
Rt chord = 180 mm
AR = 10.0
TR = 1.80
y = 3.82
mm
0.7
0.5
Airfoil = RG15
Span = 1400 mm
Rt chord = 180 mm
AR = 10.0
TR = 1.80
0.4
0.3
0.2
y = 696 mm
0.1
0
0.00
-0.1
0.05
0.10
x (mm)
0.15
0.20
-0.2
-0.3
Core radius
In VLM analysis, the velocity vector induced by a vortex is singular on the vortex line.
In a 3D panel method, the velocity vector is singular in the alignment of the panel sides.
This can create numerical errors in the analysis and in the calculations of the streamlines.
It is therefore highly recommended to set a minimal core radius, which can typically be of the order of magnitude of 1/1000 of the
min mesh panel size, e.g. Core radius = 10-6m. This is the value set by default, and it can be modified in the advanced settings.
The velocity at a point located on the vortex line, or in the alignement of a panel side, is zero.
4.3.6.4
Sideslip
The simulation of sideslip has been introduced in XFLR5 v4.09
The order in which a.o.a. and sideslip are applied has its importance. In XFLR5, sideslip is modeled by rotating the model about
the z-axis, with a freestream velocity vector remaining in the x-z plane. The resulting geometry is analyzed using the conventional
VLM and panel methods. The advantage of this method is that the trailing vortices are in the vertical plane which contains the
velocity vector, i.e. are aligned with the x-axis of the stability frame.
Wind
direction
4.3.6.6
In the present application, the viscous drag is estimated by interpolation of XFoil pre-generated polars, by the Cl value resulting
from the linear 3D analysis. This assumes implicitly that the foil's behavior on a finite wing is not very different than on an "infinite
XFoil wing". There is no real background, neither theoretical nor experimental, to support this approach, so it should be used with
caution.
As is generally the case when transposing 2D results to 3D analysis, the estimation of viscous drag is probably too low and may
lead to arguably optimistic results.
Because the VLM is linear, it does not, among other things, account properly for stall at high angles of attack, unlike, potentially,
the LLT.
Wing definition
VLM Mesh creation
Figure 27 Linear and Non-Linear modeling
Selection of , V parameters
4.3.6.7
Non-Linear Implementation
Creation of the vortex influence matrix and of the
boundary conditions
Inversion of the matrix for the vortices strength i
If Type 2 analysis, scaling of V and of the i to
create a lift opposite to the weight
Calculation of the induced downwash and induced
angles in the Trefftz plane
Calculation of the Cl values from the i
Calculation of the induced drag in the Trefftz plane
Interpolation from Cl on the type 1 polar mesh of
the other viscous variables VCd, transitions, etc.
4.3.6.8
For VLM, the trailing legs of the horseshoe vortices are parallel to the body's x-axis (Fig. 10-a).
For 3D Panel analysis, the trailing wake panels are in the x-y plane
The advantage of this approximation is its simplicity : only one influence matrix is required for all angles of attack, and the matrix
inversion can be performed for all alphas simultaneously.
The disadvantage is that the horseshoe vortices or the wake panels are not aligned with the freestream velocity.
Vinf
L
Horseshoe vortex
x
(a)
Vinf
Horseshoe
vortex
D
x
(b)
Vinf
z
L
x
Horseshoe vortex
(c)
Figure 28 Normal and Tilted geometry configurations
A more representative approach is to align the wake with the wind axes (-b). Equivalently, the problem can be set in the wind
axes and the body's geometry can be tilted by the angle of attack (-c), which is a direct transposition of the physics of the
problem. Both methods are equivalent, but the latter can be implemented more simply, hence has been chosen for XFLR5. It is
selected by checking the "Tilt Geometry" checkbox in the Analysis Dialog Box.
The inconvenience with this approach is that a new matrix must be set up and inverted for each angle of attack, leading to longer
computation times.
The coefficients Cl and Cd are almost identical for both methods, which means the small angles approximation is applicable from
the performance analysis point of view. The moment coefficients may be slightly different.
4.3.6.9
A wake model more refined than the simple straight line or flat panel can be of interest for two reasons :
Although the wake carries no load and therefore has no influence on the lift coefficient, its shape affects the induced
drag value and derived coefficients
A flat wake is inappropriate for plane configurations with and elevator, since the downwash created by the main
wing influences the flow field around the elevator.
The shape of the wake is determined by the flowfield behind the wing, but in turn, the flow field is dependent on the wake shape.
Therefore, the shape the wake takes in a constant state situation can be deduced by an iterative process, in which the wake
geometry is updated ("relaxed") after each computation loop.
Wake mesh
The panels formulation implemented in XFLR5 is of the constant, flat panel type. Special care must therefore be taken in the
choice for the wake panel's size, to avoid excessive twisting. The panel size is controlled by three parameters :
The ratio, or progression factor, between two adjacent panels in the streamwise direction
As a general indicaction, it is advisable to set those parameters so that the first panel's size is approximately the same as that of
the wing's trailing edge panel.
Roll-up process
Ideally, the lift and drag coefficients tend towards limit values. However, if no special precautions are taken, numerical
experiments show that the wake tends to roll up indefinitely on itself. This leads to highly twisted panels and to numerical
divergence.
Since the roll-up is not a robust process, the iteration loop is limited both by the number of iterations and by a precision criterion.
Set Initial flat wake geometry
Reference [5] provides a comprehensive description of the issues related to wake roll-up.
4.3.7
Moments
All moment calculations in LLT are strictly in accordance with the formula of NACA TN1269
In V4.00, the definition of the moments has been modified to clarify some ambiguities that existed up to v3.21..
From V4.00 onwards, the geometric pitching, rolling and yawing moments are calculated by integration of forces on the panels.
For VLM this is done at the vortex middle position, for 3D Panel analysis, the force is applied at the panel's center.
The geometric moments are therefore the total moments applied to the wing or plane.
For analysis purposes, it may be interesting to break down those moments in separate parts, or to isolate one specific
contribution to the total moment.
Strip Moment Coefficients
These moments are calculated for each span position on the wing and are accessible in the Operating Point graphs.
Moment
Sign
Ref. length
Airfoil
CmAirfoil
Pitchi
ng
positive
nose up
Nature
LLT
Moment of the
lift forces around
the chord
point
Moment of the
pressure and
viscous forces
with respect to
XCmRef
M.A.C.
M = q S mac Cm
Cm
Sign
Ref. length
Geom.
(global)
GCm
Pitchi
ng
Viscous
(global)
VCm
Airfoil
(at local
span
position)
positive
nose up
M.A.C.
M = q S mac Cm
Nature
LLT
Moment of the
pressure forces
with respect to
XCmRef
Integration of the
moment over the
wing's lifting line.
Both sweep and
dihedral are taken into
account
Moment of the
viscous airfoil
drag forces with
respect to
XCmRef
Cm interpolated on
polar 1 mesh
Rollin
g
Geom.
(global)
GRm
positive
with the
starboard
wing
down
Span
R = q S b Cr
Geom.
(global)
GYm
Yawin
g
Profile
(global)
VYm
positive
with the
nose to
starboard
Span
N = q S b Cn
Induced
(global)
IYm
4.3.8
Moment of the
pressure forces
with respect to
XCmRef
Moment of the
pressure forces
with respect to
XCmRef
N/A
Moment of the
viscous airfoil
drag forces with
respect to the
plane y=0
Moment of the
induced tangential
forces with
respect to the
plane y=0
SM=
XCP XCG
MAC
The conventional static margin of a wing or a plane may be determined by an iterative process. It is the CG position (or moment
reference position XCmRef) for which
dCm
=0
d
This is illustrated in the Figure 30 where the neutral point is approximately 67 mm from the leading edge.
Efficiency factor
The efficiency factor, referred to also as Oswald's factor, is a measure of the deviations of the wing's induced drag from that of an
optimal elliptic loading, and is defined as
e=
CL2
. AR . ICd
where
The efficiency factor, also named Oswald's factor, should always be smaller than 1. It may happen however that this factor
becomes greater than 1 for numerical reasons in LLT, VLM and 3D Panel calculations.
In LLT, this may be corrected by increasing the precision required for convergence, for instance with the following parameters :
Number of stations =
40
Relaxation factor =
40
convergence criterion =
Max Number of iterations =
0.001
300
In VLM and 3D Panels, a refinement of the panel density in the streamwise direction is required to reduce the efficiency factor to
values less than 1.
4.3.10
V=
2mg
SCl
=arctan
Cd
Cl
4.3.11
4.3.12
The interpolation process of a variable X (X being Cl, Cd, Cm, Transition points etc.) from [ = aoa + i + washout, Re] at a
geometrical point P between the foils 1 and 2 is:
4.3.13
1.
For the first foil, find polars 1 and 2 such that Re1 < Re < Re2;
if neither polar 1 nor 2 can be found, return on error
if Re is less than all the polars' Reynolds numbers, use the polar of smallest Re
if Re is greater than that of any polars' number, use the polar of greatest Re
2.
3.
Interpolate X1 between X11 and X12, pro-rata of Re between Re1 and Re2
4.
5.
Interpolate X between X1 and X2, pro-rata of the position of the point between the two foils
Streamlines
The streamlines are calculated from the vortices, or doublet and source, strengths each time an operating point is selected.
The calculation is incremental, in the x streamwise direction.
The streamline are initiated at the mesh panels leading edge or trailing edge, with a user defined offset in the x and z directions.
The "Initial Length" is the first x-increment for the calculation of the streamline.
The "Progression Factor" determines the length of step n+1 vs. step n.
Caution note : The velocity vector is singular at the panel edges in 3D-Panel analysis, and on the panels vortex trailing line in
VLM analysis. This may cause numerical instabilities, in cases for instance when the streamlines are requested to initiate exactly
at the panels leading or trailing edge, or at the panel corners. A minor x or z offset is necessary to prevent the instability. The use
of a core radius, which can be defined in the advanced settings, is another possibility.
4.3.14
1.4
1.2
1.0
0.8
Cl
0.6
VLM - XFLR5
0.4
LLT - XFLR5
Naca TN1270
0.2
0.0
0
0.01
0.02
0.03
0.04
0.05
0.06
0.07
0.08
-0.2
-0.4
Cd
1.00
0.75
0.50
CL
4.3.15
0.25
FMe
Meas ure V=20
Meas
5 ure V=20
10
Cl - VLM2 - XFLR5_V4.09
Cl - Panels with body - XFLR5_V4.09
Cl - Panels No Body - XFLR5_V4.09
Cl - LLT - XFLR5_V4.09
0.00
-5
0
-0.25
-0.50
( )
Drag polar
Measurement vs prediction - V=20m/s
1.25
1.00
0.75
FMe
V=20
V=20
V=20
Cl - VLM2 - XFLR5_V4.09
Cl - Panels with body - XFLR5_V4.09
Cl - Panels No Body - XFLR5_V4.09
Cl - LLT - XFLR5_V4.09
CL
0.50
0.25
0.00
0.000
0.025
0.050
0.075
0.100
-0.25
-0.50
CD
FMe
Measure V=20
Measure V=20
Cm - VLM2 - XFLR5_V4.09
Cm - Panels with body - XFLR5_V4.09
Cm - Panels No Body - XFLR5_V4.09
0.05
0.00
-5
10
CM
-0.05
-0.10
-0.15
-0.20
-0.25
-0.30
()
the body modeling does not improve the precision of the results
lift coefficient
4.3.16
both methods tend to underestimate the drag, probably the viscous part of it
Comparison to Miarex and AVL results
1.20
Cl
1.00
0.80
0.60
Span = 2000 mm
Root foil = NACA 3412
Tip Foil = NAA1410
AR = 14.8
TR = 2.0
LE Sweep = 0
0.40
0.20
TCd
0.00
0.00
0.02
0.04
-0.20
0.06
0.08
0.10
Cz/Cl - Miarex
CL_XFLR5_LLT
-0.40
CL_VLM1
CL_3DPanels
-0.60
0.9
0.8
0.7
Cl
Cl
Cl
Cl
Cl
Cl
0.6
0.5
Cl
0.4
0.3
AVL 3.16
AVL 3.26
LLT - XFLR5
LLT - Miarex
XFLR5 - VLM2
XFLR5 - Panel
=5.00
Bi-Airfoil Naca3412 - Naca1410
Span = 2000 mm
LE Sweep = 5
AR = 14.8 ; TR = 2.0
0.2
0.1
0
0
0.2
0.4
0.6
0.8
0.0
-1.0
0.2
0.4
0.6
0.8
-2.0
-3.0
=5.00
Bi-Airfoil Naca3412 - Naca1410
Span = 2000 mm
LE Sweep = 5
AR = 14.8 ; TR = 2.0
ai
-4.0
-5.0
-6.0
Ai - AVL 3.26
Ai - LLT - XFLR5
Ai - XFLR5 - VLM1
-7.0
-8.0
Ai - XFLR5 - VLM2
Ai XFLR5 Panels
-9.0
=5.00
Bi-Airfoil Naca3412 - Naca1410
Span = 2000 mm
LE Sweep = 5
AR = 14.8 ; TR = 2.0
0.050
0.040
Induced Drag
0.030
0.020
0.010
0.000
0
-0.010
-0.020
0.2
0.4
0.6
Cd - AVL 3.16
Cd - AVL 3.26
ICd - LLT - XFLR5
Icd - XFLR5 - VLM2
ICd - XFLR5 - Panel
0.8
0.40
X - CP Position
0.35
0.30
0.25
=5.00
Bi-Airfoil Naca3412 - Naca1410
Span = 2000 mm
LE Sweep = 5
AR = 14.8 ; TR = 2.0
C.P.x/c - AVL - V3.26
XCP - LLT - XFLR5
XCP - XFLR5 - VLM2
XCP - XFLR5 - Panel
0.20
0.15
0.10
0.05
0.00
0
0.2
0.4
0.6
0.8
Figure 41 Center of pressure position vs. span - Comparison to AVL and Miarex
0.02
0.01
0
Cm Airfoil
-0.01
-0.02
-0.03
-0.04
0.2
0.4
0.6
=5.00
Bi-Airfoil Naca3412 - Naca1410
Span = 2000 mm
LE Sweep = 5
AR = 14.8 ; TR = 2.0
0.8
-0.05
-0.06
-0.07
-0.08
-0.09
AVL
LLT -XFLR5
- Miarex
XFLR5 - VLM2
XFLR5 - PANEL
Figure 42 Pitching moment coefficient vs. span - Comparison to AVL and Miarex
4.3.17
2.
In the Direct Analysis Application, click the "Run Batch Analysis" command in the Polars menu, or type (Shift+F6)
3.
Run a batch analysis with the following parameters (make sure these values cover the whole flight envelope of the wing):
from = -6 to = 10
from Re = 40,000 to Re = 160,000 every 20,000
from Re = 200,000 to Re = 500,000 every 50,000
or use a predefined list
Checking the box "Start from zero" will cause the analysis to start from = 0, going upwards to max, then downwards to
min ; this usually facilitates convergence
4.
5.
Optional : Use the "Save Associated Polars" in the "Current Foil" menu to save the polars to a ".plr" file for use in future
projects
6.
7.
Click the "Define Wing" command, (F3) in the Wing menu, or "Define a Plane" (Ctrl+F3)
8.
9.
Optional, but recommended : Define the inertia properties of the current plane or wing object.
Select Current plane(or wing)/Define Inertia
Enter the inertia properties for the plane or wing.
Make sure that the CoG position is where it's meant to be. It may be necessary to "cheat" a little on the positions of
point masses to achieve the desired position
Close the dialog box
10. Click the "Define Analysis/polar" in the Wing Polar menu, (F6)
11. Activate the Type 2 check box
12. Define the plane mass and the center of gravity position (the moment ref. location), or select the option to use the plane's
inertia
13. Unless the wing has either low aspect ratio, high sweep, or high dihedral, select the "LLT" checkbox, and close the dialog
box ( and )
14. Leave the LLT settings to the default values in the "Operating Point" menu, i.e. "Relax Factor = 20" and
"N of Stations Along the Span = 20"
15. Select an angle of attack in the right toolbar which can be expected to give positive lift equal to the model weight at
reasonable Speed/Re values for instance = 3
16. Click the "Analyze" button in the right toolbar
17. Change settings if LLT convergence cannot be reached, or continue the LLT analysis after un-checking the "Init LLT"
checkbox
18. Click the "3D view" command in the View menu
19. Use the mouse to zoom and rotate the model
20. Use Sequence to calculate a complete wing's polar
16. Click on the "Polars" command in the View menu, (F8) to visualize the polar graphs
4.3.18
Non convergences
Cause
All methods
LLT
Fix
The foils' Type 1 polar meshes do not cover the Extend the foils' Type 1 polar meshes
available flight envelope
[most usual case of non convergence]
In Type 2 analysis, the lift is negative
Either:
1.
2.
VLM
Panel
The results are inconsistent because the wakes Offset either the wing or elevator in the z
shedded by the wing and elevator are in the
direction, so that they do not lie in the same plane
same horizontal plane
The log file will indicate which points of the flight envelope could not be calculated. It can be accessed with the menu command
"Operating Point/View Log File"
The "log file" is a plain text file. If the document does not show up when called from the menu, it may be necessary to manually
associate the ".log" extension to Windows' Notepad.
4.4
4.4.1
Method
4.4.2
Theory
XFLR5 follows the method proposed by Etkin in ref [1].
With this type of analysis, longitudinal and lateral dynamics are independent and are evaluated separately.
4.4.3
Frames of reference
Three different reference frames come into consideration in stability analysis : the geometric axes, the body, axes and the stability
axes. These are defined in Figure 43.
X Body
X Stab
Y Body/Stability
Z Stab Z Body
X Wind
Horizontal
axis
Wind direction
Body axes:
The term body axes is generic and refers to any frame which is fixed to the body, and is therefore not an inertial frame of
reference. A usual, but not universal, convention is as follows:
Geometric axes:
This is the reference frame in which the geometry is defined.
the x-axis is the projection of the velocity vector on the body's xz-plane; this axis therefore points forward
The point of origin of the frame is the plane's centre of gravity CoG.
The stability axes are a special case of body axes.
Notes:
Since sideslip in XFLR5 is simulated by rotation of the structure around the inertial Z E axis, the wind axes are the
same as the stability axes even if the sideslip is non zero.
In equilibrium conditions, the stability axes are fixed to the body, and therefore are not an inertial frame.
XFLR5 follows the recommendation of [1] and performs all calculations in stability axes.
4.4.4
Flight constraints
The stability derivatives are computed about equilibrium conditions. The conditions that are considered are level or banked
horizontal flight. Using terminology from AVL :
: angle of attack
: sideslip angle
CL
: mass
: gravity acceleration
: air density
: reference area
airspeed
R0 = V0/g tan
W0 = V0/R
p0 = 0
q0 = W0 sin
r0 = W0 cos
Type 2 analysis in XFLR5 only considers the condition =0. This condition is relaxed for stability analysis.
4.4.6
State description
The plane's state at any instant is given by a set of 8 variables. Four variables describe the longitudinal state:
u
is the pitch rate, i.e. the rotation vector around the y-axis
is the pitch angle, i.e. the angle between the stability x-axis and the horizontal flight line
the angle is positive for a nose up.
is the roll rate, i.e. the rotation vector around the x-axis
is the yaw rate, i.e. the rotation vector around the z-axis
is the bank angle, i.e. the angle between the stability y-axis and the horizontal flight line
the angle is positive for a right wing down
The position defined by (x,y,z) does not come into consideration when studying flight dynamics, since the behaviour is not
expected to depend on absolute position. The variation of gravity and density with altitude is negligible for model aircraft and is
not taken into account.
In lateral dynamics, the heading does not appear in the equations.
4.4.7
Analysis procedure
The stability analysis follows the following steps:
1.
2.
a.
b.
3.
Define the mass, center of gravity (CoG), and inertia of each component of the plane. Two sub-options
Enter the mass of the wing or body, and let XFLR5 estimate the inertia and CoG
Enter those values manually
4.
a.
Run the analysis for some control parameter. The code will
Search for an angle of attack such that Cm=0, and will exit with a warning if unsuccessful
b.
c.
d.
e.
f.
5.
4.4.8
4.4.8.1
Description
In input, the analysis takes
the plane's geometry
the plane's mass, CoG and inertia tensor, defined in geometrical body axes.
the parameters defined by the stability analysis
the position for the controls : wing and elevator tilt angles, flap positions, etc.
the type of steady flight to be considered : steady level flight or steady banked turn.
4.4.8.2
Inertia estimations
A calculation form is provided to evaluate approximately the CoG position and the inertia tensor associated to the geometry. The
evaluation should not be understood as anything else than a rough order of magnitude (ROM).
The inertia of the plane sums up the inertia of each object and of the additional point masses.
4.4.8.2.1
Object inertias
The inertia of each object, i.e. wing or body, is evaluated in the dialog form for this object. It includes the volume inertia from the
structural masses, and the inertia of point masses.
The volume inertia is evaluated based on the mass provided, and on the geometrical data defining the object. It is evaluated in
the geometrical coordinate system, with origin at each object's CoG.
The evaluation is based on the following assumptions.
For the body, the mass is distributed uniformly in the external surface, and this surface is assumed to have a uniform
thickness. The body is divided in Nb elementary sections along the x-axis. The weight is concentrated at the center of
the cross section, as illustrated in Figure 8.
For the wing, the mass is assumed to be distributed uniformly in the wing volume along the span.
In XFLR5 v5, it has been modeled as point masses concentrated at the quarter-chord point of distributed sections along
the span.
In XFLR5 v6, it is modeled as point masses distributed both in the span and chord directions, as illustrated in Figure 45.
The mass distribution is independent of the wing's mesh used for aerodynamic calculations;
4.4.8.2.2
Point masses
Parts such as actuators, battery, nose lead, or receiver should be modelled separately as point masses, and not be included in
the evaluation of the volume inertia.
4.4.8.2.3
Total inertia
The total inertia for a plane is the sum of the inertias of the object making up the plane, and of point masses. It is expressed in the
reference frame defined by the plane's CoG and by the geometrical axes.
The transport of the inertia tensor from object CoG to plane CoG is done by application of Huyghens/Steiner theorem.
4.4.8.2.4
Notes
The mass defined for wings and bodies is not the one used for Type 2 calculations. The mass for type 2 is defined by the
Analysis/Polar setting.
The distribution of point masses should be adjusted to obtain the targeted position of the CoG. Otherwise, because of the
approximations made in the automatic evaluation of volume inertia, a strict transposition of the "real" position of masses
may result in an incorrect position of the plane's CoG.
Section i
O
Figure 44 Mass representation for the body
4.4.8.3
4.4.8.4
the type of reference length and area for the calculation of aerodynamic parameters
Control variables
The polar points can be calculated for different state of control variables. These variables are:
the rotation of the main wing's flaps about their hinge axis
Notes:
for the wing and elevator, a positive value will move the leading edge upwards and the trailing edge downwards
for a wing or elevator flap, a positive control value will move the trailing edge downwards
for the rudder, a positive control value will move the trailing edge to starboard
To represent ailerons rotating in opposite directions, the min and max values of the controls for each wing's aileron
should be opposite.
The initial value of the control's angle is not taken into account in the analysis. For instance, if the flap has been defined
with foils with non-zero flap angles, the initial angles will be cancelled before setting the position of the control.
Similarly, the tilt angle defined for the wing or flap in the plane definition is cancelled before application of the control
variable.
For a control polar, all the parameters vary simultaneously in accordance with the value of the control parameter "c":
Control variable = (1-c) x Control_Min_position + c x Control_Max_position
4.4.9
Output
In output, the code provides results for longitudinal and lateral dynamics :
the eigenvalues and eigenvectors for the four longitudinal modes and the four lateral modes.
4.4.9.1
Stability derivatives
The stability derivatives describe the change to a force or moment in response to a variation of a flight variable. For instance, the
variation of the axial force resulting from a change in axial speed is:
2
CX
CX
1 u0
1
1
2
2
=
S CX +
u0
S
= u0 S C X +
u0
S
u
2
u
2
u
2
u
FX
FX
u
= Xu
Cx
= Cxu
u
with both derivatives being calculated in the steady state.
Xu is the dimensional stability derivative, and Cxu is the non-dimensional stability derivative.
XFLR5 calculates the dimensional derivatives which are relevant at the scale of model sailplanes:
In the longitudinal direction: (Xu, Xw, Zu, Zw, Zq, Mu, Mw, Mq)
In the lateral direction: (Yv, Yp, Yr, Lv, Lp, Lr, Nv, Np, Nr)
The non-dimensional derivatives are usually given in stability axes, and the derivatives w.r.t to v and w are provided instead w.r.t
and . They are:
In the lateral direction : CYb, CYp, CYr, Clb, Clp, Clr, Cnb, Cnp, Cnr;
u0
/(q*S);
/(q*S*mac);
Cma = Mw*
/(q*S*mac);
u0
Cmq = Mq*(2.*u0/mac)/(q*S*mac);
CYb = Yv*
u0
/(q*S);
/(q*S*b);
/(q*S*b);
Clb = Lv*
/(q*S*b);
u0
Clp = Lp*(2.*u0/b)
/(q*S*b);
Clr = Lr*(2.*u0/b)
/(q*S*b);
Cnb = Nv*
/(q*S*b);
u0
Cnp = Np*(2.*u0/b)
/(q*S*b);
Cnr = Nr*(2.*u0/b)
/(q*S*b);
Where :
q is the dynamic pressure,
S is the reference Area
b is the reference Span
mac is the mean aerodynamic chord
The evaluation of the derivatives is an intermediate step in the calculation of the dynamic response. The derivative values are
stored in the OpPoint object, and can be exported to a text file for use in other flight simulation codes.
4.4.9.2
Modes
Natural modes
From the mathematical point of view, the state matrix can be diagonalized for eigenvalues and eigenvectors. An eigenvalue is of the form
= + i
where
is the damping constant, unit 1/s
is the circular natural frequency, unit rad/s
Any eigenvalue with a non-zero imaginary part , has a symmetric eigenvalue given by the its conjugate. This implies that the
time response of a variable for such a mode is of the form:
x( t ) = R e t cos( t )
Roots (=eigenvalues) lying on the left of the diagram with negative x value correspond to stable modes, those lying on
the right with positive x-value are unstable.
The further down the left is the root, the more stable is the mode.
Roots with non zero imaginary part correspond to oscillating modes, those with zero imaginary part are non-oscillating.
The further way is the root from the x-axis, the higher is the frequency of vibration.
Mode shape
The eigenvalue defines the mode's frequency and damping, and the eigenvector defines its shape.
It isn't an intuitive task to understand a mode shape from the eigenvector's components. Another more convenient way is to
animate the mode in the 3D view.
Since the frequency and damping may be very different from one mode to the other, the time sampling and amplitude will need to
be adjusted for each mode.
The mode amplitude R is arbitrary and has no physical significance. It may be adjusted to any scale for display purposes. In flight,
a mode is seldom excited alone. Rather, an external perturbation will tend to generate a response on the different longitudinal
and lateral modes. This can be modelled in the time response plot.
4.4.9.3
Time response
The time response is evaluated based on the flight dynamics equation. For instance, in the longitudinal case, this is expressed as
u
u
w
w
= A
where:
[Blong] is the 4xn control influence matrix, with n being the number of control variables
[F(t)] is nx1 matrix, giving the forced input history of each control variable
The time history of the state variables (u, w, q, ) and (v, p, r, ) can be calculated either
or as the consequence of control actuation vs. time : this is the "Forced response"
4.4.9.3.1
Initial condition response
The input required is a step change from the steady state flight. For the longitudinal case, this input may be provided as any
combination of values for u, w, and q. In the lateral case, it is input as a combination of values of v, p, and r.
4.4.9.3.2
Open loop forced response
This type of analysis investigates the response of the plane to a change of a control parameter. Such parameters are typically a
modification of thrust, or the actuation of a control surface such as the elevator, the rudder, or the ailerons. The modification of
thrust is not considered in XFLR5.
The input required is a time history of a control parameter. XFLR5 only offers the possibility to simulate a linear ramp of a control
in a finite time.
Amplitude ()
Ramp
amplitude
Ramp
time
time
Although all control variables are set simultaneously to determine the steady state geometry and trim conditions, the variation of
each may be set independently in the evaluation of the forced response. The ramp time however is the same for all control
variables.
Important note: the analysis of a response to a longitudinal step input may have physical relevance since the plane may
eventually return to a steady state close to the initial conditions. On the opposite, the actuation of lateral control will lead to
divergence from the steady state conditions, to coupling between longitudinal and lateral modes, and the analysis will not be
representative. For instance, the ailerons will generate bank angle, modify the vertical lift, and will lead to divergence from the
steady state conditions. The same goes for the actuation of the rudder, which will lead for instance to bank angle through dihedral
effect.
4.4.10
5.1
CODE SPECIFICS
5.2
"XFLR5.set" which records user settings ; delete this file to restore the default settings
"XFLR5.log" which records the output of the foil and wing analysis
5.3
Shortcuts
In an attempt to increase the user friendliness of the interface, shortcuts have been provided for most major commands, and are
mentioned in the menus.
Typing a first carriage return ( ) in a dialog box will select the OK or the default button, typing a second carriage return will
activate this button.
Typing a first carriage return ( ) in the main window will select the 'Analyze' button, typing a second carriage return will activate
this button.
5.4
Mouse input
All graphs, foils, and wings may be dragged and zoomed with the mouse. Using Ctrl+Left button in 3D view will cause rotation of
the model.
These options however may not work correctly (or not at all) if the buttons are not set to the "Default" in the Windows Mouse
interface.
Pressing the 'X' or 'Y' keys while zooming a graph will expand only the corresponding axis.
For those computers without a mouse wheel nor a middle button, zooming can be achieved in all views by pressing the 'Z' key
and moving the mouse.
5.5
Memory
One of the characteristics of both the foil and the wing analysis is to use a significant computer memory.
Operating points specifically store a large amount of data and lead to voluminous project files which will slow down Save & Load
processes. It is however unnecessary to keep them, since the important data is also stored in the polar objects which do not
require large memory resources.
5.6
Export Options
Printing
Although XFLR5, as it is, offers some printing options, the implementation of more advanced capabilities would require
significant work, and has not been, nor is expected to become, the primary concern of the on-going development.
Screen Images
An option has been added in v4.12 to export screen client areas to image files.
Graph data
An option has been added in v4.13 to export graph data to text files.
Data export
All results, operating points and polars, can be exported to text files for processing in a spreadsheet.
5.7
From v4.12 onwards, an option is available to export the data to the "comma separated value" format ".csv". This text
format is meant to be readable without conversion in a spreadsheet. However, it may happen that the operating system's
regional settings need to be adjusted to define the comma ',' as the default list separator.
Bugs
Once again, XFLR5 is by no means a professional program, and despite the authors best efforts and the help of all those who
have tested it and provided valuable feedback, it is most probably still not default-free.
Main Bug Corrections :
1.
In the 3D panel method implemented in XFLR5 v4, the formulation for Neumann boundary conditions was incorrect
leading to inconsistent results. For this reason, the default method has used Dirichlet BC.
The bug has been corrected in XFLR5 v6.02
2.
A bug was reported shortly after the release of v3.00 on September 7 th, 2006. It had for main consequence to count
twice the elevators lift in the calculation of a Plane with the VLM quad-method. This bug has been corrected in version
v3.01 released on September 24th, 2006.
3.
Up to v3.14, the contribution of the elevator and fin to the pitching and yawing moments was calculated with respect to
the point X=0 instead of X=XCmRef. Corrected in v3.15 released January 21 st, 2007.
The author will be grateful for any report of inconsistent results or other bugs, and will do his best to investigate and correct them
in a timely manner. To facilitate bug corrections, the reports should ideally include:
-
5.8
CREDITS
Many thanks to Matthieu for his scientific advice and help, to Jean-Marc for his patient and comprehensive testing of the
preliminary versions, to Marc for his natural ability to debug programs and planes, and to all the others who have contributed by
their input to improve XFLR5, especially Giorgio and Jean-Luc.
Thanks also to Francesco who has written in RCSD 2008-04 a valuable tutorial for XFLR5, and who has contributed to the
development of the version for MacOS
Similarly, thanks to Karoliina and Jean-Luc for her help in the compilation of the Debian/Ubuntu version.
Thanks also to Martin for the German translation, and to Jean-Luc for the French translation.
REFERENCES
[1]
James C. Sivells and Robert H. Neely, Method for calculating wing characteristics by lifting line theory using nonlinear
section lift data, April 1947, NACA Technical Note 1269.
[2]
Robert H. Neely, Thomas V. Bollech, Gertrude C. Westrick, Robert R. Graham, Experimental and calculated
characteristics of several NACA-44 series wings with aspect ratios of 8, 10 and 12 and taper ratios of 2.5 and 3.5, NACA
Technical Note 1270.
[3]
Katz & Plotkin, Low Speed Aerodynamics, From wing theory to panel methods,
Cambridge University Press, 2nd Ed. 2001.
[4]
[5]
[6]
Andr Deperrois, "About stability analysis using XFLR5", Presentation document, June 2008
http://xflr5.sourceforge.net/docs/XFLR5_and_Stability_analysis.pdf
[7]
Andr Deperrois, "Quelques notions d'arodynamique de base et leur calcul dans XFLR5", Presentation document, June
2008
http://xflr5.sourceforge.net/docs/Survol_Bases_Aero_et_XFLR5.pdf
[8]
Andr Deperrois, "Illustration of the use of Control Polars in XFLR5", Presentation document, July 2008
http://xflr5.sourceforge.net/docs/Control_analysis.pdf
[9]
[10]
[11]
B. Etkin and L.D. Reid, Dynamics of Flight: Stability and Control. John Wiley and Sons, New York, NY, Third Edition,
1996.
[12]
"Stability and Control analysis in XFLR5 v6", A. Deperrois, Presentation document, September 2010.
http://xflr5.sourceforge.net/docs/XFLR5_and_Stability_analysis.pdf