Skip to content

Refactor aerodynamics#229

Merged
1-Bart-1 merged 25 commits into
mainfrom
group-refactor-2
Jun 12, 2026
Merged

Refactor aerodynamics#229
1-Bart-1 merged 25 commits into
mainfrom
group-refactor-2

Conversation

@1-Bart-1

Copy link
Copy Markdown
Member

No description provided.

1-Bart-1 and others added 22 commits June 7, 2026 15:00
The winch-interface refactor (#210) dropped the `speed_controlled`
field, which broke the V3Kite flight-replay path that prescribes
reel-out velocity from recorded CSV data.

Add it back as a runtime-switchable flag: when `winch.speed_controlled`
is true, `winch_acc` is forced to 0 (ignoring the winch component's
`acc` output), so `D(winch_vel) = 0` and velocity is prescribed via
`winch.vel`. Implemented with the registered `get_speed_controlled`
accessor so it takes effect without recompiling, matching the
pre-refactor behavior.

Caveat: the model cache key (set_hash + sys_struct_hash) does not
capture this equation change, so existing cached binaries must be
rebuilt (remake=true) for the restored branch to take effect.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collapse BaseWing/VSMWing/PlateWing into a single `Wing` type. VSM state
moves into a `VSMEngine` sub-struct on `wing.vsm`. The engine is wing
infrastructure shared by all aero modes — an AeroNone wing still carries it
for section matching and twist-surface geometry — so it lives on the wing,
not in the aero mode. VSMWing/PlateWing become constructor functions that
return a Wing; `wing isa VSMWing/PlateWing` become `is_vsm`/`is_plate`.

Flat-plate aero now goes through `aero_component(::AeroPlate, ...)` on the
same PARTICLE connector contract as the other per-point modes, extended
with per-point `va`/`rho` (the only inputs plate needs; VSM particle modes
ignore them). Deletes plate_eqs.jl and its bespoke wiring branch.

RHS aero getters are function-barriered on the concrete VSMEngine for
type-stable, allocation-free reads. Full suite green (1174/1174), zero alloc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jun 12, 2026

Copy link
Copy Markdown

@1-Bart-1 1-Bart-1 merged commit 02c8d5c into main Jun 12, 2026
6 checks passed
@1-Bart-1 1-Bart-1 deleted the group-refactor-2 branch June 12, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants