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_passes
int
,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_time
float
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.
- num_passes
- Returns:
datetime.timedelta
Total
simulation
time
for
adaptive
refinement
ortransient
simulation,excluding
pre-processingand
mesh
generation.