I need a clarification about Bernoulli's principle.
The standard way in which this principle is taught is related to a picture like this one
where usually the two sections have different areas and are located at different values of height. Then the relation $p_1+\rho g h_1 + 1/2\rho v_1^2 = p_2+\rho g h_2 + 1/2\rho v_2^2$ is derived.
However, I'd like to know if - for some applications - Bernoulli's principle can be applied to two different points at the same height but one inside the tank, and the other one outside the tank but really near the opening. Like in this picture
Thus: $p_0+\rho g h_1 + 1/2\rho v_1^2 = p_0+\rho g h_2 + 1/2\rho v_2^2$ yields to $\rho g h_1 = 1/2\rho v_2^2$ (by neglecting $v_1^2$, the opening is small)