

D.1.1.1 Guidance for numerical model usage
Modelling software & data requirements
One objective of the TRANSFER Danube project is to develop innovative tools to identify agricultural areas in the Danube Region that are vulnerable to climate change. Developing a deterministic 2D numerical model that incorporates crop types, soil composition, tillage and rainfall events will enable scenario-based forecasts of precipitation-induced soil erosion. IWS (PP4-IWS) builds and calibrates 2D numerical models for pilot areas in Germany. Upon data availability, the models can be adapted and applied to the Project Partner’s pilot areas across the Danube Region.
Deliverable D.1.1.1 provides general guidance on the use of 2D numerical models for all project partners:
Chapter 2 “Prerequisites” outlines the necessary hardware, software and input data requirements. Chapter 3 “Pre-processing” describes the preparation of input files, mesh generation and the setup of the Telemac steering file. Chapter 4 “Numerical Simulations” focusses on compiling the mode. Chapter 5 “Post-processing” details the export and visualization of results. Chapter 6 “Calibration” outlines how to perform model calibration. Finally, the document provides references to further literature and digital resources.
This deliverable is intended to guide Project Partners to install relevant software, specify the necessary input data and run numerical simulations. As data collection in these pilot areas progresses, various modelling approaches are tested and refined. PP4-IWS provides guidance and additional files over time upon request, enabling all partners to implement their models effectively. This process will help ensure that the adopted modelling methods are robust and adaptable to the diverse conditions across project areas in the Danube region.
Before starting a numerical simulation make sure that all prerequisites are at hand as specified in this chapter. If problems arise during data procurement or installation of recommended software, contact PP4-IWS for support.
2D hydro-morphodynamic numerical modelling solves the depth-averaged shallow-water (Saint-Venant) equations coupled with an Exner-type sediment-continuity equation on a horizontal grid, so it predicts flow velocities, water depths and topographic change simultaneously. Its aims are to analyse and design hydraulic systems, quantify sediment transport, and forecast river or floodplain evolution. When rainfall is prescribed as a distributed input, the model converts excess rainfall to overland flow, computes the shear stress on the soil surface, and links it to detachment-transport-deposition formulae, thus reproducing sheet, rill and gully erosion and sediment delivery during storm runoff. These capabilities let us anticipate critical scour or aggradation hotspots and test mitigation options. To reproduce key processes related to specific crop types and tillage, a 2D hydro-morphodynamic model relies on accurate and high-resolution input data for pilot areas. The data must be carefully acquired and pre-processed into formats suitable for the modelling framework. Inadequately low resolution or incomplete datasets can lead to substantial errors during simulation or render the results unusable. For numerical modelling of the agricultural pilot areas, the following data is required:
Numerical modelling can be computationally intensive and benefits from up-to-date hardware to ensure efficient performance. The number and clock frequency of CPUs as well as the available RAM are decisive for computing time. While the simulations can be run with the following minimum specifications, increased computational resources will considerably reduce computing time:
PP4-IWS provides all necessary modelling software ready-to-use within a virtual machine that can be downloaded from the project’s file sharing system in the form of an ova-file for use with Oracle’s VirtualBox (freely available software). Additionally, for pre-processing and post-processing, Project Partners need to install the data preparation software Blue KenueTM and the geographic information system software QGIS.
Hydraulic modellers use Blue KenueTM published by the National Research Council Canada for data preparation.
To install Blue KenueTM download the installation file for your system here (upon request) or directly from
https://chyms.nrc.gc.ca (with user name “Public.User” and password “anonymous”). The upon-request options
requires filling in a form to gain immediate access after sending it. Follow the installation wizard to install Blue
KenueTM on your system. Note, that there is no native version of Blue KenueTM for Linux. However, the 32-bit
version can be installed using Wine.
To install QGIS download the installation file for your system here. Follow the installation wizard to install QGIS on your system. If you are working on a Linux, it is recommended to use the Flatpak installation. More information for installing QGIS on Linux can be found here.
A virtual machine (VM) is a software-based replica of a physical computer that runs its own operating system and applications while sharing CPU, memory and other hardware resources with other VMs on the same host. VirtualBox is Oracle’s free, open-source, cross-platform virtualization tool that lets users create, configure and run VMs on Windows, macOS, Linux and other hosts, by design, for development, testing or secure isolation.
To install VirtualBox download the installation file for your system from here. Follow the installation wizard to install VirtualBox on your system (requires administrator rights). After installing VirtualBox, import the provided VM (.ova file) into your installation of VirtualBox:
The VM boots a Debian Linux system in which the necessary software is already installed. The operating system user is “danube” and the password is “transfer”.
To share files and data between your hardware computer (host) and the VM (guest) run through the following steps:
Numerical simulations in the TRANSFER Danube project employ the TELEMAC-MASCARET (Telemac) open-source numerical modelling suite, specifically the modules Telemac-2D and GAIA, to simulate erosion in selected pilot areas. Telemac-2D includes various solvers for free-surface flow simulations while GAIA handles sediment transport modelling. Coupling Telemac-2D with GAIA enables integrated hydro-morphodynamic simulations.
Telemac is already installed on the provided VM. To locate the Telemac installation, navigate to the Home folder using the Linux file application.
For a simulation with Telemac, it is recommended to create a dedicated folder for each study area within the Telemac installation directory. This folder is already created in the Telemac installation on the VM under “simulations” as “pilot-area”. This folder needs to contain all required input files, including:
The steering files, the reference file and their documentation will be provided separately, after development for the pilot areas in Germany. They will need to be put in the “pilot-area” folder as “danube.cas” and “danubeGAIA.cas”. Share the created and provided files from your computer with the VM via the previously connected shared folder.
Mesh generation is a necessary step for discretising the digital elevation model (DEM) into spatially discrete cells suitable for numerical computations. If the DEM is typically in raster format (e.g., GeoTIFF), and it must first be converted into a point cloud format (e.g., .xyz) using QGIS:
The resulting .xyz file contains no-data points with to fill void spaces in the rectangular image of the GeoTIFF (which QGIS recognised as no-data pixels). To eliminate the unnecessary no-data points, open the *.xyz file in spreadsheet software, and sort by Z values (largest to smallest). Then delete all rows with the above-identified no-data value (-9999) as Z value. Save the .xyz file and close the spreadsheet software.
To work with the .xyz file in BlueKenueTM, import it first:


Then start the meshing process by drawing a model boundary line.

To start with the SELAFIN object creation, you need BlueKenueTM with the .xyz file and the “T3-Mesh” loaded. You can then create the SELAFIN object by:
As the created SELAFIN object lacks elevation data, you should add it now:

Furthermore, roughness needs to defined for the fields/plots so that the roughness’ influence on erosion processes can be taken into account. Here, chose to work with Manning’s roughness nm. for easy understanding: higher values for Manning’s nm means higher roughness. If the fields/plots do not have uniform roughness, the roughness is defined by allocating roughness zones:
TELEMAC needs to know how to handle the outer edges of the mesh, and in this special use case, also potentially internal mesh nodes where discharge originates in the form of (intense) rainfall per time. These source nodes, together with the nodes through which water flows out of the model (i.e. the nodes at the lowest elevation edges), represent the “liquid boundaries” of the mesh. These exist alongside the outer-edge mesh nodes through which no water flows (“solid boundaries”). For this purpose, a .cli boundary file needs to be created using BlueKenueTM. The first step towards the .cli file is to create an object that constitutes all outer boundary nodes of the mesh:
Next, liquid boundaries need to be defined by allocating water input and output nodes. The default type of boundary is “closed boundary (wall)”. Therefore, change the boundary type of both, input and output boundaries:

A default steering file (.cas) is provided by PP4-IWS during the project, based on the German pilot areas. To tailor the steering file for their pilot areas, other PPs can adjust the following keywords in the steering file by opening it in a text editor:

The numerical modelling chapter gives instructions on how to run the numerical modelling system and gain insights from the simulation results (post-processing).
All input files need to be correctly stored in the dedicated simulation folder “pilot-area” on the VM, as defined in the pre-processing chapter. Then navigate (“cd”) to the Telemac configuration folder and load the Telemac environment:

Navigate to the dedicated simulation folder and run the steering file:

Depending on the provided computational resources (CPU, RAM), the simulation can take several hours or even days, before the end of a successful computation is indicated with the line “My work is done” in Linux Terminal (i.e. within the VirtualBox).
The result files will be saved in the simulation folder as “rdanube.slf” and “rdanubeGAIA.slf”. They can now be opened in QGIS for visualization.
Open QGIS, create a new project and refer to the relevant section for guidance on working with mesh files, background maps, scrolling through timesteps, and exporting graphics.
To load a Selafin object into QGIS:
To add an OpendStreetMap backdrop to QGIS:

Mesh layers are automatically “temporal”. You can view different timesteps by adjusting viewing options:
The rainfall simulations represent unsteady runs that export many timesteps, which enable to explore different stages of a rainfall event and different parameters.

The Telemac output files contain results for several parameters. For analysing parameters, switch between them:
The simulated erosion / deposition rates can be explored by analysing the “bottom elevation” parameter. If the simulated bottom elevation at the end of the simulation does not match observed erosion, roughness coefficients need to be adjusted. This roughness correction is expected, as crop type, growth stage and tillage affect how much the surface runoff slows down as a result of these parameters. If the simulated erosion is too high, roughness should be increased to slow down the flow and therefore its capacity of eroding sediment. Vice versa, if the simulated erosion is too low, roughness should be reduced. Moreover, in the case of cohesive sediment, cohesion properties might need to be changed, as those can substantially affect erosion. This is why calibration also is a function of soil types, beyond crop type, growth stage and tillage. Finally, report the optimum values for roughness and cohesiveness to the project table prepared by PP4-IWS.
For further results analysis and result communication, save your simulated parameters individually as high-resolution figures:
Calibration involves the step-wise adaptation of model input parameters to yield a possibly best (statistic) fit of modelled and measured data. In the process of model calibration, only one parameter should be modified at a time by 10 to 20-% deviations from its default value. In this project, the calibration parameter is roughness that can be expressed in term of beginning Manning’s nm or equivalent sand roughness ks. The higher the roughness parameter, the higher is the friction induced by the terrain on the flow. Thus, high roughness means lower flow velocity and less erosion; on the contrary, low roughness means higher flow velocity and more erosion. For instance, if in the beginning Manning’s nm= 0.03, the calibration may test for Manning’s nm= 0.033 (if the model overpredicts erosion) or Manning’s nm= 0.027 (if the model underpredicts erosion), ultimately to find out which value for Manning’s nm brings the model results closest to observations, as a function of tillage, crop type and crop growth.
The modelled erosion rates can be compared to the difference between two DEMs of the project area: the base DEM that is used as input DEM for modelling and an additional DEM that is measured in the project area after observing the (modelled) extreme event. The difference between the two DEMs is called “DEM of Differences – DoD”. The numerical model initially runs with an initial guess for the roughness value (typically 0.05 for agricultural fields with shallow overflows) to simulate an erosive rainfall event that caused the terrain to change from the first to the second DEM by dz defined in the DoD. Thus, roughness is adjusted, that is, calibrated to match the observed and modelled DoD. The target accuracy is that modelled and observed DoDs have no more than 20% difference, when calculating the

where subscript i refers to the dz-pixel under consideration and 𝑛 is the total number of pixels of the DoD raster.
The calculation of accuracy can be performed by first extracting the modelled DoD from the Telemac output mesh (.slf) in GeoTIFF format (see Figure 9), and then using raster calculator functions (“RasterRaster Calculator…”) in QGIS (see Figure 10).
To calibrate the roughness value, modify the friction coefficients in the Telemac steering file (.cas), so that the 𝐴𝑐𝑐𝑢𝑟𝑎𝑐𝑦 is optimised. Report the friction (roughness) coefficients, so that PP4-IWS can generate calibration tables with specific friction (roughness) coefficients for tillage methods and crop types.


This chapter gives an overview of the resources provided by IWS for numerical modelling and provides resources for further insights.
IWS-PP4 currently provides three files on the Project’s Google Drive for Project Partners to start the numerical modelling process for their pilot areas:
The following files are provided successively on the project’s Google Drive:
Telemac2D manual: https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/blob/v9.0.0/documentation/telemac2d/user/telemac2d_user_9.0.pdf
GAIA reference manual: https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/raw/v9.0.0/documentation/gaia/reference/gaia_reference_9.0.pdf
Hydro-Informatics.com: https://hydro-informatics.com
