# Two sealed valve-coupled water/air tanks with a common sump. How long after the valve is opened does it reach steady state?

What's the formula that relates the dimensions of the tanks, the water levels and the pipes to the time it takes to reach steady state once the connecting valve is opened?

As an example, assume the tanks are identical cylinders with a 1ft radius and 2ft high. At the start, the first tank is full (24in) and the second tank is empty (0in). At steady state, the water level in both is 12in. Assume the pipe connecting them on top is 2" PVC and 2ft long.

• In case the pipes connecting to the sump become a problem, assume that they're zero length (tanks can even be submerged at the bottom). Also - you can assume that the sump (base tank) is infinite so the water level there doesn't change. Commented Jun 26, 2017 at 21:18
• To be clearer: here are the variables I would consider relevant: Water height in tanks 1 and 2 (H1, H2). Cross-sectional area of the tanks (A), Length of the connecting pipe (L), Cross-sectional diameter of the connecting pipe (D), Roughness of the connecting pipe (e), and the properties of water and air at room temperature... Commented Jun 26, 2017 at 21:39
• Hi, I would consider this setup as an engineering problem. Have you any outline of your own ideas on how to solve it.
– user154420
Commented Jun 26, 2017 at 22:14
• well. At first, I considered starting with a traditional coupled tank problem and modifying it. excelcalculations.blogspot.com/2011/12/… This doesn't work because the sump is effectively the open volume and the gas (air) is passing between the tanks to reach equilibrium. In theory, this could be turned upside down with the air as the fluid and the water as the "open fluid". This becomes a coupled tank problem with gas instead of fluid and buoyancy instead of gravity. I haven't solved it that way, but it seemed convoluted, so I thought I'd ask here. Commented Jun 26, 2017 at 22:37
• Sorry, I misunderstood your question, I apologise. It's far more complicated than in my answer. I'll try to re-formulate. Commented Jun 28, 2017 at 7:47

Let's define: $A$ is the water surface area, $h$ is the water height above mean level (positive values pointing upward), $p$ is the pressure at the water surface, index $0$ is the ambient part, indices $1$ and $2$ are the two tanks. So $A_0$ is the water surface area of the sump, $h_1$ is the water height in tank 1 and $p_2$ is the pressure at the water surface of tank 2. This is depicted by the following sketch.

Water movement

Assuming the water is incompressible, the volume changes $\Delta V_i = A_i \, h_i$ must level out (the continuity equation): $$\Delta V_0 + \Delta V_1 + \Delta V_2 = 0 \quad\Leftrightarrow\quad A_0 \, h_0 + A_1 \, h_1 + A_2 \, h_2 = 0 \quad\mbox{.}$$ Assuming the water surface areas of tanks and the sump are constant (all have vertical walls), the surface velocities are $$v_i = \frac{\mathrm{d}h_i}{\mathrm{d}t} \quad\mbox{.}$$ Now let's apply Bernoulli's equation (the instationary one) between surfaces $1$ and $0$: $$\tfrac12 v_0^2 + g\,h_0 + \frac{p_0}\rho = \int_0^1 \frac{\partial v}{\partial t} \,\mathrm{d}s + \tfrac12 v_1^2 + g\,h_1 + \frac{p_1}\rho \quad\mbox{.}$$ The same can be done between surfaces $2$ and $0$. With known state $h_i$, $v_i$, $p_i$, this allows to calculate the integrals $\int \partial v / \partial t \,\,\mathrm{d}s$.

The difficult part is deriving the $\partial v_i / \partial t$ from those integrals, because the acceleration along the whole streamline is integrated. For the streamline part above the level where the tank walls end, the velocity can be considered constant. If the part below that level is neglected in the first place, the integral can be expressed as $$\int_0^1 \frac{\partial v}{\partial t} \,\mathrm{d}s = -\frac{\mathrm{d}v_0}{\mathrm{d}t} (h_0-h) + \frac{\mathrm{d}v_1}{\mathrm{d}t} (h_1-h)$$ with the (negative) height of the tank walls (negative value since its below the mean water level). The different signs in front of $\frac{\mathrm{d}v_0}{\mathrm{d}t}$ and $\frac{\mathrm{d}v_1}{\mathrm{d}t}$ are because the integral path is from position $0$ to position $1$, and positive velocities are upward.

