Skip to content

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.

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.

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

The [Hydrology] section in an MDU file.

This model is typically referenced under FMModel.hydrology.

All lowercased attributes match with the [Hydrology] input as described in UM Sec.A.

Numerics (INIBasedModel) pydantic-model

The [Numerics] section in an MDU file.

This model is typically referenced under FMModel.numerics.

All lowercased attributes match with the [Numerics] input as described in UM Sec.A.

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.

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

Physics (INIBasedModel) pydantic-model

The [Physics] section in an MDU file.

This model is typically referenced under FMModel.physics.

All lowercased attributes match with the [Physics] input as described in UM Sec.A.

Restart (INIBasedModel) pydantic-model

The [Restart] section in an MDU file.

This model is typically referenced under FMModel.restart.

All lowercased attributes match with the [Restart] input as described in UM Sec.A.

Time (INIBasedModel) pydantic-model

The [Time] section in an MDU file.

This model is typically referenced under FMModel.time.

All lowercased attributes match with the [Time] input as described in UM Sec.A.

Trachytopes (INIBasedModel) pydantic-model

The [Trachytopes] section in an MDU file.

This model is typically referenced under FMModel.trachytopes.

All lowercased attributes match with the [Trachytopes] input as described in UM Sec.A.

VolumeTables (INIBasedModel) pydantic-model

The [VolumeTables] section in an MDU file.

This model is typically referenced under FMModel.volumetables.

All lowercased attributes match with the [VolumeTables] input as described in UM Sec.A.

Waves (INIBasedModel) pydantic-model

The [Waves] section in an MDU file.

This model is typically referenced under FMModel.waves.

All lowercased attributes match with the [Waves] input as described in UM Sec.A.

Wind (INIBasedModel) pydantic-model

The [Wind] section in an MDU file.

This model is typically referenced under FMModel.wind.

All lowercased attributes match with the [Wind] input as described in UM Sec.A.

Back to top