Skip to content

feat(foldable): nonlineer uç açılması + aero kapanma momenti (opt-in) - #3

Draft
Poyqraz wants to merge 3 commits into
mainfrom
cursor/foldable-nonlinear-closing-c1e3
Draft

Poyqraz wants to merge 3 commits into
mainfrom
cursor/foldable-nonlinear-closing-c1e3

Conversation

@Poyqraz

@Poyqraz Poyqraz commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Özet

Uç palin (tip segment) davranışına iki opt-in ve geriye dönük uyumlu fizik eklentisi eklenir. Varsayılanlar mevcut V1/V2 çıktılarını birebir korur (yeni katsayılar 0 / yeni mod kapalı).

  • 1(i) Nonlineer açılma yasası (kinematics_mode="nonlinear_saturation"): eşik civarı keskin/eksponansiyel theta(RPM) (kapalı-form). curve_sharpness=0 doğrusala iner.
  • 2(ii) Aero kapanma momenti (aero_closing): advance-ratio / eksenel akışa (V_axial) bağlı, açılmayı geri iten moment → kısmi açılma. Denge: M_open(omega^2) - M_close = M_resist(theta).

Kaynak: US Patent 11667364 (kapanma momenti), UCF foldable propeller çalışması (hızlı/nonlineer açılma).

Tasarım / kod kalitesi

  • Kapanma momenti fiziği tek kanonik modülde: pyfoldable/aero_closing.py; hem kinematics.theta_deg_moment_based hem V2 dynamics.hinge_moments.compute_hinge_moments aynı fonksiyonu çağırır (kod tekrarı/spagetti yok).
  • Dairesel import'u önlemek için effective_tip_cg_from_hinge_m / effective_hinge_radius_m kanonik geometri katmanına (geometry_helpers.py) taşındı; tüm çağıranlar güncellendi.
  • theta_deg_from_rpm mod dağıtımı exhaustive (bilinmeyen mod → ValueError).
  • Özellik veri-güdümlü (katsayı 0 → kapalı); dağınık bool bayrak yok. Tipli AeroClosingConfig.

Kabul (explicit assumption)

Kuazi-statik yolda kapalı-form dengeyi korumak için A_ref theta'dan bağımsız tam-açık uzantı referansıyla alınır; theta-bağımlı geometri yalnızca V2 dinamik yolunda kullanılır. Ayrıntı: docs/foldable_nonlinear_closing_design.md.

Test / doğrulama

  • Tam paket 214 passed, 9 skipped (önceki 197 + 17 yeni). V01/V02 regresyon testleri kapanmanın varsayılan kapalı olduğunu ve mevcut çıktıların değişmediğini doğrular.
  • Yeni testler: tests/test_nonlinear_kinematics.py, tests/test_aero_closing.py.
  • V2 fizik hattı örnekleri (run_prescribed_rpm_physics, run_foldable_operating_point, run_moment_kinematics_validation) sorunsuz çalışır.

Demo çıktısı (examples/run_tip_nonlinear_closing_demo.py):

1) Nonlineer açılma yasası vs doğrusal referans (k=0):
     rpm  nonlinear_deg   linear_deg
    3000        -105.46      -150.00
    5000         -32.84       -90.00
    7000          -6.12       -30.00

2) Aero kapanma momentinin kısmi açılma etkisi (moment_based denge):
     rpm  theta_off_deg  theta_on_deg   M_close_Nm
    6000        -155.03       -160.77      0.05513
    8000        -135.03       -140.78      0.05513

Kapsam dışı (sonraki faz)

Zaman-domeni overshoot/oscillation, whirl flutter, Prandtl uç kaybı, negatif/ters uç itkisi.

Dosyalar

  • Kod: pyfoldable/aero_closing.py (yeni), models.py, kinematics.py, geometry_helpers.py, dynamics/hinge_moments.py, dynamics/hinge_moment_geometry.py, __init__ exportları
  • Config/örnek: configs/foldable/TIP_HINGED_250_V03.json, examples/run_tip_nonlinear_closing_demo.py
  • Doküman: docs/foldable_conventions.md, docs/foldable_nonlinear_closing_design.md, README.md
Open in Web Open in Cursor 

cursoragent and others added 3 commits August 9, 2026 20:29
…ment

- Add nonlinear_saturation kinematics mode (exponential-approach theta(RPM))
- Add advance-ratio aero closing moment in a single canonical module
  (pyfoldable/aero_closing.py), used by both moment_based kinematics and
  V2 compute_hinge_moments; defaults off -> backward compatible
- Move tip CG / hinge radius geometry helpers to geometry_helpers.py to keep
  the closing-moment module free of a kinematics import cycle
- Exhaustive kinematics_mode dispatch (raises on unknown mode)
- New config AeroClosingConfig + KinematicsConfig.curve_sharpness; example
  config V03 and demo script

Co-authored-by: Poyraz BAYDEMİR <Poyqraz@users.noreply.github.com>
…ch, V01/V02 regression

Co-authored-by: Poyraz BAYDEMİR <Poyqraz@users.noreply.github.com>
…nt (TR)

Co-authored-by: Poyraz BAYDEMİR <Poyqraz@users.noreply.github.com>

@Poyqraz Poyqraz left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manual engineering review: not merge-ready; keep draft.

Integration against current main is mechanically clean when isolated correctly: 839 passed, 9 skipped. The blockers are model-form and evidence boundaries:

  1. Reverse-flow contradiction (high): docs claim forward/reverse axial flow and use V_axial², but closing_moment_nm() silently returns zero for V_axial <= 0. Either model direction/sign explicitly or reject reverse flow with an explicit contract; do not silently classify it as no load.
  2. Advance-ratio claim is not implemented (high): the returned moment is independent of RPM/J/D except for an rpm > 0 gate. Rename it to an axial dynamic-pressure proxy or implement and test a real declared J-dependent relation.
  3. Two consumers do not solve the same equilibrium (high): quasi-static kinematics evaluates closing moment at theta_max, while V2 dynamics uses theta-dependent projected extension. A fixed open-angle load subtraction is not equivalent to a theta-coupled equilibrium. This needs an iterative/root-solved relation or an explicitly separate screening model/classification.
  4. Unqualified V03 parameters (high): close_moment_gain=80 and V_axial=12 m/s have no calibration/provenance, while the config again declares the known-unreachable 140 mm stowed envelope. Do not promote this as a versioned design config. Keep it as a clearly synthetic test fixture with physical_qualification=false, or add reviewed evidence and geometry compatibility gates.
  5. Fail-closed validation missing (medium): add red tests and validation for NaN/Inf, extreme exponential sharpness, density, velocity, gain, RPM and angle domains. Current exponential expression can overflow for unbounded negative/large sharpness.
  6. Moment accounting incomplete (medium): add a component-closure regression that includes M_closing_nm, plus explicit zero-drift regressions for all existing V01/V02 reports.

Do not merge until these items are resolved without weakening the current physical-qualification boundaries.

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