Controlling Your Simulation¶
Controlling your simulation is about working with your model such that the simulation runs in a reasonable length of time.
1. Model limits¶
Although, there are no physical limits to the size of your model, there are practical limits and hardware limits.
The practical limits are generally related to run time. We all want the model to be a little bit bigger or more detailed. However, that little extra detail or slightly smaller grid size can quickly lead to long run times.
The physical limits are generally related to memory size. If you model requires more memory than is physically installed on the computer, then the computer will start to swap data to the hard disk. This will vastly slow down your simulation. The section, Hardware requirements, outlines some hardware considerations when using MIKE SHE.
If your model reaches the practical or physical limits of your computer, then may we suggest the following:
- Critically evaluate your model to see if you really need such a large, complex model. For example, you may be able to reduce the number of UZ elements or the slightly increase the grid size.
- Do a rough calibration with a smaller model first. The model independent structure of MIKE SHE makes it reasonable to refine your model later with a minimum of effort. For example, you can use Gravity flow instead of Richards equation, double the grid spacing, or shorten the calibration period, during the initial calibration and switch back to the original during the final calibration. You might even be surprised that the rougher model is actually good enough.
2. Speeding up your simulation¶
In most cases, the best way to speed up your model is to make it simpler. You should look very carefully at your model and ask yourself the following questions, for example:
- Do you really need a fine discretisation during calibration? A coarser grid may allow you to do many more calibration runs. Then when the model is calibrated, you can refine the grid for the final simulations - but remember to check you calibration first.
- Do you really need the Richards equation for unsaturated flow? For regional models, the two layer water balance method may be sufficient, which is very fast. The gravity flow method is also, typically 2-5 times faster than the Richards equation method. Again, during the calibration, it can be a good idea to use one of the simpler methods and the more detailed method for the final simulations. However, switching between methods will likely invalidate your UZ calibration, and require additional calibration adjustments.
- Is your river model simulation too detailed? If your river cross-sections are too close together, the river model will run with a very short time step. Regional river models can often be run with the simple routing methods, which are very fast.
If your simulation is still too slow, then several sections in the manual might be of help. In particular,
- Hardware requirements contains information on different hardware configurations,
- Controlling the Time Steps contains information on how the dynamic time step control works,
- Overland Flow Performance contains information on how to improve the efficiency of the overland flow solution, which can be very time consuming if you have permanently ponded water,
- Parallelization of MIKE SHE contains information on the using MIKE SHE with multi-core PCs and 64-bit operating systems.
3. Controlling the Time Steps¶
Each of the main hydrologic components in MIKE SHE run with independent time steps. Although, the time step control is automatically controlled, whenever possible, MIKE SHE will run with the maximum allowed time steps.
The component time steps are independent, but they must meet to exchange flows, which leads to some restrictions on the specification of the maximum allowed time steps.
- If the river model is running with a constant time step, then the Max allowed Overland (OL) time step must be a multiple of the river constant time step. If the river model is running with a variable time step, then the actual OL time step will be truncated to match up with the nearest river time step.
- The Max allowed UZ time step must be an even multiple of the Max allowed OL time step, and
- The Max allowed SZ time step must be an even multiple of the Max allowed UZ time step.
Thus, the overland time step is always less than or equal to the UZ time step and the UZ time step is always less than or equal to the SZ time step.
If you are using the implicit solver for overland flow, then a maximum OL time step equal to the UZ time step often works. However, if you are using the explicit solver for overland flow, then a much smaller maximum time step is necessary, such as the default value of 0.5 hours.
If the unsaturated zone is included in your simulation and you are using the Richards equation or Gravity Flow methods, then the maximum UZ time step is typically around 2 hours. Otherwise, a maximum time step equal to the SZ time step often works.
Groundwater levels react much slower than the other flow components. So, a maximum SZ time step of 24 or 48 hours is typical, unless your model is a local-scale model with rapid groundwater-surface water reactions.
Precipitation-dependent time step control¶
Periods of heavy rainfall can lead to numerical instabilities if the time step is too long. To reduce the numerical instabilities, a time step control has been introduced on the precipitation and infiltration components. You will notice the effect of these factor during the simulation by suddenly seeing very small-time steps during storm events.
The parameters controlling the time step adjustment are in the Time Step Control dialogue. In particular, the following three parameters control the time step during rainfall events:
- Max precipitation depth per time step If the total amount of precipitation [mm] in the current time step exceeds this amount, the time step will be reduced by the increment rate. Then the precipitation time series will be resampled to see if the max precipitation depth criteria has been met. If it has not been met, the process will be repeated with progressively smaller time steps until the precipitation criteria is satisfied. Multiple sampling is important in the case where the precipitation time series is more detailed than the time step length. However, the criteria can lead to very short time steps during short term high intensity events. For example, if your model is running with maximum time steps of say 6 hours, but your precipitation time series is one hour, a high intensity one hour event could lead to time steps of a few minutes during that one-hour event.
- Max infiltration amount per time step If the total amount of infiltration due to ponded water [mm] in the current time step exceeds this amount, the time step will be reduced by the increment rate. Then the infiltration will be recalculated. If the infiltration criteria is still not met, the infiltration will be recalculated with progressively smaller time steps until the infiltration criteria is satisfied.
If your model does not include the unsaturated zone, or if you are using the 2-Layer water balance method, then you can set these conditions up by a factor of 10 or more. However, if you are using the Richards equation method, then you may have to reduce these factors to achieve a stable solution.
- Input precipitation rate requiring its own time step If the precipitation rate [mm/hr] in the precipitation time series is greater than this amount, then the simulation will break at the precipitation time series measurement times. This option is added so that measured short term rainfall events are captured in the model.
For example, assume you have hourly rainfall data and 6-hour time steps. If an intense rainfall event lasting for only one hour was observed 3 hours after the start of the time step, then MIKE SHE would automatically break its time stepping into hourly time steps during this event.
Thus, instead of a 6-hour time step, your time steps during this period would be: 3 hours, 1 hour, and 2 hours. This can also have an impact on your time stepping, if you have intense rainfall and your precipitation measurements do not coincide with your storing time steps. In this case, you may see occasional small time steps when MIKE SHE catches up with the storing time step.
Actual time step for the different components¶
As outlined above the overland time step is always less than or equal to the UZ time step and the UZ time step is always less than or equal to the SZ time step. However, the exchanges are only made at a common time step boundary. This means that if one of the time steps is changed, then all of the time steps must change accordingly. To ensure that the time steps always meet, the initial ratios in the maximum time steps specified in this dialogue are maintained.
After a reduction in time step, the subsequent time step will be increased by

Equation 3.1
until the maximum allowed time step is reached.
Relationship to Storing Time Steps¶
The Storing Time Step specified in the Detailed WM time series output dialogue, must also match up with maximum time steps. Thus,
- The OL storing time step must be an integer multiple of the Max UZ time step,
- The UZ storing time step must be an integer multiple of the Max UZ time step,
- The SZ storing time step must be an integer multiple of the Max SZ time step,
- The SZ Flow storing time step must be an integer multiple of the Max SZ time step, and
- The Hot start storing time step must be an integer multiple of the maximum of all the storing time steps (usually the SZ Flow storing time step)
For example, if the Maximum allowed SZ time step is 24 hours, then the SZ Storing Time Step can only be a multiple of 24 hours (i.e. 24, 48, 72 hours, etc.)