imod.mf6.Recharge.reallocate#
- Recharge.reallocate(dis: StructuredDiscretization | VerticesDiscretization, npf: NodePropertyFlow | None = None, allocation_option: ALLOCATION_OPTION | None = None, distributing_option: DISTRIBUTING_OPTION | None = None, drop_empty_layers: bool = True) Self#
Reallocates topsystem data across layers and create new package with it. Aggregate data to planar data first, by taking either the mean for state variables (e.g. river stage), or the sum for fluxes and the conductance. Consequently allocate and distribute the planar data to the provided model layer schematization.
- Parameters:
dis (StructuredDiscretization | VerticesDiscretization) – The discretization of the model to which the data should be reallocated.
npf (NodePropertyFlow, optional) – The node property flow package of the model to which the conductance should be distributed (if applicable). Required for packages with a conductance variable.
allocation_option (ALLOCATION_OPTION, optional) – The allocation option to use for the reallocation. If None, the default allocation option is taken from
imod.prepare.SimulationAllocationOptions.distributing_option (DISTRIBUTING_OPTION, optional) – The distributing option to use for the reallocation. Required for packages with a conductance variable. If None, the default is taken from
imod.prepare.SimulationDistributingOptions.drop_empty_layers (bool, default True) – If True, drop layers that contain no allocated cells anywhere in the domain (or at any time), so the returned grids only span the layers that are actually used. Reduces memory use and speeds up later operations such as regridding, clipping and splitting. If no cells are allocated in any layer, nothing is dropped and the full layer range is returned, as a layer dimension of size 0 is not valid.
- Returns:
A new instance of the boundary condition class with the reallocated data. The original instance remains unchanged.
- Return type:
BoundaryCondition