real_time#

SimulationProfile.real_time(num_passes: int = None, max_time: float = None) timedelta#

Total real time for adaptive refinement or transient simulations.

The total real time is calculated as the sum of execution time from all solution process steps. By default, all adaptive passes (for adaptive refinement) or all time steps are included in the result. In contrast to “CPU time”, the “Real time” represents the actual compute time for processes when they are distributed among multiple cores.

Parameters:
num_passesint, optional

Only valid when adaptive refinement is used. Number of passes to include in the time calculation. If nothing is passed, then all passes will be used.

max_timefloat

Maximum time step value in seconds to be considered for the sum of compute time. For example, if the total simulated transient time is 100 ms, then max_time=0.05 will include only time steps up to 500 ms. If nothing is passed, then all time steps will be used.

Returns:
datetime.timedelta
Total simulation time for adaptive refinement or transient simulation,
excluding pre-processing and mesh generation.