Record of a collision between the particle holding the record and a wall face at the position relative to the centre of the particle. More...
Public Member Functions | |
WallCollisionRecord () | |
Construct null. More... | |
WallCollisionRecord (bool accessed, const vector &pRel, const Type &data=pTraits< Type >::zero) | |
Construct from components. More... | |
WallCollisionRecord (Istream &) | |
Construct from Istream. More... | |
WallCollisionRecord (const WallCollisionRecord &) | |
Construct as copy. More... | |
~WallCollisionRecord () | |
Destructor. More... | |
const vector & | pRel () const |
Return the pRel data. More... | |
const Type & | collisionData () const |
Return access to the collision data. More... | |
Type & | collisionData () |
Return access to the collision data. More... | |
bool | match (const vector &pRel, scalar radius) |
bool | accessed () const |
Return the accessed status of the record. More... | |
void | setAccessed () |
Set the accessed property of the record to accessed. More... | |
void | setUnaccessed () |
Set the accessed property of the record to unaccessed. More... | |
void | operator= (const WallCollisionRecord &) |
Static Public Attributes | |
static const scalar | errorCosAngle |
Tolerance for detecting seriously erroneous wall matches. More... | |
Private Attributes | |
bool | accessed_ |
vector | pRel_ |
The position of wall impact relative to the particle centre. More... | |
Type | data_ |
Collision data, stored as if the storing particle was the. More... | |
Friends | |
bool | operator== (const WallCollisionRecord< Type > &, const WallCollisionRecord< Type > &) |
bool | operator!= (const WallCollisionRecord< Type > &, const WallCollisionRecord< Type > &) |
Istream & | operator>> (Istream &, WallCollisionRecord< Type > &) |
Ostream & | operator (Ostream &, const WallCollisionRecord< Type > &) |
Record of a collision between the particle holding the record and a wall face at the position relative to the centre of the particle.
Definition at line 49 of file WallCollisionRecord.H.
Construct null.
Definition at line 37 of file WallCollisionRecord.C.
WallCollisionRecord | ( | bool | accessed, |
const vector & | pRel, | ||
const Type & | data = pTraits< Type >::zero |
||
) |
Construct from components.
WallCollisionRecord | ( | Istream & | ) |
Construct from Istream.
WallCollisionRecord | ( | const WallCollisionRecord & | ) |
Construct as copy.
~WallCollisionRecord | ( | ) |
Destructor.
Definition at line 74 of file WallCollisionRecord.C.
|
inline |
Return the pRel data.
Definition at line 73 of file WallCollisionRecordI.H.
|
inline |
Return access to the collision data.
Definition at line 81 of file WallCollisionRecordI.H.
|
inline |
Return access to the collision data.
Definition at line 88 of file WallCollisionRecordI.H.
|
inline |
Definition at line 30 of file WallCollisionRecordI.H.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::mag(), and Foam::nl.
Referenced by CollisionRecordList< vector, vector >::checkWallRecord(), and CollisionRecordList< vector, vector >::matchWallRecord().
|
inline |
Return the accessed status of the record.
Definition at line 95 of file WallCollisionRecordI.H.
|
inline |
Set the accessed property of the record to accessed.
Definition at line 102 of file WallCollisionRecordI.H.
Referenced by CollisionRecordList< vector, vector >::matchWallRecord().
|
inline |
Set the accessed property of the record to unaccessed.
Definition at line 109 of file WallCollisionRecordI.H.
void operator= | ( | const WallCollisionRecord & | ) |
Definition at line 82 of file WallCollisionRecord.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 82 of file WallCollisionRecord.H.
Referenced by Foam::operator==().
|
private |
The position of wall impact relative to the particle centre.
Definition at line 85 of file WallCollisionRecord.H.
Referenced by Foam::operator==().
|
private |
Collision data, stored as if the storing particle was the.
first particle (particle A) in the collision.
Definition at line 89 of file WallCollisionRecord.H.
Referenced by Foam::operator==().
|
static |
Tolerance for detecting seriously erroneous wall matches.
Definition at line 97 of file WallCollisionRecord.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.