Skip to main content

Module insight

Module insight 

Source
Expand description

The app’s side of the views of what the machine is (sim_components::shapes): what the workspace map and the path in the 3D view are coloured by, the path’s values, and the cycle run with its bounded values at their bounds, kept as traces. Nothing here draws.

Structs§

BandRuns
The cycle run with each bounded value at its low and at its high bound, one at a time, as verdict_bands runs it, kept as traces: each motor’s torque and following error and each belt section’s tension, nominal and enveloped; and per motor the operating points (speed in rad/s, torque) of the bounds runs, every other millisecond.
BandTrace
One traced signal of the cycle with the bounds runs’ envelope (BandRuns): its signal, the time from the measured pass’s start, the nominal trace and, at each sample, the lowest and highest value of the bounds runs.
Insight
What the model keeps for these views: the mode list with the config it was found for, the mode picked for the 3D view, and the bounds runs with the config they are of, and their job.
ModeView
One mode of the machine at a pose, for the mode list.
PathColours
The path that was run in the 3D view, coloured by one quantity (Model::path_colours): per sample of the run the tool’s place in the scene, the time and the value; and the sample with the highest value.
ShownMode
A shape shown swinging in the 3D view (session::mode_scene): the pose the machine rests at, the mode’s frequency and its shape as a complex direction in the state, re and im. The state swings as rest + a (re sin wt + im cos wt).
Slice
A horizontal slice through what the machine reaches, at height z of its third axis (workspace_slice).

Enums§

PathQuantity
What the path in the 3D view is coloured by along its length (Model::path_colours).
WorkspaceColour
What the workspace map colours each place by.

Constants§

KEYS
The labels these views take from the model.
STIFFNESS_KINDS
The kinds of stiffness a mode can live in, each with the label key ui-modes-stiffness-<kind>.

Functions§

as_mode
An eigenvalue as a mode: its undamped natural frequency |lambda| / 2 pi in Hz and its damping ratio -Re / |lambda|.
band_runs
The bounds runs of config’s cycle (BandRuns), each recorded as analysis::record_cycle records the cycle, on all processors. progress counts the runs; a cancel ends the job (check_cancelled) between two rounds of them.
bound_configs
The configs of the bounds runs: config with its parts in and each bounded value (analysis::bounds of that) at its low and its high bound, one at a time. A bound whose low is its high moves nothing and runs nothing.
build
The machine config builds, with its parts in.
eigen_near
The eigenvalue of the n x n matrix a nearest shift and its eigenvector, by inverse iteration: (A - shift I) is factorised (LU with partial pivoting) and solved fifty times, each solve multiplying the part of the nearest eigenvector by 1 / |lambda - shift| more than any other; then once more from the eigenvalue found, as Rayleigh’s iteration does, since another eigenvalue (a free machine’s rigid motion at 0) may lie nearly as near the shift and fade slowly. The vector is scaled so that its largest entry is 1 (real). None where the matrix holds a number that is not finite.
envelope
The lowest and the highest value at each sample over traces, sample by sample from their starts; where a trace is shorter than another, its end counts no further.
linear_speed
The length of a vector of speeds that counts only those marked linear (m/s): a turning axis’s rad/s does not add to a tool speed (PathQuantity::Speed, Runner::trail_point).
linearised
The machine at rest at pose (Machine::equilibrium) and its small-motion matrix there: A = d(derivatives) / d(state), n x n row after row, by central differences with the motor torques held at those that hold it at rest. The motors are free in it, as on a machine with its drives off: no control loop holds them.
linearised_held
The machine at rest at pose with its rotors held, as Machine::modes has its modes (motors held by their loops): linearised‘s matrix over the states that move neither a motor’s angle nor its speed (Machine::motor_state), and those states’ indices. A state that moves a motor’s angle (a rotor’s, or on a rigid drive the joint’s own) is held with the state that moves its speed. The rest, the stand at pose.
mode_views
The modes the machine reports at pose, lowest first, each with a shape: the machine’s own for the mode it gives one of, else that of the oscillation nearest the reported one of its linearised model with the motors free (linearised) or with the rotors held (linearised_held, as Machine::modes has them), a real eigenvalue never (eigen_near; a held 694.28 Hz mode was paired with a roller friction pole, 101.8 Hz, until 21 November), scaled so that the tool moves by at most 1 m per unit (or, where it does not move, the largest entry is 1).
stiffness_kind
The kind of stiffness a config value is, by its path: a number whose key names a stiffness (*stiffness*, or a Young’s modulus), in a table of belts, gearboxes, guides and what runs on them (friction contacts, racks, screws, slides), the frame, the base or the links. End stops and a payload’s swing are left out: they hold nothing at rest.
workspace_slice
The slice at z with n nodes a side (see Slice); the other axes beyond the third at 0. None for a machine with fewer than three axes or no condition to tell (one whose motors move the tool as its axes).
worst_acceleration
The largest acceleration the motors can give the tool at pose in its worst direction, m/s^2: with T = A a + g the rigid model’s motor torques (Machine::feedforward_torque, linear in the acceleration a of the axes in metres) and peak each motor’s peak torque, motor k holds |g_k| + |A_k . d| a <= peak_k for a direction d; its worst is d along its row A_k, so a = min over k of (peak_k - |g_k|) / |A_k|. 0 where a motor cannot even hold the tool there.