imod.mf6.GroundwaterFlowModel.get_diskey#

GroundwaterFlowModel.get_diskey() str#

Get discretization key from the model. The key is the name of the package, which is user defined. If multiple discretizations are found, an error is raised.

Returns:

Key of the discretization package in the model.

Return type:

str

Examples

>>> model = Modflow6Model()
>>> model["dis"] = StructuredDiscretization(...)
>>> model.get_diskey() # returns "dis"