StokesFlow.reset(source_terms=False, **kwargs)

Resets the algorithm to enable re-use.

This allows the reuse of an algorithm inside a for-loop for parametric studies. The default behavior means that only alg.reset() and must be called inside a loop. To reset the algorithm more completely requires overriding the default arguments.

  • results (bool) – If True all previously calculated values pertaining to results of the algorithm are removed. The default value is True.

  • bcs (bool) – If True all previous boundary conditions are removed.

  • source_terms (bool) – If True removes source terms. The default is False.