walberla::pe_coupling::amr::WeightAssignmentFunctor Class Reference

#include <WeightAssignmentFunctor.h>

Public Types

using PhantomBlockWeight = walberla::blockforest::PODPhantomWeight< double >
 

Public Member Functions

 WeightAssignmentFunctor (const shared_ptr< InfoCollection > &ic, const std::function< real_t(const BlockInfo &)> &weightEvaluationFct)
 
void operator() (std::vector< std::pair< const PhantomBlock *, walberla::any > > &blockData, const PhantomBlockForest &)
 
void setWeightEvaluationFct (const std::function< real_t(const BlockInfo &)> &weightEvaluationFct)
 
void setBlockBaseWeight (const real_t blockBaseWeight)
 
real_t getBlockBaseWeight () const
 

Private Attributes

shared_ptr< InfoCollectionic_
 
std::function< real_t(const BlockInfo &)> weightEvaluationFct_
 
real_t blockBaseWeight_ = real_t(1)
 

Member Typedef Documentation

◆ PhantomBlockWeight

Constructor & Destructor Documentation

◆ WeightAssignmentFunctor()

walberla::pe_coupling::amr::WeightAssignmentFunctor::WeightAssignmentFunctor ( const shared_ptr< InfoCollection > &  ic,
const std::function< real_t(const BlockInfo &)> &  weightEvaluationFct 
)
inline

Member Function Documentation

◆ getBlockBaseWeight()

real_t walberla::pe_coupling::amr::WeightAssignmentFunctor::getBlockBaseWeight ( ) const
inline

◆ operator()()

void walberla::pe_coupling::amr::WeightAssignmentFunctor::operator() ( std::vector< std::pair< const PhantomBlock *, walberla::any > > &  blockData,
const PhantomBlockForest  
)

◆ setBlockBaseWeight()

void walberla::pe_coupling::amr::WeightAssignmentFunctor::setBlockBaseWeight ( const real_t  blockBaseWeight)
inline

◆ setWeightEvaluationFct()

void walberla::pe_coupling::amr::WeightAssignmentFunctor::setWeightEvaluationFct ( const std::function< real_t(const BlockInfo &)> &  weightEvaluationFct)
inline

Member Data Documentation

◆ blockBaseWeight_

real_t walberla::pe_coupling::amr::WeightAssignmentFunctor::blockBaseWeight_ = real_t(1)
private

◆ ic_

shared_ptr<InfoCollection> walberla::pe_coupling::amr::WeightAssignmentFunctor::ic_
private

◆ weightEvaluationFct_

std::function<real_t(const BlockInfo&)> walberla::pe_coupling::amr::WeightAssignmentFunctor::weightEvaluationFct_
private

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