wallPointAddressing Class Reference

Holds information (coordinate and origin) regarding nearest wall point. More...

Inheritance diagram for wallPointAddressing:
Collaboration diagram for wallPointAddressing:

Public Member Functions

 wallPointAddressing ()
 Default construct. More...
 
 wallPointAddressing (const point &origin, const labelPair &data, const scalar distSqr)
 Construct from origin, transforms, distance. More...
 
const labelPairdata () const
 
labelPairdata ()
 
template<class TrackingData >
void leaveDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
 Convert any absolute coordinates into relative to (patch)face centre. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &mesh, const label thisCelli, const label neighbourFacei, const wallPointAddressing &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring face. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &mesh, const label thisFacei, const label neighbourCelli, const wallPointAddressing &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &mesh, const label thisFacei, const wallPointAddressing &neighbourWallInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 
- Public Member Functions inherited from wallPoint
 wallPoint ()
 Default construct. More...
 
 wallPoint (const point &origin, const scalar distSqr)
 Construct from origin, distance-squared. More...
 
const pointorigin () const
 
pointorigin ()
 
scalar distSqr () const
 
scalar & distSqr ()
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Changed or contains original (invalid) value. More...
 
template<class TrackingData >
bool sameGeometry (const polyMesh &, const wallPoint &, const scalar, TrackingData &td) const
 Check for identical geometrical data (eg, cyclics checking) More...
 
template<class TrackingData >
void leaveDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
 Convert any absolute coordinates into relative to (patch)face centre. More...
 
template<class TrackingData >
void enterDomain (const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
 Reverse of leaveDomain. More...
 
template<class TrackingData >
void transform (const polyMesh &, const tensor &, TrackingData &td)
 Apply rotation matrix to any coordinates. More...
 
template<class TrackingData >
bool updateCell (const polyMesh &, const label thisCelli, const label neighbourFacei, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring face. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const label neighbourCelli, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of neighbouring cell. More...
 
template<class TrackingData >
bool updateFace (const polyMesh &, const label thisFacei, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
 Influence of different value on same face. More...
 
template<class TrackingData >
bool equal (const wallPoint &, TrackingData &td) const
 Test for equality, with TrackingData. More...
 
bool operator== (const wallPoint &) const
 Test for equality. More...
 
bool operator!= (const wallPoint &) const
 Test for inequality. More...
 

Friends

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

Detailed Description

Holds information (coordinate and origin) regarding nearest wall point.

Is like wallPoint but transfer extra (passive) data. Used e.g. in wall distance calculation with wall reflection vectors.

Source files

Definition at line 58 of file wallPointAddressing.H.

Constructor & Destructor Documentation

◆ wallPointAddressing() [1/2]

wallPointAddressing ( )
inline

Default construct.

Definition at line 85 of file wallPointAddressingI.H.

◆ wallPointAddressing() [2/2]

wallPointAddressing ( const point origin,
const labelPair data,
const scalar  distSqr 
)
inline

Construct from origin, transforms, distance.

Definition at line 93 of file wallPointAddressingI.H.

Member Function Documentation

◆ data() [1/2]

const labelPair& data ( ) const
inline

Definition at line 117 of file wallPointAddressing.H.

◆ data() [2/2]

labelPair& data ( )
inline

Definition at line 121 of file wallPointAddressing.H.

◆ leaveDomain()

void leaveDomain ( const polyMesh mesh,
const polyPatch pp,
const label  patchFacei,
const point faceCentre,
TrackingData &  td 
)
inline

Convert any absolute coordinates into relative to (patch)face centre.

Definition at line 108 of file wallPointAddressingI.H.

References polyMesh::globalData(), globalMeshData::globalTransforms(), wallPoint::leaveDomain(), mesh, and pp().

Here is the call graph for this function:

◆ updateCell()

bool updateCell ( const polyMesh mesh,
const label  thisCelli,
const label  neighbourFacei,
const wallPointAddressing neighbourWallInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring face.

Calls update(...) with cellCentre of celli

Definition at line 158 of file wallPointAddressingI.H.

References polyMesh::globalData(), globalMeshData::globalTransforms(), mesh, and update().

Here is the call graph for this function:

◆ updateFace() [1/2]

bool updateFace ( const polyMesh mesh,
const label  thisFacei,
const label  neighbourCelli,
const wallPointAddressing neighbourWallInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of neighbouring cell.

Calls update(...) with faceCentre of facei

Definition at line 184 of file wallPointAddressingI.H.

References primitiveMesh::faceCentres(), polyMesh::globalData(), globalMeshData::globalTransforms(), mesh, and update().

Here is the call graph for this function:

◆ updateFace() [2/2]

bool updateFace ( const polyMesh mesh,
const label  thisFacei,
const wallPointAddressing neighbourWallInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same face.

Merge new and old info. Calls update(...) with faceCentre of facei

Definition at line 210 of file wallPointAddressingI.H.

References primitiveMesh::faceCentres(), polyMesh::globalData(), globalMeshData::globalTransforms(), mesh, and update().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

◆ operator>>

Istream& operator>> ( Istream ,
wallPointAddressing  
)
friend

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