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==
126 a.accessed_ ==
b.accessed_
127 && a.pRel_ ==
b.pRel_
128 && a.data_ ==
b.data_
134 inline bool Foam::operator!=
void setUnaccessed()
Set the accessed property of the record to unaccessed.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool accessed() const
Return the accessed status of the record.
const vector & pRel() const
Return the pRel data.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
Record of a collision between the particle holding the record and a wall face at the position relativ...
bool match(const vector &pRel, scalar radius)
dimensioned< scalar > mag(const dimensioned< Type > &)
const Type & collisionData() const
Return access to the collision data.
void setAccessed()
Set the accessed property of the record to accessed.