Let $q_{i,j}$ be the volumetric flow rate from tank $i$ to tank $j$.
We assume that the flow rate is proportional to the height difference between tanks.
The mass balance for each tank is given by:
Tank 1: $A_1 \frac{dh_1}{dt} = Q_i - q_{1,2}$
Tank 2: $A_2
Show more…