imod.flow.ImodflowModel#
- class imod.flow.ImodflowModel(modelname, check='defer')[source]#
Class representing iMODFLOW model input. Running it requires iMOD5.
- modelname#
When to perform model checks {None, “defer”, “eager”}. Defaults to “defer”.
- Type:
str check : str, optional
Examples
>>> m = Imodflow("example") >>> m["riv"] = River(...) >>> # ...etc. >>> m.create_time_discretization(endtime) >>> m.write()
Methods
__init__
(modelname[, check])clear
()copy
()create_time_discretization
(additional_times)Collect all unique times from model packages and additional given times.
fromkeys
(iterable[, value])get
(k[,d])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[, render_projectfile])Render the runfile as a string, package by package.
setdefault
(k[,d])time_discretization
(times)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
()write
([directory, result_dir, ...])Writes model input files.