Flow Between Two Reservoirs
In this example, we simulate the interflow between two reservoirs idealized as tanks. Under normal conditions flows enter the system through Reservoir 1 and are transferred by orifice flow to a second tank before being withdrawn according to a specified demand. However, because the flows into and out of the system are defined stochastically we are able to simulate a variety of conditions including a reversal of flow direction.
The goal of this model is to simulate the water supplied by a simple two-tank system. Here we apply Bernoulli's theorem to orifice flow and derive the tank levels and flows using the physical properties of the system.