sw_generate_wing
Builds a complete lofted, mirrored wing from airfoils and geometry parameters, then reports area, aspect ratio, MAC and neutral point.
Instructions
A complete wing in one call: blended airfoil sections with taper, sweep, dihedral and twist, lofted and mirrored. Returns area, aspect ratio, MAC and neutral point. Span runs along +X, flight direction +Z.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| name | No | Optional name for the new feature. | |
| span | Yes | Half-span, root to tip (mm). | |
| sweep | No | Leading-edge sweep, degrees. | |
| twist | No | Tip incidence change (negative = washout). | |
| mirror | No | Mirror to a full wing about the Right plane. | |
| dihedral | No | Degrees. | |
| sections | No | Sections from root to tip (more = smoother twist). | |
| incidence | No | Root incidence, degrees. | |
| tip_chord | Yes | ||
| root_chord | Yes | ||
| tip_airfoil | No | Default: same as root. | |
| root_airfoil | No | NACA code ('2412') or {'dat_file': ...}. | 2412 |