MODFLOW Discretization Package Class. Parameters ---------- model : model object The model object (of type :class:`flopy.modflow.Modflow`) to which this package will be added. nlay : int Number of model layers (the default is 1). nrow : int Number of model rows (the default is 2). ncol : int Number of model columns (the default is 2). nper : int Number of model stress periods (the default is 1). delr : float or array of floats (ncol), optional An array of spacings along a row (the default is 1.0). delc : float or array of floats (nrow), optional An array of spacings along a column (the default is 0.0). laycbd : int or array of ints (nlay), optional An array of flags indicating whether or not a layer has a Quasi-3D confining bed below it. 0 indicates no confining bed, and not zero indicates a confining bed. LAYCBD for the bottom layer must be 0. (the default is 0) top : float or array of floats (nrow, ncol), optional An array of the top elevation of layer 1. For the common situation in which the top layer represents a water-table aquifer, it may be reasonable to set Top equal to land-surface elevation (the default is 1.0) botm : float or array of floats (nlay, nrow, ncol), optional An array of the bottom elevation for each model cell (the default is 0.) perlen : float or array of floats (nper) An array of the stress period lengths. nstp : int or array of ints (nper) Number of time steps in each stress period (default is 1). tsmult : float or array of floats (nper) Time step multiplier (default is 1.0). steady : bool or array of bool (nper) true or False indicating whether or not stress period is steady state (default is True). itmuni : int Time units, default is days (4) lenuni : int Length units, default is meters (2) extension : string Filename extension (default is 'dis') unitnumber : int File unit number (default is None). filenames : str or list of str Filenames to use for the package. If filenames=None the package name will be created using the model name and package extension. If a single string is passed the package will be set to the string. Default is None. xul : float x coordinate of upper left corner of the grid, default is None, which means xul will be set to zero. yul : float y coordinate of upper-left corner of the grid, default is None, which means yul will be calculated as the sum of the delc array. This default, combined with the xul and rotation defaults will place the lower-left corner of the grid at (0, 0). rotation : float counter-clockwise rotation (in degrees) of the grid about the lower- left corner. default is 0.0 proj4_str : str PROJ4 string that defines the projected coordinate system (e.g. '+proj=utm +zone=14 +datum=WGS84 +units=m +no_defs '). Can be an EPSG code (e.g. 'EPSG:32614'). Default is None. start_datetime : str starting datetime of the simulation. default is '1/1/1970' Attributes ---------- heading : str Text string written to top of package input file. Methods ------- See Also -------- Notes ----- Examples -------- >>> import flopy >>> m = flopy.modflow.Modflow() >>> dis = flopy.modflow.ModflowDis(m) _ModflowDis__thickness =('flopy.utils.util_array.Util3d) _name = DIS _parent = MODFLOW 1 layer(s) 40 row(s) 40 column(s) 1 stress period(s) ('flopy.modflow.mf.Modflow) _sr = xul:0; yul:1000; rotation:0; proj4_str:None; units:meters; lenuni:2; length_multiplier:1.0 ('flopy.utils.reference.SpatialReference) acceptable_dtypes (list, items = 3) allowDuplicates = False ('bool) botm = ('flopy.utils.util_array.Util3d) delc = ('flopy.utils.util_array.Util2d) delr = ('flopy.utils.util_array.Util2d) extra = file_name = tutorial1.dis fn_path = ./data/tutorial1/tutorial1.dis ('str) itmuni = 4 ('int) itmuni_dict = {0: 'undefined', 1: 'seconds', 2: 'minutes', 3: 'hours', 4: 'days', 5: 'years'} ('dict) laycbd = ('flopy.utils.util_array.Util2d) lenuni = 2 ('int) ncol = 40 ('int) nlay = 1 ('int) nper = 1 ('int) nrow = 40 ('int) nstp = ('flopy.utils.util_array.Util2d) perlen = ('flopy.utils.util_array.Util2d) start_datetime = 1-1-1970 ('str) steady = ('flopy.utils.util_array.Util2d) top = ('flopy.utils.util_array.Util2d) tr = ('flopy.utils.reference.TemporalReference) tsmult = ('flopy.utils.util_array.Util2d) unit_number = 11