create_pump_control_scenario
Apply a time-based pump on/off or speed schedule to a cloned water network and run a simulation to analyze hydraulic effects.
Instructions
Apply a time-based pump on/off or speed schedule and simulate.
A clone of the source network is created; the original is unchanged.
Each pump entry maps to a list of EPANET simple-control strings::
{
"Pump9": [
"LINK Pump9 1.0 AT TIME 06:00",
"LINK Pump9 CLOSED AT TIME 22:00"
]
}Args:
network_id: Source network id.
pump_schedule: {pump_id: [control_string, ...]} schedule.
scenario_id: Id for the cloned scenario session.
run_simulation: Run a full simulation after applying changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | ||
| scenario_id | No | ||
| pump_schedule | Yes | ||
| run_simulation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |