## Two cylindrical tanks, connecting pipe and outlet pipe - Differential Equation

1. The problem statement, all variables and given/known data

Two vertical cylindrical tanks, each 10 meters high, are installed side-by-side. Their bottoms are at the same level. The tanks are connected at their bottoms by a horizontal pipe 2 meters long which has an internal diameter of 0.03 meters. The first tank is full of oil and the second tank is empty. Tank 1 has a cross-sectional area twice that of tank 2. Tank one has an outlet pipe (to the environment) at it's bottom as well. It is of the same dimension as the other pipe. Both of the valves for the horizontal pipes are opened simultaneously. What is the maximum oil level reached for tank 2 before the oil drains out of both tanks? Assume laminar flow in the pipes and neglect kinetic losses and pipe entrances and exits.

2. Relevant equations

The volume balance equations are as follows.

TANK 1: $$2A\,\frac{dy}{dt}\,=\,-q_1\,-\,q_2$$

TANK 2: $$A\,\frac{dx}{dt}\,=\,q_2$$

$$q_1\,=\,\frac{k\,y}{L}$$

$$q_2\,=\,\frac{k\,\left(y\,-\,x\right)}{L}$$

3. The attempt at a solution

$$\frac{dy}{dt}\,=\,\frac{1}{2A}\,\left(-q_1\,-\,q_2\right)$$

$$\frac{dx}{dt}\,=\,\frac{1}{A}\,\left(q_2\right)$$

$$\frac{\frac{dy}{dt}}{\frac{dx}{dt}}\,=\,\frac{\frac{1}{2A}\,\left(-q_1\,-\,q_2\right)}{\frac{1}{A}\,\left(q_2\right)}$$

$$\frac{dy}{dx}\,=\,\frac{-\left(q_1\,+\,q_2\right)}{2y}$$

Substituting in for $q_1$ and $q_2$.

$$\frac{dy}{dx}\,=\,\frac{k\,\left(x\,-\,2y\right)}{4y}$$

$$4\,\frac{dy}{dx}\,=\,k\,\frac{x}{y}\,-\,2\,k$$

 Recognitions: Homework Help background: solving systems of 1st order ODE. for the homogeneous NxN linear system: $$\dot{\textbf{x}}(t)=\mathbb{A} \textbf{x}(t)$$ where $$\dot{\textbf{x}}(t), \textbf{x}(t)$$ are N-vectors while $$\mathbb{A}$$ is a NxN matrix (with constant coefficients assumed) then the general solution takes the form: $$\textbf{x}(t) = c_1\textbf{V}_1\,e^{\lambda_1 t} + c_2\textbf{V}_2\,e^{\lambda_2 t}+\cdots+c_N\textbf{V}_N\,e^{\lambda_N t}$$ where $$\lambda_i$$ are the eigenvalues of $$\mathbb{A}$$ and $$c_i$$ are arbitrary integration constants, $$\textbf{V}_i$$ are linearly independent eigenvectors of $$\mathbb{A}$$. For your system, it would look something like this: $$\begin{pmatrix}\dot{y} \\ \dot{x}\end{pmatrix}= \begin{pmatrix}-k/(AL) & k/(2AL)\\ k/(AL) & -k/(AL)\end{pmatrix}\; \begin{pmatrix}y \\ x\end{pmatrix}$$
 can you explain what q, k, x, y and L are? I kinda can't follow what you were doing up there.

## Two cylindrical tanks, connecting pipe and outlet pipe - Differential Equation

yes, i wanna know too
 The problem doesn't say what those values are. I know some are constant and some are variables. Here is the picture that came with the problem

VinnyCee, why 2q changed to 2y?
Attached Images
 untitled.bmp (20.4 KB, 30 views) untitled1.bmp (15.1 KB, 27 views)