imod.wq.SeawatModel#

class imod.wq.SeawatModel(modelname, check='defer')[source]#

iMOD-WQ SEAWAT model.

modelname#
Type:

str

check#

When to perform model checks {None, “defer”, “eager”}. Defaults to “defer”.

Type:

str, optional

Examples

>>> m = SeawatModel("example")
>>> m["riv"] = River(...)
>>> # ...etc.
>>> m.create_time_discretization(endtime)
>>> m.write()
__init__(modelname, check='defer')[source]#

Methods

__init__(modelname[, check])

clear()

clip(extent[, heads_boundary, ...])

Method to clip the model to a certain extent.

copy()

create_time_discretization(additional_times)

Collect all unique times from model packages and additional given times.

fromkeys(iterable[, value])

get(k[,d])

isel(**dimensions)

items()

keys()

package_check()

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem()

as a 2-tuple; but raise KeyError if D is empty.

render(directory, result_dir, writehelp)

Render the runfile as a string, package by package.

sel(**dimensions)

setdefault(k[,d])

time_discretization(times)

to_netcdf([directory, pattern])

Convenience function to write all model packages to netcdf files.

update([E, ]**F)

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values()

visualize(directory[, cmap, overlays, ...])

write([directory, result_dir, ...])

Writes model input files.