Together with the continuity equation, we have the following three equations: $$A_0 \, h_0 + A_1 \, h_1 + A_2 \, h_2 = 0 \\ \tfrac12 \left( \frac{\mathrm{d}h_0}{\mathrm{d}t} \right)^2 + g\,h_0 + \frac{p_0}\rho + \frac{\mathrm{d}^2 h_0}{\mathrm{d}t^2} (h_0-h) = \frac{\mathrm{d}^2 h_1}{\mathrm{d}t^2} (h_1-h) + \tfrac12 \left( \frac{\mathrm{d}h_1}{\mathrm{d}t} \right)^2 + g\,h_1 + \frac{p_1}\rho \\ \tfrac12 \left( \frac{\mathrm{d}h_0}{\mathrm{d}t} \right)^2 + g\,h_0 + \frac{p_0}\rho + \frac{\mathrm{d}^2 h_0}{\mathrm{d}t^2} (h_0-h) = \frac{\mathrm{d}^2 h_2}{\mathrm{d}t^2} (h_2-h) + \tfrac12 \left( \frac{\mathrm{d}h_2}{\mathrm{d}t} \right)^2 + g\,h_2 + \frac{p_2}\rho$$ After integrating the continuity equation into the other two, we have two coupled second order differential equations for (e.g.) $h_1$ and $h_2$ with initial values for $h_1$, $h_2$, $v_1$ and $v_2$ that remain to be solved.

Air flow and air pressure

Similar considerations are required for the air flow. The major difference is that air is compressible. One idea would be to take the air mass inside the tanks (above the water surface) as state variable and create a model for that. Sorry, but I don't have the time for that now.

Dissipating effects

So far, this neglects dissipating effects like flow velocity profiles. Also, the pressure at the water surface remains to be solved. For all this, pipe flow could be utilized. Also the effect of the water streaming from the tanks into the sump (the water flow below the end of the tank walls) could be included as an additional pressure loss using this theory.

In pipe flow, the pressure loss $\Delta p/\rho$ ($\rho$ = fluid density) is calculated for each element, and then Bernoulli's equation is used to calculate the flow velocity $v$ or volumetric flow rate $\dot V = v \cdot A$ ($A$ = cross section area).

For a pipe, $$\frac{\Delta p}{\rho}=\lambda \frac{L}{D} \frac{v^2}{2}$$ with pipe length $L$, pipe diameter $D$ and pipe friction parameter $\lambda$.

For laminar flow, $\lambda=64/Re$ with Reynolds number $Re=v\cdot D/\nu$ and kinematic viscosity $\nu$.

Additional pressure losses are generated by the inlet and the outlet: $$\frac{\Delta p}{\rho}=\zeta \frac{v^2}{2}$$ with pressure loss coefficient $\zeta$. For an inlet with sharp edges, $\zeta=0,5$, with rounded edges $\zeta=0,03$. For an outlet, $\zeta=1$.

Effectively, considering dissipating effects reduces the pressure differences between $0$ and $1$ and between $0$ and $2$.

Conclusions

To sum up, this is quite complicated. I'm sorry I don't have the resources to solve this. An approach would be the Euler method (or a Runge-Kutta method if you prefer higher order).

Finally, you could check if the assumption of laminar flow is appropriate or not. Generally, laminar flow is considered for $Re < 2300$ and turbulent flow for $Re > 5000$.

• I don't see how this helps with the question. This doesn't really seem relevant to what he is trying to calculate.
– JMac
Commented Jun 27, 2017 at 9:25
• This isn't a homework problem. It's actually a real problem that I'm trying to solve before spending the money to build. I'm trying to achieve a specific flow rate of water in and out of the sump. By creating two different levels in the two coupled tanks and then connecting them, I expect one to release water and the other to draw up water in equal volumes. Commented Jun 27, 2017 at 14:57
• That flow rate is proportional to the time it takes to reach steady state. So I simplified the problem and posted it here. While I appreciate the fluid dynamics basics, I still don't have the answer. Commented Jun 27, 2017 at 15:05
• I've also built a scale model to try and get closer (yes - I know the base isn't infinite but it's just a simple model) m.youtube.com/watch?v=18ZsggRjOPI Commented Jun 27, 2017 at 15:07
• The experimental result was that the flow was substantially slower than originally expected ~ 40% of the equivalent rate of the full tank being released to air. Commented Jun 27, 2017 at 15:10