www.cemf.ir
pointStructure Class Reference
+ Inheritance diagram for pointStructure:
+ Collaboration diagram for pointStructure:

Classes

class  activePointsDevice
 
class  activePointsHost
 

Public Types

enum  PointFlag : int8 { DELETED = -1, ACTIVE = 1 }
 

Public Member Functions

 TypeInfo ("pointStructure")
 
 pointStructure ()
 
 pointStructure (const int8Vector &flgVec, const realx3Vector &posVec)
 
 pointStructure (const realx3Vector &posVec)
 
 pointStructure (const pointStructure &)=default
 
 pointStructure (pointStructure &&)=delete
 
pointStructureoperator= (const pointStructure &)=default
 
pointStructureoperator= (pointStructure &&)=delete
 
virtual ~pointStructure ()=default
 
activePointsDevice activePointsMaskD () const
 
activePointsHost activePointsMaskH () const
 
const FUNCTION_H realx3Field_DpointPosition () const
 
const FUNCTION_H int8Field_HDpointFlag () const
 
INLINE_FUNCTION_H auto pointPositionHostAll ()
 
FUNCTION_H label size () const
 
FUNCTION_H label capacity () const
 
FUNCTION_H label numActive () const
 
FUNCTION_H bool allActive () const
 
INLINE_FUNCTION_H range activeRange () const
 
INLINE_FUNCTION_H bool isActive (label i) const
 
FUNCTION_H size_t markDeleteOutOfBox (const box &domain)
 
virtual FUNCTION_H bool updateForDelete ()
 
virtual FUNCTION_H bool mortonSortPoints (const box &domain, real dx)
 
FUNCTION_H auto insertedPointIndex () const
 
FUNCTION_H auto insertedPointIndexH () const
 
FUNCTION_H auto insertedPointIndexD () const
 
FUNCTION_H auto mortonSortedIndex () const
 
virtual FUNCTION_H uniquePtr< int32IndexContainerinsertPoints (const realx3Vector &pos, const setFieldList &setField, repository &owner, const List< eventObserver * > &exclusionList={nullptr})
 
FUNCTION_H bool readPointStructure (iIstream &is)
 
FUNCTION_H bool writePointStructure (iOstream &os) const
 
FUNCTION_H bool read (iIstream &is)
 
FUNCTION_H bool write (iOstream &os) const
 
- Public Member Functions inherited from eventSubscriber
 eventSubscriber ()
 
virtual ~eventSubscriber ()
 
virtual bool subscribe (eventObserver *observer) const
 
virtual bool unsubscribe (eventObserver *observer) const
 
bool notify (const eventMessage &msg)
 
bool notify (const eventMessage &msg, const List< eventObserver * > &exclutionList)
 

Static Public Attributes

static const size_t maxSizeDefault_ = 10000
 

Protected Member Functions

FUNCTION_H bool evaluatePointStructure ()
 
FUNCTION_H void setNumMaxPoints ()
 
FUNCTION_H realx3Field_DpointPosition ()
 
FUNCTION_H int8Field_HDpointFlag ()
 
FUNCTION_H uniquePtr< int32IndexContainergetNewPointsIndices (int32 numNewPoints) const
 

Protected Attributes

size_t numPoints_ = 0
 
size_t maxPoints_ = maxSizeDefault_
 
int8Field_HD pointFlag_
 
realx3Field_D pointPosition_
 
size_t numActivePoints_ = 0
 
range activeRange_
 
int32IndexContainer tobeInsertedIndex_
 Index vector for points to be inserted. More...
 
int32IndexContainer mortonSortedIndex_
 Sorted index of particles based on morton code. More...
 
- Protected Attributes inherited from eventSubscriber
List< eventObserver * > observerList_
 

Friends

class dynamicPointStructure
 

Detailed Description

Definition at line 44 of file pointStructure.hpp.

Member Enumeration Documentation

◆ PointFlag

enum PointFlag : int8
Enumerator
DELETED 
ACTIVE 

Definition at line 50 of file pointStructure.hpp.

Constructor & Destructor Documentation

◆ pointStructure() [1/5]

Definition at line 144 of file pointStructure.cpp.

◆ pointStructure() [2/5]

pointStructure ( const int8Vector flgVec,
const realx3Vector posVec 
)

Definition at line 153 of file pointStructure.cpp.

References fatalExit.

◆ pointStructure() [3/5]

pointStructure ( const realx3Vector posVec)

Definition at line 176 of file pointStructure.cpp.

References pointStructure::ACTIVE, and fatalExit.

◆ pointStructure() [4/5]

pointStructure ( const pointStructure )
default

◆ pointStructure() [5/5]

pointStructure ( pointStructure &&  )
delete

◆ ~pointStructure()

virtual ~pointStructure ( )
virtualdefault

Member Function Documentation

◆ evaluatePointStructure()

◆ setNumMaxPoints()

FUNCTION_H void setNumMaxPoints ( )
protected

Definition at line 58 of file pointStructure.cpp.

Referenced by pointStructure::evaluatePointStructure().

+ Here is the caller graph for this function:

◆ pointPosition() [1/2]

◆ pointFlag() [1/2]

const FUNCTION_H pFlow::int8Field_HD & pointFlag ( )
protected

Definition at line 71 of file pointStructure.cpp.

Referenced by pointField< T >::pointFlag().

+ Here is the caller graph for this function:

◆ getNewPointsIndices()

pFlow::uniquePtr< pFlow::int32IndexContainer > getNewPointsIndices ( int32  numNewPoints) const
protected

Definition at line 77 of file pointStructure.cpp.

References Vector< T, Allocator >::clear(), fatalErrorInFunction, and ForAll.

+ Here is the call graph for this function:

◆ TypeInfo()

TypeInfo ( "pointStructure"  )

◆ operator=() [1/2]

pointStructure& operator= ( const pointStructure )
default

◆ operator=() [2/2]

pointStructure& operator= ( pointStructure &&  )
delete

◆ activePointsMaskD()

activePointsDevice activePointsMaskD ( ) const
inline

Definition at line 235 of file pointStructure.hpp.

References pointStructure::activeRange(), pointStructure::allActive(), and VectorDual< T, MemorySpace >::deviceVectorAll().

+ Here is the call graph for this function:

◆ activePointsMaskH()

activePointsHost activePointsMaskH ( ) const
inline

Definition at line 244 of file pointStructure.hpp.

References pointStructure::activeRange(), pointStructure::allActive(), and VectorDual< T, MemorySpace >::hostVectorAll().

Referenced by pointRectCell::mapPOints().

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

◆ pointPosition() [2/2]

const FUNCTION_H realx3Field_D& pointPosition ( ) const

◆ pointFlag() [2/2]

const FUNCTION_H int8Field_HD& pointFlag ( ) const

◆ pointPositionHostAll()

INLINE_FUNCTION_H auto pointPositionHostAll ( )
inline

Definition at line 262 of file pointStructure.hpp.

References VectorSingle< T, MemorySpace >::hostVectorAll(), and pointStructure::pointPosition_.

Referenced by dynamicPointStructure::pointPositionHostAll().

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

◆ size()

FUNCTION_H pFlow::label size ( ) const

Definition at line 212 of file pointStructure.cpp.

◆ capacity()

FUNCTION_H pFlow::label capacity ( ) const

Definition at line 218 of file pointStructure.cpp.

◆ numActive()

FUNCTION_H pFlow::label numActive ( ) const

Definition at line 224 of file pointStructure.cpp.

◆ allActive()

FUNCTION_H bool allActive ( ) const

Definition at line 230 of file pointStructure.cpp.

Referenced by pointStructure::activePointsMaskD(), pointStructure::activePointsMaskH(), and pointField< T >::allActive().

+ Here is the caller graph for this function:

◆ activeRange()

INLINE_FUNCTION_H range activeRange ( ) const
inline

◆ isActive()

INLINE_FUNCTION_H bool isActive ( label  i) const
inline

Definition at line 290 of file pointStructure.hpp.

References pointStructure::ACTIVE, and pointStructure::pointFlag_.

Referenced by pointField< T >::isActive().

+ Here is the caller graph for this function:

◆ markDeleteOutOfBox()

FUNCTION_H size_t markDeleteOutOfBox ( const box domain)

Definition at line 286 of file pointStructure.cpp.

References pointStructure::DELETED, fatalErrorInFunction, fatalExit, pFlow::pointStructureKernels::markDeleteOutOfBox(), and eventMessage::RANGE_CHANGED.

