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==
122 const WallCollisionRecord<Type>& a,
123 const WallCollisionRecord<Type>&
b
128 a.accessed_ ==
b.accessed_
129 && a.pRel_ ==
b.pRel_
130 && a.data_ ==
b.data_
136 inline bool Foam::operator!=
138 const WallCollisionRecord<Type>& a,
139 const WallCollisionRecord<Type>&
b