A computer model was developed in order to determine the effects of drainage practices on nutrient losses from level agricultural soils. The model performs a daily simulation of the vertical flow of water, nitrogen, phosphorus, and heat, and of the growth of crops. A water flow submodel calculates the depth of the water table based on daily predictions of evaporation, transpiration, flow to drains and ditches, and deep percolation. An original saturated-unsaturated flow algorithm is used to determine moisture infiltration, redistribution, and upward flow in the soil matrix, as well as bypassing flow in the soil macropores and horizontal flux between the soil matrix and the macropores, and surface runoff. Nutrient movement occurs by mass fl...