flopy.modflow.mfmlt Module

mfmlt module. Contains the ModflowMlt class. Note that the user can access the ModflowMlt class as flopy.modflow.ModflowMlt.

Additional information for this MODFLOW package can be found at the Online MODFLOW Guide.

class flopy.modflow.mfmlt.ModflowMlt(model, mult_dict=None, extension='mlt', unitnumber=None, filenames=None)

MODFLOW Mult Package Class.

Parameters:

model : model object

The model object (of type flopy.modflow.mf.Modflow) to which this package will be added.

mult_dict : dict

Dictionary with mult data for the model. mult_dict is typically instantiated using load method.

extension : string

Filename extension (default is ‘drn’)

unitnumber : int

File unit number (default is 21).

Notes

Parameters are supported in Flopy only when reading in existing models. Parameter values are converted to native values in Flopy and the connection to “parameters” is thus nonexistent.

Examples

>>> import flopy
>>> m = flopy.modflow.Modflow()
>>> mltdict = flopy.modflow.ModflowZon(m, mult_dict=mult_dict)
static load(f, model, nrow=None, ncol=None, ext_unit_dict=None)

Load an existing package.

Parameters:

f : filename or file handle

File to load.

model : model object

The model object (of type flopy.modflow.mf.Modflow) to which this package will be added.

nrow : int

number of rows. If not specified it will be retrieved from the model object. (default is None).

ncol : int

number of columns. If not specified it will be retrieved from the model object. (default is None).

ext_unit_dict : dictionary, optional

If the arrays in the file are specified using EXTERNAL, or older style array control records, then f should be a file handle. In this case ext_unit_dict is required, which can be constructed using the function flopy.utils.mfreadnam.parsenamefile.

Returns:

zone : ModflowMult dict

Examples

>>> import flopy
>>> m = flopy.modflow.Modflow()
>>> mlt = flopy.modflow.ModflowMlt.load('test.mlt', m)
static mult_function(mult_dict, line)

Construct a multiplier for the ‘FUNCTION’ option

write_file()

Write the package file.

Returns:None

Notes

Not implemented because parameters are only supported on load