Referenced by dynamicPointStructure::markDeleteOutOfBox().

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

◆ updateForDelete()

FUNCTION_H bool updateForDelete ( )
virtual

Definition at line 342 of file pointStructure.cpp.

References notImplementedFunction.

◆ mortonSortPoints()

FUNCTION_H bool mortonSortPoints ( const box domain,
real  dx 
)
virtual

◆ insertedPointIndex()

FUNCTION_H auto insertedPointIndex ( ) const
inline

Definition at line 312 of file pointStructure.hpp.

References pointStructure::tobeInsertedIndex_.

Referenced by dynamicPointStructure::update().

+ Here is the caller graph for this function:

◆ insertedPointIndexH()

FUNCTION_H auto insertedPointIndexH ( ) const
inline

Definition at line 318 of file pointStructure.hpp.

References indexContainer< IndexType >::hostView(), and pointStructure::tobeInsertedIndex_.

+ Here is the call graph for this function:

◆ insertedPointIndexD()

FUNCTION_H auto insertedPointIndexD ( ) const
inline

Definition at line 324 of file pointStructure.hpp.

References indexContainer< IndexType >::deviceView(), and pointStructure::tobeInsertedIndex_.

+ Here is the call graph for this function:

◆ mortonSortedIndex()

FUNCTION_H auto mortonSortedIndex ( ) const
inline

Definition at line 331 of file pointStructure.hpp.

References pointStructure::mortonSortedIndex_.

◆ insertPoints()

FUNCTION_H pFlow::uniquePtr< pFlow::int32IndexContainer > insertPoints ( const realx3Vector pos,
const setFieldList setField,
repository owner,
const List< eventObserver * > &  exclusionList = {nullptr} 
)
virtual

◆ readPointStructure()

FUNCTION_H bool readPointStructure ( iIstream is)

Definition at line 437 of file pointStructure.cpp.

References ioErrorInFile, IOstream::lineNumber(), iIstream::lookupDataOrSet(), and IOstream::name().

Referenced by pointStructure::read().

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

◆ writePointStructure()

FUNCTION_H bool writePointStructure ( iOstream os) const

Definition at line 465 of file pointStructure.cpp.

References ioErrorInFile, IOstream::lineNumber(), IOstream::name(), and iOstream::writeWordEntry().

Referenced by pointStructure::write().

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

◆ read()

FUNCTION_H bool read ( iIstream is)
inline

Definition at line 361 of file pointStructure.hpp.

References pointStructure::readPointStructure().

+ Here is the call graph for this function:

◆ write()

FUNCTION_H bool write ( iOstream os) const
inline

Definition at line 368 of file pointStructure.hpp.

References pointStructure::writePointStructure().

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ dynamicPointStructure

friend class dynamicPointStructure
friend

Definition at line 194 of file pointStructure.hpp.

Member Data Documentation

◆ maxSizeDefault_

const size_t maxSizeDefault_ = 10000
inlinestatic

Definition at line 57 of file pointStructure.hpp.

◆ numPoints_

size_t numPoints_ = 0
protected

Definition at line 149 of file pointStructure.hpp.

Referenced by pointStructure::evaluatePointStructure().

◆ maxPoints_

size_t maxPoints_ = maxSizeDefault_
protected

Definition at line 152 of file pointStructure.hpp.

◆ pointFlag_

int8Field_HD pointFlag_
protected

◆ pointPosition_

realx3Field_D pointPosition_
protected

◆ numActivePoints_

size_t numActivePoints_ = 0
protected

Definition at line 161 of file pointStructure.hpp.

Referenced by pointStructure::evaluatePointStructure().

◆ activeRange_

range activeRange_
protected

◆ tobeInsertedIndex_

int32IndexContainer tobeInsertedIndex_
protected

Index vector for points to be inserted.

Definition at line 167 of file pointStructure.hpp.

Referenced by pointStructure::insertedPointIndex(), pointStructure::insertedPointIndexD(), and pointStructure::insertedPointIndexH().

◆ mortonSortedIndex_

int32IndexContainer mortonSortedIndex_
protected

Sorted index of particles based on morton code.

Definition at line 170 of file pointStructure.hpp.

Referenced by pointStructure::mortonSortedIndex().


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