Public Member Functions | |
CollisionRecordList ()=default | |
Default construct. More... | |
CollisionRecordList (Istream &is) | |
Construct from Istream. More... | |
CollisionRecordList (const labelField &pairAccessed, const labelField &pairOrigProcOfOther, const labelField &pairOrigIdOfOther, const Field< PairType > &pairData, const labelField &wallAccessed, const vectorField &wallPRel, const Field< WallType > &wallData) | |
Construct from component fields (for IO) More... | |
const DynamicList< PairCollisionRecord< PairType > > & | pairRecords () const |
Return the active pair collisions. More... | |
const DynamicList< WallCollisionRecord< WallType > > & | wallRecords () const |
Return the active wall collisions. More... | |
labelField | pairAccessed () const |
Return field of pair accessed from each record, used for. More... | |
labelField | pairOrigProcOfOther () const |
Return field of pair origProcOfOther from each record,. More... | |
labelField | pairOrigIdOfOther () const |
Return field of pair origIdOfOther from each record, used. More... | |
Field< PairType > | pairData () const |
Return field of pair data from each record, used for field IO. More... | |
labelField | wallAccessed () const |
Return field of wall accessed from each record, used for field IO. More... | |
vectorField | wallPRel () const |
Return field of wall pRel from each record, used for field IO. More... | |
Field< WallType > | wallData () const |
Return field of wall data from each record, used for field IO. More... | |
PairCollisionRecord< PairType > & | matchPairRecord (label origProcOfOther, label origIdOfOther) |
Enquires if the proc and id pair of the other particle are. More... | |
bool | checkPairRecord (label origProcOfOther, label origIdOfOther) |
Enquire if the specified record exists without modifying. More... | |
WallCollisionRecord< WallType > & | matchWallRecord (const vector &pRel, scalar radius) |
Enquires if the position of wall impact relative to the. More... | |
bool | checkWallRecord (const vector &pRel, scalar radius) |
Enquire if the specified record exists without modifying. More... | |
void | update () |
Update the collision records, deleting any records not. More... | |
Friends | |
bool | operator== (const CollisionRecordList< PairType, WallType > &, const CollisionRecordList< PairType, WallType > &) |
bool | operator!= (const CollisionRecordList< PairType, WallType > &, const CollisionRecordList< PairType, WallType > &) |
Istream & | operator>> (Istream &, CollisionRecordList< PairType, WallType > &) |
Ostream & | operator (Ostream &, const CollisionRecordList< PairType, WallType > &) |
Definition at line 80 of file CollisionRecordList.H.
|
default |
Default construct.
|
explicit |
Construct from Istream.
Definition at line 35 of file CollisionRecordList.C.
References IOstream::check(), and FUNCTION_NAME.
CollisionRecordList | ( | const labelField & | pairAccessed, |
const labelField & | pairOrigProcOfOther, | ||
const labelField & | pairOrigIdOfOther, | ||
const Field< PairType > & | pairData, | ||
const labelField & | wallAccessed, | ||
const vectorField & | wallPRel, | ||
const Field< WallType > & | wallData | ||
) |
Construct from component fields (for IO)
Definition at line 45 of file CollisionRecordList.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, CollisionRecordList< PairType, WallType >::pairAccessed(), CollisionRecordList< PairType, WallType >::pairData(), CollisionRecordList< PairType, WallType >::pairOrigIdOfOther(), CollisionRecordList< PairType, WallType >::pairOrigProcOfOther(), UList< T >::size(), CollisionRecordList< PairType, WallType >::wallAccessed(), CollisionRecordList< PairType, WallType >::wallData(), and CollisionRecordList< PairType, WallType >::wallPRel().
|
inline |
Return the active pair collisions.
Definition at line 32 of file CollisionRecordListI.H.
|
inline |
Return the active wall collisions.
Definition at line 40 of file CollisionRecordListI.H.
Foam::labelField pairAccessed |
Return field of pair accessed from each record, used for.
field IO
Definition at line 122 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::labelField pairOrigProcOfOther |
Return field of pair origProcOfOther from each record,.
used for field IO
Definition at line 137 of file CollisionRecordList.C.
References f().
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::labelField pairOrigIdOfOther |
Return field of pair origIdOfOther from each record, used.
for field IO
Definition at line 152 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::Field< PairType > pairData |
Return field of pair data from each record, used for field IO.
Definition at line 167 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::labelField wallAccessed |
Return field of wall accessed from each record, used for field IO.
Definition at line 182 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::vectorField wallPRel |
Return field of wall pRel from each record, used for field IO.
Definition at line 197 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::Field< WallType > wallData |
Return field of wall data from each record, used for field IO.
Definition at line 212 of file CollisionRecordList.C.
Referenced by CollisionRecordList< PairType, WallType >::CollisionRecordList().
Foam::PairCollisionRecord< PairType > & matchPairRecord | ( | label | origProcOfOther, |
label | origIdOfOther | ||
) |
Enquires if the proc and id pair of the other particle are.
present in the records. If so, return non-const access to the PairCollisionRecord (hence the data) and mark the PairCollisionRecord as accessed this step, if not, create the record and return access to it.
Definition at line 227 of file CollisionRecordList.C.
References forAll, PairCollisionRecord< Type >::match(), and PairCollisionRecord< Type >::setAccessed().
bool checkPairRecord | ( | label | origProcOfOther, |
label | origIdOfOther | ||
) |
Enquire if the specified record exists without modifying.
its accessed status
Definition at line 263 of file CollisionRecordList.C.
References forAll, and PairCollisionRecord< Type >::match().
Foam::WallCollisionRecord< WallType > & matchWallRecord | ( | const vector & | pRel, |
scalar | radius | ||
) |
Enquires if the position of wall impact relative to the.
particle centre is present in the records. If so, return access to the WallCollisionRecord (hence the data) and mark the WallCollisionRecord as accesses this step, if not, create the record and return access to it.
Definition at line 285 of file CollisionRecordList.C.
References forAll, WallCollisionRecord< Type >::match(), and WallCollisionRecord< Type >::setAccessed().
Enquire if the specified record exists without modifying.
its accessed status
Definition at line 317 of file CollisionRecordList.C.
References forAll, and WallCollisionRecord< Type >::match().
void update |
Update the collision records, deleting any records not.
marked as having been accessed, then mark all records as not accessed ready for the next evaluation
Definition at line 338 of file CollisionRecordList.C.
References DynamicList< T, SizeMin >::append(), and forAll.
|
friend |
|
friend |
|
friend |
|
friend |