optim_results.is_stabilized

optim_results.is_stabilized(part, it, threshold=0.1)[source]

Check whether one particle velocity has fallen below a stabilization threshold.

Parameters:
  • part (int) – Particle identifier.

  • it (int) – Iteration index.

  • threshold (float, optional) – Absolute velocity threshold.

Returns:

True when all velocity components are below the threshold.

Return type:

bool