WallCollisionRecord< Type > Class Template Reference

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...

Inheritance diagram for WallCollisionRecord< Type >:
[legend]

Public Member Functions

 WallCollisionRecord ()
 Construct null. More...
 
 WallCollisionRecord (bool accessed, const vector &pRel, const Type &data=Type(Zero))
 Construct from components. More...
 
 WallCollisionRecord (Istream &)
 Construct from Istream. More...
 
 WallCollisionRecord (const WallCollisionRecord &)
 Construct as copy. More...
 
 ~WallCollisionRecord ()
 Destructor. More...
 
const vectorpRel () 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...
 

Friends

bool operator== (const WallCollisionRecord< Type > &, const WallCollisionRecord< Type > &)
 
bool operator!= (const WallCollisionRecord< Type > &, const WallCollisionRecord< Type > &)
 
Istreamoperator>> (Istream &, WallCollisionRecord< Type > &)
 
Ostreamoperator (Ostream &, const WallCollisionRecord< Type > &)
 

Detailed Description

template<class Type>
class Foam::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.

Source files

Definition at line 79 of file WallCollisionRecord.H.

Constructor & Destructor Documentation

◆ WallCollisionRecord() [1/4]

Construct null.

Definition at line 40 of file WallCollisionRecord.C.

◆ WallCollisionRecord() [2/4]

WallCollisionRecord ( bool  accessed,
const vector pRel,
const Type &  data = Type(Zero) 
)

Construct from components.

Definition at line 49 of file WallCollisionRecord.C.

◆ WallCollisionRecord() [3/4]

Construct from Istream.

Definition at line 34 of file WallCollisionRecordIO.C.

References IOstream::check(), and FUNCTION_NAME.

Here is the call graph for this function:

◆ WallCollisionRecord() [4/4]

Construct as copy.

◆ ~WallCollisionRecord()

Destructor.

Definition at line 77 of file WallCollisionRecord.C.

Member Function Documentation

◆ pRel()

const Foam::vector & pRel
inline

Return the pRel data.

Definition at line 75 of file WallCollisionRecordI.H.

◆ collisionData() [1/2]

const Type & collisionData
inline

Return access to the collision data.

Definition at line 83 of file WallCollisionRecordI.H.

◆ collisionData() [2/2]

Type & collisionData
inline

Return access to the collision data.

Definition at line 90 of file WallCollisionRecordI.H.

◆ match()

bool match ( const vector pRel,
scalar  radius 
)
inline

Definition at line 31 of file WallCollisionRecordI.H.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::mag(), and Foam::nl.

Referenced by CollisionRecordList< PairType, WallType >::checkWallRecord(), and CollisionRecordList< PairType, WallType >::matchWallRecord().

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

◆ accessed()

bool accessed
inline

Return the accessed status of the record.

Definition at line 97 of file WallCollisionRecordI.H.

◆ setAccessed()

void setAccessed
inline

Set the accessed property of the record to accessed.

Definition at line 104 of file WallCollisionRecordI.H.

Referenced by CollisionRecordList< PairType, WallType >::matchWallRecord().

Here is the caller graph for this function:

◆ setUnaccessed()

void setUnaccessed
inline

Set the accessed property of the record to unaccessed.

Definition at line 111 of file WallCollisionRecordI.H.

◆ operator=()

void operator= ( const WallCollisionRecord< Type > &  )

Definition at line 84 of file WallCollisionRecord.C.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const WallCollisionRecord< Type > &  ,
const WallCollisionRecord< Type > &   
)
friend

◆ operator!=

bool operator!= ( const WallCollisionRecord< Type > &  ,
const WallCollisionRecord< Type > &   
)
friend

◆ operator>>

Istream & operator>> ( Istream ,
WallCollisionRecord< Type > &   
)
friend

◆ operator

Ostream & operator ( Ostream ,
const WallCollisionRecord< Type > &   
)
friend

Member Data Documentation

◆ errorCosAngle

const Foam::scalar errorCosAngle
static

Tolerance for detecting seriously erroneous wall matches.

Definition at line 99 of file WallCollisionRecord.H.


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