Public Member Functions | Private Member Functions | Private Attributes | Friends
patchEdgeFaceInfo Class Reference
Collaboration diagram for patchEdgeFaceInfo:
Collaboration graph
[legend]

Public Member Functions

 patchEdgeFaceInfo ()
 Construct null. More...
 
 patchEdgeFaceInfo (const point &, const scalar)
 Construct from origin, distance. More...
 
 patchEdgeFaceInfo (const patchEdgeFaceInfo &)
 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 >
void transform (const polyMesh &mesh, const primitivePatch &patch, const tensor &rotTensor, const scalar tol, TrackingData &td)
 Apply rotation matrix. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const primitivePatch &patch, const label edgeI, const label faceI, const patchEdgeFaceInfo &faceInfo, const scalar tol, TrackingData &td)
 Influence of face on edge. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const primitivePatch &patch, const patchEdgeFaceInfo &edgeInfo, const bool sameOrientation, const scalar tol, TrackingData &td)
 New information for edge (from e.g. coupled edge) More...
 
template<class TrackingData >
bool updateFace (const polyMesh &mesh, const primitivePatch &patch, const label faceI, const label edgeI, const patchEdgeFaceInfo &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on face. More...
 
template<class TrackingData >
bool equal (const patchEdgeFaceInfo &, TrackingData &td) const
 Same (like operator==) More...
 
bool operator== (const patchEdgeFaceInfo &) const
 
bool operator!= (const patchEdgeFaceInfo &) const
 

Private Member Functions

template<class TrackingData >
bool update (const point &, const patchEdgeFaceInfo &w2, const scalar tol, TrackingData &td)
 Evaluate distance to point. Update distSqr, origin from whomever. More...
 
template<class TrackingData >
bool update (const patchEdgeFaceInfo &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

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

Detailed Description

Source files

Definition at line 57 of file patchEdgeFaceInfo.H.

Constructor & Destructor Documentation

◆ patchEdgeFaceInfo() [1/3]

patchEdgeFaceInfo ( )
inline

Construct null.

Definition at line 121 of file patchEdgeFaceInfoI.H.

◆ patchEdgeFaceInfo() [2/3]

patchEdgeFaceInfo ( const point origin,
const scalar  distSqr 
)
inline

Construct from origin, distance.

Definition at line 130 of file patchEdgeFaceInfoI.H.

◆ patchEdgeFaceInfo() [3/3]

patchEdgeFaceInfo ( const patchEdgeFaceInfo wpt)
inline

Construct as copy.

Definition at line 141 of file patchEdgeFaceInfoI.H.

Member Function Documentation

◆ update() [1/2]

bool update ( const point pt,
const patchEdgeFaceInfo w2,
const scalar  tol,
TrackingData &  td 
)
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 patchEdgeFaceInfoI.H.

References Foam::diff(), Foam::magSqr(), and patchEdgeFaceInfo::origin().

Here is the call graph for this function:

◆ update() [2/2]

bool update ( const patchEdgeFaceInfo w2,
const scalar  tol,
TrackingData &  td 
)
inlineprivate

Combine current with w2. Update distSqr, origin if w2 has smaller.

quantities and returns true.

Definition at line 79 of file patchEdgeFaceInfoI.H.

References Foam::diff(), patchEdgeFaceInfo::distSqr(), and patchEdgeFaceInfo::origin().

Here is the call graph for this function:

◆ origin()

const Foam::point & origin ( ) const
inline

Definition at line 150 of file patchEdgeFaceInfoI.H.

Referenced by patchEdgeFaceInfo::operator==(), and patchEdgeFaceInfo::update().

Here is the caller graph for this function:

◆ distSqr()

Foam::scalar distSqr ( ) const
inline

Definition at line 156 of file patchEdgeFaceInfoI.H.

Referenced by patchEdgeFaceInfo::update().

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 163 of file patchEdgeFaceInfoI.H.

References Vector< scalar >::max.

◆ transform()

void transform ( const polyMesh mesh,
const primitivePatch patch,
const tensor rotTensor,
const scalar  tol,
TrackingData &  td 
)
inline

Apply rotation matrix.

Definition at line 171 of file patchEdgeFaceInfoI.H.

References Foam::transform().

Here is the call graph for this function:

◆ updateEdge() [1/2]

bool updateEdge ( const polyMesh mesh,
const primitivePatch patch,
const label  edgeI,
const label  faceI,
const patchEdgeFaceInfo faceInfo,
const scalar  tol,
TrackingData &  td 
)
inline

◆ updateEdge() [2/2]

bool updateEdge ( const polyMesh mesh,
const primitivePatch patch,
const patchEdgeFaceInfo edgeInfo,
const bool  sameOrientation,
const scalar  tol,
TrackingData &  td 
)
inline

New information for edge (from e.g. coupled edge)

Definition at line 208 of file patchEdgeFaceInfoI.H.

◆ updateFace()

bool updateFace ( const polyMesh mesh,
const primitivePatch patch,
const label  faceI,
const label  edgeI,
const patchEdgeFaceInfo edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on face.

Definition at line 223 of file patchEdgeFaceInfoI.H.

References PrimitivePatch< Face, FaceList, PointField, PointType >::faceCentres().

Here is the call graph for this function:

◆ equal()

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

Same (like operator==)

Definition at line 239 of file patchEdgeFaceInfoI.H.

References Foam::operator==().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const patchEdgeFaceInfo rhs) const
inline

Definition at line 251 of file patchEdgeFaceInfoI.H.

References patchEdgeFaceInfo::origin().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const patchEdgeFaceInfo rhs) const
inline

Definition at line 260 of file patchEdgeFaceInfoI.H.

Friends And Related Function Documentation

◆ operator<<

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

◆ operator>>

Istream& operator>> ( Istream ,
patchEdgeFaceInfo  
)
friend

Field Documentation

◆ origin_

point origin_
private

Position of nearest wall center.

Definition at line 62 of file patchEdgeFaceInfo.H.

◆ distSqr_

scalar distSqr_
private

Normal distance (squared) from point to origin.

Definition at line 65 of file patchEdgeFaceInfo.H.


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