Code
include("../../../utils/plot_node_connectivity.jl")
plot_node_connectivity("LevelBoundary")LevelBoundary is a node whose water level is determined by the input. It can be used as a boundary condition like the level of the sea or a lake. Since the water level is unaffected by flow, it acts like an infinitely large Basin. Connect the LevelBoundary to a node that will look at the level to calculate the flow, like a LinearResistance.
The diagram below shows which node types are allowed directly upstream (left) and downstream (right) of this node. This is a connectivity illustration, not a valid simulation model.
This table is the transient form of the LevelBoundary table. The only difference is that a time column is added. With this the levels can be updated over time. In between the given times the level is block interpolated (forward fill), and outside the level is constant given by the nearest time value. Note that a node_id can be either in this table or in the static one, but not both.
This table defines the concentration of substances for the flow from the LevelBoundary.
| column | type | unit | optional | restriction |
|---|---|---|---|---|
| node_id | Int32 | - | x | - |
| time | DateTime | - | x | - |
| substance | String | - | x | can correspond to known Delwaq substances |
| concentration | Float64 | g m⁻³ | x | - |
A LevelBoundary can be connected to a Basin via a LinearResistance. This boundary node will then exchange water with the Basin based on the difference in water level between the two.
In allocation a LevelBoundary can supply or receive any amount of water. How much water is exchanged with the network is limited only by the node between the LevelBoundary and the network, for instance by the capacity of a Pump or the water level difference over a LinearResistance. Allocation uses the level of the LevelBoundary as it will be at the end of each allocation timestep.
With a route priority for LevelBoundary nodes, see allocation settings, allocation can be made to prefer or avoid a LevelBoundary as a source of water.