Repository navigation
Find an LEI kite's geometry from a target polar, and export a table of kites for an interactive page - #420
Conversation
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>
|
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 |
|
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. |
e0e64c8
into
agent/387-support-the-masure-regression
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
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°).
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.
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.
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.
Table for symawe.com.
docs/src/assets/inverse_design_kites.json.gzholds 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 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
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.jlrun 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.jetls: not run, not installed on the boxLines: +935 −0 (net +935) · the 15 files it touches: 2326 → 3261
Opened by
1-Bort-1, an AI agent working for1-Bart-1.Closes #419 · task
VortexStepMethod.jl-419