In an orifice the coefficient of contraction is defined as the ratio of: