$treeview $search $mathjax
|
Palabos
Version 1.1
$projectbrief
|
$projectbrief
|
$searchbox |
Check time-convergence of a scalar. More...
#include <benchmarkUtil.h>

Public Member Functions | |
| ValueTracer (T u, T L, T epsilon) | |
| The only constructor. | |
| void | resetScale (T u, T L) |
| Change values of u and L to update characteristic scales of the system. | |
| void | resetValues () |
| reinitializes the values | |
| plint | getDeltaT () const |
| Get characteristic time scale. | |
| void | takeValue (T val, bool doPrint=false) |
| Feed the object with a new measured scalar. | |
| bool | hasConverged () const |
| Test for convergence, with respect to stdDev. | |
| bool | hasConvergedMinMax () const |
| Test for convergence, with respect to difference between min and max value;. | |
| T | computeAverage () const |
| T | computeStdDev (T average) const |
| void | setEpsilon (T epsilon_) |
Check time-convergence of a scalar.
This class is useful, for example to check convergence of the velocity field for the simulation of a stationary flow. Convergence is claimed when the standard deviation of the monitored value is smaller than epsilon times the average. The statistics are taken over a macroscopic time scale of the system.
| plb::util::ValueTracer< T >::ValueTracer | ( | T | u, | |
| T | L, | |||
| T | epsilon | |||
| ) | [inline] |
The only constructor.
| u | The characteristic velocity of the system, for computation of the characteristic time scale. | |
| L | The characteristic length of the system, for computation of the characteristic time scale. | |
| _epsilon | Precision of the convergence. |
| T plb::util::ValueTracer< T >::computeAverage | ( | ) | const [inline] |
| T plb::util::ValueTracer< T >::computeStdDev | ( | T | average | ) | const [inline] |
Referenced by plb::util::ValueTracer< T >::hasConverged(), and plb::util::ValueTracer< T >::takeValue().
| plint plb::util::ValueTracer< T >::getDeltaT | ( | ) | const [inline] |
Get characteristic time scale.
| bool plb::util::ValueTracer< T >::hasConverged | ( | ) | const [inline] |
Test for convergence, with respect to stdDev.
References plb::util::ValueTracer< T >::computeAverage(), plb::util::ValueTracer< T >::computeStdDev(), and plb::pcout.
| bool plb::util::ValueTracer< T >::hasConvergedMinMax | ( | ) | const [inline] |
Test for convergence, with respect to difference between min and max value;.
References plb::util::ValueTracer< T >::computeAverage().
| void plb::util::ValueTracer< T >::resetScale | ( | T | u, | |
| T | L | |||
| ) | [inline] |
Change values of u and L to update characteristic scales of the system.
| void plb::util::ValueTracer< T >::resetValues | ( | ) | [inline] |
reinitializes the values
| void plb::util::ValueTracer< T >::setEpsilon | ( | T | epsilon_ | ) | [inline] |
| void plb::util::ValueTracer< T >::takeValue | ( | T | val, | |
| bool | doPrint = false | |||
| ) | [inline] |
Feed the object with a new measured scalar.
References plb::util::ValueTracer< T >::computeAverage(), plb::util::ValueTracer< T >::computeStdDev(), and plb::pcout.
1.6.3
1.6.3