pyflightstream.fsi.kinematics (stable)¶
Generated from the docstrings at build time: every one of the 5 names in the __all__ of pyflightstream.fsi.kinematics has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Rigid-section kinematics: (w, theta) to node translations and back (WP5).
Pipeline role: FSIDisp.txt carries translations only, no
rotational degrees of freedom (DLV-007 Section 3), so the elastic
twist must be encoded geometrically: three structural nodes per radial
station, one on the elastic axis and one offset toward each of the
leading and trailing edges. The beam solution (w, theta) maps to nodal
translations by rigid section kinematics, and FlightStream
interpolates the surface deflection from them, so the twist field
emerges from differential translations (DLV-007 Section 4.4).
Frames: everything lives in the rotating blade frame of
:mod:pyflightstream.fsi.config: X chordwise toward the leading edge,
Y normal (the flap direction), Z spanwise from root to tip. The flap
deflection w translates a section along +Y; the elastic twist theta is
positive nose up about +Z, so a node at chordwise offset d from the
elastic axis translates by theta d along +Y (linearized rotation,
consistent with the quasi-steady small-deformation model). The
encoding is exactly linear by design: translations are w + theta d
along the normal axis and nothing else, so the inverse map is exact
and the round trip closes at machine precision.
The node ordering that turns per-station translations into the flat
FSIDisp.txt rows is owned by :mod:pyflightstream.fsi.nodes
(FSI-R14); this module only maps solutions to per-station node
translations and back.
Advanced¶
pyflightstream.fsi.kinematics.NODE_ROLES
module-attribute
¶
NODE_ROLES = (
"elastic_axis",
"leading_edge",
"trailing_edge",
)
pyflightstream.fsi.kinematics.decode_station_translations
¶
decode_station_translations(
translations: ndarray,
le_offset_m: ndarray,
te_offset_m: ndarray,
) -> tuple[np.ndarray, np.ndarray]
Reconstruct (w, theta) from per-station three-node translations.
The exact inverse of :func:encode_station_translations: the flap
deflection is the elastic-axis node's normal translation and the
twist comes from the offset-node difference, so an
encode-decode round trip closes at machine precision (the WP5
verification).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
translations
|
ndarray
|
Shape |
required |
le_offset_m
|
ndarray
|
The chordwise node offsets [m] the encoding used. |
required |
te_offset_m
|
ndarray
|
The chordwise node offsets [m] the encoding used. |
required |
Returns:
| Type | Description |
|---|---|
tuple of numpy.ndarray
|
|
Raises:
| Type | Description |
|---|---|
FsiInputError
|
If |
pyflightstream.fsi.kinematics.encode_station_translations
¶
encode_station_translations(
flap_deflection_m: ndarray,
elastic_twist_rad: ndarray,
le_offset_m: ndarray,
te_offset_m: ndarray,
) -> np.ndarray
Encode a beam solution as per-station three-node translations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flap_deflection_m
|
ndarray
|
Flap deflection w per station [m], positive +Y. |
required |
elastic_twist_rad
|
ndarray
|
Elastic twist theta per station [rad], positive nose up. |
required |
le_offset_m
|
ndarray
|
Chordwise offsets [m] of the leading-edge and trailing-edge nodes from the elastic axis (leading edge positive, trailing edge negative). |
required |
te_offset_m
|
ndarray
|
Chordwise offsets [m] of the leading-edge and trailing-edge nodes from the elastic axis (leading edge positive, trailing edge negative). |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Translations, shape |
pyflightstream.fsi.kinematics.station_normal_translation
¶
station_normal_translation(
flap_deflection_m: ndarray,
elastic_twist_rad: ndarray,
chordwise_offset_m: ndarray,
) -> np.ndarray
Return the normal translation of a node offset chordwise from the EA.
dy = w + theta d: the linearized rigid-section displacement along the blade-frame normal axis of a node at chordwise offset d from the elastic axis, under flap deflection w and elastic twist theta (positive nose up about the spanwise axis, so a leading-edge node, d > 0, moves up under positive twist). Inputs broadcast; lengths in m, angles in rad.
Source: DLV-007 Section 4.4 (twist encoded as differential translations, EA node receives w, offset nodes w plus theta cross d).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flap_deflection_m
|
ndarray
|
The flap deflection w [m]. |
required |
elastic_twist_rad
|
ndarray
|
The elastic twist theta [rad], positive nose up. |
required |
chordwise_offset_m
|
ndarray
|
The node's chordwise offset d from the elastic axis [m], positive toward the leading edge. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The normal translation dy = w + theta d [m]. |
pyflightstream.fsi.kinematics.twist_from_node_translations
¶
twist_from_node_translations(
normal_translation_le_m: ndarray,
normal_translation_te_m: ndarray,
le_offset_m: ndarray,
te_offset_m: ndarray,
) -> np.ndarray
Elastic twist reconstructed from the offset-node translations.
theta = (dy_LE - dy_TE) / (d_LE - d_TE): the exact inverse of the
linear encoding of :func:station_normal_translation, independent
of the flap deflection, which cancels in the difference. Inputs
broadcast; the two chordwise offsets must differ.
Source: DLV-007 Section 4.4 (inverse of the differential translation encoding).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
normal_translation_le_m
|
ndarray
|
The leading-edge node's normal translation dy_LE [m]. |
required |
normal_translation_te_m
|
ndarray
|
The trailing-edge node's normal translation dy_TE [m]. |
required |
le_offset_m
|
ndarray
|
The leading-edge node's chordwise offset d_LE [m]. |
required |
te_offset_m
|
ndarray
|
The trailing-edge node's chordwise offset d_TE [m]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The elastic twist theta [rad]. |