MonitorsA step control uses one or more monitors as input. A monitor tracks the value of an output variable during a simulation. For more information about monitors, see About Monitors. If you add multiple monitors to a step control, the step control prompts the app to perform its prescribed action if the value of any monitor's output variable reaches its associated threshold. ActionsWhen the value of any monitor's output variable reaches its associated threshold, the step control prompts the app to perform one of several types of actions that you prescribe. The action is either:
When you define a step control that prompts the app to end the current step or simulation, the app ends the current step or analysis case and then continues to the next step or analysis case, if any, respectively. These actions reduce the simulation's run time while still achieving satisfactory results. However, when you define a step control that prompts that app to continue the current step, the app does not interfere with the current step or analysis case. At a glance, it might seem that prompting the app to continue the current step offers no utility, but upon closer inspection, this action lets you enable increment refinement (see Increment Refinement Overview), as do the other two actions. A step control that both continues the current step and enables increment refinement can obtain more accurate simulation results without ending the step or analysis case. ThresholdsIf you create a step control whose action is to end the current step or simulation, you must specify an acceptable threshold for each monitor that you assign to this step control. A threshold is the value of the monitor's output variable beyond which the app completes the action that you prescribed. Until the value of any monitor's output variable exceeds this threshold, the app continues to run the simulation. When you enter a threshold value, you must also specify its type. The threshold type defines the range of values (relative to the threshold value) for which the app continues to run the simulation versus the range of values for which the step control prompts the app to perform its prescribed action. There are several threshold types, as described below.
Increment Refinement OverviewThe app shortens the duration of the current step's time increment, given the value of a monitor's output variable falls within a range that you define within the step control itself. This process is known as increment refinement. For a step control whose action is to end the current step or simulation, increment refinement adds more increments to the simulation, which results in a more accurate simulation. If the value of the monitor's output variable reaches its threshold, the additional increments also serve to reduce the amount of overshoot past the monitor's threshold. While the additional increments improve accuracy, they can result in a longer run time. Considering that the step control likely ends the current step or simulation early, this run time is likely still shorter than the run time achieved when using no step control at all. For a step control whose action is to continue the current step, increment refinement adds more increments to the simulation, which results in a more accurate simulation. While the additional increments improve accuracy, they can result in a longer run time. There are two methods for shortening the time increments.
If you enable increment refinement for a step control whose action is to end the current step or simulation, you can choose either method; whereas, if you enable increment refinement for a step control whose action is to continue the current step, you can only prompt the app to use a fixed time increment that you specify. If you prompt the app to use a fixed time increment, be sure to specify a time increment that is shorter than the time increment of the current step. If you prompt the app to use a fixed time increment and the step control has multiple monitors associated with it (each with their own fixed time increment), the app uses the time increment that has the shortest duration to perform increment refinement. Increment Refinement RangeThe increment refinement range in which the app shortens the duration of the time increment. This range is defined by two boundaries, which differ in nature depending on the step control's prescribed action. For a step control whose action is to end the current step or simulation, the increment refinement range is defined by a starting sensor value and the monitor's threshold. The starting sensor value is the value of the monitor's output variable beyond which the app adjusts the time incrementation scheme. The monitor's threshold is the value of the monitor's output variable beyond which the app completes the prescribed action. For more information about thresholds, see Thresholds. For a step control whose action is to continue the current step, the increment refinement range is defined by a starting sensor value and an ending sensor value. The ending sensor value is the value beyond which the app reverts to the current step's time incrementation scheme. The ending sensor value must be greater than or equal to the sensor starting value. Unlike a step control whose action is to end the current step or analysis case, there is no threshold because the intent is to continue the current step, not end it. Increment Refinement ExamplesWhen you enable increment refinement, one of several distinct scenarios that can occur, depending on the prescribed action and threshold type (see Thresholds). The figures below illustrate each scenario. In these figures, the solid line represents the current step's time incrementation scheme, while the dotted line represents the time incrementation scheme propounded by increment refinement. Each figure has up to three regions, defined as follows:
LimitationsThe table below lists the types of steps that support step controls, and it lists whether these steps support the different methods of increment refinement.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||