Tank Fill and Empty with Animation
This example shows how to model the dynamics of liquid in a tank. The animation provides a graphical display of the tank as it empties and refills, based on tank parameters. When you click START SIM, the tank fills up and empties. When the simulation ends, review the plot showing the liquid height and the states of the two valves.