Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave) To be used in wall distance calculation. More...
Public Member Functions | |
pointEdgePoint () | |
Construct null. More... | |
pointEdgePoint (const point &, const scalar) | |
Construct from origin, distance. More... | |
pointEdgePoint (const pointEdgePoint &) | |
Construct as copy. More... | |
const point & | origin () const |
scalar | distSqr () const |
template<class TrackingData > | |
bool | valid (TrackingData &td) const |
Check whether origin has been changed at all or. More... | |
template<class TrackingData > | |
bool | sameGeometry (const pointEdgePoint &, const scalar tol, TrackingData &td) const |
Check for identical geometrical data. Used for cyclics checking. More... | |
template<class TrackingData > | |
void | leaveDomain (const polyPatch &patch, const label patchPointI, const point &pos, TrackingData &td) |
Convert origin to relative vector to leaving point. More... | |
template<class TrackingData > | |
void | enterDomain (const polyPatch &patch, const label patchPointI, const point &pos, TrackingData &td) |
Convert relative origin to absolute by adding entering point. More... | |
template<class TrackingData > | |
void | transform (const tensor &rotTensor, TrackingData &td) |
Apply rotation matrix to origin. More... | |
template<class TrackingData > | |
bool | updatePoint (const polyMesh &mesh, const label pointI, const label edgeI, const pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td) |
Influence of edge on point. More... | |
template<class TrackingData > | |
bool | updatePoint (const polyMesh &mesh, const label pointI, const pointEdgePoint &newPointInfo, const scalar tol, TrackingData &td) |
Influence of different value on same point. More... | |
template<class TrackingData > | |
bool | updatePoint (const pointEdgePoint &newPointInfo, const scalar tol, TrackingData &td) |
Influence of different value on same point. More... | |
template<class TrackingData > | |
bool | updateEdge (const polyMesh &mesh, const label edgeI, const label pointI, const pointEdgePoint &pointInfo, const scalar tol, TrackingData &td) |
Influence of point on edge. More... | |
template<class TrackingData > | |
bool | equal (const pointEdgePoint &, TrackingData &td) const |
Same (like operator==) More... | |
bool | operator== (const pointEdgePoint &) const |
bool | operator!= (const pointEdgePoint &) const |
Private Member Functions | |
template<class TrackingData > | |
bool | update (const point &, const pointEdgePoint &w2, const scalar tol, TrackingData &td) |
Evaluate distance to point. Update distSqr, origin from whomever. More... | |
template<class TrackingData > | |
bool | update (const pointEdgePoint &w2, const scalar tol, TrackingData &td) |
Combine current with w2. Update distSqr, origin if w2 has smaller. More... | |
Private Attributes | |
point | origin_ |
Position of nearest wall center. More... | |
scalar | distSqr_ |
Normal distance (squared) from point to origin. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const pointEdgePoint &) |
Istream & | operator>> (Istream &, pointEdgePoint &) |
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave) To be used in wall distance calculation.
Definition at line 59 of file pointEdgePoint.H.
|
inline |
Construct null.
Definition at line 121 of file pointEdgePointI.H.
|
inline |
Construct from origin, distance.
Definition at line 130 of file pointEdgePointI.H.
|
inline |
Construct as copy.
Definition at line 141 of file pointEdgePointI.H.
|
inlineprivate |
Evaluate distance to point. Update distSqr, origin from whomever.
is nearer pt. Return true if w2 is closer to point, false otherwise.
Definition at line 34 of file pointEdgePointI.H.
References Foam::diff(), Foam::magSqr(), and pointEdgePoint::origin().
|
inlineprivate |
Combine current with w2. Update distSqr, origin if w2 has smaller.
quantities and returns true.
Definition at line 79 of file pointEdgePointI.H.
References Foam::diff(), pointEdgePoint::distSqr(), and pointEdgePoint::origin().
|
inline |
Definition at line 150 of file pointEdgePointI.H.
Referenced by pointEdgePoint::operator==(), and pointEdgePoint::update().
|
inline |
Definition at line 156 of file pointEdgePointI.H.
Referenced by pointEdgePoint::operator==(), pointEdgePoint::sameGeometry(), and pointEdgePoint::update().
|
inline |
Check whether origin has been changed at all or.
still contains original (invalid) value.
Definition at line 163 of file pointEdgePointI.H.
References Vector< scalar >::max.
|
inline |
Check for identical geometrical data. Used for cyclics checking.
Definition at line 172 of file pointEdgePointI.H.
References Foam::diff(), pointEdgePoint::distSqr(), and Foam::mag().
|
inline |
Convert origin to relative vector to leaving point.
(= point coordinate)
Definition at line 200 of file pointEdgePointI.H.
|
inline |
Convert relative origin to absolute by adding entering point.
Definition at line 226 of file pointEdgePointI.H.
|
inline |
Apply rotation matrix to origin.
Definition at line 213 of file pointEdgePointI.H.
References Foam::transform().
Referenced by pointData::transform(), and PointData::transform().
|
inline |
Influence of edge on point.
Definition at line 241 of file pointEdgePointI.H.
References mesh, and polyMesh::points().
Referenced by pointData::updatePoint(), and PointData::updatePoint().
|
inline |
Influence of different value on same point.
Merge new and old info.
Definition at line 257 of file pointEdgePointI.H.
References mesh, and polyMesh::points().
|
inline |
Influence of different value on same point.
No information about current position whatsoever.
Definition at line 272 of file pointEdgePointI.H.
|
inline |
Influence of point on edge.
Definition at line 285 of file pointEdgePointI.H.
References Foam::e, primitiveMesh::edges(), mesh, and polyMesh::points().
Referenced by pointData::updateEdge(), and PointData::updateEdge().
|
inline |
Same (like operator==)
Definition at line 301 of file pointEdgePointI.H.
References Foam::operator==().
|
inline |
Definition at line 312 of file pointEdgePointI.H.
References pointEdgePoint::distSqr(), and pointEdgePoint::origin().
Referenced by pointData::operator==(), and PointData::operator==().
|
inline |
Definition at line 319 of file pointEdgePointI.H.
|
friend |
|
friend |
|
private |
Position of nearest wall center.
Definition at line 64 of file pointEdgePoint.H.
|
private |
Normal distance (squared) from point to origin.
Definition at line 67 of file pointEdgePoint.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.