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