pointEdgePoint Class Reference

Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave) To be used in wall distance calculation. More...

Inheritance diagram for pointEdgePoint:

Public Member Functions

 pointEdgePoint ()
 Construct null. More...
 
 pointEdgePoint (const point &, const scalar)
 Construct from origin, distance. More...
 
const pointorigin () 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
 

Friends

Ostreamoperator<< (Ostream &, const pointEdgePoint &)
 
Istreamoperator>> (Istream &, pointEdgePoint &)
 

Detailed Description

Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave) To be used in wall distance calculation.

Source files

Definition at line 68 of file pointEdgePoint.H.

Constructor & Destructor Documentation

◆ pointEdgePoint() [1/2]

pointEdgePoint ( )
inline

Construct null.

Definition at line 120 of file pointEdgePointI.H.

◆ pointEdgePoint() [2/2]

pointEdgePoint ( const point origin,
const scalar  distSqr 
)
inline

Construct from origin, distance.

Definition at line 128 of file pointEdgePointI.H.

Member Function Documentation

◆ origin()

const Foam::point & origin ( ) const
inline

Definition at line 140 of file pointEdgePointI.H.

Referenced by pointEdgePoint::operator==().

Here is the caller graph for this function:

◆ distSqr()

Foam::scalar distSqr ( ) const
inline

Definition at line 146 of file pointEdgePointI.H.

Referenced by pointEdgePoint::operator==(), and pointEdgePoint::sameGeometry().

Here is the caller graph for this function:

◆ valid()

bool valid ( TrackingData &  td) const
inline

Check whether origin has been changed at all or.

still contains original (invalid) value.

Definition at line 153 of file pointEdgePointI.H.

References VectorSpace< Vector< scalar >, scalar, 3 >::max, and pointEdgePoint::sameGeometry().

Here is the call graph for this function:

◆ sameGeometry()

bool sameGeometry ( const pointEdgePoint w2,
const scalar  tol,
TrackingData &  td 
) const
inline

Check for identical geometrical data. Used for cyclics checking.

Definition at line 162 of file pointEdgePointI.H.

References pointEdgePoint::distSqr(), pointEdgePoint::leaveDomain(), and Foam::mag().

Referenced by pointEdgePoint::valid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ leaveDomain()

void leaveDomain ( const polyPatch patch,
const label  patchPointi,
const point pos,
TrackingData &  td 
)
inline

Convert origin to relative vector to leaving point.

(= point coordinate)

Definition at line 190 of file pointEdgePointI.H.

References pointEdgePoint::transform().

Referenced by pointEdgePoint::sameGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enterDomain()

void enterDomain ( const polyPatch patch,
const label  patchPointi,
const point pos,
TrackingData &  td 
)
inline

Convert relative origin to absolute by adding entering point.

Definition at line 216 of file pointEdgePointI.H.

References pointEdgePoint::updatePoint().

Referenced by pointEdgePoint::transform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transform()

void transform ( const tensor rotTensor,
TrackingData &  td 
)
inline

Apply rotation matrix to origin.

Definition at line 203 of file pointEdgePointI.H.

References pointEdgePoint::enterDomain(), and Foam::transform().

Referenced by pointEdgePoint::leaveDomain(), and pointData::transform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePoint() [1/3]

bool updatePoint ( const polyMesh mesh,
const label  pointi,
const label  edgeI,
const pointEdgePoint edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on point.

Definition at line 231 of file pointEdgePointI.H.

References polyMesh::points().

Referenced by pointEdgePoint::enterDomain(), pointData::updatePoint(), and pointEdgePoint::updatePoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePoint() [2/3]

bool updatePoint ( const polyMesh mesh,
const label  pointi,
const pointEdgePoint newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

Merge new and old info.

Definition at line 247 of file pointEdgePointI.H.

References polyMesh::points(), and pointEdgePoint::updatePoint().

Here is the call graph for this function:

◆ updatePoint() [3/3]

bool updatePoint ( const pointEdgePoint newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

No information about current position whatsoever.

Definition at line 262 of file pointEdgePointI.H.

References pointEdgePoint::updateEdge().

Here is the call graph for this function:

◆ updateEdge()

bool updateEdge ( const polyMesh mesh,
const label  edgeI,
const label  pointi,
const pointEdgePoint pointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of point on edge.

Definition at line 275 of file pointEdgePointI.H.

References edge::centre(), Foam::e, primitiveMesh::edges(), pointEdgePoint::equal(), and polyMesh::points().

Referenced by pointData::updateEdge(), and pointEdgePoint::updatePoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equal()

bool equal ( const pointEdgePoint rhs,
TrackingData &  td 
) const
inline

Same (like operator==)

Definition at line 291 of file pointEdgePointI.H.

References pointEdgePoint::operator==().

Referenced by pointEdgePoint::updateEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==()

bool operator== ( const pointEdgePoint rhs) const
inline

Definition at line 302 of file pointEdgePointI.H.

References pointEdgePoint::distSqr(), and pointEdgePoint::origin().

Referenced by pointEdgePoint::equal(), and pointData::operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const pointEdgePoint rhs) const
inline

Definition at line 309 of file pointEdgePointI.H.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const pointEdgePoint  
)
friend

◆ operator>>

Istream& operator>> ( Istream ,
pointEdgePoint  
)
friend

The documentation for this class was generated from the following files: