www.cemf.ir
cells Class Reference
+ Collaboration diagram for cells:

Public Member Functions

INLINE_FUNCTION_HD cells ()=default
 
INLINE_FUNCTION_H cells (const box &domain, real cellSize)
 
INLINE_FUNCTION_HD cells (const cells &)=default
 
INLINE_FUNCTION_HD cellsoperator= (const cells &)=default
 
INLINE_FUNCTION_HD cells (cells &&)=default
 
INLINE_FUNCTION_HD cellsoperator= (cells &&)=default
 
cells getCells () const
 
INLINE_FUNCTION_H void setCellSize (real cellSize)
 
INLINE_FUNCTION_HD real cellSize () const
 
const INLINE_FUNCTION_HD int32x3numCells () const
 
INLINE_FUNCTION_HD int32 nx () const
 
INLINE_FUNCTION_HD int32 ny () const
 
INLINE_FUNCTION_HD int32 nz () const
 
INLINE_FUNCTION_HD int64 totalCells () const
 
const auto & domainBox () const
 
INLINE_FUNCTION_HD int32x3 pointIndex (const realx3 &p) const
 
INLINE_FUNCTION_HD bool pointIndexInDomain (const realx3 p, int32x3 &index) const
 
INLINE_FUNCTION_HD bool inDomain (const realx3 &p) const
 
INLINE_FUNCTION_HD bool inCellRange (const int32x3 &cell) const
 
INLINE_FUNCTION_HD bool inCellRange (int32 i, int32 j, int32 k) const
 
INLINE_FUNCTION_HD void extendBox (const realx3 &p1, const realx3 &p2, const realx3 &p3, real extent, realx3 &minP, realx3 &maxP) const
 
INLINE_FUNCTION_HD int32x3 bound (int32x3 p) const
 
INLINE_FUNCTION_HD realx3 bound (realx3 p) const
 
INLINE_FUNCTION_HD cells ()=default
 
INLINE_FUNCTION_H cells (const box &domain, real cellSize)
 
INLINE_FUNCTION_HD cells (const cells &)=default
 
INLINE_FUNCTION_HD cellsoperator= (const cells &)=default
 
INLINE_FUNCTION_HD cells (cells &&)=default
 
INLINE_FUNCTION_HD cellsoperator= (cells &&)=default
 
cells getCells () const
 
INLINE_FUNCTION_H void setCellSize (real cellSize)
 
INLINE_FUNCTION_HD real cellSize () const
 
const INLINE_FUNCTION_HD int32x3numCells () const
 
INLINE_FUNCTION_HD int32 nx () const
 
INLINE_FUNCTION_HD int32 ny () const
 
INLINE_FUNCTION_HD int32 nz () const
 
INLINE_FUNCTION_HD int64 totalCells () const
 
const auto & domainBox () const
 
INLINE_FUNCTION_HD int32x3 pointIndex (const realx3 &p) const
 
INLINE_FUNCTION_HD bool pointIndexInDomain (const realx3 p, int32x3 &index) const
 
INLINE_FUNCTION_HD bool inDomain (const realx3 &p) const
 
INLINE_FUNCTION_HD bool inCellRange (const int32x3 &cell) const
 
INLINE_FUNCTION_HD bool inCellRange (int32 i, int32 j, int32 k) const
 
INLINE_FUNCTION_HD void extendBox (const realx3 &p1, const realx3 &p2, const realx3 &p3, real extent, realx3 &minP, realx3 &maxP) const
 
INLINE_FUNCTION_HD int32x3 bound (int32x3 p) const
 
INLINE_FUNCTION_HD realx3 bound (realx3 p) const
 

Private Member Functions

INLINE_FUNCTION_H void calculate ()
 
INLINE_FUNCTION_H void calculate ()
 

Private Attributes

box domainBox_ {realx3(0.0), realx3(1.0)}
 
real celldx_ {1}
 
int32x3 numCells_ {1,1,1}
 

Detailed Description

Definition at line 31 of file cells.hpp.

Constructor & Destructor Documentation

◆ cells() [1/8]

◆ cells() [2/8]

INLINE_FUNCTION_H cells ( const box domain,
real  cellSize 
)
inline

Definition at line 57 of file cells.hpp.

References cells::calculate().

+ Here is the call graph for this function:

◆ cells() [3/8]

INLINE_FUNCTION_HD cells ( const cells )
default

◆ cells() [4/8]

INLINE_FUNCTION_HD cells ( cells &&  )
default

◆ cells() [5/8]

◆ cells() [6/8]

INLINE_FUNCTION_H cells ( const box domain,
real  cellSize 
)
inline

Definition at line 57 of file cells.hpp.

References cells::calculate().

