imod.prepare.distribute_drn_conductance#
- imod.prepare.distribute_drn_conductance(distributing_option: DISTRIBUTING_OPTION, allocated: Union[DataArray, UgridDataArray], conductance: Union[DataArray, UgridDataArray], top: Union[DataArray, UgridDataArray], bottom: Union[DataArray, UgridDataArray], k: Union[DataArray, UgridDataArray], elevation: Union[DataArray, UgridDataArray]) Union[DataArray, UgridDataArray] [source]#
Function to distribute 2D conductance over vertical layers for the DRN package. Multiple options are available, which need to be selected in the DISTRIBUTING_OPTION enumerator.
- Parameters
distributing_option (DISTRIBUTING_OPTION) – Distributing option available in the DISTRIBUTING_OPTION enumerator.
allocated (DataArray | UgridDataArray) – 3D boolean array with drain cell locations. This can be made with the
imod.prepare.allocate_drn_cells()
function.conductance (DataArray | UgridDataArray) – Planar grid with conductances that need to be distributed over layers, so grid cannot contain a layer dimension. Can contain a time dimension.
top (DataArray | UgridDataArray) – Model top
bottom (DataArray | UgridDataArray) – Model layer bottoms
k (DataArray | UgridDataArray) – Hydraulic conductivities
elevation (DataArray | UgridDataArray) – Drain elevation
- Return type
Conductances distributed over depth.
Examples
>>> from imod.prepare import allocate_drn_cells, distribute_drn_conductance, ALLOCATION_OPTION, DISTRIBUTING_OPTION >>> allocated = allocate_drn_cells( ALLOCATION_OPTION.at_elevation, active, top, bottom, drain_elevation ) >>> conductances_distributed = distribute_drn_conductance( DISTRIBUTING_OPTION.by_layer_transmissivity, allocated, conductance, top, bottom, k, drain_elevation )