flopy package
Subpackages
- flopy.discretization package
- flopy.export package
- flopy.mf6 package
- flopy.mfusg package
- Submodules
- Module contents
- flopy.modflow package
- Submodules
- flopy.modflow.mf module
- flopy.modflow.mfaddoutsidefile module
- flopy.modflow.mfag module
- flopy.modflow.mfbas module
- flopy.modflow.mfbcf module
- flopy.modflow.mfbct module
- flopy.modflow.mfchd module
- flopy.modflow.mfde4 module
- flopy.modflow.mfdis module
- flopy.modflow.mfdrn module
- flopy.modflow.mfdrt module
- flopy.modflow.mfevt module
- flopy.modflow.mffhb module
- flopy.modflow.mfflwob module
- flopy.modflow.mfgage module
- flopy.modflow.mfghb module
- flopy.modflow.mfgmg module
- flopy.modflow.mfhfb module
- flopy.modflow.mfhob module
- flopy.modflow.mfhyd module
- flopy.modflow.mflak module
- flopy.modflow.mflmt module
- flopy.modflow.mflpf module
- flopy.modflow.mfmlt module
- flopy.modflow.mfmnw1 module
- flopy.modflow.mfmnw2 module
- flopy.modflow.mfmnwi module
- flopy.modflow.mfnwt module
- flopy.modflow.mfoc module
- flopy.modflow.mfpar module
- flopy.modflow.mfparbc module
- flopy.modflow.mfpbc module
- flopy.modflow.mfpcg module
- flopy.modflow.mfpcgn module
- flopy.modflow.mfpks module
- flopy.modflow.mfpval module
- flopy.modflow.mfrch module
- flopy.modflow.mfriv module
- flopy.modflow.mfsfr2 module
- flopy.modflow.mfsip module
- flopy.modflow.mfsor module
- flopy.modflow.mfstr module
- flopy.modflow.mfsub module
- flopy.modflow.mfswi2 module
- flopy.modflow.mfswr1 module
- flopy.modflow.mfswt module
- flopy.modflow.mfupw module
- flopy.modflow.mfuzf1 module
- flopy.modflow.mfwel module
- flopy.modflow.mfzon module
- Module contents
- Submodules
- flopy.modflowlgr package
- flopy.modpath package
- flopy.mt3d package
- Submodules
- flopy.mt3d.mt module
- flopy.mt3d.mtadv module
- flopy.mt3d.mtbtn module
- flopy.mt3d.mtcts module
- flopy.mt3d.mtdsp module
- flopy.mt3d.mtgcg module
- flopy.mt3d.mtlkt module
- flopy.mt3d.mtphc module
- flopy.mt3d.mtrct module
- flopy.mt3d.mtsft module
- flopy.mt3d.mtssm module
- flopy.mt3d.mttob module
- flopy.mt3d.mtuzt module
- Module contents
- Submodules
- flopy.pest package
- flopy.plot package
- Submodules
- flopy.plot.crosssection module
- flopy.plot.map module
- flopy.plot.plotutil module
PlotUtilities
SwiConcentration
UnstructuredPlotUtilities
advanced_package_bc_helper()
cvfd_to_patch_collection()
filter_modpath_by_travel_time()
intersect_modpath_with_crosssection()
parse_modpath_selection_options()
plot_cvfd()
plot_shapefile()
reproject_modpath_to_crosssection()
shapefile_extents()
shapefile_get_vertices()
shapefile_to_patch_collection()
- flopy.plot.styles module
- Module contents
- Submodules
- flopy.seawat package
- flopy.utils package
- Submodules
- flopy.utils.binaryfile module
- flopy.utils.check module
- flopy.utils.compare module
- flopy.utils.crs module
- flopy.utils.cvfdutil module
- flopy.utils.datafile module
- flopy.utils.datautil module
- flopy.utils.flopy_io module
- flopy.utils.formattedfile module
- flopy.utils.geometry module
- flopy.utils.geospatial_utils module
- flopy.utils.get_modflow module
- flopy.utils.gridgen module
- flopy.utils.gridintersect module
- flopy.utils.gridutil module
- flopy.utils.lgrutil module
- flopy.utils.mflistfile module
- flopy.utils.mfreadnam module
- flopy.utils.modpathfile module
- flopy.utils.mtlistfile module
- flopy.utils.observationfile module
- flopy.utils.optionblock module
- flopy.utils.parse_version module
- flopy.utils.postprocessing module
- flopy.utils.rasters module
- flopy.utils.recarray_utils module
- flopy.utils.reference module
- flopy.utils.sfroutputfile module
- flopy.utils.swroutputfile module
- flopy.utils.triangle module
- flopy.utils.util_array module
- flopy.utils.util_list module
- flopy.utils.utils_def module
- flopy.utils.utl_import module
- flopy.utils.voronoi module
- flopy.utils.zonbud module
- Module contents
- Submodules
Submodules
- flopy.datbase module
- flopy.mbase module
BaseModel
BaseModel.add_existing_package()
BaseModel.add_external()
BaseModel.add_output()
BaseModel.add_output_file()
BaseModel.add_package()
BaseModel.add_pop_key_list()
BaseModel.change_model_ws()
BaseModel.check()
BaseModel.exename
BaseModel.export()
BaseModel.get_ext_dict_attr()
BaseModel.get_name_file_entries()
BaseModel.get_output()
BaseModel.get_output_attribute()
BaseModel.get_package()
BaseModel.has_package()
BaseModel.hdry
BaseModel.hnoflo
BaseModel.laycbd
BaseModel.laytyp
BaseModel.load_results()
BaseModel.model_ws
BaseModel.modelgrid
BaseModel.modeltime
BaseModel.name
BaseModel.namefile
BaseModel.next_ext_unit()
BaseModel.next_unit()
BaseModel.packagelist
BaseModel.plot()
BaseModel.remove_external()
BaseModel.remove_output()
BaseModel.remove_package()
BaseModel.run_model()
BaseModel.set_model_units()
BaseModel.set_output_attribute()
BaseModel.set_version()
BaseModel.to_shapefile()
BaseModel.verbose
BaseModel.version
BaseModel.write_input()
BaseModel.write_name_file()
FileData
FileDataEntry
ModelInterface
ModelInterface.check()
ModelInterface.exename
ModelInterface.export()
ModelInterface.get_package_list()
ModelInterface.hdry
ModelInterface.hnoflo
ModelInterface.laycbd
ModelInterface.laytyp
ModelInterface.model_ws
ModelInterface.modelgrid
ModelInterface.namefile
ModelInterface.packagelist
ModelInterface.solver_tols
ModelInterface.update_modelgrid()
ModelInterface.verbose
ModelInterface.version
PackageLoadException
resolve_exe()
run_model()
- flopy.pakbase module
- flopy.version module
Module contents
The FloPy package consists of a set of Python scripts to run MODFLOW, MT3D, SEAWAT and other MODFLOW-related groundwater programs. FloPy enables you to run all these programs with Python scripts. The FloPy project started in 2009 and has grown to a fairly complete set of scripts with a growing user base.
This version of Flopy (FloPy3) was released in December 2015 with a few great enhancements that make FloPy3 backwards incompatible. The first significant change is that FloPy3 uses zero-based indexing everywhere, which means that all layers, rows, columns, and stress periods start numbering at zero. This change was made for consistency as all array-indexing was already zero-based (as are all arrays in Python). This may take a little getting-used-to, but hopefully will avoid confusion in the future. A second significant enhancement concerns the ability to specify time-varying boundary conditions that are specified with a sequence of layer-row-column-values, like the WEL and GHB packages. A variety of flexible and readable ways have been implemented to specify these boundary conditions. FloPy is an open-source project and any assistance is welcomed. Please email the development team if you want to contribute.
- run_model(exe_name: str | PathLike, namefile: str | None, model_ws: str | PathLike = '.', silent=False, pause=False, report=False, normal_msg='normal termination', use_async=False, cargs=None) Tuple[bool, List[str]] [source]
Run the model using subprocess.Popen, optionally collecting stdout and printing timestamped progress. Model workspace, namefile, executable to use, and several other options may be configured, and additional command line arguments may also be provided.
- Parameters:
exe_name (str or PathLike) – Executable name or path. If the executable name is provided, the executable must be on the system path. Alternatively, a full path to the executable may be provided.
namefile (str, optional) – Name of the name file of model to run. The name may be None to run models that don’t require a control file (name file)
model_ws (str or PathLike, optional, default '.') – Path to the parent directory of the namefile. (default is the current working directory ‘.’)
silent (boolean, default True) – Whether to suppress model output. (Default is True)
pause (boolean, optional, default False) – Pause and wait for keystroke upon completion. (Default is False)
report (boolean, optional, default False) – Save stdout lines to a list (buff) returned by the method. (Default is False)
normal_msg (str or list) – Termination message used to determine if the model terminated normally. More than one message can be provided using a list. (Default is ‘normal termination’)
use_async (boolean) – Asynchronously read model stdout and report with timestamps. Good for models taking a long time to run, not good for models that run quickly.
cargs (str or list, optional, default None) – Additional command line arguments to pass to the executable. (Default is None)
- Returns:
success (boolean)
buff (list of lines of stdout (empty if report is False))
- which(cmd, mode=1, path=None)[source]
Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file.
mode defaults to os.F_OK | os.X_OK. path defaults to the result of os.environ.get(“PATH”), or can be overridden with a custom search path.