Go to the documentation of this file.
35 scalar magpRel_=
mag(pRel_);
37 scalar magpRel =
mag(pRel);
40 scalar cosAcceptanceAngle = magpRel/radius;
42 if (cosAcceptanceAngle > errorCosAngle)
44 Info<<
"pRel_ " << pRel_ <<
" " << magpRel_ <<
nl
45 <<
"pRel " << pRel <<
" " << magpRel <<
nl
46 <<
"unit vector dot product " << (pRel & pRel_)/(magpRel_*magpRel)
47 <<
nl <<
"cosAcceptanceAngle " << cosAcceptanceAngle
51 <<
"Problem with matching WallCollisionRecord." <<
nl
52 <<
"The given radius, " << radius <<
", is smaller than distance "
53 <<
"to the relative position of the WallInteractionSite, "
60 bool matched = (pRel & pRel_)/(magpRel_*magpRel) > cosAcceptanceAngle;
118 inline bool Foam::operator==
134 inline bool Foam::operator!=
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
const vector & pRel() const
Return the pRel data.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Record of a collision between the particle holding the record and a wall face at the position relativ...
bool accessed() const
Return the accessed status of the record.
void setAccessed()
Set the accessed property of the record to accessed.
bool match(const vector &pRel, scalar radius)
errorManip< error > abort(error &err)
const Type & collisionData() const
Return access to the collision data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type data_
Collision data, stored as if the storing particle was the.
vector pRel_
The position of wall impact relative to the particle centre.
void setUnaccessed()
Set the accessed property of the record to unaccessed.