The runTimeControl
function object provides a mechanism to terminate and write a calculation based on a set of run-time conditions. The set of run-time conditions comprises:
average
: average value converges to within limits;equationInitialResidual
: equation initial residual exceeds a value;equationMaxIter
: equation number of iterations exceeds a value;minMax
: minimum/maximum exceeds limits;minTimeStep
: minimum time step exceeds a value.By default, cases will terminate if any condition is satisfied. Optionally, conditions can be grouped whereby the case will only be terminated if all group member conditions are satisfied.
The optional nWriteStep
entry can be used to write all field data each time the conditions are satisfied for a specified number of steps prior to termination.
The function object is specified using:
runTimeControl1 { type runTimeControl; libs ("libutilityFunctionObjects.so"); conditions { <list of conditions> } }
For example, to stop the calculation if:
Source code:
Would you like to suggest an improvement to this page? | Create an issue |
Copyright © 2016 OpenCFD Ltd.