Repository navigation
Description
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:
-
A tether's ends are required, but a tether given by its segments has them already.
Tether.start_pointandend_pointare required columns, so a tether built from its segments alone has to carry a placeholder (SAM stores0) or have its ends filled in by the builder.load_authoringalready 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_pointandend_pointoptional in the schema (an awesIO change first, since_structure.jlis generated from it), and one public KiteGeometry function giving a tether's two end points on aSystemDefinition: its own where set, else the first segment's first point and the last segment's last point.load_authoringandplace!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. -
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 (whichtube_law_parametersfills) instead of keeping its own copy intube_laws.jl, so the constants are KiteGeometry's and the docstrings ofBREUKELS2011andtube_law_parametersshould describe the Breukels (2011) correlation itself (the names C1..C19, radius in m and pressure in bar, asstructure_schema.yml'sbreukels2011_parametersdoes), not which package uses it. -
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
- A SystemDefinition resolves the row references in a registered... #113 closed, in A definition resolves a model's references to rows, as it does the schema's own #115
- Reading a row's property allocates: Component... #116 closed, in Inline a row's property read and write, and guard them against allocating #118
- A component built by its keyword constructor carries its block's... #117 closed, in A component built by keyword takes its block's default model, as a loaded row does #119
Activity
1-Bort-1 commentedon Nov 23, 2026
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.
1-Bort-1 commentedon Nov 23, 2026
From
SymbolicAWEModels.jl-443(OpenSourceAWE/SymbolicAWEModels.jl#443), tell 183, 2026-11-23T12:02:20ZOne 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:57ZAlso 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:52ZOne 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.
1-Bort-1 commentedon Nov 23, 2026
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.24 remaining items
1-Bart-1 commentedon Nov 24, 2026
Done in #114, merged; the three other requests on this thread are #115, #118 and #119.
1-Bort-1 commentedon Nov 24, 2026
Nothing further here: #114 is merged as ea1688b and this branch adds no commits beyond it. The release waits on #115.