swn.modflow.SwnMf6.from_swn_flopy#
- classmethod SwnMf6.from_swn_flopy(swn, model, idomain_action='freeze', reach_include_fraction=0.2, diversion_downstream_bias=0.0)#
Create a MODFLOW 6 SFR structure from a surface water network.
- Parameters:
- swnswn.SurfaceWaterNetwork
Instance of a SurfaceWaterNetwork.
- modelflopy.mf6.ModflowGwf
Instance of a flopy MODFLOW 6 groundwater flow model.
- idomain_actionstr, optional
- Action to handle IDOMAIN:
freeze
: Freeze IDOMAIN, but clip streams to fit bounds.modify
: Modify IDOMAIN to fit streams, where possible.
- reach_include_fractionfloat or pandas.Series, optional
Fraction of cell size used as a threshold distance to determine if reaches outside the active grid should be included to a cell. Based on the furthest distance of the line and cell geometries. Default 0.2 (e.g. for a 100 m grid cell, this is 20 m).
- diversion_downstream_biasfloat, default 0.0
A bias used for spatial location matching that increase the likelihood of finding downstream reaches of a segnum if positive, and upstream reaches if negative. Valid range is -1.0 to 1.0. Default 0.0 is no bias, matching to the closest reach.
- Returns:
- objswn.SwnMf6 object