Consider the following system of interconnected tanks:
The two tanks have cross-section areas $A_1$ and $A_2$ respectively and the levels of the liquid are denoted by $h_1$ and $h_2$ respectively.
The liquid can run from one vessel into the other through a tube of cross-section area $a$, which is significantly smaller than $A_1$ and $A_2$.
Let us denote the density of the liquid by $\rho$ and the gravitational acceleration by $g$.
I need to derive a dynamical model of this system that describes the evolution of $h_1$ and $h_2$ and I see in various publications (example) that
$$ F_1 = \rho a \sqrt{2g(h_1-h_2)}.\tag{*} $$
I would like to use Bernoulli's principle to derive this formula. I will assume that the head loss in the pipe due to friction is negligible.
From Bernoulli's principle between a point $x$ on the surface of the first tank and a point $y$ at its exit
we have
$$ P_{atm} + \rho g h_1 = P_y + \frac{1}{2}\rho v_y^2\tag{1a} $$
Similarly, in Bernoulli's principle in the second tank gives
$$ P_{atm} + \rho g h_2 = P_{y'} - \frac{1}{2}\rho v_{y'}^2\label{1b}\tag{1b} $$
I am not sure about Equation \eqref{1b} - I used the negative sign because I used the convention that a positive $v_y$ means that the liquid flows from the first tank into the second one, so the second tank gains kinetic energy.
Question 1. Can you please clarify whether this is correct?
From point $y$ to $y'$, Bernoulli's equation gives
$$ P_{y} + \frac{1}{2}\rho v_{y}^2 = P_{y'} + \frac{1}{2}\rho v_{y'}^2\tag{1c} $$
Because of the mass balance equation between the two ends of the tube (assuming incompressible flow), it is $v_y = v_{y'}$.
The mass balance between the two tanks is
$$ \rho A_1 \dot{h}_1 + \rho A_2 \dot{h}_2 = 0\tag{2}. $$
Lastly, we know that
$$ F_1 = \rho a v_y, $$
so it suffices to show that $v_y = \sqrt{2g(h_1-h_2)}$.
Question 2. I have tried to combine Equations (1a-1c) and (2) to derive Equation (*), but did not make it.