The MShePy module, which enables the use of Python scripting with MIKE SHE. This includes:
1. running Python plugins during a MIKE SHE simulation;
2. running MIKE SHE simulations by Python scripts.
In the first case, the user can add plugins to a MIKE SHE model. A Plugin consists of a collection of code functions in Python performing custom functionalities. During preprocessing, the Python plugins are attached to the model and once the simulation is started, functions (or "slots") in the plugins will be connected to signals (e.g. before a time step). Signals will be emitted by MIKE SHE and trigger execution of one or more custom functions defined in the plugin. Once the function has finished to perform arbitrary tasks (e.g. exchange data with MIKE SHE), MIKE SHE will continue the normal execution.
Related Items:
· Python Scripting in MIKE SHE (V1 p. 379)