None Notebook

This notebook contains material from CBE30338; content is available on Github.

< 3.6 Second Order Models | Contents | Tag Index | 3.8 Manometer Models and Dynamics >

Open in Colab

Download

3.7 Interacting Tanks

3.7.1 Problem Statement

The following diagram shows a pair of interacting tanks.

Image of a two interacting tanks

Assume the pressure driven flow into and out of the tanks is linearly proportional to tank levels. The steady state flowrate through the tanks is 3 cubic ft per minute, the steady state heights are 7 and 3 feet, respectively, and a constant cross-sectional area 5 sq. ft. The equations are written as

$$\begin{align*} \frac{dh_1}{dt} & = \frac{F_0}{A_1} - \frac{\beta_1}{A_1}\left(h_1-h_2\right) \\ \frac{dh_2}{dt} & = \frac{\beta_1}{A_2}\left(h_1-h_2\right) - \frac{\beta_2}{A_2}h_2 \end{align*}$$

a. Use the problem data to determine values for all constants in the model equations.

b. Construct a Phython simulation using odeint, and show a plot of the tank levels as function of time starting with an initial condition $h_1(0)=6$ and $h_2(0)$ = 5. Is this an overdamped or underdamped system.

3.7.2 Solution

3.7.2.1 Part a.

The parameters that need to be determined are $\beta_1$ and $\beta_2$. At steady state all of the flows must be identical and

$$\begin{align*} 0 & = F_0 - \beta_1(h_1 - h_2) \\ 0 & = \beta_1(h_1 - h_2) - \beta_2h_2 \end{align*}$$

Substituting problem data,

$$\beta_1 = \frac{F_0}{h_1-h_2} = \frac{3\text{ cu.ft./min}}{4\text{ ft}} = 0.75\text{ sq.ft./min}$$

$$\beta_2 = \frac{\beta_1(h_1 - h_2)}{h_2} = \frac{3\text{ cu.ft./min}}{3\text{ ft}} = 1.0\text{ sq.ft./min}$$

3.7.2.2 Part b.

The next step is perform a simulation from a specified initial condition.

3.7.2.3 Further Calculations

$$\frac{d}{dt}\left[\begin{array}{c} h_1 \\ h_2 \end{array}\right] = \left[\begin{array}{cc}-\frac{\beta_1}{A_1} & \frac{\beta_1}{A_1} \\ \frac{\beta_1}{A_2} & -\frac{\beta_1}{A_2} - \frac{\beta_2}{A_2} \end{array}\right] \left[\begin{array}{c}h_1 \\ h_2\end{array}\right] + \left[\begin{array}{c}\frac{1}{A_1} \\ 0\end{array}\right]F_0$$

< 3.6 Second Order Models | Contents | Tag Index | 3.8 Manometer Models and Dynamics >

Open in Colab

Download