The Wing component models wings, tails, canards, fins and any other lifting surface. It builds the surface from a row of airfoils, placed one after another from the root to the tip. The space between two neighboring airfoils is a wing section, a trapezoid in its own plane with its own span, chords, sweep, dihedral and twist; a wing has as many sections as it needs, so a cranked or many-paneled wing is one component. Between the airfoils the surface is lofted, with straight leading and trailing edges unless they are blended into curves. The ends can be closed with several kinds of cap.
| Topic | Tab |
|---|---|
| Quick Start | |
| Sections and Airfoils | Sect, Airfoil |
| Section Planform | Sect |
| Sweep | Sect |
| Dihedral | Sect, Plan |
| Airfoil Orientation at a Dihedral Break | Plan, Sect |
| Twist and Root Incidence | Sect, Plan |
| Total Planform | Plan |
| Tip Treatment | Plan |
| Blending | Blending |
| Airfoils on a Wing | Airfoil, Modify |
| Tessellation | Sect, Plan, Gen |
| Spanwise Coordinate Eta | XForm, Sub |
| Scripting |
The Gen, XForm, Mass and Sub tabs are common to all components; see Gen, XForm, Mass, Sub-Surfaces and Attributes, which are edited on the Gen tab. A wing's Sub tab also offers the Control Surface sub-surface, which only wings and propellers have.
A new wing has one section: a span of 9 per side, a root chord of 4, a tip chord of 1, of leading edge sweep and NACA 0010 airfoils, mirrored across the plane. Its origin is the leading edge of the root airfoil, and its span runs along .
A vertical tail on the symmetry plane must not be mirrored: with symmetry on, the turned tail and its mirror image lie on top of each other, which breaks the analyses that need a closed, non-overlapping surface (CFD Mesh leaves both out of the mesh, with a warning in its console), and the Plan tab's totals count the span twice. Keep the symmetry only for a pair of fins set apart from the plane, as on a twin tail.
Turn a fin up with the XForm rotation rather than with a dihedral: with the default settings the root airfoil stays upright and is thickened for the dihedral by , which grows without bound as nears (see Airfoil Orientation at a Dihedral Break).
Build a wing in the order its features depend on each other: the planform first (spans, chords and sweeps), then thickness, dihedral and twist, then the airfoils and any winglet, and blending last, only where the straight-edged sections cannot give the shape. Use as few sections as the shape needs, with an airfoil at each break in the planform, dihedral or airfoil; every extra airfoil is one more set of values to keep consistent. A fairing at the root of a tail, such as a dorsal fin, is often just one more section with a long root chord and a large sweep.
The wing's airfoils are numbered from 0 at the root. Section lies between airfoil and airfoil , so the sections are numbered from 1 (Figure 1). The Sect tab chooses a section; the Airfoil, Blending and Modify tabs choose an airfoil, and share one index.

Figure 1. A wing of two sections, with its mirror image. Section 1 lies between airfoils 0 and 1, section 2 between airfoils 1 and 2.
Neighboring sections share an airfoil, and so share a chord: the Tip C of a section is the Root C of the section outboard of it. They are one value, and changing either changes the other.
When a shared chord changes, only the section being edited obeys its drivers (see Section Planform). The neighbor does not: for that change it is solved as if its drivers were Span, Root C and Tip C, whatever they are. It keeps its span and its other chord, and its area, aspect ratio, taper, average chord and secondary sweep are recomputed, including those it has chosen as drivers. A neighbor driven by AR, Area and Taper therefore changes all three (Figure 2). Its choice of drivers is kept, and from then on they hold their new values.

Figure 2. Section 1's Tip C changed from 2.5 to 3.5, before (dashed) and after. Section 2, driven by AR, Area and Taper, keeps its span and its tip chord, and its drivers take new values.
So to size neighboring sections independently, make the chords they share drivers of both: with Area, Root C and Tip C, a change to one section's Area moves only its span, and its neighbors are untouched.
The buttons on the Sect tab act on whole sections, planform and airfoil together.
A section is a trapezoid, described by eight quantities (Figure 3).
| Driver | Quantity |
|---|---|
| AR | Aspect ratio of the section, . |
| Span | Span , measured in the section's own plane, along its dihedral. |
| Area | Area of the trapezoid. |
| Taper | Taper ratio . |
| Ave C | Average chord . |
| Root C | Root chord , the chord of the inboard airfoil. |
| Tip C | Tip chord , the chord of the outboard airfoil. |
| Sec SW | Secondary sweep , the sweep of a second chordwise line (see Sweep). |
Three of them, the drivers, are set and the other five follow from
and the sweep relation in Sweep, which ties Sec SW to the chords and the span. The default drivers are Span, Root C and Tip C.
On the Sect tab the eight quantities stand in a column of sliders with three columns of buttons beside them; each column of buttons picks one driver (Figure 4). The sliders of the three drivers are active and the other five are greyed: they show values OpenVSP has computed. The relations among the eight are nonlinear, but OpenVSP does not search for the five numerically. At every update it solves the relations exactly: it finds, in closed form, each quantity that follows from those already known, and repeats until all eight are known. So every allowed choice works the same way: the drivers keep exactly the values you give them, the other five always agree with them, and neither the order in which you set the drivers nor the values the others had before makes a difference.
Not every choice of three fixes a section. Three quantities already tied by one of the relations above fix only two things between them: Root C, Tip C and Taper state the tip chord twice and say nothing about the span or the area. The buttons offer only choices that fix the section. A button is active only if putting its quantity in its column, with the other two columns as they are, gives three independent drivers; so a quantity chosen in one column is greyed in the others, and so is any quantity that would complete a related set. The sets never offered are
That leaves 39 of the 56 possible sets. To go from one set to another, change one column at a time; when the quantity you want is greyed in a column, change one of the other columns first.

Figure 3. The default wing's section seen from above, with the quantities that define it. The sweeps are measured from the direction.

Figure 4. The Section Planform group of the Sect tab with the default drivers, Span, Root C and Tip C. A greyed button, marked with a cross, would make a set that does not fix the section.
Choose the drivers for what you know and what you want held while you change other things.
When the section has no taper (equal chords, Taper 1, or Sweep equal to Sec SW), its edges are parallel: Taper is set to 1 and Sec Sweep to the Sweep.
Sweep is the sweep angle of the line through the chordwise point Sweep Loc of every chord, a fraction of the chord from 0 at the leading edge to 1 at the trailing edge. It is measured in the section's own plane, from the direction perpendicular to the root chord, and is positive aft (Figure 3). The default Sweep Loc is 0, the leading edge.
The sweep of any other chordwise line follows from the taper. The line at Sec SW Loc, , has the sweep
where is Sweep Loc. This is the secondary sweep, Sec SW. With the defaults, and , it is the trailing edge sweep. Sweep Loc and Sec SW Loc cannot be equal.
Sweep is always set; it is not one of the drivers. When a chord changes, the line at Sweep Loc keeps its sweep and the others move. So set Sweep Loc to the line whose sweep you are given, 0.25 for a quarter-chord sweep, before you set the Sweep. Changing Sweep Loc keeps the angle and moves it to the new line, which changes the planform; it does not re-express the same planform at another line (Figure 5).

Figure 5. The default section, Sweep at Sweep Loc 0 (solid), and the same Sweep at Sweep Loc 0.25 (dashed). The root stays, the quarter chord line takes the , and the leading edge sweeps further.
Dihedral tilts the section up about the direction at its root airfoil: the section's span runs at from the horizontal, and its tip rises by (Figure 6). The section's sweep and chords are those of its own plane, so seen from above a section with dihedral is foreshortened along by . The Sect tab reports that span seen from above as Projected Span, .

