- AdvectionDiffusion.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.run()must be called inside a loop. To reset the algorithm more completely requires overriding the default arguments.
results (bool) – If
Trueall previously calculated values pertaining to results of the algorithm are removed. The default value is
bcs (bool) – If
Trueall previous boundary conditions are removed.
source_terms (bool) – If
Trueremoves source terms. The default is