Skip to content

Find an LEI kite's geometry from a target polar, and export a table of kites for an interactive page - #420

Merged
1-Bart-1 merged 1 commit into
agent/387-support-the-masure-regressionfrom
agent/419-stack-on-406
Nov 26, 2026
Merged

1-Bart-1 merged 1 commit into
agent/387-support-the-masure-regressionfrom
agent/419-stack-on-406

Conversation

@1-Bort-1

@1-Bort-1 1-Bort-1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

A kite designer can now start from the polar they want (CL and CD against angle of attack, maximum lift, where it stalls) and get back a leading-edge-inflatable kite geometry that produces it in VSM. A new parametric generator describes a kite the way a designer does: projected area, aspect ratio, arc angle and how the arc is spread over the span, taper, leading-edge sweep and twist. The profile's tube diameter and camber are two more parameters, through Masure's regression from #406. Two examples use it, and a new docs page, Inverse design, shows the results and what they rest on.

sections = kite_sections(KiteShape(projected_area=19.5, aspect_ratio=3.6, arc_angle=88,
                                   arc_exponent=1.2, taper=0.31, sweep=14, twist=0))

Round trip. The generator reproduces the TU Delft V3's ribs to 0.16 m RMS on an 8.3 m span. Handed only the V3's VSM polar, the inverse returns a kite whose polar matches it to 0.004 in CL and 0.0004 in CD. It recovers aspect ratio (3.66 vs 3.55), arc distribution (1.10 vs 1.20), twist and camber (0.098 vs 0.095). It does not recover tube diameter (0.063 vs 0.077), taper (0.39 vs 0.31) or sweep (17° vs 14°).

inverse design: round_trip

How unique. Started from the 12 sampled kites closest to the V3's polar, 6 inverse runs end within 0.01 in CL and 0.001 in CD of it. Their camber spans only 0.096–0.105, but their sweep runs 6–21°, arc angle 70–88° and taper 0.26–0.40. A polar fixes camber, aspect ratio and the arc's distribution, and leaves sweep, taper and tip angle free.

inverse design: uniqueness

Design target. The target is 10% more maximum lift than the V3, stall 2° later, and no loss in maximum CL/CD or zero-lift drag. The inverse returns max CL 1.518 against a 1.518 target, stall 20.1° against 20.1°, CL/CD 12.3 against at least 11.4, and zero-lift CD 0.0517 against at most 0.0516. That last one misses by 0.00007. The kite has aspect ratio 4.4, a flat centre with curled tips, 28° sweep, 4.6° washout, camber 0.118 and a thinner tube.

inverse design: design

What it rests on. VSM computes the rigid design shape, not the shape that flies, and is most trustworthy before stall. As a check of the forward model, the V3 with the regression's Re = 1e6 profiles reads CL 0.11 high and CD 0.014 high against RANS CFD below stall. Against the wind tunnel it reads CL 0.13 high and CD 0.035 low. The bias is mostly an offset, so comparisons between kites hold up better than absolute values. As a check of the profile model, Breukels' LEI regression in place of Masure's keeps the design ahead of the V3: max CL +8%, stall +2.2°, CL/CD +8%. A check of the design itself needs 3D RANS or a wind-tunnel model, and neither is available here.

inverse design: check

Table for symawe.com. docs/src/assets/inverse_design_kites.json.gz holds 2 023 kites in 0.9 MiB, in the shape 1-Bart-1/symawe.com#54 reads. Each kite has its parameters, four polar properties, its polar at 1° steps and its section edges. The docs page documents the fields. The table is drawn from 65 536 evenly spread samples. Property space is cut into 10 cells per property, and each cell keeps the kite closest to the V3. As one slider sweeps its range, nearest match over all samples changes the geometry noticeably 26 times. With the table it changes 10 times, and the picked kite lands a median 3.6% of the slider's range from the slider. The page shows the trade-off for 6 to 16 cells.

Decisions:

  • The issue's clue said geometry would leave stall and zero-lift drag frozen. A sensitivity study found camber dominates both, but aspect ratio and twist move the stall angle by 2–3° and the arc's distribution moves zero-lift drag by 0.016. So geometry and both profile parameters stay in the search.
  • The generator went into the package because nothing here built a parametric kite. The search, the regression model and the table stay in the examples, because they need 1.8 GB of downloaded models.
  • Area is held at the V3's 19.5 m². Coefficients are independent of area here, because the profile Reynolds number is fixed at 5e6.
  • The arc angle is capped at 90°. Every sample past 94° gave a broken VSM solution with CD near or below zero.
  • Each polar point is solved from zero circulation, as the plotting helpers do. Warm-starting from the previous angle stays on the attached branch and never stalls: the V3 read CL 1.47 against 1.32 at 20°.
  • Masure's 5th and 6th inputs were named the wrong way round on Resolve masure_regression airfoils to polars with a pure-Julia Extra-Trees evaluator #406. The training data put them around 0.65 and 0.25, and Resolve masure_regression airfoils to polars with a pure-Julia Extra-Trees evaluator #406 has since swapped the names. The 4 inputs not designed here are held at the training means.

The examples add Optim, JSON, CodecZlib and Sobol to the examples environment only. The table and four figures are committed because the docs build cannot regenerate them without the models.

Stacked on #406, which merges first.

Verification

  • Reproduced first: n/a, new feature
  • test/wing_geometry/test_kite_shape.jl: 9/9 pass, re-run on 9838f47. It checks span, projected area, arc angle, taper, sweep and twist at the tip, and mirror symmetry. It errors without the generator.
  • examples/inverse_design.jl run end to end on this code: 1 001 s on 4 threads, every number above reproduced. examples/inverse_design_table.jl: pool about 1 h on 4 threads under load, then 40 s from the saved pool.
  • Renaming Resolve masure_regression airfoils to polars with a pure-Julia Extra-Trees evaluator #406's masure inputs leaves the profile polars bit-identical (compared before and after the rebase)
  • Docs build clean (two existing page-size warnings) · no REUSE in this repo · jetls: not run, not installed on the box
  • Local full suite, one matrix cell (Julia 1.13.4): PASS in 7 min, exit 0, on 9838f47.
  • GitHub CI: this stacked draft skips the Julia tests. The full suite is covered by the CI of Resolve masure_regression airfoils to polars with a pure-Julia Extra-Trees evaluator #406 once this lands there.
  • Benchmark: n/a. Nothing in the solver changed. One design's 31-angle polar takes about 75 ms, of which about 65 ms is the regression trees.
  • Risk: the table depends on the regression's 5e6 model and on VSM past stall, so its stall-angle column is the least trustworthy.

Lines: +935 −0 (net +935) · the 15 files it touches: 2326 → 3261

Opened by 1-Bort-1, an AI agent working for 1-Bart-1.
Closes #419 · task VortexStepMethod.jl-419

KiteShape and kite_sections generate an LEI kite's sections from projected
area, aspect ratio, arc angle and distribution, taper, sweep and twist.
The inverse-design examples sample 65536 kites with masure-regression
profiles, export the table the interactive page reads, and find the
geometry for the V3's polar and for a design target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@1-Bort-1 1-Bort-1 added agent:running Agent task state agent:ci Agent task state and removed agent:running Agent task state labels Nov 25, 2026
@1-Bart-1

Copy link
Copy Markdown
Member

Your local full test suite has been running since 17:52 with no result, which is far longer than this package takes, so treat it as hung: stop it. Run only the test files your change touches, as the standing rule is to let CI run the full suite. On this stacked draft CI skips the Julia tests, so name the full suite in the description as covered by the CI of #406 once this lands there. Then say agent finished: symawe.com-54 waits on this pull request.

@1-Bort-1 1-Bort-1 added agent:queued Agent task state agent:running Agent task state and removed agent:ci Agent task state agent:queued Agent task state labels Nov 26, 2026
@1-Bort-1

Copy link
Copy Markdown
Member Author

Nothing was hung: the local suite had already finished at 17:59 with PASS in 7 min, exit 0, on 9838f47. Only the status line on #420 was out of date. I re-ran the one test file this change touches, test_kite_shape.jl (9/9 pass), and the description of #420 now says the full suite is covered by the CI of #406.

@1-Bort-1 1-Bort-1 added agent:ci Agent task state agent:review Agent task state and removed agent:running Agent task state agent:ci Agent task state labels Nov 26, 2026
@1-Bart-1
1-Bart-1 marked this pull request as ready for review November 26, 2026 09:40
@1-Bart-1
1-Bart-1 merged commit e0e64c8 into agent/387-support-the-masure-regression Nov 26, 2026
2 checks passed
@1-Bort-1 1-Bort-1 added agent:done Agent task state and removed agent:review Agent task state labels Nov 26, 2026
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:done Agent task state

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants