walberla::field::NearestNeighborDistributor< Field_T, FlagField_T > Class Template Reference

Detailed Description

template<typename Field_T, typename FlagField_T>
class walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >

Distributor for walberla::field::Field with nearest neighbor strategy.

This distributor distributes the given value to the nearest cell, flagged in the evaluation mask, of the given position. This is usually the cell that contains the distribution position. If this cell is a cell that is not within the evaluation mask, the direct neighborhood (8 cells) will be searched for an available cell. Never construct this distributor directly, but use the functionality from DistributorCreators.h instead.

#include <NearestNeighborDistributor.h>

Public Types

typedef Field_T BaseField_T
 
typedef FlagField_T::flag_t flag_t
 
typedef NearestNeighborDistributor< Field_T, FlagField_TOwnType
 

Public Member Functions

 NearestNeighborDistributor (const weak_ptr< StructuredBlockStorage > &blockStorage, const IBlock &block, BaseField_T &baseField, const FlagField_T &flagField, const flag_t &evaluationMask)
 
bool operator== (const OwnType &other)
 
template<typename ForwardIterator_T >
void distribute (const Vector3< real_t > &position, ForwardIterator_T distributeValueBegin)
 
template<typename ForwardIterator_T >
void distribute (const real_t &x, const real_t &y, const real_t &z, ForwardIterator_T distributeValueBegin)
 

Static Public Attributes

static const uint_t F_SIZE = Field_T::F_SIZE
 

Private Attributes

weak_ptr< StructuredBlockStorage > blockStorage_
 
const IBlock & block_
 
BaseField_TbaseField_
 
const FlagField_TflagField_
 
flag_t evaluationMask_
 

Member Typedef Documentation

template<typename Field_T , typename FlagField_T >
typedef Field_T walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::BaseField_T
template<typename Field_T , typename FlagField_T >
typedef FlagField_T::flag_t walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::flag_t
template<typename Field_T , typename FlagField_T >
typedef NearestNeighborDistributor<Field_T,FlagField_T> walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::OwnType

Constructor & Destructor Documentation

template<typename Field_T , typename FlagField_T >
walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::NearestNeighborDistributor ( const weak_ptr< StructuredBlockStorage > &  blockStorage,
const IBlock &  block,
BaseField_T baseField,
const FlagField_T flagField,
const flag_t evaluationMask 
)
inline

Member Function Documentation

template<typename Field_T , typename FlagField_T >
template<typename ForwardIterator_T >
void walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::distribute ( const Vector3< real_t > &  position,
ForwardIterator_T  distributeValueBegin 
)
inline
template<typename Field_T , typename FlagField_T >
template<typename ForwardIterator_T >
void walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::distribute ( const real_t x,
const real_t y,
const real_t z,
ForwardIterator_T  distributeValueBegin 
)
inline
template<typename Field_T , typename FlagField_T >
bool walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::operator== ( const OwnType other)
inline

Member Data Documentation

template<typename Field_T , typename FlagField_T >
BaseField_T& walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::baseField_
private
template<typename Field_T , typename FlagField_T >
const IBlock& walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::block_
private
template<typename Field_T , typename FlagField_T >
weak_ptr<StructuredBlockStorage> walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::blockStorage_
private
template<typename Field_T , typename FlagField_T >
flag_t walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::evaluationMask_
private
template<typename Field_T , typename FlagField_T >
const uint_t walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::F_SIZE = Field_T::F_SIZE
static
template<typename Field_T , typename FlagField_T >
const FlagField_T& walberla::field::NearestNeighborDistributor< Field_T, FlagField_T >::flagField_
private

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