Go to the documentation of this file.
37 scalar magpRel_=
mag(pRel_);
39 scalar magpRel =
mag(pRel);
42 scalar cosAcceptanceAngle = magpRel/radius;
44 if (cosAcceptanceAngle > errorCosAngle)
46 Info<<
"pRel_ " << pRel_ <<
" " << magpRel_ <<
nl
47 <<
"pRel " << pRel <<
" " << magpRel <<
nl
48 <<
"unit vector dot product " << (pRel & pRel_)/(magpRel_*magpRel)
49 <<
nl <<
"cosAcceptanceAngle " << cosAcceptanceAngle
53 <<
"Problem with matching WallCollisionRecord." <<
nl
54 <<
"The given radius, " << radius <<
", is smaller than distance "
55 <<
"to the relative position of the WallInteractionSite, "
62 bool matched = (pRel & pRel_)/(magpRel_*magpRel) > cosAcceptanceAngle;
120 inline bool Foam::operator==
128 a.accessed_ ==
b.accessed_
129 && a.pRel_ ==
b.pRel_
130 && a.data_ ==
b.data_
136 inline bool Foam::operator!=
Ostream & endl(Ostream &os)
Add newline and flush stream.
const vector & pRel() const
Return the pRel data.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
messageStream Info
Information stream (uses stdout - output is on the master only)
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void setUnaccessed()
Set the accessed property of the record to unaccessed.