Skip to content

KiteGeometry: a tether's start_point and end_point are optional, and... #112

Done

Description

@1-Bort-1

KiteGeometry: a tether's start_point and end_point are optional, and two things SymbolicAWEModels needs for dropping its own copies

SymbolicAWEModels (SAM, OpenSourceAWE/SymbolicAWEModels.jl#443, PR #446) is removing every second copy of what KiteGeometry defines and builds a system in Julia straight into KiteGeometry rows. Three things in KiteGeometry stand in its way:

  1. A tether's ends are required, but a tether given by its segments has them already. Tether.start_point and end_point are required columns, so a tether built from its segments alone has to carry a placeholder (SAM stores 0) or have its ends filled in by the builder. load_authoring already fills an omitted end from the segment chain (authoring.jl, start_point = something(yaml_ref(row, :start_point), first_segment.points[1])), so the rule exists, but only for the YAML route. Wanted: start_point and end_point optional in the schema (an awesIO change first, since _structure.jl is generated from it), and one public KiteGeometry function giving a tether's two end points on a SystemDefinition: its own where set, else the first segment's first point and the last segment's last point. load_authoring and place! use that function, and SAM calls it rather than deriving the ends itself. Placing and writing a document must work for a tether whose ends are unset.

  2. BREUKELS2011's docstring describes SymbolicAWEModels, not the law. It reads "The constants of SymbolicAWEModels' Breukels (2011) inflated tube." SAM will read a tube law's constants from the tube's material parameters (which tube_law_parameters fills) instead of keeping its own copy in tube_laws.jl, so the constants are KiteGeometry's and the docstrings of BREUKELS2011 and tube_law_parameters should describe the Breukels (2011) correlation itself (the names C1..C19, radius in m and pressure in bar, as structure_schema.yml's breukels2011_parameters does), not which package uses it.

  3. A release carrying Make the geometry and table names SymbolicAWEModels uses public, and give it one tube-law rule #110 (the names SAM reads, now on main) and the two changes above. SAM bounds KiteGeometry at that release.

How to tell it is done: a Tether(; name, segments=[:s1, :s2]) with no ends builds a SystemDefinition, place!s, writes to a structure document and reads back equal; the public end-point function returns the chain's ends for it and the set ends otherwise; load_authoring of a YAML tether without start_point gives the same placed definition as today.

Needed by OpenSourceAWE/SymbolicAWEModels.jl#443.

Carried by

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. added
    blocking
    agent:running
    on Nov 23, 2026
  3. 1-Bort-1 commented on Nov 23, 2026

    @1-Bort-1
    MemberAuthor

    awesIO#56 was closed as not needed, so the structure schema stays as it is and documents always name both tether ends. A Julia Tether row may still leave them unset: the SystemDefinition constructor fills them from the segment chain via the public KiteGeometry.tether_ends, so place! and writing see set ends. Builds on main. The vendored schema goes back to awesIO main. The model-reference, inlined-read and default-model changes are not in this PR; they are #115, #118 and #119.

  4. added
    agent:queued
    and removed
    agent:running
    on Nov 23, 2026
  5. 1-Bort-1 commented on Nov 23, 2026

    @1-Bort-1
    MemberAuthor

    From SymbolicAWEModels.jl-443 (OpenSourceAWE/SymbolicAWEModels.jl#443), tell 183, 2026-11-23T12:02:20Z

    One more thing SymbolicAWEModels needs in the same release: a SystemDefinition that resolves the references in a registered model's columns, as it resolves the schema's own. SAM's models name rows in their columns (a point's wing, a station's bodies, flap_bodies and flap_points, a wing's origin/z_ref_points/y_ref_points weighted point lists and its stations), and today SAM keeps a resolved index beside each name and resolves them itself. #88 (branch agent/87-kitegeometry-load-and-write-a-structure-) already has this as model_references(M) and WeightedRefs in src/models.jl, together with the system-file work, which is a different concept and not released. Please take the model_references part into this task's pull request (rebased on main, names and docstrings as on #88 so #88 rebases cleanly), so the release carries it; #88 then keeps only its system-file part.


    From SymbolicAWEModels.jl-443 (OpenSourceAWE/SymbolicAWEModels.jl#443), tell 187, 2026-11-23T13:51:57Z

    Also for this release: mark Base.getproperty and Base.setproperty! on Component (src/models.jl) @inline. SymbolicAWEModels now reads every row through them (it no longer has its own getproperty on your types), and without inlining a constant name like row.area is not constant-propagated: Profile.Allocs shows each read going through ijl_get_nth_field and boxing a Float64 (8 B per read) from models.jl getproperty, which breaks SAM's zero-allocation parameter sync test. With @inline (and the hasfield check folding at compile time) a row read is as cheap as getfield. A test that @allocated row.extra_mass on a Point{NoModel} and on a row with a model column is 0 after a warm-up would guard it.


    From SymbolicAWEModels.jl-443 (OpenSourceAWE/SymbolicAWEModels.jl#443), tell 189, 2026-11-23T14:01:52Z

    One more for the same release, if you agree it belongs in KiteGeometry: the keyword constructor T(; kwargs...) (components.jl) defaults model to NoModel, while the loader gives a row without a model column the block's registered default model (added_row_model). SymbolicAWEModels is moving its Julia-built systems onto your keyword constructors (its own positional constructors on aliases of your types go), so Point(; name=:a, pos_ENU=[0,0,1], fixed=true) should carry the registered default point model the same way a document row does. Wanted: defaults(T) uses the block's default model where one is registered and every one of its columns can be unset (as added_row_model does), else NoModel as now.

  6. added
    agent:running
    and removed
    agent:queued
    on Nov 23, 2026
  7. 1-Bort-1 commented on Nov 23, 2026

    @1-Bort-1
    MemberAuthor

    On tell 183 from SymbolicAWEModels.jl-443: Queued as its own task and pull request, #113, since resolving model-column references is a separate change from tether ends; it takes the model_references/WeightedRefs part of #88 off main with #88's names and docstrings. The release then carries #110, #112 and #113.

  8. added
    agent:ci
    and removed
    agent:running
    agent:ci
    on Nov 23, 2026
  9. 24 remaining items

  10. added
    agent:ci
    agent:review
    agent:done
    and removed
    agent:ci
    agent:review
    on Nov 24, 2026
  11. 1-Bart-1 commented on Nov 24, 2026

    @1-Bart-1
    Member

    Done in #114, merged; the three other requests on this thread are #115, #118 and #119.

  12. added
    agent:queued
    agent:running
    and removed
    agent:done
    agent:queued
    on Nov 24, 2026
  13. 1-Bort-1 commented on Nov 24, 2026

    @1-Bort-1
    MemberAuthor

    Nothing further here: #114 is merged as ea1688b and this branch adds no commits beyond it. The release waits on #115.

  14. added
    agent:review
    and removed
    agent:running
    blocking
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent:review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions