set_node_elevation
Change the elevation of a junction, reservoir, or tank in an EPANET network, with validation against engine and model units, and invalidates prior simulation results.
Instructions
Change the elevation of a junction, reservoir (its fixed head), or tank (its bottom elevation) in a loaded network. The edit is validated against the EPANET engine before it is applied: the node must exist and be a junction/reservoir/tank, the value must be within realistic bounds for the model's units, and the edited model must re-parse with the requested elevation. Previous simulation results for the network are invalidated (they describe the old model) — re-run run_simulation afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Id of the junction, reservoir, or tank to change (use get_nodes to list node ids and their current elevations). For a reservoir this sets its fixed head. | |
| elevation | Yes | New elevation in the model's native units (m for SI models, ft for US-unit models). Realistic bounds are enforced: -500 to 9000 m or -2000 to 30000 ft (negative = below sea level). | |
| networkId | Yes | The network id returned by load_network. |