Running MIKE SHE water movement
Three functions are available in the MShePy module to run a timestep in the MIKE SHE model:
· MShePy.wm.runAll() which performs the entire simulation. When using this method you must not initialize or terminate the simulation, differently from all other functions;
· MShePy.wm.performTimeStep() which performs one timestep
· MShePy.wm.runToTime(time) which performs timesteps until reaching the simulation time specified as an argument (a datetime.datetime object). Be aware that source and sinks assigned from the Python script (including parameters such as a fixed hydraulic head which are converted to source and sinks in the MIKE SHE engine) will remain active for all time steps taken during the execution of this method and be reset only right before the method returns.
All MShePy functions can be called to retrieve and assign variable values in MIKE SHE during the simulation.