resetSimulation

Built-ins · Labs guide

Canonical ID: simulation.reset. Nederlands: herstelSimulatie.

Resets a clock’s tick and time to zero and pauses it. Step size and rate remain. Measurement series are not cleared.

Signature

resetSimulation(clock)

Return value and behavior

A new reset clock Map.

The helper returns a new value. Use set/zet when updating a variable; the earlier value stays unchanged.

Example

# language: en
let clock = resetSimulation(stepSimulation(simulationClock(0.1)))