walberla::field::NearestNeighborInterpolator< GlField > Class Template Reference

Detailed Description

template<typename GlField>
class walberla::field::NearestNeighborInterpolator< GlField >

Nearest Neighbor interpolation for GhostLayerFields.

Provides access to a field with real valued coordinates. The value of the nearest neighbor is returned.

Template parameter GlField has to be a GhostLayerField or a class that implements the methods CellInterval xyzSizeWithGhostLayer() ResType get( cell_idx_t x, cell_idx_t y, cell_idx_t z )

Coordinate System:

#include <NearestNeighborInterpolator.h>

Public Types

using value_type = typename GlField::value_type
 

Public Member Functions

 NearestNeighborInterpolator (const GlField &fieldToInterpolate)
 
value_type operator() (real_t x, real_t y, real_t z)
 
value_type operator() (real_t x, real_t y, real_t z, cell_idx_t f)
 
const AABB & getValidRegion () const
 

Static Public Attributes

static const uint_t F_SIZE = GlField::F_SIZE
 

Protected Attributes

const GlField & field_
 
AABB validRegion_
 

Member Typedef Documentation

◆ value_type

template<typename GlField >
using walberla::field::NearestNeighborInterpolator< GlField >::value_type = typename GlField::value_type

Constructor & Destructor Documentation

◆ NearestNeighborInterpolator()

template<typename GlField >
walberla::field::NearestNeighborInterpolator< GlField >::NearestNeighborInterpolator ( const GlField &  fieldToInterpolate)
inline

Member Function Documentation

◆ getValidRegion()

template<typename GlField >
const AABB& walberla::field::NearestNeighborInterpolator< GlField >::getValidRegion ( ) const
inline

◆ operator()() [1/2]

template<typename GlField >
value_type walberla::field::NearestNeighborInterpolator< GlField >::operator() ( real_t  x,
real_t  y,
real_t  z 
)
inline

◆ operator()() [2/2]

template<typename GlField >
value_type walberla::field::NearestNeighborInterpolator< GlField >::operator() ( real_t  x,
real_t  y,
real_t  z,
cell_idx_t  f 
)
inline

Member Data Documentation

◆ F_SIZE

template<typename GlField >
const uint_t walberla::field::NearestNeighborInterpolator< GlField >::F_SIZE = GlField::F_SIZE
static

◆ field_

template<typename GlField >
const GlField& walberla::field::NearestNeighborInterpolator< GlField >::field_
protected

◆ validRegion_

template<typename GlField >
AABB walberla::field::NearestNeighborInterpolator< GlField >::validRegion_
protected

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