OpenLB 1.7
|
Propose successive test values of a scalar (e.g. Re) to check stability of a system. More...
#include <benchmarkUtil.h>
Public Member Functions | |
BisectStepper (T _iniVal, T _step=0.) | |
The only constructor. | |
T | getVal (bool stable, bool doPrint=false) |
Get new value, and indicate if the previous value yielded a stable system or not. | |
bool | hasConverged (T epsilon) const |
Test for convergence. | |
Propose successive test values of a scalar (e.g. Re) to check stability of a system.
At first, the stability limit is explored by constant increments/decrements of the scalar, and then, by successive bisection.
Definition at line 103 of file benchmarkUtil.h.
olb::util::BisectStepper< T >::BisectStepper | ( | T | _iniVal, |
T | _step = 0. ) |
The only constructor.
_iniVal | Initial guess for the stability limit. |
_step | Step size at which the value is initially incremented/decremented. |
Definition at line 195 of file benchmarkUtil.hh.
References olb::util::nearZero().
T olb::util::BisectStepper< T >::getVal | ( | bool | stable, |
bool | doPrint = false ) |
Get new value, and indicate if the previous value yielded a stable system or not.
Definition at line 205 of file benchmarkUtil.hh.
bool olb::util::BisectStepper< T >::hasConverged | ( | T | epsilon | ) | const |
Test for convergence.
Definition at line 265 of file benchmarkUtil.hh.