walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D > Class Template Reference

Detailed Description

template<typename CellCounter_T, typename FluidCellCounter_T, bool Pseudo2D = false>
class walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >

Class for evaluating the BlockForest data structure of an LBM simulation.

Assumes that in-between creating an object of this class and calling any of the member functions the number of cells and the number of fluid cells do not change! For simulations with static geometry, this is always the case.

#include <BlockForestEvaluation.h>

Classes

struct  BlockStatistics
 

Public Member Functions

 BlockForestEvaluationBase (const weak_ptr< StructuredBlockForest > &blocks, const CellCounter_T &cellCounter, const FluidCellCounter_T &fluidCellCounter, const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet())
 
void refresh ()
 
void logResultOnRoot () const
 
void logInfoOnRoot () const
 
void getResultsForSQLOnRoot (std::map< std::string, int > &integerProperties, std::map< std::string, double > &realProperties, std::map< std::string, std::string > &stringProperties)
 
std::string loggingString () const
 

Private Member Functions

uint64_t allFineCells (const shared_ptr< StructuredBlockForest > &blocks) const
 
real_t space (const shared_ptr< StructuredBlockForest > &blocks, const uint_t level) const
 
real_t memory (const uint_t level) const
 
real_t totalWorkload (const shared_ptr< StructuredBlockForest > &blocks) const
 
real_t workload (const shared_ptr< StructuredBlockForest > &blocks, const uint_t level) const
 
real_t allFineWorkload (const shared_ptr< StructuredBlockForest > &blocks) const
 

Static Private Member Functions

static int processes ()
 

Private Attributes

weak_ptr< StructuredBlockForestblocks_
 
domain_decomposition::BlockCounter counter_
 
std::vector< BlockStatisticsblockStatistics_
 
CellCounter_T cells_
 
FluidCellCounter_T fluidCells_
 
Set< SUID > requiredSelectors_
 
Set< SUID > incompatibleSelectors_
 

Constructor & Destructor Documentation

◆ BlockForestEvaluationBase()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D>
walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::BlockForestEvaluationBase ( const weak_ptr< StructuredBlockForest > &  blocks,
const CellCounter_T &  cellCounter,
const FluidCellCounter_T &  fluidCellCounter,
const Set< SUID > &  requiredSelectors = Set<SUID>::emptySet(),
const Set< SUID > &  incompatibleSelectors = Set<SUID>::emptySet() 
)

Member Function Documentation

◆ allFineCells()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
uint64_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::allFineCells ( const shared_ptr< StructuredBlockForest > &  blocks) const
inlineprivate

◆ allFineWorkload()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
real_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::allFineWorkload ( const shared_ptr< StructuredBlockForest > &  blocks) const
inlineprivate

◆ getResultsForSQLOnRoot()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D>
void walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::getResultsForSQLOnRoot ( std::map< std::string, int > &  integerProperties,
std::map< std::string, double > &  realProperties,
std::map< std::string, std::string > &  stringProperties 
)

◆ loggingString()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D>
std::string walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::loggingString

◆ logInfoOnRoot()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
void walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::logInfoOnRoot ( ) const
inline

◆ logResultOnRoot()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
void walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::logResultOnRoot ( ) const
inline

◆ memory()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
real_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::memory ( const uint_t  level) const
inlineprivate

◆ processes()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
static int walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::processes ( )
inlinestaticprivate

◆ refresh()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D>
void walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::refresh

◆ space()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
real_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::space ( const shared_ptr< StructuredBlockForest > &  blocks,
const uint_t  level 
) const
inlineprivate

◆ totalWorkload()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
real_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::totalWorkload ( const shared_ptr< StructuredBlockForest > &  blocks) const
inlineprivate

◆ workload()

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
real_t walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::workload ( const shared_ptr< StructuredBlockForest > &  blocks,
const uint_t  level 
) const
inlineprivate

Member Data Documentation

◆ blocks_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
weak_ptr< StructuredBlockForest > walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::blocks_
private

◆ blockStatistics_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
std::vector< BlockStatistics> walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::blockStatistics_
private

◆ cells_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
CellCounter_T walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::cells_
private

◆ counter_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
domain_decomposition::BlockCounter walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::counter_
private

◆ fluidCells_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
FluidCellCounter_T walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::fluidCells_
private

◆ incompatibleSelectors_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
Set<SUID> walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::incompatibleSelectors_
private

◆ requiredSelectors_

template<typename CellCounter_T , typename FluidCellCounter_T , bool Pseudo2D = false>
Set<SUID> walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::requiredSelectors_
private

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