Figure 1. Three modes of operation for a water management system: drainage, controlled drainage and subirrigation.