imod.mf6.HorizontalFlowBarrierMultiplier#
- class imod.mf6.HorizontalFlowBarrierMultiplier(*_, **__)[source]#
- Horizontal Flow Barrier (HFB) package - Input to the Horizontal Flow Barrier (HFB) Package is read from the file that has type “HFB6” in the Name File. Only one HFB Package can be specified for a GWF model. https://water.usgs.gov/water-resources/software/MODFLOW-6/mf6io_6.2.2.pdf - If parts of the barrier overlap a layer the multiplier is applied to the entire layer. - Parameters:
- geometry (gpd.GeoDataFrame) – - Dataframe that describes:
- geometry: the geometries of the barriers, 
- multiplier: the multiplier of the barriers 
 
 
- print_input (bool) 
 
 - Examples - >>> x = [-10.0, 0.0, 10.0] >>> y = [10.0, 0.0, -10.0] >>> ztop = [10.0, 20.0, 15.0] >>> zbot = [-10.0, -20.0, 0.0] >>> polygons = linestring_to_trapezoid_zpolygons(x, y, ztop, zbot) >>> barrier_gdf = gpd.GeoDataFrame( >>> geometry=polygons, >>> data={ >>> "multiplier": [10.0, 10.0], >>> }, >>> ) >>> hfb = imod.mf6.HorizontalFlowBarrierMultiplier(barrier_gdf) - Methods - __init__(geometry[, print_input])- cleanup(dis)- Cleanup the package inplace by removing barriers that fall outside of the active model domain. - clip_box([time_min, time_max, layer_min, ...])- Clip a barrier by a bounding box (y, x). - copy()- Copy package into a new package of the same type. - from_file(path, **kwargs)- Loads an imod mf6 package from a file (currently only netcdf and zarr are supported). - Returns the default regrid methods for this package. - is_empty([ignore_time])- Returns True if the package is empty, that is if it contains only no-data values. - mask(_)- The mask method is irrelevant for this package as it is grid-agnostic, instead this method retuns a copy of itself. - regrid_like(target_grid, regrid_cache[, ...])- Creates a package of the same type as this package, based on another discretization. - snap_to_grid(dis)- Snap the barriers to the grid edges of the discretization. - to_mf6_pkg(idomain, top, bottom, k[, ...])- Write package to Modflow 6 package. - to_netcdf(*args[, mdal_compliant, crs])- Write dataset contents to a netCDF file. - write(pkgname, globaltimes, directory[, ...])- Write package to file - Attributes - auxiliary_data_fields- dataset- line_data