# Drain (DRN) package¶

The DRN package specifies the use of drains in a simulation. To enable the drain package use

mf.setDrain(elevation, conductance, LAYER)


where

elevation [$$L$$]

is the name of a spatial, scalar PCRaster map containing drain elevation values;

conductance [$$L^2T^-1$$]

is the name of a spatial, scalar PCRaster map containing drain conductance values and

LAYER [$$-$$]

is the layer number the map values will be assigned to.

Water seepage into a drain is calculated if the conductance value in a cell is larger than zero.