This repository contains a number of examples of Plugins and Scripts for MIKE 1D.
Since MIKE 1D is an active code base, its API changes. The master branch contains example code for the most recent release of MIKE software. Code for older releases can be found in here and in sub-branches.
- DHI.Mike1D.Examples: Various C# examples of working with MIKE 1D, plugins and scripts.
- data: A bit of test data to play around with. Used by the examples in DHI.Mike1D.Examples.
- m1daExamples: Examples of how to build up a MIKE 1D Additional parameter file, to automatically load and configure plugins.
An introduction to the MIKE 1D API can be found on:
http://docs.mikepoweredbydhi.com/engine_libraries/mike1d/mike1d_api/
And an overview of the entire MIKE 1D engine and API can be found here:
A description of how to use a script with a MIKE+ installation can be found in this README:
DHI.Mike1D.Examples/Scripts/Readme.md
And a specific introduction to calculating bed resistance with a script is provided here as a replacement of the Bed Resistance Toolbox available for MIKE 11 engine:
DHI.Mike1D.Examples/Scripts/BedResistanceToolbox.md
For interacting with MIKE 1D simulations and results using Python, we refer to the MIKE+Py and MIKE IO 1D Python packages.
MIKE+Py is a Python package for interacting with MIKE+ model files and automating simulation execution:
https://github.com/DHI/mikepluspy
To interact with input and output files in Python the MIKE IO 1D package can be found here: