create_contamination_event
Inject contaminant at a network node for a defined time window and simulate water quality impact.
Instructions
Inject a contaminant at a node for a specified time window and simulate.
A clone of the source network is created. Quality type is set to CHEM automatically.
Args:
network_id: Source network id.
source_node_id: Node where the contaminant is introduced.
concentration: Concentration in mg/L (or model quality units).
start_time_s: Injection start time in seconds.
end_time_s: Injection end time in seconds.
source_type: "CONCEN", "MASS", "FLOWPACED", or
"SETPOINT".
scenario_id: Id for the cloned scenario session.
run_simulation: Run a full simulation after applying changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time_s | Yes | ||
| network_id | Yes | ||
| scenario_id | No | ||
| source_type | No | CONCEN | |
| start_time_s | Yes | ||
| concentration | Yes | ||
| run_simulation | No | ||
| source_node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |