TDS.calc_h#

TDS.calc_h(resume=False)[source]#

Calculate the time step size during the TDS.

Parameters:
resumebool

If True, calculate the initial step size.

Returns:
float

computed time step size stored in self.h

Notes

A heuristic function is used for variable time step size

     min(0.50 * h, hmin), if niter >= 15
h =  max(1.10 * h, hmax), if niter <= 6
     min(0.95 * h, hmin), otherwise