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< StructuredBlockForest > | blocks_ |
domain_decomposition::BlockCounter | counter_ |
std::vector< BlockStatistics > | blockStatistics_ |
CellCounter_T | cells_ |
FluidCellCounter_T | fluidCells_ |
Set< SUID > | requiredSelectors_ |
Set< SUID > | incompatibleSelectors_ |
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() |
||
) |
|
inlineprivate |
|
inlineprivate |
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 | ||
) |
std::string walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::loggingString |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestaticprivate |
void walberla::lbm::BlockForestEvaluationBase< CellCounter_T, FluidCellCounter_T, Pseudo2D >::refresh |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |