Skip to content

hertzforge.service.mode_pairs

mode_pairs

Mode shapes on a survey geometry: a value per DOF as a translation per drawn node, and a MAC matrix with the shape view it selects, the row set's modes overlaid by the column set's.

Functions:

Name Description
translations

One value per DOF as a translation per drawn node, [N, 3], or

modes_param

The modes a FIRST_MODES-like param names, by index from 0: every

picked_modes

The modes picked under a shape set, by index from 0, in the set's

mode_axis

A MAC axis of the modes of shapes: each ticked by its frequency,

matched_cells

Matched (row mode, column mode) pairs as the cells of a MAC of

paired

The MAC matrix and, with a geometry, the shape3d

matched_stage

A Matched Modes object's pairs: the first set's mode of each pair as

Classes

Functions:

translations

translations(geometry: Any, dofs: Any, values: ndarray, rows: ndarray) -> ndarray

One value per DOF as a translation per drawn node, [N, 3], or [modes, N, 3] for a matrix of values with a row per mode, complex when the values are. Nodes with no measured DOF stay where they are. The DOFs are parsed once for all the modes; dofs given as a shape set are its own, parsed once for as long as it keeps them (ShapeSet._parsed_dofs).

modes_param

modes_param(shapes: Any, text: str) -> list[int]

The modes a FIRST_MODES-like param names, by index from 0: every mode when it is blank.

picked_modes

picked_modes(shapes: Any, picks: Any) -> list[int]

The modes picked under a shape set, by index from 0, in the set's order and once each; every mode when none is picked.

mode_axis

mode_axis(label: str, shapes: Any, modes: list[int]) -> dict

A MAC axis of the modes of shapes: each ticked by its frequency, with its index in the set, which a picked square is named by.

matched_cells

matched_cells(pairs: Any, row_modes: list[int], column_modes: list[int]) -> list[list[int]]

Matched (row mode, column mode) pairs as the cells of a MAC of row_modes against column_modes that hold them; a pair with a mode not on the grid is not drawn.

paired

paired(geometry: Any, matrix: dict, rows: Any, row_modes: Any, columns: Any, column_modes: Any, column_geometry: Any = None, compared: Any = None) -> list[dict]

The MAC matrix and, with a geometry, the shape3d view it selects: the row set's modes as modes and the column set's as overlays, with each pair's overlay_phase, the angle that aligns the column mode with the row mode (core.shapes.alignment_phases: a real mode is defined only up to its sign, a complex one up to a rotation). Both are translations of the geometry's nodes, or with column_geometry each set moves its own geometry in one scene (_stage). Without a geometry the matrix comes alone.

matched_stage

matched_stage(geometry: Any, title: str, rows: Any, columns: Any, pairs: Any, second: str, column_geometry: Any = None, compared: Any = None) -> dict

A Matched Modes object's pairs: the first set's mode of each pair as modes, the second set's as overlays, paired so the shell draws overlay k over mode k as it steps through them, each aligned by its pair's phase (core.shapes.alignment_phases). On geometry, or with column_geometry each set on its own geometry (_stage). The pairs overlaid, where the earlier toolset showed only their table (Brandon, 2026-11-14).