create_leakage_event
Simulate a pipe burst by adding a leakage emitter at the pipe midpoint, splitting the pipe and cloning the network for what-if analysis.
Instructions
Simulate a pipe burst by adding a leakage emitter at the pipe midpoint.
A clone of the source network is created; the original is unchanged. The burst pipe is split into two halves and a midpoint junction node with an emitter is added.
Args: network_id: Source network id. pipe_id: Id of the pipe that bursts. leak_fraction: Fraction of flow that leaks (0.0–1.0). scenario_id: Id for the cloned scenario session. run_simulation: Run a full simulation after applying changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipe_id | Yes | ||
| network_id | Yes | ||
| scenario_id | No | ||
| leak_fraction | Yes | ||
| run_simulation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |