Setting Up Adaptive Time-Stepping
The Adaptive Time-Step model automates the determination of time-step sizes. You define time-step providers that specify the criteria to achieve suitable time-steps for your particular application, and set the appropriate limits, such as minimum and maximum time-step values. The Adaptive Time-Step model uses the specified criteria to determine the appropriate time-step sizes at each stage of the simulation.
To set up adaptive time-stepping:
- In the [physics continuum], select the Adaptive Time-Step model from the Optional Models group box.
Select the time-step providers that you want to use for your application. Only the time-step providers that are relevant to the currently-activated models are available. You can use any combination of the available time-step providers. At any given point, the simulation uses the smallest time-step from the enabled time-step providers.
-
Right-click the
node and select
.
For descriptions of the available time-step providers, see Adaptive Time-Stepping.The corresponding node is added under the Time-Step Providers node.
Define the time-step providers that you want to use in your simulation. For each time-step provider, you can either enable the provider for the entire simulation, or enable it for a specified time range. You can disable any providers that you do not want to use in a particular simulation.
-
Select the
node and set
Enable/Disable to either:
-
Enabled
The time-step provider is enabled for the entire simulation.
-
Disabled
The time-step provider is not used in the simulation.
-
Time Range
The time-step provider is enabled for a specified time range.
In the Enabled Time Range child node, set the appropriate Start Time and Stop Time.
-
-
Set the time-step provider properties that are relevant to your simulation.
Each time-step provider has its own set of properties. For details of each specific time-step provider, and a description of its properties, follow the appropriate link in the list of time-step providers. See Adaptive Time-Stepping.
- To set the maximum time-step, select the node or the node (whichever is relevant) and specify the Time-Step.
-
Select the
node and set the following properties:
Property Description Initial Time-Step Option Specifies the initial time-step size at t = 0.
By default, the initial time-step is derived from the enabled time-step providers in each continuum.
Alternatively, you can specify a particular time-step size, or use the specified minimum or maximum values.
Minimum Time-Step The lower bound for the adaptive time-step size. The default value is 0.0 s.
Time-Step Change Factor Bounds Option Optional
If the enabled time-step providers have large variations in successive step size proposals, you can set this property to specify a lower bound and an upper bound for the change factor (that is, the ratio) of successive time-steps. A proposed time-step size is then restricted to the specified range.
Checkpoint Times Optional
A list of physical times (in seconds) that are to be reached exactly by the adaptive time-stepping. The specified checkpoint times are reached gradually over the course of a few time-steps.
For more information, see Adaptive Time-Step Solver Properties.
Adaptive time-stepping can predict small time-steps due to bad quality cells. These small time-steps can increase the runtime of the simulation unnecessarily.
-
If you want to exclude specific cells from the time-step prediction:
- Select the node and activate Enable Filtering.
- Select the node and specify a field function that identifies certain cells, for example, Bad Cell Indicator.
All suitable time-step providers ignore contributions from the cells that are identified by the field function.
-
(Optional) If you want to evaluate the impact of parameter changes on the
time-step proposal:
- Right-click the Adaptive Time-Step solver node and select Refresh Time-Step Proposals.
- Open a scalar scene with the time-step proposal field functions or use the solver diagnostics to examine the updated time-step.