OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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)
 
Aggregatableoperator+= (const Aggregatable &rhs)
 

Public Attributes

std::size_t nCells = 0
 
avRho { }
 
avEnergy { }
 
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 62 of file latticeStatistics.h.

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

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: