Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


The DIMR-software is used to run a SOBEK 3 model in Delft-FEWS. In the General Adapter of Delft-FEWS we refer to the different components of the dimr-tool. This wiki will describe what you need to do to convert a SOBEK3 model to a dimr-model and how to set-up the different components of your Delft-FEWS configuration. Read the steps in this guide to implement your SOBEK 3 model in Delft-FEWS using the dimr-software.

Table of Contents

How to set-up a

...

DIMR Modules folder?

The Delft-FEWS DIMR-adapter requires a fixed folder structure:

...

The folders Input and Logs will be filled when you run the model. 

Make Delft-FEWS configuration files to run the model.

Step 5: create the ModuleDataSetFiles

Delft-FEWS can distribute model files to FSS machines. It is recommended to zip the model files and put it in the Delft-FEWS configuration.

  • In the Config\ModuleDataSetFiles create a zip file for the (update) model run. In our example the name for this zip file is Walrus_Hydr_Sobek3_Update.zip
  • The zip file for the ModuleDataSetFile contains the following information:
    • .\dlfow1d\.*.
    • .\rtc\.*.
    • ovd_dv.xml
  • As you might have notice this is the content of the dimr_model file that was created in step 1B. 

...

 

How to generate ColdStateFiles?

Info
titleColdStateFiles

Delft-FEWS will need a state file to be able to run the SOBEK model. In order to generate the first state files of the SOBEK model it is recommended to do a stand-alone run of the DIMR/SOBEK from the command line. 

  • Go to FEWS_YourSystem / Modules / NewFolder / dimr_model / dflow1d and open

...

  • the flow model 1d.md1d

...

  •  file.
  • Go to option WriteRestart and make sure to set this setting on true. The model will now generate its state files. 

Image Modified

  • The SOBEK 3 model has default timeseries. We can thus do a stand-alone run of the model without providing the model with data.
  • Open your command line window from the dimr_model folder. This is your working directory. Run the run_dimr.bat and give the dimr_config file as an argument. This file was created in step 1B. In the example below this is the ovd_dv.xml file.
  • Run the model.

Image Modified

  • After the model has run succesfully it is possible to craete a state-file for Delft-FEWS.
  • In the Config\ColdStateFiles\ create a zip for the cold state files. In our example this is the Walrus_Hydr_Sobek3_Update Default.zip
  • The zip file for the ColdState files contains the following information
    • Walrus_Hydr_Sobek3_Update Default \ dflow1d \ sobek.rda
    • Walrus_Hydr_Sobek3_Update Default \ dflow1d \ sobek.rdf
    • Walrus_Hydr_Sobek3_Update Default \ rtc \ state_import.xml
  • When you analyse the model results you will find a sobek.nda and sobek.ndf file in

...

  • the dimr_model \ dflow1d

...

  •  folder and a state_export.xml in

...

  • the dimr_model \ rtc

...

  •  folder. You can use these files. Make sure to rename the extension of these files. 

 

...

What information should I put in the ModuleDataSetFiles?

Info
titleModuleDataSetFiles

Delft-FEWS can distribute model files to FSS machines. It is recommended to zip the model files and put it in the Delft-FEWS configuration.

  • In the Config\ModuleDataSetFiles create a zip file for the (update) model run. In our example the name for this zip file is Walrus_Hydr_Sobek3_Update.zip
  • The zip file for the ModuleDataSetFile contains the following information:
    • .\dlfow1d\.*.
    • .\rtc\.*.
    • ovd_dv.xml
  • As you might have notice this is the content of the dimr_model file created previously. 



How do I get hold of the import and export timeseries of the SOBEK 3 / DIMR model?

 

How to create

...

the General Adapter Module?

An example of the general section of the general adapter can be found below.

...

Info
titleGeneral section of Module
Image RemovedNote that the rootDir corresponds to the folder that was created in Step 1. The workDir and exportDir refer to sub-folders of the dimr model.

...