I want to calculate the efflux velocity for this open vessel with area $A_1$ with a small outlet with area $A_2$ as a function of time. The atmospheric pressure is $p_0$.
The vessel has height $h = h_{air} + h_{fluid}$ and is filled with a fluid. I want to take into account the velocity and potential head losses of the air. I am not interested in other losses.
An idea is to calculate the velocity starting from this equation.
$$(p_0-\rho_{air}g(h_{air}+h_{air} - z) -\frac{1}{2}\rho_{air}v^2)+\frac{1}{2}\rho_{fluid}v^2+\rho_{fluid}gz = p_0 + \rho_{fluid}\frac{A_1^2}{2A_2^2} v^2$$
I am in doubt as I don't know how to deal with the equilibrium at the interface between the fluid and the air. I know that in principle Bernouilli is not valid for a flow with two different fluids.