Public Member Functions | Friends | List of all members
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:
Inheritance graph
[legend]

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 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 59 of file pointEdgePoint.H.

Constructor & Destructor Documentation

pointEdgePoint ( )
inline

Construct null.

Definition at line 121 of file pointEdgePointI.H.

pointEdgePoint ( const point origin,
const scalar  distSqr 
)
inline

Construct from origin, distance.

Definition at line 130 of file pointEdgePointI.H.

pointEdgePoint ( const pointEdgePoint wpt)
inline

Construct as copy.

Definition at line 141 of file pointEdgePointI.H.

Member Function Documentation

const Foam::point & origin ( ) const
inline

Definition at line 150 of file pointEdgePointI.H.

Referenced by pointEdgePoint::operator==().

Here is the caller graph for this function:

Foam::scalar distSqr ( ) const
inline

Definition at line 156 of file pointEdgePointI.H.

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

Here is the caller graph for this function:

bool valid ( TrackingData &  td) const
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, and pointEdgePoint::sameGeometry().

Here is the call graph for this function:

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

Check for identical geometrical data. Used for cyclics checking.

Definition at line 172 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:

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 200 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:

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 226 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:

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

Apply rotation matrix to origin.

Definition at line 213 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:

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 241 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:

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 257 of file pointEdgePointI.H.

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

Here is the call graph for this function:

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 272 of file pointEdgePointI.H.

References pointEdgePoint::updateEdge().

Here is the call graph for this function:

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 285 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:

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

Same (like operator==)

Definition at line 301 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:

bool operator== ( const pointEdgePoint rhs) const
inline

Definition at line 312 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:

bool operator!= ( const pointEdgePoint rhs) const
inline

Definition at line 319 of file pointEdgePointI.H.

Friends And Related Function Documentation

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

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