MDU file¶
The MDU file is the main input file for D-Flow FM. It is represented by the classes below.
Model¶
ExternalForcing (INIBasedModel)
pydantic-model
¶
The [External Forcing]
section in an MDU file.
This model is typically referenced under FMModel.external_forcing
.
All lowercased attributes match with the [External Forcing] input as described in UM Sec.A.
is_intermediate_link(self) -> bool
¶
Generic attribute for models that have children fields that could contain files.
Source code in hydrolib/core/io/mdu/models.py
def is_intermediate_link(self) -> bool:
return True
FMModel (INIModel)
pydantic-model
¶
The overall FM model that contains the contents of the toplevel MDU file.
All lowercased attributes match with the supported "[section]"s as described in UM Sec.A.
Each of these class attributes refers to an underlying model class for that particular section.
Geometry (INIBasedModel)
pydantic-model
¶
The [Geometry]
section in an MDU file.
This model is typically referenced under FMModel.geometry
.
All lowercased attributes match with the [Geometry] input as described in UM Sec.A.
is_intermediate_link(self) -> bool
¶
Generic attribute for models that have children fields that could contain files.
Source code in hydrolib/core/io/mdu/models.py
def is_intermediate_link(self) -> bool:
return True
Hydrology (INIBasedModel)
pydantic-model
¶
Numerics (INIBasedModel)
pydantic-model
¶
Output (INIBasedModel)
pydantic-model
¶
The [Output]
section in an MDU file.
This model is typically referenced under FMModel.output
.
All lowercased attributes match with the [Output] input as described in UM Sec.A.
is_intermediate_link(self) -> bool
¶
Generic attribute for models that have children fields that could contain files.
Source code in hydrolib/core/io/mdu/models.py
def is_intermediate_link(self) -> bool:
# TODO set to True once we replace Paths with FileModels
return False