The potential of flow is a scalar formed by combining the flow pressure of the fluid with its gravitational potential energy; it is abbreviated as the potential and is also called the velocity potential, and its gradient corresponds to a velocity field. It is introduced so that Darcy's law can still be used in three-dimensional space when gravity is taken into account: the flow velocity v = −(K/μ)gradΦ, where K is the permeability and μ is the fluid viscosity. In a gravity field, fluid flows from a place of high potential to a place of low potential, rather than simply from a place of high pressure to a place of low pressure: of two wells, the one with the lower measured pressure may have the higher head, and it is from this well that the fluid flows to the other. Taking a horizontal datum plane and letting z be the height of the calculation point above the datum plane,
where Φ is the potential of flow, p is the pressure, ρ is the fluid density, and g is the gravitational acceleration. In a static fluid, Φ is equal at every point.