Figure 6. The wing of Figure 1 seen from upstream; section 2 has of dihedral. Its Span is measured along the section, and its Projected Span is the span seen from above.
Dihedral Reference on the Plan tab chooses what each section's dihedral is measured from. Abs, the default, measures each from the horizontal. Rel measures each from the section inboard of it, so the angles add up from the root.
At a change of dihedral the airfoil can stand upright, in the plane, or turn about to lie across the dihedral (Figure 7). A turned airfoil between two sections lies on the bisector of their dihedrals; the tip airfoil lies across the tip section, and the root airfoil across section 1.

Figure 7. Airfoil 1, at a break from to of dihedral, seen from upstream. The airfoil is the red line across the surface; its plane is dashed.
Two sets of controls decide which airfoils turn, one for the whole wing and one for each airfoil.

Figure 8. The Wing Loft Control group of the Plan tab at its defaults: All But Root and Correct Foil Thickness on, Wing Root off, and Twist All Foils In XZ Plane greyed while All But Root is on.
An airfoil turns if either control that reaches it is on.
| Airfoil | Turned when | Lies across |
|---|---|---|
| Root, airfoil 0 | Wing Root is on | section 1 |
| Between two sections | All But Root, or the inboard section's Rotate Tip Foil, is on | the bisector of the two |
| Tip | All But Root, or the tip section's Rotate Tip Foil, is on | the tip section |
An airfoil turned to the bisector of a break of meets each section at , which would make the sections thinner than the airfoil. Correct Foil Thickness For Dihedral Rotation, on by default, thickens such an airfoil by so the thickness across each section is the airfoil's. It also thickens an upright root airfoil by , where is section 1's dihedral, for the same reason. Other upright airfoils are not thickened: where a section with dihedral meets an upright airfoil, the wing measured across the section is only of the airfoil's thickness.
Leave these at their defaults (All But Root on, Wing Root off, Correct Foil Thickness on). Every airfoil away from the root then lies across the surface, and the wing keeps the airfoils' thickness through every break. Leave the root upright when the wing's root lies on the symmetry plane or against a fuselage side: the two halves then meet in the plane. Turn on Wing Root when the root is free, as on a wing that starts from another surface. Turn All But Root off only when particular airfoils must stay upright, and then turn the others with Rotate Tip Foil, section by section.
A model may arrive with other settings: All But Root off, with Rotate Tip Foil on for some sections and off for others, or Correct Foil Thickness off. Its airfoils then stand upright wherever their own button is off, and the wing is thinner than its airfoils across every section with dihedral that meets an upright airfoil. Turning All But Root on turns all of them at once, which is usually what such a model needs, but it changes the surface, so check what depends on it.
Twist turns a section's tip airfoil about the point Twist Loc, a fraction of its chord (0.25 by default). Positive twist raises the leading edge (Figure 9). The root airfoil belongs to no section; its twist is the Incidence in the Plan tab's Root Incidence group, about Incidence Loc, a fraction of the root chord (0.25 by default).

Figure 9. The default wing's tip airfoil seen from the side, untwisted (dashed) and with of twist about Twist Loc 0.25.
Twist Reference on the Plan tab chooses what each twist is measured from.
Root incidence is not the same as turning the wing with YRot on the XForm tab (Figure 10). Twist and Incidence turn each airfoil in place, about a point on its own chord. Those points, the Twist Loc line (the quarter chord by default), stay where the planform puts them, so the span, sweep and dihedral of that line do not change. YRot turns the whole wing as a rigid body about a line parallel to through one point, the rotation origin; on a wing, Rot Origin(X) places it at a fraction of section 1's root chord, so 0.25 turns the wing about the root's quarter chord. Every point aft of that point moves down as the leading edge rises: on the default wing, of YRot about Rot Origin(X) 0.25 lowers the tip's quarter chord by 0.62 (by 0.76 about the default Rot Origin(X) of 0, the root leading edge), where of Incidence with Rel twist leaves it in place. YRot turns the wing's own axes too, so the sweep and dihedral turn with it, and so do the components that take their orientation from the wing. Both raise the leading edge for a positive angle.

Figure 10. The default wing's root and tip airfoils seen from the side, turned by of Incidence with relative twist (top) and by of YRot about Rot Origin(X) 0.25 (bottom), over the unturned airfoils (dashed).
Use YRot for the angle at which the wing as a whole is set on the aircraft: the wing is built as designed and then mounted at that angle. Use the Incidence, with Abs twist, for the root airfoil's place in the twist distribution, as the first value of the wing's twist from root to tip.
A section's tip airfoil is twisted about the direction of its section's span, which tilts with the dihedral. When the airfoil is not turned to match the dihedral, that tilts it out of the plane. Twist All Foils In XZ Plane on the Plan tab, or Twist Tip Foil In XZ Plane for one section on the Sect tab, twists about the direction instead, which keeps the airfoil in the plane. Twist All Foils In XZ Plane is greyed while All But Root is on, and has no effect on an airfoil whose own Rotate Tip Foil is on; Twist Tip Foil In XZ Plane is greyed whenever its airfoil is turned or Twist All Foils In XZ Plane is on.
The Plan tab reports the planform of the whole wing. With symmetry, the span and area include both halves; they are doubled for any symmetry, whatever the number of copies.
| Total | Value |
|---|---|
| Span | The sum of the sections' spans, each measured along its dihedral. |
| Proj Span | The sum of the sections' projected spans, . |
| Chord | The mean of the sections' average chords, each section counted once whatever its span. |
| Area | The sum of the sections' trapezoid areas, each in its own plane. |
| MAC | The mean aerodynamic chord of one side, from the actual leading and trailing edges. |
| Curved Area | The area from the actual leading and trailing edges. |
| Aspect Ratio | Proj Span squared over Area. |
The mean aerodynamic chord and the curved area are integrals over the span of the chord , the distance from the leading to the trailing edge, along the edges as built, blending included:
where runs along the sections' spans. Without blending, Curved Area equals Area. Note that the Aspect Ratio divides a projected span by an area that is not projected, and that Chord is not Area divided by Span unless the sections have equal spans.
Span, Proj Span, Chord and Area can also be set, to scale the whole wing.
In every case the sweeps, dihedrals and twists stay.
Root Cap Type and Tip Cap Type close the ends of the wing. A new wing has a Flat cap at both ends, so it is a closed body. Each cap is built across the end airfoil, station by station along the chord, so its height follows the airfoil's thickness. Figure 11 shows the shapes from upstream.
| Cap | Shape |
|---|---|
| None | The end is left open. |
| Flat | A flat face across the airfoil. |
| Round | A circular arc tangent to the upper and lower surfaces. |
| Edge | Two flat faces from the upper and lower surfaces, meeting in an edge. |
| Sharp | Like Edge, but each face leaves the surface along it and curves into the edge. |
| Round Ext ... | The round cap with its reach carried out to the leading edge, trailing edge, or both. |

Figure 11. The default wing's tip from upstream, with each cap type at Length 1; Sharp has its default Strength, 0.5. The red line is the tip airfoil.
The caps other than None and Flat take a Length, which scales how far the cap reaches beyond the end airfoil (1 is a circle for Round), and an Offset, which moves its tip up or down by a fraction of the local thickness. Sharp also takes a Strength, from 0 to 1: how far each face follows the surface's direction before it turns toward the edge. At 0 it is the Edge shape. As the Strength rises the faces meet at a shallower angle, but the edge persists almost to the end: at 0.9 and Length 1 they still meet at about . At 1 the edge is gone and the cap is smooth across its tip, like Round but slightly fuller, reaching about 1% farther. Use Round for a smooth tip, and Sharp below 1 for a tip that ends in an edge. Choosing Round sets the Strength to 1, Edge to 0, and Flat or None to 0.5; Sharp keeps the value it finds, so Sharp chosen after Round starts at 1, with no edge.
At Length 1 the Round, Edge and Sharp caps reach out by half the local thickness, so their reach falls to nothing at the thin leading and trailing edges and the tip is rounded in plan. The extended round caps hold the full reach of the thickest station out to the leading edge (Round Ext LE), the trailing edge (Round Ext TE) or both (Round Ext Both), which squares off those corners in plan (Figure 12). Round Ext None builds the Round shape.