+ Here is the call graph for this function:

◆ cells() [7/8]

INLINE_FUNCTION_HD cells ( const cells )
default

◆ cells() [8/8]

INLINE_FUNCTION_HD cells ( cells &&  )
default

Member Function Documentation

◆ calculate() [1/2]

INLINE_FUNCTION_H void calculate ( )
inlineprivate

Definition at line 45 of file cells.hpp.

References cells::celldx_, cells::domainBox_, pFlow::max(), box::maxPoint(), box::minPoint(), and cells::numCells_.

Referenced by cells::cells(), and cells::setCellSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/4]

INLINE_FUNCTION_HD cells& operator= ( const cells )
default

◆ operator=() [2/4]

INLINE_FUNCTION_HD cells& operator= ( cells &&  )
default

◆ getCells() [1/2]

cells getCells ( ) const
inline

Definition at line 77 of file cells.hpp.

◆ setCellSize() [1/2]

INLINE_FUNCTION_H void setCellSize ( real  cellSize)
inline

Definition at line 83 of file cells.hpp.

References cells::calculate(), cells::celldx_, and cells::cellSize().

+ Here is the call graph for this function:

◆ cellSize() [1/2]

INLINE_FUNCTION_HD real cellSize ( ) const
inline

Definition at line 90 of file cells.hpp.

References cells::celldx_.

Referenced by cells::setCellSize().

+ Here is the caller graph for this function:

◆ numCells() [1/2]

const INLINE_FUNCTION_HD int32x3& numCells ( ) const
inline

Definition at line 96 of file cells.hpp.

References cells::numCells_.

◆ nx() [1/2]

INLINE_FUNCTION_HD int32 nx ( ) const
inline

Definition at line 102 of file cells.hpp.

References cells::numCells_, and triple< T >::x().

Referenced by mapperNBS::allocateArrays().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ny() [1/2]

INLINE_FUNCTION_HD int32 ny ( ) const
inline

Definition at line 108 of file cells.hpp.

References cells::numCells_, and triple< T >::y().

Referenced by mapperNBS::allocateArrays().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nz() [1/2]

INLINE_FUNCTION_HD int32 nz ( ) const
inline

Definition at line 114 of file cells.hpp.

References cells::numCells_, and triple< T >::z().

Referenced by mapperNBS::allocateArrays().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ totalCells() [1/2]

INLINE_FUNCTION_HD int64 totalCells ( ) const
inline

Definition at line 120 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ domainBox() [1/2]

const auto& domainBox ( ) const
inline

Definition at line 127 of file cells.hpp.

References cells::domainBox_.

◆ pointIndex() [1/2]

INLINE_FUNCTION_HD int32x3 pointIndex ( const realx3 p) const
inline

Definition at line 133 of file cells.hpp.

References cells::celldx_, cells::domainBox_, and box::minPoint().

Referenced by wallBoundaryContactSearch::build(), cellsWallLevel0::build(), pFlow::mapperNBSKernels::buildLists(), and cells::pointIndexInDomain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pointIndexInDomain() [1/2]

INLINE_FUNCTION_HD bool pointIndexInDomain ( const realx3  p,
int32x3 index 
) const
inline

◆ inDomain() [1/2]

INLINE_FUNCTION_HD bool inDomain ( const realx3 p) const
inline

Definition at line 147 of file cells.hpp.

References cells::domainBox_, and box::isInside().

Referenced by cells::pointIndexInDomain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inCellRange() [1/4]

INLINE_FUNCTION_HD bool inCellRange ( const int32x3 cell) const
inline

Definition at line 153 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

Referenced by pFlow::pweBndryContactSearchKernels::broadSearchPP().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inCellRange() [2/4]

INLINE_FUNCTION_HD bool inCellRange ( int32  i,
int32  j,
int32  k 
) const
inline

Definition at line 165 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ extendBox() [1/2]

INLINE_FUNCTION_HD void extendBox ( const realx3 p1,
const realx3 p2,
const realx3 p3,
real  extent,
realx3 minP,
realx3 maxP 
) const
inline

Definition at line 178 of file cells.hpp.

References cells::bound(), cells::celldx_, pFlow::max(), and pFlow::min().

Referenced by wallBoundaryContactSearch::build(), and cellsWallLevel0::build().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bound() [1/4]

INLINE_FUNCTION_HD int32x3 bound ( int32x3  p) const
inline

Definition at line 194 of file cells.hpp.

References pFlow::max(), pFlow::min(), cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

Referenced by cells::extendBox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bound() [2/4]

INLINE_FUNCTION_HD realx3 bound ( realx3  p) const
inline

Definition at line 204 of file cells.hpp.

References cells::domainBox_, pFlow::max(), box::maxPoint(), pFlow::min(), box::minPoint(), triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ calculate() [2/2]

INLINE_FUNCTION_H void calculate ( )
inlineprivate

Definition at line 45 of file cells.hpp.

References cells::celldx_, cells::domainBox_, pFlow::max(), box::maxPoint(), box::minPoint(), and cells::numCells_.

+ Here is the call graph for this function:

◆ operator=() [3/4]

INLINE_FUNCTION_HD cells& operator= ( const cells )
default

◆ operator=() [4/4]

INLINE_FUNCTION_HD cells& operator= ( cells &&  )
default

◆ getCells() [2/2]

cells getCells ( ) const
inline

Definition at line 77 of file cells.hpp.

◆ setCellSize() [2/2]

INLINE_FUNCTION_H void setCellSize ( real  cellSize)
inline

Definition at line 83 of file cells.hpp.

References cells::calculate(), cells::celldx_, and cells::cellSize().

+ Here is the call graph for this function:

◆ cellSize() [2/2]

INLINE_FUNCTION_HD real cellSize ( ) const
inline

Definition at line 90 of file cells.hpp.

References cells::celldx_.

◆ numCells() [2/2]

const INLINE_FUNCTION_HD int32x3& numCells ( ) const
inline

Definition at line 96 of file cells.hpp.

References cells::numCells_.

◆ nx() [2/2]

INLINE_FUNCTION_HD int32 nx ( ) const
inline

Definition at line 102 of file cells.hpp.

References cells::numCells_, and triple< T >::x().

+ Here is the call graph for this function:

◆ ny() [2/2]

INLINE_FUNCTION_HD int32 ny ( ) const
inline

Definition at line 108 of file cells.hpp.

References cells::numCells_, and triple< T >::y().

+ Here is the call graph for this function:

◆ nz() [2/2]

INLINE_FUNCTION_HD int32 nz ( ) const
inline

Definition at line 114 of file cells.hpp.

References cells::numCells_, and triple< T >::z().

+ Here is the call graph for this function:

◆ totalCells() [2/2]

INLINE_FUNCTION_HD int64 totalCells ( ) const
inline

Definition at line 120 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ domainBox() [2/2]

const auto& domainBox ( ) const
inline

Definition at line 127 of file cells.hpp.

References cells::domainBox_.

◆ pointIndex() [2/2]

INLINE_FUNCTION_HD int32x3 pointIndex ( const realx3 p) const
inline

Definition at line 133 of file cells.hpp.

References cells::celldx_, cells::domainBox_, and box::minPoint().

+ Here is the call graph for this function:

◆ pointIndexInDomain() [2/2]

INLINE_FUNCTION_HD bool pointIndexInDomain ( const realx3  p,
int32x3 index 
) const
inline

Definition at line 139 of file cells.hpp.

References cells::inDomain(), and cells::pointIndex().

+ Here is the call graph for this function:

◆ inDomain() [2/2]

INLINE_FUNCTION_HD bool inDomain ( const realx3 p) const
inline

Definition at line 147 of file cells.hpp.

References cells::domainBox_, and box::isInside().

+ Here is the call graph for this function:

◆ inCellRange() [3/4]

INLINE_FUNCTION_HD bool inCellRange ( const int32x3 cell) const
inline

Definition at line 153 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ inCellRange() [4/4]

INLINE_FUNCTION_HD bool inCellRange ( int32  i,
int32  j,
int32  k 
) const
inline

Definition at line 165 of file cells.hpp.

References cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ extendBox() [2/2]

INLINE_FUNCTION_HD void extendBox ( const realx3 p1,
const realx3 p2,
const realx3 p3,
real  extent,
realx3 minP,
realx3 maxP 
) const
inline

Definition at line 178 of file cells.hpp.

References cells::bound(), cells::celldx_, pFlow::max(), and pFlow::min().

+ Here is the call graph for this function:

◆ bound() [3/4]

INLINE_FUNCTION_HD int32x3 bound ( int32x3  p) const
inline

Definition at line 194 of file cells.hpp.

References pFlow::max(), pFlow::min(), cells::numCells_, triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

◆ bound() [4/4]

INLINE_FUNCTION_HD realx3 bound ( realx3  p) const
inline

Definition at line 204 of file cells.hpp.

References cells::domainBox_, pFlow::max(), box::maxPoint(), pFlow::min(), box::minPoint(), triple< T >::x(), triple< T >::y(), and triple< T >::z().

+ Here is the call graph for this function:

Member Data Documentation

◆ domainBox_

box domainBox_ {realx3(0.0), realx3(1.0)}
private

◆ celldx_

real celldx_ {1}
private

◆ numCells_


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