Function fed_tau_by_cycle_time

Function Documentation

int fed_tau_by_cycle_time(const float t, const float tau_max, const bool reordering, std::vector<float> &tau)

This function allocates an array of the least number of time steps such that a certain stopping time for the whole process can be obtained and fills it it with the respective FED time step sizes for one cycle The function returns the number of time steps per cycle or 0 on failure.

Parameters
  • t – Desired cycle stopping time

  • tau_max – Stability limit for the explicit scheme

  • reordering – Reordering flag

  • tau – The vector with the dynamic step sizes