Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::CellSearch Struct Reference

Classes

struct  Location

Public Types

typedef uint16_t idx_t
 The type representing an short index in memory.
typedef FixedArray< idx_t, 3 > CellIndex_t
typedef MultiArray< 4, idx_tFragmentLookup_t
typedef MultiArray< 4, CellIndex_t > CellLookup_t
typedef MultiArray< 4, index_tLinearCellLookup_t

Public Member Functions

 CellSearch (const Field &Coordinates, const Eagle::BoundingBox &BBox, const MultiIndex< 3 > &UnigridSize, index_t MaxCellsPerUnicell, const WeakPtr< FragmentSelector > &FS=NullPtr())
bool addToUniCell (FragmentLookup_t &FL, CellLookup_t &CL, const MultiIndex< 3 > &UniCell, int FragmentIndex, const MultiIndex< 3 > &CellIndex)
Location findLocation (const Eagle::PhysicalSpace::point &P, const Field &Coordinates) const

Public Attributes

RefPtr< UniformCartesianArrayUniGridCoords
RefPtr< MemArray< 4, idx_t > > FragmentLookup
 List of fragment indices, one integer per candidate cell.
RefPtr< MemArray< 4, CellIndex_t > > CellLookup
 List of multidimensional cell indices.
RefPtr< MemArray< 4, index_t > > LinearCellLookup
 List of linear cell indices.

Member Data Documentation

◆ CellLookup

RefPtr<MemArray<4, CellIndex_t> > Fiber::CellSearch::CellLookup

List of multidimensional cell indices.

Used for three-dimensional curvilinear grids. The zeroth entry is unused/

◆ FragmentLookup

RefPtr<MemArray<4, idx_t> > Fiber::CellSearch::FragmentLookup

List of fragment indices, one integer per candidate cell.

First three dimensions are the index in the uniform grid, fourth dimension is the nth candidate cell. Entry number zero gives the number of valid candidate cells and is an invalid fragment number. The maximum number of candidate cells is given by the fourth's dimensional size.

◆ LinearCellLookup

RefPtr<MemArray<4, index_t> > Fiber::CellSearch::LinearCellLookup

List of linear cell indices.

Used for unstructured grids, can refer to the cell index of a triangular, tetrahedral or hexahedral grid.