2.0.0b10
catchment modelling framework
|
The first model from the last chapter is truely mass conservant. No water is entering or leaving the system. In this chapter the system will be opened up to be influenced by the system environment.
As a first step we will create a system outlet. The setup from the last chapter was:
Now we add an outlet DirichletBoundary to the project and connect W2 with that outlet, using a linear storage connection with a longer residence time
At last the new system needs to be solved again, the same way as the first model:
This results in:
To extend our model with input flux, we can add a Neumann boundary condition (NeumannBoundary) as a second boundary. This type of boundary condition is not triggered by the state of a water storage in the system, but by a defined flux given by the user. Since the flux should change over time, the flux is given as a timeseries. In this tutorial you will create a timeseries with daily alternating flux values between 0 and 1.
The setup code needs to be extended with the following:
That's it. And the result is:
If the input timeseries is replaced by measured net rainfall data and the residence times of the storages are calibrated, you might be lucky to predict some catchments correctly. However, cmf contains many, many more connection types than linear storage connections. Some of the connection types are shown in the next chapters. A list of all connections is here.