Figure 12. The default wing's tip from above, with the Round and extended Round caps.
On a swept wing the surface meets the end airfoil at an angle, and a cap built along the surface reaches out less, measured square to the end. Sweep Stretch lengthens the cap to make up for it, so that it reaches as far as on an unswept wing.
Cap Tess sets the number of tessellation lines across both caps, and across a blunt leading or trailing edge made on the Modify tab.
Without blending, each section's leading and trailing edges are straight lines between the airfoils. The Blending tab curves them: at each airfoil it sets the direction, and how strongly it holds, in which the leading and trailing edges leave the airfoil, separately on its inboard and outboard sides. Between the airfoils the surface is then lofted through airfoils fitted between the curved edges. Blending changes the surface, the MAC and the Curved Area, but not the section's planform quantities on the Sect tab, which stay those of the trapezoid.
Each of the four sides (leading edge inboard and outboard, trailing edge inboard and outboard) has a Match mode.
| Match | The edge leaves the airfoil |
|---|---|
| FREE | with no condition; with both ends free, the edge is straight. |
| ANGLES | at the Sweep and Dihedral given, with the Strength given. |
| IN_LE_TRAP, IN_TE_TRAP | along the straight leading or trailing edge of the section inboard. |
| OUT_LE_TRAP, OUT_TE_TRAP | along the straight leading or trailing edge of the section outboard. |
| IN_ANGLES (outboard side) | at the inboard side's Sweep and Dihedral. |
| LE_ANGLES (trailing edge) | at the leading edge's Sweep and Dihedral on the same side. |
The inboard side of the root airfoil and the outboard side of the tip airfoil have nothing to blend, and are greyed. The root's outboard sides cannot match the section inboard (IN_LE_TRAP, IN_TE_TRAP), nor the tip's inboard sides the section outboard (OUT_LE_TRAP, OUT_TE_TRAP). IN_ANGLES needs the inboard side on ANGLES (for the trailing edge, ANGLES or LE_ANGLES), and LE_ANGLES needs the leading edge on that side on ANGLES (outboard, ANGLES or IN_ANGLES). Every mode is listed on every side; a mode that does not apply there is changed to ANGLES, except IN_ANGLES on an inboard side and LE_ANGLES on a leading edge, which stay as chosen and act as ANGLES. In FREE, the sliders show the angles and the strength the edge takes; in the other matching modes they show the angles it takes, and Strength remains an input.
The angles are measured from the airfoil: Sweep from the
airfoil's normal, positive aft as for wing sweep, and Dihedral
about the chord, positive with the edge rising outboard on both sides,
so a straight edge rising at
through an upright airfoil reads
inboard and outboard. IN_ANGLES takes the inboard Sweep and Dihedral, so
the edge continues smoothly through the airfoil. An older model or
script may give the inboard Dihedral with the opposite sign, which shows
as an edge that kinks where it was meant to run smoothly; change the
sign of the inboard Dihedral (InLEDihedral,
InTEDihedral in a script) to restore the intended
shape.
Strength scales the edge's tangent at the airfoil: it multiplies the distance to the neighboring airfoil's leading (or trailing) edge. The default is 1; larger values hold the edge to its direction farther from the airfoil, and smaller values let it turn toward the neighbor sooner. Do not set a Strength to 0: the edge then has no tangent at the airfoil, a degenerate curve that causes trouble in export and analysis. For a sharp corner in the edge, leave that side FREE instead.

Figure 13. The leading edge of the wing of Figure 1, straight (dashed) and blended at airfoil 1: inboard ANGLES with of sweep, outboard IN_ANGLES. The vectors are the blend tangents, inboard dashed.
Show Blending Vectors draws the tangents at the chosen airfoil in the 3D view, the inboard ones dashed. To round a crank, as in Figure 13, set the inboard leading edge to ANGLES with a sweep between those of the two sections and the outboard side to IN_ANGLES (Figure 14).

Figure 14. The Blend Airfoil and Leading Edge groups of the Blending tab for the blended crank, at airfoil 1: the inboard side ANGLES with of sweep, the outboard side IN_ANGLES, whose Sweep and Dihedral are greyed and show the inboard angles. Strength stays an input on both sides.
Blending works on edges that already exist, so plan the sections for it. A wing with a fillet at the root and a winglet at the tip takes four sections: a short root section for the fillet, the main wing, a short transition section, and the winglet. Lay out the straight-edged planform first, then the dihedral: put the turn from the main wing up to the winglet half at each end of the transition section, with the airfoils at both ends turned to match the dihedral. Then set the blending by what each edge must do.
Every other side stays FREE, so the main wing and the winglet keep their straight edges. A side switched out of FREE keeps the Strength it showed in FREE, which can be far from the default of 1, so set the Strength of each blended side to 1 and adjust from there until the curves have the shape you want (Figure 15). The TRAP modes match the neighbor's edge closely but not exactly: where an edge turns sharply, as at a fillet that turns the leading edge from to of sweep, a kink of a degree or two remains at the airfoil.

Figure 15. The example with every blended Strength 1, over its straight-edged planform (dashed): a fillet section of span 1.5 from a root chord of 6, the main wing with of dihedral, a transition section of span 0.4 with , and a winglet with .
On a wing the XSec tab is named Airfoil. Its shape types and their parameters are described in Cross Section Curves and Airfoils. The wing adds these rules.
The Modify tab holds the modifications common to all airfoils, described in Airfoils. On a wing, a trailing edge flap set on one airfoil and not on its neighbor fades out linearly across the section between them; a flap set the same on both ends of a section is constant across it. For a control surface that an analysis deflects, use the Control Surface sub-surface on the Sub tab, which marks the region without changing the geometry.
The spanwise tessellation is set for each section on the Sect tab, under Interpolated XSecs; the Gen tab's Num U is greyed on a wing. Num U sets the number of tessellation lines across the section, and Rt. Cluster and Tip Cluster set the spacing at its inboard and outboard ends as a fraction of uniform spacing: 1 is uniform, and smaller values pack the lines toward that end.
The chordwise tessellation, Num W, is on the Gen tab. LE Clustering and TE Clustering on the Plan tab set the spacing at the leading and trailing edges the same way; the defaults, 0.25, make the panels there about a quarter of the uniform size. Two outputs help keep the panels suitable for panel and vortex lattice codes: Minimum LE/TE Panel Width, the narrowest first panel at the leading or trailing edge of any airfoil, in model units, and Maximum Growth Ratio, the largest size ratio of neighboring chordwise panels that the clustering makes.
Every component's surface carries the coordinates U, along it, and W, around it, and its volume the coordinates R, S, T and L, M, N (see Attachment Coordinates). A wing adds a third way to name a place along it: , the fraction of its span. U is awkward on a wing. Each airfoil sits at a whole number of U whatever the span of the sections between them, and each cap takes a whole unit of U, so the same U lands at a different place when a section's span changes, a section is split, or a cap is added. is tied to the span instead.
is 0 at the root airfoil and 1 at the tip airfoil. At each airfoil it is the sum of the Spans of the sections inboard of it, divided by the sum of all the sections' Spans; between two airfoils it is linear in U (Figure 16). On a section without blending the surface is spread evenly along the span, so there is in proportion to distance along the section. A few properties follow.

Figure 16. The right half of the wing of Figure 1, from above, with a round tip cap: lines of constant every 0.1, the airfoils (red) with their and U, and the U taken by the caps.
is offered wherever something is placed along a wing. OpenVSP keeps the and converts it to U at every update, so whatever is placed by stays at its fraction of the span as the wing changes.
| Where | Use |
|---|---|
| XForm | Attach a child by MN: , then M and N as in LMN. |
| Control Surface | Use Eta for Spanwise Coordinate: Start Eta and End Eta. |
| Conformal | Trim along the span by Eta Min and Eta Max. |
| Routing | Place a routing point by MN. |
| Gear | Attach the stowed position or the mechanism by MN. |
| Structures (FEA) | Place a polygon spar's points by . |
Attachment by MN is offered only when the parent is a Wing, or a Clone of one. A Propeller's Control Surface also offers , but there it is , the fraction of the propeller's radius, from the root airfoil's radius fraction to 1 at the tip (see Propeller).
A section's parameters are in the parm group of its outboard airfoil:
section
's
Span, Sweep and Dihedral are in group
XSec_i, and the root Incidence is the Twist in
XSec_0. The totals are in group WingGeom. The
API offers a few functions for wings.
| Function | Purpose |
|---|---|
SetDriverGroup,
GetDriverGroup |
Set or read a section's three drivers,
named by the WING_DRIVERS enum. |
SplitWingXSec |
Split a section, as the Split button does. |
ConvertUtoEta,
ConvertEtatoU |
Convert between U and , below. |
The drivers are named by the WING_DRIVERS enum, one
value for each of the eight quantities of Section Planform.
| Value | Driver | Quantity |
|---|---|---|
AR_WSECT_DRIVER |
AR | Aspect ratio |
SPAN_WSECT_DRIVER |
Span | Span |
AREA_WSECT_DRIVER |
Area | Area |
TAPER_WSECT_DRIVER |
Taper | Taper ratio |
AVEC_WSECT_DRIVER |
Ave C | Average chord |
ROOTC_WSECT_DRIVER |
Root C | Root chord |
TIPC_WSECT_DRIVER |
Tip C | Tip chord |
SECSWEEP_WSECT_DRIVER |
Sec SW | Secondary sweep |
NUM_WSECT_DRIVER is their number. The enum also names
SWEEP_WSECT_DRIVER, SWEEPLOC_WSECT_DRIVER and
SECSWEEPLOC_WSECT_DRIVER, for the Sweep, Sweep Loc and Sec
SW Loc that every section sets; they are not drivers and must not be
passed to SetDriverGroup.
SetDriverGroup( geom_id, section_index, driver_0, driver_1, driver_2 )
takes the section's index, which is the index of its outboard airfoil (1
for the first section), and three different drivers in any order. A set
the Sect tab would not offer is refused with the error
VSP_INVALID_DRIVERS, and the section keeps its drivers.
Choose the drivers first, then set their values, then call
Update:
wing_id = AddGeom( "WING" )
SetDriverGroup( wing_id, 1, AREA_WSECT_DRIVER, AR_WSECT_DRIVER, TAPER_WSECT_DRIVER )
xsec = GetXSec( GetXSecSurf( wing_id, 0 ), 1 )
SetParmVal( GetXSecParm( xsec, "Area" ), 30.0 )
SetParmVal( GetXSecParm( xsec, "Aspect" ), 6.0 )
SetParmVal( GetXSecParm( xsec, "Taper" ), 0.4 )
Update()GetDriverGroup( geom_id, section_index ) returns the
three drivers in the order they were set.
ConvertUtoEta and ConvertEtatoU convert
between U and the
of the span. They work in the wing's own U, which runs from 0 at the
root end to the number of sections plus caps at the tip end, so with a
root cap the root airfoil is at U = 1 and airfoil
at U =
.
Divide by that number for the 0 to 1 U of CompPnt01 and the
other surface functions. They accept a Wing or a Clone of one, and
report VSP_WRONG_GEOM_TYPE for any other component.