Fig 1 shows a reservoir which feeds a gravity distribution system – for drinking water or irrigation. If the ground in which the pipe is laid has high points – such as Hi1, 2 etc. and low points between them such as Lo1, 2 etc., then if the pipe is filled from the top, and was empty, the pipe fills OK as far as Hi1. If the water flow velocity is below the rising velocity of air bubbles, then water trickles down to the low point Lo2 and traps the remaining air between Hi1 and Lo2. As more water flows down, the upward leg Lo2 to Hi2 fills up. This exerts a pressure on the trapped air of either H2 m of water (WG = water gauge) or H1, whichever is less. If H2 is greater than H1, then you have a full air lock, and the water level in the up leg Lo2 to Hi2 stops at H1 and no further water can flow. If H1 is greater than H2, then some water can flow, but the full pipe hydraulic head H3 will not be reached and so flow is much less than expected. If there are further undulations, then the back pressure effects add together. Long pipelines built across fairly level, but undulating land are bound to have many such high and low points. To avoid air or gas lock, automatic vents are fitted which let air or gas out when above a certain pressure. They may also be designed to let air in under vacuum. There are many other design considerations for design of water pipeline systems, e.g.