SpECTRE  v2026.06.30
Loading...
Searching...
No Matches
Events::ObserveTimeStep< System, typename > Class Template Reference

Observe the size of the time steps. More...

Detailed Description

template<typename System, typename = tmpl::conditional_t< tt::is_a_v<tmpl::list, typename System::variables_tag>, typename System::variables_tag, tmpl::list<typename System::variables_tag>>>
class Events::ObserveTimeStep< System, typename >

Observe the size of the time steps.

Writes reduction quantities:

  • Time
  • Number of degrees of freedom
  • Slab size
  • Minimum time step
  • Maximum time step
  • Effective time step

The effective time step is the step size of a global-time-stepping method that would perform a similar amount of work. This is the harmonic mean of the step size over all degrees of freedom:

\begin{equation}(\Delta t)_{\text{eff}}^{-1} = \frac{\sum_{i \in \text{dof}} (\Delta t)_i^{-1}}{N_{\text{dof}}}. \end{equation}

This corresponds to averaging the number of steps per unit time taken by all points.

All values are reported as positive numbers, even for backwards evolutions.


The documentation for this class was generated from the following file:
  • src/ParallelAlgorithms/Events/ObserveTimeStep.hpp