OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::LatticeStatistics< T >::Aggregatable Struct Reference

#include <latticeStatistics.h>

+ Collaboration diagram for olb::LatticeStatistics< T >::Aggregatable:

Public Member Functions

void increment (T rho, T uSqr)
 
Aggregatable & operator+= (const Aggregatable &rhs)
 

Public Attributes

std::size_t nCells = 0
 
T avRho { }
 
T avEnergy { }
 
T maxU { }
 

Detailed Description

template<typename T>
struct olb::LatticeStatistics< T >::Aggregatable

Definition at line 49 of file latticeStatistics.h.

Member Function Documentation

◆ increment()

template<typename T >
void olb::LatticeStatistics< T >::Aggregatable::increment ( T rho,
T uSqr )
inline

◆ operator+=()

template<typename T >
Aggregatable & olb::LatticeStatistics< T >::Aggregatable::operator+= ( const Aggregatable & rhs)
inline

Definition at line 64 of file latticeStatistics.h.

64 {
65 nCells += rhs.nCells;
66 avRho += rhs.avRho;
67 avEnergy += rhs.avEnergy;
68 maxU = std::max(maxU, rhs.maxU);
69 return *this;
70 }

References olb::LatticeStatistics< T >::Aggregatable::avEnergy, olb::LatticeStatistics< T >::Aggregatable::avRho, olb::LatticeStatistics< T >::Aggregatable::maxU, and olb::LatticeStatistics< T >::Aggregatable::nCells.

Member Data Documentation

◆ avEnergy

template<typename T >
T olb::LatticeStatistics< T >::Aggregatable::avEnergy { }

Definition at line 52 of file latticeStatistics.h.

52{ };

◆ avRho

template<typename T >
T olb::LatticeStatistics< T >::Aggregatable::avRho { }

Definition at line 51 of file latticeStatistics.h.

51{ };

◆ maxU

template<typename T >
T olb::LatticeStatistics< T >::Aggregatable::maxU { }

Definition at line 53 of file latticeStatistics.h.

53{ };

◆ nCells

template<typename T >
std::size_t olb::LatticeStatistics< T >::Aggregatable::nCells = 0

Definition at line 50 of file latticeStatistics.h.


The documentation for this struct was generated from the following file: