Skip to content

hertzforge.service.ops_project

ops_project

Operations on the connection's own project: each param that names an object lists the project's objects of the kinds it takes (options_from: "objects:<kind>"), and each operation is one of the core's verbs. A verb that adds an object returns a view of what it added; the server returns the project's summary beside the views.

Functions:

Name Description
waterfall

project.waterfall: any data object with every record at its own

chosen_records

The 0-based records '1-3, 7' names, numbered from 1 as the shell

plot

project.plot: chosen records of a data object as curves on one

more_histories

The histories named in more, one a line.

derived_set

Run a verb that adds a copy of each of several histories into a group of their own,

compute_psds

project.compute_psds: PSDs from a time history's averages, added

compute_frfs

project.compute_frfs: FRFs from a time history, one for each

picked_dofs_of

What the tree lists under an object that holds channels, in its

picked_records

The items of name a records param names ('1-3, 7', numbered

picks_param

The records picked under the object param of names, '1-3, 7' or

narrowed

The object param of names as an action reads it: the records its

detect_shocks

project.detect_shocks: mark the shocks found on a time history

extract_sine

project.extract_sine: the levels of each tone of a sine

convert_to_psd

project.convert_to_psd: a specification read as a plain PSD or

fit_modes

project.fit_modes: modes fitted to an FRF set within a band, as

rigid_body_modes

project.generate_rigid_body_modes: the six rigid-body shapes of a

solve_modes

project.solve_modes: the normal modes of a geometry whose element

expand

project.expand: modal responses back to physical ones through a

node_matches

Both geometries of a projection overlaid in one frame, as project_shapes measured

projection_views

A shape set and a geometry it does not belong on, picked together: what Reduce would

expansion_rows

What an expansion matched and how well it fits: the model modes it was built on, how

set_projection

project.set_projection: DOF Mapping, how the DOFs of two shape sets on two geometries

expand_modes

project.expand_modes: Expand, a test's modes expanded to a model's DOFs through the

onto_basis

project.project_onto_basis: a shape set sampled at another set's

mac_views

The MAC of first's modes against second's (mac), limited to

mac

project.mac: the Modal Assurance Criterion of one shape set's

mode_shapes

project.mode_shapes: a shape set's modes on a geometry.

compute_spectra

project.compute_spectra, the view saying its numbers are raw: under

transform

project.transform: the records picked under the source through the

rescale

project.rescale: some or all of a time history's records times a

Classes

Functions:

waterfall

waterfall(project: Any, params: dict[str, Any]) -> list[dict]

project.waterfall: any data object with every record at its own depth (waterfalls.waterfall_view).

chosen_records

chosen_records(text: str, count: int) -> list[int]

The 0-based records '1-3, 7' names, numbered from 1 as the shell shows them; the first FIRST_RECORDS when text is blank.

plot

plot(project: Any, params: dict[str, Any]) -> list[dict]

project.plot: chosen records of a data object as curves on one plot, a density drawn flat across its bins (_curve). Records of another quantity than the first are left out, since they do not share an axis; the view's title says how many. With limits, the warning and abort limits of an object that carries them follow its records (_limit_lines).

more_histories

more_histories(params: dict[str, Any]) -> list[str]

The histories named in more, one a line.

derived_set

derived_set(project: Any, call: Any) -> list[dict]

Run a verb that adds a copy of each of several histories into a group of their own, refusing in the core's words, and draw the first copy as a waterfall with a reading of the group and every copy in it.

compute_psds

compute_psds(project: Any, params: dict[str, Any]) -> list[dict]

project.compute_psds: PSDs from a time history's averages, added to the project (Project.compute_psds).

compute_frfs

compute_frfs(project: Any, params: dict[str, Any]) -> list[dict]

project.compute_frfs: FRFs from a time history, one for each response and drive, added to the project (Project.compute_frfs).

picked_dofs_of

picked_dofs_of(obj: Any) -> list[str]

What the tree lists under an object that holds channels, in its order, each by its DOF: a data object's records, a channel table's rows, a sine object's control DOFs (ops_sine_shock.sine_dofs).

picked_records

picked_records(project: Any, name: str, text: str) -> list[int] | None

The items of name a records param names ('1-3, 7', numbered from 1: a data object's records, a shape set's modes, a channel table's rows), None for every one when it is blank.

picks_param

picks_param(of: str) -> Param

The records picked under the object param of names, '1-3, 7' or blank for every record: filled from the tree by its name, <of>_records (action_table), and left off the form.

narrowed

narrowed(project: Any, params: dict[str, Any], of: str) -> Any

The object param of names as an action reads it: the records its picks_param names (DataArray.kept), every record when blank.

detect_shocks

detect_shocks(project: Any, params: dict[str, Any]) -> list[dict]

project.detect_shocks: mark the shocks found on a time history (Project.detect_shocks), which Compute SRS then reads.

extract_sine

extract_sine(project: Any, params: dict[str, Any]) -> list[dict]

project.extract_sine: the levels of each tone of a sine specification found in a time history (Project.extract_sine), one sine-level set added per tone. The project's one specification when none is picked.

convert_to_psd

convert_to_psd(project: Any, params: dict[str, Any]) -> list[dict]

project.convert_to_psd: a specification read as a plain PSD or CPSD under its own name, its limits left out (Project.convert_to_psd). One written at breakpoints is read onto evenly spaced lines at the spacing given, or the one its sheet remembers (core.author.read_onto_lines); one on lines converts as it is. Drawn with what the Convert pane gives: the breakpoints, the range, the lines and the sheet's notes.

fit_modes

fit_modes(project: Any, params: dict[str, Any]) -> list[dict]

project.fit_modes: modes fitted to an FRF set within a band, as the fitting screen's loop fits them (Project.fit_modes), added to the project as a shape set. Drawn on the project's geometry when it has one, and listed otherwise.

rigid_body_modes

rigid_body_modes(project: Any, params: dict[str, Any]) -> list[dict]

project.generate_rigid_body_modes: the six rigid-body shapes of a geometry about a point, and scaled by a mass and inertia about it when asked (Project.generate_rigid_body_modes). Without keep, the shapes drawn and nothing added.

solve_modes

solve_modes(project: Any, params: dict[str, Any]) -> list[dict]

project.solve_modes: the normal modes of a geometry whose element groups have properties (Project.solve_modes), a number of them or all up to a highest frequency.

expand

expand(project: Any, params: dict[str, Any]) -> list[dict]

project.expand: modal responses back to physical ones through a shape set, or modal FRFs to the FRFs between a channel table's channels (Project.expand). With a table, the reading the pane gives: the modes, references, responses and FRFs, how the shapes were taken, and what was dropped or skipped. The tolerance applies only when the table and the set are on different geometries.

node_matches

node_matches(project: Any, source: str, onto: str, report: dict) -> dict

Both geometries of a projection overlaid in one frame, as project_shapes measured them (core.correlate.si_points): the model's mesh, the target's nodes, those matched in one color and those with no model node within the distance in another, the target's own lines, and a link from each matched node to the model node it was matched to (report['pairs']). What Project onto Basis DOFs previews as the distance is typed.

projection_views

projection_views(project: Any, source: str, onto: str) -> list[dict]

A shape set and a geometry it does not belong on, picked together: what Reduce would add, the set's modes at that geometry's nodes at the distance DOF Mapping keeps for the pair, drawn and read and not added (node_matches); or why it cannot be reduced, and for an expansion, which needs a model's modes, the set to pick it with (project.mapping_why).

expansion_rows

expansion_rows(report: dict, defined: bool) -> list[dict]

What an expansion matched and how well it fits: the model modes it was built on, how well the test DOFs tell them apart, and the worst misfit at those DOFs (core.correlate.expand_shapes).

set_projection

set_projection(project: Any, params: dict[str, Any]) -> list[dict]

project.set_projection: DOF Mapping, how the DOFs of two shape sets on two geometries are mapped onto each other (Project.set_projection): one set's nodes matched to the other's DOFs within the distance. Kept as it is changed; the node pairs matched are drawn (node_matches) and read. The comparisons, Reduce and Expand under it read what it keeps. For a shape set and a geometry it is not on, the set's nodes matched to the geometry's.

expand_modes

expand_modes(project: Any, params: dict[str, Any]) -> list[dict]

project.expand_modes: Expand, a test's modes expanded to a model's DOFs through the model's modes (Project.expand_modes, SEREP): the modes picked under each set, every one of a set picked whole, at the distance the pair's DOF mapping keeps. It opens on what it would add and shows it again as the picks change, so a model mode left out shows at once what it did to the fit: the expanded modes on the model's geometry, how well they fit, and what the node pairs matched. With keep, Apply, it adds the set, linked with the model.

onto_basis

onto_basis(project: Any, params: dict[str, Any]) -> list[dict]

project.project_onto_basis: a shape set sampled at another set's DOFs, at a channel table's, or at every node of a geometry (Project.project_onto_basis), a node matched within the distance typed, or Project.match_distance's for 0: the two geometries overlaid with the node pairs matched and the nodes left out (node_matches), what the projection matched, and the set it adds; when no node is matched, the first two and nothing added, so the distance can be set beside them.

mac_views

mac_views(project: Any, first: str, second: str, row_modes: list[int] | None = None, column_modes: list[int] | None = None) -> list[dict]

The MAC of first's modes against second's (mac), limited to the row_modes and column_modes picked (indices from 0) when given, its axes ticked with those modes' frequencies.

mac

mac(project: Any, params: dict[str, Any]) -> list[dict]

project.mac: the Modal Assurance Criterion of one shape set's modes against another's (Project.comparison_mac, so across two geometries after projection, as the selection and Match Modes read it), or a set against itself, of the modes picked under each (every mode when none is). With a geometry the matrix selects the pair it shows, the column mode overlaid on the row mode.

mode_shapes

mode_shapes(project: Any, params: dict[str, Any]) -> list[dict]

project.mode_shapes: a shape set's modes on a geometry.

compute_spectra

compute_spectra(project: Any, params: dict[str, Any]) -> list[dict]

project.compute_spectra, the view saying its numbers are raw: under an axis in the record's units a sine of 3 reads tens of thousands.

transform

transform(project: Any, params: dict[str, Any]) -> list[dict]

project.transform: the records picked under the source through the modes picked under the shape set (Project.transform), every record or mode of an object picked whole.

rescale

rescale(project: Any, params: dict[str, Any]) -> list[dict]

project.rescale: some or all of a time history's records times a factor, typed or the recorded sensitivity over the correct one (Project.rescale). Without keep, the picked records drawn as recorded and rescaled, the rescaled dashed in each one's colour, and the factor, how many records it applies to and the largest value before and after; with it, <name> Rescaled added. With several histories picked (more) the first is previewed, and Apply adds a rescaled copy of each into a group of their own (Project.rescale_histories).