OpenLB 1.7
|
#include <latticeStatistics.h>
Classes | |
struct | Aggregatable |
Public Types | |
enum | { avRho =0 , avEnergy =1 } |
enum | { maxU =0 } |
Public Member Functions | |
LatticeStatistics () | |
~LatticeStatistics ()=default | |
void | reset () |
void | reset (T average_rho_, T average_energy_, T maxU_, size_t numCells_) |
int | subscribeAverage () |
int | subscribeSum () |
int | subscribeMin () |
int | subscribeMax () |
void | incrementStats (T rho, T uSqr) |
void | incrementStats (Aggregatable &aggregatable) |
void | gatherAverage (int whichAverage, T value) |
void | gatherSum (int whichSum, T value) |
void | gatherMin (int whichMin, T value) |
void | gatherMax (int whichMax, T value) |
void | incrementStats () |
T | getAverageRho () const |
T | getAverageEnergy () const |
T | getMaxU () const |
size_t const & | getNumCells () const |
T | getAverage (int whichAverage) const |
T | getSum (int whichSum) const |
T | getMin (int whichMin) const |
T | getMax (int whichMax) const |
std::vector< T > & | getAverageVect () |
std::vector< T > & | getSumVect () |
std::vector< T > & | getMinVect () |
std::vector< T > & | getMaxVect () |
void | incrementTime () |
void | resetTime (size_t value=0) |
size_t | getTime () const |
void | print (int iterationStep, T physicalTime=-1) const |
void | initialize () |
Public Attributes | |
enum olb::LatticeStatistics:: { ... } | AverageT |
enum olb::LatticeStatistics:: { ... } | MaxT |
Definition at line 44 of file latticeStatistics.h.
anonymous enum |
Enumerator | |
---|---|
avRho | |
avEnergy |
Definition at line 46 of file latticeStatistics.h.
anonymous enum |
Enumerator | |
---|---|
maxU |
Definition at line 47 of file latticeStatistics.h.
olb::LatticeStatistics< T >::LatticeStatistics | ( | ) |
Definition at line 38 of file latticeStatistics.hh.
References olb::LatticeStatistics< T >::initialize().
|
default |
void olb::LatticeStatistics< T >::gatherAverage | ( | int | whichAverage, |
T | value ) |
Definition at line 203 of file latticeStatistics.hh.
References OLB_PRECONDITION.
void olb::LatticeStatistics< T >::gatherMax | ( | int | whichMax, |
T | value ) |
Definition at line 226 of file latticeStatistics.hh.
References OLB_PRECONDITION.
void olb::LatticeStatistics< T >::gatherMin | ( | int | whichMin, |
T | value ) |
Definition at line 217 of file latticeStatistics.hh.
References OLB_PRECONDITION.
void olb::LatticeStatistics< T >::gatherSum | ( | int | whichSum, |
T | value ) |
Definition at line 210 of file latticeStatistics.hh.
References OLB_PRECONDITION.
T olb::LatticeStatistics< T >::getAverage | ( | int | whichAverage | ) | const |
Definition at line 265 of file latticeStatistics.hh.
References OLB_PRECONDITION.
T olb::LatticeStatistics< T >::getAverageEnergy | ( | ) | const |
Definition at line 247 of file latticeStatistics.hh.
T olb::LatticeStatistics< T >::getAverageRho | ( | ) | const |
Definition at line 241 of file latticeStatistics.hh.
std::vector< T > & olb::LatticeStatistics< T >::getAverageVect | ( | ) |
Definition at line 293 of file latticeStatistics.hh.
T olb::LatticeStatistics< T >::getMax | ( | int | whichMax | ) | const |
Definition at line 286 of file latticeStatistics.hh.
References OLB_PRECONDITION.
T olb::LatticeStatistics< T >::getMaxU | ( | ) | const |
Definition at line 253 of file latticeStatistics.hh.
std::vector< T > & olb::LatticeStatistics< T >::getMaxVect | ( | ) |
Definition at line 311 of file latticeStatistics.hh.
T olb::LatticeStatistics< T >::getMin | ( | int | whichMin | ) | const |
Definition at line 279 of file latticeStatistics.hh.
References OLB_PRECONDITION.
std::vector< T > & olb::LatticeStatistics< T >::getMinVect | ( | ) |
Definition at line 305 of file latticeStatistics.hh.
size_t const & olb::LatticeStatistics< T >::getNumCells | ( | ) | const |
Definition at line 259 of file latticeStatistics.hh.
T olb::LatticeStatistics< T >::getSum | ( | int | whichSum | ) | const |
Definition at line 272 of file latticeStatistics.hh.
References OLB_PRECONDITION.
std::vector< T > & olb::LatticeStatistics< T >::getSumVect | ( | ) |
Definition at line 299 of file latticeStatistics.hh.
size_t olb::LatticeStatistics< T >::getTime | ( | ) | const |
Definition at line 329 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::incrementStats | ( | ) |
Definition at line 235 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::incrementStats | ( | Aggregatable & | aggregatable | ) |
Definition at line 194 of file latticeStatistics.hh.
References olb::LatticeStatistics< T >::Aggregatable::avEnergy, olb::LatticeStatistics< T >::Aggregatable::avRho, olb::LatticeStatistics< T >::Aggregatable::maxU, and olb::LatticeStatistics< T >::Aggregatable::nCells.
void olb::LatticeStatistics< T >::incrementStats | ( | T | rho, |
T | uSqr ) |
void olb::LatticeStatistics< T >::incrementTime | ( | ) |
Definition at line 317 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::initialize | ( | ) |
Definition at line 125 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::print | ( | int | iterationStep, |
T | physicalTime = -1 ) const |
Definition at line 335 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::reset | ( | ) |
Definition at line 44 of file latticeStatistics.hh.
void olb::LatticeStatistics< T >::reset | ( | T | average_rho_, |
T | average_energy_, | ||
T | maxU_, | ||
size_t | numCells_ ) |
void olb::LatticeStatistics< T >::resetTime | ( | size_t | value = 0 | ) |
Definition at line 323 of file latticeStatistics.hh.
int olb::LatticeStatistics< T >::subscribeAverage | ( | ) |
Definition at line 147 of file latticeStatistics.hh.
int olb::LatticeStatistics< T >::subscribeMax | ( | ) |
Definition at line 174 of file latticeStatistics.hh.
int olb::LatticeStatistics< T >::subscribeMin | ( | ) |
Definition at line 165 of file latticeStatistics.hh.
int olb::LatticeStatistics< T >::subscribeSum | ( | ) |
Definition at line 156 of file latticeStatistics.hh.
enum { ... } olb::LatticeStatistics< T >::AverageT |
enum { ... } olb::LatticeStatistics< T >::MaxT |