Question
I would like to run multiple 2D overland/sewer/river network/SWMM/water distribution/rainfall runoff/2-way & 3-way coupled simulations in batch mode. This used to be possible with MIKE FLOOD, MIKE URBAN CS/WD, MIKE 11 and MIKE HYDRO River models. How is it possible in MIKE+?
Trick
You have 2 options:
#01 - At the MIKE+ GUI, ‘Simulation’ menu you will see a “Batch simulation” option - see Fig. 1.
Fig. 1 - Access to Batch simulations
This launches the Batch simulation editor which offers the option of running simulation setups in batch mode.
At the editor (see Fig. 2), simply select the simulations that must be included in the batch. The engine reads the simulation in a top to bottom fashion starting from the ones on top. This is of particular interest when running rainfall runoff results which are planned to be plugged into network or 2D simulations as boundary conditions - see Fig. 2.
Fig. 2 - Batch simulation editor
All simulations are batched in this fashion independently of the engine implemented (MIKE 1D or MIKE21 FM). At the end of your batch simulation, a conclusion message will be displayed, including potential errors or simulation fails.
#02 - In a command shell you need to call the MIKE+ executable that enables you to export simulation files and initiate a model simulation without opening the editor, through command lines. It requires that you have prepared the simulation setups beforehand in MIKE+.
The format of the commands for running simulations or exporting simulation files is:
"C:\...\DHI.MIKEPlus.EngineShell.exe" [Options] [File]
where [File] is the path to the *.mupp or *.sqlite file.
The main options are described below:
- -e: Export simulation files (e.g. *.couple and *.m21fm files for a simulation including 2D overland)
- -r: Run the simulation
- -rb: Run the batch simulation
- -id: The simulation ID to be exported or executed (optional). If not specified, the active simulation is used.
Note: You need to adapt the paths to your corresponding MIKE+ installation (typically "C:\Program Files (x86)\DHI\MIKE+\20XX\bin\x64").
Example:
Suppose the .mupp (or .sqlite) file has the following address (adapt to your own path): c:\Path\to\the\mikeplus\file\Model.mupp
Open command line and type the following three lines (modify version number accordingly):
> cd c:\Path\to\the\mikeplus\file\
> set ap="C:\Program Files (x86)\DHI\MIKE+\20XX\bin\x64\DHI.MIKEPlus.EngineShell.exe "
> %ap% Model.mupp
If you only need to run an 1D model you may choose to run the MIKE1D engine (which is the engine behind MIKE+ Rivers and Collection Systems modules) having as argument the .mupp file.
Example:
Suppose the .mupp file has the following address (adapt to your own path): c:\Path\to\the\mikeplus\file\riverModel.mupp
Open command line and type the following three lines (modify version number accordingly):
> cd c:\Path\to\the\mikeplus\file\
> set ap="C:\Program Files (x86)\DHI\MIKE+\20XX\bin\x64\DHI.Mike1D.Application.exe"
> %ap% 1DModel.mupp
At the return of the control to the user, the simulation has finished. Errors (if any) are displayed in the log file created in the same folder. The result files are located where they are specified in the .mupp file.
FURTHER INFORMATION AND USEFUL LINKS
Manuals and User Guides
MIKE+ User Guide, Model Manager