Reference
Control Laws
The control laws that ship with Hertzforge, by test type. Each is readable source, runs built in and as a law file from the same code, and can be replaced by one of your own.
The controller checks every drive a law proposes and stops a run that crosses a limit. It does not judge whether a law controls well. A law's known limit is listed beside it, and a law you import is its author's work and your choice. See Known Limits.
Random
Single-output random: one drive, one control spectrum. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
hinvH-inverseDefault | Starts from the inverse of the identified plant, then holds the level with a servo and trims the shape line by line. | Standard practice. | None recorded. |
ratioPer-line ratio | Corrects each line by the ratio of the reference to the measured spectrum. The law the writing guide builds step by step. | Standard practice. | None recorded. |
MIMO Random
Several shakers at once: every control spectrum, and the coherence and phase of every pair. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
pinv_closedPseudo-inverse, closed loopDefault | Starts from the pseudo-inverse drive, then corrects a lower-triangular factor of the reference from the measured error each loop, autospectra first, with each drive held to a per-loop change. | Published multiple-shaker control literature. | None recorded. |
pinv_openPseudo-inverse, open loop | The pseudo-inverse drive every loop, with optional error weighting. | Published multiple-shaker control literature. | None recorded. |
shape_svdShape-constrained | Holds the drive on each line to the directions the structure responds to most, for much lower drive, and closes the loop inside that constraint. | Published multiple-shaker control literature. | None recorded. |
buzz_matchBuzz-test matched | Keeps the reference's autospectra and takes each pair's coherence and phase from the structure's own response to uncorrelated drive during identification. | Published multiple-shaker control literature. | None recorded. |
min_driveMinimum drive | Takes the reference's cross terms from the drive that needs the least power to produce its autospectra. | K. Coletti, R. B. Davis and R. Schultz, "Pareto-optimal target definition for multi-axis random vibration testing", 2026. | None recorded. |
band_averageBand average | Solves the inverse in fractional-octave bands: for each band, one drive cross-spectral matrix, flat across the band, whose band-averaged response matches the band-averaged reference. How correlated the drives are comes out of the solve, so they can be fully correlated, uncorrelated or partly correlated. Then a gain correction band by band. | Brandon Zwink. | It controls band averages, not lines. Its first solve can take longer than the law budget of a 2 s loop on a large test. |
Sine
One tone, swept, stepped or held, with the loop closed on its amplitude every control tick. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
servo_blendServo blendDefault | An amplitude servo on the error in dB, blended with the change the identified plant predicts, at most 1 dB a tick. A compression setting chooses the servo's speed. | Standard practice. | The fast setting overshoots by several dB on a level step at 20 Hz on a hardware station. The slow setting, the default, does not. |
Classical Shock
One pulse at a time, of a standard shape, with the loop closed between pulses. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
fd_correctFrequency-domain correctionDefault | The plant's inverse applied to the reference, then after each pulse a fraction of the inverse times the error, on the bins the controller trusts, with each bin's rise held to a limit. | Standard practice. | None recorded. |
SRS Shock
A pulse built to meet a target shock response spectrum, judged band by band. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
srs_ratioSRS ratioDefault | The classic per-band iteration: each component of the pulse is scaled by the target over the measured response at the band nearest it, limited per pulse. | Standard practice. | None recorded. |
Time Waveform Replication
A recorded time history reproduced at the control point, corrected between plays. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
twr_correctFrequency-domain correctionDefault | The plant's inverse applied to the reference, then after each play a fraction of the inverse times the error, on the bins the controller trusts. | Standard practice. | None recorded. |
MIMO Shock
One shock at a time on several shakers, judged at several control points. The laws are young and say so. Guide.
| Law | What It Does | Source | Known Limit |
|---|---|---|---|
inverseInverseDefault | Each control's target through the regularized inverse of the identified plant, then a correction after each pulse with a gain per line that is cut where the error grew. The default for a waveform target. | Standard practice. | On a structure whose resonances move with level, the line gains slow the divergence but do not stop it. |
shapeShapeDefault | A smooth gain per control shapes that control's target by its SRS ratio after every pulse; no waveform error is formed. The default for an SRS target. | The several-drive form of the published single-drive practice. | Bounded, but it stalls short of tolerance on a strongly coupled structure. |
pairedPaired | Pairs each control with one drive and scales that drive by the ratio of wanted to measured magnitude. It uses no cross path of the structure. | Standard practice. | On a coupled structure the pairs work against each other. It is there to show that, and as the template for a new law. |
Mixed Mode
Mixed Mode has no law of its own. It takes two laws from above: a Random law for the floor (hinv by default) and a Sine law for each tone (servo_blend by default). Narrow bands are shaped by the controller itself.
Writing Your Own
A law is a small Rust library built to a WebAssembly file. The guide walks through one from an empty folder to a run on the simulator, and the specification says exactly what a law is given and what it must return.