pub fn analyse_cycle(sim: &mut Sim) -> Result<CycleLoad, CommandError>Expand description
Runs the configured cycle and measures its second pass, when the machine has settled into it. If a drive trips before, the cycle never gets there: what is measured then is the run up to the trip.
With effects.thermal_warm_start, where windings (effects.winding_heating) or parts (effects.thermal_feedback) act
back on the run with their warmth: the cycle repeats from cold until a pass that starts with them at the rises it
settles at, within WARM_START_TOLERANCE_K; each pass ends with them put at the rises it settles at, and the pass
after it is measured. At most WARM_START_PASSES warm passes; the last is the measured one, converged or not
(CycleLoad::warm_start). With thermal time constants of minutes to an hour, a cycle of seconds would otherwise
see every part at the temperature it started with.
Where the config gives a path in place of the cycle ([path], sim::with_path), that path is planned and measured
instead, as analyse_trajectory measures it: so the verdicts, the catalogue search and the optimiser judge the path’s
run, repeated with the windings and parts at the rises it settles at under effects.thermal_warm_start.