flopy.modpath.mp7bas module

mp7bas module. Contains the Modpath7Bas class.

class Modpath7Bas(model, porosity=0.3, defaultiface=None, extension='mpbas')[source]

Bases: flopy.pakbase.Package

MODPATH 7 Basic Package Class.

Parameters:
  • model (model object) – The model object (of type flopy.modpath.Modpath7) to which this package will be added.
  • porosity (float or array of floats (nlay, nrow, ncol)) – The porosity array (the default is 0.30).
  • defaultiface (dict) – Dictionary with keys that are the text string used by MODFLOW in the budget output file to label flow rates for a stress package and the values are the cell face (iface) on which to assign flows (the default is None).
  • extension (str, optional) – File extension (default is ‘mpbas’).

Examples

>>> import flopy
>>> m = flopy.modflow.Modflow.load('mf2005.nam')
>>> mp = flopy.modpath.Modpath7('mf2005_mp', flowmodel=m)
>>> mpbas = flopy.modpath.Modpath7Bas(mp)
write_file(check=False)[source]

Write the package file

Parameters:check (boolean) – Check package data for common errors. (default False)
Returns:
Return type:None