set_pump_speed
Adjust a pump's relative speed in an EPANET network, validating the edit against the engine and invalidating previous simulation results for re-run.
Instructions
Change the relative speed setting of a pump in a loaded network. The edit is validated against the EPANET engine before it is applied: the link must exist and be a pump, the value must be within realistic bounds, and the edited model must re-parse with the requested speed. If the pump has no SPEED property yet, one is appended to its [PUMPS] line. Previous simulation results for the network are invalidated (they describe the old model) — re-run run_simulation afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | Yes | New relative speed setting (dimensionless; 1.0 = nominal design speed). Range: 0.1 to 4.0. | |
| linkId | Yes | Id of the pump to change (use get_links to list pump ids and their current speed). | |
| networkId | Yes | The network id returned by load_network. |