J. Philip Barnes www.HowFliesTheAlbatross.com Practical parametric geometry for aircraft design 26 May, 2015 J. Philip Barnes “Regenosoar” regen-electric aircraft rendered with Blender 3D open-source graphics software and 100% math modeled with parametric equations via Blender’s integrated Python programming language
25
Embed
J. Philip Barnes Practical parametric geometry for aircraft design 26 May, 2015 J. Philip Barnes “Regenosoar” regen-electric.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
J. Philip Barnes www.HowFliesTheAlbatross.com
Practical parametric geometry for aircraft design 26 May, 2015 J. Philip Barnes
“Regenosoar” regen-electric aircraft rendered with Blender 3D open-source graphics software and 100% math modeled with parametric equations via Blender’s integrated Python programming language
J. Philip Barnes www.HowFliesTheAlbatross.com
Abstract Practical parametric geometry for aircraft design
J. Philip Barnes, Technical Fellow, Pelican Aero Group
Theory and application of practical methods for aircraft geometry parameterization and visualization are described. The methods, characterizing the surface geometry of complete aircraft, wings, fuselages, ducts, and new or existing airfoils, include fidelities ranging from “rapid visualization” to “high fidelity.” We apply two integrated programming and visualization platforms. The first is EXCEL and Visual Basic and the second is Blender 3D (open-source) with its resident Python programming language. In all cases, we characterize Cartesian coordinates (x,y,z) with parametric coordinates (u,v).
For “rapid synthesis,” we introduce modified trigonometric functions capable of quickly approximating an airfoil, wing, or fuselage with just a handful of parameters. We also introduce a “cubic quadrant” method for for fuselage cross section design. For “good fidelity” modeling of new or existing airfoils, we introduce a “parametric Fourier series” method satisfying specified leading edge radius, max&min vertical coordinates, upper&lower afterbody slopes, and aft-edge thickness. A “fine tuning” parameter allows further subtle adjustments. Upper and lower surfaces can also be modeled separately for greater control.
For “high fidelity,” we describe the theory and application of the cubic spline which is unique in its class by passing through, not just near, all specified points while preserving C2 continuity. Although the cubic spline not C3 continuous, we show that airfoil surface velocity distributions remain smooth with cubic-spline parameterization of the airfoil geometry. We also apply the cubic spline to characterize wings and fuselages. Core algorithms and code blocks are listed or otherwise made available to ensure ready access to the methods.
Blender 3D rendering of python-programmed geometry
J. Philip Barnes www.HowFliesTheAlbatross.com
Python window Rendering window
C:\Users\Philip\graphics\Blender\regen_ne
Getting started: EXCEL as a scientific spreadsheet
• Purpose (typical):• Read input and/or data from spreadsheet• Edit & run algorithm; generate new data• Write to spreadsheet cells & plot results• Copy all data & plots as new sheet; re-run
• One-time setup:1) EXCEL Options ~ Formulas ~ R1C1 ...2) Trust Ctr. ~ settings ~ macro ~ enable & trust3) Toolbar ~ more... ~ all ... ~ Visual Basic ~ Add4) Set VB editor window to float on spreadsheet
• Typical operations:1) Type in the column headers, i.e. t, x, y, z2) VB ~ insert ~ module ~ Type: sub example 3) Enter or edit code ~ save file as *.xlsm4) Click run icon (note: module stays with the file) 5) Highlight applicable columns & plot the results6) New case: Copy sheet, revise inputs, repeat 4)
Microsoft Office Excel Macro-Enabled Wor
Powerful Parametrics for Airfoil Geometry
J. Philip Barnes June, 2015
J. Philip Barnes www.HowFliesTheAlbatross.com
W
W
U
Cubic Spline
Airfoil parametric geometry
• Objectives and Applications– Closely match/smooth existing airfoils– Geometric design of new airfoils– Option: modest-fidelity rapid vizualization
• Three methods herein– Trigonometric (“Rapid viz”)– Fourier Series (good fidelity)– Parametric cubic spline (high fidelity)
• Common approach– One or two parametric surfaces– Set LE radius, 1-to-3 midpoints, aft slope– X(W) parametric, 0 ≤ W ≤ 1, front to back– Z(U) Fourier, or Z(W) polynomial or spline– “Fine tuning” via one or more aux. params. – EXCEL files included herein, each method
• Fourier Series terms z(u)• Best used for one curve Z(U), not two Z(W)• Add 8 sinusoidal terms plus aft-edge width• Single L.E. rad.(R), max/min (X,Z) , two aft (b)• Use upper & lower fine-tune parameters (g)• Continuous in all derivatives• Solve eight eqns. for Fourier amplitudes• Satisfy end slopes (dW/dZ) & max/min• Compact “airfoil-sharing” formula• Airfoil construction sequence:• U = 0 to 1 ; W = if(U < 0.5, 1 - 2U, 2U - 1)• g = gb + (gt - gb) cos2 (pU/2)• X = 1 - (1-g) cos(pW/2) – g cos(3pW/2)• Z = S m=1 to 8 {am sin(mpU)} + Za(1-2U)
J. Philip Barnes www.HowFliesTheAlbatross.com
0 W 1
1
X
0
g“fine-tune”parameter
Parameterizationfor X(W)
U
Z
0
First 4 termsof the series
Microsoft Excel Macro-Enabled Worksheet
W
W
U
Fourier Series
J. Philip Barnes www.HowFliesTheAlbatross.com
Parametric Fourier-Series airfoil ~ NLF(1)-0416 ~ matchFwd fine tuning, g inputs: 0.35000 0.17245 0.09366 0.30000
Upper gu 0.37500 0.12403 0.08208 0.25000
0.070 0.40000 0.08190 0.06715 0.20000
Lower gL 0.42500 0.04734 0.05008 0.15000
0.130 0.45000 0.02153 0.03232 0.10000
0.47500 0.00548 0.01527 0.05000
L.E. rad., R = r/c 0.50000 0.00000 0.00000 0.00000
Half trailing-edge, Za 1.00000 1.00000 -0.00050 1.00000
0.0005
-0.15
-0.10
-0.05
0.00
0.05
0.10
0.15
0.20
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
Z(X)
PCS-001
0.0
0.2
0.4
0.6
0.8
1.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
X(u)
-0.04
-0.02
0.00
0.02
0.04
0.06
0.08
0.10
0.12
0.14
0.16
0.18
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
Z(X)Fourier Series
Target Airfoil
specifications
RUN
-0.10
-0.05
0.00
0.05
0.10
0.15
0.20
0.25
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
Z(u) specificationsFourier Series
-4.0
-3.0
-2.0
-1.0
0.0
1.0
2.0
3.0
4.0
5.0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Upper and Lower 2nd Derivatives, d2Z/dW2
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Upper & Lower 1st Derivatives, dZ/dW Vs. W
Cubic spline ~ Parametric u(t) or Cartesian y(x)
• Get smooth curve passing through (1_to_n) points• VB array dim. (n) elements: 0_to_n ~ ignore 0th elem.• 1st & 2nd derivative Continuity (3rd is not continuous)• Independently control L/R-end slope or 2nd derivative • Internal-node continuity yields tri-diagonal system• End constraints are applied in first and last rows• Parametric x(t) ; v “velocity”; a “acceleration”
t
x
12
n
3
• Set ends; Solve linear EQs. for internal-knot accelerations (a)
• Cubic spline(s) pass through all set points• Wider design space including “unusual”• Match 0th, 1st, 2nd derivatives, ea. node• Discontinuous 3rd derivative• Input LE rad.(R), 3 pts. (X,Z) , aft slope (b)• g can be varied but is normally fixed (0.1)• Solves 5 eqns. spline-knot 2nd derivatives• Gauss-Seidel in lieu of Gaussian Diag.• 3 midpoints versus single midpoint• Any position, not necessarily max/min• Less compact “airfoil-sharing package”• U = 0 to 1 ; W = if(U < 0.5, 1 - 2U, 2U - 1)• X = 1 - (1-g) cos(pW/2) – g cos(3pW/2)• EXCEL solves for cubic splines, Z(W) • Package: sol’n data block & interpolator
Trig. functions provide 99% desiredresult with just 1% of computation
J. Philip Barnes www.HowFliesTheAlbatross.com
Microsoft Excel Macro-Enabled Worksheet
J. Philip Barnes www.HowFliesTheAlbatross.com
Parametric wing: cubic spline throughout (EXCEL/VB)
symbol description station, v = 0:1 → v → Ev0↓ 0.0000 0.2000 0.4000 0.7500 1.0000 Ev1↓ u x y z xp zp v c b0 b1 u1 z1 u2 z2 u3 z3 u4c local chord chord, c 0 1.0000 0.6600 0.3800 0.1800 0.0200 1 0 1 7 13 0 0.001 0.25 0.1 0.5 0 0.75
SummaryThe table above represents one half wing. Half-wing geometry is parametric with (u,v) using cubic splines, airfoil c'clockwise Vs. u, sparwise Vs. v Input one column per wing "sparwise" station, including the local airfoil as a column (5-points for now)Spline-edge integer constraints are [not] used for the airfoil ; set the boattail slopes (+ for typical foil)x/c for the airfoil is an output: x/c = 1-sin(pu), given (u) as an input. x/c is optionally modified with g.Airfoil "spline Left and Right" (lower t.e., upper t.e.) edge slopes (dz/du) are then given by -p tanbSpline-edge constraints are used versus sparwise position for all other parameters, i.e. c(v), b(v),...Sparwise position (v) has an airfoil "backbone" point at xb,yb,zb (global)The spar backbone chordwise station s = (x-xLE)/c, nominally 0.25, is anywhere from 0.0-to-1.0The airfoil is first translated such that its backbone is anchored to the backbone global positionThe airfoil is then "washed out" (trailing edge up), rotating about a local y-axis thru the backbone pt.The airfoil is then rotated about a local x-axis thru the backbone point by the dihedral angle (d).
RUN
Microsoft Excel Macro-Enabled Worksheet
23Energy From an Atmosphere in Motion - Dynamic Soaring and Regen-electric Flight Compared J. Philip Barnes www.HowFliesTheAlbatross.com
Application: Dynamic soaring in the jet stream
J. Philip Barnes www.HowFliesTheAlbatross.com
Application: Regen of electrical power in ridge lift
J. Philip Barnes www.HowFliesTheAlbatross.com
About the Author
Phil Barnes has a Master’s Degree in Aerospace Engineering from Cal Poly Pomona and BSME from the University of Arizona. He is a Principal Engineer and 34-year veteran of air vehicle and subsystems performance analysis at Northrop Grumman, where he presently supports both mature and advanced tactical aircraft programs. Author of several SAE and AIAA technical papers, and often invited to lecture at various universities, Phil is presently leading several Northrop Grumman-sponsored university research projects including an autonomous thermal soaring demonstration, passive bleed-and-blow airfoil wind-tunnel test, and application of Blender 3D software for flight simulation. This presentation includes highlights of one such collaboration (public domain) using EXCEL/Visual Basic and Blender 3D with its resident Python programming language to parameterize and visualize aircraft geometry. Outside of work, Phil is a leading expert on dynamic soaring, and he is pioneering the science of regen-electric flight.