Protected Member Functions | |
uint8 | getBoundaryFlag (uint32 index) const |
void | resetFlags (uint32 cap, uint32 start, uint32 end) |
Protected Attributes | |
viewType | flags_ |
uint32 | numActive_ = 0 |
rangeU32 | activeRange_ = {0,0} |
bool | isAllActive_ = false |
uint32 | nLeft_ = 0 |
uint32 | nRight_ = 0 |
uint32 | nBottom_ = 0 |
uint32 | nTop_ = 0 |
uint32 | nRear_ = 0 |
uint32 | nFront_ = 0 |
Private Types | |
enum | Flag : uint8 { DELETED = 1, INTERNAL = 2, LEFT = 4, RIGHT = 8, BOTTOM = 16, TOP = 32, REAR = 64, FRONT = 128 } |
using | execution_space = ExecutionSpace |
using | memory_space = typename execution_space::memory_space |
using | viewType = ViewType1D< uint8, memory_space > |
using | device_type = typename viewType::device_type |
using | rPolicy = Kokkos::RangePolicy< execution_space, Kokkos::IndexType< uint32 > > |
Friends | |
class | internalPoints |
Definition at line 32 of file pointFlag.hpp.
|
private |
Definition at line 46 of file pointFlag.hpp.
|
private |
Definition at line 48 of file pointFlag.hpp.
|
private |
Definition at line 50 of file pointFlag.hpp.
|
private |
Definition at line 52 of file pointFlag.hpp.
|
private |
Definition at line 56 of file pointFlag.hpp.
Enumerator | |
---|---|
DELETED | |
INTERNAL | |
LEFT | |
RIGHT | |
BOTTOM | |
TOP | |
REAR | |
FRONT |
Definition at line 34 of file pointFlag.hpp.
|
default |
Definition at line 139 of file pointFlag.hpp.
Definition at line 150 of file pointFlag.hpp.
|
default |
Definition at line 84 of file pointFlag.hpp.
Definition at line 113 of file pointFlag.hpp.
|
inline |
Definition at line 173 of file pointFlag.hpp.
Referenced by pFlow::sphereParticlesKernels::acceleration(), pFlow::grainParticlesKernels::acceleration(), pFlow::mapperNBSKernels::buildLists(), pFlow::mapperNBSKernels::buildListsReduce(), and internalPoints::isAllActive().
|
inline |
Definition at line 179 of file pointFlag.hpp.
Referenced by pFlow::sphereParticlesKernels::acceleration(), pFlow::grainParticlesKernels::acceleration(), internalPoints::activeRange(), pFlow::sphereParticlesKernels::addMassDiamInertiaProp(), pFlow::grainParticlesKernels::addMassDiamInertiaProp(), cellMapper::build(), mapperNBS::build(), pFlow::mapperNBSKernels::buildLists(), pFlow::mapperNBSKernels::buildListsReduce(), cellMapper::cellMapper(), pFlow::fillSequence(), pFlow::mapperNBSKernels::findPointExtends(), pFlow::getSortedIndices(), pFlow::AB2Kernels::intScattered(), mapperNBS::mapperNBS(), pFlow::max(), pFlow::min(), and pFlow::minMax().
|
inline |
Definition at line 185 of file pointFlag.hpp.
Referenced by internalPoints::capacity(), pointFlag< DefaultHostExecutionSpace >::pointFlag(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
inline |
Definition at line 191 of file pointFlag.hpp.
Referenced by pFlow::mapperNBSKernels::findPointExtends(), pFlow::getSortedIndices(), and internalPoints::numActive().
|
inline |
Definition at line 197 of file pointFlag.hpp.
|
inline |
Definition at line 203 of file pointFlag.hpp.
|
inline |
Definition at line 209 of file pointFlag.hpp.
|
inline |
Definition at line 215 of file pointFlag.hpp.
|
inline |
Definition at line 221 of file pointFlag.hpp.
|
inline |
Definition at line 227 of file pointFlag.hpp.
|
inline |
Definition at line 234 of file pointFlag.hpp.
|
inline |
Definition at line 240 of file pointFlag.hpp.
Referenced by pFlow::getSortedIndices(), and pointFlag< DefaultHostExecutionSpace >::operator()().
|
inline |
Definition at line 247 of file pointFlag.hpp.
|
inline |
Definition at line 254 of file pointFlag.hpp.
|
inline |
Definition at line 260 of file pointFlag.hpp.
|
inline |
Definition at line 267 of file pointFlag.hpp.
|
inline |
Definition at line 273 of file pointFlag.hpp.
|
inline |
Definition at line 279 of file pointFlag.hpp.
|
inline |
Definition at line 285 of file pointFlag.hpp.
|
inline |
Definition at line 291 of file pointFlag.hpp.
Referenced by internalPoints::syncPFlag().
pFlow::ViewType1D< pFlow::uint32, typename pFlow::pointFlag< ExecutionSpace >::memory_space > getActivePoints |
Definition at line 25 of file pointFlagKernels.hpp.
pFlow::ViewType1D< pFlow::uint32, typename pFlow::pointFlag< ExecutionSpace >::memory_space > getEmptyPoints | ( | uint32 | numToGet | ) | const |
Definition at line 55 of file pointFlagKernels.hpp.
pFlow::uint32 markOutOfBoxDelete | ( | const box & | validBox, |
ViewType1D< realx3, memory_space > | points | ||
) |
Loop over the active points and mark those out of the box and return number of deleted points.
validBox | the box whose inside is valid |
points | list of all points |
Definition at line 102 of file pointFlagKernels.hpp.
pFlow::uint32 addInternalPoints | ( | const ViewType1D< uint32, memory_space > & | points | ) |
Definition at line 174 of file pointFlagKernels.hpp.
bool deletePoints | ( | scatteredFieldAccess< uint32, memory_space > | points | ) |
Definition at line 221 of file pointFlagKernels.hpp.
bool deletePoints | ( | ViewType1D< uint32, memory_space > | points | ) |
Definition at line 263 of file pointFlagKernels.hpp.
bool changeFlags | ( | ViewType1D< uint32, memory_space > | changePoints, |
uint32 | boundaryIndex | ||
) |
Definition at line 308 of file pointFlagKernels.hpp.
pFlow::uint32 markPointRegions | ( | domain | dm, |
ViewType1D< realx3, memory_space > | points, | ||
real | leftLength, | ||
real | rightLength, | ||
real | bottomLength, | ||
real | topLength, | ||
real | rearLength, | ||
real | frontLength | ||
) |
mark points based on their position in the domain.
This should be the first method to be called when updating boundaries (step 1 of 2).
dm | the domain for which particles are tested |
points | list of points |
leftLength | neighbor length of the left face |
rightLength | neighbor length of the right face |
bottomLength | neighbor length of the bottom face |
topLength | neighbor length of the top face |
rearLength | neighbor length of the rear face |
frontLength | neighbor length of the front face |
Definition at line 330 of file pointFlagKernels.hpp.
void fillNeighborsLists | ( | ViewType1D< uint32, memory_space > | leftList, |
ViewType1D< uint32, memory_space > | rightList, | ||
ViewType1D< uint32, memory_space > | bottomList, | ||
ViewType1D< uint32, memory_space > | topList, | ||
ViewType1D< uint32, memory_space > | rearList, | ||
ViewType1D< uint32, memory_space > | frontList | ||
) |
fill the lists for boundary faces.
Lists keep the index of particles in the neighborhood of the faces. This mehtod is called after markPointRegions (step 2 of 2).
leftList | neighbor list of the left face |
rightList | neighbor list of the right face |
bottomList | neighbor list of the bottom face |
topList | neighbor list of the top face |
rearList | neighbor list of the rear face |
frontList | neighbor list of the front face |
Definition at line 467 of file pointFlagKernels.hpp.
pFlow::uint32 markDelete | ( | const plane & | pln, |
ViewType1D< realx3, memory_space > | points, | ||
ViewType1D< uint32, memory_space > | indices, | ||
ViewType1D< uint32, memory_space > | onOff | ||
) |
Definition at line 510 of file pointFlagKernels.hpp.
pFlow::uint32 changeCapacity | ( | uint32 | reqEmptySpots | ) |
Definition at line 582 of file pointFlagKernels.hpp.
|
friend |
Definition at line 60 of file pointFlag.hpp.
|
protected |
Definition at line 62 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::capacity(), pointFlag< DefaultHostExecutionSpace >::clone(), pointFlag< DefaultHostExecutionSpace >::isActive(), pointFlag< DefaultHostExecutionSpace >::pointFlag(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
Definition at line 64 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::clone(), pointFlag< DefaultHostExecutionSpace >::numActive(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
|
protected |
Definition at line 68 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::clone(), pointFlag< DefaultHostExecutionSpace >::isAllActive(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
Definition at line 70 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::leftSize(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
Definition at line 72 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::resetFlags(), and pointFlag< DefaultHostExecutionSpace >::rightSize().
|
protected |
Definition at line 74 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::bottomSize(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
Definition at line 76 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::resetFlags(), and pointFlag< DefaultHostExecutionSpace >::topSize().
|
protected |
Definition at line 78 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::rearSize(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().
|
protected |
Definition at line 80 of file pointFlag.hpp.
Referenced by pointFlag< DefaultHostExecutionSpace >::frontSize(), and pointFlag< DefaultHostExecutionSpace >::resetFlags().