I'm trying to calculate the flow rate out of my water tank.
On Wikipedia one can find Bernoulli's incompressible flow equation as: $$\frac{v^2}2 + gz + \frac p \rho = \mathrm{const}$$
With $p = \rho g h$ for hydrostatic pressure this yields:
$$v = \sqrt{2(\mathrm{const} - g(z + h))}$$
I understand that v is the flow speed and that h is the height difference between the water level in the tank and the outflow.
Two questions:
The variable $z$ is described as "elevation of the point above a reference plane". How is this reference plane to be chosen?
What does $\mathrm{const}$ depend on and how can it be determined?