pyflightstream.geometry.component (provisional)¶
Generated from the docstrings at build time: every one of the 2 names in the __all__ of pyflightstream.geometry.component has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
The component parameter record: the contract between a reconstruction and the library.
Pipeline role: pure data contract of the geometry package. A
:class:ComponentRecord states how one aircraft component (a lifting surface,
a body or a body of revolution) is rebuilt from section curves: its stations,
the split points of every section curve, the construction method, the
trailing-edge base and the measured deviation from the source geometry.
Section curves are referenced, not copied: each is an IGES type 126 B-spline curve named by file path, the SHA-256 of the exact file bytes and the directory-entry sequence number. The pin check re-reads every referenced file against its pin, so a record is only as current as the bytes it names.
Coordinate convention: component geometry is in the shared configuration frame (x downstream, y along span, z upward). All lengths of a record, including deviations and station coordinates, are in millimetres and all angles are in degrees. The record model is the authored definition of the contract; the schema export renders the draft 2020-12 JSON Schema from it and the packaged copy is compared with the export in the test suite, so the two cannot drift.
Examples:
>>> from pyflightstream.geometry.component import DEVIATION_PROFILES
>>> DEVIATION_PROFILES["study_default"]["floor_mm"]
0.5
Advanced¶
pyflightstream.geometry.component.ComponentRecord
¶
Bases: _Strict
The parameter record of one component (schema 0.2.0 of the contract).
symmetry is required for body and revolution components and absent for
lifting components; te_base is explicit for lifting components and null
for the others. Structural rules are enforced on construction. Checks that
need the referenced files (that an entity exists, has the declared type and
that splits lie on their curves) are not made here: the pin check
covers the pins and the geometric checks belong to the check stage.
pyflightstream.geometry.component.DEVIATION_PROFILES
module-attribute
¶
DEVIATION_PROFILES: dict[str, dict[str, float]] = {
"study_default": {
"floor_mm": 0.5,
"local_fraction": 0.001,
}
}